/* ==========================================================================
   IC7 Game — main.css
   Hand-written, mobile-first. No frameworks.
   Order: reset → base → layout → components → sections → utilities → motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

button { background: none; border: none; cursor: pointer; }

a { color: var(--color-accent-bright); text-decoration: none; }
a:hover { color: var(--color-accent); }

ul, ol { list-style: none; }

/* --------------------------------------------------------------------------
   2. Base typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.01em;
  color: var(--color-text-primary);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 6vw, var(--fs-4xl)); }
h2 { font-size: clamp(1.625rem, 4.5vw, var(--fs-2xl)); }
h3 { font-size: clamp(1.25rem, 3vw, var(--fs-xl)); }
h4 { font-size: var(--fs-md); letter-spacing: 0; }

p { text-wrap: pretty; }

strong { color: var(--color-text-primary); font-weight: 600; }

::selection {
  background: var(--color-accent);
  color: #fff;
}

/* Accessibility: skip link + focus ring */
.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: var(--z-toast);
  padding: var(--space-3) var(--space-5);
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--space-4); color: #fff; }

:focus-visible {
  outline: 2px solid var(--color-accent-bright);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--narrow { max-width: 860px; }

.section {
  position: relative;
  padding-block: var(--space-16);
}
@media (min-width: 768px) {
  .section { padding-block: var(--space-24); }
}

.section--alt { background: var(--color-bg-alt); }

.section--tint {
  background:
    radial-gradient(1200px 400px at 50% 0%, var(--color-accent-wash), transparent 70%),
    var(--color-bg-alt);
}

/* Diagonal clip-path dividers (esports-poster edges) */
.section--cut-top { clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); margin-top: -3vw; }
.section--cut-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3vw), 0 100%); }
.section--cut-both {
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  margin-top: -3vw;
}

/* Section header block */
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-12);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent));
}
.section-head--center .eyebrow::before { display: none; }

.section-head p {
  margin-top: var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--fs-md);
}

.lede {
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
}

/* --------------------------------------------------------------------------
   4. Background motifs — hex grid + circuit + embers
   -------------------------------------------------------------------------- */
.bg-hex {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'><path d='M28 0L56 16v32L28 64 0 48V16L28 0z' fill='none' stroke='%23E10600' stroke-width='1'/><path d='M28 64v32' stroke='%23E10600' stroke-width='1'/></svg>");
  background-size: 56px 96px;
  animation: hex-drift 60s linear infinite;
}

.bg-grid {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

@keyframes hex-drift {
  from { background-position: 0 0; }
  to   { background-position: 56px 288px; }
}

/* Ember particle canvas */
.embers {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out);
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn svg { flex-shrink: 0; }

/* Primary — crimson, pulse-glow */
.btn--primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dim) 100%);
  color: #fff;
  box-shadow: 0 0 0 rgba(225, 6, 0, 0);
  animation: pulse-glow 3.2s var(--ease-in-out) infinite;
}
.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-accent-bright) 0%, var(--color-accent) 100%);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-strong);
  animation-play-state: paused;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(225, 6, 0, 0), 0 4px 16px rgba(0,0,0,0.4); }
  50%      { box-shadow: var(--shadow-glow), 0 4px 16px rgba(0,0,0,0.4); }
}

/* Secondary — glass with red edge */
.btn--secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-light);
  color: var(--color-text-primary);
  backdrop-filter: blur(8px);
}
.btn--secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background: var(--color-accent-wash);
}

/* Ghost — text-forward */
.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text-secondary);
}
.btn--ghost:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
}

/* Telegram-flavoured button */
.btn--telegram {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--color-border-light);
  color: var(--color-text-primary);
}
.btn--telegram:hover {
  border-color: #2AABEE;
  background: rgba(42, 171, 238, 0.12);
  color: #fff;
  box-shadow: 0 0 24px rgba(42, 171, 238, 0.3);
  transform: translateY(-2px);
}
.btn--telegram .tg-icon { color: #2AABEE; }

.btn--lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--fs-base);
}
.btn--sm {
  padding: var(--space-3) var(--space-4);
  font-size: var(--fs-xs);
}
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.btn-row--center { justify-content: center; }

