@import url("normalize.css");

/* ============================================================
   COWBOYSPIN — modern premium redesign
   Dark matte green-black · refined gold · clean type
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #0a120d;
  --bg-elev:   #0e1812;
  --surface:   #121d16;
  --surface-2: #16241c;
  --line:      rgba(255, 255, 255, 0.07);
  --line-2:    rgba(255, 255, 255, 0.12);
  --line-gold: rgba(232, 184, 75, 0.22);

  /* brand */
  --gold:      #e8b84b;
  --gold-hi:   #f7d579;
  --gold-deep: #b6862c;
  --green:     #2dbb6b;
  --green-deep:#1f7d49;
  --rust:      #c0492f;

  /* text */
  --text:   #f1efe5;
  --muted:  #94a698;
  --faint:  #5f7167;

  /* shape */
  --btn-radius: 999px;     /* tweakable */
  --radius:   16px;
  --radius-sm:10px;
  --radius-lg:24px;

  --maxw: 1240px;
  --header-h: 72px;

  --shadow:   0 24px 60px -20px rgba(0,0,0,0.7);
  --shadow-sm:0 8px 24px -10px rgba(0,0,0,0.6);
  --glow:     0 0 40px -8px rgba(232,184,75,0.45);

  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* button-style tweak variants */
html[data-btn-style="rounded"] { --btn-radius: 12px; }
html[data-btn-style="sharp"]   { --btn-radius: 4px;  }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; margin: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: linear-gradient(90deg, var(--gold), transparent); }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); }
.section-head p { color: var(--muted); margin: 10px 0 0; max-width: 52ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--btn-radius);
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease), color .18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn--gold {
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  color: #2a1c05; box-shadow: 0 10px 26px -12px rgba(232,184,75,0.7);
}
.btn--gold:hover { box-shadow: 0 14px 32px -10px rgba(232,184,75,0.85), var(--glow); transform: translateY(-2px); }

.btn--green { background: linear-gradient(170deg, var(--green), var(--green-deep)); color: #eafff2; box-shadow: 0 10px 26px -14px rgba(45,187,107,0.8); }
.btn--green:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(45,187,107,0.9); }

.btn--ghost { background: rgba(255,255,255,0.02); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn--lg { min-height: 56px; padding: 0 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ---------- placeholder art ---------- */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 12px, rgba(255,255,255,0.05) 12px 24px),
    radial-gradient(120% 120% at 30% 20%, rgba(232,184,75,0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph__tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--faint); background: rgba(0,0,0,0.35); padding: 5px 9px; border-radius: 6px;
  border: 1px solid var(--line); text-align: center;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,18,13,0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(8,15,11,0.9); }
.header__inner { display: flex; align-items: center; gap: 18px; height: 100%; }

.burger {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0 11px; border-radius: var(--btn-radius);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line); flex: 0 0 auto;
}
.burger span { height: 2px; width: 100%; background: var(--text); border-radius: 2px; transition: .25s var(--ease); }
.burger:hover { border-color: var(--gold); }
.burger:hover span { background: var(--gold); }

.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { height: 38px; width: auto; }

.header__nav { display: flex; gap: 4px; margin-left: 8px; flex: 1 1 auto; }
.header__nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14.5px; color: var(--muted);
  transition: color .18s, background .18s;
}
.header__nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.header__nav a.active { color: var(--gold); }

.header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.support-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 15px; border-radius: 999px; font-weight: 700; font-size: 13.5px;
  color: var(--green); background: rgba(45,187,107,0.10); border: 1px solid rgba(45,187,107,0.28);
  transition: .18s; white-space: nowrap;
}
.support-pill:hover { background: rgba(45,187,107,0.18); }
.support-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(45,187,107,0.25); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

.missions-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; color: #e9ecff;
  background: linear-gradient(160deg, #5b6cff, #3a45c2); border: 1px solid rgba(255,255,255,0.14);
}
.missions-pill:hover { filter: brightness(1.08); }

/* ============================================================
   DRAWER (mobile menu)
   ============================================================ */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; inset: 0 auto 0 0; z-index: 201; width: min(420px, 92vw);
  background: var(--bg-elev); border-right: 1px solid var(--line);
  transform: translateX(-105%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open { transform: translateX(0); box-shadow: var(--shadow); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-elev); z-index: 2; }
