/* Reference-led menu presentation. Scoped to menus; production simulation is untouched. */
:root{--menu-cyan:#35e4ff;--menu-gold:#ffe36b;--menu-ink:#00162e;--menu-glass:linear-gradient(145deg,#062d5dec,#00102bec);--menu-edge:inset 0 1px 2px #dcffff9c,inset 0 -3px 5px #00112f,0 4px 10px #000b2899;--menu-surface:radial-gradient(ellipse at 25% 0,#09528b85,transparent 65%),linear-gradient(120deg,#031e45ef,#000e2ee8)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.premium-logo{display:block;width:132px;height:79px;background:url('menu-logo.png') center/contain no-repeat;filter:drop-shadow(0 0 6px #0059bc55);margin:0 auto;transform:none}
.premium-logo b,.premium-logo em{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.premium-logo::before{content:none}
main:has(#home:not([hidden])),main:has(#characterselect:not([hidden])),main:has(#results:not([hidden])){width:100%;max-width:none;padding:0}
main:has(#home:not([hidden]))>header,main:has(#home:not([hidden]))>footer,main:has(#characterselect:not([hidden]))>header,main:has(#characterselect:not([hidden]))>footer,main:has(#results:not([hidden]))>header,main:has(#results:not([hidden]))>footer{display:none}
#arena:has(#home:not([hidden])),#arena:has(#characterselect:not([hidden])),#arena:has(#results:not([hidden])){width:100%;height:100dvh;max-height:none;aspect-ratio:auto;border:0;border-radius:0;box-shadow:none}
#overlay:has(#home:not([hidden])),#overlay:has(#characterselect:not([hidden])),#overlay:has(#results:not([hidden])){padding:0;align-items:start;backdrop-filter:none;background:#074e93 url('menu-day-background.png') center/cover;overflow-y:auto;touch-action:pan-y}
#overlay:has(#results:not([hidden])),#overlay:has(#menu-setup[data-mode="free"]:not([hidden])){background:#001336 url('menu-night-background.png') center/cover}
#home,#characterselect,#results{width:min(100%,540px);max-width:none;margin:0 auto;border:0;border-radius:0;background:transparent;box-shadow:none}
#home{padding:0!important}
#menu-front,#menu-setup,#characterselect,#results{box-sizing:border-box;position:relative;min-height:680px;height:100dvh;padding:20px 18px 35px;text-align:center}
:is(#menu-setup,#characterselect,#results,#panel[data-front="store"],#panel[data-front="crew"],#panel[data-front="daily"],#panel[data-front="world"]) button{min-height:44px;border:1px solid #59caff;background:var(--menu-glass);border-radius:10px;box-shadow:var(--menu-edge);color:#e8f6ff;font:800 13px/1.2 GameText,system-ui;padding:8px 12px;white-space:normal}
:is(#menu-setup,#characterselect,#results,#panel[data-front]) button.primary,.shop-buy,:is(.premium-crew-detail,.outfit-detail) button:not(:disabled){background:linear-gradient(#fff895,#ffe45b 48%,#ffc52d 51%,#ffb91c);color:#0b1825;border:1px solid #fff5b2;box-shadow:inset 0 2px 2px #ffffe7,0 3px 0 #a5610c,0 0 12px #ffd53540;font-weight:900}
:is(#menu-front,#menu-setup,#characterselect,#results,#panel) button:active:not(:disabled){transform:translateY(1px);filter:brightness(1.1)}
:is(#menu-front,#menu-setup,#characterselect,#results,#panel) button:focus-visible{outline:2px solid #fff5be;outline-offset:3px}
:is(#menu-setup,#characterselect,#results,#panel[data-front]) button:disabled{opacity:.74;cursor:default}
.menu-wallet{font:800 12px GameText,system-ui;color:#edf4ff;background:linear-gradient(#042758e6,#020b27e6);border:1px solid #38d4ff;border-radius:10px;box-shadow:0 0 8px #009dce80;padding:7px 10px}
/* Title only: exact approved artwork with the existing single transparent start control. */
#launch-intro{background:#04335b;border:0;border-radius:0;box-shadow:none;padding:0;width:100vw;height:100dvh;inset:0;overflow:hidden}
#launch-intro::before,#launch-intro::after{display:none}
#launch-intro .title-approved-poster{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none;user-select:none}
#launch-intro:focus-visible{outline:3px solid #bafaff;outline-offset:-3px}
#launch-intro:active{transform:none;filter:none}
/* Main: approved unmodified composition and co-scaled accessible hit regions. */
#overlay:has(#home:not([hidden]) #menu-front:not([hidden])){overflow:hidden;background:#075eae}
#home:has(#menu-front:not([hidden])){width:100%;max-width:none}
#menu-front{display:block;padding:0;min-height:0!important;height:100dvh;isolation:isolate;overflow:hidden;animation:none}
#home:not([hidden]) #menu-front:not([hidden]){background:transparent}
#menu-front::before,#menu-front::after{display:none}
#menu-front .menu-approved-composition{position:absolute;left:50%;top:50%;width:max(100%,calc(100dvh * 853 / 1844));aspect-ratio:853/1844;transform:translate(-50%,-50%)}
#menu-front .menu-approved-art{display:block;width:100%;height:100%;pointer-events:none;user-select:none}
#menu-front .menu-art-control{position:absolute;display:block;min-width:0;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:transparent;animation:none;touch-action:manipulation}
#menu-front .menu-art-control::before,#menu-front .menu-art-control::after{display:none}
#menu-front .menu-art-control:active{transform:none;filter:none}
#menu-front .menu-art-control:focus-visible{outline:2px solid #fff5be;outline-offset:-3px;border-radius:12px}
/* Full-screen sheet shell. Headers and close/back positions belong to each screen. */
#panel:is([data-front="crew"],[data-front="store"],[data-front="daily"],[data-front="world"]){width:100vw;max-width:none;height:100dvh;max-height:100dvh;inset:0;margin:0;border:0;border-radius:0;background:#001732 url('menu-night-background.png') center/cover;padding:0;overflow-y:auto;box-shadow:none;touch-action:pan-y}
#panel[data-front="store"]{background-image:url('menu-shop-background.png')}
#panel:is([data-front="crew"],[data-front="store"],[data-front="daily"],[data-front="world"]) .panelhead{position:absolute;top:2.5%;left:4%;right:4%;width:auto;height:38px;margin:0;padding:0;background:none;border:0;z-index:5;pointer-events:none;display:flex;justify-content:flex-start}
#panel:is([data-front="crew"],[data-front="store"],[data-front="daily"],[data-front="world"]) .panelhead h2{display:none}
#panel:is([data-front="crew"],[data-front="store"],[data-front="daily"],[data-front="world"]) #closepanel{pointer-events:auto;min-width:44px;width:68px;height:36px;min-height:36px;margin:0;padding:0;background:var(--menu-glass);border:1px solid #32d8ff;color:white;border-radius:9px;font-size:0;box-shadow:0 0 6px #1bcbff77}
#panel:is([data-front="crew"],[data-front="store"],[data-front="world"]) #closepanel::after{content:'‹ Back';font:750 12px GameText}#panel[data-front] #closepanel::before{content:none}
#panel:is([data-front="crew"],[data-front="store"],[data-front="daily"],[data-front="world"]) #panelbody{width:min(100%,540px);max-width:none;box-sizing:border-box;min-height:680px;margin:0 auto;overflow:visible;padding:20px 18px 35px;background:none;font-family:GameText,system-ui}
.premium-heading{height:130px;text-align:center;position:relative;padding:0;background:none}
.premium-heading .premium-logo{height:76px;width:125px;margin:0 auto 2px}
.premium-heading h1{font:900 33px/1 SkyArcade;color:#e2fbff;text-shadow:0 2px #006bb7,0 0 10px #00aaff;margin:0}
.premium-heading .menu-wallet{position:absolute;top:0;right:0;font-size:12px;max-width:29%;padding:6px;min-height:33px!important}
:is(#select-status,#shop-message,#crew-note,#daily-note):empty{display:none}
/* Daily: hero above two reward panels, live amounts/claim states and compact info footer. */
#panel[data-front="daily"] #panelbody{padding:0 5.3% 8%;min-height:700px;height:100dvh;position:relative}
#panel[data-front="daily"] .panelhead{justify-content:flex-end;top:2.9%}
#panel[data-front="daily"] #closepanel{width:39px;height:39px;min-width:39px;min-height:39px}
#panel[data-front="daily"] #closepanel::after{content:'×';font:700 30px/1 system-ui}
.daily-heading{height:32%;min-height:205px;position:relative;text-align:left;padding:5% 0 0 4%;box-sizing:border-box}
.daily-heading .premium-logo{width:36%;height:32%;min-height:62px;margin:0}
.daily-heading h1{position:relative;z-index:1;font:1000 clamp(25px,7.8vw,43px)/.98 SkyArcade;color:#e9fcff;text-shadow:0 2px #007ec7,0 0 8px #10b7ff66;margin:5px 0 6px;letter-spacing:0}
.daily-heading p{position:relative;z-index:1;font:600 13px/1.35 GameText;color:#e0f4ff;margin:0;text-align:center;width:52%}
.daily-heading .crew-portrait{position:absolute;right:-1%;bottom:0;width:45%;height:83%;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;filter:drop-shadow(0 4px 5px #04112a)}
.daily-gift,.daily-challenge{position:relative;box-sizing:border-box;border:2px solid #ffe58a;border-radius:20px;background:radial-gradient(ellipse at 35% 50%,#7547148a,transparent 65%),linear-gradient(115deg,#182535ee,#071329ee);box-shadow:inset 0 0 4px #fff4a5,0 0 10px #ffbf3788;margin:0 0 2.5%;padding:11px 13px}
.daily-gift{height:28%;min-height:204px;display:grid;grid-template-rows:auto 1fr 44px;gap:5px}
.daily-gift header{display:flex;align-items:center;gap:12px;background:none;margin:0;padding:0;box-shadow:none;border:0}
.daily-gift-icon{font-size:30px;color:#ffd335;text-shadow:0 0 8px #ffae20}
.daily-gift h2{font:1000 20px/1 SkyArcade;color:#ffdf62;letter-spacing:.03em;margin:0 0 3px}
.daily-gift header p{font:500 11px/1.2 GameText;color:#87dfff;margin:0}
.daily-gift-value{display:flex;align-items:center;justify-content:space-between;min-height:0;padding:0 6% 0 0}
.gem-illustration{display:block;background:none;position:relative;isolation:isolate;padding:0;border:0;box-shadow:none}
.gem-illustration img{display:block;object-fit:contain;width:100%;height:100%;filter:drop-shadow(0 0 8px #09d5ff55)}
.daily-gift-value .gem-illustration{width:62%;height:110%;margin:0;align-self:center}
.daily-gift-value strong{font:1000 clamp(42px,12vw,68px)/.82 SkyArcade;color:#ffe047;text-shadow:0 2px #ea921b,0 0 8px #ffa822;letter-spacing:-.02em;text-align:center}
.daily-gift-value small{display:block;font:1000 25px/1 SkyArcade;color:#e7fbff;margin-top:6px;text-shadow:0 2px #087acc}
#panel[data-front="daily"] .daily-gift button,#panel[data-front="daily"] .daily-challenge button{width:100%;min-height:40px;font:900 15px/1.15 GameText;background:linear-gradient(#007d34e8,#004a25);border:1px solid #63ff9a;color:#e3ffff;box-shadow:inset 0 1px 2px #dbffbf,0 0 8px #00ff4f55;border-radius:11px;padding:8px}
#panel[data-front="daily"] .daily-gift button:disabled,#panel[data-front="daily"] .daily-challenge button:disabled{opacity:1;background:linear-gradient(#006552bb,#00384ace);border-color:#35edc1;color:#89f5ee;box-shadow:inset 0 1px 2px #86ffe480}
.daily-challenge{height:26%;min-height:196px;border-color:#36e8ff;box-shadow:inset 0 0 4px #66ebff,0 0 10px #00bbff88;background:var(--menu-surface);display:grid;grid-template-rows:25px 1fr 22px 40px;gap:7px;padding:11px 13px}
.challenge-heading{font:900 12px/1 GameText;color:#40eaff;display:flex;align-items:center;gap:10px}.challenge-heading>span{font-size:30px;color:#d3faff}
.challenge-summary{display:grid;grid-template-columns:60% 40%;align-items:center;gap:0;min-height:0}
.challenge-summary>div:first-child{min-width:0;padding-right:12px}
.daily-challenge h2{font:900 21px/1.05 GameText;color:#ecf5ff;margin:0 0 5px}
.daily-challenge p{font:500 12px/1.4 GameText;color:#8adaff;margin:0}
.challenge-reward{position:relative;float:none;align-self:stretch;border:1px solid #179cff;border-radius:11px;background:#002750aa;box-shadow:0 0 8px #0087ff66;text-align:right;min-height:65px;padding:6px 6px 4px;display:flex;flex-direction:column;justify-content:center}
.challenge-reward>small{font:900 10px GameText;color:#2de8ff}.challenge-reward .gem-illustration{position:absolute;left:-10%;bottom:0;width:68%;height:88%;margin:0}.challenge-reward strong{font:1000 34px/.9 SkyArcade;color:#ffdc43;text-shadow:0 2px #db8023;z-index:1}.challenge-reward strong>span{display:block;font:900 16px SkyArcade;color:#effaff;text-shadow:0 2px #0377b1}
.challenge-progress{display:flex;align-items:center;gap:9px;min-width:0}.challenge-progress strong{white-space:nowrap;font:900 13px GameText;color:#d9f6ff}.challenge-progress progress{width:100%;min-width:0;height:13px;margin:0;border:1px solid #25ffc8;border-radius:10px;overflow:hidden;background:#001b3e}.challenge-progress progress::-webkit-progress-bar{background:#001b3e}.challenge-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#00d3a4,#63ffb4);border-radius:8px}
.info-control{float:right;width:34px!important;height:34px!important;min-height:34px!important;border-radius:50%!important;padding:0!important;font:700 24px/1 Georgia!important;margin:0!important;color:#73edff!important;background:#003065aa!important}
#daily-note,#daily-info-copy{font-size:11px;margin:5px 0;color:#d6faff}#daily-info-copy{clear:both;background:#00152c;padding:8px;border-radius:8px}
/* Supersede earlier sheet chrome without affecting utility/settings dialogs. */
#panel[data-front]:is([data-front="crew"],[data-front="store"],[data-front="daily"],[data-front="world"]) .panelhead{background:none;border:0;padding:0}
#panel[data-front]:is([data-front="crew"],[data-front="store"],[data-front="daily"],[data-front="world"]) #closepanel::before{content:none}
#panel[data-front="daily"] #closepanel{min-width:39px;width:39px;min-height:39px;height:39px;border-radius:10px}
#panel[data-front="daily"] .daily-gift header{display:flex;align-items:center;justify-content:flex-start;gap:12px}
.daily-gift header>div{display:block;text-align:left}.daily-gift header>div p{display:block}
/* Adventure setup: establishing scene, selected chapter, rail, horizontal difficulty, launch. */
#menu-setup{padding:0 4% 8%;display:block}
#menu-setup .premium-top{position:absolute;top:4%;left:4%;right:4%;height:8%;display:flex;align-items:center;justify-content:space-between}
#menu-setup .premium-top .premium-logo{width:30%;height:100%;margin:0 auto}
#menu-setup .premium-top button{width:44px;height:44px;padding:0;font-size:26px;border-radius:12px}
#setup-title{position:absolute;top:12.6%;left:0;width:100%;margin:0;font:1000 clamp(38px,11vw,58px)/1 SkyArcade;color:#fff3d4;text-shadow:0 2px #d5a245,0 0 10px #ffdb63}
#setup-subtitle{position:absolute;top:18%;left:28%;width:52%;font:900 10px/1.35 GameText;letter-spacing:.1em;color:#c4eaff;margin:0;text-shadow:0 2px 5px #064077}
.story-overlook{position:absolute;top:18%;left:0;width:37%;height:14%}.story-overlook span{display:block;width:100%;height:100%;background:url('crew-courier.webp') 0 0/400% 200%;filter:drop-shadow(0 4px 3px #06456999)}
#menu-setup .chapter-feature{position:absolute;top:31.4%;left:4%;right:4%;height:18.3%;min-height:0;box-sizing:border-box;border:2px solid #fff3ad;border-radius:17px;padding:20px 16px;text-align:left;background-position:center!important;background-size:cover!important;box-shadow:inset 0 0 0 2px #ffc84599,0 0 11px #ffda5aaa;display:block;overflow:hidden}
.chapter-feature>span,.chapter-feature>small{display:block;color:#ffe36a;font:900 10px/1.3 GameText;letter-spacing:.08em}.chapter-feature h2{font:1000 clamp(22px,6vw,32px)/1.05 SkyArcade;color:white;margin:8px 0;text-shadow:0 2px #46648b}.chapter-feature p{font:500 13px/1.4 GameText;max-width:65%;margin:6px 0;color:#e5f4ff}
#menu-setup .chapter-rail{position:absolute;left:4%;right:4%;top:51%;height:13.6%;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:0;padding:0;overflow:visible}
#menu-setup .chapter-rail button{position:relative;min-height:0;padding:5px 2px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;border:1px solid #64c6ff;border-radius:12px;background:#001936;box-shadow:inset 0 0 8px #0782c844;overflow:hidden}
.chapter-rail .chapter-art{position:absolute;inset:0;z-index:-1;background-position:center;background-size:cover}.chapter-rail button{isolation:isolate}.chapter-rail button::after{content:'';position:absolute;inset:30% 0 0;z-index:-1;background:linear-gradient(transparent,#00122fe8 70%)}
#menu-setup .chapter-rail [aria-pressed="true"]{border:2px solid #fff4a6;box-shadow:0 0 10px #ffd235,inset 0 0 4px #ffde55}
.chapter-rail b{font:900 17px GameText;color:#75efff}.chapter-rail strong{font:900 8px/1.2 GameText;color:white;min-height:20px;margin:3px 0}.chapter-rail small{font:850 7px/1.1 GameText;color:#5cffac}.chapter-rail .chapter-lock{font-size:22px;color:#799fe8;margin-bottom:4px}.chapter-rail button:disabled{opacity:1!important}.chapter-rail button:disabled b{color:white}.chapter-rail button:disabled small{color:#90baf1}
#menu-setup .difficulty-control{position:absolute;top:66%;left:4%;right:4%;height:7.8%;min-height:59px;box-sizing:border-box;padding:11px;display:grid;grid-template-columns:32% 68%;grid-template-rows:1fr 1fr;gap:0;text-align:left;border:1px solid #69beff;border-radius:13px;background:var(--menu-surface);margin:0}
.difficulty-control>span{font:900 10px GameText;color:#c8f5ff;align-self:end}.difficulty-control #difficulty-note{font:500 9px/1.2 GameText;color:#d7edff;grid-column:1;grid-row:2;margin:3px 0;align-self:start}
#difficulty-pills{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;grid-column:2;grid-row:1/3;align-items:stretch;border:1px solid #009bde;border-radius:11px;padding:3px;background:#001730}
#menu-setup #difficulty-pills button{font:900 9px/1 GameText;padding:3px 0;border-radius:8px;min-height:36px;border-color:#114678}
#menu-setup #difficulty-pills button[aria-pressed="true"]{background:linear-gradient(#fff189,#ffc323);border-color:#fff299;color:#04172d;box-shadow:0 0 7px #ffd528}
#menu-setup #play{position:absolute;top:76%;left:5%;width:90%;height:5.5%;min-height:44px;border-radius:26px;font:1000 20px/1 GameText;letter-spacing:.02em}
/* Free Climb uses the same controls with its own reference composition. */
#menu-setup[data-mode="free"] .story-overlook{display:none}
#menu-setup[data-mode="free"] .premium-top{top:3%;height:11%}#menu-setup[data-mode="free"] .premium-top .premium-logo{width:35%;height:100%;margin-left:0}
#menu-setup[data-mode="free"] #menu-setup-back{order:2;margin-left:auto;margin-right:8px}#menu-setup[data-mode="free"] #setup-settings{order:3}
#menu-setup[data-mode="free"] #setup-title{top:16%;font-size:40px;text-shadow:0 2px #0679c5,0 0 9px #00b5ff;color:#e9fbff}
#menu-setup[data-mode="free"] #setup-subtitle{top:22%;left:10%;width:80%;letter-spacing:.02em;font-size:13px;font-weight:500}
#free-climb-feature{position:absolute;top:27%;left:4%;width:92%;height:25%;display:grid;grid-template-columns:51% 49%;gap:0;margin:0;background:none;border:0;padding:0;box-shadow:none}
#free-climb-art{display:block;width:100%;height:100%;background-size:400% 200%;background-position:0 0;filter:drop-shadow(0 5px 3px #001633)}
.free-stats{align-self:center;background:var(--menu-surface);border:1px solid #54ceff;border-radius:14px;box-shadow:0 0 9px #11b8ff55;display:flex;flex-direction:column;padding:13px 9px;text-align:center}
.free-stats h2{font:900 23px/1 GameText;color:#ffe278;margin:0 0 10px}.free-stats small{font:800 10px GameText;color:#6de5ff}.free-stats strong{font:900 23px GameText;color:#edfaff;margin:4px 0 11px}.free-stats span{font:600 8px GameText;color:#c5dfff}
#menu-setup[data-mode="free"] .difficulty-control{top:55%;height:11%;padding:10px;grid-template-columns:1fr;grid-template-rows:18px 1fr 14px;text-align:center}
#menu-setup[data-mode="free"] #difficulty-pills{grid-column:1;grid-row:2}
#menu-setup[data-mode="free"] #difficulty-note{grid-row:3;grid-column:1;text-align:center;margin:3px}
#menu-setup[data-mode="free"] #play{top:69%;height:6.5%;font-size:20px}
#free-climb-actions{position:absolute;top:77.5%;left:5%;width:90%;display:grid;grid-template-columns:1fr 1fr;gap:8px}
/* Selection uses a portrait feature and a compact, fixed 2 x 3 roster. */
#characterselect{padding:0 5% 4%;display:block;text-align:left}
#characterselect .premium-top{height:12%;padding:2% 0 0;display:block}#characterselect .premium-logo{width:37%;height:100%;margin:0}
#select-destination{display:block;font:800 10px GameText;letter-spacing:.02em;text-align:left;color:#c6e8ff;margin:0 0 5px}
#select-title{font:1000 clamp(25px,7.5vw,40px)/1 SkyArcade;color:#ecfbff;text-shadow:0 2px #037cbb,0 0 7px #23bfff;margin:0 0 6px;text-align:left}
.select-subtitle{font:500 12px/1.3 GameText;color:#d0eaff;margin:0 0 10px}
#characterselect .select-hero{position:relative;display:grid;grid-template-columns:43% 57%;height:22%;min-height:160px;gap:0;padding:0;border:1px solid #77ceff;border-radius:14px;background:var(--menu-surface);box-shadow:0 0 8px #04b5ff77;margin:0 0 9px;overflow:hidden;text-align:left}
#characterselect .select-art-panel{position:relative;max-width:none;min-height:0;height:100%;overflow:hidden}
#select-portrait{display:block;width:100%;height:100%;object-fit:contain;max-height:none;margin:0;padding:0;background:none;border:0;box-shadow:none}
#characterselect .select-hero>div:not(.select-art-panel){max-width:none;padding:10px 9px 5px 0;align-self:center;min-width:0}
.select-feature-eyebrow{font:900 9px GameText;letter-spacing:.1em;color:#70e3ff}#select-role{display:none}
#select-name{font:1000 26px/1 SkyArcade;color:#ffe675;margin:4px 0 10px}#select-talent{display:block;font:900 12px GameText;color:#f0faff}#select-description{font:500 11px/1.3 GameText;color:#c6e5fc;margin:5px 0}#select-special-note{font:600 8px/1.3 GameText;color:#93c7ea;display:block}
#characterselect #character-ability-step{height:45%;display:flex;flex-direction:column;gap:8px}
#characterselect .select-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:83%;gap:8px;margin:0}
#characterselect .select-roster button,#characterselect .select-roster .crew-mystery{height:100%;min-height:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;border:1px solid #47bbfd;border-radius:12px;background:var(--menu-surface);padding:0 3px 7px;gap:3px;overflow:hidden}
#characterselect .select-roster .crew-portrait{display:block;flex:1;min-height:0;width:85%;background-size:400% 200%;background-position:0 0;margin:0}
#characterselect .select-roster b{font:900 14px/1 GameText;color:#f1faff}.select-roster small{font:750 9px/1.2 GameText;color:#8cdaff}
#characterselect .select-roster [aria-pressed="true"]{border:2px solid #ffe481;box-shadow:0 0 8px #ffc42a,inset 0 0 6px #ffd366}.select-roster [aria-pressed="true"] b{color:#ffe77a}
#select-loadout{width:100%;height:44px;flex-shrink:0;font-size:16px!important;border-radius:22px!important}
#select-recruit{width:100%;min-height:44px;flex-shrink:0}
#characterselect #select-back{display:block;width:100%;margin:8px 0 0;border-radius:20px;height:40px;min-height:40px;text-align:center}
#select-status{font:600 11px GameText;color:#d0edff;margin:6px 0}
/* Loadout: distinct portrait and Special panels, then four looks and launch. */
#characterselect[data-step="loadout"] .select-subtitle{display:none}
#characterselect[data-step="loadout"] .select-hero{height:29%;min-height:200px;grid-template-columns:48% 48%;gap:4%;border:0;background:none;box-shadow:none;margin:14px 0 8px;overflow:visible;display:grid;padding:0}
#characterselect[data-step="loadout"] .select-hero>div{height:100%;box-sizing:border-box;border:1px solid #6bceff;border-radius:14px;background:var(--menu-surface);box-shadow:0 0 9px #00bdff66;max-width:none;padding:12px;text-align:center}
#characterselect[data-step="loadout"] .select-art-panel{padding:0 0 28px}
#characterselect[data-step="loadout"] #select-name{position:absolute;left:0;bottom:10px;width:48%;margin:0;font-size:24px}
#characterselect[data-step="loadout"] .select-feature-eyebrow{font-size:0;display:block;margin:4px 0 12px}#characterselect[data-step="loadout"] .select-feature-eyebrow::after{content:'SPECIAL';font:900 15px GameText;color:#65efff}
#characterselect[data-step="loadout"] #select-talent{font-size:18px;color:#fff8cc;margin:10px 0}#characterselect[data-step="loadout"] #select-description{font-size:12px}#characterselect[data-step="loadout"] #select-special-note{font-size:9px;margin-top:12px}
#loadout-step{display:block;height:auto}.loadout-choices,.loadout-ability,#preflight-outfit-back,#preflight-outfit-play{display:none!important}
#preflight-outfit-step{border:0;background:none;padding:0;margin:0}#preflight-outfit-title{font:900 16px GameText;color:#def8ff;text-align:center;margin:10px 0}
#preflight-outfit-status{font:500 11px GameText;text-align:center;margin:3px 0}#preflight-outfit-status:empty{display:none}
#preflight-outfit-looks{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;height:20vh;min-height:137px}
#characterselect .preflight-look{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;border:1px solid #62c2ff;border-radius:12px;padding:5px 2px;min-height:0;background:var(--menu-surface)}
.preflight-look .crew-portrait{height:auto;flex:1;min-height:0;width:100%;background-size:400% 200%;background-position:0 0}.preflight-look strong{font:850 10px/1.1 GameText;color:#ebfaff}.preflight-look small{font:700 8px/1.2 GameText;color:#99d6ee}
#characterselect .preflight-look[aria-pressed="true"]{border:2px solid #ffe175;box-shadow:0 0 7px #ffce3699}
#preflight-outfit-preview:empty{display:none}#preflight-outfit-preview{font-size:11px;margin-top:8px;padding:8px;background:#001b3ce8;border:1px solid #2587b8;border-radius:10px}#preflight-outfit-preview .crew-portrait{display:none}
#preflight-outfit-equip:empty{display:none}#preflight-outfit-equip{width:100%;margin-top:7px}
#select-launch{width:100%;margin-top:16px;font-size:20px!important;border-radius:25px!important;height:48px}.loadout-start{padding:0;margin:0}
/* Result composition stays compact; optional earned reward controls remain live. */
#results{padding:0 5% 5%;text-align:center;display:flex;flex-direction:column;gap:8px;min-height:760px;height:100dvh}
.result-top{display:flex;justify-content:space-between;align-items:center;height:13%;flex-shrink:0;padding:3% 0 0;gap:15px}.result-top .premium-logo{width:38%;height:100%;margin:0}.result-top #result-context{font:800 9px/1.3 GameText;color:#89e8ff;background:#003c7099;border:1px solid #27b9f7;border-radius:9px;padding:8px;max-width:51%}
#results .result-banner{height:25%;flex-shrink:0;position:relative;display:grid;grid-template-columns:45% 55%;align-items:center;margin:0;padding:0;background:none;border:0;box-shadow:none;overflow:visible}
#results .result-crew{height:115%;width:100%;position:relative;inset:auto;background-size:400% 200%;background-position:66.6667% 100%;filter:drop-shadow(0 6px 5px #002443)}
#results #resulttitle{font:1000 clamp(33px,10vw,55px)/1.04 SkyArcade;color:#fff4d2;transform:none;letter-spacing:0;text-shadow:0 2px #d89d46,0 0 7px #ffa821;padding:0;margin:0;text-align:center}
#results #resultlabel{position:absolute;top:16%;right:6%;width:44%;border:1px solid #17d7ff;border-radius:7px;padding:6px;font:850 9px GameText;color:#75edff;letter-spacing:.05em;background:#00356eaa}
#results .flight-score{height:11%;min-height:79px;flex-shrink:0;padding:10px 0 5px;margin:0;border:1px solid #5fd6ff;border-radius:15px;background:var(--menu-surface);box-shadow:0 0 8px #00b5ff77}
.score-caption{font:900 11px GameText;color:#e9fbff;letter-spacing:.05em}#results #resultscore{font:1000 36px/1 SkyArcade;color:#ffe55f;text-shadow:0 2px #da8b19;margin:5px 0;padding:0}#results #resultscore em{font:900 16px GameText;margin-left:5px;color:#edfaff;letter-spacing:0;display:inline}
#results .result-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));height:8.2%;min-height:60px;gap:7px;margin:0;flex-shrink:0}.result-stats>div{display:flex;flex-direction:column;justify-content:center;gap:7px;background:var(--menu-surface);border:1px solid #39bcff;border-radius:12px;padding:5px;box-shadow:0 0 5px #0aaeff44}.result-stats small{font:800 8px GameText;color:#97dcff}.result-stats strong{font:950 20px/1 GameText;color:#f2faff}
#results #reason{font:600 12px/1.4 GameText;color:#91edff;background:#012647db;border:1px solid #459cce;border-radius:11px;padding:11px;margin:0;min-height:45px;display:flex;align-items:center;justify-content:center}
#results #run-feedback,#results #rewards,#results #world-result-status,#results #share,#results #scorecard{display:none}
#results #again,#results #change-character{width:100%;height:47px;min-height:47px;font-size:17px;border-radius:23px;margin:0;flex-shrink:0}#results #change-character{background:linear-gradient(#095097,#002c65);font-size:15px}
#results .navgrid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}#results .navgrid button{font-size:11px;min-height:40px;border-radius:10px}
#world-results{padding:0;margin:0;border:0;background:none;box-shadow:none}#world-result-button{width:100%;font-size:12px!important;min-height:38px!important}
#double-crystals{min-height:44px!important;flex-shrink:0;font-size:12px!important}#save-status{margin:0;font:600 10px GameText;color:#ffc}
/* Crew and store share the approved six-slot roster and a single live detail. */
#panel[data-front="crew"] #panelbody{padding:2% 4% 5%;height:100dvh;min-height:760px}
#panel[data-front="crew"] .premium-heading{height:17%;min-height:120px}.premium-heading .premium-logo{height:58%;width:34%;max-height:88px}
#panel[data-front="crew"] .premium-heading h1{font-size:32px}
#panel[data-front="crew"] .section-tabs{position:static;top:auto;display:grid;grid-template-columns:1fr 1fr;gap:6px;height:5%;min-height:39px;margin:0 0 10px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}
#panel[data-front="crew"] .section-tabs button{border:1px solid #46c4ff;border-radius:9px;background:var(--menu-glass);padding:5px;font:900 13px GameText}
#panel[data-front="crew"] .section-tabs [aria-pressed="true"]{border-color:#fff09a;background:linear-gradient(#fff286,#ffc62d);box-shadow:0 0 7px #ffca4588;color:#08213a}
.premium-roster{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;height:36%;margin:0 0 9px}
#panel[data-front] .premium-roster .roster-member,.premium-roster .crew-mystery{height:100%;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:3px;padding:0 4px 7px;border:1px solid #59c4ff;border-radius:12px;background:var(--menu-surface);box-shadow:0 0 5px #008cff55;overflow:hidden}
.premium-roster .crew-portrait{display:block;width:90%;height:auto;min-height:0;flex:1;background-size:400% 200%;background-position:0 0}
.premium-roster b{font:900 14px/1 GameText;color:#effbff}.premium-roster small{font:850 9px/1.15 GameText;color:#8adef8;background:#032958a3;border-radius:4px;padding:2px 0;width:100%;text-align:center}
#panel[data-front] .premium-roster [aria-pressed="true"]{border:2px solid #ffe477;box-shadow:inset 0 0 5px #ffdf5d,0 0 8px #ffc830a1}.premium-roster [aria-pressed="true"] b{color:#ffe475}
.crew-mystery{color:#76a2d6;text-align:center}.crew-mystery>span{font:900 58px GameText;flex:1;display:flex;align-items:center;color:#699dc866;text-shadow:0 0 15px #7bcfff50}.crew-mystery>b{font:900 17px GameText}.crew-mystery small{font:700 9px GameText;color:#8aaed3}
.premium-crew-detail{height:31%;min-height:209px;display:grid;grid-template-columns:40% 60%;position:relative;border:1px solid #5aceff;border-radius:15px;background:var(--menu-surface);box-shadow:0 0 10px #03baff77;padding:10px 10px 10px 0;box-sizing:border-box;overflow:hidden}
.premium-crew-detail>.crew-portrait{width:100%;height:100%;background-size:400% 200%;background-position:0 0;align-self:center;filter:drop-shadow(0 6px 5px #001639)}
.premium-crew-detail>div{min-width:0;align-self:center;padding:0;text-align:left}.premium-crew-detail h2{font:1000 29px/1 SkyArcade;color:#ffe477;margin:4px 0 8px}.premium-crew-detail small{display:block;font:600 8px/1.25 GameText;color:#a8d8ff}.premium-crew-detail h3{font:900 13px/1.2 GameText;color:white;margin:4px 0}.premium-crew-detail p{font:500 11px/1.35 GameText;color:#d0e9ff;margin:5px 0}.premium-crew-detail button{width:100%;min-height:37px!important;padding:6px!important;font:900 10px/1.15 GameText!important;margin:8px 0 0}
/* Each shop tab is composed within the same presentation shell. */
#panel[data-front="store"]{max-width:none;max-height:100dvh}
#panel[data-front="store"] #panelbody{padding:2% 4% 5%;height:100dvh;min-height:760px}
#panel[data-front="store"] .shop-shell{height:100%;display:flex;flex-direction:column;gap:9px;min-height:0}
#panel[data-front="store"] .premium-heading{height:15%;min-height:100px;flex-shrink:0;order:0}
#panel[data-front="store"] .premium-heading .premium-logo{height:65%;width:34%;margin:0 auto 2px}
#panel[data-front="store"] .premium-heading h1{font:1000 30px/.95 SkyArcade}
#panel[data-front="store"] .shop-sections{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin:0;padding:0;position:static;height:5%;min-height:39px;flex-shrink:0;order:2}
#panel[data-front="store"] .shop-sections button{font:900 10px/1 GameText;min-height:37px;height:100%;padding:4px;border:1px solid #3eb9f8;border-radius:8px;background:var(--menu-glass);color:#e6f7ff}
#panel[data-front="store"] .shop-sections [aria-pressed="true"]{color:#102137;border-color:#fff18c;background:linear-gradient(#fff489,#ffcb34);box-shadow:0 0 7px #ffbf3488}
#panel[data-front="store"] .shop-shell> :not(.premium-heading):not(.shop-sections):not(.merchant){order:3}
#shop-message{margin:0;font:600 11px GameText;color:#dbf5ff;padding:5px;background:#022847}
#panel[data-front="store"] .shop-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding:2px 0 0;min-height:37px;flex-shrink:0;border:0;background:none;order:10!important}
#panel[data-front="store"] .shop-footer button{border:0;background:none;box-shadow:none;font:600 10px GameText;color:#b4e8ff;min-height:37px;padding:4px}
#panel[data-front="store"] .merchant{height:19%;min-height:125px;position:relative;display:flex;align-items:center;padding:10px 45% 10px 5%;box-sizing:border-box;background:none;border:0;order:1;margin:0;flex-shrink:0}
#panel[data-front="store"] .merchant>div{padding:15px 13px;border:1px solid #6acce8;border-radius:14px;background:#00182ee6;box-shadow:inset 0 1px #aeecffaa;text-align:left;position:relative;z-index:1}
.merchant h3{font:1000 23px GameText;color:#ffe875;margin:0 0 5px}.merchant p{font:600 12px GameText;color:#c8edff;margin:0}
#panel[data-front="store"] .merchant-portrait{position:absolute;right:0;bottom:-7%;width:48%;height:115%;background-size:400% 200%;background-position:0 0;filter:drop-shadow(0 5px 6px #000)}
#panel[data-front="store"] .featured-offer{height:29%;min-height:210px;flex-shrink:0}#panel[data-front="store"] .featured-noads{height:17%;min-height:130px;flex-shrink:0}
#panel[data-front="store"] .product-card{position:relative;display:grid;grid-template-columns:42% 58%;height:100%;padding:12px;gap:5px;border:1px solid #66c9ff;border-radius:17px;background:var(--menu-surface);box-shadow:0 0 7px #04afff66;overflow:hidden}
#panel[data-front="store"] .featured-card{border:2px solid #ffe981;box-shadow:inset 0 0 6px #fff081,0 0 9px #ffba2688;grid-template-columns:52% 48%;padding:18px 8px 14px 15px}
.product-card .product-art{position:relative;min-width:0;min-height:0;height:100%;width:100%;display:flex;align-items:center;justify-content:center;padding:0;margin:0;background:none;border:0;box-shadow:none}
#panel[data-front="store"] .featured-card .product-art{grid-column:2;grid-row:1}#panel[data-front="store"] .featured-card .shop-card-copy{grid-column:1;grid-row:1}
.shop-sprite{display:block;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;aspect-ratio:3/4}
.product-art .shop-sprite{position:relative;width:64%;height:100%;flex-shrink:0}.product-art .shop-sprite+.shop-sprite{margin-left:-28%;transform:translateY(5%)}
#panel[data-front="store"] .shop-card-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:0;min-height:0;background:none;text-align:left}
#panel[data-front="store"] .shop-card-copy h3{font:1000 22px/1.05 SkyArcade;text-transform:uppercase;color:#ffe875;margin:0 0 8px;overflow-wrap:normal}
#panel[data-front="store"] .shop-card-copy p{font:600 12px/1.35 GameText;color:#d5edff;margin:0 0 8px;overflow-wrap:normal}
#panel[data-front="store"] .shop-card .shop-buy{font:900 15px/1 GameText;min-height:36px;height:auto;max-width:100%;padding:8px 13px;border-radius:9px;margin-top:8px;align-self:stretch;text-align:center;background:linear-gradient(#fff292,#ffc734);border-color:#fff4a2;color:#092139}
#panel[data-front="store"] .featured-noads h3{font-size:16px;color:#e2f8ff}.featured-noads .shop-card-copy p{font-size:10px!important}
.ad-illustration{font-size:50px;color:#aeeaff}.ad-illustration>span{width:70%;height:60%;border:3px solid #baeaff;border-radius:8px;display:grid;place-items:center;background:#034f80}.ad-illustration>b{position:absolute;right:2%;bottom:15%;font-size:35px;color:#73e897}.ad-illustration small{display:none}
#panel[data-front="store"] .premium-roster{height:42%;margin:0;flex-shrink:0}
#panel[data-front="store"] .premium-crew-detail{height:27%;min-height:208px;flex-shrink:0}
#panel[data-front="store"] .shop-crew-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));height:11%;min-height:77px;gap:5px;overflow:visible;margin:0;padding:0;flex-shrink:0}
#panel[data-front="store"] .shop-crew-tabs button,.wardrobe-mystery{height:100%;min-height:0;min-width:0;width:auto;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:2px;border:1px solid #5caaff;border-radius:9px;background:var(--menu-glass);gap:2px}
.shop-crew-tabs .shop-sprite{display:block;width:100%;height:auto;min-height:0;flex:1;aspect-ratio:auto}.shop-crew-tabs button>span:not(.shop-sprite){font:900 7px GameText;color:#dbf3ff}
#panel[data-front="store"] .shop-crew-tabs [aria-pressed="true"]{border:2px solid #fff38a;box-shadow:0 0 6px #ffc92a;background:var(--menu-glass)}
.wardrobe-mystery{color:#7898c9;font:900 25px GameText}.wardrobe-mystery small{font:900 9px GameText;padding:5px}
.wardrobe-heading{display:flex;align-items:center;justify-content:space-between;height:3%;min-height:20px;margin:0;padding:0}.wardrobe-heading h3{font:900 15px GameText;color:#e5f5ff;margin:0}.wardrobe-heading small{font:900 10px GameText;color:#52e5ff}
#panel[data-front="store"] .outfit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;height:20%;min-height:140px;margin:0;flex-shrink:0}
#panel[data-front="store"] .outfit-card{display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:5px;height:100%;padding:4px 3px 6px;border:1px solid #55b2ff;border-radius:11px;background:var(--menu-surface);overflow:hidden}
.outfit-card .shop-sprite{height:auto;min-height:0;flex:1;width:100%;aspect-ratio:auto}.outfit-card strong{font:900 10px/1.1 GameText;color:#e7faff}.outfit-card small{font:800 9px/1.1 GameText;color:#c2eaff}
#panel[data-front="store"] .outfit-card[aria-pressed="true"]{border:2px solid #ffe882;box-shadow:inset 0 0 4px #ffe6a4,0 0 8px #faba2399}
#panel[data-front="store"] .wardrobe-duo{height:11%;min-height:85px;flex-shrink:0}.wardrobe-duo .product-card{grid-template-columns:32% 68%!important;padding:5px 9px!important;gap:6px!important;border-color:#e8ba66!important}.wardrobe-duo .shop-card-copy{position:relative;padding-right:35%!important}.wardrobe-duo h3{font-size:16px!important;margin-bottom:4px!important}.wardrobe-duo p{font-size:9px!important;margin:0!important}.wardrobe-duo .shop-buy{position:absolute;right:0;top:22%;width:33%;padding:7px!important;font-size:12px!important;margin:0!important}
#panel[data-front="store"] .outfit-detail{height:21%;min-height:155px;display:grid;grid-template-columns:40% 60%;border:1px solid #69cdff;border-radius:14px;background:var(--menu-surface);box-shadow:0 0 8px #0094df66;padding:8px 10px 8px 0;margin:0;flex-shrink:0}
.outfit-detail>.shop-sprite{width:100%;height:100%;aspect-ratio:auto}.outfit-detail>div{align-self:center;min-width:0}.outfit-detail h3{font:1000 23px GameText;color:#ffe985;margin:0 0 5px}.outfit-detail p{font:500 11px/1.3 GameText;color:#d1e7ff;margin:0 0 8px}.outfit-detail button{width:100%;font-size:11px!important;min-height:36px!important;padding:7px!important}
#panel[data-front="store"] .gems-heading{position:relative;height:17%;min-height:105px;flex-shrink:0;padding:13px 46% 7px 4%;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;text-align:left;border:0;background:none}
.gems-heading h2{font:1000 34px SkyArcade;color:#ebd9ff;text-shadow:0 2px #4d3fa7;margin:0 0 5px}.gems-heading p{font:500 11px/1.35 GameText;color:#d8e8ff;margin:0}
.gems-heading .gem-illustration{position:absolute;right:0;top:0;width:48%;height:100%;filter:hue-rotate(62deg)}
#panel[data-front="store"] .gem-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));height:47%;min-height:325px;gap:10px;margin:0;flex-shrink:0}
#panel[data-front="store"] .gem-pack{position:relative;display:flex;flex-direction:column;border:1px solid #b791f8;border-radius:13px;background:radial-gradient(at 50% 45%,#6e388582,transparent 60%),var(--menu-surface);box-shadow:0 0 7px #c94fff55;padding:8px;min-height:0;overflow:hidden}
.gem-pack .gem-illustration{position:absolute;inset:24% 7% 17%;width:86%;height:59%;filter:hue-rotate(62deg)}
#panel[data-front="store"] .gem-pack .shop-card-copy{position:relative;z-index:1;flex:1;display:flex;justify-content:space-between;text-align:center;align-items:center;width:100%}
#panel[data-front="store"] .gem-pack h3{font:1000 25px SkyArcade;color:white;margin:0;text-align:center;width:100%}.gem-pack h3 strong{display:block}.gem-pack h3 span{font:900 12px GameText;display:block;letter-spacing:.06em}
#panel[data-front="store"] .gem-pack .shop-buy{width:100%;min-height:32px;margin:0;font:900 15px GameText;background:linear-gradient(#2f165e,#15113a);border-color:#aa90ed;color:#fff1ff}
/* World standings: full-height Top 10 table, true record details and pinned owner row. */
#panel[data-front="world"] #panelbody{padding:1% 4% 1%;min-height:100dvh;height:auto}
#panel[data-front="world"] .premium-heading{height:auto;min-height:0;padding-bottom:10px}
#panel[data-front="world"] .premium-heading .premium-logo{height:64px;width:130px;margin:0 auto 2px}
.premium-heading .world-subtitle{font:850 13px/1.1 GameText;color:#8ae9ff;margin:5px 0 0}
#panel[data-front="world"] .premium-heading h1{font-size:27px}
#world-content>.eyebrow{font:800 10px/1.2 GameText;letter-spacing:.01em;color:#b8ddff;text-align:center;margin:0 0 12px}
.world-columns,.world-row{display:grid;grid-template-columns:11% 14% minmax(0,1fr) 24% 19%;align-items:center;gap:3px}
.world-columns{font:900 7px GameText;color:#80deff;padding:4px 6px 7px}.world-columns span:nth-last-child(-n+2){text-align:center}
.world-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:5px}
#panel[data-front="world"] .world-row{border:1px solid #168fdb;border-radius:8px;background:linear-gradient(100deg,#034c8299,#011a4be8);height:5.1vh;min-height:39px;box-sizing:border-box;padding:3px 5px;color:#e9faff;margin:0;font:750 11px GameText;box-shadow:inset 0 1px #66d5fb44}
.world-row>b{font:900 15px GameText;text-align:center;color:#d9f7ff}.world-row[data-rank="1"]{border-color:#ffd768!important;background:linear-gradient(100deg,#4a3c1ee8,#073a7299)!important;box-shadow:0 0 7px #ffca3288!important}.world-row[data-rank="1"]>b{color:#ffe871}.world-row[data-rank="2"]>b{color:#deefff}.world-row[data-rank="3"]>b{color:#f1b771}
.world-row .world-character{width:100%;height:100%;min-height:0;background-size:400% 200%;background-position:0 0;margin:0;border:0}.world-row .world-player{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.world-row .world-player small{font:800 7px GameText;color:#55f2fa}.world-row>strong{font:900 11px GameText;white-space:nowrap;text-align:center}
.world-row .world-difficulty{font:850 7px GameText;text-align:center;padding:4px 2px;border-radius:6px;background:#09414ccc;color:#8debd1;border:1px solid #1da58580}.world-difficulty.standard{color:#91daff;background:#113e7799;border-color:#298ec0}.world-difficulty.expert{color:#e2b6ff;background:#391b7599;border-color:#8e66cb}
#world-content>h3{font:900 11px GameText;color:#79deff;margin:12px 0 6px;text-transform:uppercase}.world-row.world-you{border:2px solid #1ad6ff!important;background:linear-gradient(90deg,#035ea4aa,#013268)!important;box-shadow:0 0 7px #00a8ff77!important}
#world-content>.panel-note{font:500 10px/1.3 GameText;text-align:center;color:#c5e8ff;margin:9px 0 5px}#world-content>.micro{font:500 8px/1.3 GameText;text-align:center;color:#aacce8;margin:5px 0}
#panel[data-front="world"] #world-refresh{display:block;min-height:32px;font:650 10px GameText;color:#9ddcff;background:none;border:0;box-shadow:none;margin:0 auto;padding:4px}
/* A small phone scrolls rather than clipping live price/error/claim content. */
@media(max-height:700px){#menu-front{min-height:640px}#menu-setup{min-height:640px}#characterselect{min-height:710px}#results{min-height:750px}#panel[data-front="daily"] #panelbody{min-height:700px}#panel[data-front="crew"] #panelbody,#panel[data-front="store"] #panelbody{min-height:760px}}
[hidden]{display:none!important}
/* Explicit resets for the older main/selection sheets' higher-specificity rules. */
#home:not([hidden]) #menu-setup{background:none}
#panel[data-front="daily"]:not([data-front=""]) #closepanel{width:39px;min-width:39px;height:39px;min-height:39px;border-radius:10px;border:1px solid #63d7ff;background:var(--menu-glass);box-shadow:inset 0 1px #dffaff88,0 0 8px #2dd2ff66}
.daily-gift header{height:auto}.daily-gift-value .gem-illustration{position:absolute;width:59%;height:68%;bottom:12%;left:4%;margin:0}.daily-gift-value strong{margin-left:auto;font-size:clamp(54px,16vw,75px)}
.daily-gift-value{padding-right:5%;position:static}.daily-gift-value small{font-size:27px}
.daily-gift-icon svg{display:block;width:34px;height:34px}.challenge-heading svg{display:block;width:34px;height:30px}
#characterselect #select-title{font:1000 clamp(25px,7.5vw,40px)/1 SkyArcade;text-align:left;color:#edfaff;margin:0 0 6px;letter-spacing:0;transform:none;text-shadow:0 2px #037ec9,0 0 7px #00bfff;outline:none}
#characterselect .select-subtitle{font:500 12px/1.3 GameText;color:#def4ff;margin:0 0 10px;text-align:left}
#characterselect #select-description{font:500 11px/1.3 GameText;color:#c6e5fc;margin:5px 0}
#characterselect #select-loadout{position:static;min-height:44px;height:44px;font:900 16px GameText;margin:0;padding:10px}
#characterselect .select-roster .crew-portrait{width:auto;height:100%;aspect-ratio:3/4;flex:1;min-height:0;max-width:100%}
#characterselect[data-step="loadout"] #select-portrait{width:100%;height:100%;max-width:none}
#characterselect[data-step="loadout"] :is(#select-talent,#select-description){display:block}
#characterselect .loadout-start{position:static;background:none;padding:0;margin:0}
#characterselect .loadout-start #select-launch{min-height:46px;height:46px;font:900 18px GameText;padding:10px;border-radius:24px;margin:14px 0 0}
#characterselect #preflight-outfit-title{font:900 15px GameText;letter-spacing:.02em;margin:9px 0;text-align:left;outline:none}
#characterselect #preflight-outfit-status{font:500 9px/1.3 GameText;margin:3px 0 8px;text-align:left}
#characterselect .preflight-look .preflight-outfit-art{display:block;min-height:0;width:auto;aspect-ratio:3/4;max-width:100%;height:auto;flex:1;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat;margin:0}
#characterselect .preflight-look>span:not(.preflight-outfit-art){font:600 7px/1.2 GameText;color:#a5c8e3}
#characterselect #preflight-outfit-looks{margin:0;gap:6px;grid-template-columns:repeat(4,minmax(0,1fr))}
#characterselect .preflight-look strong{font:900 10px/1.1 GameText;margin:0}#characterselect .preflight-look small{font:650 8px/1.2 GameText;margin:0}
#characterselect #select-back{min-height:38px;font:750 12px GameText;margin:8px 0 0}
.chapter-check{font:850 8px GameText;color:#5bff9c;margin:3px 0}.chapter-check::after{content:' COMPLETE'}
.premium-roster .crew-portrait{width:auto;aspect-ratio:3/4;max-width:100%;background-repeat:no-repeat}
#overlay:has(#home:not([hidden]) #menu-setup:not([hidden])){background:#075eae url('menu-day-background.png') center/cover}
#overlay:has(#home:not([hidden]) #menu-setup[data-mode="free"]:not([hidden])){background:#001336 url('menu-night-background.png') center/cover}
#home #menu-setup #play{font:1000 20px/1 GameText;letter-spacing:.02em;border-radius:26px;min-height:44px;margin:0;padding:10px;background:linear-gradient(#fff99a,#ffce39 65%,#ffbd1e);color:#051a2f;box-shadow:inset 0 2px 3px white,0 0 0 3px #0088c277,0 0 9px #15bdff88}
#menu-setup .premium-top button{margin-bottom:0}
.crew-subtitle{font:700 8px GameText;letter-spacing:.03em;color:#b3e8ff;margin:5px 0}
#panel[data-front]:is([data-front="crew"],[data-front="store"],[data-front="world"]):not([data-front=""]) #closepanel{width:65px;min-width:65px;min-height:35px;height:35px;border-radius:8px;border:1px solid #50c7ff;background:var(--menu-glass);box-shadow:0 0 7px #00a7ff55}
#panel[data-front="store"] #shop-message:empty{display:none}
#panel[data-front="store"] .wardrobe-heading{display:flex;align-items:center;justify-content:space-between;height:3%;min-height:20px;margin:0;padding:0;border:0;background:none;box-shadow:none}
#panel[data-front="store"] .wardrobe-heading h3{font:900 15px/1 GameText;color:#ecfaff;margin:0;padding:0;text-transform:none;letter-spacing:0}#panel[data-front="store"] .wardrobe-heading small{font:750 9px GameText;color:#8ce9ff;margin:0}
#panel[data-front="store"] .wardrobe-duo .product-card .product-art{height:100%;min-height:0;display:flex;position:relative;padding:0;overflow:hidden}
#panel[data-front="store"] .wardrobe-duo .product-art .shop-sprite{height:100%;min-height:0;width:auto;max-width:70%;aspect-ratio:3/4}
#panel[data-front="store"] .wardrobe-duo .shop-card-copy h3{font:900 15px/1.1 GameText;text-transform:none;margin:0 0 3px;padding:0}
#panel[data-front="store"] .wardrobe-duo .shop-card-copy p{font:500 9px/1.2 GameText;margin:0}
#panel[data-front="store"] .wardrobe-duo .shop-card-copy .shop-buy{margin:0;min-height:32px}
#panel[data-front="store"] .shop-card-copy::before,#panel[data-front="store"] .shop-card-copy::after{content:none}
#panel[data-front="store"] .wardrobe-duo{margin:0;padding:0;border:0}
#panel[data-front="store"] .wardrobe-duo .duo-art .shop-sprite{flex:0 1 62%;height:100%;width:62%;margin:0 -5%;max-width:none}
#panel[data-front="store"] .product-art .shop-sprite{flex:0 1 64%;height:100%;min-height:0;max-width:70%}
#panel[data-front="store"] .outfit-detail button:disabled,#panel[data-front="crew"] .premium-crew-detail button:disabled,#panel[data-front="store"] .premium-crew-detail button:disabled{opacity:1;border-color:#33c2a2;background:linear-gradient(#075343,#013835);color:#96f6d9}
#results #resulttitle{position:static;inset:auto;width:auto;max-width:none;white-space:normal;font:1000 clamp(36px,10.8vw,52px)/1 SkyArcade;color:#e7fbff;text-shadow:0 2px #169ad9,0 0 8px #019fff;transform:none;text-align:center;z-index:1}
#results #resultlabel{z-index:2}
#results #reason{width:100%;max-width:none;align-self:stretch;flex-shrink:0}
#results #resultscore{font-size:43px}#results #resultscore em{display:block;font:750 9px GameText;letter-spacing:.35em;margin:6px 0 0}
#results .flight-score{height:12%;min-height:92px;padding:8px 0}
#results .result-top{order:0}#results .result-banner{order:1}#results .flight-score{order:2}#results .result-stats{order:3}#results #reason{order:4}#results #double-crystals{order:5}#results #save-status{order:5}#results #again{order:6}#results #change-character{order:7}#results .navgrid{order:8}#results #world-results{order:9}
#results[data-mode="free"] .navgrid{display:contents}#results[data-mode="free"] #replay{order:8;width:48%;min-height:39px}#results[data-mode="free"] #world-results{order:8;width:48%;align-self:flex-end;margin-top:-47px}#results[data-mode="free"] #backhome{order:9;width:60%;align-self:center;min-height:38px}
#results .result-crew{background-repeat:no-repeat}
#characterselect[data-step="loadout"] #select-name{top:10px;bottom:auto;left:3%;width:42%;text-align:left;text-transform:uppercase;font-size:21px;z-index:2}
#characterselect[data-step="loadout"] #select-portrait{transform:scale(1.35);transform-origin:center 75%}
#characterselect[data-step="loadout"] .select-art-panel{padding:25px 0 0;background:linear-gradient(#002b6c44,#04265133),url('menu-day-background.png') center/cover}
#characterselect #select-name{text-transform:uppercase}
#characterselect .select-art-panel{background:linear-gradient(90deg,transparent,#03265988),url('menu-day-background.png') center/cover}
#characterselect #select-title{color:#fff3b8;text-shadow:0 2px #91652f,0 0 8px #172e65}
#characterselect #select-back{width:70%;margin:8px auto 0}
#characterselect #selection-settings{position:absolute;right:5%;top:2%;height:38px;width:38px;min-height:38px;font:800 24px GameText;padding:0;border-radius:9px}
#characterselect .select-hero{background:linear-gradient(90deg,#08326655,#011c43f5 60%)}
#menu-setup[data-mode="free"] .difficulty-control{height:13%;grid-template-rows:19px 1fr 20px}
#menu-setup[data-mode="free"] #play{top:70%;height:6.5%}#free-climb-actions{top:78.5%}
#menu-setup[data-mode="free"] .premium-top{align-items:flex-start}#menu-setup[data-mode="free"] .premium-top button{margin-top:0}
#menu-setup[data-mode="free"] #setup-subtitle{font-size:10px;font-weight:800;letter-spacing:.04em}
#panel[data-front] .premium-roster .roster-member{position:relative;isolation:isolate;background:linear-gradient(#073966e8,#001d42f5)}
#panel[data-front] .premium-roster .crew-portrait{position:absolute;width:140%;max-width:none;height:auto;aspect-ratio:3/4;left:-20%;top:0;background-size:400% 200%;background-position:0 0;flex:none;z-index:-1}
.premium-roster b,.premium-roster small{position:relative;z-index:1;background:#02224bde;border-radius:4px;padding:2px 3px;margin:0}
#panel[data-front="crew"] .section-tabs{height:4%;min-height:32px;margin-bottom:8px}#panel[data-front="crew"] .section-tabs button{min-height:32px;padding:5px}
#panel[data-front="crew"] .section-tabs [aria-pressed="true"]{background:#06294add;color:#fff2b2;border-color:#fff094;box-shadow:inset 0 0 4px #ffe47a,0 0 7px #ffd34999}
.detail-portrait{position:relative;width:100%;height:100%;overflow:hidden;border-radius:12px 0 0 12px;background:linear-gradient(90deg,transparent,#03235988),url('menu-night-background.png') center/cover}
.detail-portrait>.crew-portrait,.detail-portrait>.shop-sprite{position:absolute;display:block;width:175%;height:auto;max-width:none;aspect-ratio:3/4;left:-37.5%;top:0;background-size:400% 200%;background-position:0 0;background-repeat:no-repeat}
#panel[data-front="store"] .shop-crew-tabs button{overflow:hidden;position:relative;isolation:isolate}
#panel[data-front="store"] .shop-crew-tabs .shop-sprite{position:absolute;width:155%;height:auto;aspect-ratio:3/4;top:0;left:-27.5%;z-index:-1}
#panel[data-front="store"] .shop-crew-tabs button>span:not(.shop-sprite){padding:3px 1px;width:100%;border-radius:3px;background:#022455de;z-index:1}
#panel[data-front="store"] .merchant{padding:0 45% 0 0;align-items:flex-end}
#panel[data-front="store"] .merchant>div{width:100%;margin-bottom:5px;padding:12px}
#panel[data-front="store"] .merchant h3{font:900 15px/1.2 GameText;margin:0 0 5px}#panel[data-front="store"] .merchant p{font:500 12px/1.3 GameText}
#panel[data-front="store"] .merchant-portrait{width:56%;height:145%;bottom:-5%;right:-4%;background-size:400% 200%;background-position:0 0}
#panel[data-front="store"] .featured-noads .product-card{grid-template-columns:25% 75%;padding:12px 10px}
.ad-illustration>span{width:65px;height:65px;border:5px solid #ff6e59;border-radius:50%;background:#03203d;color:#f4fbff;font-size:31px}.ad-illustration>span::after{content:'';position:absolute;width:60px;height:5px;background:#ff6e59;transform:rotate(48deg)}.ad-illustration>b{display:none}
#panel[data-front="store"] .featured-noads .shop-card-copy{padding-left:8px}
#panel[data-front="store"] .gems-heading{border:1px solid #28c4ff;border-radius:10px;background:linear-gradient(110deg,#031e49ed,#010c2cbf);padding-left:12px;height:16%}
#panel[data-front="store"] .gem-pack{border-color:#28beed;border-radius:9px;background:radial-gradient(at 50% 60%,#54247177,transparent 60%),#001335f2}
#panel[data-front="store"] .gem-pack .shop-card-copy .shop-buy{background:linear-gradient(#fff897,#ffdc49 45%,#ffc426);border:1px solid #fff6a3;box-shadow:inset 0 1px white,0 0 8px #ffdd4655;color:#041d30;border-radius:8px;min-height:34px;font-size:16px}
#panel[data-front="store"] .gem-pack h3 strong{font-size:25px;letter-spacing:0}#panel[data-front="store"] .gem-pack h3 span{font-size:10px;letter-spacing:.1em}
#panel[data-front="store"] .shop-shell[data-shop-view="gems"] #purchase-info{font-size:8px;max-width:65%;text-align:left}
.world-table{padding:7px 6px 6px;border:1px solid #21dcff;border-radius:13px;background:linear-gradient(120deg,#04214ff0,#000d2cf5);box-shadow:0 0 8px #00bfff70}
.world-table .world-columns{padding:2px 4px 7px;font-size:7px;min-height:22px}
.world-table .world-list{gap:0}
#panel[data-front="world"] .world-table .world-row{height:4.8vh;min-height:36px;background:none;border:0;border-bottom:1px solid #17437b;border-radius:0;box-shadow:none;padding:2px 4px}
#panel[data-front="world"] .world-table .world-row[data-rank="1"]{border:1px solid #ecc84c!important;border-radius:6px;background:linear-gradient(90deg,#554921aa,#06214bee)!important}
.world-row .world-character{background-size:400% auto!important;background-position:0 0!important}
.world-row[data-rank="1"]>b,.world-row[data-rank="2"]>b,.world-row[data-rank="3"]>b{display:grid;place-items:center;border:2px solid currentColor;border-radius:50%;width:27px;height:27px;font-size:12px}
#world-content>h3{font-size:9px;margin:10px 0 5px}#world-content>.panel-note{font-size:9px;margin:7px 0 4px}
#world-content>.micro{font-size:8px;background:#002655a6;padding:3px;border-radius:5px}
#world-content>.world-list>.world-row{height:6vh;min-height:44px}

/* The chapter/launch references use a stone overlook; the gift/shop keep their own sets. */
#overlay:has(#characterselect:not([hidden])),#overlay:has(#home:not([hidden]) #menu-setup:not([hidden])){background-image:url('menu-stage-day.png')}
#overlay:has(#home:not([hidden]) #menu-setup[data-mode="free"]:not([hidden])),#panel[data-front="world"]{background-image:url('menu-stage-night.png')}
#characterselect .select-art-panel,#characterselect[data-step="loadout"] .select-art-panel{background-image:linear-gradient(90deg,transparent,#03265988),url('menu-stage-day.png')}

/* Preserve sprite proportions and the approved preflight panel balance. */
#characterselect[data-step="loadout"] .select-hero{grid-template-columns:58% 40%;gap:2%;margin:10px 0 4px}
#characterselect[data-step="loadout"] .select-art-panel{background:linear-gradient(#00305b22,#021d4e22),url('menu-stage-day.png') center/cover;padding:25px 0 0}
#characterselect[data-step="loadout"] #select-portrait{transform:scale(1.65);transform-origin:center 72%}
#characterselect[data-step="loadout"] #select-name{width:52%;font-size:21px}
#characterselect[data-step="loadout"] .select-hero>div:not(.select-art-panel){padding:10px;text-align:left}
#characterselect[data-step="loadout"] .select-feature-eyebrow{margin:0 0 4px}
#characterselect[data-step="loadout"] .select-feature-eyebrow::after{font-size:9px;letter-spacing:.14em}
#characterselect[data-step="loadout"] #select-talent::before{content:'✷';display:block;font:900 34px/1 GameText;text-align:center;color:#56eaff;text-shadow:0 0 9px #00aeff;margin-bottom:7px}
#characterselect[data-step="loadout"] #select-talent{font-size:15px;line-height:1.1;margin:5px 0;color:#54e9ff}
#characterselect[data-step="loadout"] #select-description{font-size:10px;line-height:1.25}
#characterselect[data-step="loadout"] #select-special-note{font-size:8px;line-height:1.3;border-top:1px solid #559ac7;margin:8px 0 0;padding-top:6px}
#characterselect #preflight-outfit-step{position:relative}
#characterselect #preflight-outfit-title{background:#042859c9;border-radius:5px;padding:5px 4px;font-size:15px;margin:4px 0}
#characterselect #preflight-outfit-status{position:absolute;top:4px;right:4px;max-width:40%;font-size:7px;text-align:right;margin:0;padding:5px 0;color:#d6eaff}
#characterselect #select-destination{text-transform:uppercase;text-shadow:0 1px 4px #001627;letter-spacing:.11em;font-size:9px}
.story-overlook{top:15%;width:auto;height:17%;aspect-ratio:3/4;left:2%}
.story-overlook span{width:100%;height:100%}
#menu-setup[data-mode="story"]:has(.chapter-locked:nth-child(2)) .story-overlook{top:21%;height:18%}
#menu-setup[data-mode="story"]:has(.chapter-locked:nth-child(2)) .chapter-feature{top:38%;height:17.5%}
#menu-setup[data-mode="story"]:has(.chapter-locked:nth-child(2)) .chapter-rail{top:57%;height:12.5%}
#menu-setup[data-mode="story"]:has(.chapter-locked:nth-child(2)) .difficulty-control{top:71%;height:8%}
#menu-setup[data-mode="story"]:has(.chapter-locked:nth-child(2)) #play{top:81.5%}
#menu-setup .chapter-locked{background:radial-gradient(ellipse at 70% 20%,#1c547c66,transparent 35%),radial-gradient(ellipse at 20% 40%,#23418d55,transparent 35%),#001936}
#menu-setup .chapter-lock{display:block;width:19px;height:21px;margin:0 0 5px;color:#aacdff}
#menu-setup .chapter-lock svg{display:block;width:100%;height:100%}
/* Clear reference outlines and readable live data at phone scale. */
#characterselect .select-hero,#characterselect .select-roster button,#characterselect[data-step="loadout"] .select-hero>div,#characterselect .preflight-look,.free-stats{border-color:#40d8ff;box-shadow:inset 0 0 4px #62ceff55,0 0 7px #00a4ff77;background-color:#001f49}
#characterselect .select-roster [aria-pressed="true"],#characterselect .preflight-look[aria-pressed="true"]{border-color:#ffe987;box-shadow:inset 0 0 5px #ffe993,0 0 9px #ffd24a}
#menu-setup[data-mode="free"] #setup-title{font-size:44px}
#menu-setup[data-mode="free"] #setup-subtitle{font-size:9px;left:3%;width:94%;white-space:nowrap}
#free-climb-art{width:auto;height:100%;aspect-ratio:3/4;justify-self:center}
.free-stats h2{text-transform:uppercase;font-size:25px}.free-stats{padding:11px 9px}.free-stats strong{margin-bottom:8px}
#menu-setup[data-mode="free"] #difficulty-pills button[aria-pressed="true"]{border-color:#fff28c;background:linear-gradient(#67532166,#002344);color:#ffefb7;box-shadow:inset 0 0 5px #ffe579,0 0 8px #ffc924}
#results .flight-score{height:14%;min-height:108px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px 0;gap:4px}
#results #resultscore{display:block;font-size:44px;line-height:1;margin:0}
#results #resultscore em{font-size:9px;line-height:1;margin:6px 0 0}
#results #resulttitle{align-self:start;padding-top:38px;font-size:44px}
#results[data-mode="free"] #world-results{order:9;min-height:39px;margin-top:-47px}
#results[data-mode="free"] #backhome{order:10}
#results #again{font-size:19px}#results #change-character{font-size:16px}
#results .result-stats strong{font-size:18px}.result-stats small{font-size:8px}
#results #world-result-button{font-size:10px!important}
#panel[data-front="crew"] .section-tabs button[aria-pressed="true"]{background:#06294add;color:#fff2b2;border-color:#fff094;box-shadow:inset 0 0 4px #ffe47a,0 0 7px #ffd34999}
.detail-portrait>.crew-portrait,.detail-portrait>.shop-sprite{width:155%;left:-27.5%}
#panel[data-front] .premium-roster .crew-portrait[style*="veil"]{width:120%;left:-10%}
#panel[data-front] .premium-roster .crew-portrait[style*="unit"],#panel[data-front] .premium-roster .crew-portrait[style*="monster"]{top:-15%}
#panel[data-front="store"] .merchant{overflow:visible}
#panel[data-front="store"] .merchant .merchant-portrait{width:auto;max-width:none;aspect-ratio:3/4;height:135%;bottom:0;right:0;flex:none;margin:0;background-size:400% 200%}
#panel[data-front="store"] .merchant h3{font-size:15px}#panel[data-front="store"] .merchant p{font-size:11px}
#panel[data-front="store"] .merchant>div{padding:10px}
#panel[data-front="store"] .featured-card .shop-card-copy h3{text-transform:none;font-size:23px}

#results #world-result-button{margin:0;display:block}#results #world-results{padding:0;border:0;background:none;box-shadow:none;flex-shrink:0}
#panel[data-front="store"] .outfit-detail .detail-portrait>.shop-sprite{width:125%;left:-12.5%;top:-10%}
#panel[data-front="store"] .outfit-card{position:relative;isolation:isolate}
#panel[data-front="store"] .outfit-card .shop-sprite{position:absolute;width:135%;height:auto;aspect-ratio:3/4;left:-17.5%;top:0;z-index:-1;flex:none}
#panel[data-front="store"] .outfit-card strong{position:relative;background:#011b43e8;padding:2px;z-index:1;width:100%;font-size:9px;line-height:1.1}
#panel[data-front="store"] .outfit-card small{width:100%;position:relative;border:1px solid #38b5ff;background:linear-gradient(#064e8b,#003266);border-radius:5px;min-height:20px;display:grid;place-items:center;color:white;font-size:10px}
#panel[data-front="store"] .outfit-card small[data-price="cash"]{background:linear-gradient(#fff486,#ffc52e);color:#072135;border-color:#fff38b}
#panel[data-front="store"] .outfit-card small[data-price="owned"]{background:#064234;color:#6df8cc;border-color:#20dca6}
#panel[data-front="store"] .premium-roster small{min-height:19px;display:grid;place-items:center;border-radius:5px;border:1px solid #36b5ff;background:linear-gradient(#09538d,#03214e);font-size:10px}
#panel[data-front="store"] .premium-roster small+small{border-color:#fff28b;background:linear-gradient(#fff483,#ffca31);color:#051d2e}
#panel[data-front="store"] .wardrobe-heading{border-radius:4px;background:#001e45d9;padding:0 4px}
#panel[data-front="store"] .shop-footer{border-top:1px solid #197cb388;background:#001a3be6;border-radius:4px;padding:2px 5px}
#panel[data-front="store"] #restore-purchases{border:1px solid #3984bd;border-radius:6px;padding:5px 9px}
#panel[data-front="world"] .premium-heading h1{font-size:31px}
#world-content>.panel-note,#world-content>.micro,#world-content>h3,#panel[data-front="world"] #world-refresh{background:#001b42e8;color:#cceeff;border-radius:5px;padding:5px;margin:4px 0}
#world-content>h3{font-size:10px;text-align:left;color:#52e4ff;padding:7px 5px}
#panel[data-front="world"] #world-refresh{width:100%;font-size:11px}
.world-row .world-player{font-size:11px}.world-row>strong{font-size:12px}.world-row .world-difficulty{font-size:8px}
#panel[data-front="store"] .gem-pack:nth-child(1) .gem-illustration{width:65%;left:17.5%;transform:scale(.82)}
#panel[data-front="store"] .gem-pack:nth-child(2) .gem-illustration{transform:scale(.9)}
#panel[data-front="store"] .gem-pack:nth-child(4) .gem-illustration{transform:scale(1.12)}

#menu-setup .chapter-feature{padding:16px}
#menu-setup .chapter-feature h2{font-size:24px;margin:5px 0 7px}
#menu-setup .chapter-feature p{font-size:12px;line-height:1.3;margin:5px 0}
#menu-setup .chapter-feature>span{font-size:8px;letter-spacing:.03em;margin-top:7px}
#overlay:has(#home:not([hidden]) #menu-setup[data-mode="story"]:not([hidden])){background-image:url('menu-story-background.png')}
#menu-setup[data-mode="story"] .story-overlook{left:3%}
#characterselect[data-step="loadout"] .select-hero>div.select-art-panel{background:linear-gradient(#00305b22,#021d4e22),url('menu-stage-day.png') center/cover}
#characterselect[data-step="loadout"] #select-portrait{transform:scale(1.35);transform-origin:center 72%}
#results #again::before{content:'⟳';font:900 27px/1 system-ui;vertical-align:-2px;margin-right:10px}
#results #replay::before{content:'▶';font:900 14px/1 system-ui;margin-right:8px}
#results #backhome::before{content:'⌂';font:900 19px/1 system-ui;margin-right:7px}
#results #reason::before{content:'✦';font:900 25px/1 system-ui;color:#ffe988;margin-right:13px}
#panel[data-front="store"] .shop-sections button{display:flex;align-items:center;justify-content:center;gap:5px;font-size:10px}
#panel[data-front="store"] .shop-sections button::before{content:'';display:inline-block;width:15px;height:15px;background:currentColor;mask:center/contain no-repeat var(--tab-icon);flex-shrink:0}
#panel[data-front="store"] [data-shopsection="featured"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m10 1 3 6 7 1-5 5 1 7-6-3-6 3 1-7-5-5 7-1z'/%3E%3C/svg%3E")}
#panel[data-front="store"] [data-shopsection="crew"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cellipse cx='5' cy='6' rx='3' ry='4'/%3E%3Cellipse cx='15' cy='6' rx='3' ry='4'/%3E%3Cpath d='M10 8C5 8 1 15 4 18c2 2 4-1 6-1s4 3 6 1c3-3-1-10-6-10'/%3E%3C/svg%3E")}
#panel[data-front="store"] [data-shopsection="wardrobes"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 1-6 5 3 4 3-2v11h8V8l3 2 3-4-6-5c0 4-8 4-8 0z'/%3E%3C/svg%3E")}
#panel[data-front="store"] [data-shopsection="gems"]{--tab-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 2-4 5 10 12L20 7l-4-5zm1 2h3L5 7H3zm6 0h4l2 3h-3zM7 7l3-3 3 3-3 8z' fill-rule='evenodd'/%3E%3C/svg%3E")}

#menu-setup[data-mode="story"] #setup-subtitle{text-shadow:0 1px 3px #001d45,0 0 5px #001d45}
/* Approved Story states only. Existing controls share the artwork's coordinate space. */
.story-approved-surface{display:contents}
#story-approved-art{display:none}
#overlay:has(#menu-setup[data-story-approved]:not([data-story-approved=""]):not([hidden])){overflow:hidden;background:#075eae}
#home:has(#menu-setup[data-story-approved]:not([data-story-approved=""]):not([hidden])){width:100%;max-width:none}
#menu-setup[data-story-approved]:not([data-story-approved=""]){padding:0;min-height:0!important;height:100dvh;overflow:hidden}
#menu-setup[data-story-approved]:not([data-story-approved=""]) .story-approved-surface{display:block;position:absolute;left:50%;top:calc(50% + 18px);width:max(100%,calc(100dvh * 852 / 1846));aspect-ratio:852/1846;transform:translate(-50%,-50%)}
#menu-setup[data-story-approved]:not([data-story-approved=""]) .story-approved-surface> *{display:none!important}
#menu-setup[data-story-approved]:not([data-story-approved=""]) #story-approved-art{display:block!important;width:100%;height:100%;pointer-events:none;user-select:none}
#menu-setup[data-story-approved]:not([data-story-approved=""]) :is(.premium-top,.difficulty-control,#difficulty-pills,#levelselect){display:contents!important}
#menu-setup[data-story-approved]:not([data-story-approved=""]) :is(.premium-top,.difficulty-control)>:not(button):not(#difficulty-pills){display:none!important}
#menu-setup[data-story-approved]:not([data-story-approved=""]) :is(#menu-setup-back,#setup-settings,#levelselect button,#difficulty-pills button,#play){display:block!important;position:absolute!important;min-height:0!important;min-width:0!important;padding:0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:transparent!important;font-size:0!important;text-shadow:none!important;transform:none!important;filter:none!important;opacity:1!important;touch-action:manipulation}
#menu-setup[data-story-approved]:not([data-story-approved=""]) button>*{visibility:hidden}
#menu-setup[data-story-approved]:not([data-story-approved=""]) button::before,#menu-setup[data-story-approved]:not([data-story-approved=""]) button::after{display:none!important}
#menu-setup[data-story-approved]:not([data-story-approved=""]) button:focus-visible{outline:2px solid #fff5be;outline-offset:-3px}
#home #menu-setup[data-story-approved="new"] #menu-setup-back{left:4.694836%;top:5.362947%;width:12.206573%;height:5.579632%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #setup-settings{left:83.450704%;top:5.362947%;width:12.089202%;height:5.579632%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #play{left:2.934272%;top:81.473456%;width:94.366197%;height:6.229686%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #story-level-0{left:2.934272%;top:56.988082%;width:18.075117%;height:12.567714%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #story-level-1{left:22.535211%;top:56.988082%;width:17.253521%;height:12.567714%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #story-level-2{left:41.314554%;top:56.988082%;width:17.723005%;height:12.567714%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #story-level-3{left:60.446009%;top:56.988082%;width:17.488263%;height:12.567714%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #story-level-4{left:79.577465%;top:56.988082%;width:17.488263%;height:12.567714%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #difficulty-casual{left:36.737089%;top:72.968581%;width:18.427230%;height:4.604550%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #difficulty-standard{left:55.281690%;top:72.968581%;width:20.070423%;height:4.604550%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="new"] #difficulty-expert{left:75.586854%;top:72.968581%;width:19.131455%;height:4.604550%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #menu-setup-back{left:3.990610%;top:4.712893%;width:12.441315%;height:5.579632%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #setup-settings{left:83.802817%;top:4.712893%;width:12.206573%;height:5.579632%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #play{left:2.934272%;top:75.189599%;width:94.366197%;height:5.850488%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #story-level-0{left:2.934272%;top:50.704225%;width:17.723005%;height:13.813651%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #story-level-1{left:22.183099%;top:50.704225%;width:17.605634%;height:13.813651%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #story-level-2{left:41.079812%;top:50.704225%;width:17.957746%;height:13.813651%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #story-level-3{left:60.211268%;top:50.704225%;width:17.723005%;height:13.813651%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #story-level-4{left:79.460094%;top:50.704225%;width:17.723005%;height:13.813651%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #difficulty-casual{left:36.150235%;top:67.226436%;width:18.544601%;height:4.171181%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #difficulty-standard{left:54.929577%;top:67.226436%;width:19.718310%;height:4.171181%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="mid"] #difficulty-expert{left:74.765258%;top:67.226436%;width:19.953052%;height:4.171181%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #menu-setup-back{left:3.873239%;top:5.254605%;width:12.676056%;height:5.633803%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #setup-settings{left:83.802817%;top:5.254605%;width:12.206573%;height:5.633803%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #play{left:2.934272%;top:76.706392%;width:94.366197%;height:5.850488%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #story-level-0{left:2.934272%;top:52.221018%;width:17.723005%;height:14.247021%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #story-level-1{left:22.183099%;top:52.221018%;width:17.605634%;height:14.247021%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #story-level-2{left:41.079812%;top:52.221018%;width:17.957746%;height:14.247021%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #story-level-3{left:60.211268%;top:52.221018%;width:17.723005%;height:14.247021%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #story-level-4{left:79.460094%;top:52.221018%;width:17.723005%;height:14.247021%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #difficulty-casual{left:36.150235%;top:69.014085%;width:18.544601%;height:4.171181%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #difficulty-standard{left:54.929577%;top:69.014085%;width:19.718310%;height:4.171181%;right:auto;bottom:auto}
#home #menu-setup[data-story-approved="complete"] #difficulty-expert{left:74.765258%;top:69.014085%;width:19.953052%;height:4.171181%;right:auto;bottom:auto}

/* Mirror only the topmost sky into the small camera-clearance extension; source art stays intact. */
#menu-setup[data-story-approved="new"]{--story-art:url('story-hub-approved-new.png')}
#menu-setup[data-story-approved="mid"]{--story-art:url('story-hub-approved-mid.png')}
#menu-setup[data-story-approved="complete"]{--story-art:url('story-hub-approved-complete.png')}
#menu-setup[data-story-approved]:not([data-story-approved=""]) .story-approved-surface::before{content:'';position:absolute;left:0;bottom:100%;width:100%;height:20px;background-image:var(--story-art);background-position:center top;background-size:100% auto;transform:scaleY(-1);pointer-events:none}
/* Keep the approved Story art as the visual shell during live chapter/difficulty edits. */
#menu-setup[data-story-approved]:not([data-story-approved=""]) .story-approved-surface>#setup-subtitle{display:flex!important;align-items:center;justify-content:center;position:absolute;z-index:5;left:15%;right:15%;top:18.8%;width:auto;max-width:none!important;height:3.9%;box-sizing:border-box;margin:0;padding:1px 3px;text-align:center;white-space:normal;font:900 2.05cqw/1.25 GameText,system-ui;letter-spacing:.09em;color:#d4efff;text-shadow:0 1px 3px #002f66,0 0 5px #005baa;background:linear-gradient(90deg,transparent 0%,#06356cff 6%,#06356cff 94%,transparent 100%);border-radius:2cqw}
#menu-setup[data-story-approved]:not([data-story-approved=""])[data-story-shell="mid"] .story-approved-surface>#setup-subtitle,#menu-setup[data-story-approved]:not([data-story-approved=""])[data-story-shell="complete"] .story-approved-surface>#setup-subtitle{left:31%;right:29%;top:16.5%;background:linear-gradient(90deg,transparent 0%,#06356cff 2%,#06356cff 98%,transparent 100%)}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#story-selected{display:block!important;position:absolute;z-index:4;left:3%;right:3%;box-sizing:border-box;margin:0;padding:3% 5%;overflow:hidden;border:2px solid #55cfff;border-radius:3cqw;background-color:#05244feF!important;background-image:linear-gradient(90deg,#031b3df2 0%,#062752dc 44%,#04284e38 100%),var(--chapter-live-art)!important;background-position:center!important;background-size:cover!important;box-shadow:inset 0 0 0 2px #9feaffaa,0 0 12px #29bdffaa}
#menu-setup[data-story-shell="new"][data-story-interactive="true"] .story-approved-surface>#story-selected{top:38.3%;height:17.7%}
#menu-setup[data-story-shell="mid"][data-story-interactive="true"] .story-approved-surface>#story-selected{top:31.3%;height:18.4%}
#menu-setup[data-story-shell="complete"][data-story-interactive="true"] .story-approved-surface>#story-selected{top:32.7%;height:18.7%}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#story-selected>span{font-size:2.05cqw}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#story-selected h2{font-size:5.1cqw;margin:1.2cqw 0}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#story-selected p{font-size:2.35cqw;line-height:1.3;margin:.7cqw 0;max-width:52%}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect{display:grid!important;z-index:4;left:3%;right:3%;box-sizing:border-box;margin:0;padding:0;gap:1.6cqw}
#menu-setup[data-story-shell="new"][data-story-interactive="true"] .story-approved-surface>#levelselect{top:57.1%;height:12.5%}
#menu-setup[data-story-shell="mid"][data-story-interactive="true"] .story-approved-surface>#levelselect{top:50.8%;height:13.7%}
#menu-setup[data-story-shell="complete"][data-story-interactive="true"] .story-approved-surface>#levelselect{top:52.3%;height:14.1%}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect button{display:flex!important;position:relative!important;inset:auto!important;min-height:0!important;width:auto!important;height:100%!important;padding:2% 1%!important;justify-content:flex-end;overflow:hidden;border:1px solid #5bcfff;border-radius:2.8cqw;background:linear-gradient(180deg,#0218342b,#001b39e8 75%)!important;box-shadow:inset 0 0 9px #058dca55;color:#f5fbff!important;font:850 2.2cqw/1.1 GameText!important;text-shadow:0 1px 3px #00142b}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect button[aria-pressed="true"]{border:2px solid #ffe879!important;box-shadow:0 0 9px #ffd94c,inset 0 0 5px #ffda55!important}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect .chapter-art{z-index:-2;background-size:cover}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect button::after{inset:20% 0 0;background:linear-gradient(transparent,#00152cfa 80%)}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect b{font:900 3.4cqw/1 GameText;color:#69e7ff}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect strong{font:850 1.65cqw/1.12 GameText;min-height:2.2em;margin:1cqw 0 .5cqw}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect small{font:800 1.5cqw/1 GameText}
#home #menu-setup[data-story-interactive="true"] .story-approved-surface>.difficulty-control{display:grid!important;z-index:4;left:3%;right:3%;box-sizing:border-box;margin:0;padding:2.2% 3%;grid-template-columns:30% 70%;grid-template-rows:1fr 1fr;border:1px solid #56c7ff;border-radius:3cqw;background:linear-gradient(115deg,#062852,#031c3d);box-shadow:inset 0 0 0 1px #a4e7ff66,0 0 8px #009eea77}
#home #menu-setup[data-story-shell="new"][data-story-interactive="true"] .story-approved-surface>.difficulty-control{top:71.2%;height:8.3%}
#home #menu-setup[data-story-shell="mid"][data-story-interactive="true"] .story-approved-surface>.difficulty-control{top:65.6%;height:7.8%}
#home #menu-setup[data-story-shell="complete"][data-story-interactive="true"] .story-approved-surface>.difficulty-control{top:67.5%;height:7.8%}
#home #menu-setup[data-story-interactive="true"] .story-approved-surface>.difficulty-control>span{display:block!important;align-self:end;font:900 2.15cqw GameText;color:#c8f5ff}
#home #menu-setup[data-story-interactive="true"] .story-approved-surface>.difficulty-control #difficulty-note{display:block!important;font:600 1.8cqw/1.15 GameText;color:#d7edff}
#home #menu-setup[data-story-interactive="true"] .story-approved-surface>.difficulty-control>#difficulty-pills{display:grid!important;position:absolute;grid-area:auto;z-index:5;left:35%;top:17%;width:62%;height:66%;box-sizing:border-box;padding:.6cqw;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5cqw;border:1px solid #009bde;border-radius:2.7cqw;background:#001730}
#home #menu-setup[data-story-interactive="true"] .story-approved-surface>.difficulty-control>#difficulty-pills button{display:block!important;position:relative!important;inset:auto!important;min-width:0!important;min-height:0!important;width:auto!important;height:100%!important;padding:0!important;border:1px solid #114678!important;border-radius:2cqw!important;background:linear-gradient(#08345e,#001a37)!important;color:#d8f5ff!important;font:900 2cqw GameText!important;box-shadow:none!important}
#home #menu-setup[data-story-interactive="true"] .story-approved-surface>.difficulty-control>#difficulty-pills button[aria-pressed="true"]{background:linear-gradient(#fff189,#ffc323)!important;border-color:#fff299!important;color:#04172d!important;box-shadow:0 0 7px #ffd528!important}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#play{display:block!important;z-index:4;left:4%;width:92%;height:6%;min-height:0!important;margin:0;padding:0!important;border:2px solid #fff3a2;border-radius:7cqw;background:linear-gradient(#fff36d,#ffc023 56%,#f99e10)!important;color:#061933!important;font:1000 4.5cqw/1 GameText!important;box-shadow:inset 0 1px 4px #fffbd5,0 0 0 2px #08a5ef,0 0 10px #ffc62d}
#menu-setup[data-story-shell="new"][data-story-interactive="true"] .story-approved-surface>#play{top:81.8%}
#menu-setup[data-story-shell="mid"][data-story-interactive="true"] .story-approved-surface>#play{top:75.3%}
#menu-setup[data-story-shell="complete"][data-story-interactive="true"] .story-approved-surface>#play{top:76.4%}
/* Interactive chapter art fills the same approved feature panel as its static counterpart. */
#menu-setup[data-story-interactive="true"] .story-approved-surface>#story-selected{background-image:linear-gradient(90deg,#031b3df2 0%,#062752dc 44%,#04284e38 100%),var(--chapter-live-art)!important}

/* Compact phones must retain the complete approved menu and Settings hit target. */
@media(max-height:700px){
 #menu-front .menu-approved-composition{width:min(100%,calc(100dvh * 853 / 1844))}
}
#menu-front .menu-art-control{min-width:44px;min-height:44px}

/* Let compact Crew panels expose the complete Special copy and action. */
#panel[data-front="crew"] .crew-menu-copy{overflow-y:auto;overscroll-behavior:contain}
#panel[data-front="crew"] .crew-menu-copy>*{flex-shrink:0}

/* Saved Story progress must cover the labels baked into the decorative shell.
   Keep real labels/checks visible and mask the old rail beneath every live state. */
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect{background:#031b3d;border-radius:3cqw;box-shadow:0 0 0 2px #031b3d}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect button{background:#001936!important;border:1px solid #5bcfff!important;border-radius:2.8cqw!important}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect button>*{visibility:visible}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect button::after{display:block!important}
#menu-setup[data-story-interactive="true"] .story-approved-surface>#levelselect .chapter-check{position:relative;z-index:1;font:850 1.65cqw/1.2 GameText;margin:1cqw 0;color:#7affb0}
