/* Amber — Club 21 homepage concept, round two.
   Black with gold-yellow, warm, playful, rounded, top navigation.
   Round two carries the hero's warmth down the whole page: warm card
   surfaces, an amber cast on the section bands, and gold used as a
   structural accent in row headings, dividers and tile states. */

:root {
  --bg: #141518;
  --s1: #1C1D22;
  --s2: #24262D;
  --s3: #2B2D35;
  --border: #2E3038;

  /* Warm layer — the same darkness, shifted towards the gold */
  --warm-1: #211F1E;
  --warm-2: #2A2622;
  --warm-3: #322C25;
  --warm-border: #3B342A;
  --warm-line: rgba(255, 192, 31, .16);

  --text: #FFFFFF;
  --muted: #A2A6B3;
  --muted-warm: #B6AC9A;
  --accent: #FFC01F;
  --accent-hover: #FFCB47;
  --accent-ink: #141518;
  --orange: #FF8A00;
  --green: #4CD97B;

  --r-card: 16px;
  --r-shelf: 22px;
  --r-tile: 10px;
  --gap: 16px;
  --wrap: 1240px;
  --topbar-h: 68px;

  --shadow: 0 12px 32px rgba(0, 0, 0, .45);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, .35);
  --glow-gold: 0 0 0 2px rgba(255, 192, 31, .8), 0 14px 28px rgba(0, 0, 0, .5), 0 0 28px rgba(255, 192, 31, .22);
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --tile-w: calc((100% - 6 * var(--gap)) / 7);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(120% 70% at 50% -8%, rgba(255, 192, 31, .10), transparent 62%),
    radial-gradient(90% 50% at 100% 38%, rgba(255, 138, 0, .05), transparent 70%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text);
  font: 400 1rem/1.5 var(--font);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0; }
strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.tile a:focus-visible { outline-offset: 3px; border-radius: var(--r-tile); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: 16px; }
main.wrap { display: flex; flex-direction: column; gap: 40px; padding-block: 24px 72px; }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); font-weight: 800;
  padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons, pills, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px;
  border-radius: 999px; font-weight: 800; font-size: .95rem; line-height: 1;
  white-space: nowrap; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 18px rgba(255, 192, 31, .25);
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--warm-2); color: var(--text); border: 1px solid var(--warm-border); }
.btn-ghost:hover { background: var(--warm-3); border-color: rgba(255, 192, 31, .45); }
.btn-lg { min-height: 50px; padding: 0 26px; font-size: 1.05rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  color: var(--accent); font-weight: 800; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow-solid {
  background: var(--accent); color: var(--accent-ink);
  padding: 5px 11px; border-radius: 999px; letter-spacing: .06em;
}

.see-all { color: var(--muted-warm); font-weight: 700; font-size: .95rem; }
.see-all:hover { color: var(--accent); }

.arrow {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--warm-2); border: 1px solid var(--warm-border); color: var(--text);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* Gold structural mark used in every section heading */
.row-mark {
  width: 5px; height: 20px; border-radius: 999px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--accent-hover), var(--orange));
  box-shadow: 0 0 12px rgba(255, 192, 31, .45);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(30, 28, 28, .96);
  background-image: linear-gradient(90deg, rgba(255, 192, 31, .05), transparent 55%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--warm-border);
  box-shadow: 0 1px 0 rgba(255, 192, 31, .1);
}
.topbar-inner {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--topbar-h);
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; }
.logo-mark { flex-shrink: 0; }
.logo-word { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; white-space: nowrap; }
.logo-num { color: var(--accent); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 12px; min-width: 0; }
.nav a {
  padding: 9px 14px; border-radius: 999px;
  font-weight: 700; color: var(--muted); white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.nav a:hover { color: var(--text); background: var(--warm-2); }
.nav a.is-active { color: var(--accent); background: rgba(255, 192, 31, .12); }
.nav-mobile-only { display: none; }

.search {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 auto; max-width: 300px; min-width: 0; margin-left: auto;
  background: var(--bg); border: 1px solid var(--warm-border); border-radius: 999px;
  padding: 0 14px; height: 42px; color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search input {
  flex: 1; min-width: 0; background: none; border: 0; color: var(--text);
  font: inherit; outline: none;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }

.lang { position: relative; flex-shrink: 0; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 42px; padding: 0 12px; border-radius: 999px;
  background: var(--warm-2); border: 1px solid var(--warm-border); font-weight: 700;
}
.lang-btn:hover { background: var(--warm-3); }
.lang-globe, .lang-caret { flex-shrink: 0; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 170px; padding: 6px;
  background: var(--warm-2); border: 1px solid var(--warm-border); border-radius: 14px;
  box-shadow: var(--shadow);
}
.lang-menu-up { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.lang-menu button {
  width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; font-weight: 600;
}
.lang-menu button:hover { background: var(--warm-3); }
.lang-menu button[aria-checked="true"] { color: var(--accent); font-weight: 800; }
.lang-menu button[aria-checked="true"]::after { content: "✓"; float: right; }

.auth { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: none; align-items: center; justify-content: center;
  background: var(--warm-2); border: 1px solid var(--warm-border);
}

/* ---------- Hero carousel ---------- */
.hero { position: relative; border-radius: var(--r-card); }
.hero-viewport {
  overflow: hidden; border-radius: var(--r-card);
  background: var(--warm-1); border: 1px solid var(--warm-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.hero-track { display: flex; transition: transform .55s cubic-bezier(.2, .7, .2, 1); }
.slide {
  flex: 0 0 100%; position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center;
  min-height: 400px; padding: 44px 56px;
}
.slide-copy { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.slide h1, .slide-title { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 900; }
.slide p { color: #CFC9C0; font-size: 1.05rem; max-width: 46ch; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.slide-welcome {
  background:
    radial-gradient(70% 90% at 78% 50%, rgba(255, 192, 31, .18), transparent 70%),
    linear-gradient(110deg, #1F1D1D 0%, #201E1C 55%, #2A2410 100%);
}
.slide-rakeback {
  background:
    radial-gradient(60% 80% at 80% 55%, rgba(255, 138, 0, .26), transparent 70%),
    linear-gradient(110deg, #1F1D1D 0%, #241B13 60%, #2E1C08 100%);
}
.slide-race {
  background:
    radial-gradient(60% 80% at 80% 50%, rgba(255, 192, 31, .22), transparent 70%),
    linear-gradient(110deg, #1F1D1D 0%, #221F17 60%, #2E2511 100%);
}

.slide-art { position: relative; height: 100%; min-height: 300px; }
.glow {
  position: absolute; inset: 8% 0;
  background: radial-gradient(closest-side, rgba(255, 192, 31, .55), rgba(255, 192, 31, .12) 60%, transparent 75%);
  filter: blur(24px); pointer-events: none;
}
.glow-orange {
  background: radial-gradient(closest-side, rgba(255, 138, 0, .55), rgba(255, 192, 31, .15) 60%, transparent 75%);
}
.fan { position: absolute; inset: 0; }
.fan-tile {
  position: absolute; left: 50%; top: 50%;
  width: 156px; height: 208px; object-fit: cover;
  border-radius: var(--r-tile); box-shadow: var(--shadow);
  border: 1px solid rgba(255, 208, 120, .18);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.fan-1 { transform: translate(-118%, -42%) rotate(-12deg); z-index: 1; }
.fan-2 { transform: translate(-50%, -58%) scale(1.1); z-index: 3; }
.fan-3 { transform: translate(18%, -42%) rotate(12deg); z-index: 2; }
.fan-two .fan-1 { transform: translate(-96%, -50%) rotate(-9deg); }
.fan-two .fan-3 { transform: translate(-4%, -50%) rotate(9deg); }
.slide.is-active .fan-1 { transform: translate(-124%, -44%) rotate(-14deg); }
.slide.is-active .fan-3 { transform: translate(24%, -44%) rotate(14deg); }
.slide.is-active .fan-two .fan-1 { transform: translate(-100%, -50%) rotate(-10deg); }
.slide.is-active .fan-two .fan-3 { transform: translate(0%, -50%) rotate(10deg); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(42, 38, 34, .92); border: 1px solid var(--warm-border); color: var(--text);
  box-shadow: var(--shadow-soft);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.hero-arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.hero-prev { left: -14px; }
.hero-next { right: -14px; }

.hero-dots {
  position: absolute; left: 50%; bottom: 16px; z-index: 5;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(18, 16, 15, .62); border: 1px solid rgba(255, 208, 120, .18);
  backdrop-filter: blur(6px);
}
.hero-dots button {
  display: block; width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255, 236, 200, .32);
  transition: width .25s ease, background-color .25s ease;
}
.hero-dots button:hover { background: rgba(255, 236, 200, .7); }
.hero-dots button[aria-selected="true"] { width: 30px; background: var(--accent); }
.dot-fill { display: block; width: 100%; height: 100%; }

/* ---------- Game of the week ---------- */
.gotw { margin-top: -14px; }
.gotw-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: 28px;
  min-height: 330px; padding: 36px 40px;
  border-radius: var(--r-card);
  border: 1px solid var(--warm-border);
  background:
    linear-gradient(100deg, rgba(26, 23, 21, .97) 0%, rgba(26, 23, 21, .92) 40%, rgba(26, 23, 21, .55) 62%, rgba(26, 23, 21, .3) 100%),
    radial-gradient(60% 120% at 88% 50%, rgba(255, 192, 31, .22), transparent 65%),
    url("../../assets/games/zeus-vs-hades.jpg") 50% 28% / cover no-repeat,
    var(--warm-1);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 208, 120, .1);
}
.gotw-body { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 12px; }
.gotw-body h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 900; }
.gotw-prov { color: var(--accent); font-weight: 800; font-size: .95rem; }
.gotw-reason { color: #DCD5CA; font-size: 1.02rem; max-width: 44ch; }
.gotw-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.gotw-facts li {
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 192, 31, .1); border: 1px solid rgba(255, 192, 31, .32);
  color: #FFE6A8; font-weight: 700; font-size: .85rem;
}
.gotw-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }

.gotw-art { position: relative; z-index: 2; display: flex; justify-content: center; align-items: center; min-height: 240px; }
.gotw-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 192, 31, .45), rgba(255, 138, 0, .16) 55%, transparent 75%);
  filter: blur(18px);
}
.gotw-art img {
  position: relative; width: 210px; height: 280px; object-fit: cover;
  border-radius: 14px; transform: rotate(-4deg);
  border: 2px solid rgba(255, 192, 31, .55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .55), 0 0 34px rgba(255, 192, 31, .2);
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.gotw-card:hover .gotw-art img { transform: rotate(-2deg) translateY(-6px) scale(1.02); }

/* ---------- Chips ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  height: 42px; padding: 0 18px; border-radius: 999px;
  background: var(--warm-1); border: 1px solid var(--warm-border);
  color: var(--muted-warm); font-weight: 700;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip:hover { color: var(--text); background: var(--warm-2); border-color: rgba(255, 192, 31, .4); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }

/* ---------- Live wins ticker ---------- */
.ticker { display: flex; align-items: center; gap: 14px; margin-top: -16px; }
.ticker-label {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  font-weight: 800; font-size: .9rem; color: var(--text);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(76, 217, 123, .2);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(76, 217, 123, .08); } }
.ticker-mask {
  flex: 1; min-width: 0; overflow: hidden; display: flex;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.ticker-track {
  display: flex; gap: 10px; flex-shrink: 0; padding-right: 10px;
  animation: ticker 48s linear infinite;
}
.ticker-mask:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }
.win {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  height: 44px; padding: 0 14px 0 6px; border-radius: 999px;
  background: var(--warm-1); border: 1px solid var(--warm-border);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .85rem; color: var(--accent-ink);
}
.a1 { background: #FFC01F; } .a2 { background: #FFD873; } .a3 { background: #F2A53B; }
.a4 { background: #E8C46A; } .a5 { background: #FFB347; }
.win-game { font-weight: 700; font-size: .92rem; }
.win-amount { color: var(--green); font-weight: 800; font-size: .92rem; }

/* ---------- Game rows ---------- */
#games { display: flex; flex-direction: column; gap: 24px; }
.row {
  padding: 18px 18px 20px;
  border-radius: var(--r-shelf);
  border: 1px solid var(--warm-border);
  background:
    linear-gradient(180deg, rgba(255, 192, 31, .07) 0%, rgba(255, 192, 31, .015) 34%, rgba(255, 192, 31, 0) 70%),
    rgba(33, 31, 30, .72);
}
.row-head, .section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 192, 31, .5), rgba(255, 192, 31, .06) 55%, rgba(255, 192, 31, 0)) 1;
}
.row-head h2, .section-head h2, .bets-head h2, .pay-coins h2 {
  font-size: 1.35rem; display: inline-flex; align-items: center; gap: 12px; min-width: 0;
}
.row-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.row-tools .see-all { margin-right: 6px; }

.tiles {
  display: flex; gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 0;
  padding-bottom: 6px; margin-bottom: -6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 var(--tile-w); scroll-snap-align: start; min-width: 0; }
.tile a { display: flex; flex-direction: column; gap: 8px; }
.tile-art {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--r-tile); background: var(--warm-2);
  border: 1px solid rgba(255, 208, 120, .14);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.tile-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
/* Warm inner glow, drawn inside the art on hover and keyboard focus */
.tile-art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 192, 31, 0), inset 0 -40px 44px -26px rgba(255, 138, 0, 0);
  transition: box-shadow .25s ease;
}
.tile a:hover .tile-art,
.tile a:focus-visible .tile-art {
  transform: translateY(-4px); border-color: rgba(255, 192, 31, .75);
  box-shadow: var(--glow-gold);
}
.tile a:hover .tile-art::after,
.tile a:focus-visible .tile-art::after {
  box-shadow: inset 0 0 0 1px rgba(255, 192, 31, .5), inset 0 -46px 48px -24px rgba(255, 138, 0, .5);
}
.tile a:hover .tile-art img { transform: scale(1.06); }
.tile a:hover .tile-name, .tile a:focus-visible .tile-name { color: var(--accent); }
.tile-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.85);
  padding: 10px 18px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .45);
  opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.tile a:hover .tile-play, .tile a:focus-visible .tile-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.tile-name {
  font-weight: 800; font-size: .95rem; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .15s ease;
}
.tile-prov { color: var(--muted-warm); font-size: .82rem; font-weight: 700; margin-top: -6px; }

