/* Zombokalypsa – web. Paleta Sweetie 16 (viz BRIEF.md). */

@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/PixelifySans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/PixelifySans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/Inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0d0e17; --night: #1a1c2c; --slate: #333c57; --steel: #566c86; --fog: #94b0c2; --white: #f4f4f4;
  --purple: #5d275d; --blood: #b13e53; --dblood: #7d2a3f; --orange: #ef7d57; --yellow: #ffcd75; --pale: #fff3b0;
  --lime: #a7f070; --green: #38b764; --teal: #257179; --navy: #29366f; --blue: #3b5dc9; --sky: #41a6f6;
  --cyan: #73eff7; --brown: #a0633f;
  --pixel: 'Pixelify Sans', ui-monospace, monospace;
  --text: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1120px;
  --gutter: 16px;
  --sy: 0;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ink); color: var(--white);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
}
img, video, canvas, iframe, .spr { image-rendering: pixelated; image-rendering: crisp-edges; }
img, video { display: block; max-width: 100%; }
a { color: var(--lime); text-underline-offset: 3px; }
a:hover { color: var(--pale); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--green); color: var(--ink); }
h1, h2, h3 { font-family: var(--pixel); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: .02em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* CRT scanlines + vignette */
body::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.14) 2px 3px),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,.45) 100%);
}

.skip { position: absolute; left: 8px; top: -60px; z-index: 200; background: var(--yellow); color: var(--ink);
  padding: 8px 12px; font: 700 1rem var(--pixel); text-decoration: none; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 14, 23, .92); border-bottom: 3px solid var(--slate);
  backdrop-filter: blur(4px);
}
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  font: 500 1.125rem var(--pixel); color: var(--fog); text-decoration: none; text-transform: uppercase;
  padding: 6px 8px; white-space: nowrap;
}
.nav a:hover { color: var(--white); }
.nav a.hot { color: var(--lime); }
.coins { display: none; align-items: center; gap: 6px; font: 700 1.125rem var(--pixel); color: var(--yellow); flex: none; }
.coins.on { display: flex; }
.lang { display: flex; flex: none; border: 3px solid var(--slate); background: var(--night); }
.lang button {
  font: 700 1.125rem var(--pixel); color: var(--steel); background: none; border: 0; padding: 2px 9px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--slate); color: var(--white); }
@media (max-width: 719px) {
  .nav .opt { display: none; }
}

/* ---------- shared bits ---------- */
.kicker { font: 500 1.125rem var(--pixel); color: var(--fog); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 10px; }
.h2 {
  font-size: clamp(2.25rem, 7vw, 3.5rem); color: var(--yellow); text-transform: uppercase;
  text-shadow: 0 4px 0 var(--ink);
  margin-bottom: 16px;
}
.lead { color: var(--fog); max-width: 60ch; }
.lead strong { color: var(--white); font-weight: 600; }

section { position: relative; padding: 72px 0; }
.tex {
  background-color: var(--ink);
  background-image: linear-gradient(rgba(13,14,23,.86), rgba(13,14,23,.94)), var(--tex);
  background-size: auto, 512px 512px;
  background-position: 0 0, 0 calc(var(--sy) * -0.12px);
}
.tex-city { --tex: url(../img/maps/texture_city.png); }
.tex-forest { --tex: url(../img/maps/texture_forest.png); }
.tex-cemetery { --tex: url(../img/maps/texture_cemetery.png); }
.tex-winter { --tex: url(../img/maps/texture_winter.png); }
.tex-desert { --tex: url(../img/maps/texture_desert.png); }
.band-top { border-top: 3px solid var(--slate); }

.panel {
  background: var(--night); border: 3px solid var(--slate);
  box-shadow: 0 0 0 3px var(--ink), 0 6px 0 3px rgba(0,0,0,.35);
}

/* buttons – like the in-game HRÁT button */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1.3rem/1 var(--pixel); text-transform: uppercase; text-decoration: none; letter-spacing: .03em;
  padding: 16px 22px; border: 3px solid; cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform .06s, box-shadow .06s, background-color .12s, color .12s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn-play { background: color-mix(in srgb, var(--green) 45%, var(--night)); border-color: var(--lime); color: var(--lime); }