/* On narrow phones a nowrap label like "Join our Telegram Community" is wider
   than the container. Let the text wrap and stack the buttons full-width. */
@media (max-width: 600px) {
  .btn { white-space: normal; }
  .btn-row > .btn { flex: 1 1 100%; }
}

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--header-h);
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled {
  background: rgba(10, 10, 12, 0.98);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
  color: var(--color-text-primary);
}
.brand:hover { color: var(--color-text-primary); }
.brand img {
  height: 38px;
  width: auto;
  transition: filter var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
}
.brand:hover img {
  filter: drop-shadow(0 0 12px var(--color-accent-glow));
  transform: scale(1.04);
}
.brand__word {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-lg);
  letter-spacing: 0.04em;
}
.brand__word span { color: var(--color-accent); }

/* Desktop links */
.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}
.nav__link {
  position: relative;
  padding-block: var(--space-2);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-base) var(--ease-out);
  border-radius: 2px;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--color-text-primary); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav__link[aria-current="page"] { color: var(--color-text-primary); }

.nav__actions {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

/* Hamburger */
.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
}

/* Desktop breakpoint. This MUST come after the .nav__toggle base rule above —
   same specificity, so source order decides which display value wins. */
@media (min-width: 1024px) {
  .nav__links, .nav__actions { display: flex; }
  .nav__toggle { display: none; }
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  top: var(--header-h);
  right: 0;
  bottom: 0;
  width: min(88vw, 360px);
  z-index: var(--z-nav);
  padding: var(--space-8) var(--space-6) var(--space-12);
  background: linear-gradient(180deg, rgba(23, 23, 27, 0.98), rgba(10, 10, 12, 0.98));
  border-left: 1px solid var(--color-border);
  box-shadow: -24px 0 64px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(16px);
  transform: translateX(105%);
  transition: transform var(--dur-base) var(--ease-out);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.drawer.is-open { transform: translateX(0); }
.drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 100% 0%, var(--color-accent-wash), transparent 70%);
  pointer-events: none;
}
.drawer__link {
  position: relative;
  padding: var(--space-4) var(--space-3);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
}
.drawer__link:hover,
.drawer__link[aria-current="page"] {
  color: var(--color-text-primary);
  padding-left: var(--space-5);
}
.drawer__link[aria-current="page"] { color: var(--color-accent-bright); }
.drawer__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-nav) - 1);
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base);
}
.nav-backdrop.is-open { opacity: 1; visibility: visible; }

body.nav-locked { overflow: hidden; }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-12));
  padding-bottom: var(--space-16);
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(225, 6, 0, 0.16), transparent 60%),
    radial-gradient(700px 500px at 90% 80%, rgba(225, 6, 0, 0.08), transparent 60%),
    var(--color-bg);
}
@media (min-width: 768px) {
  .hero {
    padding-top: calc(var(--header-h) + var(--space-20));
    padding-bottom: var(--space-24);
  }
}

.hero__inner {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  gap: var(--space-12);
  align-items: center;
}
/* Grid items default to min-width:auto, so a nowrap child (the long Telegram
   button) would set a min-content floor that inflates the track past the
   viewport and shove the phone off-centre. Let the tracks actually shrink. */
.hero__inner > * { min-width: 0; }
@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-16);
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  margin-bottom: var(--space-6);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-secondary);
}
.hero__badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 10px var(--color-success);
  animation: blink 2s var(--ease-in-out) infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { margin-bottom: var(--space-6); }
.hero h1 .accent { color: var(--color-accent); }

.hero__sub {
  max-width: 58ch;
  margin-bottom: var(--space-6);
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
}
.hero__sub .bonus {
  color: var(--color-text-primary);
  font-weight: 700;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
}
.hero__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}
.hero__meta-item svg { color: var(--color-accent); flex-shrink: 0; }

