/* =============================================================
   Winita — Winnita-style design system
   Light bed, blue diagonal hero, green primary / red secondary
   ============================================================= */

/* Self-hosted variable fonts (latin subset) — заменяют render-blocking Google Fonts */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/shared/fonts/manrope-var.woff2") format("woff2-variations"),
       url("/shared/fonts/manrope-var.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/shared/fonts/dm-sans-var.woff2") format("woff2-variations"),
       url("/shared/fonts/dm-sans-var.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/shared/fonts/jetbrains-mono-var.woff2") format("woff2-variations"),
       url("/shared/fonts/jetbrains-mono-var.woff2") format("woff2");
}

:root {
  /* surfaces */
  --bg:           #ffffff;
  --bg-2:         #f7f8fb;
  --surface:      #ffffff;
  --surface-2:    #f4f6fb;
  --surface-3:    #eef2fa;
  --hairline:     #e6e9f2;
  --hairline-2:   #dce0ee;
  --hairline-3:   #c4cce0;

  /* brand */
  --accent:       #177a2f;          /* Winnita green — затемнено для WCAG AA на белом (4.74:1) */
  --accent-2:     #106b2a;          /* darker variant for hover/borders */
  --accent-glow:  rgba(23, 122, 47, 0.28);
  --red:          #c10b28;          /* Winnita red */
  --red-2:        #a30822;
  --hero-blue:    #1f3189;
  --hero-blue-2:  #173a86;
  --hero-blue-3:  #0a5ac9;
  --light-blue:   #3dd0fe;
  --light-blue-2: #85afe8;
  --gold:         #f4cc3d;
  --gold-2:       #e8a82e;

  /* ink */
  --ink:          #15171f;
  --ink-2:        #2a2e3a;
  --ink-3:        #525a6b;
  --ink-4:        #5B6478;          /* WCAG AA on white (4.6:1) */
  --ink-5:        #8b94a8;

  /* density */
  --gap:          16px;
  --gap-lg:       24px;
  --gap-xl:       40px;
  --gap-2xl:      72px;
  --radius:       8px;
  --radius-lg:    14px;
  --radius-xl:    22px;
  --radius-pill:  999px;

  /* type */
  --f-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* shadows */
  --shadow-card: 0 1px 0 rgba(20, 23, 31, 0.04), 0 12px 32px -16px rgba(20, 23, 31, 0.12);
  --shadow-hero: 0 24px 56px -24px rgba(31, 49, 137, 0.32);
  --shadow-cta:  0 8px 20px -6px var(--accent-glow);
}

.density-compact  { --gap: 12px; --gap-lg: 18px; --gap-xl: 28px; }
.density-spacious { --gap: 20px; --gap-lg: 32px; --gap-xl: 56px; --gap-2xl: 96px; }

/* dark mode override (Tweak) */
.theme-dark {
  --bg:           #0d0e15;
  --bg-2:         #11131c;
  --surface:      #15171f;
  --surface-2:    #1a1d28;
  --surface-3:    #21253a;
  --hairline:     rgba(255, 255, 255, 0.08);
  --hairline-2:   rgba(255, 255, 255, 0.12);
  --hairline-3:   rgba(255, 255, 255, 0.2);
  --ink:          #ffffff;
  --ink-2:        #e6e8f0;
  --ink-3:        #b8bdc8;
  --ink-4:        #8b94a8;
  --ink-5:        #565b6b;
  --shadow-card:  0 1px 0 rgba(0,0,0,0.3), 0 12px 32px -12px rgba(0,0,0,0.4);
}

/* =============================================================
   reset + base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 178px; }
body {
  background: var(--bg);
  color: var(--ink-2);
  font: 16px/1.55 var(--f-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* skip-link — first focusable element, hidden until focused */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  background: var(--hero-blue);
  color: #fff;
  z-index: 200;
}
.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  white-space: normal;
  font: 600 14px/1 var(--f-sans);
  border-radius: 0 0 8px 0;
  outline: 2px solid var(--hero-blue-3);
  outline-offset: 2px;
}

/* global :focus-visible — visible keyboard focus without :focus noise for mouse */
:focus-visible {
  outline: 2px solid var(--hero-blue-3);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(10, 90, 201, 0.25);
}
:focus:not(:focus-visible) { outline: none; }

/* sr-only — visually hidden, available to screen-readers */
.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;
}

/* honor reduced-motion globally */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

/* =============================================================
   page shell + container
   ============================================================= */
.page,
.page-md { max-width: 1280px; margin: 0 auto; padding: 40px 24px 64px; }

.stack    { display: grid; gap: var(--gap); min-width: 0; }
.stack-lg { display: grid; gap: var(--gap-lg); min-width: 0; }
.stack-xl { display: grid; gap: var(--gap-xl); min-width: 0; }

.row { display: flex; gap: var(--gap); align-items: center; }
.row-wrap { flex-wrap: wrap; }
.row-between { justify-content: space-between; }
.row-end { justify-content: flex-end; }

/* =============================================================
   header — Winnita-style: white, logo left, CTAs right, full-width nav bar below
   ============================================================= */
.mh {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.mh-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.mh-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-height: 44px;          /* WCAG 2.5.5 tap target */
}
.mh-logo-mark {
  width: 36px; height: 36px;
  display: block;
  position: relative;
}
.mh-logo-mark i {
  position: absolute;
  display: block;
  transform: skewX(-12deg);
  border-radius: 1px;
}
.mh-logo-mark .mark-green {
  width: 16px; height: 20px;
  top: 0;
  left: 18px;
  background: #37d45c;
}
.mh-logo-mark .mark-blue {
  width: 18px; height: 15px;
  top: 13px;
  left: 5px;
  background: #1267d8;
  z-index: 2;
}
.mh-logo-mark .mark-red {
  width: 15px; height: 19px;
  top: 18px;
  left: 15px;
  background: #ff4b54;
}
.mh-logo-text {
  display: grid;
  line-height: 1;
}
.mh-logo-text .a {
  font: 800 22px/1 var(--f-sans);
  letter-spacing: -0.02em;
  color: var(--hero-blue);
  font-style: italic;
}
.mh-logo-text .b {
  font: 600 8px/1 var(--f-mono);
  letter-spacing: 0.18em;
  color: var(--ink-4);
  text-transform: uppercase;
  margin-top: 4px;
}