.btn-play:hover { background: var(--green); color: var(--ink); }
.btn-soon {
  background: var(--slate); border-color: var(--steel); color: var(--fog); cursor: not-allowed; font-size: 1.15rem;
}
.btn-soon:active { transform: none; box-shadow: 0 5px 0 var(--ink); }
.btn-soon small { font-size: .85rem; color: var(--yellow); border: 2px solid var(--yellow); padding: 3px 5px; }
.btn svg { width: 22px; height: 22px; flex: none; shape-rendering: crispEdges; }
.gp-badge img { height: 64px; width: auto; image-rendering: auto; }

/* ---------- sprites ---------- */
.spr {
  display: inline-block; flex: none; width: var(--w); height: var(--h);
  background-repeat: no-repeat; background-size: calc(var(--w) * var(--n)) var(--h);
}
.spr.anim { animation: spr-frames var(--spd, .5s) steps(var(--n)) infinite; }
@keyframes spr-frames { from { background-position: 0 0; } to { background-position: calc(var(--w) * var(--n) * -1) 0; } }
.flip { transform: scaleX(-1); }

/* ---------- phone frame ---------- */
.phone {
  --sw: 270px;
  position: relative; flex: none; width: calc(var(--sw) + 28px); margin: 0;
  padding: 34px 11px 40px; background: var(--slate);
  border: 3px solid var(--ink);
  box-shadow: inset 0 0 0 3px var(--steel), 0 0 0 3px var(--night), 10px 12px 0 rgba(0,0,0,.45);
  clip-path: polygon(0 12px, 6px 12px, 6px 6px, 12px 6px, 12px 0, calc(100% - 12px) 0, calc(100% - 12px) 6px, calc(100% - 6px) 6px, calc(100% - 6px) 12px, 100% 12px,
    100% calc(100% - 12px), calc(100% - 6px) calc(100% - 12px), calc(100% - 6px) calc(100% - 6px), calc(100% - 12px) calc(100% - 6px), calc(100% - 12px) 100%,
    12px 100%, 12px calc(100% - 6px), 6px calc(100% - 6px), 6px calc(100% - 12px), 0 calc(100% - 12px));
}
.phone::before { /* speaker */
  content: ''; position: absolute; top: 14px; left: 50%; width: 48px; height: 6px; margin-left: -24px; background: var(--ink);
}
.phone::after { /* home bar */
  content: ''; position: absolute; bottom: 15px; left: 50%; width: 36px; height: 9px; margin-left: -18px;
  border: 3px solid var(--steel);
}
.screen {
  position: relative; width: var(--sw); aspect-ratio: 9 / 16; background: var(--ink); overflow: hidden;
  border: 3px solid var(--ink);
  box-sizing: content-box;
}
.screen video, .screen iframe, .screen > img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.phone figcaption { position: absolute; left: 0; right: 0; bottom: -40px; text-align: center; font: 500 .9rem var(--pixel); color: var(--steel); }
.phone-lg { --sw: 270px; }
@media (min-width: 1000px) { .phone-lg { --sw: 405px; } }

.vbtn {
  position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; padding: 0;
  display: grid; place-items: center;
  background: rgba(13,14,23,.75); border: 3px solid var(--slate); color: var(--white); cursor: pointer;
  opacity: .55; transition: opacity .15s;
}
.screen:hover .vbtn, .vbtn:focus-visible, .vbtn[data-state="paused"] { opacity: 1; }
.vbtn svg { width: 18px; height: 18px; shape-rendering: crispEdges; }
.vbtn[data-state="paused"] {
  width: 72px; height: 72px; right: 50%; bottom: 50%; transform: translate(50%, 50%);
  border-color: var(--lime); color: var(--lime);
}
.vbtn[data-state="paused"] svg { width: 30px; height: 30px; }