/* Glitch headline word */
.glitch {
  position: relative;
  display: inline-block;
  color: var(--color-accent);
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}
.glitch::before { color: #00E5FF; }
.glitch::after  { color: var(--color-accent-bright); }
.glitch.is-live::before { animation: glitch-a 2.4s var(--ease-out) 1; }
.glitch.is-live::after  { animation: glitch-b 2.4s var(--ease-out) 1; }

@keyframes glitch-a {
  0%   { opacity: 0.7; transform: translate(-2px, 1px); clip-path: inset(0 0 62% 0); }
  8%   { opacity: 0;   transform: translate(0, 0); }
  14%  { opacity: 0.6; transform: translate(2px, -1px); clip-path: inset(58% 0 0 0); }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes glitch-b {
  4%   { opacity: 0.6; transform: translate(2px, -1px); clip-path: inset(40% 0 30% 0); }
  10%  { opacity: 0; }
  17%  { opacity: 0.5; transform: translate(-2px, 1px); clip-path: inset(10% 0 70% 0); }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Phone mockup */
.phone {
  position: relative;
  width: 100%;
  padding: 12px;
  border-radius: 42px;
  background: linear-gradient(160deg, #26262C, #101013 60%);
  border: 1px solid var(--color-border-light);
  box-shadow:
    var(--shadow-card-lg),
    0 0 60px rgba(225, 6, 0, 0.25),
    inset 0 1px 1px rgba(255,255,255,0.08);
  animation: float-bob 6s var(--ease-in-out) infinite;
}
.phone::after {
  /* red glow pooling underneath, like it's hovering */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -46px;
  transform: translateX(-50%);
  width: 78%;
  height: 44px;
  background: radial-gradient(ellipse at center, var(--color-accent-glow), transparent 70%);
  filter: blur(14px);
  z-index: -1;
  animation: glow-breathe 6s var(--ease-in-out) infinite;
}
.phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 22px;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #0A0A0C;
  z-index: 2;
}
.phone__screen {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--color-surface);
  aspect-ratio: 9 / 19;
}
.phone__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.9;  transform: translateX(-50%) scale(1.12); }
}

/* Floating stat chips around the phone.
   The wrapper is sized to the phone (not the grid column) and centred, so the
   chips anchor to the device at every breakpoint instead of flying out to the
   column edges and being clipped by the body's overflow-x: hidden. */
.phone-wrap {
  position: relative;
  width: min(300px, 72vw);
  margin-inline: auto;
}
.chip-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: rgba(23, 23, 27, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-card);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.chip-float strong {
  font-family: var(--font-display);
  color: var(--color-accent-bright);
}
/* Chips overhang the device by a fixed 16px rather than hanging fully clear of
   it — a percentage or full-width offset runs them off-screen on narrow phones
   and in the 2-column layout at ~1024px. */
.chip-float--1 {
  top: 8%;
  left: calc(-1 * var(--space-4));
  animation: float-bob 7s var(--ease-in-out) infinite;
}
.chip-float--2 {
  bottom: 12%;
  right: calc(-1 * var(--space-4));
  animation: float-bob 5.5s var(--ease-in-out) 0.6s infinite;
}

@media (max-width: 600px) {
  .chip-float {
    padding: var(--space-2) var(--space-3);
    font-size: 11px;
  }
  .chip-float--1 { left: calc(-1 * var(--space-2)); }
  .chip-float--2 { right: calc(-1 * var(--space-2)); }
}