.drawer__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.03); color: var(--text); font-size: 20px; display: grid; place-items: center; }
.drawer__close:hover { border-color: var(--gold); color: var(--gold); }
.drawer__body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.bonus-hub-cta {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(232,184,75,0.16), rgba(45,187,107,0.06)); border: 1px solid var(--line-gold);
}
.bonus-hub-cta .ico { width: 46px; height: 46px; border-radius: 12px; flex: 0 0 auto; }
.bonus-hub-cta b { font-family: var(--font-display); font-size: 20px; }

.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drawer-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line); transition: .18s;
}
.drawer-tile:hover { border-color: var(--line-gold); transform: translateY(-2px); }
.drawer-tile .ico { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 auto; }
.drawer-tile span { font-weight: 700; font-size: 14.5px; }

.drawer-links { display: flex; flex-direction: column; margin-top: 6px; }
.drawer-links a { padding: 13px 2px; font-family: var(--font-display); font-size: 21px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer-links a:hover { color: var(--gold); }


.app-banner {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: var(--surface-2); border: 1px solid var(--line);
}
.app-banner .ph { width: 52px; height: 52px; border-radius: 12px; flex: 0 0 auto; }
.app-banner b { display: block; font-size: 15px; }
.app-banner small { color: var(--muted); font-size: 13px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: calc(var(--header-h) + 40px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 78% 30%, rgba(232,184,75,0.16), transparent 60%),
    radial-gradient(50% 60% at 12% 80%, rgba(45,187,107,0.08), transparent 60%);
}
.hero__inner { position: relative; z-index: 1; }

.hero__lead { max-width: none; margin-bottom: 32px; }
.hero__lead h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.02; margin-bottom: 16px; }
.hero__lead h1 .accent { color: var(--gold); }
.hero__lead p { color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); max-width: none; margin: 0 0 14px; }
.hero__lead p:last-child { margin-bottom: 0; }

@media (min-width: 881px) {
  .hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px 40px;
    align-items: start;
  }
  .hero__lead { margin-bottom: 0; grid-column: 1; grid-row: 1; }
  .hero__card { grid-column: 2; grid-row: 1; }
  .trust { grid-column: 1 / -1; grid-row: 2; margin-top: 8px; }
}

.hero__card {
  position: relative; display: grid; grid-template-columns: 1fr; align-items: stretch;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-gold);
  background:
    radial-gradient(120% 130% at 85% 15%, rgba(232,184,75,0.10), transparent 55%),
    linear-gradient(145deg, var(--surface-2), var(--bg-elev));
  box-shadow: var(--shadow);
}
.hero__offer {
  padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center; gap: 8px;
}
.hero__offer .btn { align-self: stretch; width: 100%; }
.hero__offer .tag { font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); font-size: 14px; }
.hero__offer .big {
  font-family: var(--font-display); font-weight: 800; line-height: 0.92;
  font-size: clamp(60px, 11vw, 132px);
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 50%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: 6px 0;
}
.hero__offer .fs { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 34px); color: var(--text); margin-bottom: 22px; }
.hero__offer .fs em { color: var(--gold); font-style: normal; }
.hero__offer .terms { color: var(--faint); font-size: 13px; margin-top: 16px; }

.hero__art {
  position: relative; display: block; min-height: 320px; border-left: 1px solid var(--line);
  color: inherit; text-decoration: none;
}
.hero__art .ph { position: absolute; inset: 0; border: none; }
.cashback-strip {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-top: 18px; padding: 16px; border-radius: var(--radius);
  background: rgba(255,255,255,0.02); border: 1px solid var(--line); color: var(--muted); font-weight: 600;
}
.cashback-strip b { color: var(--gold); }
.cashback-strip .crown { color: var(--gold); }

/* trust row */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.trust > div { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.trust b { display: block; font-family: var(--font-display); font-size: 24px; color: var(--gold); }
.trust span { color: var(--muted); font-size: 13.5px; }

/* ---------- providers marquee ---------- */
.providers { border-block: 1px solid var(--line); padding-block: 26px; overflow: hidden; }
.marquee { display: flex; gap: 56px; align-items: center; width: max-content; animation: marquee 32s linear infinite; }
.providers:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee span { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--faint); white-space: nowrap; transition: color .2s; letter-spacing: 0.02em; }
.marquee span:hover { color: var(--muted); }