/* ---------- hero ---------- */
.hero { padding: 40px 0 0; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; justify-items: center; }
.hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
.logo { width: 334px; height: auto; margin: 0 auto 6px; cursor: pointer; }
.hero-sub { font: 500 clamp(1.25rem, 4.6vw, 1.75rem)/1.2 var(--pixel); color: var(--fog); text-transform: uppercase; letter-spacing: .06em; margin: 8px 0 20px; }
.hero .lead { margin: 0 auto 28px; font-size: 1.125rem; }
.hero .btns { justify-content: center; }
.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips li {
  display: flex; align-items: center; gap: 8px; font: 600 1rem var(--text); color: var(--fog);
  background: var(--night); border: 3px solid var(--slate); padding: 6px 10px 6px 6px;
}
.chips b { color: var(--yellow); font-weight: 700; }
.chips span:last-child { color: var(--white); }
@media (min-width: 1000px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr auto; justify-items: start; gap: 56px; }
  .hero-copy { text-align: left; align-items: flex-start; }
  .logo { width: 501px; margin: 0 0 6px -6px; }
  .hero .lead { margin-left: 0; }
  .hero .btns, .chips { justify-content: flex-start; }
}

/* coin pop (click on hero) */
.coin-pop { position: absolute; z-index: 60; pointer-events: none; animation: coin-pop .8s steps(8) forwards; }
@keyframes coin-pop {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  60% { transform: translate(-50%, -170%); opacity: 1; }
  100% { transform: translate(-50%, -200%); opacity: 0; }
}

/* ---------- parade (zombies chasing the player) ---------- */
.parade {
  position: relative; height: 112px; margin-top: 48px; overflow: hidden;
  background:
    linear-gradient(transparent 76px, var(--slate) 76px, var(--slate) 79px, var(--night) 79px);
  border-bottom: 3px solid var(--ink);
}
.parade::after { /* dashed road line */
  content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--steel) 0 24px, transparent 24px 48px);
  opacity: .5;
}
.troop {
  position: absolute; bottom: 30px; left: 0; display: flex; align-items: flex-end; gap: 22px;
  animation: troop 26s linear infinite;
}
.troop .spr { --spd: .45s; }
.troop .player { margin-left: 70px; }
@keyframes troop { from { transform: translateX(-110%); } to { transform: translateX(100vw); } }

/* ---------- how to play ---------- */
.split { display: grid; gap: 40px; align-items: center; justify-items: center; }
.split > .copy { width: 100%; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr auto; justify-items: stretch; gap: 64px; }
  .split.rev { grid-template-columns: auto 1fr; }
  .split.rev > .phone { order: -1; }
  .split > .phone { justify-self: center; }
}
.steps { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; counter-reset: s; }
.step {
  position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center;
  padding: 16px 16px 16px 20px; border-left-width: 9px;
}
.step:nth-child(1) { border-color: var(--sky); }
.step:nth-child(2) { border-color: var(--orange); }
.step:nth-child(3) { border-color: var(--lime); }
.step .ico { width: 64px; height: 64px; display: grid; place-items: center; background: var(--ink); border: 3px solid var(--slate); }
.step h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 4px; }
.step h3 .n { color: var(--yellow); margin-right: 8px; }
.step p { margin: 0; color: var(--fog); font-size: 1rem; }
.note { border-left: 6px solid var(--yellow); padding: 4px 0 4px 16px; color: var(--white); }
.shop { margin-top: 24px; padding: 18px; }
.shop h3 { font-size: 1.35rem; color: var(--yellow); text-transform: uppercase; margin-bottom: 6px; }
.shop p { color: var(--fog); font-size: 1rem; margin-bottom: 12px; }
.icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.icons li {
  position: relative; width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--ink); border: 3px solid var(--slate);
}
.icons li:hover, .icons li:focus-within, .icons li:focus { border-color: var(--yellow); }
.tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5;
  width: max-content; max-width: 220px; padding: 6px 10px; background: var(--ink); border: 3px solid var(--yellow);
  font: 400 .85rem/1.35 var(--text); color: var(--fog); text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .1s;
}
.tip b { display: block; font: 700 1.0625rem var(--pixel); color: var(--white); text-transform: uppercase; }
.icons li:hover .tip, .icons li:focus .tip { opacity: 1; visibility: visible; }