/* --------------------------------------------------------------------------
   8. Cards (generic neon-edge surface)
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.card:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.card h3 { margin-bottom: var(--space-3); }
.card p { color: var(--color-text-secondary); }

.card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-md);
  background: var(--color-accent-wash);
  border: 1px solid rgba(225, 6, 0, 0.25);
  color: var(--color-accent-bright);
}

.grid {
  display: grid;
  gap: var(--space-6);
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: repeat(2, 1fr); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------------------
   9. Game cards + grid
   -------------------------------------------------------------------------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
@media (min-width: 640px)  { .games-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
@media (min-width: 1024px) { .games-grid { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
@media (min-width: 1200px) { .games-grid--wide { grid-template-columns: repeat(5, 1fr); } }

.game-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-text-primary);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  color: var(--color-text-primary);
}
.game-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--color-surface-2);
}
.game-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}
.game-card:hover .game-card__media img { transform: scale(1.07); }
.game-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(10, 10, 12, 0.85) 100%);
  opacity: 0.9;
}
.game-card__tag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  padding: 4px var(--space-3);
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 12, 0.78);
  border: 1px solid var(--color-border-light);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.game-card__flag {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  padding: 4px var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.game-card__body {
  padding: var(--space-4);
}
.game-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-1);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.game-card__play {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}
.game-card:hover .game-card__play { opacity: 1; }
.game-card__play span {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-glow-strong);
  transform: scale(0.8);
  transition: transform var(--dur-base) var(--ease-out);
}
.game-card:hover .game-card__play span { transform: scale(1); }

/* Filter chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.chip {
  padding: var(--space-3) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.chip:hover {
  color: var(--color-text-primary);
  border-color: var(--color-border-light);
  transform: translateY(-1px);
}
.chip.is-active {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.chip__count {
  margin-left: var(--space-2);
  opacity: 0.6;
  font-size: 10px;
}

.search-bar {
  position: relative;
  margin-bottom: var(--space-6);
  max-width: 460px;
}
.search-bar input {
  width: 100%;
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-12);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.search-bar input::placeholder { color: var(--color-text-muted); }
.search-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}
.search-bar svg {
  position: absolute;
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.games-empty {
  display: none;
  padding: var(--space-16) var(--space-6);
  text-align: center;
  color: var(--color-text-secondary);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-lg);
}
.games-empty.is-visible { display: block; }

/* Game-detail gallery. main.js injects bare <img> tags here, so the images
   are styled by descendant selector rather than a class of their own. */
[data-g-gallery] img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: var(--color-surface-2);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
[data-g-gallery] img:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
@media (prefers-reduced-motion: reduce) {
  [data-g-gallery] img:hover { transform: none; }
}

/* --------------------------------------------------------------------------
   10. OG banner section
   -------------------------------------------------------------------------- */
.og-banner {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-20);
  background:
    linear-gradient(120deg, rgba(163, 4, 0, 0.5) 0%, rgba(10, 10, 12, 0.9) 55%, rgba(10, 10, 12, 1) 100%),
    var(--color-bg-alt);
  clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
  margin-block: -3vw;
}
.og-banner__inner {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  gap: var(--space-10);
  align-items: center;
  padding-block: 3vw;
}
@media (min-width: 900px) {
  .og-banner__inner { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
}
.og-banner__bonus {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  margin-block: var(--space-4) var(--space-5);
  background: linear-gradient(180deg, #fff 20%, var(--color-accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 24px var(--color-accent-glow));
}
.og-banner__media img {
  width: 100%;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-lg), 0 0 48px rgba(225, 6, 0, 0.2);
}
.og-banner ul {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.og-banner li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-text-secondary);
}
.og-banner li svg { color: var(--color-accent-bright); flex-shrink: 0; margin-top: 4px; }

/* --------------------------------------------------------------------------
   11. Screenshots carousel
   -------------------------------------------------------------------------- */
