/* Shop Crew only: live roster, recruitment and native presentation. */
#panel[data-front="store"]:has([data-shop-view="crew"]){position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#00142b url("menu-shop-background.png") center/cover!important;box-shadow:none!important}
#panel[data-front="store"]:has([data-shop-view="crew"]) #panelbody{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-width:none!important;margin:0!important;padding:0!important;overflow:hidden!important;background:none!important}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-shell{position:absolute;inset:44px 2.5% 48px;display:grid;grid-template-rows:13fr 5fr 49fr 25fr 5fr;gap:6px;min-height:0;padding:0;margin:0;width:auto;container-type:inline-size;color:#eef6ff;font-family:GameText,system-ui}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-heading{position:relative;margin:0;min-height:0;width:105.263%;left:-2.632%;background:url("shop-crew-header.png") top center/100% auto no-repeat}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-heading h1{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
#panel[data-front="store"]:has([data-shop-view="crew"]) .panelhead{top:calc(44px + 100vw * .084)!important;left:3.5%!important;right:auto!important;width:23%!important;height:calc(100vw * .079)!important;z-index:10}
#panel[data-front="store"]:has([data-shop-view="crew"]) #closepanel{width:100%!important;height:100%!important;min-height:32px!important;background:transparent!important;box-shadow:none!important;border:0!important;color:transparent!important;font-size:0!important}
#panel[data-front="store"]:has([data-shop-view="crew"]) #closepanel::after{content:none!important}
#panel[data-front="store"]:has([data-shop-view="crew"]) #shop-wallet{position:absolute;right:3.5%;top:calc(100vw * .084);width:29%;height:calc(100vw * .079);min-height:32px;display:flex;align-items:center;justify-content:space-around;margin:0;padding:2px;border:1px solid #20dfff;border-radius:8px;background:#001831;color:white;font:800 3.6cqw GameText;box-shadow:inset 0 0 5px #13c3ff}
#panel[data-front="store"]:has([data-shop-view="crew"]) #shop-wallet b{border:1px solid #20dfff;border-radius:5px;width:22px;font-size:24px;line-height:24px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;min-height:0;padding:0;margin:0;background:none;box-shadow:none;order:initial!important}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-sections button{min-height:0;padding:3px 0;border:1px solid #08a6ff;border-radius:8px;background:linear-gradient(#072c58,#001a36);color:white;font:800 2.9cqw GameText;display:flex;align-items:center;justify-content:center;gap:4px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-sections button::before{content:'';font-size:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-sections button[aria-pressed="true"]{background:linear-gradient(#ffed73,#ffbd21);color:#08121a;border-color:#fff097;box-shadow:inset 0 0 5px #fff,0 0 6px #ffdc39}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px;min-height:0;margin:0;padding:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-card{display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden;border:1.5px solid #039fff;border-radius:12px;background:radial-gradient(ellipse at 40% 25%,#073454,#00132c);padding:3px 5px 5px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-card[data-selected="true"]{border-color:#fff093;box-shadow:inset 0 0 8px #ffe569,0 0 5px #ffdf50}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-select{display:flex;flex:1;min-height:0;flex-direction:column;align-items:center;border:0;background:none;box-shadow:none;padding:0;margin:0;color:#fff4cf;border-radius:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-select b{font:900 4cqw/1.1 GameText;margin:2px 0 4px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-crop{position:relative;display:block;width:100%;flex:1;min-height:0;overflow:hidden}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-crop .shop-sprite{position:absolute;display:block;width:110%;aspect-ratio:3/4;height:auto;top:0;left:-5%;margin:0;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-actions{display:flex;flex-direction:column;gap:3px;flex-shrink:0;min-height:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-actions button{min-height:0;height:21px;padding:2px 3px;border-radius:6px;font:800 3.25cqw/1.1 GameText;margin:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-gems{background:linear-gradient(#087bf9,#013c98);border:1px solid #00e3ff;color:white}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-buy{background:linear-gradient(#fff079,#ffba18);color:#131808;border:1px solid #fff09a;box-shadow:inset 0 0 4px #fff091,0 2px 2px #8b621f}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-owned{display:flex;align-items:center;justify-content:center;min-height:32px;border:1px solid #00d8a8;border-radius:6px;background:#002530;color:#00f0bf;font:800 3.5cqw GameText}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-mystery{justify-content:center;align-items:center;gap:5px;text-align:center;background:radial-gradient(ellipse at 50% 20%,#102c42,#001225)}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-mystery>span{font-size:10cqw;margin-bottom:3px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-mystery b{font:900 4cqw GameText;color:#fff0bd}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-mystery small{font:500 2.8cqw GameText}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-detail{display:grid;grid-template-columns:40% 60%;min-height:0;overflow:hidden;margin:0;padding:0;border:1.5px solid #10ceff;border-radius:11px;background:linear-gradient(105deg,#01386855,#00152dee),url("menu-night-background.png") center/cover}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-hero{position:relative;overflow:hidden;min-height:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-hero .shop-sprite{position:absolute;width:115%;height:auto;aspect-ratio:3/4;top:0;left:-8%;background-size:400% 200%;background-position:0 0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy{display:flex;flex-direction:column;min-height:0;padding:7px 8px 7px 0;gap:4px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy h2{font:900 5cqw/1 GameText;color:#fff6d2;margin:0 0 5px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy h2 small{display:inline-block;font:900 2.1cqw GameText;background:#00d1a1;color:#001826;border-radius:20px;padding:3px;margin-left:4px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy h3{font:900 3.45cqw/1.1 GameText;margin:0;color:#00eaff}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy p{font:500 2.85cqw/1.23 GameText;margin:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy>small{font:500 2.45cqw/1.25 GameText;margin-top:auto;padding-top:4px;border-top:1px solid #7395ab}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy .shop-crew-actions{display:flex;flex-direction:row;margin-top:3px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-copy .shop-crew-actions>*{flex:1;min-width:0;height:30px;font-size:2.7cqw}
#panel[data-front="store"]:has([data-shop-view="crew"]) button:disabled{cursor:default}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-gems:disabled{opacity:.5}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-footer{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:0;margin:0;min-height:0;order:initial!important;background:#00142ad9}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-footer button{padding:4px 6px;min-height:30px;margin:0;background:none;color:#f0f7ff;font:600 2.8cqw GameText}
#panel[data-front="store"]:has([data-shop-view="crew"]) #restore-purchases{border:1px solid #0082de;border-radius:8px;background:#002147}
#panel[data-front="store"]:has([data-shop-view="crew"]) #shop-message{position:fixed;left:5%;right:5%;bottom:20px;max-height:25px;overflow:auto;margin:0;background:#001a30ed;border-radius:5px;font:500 11px/1.2 GameText}
#panel[data-front="store"]:has([data-shop-view="crew"]) button:focus-visible{outline:2px solid #fff297;outline-offset:-2px}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-shell{height:auto;grid-template-rows:minmax(0,17fr) minmax(0,5fr) minmax(0,45fr) minmax(0,25fr) minmax(0,5fr)}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-shell>*{order:0!important}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-heading{grid-row:1;display:block;height:100%;padding:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-sections{grid-row:2;height:100%}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-roster{grid-row:3}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-detail{grid-row:4}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-footer{grid-row:5}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-sections button::before{content:'';font-size:0}
#panel[data-front="store"]:has([data-shop-view="crew"]) .shop-crew-shell{background:linear-gradient(transparent 16%,#00142df5 22%,#00142df5 100%)}