/* ---------- weapons ---------- */
.wgrid { display: grid; gap: 14px; margin-top: 32px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .wgrid { grid-template-columns: 1fr 1fr; } .wcard { min-height: 230px; } }
@media (min-width: 1000px) { .wgrid { grid-template-columns: repeat(4, 1fr); } }
.wcard {
  position: relative; display: flex; flex-direction: column; text-align: left; width: 100%;
  font: inherit; color: inherit; cursor: pointer; padding: 16px 16px 14px;
  background: var(--night); border: 3px solid var(--steel); border-left-width: 9px;
  box-shadow: 0 0 0 3px var(--ink);
  transition: border-color .12s, background-color .12s;
}
.wcard .face { display: flex; flex-direction: column; flex: 1; }
.wcard .evo-face { display: none; }
.wcard .row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.wcard .ibox { width: 72px; height: 72px; display: grid; place-items: center; background: var(--ink); border: 3px solid var(--slate); flex: none; }
.wcard .tag { display: block; font: 500 1rem var(--pixel); color: var(--lime); text-transform: uppercase; letter-spacing: .04em; }
.wcard .wname { display: block; font: 700 1.6rem/1.1 var(--pixel); text-transform: uppercase; color: var(--white); }
.wcard .wdesc { display: block; color: var(--fog); font-size: .98rem; margin: 0 0 12px; }
.wcard .evo-line {
  margin-top: auto; display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 3px dashed var(--slate);
  font: 500 1.0625rem var(--pixel); color: var(--steel); text-transform: uppercase;
}
.wcard .evo-line b { color: var(--fog); font-weight: 500; }
.wcard .evo-line .mini { width: 30px; height: 30px; display: grid; place-items: center; background: var(--ink); border: 2px solid var(--slate); }
.wcard.is-evo, .wcard:focus-visible.is-evo { border-color: var(--yellow); background: color-mix(in srgb, var(--dblood) 22%, var(--night)); }
.wcard.is-evo .base-face { display: none; }
.wcard.is-evo .evo-face { display: flex; }
.wcard.is-evo .wname { color: var(--yellow); }
.wcard.is-evo .tag { color: var(--orange); }
.wcard.is-evo .ibox { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--dblood), 0 0 18px var(--orange); }
.wcard.is-evo::after {
  content: ''; position: absolute; inset: -3px; pointer-events: none; background: var(--pale);
  animation: flash .35s steps(3) forwards;
}
@keyframes flash { from { opacity: .85; } to { opacity: 0; } }
@media (hover: hover) {
  .wcard:hover { border-color: var(--yellow); background: color-mix(in srgb, var(--dblood) 22%, var(--night)); }
  .wcard:hover .base-face { display: none; }
  .wcard:hover .evo-face { display: flex; }
  .wcard:hover .wname { color: var(--yellow); }
  .wcard:hover .tag { color: var(--orange); }
  .wcard:hover .ibox { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--dblood), 0 0 18px var(--orange); }
  .wcard:hover::after {
    content: ''; position: absolute; inset: -3px; pointer-events: none; background: var(--pale);
    animation: flash .35s steps(3) forwards;
  }
}
.whint { margin-top: 16px; font: 500 1.125rem var(--pixel); color: var(--steel); text-transform: uppercase; }

.kit { display: grid; gap: 14px; margin-top: 40px; }
@media (min-width: 900px) { .kit { grid-template-columns: 1fr 1fr; } }
.kit .panel { padding: 18px; }
.kit h3 { font-size: 1.35rem; color: var(--yellow); text-transform: uppercase; margin-bottom: 4px; }
.kit p { color: var(--fog); font-size: 1rem; margin-bottom: 12px; }

/* ---------- maps ---------- */
.maps { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 12px; margin-top: 28px;
  overflow-x: auto; padding: 6px 6px 16px; scroll-snap-type: x mandatory; }