.pill {
  position: absolute; top: 8px; left: 8px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.pill-new { background: #FFF3D4; }
.live-badge {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: 999px;
  background: rgba(20, 21, 24, .88); color: var(--text);
  border: 1px solid rgba(255, 208, 120, .22);
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.live-badge .live-dot { width: 6px; height: 6px; box-shadow: none; animation: none; }

/* ---------- Recent bets ---------- */
.bets {
  background:
    linear-gradient(180deg, rgba(255, 192, 31, .06), rgba(255, 192, 31, 0) 40%),
    var(--warm-1);
  border: 1px solid var(--warm-border); border-radius: var(--r-card);
  padding: 22px 24px;
}
.bets-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 16px; padding-bottom: 14px;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, rgba(255, 192, 31, .5), rgba(255, 192, 31, .06) 55%, rgba(255, 192, 31, 0)) 1;
}
.tabs {
  display: inline-flex; gap: 4px; padding: 4px;
  background: rgba(20, 19, 18, .8); border: 1px solid var(--warm-border); border-radius: 999px;
}
.tab {
  height: 36px; padding: 0 16px; border-radius: 999px;
  color: var(--muted-warm); font-weight: 700; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--accent); color: var(--accent-ink); font-weight: 800; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bets-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.bets-table th {
  text-align: left; padding: 10px 12px;
  color: var(--muted-warm); font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
}
.bets-table td { padding: 12px; border-top: 1px solid var(--warm-border); font-weight: 600; }
.bets-table td:first-child { font-weight: 700; }
.bets-table tbody tr:nth-child(odd) td { background: rgba(255, 192, 31, .03); }
.bets-table td:nth-child(3), .bets-table td:nth-child(4), .bets-table td:nth-child(5),
.bets-table th:nth-child(3), .bets-table th:nth-child(4), .bets-table th:nth-child(5) { text-align: right; font-variant-numeric: tabular-nums; }
.bets-table .mult { color: var(--muted-warm); }
.bets-table .mult.up, .bets-table .pay.up { color: var(--green); font-weight: 800; }
.bets-table .pay { color: var(--muted-warm); }

/* ---------- Promotions ---------- */
.promo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.promo {
  position: relative; overflow: hidden; min-height: 230px;
  border-radius: var(--r-card); border: 1px solid var(--warm-border);
  display: flex; align-items: flex-end;
  transition: border-color .2s ease, transform .2s ease;
}
.promo:hover { border-color: rgba(255, 192, 31, .45); transform: translateY(-2px); }
.promo-welcome { background: linear-gradient(135deg, #4A3308 0%, #211F1E 58%), var(--warm-1); }
.promo-rakeback { background: linear-gradient(135deg, rgba(255, 138, 0, .5) 0%, #211F1E 62%), var(--warm-1); }
.promo-race { background: linear-gradient(135deg, rgba(255, 192, 31, .42) 0%, rgba(255, 138, 0, .14) 40%, #211F1E 72%), var(--warm-1); }
.promo-copy {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: 8px;
  padding: 24px; max-width: 68%;
}
.promo h3 { font-size: 1.25rem; }
.promo p { color: #D5CEC4; font-size: .95rem; }
.promo .btn { align-self: flex-start; margin-top: 6px; }
.promo-art {
  position: absolute; right: -22px; top: 22px;
  width: 128px; height: 170px; object-fit: cover;
  border-radius: var(--r-tile); box-shadow: var(--shadow);
  border: 1px solid rgba(255, 208, 120, .25);
  transform: rotate(10deg); transition: transform .4s ease;
}
.promo:hover .promo-art { transform: rotate(6deg) translateY(-4px); }

/* ---------- VIP ---------- */
.vip {
  background:
    radial-gradient(50% 70% at 100% 0%, rgba(255, 192, 31, .16), transparent 70%),
    var(--warm-1);
  border: 1px solid var(--warm-border); border-radius: var(--r-card);
  padding: 28px; display: flex; flex-direction: column; gap: 24px;
}
.vip-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.vip-head > div { display: flex; flex-direction: column; gap: 8px; max-width: 60ch; }
.vip-head h2 { font-size: 1.6rem; }
.vip-head p { color: #D5CEC4; }
.vip-progress { display: flex; flex-direction: column; gap: 8px; }
.vip-bar { height: 10px; border-radius: 999px; background: rgba(20, 19, 18, .9); border: 1px solid var(--warm-border); overflow: hidden; }
.vip-bar span { display: block; height: 100%; min-width: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--orange), var(--accent)); }
.vip-progress-meta { display: flex; justify-content: space-between; color: var(--muted-warm); font-size: .88rem; font-weight: 700; }
.tiers { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tier {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px; border-radius: 14px;
  background: var(--warm-2); border: 1px solid var(--warm-border);
}
.tier strong { font-weight: 800; }
.tier > span:last-child { color: var(--muted-warm); font-size: .88rem; }
.tier.is-current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 0 24px rgba(255, 192, 31, .12); }
.tier-gem { width: 28px; height: 28px; border-radius: 8px; transform: rotate(45deg); margin: 4px 0 8px 4px; }
.gem-bronze { background: linear-gradient(135deg, #d59a63, #8a5a32); }
.gem-silver { background: linear-gradient(135deg, #e3e6ee, #8f97a8); }
.gem-gold { background: linear-gradient(135deg, #FFE28A, #FFC01F); }
.gem-platinum { background: linear-gradient(135deg, #bfe9ff, #6fa7c9); }
.gem-diamond { background: linear-gradient(135deg, #e6d8ff, #9a7cff); }

/* ---------- Payments ---------- */
.payments {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px;
  background:
    linear-gradient(180deg, rgba(255, 192, 31, .05), rgba(255, 192, 31, 0) 45%),
    var(--warm-1);
  border: 1px solid var(--warm-border); border-radius: var(--r-card);
  padding: 28px;
}
.pay-coins { display: flex; flex-direction: column; gap: 18px; }
.coins { display: flex; flex-wrap: wrap; gap: 10px; }
.coins li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--warm-2); border: 1px solid var(--warm-border); font-weight: 700; font-size: .92rem;
}
.coin {
  width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem; color: var(--accent-ink);
}
.c-btc { background: #F7931A; } .c-eth { background: #A8B4F0; } .c-usdt { background: #50AF95; }
.c-usdc { background: #6FA8F5; } .c-ltc { background: #C9CDD6; } .c-sol { background: #8BE3C8; }
.c-trx { background: #F0655C; } .c-eur { background: var(--accent); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.facts li {
  display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px;
  padding: 14px; border-radius: 14px; background: var(--warm-2); border: 1px solid var(--warm-border);
}
.fact-icon {
  grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 192, 31, .16); color: var(--accent); font-weight: 800;
}
.facts strong { font-size: .95rem; }
.facts li > span:last-child { color: var(--muted-warm); font-size: .86rem; }

/* ---------- Providers ---------- */
.providers { padding: 8px 0 0; }
.providers ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px;
  padding: 18px 0;
  border-top: 1px solid var(--warm-border); border-bottom: 1px solid var(--warm-border);
}
.providers li {
  color: var(--muted-warm); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em;
  opacity: .85; transition: color .15s ease, opacity .15s ease;
}
.providers li:hover { color: var(--accent); opacity: 1; }

/* ---------- Footer ---------- */
.footer {
  background:
    linear-gradient(180deg, rgba(255, 192, 31, .05), rgba(255, 192, 31, 0) 30%),
    var(--warm-1);
  border-top: 1px solid var(--warm-border); padding: 48px 0 32px;
}
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2.4fr); gap: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-brand p { color: var(--muted-warm); max-width: 34ch; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.footer-cols h3 { font-size: .95rem; margin-bottom: 12px; }
.footer-cols ul { display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--muted-warm); font-weight: 600; font-size: .95rem; }
.footer-cols a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--warm-border);
  display: flex; flex-direction: column; gap: 10px;
  color: var(--muted-warm); font-size: .9rem;
}
.age { display: flex; align-items: center; gap: 10px; }
.age-badge {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--text); color: var(--text); font-weight: 800; font-size: .8rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  :root { --tile-w: calc((100% - 4 * var(--gap)) / 5); }
  .footer-top { grid-template-columns: 1fr; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .gotw-card { padding: 30px 28px; gap: 20px; }
  .gotw-art img { width: 180px; height: 240px; }
}

@media (max-width: 960px) {
  .icon-btn.menu-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 10px 16px 16px; background: var(--warm-1); border-bottom: 1px solid var(--warm-border);
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-mobile-only { display: block; }
  .search { max-width: 220px; }
  .slide { grid-template-columns: 1fr; padding: 32px 28px 60px; min-height: 0; }
  .slide-art { min-height: 250px; margin-top: 12px; }
  .fan-tile { width: 128px; height: 170px; }
  .gotw-card { grid-template-columns: 1fr; text-align: left; min-height: 0; padding: 26px 24px; }
  .gotw-art { order: -1; min-height: 0; justify-content: flex-start; }
  .gotw-art img { width: 150px; height: 200px; }
  .gotw-glow { width: 240px; height: 240px; left: 0; }
  .promo-grid { grid-template-columns: 1fr 1fr; }
  .promo:last-child { grid-column: 1 / -1; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .payments { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --tile-w: 140px; --gap: 12px; }
  main.wrap { gap: 30px; padding-top: 16px; }
  .search { display: none; }
  .auth .btn { padding: 0 14px; min-height: 38px; font-size: .9rem; }
  .btn-lg { min-height: 46px; font-size: 1rem; }
  .logo-word { font-size: 1.15rem; }
  .slide { padding: 24px 20px 56px; }
  .slide h1, .slide-title { font-size: 1.75rem; }
  .slide p { font-size: 1rem; }
  .slide-art { min-height: 210px; }
  .fan-tile { width: 108px; height: 144px; }
  .fan-1 { transform: translate(-125%, -45%) rotate(-12deg); }
  .fan-3 { transform: translate(25%, -45%) rotate(12deg); }
  .slide.is-active .fan-1 { transform: translate(-130%, -47%) rotate(-14deg); }
  .slide.is-active .fan-3 { transform: translate(30%, -47%) rotate(14deg); }
  .hero-arrow { width: 38px; height: 38px; top: auto; bottom: 10px; transform: none; }
  .hero-prev { left: 12px; }
  .hero-next { right: 12px; }
  .hero-dots { bottom: 14px; }
  .gotw { margin-top: -10px; }
  .gotw-card {
    padding: 22px 18px;
    background:
      linear-gradient(180deg, rgba(26, 23, 21, .5) 0%, rgba(26, 23, 21, .93) 46%, rgba(26, 23, 21, .98) 100%),
      radial-gradient(70% 50% at 50% 8%, rgba(255, 192, 31, .26), transparent 70%),
      url("../../assets/games/zeus-vs-hades.jpg") 50% 18% / cover no-repeat,
      var(--warm-1);
  }
  .gotw-body h2 { font-size: 1.5rem; }
  .gotw-reason { font-size: .98rem; }
  .gotw-actions .btn { flex: 1 1 auto; }
  .ticker { margin-top: -8px; }
  .row { padding: 14px 12px 16px; border-radius: 18px; }
  .row-head h2, .section-head h2, .bets-head h2, .pay-coins h2 { font-size: 1.15rem; }
  .row-mark { height: 18px; width: 4px; }
  .row-tools .arrow { display: none; }
  .bets { padding: 18px 16px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 0 10px; font-size: .9rem; }
  .promo-grid { grid-template-columns: 1fr; }
  .promo { min-height: 200px; }
  .promo-copy { max-width: 72%; }
  .vip { padding: 22px 18px; }
  .vip-head { flex-direction: column; }
  .vip-head h2 { font-size: 1.35rem; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tier:last-child { grid-column: 1 / -1; }
  .payments { padding: 22px 18px; }
  .facts { grid-template-columns: 1fr; }
  .providers ul { gap: 8px 22px; }
  .providers li { font-size: .95rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* Narrow phones: the top bar sheds width in steps so nothing overflows. */
@media (max-width: 420px) {
  .auth .btn-ghost { display: none; }
  .lang-btn { padding: 0 10px; }
  .gotw-facts li { font-size: .8rem; padding: 5px 10px; }
}

@media (max-width: 380px) {
  .wrap { padding-inline: 12px; }
  .topbar-inner { gap: 8px; }
  .lang-code, .lang-caret { display: none; }
  .lang-btn { padding: 0 10px; height: 38px; }
  .icon-btn { width: 38px; height: 38px; }
  .logo-word { font-size: 1.05rem; }
  .auth .btn { padding: 0 12px; font-size: .86rem; }
  .gotw-actions { flex-direction: column; align-items: stretch; }
  .gotw-actions .btn { width: 100%; }
}

@media (max-width: 320px) {
  :root { --tile-w: 124px; }
  .topbar-inner { gap: 6px; }
  .logo-word { display: none; }
  .logo-mark { width: 30px; height: 30px; }
  .auth .btn { padding: 0 10px; font-size: .82rem; min-height: 36px; }
  .lang-btn { padding: 0 8px; }
  .row { padding: 12px 10px 14px; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .ticker-track { animation: none; }
  .ticker-mask { overflow-x: auto; scrollbar-width: none; mask-image: none; -webkit-mask-image: none; }
  .live-dot { animation: none; }
  .hero-track { transition: none; }
}
