/* ============================================================
   ROYAL MUSHROOM — Online Casino
   Design system & full stylesheet
   Palette from brand guide (promo/2-3.jpg)
   ============================================================ */

/* ---------- Самохостинг шрифтов (без Google Fonts — мгновенная загрузка, офлайн) ---------- */
@font-face { font-family: 'Cinzel'; font-weight: 500; font-display: swap; src: url('../assets/fonts/cinzel-500.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 700; font-display: swap; src: url('../assets/fonts/cinzel-700.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 900; font-display: swap; src: url('../assets/fonts/cinzel-900.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 400; font-display: swap; src: url('../assets/fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-display: swap; src: url('../assets/fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-display: swap; src: url('../assets/fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 800; font-display: swap; src: url('../assets/fonts/montserrat-800.woff2') format('woff2'); }

:root {
  /* Brand palette */
  --emerald: #00c853;
  --emerald-deep: #0e5a43;
  --forest: #0b6b3e;
  --forest-deep: #0b2f24;
  --gold: #ffd43b;
  --gold-deep: #d4a63a;
  --ruby: #e63946;
  --ruby-deep: #b84a45;
  --violet: #8a2be2;
  --aqua: #00e5ff;
  --ivory: #fff7e1;
  --moss: #2e7d32;

  /* Surfaces */
  --bg: #06130d;
  --bg-2: #0a1f15;
  --panel: #0d281b;
  --panel-2: #123524;
  --line: #1d4a32;
  --line-gold: rgba(212, 166, 58, 0.45);

  /* Text */
  --text: #eaf6ee;
  --text-dim: #9fc3ac;
  --text-gold: #f5d97a;

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-ui: 'Montserrat', 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
  --glow-gold: 0 0 18px rgba(255, 212, 59, 0.35);
  --glow-green: 0 0 22px rgba(0, 200, 83, 0.4);
  --header-h: 74px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

/* Резерв высоты шапки до отработки JS — контент не прыгает при загрузке.
   Полоса-анонс 38px + шапка 74px; если полоса закрыта (data-nostrip) — только шапка. */
#header { min-height: 112px; }
html[data-nostrip] #header { min-height: 74px; }
@media (max-width: 720px) {
  #header { min-height: 114px; }
  html[data-nostrip] #header { min-height: 62px; }
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url('../assets/img/generated/bg-forest.webp') center/cover no-repeat fixed;
  opacity: 0.5;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% -10%, rgba(0, 200, 83, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(6, 19, 13, 0.55), rgba(6, 19, 13, 0.92) 60%, #06130d);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, .display { font-family: var(--font-display); letter-spacing: 0.03em; }

.container { width: min(1280px, 100% - 32px); margin-inline: auto; }

/* ---------- Decorative section title ---------- */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 38px 0 18px; }
.sec-title { display: flex; align-items: center; gap: 12px; font-size: clamp(20px, 2.6vw, 28px); color: var(--text-gold); text-transform: uppercase; }
.sec-title .orn { color: var(--gold-deep); font-size: 0.8em; }
.sec-link { color: var(--gold); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; transition: 0.2s; }
.sec-link:hover { text-shadow: var(--glow-gold); transform: translateX(2px); }

/* ---------- Buttons (brand guide: emerald / gold / outline) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  border-radius: 12px; padding: 13px 26px; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
  position: relative; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1ddb70, #00a344);
  border: 1.5px solid #ffe08a;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px rgba(0, 200, 83, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), var(--glow-green); }

.btn-gold {
  color: #3d2b00;
  background: linear-gradient(180deg, #ffe792, #e9b93a 55%, #c9932a);
  border: 1.5px solid #fff3c4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 6px 18px rgba(233, 185, 58, 0.35);
}
.btn-gold:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), var(--glow-gold); }

.btn-outline {
  color: var(--text-gold);
  border: 1.5px solid var(--gold-deep);
  background: rgba(212, 166, 58, 0.08);
}
.btn-outline:hover { background: rgba(212, 166, 58, 0.18); box-shadow: var(--glow-gold); }

.btn-sm { padding: 9px 16px; font-size: 12px; border-radius: 10px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- Gold-framed panel ---------- */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--forest-deep));
  border: 1px solid var(--line-gold);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 231, 146, 0.08);
  position: relative;
}
.panel-corners::before, .panel-corners::after {
  content: '❧'; position: absolute; color: var(--gold-deep); opacity: 0.7; font-size: 18px;
}
.panel-corners::before { top: 8px; left: 12px; }
.panel-corners::after { bottom: 8px; right: 12px; transform: rotate(180deg); }

/* ============================================================
   HEADER
   ============================================================ */
/* Липкая шапка: sticky на обёртке #header, отрицательный top = высота верхней полосы,
   чтобы полоса уезжала при скролле, а меню оставалось (top задаёт JS). */
#header { position: sticky; top: 0; z-index: 90; }
.site-header {
  background: linear-gradient(180deg, rgba(6, 19, 13, 0.98), rgba(9, 28, 19, 0.94));
  border-bottom: 1px solid var(--line-gold);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 46px; height: 46px; border-radius: 50%; box-shadow: var(--glow-gold); }
.logo-text { font-family: var(--font-display); line-height: 1; }
.logo-text i { display: block; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: 0.5em; color: var(--text-dim); text-transform: uppercase; margin-bottom: 3px; }
.logo-text b { display: block; font-size: 17px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.main-nav a {
  padding: 9px 9px; font-size: 12px; font-weight: 600; color: var(--text-dim);
  border-radius: 10px; transition: 0.2s; text-transform: uppercase; white-space: nowrap;
}
.main-nav a:hover { color: var(--text-gold); background: rgba(212, 166, 58, 0.08); }
.main-nav a.active { color: var(--gold); background: rgba(0, 200, 83, 0.1); box-shadow: inset 0 -2px 0 var(--gold); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* Language / GEO dropdown */
.lang { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 13px; color: var(--text-dim);
  transition: 0.2s;
}
.lang-btn:hover { border-color: var(--gold-deep); color: var(--text-gold); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 190px;
  background: var(--panel); border: 1px solid var(--line-gold); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 99;
}
.lang.open .lang-menu { display: block; animation: pop 0.18s ease; }
/* Пункты — <button>, а не <a>: у ссылок был мёртвый href="#" */
.lang-menu a, .lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px;
  border-radius: 8px; font-size: 13.5px; color: var(--text-dim); text-align: left; transition: 0.16s;
}
.lang-menu a:hover, .lang-menu button:hover { background: rgba(0, 200, 83, 0.12); color: var(--text); }
.lang-menu a.cur, .lang-menu button.cur { color: var(--gold); background: rgba(212, 166, 58, 0.1); }
.lang-menu button.cur:hover { background: rgba(212, 166, 58, 0.18); color: var(--gold); }
.flag { width: 20px; height: 14px; border-radius: 3px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); display: inline-block; vertical-align: -2px; }
.lang-btn .flag { margin-right: 2px; }

.reg-badge { position: relative; }
.reg-badge::after {
  content: '🎁'; position: absolute; top: -8px; right: -2px; font-size: 14px;
  background: var(--ruby); border-radius: 50%; padding: 2px 4px; box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  animation: bounce 2.2s infinite;
}

.burger { display: none; font-size: 24px; color: var(--gold); padding: 6px 10px; }

/* Top notification strip */
.top-strip {
  background: linear-gradient(90deg, #0e5a43, #00a344 40%, #0e5a43);
  color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 40px 8px 14px;
  position: relative;
}
.top-strip b { color: var(--gold); }
.top-strip .close-strip { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 16px; opacity: 0.8; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero { margin-top: 18px; position: relative; }
.hero-track { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-gold); box-shadow: var(--shadow); height: 400px; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s ease; pointer-events: none;
  display: flex; align-items: center;
}
.hero-slide.on { opacity: 1; pointer-events: auto; }
.hero-slide .bg { position: absolute; inset: 0; }
.hero-slide .bg img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-slide .bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 16, 10, 0.92) 18%, rgba(4, 16, 10, 0.55) 45%, transparent 75%); }
/* min-width:0 обязателен: .hero-copy — флекс-элемент, и без него он не сжимается
   ниже min-content своей кнопки (у .btn стоит white-space:nowrap) и вылезает за трек. */
.hero-copy { position: relative; z-index: 2; width: 100%; min-width: 0; padding: 44px 56px 44px 80px; max-width: 590px; }
.hero-kicker { color: var(--aqua); font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: 12px; margin-bottom: 10px; }
/* Типографика заголовка привязана к классу, а не к тегу: H1 на странице только один,
   остальные слайды — <p>, и выглядеть они обязаны одинаково. */