.shots {
  position: relative;
}
.shots__track {
  display: flex;
  gap: var(--space-6);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-block: var(--space-6) var(--space-8);
  padding-inline: var(--space-1);
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab;
}
.shots__track::-webkit-scrollbar { display: none; }
.shots__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}
.shot {
  flex: 0 0 auto;
  width: 200px;
  scroll-snap-align: center;
  padding: 8px;
  border-radius: 26px;
  background: linear-gradient(160deg, #26262C, #101013 60%);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
@media (min-width: 768px) { .shot { width: 240px; } }
.shot img {
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  border-radius: 20px;
  pointer-events: none;
}
.shot.is-active,
.shot:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.shot__caption {
  padding-top: var(--space-3);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.shots__nav {
  display: none;
  gap: var(--space-3);
  justify-content: center;
}
@media (min-width: 768px) { .shots__nav { display: flex; } }
.shots__btn {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.shots__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   12. Stats strip
   -------------------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: var(--space-8) var(--space-5);
  background: var(--color-surface);
  text-align: center;
  transition: background-color var(--dur-base) var(--ease-out);
}
.stat:hover { background: var(--color-surface-2); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, var(--fs-2xl));
  font-weight: 900;
  line-height: 1;
  color: var(--color-accent-bright);
  text-shadow: 0 0 24px var(--color-accent-glow);
}
.stat__label {
  margin-top: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   13. Steps / timeline
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps--4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .steps--3 { grid-template-columns: repeat(3, 1fr); } }

.step {
  position: relative;
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.step:hover {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}
.step__num {
  counter-increment: step;
  position: absolute;
  top: calc(var(--space-6) * -1);
  left: var(--space-6);
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dim));
  box-shadow: var(--shadow-glow);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 900;
  color: #fff;
}
.step__num::before { content: "0" counter(step); }
.step h3 { margin-top: var(--space-5); margin-bottom: var(--space-3); }
.step p { color: var(--color-text-secondary); font-size: var(--fs-sm); }

/* Vertical timeline (about page) */
.timeline {
  position: relative;
  display: grid;
  gap: var(--space-10);
  padding-left: var(--space-8);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-dim), transparent);
}
.timeline__item { position: relative; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: calc(var(--space-8) * -1);
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-accent), var(--shadow-glow);
}
.timeline__year {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-accent-bright);
  margin-bottom: var(--space-2);
}
.timeline__item h3 { margin-bottom: var(--space-3); }
.timeline__item p { color: var(--color-text-secondary); }

/* --------------------------------------------------------------------------
   14. Accordion / FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: var(--space-4);
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.faq-item.is-open {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  width: 100%;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-text-primary);
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item__q:hover { color: var(--color-accent-bright); }
.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 20px; height: 20px;
}
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item__icon::before { width: 14px; height: 2px; }
.faq-item__icon::after  { width: 2px; height: 14px; }
.faq-item.is-open .faq-item__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.faq-item__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.faq-item.is-open .faq-item__a { grid-template-rows: 1fr; }
.faq-item__a > div { overflow: hidden; }
.faq-item__a p {
  padding: 0 var(--space-6) var(--space-5);
  color: var(--color-text-secondary);
  font-size: var(--fs-sm);
  line-height: var(--lh-loose);
}
.faq-item__a p + p { padding-top: var(--space-3); }

/* --------------------------------------------------------------------------
   15. Prose (legal pages, long-form content)
   -------------------------------------------------------------------------- */
