/* ==========================================================================
   Peek Duel — landing site styles · "voxel survival-craft" pixel style
   Dependency-free, mobile-first. All art is original: textures/icons are
   generated pixel patterns (data URIs), scenes are crisp inline SVG.
   Palette: sky #7ec8f2→#b8e3ff · grass #5fbf3a · dirt #8b5a2b · stone #8f8f8f
            gold #ffd83d · redstone #dd3333 · diamond #4ee6e6 · XP #7cfc00
   ========================================================================== */
/* generated pixel textures (original art) */
:root {
  --tx-dirt: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAvklEQVR42n1SsQ3DMAzTHX0gQz/wE9kD9IGe0Bf6Qn51QAM0WJbOIMRgKImiVN/j2c93659963wzgDHwz7/glBIYSgQJ71d7dOf+FNAkxxJOlcUOANEFoQnEED4WsNIEJXvnlZLyipw1JbtHQ8GKqCRVpJvCu1bGrbzxjRTN0a6uJBWbW2BllaWJSdGficnhpEhvgNi4A86UVqhbUd4s4Aru1pfupFJHmuTO651ED3xFfrp+bKOAOp3kq+R0pRdgv/dtYqjLuAAAAABJRU5ErkJggg==");
  --tx-stone: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAvUlEQVR42n2TwQ0FIQhE6dcGLMC7HdiqP5C8zeys/gNREAYGMNZae865xxh1cu+979Za3XlLXwR7uCEl9QwGADAHLAAUHMiUQSoEe7WhigJpRn13SnHjqLSyAgVBLwBtWp6ZFQdsWp1TDG/KjbcCAH6k8A9AE3EPNXgFGnwa9QfAG+UBiPqFKj4upcJycb72wFHJzjQ0QKt6Vtkp3MaHjffPFGjWjRbJqKwqUDQyeUZvsNIJGuV7oKCnDwfAD0v3k19oijSPAAAAAElFTkSuQmCC");
  --tx-stone-dark: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAuElEQVR42oWTMQ7DMAwD9aEMBTIUGTpkyP9/1IIGaBBnJR0Uy5BEUZRT53l9Zfv+HrZtr2Hyj+MzfMXly5zneOmTCQlgQCd3INV1Mau8u5BNypenAgIaZIxAyixk50UDCidTYTJzN/tZMwG4CZ/JgCJOAAbdLekm7bRbgDwNxuLBgKrSuLrMFXDxAXWr7MCtWxE5N3En4DJCqs2HxQe0iJjzPCV2I8wt5GP5JyZHqy45f3Eyy5ia/QAg0KjWjuqGGQAAAABJRU5ErkJggg==");
  --tx-grass: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAA40lEQVR42nWRsQ1CQQxDMwcDQEFB/xtKOuiRED0NPStQsAAtc7ACG33kQw/5W/eL6C6JYzt3tX0sx/N7GK+fXTs9VFMI433l1AoQADX2r82ECBHVwXEWDU6YUXEn9Anl5ao678f1BOT21dNd52lY/AgEUKLi7bD6h3LIIKcOpq3gQ8TzMvzBCPgwfUU5I6rUuGtAkXkjcDZ2c5K0nS7LmTWcducIECpXhCwf0x8ZZdV0rzkl3LirzNsKaQ2S3lskpq2QILfoQF/HXVZP1dXz2xAhyv/bB12pZ53+hCD/OX+lt9IXgAkJfe4D9F8AAAAASUVORK5CYII=");
  --tx-planks: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAApUlEQVR42mNY2uz/H4R3TInHwPNrPbBimPqqGOP/DOiakA3EZzhIHG7AkUU5GJK4NCHzwQZk+2v9pwQzYLMJ2QZs3kP2GgOMAwoc9ICDGYDuRWQ1DPhCHmQAur+R+SCDaRsG6FGKnhbAsYAvrnFFH8jpKOkAmwEwRehiyDR10gF6+obFBMgW9HSA7CWYGpISEno0gxMSvvQPMwA5sYFo5IRFcRgAAKNoY+i3xnSTAAAAAElFTkSuQmCC");
  --tx-bedrock: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAr0lEQVR42oVSQQ7AMAjyHX1C/9Bn9P9P6UITFsIwO7g4tYhKzTkPbK11xhiH/2rIwTyO+sIHpkUOxNze+7CeuQ+AMqHPPACcRWlxourgjDFeaW7trEB8RB+M3hFSseeczctAZ/8zZ1rpsY+h9J1lcbPeAXGCdJe5AEkgSQ/p3PeMdPyETrdTZWlnKi0VdzqpTvNaCGDuKgJ0ElY/MbhCcmH4AtMpWXMBuo48o7PzJT+7ZIVuCMtbOwAAAABJRU5ErkJggg==");
  --tx-panel: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAArUlEQVR42n2TUQrFIAwEcw9BELz/FftIYR/jdtuPlDZNxo2rNee8OsYYV3pfa93RuZSvfnRi730AVMBi1ghaLHoD9Hc3K6ikSCRZeYcKoHgAGJ7jCAIVZ0z7QZjyGukeQXIliav6/iQnyiW5nQ592Ji85W6/+X+cA19BDYRwDPaUEtwYP338J7CiOKv7n5pdZX35TvtoIWvLpSYl6bL9FSR6Cr8bByA1prnT+fgBu9Varqi63CkAAAAASUVORK5CYII=");
  --tx-btn-stone: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAsElEQVR42oWTwQ7AIAhD+8NePHr1w11YUvPSsOxAVMAWimrOeWhjjLPWeq32ZY7Zb9t7H/mQABUsy3iCyCy+UPbFaj/BZXQysfxK7IAuQJaaCR0ANRPZXKL3qYWBnPOKSHT2zuTUg+dbgdmSlTp4pU95kSqTnVPypMrEBFfSlU2hSaAuIceXmtCnnH0+1dxzvS2wLwa/HhKnoS6QAnYv9X6m7hf+sTKu7gu7hW6s+eAeUX9mqgnNixEAAAAASUVORK5CYII=");
  --tx-btn-grass: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAt0lEQVR42o2SsQ7CQAxD/TUMTGzsLIyd+SVmdn6AfzyUSq4eVnp0iO4udRzHje6v86h4fK5jeV+G33XPMI4hg31WsiPhd+ZFMFV03X3enqftvRHsdXRUkZtQheiB5bMwJWeIQLInMZWwiXKuNLXz4scDP0jAUSrPgjRTOWfdXZRedIaLS5QuJ5GxzOuI00nMMfSvcNZgJZjt/pFdUII4s2U7Z+f5x7S3ut1y5Z9YCdhhJrcwuZUVX1WLGLKoBrSlAAAAAElFTkSuQmCC");
  --tx-btn-gold: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAvElEQVR42n2Suw3DMAxEOYGLtNnF62aCLJAR0qdP7dqAAgo44flCqThI4ud0/MTxurfE+d7b93lr/k58HtuA/PKFAvNMKMADSSZ7nsHHKlGgvxPo9xXByhZ0sg/eE8WwD0MBk/l2ZSIQcd7DA6hGSmbyLyVkoNi9L7PkC0EFT/B96CVUo6nG54qGAjWLAVXd1bj7JnJsOkngY/4jUIL/wlrZwLTxs6iWZdYTLpgmFr5ZrqJab9qXY6zgK/4DIK3HdZsoxMQAAAAASUVORK5CYII=");
  --tx-btn-red: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAuUlEQVR42n2Tyw3DMAxDOUsuuWWCLNwNOkEH6EIpJIDFKyvnQDiSZZH6RM99vxKv42jw23hsW8O2MsBBtN/n+fXVabtOTWx8kImMuq83KmNSQbkOJpGTiJmTiapYAklkBiaoh5l0UtU9yK5mpzO5CQw5MMdHFUSOWmbgBeuvkyT0t4Ic30qqwal0gmkKObpJ4e0UJrAUx/YeJPP0P6TvZw98wfmudoMKjL9/IetclWefVl2f5Hr/qfADWSoYeXIMiV8AAAAASUVORK5CYII=");
  --tx-btn-diamond: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAvElEQVR42nWT0Q3AIAhEWaV//esMHdYNOoI7OI4NJGeeBD+IRuC4O9Xu75seT++xXq3FvgrVKrzW3jEmo2rSOYd5cwCoQIhsICAn+7lqLSc4jbLUQADPGxNsIDNqZm0AVJpZyIbKowVA9/NN0CMPAm0ASmaamQn3ywMBME5voGRAoyiDQPRCIFYZyGvSymveJHA6C6onrTxvyXhIapxcGbo8IOXTR2ID5a2nTBZZEoE4QD2Wf1imSlnyhwA/pUunewrzKgoAAAAASUVORK5CYII=");
  --tx-edge-green: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAICAYAAADwdn+XAAAAYklEQVR42mOI32/132+pPhiD2CCcf8EdjGFsmBpkeRibAcaAYWSFMDayBmQLQeIM9v1q/0EYJgDjoytGVoeshgEGYM6G8UEKkL2CLI6NzQCzjQEJgMRgtjEQAtgUEqVxwAEAA8aO867EK8YAAAAASUVORK5CYII=");
  --tx-edge-gold: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAICAYAAADwdn+XAAAAaElEQVR42mP4f8P2Py786ZA0GP9/UoUiBmZDxRgwJHAYhE0z2AC4LTds/5+cxYWCsYmjGPqk6j8D2LQnVWBJBjQAUoQuDtMMM4wBZgMDFgBWgMVQEIbL49IMAtjkYF7BZQFJAJ/lRAMAeEDHoFvZKYsAAAAASUVORK5CYII=");
  --tx-edge-orange: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAICAYAAADwdn+XAAAAX0lEQVR42mP4v6Hg/4d+VzBGZj+o0gNjkBiIRheH8RmwScA04pJDFgMbsCJICq4Yxka2GcQGiWPDDGCCgQFuEDIbZhjYJkIA7B8oQNYAYsMMxguQFSEbRpRmfIbRHAAAmEOj5xa5MioAAAAASUVORK5CYII=");
}