.hero-title {
  font-family: var(--font-display); font-weight: 900; letter-spacing: 0.03em;
  font-size: clamp(26px, 4vw, 44px); line-height: 1.16; color: #fff;
  -webkit-text-stroke: 0.75px currentColor; paint-order: stroke fill;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6); margin-bottom: 8px;
}
.hero-title b { color: var(--gold); -webkit-text-stroke: 0.75px currentColor; }
.page-hero .ph-body h1 {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; line-height: 1.16; color: #fff;
  -webkit-text-stroke: 0.75px currentColor; paint-order: stroke fill;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}
.hero-sub { color: var(--text-dim); font-size: 15.5px; margin-bottom: 22px; }
.hero-nav { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero-dot { width: 26px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.25); transition: 0.25s; }
.hero-dot.on { background: var(--gold); box-shadow: var(--glow-gold); }
.hero-arr {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; font-size: 17px; color: var(--gold);
  background: rgba(6, 19, 13, 0.65); border: 1px solid var(--line-gold); transition: 0.2s;
  display: flex; align-items: center; justify-content: center; line-height: 1; padding: 0 0 3px;
}
.hero-arr:hover { background: rgba(212, 166, 58, 0.25); }
.hero-arr.prev { left: 16px; }
.hero-arr.next { right: 16px; }

/* ============================================================
   CATEGORY CHIPS
   ============================================================ */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 22px 2px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 96px;
  padding: 13px 12px 11px; border-radius: var(--radius); flex: 1 0 96px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); transition: 0.2s; color: var(--text-dim);
}
.chip .ico { font-size: 24px; filter: drop-shadow(0 0 6px rgba(0, 200, 83, 0.45)); }
/* Сгенерированные иконки (чёрный фон убирается blend-режимом) */
.ico-img { width: 42px; height: 42px; object-fit: contain; }
.ico-inline { width: 20px; height: 20px; object-fit: contain; vertical-align: -4px; display: inline-block; }
.ico-md { width: 60px; height: 60px; object-fit: contain; margin-inline: auto; }
.chip b { font-size: 12px; font-weight: 700; color: var(--text); white-space: nowrap; }
.chip span { font-size: 10px; color: var(--text-dim); font-style: italic; white-space: nowrap; }
.chip:hover, .chip.on { border-color: var(--gold-deep); box-shadow: var(--glow-gold); transform: translateY(-2px); }

/* ============================================================
   GAME CARDS & ROWS
   ============================================================ */
.game-row { display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 10px 2px 14px; scrollbar-width: thin; scrollbar-color: var(--forest) transparent; }
.game-row .game-card:hover { transform: translateY(-4px); }

.game-card {
  position: relative; border-radius: var(--radius); overflow: hidden; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.game-card:hover { transform: translateY(-5px) scale(1.02); border-color: var(--gold-deep); box-shadow: var(--glow-gold), var(--shadow); z-index: 2; }
/* position:relative — бейдж живого RTP лежит внутри обложки и привязан к ней */
.game-card .cover { position: relative; aspect-ratio: 3 / 4; overflow: hidden; }
.game-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.game-card:hover .cover img { transform: scale(1.09); }
.game-card .meta { padding: 9px 10px 11px; }
.game-card .g-name {
  font-size: 12.5px; font-weight: 700; line-height: 1.3; min-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.game-card .g-prov { font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.game-card .overlay {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: radial-gradient(ellipse at center, rgba(6, 25, 16, 0.55), rgba(6, 19, 13, 0.88));
  opacity: 0; transition: opacity 0.22s;
}
.game-card:hover .overlay { opacity: 1; }
.badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 5px; z-index: 2; }
.badge { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 8px; border-radius: 6px; width: fit-content; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.badge.hot { background: linear-gradient(180deg, #ff6b4a, var(--ruby)); color: #fff; }
.badge.new { background: linear-gradient(180deg, #29e07a, #009e42); color: #fff; }
.badge.top { background: linear-gradient(180deg, #ffe792, #d4a63a); color: #3d2b00; }
.badge.exc { background: linear-gradient(180deg, #a95cf0, var(--violet)); color: #fff; }
.badge.buy { background: linear-gradient(180deg, #35e0ff, #0093b8); color: #04222b; }

/* Температура слота (Hot & Cold) */
.temp-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45); backdrop-filter: blur(3px);
}
.temp-badge.hot { background: linear-gradient(180deg, rgba(41, 224, 122, 0.95), rgba(0, 158, 66, 0.95)); color: #fff; }
.temp-badge.cold { background: linear-gradient(180deg, rgba(255, 107, 74, 0.95), rgba(230, 57, 70, 0.95)); color: #fff; }


/* Catalog grid */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px; }

/* Catalog toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 20px 0; }
.search-box {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.search-box:focus-within { border-color: var(--gold-deep); box-shadow: var(--glow-gold); }
.search-box input { flex: 1; background: none; border: none; outline: none; color: var(--text); font-size: 14.5px; font-family: inherit; }
.search-box input::placeholder { color: var(--text-dim); }
.select {
  appearance: none; -webkit-appearance: none;
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4a63a' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 15px center;
  border: 1px solid var(--line); color: var(--text); border-radius: 12px;
  padding: 13px 40px 13px 16px; font-size: 14px; font-weight: 600; font-family: inherit;
  outline: none; cursor: pointer; min-width: 190px; transition: 0.2s;
}
.select:hover, .select:focus { border-color: var(--gold-deep); box-shadow: var(--glow-gold); color: var(--text-gold); }
.select option { background: var(--panel); color: var(--text); }
.toolbar .btn { padding: 13px 20px; border-radius: 12px; }
.toolbar { align-items: stretch; }
.toolbar .search-box { padding-block: 0; display: flex; align-items: center; min-height: 48px; }
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.f-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--text-dim); white-space: nowrap; transition: 0.2s; }
.f-chip:hover { color: var(--text); border-color: var(--gold-deep); }
.f-chip.on { background: linear-gradient(180deg, #1ddb70, #00a344); color: #fff; border-color: #ffe08a; }
.count-note { color: var(--text-dim); font-size: 13.5px; }

/* ============================================================
   JACKPOT
   ============================================================ */
.jackpot-strip { position: relative; overflow: hidden; margin-top: 34px; }
.jackpot-strip .jp-bg { position: absolute; inset: 0; }
.jackpot-strip .jp-bg img { width: 100%; height: 100%; object-fit: cover; }
.jackpot-strip .jp-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 25%, rgba(6, 19, 13, 0.45) 42%, rgba(6, 19, 13, 0.66) 72%); }
.jp-body { position: relative; z-index: 2; padding: 30px 30px 30px 30%; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.jp-total-label { color: var(--text-gold); letter-spacing: 0.2em; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.jp-total { font-family: var(--font-ui); font-weight: 800; font-size: clamp(28px, 4.3vw, 46px); color: var(--gold); text-shadow: var(--glow-gold); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: 0.01em; }
.jp-tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.jp-tier { background: rgba(6, 19, 13, 0.55); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-align: center; }
.jp-tier .t-name { font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 5px; }
.jp-tier .t-val { font-family: var(--font-ui); font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.jp-tier.grand .t-name { color: var(--gold); }
.jp-tier.major .t-name { color: var(--violet); }
.jp-tier.minor .t-name { color: var(--aqua); }
.jp-tier.mini .t-name { color: var(--emerald); }

/* ============================================================
   WINNING NOW feed
   ============================================================ */
.winners-feed { display: flex; gap: 12px; overflow: hidden; position: relative; padding: 4px 0 8px; }
.win-card {
  display: flex; align-items: center; gap: 10px; min-width: 250px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px;
  animation: slideIn 0.5s ease;
}
.win-card img { width: 44px; height: 56px; object-fit: cover; border-radius: 8px; }
.win-card .w-who { font-size: 12.5px; color: var(--text-dim); }
.win-card .w-who b { color: var(--text); }
.win-card .w-amt { font-weight: 800; color: var(--emerald); font-size: 15px; text-shadow: 0 0 12px rgba(0, 200, 83, 0.5); }
.win-card .w-game { font-size: 11.5px; color: var(--text-dim); max-width: 165px; line-height: 1.3; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ruby); display: inline-block; margin-right: 7px; animation: pulse 1.4s infinite; }

/* ============================================================
   BANNERS (tournament / wheel / vip teaser)
   ============================================================ */
.banner { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-gold); box-shadow: var(--shadow); margin-top: 34px; display: flex; align-items: center; }
@media (min-width: 861px) { .banner { aspect-ratio: 3 / 1; } }
.banner .bg-img { position: absolute; inset: 0; }
.banner .bg-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.banner .bg-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 16, 10, 0.92) 18%, rgba(4, 16, 10, 0.55) 45%, transparent 72%); }
.banner-body { position: relative; z-index: 2; padding: 38px 44px; max-width: 600px; }
.banner-kicker { color: var(--aqua); font-size: 12px; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 8px; }
.banner-title { font-size: clamp(22px, 3vw, 34px); color: var(--gold); margin-bottom: 8px; }
.banner-text { color: var(--text-dim); margin-bottom: 20px; font-size: 15px; }

.countdown { display: flex; gap: 10px; margin-bottom: 20px; }
.cd-cell { background: rgba(6, 19, 13, 0.7); border: 1px solid var(--line-gold); border-radius: 10px; padding: 9px 0; width: 66px; text-align: center; }
.cd-cell b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--gold); font-variant-numeric: tabular-nums; }
.cd-cell span { font-size: 10px; letter-spacing: 0.14em; color: var(--text-dim); text-transform: uppercase; }

/* ============================================================
   PROMOTIONS PAGE
   ============================================================ */
.page-hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-gold); margin-top: 18px; box-shadow: var(--shadow); display: flex; align-items: center; }
@media (min-width: 861px) { .page-hero { aspect-ratio: 3 / 1; } }
.page-hero .ph-img { position: absolute; inset: 0; }
.page-hero .ph-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-hero .ph-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 16, 10, 0.92) 18%, rgba(4, 16, 10, 0.55) 45%, transparent 72%); }
.page-hero .ph-body { position: relative; z-index: 2; padding: 54px 50px; max-width: 640px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); color: var(--gold); margin-bottom: 10px; }
.page-hero p { color: var(--text-dim); font-size: 15.5px; }