/* ============================================================
   GAMES
   ============================================================ */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tab {
  padding: 10px 20px; border-radius: var(--btn-radius); font-weight: 700; font-size: 14.5px;
  color: var(--muted); background: rgba(255,255,255,0.02); border: 1px solid var(--line); transition: .18s;
}
.tab:hover { color: var(--text); border-color: var(--line-2); }
.tab.active { color: #2a1c05; background: linear-gradient(170deg, var(--gold-hi), var(--gold)); border-color: transparent; }

.games-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 32px; }
.game {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--surface); transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.game:hover { transform: translateY(-6px); border-color: var(--line-gold); box-shadow: var(--shadow-sm); }
.game__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.game__art {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
}
.game__art .ph { position: absolute; inset: 0; border: none; }
.game__meta { display: block; padding: 12px 14px; }
.game__meta b { display: block; font-size: 14.5px; font-weight: 700; }
.game__meta span { font-size: 12.5px; color: var(--faint); }
.game__play {
  position: absolute; inset: 0; display: grid; place-items: center; opacity: 0;
  background: linear-gradient(0deg, rgba(10,18,13,0.85), rgba(10,18,13,0.2));
  transition: opacity .22s;
}
.game:hover .game__play { opacity: 1; }
.game__play .btn { min-height: 42px; }
.game__badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--rust); color: #fff; }
.game__badge.hot { background: linear-gradient(170deg, var(--gold-hi), var(--gold-deep)); color: #2a1c05; }

/* ============================================================
   BONUS HUB
   ============================================================ */
.hub { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-auto-rows: 1fr; gap: 18px; }
.hub-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  padding: 26px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-elev));
  overflow: hidden; transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.hub-card:hover { transform: translateY(-5px); border-color: var(--line-gold); box-shadow: var(--shadow-sm); }
.hub-card .ico { width: 56px; height: 56px; border-radius: 14px; }
.hub-card h3 { font-size: 21px; }
.hub-card p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.hub-card .more { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 700; font-size: 14px; margin-top: 4px; }
.hub-card .more::after { content: "→"; transition: transform .2s; }
.hub-card:hover .more::after { transform: translateX(4px); }
.hub-card--feature {
  grid-row: span 2;
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(232,184,75,0.18), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg-elev));
  border-color: var(--line-gold);
}
.hub-card--feature h3 { font-size: clamp(28px, 3vw, 40px); }
.hub-card--feature .ph { width: 100%; aspect-ratio: 16/10; border-radius: var(--radius-sm); }

/* ============================================================
   PLAYER EXPERIENCE
   ============================================================ */
.xp { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.xp__text h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 18px; }
.xp__text p { color: var(--muted); font-size: 16px; margin: 0 0 26px; }
.xp__art { position: relative; aspect-ratio: 1/1; }
.xp__art .ph { position: absolute; inset: 0; border-radius: var(--radius-lg); }
.wheel-spin { cursor: pointer; transition: transform 4s cubic-bezier(.2,.8,.2,1); }

.xp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 56px; }
.xp-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.xp-card .ico { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
.xp-card h4 { font-size: 19px; margin-bottom: 8px; }
.xp-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* icon placeholder fill (small) */
.ico {
  display: grid; place-items: center;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq { max-width: 860px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; overflow: hidden; transition: border-color .2s; }
.faq-item[open] { border-color: var(--line-gold); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { position: relative; width: 20px; height: 20px; flex: 0 0 auto; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--gold); transition: transform .25s var(--ease); }
.faq-item summary .plus::before { width: 16px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 16px; }
.faq-item[open] summary .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-item__a { padding: 0 24px 24px; color: var(--muted); max-width: 70ch; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding-block: 56px 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 42px; margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); font-weight: 700; font-size: 13px; transition: .18s; }
.socials a:hover { border-color: var(--gold); color: var(--gold); }
.footer__col h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 0 0 16px; }
.footer__col a { display: block; color: var(--muted); padding: 6px 0; font-size: 14.5px; }
.footer__col a:hover { color: var(--gold); }
.footer__help b { display: block; font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; }
.footer__help a.mail { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; }
.footer__pay { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.footer__pay span { font-family: var(--font-display); font-weight: 700; color: var(--faint); font-size: 18px; }
.footer__legal { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; color: var(--faint); font-size: 13px; }
.age-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--rust); color: var(--rust); font-weight: 800; font-size: 13px; flex: 0 0 auto; }