.mh-actions { display: inline-flex; gap: 10px; align-items: center; }
.mh-actions .oppure { font: 500 12px/1 var(--f-body); color: var(--ink-4); margin: 0 6px; }
.mh-actions .socials { display: inline-flex; gap: 6px; }
.mh-actions .socials .s {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--surface-2);
  display: grid; place-items: center;
  font: 700 11px/1 var(--f-mono);
  color: var(--ink-3);
  cursor: pointer;
  border: 1px solid var(--hairline);
}
.mh-actions .socials .s:hover { background: var(--surface-3); color: var(--ink); }

/* category nav bar (under top header) */
.mh-cats {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}
.mh-cats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mh-cats-inner::-webkit-scrollbar { display: none; }
.mh-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  font: 700 13px/1 var(--f-sans);
  color: var(--ink-3);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.mh-cats a:hover { color: var(--ink); }
.mh-cats a.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.mh-cats .lang-pill { margin-left: auto; }

/* =============================================================
   buttons — Winnita style
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font: 700 13px/1 var(--f-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  transition: transform .12s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.btn-cta:hover { background: var(--accent-2); transform: translateY(-1px); }

.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(193, 11, 40, 0.36);
}
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--hairline-2);
}
.btn-outline:hover { background: var(--surface-2); border-color: var(--ink-3); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--surface-3); color: var(--ink); }

.btn-lg { height: 56px; padding: 0 36px; font-size: 14px; }
.btn-xl { height: 64px; padding: 0 44px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 11px; }

.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); filter: brightness(0.92); }
.btn:active .arrow { transform: translateX(1px); }

/* Visible byline pod H1 — E-E-A-T trust signal */
.byline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 500 12px/1.3 var(--f-body);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.byline strong { color: #fff; font-weight: 700; }
.byline .byline-rating {
  color: #ffffff;
  background: rgba(61, 208, 254, 0.22);
  border: 1px solid rgba(61, 208, 254, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--f-mono);
  font-size: 11px;
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  font: 700 11px/1 var(--f-mono);
  letter-spacing: 0.04em;
  color: var(--ink-2);
  cursor: pointer;
}
.lang-pill:hover { background: var(--surface-2); }
.lang-pill .flag {
  width: 16px; height: 12px;
  border-radius: 2px;
  background: linear-gradient(to right, #008c45 33%, #f4f5f0 33% 67%, #cd212a 67%);
}

/* =============================================================
   layout — cards
   ============================================================= */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.density-compact .card { padding: 24px 28px; }
.density-spacious .card { padding: 44px 52px; }

.card-flat {
  background: var(--surface-2);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}

/* =============================================================
   typography
   ============================================================= */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--f-sans); letter-spacing: -0.01em; }

.eyebrow {
  font: 700 11px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.h-display { font: 800 56px/1.04 var(--f-sans); letter-spacing: -0.02em; }
.h-1       { font: 800 32px/1.1 var(--f-sans); letter-spacing: -0.015em; }

/* Section heading above lobby preview — фиксит SEO H1→H3 skip на главной */
.lobby-heading {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.15;
}
.h-2       { font: 800 24px/1.18 var(--f-sans); }
.h-3       { font: 700 18px/1.3 var(--f-sans); }
.h-sec     { font: 800 22px/1.2 var(--f-sans); margin-bottom: 14px; }

p, .p { font: 400 15px/1.65 var(--f-body); color: var(--ink-3); margin: 0; text-wrap: pretty; }
p + p { margin-top: 12px; }
p strong, .p strong { color: var(--ink); font-weight: 600; }
p a, .p a { color: var(--accent-2); border-bottom: 1px dotted var(--accent); }

.muted { color: var(--ink-4); }

.mono-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 11px/1 var(--f-mono);
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}

/* =============================================================
   HERO — diagonal blue card, decoration + 3D amount + slot
   ============================================================= */
.hero {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(110deg, var(--hero-blue) 0%, var(--hero-blue-3) 55%, var(--hero-blue-2) 100%);
  color: #fff;
  isolation: isolate;
  box-shadow: var(--shadow-hero);
}
.hero::before {
  /* radial glows */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 40%, rgba(244, 204, 61, 0.22), transparent 45%),
    radial-gradient(circle at 30% 80%, rgba(61, 208, 254, 0.2), transparent 50%);
  z-index: 0;
}
.hero::after {
  /* diagonal parallelogram pattern */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 60%, rgba(61, 208, 254, 0.12) 60% 64%, transparent 64%),
    linear-gradient(110deg, transparent 75%, rgba(255, 255, 255, 0.04) 75% 78%, transparent 78%);
  background-size: 120px 100%, 80px 100%;
  z-index: 0;
  opacity: 0.8;
}

/* confetti — subtle scatter */
.hero-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-confetti::before,
.hero-confetti::after {
  content: "";
  position: absolute;
  width: 14px; height: 10px;
  border-radius: 3px;
  transform: rotate(-20deg);
}
.hero-confetti::before {
  top: 18%; left: 58%;
  background: rgba(244, 204, 61, 0.22);
  box-shadow:
    -120px 220px 0 0 rgba(57, 204, 89, 0.18),
    -260px 60px 0 0 rgba(193, 11, 40, 0.14),
    220px 30px 0 0 rgba(244, 204, 61, 0.15),
    180px 260px 0 0 rgba(61, 208, 254, 0.16);
}
.hero-confetti::after {
  top: 12%; left: 88%;
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transform: none;
  box-shadow:
    -340px -10px 0 -2px rgba(255, 255, 255, 0.5),
    -180px 240px 0 -2px rgba(244, 204, 61, 0.55);
}