.prose {
  max-width: 76ch;
  color: var(--color-text-secondary);
}
.prose > * + * { margin-top: var(--space-5); }
.prose h2 {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xl);
  color: var(--color-text-primary);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.prose h3 {
  margin-top: var(--space-8);
  font-size: var(--fs-md);
  color: var(--color-text-primary);
}
.prose p { line-height: var(--lh-loose); }
.prose ul, .prose ol {
  display: grid;
  gap: var(--space-3);
  padding-left: var(--space-6);
}
.prose ul li {
  position: relative;
  padding-left: var(--space-5);
  line-height: var(--lh-base);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 6px; height: 6px;
  border-radius: 1px;
  background: var(--color-accent);
  transform: rotate(45deg);
}
.prose ol { list-style: decimal; }
.prose ol li { padding-left: var(--space-2); line-height: var(--lh-base); }
.prose ol li::marker { color: var(--color-accent); font-family: var(--font-display); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.prose th, .prose td {
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  text-align: left;
}
.prose th {
  background: var(--color-surface-2);
  color: var(--color-text-primary);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

/* Legal page meta / TOC */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-10);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.toc {
  padding: var(--space-6);
  margin-bottom: var(--space-12);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}
.toc h2 {
  margin: 0 0 var(--space-4) !important;
  padding: 0 !important;
  border: none !important;
  font-size: var(--fs-sm) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted) !important;
}
.toc ol {
  display: grid;
  gap: var(--space-2);
  padding-left: var(--space-5);
  list-style: decimal;
}
.toc a {
  color: var(--color-text-secondary);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.toc a:hover { color: var(--color-accent-bright); }

/* Callout box */
.callout {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.callout svg { flex-shrink: 0; color: var(--color-accent); margin-top: 3px; }
.callout p { color: var(--color-text-secondary); font-size: var(--fs-sm); }
.callout strong { color: var(--color-text-primary); }
.callout--warn { border-left-color: var(--color-warning); }
.callout--warn svg { color: var(--color-warning); }
.callout--ok { border-left-color: var(--color-success); }
.callout--ok svg { color: var(--color-success); }

/* --------------------------------------------------------------------------
   16. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-12));
  padding-bottom: var(--space-12);
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(225, 6, 0, 0.14), transparent 65%),
    var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
@media (min-width: 768px) {
  .page-hero {
    padding-top: calc(var(--header-h) + var(--space-16));
    padding-bottom: var(--space-16);
  }
}
.page-hero__inner { position: relative; z-index: var(--z-base); }
.page-hero h1 { margin-bottom: var(--space-5); }
.page-hero p {
  max-width: 68ch;
  font-size: var(--fs-md);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-accent-bright); }
.breadcrumb li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumb li:not(:last-child)::after {
  content: "/";
  color: var(--color-border-light);
}
.breadcrumb [aria-current="page"] { color: var(--color-text-secondary); }

/* --------------------------------------------------------------------------
   17. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.field { display: grid; gap: var(--space-2); }
.field label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-text-muted); }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
}
.field.has-error input,
.field.has-error textarea { border-color: var(--color-error); }
.field__error {
  display: none;
  font-size: var(--fs-xs);
  color: var(--color-error);
}
.field.has-error .field__error { display: block; }

.form__status {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
}
.form__status.is-visible { display: flex; }
.form__status.is-success {
  background: rgba(20, 214, 124, 0.1);
  border: 1px solid rgba(20, 214, 124, 0.3);
  color: var(--color-success);
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: var(--space-20);
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.footer__grid {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
}
@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-8); }
}

.footer__brand p {
  margin-top: var(--space-5);
  max-width: 42ch;
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-loose);
}
.footer__tg {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
  max-width: 260px;
}

.footer__col h3 {
  margin-bottom: var(--space-5);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.footer__col ul { display: grid; gap: var(--space-3); }
.footer__col a {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  transition: color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
}
.footer__col a:hover {
  color: var(--color-accent-bright);
  padding-left: var(--space-2);
}

.footer__legal {
  position: relative;
  z-index: var(--z-base);
  display: grid;
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.footer__legal p {
  font-size: var(--fs-xs);
  line-height: var(--lh-base);
  color: var(--color-text-muted);
}
.footer__legal strong { color: var(--color-text-secondary); }

/* Legal disclosure blocks (affiliate, age, regional, risk, trademarks).
   The affiliate disclaimer is the primary one and gets the accent rule. */
.disclosure {
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}
.disclosure--primary {
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg);
}
.disclosure h3 {
  margin-bottom: var(--space-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.disclosure--primary h3 { color: var(--color-accent-bright); }
.disclosure p + p { margin-top: var(--space-3); }
.disclosure a { color: var(--color-text-secondary); text-decoration: underline; text-underline-offset: 2px; }
.disclosure a:hover { color: var(--color-accent-bright); }

.disclosure-grid {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 900px) {
  .disclosure-grid { grid-template-columns: repeat(2, 1fr); }
}

.footer__socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.social-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all var(--dur-fast) var(--ease-out);
}
.social-btn:hover {
  color: var(--color-text-primary);
  border-color: var(--color-accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.footer__bottom nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
}
.footer__bottom a { color: var(--color-text-muted); }
.footer__bottom a:hover { color: var(--color-accent-bright); }

.age-badge {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  border: 2px solid var(--color-accent);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  color: var(--color-accent-bright);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   19. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-20);
  text-align: center;
  background:
    radial-gradient(700px 300px at 50% 100%, rgba(225, 6, 0, 0.2), transparent 70%),
    var(--color-surface);
  border-block: 1px solid var(--color-border);
}
.cta-band__inner { position: relative; z-index: var(--z-base); }
.cta-band h2 { margin-bottom: var(--space-5); }
.cta-band p {
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  color: var(--color-text-secondary);
  font-size: var(--fs-md);
}
.cta-band__note {
  margin-top: var(--space-6) !important;
  margin-bottom: 0 !important;
  font-size: var(--fs-xs) !important;
  color: var(--color-text-muted) !important;
}

/* --------------------------------------------------------------------------
   20. Responsible gaming block
   -------------------------------------------------------------------------- */
.responsible {
  display: grid;
  gap: var(--space-8);
  padding: var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
}
@media (min-width: 900px) {
  .responsible { grid-template-columns: 1fr 1fr; gap: var(--space-12); padding: var(--space-12); }
}
.responsible h3 { margin-bottom: var(--space-4); }
.responsible ul { display: grid; gap: var(--space-4); }
.responsible li {
  display: flex;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  line-height: var(--lh-base);
}
.responsible li svg { flex-shrink: 0; color: var(--color-accent); margin-top: 3px; }
.helpline {
  margin-top: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
}
.helpline__num {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--color-accent-bright);
}

/* --------------------------------------------------------------------------
   21. Feature list (two-col text + checks)
   -------------------------------------------------------------------------- */
.feature-list { display: grid; gap: var(--space-5); }
.feature-list li {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.feature-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-accent-bright);
}
.feature-list strong {
  display: block;
  margin-bottom: var(--space-1);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  letter-spacing: 0.02em;
}
.feature-list p { font-size: var(--fs-sm); color: var(--color-text-secondary); }

