/* ==========================================================================
   Дизайн-система. Цвета и шрифты — только через переменные ниже.
   ========================================================================== */
:root {
  color-scheme: dark;
  --bg: #07060b;
  --surface: rgba(20, 17, 32, 0.72);
  --surface-solid: #141120;
  --border: rgba(198, 255, 61, 0.12);
  --border-strong: rgba(198, 255, 61, 0.3);
  --text: #f3f1ff;
  --muted: #9d97b8;
  --dim: #8a84a6;
  --mint: #c6ff3d;
  --mint-2: #84cc16;
  --mint-glow: rgba(198, 255, 61, 0.45);
  --gold: #ffd23d;
  --coral: #ff3dcb;
  --violet: #a78bfa;
  --magenta: #ff3dcb;
  --lime: #c6ff3d;
  --cyan: #3df5ff;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Silkscreen", ui-monospace, monospace;
  --font-code: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  /* цвета игрового поля (их читает snake-render.js) */
  --board-bg: #05040a;
  --board-dot: rgba(198, 255, 61, 0.09);
  --snake-1: #e4ff9e;
  --snake-2: #84cc16;
  --snake-head: #f7ffe0;
  --snake-eye: #1a0826;
  --food: #ff3dcb;
  --bonus: #ffd23d;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; }
a { color: var(--mint); }
::selection { background: var(--mint); color: #0d1400; }

/* ---------- фон: сетка, сияние, шум, частицы ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(198, 255, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 61, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 25%, transparent 75%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  overflow: hidden;
}
.bg-aurora span {
  position: absolute;
  border-radius: 50%;
  animation: drift 24s ease-in-out infinite alternate;
}
.bg-aurora span:nth-child(1) { width: 60vmax; height: 60vmax; left: -12vmax; top: -22vmax; background: radial-gradient(circle, rgba(163, 230, 53, 0.28), transparent 62%); }
.bg-aurora span:nth-child(2) { width: 50vmax; height: 50vmax; right: -14vmax; top: -8vmax; background: radial-gradient(circle, rgba(255, 61, 203, 0.16), transparent 62%); animation-duration: 30s; animation-delay: -8s; }
.bg-aurora span:nth-child(3) { width: 40vmax; height: 40vmax; left: 30%; top: 40vh; background: radial-gradient(circle, rgba(255, 210, 61, 0.09), transparent 62%); animation-duration: 36s; animation-delay: -14s; }
@keyframes drift {
  50% { transform: translate3d(5vw, 4vh, 0) scale(1.1); }
  100% { transform: translate3d(-4vw, 8vh, 0) scale(0.95); }
}
.bg-particles { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* ---------- раскладка ---------- */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---------- анонс сверху ---------- */
.announce {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  font: 700 11.5px/1.35 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: #0d1400;
  background: linear-gradient(90deg, #c6ff3d, #ff8ae0, #c6ff3d);
  background-size: 200% 100%;
  animation: bg-slide 8s linear infinite;
}
@keyframes bg-slide { to { background-position: -200% 0; } }
.pulse-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #0d1400; animation: pulse-dark 1.6s infinite; }
@keyframes pulse-dark {
  0% { box-shadow: 0 0 0 0 rgba(3, 23, 11, 0.5); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(3, 23, 11, 0); }
}

/* ---------- шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(7, 6, 11, 0.74);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 17px/1 var(--font-display); letter-spacing: -0.01em; }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 6px 16px rgba(198, 255, 61, 0.35)); transition: transform 0.5s var(--ease-spring); }
.brand:hover .brand-mark { transform: rotate(-12deg) scale(1.08); }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: rgba(198, 255, 61, 0.08); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.burger span { width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform 0.3s var(--ease-out); }
body.menu-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 860px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 12px;
    right: 12px;
    margin: 0;
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
    background: rgba(14, 11, 22, 0.97);
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
  }
  body.menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .burger { display: inline-flex; }
}
@media (max-width: 400px) { .btn-wallet span { display: none; } }

/* ---------- кнопки ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: 700 14px/1 var(--font-display);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.25s var(--ease-out); }
.btn:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(0) scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.btn-primary {
  color: #0d1400;
  border-color: transparent;
  background: linear-gradient(135deg, #eaffb8, #a3e635 55%, #84cc16);
  box-shadow: 0 10px 30px -10px var(--mint-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
.btn-primary:hover { box-shadow: 0 14px 40px -8px var(--mint-glow), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease-out);
  pointer-events: none;
}
.btn-primary:hover::before { left: 130%; }
.btn-shine::before { animation: shine 4s ease-in-out infinite; }
@keyframes shine { 0%, 65% { left: -60%; } 100% { left: 130%; } }
.btn-ghost:hover { background: rgba(198, 255, 61, 0.08); }
.btn-sm { padding: 10px 15px; font-size: 13px; }
.btn-lg { padding: 17px 28px; font-size: 15px; }
.btn.is-disabled, .btn:disabled { opacity: 0.4; pointer-events: none; filter: grayscale(0.5); }

/* ---------- мелкие элементы ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(198, 255, 61, 0.06);
  font: 700 11.5px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
}
.kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
.eyebrow { margin-bottom: 14px; font: 700 12px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); }
.grad {
  background: linear-gradient(100deg, #c6ff3d 0%, #ff8ae0 35%, #c6ff3d 60%, #3df5ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-move 6s ease-in-out infinite alternate;
}
@keyframes grad-move { to { background-position: 100% 0; } }
.pop { animation: pop 0.4s var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.35); color: var(--gold); } }

/* ---------- герой ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 70px;
}
.hero-title { margin: 22px 0 18px; font: 900 clamp(38px, 6.2vw, 80px)/1.03 var(--font-display); letter-spacing: -0.035em; }
.hero-sub { max-width: 34em; margin: 0 0 30px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--mint); }
.hero-visual { position: relative; justify-self: center; width: min(100%, 460px); }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
}

/* аркадный экран с живой демо-партией */
.arcade {
  position: relative;
  padding: 14px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(27, 23, 42, 0.92), rgba(11, 9, 18, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85), 0 0 90px -25px rgba(198, 255, 61, 0.4);
  transform: perspective(1200px) rotateY(-9deg) rotateX(4deg);
  transition: transform 0.8s var(--ease-out);
  animation: float-y 7s ease-in-out infinite;
}
.hero-visual:hover .arcade { transform: perspective(1200px) rotateY(0deg) rotateX(0deg); }
@keyframes float-y { 50% { translate: 0 -12px; } }
.glow-border::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--angle), transparent 0 55%, #c6ff3d 72%, #ff8ae0 84%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-angle 5s linear infinite;
  pointer-events: none;
}
@keyframes spin-angle { to { --angle: 360deg; } }
.arcade-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 6px 12px;
  font: 700 11px/1 var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--coral); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px var(--coral); animation: blink 1s infinite; }