/* floating golden coins (circle gradients) */
.hero-coins {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.coin {
  position: absolute;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 28%, #fff7c4 0%, #f4cc3d 24%, #c8870e 75%, #7a4d00 100%);
  box-shadow:
    inset 0 -3px 8px rgba(0, 0, 0, 0.35),
    inset 0 2px 4px rgba(255, 255, 255, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 235, 150, 0.6);
}
.coin::after {
  content: "€";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 14px/1 var(--f-sans);
  color: #7a4d00;
  text-shadow: 0 1px 0 rgba(255, 235, 150, 0.6);
}
.coin.lg { width: 64px; height: 64px; }
.coin.lg::after { font-size: 26px; }
.coin.md { width: 44px; height: 44px; }
.coin.md::after { font-size: 18px; }
.coin.sm { width: 24px; height: 24px; }
.coin.sm::after { font-size: 11px; }
.coin.flat::after { display: none; }
.coin.spin {
  animation: coin-spin 4s ease-in-out infinite;
}
@keyframes coin-spin {
  0%, 100% { transform: rotateY(0deg); }
  50% { transform: rotateY(180deg) scaleX(0.9); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  align-items: stretch;
  min-height: 380px;
  min-width: 0;
}
.hero-copy {
  padding: 56px 56px;
  display: grid;
  align-content: center;
  gap: 18px;
}
.hero-eyebrow {
  font: 700 12px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
}
.hero h1 {
  font: 800 42px/1.05 var(--f-sans);
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.hero h1 .amount {
  color: var(--gold);
  text-shadow: 0 2px 0 var(--gold-2), 0 6px 20px rgba(244, 204, 61, 0.4);
}
.hero .lede { font: 400 16px/1.6 var(--f-body); color: rgba(255, 255, 255, 0.86); max-width: 480px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.hero-art {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  isolation: isolate;
}
.hero-amount-3d {
  flex-shrink: 0;
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 3;
  pointer-events: none;
  padding: 28px 16px 0;
}
.hero-amount-3d .big {
  font: 900 60px/0.9 var(--f-sans);
  color: var(--gold);
  letter-spacing: -0.03em;
  text-shadow:
    0 1px 0 #fff,
    0 3px 0 var(--gold-2),
    0 6px 0 #b88a14,
    0 10px 22px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
}
.hero-amount-3d .sub {
  font: 800 26px/1 var(--f-sans);
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 0 #555,
    0 4px 8px rgba(0, 0, 0, 0.3);
  transform: rotate(-2deg);
  margin-top: 6px;
}
.hero-amount-3d::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 340px; height: 340px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(244, 204, 61, 0.45) 0%, rgba(244, 204, 61, 0.15) 30%, transparent 60%);
  z-index: -1;
}
.hero-mascot {
  display: block;
  width: auto;
  height: auto;
  flex: 1;
  min-height: 0;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
  position: relative;
  z-index: 2;
}
.hero-costume-art {
  position: absolute;
  right: -74px;
  bottom: -24px;
  width: min(560px, 56vw);
  height: calc(100% + 64px);
  max-width: none;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0.96;
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.32)) saturate(1.05);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 24%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 0%, #000 24%, #000 100%),
    linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  mask-composite: intersect;
}
.hero-dots {
  position: absolute;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}