.split {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-16); }
  .split--reverse > *:first-child { order: 2; }
}
.split__media img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card-lg);
}

/* --------------------------------------------------------------------------
   22. Testimonials
   -------------------------------------------------------------------------- */
.quote {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
}
.quote__stars { display: flex; gap: 2px; color: var(--color-warning); }
.quote p { flex: 1; color: var(--color-text-secondary); font-size: var(--fs-sm); line-height: var(--lh-loose); }
.quote__who {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}
.quote__avatar {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-dim));
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: #fff;
  flex-shrink: 0;
}
.quote__name { font-size: var(--fs-sm); font-weight: 600; }
.quote__loc { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* --------------------------------------------------------------------------
   23. Sticky CTA (game detail / download)
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--container-pad);
  background: rgba(10, 10, 12, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  transform: translateY(110%);
  transition: transform var(--dur-base) var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__meta { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.sticky-cta__meta img {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: cover;
  flex-shrink: 0;
}
.sticky-cta__title {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sticky-cta__sub { font-size: var(--fs-xs); color: var(--color-text-muted); }
@media (max-width: 520px) {
  .sticky-cta__sub { display: none; }
  .sticky-cta .btn { padding-inline: var(--space-5); }
}

/* --------------------------------------------------------------------------
   24. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-accent { color: var(--color-accent-bright); }
.text-muted  { color: var(--color-text-muted); }
.mt-0  { margin-top: 0; }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  border: none;
  margin-block: var(--space-12);
}

/* --------------------------------------------------------------------------
   25. Scroll reveal
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
  will-change: opacity, transform;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   26. Reduced motion — kill everything non-essential
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .bg-hex { animation: none; }
  .embers { display: none; }
  .phone, .phone::after, .chip-float { animation: none; }
  .btn--primary { animation: none; }
  .game-card:hover { transform: none; }
  .game-card:hover .game-card__media img { transform: none; }
  .shots__track { scroll-behavior: auto; }
}