.bonus-card {
  display: grid; grid-template-columns: 1fr 320px; gap: 0; overflow: hidden; margin-top: 22px;
}
.bonus-card .b-body { padding: 30px 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.b-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: #3d2b00; background: linear-gradient(180deg, #ffe792, #d4a63a); border-radius: 6px; padding: 4px 10px; }
.bonus-card h2, .bonus-card h3 { font-size: 24px; color: var(--text); }
.b-offer { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); color: var(--gold); text-shadow: var(--glow-gold); }
.b-note { color: var(--text-dim); font-size: 13.5px; }
.bonus-card .b-art { position: relative; min-height: 240px; }
.bonus-card .b-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bonus-card .b-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel), transparent 45%); }
.b-actions { display: flex; gap: 12px; margin-top: 8px; flex-wrap: wrap; }

/* Accordion */
.acc { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 10px; width: 100%; background: rgba(6, 19, 13, 0.4); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 18px; font-weight: 700; font-size: 14px; color: var(--text-gold); text-align: left; }
.acc-head .ar { transition: transform 0.25s; color: var(--gold-deep); }
.acc.open .acc-head .ar { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--text-dim); font-size: 13.5px; line-height: 1.65; }
.acc.open .acc-body { max-height: 420px; }
.acc-body > div { padding: 2px 18px 16px; }
.acc-body ul { padding-left: 18px; list-style: disc; display: grid; gap: 5px; }

/* ============================================================
   VIP PAGE
   ============================================================ */
.vip-table-wrap { overflow-x: auto; margin-top: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line-gold); }
.vip-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--panel); }
.vip-table th { background: var(--forest-deep); color: var(--text-gold); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding: 15px 18px; text-align: left; }
.vip-table td { padding: 13px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.vip-lvl { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.vip-lvl .gem { font-size: 17px; filter: drop-shadow(0 0 6px rgba(255, 212, 59, 0.6)); }
.vip-prize { color: var(--gold); font-weight: 700; }
.xp-bar { width: 130px; height: 9px; border-radius: 5px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xp-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--emerald), var(--gold)); }
.vip-tiers-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-top: 26px; }
.vip-tier-card { padding: 22px 20px; text-align: center; }
.vip-tier-card .big { font-size: 34px; margin-bottom: 8px; filter: drop-shadow(0 0 10px rgba(255, 212, 59, 0.45)); }
.vip-tier-card h2, .vip-tier-card h3 { color: var(--text-gold); font-size: 17px; margin-bottom: 6px; }
.vip-tier-card p { color: var(--text-dim); font-size: 13px; line-height: 1.6; }

/* ============================================================
   HALL OF FAME
   ============================================================ */
/* Пьедестал 2-1-3: карточка победителя на постаменте */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: end; margin-top: 30px; padding: 0 20px; }
.pod-col { display: flex; flex-direction: column; align-items: center; }
.pod-card2 {
  position: relative; width: 100%; max-width: 280px; text-align: center;
  padding: 50px 18px 18px; margin-bottom: -1px;
  background: linear-gradient(180deg, #123524, #0d281b);
  border: 1px solid var(--line-gold); border-radius: 18px 18px 0 0;
  overflow: hidden;
}
.pod-medal2 {
  width: 74px; height: 74px; object-fit: contain; position: relative; z-index: 2;
  margin-bottom: -38px;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.6));
}
.pod-medal2.first { width: 96px; height: 96px; margin-bottom: -46px; }
.pod-ava {
  width: 68px; height: 68px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 10px; border: 3px solid var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(212, 166, 58, 0.2), 0 6px 16px rgba(0, 0, 0, 0.5);
}
.pod-user { font-family: var(--font-display); font-weight: 800; font-size: 17px; color: #fff; }
.pod-game { font-size: 11.5px; color: var(--text-dim); margin: 2px 0 10px; }
.pod-win { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--gold); text-shadow: var(--glow-gold); font-variant-numeric: tabular-nums; }
.pod-bet { font-size: 11px; color: var(--text-dim); margin-top: 3px; }
.pedestal {
  width: 100%; max-width: 280px; height: 52px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(212, 166, 58, 0.32), rgba(212, 166, 58, 0.06)), var(--forest-deep);
  border: 1px solid var(--line-gold); border-radius: 0 0 10px 10px;
}
.pedestal::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, #8a6a1e, #ffe792, #8a6a1e); opacity: 0.75; }
.pedestal span { font-family: var(--font-display); font-size: 26px; font-weight: 900; color: var(--text-gold); opacity: 0.9; }
.pedestal span::before { content: '❧ '; font-size: 14px; opacity: 0.6; }
.pedestal span::after { content: ' ❧'; font-size: 14px; opacity: 0.6; }
/* Чемпион */
.pedestal.first { height: 96px; }
.pedestal.first span { font-size: 34px; color: var(--gold); }
.pod-card2.first {
  max-width: 300px; padding-top: 60px;
  background: linear-gradient(180deg, #17452e, #0d281b);
  border: 1.5px solid var(--gold); box-shadow: var(--glow-gold), var(--shadow);
}
.pod-card2.first .pod-ava { width: 84px; height: 84px; border-color: var(--gold); }
.pod-card2.first .pod-user { font-size: 20px; }
.pod-card2.first .pod-win { font-size: 26px; }
/* блик, пробегающий по карточке чемпиона */
.pod-card2.first::after {
  content: ''; position: absolute; top: -60%; left: -80%; width: 50%; height: 220%;
  background: linear-gradient(105deg, transparent, rgba(255, 231, 146, 0.16), transparent);
  transform: rotate(18deg); animation: shineSweep 3.6s ease-in-out infinite;
}
@keyframes shineSweep { 0%, 55% { left: -80%; } 85%, 100% { left: 140%; } }

.tabs { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.tab { padding: 9px 22px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--text-dim); transition: 0.2s; }
.tab.on { background: linear-gradient(180deg, #1ddb70, #00a344); color: #fff; }

.hof-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line-gold); margin-top: 18px; }
.hof-table { width: 100%; border-collapse: collapse; min-width: 560px; background: var(--panel); }
.hof-table th { background: var(--forest-deep); color: var(--text-gold); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; padding: 13px 18px; text-align: left; }
.hof-table td { padding: 11px 18px; border-top: 1px solid var(--line); font-size: 14px; }
.hof-table .g-cell { display: flex; align-items: center; gap: 10px; }
.hof-table .g-cell img { width: 34px; height: 42px; border-radius: 6px; object-fit: cover; transition: transform 0.2s, box-shadow 0.2s; }
.hof-table .prize { color: var(--gold); font-weight: 800; font-variant-numeric: tabular-nums; }

/* Ховер строк таблиц: подсветка (мгновенная, чтобы не рассинхронизировалась), зум обложки, свечение приза */
.hof-table tbody td, .vip-table tbody td { cursor: default; }
.hof-table tbody tr:hover td, .vip-table tbody tr:hover td { background: rgba(0, 200, 83, 0.08); }
.hof-table tbody tr:hover td:first-child, .vip-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.hof-table tbody tr:hover .g-cell img { transform: scale(1.28); box-shadow: var(--glow-gold); }
.hof-table tbody tr:hover .prize { text-shadow: 0 0 14px rgba(255, 212, 59, 0.65); }
.vip-table tbody tr:hover .vip-prize { text-shadow: 0 0 14px rgba(255, 212, 59, 0.65); }
.vip-table tbody tr:hover .gem, .vip-table tbody tr:hover .ico-inline { transform: scale(1.2); }
.vip-table .ico-inline { transition: transform 0.2s; }

.winners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-top: 18px; }