/* ============================================================
   MODAL (auth)
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px;
  background: rgba(4,8,6,0.7); backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: .25s; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: min(440px, 100%); border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--line-gold);
  box-shadow: var(--shadow); overflow: hidden; transform: translateY(16px) scale(.98); transition: .28s var(--ease); }
.modal-overlay.open .modal { transform: none; }
.modal__head { position: relative; padding: 28px 28px 0; text-align: center; }
.modal__head img { height: 40px; margin: 0 auto 16px; }
.modal__close { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 18px; }
.modal__close:hover { color: var(--gold); border-color: var(--gold); }
.modal__tabs { display: flex; gap: 4px; padding: 6px; margin: 22px 28px 0; border-radius: 999px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); }
.modal__tabs button { flex: 1; min-height: 42px; border: none; background: transparent; border-radius: 999px; color: var(--muted); font-weight: 700; transition: .18s; }
.modal__tabs button.active { background: linear-gradient(170deg, var(--gold-hi), var(--gold)); color: #2a1c05; }
.modal__body { padding: 24px 28px 30px; display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input { height: 48px; padding: 0 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: 15px; font-family: inherit; }
.field input:focus { outline: none; border-color: var(--gold); }
.modal__body .hint { text-align: center; color: var(--muted); font-size: 13.5px; }
.modal__body .hint a { color: var(--gold); font-weight: 700; }
.reg-only { display: none; }
.modal[data-mode="register"] .reg-only { display: flex; }

/* language switcher */
.lang-wrap { position: relative; flex: 0 0 auto; }
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 14px; border-radius: var(--btn-radius);
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
  font-weight: 700; font-size: 14px; letter-spacing: 0.06em; white-space: nowrap;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.lang-toggle:hover { border-color: var(--line-gold); background: var(--surface-2); }
.lang-wrap.is-open .lang-toggle {
  border-color: var(--gold); background: var(--surface-2);
  box-shadow: 0 0 0 1px rgba(232,184,75,0.25), var(--glow);
}
.lang-flag {
  width: 22px; height: 16px; border-radius: 3px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12); flex: 0 0 auto;
}
.lang-toggle__code { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.1em; }
.lang-toggle__chev { display: inline-flex; color: var(--muted); transition: transform .2s var(--ease); }
.lang-wrap.is-open .lang-toggle__chev { transform: rotate(180deg); color: var(--gold); }

.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 60;
  min-width: 196px; max-height: min(280px, 52vh); margin: 0; padding: 6px; list-style: none;
  border-radius: var(--radius-sm); background: var(--bg-elev); border: 1px solid var(--line-gold);
  box-shadow: var(--shadow-sm), 0 0 32px -8px rgba(232,184,75,0.18);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.lang-wrap.is-open .lang-menu { opacity: 1; visibility: visible; transform: none; }
.lang-wrap.is-open .lang-menu[hidden] { display: block; }

