:root{--bg:#0b141e;--gold:#88e5c2;--ink:#edf0e8;--muted:#9eacb6;--line:#2b3b47;--neon:#8ae4c5}
.menu-footer a{color:#8bded6;text-decoration:none;font-size:12px}.menu-footer a:hover{text-decoration:underline}.menu-footer a:focus-visible{outline:2px solid #8bded6;outline-offset:5px}
[hidden]{display:none!important}body{background:#0b141e;font-family:Inter,"Segoe UI",system-ui,sans-serif}.overlay{background:#0b141e}.overlay h1{text-shadow:none;color:var(--ink);letter-spacing:-1px}.overlay.glass{background:#07111bd9;backdrop-filter:blur(9px)}
#back,#pauseBtn{background:#101e2ae8;border-color:#35444f;color:#e8ece8;border-radius:9px;font:500 13px system-ui;padding:10px 14px}#menu{padding:22px 36px;display:block;text-align:left;touch-action:pan-y}#menu.hidden{display:none}.menu-shell{max-width:1320px;margin:0 auto}.menu-nav{display:flex;justify-content:space-between;align-items:center;height:42px;margin-bottom:20px}.menu-nav a{color:#f4f2e9;font-size:24px;font-weight:850;letter-spacing:1px;text-decoration:none}.menu-nav a span{color:#82929f;font-size:10px;letter-spacing:2px;margin-left:12px;font-weight:500}.edition{font:10px ui-monospace,monospace;letter-spacing:1.8px;color:#a5b6bd;display:flex;align-items:center;gap:9px}.edition i,.live-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#87e3be}.menu-hero{position:relative;min-height:545px;border:1px solid #2a3b46;border-radius:18px;overflow:hidden;background:#0b1825 url('assets/admin/night-shift-avatar-cover-v10.webp') center right/cover no-repeat}.menu-hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b1825fa 0%,#0b1825ee 20%,#0b182582 48%,transparent 68%);pointer-events:none}.hero-copy{position:relative;z-index:1;width:60%;padding:47px 44px}.eyebrow{color:#91c4b5;font-size:10px;font-weight:650;letter-spacing:2px;margin-bottom:25px}#menu h1{font-size:clamp(38px,5.6vw,79px);line-height:.96;letter-spacing:-4px;margin:0;color:#f1f0e7;font-weight:900}#menu h1 span{color:#89e4c2}#menu h1 em{display:block;color:#efbe97;font-size:clamp(26px,3.4vw,43px);font-weight:450;letter-spacing:-1.5px;font-style:normal;margin-top:15px}#menu .sub{margin:23px 0 0;line-height:1.65;color:#b6c3c9;font-size:14px}.hero-facts{display:flex;gap:24px;margin:22px 0 28px;color:#9badb8;font-size:10px}.hero-facts b{font-size:15px;color:#e5ebe7;margin-right:5px}.field-label{font-size:9px;letter-spacing:1.6px;color:#8fa4b1;display:block;margin-bottom:9px}.start-row{display:flex;gap:8px;max-width:510px}.start-row input{min-width:0;flex:1;background:#0c1c29da;border:1px solid #48616c;border-radius:8px;color:#fff;padding:12px 14px;font-size:14px;user-select:text}.start-row input:focus{outline:2px solid #88e5c2;outline-offset:2px}.btn{background:#8ae4c2;color:#0b2827;box-shadow:none;border-radius:8px;font-size:15px;padding:14px 22px;transition:background .15s,transform .15s}.btn:hover{background:#b0f8db}.btn:active{box-shadow:none;transform:translateY(1px)}.btn span{margin-left:18px}.btn:disabled{opacity:.5}.control-note{font-size:10px;color:#b2c0c6;line-height:2.3;margin:9px 0 0}.control-note span{font-size:10px;color:#8298a5}kbd{font:9px ui-monospace,monospace;border:1px solid #45606b;border-radius:4px;padding:3px 5px;color:#c0d0d4;margin-right:4px}.hero-stamp{position:absolute;bottom:23px;right:24px;border:1px solid #49656570;background:#0c1e28be;padding:12px 15px;border-radius:8px;font:8px ui-monospace,monospace;letter-spacing:1px;color:#a9c3c7;backdrop-filter:blur(8px)}.hero-stamp .live-dot{margin-right:7px}.hero-stamp b{display:block;font:14px system-ui;color:#c8eddd;margin-top:3px;padding-left:13px;letter-spacing:0}
.menu-bottom{display:grid;grid-template-columns:1fr 210px;gap:18px 24px;padding:26px 0 18px}.campaign-preview{grid-row:span 2}.section-kicker{font-size:10px;letter-spacing:1.6px;color:#d6e0df;display:flex;justify-content:space-between;margin-bottom:14px}.section-kicker span{color:#68818e}.chapter-map{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}.chapter-node{padding:12px 10px;border:1px solid #2c3e49;border-radius:7px;background:#111f2a;min-height:78px}.chapter-node .num{color:var(--stage-accent);font:11px ui-monospace,monospace}.chapter-node b{display:block;font-size:10px;font-weight:550;line-height:1.4;margin-top:9px;color:#b6c3ca}.chapter-node .stage-stars{color:#dfbe87;font-size:10px}.small-note{color:#8195a2;font-size:11px;line-height:1.7}.menu-footer{border-top:1px solid #253541;padding:15px 0;display:flex;justify-content:space-between;font-size:10px;color:#8498a4}.menu-footer span:last-child{font:8px ui-monospace,monospace;letter-spacing:1px}details summary{font-size:12px;color:#a9c0c9;cursor:pointer;list-style:none}details summary:hover{color:#8ae4c2}.sound-settings label,.pause-sound label{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#adbdc6;margin:12px 0}.sound-settings input[type=range],.pause-sound input{width:115px;accent-color:#8ae4c2}.sound-settings .motion-label{justify-content:flex-start;font-size:11px}.sound-settings .muteBtn{margin-top:12px}.muteBtn{border-color:#45606b;color:#b3c4ca}.lb{width:100%;border-color:#2c414d}.lb-tabs button{border-color:#35505e}.lb-tabs button.active{background:#89e4c2;border-color:#89e4c2}.leaderboard-details .lb{min-width:190px}.pause-sound{width:min(300px,85vw);margin-top:15px}
#missionHud{position:fixed;left:14px;top:111px;z-index:10;background:#0c1923e8;border:1px solid #567b7866;border-left:3px solid var(--stage-accent,#8ae4c2);padding:11px 14px;border-radius:0 8px 8px 0;max-width:min(360px,70vw);pointer-events:none}#missionHud span,#missionHud strong{display:block}#chapterLabel{font:9px ui-monospace,monospace;color:var(--stage-accent,#8ae4c2);letter-spacing:1.2px}#missionLabel{font-size:12px;font-weight:600;margin:5px 0;color:#e4ede8}#missionProgress{color:#9bb3be;font-size:11px}#dashBtn{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(78px,env(safe-area-inset-bottom));z-index:30;width:90px;height:76px;border:1px solid #8be3c39c;border-radius:16px;background:#123b36ed;color:#a3f7d5;font-size:24px;touch-action:none;cursor:pointer;box-shadow:0 4px 20px #0003}#dashBtn span{display:block;font-size:11px}#dashBtn small{display:block;font-size:8px;color:#90bfb5;margin-top:4px}#dashBtn:disabled{background:#14252e;color:#728a91;border-color:#455963;cursor:default}.debrief-panel{background:#10212df5;border:1px solid #3c5a66;border-radius:18px;padding:36px;max-width:780px;width:100%;box-shadow:0 24px 100px #0005}.debrief-panel .sub{margin:16px auto;line-height:1.65}.stars{font-size:32px;letter-spacing:8px;color:#e8bf7d;margin:18px 0}.reward-choices{display:flex;gap:10px;margin-top:24px}.reward{flex:1;background:#19313a;border:1px solid #48666d;border-radius:10px;padding:18px 12px;color:#e1ebe5;cursor:pointer}.reward:hover,.reward:focus-visible{border-color:#95ebc9;background:#24493f;outline:2px solid #94e9c6;outline-offset:2px}.reward b,.reward span{display:block}.reward b{font-size:14px;color:#9de9c8;margin-bottom:8px}.reward span{font-size:11px;line-height:1.6;color:#abc2c8}.card{background:#19303d;border:1px solid #48606f;box-shadow:0 10px 25px #0003;border-radius:12px}.card.pass{background:#203a35;border-color:#4c7464}.card .lv{color:#9cb8c7}.card .nm{color:#95e6c9}.card .ds{color:#c0d0d5}.card .key{border-color:#58727f}.card .ico{font-size:32px}.card:hover{transform:translateY(-4px);border-color:#8fe4c2}.overlay:not(#menu){justify-content:center}.overlay:not(#menu) h1{font-size:clamp(28px,5vw,46px)}:focus-visible{outline:2px solid #8ee8c4;outline-offset:4px}
@media(min-width:1600px){#menu{padding-top:45px}.menu-hero{min-height:625px}.hero-copy{padding-top:65px}.hero-facts{margin-top:30px;margin-bottom:35px}}
@media(max-width:850px){#menu{padding:15px 18px}.menu-hero{min-height:560px;background-position:65% center}.hero-copy{width:76%;padding:38px 27px}.menu-hero:before{background:linear-gradient(90deg,#0b1825fa,#0b1825e0 28%,#0b182566 68%,transparent)}.menu-bottom{grid-template-columns:1fr}.campaign-preview{grid-row:auto}.sound-settings,.leaderboard-details{padding:8px 0}.hero-stamp{display:none}.menu-footer span:last-child{display:none}#menu h1{font-size:58px;letter-spacing:-3px}.hero-facts{gap:16px}.chapter-node{padding:10px 8px}.chapter-node b{font-size:9px}.sound-settings{max-width:350px}.leaderboard-details .lb{max-width:360px}}
@media(max-width:520px){#menu{padding:10px 12px}.menu-nav{margin-bottom:10px}.menu-nav a{font-size:20px}.menu-nav a span{font-size:8px;margin-left:5px}.edition{font-size:7px;letter-spacing:1px}.menu-hero{min-height:610px;background-size:auto 480px;background-position:62% -5px;background-repeat:no-repeat;background-color:#0d1d29}.menu-hero:before{background:linear-gradient(0deg,#0d1d29 18%,#0d1d29f0 40%,#0d1d2920 76%,#0d1d2950)}.hero-copy{width:100%;padding:223px 19px 18px}.eyebrow{font-size:8px;letter-spacing:1.4px;margin-bottom:14px}#menu h1{font-size:40px;letter-spacing:-2px}#menu h1 em{font-size:26px;margin-top:9px}#menu .sub{font-size:12px;margin-top:16px}.hero-facts{gap:16px;margin:15px 0 19px;font-size:8px}.hero-facts b{font-size:12px}.start-row{gap:6px}.start-row input{width:45%;font-size:16px;padding:10px}.start-row .btn{padding:12px;font-size:12px;white-space:nowrap}.btn span{margin-left:7px}.control-note{font-size:9px}.control-note span{font-size:9px}.chapter-map{grid-template-columns:repeat(3,1fr)}.chapter-node{min-height:66px}.chapter-node b{font-size:10px}.menu-bottom{padding-top:20px;gap:7px}.debrief-panel{padding:23px 17px}.reward-choices{flex-direction:column}.reward{padding:12px}.reward b{margin-bottom:3px}#missionHud{top:111px;max-width:76vw;padding:8px 10px}#missionLabel{font-size:11px}.cards{gap:8px}.card{width:min(340px,92vw);padding:10px;display:grid;grid-template-columns:45px 1fr;text-align:left;column-gap:8px}.card .ico{grid-row:span 3;align-self:center;font-size:28px}.card .key{display:none}.card .nm{font-size:14px;margin:0}.card .lv{margin-top:2px}.card .ds{font-size:12px;min-height:0;margin-top:3px}.card .new{font-size:8px}.overlay:not(#menu){padding-left:12px;padding-right:12px}.overlay:not(#menu) h1{font-size:29px}.stat{min-width:70px;padding:7px 10px}.stat .v{font-size:19px}.arsenal span{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

/* Bark 6.0.2 controls; the illustrated canvas retains its game art palette. */
body,button,input,.overlay h1{font-family:var(--sans)}.menu-nav a{display:flex;align-items:center;gap:16px}.menu-nav a img{width:32px;height:32px}.menu-nav a strong{font-family:var(--logo-font);font-size:26px;font-weight:800}.menu-nav a span{margin-left:0}.menu-hero{background-size:auto 100%}.hero-copy{padding:40px}.btn{background:var(--accent-strong);color:var(--on-fill);height:var(--control-lg);border-radius:var(--radius-control);font-family:var(--sans);padding:0 20px}.btn:hover{background:var(--accent-hover)}.chapter-map{font-family:var(--sans)}.edition,.chapter-node .num,.hero-facts b,.lb-score,.stat .v,.stars{font-family:var(--mono)}#menu h1{font-family:var(--sans);font-weight:700}#menu h1 span{color:var(--accent-strong)}.control-note{font-family:var(--sans)}.start-row input:focus{outline-color:var(--accent)}.reward:hover,.reward:focus-visible{outline-color:var(--accent);border-color:var(--accent)}.lb-tabs button.active{background:var(--accent-strong);color:var(--on-fill);border-color:var(--accent-strong)}
@media(max-width:850px){.hero-copy{padding:32px 24px}}
@media(max-width:520px){.hero-copy{padding:223px 19px 18px}.menu-hero{background-size:auto 480px;background-position:62% -5px}.menu-nav a{gap:9px}.menu-nav a strong{font-size:22px}.menu-nav a img{width:28px;height:28px}.menu-nav a span{font-size:8px}.start-row .btn{padding:0 12px}}
/* Illustrated loadout: the same equipment is used in cards and on the floor. */
.card{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 20%,#31616b66,transparent 60%),linear-gradient(150deg,#213c49,#122630);padding:28px 22px 20px;border-color:#6d949877;box-shadow:inset 0 1px #c5ffed15,0 16px 40px #0004}.card .ico{height:114px;display:flex;align-items:center;justify-content:center;margin:5px 0 14px}.equipment-icon{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 7px 9px #0005)}.card .ico .equipment-icon{width:150px;max-width:90%}.card .nm{font-size:23px}.card .lv{text-transform:uppercase;font:10px 'IBM Plex Mono',monospace;letter-spacing:1px;margin:8px 0 15px}.card .ds{font-size:14px;line-height:1.55;min-height:44px}.upgrade-rank{display:flex;gap:5px;margin-top:18px;justify-content:center}.upgrade-rank i{width:22px;height:4px;border-radius:2px;background:#58738055}.upgrade-rank .lit{background:#96efd4;box-shadow:0 0 10px #7be9c655}.arsenal span{display:inline-flex;align-items:center;gap:6px}.arsenal .equipment-icon{width:32px;height:28px}.tool-fallback{font-size:16px}
@media(max-width:520px){.card{padding:13px;grid-template-columns:70px 1fr;column-gap:12px}.card .ico{height:66px;margin:0;grid-row:span 4}.card .ico .equipment-icon{width:76px;max-width:100%}.card .nm{font-size:16px;padding-right:30px}.card .lv{font-size:8px;margin:4px 0}.card .ds{font-size:12px;min-height:0}.upgrade-rank{justify-content:flex-start;margin-top:6px;gap:4px}.upgrade-rank i{width:16px;height:3px}}

/* Follow Safari chrome/keyboard changes without retaining a stale inline pixel height. */
#c{width:100%;height:100%;height:100dvh;max-width:none;max-height:none}

/* Main menu: visible company records and a keyboard-friendly hero selection. */
#menu{scroll-behavior:smooth;scroll-padding-top:20px}
.menu-nav .menu-brand{letter-spacing:1px}
.menu-nav-links{display:flex;align-items:center;gap:24px}
.menu-nav .rating-link{display:inline-flex;align-items:center;gap:9px;min-height:40px;padding:0 12px;border:1px solid var(--line);border-radius:var(--radius-control);font-size:12px;font-weight:600;letter-spacing:0;color:var(--ink)}
.menu-nav .rating-link span{margin:0;font-size:16px;letter-spacing:0;color:var(--accent-strong)}
.menu-nav .rating-link:hover{border-color:var(--accent);background:var(--surface-2)}
.menu-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.play-column{min-width:0}
.menu-layout .menu-hero{min-height:285px;border-radius:14px;background-position:right center;background-size:auto 115%}
.menu-layout .menu-hero:before{background:linear-gradient(90deg,#0b1825fc 0%,#0b1825e8 35%,#0b18256b 70%,transparent)}
.menu-layout .hero-copy{width:76%;padding:30px 28px}
.menu-layout .eyebrow{margin-bottom:18px;font-size:9px;letter-spacing:1.5px}
#menu .menu-layout h1{font-size:58px;letter-spacing:-3px;line-height:1}
#menu .menu-layout .sub{font-size:13px;line-height:1.6;margin-top:18px;max-width:350px}
.menu-layout .hero-facts{gap:18px;margin:22px 0 0;font-size:9px}
.menu-layout .hero-facts b{font-size:13px}
.menu-layout .hero-stamp{bottom:14px;right:14px;font-size:7px;padding:9px 11px}
.menu-layout .hero-stamp b{font-size:12px}
.player-setup{margin-top:14px;border:1px solid var(--line);border-radius:14px;background:#101d28;padding:22px 26px}
.setup-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:16px}
.setup-heading h2,.rating-heading h2{margin:0;font-size:18px;letter-spacing:-.4px;font-weight:650;color:var(--ink)}
.setup-heading>span{font-size:11px;color:var(--muted)}
.hero-selection{display:flex;flex-direction:column;gap:12px}
.selected-hero{display:flex;align-items:center;gap:14px;min-width:0}
#selectedHeroPreview{width:68px;height:68px;flex:0 0 68px;object-fit:contain;image-rendering:auto;background:#172934;border:1px solid #314854;border-radius:12px}
.selected-hero-copy{min-width:0}
#selectedHeroName{display:block;font-size:15px;color:var(--ink)}
#selectedHeroDescription{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.hero-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:8px}
.hero-choice{position:relative;min-width:0;min-height:103px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 6px 10px;border:1px solid #344955;border-radius:var(--radius-control);background:#14242f;color:var(--ink);cursor:pointer;font:inherit;transition:border-color .15s,background .15s,transform .15s}
.hero-choice canvas{width:52px;height:52px;object-fit:contain;image-rendering:auto;pointer-events:none}
.hero-choice-name,.hero-choice>strong,.hero-choice>b{display:block;font-size:12px;font-weight:600;line-height:1.25}
.hero-choice-role,.hero-choice>small{display:block;font-size:10px;font-weight:400;line-height:1.35;color:var(--muted)}
.hero-choice[aria-pressed=true]{border-color:var(--accent-strong);background:#17363e;box-shadow:inset 0 0 0 1px var(--accent-strong)}
.hero-choice[aria-pressed=true]:after{content:'Выбран';position:absolute;right:5px;top:5px;color:var(--on-fill);background:var(--accent-strong);border-radius:4px;padding:2px 4px;font-size:8px;font-weight:650;line-height:1.2}
.hero-choice:hover{border-color:var(--accent-strong);background:#1b3440}
.hero-choice:focus-visible{outline:2px solid var(--accent-strong);outline-offset:3px}
.start-section{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.start-section .start-row{max-width:none}
.start-section .field-label{font-size:10px}
.start-section .start-row input{font-size:15px}
.start-section .namehint:empty{min-height:0}
.start-section .control-note{margin-top:13px;line-height:2;font-size:11px}
.start-section .control-note span{font-size:11px;color:var(--muted)}
.shift-rules{margin-top:7px}
.shift-rules summary{font-size:11px;display:list-item;list-style:disclosure-closed;padding:4px 0;color:var(--muted)}
.shift-rules[open] summary{list-style:disclosure-open}
.shift-rules .small-note{margin:6px 0 0}
.leaderboard-panel{border:1px solid #37505b;border-radius:14px;background:#111f2a;overflow:hidden;scroll-margin-top:16px}
.rating-heading{padding:23px 20px 17px;border-bottom:1px solid var(--line)}
.menu-layout .rating-heading .eyebrow{font-size:9px;margin:0 0 11px;color:var(--accent-strong)}
.rating-heading p{margin:9px 0 0;font-size:12px;line-height:1.5;color:var(--muted)}
#lbMenu{margin:0;padding:16px 14px;border:0;background:transparent;border-radius:0;min-height:260px}
#lbMenu>.lb-title{display:none}
#lbMenu .lb-tabs{gap:5px;margin-bottom:13px}
#lbMenu .lb-tabs button{min-height:37px;padding:6px 4px;font:500 11px var(--sans);border-radius:6px}
#lbMenu .lb-list{max-height:510px;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#44606d transparent}
#lbMenu .lb-row{min-height:43px;padding:8px 6px;font-size:12px;gap:7px}
#lbMenu .lb-rank{width:24px;flex:0 0 24px;font:500 11px var(--mono)}
#lbMenu .lb-name{min-width:0}
#lbMenu .lb-score{font-size:12px}
#lbMenu .lb-empty{min-height:110px;font-size:12px;line-height:1.6;text-align:center;padding:18px}
.rating-note{margin:0;padding:15px 20px;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--muted)}
.menu-bottom{grid-template-columns:minmax(0,1fr) 320px;gap:20px;padding-top:24px}
.campaign-preview{grid-row:auto}
.sound-settings{padding:14px 18px;border:1px solid var(--line);border-radius:10px;align-self:start;max-width:none}
.sound-settings summary{display:list-item;list-style:disclosure-closed;font-size:12px}
.sound-settings[open] summary{list-style:disclosure-open}
@media(min-width:1600px){#menu{padding-top:30px}.menu-layout .hero-copy{padding:32px}.menu-layout .menu-hero{min-height:295px}}
@media(max-width:1100px){.menu-layout{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.menu-bottom{grid-template-columns:minmax(0,1fr) 290px;gap:16px}.menu-layout .hero-copy{width:85%;padding:26px 22px}.menu-layout .hero-stamp{display:none}.player-setup{padding:20px}.setup-heading{display:block}.setup-heading>span{display:block;margin-top:5px}.hero-picker{grid-template-columns:repeat(auto-fit,minmax(80px,1fr))}.chapter-map{grid-template-columns:repeat(3,1fr)}}
@media(max-width:850px){.menu-layout{grid-template-columns:minmax(0,1fr)}.menu-bottom{grid-template-columns:minmax(0,1fr)}.menu-layout .menu-hero{min-height:255px;background-position:right center;background-size:auto 130%}.menu-layout .hero-copy{width:70%;padding:28px}.menu-layout .menu-hero:before{background:linear-gradient(90deg,#0b1825fc 0%,#0b1825dd 40%,#0b18254d 75%,transparent)}.setup-heading{display:flex}.setup-heading>span{margin-top:0}.hero-picker{grid-template-columns:repeat(auto-fit,minmax(90px,1fr))}#lbMenu{min-height:0}#lbMenu .lb-list{max-height:330px}.rating-heading{padding:20px 20px 16px}.menu-layout .rating-heading .eyebrow{margin-bottom:8px}.rating-note{padding:12px 20px}.sound-settings{padding:15px 18px}.menu-nav-links{gap:12px}.menu-nav-links .edition{display:none}}
@media(max-width:520px){#menu{padding:10px 12px calc(22px + env(safe-area-inset-bottom))}.menu-nav{height:42px;margin-bottom:12px}.menu-nav .rating-link{min-height:36px;font-size:11px;padding:0 10px}.menu-layout .menu-hero{min-height:232px;background-size:auto 115%;background-position:right center}.menu-layout .hero-copy{width:87%;padding:24px 20px}.menu-layout .menu-hero:before{background:linear-gradient(90deg,#0b1825fa 0%,#0b1825e0 44%,#0b18258a 78%,#0b18251a)}.menu-layout .eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:18px}#menu .menu-layout h1{font-size:44px;letter-spacing:-2.5px}#menu .menu-layout .sub{font-size:12px;margin-top:15px;line-height:1.6}.menu-layout .hero-facts{gap:13px;margin-top:17px;font-size:8px;white-space:nowrap}.menu-layout .hero-facts b{font-size:11px}.player-setup{padding:18px 16px;margin-top:12px}.setup-heading{display:block;margin-bottom:14px}.setup-heading h2{font-size:17px}.setup-heading>span{margin-top:5px}.selected-hero{gap:12px}#selectedHeroPreview{width:60px;height:60px;flex-basis:60px}#selectedHeroName{font-size:14px}#selectedHeroDescription{font-size:11px}.hero-picker{grid-template-columns:repeat(auto-fit,minmax(68px,1fr));gap:6px}.hero-choice{min-height:99px;padding:10px 4px 8px}.hero-choice canvas{width:46px;height:46px}.hero-choice-name,.hero-choice>strong,.hero-choice>b{font-size:11px}.hero-choice-role,.hero-choice>small{font-size:9px}.hero-choice[aria-pressed=true]:after{font-size:7px;top:3px;right:3px;padding:2px 3px}.start-section{margin-top:16px;padding-top:16px}.start-section .start-row{flex-wrap:wrap;gap:9px}.start-section .start-row input{width:100%;flex-basis:100%;font-size:16px;min-height:44px;padding:11px 12px}.start-section .start-row .btn{width:100%;height:46px;font-size:14px;display:flex;align-items:center;justify-content:space-between;padding:0 15px}.start-section .control-note{font-size:10px;line-height:2.1}.start-section .control-note span{font-size:10px}.menu-bottom{padding-top:20px;gap:15px}.chapter-map{gap:7px}.chapter-node{padding:10px;min-height:72px}.menu-footer{line-height:1.6}.rating-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){#menu{scroll-behavior:auto}}

/* Full-height character art remains readable alongside the four choices. */
.hero-selection{display:grid;grid-template-columns:170px minmax(0,1fr);align-items:center;gap:18px}
.selected-hero{flex-direction:column;align-items:flex-start;gap:10px}
#selectedHeroPreview{width:154px;height:176px;flex:0 0 auto;align-self:center;background:radial-gradient(ellipse at 50% 80%,#284b5580,transparent 75%),#142631}
#selectedHeroName{font-size:14px}
#selectedHeroDescription{font-size:11px}
.hero-picker{grid-template-columns:repeat(2,minmax(0,1fr));align-self:stretch}
.hero-choice{min-height:115px}
.hero-choice canvas{width:64px;height:74px}
.setup-heading>span{font-size:10px;max-width:230px;text-align:right;line-height:1.5}
@media(min-width:1350px){.hero-picker{grid-template-columns:repeat(4,minmax(0,1fr));align-self:center}.hero-choice{min-height:140px}.hero-choice canvas{width:70px;height:84px}}
@media(max-width:1100px){.setup-heading>span{max-width:none;text-align:left}}
@media(max-width:850px){.hero-selection{grid-template-columns:150px minmax(0,1fr)}.hero-picker{grid-template-columns:repeat(4,minmax(0,1fr));align-self:center}.setup-heading>span{max-width:215px;text-align:right}}
@media(max-width:650px){.hero-selection{display:flex;flex-direction:column;align-items:stretch;gap:14px}.selected-hero{flex-direction:row;align-items:center;gap:16px}#selectedHeroPreview{width:112px;height:128px;flex-basis:112px}.hero-picker{align-self:stretch}.hero-choice{min-height:112px}.hero-choice canvas{width:55px;height:65px}}
@media(max-width:520px){.setup-heading>span{max-width:none;text-align:left;font-size:10px}.hero-choice{min-height:108px}.hero-choice canvas{width:50px;height:59px}}
@media(min-width:851px){.leaderboard-panel{position:sticky;top:0}}
/* Keep the launch action in the first desktop viewport, next to the full hero. */
@media(min-width:851px){
  .menu-layout .menu-hero{min-height:250px}
  .menu-layout .hero-copy{padding-top:26px;padding-bottom:26px}
  .menu-layout .hero-facts{margin-top:17px}
  .player-setup{display:grid;grid-template-columns:170px minmax(0,1fr);gap:14px 20px}
  .setup-heading{grid-column:1/-1;margin-bottom:2px}
  .hero-selection{display:contents}
  .selected-hero{grid-column:1;grid-row:2/4;align-self:center}
  .hero-picker{grid-column:2;grid-row:3;grid-template-columns:repeat(4,minmax(0,1fr));align-self:start}
  .hero-choice{min-height:116px}
  .hero-choice canvas{width:60px;height:70px}
  .start-section{grid-column:2;grid-row:2;margin:0;padding:0;border:0}
  .start-section .control-note,.start-section .control-note span{font-size:10px}
  .start-section .start-row{flex-wrap:wrap}
  .start-section .start-row input{flex-basis:140px;width:0}
  .start-section .start-row .btn{flex:1;white-space:nowrap;padding:0 14px;font-size:13px}
  .start-section .start-row .btn span{margin-left:10px}
}
@media(min-width:851px) and (max-width:1100px){
  .player-setup{grid-template-columns:120px minmax(0,1fr);gap:12px 14px}
  #selectedHeroPreview{width:120px;height:138px}
  .hero-choice canvas{width:45px;height:53px}
  .hero-choice{min-height:98px;padding-left:3px;padding-right:3px}
  .hero-choice-name,.hero-choice>strong,.hero-choice>b{font-size:10px}
  .hero-choice-role,.hero-choice>small{font-size:8px}
}

/* Illustrated portraits keep smooth edges and their original 4:5 canvas ratio. */
.hero-choice canvas{height:auto;aspect-ratio:4/5}
.lb-empty:has(.lb-retry){flex-direction:column;gap:10px}
.lb-retry{min-height:40px;padding:8px 16px;border:1px solid #49616d;border-radius:var(--radius-control);background:transparent;color:var(--ink);font:500 12px var(--sans);cursor:pointer}
.lb-retry:hover{border-color:var(--accent-strong);background:#1b3440}
.lb-retry:focus-visible{outline:2px solid var(--accent-strong);outline-offset:3px}
.lb-retry:active{background:#17363e}

/* Five visible choices: a readable 3 + 2 grid on phones, one row on wide screens. */
.hero-picker{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(min-width:1150px){.hero-picker{grid-template-columns:repeat(5,minmax(0,1fr))}}

#rebootBtn{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:calc(max(78px,env(safe-area-inset-bottom)) + 88px);z-index:30;width:90px;height:80px;border:1px solid #72dcd1;border-radius:16px;background:#17474ded;color:#b5fff1;font-size:26px;touch-action:none;cursor:pointer}#rebootBtn span{display:block;font-size:10px}#rebootBtn small{display:block;font-size:9px;margin-top:4px}#rebootBtn:disabled{background:#14252eed;color:#93aab1;border-color:#455963;cursor:default}#rebootBtn.ready{box-shadow:0 0 20px #62f4db66}#rebootBtn[hidden]{display:none}

.reward-choices[hidden]{display:none}

.stars.result-number{letter-spacing:1px;font-variant-numeric:tabular-nums}

#exitAlert{position:fixed;z-index:35;top:29%;left:50%;transform:translateX(-50%);width:min(90vw,600px);text-align:center;pointer-events:none;padding:16px 10px;border:2px solid #ffcf74;border-radius:14px;background:#16252ff2;box-shadow:0 8px 35px #0005;color:#ffdf91}#exitAlert[hidden]{display:none}#exitAlert strong{display:block;font-size:clamp(28px,6vw,52px);font-weight:900;letter-spacing:1px}#exitAlert span{display:block;font-size:clamp(12px,2vw,17px);margin-top:7px;color:#fff2d7}.upgrade-effect{display:block;margin-top:8px;color:#ffe0a1;font-size:12px}.build-help{display:block;max-width:320px;font-size:11px;line-height:1.5;color:#b4cbd1;margin-top:4px}

.arsenal span{flex-wrap:wrap}.arsenal .build-help{flex-basis:100%}