.arcade-score b { display: inline-block; margin-left: 6px; color: var(--text); font: 800 14px/1 var(--font-display); }
.screen { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 1; background: var(--board-bg); }
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(198, 255, 61, 0.08);
  background:
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.5));
}
.demo-canvas { width: 100%; height: 100%; }
.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(20, 17, 32, 0.88);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.9);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  animation: bob 5s ease-in-out infinite;
}
.float-chip b { font: 800 15px/1 var(--font-display); color: var(--gold); }
.chip-a { top: 14%; left: -38px; }
.chip-b { top: 48%; right: -42px; animation-delay: -1.7s; }
.chip-b b { color: var(--mint); }
.chip-c { bottom: 7%; left: -24px; animation-delay: -3.3s; }
.chip-c b { color: var(--cyan); }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
@media (max-width: 560px) {
  .chip-a { left: -4px; top: 9%; }
  .chip-b { right: -4px; }
  .chip-c { left: 4px; bottom: 4%; }
  .float-chip { padding: 8px 11px; font-size: 12px; }
}

/* ---------- бегущие строки крест-накрест ---------- */
.marquees { position: relative; height: 150px; margin: 0 0 30px; overflow: hidden; }
.marquee { position: absolute; left: -5%; right: -5%; top: 50%; overflow: hidden; padding: 14px 0; }
.marquee-a {
  z-index: 2;
  color: #0d1400;
  background: linear-gradient(90deg, #c6ff3d, #a3e635, #c6ff3d);
  transform: translateY(-50%) rotate(-2.5deg);
  box-shadow: 0 20px 50px -20px rgba(198, 255, 61, 0.7);
}
.marquee-b {
  z-index: 1;
  color: var(--mint);
  background: #0e0b16;
  border-block: 1px solid var(--border-strong);
  transform: translateY(-50%) rotate(2deg);
}
.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  font: 900 20px/1 var(--font-display);
  text-transform: uppercase;
  white-space: nowrap;
  animation: marquee 34s linear infinite;
}
.marquee-track > * { margin-right: 26px; }
.marquee-track i { font-style: normal; opacity: 0.55; }
.marquee[data-reverse] .marquee-track { animation-direction: reverse; animation-duration: 40s; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- секции ---------- */
.section { padding-top: 96px; scroll-margin-top: 80px; }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head h2, .token-info h2 { margin: 0 0 12px; font: 800 clamp(28px, 4vw, 48px)/1.08 var(--font-display); letter-spacing: -0.03em; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* ---------- карточки игр ---------- */
.games-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .games-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .games-grid { grid-template-columns: 1fr; } }
.game-card {
  --rx: 0deg;
  --ry: 0deg;
  --mx: 50%;
  --my: 0%;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 23, 42, 0.88), rgba(14, 11, 22, 0.88));
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.game-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(198, 255, 61, 0.15), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s;
}
.game-card:hover { border-color: var(--border-strong); box-shadow: 0 30px 60px -30px rgba(198, 255, 61, 0.5); }
.game-card:hover::after { opacity: 1; }
.game-card:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.card-art { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--board-bg); }
.card-art .demo-canvas { position: absolute; left: 0; top: 50%; width: 100%; height: auto; aspect-ratio: 1; transform: translateY(-50%); }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(7, 6, 11, 0.78);
  border: 1px solid var(--border-strong);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font: 700 10.5px/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mint);
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 8px var(--mint); animation: blink 1.2s infinite; }
.card-body { padding: 18px 8px 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tags span { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.game-card h3 { margin: 0 0 6px; font: 800 24px/1.1 var(--font-display); letter-spacing: -0.02em; }
.game-card p { margin: 0; color: var(--muted); font-size: 15px; }
.game-card p b { color: var(--gold); }
.card-cta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 18px 8px 6px; font: 700 14px/1 var(--font-display); color: var(--mint); }
.card-cta svg { width: 20px; height: 20px; transition: transform 0.3s var(--ease-out); }
.game-card:hover .card-cta svg { transform: translateX(5px); }
.game-card.is-soon { cursor: default; }
.soon-art {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(135deg, rgba(198, 255, 61, 0.05) 0 12px, transparent 12px 24px), var(--board-bg);
}
.soon-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: sweep 2.8s ease-in-out infinite;
}
@keyframes sweep { to { transform: translateX(100%); } }
.soon-lock { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--muted); }
.soon-lock svg { width: 26px; height: 26px; }
.is-soon h3 { color: var(--muted); }
.is-soon .card-cta { color: var(--dim); }