.lang-option {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px; border-radius: 10px; border: 1px solid transparent;
  color: var(--muted); font-weight: 600; font-size: 14px;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
.lang-option:hover {
  background: linear-gradient(135deg, rgba(232,184,75,0.08), rgba(255,255,255,0.03));
  border-color: rgba(232,184,75,0.18); color: var(--text);
}
.lang-option.is-active {
  background: linear-gradient(135deg, rgba(232,184,75,0.16), rgba(232,184,75,0.06));
  border-color: rgba(232,184,75,0.55); color: var(--text);
  box-shadow: 0 0 18px -6px rgba(232,184,75,0.55), inset 0 0 0 1px rgba(232,184,75,0.12);
}
.lang-option__label { flex: 1 1 auto; }
.lang-option__code {
  font-family: var(--font-display); font-size: 11px; letter-spacing: 0.12em;
  color: var(--faint); font-weight: 800;
}
.lang-option.is-active .lang-option__code { color: var(--gold); }

.lang-wrap--drawer { width: 100%; margin-top: 8px; }
.lang-wrap--drawer .lang-toggle { width: 100%; justify-content: center; min-height: 50px; }
.lang-wrap--drawer .lang-menu { left: 0; right: 0; min-width: 0; }

@media (max-width: 400px) {
  .lang-toggle { padding: 0 10px; gap: 0; min-width: 42px; }
  .lang-toggle__code { display: none; }
}
@media (min-width: 401px) {
  .lang-toggle__code { display: inline; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
.only-mobile { display: none; }

@media (max-width: 1080px) {
  .header__nav { display: none; }
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .hub { grid-template-columns: 1fr 1fr; }
  .hub-card--feature { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .xp { grid-template-columns: 1fr; }
  .xp__art { max-width: 460px; margin-inline: auto; width: 100%; }
  .xp-cards { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__brand { grid-column: span 2; }
  .support-pill span, .missions-pill span { display: none; }
  .support-pill, .missions-pill { padding: 9px 11px; }
}

@media (max-width: 620px) {
  .only-mobile { display: inline-flex; }
  .hide-mobile { display: none !important; }
  .games-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hub { grid-template-columns: 1fr; }
  .hub-card--feature { grid-column: auto; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .footer__legal { flex-direction: column; align-items: flex-start; }
  .section-head { margin-bottom: 26px; }
  .hero__offer { padding: 28px 22px; }
}

/* ============================================================
   THEMED ARTWORK (vector / CSS, drop-in for renders)
   ============================================================ */

/* ---- icon tiles ---- */
.ico {
  background: radial-gradient(120% 120% at 30% 22%, rgba(232,184,75,0.20), rgba(232,184,75,0.04));
  border: 1px solid var(--line-gold); color: var(--gold);
}
.ico .ico-svg { width: 56%; height: 56%; }
.ico-svg { stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ico-svg .fill { fill: currentColor; stroke: none; }

/* ---- game cover art ---- */
.cover { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.cover::before { /* vignette + sheen */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(75% 60% at 50% 32%, rgba(255,255,255,0.10), transparent 70%),
              linear-gradient(0deg, rgba(0,0,0,0.4), transparent 55%);
}
.cover__sym {
  position: relative; font-family: var(--font-display); font-weight: 800;
  font-size: 52px; line-height: 1; letter-spacing: -0.02em;
  background: linear-gradient(170deg, var(--gold-hi), var(--gold) 55%, var(--gold-deep));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}
.cover__brand {
  position: absolute; bottom: 12px; left: 0; right: 0; text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: 9px; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.5);
}
.cover .spark { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,0.7); box-shadow: 0 0 8px 2px rgba(255,255,255,0.5); }
.cover .spark.s1 { top: 16%; right: 18%; } .cover .spark.s2 { bottom: 30%; left: 14%; width: 3px; height: 3px; }
.cover--0 { background: linear-gradient(150deg, #1c3a25, #0a1810); }
.cover--1 { background: linear-gradient(150deg, #3a1614, #170808); }
.cover--2 { background: linear-gradient(150deg, #2a1640, #120a22); }
.cover--3 { background: linear-gradient(150deg, #102b40, #07141f); }
.cover--4 { background: linear-gradient(150deg, #3a2a0c, #170f04); }
.cover--5 { background: linear-gradient(150deg, #0f3434, #051a1a); }

/* ---- hero slot machine ---- */
.slot-scene { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; }
.slot-scene::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 42%, rgba(232,184,75,0.22), transparent 65%); }
.slot { position: relative; width: min(72%, 360px); }
.slot__top { height: 16px; margin: 0 18px; border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #ffe79a, #c8922f); box-shadow: 0 0 22px rgba(232,184,75,0.6); }
.slot__cab { border-radius: 18px; padding: 16px; border: 2px solid rgba(255,255,255,0.18);
  background: linear-gradient(160deg, #f2c75a, #b6862c 60%, #7a4f10);
  box-shadow: inset 0 2px 6px rgba(255,255,255,0.5), inset 0 -8px 18px rgba(0,0,0,0.35), 0 24px 50px -16px rgba(0,0,0,0.7); }
.slot__screen { display: flex; gap: 8px; padding: 12px; border-radius: 11px; background: #0a0f0c; box-shadow: inset 0 0 0 3px rgba(0,0,0,0.4); }
.reel { flex: 1; aspect-ratio: 3/4; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(180deg, #fffefb, #e7e0cd); box-shadow: inset 0 -8px 14px rgba(0,0,0,0.12), inset 0 8px 10px rgba(255,255,255,0.7);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 7vw, 56px); color: #c0392b; }
.slot__lever { position: absolute; top: 34%; right: -16px; width: 8px; height: 46px; border-radius: 6px; background: linear-gradient(#c8922f, #7a4f10); }
.slot__lever::after { content: ""; position: absolute; top: -12px; left: -5px; width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff7a5c, #c0392b); box-shadow: 0 4px 10px rgba(0,0,0,0.4); }
.coin { position: absolute; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 28%, #ffe79a, #e8b84b 52%, #9c6f1f);
  color: #7a4f10; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,0.4), inset 0 0 0 2px rgba(255,255,255,0.35);
  font-family: var(--font-display); }
.coin.c1 { width: 46px; height: 46px; font-size: 22px; top: 14%; left: 8%; transform: rotate(-12deg); }
.coin.c2 { width: 34px; height: 34px; font-size: 17px; bottom: 16%; right: 12%; transform: rotate(10deg); }
.coin.c3 { width: 28px; height: 28px; font-size: 14px; bottom: 30%; left: 16%; }

/* ---- hub feature art ---- */
.hub-art { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden;
  background: radial-gradient(90% 90% at 70% 20%, rgba(232,184,75,0.22), transparent 60%), linear-gradient(150deg, #1c3a25, #0a1810);
  border: 1px solid var(--line); display: grid; place-items: center; }
.hub-art .ico { width: 76px; height: 76px; border-radius: 18px; }
.hub-art .coin { position: absolute; }
.hub-art .coin.c1 { width: 38px; height: 38px; font-size: 18px; top: 16%; left: 14%; transform: rotate(-10deg); }
.hub-art .coin.c2 { width: 28px; height: 28px; font-size: 14px; bottom: 18%; right: 18%; transform: rotate(8deg); }

/* ---- wheel of fortune ---- */
.wheel-stage { position: absolute; inset: 0; display: grid; place-items: center; }
.wheel-stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 55% at 50% 50%, rgba(232,184,75,0.2), transparent 65%); }
.wheel-pointer { position: absolute; top: 4%; left: 50%; transform: translateX(-50%); z-index: 3;
  width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 22px solid var(--gold);
  filter: drop-shadow(0 3px 4px rgba(0,0,0,0.5)); }
.wheel2 { position: relative; width: min(84%, 380px); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  background: conic-gradient(#c0392b 0 60deg, #2a7d4f 60deg 120deg, #2a5b9e 120deg 180deg, #8e44ad 180deg 240deg, #d9a14a 240deg 300deg, #b6862c 300deg 360deg);
  border: 10px solid #c8922f;
  box-shadow: 0 0 0 4px #0a0f0c, 0 0 0 6px rgba(232,184,75,0.5), 0 30px 60px -20px rgba(0,0,0,0.8);
  transition: transform 4s cubic-bezier(.18,.7,.16,1); }
.wheel2::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.18), transparent 45%); }
.wheel2__hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 26%; height: 26%; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffe79a, #c8922f 60%, #7a4f10); box-shadow: 0 0 0 4px rgba(0,0,0,0.5), inset 0 0 0 2px rgba(255,255,255,0.3);
  font-family: var(--font-display); font-weight: 800; font-size: clamp(12px, 2vw, 16px); color: #5a3a08; letter-spacing: 0.04em; }
.wheel-spin { } /* hook for JS rotate */

/* ---- review article ---- */
.review { padding-block: clamp(32px, 5vw, 64px); }
.review-block { padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.review-block:last-child { border-bottom: 0; padding-bottom: 0; }
.review-block h2 { font-size: clamp(24px, 3.2vw, 36px); margin-bottom: 18px; scroll-margin-top: calc(var(--header-h) + 16px); }
.review-block h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 28px 0 12px; color: var(--gold-hi); }
.review-block p { color: var(--muted); margin: 0 0 14px; max-width: none; }
.review-block p:last-child { margin-bottom: 0; }
.review-steps { margin: 16px 0 20px; padding-left: 1.25rem; color: var(--muted); max-width: none; }
.review-steps li { margin-bottom: 8px; padding-left: 4px; }
.review-steps li::marker { color: var(--gold); }
.review-table-wrap { overflow-x: auto; margin: 20px 0; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.review-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 280px; }
.review-table th,
.review-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table th { font-family: var(--font-display); font-weight: 700; color: var(--gold); background: rgba(232,184,75,0.06); white-space: nowrap; }
.review-table tr:last-child td { border-bottom: 0; }
.review-table td:first-child { color: var(--text); font-weight: 600; }
.review-table td { color: var(--muted); }