/* ============================================================
   LIVE CASINO cards
   ============================================================ */
.live-card .cover { aspect-ratio: 3 / 4; }
.live-card .limits { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; color: var(--text-dim); padding: 0 10px 10px; }
.live-card .lim { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seats-pill {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 3px;
  font-size: 10.5px; font-weight: 700; line-height: 1; color: var(--aqua); white-space: nowrap;
  border: 1px solid rgba(0, 229, 255, 0.35); border-radius: 999px; padding: 4px 9px;
  background: rgba(0, 229, 255, 0.07);
}

/* ============================================================
   TOURNAMENT CARDS
   ============================================================ */
/* Две карточки в ряд: на всю ширину контейнера обложка 21:9 вырастала под 550px
   и забирала весь экран. В половинной колонке та же пропорция даёт ~260px. */
.tour-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.tour-card { overflow: hidden; height: 100%; }
.tour-card .t-img { position: relative; aspect-ratio: 21 / 9; }
/* Две колонки перестают читаться раньше общего мобильного порога: на 760px
   в половине ширины уже не помещаются таймер, мета и кнопки. */
@media (max-width: 760px) {
  .tour-grid { grid-template-columns: 1fr; gap: 14px; }
  .tour-card .t-img { aspect-ratio: auto; height: clamp(150px, 30vw, 230px); }
}
.tour-card .t-img img { width: 100%; height: 100%; object-fit: cover; }
.tour-card .t-img .t-status { position: absolute; top: 12px; left: 12px; }
.t-status { font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.08em; }
.t-status.live { background: var(--ruby); color: #fff; animation: pulse 1.6s infinite; }
.t-status.soon { background: var(--panel-2); color: var(--aqua); border: 1px solid var(--aqua); }
.tour-card .t-body { padding: 20px 24px; display: grid; gap: 12px; }
.t-prize { font-family: var(--font-display); font-size: 26px; color: var(--gold); }
.t-meta { display: flex; gap: 18px; color: var(--text-dim); font-size: 13px; flex-wrap: wrap; }

/* ============================================================
   GAME PAGE
   ============================================================ */
.game-view { display: grid; grid-template-columns: 340px 1fr; gap: 26px; margin-top: 26px; }
.game-view .gv-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-gold); box-shadow: var(--shadow); aspect-ratio: 3 / 4; align-self: start; }
.game-view .gv-cover img { width: 100%; height: 100%; object-fit: cover; }
.gv-info h1 { font-size: clamp(24px, 3.4vw, 38px); color: var(--text); margin-bottom: 6px; }
.gv-prov { color: var(--aqua); font-weight: 700; margin-bottom: 18px; }
.gv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 22px; }
.gv-stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; }
.gv-stat span { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 4px; }
.gv-stat b { font-size: 16px; color: var(--text-gold); }

/* ============================================================
   MY FOREST + ROYAL QUESTS
   ============================================================ */
.forest-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden; margin-top: 18px; }
.forest-left { padding: 30px 34px; display: flex; flex-direction: column; justify-content: center; }
.forest-lvl-badge { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; background: rgba(0, 200, 83, 0.12); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-gold); margin-bottom: 14px; }
.forest-left h1, .forest-left h2 { font-size: clamp(24px, 3.2vw, 34px); color: #fff; margin-bottom: 4px; }
.forest-left h1 b, .forest-left h2 b { color: var(--gold); }
.forest-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 20px; }
.xp-track { height: 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); overflow: hidden; position: relative; }
.xp-track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--gold)); box-shadow: 0 0 12px rgba(0, 200, 83, 0.5); transition: width 1s ease; }
.xp-nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 7px; }
.xp-nums b { color: var(--text-gold); }
.forest-next { margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.forest-next b { color: var(--gold); }
.forest-right { position: relative; background: radial-gradient(ellipse at center, rgba(0, 200, 83, 0.14), transparent 65%); display: flex; align-items: center; justify-content: center; padding: 24px; }
/* Лестница роста: ступени по диагонали вверх, имя — только у текущей */
.growth-ladder { display: flex; align-items: flex-end; gap: 14px; padding: 76px 0 10px; }
.growth-step { display: flex; flex-direction: column; align-items: center; gap: 5px; opacity: 0.38; filter: grayscale(0.65); position: relative; }
.g-ico-img { width: 38px; height: 38px; object-fit: contain; }
.quest-ico img { width: 34px; height: 34px; object-fit: contain; }
.growth-step .g-num { font-size: 10px; font-weight: 700; color: var(--text-dim); }
.growth-step .g-num.cur { font-size: 12px; font-weight: 800; color: var(--gold); text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8); }
.growth-step.reached { opacity: 0.85; filter: none; }
.growth-step.current { opacity: 1; filter: none; }
.growth-step.current .g-ico-img {
  width: 52px; height: 52px;
  filter: drop-shadow(0 0 12px rgba(255, 212, 59, 0.85));
  animation: bounce 2.4s infinite;
}

.quests-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.quest-card { padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.quest-top { display: flex; align-items: center; gap: 12px; }
.quest-ico { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(0, 200, 83, 0.1); border: 1px solid var(--line); }
.quest-info h3 { font-size: 16px; color: var(--text); }
.quest-info p { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.quest-prog { height: 10px; border-radius: 999px; background: rgba(0, 0, 0, 0.4); border: 1px solid var(--line); overflow: hidden; }
.quest-prog i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--gold)); transition: width 0.6s ease; }
.quest-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quest-reward { font-size: 12.5px; color: var(--text-gold); font-weight: 700; }
.quest-reward span { color: var(--text-dim); font-weight: 400; }
.quest-btn { font-family: var(--font-display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; padding: 9px 16px; border-radius: 10px; white-space: nowrap; transition: 0.2s; }
.quest-btn.ready { color: #3d2b00; background: linear-gradient(180deg, #ffe792, #d4a63a); border: 1.5px solid #fff3c4; box-shadow: var(--glow-gold); }
.quest-btn.ready:hover { filter: brightness(1.08); }
.quest-btn.pending { color: var(--text-dim); border: 1px solid var(--line); cursor: default; }
.quest-btn.claimed { color: var(--emerald); border: 1px solid var(--emerald); background: rgba(0, 200, 83, 0.1); cursor: default; }
.quest-card.done-glow { border-color: var(--gold-deep); box-shadow: var(--glow-gold), var(--shadow); }
@media (max-width: 860px) {
  .forest-card { grid-template-columns: 1fr; }
  .forest-right { order: -1; padding: 20px 10px; }
  .growth-ladder { gap: 2px; }
  .growth-step .g-ico { font-size: 18px; }
}

/* ============================================================
   LIVE RTP + SPORE SHOP
   ============================================================ */
.rtp-val { font-weight: 800; font-variant-numeric: tabular-nums; }
.rtp-trend { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rtp-trend.up { color: var(--emerald); }
.rtp-trend.down { color: var(--ruby); }
.rtp-flash { animation: rtpFlash 0.8s ease; }
@keyframes rtpFlash { 0% { background: rgba(255, 212, 59, 0.18); } 100% { background: transparent; } }
.rtp-live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--text-dim); font-size: 13px; }

.shop-balance {
  display: inline-flex; align-items: center; gap: 9px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-gold); border-radius: 999px; padding: 9px 18px;
  font-weight: 800; font-size: 15px; color: var(--text-gold);
}
.shop-balance img { width: 24px; height: 24px; object-fit: contain; }
.shop-balance b { color: var(--gold); font-variant-numeric: tabular-nums; }
.shop-card { padding: 22px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }

/* Баланс спор остаётся справа от заголовка сколько может — под 650px
   он уже жмётся к нему вплотную, и там уходит под заголовок по центру. */
@media (max-width: 650px) {
  body[data-page="shop"] .sec-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  body[data-page="shop"] .shop-balance { align-self: center; }
}