.hero-dots i {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
}
.hero-dots i.is-active { background: #fff; width: 24px; border-radius: 999px; }

/* alt hero — compact, used on sub-pages */
.hero.variant-compact .hero-grid { min-height: 280px; grid-template-columns: 1fr 1fr; }
.hero.variant-compact .hero-copy { padding: 40px 48px; }
.hero.variant-compact h1 { font-size: 32px; }
.hero.variant-compact .hero-amount-3d .big { font-size: 64px; }
.hero.variant-compact .hero-amount-3d .sub { font-size: 28px; }

.hero.variant-centered .hero-grid { grid-template-columns: 1fr; }
.hero.variant-centered .hero-copy { text-align: center; align-items: center; padding: 56px 32px; }
.hero.variant-centered .hero-ctas { justify-content: center; }
.hero.variant-centered .hero-art { display: none; }
.hero.variant-centered .lede { margin: 0 auto; }

/* =============================================================
   sidebar promo cards (right rail)
   ============================================================= */
.lobby {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
  min-width: 0;
}
.lobby-aside { display: grid; gap: 16px; align-self: start; min-width: 0; }

.promo-card {
  background: var(--hero-blue);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-hero);
}
.promo-card.purple { background: linear-gradient(160deg, #2a4ca8, #1a2b6e); }
.promo-card.dark   { background: linear-gradient(160deg, #1a3271, #0f1f48); }

.promo-card h3,
.promo-card h4 {
  font: 800 20px/1.15 var(--f-sans);
  letter-spacing: -0.005em;
  color: #fff;
  text-transform: none;
  margin: 0 0 16px;
}
.promo-card h4 {
  font: 800 14px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.promo-card .promo-art {
  height: 140px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 60% 50%, rgba(61, 208, 254, 0.3), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 8px, rgba(255,255,255,0.06) 8px 9px);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  font: 600 10px/1.4 var(--f-mono);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.promo-card .promo-tag {
  font: 600 12px/1 var(--f-body);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}
.promo-card .promo-amount {
  font: 800 28px/1 var(--f-sans);
  color: #3dd0fe;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.promo-card .promo-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font: 400 12px/1.3 var(--f-body);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.promo-card .promo-row:first-of-type { border-top: 0; }
.promo-card .promo-row strong { color: #fff; font: 700 13px/1 var(--f-mono); }
.promo-card .timer {
  font: 800 22px/1 var(--f-mono);
  color: #3dd0fe;
  letter-spacing: 0.06em;
}
.promo-card .promo-cta {
  display: flex;
  width: 100%;
  text-align: center;
  margin-top: 16px;
  height: 44px;
  padding: 0 16px;
}
.promo-card .more {
  display: block;
  margin-top: 12px;
  text-align: center;
  font: 500 12px/1 var(--f-body);
  color: rgba(255, 255, 255, 0.6);
  text-decoration: underline;
}

/* =============================================================
   game lobby — category tabs + game grid
   ============================================================= */
.lobby-tabs {
  display: flex;
  gap: 4px;
  align-items: center;
  border-bottom: 2px solid var(--hairline);
  margin-bottom: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lobby-tabs::-webkit-scrollbar { display: none; }
.lobby-tabs button,
.lobby-tabs .lobby-tab-link {
  background: transparent;
  border: 0;
  padding: 14px 18px;
  margin-bottom: -2px;
  font: 700 13px/1 var(--f-sans);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;          /* WCAG 2.5.5 tap target */
}
.lobby-tabs button:hover,
.lobby-tabs .lobby-tab-link:hover { color: var(--ink); }
.lobby-tabs button.is-active,
.lobby-tabs .lobby-tab-link.is-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.lobby-tabs .more {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lobby-search {
  position: relative;
  flex: 0 1 280px;
  margin-left: 16px;
}
.lobby-search input {
  width: 100%;
  height: 40px;
  padding: 0 16px 0 40px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  background: var(--surface-2);
  font: 500 13px/1 var(--f-body);
  color: var(--ink);
  outline: none;
}
.lobby-search input:focus { border-color: var(--accent); background: var(--surface); }
.lobby-search::before {
  content: "🔍";
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.5;
}

.lobby-sub {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font: 600 12px/1 var(--f-body);
  color: var(--ink-3);
}
.lobby-sub .lobby-meta { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); }
.lobby-sub .lobby-meta-link { color: var(--accent); text-decoration: none; }
.lobby-sub .lobby-meta-link:hover { text-decoration: underline; }

/* =============================================================
   game tiles — Winnita-style colorful thumbs
   ============================================================= */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}
.game-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.game-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.game-tile {
  display: grid;
  gap: 8px;
  text-align: center;
}
.game-thumb {
  aspect-ratio: 400 / 254;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: block;
  background: var(--surface-2);
  transition: transform .15s, box-shadow .15s;
}
.game-thumb image-slot,
.game-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.game-thumb .badge {
  position: absolute;
  top: 8px; left: 8px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font: 800 9px/1 var(--f-mono);
  padding: 5px 7px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.game-thumb .badge.hot   { background: #c2401c; }
.game-thumb .badge.new   { background: var(--hero-blue-3); }
.game-thumb .badge.live  { background: var(--red); }
.game-thumb .badge.top   { background: var(--gold); color: #2a1f00; }
.game-thumb::before,
.game-thumb::after { display: none; }
.game-tile:hover .game-thumb {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -8px rgba(31, 49, 137, 0.35);
}
.game-tile .name { font: 700 14px/1.2 var(--f-sans); color: var(--ink); padding: 0 4px; }
.game-tile .play-row {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  font: 600 11px/1 var(--f-mono);
  letter-spacing: 0.06em;
  color: var(--ink-4);
  text-transform: uppercase;
}
.game-tile .play-row .provider { color: var(--ink-3); }
.game-tile .play-row span:not(:first-child)::before {
  content: "·";
  margin: 0 6px;
  color: var(--ink-5);
}

/* inline bonus banner inside grid (Winnita style) */
.inline-bonus {
  background: var(--bg);
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  margin: 20px 0;
}
.inline-bonus h4 {
  font: 800 13px/1 var(--f-mono);
  letter-spacing: 0.12em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.inline-bonus .amount {
  font: 800 18px/1 var(--f-sans);
  color: var(--accent);
}
.inline-bonus .ill {
  width: 120px;
  height: 80px;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--surface-3) 8px 9px);
  border: 1px dashed var(--hairline-3);
  display: grid;
  place-items: center;
  font: 600 9px/1.3 var(--f-mono);
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 6px;
}

/* =============================================================
   numbered step list
   ============================================================= */
.steps { display: grid; gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 20px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font: 400 14px/1.55 var(--f-body);
  color: var(--ink-2);
}
.steps li .num {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 800 12px/1 var(--f-mono);
  margin-top: 1px;
}
.steps.dotted li .num {
  background: transparent;
  border: 2px solid var(--accent);
  width: 12px; height: 12px;
  margin: 7px 0 0 5px;
}
.steps li strong { color: var(--ink); font-weight: 700; }

/* =============================================================
   pros / cons
   ============================================================= */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.proscons-col { }
.proscons-col + .proscons-col { border-left: 1px solid var(--hairline); }
.proscons-col h3,
.proscons-col h4 {
  margin: 0;
  padding: 14px 22px;
  font: 800 11px/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.proscons-col.pros h3,
.proscons-col.pros h4 { background: var(--accent); }
.proscons-col.cons h3,
.proscons-col.cons h4 { background: var(--red); }
.proscons-col ul { margin: 0; padding: 0; list-style: none; }
.proscons-col li {
  padding: 14px 22px 14px 44px;
  position: relative;
  border-bottom: 1px solid var(--hairline);
  font: 400 13px/1.55 var(--f-body);
  color: var(--ink-2);
}
.proscons-col li:last-child { border-bottom: 0; }
.proscons-col li::before {
  content: "";
  position: absolute;
  left: 22px; top: 20px;
  width: 10px; height: 10px;
  border-radius: 999px;
}
.proscons-col.pros li::before { background: var(--accent); }
.proscons-col.cons li::before { background: var(--red); }

/* =============================================================
   table
   ============================================================= */
.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font: 400 14px/1.5 var(--f-body);
  color: var(--ink-2);
  background: var(--surface);
}
.tbl th {
  background: var(--hero-blue);
  color: #fff;
  font: 800 11px/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 18px;
  text-align: left;
}
.tbl td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:nth-child(even) td { background: var(--surface-2); }
.tbl tr:hover td { background: var(--surface-3); }
.tbl .key { width: 38%; color: var(--ink-4); font-weight: 500; }
.tbl .num-cell { font-family: var(--f-mono); color: var(--accent-2); font-weight: 700; }
.tbl .game-cell { color: var(--ink); font-weight: 700; }

.tbl-wrap {
  border-radius: var(--radius-lg);
  overflow-x: auto;
  overflow-y: clip;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
}
.tbl-wrap table { min-width: 480px; }

/* =============================================================
   FAQ accordion
   ============================================================= */
.faq { display: grid; gap: 8px; }
.faq-row {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.faq-row:hover { border-color: var(--hairline-3); }
.faq-row[open] { border-color: var(--accent); box-shadow: 0 4px 12px -4px rgba(57, 204, 89, 0.18); }
.faq-row summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  font: 700 15px/1.4 var(--f-sans);
  color: var(--ink);
  user-select: none;
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row .chev {
  width: 16px; height: 16px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .2s;
}
.faq-row[open] .chev {
  transform: rotate(-135deg) translate(-2px, -2px);
}
.faq-row .ans {
  padding: 0 22px 20px;
  font: 400 14px/1.65 var(--f-body);
  color: var(--ink-3);
}

/* =============================================================
   testimonial cards
   ============================================================= */
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.testi {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.testi:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow-card); }
.testi-head {
  padding: 12px 20px;
  background: var(--surface-2);
  font: 800 12px/1 var(--f-mono);
  letter-spacing: 0.08em;
  color: var(--ink);
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--hairline);
}
.testi-head .country { color: var(--accent-2); font-weight: 700; font-size: 10px; }
.testi-body { padding: 18px 20px 22px; font: 400 14px/1.55 var(--f-body); color: var(--ink-3); }
.testi-body::before { content: "“"; font: 800 32px/0.6 var(--f-sans); color: var(--accent); margin-right: 4px; vertical-align: -10px; }

/* =============================================================
   bonus banner (full-width sections)
   ============================================================= */
.bonus-banner {
  background: linear-gradient(110deg, var(--hero-blue) 0%, var(--hero-blue-3) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 36px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  position: relative;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-hero);
}
.bonus-banner::before {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 204, 61, 0.18), transparent 60%);
}
.bonus-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 70%, rgba(61, 208, 254, 0.15) 70% 73%, transparent 73%);
  background-size: 60px 100%;
  opacity: 0.5;
}
.bonus-banner > * { position: relative; z-index: 1; }
.bonus-banner h3 { font: 800 20px/1.2 var(--f-sans); color: #fff; margin: 0 0 6px; }
.bonus-banner .amount {
  font: 800 28px/1.05 var(--f-sans);
  color: var(--gold);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-shadow: 0 1px 0 var(--gold-2), 0 4px 12px rgba(244, 204, 61, 0.4);
}
.bonus-banner .sub { font: 500 12px/1.4 var(--f-mono); color: rgba(255,255,255,0.78); letter-spacing: 0.08em; text-transform: uppercase; }

/* =============================================================
   image slot (Winnita screenshot / mascot placeholder)
   ============================================================= */
.img-slot {
  position: relative;
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, var(--surface-2) 0 12px, var(--surface-3) 12px 13px);
  border: 1px dashed var(--hairline-3);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}
.img-slot .label {
  font: 600 10px/1.4 var(--f-mono);
  letter-spacing: 0.16em;
  color: var(--ink-4);
  text-transform: uppercase;
  display: grid;
  gap: 4px;
}
.img-slot .label small { font-size: 9px; letter-spacing: 0.08em; opacity: 0.8; color: var(--ink-5); }

/* =============================================================
   ratings
   ============================================================= */
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 14px/1 var(--f-mono);
  color: var(--accent-2);
}
.score-pill::before {
  content: "★";
  color: var(--gold-2);
  font-size: 14px;
}

/* =============================================================
   footer
   ============================================================= */
.mf {
  background: var(--surface-2);
  margin-top: 64px;
  border-top: 1px solid var(--hairline);
}
.mf-inner { max-width: 1280px; margin: 0 auto; padding: 40px 24px 28px; }

.crypto-ticker {
  display: flex;
  gap: 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 28px;
  overflow-x: auto;
  font: 600 12px/1 var(--f-mono);
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.crypto-ticker span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.crypto-ticker .ticker-symbol { color: var(--accent-2); font-weight: 800; }
.crypto-ticker .ticker-price { color: var(--ink); }

.locale-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.locale-pill {
  padding: 8px 16px;
  background: var(--surface);
  border-radius: 6px;
  font: 700 11px/1 var(--f-mono);
  color: var(--ink-3);
  letter-spacing: 0.08em;
  border: 1px solid var(--hairline);
  cursor: pointer;
}
.locale-pill:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.mf-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}
.mf-cols h5 {
  margin: 0 0 14px;
  font: 800 13px/1.2 var(--f-sans);
  color: var(--ink);
}
.mf-cols a {
  display: block;
  color: var(--ink-3);
  font: 500 13px/2 var(--f-body);
}
.mf-cols a:hover { color: var(--accent-2); }

.age-tag {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 24px;
  background: var(--red);
  color: #fff;
  border-radius: 999px;
  font: 800 11px/1 var(--f-mono);
  margin-top: 12px;
}

.mf-copy {
  border-top: 1px solid var(--hairline);
  padding-top: 18px;
  font: 400 11px/1.55 var(--f-body);
  color: var(--ink-4);
}

.mf-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border-radius: 6px;
  font: 700 12px/1 var(--f-mono);
  color: var(--ink);
  border: 1px solid var(--hairline);
  margin-top: 8px;
}

/* =============================================================
   alt direction — sticky sidebar
   ============================================================= */
.alt-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.alt-main { display: grid; gap: 18px; min-width: 0; }
.alt-aside { display: grid; gap: 16px; position: sticky; top: 116px; }

/* editorial alternatives page */
.alt-article-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.alt-article-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  margin-bottom: 28px;
  padding: 54px 56px;
  min-height: 0;
  overflow: hidden;
  position: relative;
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 18%, rgba(64, 158, 255, 0.42), transparent 28%),
    linear-gradient(135deg, var(--hero-blue-2), var(--hero-blue) 58%, var(--hero-blue-3));
  box-shadow: var(--shadow-hero);
}
.alt-article-hero h1 {
  font: 800 46px/1.05 var(--f-sans);
  color: #fff;
  letter-spacing: -0.015em;
  max-width: 900px;
  margin: 14px 0 16px;
}
.alt-article-hero p {
  font: 400 18px/1.65 var(--f-body);
  color: rgba(255, 255, 255, 0.84);
  max-width: 760px;
}
.alt-article-hero .mono-eyebrow {
  color: rgba(255, 255, 255, 0.82);
}
.alt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.78);
  font: 600 12px/1 var(--f-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alt-meta span {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
}
.alt-hero-panel {
  display: none;
}
.alt-hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}
.alt-chicken-panel {
  background: transparent;
}
.alt-chicken-panel::before {
  content: none;
  position: absolute;
  inset: auto -28px -48px auto;
  width: 210px;
  height: 210px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(57, 204, 89, 0.32), rgba(57, 204, 89, 0.08) 46%, transparent 68%);
}
.alt-chicken-panel::after {
  content: none;
  position: absolute;
  left: -46px;
  bottom: 28px;
  width: 124px;
  height: 124px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 32%, #fff 0 10%, transparent 11%),
    radial-gradient(circle, rgba(244, 204, 61, 0.95), rgba(210, 154, 10, 0.95));
  box-shadow: inset 0 0 0 5px rgba(255,255,255,0.36), 0 18px 28px rgba(0,0,0,0.2);
}
.alt-chicken-panel img {
  position: absolute;
  right: 8px;
  bottom: 0;
  z-index: 2;
  width: min(320px, 94%);
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 1;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.28)) saturate(1.04);
  -webkit-mask-image:
    radial-gradient(ellipse 68% 78% at 62% 56%, #000 0 56%, rgba(0,0,0,0.88) 64%, transparent 82%);
  mask-image:
    radial-gradient(ellipse 68% 78% at 62% 56%, #000 0 56%, rgba(0,0,0,0.88) 64%, transparent 82%);
}
.alt-chicken-panel .alt-egg,
.alt-chicken-panel .alt-coin {
  display: none !important;
}
.alt-egg,
.alt-coin {
  position: absolute;
  z-index: 1;
  display: grid;
  place-items: center;
}
.alt-egg {
  width: 58px;
  height: 76px;
  border-radius: 50% 50% 44% 44%;
  background: radial-gradient(circle at 35% 28%, #fff, #ffe39a 58%, #e6a71f);
  box-shadow: inset -8px -12px 18px rgba(151, 87, 0, 0.22), 0 10px 22px rgba(0,0,0,0.2);
}
.alt-egg.egg-one {
  left: 28px;
  bottom: 26px;
  transform: rotate(-12deg);
}
.alt-egg.egg-two {
  left: 82px;
  bottom: 42px;
  width: 42px;
  height: 56px;
  transform: rotate(14deg);
}
.alt-coin {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe884, #e2a617);
  color: #8b5300;
  font: 900 16px/1 var(--f-sans);
  box-shadow: inset 0 0 0 3px rgba(255,255,255,0.35), 0 10px 18px rgba(0,0,0,0.24);
}
.alt-coin.coin-one {
  top: 86px;
  left: 34px;
}
.alt-coin.coin-two {
  right: 84px;
  bottom: 68px;
}
.alt-reference-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.alt-article-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}
.alt-panel,
.alt-review {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.alt-panel h2,
.alt-review h2 {
  margin: 8px 0 14px;
  font: 800 28px/1.12 var(--f-sans);
  color: var(--ink);
  letter-spacing: -0.01em;
}
.alt-panel p,
.alt-review p {
  color: var(--ink-3);
}
.alt-review {
  display: grid;
  gap: 18px;
}
.alt-review-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.alt-rank {
  font: 800 13px/1 var(--f-mono);
  color: var(--accent);
}
.alt-score {
  width: 66px;
  height: 66px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  display: grid;
  place-items: center;
  align-content: center;
}
.alt-score strong {
  font: 800 22px/1 var(--f-sans);
  color: var(--accent-2);
}
.alt-score span {
  font: 700 10px/1 var(--f-mono);
  color: var(--ink-4);
}
.alt-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  overflow: hidden;
}
.alt-facts span {
  display: grid;
  gap: 4px;
  padding: 14px;
  background: var(--surface-2);
  border-right: 1px solid var(--hairline);
  color: var(--ink-3);
  font: 500 12px/1.35 var(--f-body);
}
.alt-facts span:last-child { border-right: 0; }
.alt-facts b {
  font: 800 10px/1 var(--f-mono);
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.alt-procon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.alt-procon > div {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-2);
}
.alt-procon h3,
.alt-method-grid h3,
.alt-choice-list h3,
.alt-side-card h3,
.alt-side-cta h3 {
  margin: 0 0 10px;
  font: 800 13px/1.2 var(--f-sans);
  color: var(--ink);
}
.alt-procon p {
  position: relative;
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 13px;
}
.alt-procon p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}
.alt-procon > div + div p::before { background: var(--red); }
.alt-method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.alt-method-grid > div,
.alt-choice-list > div {
  border-top: 2px solid var(--accent);
  padding-top: 14px;
}
.alt-method-grid p,
.alt-choice-list p {
  font-size: 13px;
}
.alt-choice-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}
.alt-bottom-line {
  background: linear-gradient(135deg, #173a86, #1f3189);
  color: #fff;
}
.alt-bottom-line h2 { color: #fff; }
.alt-bottom-line p { color: rgba(255,255,255,0.86); margin-bottom: 18px; }
.alt-reference-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 132px;
}
.alt-side-card,
.alt-side-cta {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.alt-side-card a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  color: var(--ink-3);
  font: 700 12px/1.25 var(--f-sans);
}
.alt-side-card a:hover { color: var(--accent-2); }
.alt-side-pick {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
}
.alt-side-pick span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 11px/1 var(--f-mono);
}
.alt-side-pick b {
  display: block;
  font: 800 13px/1.2 var(--f-sans);
  color: var(--ink);
}
.alt-side-pick small {
  display: block;
  color: var(--ink-4);
  font: 500 11px/1.25 var(--f-body);
  margin-top: 3px;
}
.alt-side-pick strong {
  color: var(--accent-2);
  font: 800 13px/1 var(--f-mono);
}
.alt-side-cta {
  background: linear-gradient(135deg, var(--hero-blue-2), var(--hero-blue));
  color: #fff;
}
.alt-side-cta h3 { color: #fff; margin-top: 8px; }
.alt-side-cta p {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
  margin-bottom: 14px;
}

.aside-stat-row {
  display: grid; gap: 10px;
  font: 500 13px/1.4 var(--f-body);
}
.aside-stat-row > div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.aside-stat-row > div:first-child { border-top: 0; padding-top: 0; }
.aside-stat-row .k { color: var(--ink-3); }
.aside-stat-row .v { color: var(--ink); font-weight: 700; }

/* =============================================================
   tournaments leaderboard
   ============================================================= */
.tourney {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: var(--shadow-card);
}
.tourney-head {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(110deg, var(--hero-blue), var(--hero-blue-3));
  color: #fff;
}
.tourney-head h3,
.tourney-head h4 { font: 700 18px/1.2 var(--f-sans); color: #fff; margin: 0; }
.tourney-head .pool { font: 800 22px/1 var(--f-sans); color: var(--gold); }
.tourney-head .pool small { font: 600 11px/1 var(--f-mono); color: rgba(255,255,255,0.6); margin-left: 6px; }
.tourney-head .ends { font: 600 11px/1.4 var(--f-mono); color: rgba(255,255,255,0.78); margin-top: 6px; letter-spacing: 0.08em; }

.tourney-table { width: 100%; border-collapse: collapse; }
.tourney-table th, .tourney-table td {
  padding: 10px 22px;
  text-align: left;
  font: 500 13px/1.4 var(--f-body);
  border-bottom: 1px solid var(--hairline);
}
.tourney-table th { font: 700 10px/1 var(--f-mono); color: var(--ink-4); letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-2); }
.tourney-table tr:last-child td { border-bottom: 0; }
.tourney-table td.rank { font: 800 13px/1 var(--f-mono); color: var(--ink-3); width: 40px; }
.tourney-table td.rank.gold   { color: var(--gold-2); }
.tourney-table td.rank.silver { color: #8b94a8; }
.tourney-table td.rank.bronze { color: #c98664; }
.tourney-table td.result { text-align: right; font-family: var(--f-mono); color: var(--accent-2); font-weight: 700; }

/* =============================================================
   VIP tier card
   ============================================================= */
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.vip-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  padding: 22px 22px 20px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-card);
}
.vip-card .tier-badge {
  font: 800 10px/1 var(--f-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
  color: #fff;
}
.vip-card.t-beginner .tier-badge { background: var(--ink-3); }
.vip-card.t-bronze   .tier-badge { background: #8a4f2d; }
.vip-card.t-silver   .tier-badge { background: #5b6478; }
.vip-card.t-gold     .tier-badge { background: var(--gold-2); color: #2a1f00; }
.vip-card.t-platinum .tier-badge { background: var(--hero-blue-3); }
.vip-card.t-diamond  .tier-badge { background: linear-gradient(90deg, var(--light-blue), var(--hero-blue-3)); }
.vip-card.t-supervip .tier-badge { background: linear-gradient(90deg, var(--accent), var(--hero-blue-3)); }
.vip-card h4 { font: 800 18px/1.1 var(--f-sans); color: var(--ink); margin: 4px 0; }
.vip-card .xp { font: 600 11px/1 var(--f-mono); color: var(--ink-4); letter-spacing: 0.08em; text-transform: uppercase; }
.vip-card ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.vip-card li {
  font: 500 12px/1.45 var(--f-body);
  color: var(--ink-3);
  padding-left: 16px;
  position: relative;
}
.vip-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* =============================================================
   chips (filter / category)
   ============================================================= */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  min-height: 44px;          /* WCAG 2.5.5 tap target */
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font: 700 12px/1 var(--f-sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--hairline);
  transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { color: var(--ink); border-color: var(--hairline-3); }
.chip.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* provider tile */
.provider-tile {
  background: var(--surface);
  border-radius: var(--radius);
  height: 64px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 8px 16px;
  font: 700 12px/1.2 var(--f-sans);
  color: var(--ink-3);
  border: 1px solid var(--hairline);
  transition: background .15s, color .15s, border-color .15s;
}
.provider-tile:hover { background: var(--hero-blue); color: #fff; border-color: var(--hero-blue); }

/* scrollspy */
.scrollspy-bar {
  position: sticky;
  top: 110px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
  margin: 16px 0 32px;
  box-shadow: 0 6px 12px -10px rgba(20, 23, 31, 0.18);
}
.scrollspy-bar .inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.scrollspy-bar .inner::-webkit-scrollbar { display: none; }
.scrollspy-bar a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 12px 16px;
  min-height: 44px;          /* WCAG 2.5.5 tap target */
  border-radius: 999px;
  font: 600 12px/1 var(--f-sans);
  color: var(--ink-3);
  transition: color .15s, background .15s;
  white-space: nowrap;
}
.scrollspy-bar a:hover { color: var(--ink); }
.scrollspy-bar a.is-active {
  color: #fff;
  background: var(--accent);
}

/* responsive */
@media (max-width: 1100px) {
  .lobby { grid-template-columns: minmax(0, 1fr); }
  .lobby-aside { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-copy { padding: 40px 28px; }
  .hero h1 { font-size: 28px; }
}
@media (max-width: 980px) {
  .card { padding: 24px 20px; }
  .testi-grid, .proscons { grid-template-columns: 1fr; }
  .proscons-col + .proscons-col { border-left: 0; border-top: 1px solid var(--hairline); }
  .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .game-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .alt-stage { grid-template-columns: 1fr; }
  .alt-aside { position: static; }
  .alt-article-hero,
  .alt-reference-layout {
    grid-template-columns: 1fr;
  }
  .alt-article-hero {
    padding: 38px 32px;
    min-height: auto;
    gap: 16px;
  }
  .alt-reference-aside {
    position: static;
  }
  .alt-hero-panel {
    display: none;
  }
  .alt-chicken-panel img {
    transform: none;
  }
  .alt-method-grid,
  .alt-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .alt-facts span:nth-child(2) {
    border-right: 0;
  }
  .alt-facts span:nth-child(-n+2) {
    border-bottom: 1px solid var(--hairline);
  }
  .mf-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .mh-top { padding: 12px 16px; gap: 12px; }
  .mh-actions .socials, .mh-actions .oppure { display: none; }
}
@media (max-width: 640px) {
  .page, .page-md { padding: 0 16px; }
  .alt-article-page { padding: 24px 16px 44px; }
  .alt-article-hero { padding: 30px 22px 0; border-radius: 14px; }
  .alt-article-hero h1 { font-size: 32px; }
  .alt-article-hero p { font-size: 16px; }
  .alt-hero-panel { min-height: 0; }
  .alt-chicken-panel img { width: min(420px, 122%); }
  .alt-panel, .alt-review { padding: 20px 16px; }
  .alt-review-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }
  .alt-rank { display: none; }
  .alt-facts,
  .alt-procon,
  .alt-method-grid {
    grid-template-columns: 1fr;
  }
  .alt-facts span,
  .alt-facts span:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--hairline);
  }
  .alt-facts span:last-child {
    border-bottom: 0;
  }
  .card { padding: 20px 16px; }
  .game-grid, .game-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lobby-aside { grid-template-columns: minmax(0, 1fr); }
  .mf-cols { grid-template-columns: minmax(0, 1fr); }
  .bonus-banner { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .h-display { font-size: 28px; }
  .h-1 { font-size: 24px; }
  .mh-actions .btn-cta span:not(.arrow) { display: none; }
}

/* contextual back-nav at bottom of sub-pages */
.page-back {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px 0 0;
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
}

/* empty-state for filtered search/category lists */
.empty-state {
  margin: 12px 0;
  padding: 18px 22px;
  border: 1px dashed var(--hairline-2);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  color: var(--ink-3);
  font: 500 14px/1.5 var(--f-body);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.empty-state[hidden] { display: none; }

/* utility */
.text-center { text-align: center; }
.full-width { width: 100%; }
.mb-lg { margin-bottom: var(--gap-lg); }
.mt-lg { margin-top: var(--gap-lg); }

/* =============================================================
   View Transitions API — smooth page-to-page crossfade for MPA.
   Supported: Chrome 126+, Safari 18+. Firefox — falls back to
   default navigation. Pair with <meta name="view-transition"
   content="same-origin"> in <head>.
   ============================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: 0.01ms; }
}

/* horizontal-scroll guard — отдельные блоки на узких viewport'ах
   могут случайно «выпирать»; защита от bouncing scrollbar. */
html, body { overflow-x: clip; }

/* Right cluster in header — wraps actions + burger so the grid's third
   column stays `auto` and doesn't get stretched by the 1fr spacer. */
.mh-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Burger toggle — hidden on desktop, shown by @media below on mobile. */
.mh-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--hairline-2);
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
  flex-shrink: 0;
}
.mh-menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-2);
  border-radius: 2px;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.mh-menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mh-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.mh-menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .mh-menu-toggle { display: inline-flex; }
  /* Keep only the green primary CTA on mobile; hide secondary and decor. */
  .mh-actions .btn-red,
  .mh-actions .socials,
  .mh-actions .oppure { display: none; }
  .mh-cats { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .mh-cats.is-open { max-height: 500px; }
  .mh-cats-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; overflow: visible; }
  .mh-cats-inner a { padding: 12px 24px; min-height: 44px; display: flex; align-items: center; }
}

/* Extra-small viewports — keep title legible. */
@media (max-width: 480px) {
  .hero h1 { font-size: 24px; line-height: 1.18; overflow-wrap: anywhere; }
  .hero-copy { padding: 32px 22px; }
  .mh-top { padding: 10px 14px; gap: 8px; }
  .mh-actions .btn { height: 44px; padding: 0 12px; font-size: 12px; }   /* WCAG 2.5.5 */
  .mh-actions .btn-cta { font-size: 11px; padding: 0 10px; }             /* keep within viewport */
}
