/* Compact, playful console HUD: game state first, no document-like framing. */
:root{--gold:#ffd66b;--cream:#fff6d9;--muted:#b9dce4;font-family:ui-rounded,'Apple SD Gothic Neo','Malgun Gothic',system-ui,sans-serif}
body{background:radial-gradient(ellipse at 50% 20%,#386a81,#122d46 65%,#102139);gap:0}
#app{max-width:480px;background:#153650;box-shadow:0 0 0 4px #49788b,0 20px 65px #06142490;border-radius:22px}
#hud{padding:10px 14px 0;background:linear-gradient(#2c6884,#184963);border-bottom:3px solid #112f49}
.topline{margin-bottom:7px}.wordmark{font:900 18px ui-rounded,system-ui;letter-spacing:1px;color:#fff2b4;text-shadow:0 2px #17324b}.wordmark span{display:none}
.actions{gap:7px}.actions button{height:34px;width:36px;background:#f7e8b8;color:#254761;border:2px solid #17374d;border-radius:11px;box-shadow:0 3px #102d45;font-weight:900}
.statusline{gap:12px;padding-bottom:8px}.health-label{font-size:11px;margin-bottom:5px}.health-label b{font-weight:800;color:#fff3cb}.health-track{height:13px;border:2px solid #10354b;border-radius:8px;background:#09273a}#healthFill{background:linear-gradient(#b8ed7e,#58bd70);box-shadow:inset 0 2px #e4ffc780}
.count b{font:bold 23px ui-rounded,system-ui;color:#ffdc79}.count small{font-size:11px}.count>span{font-size:9px;color:#d9eef1}.progress{height:4px;background:#123d55;margin:0 -14px}.progress i{background:#ffe07b}
#missionBar{min-height:28px;padding:5px 12px;background:#f5e9c9;color:#25445b;border-bottom:3px solid #c6bc9d;font-size:11px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.field-top{padding:9px 10px;gap:8px}#chapter,#timer{background:#12334be8;border:2px solid #a2c8d166;border-radius:10px;padding:5px 9px;color:#fff3c4;font-weight:800;font-size:11px}#notice{font-size:12px;font-weight:800;color:#fff8d6;text-shadow:0 2px 3px #14212c;max-width:92%;border-radius:12px}
#tacticsControls{background:#13374f;padding:5px 12px;gap:8px}#tacticsControls button{border-radius:9px;border:2px solid #467589;background:#254f69;color:#cce4eb;font-weight:800;font-size:11px;padding:6px 12px}#tacticsControls button[aria-pressed=true]{background:#ffd471;color:#234358;border-color:#fff0ae;box-shadow:0 2px #b98b40}
#crewstrip{background:#12334b;padding:4px 10px;gap:4px}.crew-token{border-color:#d9f5df;background:#65bdb1;border-radius:7px 7px 4px 4px}
#loadout{background:#1c4560;border:0;padding:6px 10px;gap:6px}.arm-slot{min-height:36px;background:#e8dfba;color:#243d4f;border:2px solid #102e46;border-radius:10px;box-shadow:0 2px #102a42;font-size:10px;font-weight:800}.arm-slot small{color:#6d6245}.arm-slot.empty{background:#1b3a50;opacity:.5}.arm-slot svg{width:23px;height:23px}
#bottom{background:#173b55;min-height:42px;padding:6px 12px;border-top:0}.weapon-text b{font-size:11px}.weapon-text span{display:none}.blessing b{color:#ffdd78;font:bold 21px system-ui}.blessing span{font-size:10px}#weaponIcon{color:#ffdc77}
#dev{top:12px;right:100px;padding:7px 9px;border-radius:9px;background:#244c65;color:#cae6ed;border:1px solid #5e8c9e;min-height:29px}
.overlay{background:#092338d9;backdrop-filter:blur(5px)}.panel{border:3px solid #7698a6;border-radius:24px;background:linear-gradient(#235570,#133650);box-shadow:0 10px 0 #061e3480;padding:25px 22px;max-width:370px;color:#fff3d4}.panel h1,.panel h2{font-family:ui-rounded,system-ui;font-weight:900;letter-spacing:-1px;text-shadow:0 3px #112b41}.panel h1{font-size:45px;color:#ffe08a}.panel h2{font-size:27px}.panel .copy{font-size:12px;line-height:1.7;color:#d9edf0}.panel .eyebrow,.title-panel .badge,.title-panel .divider,.desktop-note{display:none}.subtitle{color:#a9e2dc;font-weight:800;letter-spacing:1px}.title-copy .smallprint{font-size:10px;color:#b0cdd6}.hero-art{filter:drop-shadow(0 8px 0 #10283d55)}
.panel button.primary,.primary{background:linear-gradient(#ffdf80,#efb851);border:2px solid #765520;border-radius:14px;color:#2d4051;font-size:15px;font-weight:900;letter-spacing:0;box-shadow:0 4px #a47732;min-height:46px}.panel button:not(.primary){border-radius:12px;font-weight:800;letter-spacing:0}.mode-card,.gift{border-radius:13px;border:2px solid #6a94a4;background:#1a4560}.mode-card.active{border-color:#ffda7d}
@media(max-height:740px){#hud{padding-top:6px}.topline{margin-bottom:4px}.actions button{height:29px}.statusline{padding-bottom:5px}#loadout{padding:4px 8px}.arm-slot{min-height:30px}#bottom{min-height:34px}#crewstrip{min-height:21px}.panel{padding:16px 20px}.panel h1{font-size:34px}#missionBar{min-height:26px;font-size:10px}}
@media(max-width:500px){#app{border-radius:0;box-shadow:none;max-width:none}}

/* Preserve the canvas' 420:660 ratio instead of stretching glyphs and sprites. */
#field{display:flex;align-items:center;justify-content:center;background:#102c40}
#game{flex:none;object-fit:contain;max-width:100%;max-height:100%;image-rendering:auto}
#missionBar{font-size:12px;line-height:1.6}.health-label{font-size:12px}
#bootLoading{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;background:radial-gradient(ellipse at 50% 35%,#245976,#0a1b30);color:#fff0c6;text-align:center;padding:24px}#bootLoading[hidden]{display:none}.boot-card{width:min(320px,100%)}.boot-crest{font-size:64px;color:#ffda84}.boot-card h1{font-size:38px;margin:18px 0}.boot-card p{min-height:48px;font-size:14px;line-height:1.7}#bootProgress{width:100%;height:17px;accent-color:#f7cb65}#bootRetry{margin-top:18px;padding:12px 22px;border:0;border-radius:12px;background:#ffe095;color:#16334c;font-weight:800}#bootRetry[hidden]{display:none}
#loadout{flex-wrap:wrap}.growth-strip{flex-basis:100%;display:flex;align-items:center;gap:8px;color:#b6eff3;font-size:11px;flex-wrap:wrap}.growth-strip progress{flex:1;min-width:50px;height:8px;accent-color:#75e1db}.growth-strip small{width:100%;font-size:10px;color:#e8d7ae}.growth-strip small:empty{display:none}.gift small{font-size:12px;line-height:1.6}.arm-slot small{font-size:10px}.arm-slot b{font-weight:800}
/* A single portrait game board: HUD and field scale together, without side gutters. */
body{height:100dvh;min-height:0;background:radial-gradient(ellipse at 50% 20%,#46526c,#181527 75%)}
#app{width:420px;min-width:420px;max-width:420px;height:940px;min-height:940px;max-height:940px;flex:none;display:grid;grid-template-rows:84px 28px 660px 32px 24px 72px 40px;border-radius:16px;transform-origin:center;background:#30283f;box-shadow:0 0 0 3px #0e101c,0 0 0 6px #62637d,0 18px 60px #0008}
#hud{grid-row:1;padding:7px 12px 0;background:linear-gradient(#595274,#332c46);border-bottom:3px solid #171523}.topline{margin-bottom:4px}.wordmark{color:#fff5cf;font-size:17px;text-shadow:0 2px #181421}.actions button{height:30px;width:32px;border-radius:7px;border:2px solid #171421;background:linear-gradient(#eeeeef,#a3a3bd);box-shadow:inset 0 2px #fff,0 3px #171421;color:#312747}
.statusline{padding-bottom:5px}.health-label{font-size:11px}.health-label span{color:#e8e3ed}.health-track{height:12px;border-color:#191525}.count b{font-size:21px;color:#ffe395}.count>span{font-size:9px}.progress{margin:0 -12px;background:#201a32}
#missionBar{grid-row:2;min-height:0;padding:4px 10px;border:0;background:#251e33;color:#eee2c8;font-size:11px;line-height:20px}
#field{grid-row:3;width:420px;height:660px;min-height:660px;display:block;background:#142b3c}#game{width:420px!important;height:660px!important;max-width:none;max-height:none;object-fit:contain}
.field-top{left:7px;right:7px;top:7px;padding:0;border:0;background:none;letter-spacing:0}#chapter,#timer{background:#2d233de8;border:2px solid #908199;border-radius:5px;padding:4px 8px;box-shadow:0 2px #13101a;color:#fff2d5;font-size:11px}
#tacticsControls{grid-row:4;padding:2px 10px;background:#30283e;gap:7px}#tacticsControls button{padding:2px 10px;min-height:26px;border-radius:5px;border:2px solid #181421;box-shadow:inset 0 2px #79708d;background:linear-gradient(#60556f,#44394f);color:#f0e7f7}#tacticsControls button[aria-pressed=true]{background:linear-gradient(#b180f4,#7652bb);color:#fff;border-color:#e1b8ff;box-shadow:inset 0 2px #e4baff,0 2px #241632}
#crewstrip{grid-row:5;padding:3px 8px;min-height:24px;background:#30283e;gap:4px}.crew-token{height:16px;width:16px;border-color:#a5efd4;background:#417e76}
#loadout{grid-row:6;align-content:center;padding:3px 8px;gap:4px;background:linear-gradient(#4a3e5c,#302638);overflow:hidden}.arm-slot{min-height:30px;padding:3px 4px;border-radius:5px;border:2px solid #d4af5f;background:linear-gradient(#635570,#392d46);color:#fff1c8;box-shadow:inset 0 2px #9a819d,0 2px #17111f}.arm-slot svg{width:22px;height:22px;color:#ffdd85;filter:drop-shadow(0 2px #181220)}.arm-slot small{color:#ffdf96;font-size:10px}.arm-slot.empty{opacity:.6;background:#2a2436;border-color:#6c6379}.arm-slot b{font-size:11px}.growth-strip{font-size:10px;gap:5px;line-height:11px}.growth-strip small{width:auto;font-size:8px;line-height:9px}.growth-strip progress{height:6px}
#bottom{grid-row:7;min-height:40px;padding:3px 10px;background:linear-gradient(#4e425f,#2d2539);border-top:2px solid #19141f}.weapon-text b{font-size:11px;color:#f9eac4}#weaponIcon{height:30px;width:30px;background:#30263f;border:2px solid #9c80bb;border-radius:5px}.blessing b{font-size:19px}.blessing span{font-size:9px}
#dev{top:9px;right:94px;min-height:25px;padding:4px 7px;border:2px solid #1c1728;border-radius:5px;background:#655774;color:#fff1ca;font-size:9px}
.overlay{background:#130e24bd;backdrop-filter:blur(3px)}.panel{max-width:390px;width:calc(100% - 24px);border:3px solid #242030;border-radius:12px;background:linear-gradient(#665476,#3d304d);box-shadow:inset 0 0 0 2px #a08aaf,0 6px #100c1b,0 12px 30px #0007;padding:24px 20px}.panel h2{font-size:25px;text-shadow:0 2px #211529}.panel .copy{color:#f2e8f5;font-size:13px}.panel .eyebrow{display:none}
.panel button.primary,.primary{position:relative;background:linear-gradient(#fff396 0%,#ffe454 50%,#ffda44 52%,#ffeb73);border:3px solid #fff1ae;border-radius:9px;color:#fff;font-size:20px;font-weight:900;min-height:54px;text-shadow:-1px -1px #443334,1px -1px #443334,-1px 1px #443334,2px 2px #443334;box-shadow:0 5px #c27a40,0 8px #241b28,inset 0 3px #fff8bf}
.panel .secondary{background:linear-gradient(#8964b3,#604483);border:2px solid #bd9cda;box-shadow:0 3px #25182f;color:#fff3e9;font-size:13px;border-radius:7px;min-height:40px}.panel button:active{transform:translateY(3px);box-shadow:inset 0 2px #24172c}
.gift,.mode-card{border:2px solid #a48ab5;background:linear-gradient(110deg,#5b486d,#35283f);border-radius:8px;box-shadow:inset 0 2px #7e678b,0 3px #211527}.gift{padding:15px 12px}.gift b{font-size:14px;color:#ffebba}.gift small{font-size:12px;color:#e5d7ee}.gift svg{color:#ffe09a;width:34px;height:34px;filter:drop-shadow(0 2px #22122d)}.gift:hover{border-color:#ffdf81;background:#705385}
.title-panel{min-height:calc(100% - 24px);margin:12px;max-height:calc(100% - 24px);justify-content:flex-end;background:linear-gradient(0deg,#21192ded,#271e38c9 38%,#31264255 70%)}.title-panel h1{font-size:47px;color:#fff1ae;text-shadow:0 3px #3d263a,0 5px #111}.title-panel .subtitle{color:#e1b6ff}.title-panel .hero-art{height:400px;width:300px;left:calc(50% - 150px);top:10%;object-fit:contain}.title-panel .title-copy{margin-top:340px}.title-panel .copy{font-weight:700;text-shadow:0 2px #12101a}.title-art{border-radius:9px;opacity:.85}.mode-card h3{color:#ffdf9a}.mode-card p{color:#dfd0ea}
#bootLoading{background:radial-gradient(ellipse at 50% 30%,#645884,#231a35)}#bootProgress{accent-color:#ffdc65}
@media(prefers-reduced-motion:reduce){button{transition:none}}
.skill-art{display:inline-block;flex:none;width:56px;height:56px;border:2px solid #f3cf79;border-radius:10px;box-shadow:0 3px #20162d,inset 0 0 0 1px #fff8;background-image:url('../../assets/odyssey-skills.png');background-size:400%;background-repeat:no-repeat}.arm-slot .skill-art{width:26px;height:26px;border-width:1px;border-radius:5px}.gift{gap:12px}.gift>span:not(.skill-art){flex:1;min-width:0}.speaker-portrait{display:block;width:72px;height:72px;background-repeat:no-repeat;border-radius:9px;border:2px solid #c7a467;box-shadow:0 3px #1c1427}.roster-panel{max-height:94%;padding:18px 14px}.roster-panel h2{font-size:24px}.roster-help{font-size:11px;color:#e4cee9;margin:8px 0 12px}.roster-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.roster-card{position:relative;padding:7px 3px;background:linear-gradient(#5d4a76,#30243f);border:2px solid #9882ac;border-radius:8px;color:#fff;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:0}.roster-card.selected{border-color:#ffe788;background:#806430;box-shadow:0 0 0 2px #fff2ab}.roster-card.unavailable{filter:saturate(.3)}.roster-card b{font-size:11px}.roster-card small{font-size:9px;color:#e1cde9}.roster-card strong{font-size:11px;color:#ffe098}.crew-rank{font-size:11px;font-weight:900;color:#fff0a5}.roster-card .speaker-portrait{width:76px;height:76px}.roster-panel .primary{margin-top:12px}#crewRoster{flex:.7;border-color:#d5af75;background:linear-gradient(#80629c,#4a335e);color:#ffe5ac}
.roster-panel>.primary{position:sticky;bottom:0;z-index:2;margin-bottom:5px}.roster-panel{scroll-padding-bottom:70px}
/* Quiet surfaces, illustrated choices and one clear primary action. */
.panel{border:2px solid #bda57a;border-radius:16px;background:linear-gradient(155deg,#3e354f,#241e32);box-shadow:inset 0 0 0 3px #191523,0 10px 35px #0008;padding:24px}.panel h2{font-size:24px;line-height:1.35;color:#fff2d8;text-shadow:0 2px #17121f}.panel .copy{color:#d4cadb;font-size:13px;line-height:1.75;margin:12px 0 18px}.panel .primary{min-height:50px;border:2px solid #ffe6a3;border-radius:10px;background:linear-gradient(#ffe39a,#e4b75f);color:#352a29;font-size:16px;text-shadow:none;box-shadow:inset 0 2px #fff1bf,0 3px #8a663d;letter-spacing:0}.panel .secondary{min-height:44px;border:1px solid #9682aa;border-radius:10px;background:#51425f;color:#f8eddf;font-size:13px;box-shadow:inset 0 1px #b6a1c333,0 2px #17111f}.panel .primary:hover{filter:brightness(1.08)}.panel .secondary:hover{background:#655074}.panel button:focus-visible{outline:3px solid #ade8df;outline-offset:3px}.panel .primary:active,.panel .secondary:active{transform:translateY(2px);box-shadow:none}.panel .secondary[data-action=dev]{background:transparent;border-color:#74667d;color:#bfb1cc;min-height:36px;font-size:11px}.gift-list{gap:12px;margin:18px 0}.gift{padding:14px;border:1px solid #93809d;background:linear-gradient(110deg,#4c3c5d,#30263e);border-radius:12px;box-shadow:inset 0 1px #c1a4c433,0 3px #17121e}.gift b{font-size:14px;color:#ffe4a8}.gift small{font-size:11px;line-height:1.6;color:#e0d5e6}.gift:hover{border-color:#ffe4a0;background:#604a70}.gift em{display:none}#crewstrip{justify-content:flex-start;align-items:center;gap:12px;padding:2px 10px;font-size:10px;background:#292334;color:#d8cddd;white-space:nowrap}.crew-total b{color:#b7e7c1}.crew-alert b{color:#ffad8b}.crew-curse b{color:#d6adff}.crew-summary-hint{margin-left:auto;color:#b1a1bc;font-size:9px}.result-crew{display:flex;flex-wrap:wrap;justify-content:center}.roster-panel>.primary{position:sticky;bottom:0}.title-panel{background:linear-gradient(0deg,#21192df5,#271e38ba 45%,#31264233);padding:24px}.title-panel .primary{font-size:19px;min-height:54px}
/* Button text remains crisp at every interface scale. */
button,button *,.panel button.primary,.title-panel .primary{text-shadow:none!important;-webkit-text-stroke:0!important}
#loadout .arm-slot{flex:1 1 0;min-width:0;max-width:none;height:43px;min-height:43px;gap:2px;padding:2px;flex-direction:column;justify-content:center;text-align:center}
#loadout .arm-slot .skill-art{width:19px;height:19px;min-width:19px;flex:none;border-radius:4px}
#loadout .arm-slot span b{font-size:8px;line-height:10px;display:block;white-space:nowrap}
#loadout .arm-slot small{font-size:8px;line-height:9px}
#loadout .arm-slot>span{line-height:9px}
/* Expedition lobby: the battlefield remains the main surface. */
#app{grid-template-rows:84px 28px 660px 0px 20px 88px 60px;border-radius:6px;background:#202e3d}
#hud{background:linear-gradient(#2c4355,#243443);border-bottom:1px solid #a9c2bd}.wordmark{font-size:16px;text-shadow:none}
#tacticsControls{display:none!important}#crewstrip{grid-row:5;min-height:20px;padding:0 10px;background:#243443}#bottom{display:none}#loadout{grid-row:6;background:#233645;padding:6px 8px;align-content:center}
#gameNav{grid-row:7;display:flex;align-items:stretch;justify-content:space-around;background:linear-gradient(#293b4c,#17232f);border-top:2px solid #adab88;z-index:3;padding:0 12px;gap:10px}
#gameNav button{flex:1;border:0;background:none;color:#cbd6dc;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:1px}
#gameNav button span{display:grid;place-items:center;width:38px;height:34px;margin-top:-5px;border:2px solid #aab5b5;border-radius:10px 10px 4px 4px;background:linear-gradient(#4c6274,#27333e);color:#ffe3a4;font-size:25px;box-shadow:0 3px #111b23}
#gameNav button:hover span,#gameNav button:focus-visible span{border-color:#ffe3a4;background-color:#596b73}
#partyDock{position:absolute;bottom:0;left:0;right:0;z-index:3;pointer-events:none;background:linear-gradient(transparent,#192f3370)}
#app:not([data-world=true]) #partyDock{display:none}.party-faces{display:flex;gap:5px;overflow-x:auto;padding:10px 10px 7px;pointer-events:auto;scrollbar-width:thin}
.party-faces button{position:relative;flex:0 0 37px;width:37px;height:49px;padding:0;border:0;background:transparent}.party-faces .speaker-portrait{width:37px;height:40px;border-radius:5px 5px 12px 12px;border:1px solid #d9d3a9;box-shadow:0 2px #1a2b32}.party-faces small{position:absolute;right:2px;top:0;font:800 9px sans-serif;color:white;background:#213847c9;padding:1px 2px}.party-faces i{position:absolute;bottom:0;left:1px;width:35px;height:4px;background:linear-gradient(to right,#a6e7ad var(--hp),#243437 var(--hp));border:1px solid #203947}.empty-party{font-size:11px;color:#efe9d0}.party-power{height:27px;display:flex;align-items:center;justify-content:space-between;background:#233343ef;padding:0 10px;border-top:1px solid #a2b5b6;color:#e9e8dc;font-size:11px}.party-power b{color:#fff1be;font-size:13px}.party-power button{pointer-events:auto;border:1px solid #c8d7d3;border-radius:50%;background:#526777;color:#fff;margin-left:6px}
.title-panel h1{font-size:36px;line-height:1.15;text-shadow:none}.boot-card h1{font-size:29px}
/* Full-height formation screen, with its own scrolling collection. */
.overlay:has(.formation-panel){padding:0;background:#142535;backdrop-filter:none;align-items:stretch;overflow:hidden}
.formation-panel{width:100%;height:100%;display:flex;flex-direction:column;background:#192c3a;color:#fff2d7;overflow:hidden}
.formation-heading{height:58px;flex:none;display:flex;align-items:center;gap:10px;padding:8px 12px;background:#263c4c;border-bottom:1px solid #6d8998}.formation-heading h2{font-size:17px;margin:0;letter-spacing:0}.formation-heading>span{margin-left:auto;font-size:10px}.formation-heading b{display:block;font-size:16px;color:#ffecb4}.formation-heading button{background:none;border:0;color:#eee2c0;font-size:34px}
.formation-stage{height:305px;position:relative;flex:none;overflow:hidden;background:radial-gradient(ellipse at 50% 55%,#6da8ac88 0%,#284a6077 55%,#162732 78%),url('../../assets/circe-garden.png') center/cover;border-bottom:2px solid #a0b1b5}
.formation-floor{position:absolute;inset:45px 20px 45px;border:2px solid #add5d07a;border-radius:50%;background:repeating-radial-gradient(ellipse,#41657533 0 30px,#b4dfde66 31px 32px,#193b4d66 33px 62px);transform:perspective(400px) rotateX(24deg);box-shadow:0 0 35px #80d9e344}
.stage-count{position:absolute;top:10px;left:12px;font-size:12px;background:#243a4dcc;padding:4px 9px;border-radius:12px}.stage-label{position:absolute;top:14px;right:18px;color:#d2e7e3;font-size:10px}
.formation-units{position:absolute;inset:42px 50px 46px;overflow:auto;display:flex;flex-wrap:wrap;align-content:flex-end;gap:5px 30px;justify-content:center;flex-direction:row-reverse}
.formation-unit{position:relative;width:63px;flex:none;height:48px;padding:0;border:0;background:transparent;filter:drop-shadow(0 4px 3px #122c37)}.formation-unit .speaker-portrait{width:36px;height:36px;margin:auto;border-radius:50% 50% 7px 7px;border:1px solid #ffe6a4}.formation-unit span:not(.speaker-portrait){display:block;font-size:9px;background:#213649cc;color:#fff1ce;border-radius:8px}.formation-unit.selected .speaker-portrait{outline:3px solid #f9de81}
.formation-actions{position:absolute;bottom:10px;display:flex;justify-content:center;gap:8px;width:100%}.formation-actions button,.roster-toolbar button{border:1px solid #a7c5c9;border-radius:18px;background:#243e50db;color:#f0ecd5;padding:5px 15px;font-size:11px}.formation-actions [aria-pressed=true],.roster-toolbar [aria-pressed=true]{background:#667c83;border-color:#ffe0a4;color:#fff3c8}
.roster-toolbar{height:44px;flex:none;display:flex;align-items:center;padding:6px 12px;gap:8px;border-bottom:1px solid #789298;background:#243947}.roster-toolbar strong{font-size:12px;margin-right:auto}.formation-help{flex:none;font-size:10px;color:#c5d7d9;padding:8px 12px;margin:0;background:#162936}
.formation-collection{flex:1;min-height:0;overflow-y:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));align-content:start;gap:9px 6px;padding:10px 8px 18px;background:linear-gradient(#102330,#213b49)}
.collection-card{position:relative;min-width:0;height:118px;display:flex;flex-direction:column;align-items:center;padding:0 0 3px;background:linear-gradient(#779a99,#314954);border:1px solid #b5c9bd;border-radius:4px;overflow:hidden;color:#fff1d5;box-shadow:0 3px #0c1b25}.collection-card .speaker-portrait{width:100%;height:76px;flex:none;border:0;border-radius:0;box-shadow:none}.collection-card.elite{border-color:#f8d181;background:linear-gradient(#b09662,#60472c)}.collection-card.selected{outline:3px solid #ffe7a0;outline-offset:1px}.collection-card.unavailable .speaker-portrait{filter:grayscale(.8);opacity:.6}.card-level{position:absolute;top:3px;right:2px;font-size:9px;background:#203443ba;border-radius:5px;padding:1px 3px}.card-role{position:absolute;top:2px;left:2px;font-size:8px;background:#203443d9;padding:2px;border-radius:50%}.card-state{position:absolute;top:55px;left:0;right:0;background:#243e51d9;font-size:9px;padding:3px 0}.collection-card b{font-size:10px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.collection-card small{font-size:9px;color:#ffe3a8}.collection-card progress{height:4px;width:90%;accent-color:#95d1b6;margin-top:auto}.formation-footer{height:58px;flex:none;background:#253b49;display:flex;align-items:center;justify-content:space-between;padding:10px 14px;border-top:1px solid #91a9ac}.formation-footer span{font-size:10px;color:#bacbd0}.formation-footer button{background:linear-gradient(#fff1bb,#d1b876);border:1px solid #ffe2a5;color:#293a40;font-size:13px;font-weight:800;border-radius:7px;padding:10px 20px}
.formation-units{display:grid;grid-template-columns:repeat(3,63px);grid-auto-rows:48px;gap:5px 18px;justify-content:center;align-content:start;direction:ltr;padding-bottom:4px}.formation-units.spread{column-gap:36px}.formation-unit{grid-column:calc(var(--col) + 1);grid-row:calc(var(--rows) - var(--row))}.crew-standee{display:block;width:43px;height:38px;margin:auto;background:url('../../assets/voyage-cast.png') 100% 50%/300% 300% no-repeat;filter:drop-shadow(0 3px 2px #0f2732)}.crew-standee.elite{transform:scale(1.12)}.formation-unit.selected{background:#ffe18c55;border-radius:50%}.formation-unit::before{content:'';position:absolute;width:34px;height:9px;border-radius:50%;background:#a9e7d655;bottom:9px;left:14px}
.crew-standee{background-size:300% 200%;background-position:100% 100%}
#app:has(.formation-panel) #dev{display:none}.collection-card progress::-webkit-progress-bar{background:#182d36}.collection-card progress::-webkit-progress-value{background:#8fd7b5}.collection-card progress{appearance:none;border:0;border-radius:2px;overflow:hidden}
#loadout{height:88px;min-height:88px;max-height:88px;box-sizing:border-box;align-content:center}#crewstrip{height:20px;min-height:20px;max-height:20px}#app[data-world=true] #notice{bottom:102px}#app[data-world=true] #trialHint{bottom:104px}
/* Match the earlier .panel button.primary specificity, without outlined text. */
.panel button.primary,button.primary,.title-panel button.primary{background:linear-gradient(#375b72,#234154);color:#fff8e7;border:2px solid #9ebdca;box-shadow:inset 0 1px #6e8d9e,0 3px #142a38;text-shadow:none!important;-webkit-text-stroke:0!important}
.panel button.primary:hover{background:linear-gradient(#436d85,#2b4d62);filter:none}
.overlay:has(.skill-choice-panel){padding:0;background:#071119d9;backdrop-filter:blur(1px);align-items:center}
.skill-choice-panel{width:100%;padding:18px 10px;color:#fff6dc}.skill-choice-panel>header{text-align:center;margin-bottom:24px}.skill-choice-panel>header>span{font-size:9px;letter-spacing:3px;color:#e6c585}.skill-choice-panel h2{margin:8px 12px 10px;background:linear-gradient(#ffe987,#e4b84b);border:2px solid #fff1b4;box-shadow:0 4px #936526;color:#263443;font-size:25px;line-height:1.5;padding:5px;border-radius:3px;text-shadow:none}.skill-choice-panel header p{font-size:12px;color:#d9dfd8}.choice-inventory{display:flex;gap:6px;align-items:center;background:#263440;border:1px solid #899e9e;border-radius:5px;padding:8px;margin:0 4px 26px}.choice-inventory>b{font-size:10px;margin-right:auto}.choice-inventory>span{position:relative;height:28px}.choice-inventory .skill-art{width:28px;height:28px;border-radius:4px;border-width:1px}.choice-inventory small{position:absolute;right:-3px;bottom:-2px;color:#fff;background:#14232c;font-size:9px;padding:1px 3px;border-radius:3px}.choice-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}.choice-card{display:flex;flex-direction:column;align-items:center;min-width:0;min-height:366px;padding:0;border:2px solid #cbb77a;background:linear-gradient(#536477,#273747);border-radius:7px;overflow:hidden;text-align:center;color:#fff4d9;box-shadow:0 6px #101b23;transition:transform .15s,border-color .15s}.choice-card:hover{transform:translateY(-5px);border-color:#fff2b3}.choice-card:focus-visible{outline:3px solid #f8d66e;outline-offset:3px}.choice-tag{width:100%;background:#dfbd58;color:#27313a;font-size:10px;font-weight:900;padding:5px}.choice-card.relic{border-color:#9fc385}.choice-card.relic .choice-tag{background:#b3d28b}.choice-card.evolution{border-color:#c99cf2}.choice-card.evolution .choice-tag{background:#c99cf2}.choice-name{display:flex;align-items:center;justify-content:center;min-height:51px;padding:6px;font-size:13px;line-height:1.45;word-break:keep-all}.choice-icon{display:block;padding:8px 0 15px}.choice-icon .skill-art{height:66px;width:66px;border-radius:12px;box-shadow:0 4px 12px #101e3580}.choice-description{display:block;text-align:left;margin:0 7px;padding:10px 7px;flex:1;min-height:100px;background:#17273366;border-radius:4px;font-size:11px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}.choice-stars{display:flex;gap:2px;justify-content:center;padding:13px 0 8px}.choice-stars i{font-style:normal;color:#172c3c;font-size:17px}.choice-stars .earned{color:#ba994b}.choice-stars .next{color:#ffe773;filter:drop-shadow(0 0 3px #ffdf80)}.choice-recipe{font-size:9px;line-height:1.6;min-height:40px;color:#bdcbcd;padding:0 4px 6px}.choice-recipe strong{color:#f5e8bd;font-size:10px}.choice-pick{width:100%;padding:8px;background:#1c2b37;border-top:1px solid #98a1a666;font-size:12px;font-weight:800;color:#ffe4a0}.choice-pause{text-align:center;font-size:11px;color:#bdc9cb;margin:24px 0 0}
.choice-description{font-size:12px;min-height:112px}.choice-name{font-size:14px}.skill-choice-panel h2{font-family:system-ui,sans-serif;font-weight:900}
/* Remove the duplicate crew row; give the weapon dock explicit intrinsic space. */
#app{grid-template-rows:84px 28px 660px 0px 0px 108px 60px}
#crewstrip{display:none!important}
#loadout,#app[data-world=true] #loadout{height:108px;min-height:108px;max-height:108px;padding:8px;display:flex;align-content:flex-start;align-items:flex-start;gap:8px 4px;overflow:visible}
#loadout .arm-slot{height:52px;min-height:52px;max-height:52px;flex:1 1 0;gap:3px;box-sizing:border-box;margin:0;overflow:visible}
#loadout .arm-slot .skill-art{width:24px;height:24px;min-width:24px}
#loadout .growth-strip{flex:0 0 100%;min-height:26px;height:auto;max-height:none;line-height:14px;align-items:center;margin:0;overflow:visible}
#loadout .growth-strip small{font-size:9px;line-height:12px}
#gameNav button .nav-art{width:40px;height:38px;border:2px solid #d6c28d;background-image:url('../../assets/odyssey-skills.png');background-size:400% 400%;background-repeat:no-repeat;border-radius:9px;box-shadow:0 3px #111e27}
#gameNav button .nav-adventure{background-position:0% 0%}#gameNav button .nav-roster{background-image:url('../../assets/crew-portraits.png');background-position:33.333% 0%}#gameNav button .nav-skills{background-position:33.333% 100%}#gameNav button .nav-menu{background-position:100% 66.667%}
#crewCommands{position:absolute;right:10px;bottom:115px;display:flex;flex-direction:column;gap:8px;z-index:4}
#app:not([data-world=true]) #crewCommands{display:none}
#crewCommands button{width:48px;min-height:48px;border:2px solid #8fabb5;border-radius:10px;background:#203948e6;color:#e8e6d8;font-size:11px;font-weight:800;box-shadow:0 3px #142530;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}
#crewCommands button span{font-size:20px;line-height:20px}#crewCommands button[aria-pressed=true]{background:#496a72f2;border-color:#ffe29e;color:#fff1b9;box-shadow:0 0 0 1px #172b36,0 3px #142530}

#playerLevel{position:absolute;right:9px;top:45px;z-index:3;display:grid;gap:3px;padding:7px 10px;background:#182b3ae8;border:1px solid #cbb777;border-radius:8px;pointer-events:none;min-width:95px}#playerLevel b{font-size:22px;line-height:25px;color:#ffe4a0}#playerLevel span{font-size:10px;color:#e0e7e8}#playerLevel progress{width:100%;height:6px;accent-color:#8ed5b0}#app:not([data-world=true]) #playerLevel{display:none}

/* A full-width experience track stays readable during movement and combat. */
#playerLevel{left:9px;right:9px;top:40px;grid-template-columns:auto 1fr auto;gap:5px 8px;padding:6px 9px;min-width:0;background:#132634ed}
#playerLevel b{font-size:16px;line-height:18px}
#playerLevel #experienceText{text-align:center;font-size:11px;font-variant-numeric:tabular-nums;color:#f3f7f5;line-height:18px}
#playerLevel #levelGoal{font-size:10px;line-height:18px;color:#c9dbc9}
#playerLevel progress{grid-column:1/-1;display:block;appearance:none;-webkit-appearance:none;width:100%;height:12px;border:1px solid #8dbcb5;border-radius:4px;overflow:hidden;background:#0a1925}
#playerLevel progress::-webkit-progress-bar{background:#0a1925}
#playerLevel progress::-webkit-progress-value{background:linear-gradient(#b0f5c8,#4cae91);border-radius:2px;box-shadow:inset 0 2px #d5ffe780}
#playerLevel progress::-moz-progress-bar{background:linear-gradient(#b0f5c8,#4cae91);border-radius:2px}

/* Group character growth above health, and encounter progress beside the region. */
#hud{position:relative;padding:6px 10px;display:flex;flex-direction:column;gap:5px}
#hud .topline{position:absolute;right:9px;top:6px;margin:0}
#hud .wordmark,#actorLabel,#hud>.progress{display:none}
#hud .actions{gap:4px}#hud .actions button{width:27px;height:27px}
#hud #playerLevel{position:static;display:grid;grid-template-columns:auto 1fr auto;gap:2px 7px;padding:0;margin-right:66px;border:0;border-radius:0;background:none;min-width:0}
#hud #playerLevel b{font-size:15px;line-height:18px}#hud #playerLevel progress{height:10px}
#hud .statusline{display:block;padding:0;margin:0}
#hud .health-block{position:relative;width:100%;padding-top:0}
#hud .health-label{position:absolute;inset:0;margin:0;z-index:1;display:flex;align-items:center;justify-content:center;pointer-events:none}
#hud .health-label span{font-size:10px;line-height:18px;color:#10291e;font-weight:800}
#hud .health-track{height:18px;margin:0;border:1px solid #9bcbb2;border-radius:4px}
#dev{top:6px;right:76px}
.field-top{display:flex;align-items:center;gap:4px}
#chapter{min-width:0;flex:1;font-size:10px;padding:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.field-top .count{display:flex;flex-direction:row-reverse;align-items:center;gap:4px;flex:none;background:#213440ed;border:1px solid #829e9b;border-radius:5px;padding:5px;white-space:nowrap}
.field-top .count[hidden]{display:none}.field-top .count b,.field-top .count>span{font-size:10px;line-height:14px}.field-top .count b{color:#ffe395}.field-top .count>span{color:#eceddc}
#timer{flex:none;font-size:10px;padding:5px}
#dev{top:86px;right:8px;min-height:20px;padding:1px 5px;font-size:8px}
#hud .health-label span{padding:0 5px;border-radius:3px;background:#173629c9;color:#f3fff3;line-height:14px}
#loadout .growth-strip>span,#loadout .growth-strip>progress{display:none}
#app:not([data-world=true]) #hud #playerLevel{display:none}

/* Permanent crew collection: portraits, legible progression, touch-safe scrolling. */
.crew-book{width:100%;height:100%;max-height:100%;min-height:0;display:flex;flex-direction:column;background:linear-gradient(155deg,#192b3c,#111c29 55%,#20283a);color:#f5eddb;overflow:hidden;border:1px solid #9b8052;border-radius:16px;text-align:left;box-sizing:border-box}
.collection-heading{display:flex;align-items:center;gap:10px;padding:12px;border-bottom:1px solid #526174;flex-shrink:0;background:#243649}.collection-heading>button{min-width:42px;min-height:44px;font-size:28px;background:#34495d;color:white;border:1px solid #788391;border-radius:10px}.collection-heading h2{font-size:19px;margin:3px 0}.collection-heading small{font-size:9px;color:#c6d0da;letter-spacing:1px}.training-balance{margin-left:auto;text-align:right;font-weight:800;color:#ffe3a2;white-space:nowrap}.training-balance small{display:block;letter-spacing:0;margin-top:4px}
.crew-book-scroll{overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1;padding:12px;-webkit-overflow-scrolling:touch}.collection-progress{padding:12px;background:#23384a;border:1px solid #4a6579;border-radius:10px}.collection-progress>div{display:flex;justify-content:space-between;font-size:12px}.collection-progress small{font-size:11px;color:#c6d3de;display:block;line-height:1.5}.crew-book progress{width:100%;height:6px;appearance:none;border:0;border-radius:5px;background:#101c27;overflow:hidden;margin:8px 0}.crew-book progress::-webkit-progress-bar{background:#101c27}.crew-book progress::-webkit-progress-value{background:linear-gradient(90deg,#49b2b7,#a5e5be)}.crew-book progress::-moz-progress-bar{background:#72cdbb}
.hero-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.hero-card{padding:0 0 6px!important;min-width:0;overflow:hidden;border:1px solid #758da2!important;border-radius:8px;background:#263c50!important;color:#fff2d9;text-align:center;position:relative;box-shadow:0 3px 0 #080f19!important}.hero-card.rare{border-color:#e6bd68!important;background:#44354d!important}.hero-card.ready{box-shadow:0 0 0 2px #8de4af!important}.hero-card.locked .speaker-portrait{filter:grayscale(1);opacity:.45}.hero-card-art{position:relative;aspect-ratio:1}.hero-card-art .speaker-portrait{display:block;width:100%;height:100%;border:0;border-radius:0}.hero-card-level,.hero-card-role,.hero-card-active{position:absolute;font-size:10px;padding:3px;background:#142336df}.hero-card-level{top:0;left:0}.hero-card-role{bottom:0;right:0}.hero-card-active{top:0;right:0;background:#296d63}.hero-card>b{display:block;font-size:11px;padding:5px 1px 2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-card>small{display:block;font-size:10px;color:#bdeaca}.hero-card>progress{width:80%;height:4px;margin:5px 0 0}.crew-stars{display:block;color:#ffcf62;font-size:13px;letter-spacing:0;white-space:nowrap}.crew-stars i{color:#6d8296;font-style:normal}.collection-caption{color:#b3c4d3;font-size:11px;line-height:1.6;text-align:center;margin:10px 0}.collection-footer{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid #526174;flex-shrink:0}.collection-footer span{font-size:10px;color:#bbc9d3}.collection-footer button,.deploy-button{background:#e3bb70;color:#1b2330;border:1px solid #fff0bf;border-radius:8px;font-weight:bold;padding:10px 20px;min-height:44px}.hero-showcase{display:flex;gap:16px;align-items:center;padding:14px 8px;background:radial-gradient(ellipse at 20% 50%,#58748c,transparent 70%)}.hero-showcase>.speaker-portrait{width:115px;height:115px;flex-shrink:0;border:2px solid #c3a66e;border-radius:14px;box-shadow:0 8px 20px #0008}.hero-showcase h3{font-size:22px;margin:6px 0}.hero-showcase strong{display:block;margin-top:8px;color:#f4d9a2}.hero-rarity{font-size:11px;color:#c8d8e7}.growth-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}.growth-stats>span{padding:12px;background:#21364a;border-radius:8px;font-size:12px}.growth-stats b{display:block;margin-top:6px;font-size:17px}.growth-stats em{color:#96edbb;font-style:normal;font-size:14px}.crew-skill{padding:14px;background:#253147;border:1px solid #536178;border-radius:10px}.crew-skill.unlocked{border-color:#d9ba6c;background:#343342}.crew-skill>b{color:#e7c77e;font-size:12px}.crew-skill p{font-size:14px;line-height:1.5;margin:8px 0}.crew-skill small{font-size:11px;color:#bdcad8}.growth-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.growth-actions button{min-height:64px;background:linear-gradient(#f4d893,#d3a759);color:#172333;border:1px solid #fff0bf;border-radius:10px;box-shadow:0 3px 0 #826235}.growth-actions button:last-child{background:linear-gradient(#b4c9f6,#879aca)}.growth-actions small{display:block;margin-top:5px;font-size:12px}.growth-actions button:disabled{filter:saturate(.25);opacity:.5;box-shadow:none}.growth-feedback{min-height:20px;color:#a8ecc1;text-align:center;font-size:13px}.crew-status-line{padding:10px;text-align:center;font-size:12px;color:#ccdaea}.deploy-button{width:100%}.replacement-list{margin-top:15px}.replacement-list>small{display:block;font-size:11px;color:#bdcad8;margin:8px 0}.replacement-list button{display:flex;align-items:center;gap:12px;background:#294155;color:#eee;border:1px solid #698094;width:100%;padding:8px;border-radius:8px;margin:6px 0;text-align:left;min-height:58px}.replacement-list .speaker-portrait,.last-card .speaker-portrait{width:42px;height:42px;flex-shrink:0}.replacement-list button small{display:block;font-size:11px;margin-top:3px}.replacement-list button>b{margin-left:auto}.last-card{display:flex;gap:10px;align-items:center;margin:10px 0;padding:8px;background:#384557;border-radius:8px}.last-card span{font-size:11px;color:#c6d5e2}.last-card b{display:block;font-size:14px;color:#ffe4ad;margin-top:3px}.locked-hero{padding:20px 10px;text-align:center}.locked-hero p{font-size:12px;color:#c6d5e2}.crew-book button{touch-action:manipulation;text-shadow:none;-webkit-text-stroke:0}.crew-book .roster-toolbar{padding:10px 0;gap:6px}.crew-book .roster-toolbar button{min-height:40px;font-size:12px}
@media(max-width:360px){.hero-grid{gap:5px}.hero-card>b{font-size:10px}.collection-heading h2{font-size:16px}.hero-showcase>.speaker-portrait{width:90px;height:90px}.hero-showcase h3{font-size:19px}}
.overlay:has(.crew-book){padding:6px;background:#101d2ded;backdrop-filter:none;align-items:stretch;overflow:hidden}
.focus-button{width:100%;padding:10px;margin-top:6px;min-height:44px;border:1px solid #84a4bf;border-radius:8px;background:#34536b;color:#eef7ff}.focus-button:disabled{background:#243e42;color:#a2e7c6;border-color:#517e72}
/* Character-first collection: stage, dense inventory, anchored navigation. */
.overlay:has(.crew-book){padding:0;background:#111b26}
.crew-book{border:0;border-radius:0;background:#1c2632;box-shadow:none}
.crew-book h2,.crew-book h3{font-family:inherit}
.collection-heading{height:42px;padding:0 10px 0 4px;gap:6px;background:#263342;border-bottom:1px solid #71869b;z-index:2}
.collection-heading>button{min-width:36px;min-height:38px;background:none;border:0;border-radius:0}
.collection-heading>b{font-size:12px;color:#fff6df}
.training-balance{font-size:13px;line-height:1.15}.training-balance small{font-size:8px;margin-top:2px}
.formation-stage{height:29%;min-height:155px;max-height:240px;position:relative;flex-shrink:0;background:linear-gradient(#17263340,#18304220 70%,#122332b0),url('../../assets/hall.png') center 55%/cover;border-bottom:2px solid #87939c}
.collection-scene{width:100%;height:100%;display:block;pointer-events:none}
.stage-count{position:absolute;top:8px;left:10px;font-size:12px;background:#172a3ac9;padding:3px 12px;border:1px solid #82959d;border-radius:2px}
.formation-stage>button{position:absolute;bottom:7px;left:50%;transform:translateX(-50%);height:30px;min-width:126px;padding:3px 18px;border:1px solid #d1d5d3;border-radius:18px;background:#24313ccb;color:#fff;font-size:12px}
.collection-filter{display:flex;align-items:center;gap:7px;padding:5px 8px;flex-shrink:0;background:#253441;border-bottom:1px solid #647483}
.collection-filter>b{font-size:12px;margin-right:auto}
.collection-filter>button{min-height:32px;padding:3px 19px;font-size:11px;border:1px solid #8596a0;border-radius:18px;background:#172c3a;color:#e6e8e9}
.collection-filter>button[aria-pressed=true]{background:#435d6a;border-color:#e8dcb4;color:#fff6da}
.crew-book-scroll{padding:9px 7px;scrollbar-width:thin;background:linear-gradient(#14202a,#202732)}
.hero-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px 5px}
.hero-card{border-radius:2px!important;border:1px solid #b8a07a!important;background:#654632!important;padding:0 0 1px!important;box-shadow:0 2px 0 #080d14!important}
.hero-card.rare{border-color:#d9c5ee!important;background:#674b74!important}
.hero-card-art{aspect-ratio:.82}
.hero-card-art .speaker-portrait{background-size:400% 400%;height:100%;border-radius:0}
.hero-card-level{top:1px;left:auto;right:1px;font-size:9px;padding:1px 2px;background:#151921b8}
.hero-card-role{top:1px;bottom:auto;left:1px;right:auto;width:15px;height:15px;font-size:0;padding:0;border-radius:50%;border:1px solid #c4cbd2;background:#182c3c}
.hero-card-role:after{content:'◆';font-size:10px;line-height:15px;color:#eae2c7}
.hero-card-active{top:40%;left:0;right:0;padding:3px 0;background:#3d647bc7;border-top:1px solid #b1c2cc70;border-bottom:1px solid #b1c2cc70;font-size:10px;letter-spacing:1px}
.hero-card>b{position:relative;margin-top:-24px;height:20px;line-height:18px;padding:2px 0;font-size:9px;background:#151b24bf;color:#fff;z-index:1}
.hero-card .crew-stars{height:13px;line-height:13px;font-size:12px;background:#222733}
.hero-card>small{position:relative;z-index:2;height:12px;line-height:12px;font-size:9px;color:#f6f5e4}
.hero-card>progress{position:absolute;bottom:0;left:0;width:100%;height:13px;margin:0;border-radius:0;opacity:.6}
.hero-card.locked{filter:saturate(.4)}.hero-card.locked>small{color:#fff}
.hero-card.ready:after{content:'↑';position:absolute;right:1px;bottom:12px;color:#e9ffb2;font-weight:900;background:#294b35;padding:0 2px;z-index:3}
.collection-reward{flex-shrink:0;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;padding:7px 10px 0;background:#26323c;font-size:10px;border-top:1px solid #63727e}
.collection-reward progress{flex-basis:100%;margin:0;height:3px;border-radius:0}
.collection-footer{padding:7px 9px;gap:6px;background:#1c2836;border-top:1px solid #5e7182}
.collection-footer button{flex:1;min-height:40px;padding:5px;border:1px solid #7b8b97;border-radius:3px;background:#283e4f;color:#d6dfe5;font-size:12px}
.collection-footer button.selected{color:#fff0c1;border-color:#d4b580;background:#4d493f;box-shadow:inset 0 -3px #cdb584}
.crew-detail .crew-book-scroll{padding:0 0 12px}
.hero-showcase{height:clamp(230px,42vh,380px);position:relative;display:block;padding:0;background:radial-gradient(ellipse at 50% 58%,#7398af21,transparent 65%),linear-gradient(#101c2ad9,#15243686 60%,#101b2ceb),url('../../assets/hall.png') center/cover}
.hero-showcase-label{position:absolute;left:12px;top:10px;z-index:1}.hero-showcase-label .crew-stars{text-align:left;font-size:15px;margin-top:4px}
.hero-rarity{font-size:11px;color:#ead6a6}
.hero-showcase-name{position:absolute;bottom:0;left:0;right:0;display:flex;align-items:center;gap:8px;background:#223746dc;border-top:1px solid #8196a0;padding:7px 12px}
.hero-showcase h3{font-size:17px;margin:0;flex:1}.hero-showcase-name>span{font-size:11px;white-space:nowrap}.hero-showcase strong{font-size:11px;margin:0;color:#ecdcae}
.growth-stats{gap:1px;background:#5a6e7f;border-bottom:1px solid #5a6e7f}.growth-stats>span{padding:7px 12px;background:#24313f;border-radius:0;font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:4px}.growth-stats b{margin:0;font-size:13px}.growth-stats em{font-size:11px}
.crew-detail .collection-caption{font-size:10px;margin:5px 10px;line-height:1.35}
.crew-skill{margin:8px 10px;padding:9px 10px;border-radius:2px;background:#202e3c;min-height:52px}.crew-skill .skill-art{float:left;width:44px;height:44px;margin:0 9px 5px 0;border:1px solid #a69776;border-radius:3px}.crew-skill p{font-size:12px;margin:4px 0;line-height:1.4}.crew-skill small{font-size:9px}.crew-skill>b{font-size:10px}
.growth-actions{margin:8px 10px 0;gap:8px}.growth-actions button{min-height:48px;border-radius:3px;background:linear-gradient(#c6b080,#9b8151);border:1px solid #ead7a6;box-shadow:inset 0 0 0 2px #51483266}.growth-actions button:last-child{background:linear-gradient(#99afbe,#647e95);border-color:#bacbd7}.growth-actions small{margin-top:2px;font-size:11px}
.focus-button{width:calc(100% - 20px);margin:8px 10px 0;border-radius:3px;min-height:36px;font-size:12px}.crew-status-line{padding:6px;font-size:10px}.deploy-button{width:calc(100% - 20px);margin:0 10px;border-radius:3px;min-height:38px}.growth-feedback{margin:5px 10px;font-size:12px;min-height:0}.replacement-list{padding:0 10px}
@media(max-height:650px){.formation-stage{min-height:135px;height:26%}.hero-showcase{height:225px}}
.hero-card-role:after{content:none}.hero-card-role svg{width:12px;height:12px;display:block;margin:1px;color:#f4ead5}
.hero-showcase{height:clamp(250px,52vh,450px)}
@media(max-height:650px){.hero-showcase{height:250px}}
/* Use game-layout pixels so native viewport scaling preserves the same hierarchy. */
.crew-detail .hero-showcase{height:400px;min-height:400px}
.hero-card-art .speaker-portrait{background-size:100% 100%}
.crew-identity-standee{height:65px!important;width:70px!important;flex-shrink:0}
/* Keep identity-defining eyes and hair clear of the deployed ribbon. */
.hero-card-active{top:auto;bottom:22px;padding:1px 0;font-size:9px;letter-spacing:0}

/* Fate cards reuse the skill-choice visual hierarchy without hiding consequences. */
.bond-panel{width:min(94%,440px);max-height:92%;overflow-y:auto;padding:20px 18px!important;text-align:center;display:flex;flex-direction:column;gap:13px;background:linear-gradient(155deg,#152d40,#211a32);border:2px solid #c4a66a;border-radius:18px;box-shadow:0 16px 70px #000b}.bond-panel header h2{font-size:24px;line-height:1.25}.bond-panel header p{font-size:22px;color:#ffe1a0}.bond-portrait{width:130px;height:150px;align-self:center;padding:5px;background:linear-gradient(140deg,#e0bf7c,#68517d);clip-path:polygon(0 0,100% 0,100% 86%,50% 100%,0 86%);flex-shrink:0}.bond-portrait .speaker-portrait{display:block;width:120px;height:140px;border-radius:0}.bond-record{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;padding:10px;background:#07182099;color:#d6e9e6}.bond-record b{color:#efcb88}.bond-reason{font-size:17px;line-height:1.6}.bond-caption,.bond-block{font-size:13px;line-height:1.6;color:#d7cddb}.bond-cost{font-size:14px;color:#ffe1a0}.bond-actions{display:grid;gap:9px}.bond-actions button{min-height:48px;margin:0}.bond-panel.death{border-color:#9d7abe}.bond-panel.betrayal{border-color:#d27c77}.bond-panel.revived,.bond-panel.joined{border-color:#80cda8}.bond-actions button:disabled{opacity:.45;cursor:not-allowed}.crew-book .bond-record{font-size:12px}.hero-card-active{max-width:100%;overflow:hidden;text-overflow:ellipsis}

.collection-role-filter{display:flex;gap:4px;padding:6px 10px;background:#122632;flex-shrink:0}.collection-role-filter button{flex:1;min-width:0;padding:6px 2px;font-size:11px;border:1px solid #536573;border-radius:6px;background:#203440;color:#d7dedf}.collection-role-filter button[aria-pressed=true]{background:#80672e;color:#fff4c8;border-color:#d9ba67}
.crew-personality{margin:12px 16px;padding:14px 16px;background:#202a38;border-left:3px solid #bfa46c;color:#e9e0cf;text-align:left}.crew-personality b{font-size:12px;color:#d7bd7f}.crew-personality p{font-size:13px;line-height:1.6;margin:7px 0}.crew-personality blockquote,.crew-voice{margin:8px 0 0;font-size:13px;line-height:1.6;font-style:italic;color:#b9cbd6}.crew-voice{padding:0 20px;text-align:center}

/* Inset badges stay visible inside clipped cards and never intercept a tap. */
[data-growth-ready]{position:relative}
[data-growth-ready="true"]::after{content:"";position:absolute;top:5px;right:5px;width:10px;height:10px;border-radius:50%;background:#f43845;border:2px solid #fff1db;box-shadow:0 1px 3px #180811aa;z-index:8;pointer-events:none}
#gameNav [data-growth-ready="true"]::after{top:7px;right:calc(50% - 24px)}

.crew-detail .hero-showcase{position:relative}
.crew-book .hero-browse{position:absolute;top:45%;z-index:5;width:44px;height:52px;min-height:44px;padding:0;display:grid;place-items:center;border:1px solid #cfbf91;border-radius:8px;background:#182c3cdb;color:#fff0cb;font-size:36px;line-height:1;box-shadow:0 2px 6px #0005;touch-action:manipulation}
.hero-browse.previous{left:8px}.hero-browse.next{right:8px}
.crew-book .hero-browse:active{background:#4a6576;transform:scale(.94)}
.crew-book .hero-browse:focus-visible{outline:2px solid #ffe4a1;outline-offset:2px}

.title-panel h1{font-size:clamp(26px,7.5vw,36px);line-height:1.2;overflow-wrap:break-word;text-wrap:balance}

button{touch-action:manipulation;-webkit-user-select:none;user-select:none}button:hover,button:active{transform:none!important}
/* Athena welcomes the player before the game atlases are decoded. */
#bootLoading{box-sizing:border-box;overflow-y:auto;background:radial-gradient(ellipse at 50% 32%,#302743 0%,#172839 48%,#0b1421 100%);padding:24px;color:#f8edda}
#bootLoading .boot-card{width:min(320px,100%);margin:auto}
.boot-emblem{width:clamp(140px,48vw,240px);max-width:34vh;aspect-ratio:1;margin:0 auto 26px;padding:5px;border:1px solid #c7a56c;border-radius:28px;background:#162534;box-shadow:0 14px 45px #0006,0 0 36px #b68a4320;box-sizing:border-box}
.boot-emblem img{display:block;width:100%;height:100%;object-fit:contain;border-radius:22px}
#bootLoading h1{font-size:clamp(22px,6vw,28px);line-height:1.4;letter-spacing:-.7px;margin:0 0 18px;text-shadow:none;word-break:keep-all}
#bootLoading p{color:#c6d0db;font-size:13px;min-height:42px;margin:0 0 16px;line-height:1.6}
#bootProgress{display:block;appearance:none;-webkit-appearance:none;border:1px solid #8b785248;border-radius:8px;overflow:hidden;height:12px;background:#0b1421}
#bootProgress::-webkit-progress-bar{background:#0b1421;border-radius:8px}
#bootProgress::-webkit-progress-value{background:linear-gradient(90deg,#a77b3d,#f2d394);border-radius:8px}
#bootProgress::-moz-progress-bar{background:linear-gradient(90deg,#a77b3d,#f2d394);border-radius:8px}
/* Keep crew exit controls clear of Toss's top-right native controls. */
#overlay .collection-heading,#overlay .formation-heading{position:relative;min-height:112px;box-sizing:border-box;padding:14px 100px 12px 92px;display:flex;flex-wrap:wrap;align-content:center;gap:6px}
#overlay .collection-heading>button,#overlay .formation-heading>button{display:none}
#overlay .toss-roster-exit{position:absolute;left:12px;top:10px;width:66px;display:flex;flex-direction:column;align-items:center;gap:5px;z-index:2}
#overlay .toss-roster-exit button{position:static!important;display:block!important;width:64px;min-height:64px;margin:0;padding:0;border:1px solid #b9a175;border-radius:12px;background:#25374b;color:#fff2d6;font-size:32px;line-height:1;transform:none!important}
#overlay .toss-roster-exit span{font-size:16px;font-weight:700;color:#fff2d6;white-space:nowrap}
#overlay .collection-heading .training-balance{margin-left:0}#overlay .formation-heading h2{font-size:18px}
#overlay .formation-stage>.stage-count{display:none}
