/* Lane Wars - all UI styles. rem based (root font size is set by game.js from the window size); safe-area insets + 100dvh keep phones tidy.
   Sections: base, top bar, dock (energy + troop cards + powers), hint + banner, overlays (menu, map, sheet, barracks, help, settings, cards, intro), responsive */
:root { --acc: #C6FF3D; --pn: linear-gradient(180deg, #2A2362, #181340); --top: 44px; --dock: 74px; --sat: 0px; --sar: 0px; --sab: 0px; --sal: 0px; --gold: #FFD23F; --heart: #FF5C7A; }
html, body { margin: 0; height: 100%; height: 100dvh; overflow: hidden; background: #14102f; overscroll-behavior: none; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body { font-family: var(--font-b); color: var(--paper); }
button { font-family: inherit; touch-action: manipulation; -webkit-tap-highlight-color: transparent; cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
svg.fill, .fill svg { fill: currentColor; stroke: none; }
#app, .lw { position: fixed; inset: 0; width: 100%; height: 100dvh; overflow: hidden; background: #14102f; }
.cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body.playing .cv { cursor: crosshair; }
.btn { gap: .5em; white-space: nowrap; min-height: 2.6em; font-size: 1rem; }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn em { font-style: normal; opacity: .8; font-size: .8em; }
.btn--ghost { --bg: rgba(255, 255, 255, .09); --sh: rgba(0, 0, 0, .35); }
.btn--big { font-size: 1.35rem; }
.btn.dis, .btn:disabled { opacity: .45; filter: grayscale(.5); pointer-events: none; }
.shake { animation: lwshake .35s; }
@keyframes lwshake { 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.ic { display: block; }

/* ---------- top bar ---------- */
.bar { position: absolute; z-index: 30; left: 0; right: 0; top: 0; height: var(--top); padding: var(--sat) calc(var(--sar) + 8px) 0 calc(var(--sal) + 8px); display: flex; align-items: center; justify-content: space-between; gap: 8px; pointer-events: none;
  background: linear-gradient(180deg, rgba(14, 10, 40, .85), rgba(14, 10, 40, .5) 75%, rgba(14, 10, 40, 0)); }
.bar > * { pointer-events: auto; }
.bl, .br { display: flex; align-items: center; gap: .45rem; min-width: 0; }
.home { display: none; align-items: center; gap: 10px; text-decoration: none; padding: 6px 14px 6px 6px; border-radius: 14px; background: rgba(15, 12, 34, .55); }
.home img { width: 2.2rem; height: 2.2rem; } .home b { font-family: var(--font-d); font-size: .95rem; font-weight: 400; } .home b i { font-style: normal; color: var(--lime); }
.tool { position: relative; width: 2.7rem; height: 2.7rem; border: 0; padding: 0; display: grid; place-items: center; border-radius: .8rem; background: rgba(34, 28, 80, .88); color: #fff; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14) inset, 0 3px 0 rgba(0, 0, 0, .35); flex: none; transition: transform .12s, background .15s; }
.tool:hover { background: rgba(60, 50, 130, .95); transform: translateY(-1px); } .tool:active { transform: translateY(2px); }
.tool svg { width: 1.3rem; height: 1.3rem; }
.tool kbd { position: absolute; right: -.15rem; bottom: -.2rem; font: 800 .58rem var(--font-b); padding: .05rem .3rem; border-radius: .3rem; background: #fff; color: var(--ink); }
.tool.spd { width: auto; padding: 0 .7rem; gap: .25rem; grid-auto-flow: column; } .tool.spd b { font-family: var(--font-d); font-weight: 400; font-size: 1rem; } .tool.spd svg { width: 1rem; height: 1rem; }
.tool.spd.fast { background: linear-gradient(180deg, #FF8A3D, #D8501E); }
.bc { position: absolute; left: 50%; top: calc(var(--sat) + 3px); transform: translateX(-50%); height: calc(var(--top) - var(--sat) - 6px); display: flex; align-items: stretch; gap: .5rem; }
.hp { display: flex; align-items: center; gap: .35rem; } .hp.foe { flex-direction: row; }
.hpi { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: .7rem; background: linear-gradient(180deg, #4A8DFF, #2A5FD0); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25) inset; flex: none; } .hpi svg { width: 1.3rem; height: 1.3rem; }
.face { width: 2.4rem; height: 2.4rem; border-radius: .7rem; box-shadow: 0 0 0 2px #FF5C7A, 0 2px 0 rgba(0, 0, 0, .4); flex: none; background: #222; }
.hpb { position: relative; width: clamp(7rem, 17vw, 14rem); height: 1.7rem; border-radius: .6rem; overflow: hidden; background: rgba(12, 8, 34, .85); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset; }
.hpb i, .hpb s { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; transition: width .18s; border-radius: .6rem; }
.hpb s { background: rgba(255, 255, 255, .85); transition: width .5s .15s; }
.hp.me .hpb i { background: linear-gradient(180deg, #7DB8FF, #2E78F0); } .hp.foe .hpb i { background: linear-gradient(180deg, #FF8A8A, #E0323C); }
.hp.me .hpb i.low { background: linear-gradient(180deg, #FFC24A, #E8761E); }
.hp.foe .hpb { transform: scaleX(-1); } .hp.foe .hpb b { transform: scaleX(-1); }
.hpb b { position: absolute; inset: 0; display: grid; place-items: center; font: 400 .85rem var(--font-d); text-shadow: 0 2px 0 rgba(0, 0, 0, .55); font-variant-numeric: tabular-nums; }
.mid { min-width: 5.2rem; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.05; padding: 0 .5rem; border-radius: .8rem; background: rgba(20, 14, 56, .8); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .12) inset; max-width: 12rem; }
.mid small { font-size: .56rem; font-weight: 800; letter-spacing: .08em; color: #B8B2E8; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .mid b { font: 400 1.1rem var(--font-d); font-variant-numeric: tabular-nums; } .mid b.ot { color: #FF6A6A; animation: otp .8s infinite; }
@keyframes otp { 50% { opacity: .5; } }
body:not(.playing) .bar { display: none; }

/* ---------- dock ---------- */
.dock { position: absolute; z-index: 28; left: 0; right: 0; bottom: 0; height: var(--dock); padding: .35rem calc(var(--sar) + .5rem) calc(var(--sab) + .3rem) calc(var(--sal) + .5rem); display: flex; align-items: stretch; justify-content: center; gap: .6rem;
  background: linear-gradient(0deg, rgba(14, 10, 40, .94), rgba(14, 10, 40, .8) 70%, rgba(14, 10, 40, 0)); }
.en { flex: none; width: 9.2rem; display: flex; align-items: center; gap: .45rem; padding: 0 .6rem; border-radius: .9rem; background: linear-gradient(180deg, #3A2E8A, #1E1654); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .16) inset, 0 3px 0 rgba(0, 0, 0, .35); }
.eni { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #FFF6A0, #FFB020); color: #7A3A00; flex: none; box-shadow: 0 0 .9rem rgba(255, 190, 40, .55); } .eni svg { width: 1.1rem; height: 1.1rem; }
.enm { flex: 1; min-width: 0; } .enn { line-height: 1; } .enn b { font: 400 1.5rem var(--font-d); font-variant-numeric: tabular-nums; } .enn small { font-size: .75rem; font-weight: 800; color: #B8B2E8; }
.enb { position: relative; margin-top: .25rem; height: .55rem; border-radius: 99px; background: rgba(0, 0, 0, .5); overflow: hidden; } .enb i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #FFB020, #FFE27A); border-radius: 99px; transition: width .1s linear; }
.enb u { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, .55); opacity: 0; text-decoration: none; transition: opacity .2s; }
.cards { display: flex; gap: .4rem; min-width: 0; }
.uc { position: relative; width: 6rem; flex: 0 1 6rem; border: 0; padding: .1rem 0 0; border-radius: .9rem; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; color: #fff; overflow: hidden; background: var(--pn); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .15) inset, 0 3px 0 rgba(0, 0, 0, .4); transition: transform .1s, box-shadow .15s; }
.uc:hover { transform: translateY(-2px); } .uc:active { transform: translateY(1px); }
.uc.on { box-shadow: 0 0 0 3px var(--acc) inset, 0 0 1.1rem rgba(198, 255, 61, .45); background: linear-gradient(180deg, #4A3A9A, #281F6A); }
.ucf { position: absolute; inset: 0; transform-origin: bottom; background: linear-gradient(0deg, rgba(255, 210, 63, .3), rgba(255, 210, 63, .05)); pointer-events: none; opacity: 0; }
.uc.dim .ucf { opacity: 1; }
.uc.dim .uci { opacity: .5; filter: grayscale(.55); } .uc.dim .ucc { color: #FF8A98; }
.uci { width: 3.7rem; height: 3.7rem; flex: none; position: relative; margin-top: .05rem; }
.ucc { position: relative; font: 400 .95rem var(--font-d); line-height: 1; color: var(--gold); text-shadow: 0 2px 0 rgba(0, 0, 0, .5); display: flex; align-items: center; gap: .25em; margin-top: -.1rem; }
.ucc s { width: .65em; height: .65em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #E8A21A); display: inline-block; text-decoration: none; }
.uc kbd { position: absolute; left: .25rem; top: .2rem; font: 800 .6rem var(--font-b); padding: .05rem .3rem; border-radius: .3rem; background: rgba(255, 255, 255, .85); color: var(--ink); }
body.is-touch .uc kbd, body.is-touch .pw kbd, body.is-touch .tool kbd { display: none; }
.ucl { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; background: rgba(12, 8, 34, .78); } .ucl svg { width: 1.4rem; height: 1.4rem; } .ucl em { font-style: normal; font-size: .62rem; font-weight: 800; color: #B8B2E8; }
.uc.lock .ucl { display: flex; } .uc.lock .uci, .uc.lock .ucc, .uc.lock kbd { display: none; }
.pws { display: flex; gap: .4rem; flex: none; }
.pw { position: relative; width: 4.6rem; border: 0; padding: 0; border-radius: .9rem; display: grid; place-items: center; color: #fff; background: linear-gradient(180deg, #4A3A9A, #2A2068); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .15) inset, 0 3px 0 rgba(0, 0, 0, .4); overflow: hidden; }
.pw > svg { width: 2rem; height: 2rem; color: var(--c); filter: drop-shadow(0 0 .4rem var(--c)); }
.pw i { position: absolute; inset: 0; background: conic-gradient(rgba(10, 6, 30, .75) calc(var(--cd, 0) * 360deg), transparent 0); display: none; } .pw.cd i { display: block; } .pw.cd > svg { opacity: .5; }
.pw kbd { position: absolute; left: .25rem; top: .2rem; font: 800 .6rem var(--font-b); padding: .05rem .3rem; border-radius: .3rem; background: rgba(255, 255, 255, .85); color: var(--ink); }
.pw.on { box-shadow: 0 0 0 3px var(--c) inset, 0 0 1.1rem var(--c); } .pw.act { box-shadow: 0 0 0 3px var(--c) inset; animation: pwact .6s infinite; }
@keyframes pwact { 50% { box-shadow: 0 0 0 3px var(--c) inset, 0 0 1rem var(--c); } }
.pw:not(.cd):not(.lock):not(.on) { animation: abready 2.4s ease-in-out infinite; } @keyframes abready { 50% { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .15) inset, 0 0 .9rem var(--c), 0 3px 0 rgba(0, 0, 0, .4); } }
.pw .pwl { position: absolute; inset: 0; display: none; place-items: center; background: rgba(12, 8, 34, .8); } .pw .pwl svg { width: 1.2rem; height: 1.2rem; } .pw.lock .pwl { display: grid; } .pw.lock > svg, .pw.lock kbd { display: none; }

/* ---------- banner + hint ---------- */
.ban { position: absolute; z-index: 26; left: 50%; top: 30%; transform: translate(-50%, 0); text-align: center; pointer-events: none; opacity: 0; width: 90vw; }
.ban b { display: block; font: 400 clamp(1.8rem, 5vw, 3.6rem) var(--font-d); letter-spacing: .02em; color: #fff; text-shadow: 0 4px 0 rgba(0, 0, 0, .45), 0 0 1.6rem var(--acc); text-transform: uppercase; }
.ban small { display: inline-block; margin-top: .4rem; padding: .25rem .9rem; border-radius: 999px; background: rgba(14, 10, 40, .72); font-size: .95rem; font-weight: 800; color: #E8E4FF; }
.ban.show { animation: banin 2.5s ease forwards; } .ban.boss b, .ban.warn b { color: #FF5C7A; text-shadow: 0 4px 0 rgba(0, 0, 0, .5), 0 0 2rem #FF2040; }
@keyframes banin { 0% { opacity: 0; transform: translate(-50%, -20px) scale(.85); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 20% { transform: translate(-50%, 0) scale(1); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -10px); } }
.hint { position: absolute; z-index: 27; left: 50%; top: calc(var(--top) + .7rem); transform: translate(-50%, -10px); max-width: min(86vw, 40rem); padding: .55rem 1.1rem; border-radius: 999px; text-align: center; font-weight: 700; font-size: .92rem; line-height: 1.3; background: rgba(14, 10, 40, .92); box-shadow: 0 0 0 2px rgba(198, 255, 61, .6) inset, 0 8px 24px rgba(0, 0, 0, .5); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.hint.show { opacity: 1; transform: translate(-50%, 0); } .hint b { color: var(--acc); } .hint.bad { box-shadow: 0 0 0 2px #FF5C7A inset, 0 8px 24px rgba(0, 0, 0, .5); }

/* ---------- overlays ---------- */
.ovl { position: absolute; inset: 0; z-index: 40; display: none; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; padding: calc(var(--sat) + 1rem) calc(var(--sar) + 1rem) calc(var(--sab) + 1rem) calc(var(--sal) + 1rem); }
.ovl::-webkit-scrollbar { display: none; }
.ovl.show { display: grid; animation: ovin .25s ease; } @keyframes ovin { from { opacity: 0; } }
.ovl.center { place-items: center; background: rgba(12, 8, 36, .62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.ovl.maps { background: rgba(12, 8, 36, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); align-content: start; }
.ovl.fin { place-items: center; background: rgba(12, 8, 36, .3); }
.ovl.intro { place-items: center; background: radial-gradient(circle at 50% 50%, rgba(12, 8, 36, .55), rgba(12, 8, 36, .92)); }
.ovl.menuov { place-items: center start; background: linear-gradient(90deg, rgba(14, 10, 40, .92) 0%, rgba(14, 10, 40, .62) 38%, rgba(14, 10, 40, 0) 70%), linear-gradient(0deg, rgba(14, 10, 40, .5), transparent 35%); padding-left: calc(var(--sal) + clamp(1.2rem, 6vw, 7rem)); }
.menu { width: min(34rem, 100%); animation: arpop .5s var(--ease); } @keyframes arpop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.kick { display: inline-flex; align-items: center; gap: .6em; font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--acc); } .kick::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: currentColor; }
.kick span { color: #CFC9F5; letter-spacing: .1em; padding: .15em .7em; border-radius: 99px; background: rgba(255, 255, 255, .09); }
.logo { margin: .1em 0; font-family: var(--font-d); font-weight: 400; text-transform: uppercase; line-height: .86; font-size: clamp(3rem, 8vw, 6.6rem); text-shadow: 0 6px 0 rgba(0, 0, 0, .4); }
.logo span, .logo b { display: block; font-weight: 400; } .logo span { color: #fff; } .logo b { background: linear-gradient(100deg, #C6FF3D 0%, #6BE04A 40%, #2FD6A0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 5px 0 rgba(0, 0, 0, .4)); }
.tag { margin: .5rem 0 1.1rem; font-size: 1.05rem; font-weight: 600; color: #DCD7FF; max-width: 28em; line-height: 1.45; }
.cta { display: flex; gap: .7rem; flex-wrap: wrap; } .sub2 { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }
.stats { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; } .stats > div { padding: .45rem .9rem; border-radius: .9rem; background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; line-height: 1.05; }
.stats small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .stats b { font-family: var(--font-d); font-weight: 400; font-size: 1.4rem; } .stats em { font-style: normal; font-size: .8rem; opacity: .6; }
.orient { display: none; align-items: center; gap: .6rem; margin-top: .9rem; padding: .5rem .8rem; border-radius: .8rem; background: rgba(47, 214, 255, .12); box-shadow: 0 0 0 1.5px rgba(47, 214, 255, .35) inset; font-size: .8rem; font-weight: 700; color: #CDEFFF; } .orient.on { display: flex; } .orient svg { width: 1.4rem; height: 1.4rem; flex: none; stroke: var(--cyan); }
.scr { width: min(84rem, 100%); margin: 0 auto; } .scr-h { display: flex; align-items: center; gap: .9rem; margin-bottom: .8rem; flex-wrap: wrap; } .scr-h h2 { margin: 0; font: 400 clamp(1.3rem, 2.6vw, 2.2rem) var(--font-d); text-transform: uppercase; flex: 1; text-shadow: 0 3px 0 rgba(0, 0, 0, .4); }
.tot { display: flex; align-items: center; gap: .3rem; font-family: var(--font-d); font-size: 1.2rem; color: var(--gold); } .tot svg { width: 1.5rem; height: 1.5rem; } .tot b { font-weight: 400; } .tot em { font-style: normal; font-size: .8em; opacity: .6; } .tot.gold { color: #FFE27A; }
.tot svg.fill { fill: currentColor; }
.tabs { display: flex; gap: .4rem; margin-bottom: .7rem; flex-wrap: wrap; }
.tabx { position: relative; border: 0; padding: .5rem 1.1rem; border-radius: .9rem; background: rgba(255, 255, 255, .08); color: #DCD7FF; font: 400 .9rem var(--font-d); text-transform: uppercase; display: flex; align-items: center; gap: .5rem; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08) inset; }
.tabx b { font-weight: 400; } .tabx small { font: 800 .7rem var(--font-b); opacity: .7; } .tabx svg { width: 1rem; height: 1rem; } .tabx.on { background: var(--c, var(--acc)); color: var(--ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); } .tabx.lk { opacity: .55; }
.mapbody { position: relative; border-radius: 1.4rem; overflow: hidden; background-size: cover; background-position: center; aspect-ratio: 2.3; width: 100%; min-height: 12rem; box-shadow: 0 0 0 3px var(--c), 0 14px 40px rgba(0, 0, 0, .5); }
.mapshade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 6, 30, .1), rgba(10, 6, 30, .1) 40%, rgba(10, 6, 30, .55)); }
.mp { position: absolute; inset: 0; width: 100%; height: 100%; }
.mapcap { position: absolute; left: 1rem; right: 1rem; bottom: .6rem; display: flex; flex-direction: column; text-shadow: 0 2px 4px rgba(0, 0, 0, .8); pointer-events: none; } .mapcap b { font: 400 1.1rem var(--font-d); text-transform: uppercase; } .mapcap span { font-size: .8rem; font-weight: 700; opacity: .9; }
.node { position: absolute; transform: translate(-50%, -50%); border: 0; background: none; padding: 0; color: #fff; display: flex; flex-direction: column; align-items: center; gap: .1rem; width: 7.5rem; transition: transform .15s; }
.node:hover:not(:disabled) { transform: translate(-50%, -54%) scale(1.06); }
.nb { width: 3.3rem; height: 3.3rem; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #fff, var(--c) 45%, #1d1a40 130%); color: var(--ink); box-shadow: 0 0 0 3px #fff, 0 4px 0 3px rgba(0, 0, 0, .35); font: 400 1.4rem var(--font-d); }
.nb em { font-style: normal; } .nb svg { width: 1.4rem; height: 1.4rem; stroke: none; } .nb .nc { width: 1.8rem; height: 1.6rem; color: #FFD23F; stroke: none; }
.node.boss .nb { width: 4.2rem; height: 4.2rem; background: radial-gradient(circle at 35% 30%, #FFF2A0, #FF5C7A 55%, #4A1030 130%); box-shadow: 0 0 0 3px #FFD23F, 0 4px 0 3px rgba(0, 0, 0, .4), 0 0 1.4rem rgba(255, 92, 122, .7); }
.node.lock .nb { background: #3a3560; color: #9A94C7; box-shadow: 0 0 0 3px #6a6498, 0 4px 0 3px rgba(0, 0, 0, .35); } .node.lock { cursor: default; opacity: .85; }
.node small { font: 800 .65rem var(--font-b); text-shadow: 0 2px 3px #000, 0 0 6px #000; max-width: 100%; text-align: center; line-height: 1.1; }
.node .stl { margin-top: .1rem; } .node.fresh .nb { animation: fresh 1.4s ease-in-out infinite; } @keyframes fresh { 50% { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 4px 0 3px rgba(0, 0, 0, .35), 0 0 1.5rem var(--c); } }
.stl { display: inline-flex; gap: .15rem; } .st { width: 1.3rem; height: 1.3rem; color: rgba(255, 255, 255, .22); display: inline-block; } .st svg { width: 100%; height: 100%; } .st.on { color: var(--gold); filter: drop-shadow(0 0 .4rem rgba(255, 210, 63, .7)); }
.stl.sm .st { width: .95rem; height: .95rem; } .stl.big .st { width: 3rem; height: 3rem; }
.stl.pop .st { transform: scale(.5); opacity: .4; transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), opacity .2s; } .stl.pop .st.hit { transform: scale(1.1); opacity: 1; }
.sheet { width: min(62rem, 100%); display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.2rem; padding: 1.1rem; border-radius: 1.6rem; background: var(--pn); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 30px 80px rgba(0, 0, 0, .6); animation: arpop .35s var(--ease); }
.sh-l { text-align: center; } .sh-l .face.big { width: min(100%, 15rem); height: auto; aspect-ratio: 1; border-radius: 1.2rem; box-shadow: 0 0 0 3px var(--c), 0 10px 30px rgba(0, 0, 0, .5); margin: 0 auto; display: block; }
.vs b { display: block; font: 400 1.2rem var(--font-d); margin-top: .5rem; text-transform: uppercase; } .vs small { color: var(--c); font-weight: 800; font-size: .8rem; } .quote { margin: .4rem 0 0; font-weight: 700; font-style: italic; color: #DCD7FF; font-size: .9rem; }
.kick2 { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c); } .sh-r h2 { margin: .1em 0 .3em; font: 400 clamp(1.5rem, 3vw, 2.3rem) var(--font-d); text-transform: uppercase; line-height: 1; }
.facts { display: flex; gap: .4rem; flex-wrap: wrap; } .facts > div { padding: .35rem .7rem; border-radius: .8rem; background: rgba(255, 255, 255, .07); line-height: 1.05; } .facts small, .tps small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .facts b { font: 400 1.1rem var(--font-d); display: inline-flex; align-items: center; gap: .3rem; } .facts b svg { width: 1rem; height: 1rem; color: var(--gold); }
.tps { margin: .6rem 0 .3rem; } .tps > div { display: flex; flex-wrap: wrap; gap: .25rem; } .tp canvas { width: 2.8rem; height: 2.8rem; display: block; background: rgba(255, 255, 255, .07); border-radius: .7rem; } .tp.bossi canvas { box-shadow: 0 0 0 2px #FF5C7A; }
.note { margin: .25rem 0; font-size: .82rem; font-weight: 700; color: #CFC9F5; } .note.new { color: var(--acc); } .note b { color: #fff; }
.sh-st { display: flex; align-items: center; gap: .8rem; margin: .5rem 0 .6rem; } .sh-st .stl.big .st { width: 2.2rem; height: 2.2rem; } .sh-st small { font-weight: 800; color: #B8B2E8; font-size: .8rem; }
.acts { display: grid; gap: .6rem; } .acts.row { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; } .acts .row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.cardw { width: min(30rem, 100%); text-align: center; padding: 1.5rem 1.6rem 1.3rem; border-radius: 1.8rem; background: var(--pn); box-shadow: 0 0 0 2px rgba(255, 255, 255, .14) inset, 0 30px 80px rgba(0, 0, 0, .6); animation: arpop .35s var(--ease); max-height: 100%; overflow: auto; scrollbar-width: none; }
.cardw.wide { width: min(36rem, 100%); text-align: left; } .cardw h2 { margin: 0 0 .3rem; font: 400 clamp(1.8rem, 4vw, 2.8rem) var(--font-d); text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .4); line-height: 1; } .cardw.wide h2 { text-align: center; margin-bottom: 1rem; }
.sub { margin: 0 0 .8rem; color: #CFC9F5; font-weight: 600; } .sub.tip { font-size: .85rem; margin: .8rem 0; color: #B8B2E8; }
.biglab { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.rec { display: inline-block; margin: .3rem 0 .6rem; padding: .3em 1em; border-radius: 999px; background: var(--sun); color: var(--ink); font: 400 .9rem var(--font-d); transform: rotate(-3deg); box-shadow: 0 3px 0 #B68A00; }
.stats4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.4rem, 1fr)); gap: .5rem; margin: .9rem 0; } .stats4 > div { padding: .5rem .3rem; border-radius: .9rem; background: rgba(255, 255, 255, .06); line-height: 1.1; } .stats4 small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: .2rem; } .stats4 b { font: 400 1.25rem var(--font-d); } .stats4 b.gold { color: var(--gold); }
.res.win h2 { color: var(--acc); } .res.lose h2 { color: #FF8A98; } .res.win .stl.big { margin: .3rem 0 .1rem; }
.unl { display: flex; align-items: center; gap: .6rem; justify-content: center; margin: .5rem 0; padding: .5rem .8rem; border-radius: 1rem; background: rgba(198, 255, 61, .12); box-shadow: 0 0 0 1.5px rgba(198, 255, 61, .4) inset; } .unl canvas { width: 2.8rem; height: 2.8rem; } .unl small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--acc); } .unl b { font: 400 1.1rem var(--font-d); } .unl .tic { width: 2.8rem; height: 2.8rem; }
.cardw.fin { width: min(34rem, 100%); } .crown { width: 3.6rem; margin: 0 auto .4rem; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); } .crown svg { stroke: none; fill: none; }
.rows { display: grid; gap: .7rem; } .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 800; }
.sw { border: 0; padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #fff; font: 800 .85rem var(--font-b); min-width: 5rem; } .sw.on { background: linear-gradient(180deg, #8EE04A, #4C9A1E); color: #10220a; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 55%; height: 1.6rem; background: transparent; touch-action: pan-x; } input[type=range]::-webkit-slider-runnable-track { height: .55rem; border-radius: 99px; background: linear-gradient(90deg, var(--acc) var(--v, 100%), rgba(255, 255, 255, .15) var(--v, 100%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.4rem; height: 1.4rem; margin-top: -.43rem; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
/* barracks + help */
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.tc { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 1.1rem; background: var(--pn); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .13) inset, 0 5px 0 rgba(0, 0, 0, .3); } .tc.lk { opacity: .6; } .tc.pulse { animation: tcp .9s ease 2; } @keyframes tcp { 50% { box-shadow: 0 0 0 3px var(--acc) inset, 0 0 1.5rem var(--acc); } }
.tic { width: 3.6rem; height: 3.6rem; flex: none; border-radius: .9rem; background: rgba(255, 255, 255, .08); } .tic.svg { display: grid; place-items: center; color: var(--c, #FFD23F); } .tic.svg svg { width: 60%; height: 60%; }
.tcm { flex: 1; min-width: 0; } .tcm b { display: block; font: 400 1rem var(--font-d); text-transform: uppercase; } .tcm small { display: block; font-size: .75rem; font-weight: 700; color: #CFC9F5; line-height: 1.25; } .tcm small.nx { color: #8d87c0; } .tcm small.mx { color: var(--acc); }
.pips { display: flex; gap: .2rem; margin: .15rem 0 .2rem; } .pips i { width: .9rem; height: .5rem; border-radius: .2rem; background: rgba(255, 255, 255, .15); } .pips i.on { background: linear-gradient(180deg, #FFE27A, #FF9A2A); box-shadow: 0 0 .4rem rgba(255, 190, 40, .6); }
.buy { flex: none; min-width: 5.2rem; padding: .55rem .7rem; border: 0; border-radius: .9rem; display: flex; align-items: center; justify-content: center; gap: .3rem; color: var(--ink); font: 400 1.1rem var(--font-d); background: linear-gradient(180deg, #FFE27A, #F2A21A); box-shadow: 0 4px 0 #9A5A00; } .buy svg { width: 1.2rem; height: 1.2rem; } .buy b { font-weight: 400; }
.buy:active { transform: translateY(3px); box-shadow: 0 1px 0 #9A5A00; } .buy.dis { background: rgba(255, 255, 255, .12); color: #9A94C7; box-shadow: none; } .buy.done { background: rgba(198, 255, 61, .2); color: var(--acc); box-shadow: none; } .buy.lkd { flex-direction: column; background: rgba(255, 255, 255, .08); color: #9A94C7; box-shadow: none; font-size: .7rem; } .buy.lkd small { font: 800 .6rem var(--font-b); text-align: center; }
.hbody { padding-bottom: 1rem; }
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; } .step { display: flex; gap: .7rem; padding: .8rem; border-radius: 1rem; background: rgba(255, 255, 255, .06); } .step i { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font: 400 1.1rem var(--font-d); font-style: normal; background: var(--acc); color: var(--ink); } .step b { font: 400 1rem var(--font-d); } .step p { margin: .2rem 0 0; font-size: .85rem; font-weight: 600; color: #DCD7FF; line-height: 1.4; }
.enc { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; } .ec { padding: .7rem; border-radius: 1rem; background: rgba(255, 255, 255, .06); } .ec .eh { display: flex; gap: .5rem; align-items: center; margin-bottom: .3rem; } .ec .eh canvas { width: 3.6rem; height: 3.6rem; } .ec b { font: 400 1rem var(--font-d); display: block; } .ec .role { font-size: .7rem; font-weight: 800; color: var(--acc); text-transform: uppercase; letter-spacing: .08em; } .ec p { margin: .2rem 0 .3rem; font-size: .8rem; font-weight: 600; color: #DCD7FF; line-height: 1.3; } .es { font-size: .7rem; font-weight: 800; color: #B8B2E8; } .tipx { color: #FFE27A !important; font-weight: 700 !important; }
.enc.pw3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- VS intro ---------- */
.vsc { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 1rem; width: min(60rem, 100%); text-align: center; cursor: pointer; }
.vsc .face.big { width: min(100%, 13rem); height: auto; aspect-ratio: 1; border-radius: 1.4rem; margin: 0 auto .5rem; display: block; box-shadow: 0 0 0 3px var(--c), 0 14px 40px rgba(0, 0, 0, .6); background: #222; }
.vsc .vl .face.big { box-shadow: 0 0 0 3px #4D9BFF, 0 14px 40px rgba(0, 0, 0, .6); background: radial-gradient(circle at 50% 30%, #6CB0FF, #1E3A8A); }
.statstrip { display: flex; gap: .5rem; flex-wrap: wrap; margin: 0 0 .7rem; } .statstrip > div { padding: .35rem .8rem; border-radius: .9rem; background: rgba(255, 255, 255, .07); line-height: 1.05; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .1) inset; } .statstrip small { display: block; font-size: .58rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); } .statstrip b { font: 400 1.05rem var(--font-d); }
.keys { margin-top: .8rem; padding: .6rem .9rem; border-radius: .9rem; background: rgba(255, 255, 255, .06); font-size: .82rem; font-weight: 700; color: #DCD7FF; line-height: 1.7; } .keys kbd { display: inline-block; min-width: 1.5em; text-align: center; padding: .05em .45em; margin: 0 .1em; border-radius: .35em; background: #fff; color: var(--ink); font: 800 .85em var(--font-b); }
.vsc b { display: block; font: 400 1.3rem var(--font-d); text-transform: uppercase; } .vsc small { color: var(--mute); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.vm h2 { margin: .2rem 0; font: 400 clamp(1.4rem, 3.4vw, 2.6rem) var(--font-d); text-transform: uppercase; text-shadow: 0 4px 0 rgba(0, 0, 0, .4); } .vm i { display: block; font: 400 clamp(2.5rem, 7vw, 5rem) var(--font-d); font-style: normal; color: #FF5C7A; text-shadow: 0 6px 0 rgba(0, 0, 0, .45), 0 0 2rem #FF2040; animation: vsp .5s ease-out; } .vm p { margin: 0; font-weight: 800; color: #DCD7FF; }
.vl { animation: vsl .5s var(--ease); } .vr { animation: vsr .5s var(--ease); } @keyframes vsl { from { opacity: 0; transform: translateX(-60px); } } @keyframes vsr { from { opacity: 0; transform: translateX(60px); } } @keyframes vsp { from { opacity: 0; transform: scale(2.4); } }

/* ---------- responsive ---------- */
body.short .home { display: none !important; }
body.short .logo { font-size: clamp(2.2rem, 11vh, 4rem); } body.short .tag { font-size: .85rem; margin: .3rem 0 .6rem; } body.short .stats { margin-top: .6rem; } body.short .stats > div { padding: .25rem .6rem; } body.short .stats b { font-size: 1.1rem; }
body.short .btn--big { font-size: 1.1rem; padding: .6em 1.3em; } body.short .sub2 { margin-top: .5rem; } body.short .kick { font-size: .7rem; }
body.short .ovl { padding-top: calc(var(--sat) + .5rem); padding-bottom: calc(var(--sab) + .5rem); }
body.short .scr-h { margin-bottom: .4rem; } body.short .scr-h .btn { min-height: 0; padding: .45em .9em; } body.short .tabs { margin-bottom: .4rem; } body.short .tabx { padding: .35rem .8rem; }
body.short .mapbody { aspect-ratio: auto; height: calc(100dvh - 9.5rem - var(--sat) - var(--sab)); min-height: 10rem; } body.short .node { width: 6.5rem; } body.short .nb { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; } body.short .node.boss .nb { width: 3.2rem; height: 3.2rem; } body.short .mapcap span { display: none; }
body.short .sheet { padding: .7rem; gap: .8rem; } body.short .sh-l .face.big { width: 7.5rem; } body.short .quote, body.short .tps small { display: none; } body.short .note { margin: .1rem 0; font-size: .72rem; } body.short .sh-st { margin: .3rem 0; } body.short .facts > div { padding: .2rem .5rem; }
body.short .cardw { padding: .8rem 1.1rem; } body.short .cardw h2 { font-size: 1.6rem; } body.short .stats4 { margin: .4rem 0; } body.short .stl.big .st { width: 2.3rem; height: 2.3rem; }
body.short .tgrid { gap: .45rem; } body.short .tc { padding: .4rem .6rem; gap: .5rem; } body.short .tic { width: 2.8rem; height: 2.8rem; } body.short .tcm small.nx { display: none; } body.short .buy { min-width: 4.4rem; padding: .45rem .5rem; font-size: .95rem; } body.short .tcm b { font-size: .85rem; }
body.short .vsc .face.big { width: 7.5rem; } body.short .vm i { font-size: 2.4rem; }
body.short .step p { font-size: .75rem; } body.short .step { padding: .5rem; } body.short .ec p { font-size: .72rem; }
body.short .ban { top: 26%; } body.short .hint { font-size: .78rem; padding: .3rem .8rem; top: calc(var(--top) + .4rem); max-width: 70vw; } body.short .statstrip { margin-bottom: .4rem; } body.short .statstrip > div { padding: .2rem .6rem; } body.short .keys { font-size: .72rem; padding: .4rem .7rem; margin-top: .5rem; }
@media (max-width: 640px) { .tgrid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .enc, .enc.pw3 { grid-template-columns: repeat(2, 1fr); } .sheet { grid-template-columns: .7fr 1.3fr; } }
@media (max-width: 760px) { .mid { display: none; } .hpb { width: clamp(6rem, 24vw, 12rem); } }
body.portrait .dock { flex-wrap: wrap; align-content: flex-end; gap: .3rem; } body.portrait .cards { order: 1; width: 100%; } body.portrait .uc { flex: 1 1 0; width: auto; min-width: 0; height: 4.9rem; } body.portrait .uci { width: 3.2rem; height: 3.2rem; } body.portrait .en { order: 2; width: auto; flex: 1.2 1 0; height: 3.6rem; } body.portrait .pws { order: 3; flex: 1.4 1 0; height: 3.6rem; } body.portrait .pw { flex: 1; width: auto; }
body.portrait .mid, body.portrait .face, body.portrait .hpi { display: none; } body.portrait .hpb { width: 30vw; } body.portrait .bc { gap: .3rem; }
body.portrait .sheet { grid-template-columns: 1fr; } body.portrait .ovl.menuov { padding-left: calc(var(--sal) + 1rem); background: rgba(14, 10, 40, .78); }
body.v-main:not(.playing) .home { display: inline-flex !important; position: fixed; left: calc(var(--sal) + 10px); top: calc(var(--sat) + 10px); z-index: 50; }
body.short.v-main:not(.playing) .home { padding: 4px 10px 4px 4px; } body.short.v-main:not(.playing) .home b { display: none; }
body.short:not(.playing) .ovl.maps, body.short:not(.playing) .ovl.center { padding-top: calc(var(--sat) + 3.3rem); }
body.short:not(.playing) .ovl.menuov { padding-top: calc(var(--sat) + .3rem); }
@media (prefers-reduced-motion: reduce) { .ban.show { animation-duration: .01s; } .pw:not(.cd), .node.fresh .nb { animation: none; } .menu, .cardw, .sheet { animation: none; } }