.shop-card .s-ico { width: 64px; height: 64px; object-fit: contain; margin-bottom: 2px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4)); }
.shop-card h3 { font-size: 16px; color: var(--text); }
.shop-card p { font-size: 12px; color: var(--text-dim); }
.shop-price { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 13.5px; color: var(--text-gold); margin: 4px 0 6px; }
.shop-price img { width: 17px; height: 17px; object-fit: contain; }
.shop-card .quest-btn { width: 100%; }
.shop-card .quest-btn.poor { color: var(--text-dim); border: 1px solid var(--line); cursor: default; opacity: 0.7; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { margin-top: 70px; background: linear-gradient(180deg, rgba(6, 19, 13, 0.4), #051009 30%); border-top: 1px solid var(--line-gold); padding: 44px 0 110px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.f-col h2, .f-col h4 { font-family: var(--font-display); color: var(--text-gold); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.f-col a { display: block; color: var(--text-dim); font-size: 13.5px; padding: 5px 0; transition: 0.2s; }
.f-col a:hover { color: var(--gold); padding-left: 4px; }
.pay-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 14px 0 20px; }
.pay-pill {
  background: #f8f6ef; border-radius: 8px; height: 38px; padding: 0 13px;
  display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.pay-pill .pay-svg { height: 21px; width: auto; display: block; flex-shrink: 0; }
.pay-pill .pay-name { font-weight: 800; font-size: 12px; letter-spacing: 0.02em; color: #222; white-space: nowrap; }
.pay-pill .pay-mono {
  width: 21px; height: 21px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 12px; line-height: 1;
}
.rg-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; color: var(--text-dim); font-size: 12px; margin-bottom: 20px; }
.rg-badge { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-weight: 700; }
.age-badge { background: var(--ruby); color: #fff; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 13px; }
.legal { color: #5d7a67; font-size: 11.5px; line-height: 1.7; border-top: 1px solid var(--line); padding-top: 18px; }

/* SEO accordion */
/* ---------- SEO-блок: собственная плашка со сворачиванием ---------- */
.seo-block {
  margin-top: 50px; padding: 30px 34px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.seo-block > h2 {
  font-size: 21px; color: var(--text-gold); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.seo-text { color: var(--text-dim); font-size: 13.5px; line-height: 1.8; }
.seo-text h3 {
  font-family: var(--font-display); font-size: 16px; color: var(--text-gold);
  letter-spacing: 0.04em; margin: 24px 0 8px;
}
.seo-text h3:first-child { margin-top: 0; }
.seo-text p + p { margin-top: 12px; }
.seo-text b, .seo-text strong { color: var(--text); }
.seo-text a { color: var(--gold); font-weight: 700; }

/* Свёрнутое состояние навешивает JS — без него текст виден целиком,
   так что краулер и режим без скриптов получают его полностью. */
.seo-block.clamped .seo-text { position: relative; max-height: 220px; overflow: hidden; }
.seo-block.clamped .seo-text::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 120px; pointer-events: none;
  background: linear-gradient(transparent, var(--panel));
}
.seo-more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: 1px solid var(--line-gold); border-radius: 10px;
  color: var(--text-gold); font-weight: 700; font-size: 13px; transition: 0.2s;
}
.seo-more:hover { border-color: var(--gold); color: var(--gold); background: rgba(255, 212, 59, 0.06); }
.seo-more .ar { transition: transform 0.25s; }
.seo-block:not(.clamped) .seo-more .ar { transform: rotate(180deg); }
@media (max-width: 620px) { .seo-block { padding: 22px 18px; } }

/* ============================================================
   MODALS
   ============================================================ */
.modal-back {
  position: fixed; inset: 0; z-index: 200; background: rgba(2, 8, 5, 0.78); backdrop-filter: blur(5px);
  display: none; align-items: center; justify-content: center; padding: 18px; overflow-y: auto;
}
.modal-back.open { display: flex; animation: fadeIn 0.25s; }
.modal {
  width: min(880px, 100%); background: linear-gradient(180deg, #0e2a1b, #0a1f14);
  border: 1px solid var(--line-gold); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  overflow: hidden; position: relative; animation: pop 0.28s ease; margin: auto;
}
.modal.small { width: min(430px, 100%); }
.modal-close { position: absolute; top: 12px; right: 14px; font-size: 20px; color: var(--text-dim); z-index: 5; padding: 6px; }
.modal-close:hover { color: var(--gold); }

.auth-grid { display: grid; grid-template-columns: 1fr 1.05fr; }
.auth-art { position: relative; min-height: 500px; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-art .art-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 26px; background: linear-gradient(transparent, rgba(4, 14, 9, 0.95)); }
.auth-art .art-copy b { display: block; font-family: var(--font-display); color: var(--gold); font-size: 21px; margin-bottom: 4px; }
.auth-art .art-copy span { color: var(--text-dim); font-size: 13px; }
.auth-form { padding: 30px 32px; }
.auth-form h2 { font-size: 24px; color: var(--text); margin-bottom: 18px; }
.auth-tabs { display: flex; background: rgba(6, 19, 13, 0.6); border-radius: 999px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--line); }
.auth-tab { flex: 1; text-align: center; padding: 10px; font-size: 13.5px; font-weight: 700; color: var(--text-dim); border-radius: 999px; transition: 0.2s; }
.auth-tab.on { background: linear-gradient(180deg, #1ddb70, #00a344); color: #fff; }
.field { margin-bottom: 13px; position: relative; }
.field input {
  width: 100%; background: rgba(6, 19, 13, 0.6); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 44px 14px 16px; color: var(--text); font-size: 14.5px; font-family: inherit; outline: none; transition: 0.2s;
}
.field input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(0, 200, 83, 0.15); }
.field .eye { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); color: var(--text-dim); font-size: 16px; }
.promo-toggle { color: var(--gold); font-size: 13px; font-weight: 700; margin-bottom: 13px; display: inline-flex; gap: 6px; align-items: center; }
/* ---------- Поля формы: подпись, подсказка, инлайн-ошибка ---------- */
.fld { margin-bottom: 15px; }
.fld .field { margin-bottom: 0; }
.fld-label {
  display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim);
}
.fld-hint { margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: #6f9a83; }
.fld-msg { display: none; }
.fld.has-error .fld-msg {
  display: flex; align-items: flex-start; gap: 6px; margin-top: 7px;
  font-size: 12px; line-height: 1.45; color: #ff9d9d;
}
.fld.has-error .fld-msg::before {
  content: '!'; flex-shrink: 0; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
  background: var(--ruby); color: #fff; font-size: 10px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.fld.has-error .field input,
.fld.has-error .cur-pick { border-color: var(--ruby); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.16); }
.fld.has-error .fld-hint { display: none; }

/* ---------- Выбор валюты ---------- */
.cur-pick {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  padding: 5px; background: rgba(6, 19, 13, 0.6); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cur-opt { position: relative; cursor: pointer; }
.cur-opt input {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer;
}
.cur-opt span { display: block; text-align: center; pointer-events: none; }
.cur-opt .cur-sym { font-size: 17px; font-weight: 800; line-height: 1.1; color: var(--text-dim); transition: 0.2s; }
.cur-opt .cur-code { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; color: var(--text-dim); transition: 0.2s; }
.cur-opt { border-radius: 10px; padding: 8px 4px 7px; border: 1px solid transparent; transition: 0.2s; }
.cur-opt:hover { background: rgba(255, 255, 255, 0.04); }
/* .on дублирует :has() — выбор виден и в браузерах без его поддержки */
.cur-opt:has(input:checked), .cur-opt.on {
  background: linear-gradient(180deg, #1ddb70, #00a344); border-color: #4dffa0;
  box-shadow: 0 4px 14px rgba(0, 200, 83, 0.35);
}
.cur-opt:has(input:checked) .cur-sym, .cur-opt:has(input:checked) .cur-code,
.cur-opt.on .cur-sym, .cur-opt.on .cur-code { color: #04170d; }
.cur-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ---------- Свой чекбокс ---------- */
.check { display: flex; gap: 10px; font-size: 12px; color: var(--text-dim); margin-bottom: 10px; line-height: 1.55; cursor: pointer; align-items: flex-start; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .cb {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px;
  border: 1.5px solid var(--line); background: rgba(6, 19, 13, 0.6); transition: 0.18s;
  display: flex; align-items: center; justify-content: center;
}
.check .cb::after {
  content: ''; width: 9px; height: 5px; margin-top: -2px;
  border-left: 2px solid #04170d; border-bottom: 2px solid #04170d;
  transform: rotate(-45deg) scale(0.4); opacity: 0; transition: 0.18s;
}
.check:hover .cb { border-color: var(--gold-deep); }
.check input:checked + .cb { background: linear-gradient(180deg, #1ddb70, #00a344); border-color: #4dffa0; }
.check input:checked + .cb::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.check input:focus-visible + .cb { outline: 2px solid var(--gold); outline-offset: 2px; }
.fld.has-error .check .cb { border-color: var(--ruby); box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.16); }
.check .ct { flex: 1; }
.check a { color: var(--gold); text-decoration: underline; }
.socials-row { display: flex; gap: 10px; margin-top: 16px; }
.soc-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; transition: 0.2s; }
.soc-btn:hover { border-color: var(--gold-deep); background: rgba(255, 255, 255, 0.1); }
.or-sep { display: flex; align-items: center; gap: 12px; color: var(--text-dim); font-size: 12px; margin-top: 16px; text-transform: uppercase; letter-spacing: 0.15em; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-switch { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--text-dim); }
.auth-switch a { color: var(--gold); font-weight: 700; }

/* ---------- Fortune wheel modal ---------- */
.wheel-modal { text-align: center; padding: 34px 30px 30px; overflow: hidden; }
.wheel-modal h2 { color: var(--gold); font-size: 24px; margin-bottom: 4px; }
.wheel-modal h2 .orn { color: var(--gold-deep); font-size: 0.7em; vertical-align: 2px; }
.wheel-modal p { color: var(--text-dim); font-size: 13.5px; margin-bottom: 18px; }
.wheel-wrap { position: relative; width: min(320px, 78vw); margin: 6px auto 18px; }
.wheel-glow { position: absolute; inset: -14%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 212, 59, 0.35), rgba(255, 212, 59, 0.12) 55%, transparent 72%); animation: pulse 2.6s infinite; pointer-events: none; }
.wheel-pin {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent;
  border-top: 26px solid var(--gold); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.65));
}
.wheel-pin::after { content: ''; position: absolute; top: -24px; left: -6px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #b6ffd9, var(--emerald)); box-shadow: 0 0 8px var(--emerald); }
.wheel-img {
  /* height:auto обязателен: presentational-атрибут height у <img> иначе перебивает aspect-ratio */
  width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%;
  transition: transform 4.2s cubic-bezier(0.12, 0.6, 0.08, 1);
  filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.6));
}
.wheel-hub2 {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  border: 3px solid var(--gold-deep); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), var(--glow-gold);
  overflow: hidden; z-index: 3; background: #06130d;
}
.wheel-hub2 img { width: 100%; height: 100%; object-fit: cover; }
.wheel-burst { position: absolute; inset: 0; margin: auto; width: 20px; height: 20px; border-radius: 50%; pointer-events: none; z-index: 4; opacity: 0; }
.wheel-burst.go { animation: burst 0.9s ease-out; }
@keyframes burst {
  0% { opacity: 0.9; box-shadow: 0 0 0 0 rgba(255, 212, 59, 0.85), 0 0 0 0 rgba(0, 200, 83, 0.5); }
  100% { opacity: 0; box-shadow: 0 0 60px 160px rgba(255, 212, 59, 0), 0 0 30px 90px rgba(0, 200, 83, 0); }
}
.wheel-prizes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.wp-chip { font-size: 10.5px; font-weight: 700; color: var(--text-dim); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; transition: 0.3s; }
.wp-chip.win { color: #3d2b00; background: linear-gradient(180deg, #ffe792, #d4a63a); border-color: #fff3c4; box-shadow: var(--glow-gold); transform: scale(1.12); }
.wheel-result { font-family: var(--font-display); font-size: 19px; color: var(--emerald); min-height: 26px; margin-bottom: 12px; }
#spinBtn.spinning { opacity: 0.75; pointer-events: none; filter: saturate(0.7); }
.wm-spark { position: absolute; color: var(--gold); opacity: 0.6; pointer-events: none; animation: pulse 2.2s infinite; }
.wm-spark.s1 { top: 18px; left: 22px; font-size: 15px; }
.wm-spark.s2 { top: 60px; right: 30px; font-size: 11px; animation-delay: 0.5s; }
.wm-spark.s3 { bottom: 120px; left: 16px; font-size: 12px; animation-delay: 1s; }
.wm-spark.s4 { bottom: 80px; right: 18px; font-size: 16px; animation-delay: 1.5s; }

/* ---------- Cookie bar ---------- */
.cookie-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 150;
  width: min(680px, calc(100% - 24px));
  background: var(--panel); border: 1px solid var(--line-gold); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--text-dim);
}
.cookie-bar.hidden { display: none; }

/* ---------- Live chat bubble ---------- */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 140; width: 54px; height: 54px; border-radius: 50%;
  background: #0a1f15; border: 2px solid var(--gold-deep); font-size: 23px;
  box-shadow: var(--glow-green), var(--shadow); transition: transform 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.chat-fab:hover { transform: scale(1.08); }

/* ---------- Fake live chat ---------- */
.chat-panel {
  position: fixed; right: 18px; bottom: 84px; z-index: 160;
  width: 340px; max-width: calc(100vw - 24px); height: 460px; max-height: calc(100vh - 120px);
  background: linear-gradient(180deg, #0e2a1b, #0a1f14);
  border: 1px solid var(--line-gold); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; animation: pop 0.25s ease; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--forest-deep); border-bottom: 1px solid var(--line-gold); }
.chat-head img { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--gold-deep); background: #06130d; }
.chat-head .c-name { font-weight: 800; font-size: 14px; }
.chat-head .c-status { font-size: 11.5px; color: var(--emerald); display: flex; align-items: center; gap: 5px; }
.chat-head .c-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 6px var(--emerald); }
.chat-head .chat-close { margin-left: auto; color: var(--text-dim); font-size: 17px; padding: 4px 6px; }
.chat-head .chat-close:hover { color: var(--gold); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 9px; scrollbar-width: thin; scrollbar-color: var(--forest) transparent; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; animation: slideIn 0.25s ease; }
.msg.agent { align-self: flex-start; background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.user { align-self: flex-end; background: linear-gradient(180deg, #1ddb70, #00a344); color: #fff; border-bottom-right-radius: 4px; }
.msg.typing { display: flex; gap: 4px; align-items: center; padding: 12px 14px; }
.msg.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: pulse 1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: 0.2s; }
.msg.typing i:nth-child(3) { animation-delay: 0.4s; }
.chat-quick { display: flex; gap: 7px; padding: 0 14px 10px; flex-wrap: wrap; }
.chat-quick button { font-size: 12px; font-weight: 700; color: var(--text-gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 6px 12px; transition: 0.2s; }
.chat-quick button:hover { background: rgba(212, 166, 58, 0.15); }
.chat-input { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: rgba(6, 19, 13, 0.6); }
.chat-input input { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; color: var(--text); font-size: 13.5px; font-family: inherit; outline: none; }
.chat-input input:focus { border-color: var(--emerald); }
.chat-input button { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(180deg, #ffe792, #c9932a); color: #3d2b00; font-size: 16px; flex-shrink: 0; }
@media (max-width: 720px) { .chat-panel { bottom: 150px; right: 12px; } }

/* ---------- Колесо фортуны у левого края (ПК) ---------- */
.wheel-fab {
  position: fixed; left: -52px; top: 50%; transform: translateY(-50%); z-index: 140;
  width: 118px; height: 118px; padding: 0;
  transition: left 0.3s ease, filter 0.3s;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 14px rgba(255, 212, 59, 0.35));
}
.wheel-fab img { width: 100%; height: 100%; object-fit: contain; animation: spinSlow 14s linear infinite; }
.wheel-fab:hover { left: -8px; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 22px rgba(255, 212, 59, 0.65)); }
.wheel-fab:hover img { animation-duration: 2.5s; }
.wf-badge {
  position: absolute; top: 2px; right: -14px;
  background: linear-gradient(180deg, #ff6b4a, var(--ruby)); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  animation: bounce 2s infinite; white-space: nowrap;
}
.wf-center {
  position: absolute; inset: 0; border-radius: 50%; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(4, 16, 10, 0.78) 40%, rgba(4, 16, 10, 0.35) 62%, transparent 74%);
  font-family: var(--font-display); font-size: 15px; font-weight: 800; line-height: 1.2;
  color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9); opacity: 0; transition: opacity 0.25s;
}
.wheel-fab:hover .wf-center { opacity: 1; }
.wheel-fab:hover .wf-badge { opacity: 0; }
.wf-badge { transition: opacity 0.2s; }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@media (max-width: 720px) { .wheel-fab { display: none; } }

/* ---------- Marquee divider ---------- */
.marquee { overflow: hidden; background: linear-gradient(90deg, var(--forest-deep), var(--forest), var(--forest-deep)); border-block: 1px solid var(--line-gold); margin-top: 44px; padding: 9px 0; }
.marquee-inner { display: flex; gap: 34px; white-space: nowrap; font-family: var(--font-display); font-size: 13px; letter-spacing: 0.28em; color: var(--text-gold); text-transform: uppercase; animation: marquee 26s linear infinite; width: max-content; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.vis { opacity: 1; transform: none; }

/* ---------- Mobile bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; display: none;
  background: rgba(6, 19, 13, 0.97); border-top: 1px solid var(--line-gold); backdrop-filter: blur(10px);
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
}
.tabbar-inner { display: grid; grid-template-columns: repeat(5, 1fr); }
.tb-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; color: var(--text-dim); padding: 4px 0; }
.tb-item .i { font-size: 20px; display: flex; align-items: center; justify-content: center; height: 24px; }
.tb-ico { width: 26px; height: 26px; object-fit: contain; }
.tb-item.on { color: var(--gold); }
.tb-item.wheel-tab .i {
  width: 46px; height: 46px; margin-top: -24px; border-radius: 50%;
  background: #0a1f15; border: 2px solid var(--gold-deep); box-shadow: var(--glow-gold);
}
.tb-item.wheel-tab .tb-ico { width: 34px; height: 34px; }

/* Mobile drawer */
.drawer-back { position: fixed; inset: 0; z-index: 180; background: rgba(2, 8, 5, 0.7); display: none; }
.drawer-back.open { display: block; }
.drawer {
  position: fixed; top: 0; bottom: 0; right: -300px; width: 290px; z-index: 190;
  background: linear-gradient(180deg, #0e2a1b, #081a11); border-left: 1px solid var(--line-gold);
  transition: right 0.3s ease; padding: 20px; overflow-y: auto;
}
.drawer.open { right: 0; }
.drawer nav { margin-top: 22px; display: grid; gap: 4px; }
.drawer nav a { padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--text-dim); display: flex; gap: 12px; align-items: center; }
.drawer nav a:hover, .drawer nav a.active { background: rgba(0, 200, 83, 0.1); color: var(--text-gold); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(0.94) translateY(8px); } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-18px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Компактная шапка на средних ширинах — чтобы ничего не вылезало за экран */
@media (max-width: 1420px) {
  .main-nav { gap: 0; }
  .main-nav a { font-size: 11.5px; padding: 8px 7px; }
  .logo img { width: 40px; height: 40px; }
  .logo-text b { font-size: 15px; }
  .logo-text i { font-size: 9px; letter-spacing: 0.42em; }
  .lang-btn { padding: 8px 9px; gap: 5px; }
  .header-actions { gap: 7px; }
  .header-actions .btn-sm { padding: 9px 13px; font-size: 11px; }
  .header-inner { gap: 12px; }
}
@media (max-width: 1200px) {
  .main-nav { display: none; }
  .burger { display: block; order: 10; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .auth-grid { grid-template-columns: minmax(0, 1fr); }
  .auth-art { min-height: 170px; }
  .auth-art .art-copy { padding: 16px 20px; }
  .auth-form { padding: 24px 20px; }
  .auth-form .btn-lg { font-size: 13.5px; padding: 14px 12px; width: 100%; }
  .auth-art .art-copy b { font-size: 17px; }
  .bonus-card { grid-template-columns: 1fr; }
  .bonus-card .b-art { min-height: 190px; order: -1; }
  .bonus-card .b-art::after { background: linear-gradient(0deg, var(--panel), transparent 55%); }
  .jp-body { padding-left: 20px; }
  .jackpot-strip .jp-bg::after { background: rgba(6, 19, 13, 0.72); }
  .jp-tiers { grid-template-columns: repeat(2, 1fr); }
  .game-view { grid-template-columns: 1fr; }
  .game-view .gv-cover { max-width: 300px; margin-inline: auto; }
  /* Пьедестал: вертикально, чемпион первым */
  .podium { grid-template-columns: 1fr; gap: 20px; align-items: stretch; padding: 0; }
  .pod-col:has(.pod-card2.first) { order: -1; }
  .pod-card2, .pod-card2.first, .pedestal { max-width: 420px; }
  .pedestal { height: 42px; }
  .pedestal.first { height: 54px; }
  .pedestal.first span { font-size: 26px; }
}

@media (max-width: 720px) {
  :root { --header-h: 62px; }
  body { padding-bottom: 74px; }
  .tabbar { display: block; }
  .header-actions .btn-outline.login-btn { display: none; }
  .lang-btn { padding: 7px 8px; gap: 4px; }
  .header-inner { gap: 10px; }
  .logo img { width: 38px; height: 38px; }
  .logo-text b { font-size: 14px; }
  .logo-text i { font-size: 8.5px; letter-spacing: 0.38em; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: 11px; }
  .reg-badge::after { right: -5px; top: -7px; font-size: 12px; }
  .burger { padding: 4px 6px; font-size: 22px; }
}

/* Очень узкие экраны: язык — только флаг */
@media (max-width: 480px) {
  .lang-label { display: none; }
  .logo-text b { font-size: 13px; }
  .logo-text i { font-size: 8px; letter-spacing: 0.32em; }
  .header-actions .btn-sm { padding: 8px 10px; }
  .hero-track { height: 470px; }
  .hero-copy { padding: 26px 20px; }
  .hero-title { font-size: clamp(22px, 6.6vw, 28px); }
  .hero-sub { font-size: 14px; margin-bottom: 18px; }
  .hero-copy .btn-lg { font-size: 13px; padding: 13px 20px; }
  .sec-title { font-size: 18px; gap: 9px; }
  .banner-title { font-size: 21px; }
  .seo-block > h2 { font-size: 18px; }
  .page-hero .ph-body h1 { font-size: clamp(22px, 6.6vw, 28px); }
  .lobby-search .btn { padding: 12px 16px; font-size: 12px; }
  .sec-link { white-space: nowrap; font-size: 12px; }

  /* На Live RTP в шапке раздела H1 и живой статус не расходятся по ширине —
     статус уезжает под заголовок. */
  body[data-page="live-rtp"] .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* На узком тайле EXCLUSIVE и бейдж RTP не расходятся по верхнему краю —
     живой RTP уводим вниз обложки, там места достаточно. */
  .game-card .temp-badge { top: auto; bottom: 8px; }
  .badge, .temp-badge { font-size: 9.5px; padding: 2px 7px; letter-spacing: 0.02em; }

  /* На мобиле копия лежит на всю ширину арта, а десктопный градиент затемняет только
     левый край. Подложку не трогаем — картинка остаётся как есть, читаемость даёт тень букв. */
  .hero-copy, .banner-body, .page-hero .ph-body, .jp-body {
    text-shadow: 0 1px 3px rgba(2, 8, 5, 1), 0 2px 12px rgba(2, 8, 5, 0.95), 0 0 26px rgba(2, 8, 5, 0.85);
  }
  .hero-title, .page-hero .ph-body h1, .banner-title, .jp-total {
    text-shadow: 0 1px 4px rgba(2, 8, 5, 1), 0 3px 16px rgba(2, 8, 5, 0.98), 0 0 32px rgba(2, 8, 5, 0.9);
  }
  /* У кнопок своя заливка — тень на их подписи только пачкает */
  .hero-copy .btn, .banner-body .btn, .page-hero .ph-body .btn, .jp-body .btn { text-shadow: none; }
  .hero-arr { display: none; }
  .hero-slide .bg img { object-position: 72% center; }
  .banner-body { padding: 26px 22px; }
  .page-hero .ph-body { padding: 34px 22px; }
  .game-row { grid-auto-columns: 138px; }
  .games-grid { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
  .cd-cell { width: 58px; }
  .chat-fab { bottom: 84px; }
  .cookie-bar { bottom: 80px; flex-wrap: wrap; }
  /* В одну колонку левое выравнивание разваливается — центрируем весь футер */
  .footer-grid { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .f-col a:hover { padding-left: 0; }
  .rg-row { justify-content: center; text-align: center; }
  .legal { text-align: center; }
  .site-footer { padding-bottom: 40px; }
  .pod-ava { width: 54px; height: 54px; }
  .pod-medal2 { width: 56px; height: 56px; margin-bottom: -28px; }
  .pod-win { font-size: 15px; }
  .pod-user { font-size: 13px; }
  .sec-head { margin-top: 26px; }
}

/* ============================================================
   ДОПОЛНЕНИЯ ПО СТАНДАРТУ ЛИНЕЙКИ
   ============================================================ */

/* ---------- Доступность ---------- */
.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;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

/* Анимации по видимости и стоп в простое; полное глушение по системной настройке. */
@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;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Поиск в шапке: кнопка + раскрывающаяся строка ---------- */
.hdr-search-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; font-size: 15px; line-height: 1;
  border: 1px solid var(--line); border-radius: 10px; color: var(--text-dim); transition: 0.2s;
}
.hdr-search-toggle:hover { border-color: var(--gold-deep); color: var(--text-gold); }
/* На узких ширинах язык живёт в drawer — в шапке место отдаём поиску */
@media (max-width: 900px) { .header-actions .lang { display: none; } }
.hdr-search-toggle[aria-expanded="true"] { border-color: var(--gold); color: var(--gold); }
.hdr-search-row { border-top: 1px solid var(--line); background: var(--bg-2); padding: 12px 0; }
.hdr-search-row form { display: flex; gap: 10px; align-items: center; }
.hdr-search-row .search-box { flex: 1; }
.hdr-search-row input {
  width: 100%; background: transparent; border: none; color: var(--text); font: 600 14px var(--font-ui);
}
.hdr-search-row input:focus { outline: none; }

/* Поиск в лобби главной */
.lobby-search { display: flex; gap: 10px; margin: 24px 0 6px; }
.lobby-search .search-box { flex: 1; min-width: 0; }   /* без min-width:0 поле не сжимается и кнопка вылезает */
.lobby-search input {
  width: 100%; background: transparent; border: none; color: var(--text);
  font: 600 14px var(--font-ui);
}
.lobby-search input:focus { outline: none; }

/* ---------- Кнопки-ссылки ---------- */
.linkish { color: var(--gold); font-weight: 800; text-decoration: underline; }
.forgot { color: var(--gold); font-size: 13px; font-weight: 700; display: inline-block; }
.f-col a:hover, .rg-row a:hover { color: var(--gold); }
a.rg-badge { transition: border-color 0.2s, color 0.2s; }
a.rg-badge:hover { border-color: var(--gold-deep); }

/* ---------- Мелочи, вынесенные из инлайн-стилей ---------- */
.ov-demo { color: var(--text-dim); font-size: 12px; font-weight: 700; }
.gv-badges { position: static; flex-direction: row; margin-bottom: 10px; }
.vip-rate { color: var(--text-gold); font-weight: 700; }
.dim { color: var(--text-dim); }
.medal { width: 26px; height: 26px; }
.rtp-val.up, .rtp-trend.up, .gv-stat b.up { color: var(--emerald); }
.rtp-val.down, .rtp-trend.down, .gv-stat b.down { color: var(--ruby); }
.drawer-cta { margin-top: 18px; display: grid; gap: 10px; }
/* Выбор языка в drawer: в шапке дропдаун скрыт на узких экранах */
.drawer-lang { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.dl-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--text-dim); transition: 0.2s;
}
.dl-btn:hover, .dl-btn[aria-expanded="true"] { border-color: var(--gold-deep); color: var(--text-gold); }
.dl-cur { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text); }
.dl-btn .ar { margin-left: auto; transition: transform 0.25s; font-size: 10px; }
.dl-btn[aria-expanded="true"] .ar { transform: rotate(180deg); }
.dl-list {
  margin-top: 8px; max-height: 240px; overflow-y: auto;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(6, 19, 13, 0.6);
}
.dl-list button {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  font-size: 13px; color: var(--text-dim); text-align: left; transition: 0.15s;
  border-bottom: 1px solid rgba(29, 74, 50, 0.5);
}
.dl-list button:last-child { border-bottom: none; }
.dl-list button:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.dl-list button.cur { color: var(--gold); }
.dl-code { margin-left: auto; font-size: 11px; color: var(--text-dim); }
.drawer-age { margin-top: 14px; display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 12px; }
.drawer-age .age-badge { width: 32px; height: 32px; font-size: 11px; }
.tb-item { width: 100%; }

/* ---------- Тост-уведомление (имитация отклика) ---------- */
.rm-toast {
  position: fixed; left: 50%; bottom: 92px; transform: translate(-50%, 20px);
  z-index: 400; max-width: min(420px, calc(100vw - 32px));
  background: var(--panel-2); border: 1px solid var(--line-gold); border-radius: 12px;
  padding: 13px 18px; color: var(--text); font-size: 13.5px; line-height: 1.5;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.rm-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- VIP: видимый прогресс ---------- */
.vip-progress { padding: 24px; margin-top: 22px; }
.vipp-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 16px; }
.vipp-kicker { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.vipp-now { font-family: var(--font-display); font-size: 22px; color: var(--text-gold); display: flex; align-items: center; gap: 10px; }
.vipp-next { text-align: right; font-size: 13px; color: var(--text-dim); }
.vipp-next b { display: block; color: var(--text); font-size: 14px; }
.vipp-next span { color: var(--emerald); font-weight: 700; }
.vipp-track { height: 20px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.vipp-track i {
  display: flex; align-items: center; justify-content: flex-end; height: 100%;
  background: linear-gradient(90deg, var(--forest), var(--emerald)); border-radius: 999px;
  transition: width 0.9s ease;
}
.vipp-track i span { font-size: 11px; font-weight: 800; color: #04170d; padding-right: 10px; }
.vipp-nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); margin-top: 8px; }
.vipp-steps { display: flex; gap: 6px; list-style: none; margin-top: 18px; flex-wrap: wrap; }
.vipp-steps li {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); color: var(--text-dim); font-size: 12px; font-weight: 800; background: var(--bg-2);
}
.vipp-steps li.done { border-color: var(--emerald); color: var(--emerald); }
.vipp-steps li.cur { border-color: var(--gold); color: #04170d; background: var(--gold); box-shadow: var(--glow-gold); }
@media (max-width: 620px) { .vipp-next { text-align: left; } }

/* ---------- What players say ---------- */
.say-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.say-card { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.say-card blockquote { font-size: 14px; line-height: 1.7; color: var(--text); }
.say-card figcaption { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 14px; }
.say-card figcaption b { color: var(--text-gold); font-size: 14px; }
.say-card figcaption span { color: var(--text-dim); font-size: 12px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq-item .acc-head { font-size: 14.5px; }
.faq-item .acc-body p { font-size: 13.5px; line-height: 1.75; color: var(--text-dim); }

/* ---------- Текстовые (юридические и справочные) страницы ---------- */
.doc-layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; margin-top: 26px; align-items: start; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 14px); padding: 20px; }
.doc-nav h2 { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-gold); margin-bottom: 12px; }
.doc-nav a { display: block; padding: 7px 0; font-size: 13px; color: var(--text-dim); border-bottom: 1px solid rgba(29, 74, 50, 0.5); }
.doc-nav a:last-child { border-bottom: none; }
.doc-nav a:hover, .doc-nav a.on { color: var(--gold); }
.doc { padding: 30px 34px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(26px, 3.4vw, 38px); color: var(--text-gold); margin-bottom: 6px; }
.doc .doc-meta { color: var(--text-dim); font-size: 12.5px; margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.doc h2 { font-family: var(--font-display); font-size: 20px; color: var(--text-gold); margin: 28px 0 10px; }
.doc h3 { font-size: 15px; color: var(--text); margin: 20px 0 8px; }
.doc p, .doc li { font-size: 14px; line-height: 1.8; color: var(--text-dim); }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { margin: 12px 0 12px 22px; display: grid; gap: 7px; }
.doc strong, .doc b { color: var(--text); }
.doc a { color: var(--gold); font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 13.5px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; color: var(--text-dim); }
.doc th { color: var(--text-gold); font-weight: 800; background: var(--bg-2); }
.doc-callout { border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 18px 20px; margin: 20px 0; background: rgba(255, 212, 59, 0.05); }
.doc-callout p { color: var(--text); }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-nav { position: static; } .doc { padding: 24px 20px; } }

/* ---------- Страница платежей ---------- */
/* Три в ряд: при auto-fit карточек становилось пять и значения ломались на две строки */
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 20px 0; justify-content: center; }
@media (max-width: 1000px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .pay-grid { grid-template-columns: 1fr; } }
.pay-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }

.pay-card dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; font-size: 12.5px; margin: 0; }
.pay-card dt { color: var(--text-dim); }
.pay-card dd { color: var(--text); font-weight: 700; text-align: right; margin: 0; }

/* ---------- Поддержка / контакты ---------- */
.help-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.help-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.help-card h3 { font-size: 16px; color: var(--text-gold); }
.help-card p { font-size: 13.5px; color: var(--text-dim); line-height: 1.65; }

/* ---------- 404 ---------- */
.err-page { text-align: center; padding: 70px 20px 40px; max-width: 640px; margin-inline: auto; }
.err-code { font-family: var(--font-display); font-size: clamp(72px, 16vw, 140px); line-height: 1; color: var(--gold); text-shadow: var(--glow-gold); }
.err-page h1 { font-family: var(--font-display); font-size: clamp(24px, 4vw, 34px); color: var(--text-gold); margin: 10px 0 14px; }
.err-page p { color: var(--text-dim); font-size: 14.5px; line-height: 1.75; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.err-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 34px; }
.err-links a { border: 1px solid var(--line); border-radius: 10px; padding: 9px 15px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.err-links a:hover { border-color: var(--gold-deep); color: var(--gold); }

/* Заголовки, поднятые с h3 на h2 ради иерархии страниц */
.help-card h2 { font-size: 16px; color: var(--text-gold); }
.pay-card h2 { font-size: 15px; color: var(--text-gold); text-align: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.doc .doc-callout p b { color: var(--text-gold); }
.empty-note { grid-column: 1 / -1; color: var(--text-dim); text-align: center; padding: 40px 0; }
.t-cd-label { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.gv-info h1.display { font-size: clamp(24px, 3.4vw, 34px); }

/* ---------- FAQ: призыв к поддержке в конце страницы ---------- */
.faq-cta { margin-top: 22px; padding: 32px 28px; text-align: center; }
.faq-cta h2 { font-family: var(--font-display); font-size: 22px; color: var(--text-gold); margin-bottom: 8px; }
.faq-cta p { color: var(--text-dim); font-size: 14px; line-height: 1.7; max-width: 520px; margin-inline: auto; }
.faq-cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