@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/pixelify-sans-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/pixelify-sans-latin-ext-400-normal.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-display: swap; font-weight: 400; src: url(fonts/pixelify-sans-latin-400-normal.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: 'Pixelify Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/pixelify-sans-cyrillic-700-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/pixelify-sans-latin-ext-700-normal.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-display: swap; font-weight: 700; src: url(fonts/pixelify-sans-latin-700-normal.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: 'Press Start 2P'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/press-start-2p-cyrillic-400-normal.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Press Start 2P'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/press-start-2p-latin-ext-400-normal.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: 'Press Start 2P'; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/press-start-2p-latin-400-normal.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 {
  --sky: #7ec8f2;
  --sky-2: #b8e3ff;
  --grass: #5fbf3a;
  --grass-d: #3f8f26;
  --dirt: #8b5a2b;
  --stone: #8f8f8f;
  --wood: #b8945f;
  --wood-d: #8a6a3a;
  --gold: #ffd83d;
  --red: #dd3333;
  --cyan: #4ee6e6;
  --green: #7cfc00;
  --orange: #f08f45;
  --purple: #a46cf2;
  --panel: #1e1e1e;
  --text: #ffffff;
  --muted: #c4c4c4;
  --dim: #8f8f8f;
  --ink: #12324a;
  --line: rgba(255, 255, 255, 0.1);

  --bevel: inset 3px 3px 0 rgba(255, 255, 255, 0.1), inset -3px -3px 0 rgba(0, 0, 0, 0.55);
  --slot: inset 3px 3px 0 rgba(0, 0, 0, 0.6), inset -3px -3px 0 rgba(255, 255, 255, 0.12);
  --drop: 0 6px 0 rgba(0, 0, 0, 0.45);
  --ts: 2px 2px 0 rgba(0, 0, 0, 0.75);

  --container: 1200px;
  --header-h: 64px;

  --font: 'Pixelify Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --pixel: 'Press Start 2P', 'Pixelify Sans', 'Courier New', monospace;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--text);
  background: #222226; overflow-x: hidden; transition: opacity .25s ease; image-rendering: pixelated;
}
html.i18n-pending body { opacity: 0; }
img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
code, kbd { font-family: var(--mono); font-size: .88em; }
::selection { background: var(--grass); color: #fff; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gold); color: #3a2600; padding: 10px 16px; border: 3px solid #000; font-weight: 700; }
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Background: the underground ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55)), #2b2b2f var(--tx-stone-dark) 0 0 / 64px 64px;
  image-rendering: pixelated;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  font-family: var(--pixel); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
  color: #3a2600; background: var(--gold); padding: 7px 10px 6px; border: 3px solid #000;
  box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .2), inset 3px 3px 0 rgba(255, 255, 255, .45), 0 4px 0 rgba(0, 0, 0, .45);
}
.eyebrow svg { width: 14px; height: 14px; }
.h2 { font-family: var(--pixel); font-weight: 400; font-size: clamp(1.15rem, 3.6vw, 2rem); line-height: 1.45; text-shadow: 3px 3px 0 #000, 5px 5px 0 rgba(0, 0, 0, .3); }
.grad-text { color: var(--gold); text-shadow: 3px 3px 0 #a07800, 6px 6px 0 rgba(0, 0, 0, .35) !important; }
.text-gold { color: var(--gold); }
.text-cyan { color: var(--cyan); }
.text-orange { color: var(--orange); }
.muted { color: var(--muted); }

/* ---------- Buttons: bevelled blocks ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border: 3px solid #000; border-radius: 0;
  font-family: var(--font); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; white-space: nowrap;
  color: #fff; text-shadow: var(--ts); text-decoration: none !important;
  background: #7a7a7a var(--tx-btn-stone) 0 0 / 48px 48px; image-rendering: pixelated;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .35), inset -3px -4px 0 rgba(0, 0, 0, .38), 0 5px 0 rgba(0, 0, 0, .5);
  transition: filter .1s;
}
.btn svg { width: 20px; height: 20px; flex: none; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .6)); }
.btn:hover { filter: brightness(1.1); }
.btn:active { transform: translateY(4px); box-shadow: inset 3px 3px 0 rgba(0, 0, 0, .35), inset -3px -3px 0 rgba(255, 255, 255, .15), 0 1px 0 rgba(0, 0, 0, .5); }
.btn-primary { background: #4f9f30 var(--tx-btn-grass) 0 0 / 48px 48px; }
.btn-ghost { background: #7a7a7a var(--tx-btn-stone) 0 0 / 48px 48px; }
.btn-sm { --h: 40px; padding: 0 14px; font-size: .95rem; }
.btn-lg { --h: 60px; padding: 0 28px; font-size: 1.18rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(24, 24, 24, .9) var(--tx-stone-dark) 0 0 / 48px 48px;
  border-bottom: 3px solid #000; box-shadow: inset 0 -3px 0 rgba(255, 255, 255, .08), 0 4px 0 rgba(0, 0, 0, .3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: none; }
.logo-mark { width: 36px; height: 36px; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 #000); }
.logo-word { font-family: var(--pixel); font-size: .92rem; line-height: 1; letter-spacing: .02em; text-shadow: 3px 3px 0 #000; }
.logo-word b { color: var(--gold); font-weight: 400; }
.nav { display: none; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 700; font-size: 1rem; padding: 6px 10px; border: 2px solid transparent; text-shadow: 2px 2px 0 #000; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); border-color: #000; box-shadow: var(--slot); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-actions .btn-play { display: none; }

.lang-switch { display: inline-flex; padding: 3px; gap: 2px; background: #111; border: 3px solid #000; box-shadow: var(--slot); }
.lang-switch button {
  border: 2px solid transparent; background: transparent; color: var(--dim); text-shadow: 1px 1px 0 #000;
  font-family: var(--pixel); font-size: .56rem; padding: 6px 7px 5px; min-width: 34px;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] {
  color: #fff; border-color: #000; background: #4f9f30 var(--tx-btn-grass) 0 0 / 32px 32px;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .35), inset -2px -2px 0 rgba(0, 0, 0, .35);
}

.menu-toggle {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border: 3px solid #000; border-radius: 0;
  background: #7a7a7a var(--tx-btn-stone) 0 0 / 48px 48px;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .3), inset -3px -3px 0 rgba(0, 0, 0, .38);
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 20px; height: 4px; background: #fff; position: relative; box-shadow: 2px 2px 0 rgba(0, 0, 0, .5); transition: transform .2s steps(3); }
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }
.menu-open .menu-toggle span { background: transparent; box-shadow: none; }
.menu-open .menu-toggle span::before { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; padding: 22px 20px 40px;
  background: rgba(20, 20, 22, .97) var(--tx-stone-dark) 0 0 / 48px 48px;
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.menu-open .mobile-nav { opacity: 1; transform: none; visibility: visible; }
.mobile-nav a:not(.btn) {
  color: #fff; font-size: 1.15rem; font-weight: 700; padding: 12px 14px; text-shadow: var(--ts);
  background: rgba(0, 0, 0, .4); border: 3px solid #000; box-shadow: var(--bevel);
}
.mobile-nav .btn { margin-top: 18px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero: the surface ---------- */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 112px;
  background:
    var(--tx-grass) 0 100% / 64px 64px repeat-x,
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 100%) 0 0 / 100% calc(100% - 60px) no-repeat,
    #8b5a2b;
  image-rendering: pixelated;
  border-bottom: 3px solid #000;
}
.hero::before { /* pixel clouds */
  content: ""; position: absolute; left: 6%; top: 46px; width: 96px; height: 20px; background: #fff;
  box-shadow: 20px -14px 0 -4px #fff, 64vw 70px 0 0 #fff, calc(64vw + 24px) 56px 0 -4px #fff, 38vw 250px 0 -2px rgba(255, 255, 255, .85);
  animation: drift 60s linear infinite; opacity: .95;
}
.hero::after { /* pixel sun */
  content: ""; position: absolute; right: 7%; top: 34px; width: 46px; height: 46px; background: #fff7b0;
  box-shadow: 0 0 0 7px #ffe066, 0 0 0 14px rgba(255, 224, 102, .35);
}
@keyframes drift { from { transform: translateX(-4vw); } to { transform: translateX(4vw); } }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border: 2px solid #000; border-radius: 0;
  font-size: .82rem; font-weight: 700; line-height: 1.2; color: #fff; background: #555; text-shadow: 1px 1px 0 rgba(0, 0, 0, .8);
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .3), inset 2px 2px 0 rgba(255, 255, 255, .25), 0 3px 0 rgba(0, 0, 0, .4);
}
.badge svg { width: 14px; height: 14px; }
.badge-cyan { background: #1c9a9a; }
.badge-gold { background: #c99a0a; }
.badge-orange { background: #c9661f; }
.badge-age { background: var(--red); font-family: var(--pixel); font-size: .6rem; padding: 6px 8px 5px; }

.hero h1 {
  font-family: var(--pixel); font-weight: 400; font-size: clamp(1.3rem, 5.4vw, 3rem); line-height: 1.35; letter-spacing: .01em;
  margin-bottom: 22px; color: #fff; text-shadow: 3px 3px 0 #2f4f66, 6px 6px 0 rgba(0, 0, 0, .25);
}
.hero h1 .line { display: block; }
.hero-sub { font-size: clamp(1.08rem, 2.3vw, 1.25rem); font-weight: 700; color: var(--ink); max-width: 580px; margin-bottom: 28px; line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.stat { padding: 12px; background: rgba(24, 24, 24, .92); border: 3px solid #000; box-shadow: var(--bevel), var(--drop); }
.stat b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 1.25rem; line-height: 1.2; text-shadow: 3px 3px 0 #000; }
.stat span { display: block; font-size: .84rem; color: var(--muted); margin-top: 6px; line-height: 1.3; }

/* hero illustration (inline SVG) */
.hero-visual { position: relative; min-height: 300px; display: flex; justify-content: center; align-items: center; }
.pix-scene { width: 100%; max-width: 620px; height: auto; overflow: visible; filter: drop-shadow(0 10px 0 rgba(0, 40, 70, .18)); }
.pix-scene .ps-isl { animation: isl 5s steps(4) infinite; }
.pix-scene .ps-right { animation-delay: -2.5s; }
.pix-scene .ps-clouds { animation: drift-s 30s linear infinite alternate; }
.pix-scene .ps-wind { animation: wind 2.4s steps(8) infinite; }
.pix-scene .ps-tracer { animation: trace 3s steps(12) infinite; }
.pix-scene .ps-debris { animation: debris 3s steps(10) infinite; transform-box: fill-box; transform-origin: center; }
.pix-scene .ps-d2 { animation-name: debris2; }
.pix-scene .ps-d3 { animation-name: debris3; }
.pix-scene .ps-d4 { animation-name: debris4; }
@keyframes isl { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes drift-s { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
@keyframes wind { from { transform: translateX(-10px); opacity: 0; } 30% { opacity: 1; } to { transform: translateX(16px); opacity: 0; } }
@keyframes trace { 0% { clip-path: inset(0 100% 0 0); opacity: 1; } 45% { clip-path: inset(0 0 0 0); opacity: 1; } 80% { opacity: 1; } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
@keyframes debris { 0%, 44% { transform: translate(0, 0); opacity: 0; } 46% { opacity: 1; } 100% { transform: translate(10px, 30px) rotate(90deg); opacity: 0; } }
@keyframes debris2 { 0%, 44% { transform: translate(0, 0); opacity: 0; } 46% { opacity: 1; } 100% { transform: translate(18px, 22px) rotate(-90deg); opacity: 0; } }
@keyframes debris3 { 0%, 44% { transform: translate(0, 0); opacity: 0; } 46% { opacity: 1; } 100% { transform: translate(6px, 40px) rotate(180deg); opacity: 0; } }
@keyframes debris4 { 0%, 44% { transform: translate(0, 0); opacity: 0; } 46% { opacity: 1; } 100% { transform: translate(24px, 34px) rotate(90deg); opacity: 0; } }

.float-chip { /* item tooltip */
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px;
  font-weight: 700; font-size: .92rem; color: #fff; text-shadow: 2px 2px 0 #000;
  background: rgba(16, 0, 16, .94); border: 3px solid #000; box-shadow: inset 0 0 0 2px #3b0f8a, var(--drop);
  animation: bob 4s steps(4) infinite;
}
.float-chip svg { width: 18px; height: 18px; }
.chip-win { top: 4%; left: 2%; color: var(--gold); }
.chip-head { top: 30%; right: 0; color: #dff6ff; animation-delay: -2s; }
.chip-fair { bottom: 2%; left: 10%; color: var(--green); animation-delay: -1s; font-family: var(--mono); font-size: .76rem; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards / grids: inventory panels ---------- */
.grid { display: grid; gap: 18px; }
.card {
  position: relative; padding: 22px; border-radius: 0;
  background: rgba(30, 30, 30, .95) var(--tx-panel) 0 0 / 64px 64px;
  border: 3px solid #000; box-shadow: var(--bevel), var(--drop);
}
.card h3 { font-size: 1.28rem; margin-bottom: 8px; text-shadow: var(--ts); }
.card p { color: var(--muted); margin-bottom: 0; }
.icon-tile {
  width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 18px;
  background: #2b2b2b; border: 3px solid #000; box-shadow: var(--slot); color: var(--cyan);
}
.icon-tile svg { width: 28px; height: 28px; filter: drop-shadow(2px 2px 0 #000); }
.icon-tile.orange { color: var(--orange); }
.icon-tile.gold { color: var(--gold); }

/* Steps */
.step { padding-top: 22px; overflow: hidden; }
.step-num {
  position: absolute; top: 14px; right: 16px; z-index: 2; font-family: var(--pixel); font-size: .8rem; line-height: 1;
  color: #3a2600; background: var(--gold); border: 3px solid #000; padding: 6px 6px 5px;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .2), inset 2px 2px 0 rgba(255, 255, 255, .45);
}
.step-anim {
  height: 140px; margin: 0 0 18px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky), var(--sky-2)); border: 3px solid #000; box-shadow: var(--slot);
}
.step-anim svg { width: 100%; height: 100%; }
.anim-hide .mv-hide { animation: hide-run 3.2s steps(16) infinite; }
@keyframes hide-run { 0%, 15% { transform: translateX(0); } 55%, 100% { transform: translateX(30px); } }
.anim-hide .tm-bar { animation: tm 3.2s steps(16) infinite; transform-box: fill-box; transform-origin: left; }
@keyframes tm { from { transform: scaleX(1); } to { transform: scaleX(.05); } }
.anim-aim .xh { animation: sway-sm 3.2s steps(8) infinite; }
@keyframes sway-sm { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(2px, -3px); } 75% { transform: translate(-2px, -1px); } }
.anim-aim .wind-flag { animation: flag .6s steps(2) infinite; transform-box: fill-box; transform-origin: left; }
@keyframes flag { 50% { transform: scaleX(.8); } }
.anim-aim .fog-drift { animation: fogd 6s steps(12) infinite alternate; }
@keyframes fogd { from { transform: translateX(-4px); } to { transform: translateX(6px); } }
.anim-shoot .tracer { animation: trace 2.4s steps(10) infinite; }
.anim-shoot .deb { animation: debris 2.4s steps(8) infinite; }
.anim-shoot .hit-wall { animation: crack 2.4s steps(1) infinite; }
@keyframes crack { 0%, 44% { opacity: 0; } 45%, 100% { opacity: 1; } }
.anim-shoot .rival-hit { animation: hitflash 2.4s steps(1) infinite; }
@keyframes hitflash { 0%, 50% { filter: none; } 52%, 60% { filter: brightness(2) saturate(0); } 62%, 100% { filter: none; } }
.anim-tnt .tnt-blink { animation: tnt 2.6s steps(1) infinite; }
@keyframes tnt { 0%, 10%, 20%, 30%, 40% { filter: none; opacity: 1; } 5%, 15%, 25%, 35%, 45% { filter: brightness(2.2); } 50%, 100% { opacity: 0; } }
.anim-tnt .boom { animation: boom 2.6s steps(1) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes boom { 0%, 49% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(.8); } 60% { opacity: 1; transform: scale(1.3); } 75%, 100% { opacity: 0; transform: scale(1.5); } }
.anim-tnt .bits { animation: bits 2.6s steps(6) infinite; }
@keyframes bits { 0%, 50% { opacity: 0; transform: translateY(6px); } 55% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.anim-tnt .swap { animation: blinkk 1.3s steps(2) infinite; }
@keyframes blinkk { 50% { opacity: .35; } }

.rule-strip { margin-top: 26px; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.rule-pill { padding: 14px 16px; font-size: .95rem; color: var(--muted); background: rgba(0, 0, 0, .55); border: 3px solid #000; box-shadow: var(--slot); }
.rule-pill b { display: block; color: #fff; font-size: 1.1rem; text-shadow: var(--ts); }

/* Modes */
.mode-card {
  display: flex; flex-direction: column; overflow: hidden; padding-top: 34px;
  background: var(--edge, var(--tx-edge-green)) 0 0 / 64px 32px repeat-x, rgba(30, 30, 30, .95) var(--tx-panel) 0 0 / 64px 64px;
}
.mode-card .tag { align-self: flex-start; margin-bottom: 16px; }
.mode-card ul { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: .98rem; }
.mode-card li { position: relative; padding-left: 22px; margin-bottom: 6px; }
.mode-card li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; background: var(--green); box-shadow: 0 0 0 2px #000, inset -2px -2px 0 rgba(0, 0, 0, .3); }
.mode-card.money { --edge: var(--tx-edge-gold); background-color: rgba(44, 36, 10, .95); }
.mode-card.money li::before { background: var(--gold); }
.mode-card.featured { --edge: var(--tx-edge-orange); }
.mode-card.featured li::before { background: var(--orange); }
.mode-card .glow { display: none; }

/* Tournaments */
.formats { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-bottom: 30px; }
.format { padding: 18px; background: rgba(30, 30, 30, .95); border: 3px solid #000; box-shadow: var(--bevel), var(--drop); }
.format b { display: block; font-size: 1.1rem; margin-bottom: 4px; text-shadow: var(--ts); }
.format span { font-size: .92rem; color: var(--muted); display: block; line-height: 1.4; }
.format .format-ico { width: 30px; height: 30px; color: var(--gold); margin-bottom: 10px; filter: drop-shadow(2px 2px 0 #000); }

.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.live-head h3 { margin: 0; font-size: 1.3rem; display: flex; align-items: center; gap: 12px; text-shadow: var(--ts); }
.live-dot { width: 12px; height: 12px; background: var(--red); box-shadow: 0 0 0 3px #000; animation: blinkk 1.2s steps(2) infinite; }
.t-list { display: grid; gap: 16px; }
.t-card {
  display: grid; gap: 14px; padding: 20px; padding-top: 30px;
  background: var(--tx-edge-gold) 0 0 / 64px 32px repeat-x, rgba(30, 30, 30, .95) var(--tx-panel) 0 0 / 64px 64px;
  border: 3px solid #000; box-shadow: var(--bevel), var(--drop);
}
.t-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.t-name { font-weight: 700; font-size: 1.15rem; line-height: 1.25; margin: 0 0 8px; text-shadow: var(--ts); }
.t-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.t-status {
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 7px; white-space: nowrap;
  border: 2px solid #000; color: #fff; text-shadow: 1px 1px 0 #000; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .3), inset 2px 2px 0 rgba(255, 255, 255, .2);
}
.st-registering, .st-open, .st-scheduled, .st-upcoming { background: #3f8f26; }
.st-running, .st-live, .st-in_progress { background: #b52020; }
.st-finished, .st-completed, .st-cancelled, .st-canceled { background: #4a4a4a; }
.t-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.t-fig small { display: block; font-size: .76rem; color: var(--dim); text-transform: uppercase; font-weight: 700; }
.t-fig b { font-size: 1.05rem; }
.t-fig .money { color: var(--gold); }
.t-progress { position: relative; height: 14px; background: #1a1a1a; border: 3px solid #000; overflow: hidden; }
.t-progress i { display: block; height: 100%; background: linear-gradient(180deg, #c6ff7a 0 2px, var(--green) 2px 60%, #4caf1a 60%); }
.t-progress::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(0, 0, 0, .7) calc(10% - 2px) 10%); }
.t-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .92rem; color: var(--muted); }
.t-skeleton { height: 176px; border: 3px solid #000; background: linear-gradient(90deg, #1e1e1e 0%, #2c2c2c 50%, #1e1e1e 100%); background-size: 200% 100%; animation: shimmer 1.4s steps(10) infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.t-empty { text-align: center; padding: 34px 20px; background: rgba(0, 0, 0, .5); border: 3px solid #000; box-shadow: var(--slot); }
.t-empty svg { width: 48px; height: 48px; margin: 0 auto 12px; color: var(--gold); }
.t-empty h4 { font-size: 1.15rem; margin-bottom: 6px; text-shadow: var(--ts); }
.t-empty p { color: var(--muted); max-width: 480px; margin: 0 auto 18px; }

/* Fair play */
.fair-grid { display: grid; gap: 28px; align-items: center; }
.pillars { display: grid; gap: 14px; }
.pillar { display: flex; gap: 16px; padding: 18px; background: rgba(30, 30, 30, .95); border: 3px solid #000; box-shadow: var(--bevel), var(--drop); }
.pillar .icon-tile { margin: 0; flex: none; width: 50px; height: 50px; }
.pillar h3 { font-size: 1.12rem; margin-bottom: 4px; text-shadow: var(--ts); }
.pillar p { margin: 0; color: var(--muted); font-size: .98rem; }
.terminal { /* command block console */
  overflow: hidden; background: #0b0b0b; border: 3px solid #000; font-family: var(--mono); font-size: .8rem;
  box-shadow: 0 0 0 6px #b07a3a, 0 0 0 9px #000, var(--drop);
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #3a3a3a var(--tx-btn-stone) 0 0 / 32px 32px; border-bottom: 3px solid #000; }
.terminal-bar i { width: 12px; height: 12px; background: var(--red); box-shadow: 0 0 0 2px #000; }
.terminal-bar i:nth-child(2) { background: var(--gold); }
.terminal-bar i:nth-child(3) { background: var(--green); }
.terminal-bar span { margin-left: 8px; color: #fff; font-family: var(--font); font-weight: 700; font-size: .85rem; text-shadow: 1px 1px 0 #000; }
.terminal-body { padding: 18px; line-height: 1.75; overflow-x: auto; color: #e6e6e6; }
.terminal-body .ln { display: block; white-space: pre; }
.t-c { color: #7f7f7f; }
.t-k { color: var(--cyan); }
.t-s { color: var(--gold); }
.t-o { color: var(--orange); }
.t-g { color: var(--green); }
.caret { display: inline-block; width: 8px; height: 1em; background: var(--green); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Payments strip */
.pay-strip {
  display: grid; gap: 20px; padding: 40px 24px 26px;
  background: var(--tx-edge-gold) 0 0 / 64px 32px repeat-x, rgba(44, 36, 10, .96) var(--tx-panel) 0 0 / 64px 64px;
  border: 3px solid #000; box-shadow: var(--bevel), var(--drop);
}
.pay-strip h3 { font-size: 1.4rem; margin-bottom: 6px; text-shadow: var(--ts); }
.pay-strip p { color: var(--muted); margin: 0; }
.pay-points { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.pay-point { padding: 14px; background: rgba(0, 0, 0, .5); border: 3px solid #000; box-shadow: var(--slot); }
.pay-point b { display: block; font-family: var(--pixel); font-weight: 400; font-size: 1rem; line-height: 1.4; color: var(--gold); text-shadow: 2px 2px 0 #000; }
.pay-point span { font-size: .88rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 4px; }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: rgba(30, 30, 30, .95); border: 3px solid #000; box-shadow: var(--bevel), 0 4px 0 rgba(0, 0, 0, .45); overflow: hidden; }
.faq details[open] { background: rgba(36, 36, 36, .98); box-shadow: var(--bevel), inset 0 0 0 2px var(--grass-d), 0 4px 0 rgba(0, 0, 0, .45); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 58px 16px 18px; font-weight: 700; font-size: 1.08rem; position: relative; text-shadow: var(--ts); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px;
  border: 3px solid #000; box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .35), inset -2px -2px 0 rgba(0, 0, 0, .35);
  background:
    linear-gradient(#fff, #fff) center / 12px 4px no-repeat,
    linear-gradient(#fff, #fff) center / 4px 12px no-repeat,
    #4f9f30;
}
.faq details[open] summary::after { background: linear-gradient(#fff, #fff) center / 12px 4px no-repeat, #c62e2e; }
.faq .answer { padding: 0 18px 18px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
.faq code { background: #000; color: var(--green); padding: 1px 6px; border: 2px solid #3a3a3a; }

/* CTA band: back to the surface */
.cta-band {
  position: relative; overflow: hidden; text-align: center; padding: 56px 24px 96px;
  background:
    var(--tx-grass) 0 100% / 56px 56px repeat-x,
    linear-gradient(180deg, var(--sky), var(--sky-2)) 0 0 / 100% calc(100% - 50px) no-repeat,
    #8b5a2b;
  border: 3px solid #000; box-shadow: var(--drop);
}
.cta-band h2 { font-family: var(--pixel); font-weight: 400; font-size: clamp(1.1rem, 3.6vw, 1.9rem); line-height: 1.45; color: #fff; text-shadow: 3px 3px 0 #2f4f66, 6px 6px 0 rgba(0, 0, 0, .25); }
.cta-band p { color: var(--ink); font-weight: 700; max-width: 580px; margin: 0 auto 26px; }
.cta-band .scope-bg { position: absolute; width: 360px; height: 360px; left: 50%; top: 42%; transform: translate(-50%, -50%); opacity: .14; pointer-events: none; }
.cta-band > *:not(.scope-bg) { position: relative; }
.cta-note { margin-top: 18px; font-size: .9rem; color: #fff !important; font-weight: 700; text-shadow: var(--ts); }

/* ---------- Footer: bedrock ---------- */
.site-footer { border-top: 3px solid #000; padding: 48px 0 28px; margin-top: 40px; background: #1a1a1a var(--tx-bedrock) 0 0 / 64px 64px; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .06); }
.site-footer .container { background: rgba(12, 12, 12, .86); border: 3px solid #000; padding: 28px 22px 22px; box-shadow: var(--bevel); }
.footer-grid { display: grid; gap: 30px; }
.footer-brand p { color: var(--muted); font-size: .98rem; max-width: 380px; margin-top: 16px; }
.footer-col h4 { font-family: var(--pixel); font-weight: 400; font-size: .62rem; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; text-shadow: 2px 2px 0 #000; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a { color: var(--muted); font-size: 1rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 30px; padding-top: 18px; border-top: 3px solid #000; box-shadow: 0 -3px 0 rgba(255, 255, 255, .05); display: flex; flex-direction: column; gap: 14px; font-size: .9rem; color: var(--dim); }
.footer-bottom .rg { display: flex; align-items: center; gap: 12px; }
.age-badge {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--pixel); font-size: .6rem; color: #fff;
  background: var(--red); border: 3px solid #000; box-shadow: inset -3px -3px 0 rgba(0, 0, 0, .3), inset 3px 3px 0 rgba(255, 255, 255, .25);
}

/* ---------- Doc / legal pages ---------- */
.page-hero {
  padding: 46px 0 70px; margin-bottom: 24px; border-bottom: 3px solid #000;
  background:
    var(--tx-grass) 0 100% / 48px 48px repeat-x,
    linear-gradient(180deg, var(--sky), var(--sky-2)) 0 0 / 100% calc(100% - 44px) no-repeat,
    #8b5a2b;
}
.page-hero h1 { font-family: var(--pixel); font-weight: 400; font-size: clamp(1.3rem, 4.6vw, 2.4rem); line-height: 1.4; color: #fff; text-shadow: 3px 3px 0 #2f4f66, 6px 6px 0 rgba(0, 0, 0, .25); }
.page-hero p { color: var(--ink); font-weight: 700; font-size: 1.12rem; max-width: 760px; }
.breadcrumbs { font-size: .95rem; color: var(--ink); margin-bottom: 14px; font-weight: 700; }
.breadcrumbs a { color: #0b4a7a; }
.doc-layout { display: grid; gap: 28px; padding-bottom: 40px; }
.toc { display: none; }
.toc-inner { position: sticky; top: calc(var(--header-h) + 24px); padding: 16px; background: rgba(30, 30, 30, .95); border: 3px solid #000; box-shadow: var(--bevel), var(--drop); }
.toc h4 { font-family: var(--pixel); font-weight: 400; font-size: .6rem; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; text-shadow: 2px 2px 0 #000; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 10px; color: var(--muted); font-size: .95rem; line-height: 1.35; border: 2px solid transparent; }
.toc a:hover, .toc a.active { color: #fff; background: rgba(0, 0, 0, .45); border-color: #000; text-decoration: none; }
.toc a.active { box-shadow: inset 4px 0 0 var(--green); }

.doc { min-width: 0; }
.doc section { padding: 24px; background: rgba(30, 30, 30, .95) var(--tx-panel) 0 0 / 64px 64px; border: 3px solid #000; box-shadow: var(--bevel), var(--drop); margin-bottom: 18px; }
.doc h2 { font-size: 1.4rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; scroll-margin-top: calc(var(--header-h) + 20px); text-shadow: var(--ts); }
.doc h2::before { content: ""; width: 18px; height: 18px; flex: none; background: #8b5a2b var(--tx-grass) 0 0 / 18px 18px; border: 2px solid #000; image-rendering: pixelated; }
.doc h3 { font-size: 1.12rem; margin: 18px 0 8px; color: var(--gold); text-shadow: var(--ts); }
.doc p, .doc li { color: #d8d8d8; }
.doc li { margin-bottom: 6px; }
.doc strong { color: #fff; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .98rem; background: rgba(0, 0, 0, .35); border: 3px solid #000; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 2px solid #000; }
.doc td:first-child { white-space: nowrap; }
@media (max-width: 480px) { .doc th, .doc td { padding: 8px 6px; font-size: .9rem; } .doc td:first-child { white-space: normal; } }
.doc td { color: #d8d8d8; }
.doc th { color: var(--gold); font-size: .8rem; text-transform: uppercase; font-weight: 700; background: rgba(0, 0, 0, .4); }
.doc pre { background: #0b0b0b; border: 3px solid #000; box-shadow: var(--slot); padding: 16px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.65; color: #e0e0e0; margin: 8px 0 16px; }
.doc code { background: #000; color: var(--green); padding: 1px 6px; border: 2px solid #333; }
.doc pre code { background: none; padding: 0; color: inherit; border: 0; }
.callout { display: flex; gap: 12px; padding: 14px 16px; margin: 14px 0; color: #e0e0e0; background: rgba(28, 154, 154, .2); border: 3px solid #000; box-shadow: inset 0 0 0 2px #1c9a9a; }
.callout.warn { background: rgba(198, 46, 46, .2); box-shadow: inset 0 0 0 2px #c62e2e; }
.callout.gold { background: rgba(201, 154, 10, .2); box-shadow: inset 0 0 0 2px #c99a0a; }
.callout p:last-child { margin: 0; }
.draft-note { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; margin-top: 6px; font-size: .9rem; font-weight: 700; color: #3a2600; background: var(--gold); border: 3px solid #000; }
.flow { display: grid; gap: 10px; counter-reset: flow; margin: 10px 0 16px; padding: 0; list-style: none; }
.flow li { position: relative; padding: 14px 16px 14px 60px; margin: 0; background: rgba(0, 0, 0, .4); border: 3px solid #000; box-shadow: var(--slot); }
.flow li::before {
  counter-increment: flow; content: counter(flow); position: absolute; left: 12px; top: 12px; width: 32px; height: 32px;
  display: grid; place-items: center; font-family: var(--pixel); font-size: .7rem; color: #173400; background: var(--green);
  border: 3px solid #000; box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25), inset 2px 2px 0 rgba(255, 255, 255, .4);
}

/* Verify widget */
.verify { display: grid; gap: 12px; }
.verify label { display: grid; gap: 6px; font-size: .95rem; color: var(--muted); font-weight: 700; }
.verify input { width: 100%; height: 46px; padding: 0 12px; border: 2px solid #a0a0a0; border-radius: 0; background: #000; color: #fff; font-family: var(--mono); font-size: .85rem; box-shadow: 0 0 0 2px #000; }
.verify input:focus { outline: none; border-color: #fff; }
.verify-out { display: grid; gap: 8px; padding: 14px; background: #0b0b0b; border: 3px solid #000; box-shadow: var(--slot); font-family: var(--mono); font-size: .8rem; word-break: break-all; color: #e0e0e0; }
.verify-out small { color: var(--dim); font-family: var(--font); font-size: .8rem; text-transform: uppercase; display: block; font-weight: 700; }
.verify-result { font-family: var(--font); font-weight: 700; font-size: 1rem; }
.verify-result.ok { color: var(--green); }
.verify-result.bad { color: #ff6b6b; }

/* ---------- Reveal animation ---------- */
html.reveal-ready .reveal:not(.in) { opacity: 0; }
html.reveal-ready .reveal.in { animation: rise .5s steps(5) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Breakpoints ---------- */
@media (max-width: 400px) {
  .container { padding: 0 14px; }
  .header-inner { gap: 8px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-word { font-size: .74rem; }
  .lang-switch button { min-width: 28px; padding: 6px 4px 5px; font-size: .5rem; }
  .menu-toggle { width: 40px; height: 40px; }
  .hero-stats { gap: 8px; }
  .stat { padding: 10px 8px; }
  .stat b { font-size: 1rem; }
  .float-chip { font-size: .8rem; padding: 6px 8px; }
}
@media (min-width: 560px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .rule-strip { grid-template-columns: repeat(4, 1fr); }
  .t-list { grid-template-columns: repeat(2, 1fr); }
  .formats { grid-template-columns: repeat(4, 1fr); }
  .pay-points { grid-template-columns: repeat(4, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .pay-strip { grid-template-columns: 1fr 1.4fr; align-items: center; padding: 48px 36px 36px; }
  .site-footer .container { padding: 34px 32px 24px; }
}
@media (min-width: 1024px) {
  .nav { display: flex; gap: 2px; }
  .header-actions { margin-left: 8px; }
  .header-actions .btn-play { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none; }
  .hero { padding: 64px 0 140px; }
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 480px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .t-list { grid-template-columns: repeat(3, 1fr); }
  .fair-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .doc-layout { grid-template-columns: 270px 1fr; gap: 36px; }
  .toc { display: block; }
  .doc section { padding: 30px 34px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .bg-fx, .toc, .mobile-nav { display: none !important; }
  body { background: #fff; color: #000; }
  .page-hero { background: none; }
  .doc section { background: none; border: 0; box-shadow: none; padding: 0; }
  .doc p, .doc li, .doc td { color: #000; }
}