/* ---------- как это работает ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.step {
  position: relative;
  padding: 26px 22px 24px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 24px 50px -30px rgba(198, 255, 61, 0.5); }
.step-num { position: absolute; top: 18px; right: 20px; font: 900 42px/1 var(--font-display); color: transparent; -webkit-text-stroke: 1px rgba(198, 255, 61, 0.28); }
.step-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--mint);
  background: linear-gradient(135deg, rgba(198, 255, 61, 0.2), rgba(198, 255, 61, 0.04));
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px -12px var(--mint-glow);
  transition: transform 0.5s var(--ease-spring);
}
.step:hover .step-icon { transform: rotate(-8deg) scale(1.08); }
.step-icon svg { width: 26px; height: 26px; }
.step h3 { margin: 0 0 8px; font: 800 18px/1.25 var(--font-display); }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- награды: цифры и ступени ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; padding: 26px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: radial-gradient(circle, rgba(198, 255, 61, 0.16), transparent 70%); }
.stat-value {
  font: 900 clamp(28px, 3.4vw, 44px)/1.05 var(--font-display);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #9be8b5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { margin-top: 10px; color: var(--muted); font-size: 14px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
.tiers-card { padding: 28px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.tiers-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin-bottom: 24px; }
.tiers-head h3 { margin: 0; font: 800 22px/1.2 var(--font-display); }
.tiers-head p { margin: 0; color: var(--muted); font-size: 14px; }
.tiers { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 14px; height: 250px; }
.tier { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.tier-bar {
  display: flex;
  justify-content: center;
  height: 0;
  border-radius: 16px 16px 8px 8px;
  background: linear-gradient(180deg, var(--tier-color, #c6ff3d), rgba(198, 255, 61, 0.05));
  box-shadow: 0 0 34px -10px var(--tier-color, #c6ff3d);
  overflow: hidden;
  transition: height 1.2s var(--ease-spring);
  transition-delay: var(--tier-delay, 0ms);
}
.tiers.is-in .tier-bar { height: var(--h); }
.tier-mult { margin-top: 12px; font: 900 clamp(16px, 2.2vw, 22px)/1 var(--font-display); color: #0d1400; }
.tier-label { margin-top: 10px; text-align: center; font: 700 13px/1.2 var(--font-mono); color: var(--muted); }

/* ---------- токен ---------- */
.token-card {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(163, 230, 53, 0.16), rgba(14, 11, 22, 0.92) 45%, rgba(255, 61, 203, 0.12));
  border: 1px solid var(--border-strong);
}
.token-glow { position: absolute; left: -90px; top: -130px; width: 440px; height: 440px; background: radial-gradient(circle, rgba(198, 255, 61, 0.38), transparent 65%); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: 0.7; } }
.coin { position: relative; width: 220px; height: 220px; margin: 0 auto; transform-style: preserve-3d; animation: coin-spin 7s ease-in-out infinite; }
.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 900 30px/1 var(--font-display);
  color: #0d1400;
  background: radial-gradient(circle at 30% 25%, #f7ffe0, #c6ff3d 40%, #65a30d 100%);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.2), inset 0 -14px 30px rgba(0, 0, 0, 0.25), 0 30px 60px -20px rgba(198, 255, 61, 0.75);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.coin-face.is-long { font-size: 20px; }
.coin-back { transform: rotateY(180deg); }
.coin-back img { width: 46%; height: 46%; }
@keyframes coin-spin {
  0%, 25% { transform: rotateY(0deg) translateY(0); }
  50% { transform: rotateY(180deg) translateY(-12px); }
  75%, 100% { transform: rotateY(360deg) translateY(0); }
}
.token-info { position: relative; }
.ca {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  margin: 22px 0;
  padding: 8px 8px 8px 12px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed var(--border-strong);
}
.ca-label { padding: 6px 8px; border-radius: 8px; background: rgba(198, 255, 61, 0.1); font: 700 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--mint); }
.ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 14px/1.2 var(--font-code); color: var(--muted); }
.ca.has-mint .ca-value { color: var(--text); }
.icon-btn {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}
.icon-btn:hover:not(:disabled) { background: rgba(198, 255, 61, 0.12); border-color: var(--border-strong); color: var(--mint); }
.icon-btn:active:not(:disabled) { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.icon-btn svg { width: 19px; height: 19px; }
.token-links { display: flex; flex-wrap: wrap; gap: 12px; }
.token-note { margin: 22px 0 0; font-size: 13px; color: var(--dim); }
@media (max-width: 860px) {
  .token-card { grid-template-columns: 1fr; gap: 28px; padding: 30px 20px; }
  .coin { width: 170px; height: 170px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--border); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: var(--border-strong); background: rgba(24, 20, 38, 0.88); }
.faq summary { position: relative; padding: 20px 64px 20px 22px; list-style: none; cursor: pointer; font: 700 16px/1.35 var(--font-display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border-radius: 50%;
  background:
    linear-gradient(var(--mint), var(--mint)) center / 12px 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center / 2px 12px no-repeat,
    rgba(198, 255, 61, 0.1);
  transition: transform 0.4s var(--ease-spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq summary:focus-visible { outline: 2px solid var(--mint); outline-offset: -2px; border-radius: 18px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); animation: faq-in 0.35s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }

/* ---------- подвал ---------- */
.site-footer { margin-top: 110px; padding: 36px 0 44px; border-top: 1px solid var(--border); background: linear-gradient(180deg, transparent, rgba(163, 230, 53, 0.05)); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-note { max-width: 560px; margin: 0; color: var(--dim); font-size: 13px; }

/* ---------- тосты ---------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 16px;
  background: rgba(20, 17, 32, 0.96);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.95);
  font-size: 14px;
  opacity: 0;
  translate: 0 16px;
  transition: translate 0.4s var(--ease-spring), opacity 0.3s;
}
.toast.is-in { opacity: 1; translate: 0 0; }
.toast.is-out { opacity: 0; translate: 0 8px; }
.toast-ok { border-color: rgba(198, 255, 61, 0.6); }
@media (max-width: 560px) {
  .toasts { left: 16px; right: 16px; bottom: 16px; }
  .toast { max-width: none; }
}

/* ---------- появление при прокрутке ---------- */
.js [data-reveal]:not(.is-in) { opacity: 0; }
[data-reveal].is-in { animation: reveal 0.9s var(--ease-out) both; animation-delay: var(--reveal-delay, 0ms); }
@keyframes reveal {
  from { opacity: 0; translate: 0 28px; filter: blur(6px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}

/* ==========================================================================
   Страница игры
   ========================================================================== */
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
  padding-top: 26px;
}
@media (max-width: 960px) { .game-layout { grid-template-columns: 1fr; } }
.game-stage { --board: max(280px, min(100%, 580px, calc(100svh - 250px))); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: var(--board); }
.hud-chip { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.hud-label { font: 700 10.5px/1 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hud-value { display: inline-block; font: 900 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.speed { display: flex; align-items: center; gap: 10px; }
.speed .hud-value { font-size: 18px; }
.speed-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.speed-bar i { display: block; width: calc(var(--speed, 0) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold), var(--coral)); transition: width 0.4s var(--ease-out); }
.board-frame {
  position: relative;
  width: var(--board);
  aspect-ratio: 1;
  padding: 10px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(27, 23, 42, 0.92), rgba(11, 9, 18, 0.92));
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.95), 0 0 90px -30px rgba(198, 255, 61, 0.38);
}
.board-frame .screen { width: 100%; height: 100%; }
#board { width: 100%; height: 100%; touch-action: none; }
.overlay {
  position: absolute;
  inset: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(7, 6, 11, 0.5), rgba(7, 6, 11, 0.86));
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  transition: opacity 0.35s, visibility 0.35s;
}
.overlay[data-state="over"] { background: rgba(7, 6, 11, 0.62); -webkit-backdrop-filter: none; backdrop-filter: none; }
.overlay.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.overlay > section { display: none; }
.overlay[data-state="start"] .ov-start,
.overlay[data-state="paused"] .ov-paused,
.overlay[data-state="over"] .ov-over { display: block; animation: ov-in 0.5s var(--ease-spring) both; }
@keyframes ov-in { from { opacity: 0; transform: scale(0.9) translateY(12px); } }
.ov-kicker { margin-bottom: 12px; font: 700 12px/1 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); }
.ov-title { margin: 0 0 10px; font: 900 clamp(32px, 7vw, 56px)/1 var(--font-display); letter-spacing: -0.03em; }
.ov-sub { max-width: 24em; margin: 0 auto 22px; color: var(--muted); font-size: 15px; }
.ov-sub b { color: var(--gold); }
.keys { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 18px; color: var(--dim); font-size: 13px; }
.key {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  font: 700 12px/1 var(--font-mono);
  color: var(--text);
}
.final-score {
  font: 900 clamp(64px, 14vw, 108px)/1 var(--font-display);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.record-badge {
  display: inline-flex;
  margin: 10px 0 2px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #fb923c);
  color: #2a1600;
  font: 800 12.5px/1 var(--font-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  animation: badge-pop 0.6s var(--ease-spring) 0.25s both, wiggle 1.8s ease-in-out 1s infinite;
}
.record-badge[hidden] { display: none; }
@keyframes badge-pop { from { transform: scale(0) rotate(-20deg); } }
@keyframes wiggle { 50% { transform: rotate(-4deg) scale(1.06); } }
.ov-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.touch-only { display: none; }
@media (pointer: coarse) {
  .touch-only { display: inline; }
  .mouse-only { display: none; }
}
.dpad { display: none; grid-template-columns: repeat(3, 68px); grid-template-rows: repeat(2, 58px); gap: 8px; justify-content: center; user-select: none; -webkit-user-select: none; }
@media (pointer: coarse) { .dpad { display: grid; } }
.dpad button {
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: rgba(198, 255, 61, 0.07);
  color: var(--mint);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s, background 0.1s;
}
.dpad button.is-pressed { transform: scale(0.9); background: rgba(198, 255, 61, 0.22); }
.dpad svg { width: 26px; height: 26px; }
.dpad [data-dir="0"] { grid-column: 2; grid-row: 1; }
.dpad [data-dir="3"] { grid-column: 1; grid-row: 2; }
.dpad [data-dir="2"] { grid-column: 2; grid-row: 2; }
.dpad [data-dir="1"] { grid-column: 3; grid-row: 2; }
.game-side { display: grid; gap: 14px; }
.panel { padding: 20px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.panel h3, .panel-head h3 { margin: 0; font: 800 16px/1.2 var(--font-display); }
.panel-head h3 { margin: 0; }
.panel > h3 { margin-bottom: 14px; }
.progress { display: flex; align-items: center; gap: 16px; }
.ring-wrap { position: relative; flex: none; width: 100px; height: 100px; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-bg { stroke: rgba(255, 255, 255, 0.07); }
.ring-fg { stroke-linecap: round; transition: stroke-dashoffset 0.5s var(--ease-out), filter 0.3s; }
.ring-fg.is-full { filter: drop-shadow(0 0 6px var(--gold)); }
.ring-text { position: absolute; inset: 0; display: grid; place-items: center; font: 800 17px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ring-note { margin: 0; color: var(--muted); font-size: 13.5px; }
.rules { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.rules li { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.rules b { color: var(--text); }
.rule-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); color: var(--mint); }
.rule-ico svg { width: 18px; height: 18px; }
.dot-food { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.dot-bonus { width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 12px var(--gold); }
.sound-btn .ico-off { display: none; }
.sound-btn[aria-pressed="true"] .ico-on { display: none; }
.sound-btn[aria-pressed="true"] .ico-off { display: block; }
.page-game .site-footer { margin-top: 70px; }

/* ---------- уважение к «уменьшить движение» ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Фирменные элементы «Arcade on-chain» (см. docs/design-system.md)
   ========================================================================== */

/* ---------- Snek: пиксельный маскот ---------- */
.snek { display: inline-block; image-rendering: pixelated; }
.snek svg { width: 100%; height: 100%; overflow: visible; }
.snek .snek-img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; image-rendering: pixelated; }
.snek .snek-lid { opacity: 0; }
.snek.is-blink .snek-lid { opacity: 1; }
.snek .snek-tongue { transform-origin: 50% 0; animation: tongue 3.2s steps(2) infinite; }
@keyframes tongue { 0%, 80% { transform: scaleY(0); } 85%, 95% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.snek-hero {
  position: absolute;
  z-index: 3;
  right: -18px;
  top: -46px;
  width: 92px;
  height: 84px;
  filter: drop-shadow(0 10px 24px rgba(198, 255, 61, 0.35));
  animation: snek-bob 2.6s steps(4) infinite;
}
@keyframes snek-bob { 50% { translate: 0 -6px; } }
@media (max-width: 560px) { .snek-hero { width: 70px; height: 64px; top: -38px; right: 0; } }

/* ---------- LED-табло ---------- */
.led {
  position: relative;
  margin: 0 auto;
  border-radius: 14px;
  background: #050409;
  border: 1px solid rgba(198, 255, 61, 0.18);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(0, 0, 0, 0.9), 0 0 50px -20px rgba(198, 255, 61, 0.45);
  overflow: hidden;
}
.led canvas { width: 100%; height: 56px; }
.led::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #050409, transparent 8%, transparent 92%, #050409); }
.led-wrap { padding-top: 8px; padding-bottom: 8px; }

/* ---------- PRESS START ---------- */
.press-start {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  translate: -50% 0;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(7, 6, 11, 0.7);
  font: 700 12px/1 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
  animation: press-blink 1.1s steps(2) infinite;
}
.press-start:hover { color: var(--lime); animation-play-state: paused; }
@keyframes press-blink { 50% { opacity: 0.25; } }

/* ---------- пиксельные тени ---------- */
.game-card:hover, .step:hover, .stat:hover {
  box-shadow: 4px 4px 0 0 rgba(198, 255, 61, 0.55), 8px 8px 0 0 rgba(255, 61, 203, 0.35), 0 30px 60px -30px rgba(198, 255, 61, 0.45);
}
.stat { transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
.stat:hover { transform: translate(-4px, -4px); }
.btn-primary:active { box-shadow: 0 0 0 0 transparent; }

/* ---------- второй акцент: маджента ---------- */
.kicker { border-color: rgba(255, 61, 203, 0.45); background: rgba(255, 61, 203, 0.08); color: #ff8ae0; }
.kicker-dot { background: var(--magenta); box-shadow: 0 0 12px var(--magenta); }
.eyebrow::before { content: "> "; color: var(--magenta); }
.step-num { -webkit-text-stroke: 1px rgba(255, 61, 203, 0.4); }
.marquee-b { color: var(--magenta); border-color: rgba(255, 61, 203, 0.4); }
.announce { background: linear-gradient(90deg, #c6ff3d, #ff8ae0, #c6ff3d); background-size: 200% 100%; }

/* ---------- 404 и пустые состояния ---------- */
.empty-state { display: grid; justify-items: center; gap: 18px; padding: 90px 0 40px; text-align: center; }
.empty-state .snek { width: 140px; height: 128px; }
.empty-state h1 { margin: 0; font: 900 clamp(48px, 12vw, 120px)/1 var(--font-display); letter-spacing: -0.04em; }
.empty-state p { margin: 0; max-width: 32em; color: var(--muted); }

/* ---------- текстовые страницы (Terms, Privacy, Disclaimer) ---------- */
.prose { max-width: 760px; padding-top: 56px; }
.prose h1 { margin: 0 0 8px; font: 900 clamp(32px, 5vw, 52px)/1.05 var(--font-display); letter-spacing: -0.03em; }
.prose h2 { margin: 40px 0 10px; font: 800 20px/1.3 var(--font-display); }
.prose p, .prose li { color: #c9c4df; }
.prose .updated { font: 700 12px/1 var(--font-mono); letter-spacing: 0.1em; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
@media (max-width: 1260px) { .chip-b { right: -6px; } .chip-a { left: -14px; } }
@media (pointer: coarse) { .keys.touch-only { display: flex; } }
@media (max-width: 480px) { .kicker { font-size: 10px; letter-spacing: 0.08em; } }
.prose-top { padding-top: 56px; }
.btn-wallet.is-connected { background: rgba(198, 255, 61, 0.1); color: var(--lime); border-color: var(--border-strong); box-shadow: none; font-family: var(--font-mono); }
.btn-wallet.is-connected::before { display: none; }
[hidden] { display: none !important; }
.mode-note { max-width: 26em; margin: -10px auto 18px; font-size: 13px; color: var(--muted); }
.mode-note.is-ranked { color: var(--lime); }
.verify-status { margin-top: 12px; font: 700 12px/1.4 var(--font-mono); letter-spacing: 0.06em; color: var(--muted); }
.verify-status.is-ok { color: var(--lime); }
.verify-status.is-bad { color: var(--magenta); }
.verify-status.is-wait { animation: press-blink 1s steps(2) infinite; }
.rewards-banner { margin: 0 0 18px; padding: 14px 18px; border-radius: 16px; border: 1px dashed rgba(255, 61, 203, 0.5); background: rgba(255, 61, 203, 0.07); color: #ffb3ec; font-size: 14px; }
.limit-card, .history-card { margin-top: 18px; }
.limit-bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.limit-bar i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--lime), var(--gold), var(--magenta)); border-radius: inherit; transition: width 0.8s var(--ease-out); }
.limit-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.history-scroll { overflow-x: auto; }
.history { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.history th { text-align: left; padding: 8px 10px; font: 700 11px/1 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.history td { padding: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); white-space: nowrap; }
.withdraw-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.ref-input { flex: 1 1 260px; min-width: 0; font-family: var(--font-mono, monospace); }
.input { flex: 1; min-width: 180px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.35); color: var(--text); font: 500 15px/1 var(--font-body); }
.input:focus { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ==========================================================================
   Арт-дирекция v2: «ковёр игрового зала» вместо градиентных пятен и сетки.
   Плотные панели, жёсткие рамки и тени, кнопки как на настоящем автомате.
   ========================================================================== */
body { background-color: #0c0916; }
body::before {
  z-index: -2;
  -webkit-mask-image: none;
  mask-image: none;
  background-size: 300px 300px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke-width='6' stroke-linecap='round' stroke-linejoin='round' opacity='.12'%3E%3Cpath d='M18 44q16-22 32 0t32 0t32 0' stroke='%23ff3dcb'/%3E%3Cpath d='M196 26l28 50h-56z' stroke='%233df5ff'/%3E%3Cpath d='M26 196l16-16 16 16 16-16 16 16 16-16' stroke='%23c6ff3d'/%3E%3Ccircle cx='222' cy='204' r='20' stroke='%23ffd23d'/%3E%3Cellipse cx='222' cy='204' rx='38' ry='10' transform='rotate(-20 222 204)' stroke='%23ffd23d'/%3E%3Cpath d='M136 118l7 15 16 2-12 11 3 16-14-8-14 8 3-16-12-11 16-2z' stroke='%23c6ff3d'/%3E%3Cpath d='M120 262q14-18 28 0t28 0' stroke='%233df5ff'/%3E%3Cpath d='M262 110l14 14m0-14l-14 14' stroke='%23ff3dcb'/%3E%3Crect x='60' y='92' width='22' height='22' rx='3' transform='rotate(18 71 103)' stroke='%23ffd23d'/%3E%3C/g%3E%3Cg opacity='.16'%3E%3Ccircle cx='100' cy='20' r='4' fill='%23c6ff3d'/%3E%3Ccircle cx='280' cy='250' r='4' fill='%23ff3dcb'/%3E%3Ccircle cx='170' cy='190' r='3' fill='%233df5ff'/%3E%3Ccircle cx='20' cy='120' r='3' fill='%23ffd23d'/%3E%3C/g%3E%3C/svg%3E");
}
body::after { display: none; }

/* панели: сплошные, с жёсткой рамкой и «пиксельной» тенью — без стекла и размытия */
.game-card, .step, .stat, .tiers-card, .faq details, .panel, .hud-chip, .token-card, .arcade, .board-frame, .float-chip, .led {
  background: #15111f;
  border: 2px solid #2d2544;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 6px 6px 0 0 #000;
}
.stat::after, .token-glow { display: none; }
.game-card:hover, .step:hover, .stat:hover {
  transform: translate(-3px, -3px);
  border-color: var(--lime);
  box-shadow: 9px 9px 0 0 #000;
}
.game-card { transform: none; }
.game-card::after { display: none; }
.arcade { transform: none; box-shadow: 10px 10px 0 0 #000; border-color: #3a3057; }
.glow-border::before { display: none; }
.token-card { background: #15111f; }
.faq details[open] { background: #1a1528; border-color: var(--lime); }

/* кнопки как на автомате: плоский цвет, толстая рамка, тень, которая «вжимается» при нажатии */
.btn { border: 2px solid #000; box-shadow: 4px 4px 0 0 #000; background: #231c35; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 0 #000; border-color: #000; }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 0 #000; }
.btn-primary { background: var(--lime); color: #0d1400; box-shadow: 4px 4px 0 0 #000; }
.btn-primary:hover { box-shadow: 6px 6px 0 0 #000; }
.btn-primary::before { display: none; }
.btn-ghost { background: #231c35; }
.btn-wallet.is-connected { background: #231c35; border-color: #000; }

/* заголовок: сплошной цвет с жёсткой тенью вместо переливающегося градиента */
.grad {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--lime);
  animation: none;
  text-shadow: 4px 4px 0 var(--magenta);
}
.stat-value, .final-score {
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--text);
}
.final-score { color: var(--lime); text-shadow: 4px 4px 0 #000; }

.kicker { border: 2px solid var(--magenta); background: #1d1024; box-shadow: 3px 3px 0 0 #000; }
.announce { background: var(--lime); animation: none; border-bottom: 2px solid #000; }
.site-header.is-scrolled { background: #0c0916; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 2px solid #2d2544; }
.marquee-a { box-shadow: none; border-block: 2px solid #000; }
.overlay { background: rgba(8, 6, 14, 0.82); -webkit-backdrop-filter: none; backdrop-filter: none; }
.overlay[data-state="over"] { background: rgba(8, 6, 14, 0.72); }
.tier-bar { box-shadow: none; border: 2px solid #000; }
.coin-face { box-shadow: inset 0 0 0 8px rgba(0, 0, 0, 0.18), 8px 8px 0 0 #000; }