.map {
  position: relative; scroll-snap-align: start; aspect-ratio: 9 / 16; border: 3px solid var(--slate);
  box-shadow: 0 0 0 3px var(--ink); background-size: cover; background-position: center; image-rendering: pixelated;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; overflow: hidden;
  transition: transform .15s steps(3), border-color .1s;
}
.map::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(13,14,23,.92)); }
.map > * { position: relative; }
.map:hover { border-color: var(--lime); transform: translateY(-6px); }
.map h3 { font-size: 1.45rem; text-transform: uppercase; }
.map p { margin: 2px 0 0; font: 500 1rem/1.2 var(--pixel); color: var(--fog); text-transform: uppercase; }
.map .num { position: absolute; top: 10px; left: 10px; font: 700 1rem var(--pixel); color: var(--yellow); background: var(--ink); padding: 2px 6px; border: 2px solid var(--slate); }
@media (min-width: 1100px) { .maps { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.maps-split .copy { min-width: 0; }

/* ---------- bosses ---------- */
.night { margin: 28px 0 8px; }
.night-bar { position: relative; height: 18px; background: var(--navy); border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--slate); }
.night-bar i { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: var(--sky); transform-origin: left; }
.night-bar b { position: absolute; top: -6px; width: 6px; height: 24px; margin-left: -3px; background: var(--blood); box-shadow: 0 0 0 3px var(--ink); }
.night-labels { position: relative; height: 26px; margin-top: 10px; font: 500 1.0625rem var(--pixel); color: var(--fog); }
.night-labels span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.night-labels span:first-child { transform: none; }
.night-labels span:last-child { transform: translateX(-100%); color: var(--blood); }
.reveal .night-bar i { animation: fill 2.4s steps(20) both; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.bosses { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 640px) { .bosses { grid-template-columns: repeat(3, 1fr); } }
.boss { padding: 16px; display: flex; flex-direction: column; align-items: center; text-align: center; border-color: var(--dblood); }
.boss .stage { height: 150px; width: 100%; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 10px;
  background: radial-gradient(ellipse 50% 14px at 50% calc(100% - 6px), rgba(0,0,0,.6), transparent); }
.boss .spr { --spd: .7s; transition: transform .1s; }
.boss:hover .spr { --spd: .25s; animation: spr-frames var(--spd) steps(var(--n)) infinite, shake .25s steps(2) infinite; }
@keyframes shake { 0% { transform: translate(-3px, 0); } 100% { transform: translate(3px, -3px); } }
.boss .min { text-transform: uppercase; font: 700 1.125rem var(--pixel); color: var(--ink); background: var(--blood); padding: 2px 8px; margin-bottom: 8px; }
.boss h3 { font-size: 1.6rem; text-transform: uppercase; color: var(--white); }
.boss p { margin: 4px 0 0; color: var(--fog); font-size: .95rem; }
.boss.final { border-color: var(--blood); box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--dblood); }

/* ---------- airstrike ---------- */
.air { overflow: hidden; }
.sky-lane { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.plane { position: absolute; top: 40px; left: 0; transform: translateX(-200px) rotate(90deg); }
.plane-shadow { position: absolute; top: 120px; left: 0; opacity: .35; transform: translateX(-200px) rotate(90deg); }
.air.go .plane { animation: fly 4.5s linear infinite; }
.air.go .plane-shadow { animation: fly 4.5s linear infinite; }
@keyframes fly { 0% { transform: translateX(-200px) rotate(90deg); } 60%, 100% { transform: translateX(calc(100vw + 200px)) rotate(90deg); } }
.keys { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; color: var(--fog); font-size: 1rem; }
kbd {
  display: inline-block; min-width: 32px; padding: 3px 8px; text-align: center;
  font: 700 .95rem var(--pixel); color: var(--white); background: var(--slate);
  border: 3px solid var(--ink); box-shadow: inset 0 -3px 0 var(--night);
}
.charge { margin: 22px 0; max-width: 340px; display: flex; align-items: center; gap: 14px; }
.charge .bar { flex: 1; height: 18px; background: var(--ink); border: 3px solid var(--slate); position: relative; }
.charge .bar i { position: absolute; inset: 0; background: var(--orange); transform-origin: left; transform: scaleX(.73); }
.air.go .charge .bar i { animation: charge 4.5s steps(15) infinite; }
@keyframes charge { 0% { transform: scaleX(0); } 70% { transform: scaleX(1); background: var(--orange); } 71%, 100% { transform: scaleX(1); background: var(--pale); } }
.charge .ibtn { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); border: 3px solid var(--slate); }

/* ---------- gallery ---------- */
.gal-grid { display: grid; gap: 32px; margin-top: 28px; align-items: start; justify-items: center; }
@media (min-width: 1000px) { .gal-grid { grid-template-columns: auto 1fr; justify-items: stretch; } }
.shots { list-style: none; margin: 0; padding: 6px 6px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; width: 100%; }
@media (min-width: 1000px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; } }
.shots button {
  display: block; width: 100%; padding: 0; border: 3px solid var(--slate); box-shadow: 0 0 0 3px var(--ink);
  background: var(--ink); cursor: zoom-in; scroll-snap-align: start; transition: border-color .1s;
}
.shots button:hover { border-color: var(--lime); }
.shots img { width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; }

.lightbox { padding: 0; border: 3px solid var(--slate); background: var(--ink); color: var(--white); max-width: none; max-height: none; }
.lightbox::backdrop { background: rgba(13,14,23,.92); }
.lightbox img { display: block; margin: 0 auto; }
.lb-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; padding: 6px; background: var(--night); border-top: 3px solid var(--slate); }
.lb-bar button { font: 700 1.125rem var(--pixel); background: var(--slate); color: var(--white); border: 3px solid var(--ink); padding: 6px 12px; cursor: pointer; text-transform: uppercase; }
.lb-bar span { font: 500 1.125rem var(--pixel); color: var(--fog); }

/* ---------- play ---------- */
.play-grid { display: grid; gap: 40px; align-items: center; justify-items: center; }
@media (min-width: 900px) { .play-grid { grid-template-columns: auto 1fr; justify-items: stretch; gap: 64px; } }
.phone-game { --sw: 360px; }
@media (max-width: 420px) { .phone-game { --sw: calc(100vw - 2 * var(--gutter) - 34px); } }
.gstart {
  position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  border: 0; cursor: pointer; color: var(--lime); font: 700 1.6rem var(--pixel); text-transform: uppercase;
  background: linear-gradient(rgba(13,14,23,.55), rgba(13,14,23,.8)), url(../video/title_maps_cs_poster.png) center / cover;
}
html[lang="en"] .gstart { background-image: linear-gradient(rgba(13,14,23,.55), rgba(13,14,23,.8)), url(../video/title_maps_en_poster.png); }
.gstart .btn { pointer-events: none; }
.gstart small { font: 500 1.125rem var(--pixel); color: var(--fog); max-width: 80%; }
.controls { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.controls li { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--fog); }
.controls .k { display: flex; gap: 4px; flex-wrap: wrap; }
.restart { font: 500 1.125rem var(--pixel); color: var(--steel); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- download ---------- */
.dl { text-align: center; }
.dl .lead { margin: 0 auto 28px; }
.dl .btns { justify-content: center; }
.dl-icon { width: 128px; height: 128px; margin: 0 auto 20px; border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--slate); }
.facts { list-style: none; padding: 0; margin: 36px auto 0; max-width: 760px; display: grid; gap: 10px; text-align: left; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; font-size: 1rem; }
.facts li .spr { flex: none; }
.contact { margin-top: 32px; color: var(--fog); }
.contact a, .contact span { font: 700 1.15rem var(--pixel); }

/* ---------- footer ---------- */
.foot { border-top: 3px solid var(--slate); background: var(--night); padding: 28px 0 40px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; color: var(--steel); font: 500 1.125rem var(--pixel); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { font: 500 1.125rem var(--pixel); color: var(--fog); }

/* ---------- privacy page ---------- */
.doc { padding: 48px 0 72px; }
.doc .panel { padding: clamp(20px, 5vw, 40px); max-width: 780px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); color: var(--yellow); text-transform: uppercase; text-shadow: 0 4px 0 var(--ink); margin-bottom: 12px; }
.doc .eff { font: 600 1rem var(--text); color: var(--steel); margin-bottom: 24px; }
.doc ul { padding-left: 0; list-style: none; display: grid; gap: 14px; margin: 24px 0 0; }
.doc li { padding-left: 22px; position: relative; color: var(--fog); }
.doc li::before { content: ''; position: absolute; left: 0; top: .6em; width: 9px; height: 9px; background: var(--lime); }
.doc li strong { color: var(--white); }
.doc .intro { font-size: 1.125rem; }
.back { display: inline-block; margin-bottom: 20px; font: 500 1.125rem var(--pixel); text-transform: uppercase; }

[hidden] { display: none !important; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spr.anim, .boss:hover .spr, .troop, .air.go .plane, .air.go .plane-shadow, .air.go .charge .bar i,
  .reveal .night-bar i, .wcard.is-evo::after, .wcard:hover::after, .coin-pop { animation: none !important; }
  .troop { transform: none; left: 50%; translate: -50% 0; }
  .plane, .plane-shadow { display: none; }
  .map, .map:hover { transform: none; }
}
