/* ============================================================================
   BetZoo — Slot Casino Stylesheet  (Variant A — Faithful BetConstruct operator)
   Deep navy + gold + royal blue. FLAT, DENSE, standard operator shell.
   Looks like a stock BetConstruct casino skin: darker header bar, compact
   uppercase buttons (modest 4-6px radius), left category rail, top text tabs,
   bright gradient promo (NO dark full-bleed image), dense game grid, badge
   footer. One gold accent, subtle 1px borders, minimal glow.
   Styles a FIXED index.html. Responsive at 1300 / 900 / 640.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@600;700;800&display=swap');

/* ---------------------------------------------------------------- Tokens -- */
:root {
  --bg: #050d24;
  --bg-2: #030a1e;
  --header: #0a1636;
  --surface: #0c1c44;
  --surface-2: #102552;
  --raised: #16305f;

  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .06);
  --line-gold: rgba(232, 185, 35, .22);

  --gold: #e8b923;
  --gold-2: #f4d06a;
  --gold-deep: #c9992a;
  --gold-grad: linear-gradient(180deg, #f4d06a, #e8b923 55%, #c9992a);

  --royal: #1c50b0;
  --royal-2: #2a6cf0;
  --green: #25c26e;
  --green-2: #31d67c;
  --green-deep: #1c9c56;

  --text: #eef3ff;
  --muted: #93a4c8;
  --accent: var(--gold); /* app.js may override this at runtime */

  --danger: #ff5d6c;
  --danger-soft: rgba(255, 93, 108, .14);
  --success: #25c26e;
  --success-soft: rgba(37, 194, 110, .14);
  --amber: #f5b83d;
  --amber-soft: rgba(245, 184, 61, .16);

  --r-card: 6px;
  --r-btn: 5px;
  --r-pill: 999px;

  --shadow-card: 0 6px 18px -12px rgba(0, 0, 0, .7);
  --ring: 0 0 0 2px rgba(42, 108, 240, .6);
  --ring-gold: 0 0 0 2px rgba(232, 185, 35, .55);

  --header-h: 60px;
  --rail-w: 168px;

  --font: 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', 'Segoe UI', system-ui, Arial, sans-serif;

  /* Subtle gold paw-print motif, tiled — used sparingly as faint texture. */
  --paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%23e8b923' fill-opacity='0.04'%3E%3Cellipse cx='40' cy='58' rx='11' ry='14'/%3E%3Cellipse cx='24' cy='38' rx='5' ry='7'/%3E%3Cellipse cx='38' cy='30' rx='5' ry='7'/%3E%3Cellipse cx='54' cy='34' rx='5' ry='7'/%3E%3Cellipse cx='63' cy='48' rx='4' ry='6'/%3E%3Cellipse cx='94' cy='96' rx='9' ry='12'/%3E%3Cellipse cx='81' cy='80' rx='4' ry='6'/%3E%3Cellipse cx='93' cy='74' rx='4' ry='6'/%3E%3Cellipse cx='105' cy='78' rx='4' ry='6'/%3E%3C/g%3E%3C/svg%3E");
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-2);
  min-height: 100dvh;
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 0;
  line-height: 1.1;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

input, select, textarea { font-family: inherit; }

[hidden] { display: none !important; }

::selection { background: rgba(232, 185, 35, .3); color: #fff; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--raised) transparent; }
*::-webkit-scrollbar { height: 7px; width: 7px; }
*::-webkit-scrollbar-thumb { background: var(--raised); border-radius: 999px; }
*::-webkit-scrollbar-track { background: transparent; }

/* -------------------------------------------------- Accessibility utils -- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: -120px; left: 12px;
  z-index: 3000;
  padding: 9px 16px;
  background: var(--gold);
  color: #1a1200;
  font-weight: 800;
  border-radius: var(--r-btn);
  transition: top .2s ease;
}
.skip-link:focus { top: calc(env(safe-area-inset-top) + 12px); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring-gold);
  border-radius: 4px;
}

/* ==========================================================================
   BUTTONS — BetConstruct default: compact, uppercase, modest radius
   ========================================================================== */
.button {
  --btn-pad-y: 10px;
  --btn-pad-x: 16px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 var(--btn-pad-x);
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s ease, border-color .15s ease, color .15s ease, filter .15s ease;
}
.button:active { transform: translateY(1px); }
.button:focus-visible { box-shadow: var(--ring-gold); }

/* Solid gold — the loudest button (register / deposit / primary CTA) */
.button.primary {
  background: var(--gold);
  color: #17130a;
  border-color: var(--gold-deep);
}
.button.primary:hover { background: var(--gold-2); }

/* Outlined / ghost-line secondary (login, "back", neutral) */
.button.secondary {
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  border-color: var(--line);
}
.button.secondary:hover {
  border-color: rgba(232, 185, 35, .5);
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

.button.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.button.ghost:hover {
  color: var(--text);
  border-color: var(--line-gold);
  background: rgba(255, 255, 255, .05);
}

.button.small {
  height: 32px;
  --btn-pad-x: 12px;
  font-size: 11.5px;
}

/* Deposit button — distinct GREEN accent so PARA YATIR pops apart from
   the gold register/login CTAs (BetConstruct operators use green for deposit) */
.deposit-btn,
.button.deposit,
#member-actions [data-action="deposit"] {
  background: linear-gradient(180deg, var(--green-2), var(--green) 60%, var(--green-deep));
  color: #04200f;
  border-color: var(--green-deep);
}
.deposit-btn:hover,
.button.deposit:hover,
#member-actions [data-action="deposit"]:hover {
  background: var(--green-2);
  filter: brightness(1.03);
}

/* ==========================================================================
   APP SHELL / LAYOUT
   ========================================================================== */
.app-shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: 100dvh;
}

.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.content {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 16px clamp(12px, 2.4vw, 26px) 56px;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.2vw, 26px);
}

/* ---------------------------------------------------------- Sidebar rail - */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100dvh;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px 14px;
  background: var(--header);
  border-right: 1px solid var(--line);
  z-index: 40;
  overflow-y: auto;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
}
.account-nav {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}
.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}
#sidebar-brand { display: none; }

/* BetConstruct-style LABELED vertical menu row: small icon box + text label,
   left-aligned, comfortable row height */
.nav-button {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--r-btn);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .03em;
  text-align: left;
  border: 1px solid transparent;
  transition: color .14s ease, background .14s ease;
}
.nav-button > span[aria-hidden] {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-btn);
  font-size: 16px;
  line-height: 1;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line-2);
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.nav-button > span:not([aria-hidden]) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .05);
}
.nav-button:hover > span[aria-hidden] { color: var(--gold-2); border-color: var(--line-gold); }
.nav-button.active {
  color: #fff;
  background: rgba(232, 185, 35, .1);
}
.nav-button.active > span[aria-hidden] {
  color: var(--gold);
  background: rgba(232, 185, 35, .16);
  border-color: var(--line-gold);
}
.nav-button.active::before {
  content: "";
  position: absolute;
  left: -10px; top: 50%;
  transform: translateY(-50%);
  width: 3px; height: 26px;
  border-radius: 0 3px 3px 0;
  background: var(--gold);
}

.rail-age {
  align-self: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--gold);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-btn);
  padding: 3px 8px;
  letter-spacing: .04em;
}

/* ==========================================================================
   ANNOUNCEMENT STRIP
   ========================================================================== */
.announcement {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 7px clamp(12px, 2.4vw, 26px);
  font-size: 12.5px;
  color: var(--muted);
  background: linear-gradient(90deg, rgba(232, 185, 35, .1), transparent 55%), var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.announcement-tag {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: .07em;
  color: #17130a;
  background: var(--gold);
  padding: 3px 9px;
  border-radius: var(--r-btn);
}
.announcement > span:not(.announcement-tag) { color: var(--text); }
.announcement button {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gold-2);
  padding: 5px 11px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-gold);
  transition: background .14s ease, color .14s ease;
}
.announcement button:hover { background: rgba(232, 185, 35, .14); color: #fff; }

/* ==========================================================================
   TOPBAR — darker bar, sticky, ~60px
   ========================================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--header-h);
  padding: 0 clamp(12px, 2.4vw, 26px);
  background: var(--header);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px -4px #000;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-lockup,
.betzoo-wordmark {
  height: 34px;
  width: auto;
  display: block;
}
#brand-name { display: none; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto 0 10px;
  height: 100%;
}
.header-nav button {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 13px;
  height: 100%;
  border: 0;
  transition: color .14s ease;
}
.header-nav button:hover { color: var(--text); }
.header-nav button[aria-pressed="true"] { color: #fff; }
.header-nav button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 3px 3px 0 0;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.balance-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  padding: 4px 12px;
  border-radius: var(--r-btn);
  background: var(--surface);
  border: 1px solid var(--line);
}
#user-code {
  font-size: 9.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
#balance {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
}

.header-help {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--gold-2);
  border: 1px solid var(--line);
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.header-help:hover { background: rgba(232, 185, 35, .14); color: #fff; border-color: var(--line-gold); }

.language {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  padding: 6px 9px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  letter-spacing: .06em;
}

/* ==========================================================================
   LOBBY SHORTCUTS BAR
   ========================================================================== */
.lobby-shortcuts {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
}
.lobby-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text);
}
.lobby-status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 185, 35, .16);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.lobby-shortcuts > div {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.lobby-shortcuts > div button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.lobby-shortcuts > div button:hover {
  color: var(--text);
  border-color: var(--line-gold);
  background: rgba(255, 255, 255, .05);
}
.lobby-shortcuts > div button b {
  font-family: var(--font-display);
  color: var(--gold);
  min-width: 16px;
  text-align: center;
}

/* ==========================================================================
   HERO — BRIGHT navy→royal promo. NO dark full-bleed image (black-screen fix)
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(200px, 30vw, 340px);
  display: flex;
  align-items: center;
  padding: clamp(20px, 3.4vw, 44px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(130% 130% at 88% 30%, rgba(42, 108, 240, .55), transparent 58%),
    linear-gradient(115deg, var(--royal) 0%, #163a86 40%, var(--surface) 78%, var(--bg-2) 100%);
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--paw);
  background-size: 140px;
  opacity: .7;
  z-index: 0;
  mask-image: linear-gradient(90deg, #000 30%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, #000 30%, transparent 80%);
}
/* Pure-CSS gold emblem on the right — a small paw/coin motif, never a black box */
.hero-emblem {
  position: absolute;
  right: clamp(-30px, 2vw, 40px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(150px, 24vw, 260px);
  height: clamp(150px, 24vw, 260px);
  z-index: 1;
  border-radius: 50%;
  /* Bright radial gold base — layered over an explicit light-gold floor so the
     emblem can NEVER composite into a dark disc on any display/color profile. */
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 240, 200, .40), rgba(244, 208, 106, .22) 55%, transparent 72%),
    radial-gradient(circle at 50% 50%, rgba(244, 208, 106, .18), rgba(232, 185, 35, .10) 60%, rgba(232, 185, 35, 0) 74%);
  pointer-events: none;
}
.hero-emblem::before {
  /* gold paw silhouette drawn in CSS via SVG data-uri — bright light-gold fill
     (#f4d06a), decorative only, never a dark box */
  content: "";
  position: absolute;
  inset: 16%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='%23f4d06a' fill-opacity='0.95'%3E%3Cellipse cx='80' cy='104' rx='34' ry='28'/%3E%3Cellipse cx='42' cy='58' rx='13' ry='18'/%3E%3Cellipse cx='68' cy='42' rx='13' ry='18'/%3E%3Cellipse cx='96' cy='42' rx='13' ry='18'/%3E%3Cellipse cx='122' cy='58' rx='13' ry='18'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 4px 12px rgba(232, 185, 35, .30));
  opacity: .7;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: min(560px, 74%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-2);
}
.hero-title {
  font-size: clamp(26px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.015em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
}
#banner-description {
  margin: 0;
  color: #d3ddf5;
  font-size: clamp(13px, 1.4vw, 15px);
  max-width: 44ch;
}
#banner-action { margin-top: 4px; }

/* Banner controls */
.banner-controls {
  position: absolute;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 22px);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: var(--r-btn);
  background: rgba(3, 10, 30, .5);
  border: 1px solid var(--line);
}
.banner-controls button {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: var(--r-btn);
  font-size: 17px;
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05);
  transition: background .14s ease, color .14s ease;
}
.banner-controls button:hover { background: rgba(232, 185, 35, .2); color: #fff; }
#banner-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: #d3ddf5;
  min-width: 40px;
  text-align: center;
}
.banner-dots {
  position: absolute;
  left: clamp(20px, 3.4vw, 44px);
  bottom: clamp(14px, 3vw, 20px);
  z-index: 3;
  display: inline-flex;
  gap: 7px;
}
.banner-dots button {
  width: 22px; height: 5px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .28);
  border: 0;
  transition: background .16s ease, width .16s ease;
}
.banner-dots button:hover { background: rgba(255, 255, 255, .5); }
.banner-dots button[aria-pressed="true"] {
  background: var(--gold);
  width: 30px;
}
.banner-age {
  position: absolute;
  right: clamp(14px, 3vw, 26px);
  top: clamp(12px, 3vw, 20px);
  z-index: 3;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .07em;
  color: #d3ddf5;
  padding: 4px 9px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(3, 10, 30, .45);
}

/* ==========================================================================
   FEATURE TILES — operator category shortcuts (flat)
   ========================================================================== */
.feature-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}
.feature-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 96px;
  padding: 14px 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  text-align: left;
  color: var(--text);
  transition: border-color .15s ease, transform .12s ease;
}
.feature-tile::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--paw);
  background-size: 110px;
  opacity: .6;
}
.feature-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 185, 35, .5);
}
.tile-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tile-copy strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: -.01em;
}
.tile-copy span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: rgba(255, 255, 255, .82);
  letter-spacing: .02em;
}
.tile-copy small {
  margin-top: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gold-2);
}
.tile-art {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: var(--r-card);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .12);
}
.tile-art b { font-size: 19px; letter-spacing: -.02em; }
.star-art { color: var(--gold-2); }
.gem-art { color: #8fd0ff; }
.chip-art { font-size: 16px; color: var(--gold-2); }

/* Distinct flat gradients per tile */
.tile-slot { background: linear-gradient(135deg, #123064, #1c50b0); }
.tile-popular { background: linear-gradient(135deg, #2a2010, #6b4c14); }
.tile-new { background: linear-gradient(135deg, #0c2b4e, #124a6b); }
.tile-providers { background: linear-gradient(135deg, #101f47, #26356e); }

/* ==========================================================================
   PROVIDER SHOWCASE / RIBBON
   ========================================================================== */
.provider-showcase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(12px, 1.8vw, 18px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.provider-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 200px;
}
.provider-heading > span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .11em;
  color: var(--gold);
  text-transform: uppercase;
}
.provider-heading strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
  line-height: 1.25;
}
.provider-ribbon {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.provider-chip {
  scroll-snap-align: start;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 122px;
  height: auto;
  padding: 9px 13px;
  border-radius: var(--r-btn);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color .14s ease, background .14s ease;
}
.provider-chip strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
}
.provider-chip small { font-size: 10.5px; color: var(--muted); }
.provider-chip:hover {
  border-color: var(--line-gold);
  background: var(--raised);
}
.provider-chip[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(232, 185, 35, .1);
}
.provider-all {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #17130a;
  background: var(--gold);
  border: 1px solid var(--gold-deep);
  transition: background .14s ease;
}
.provider-all span { font-size: 14px; }
.provider-all:hover { background: var(--gold-2); }

.connection-note {
  margin: 0;
  padding: 9px 13px;
  font-size: 12.5px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(245, 184, 61, .3);
  border-radius: var(--r-btn);
}

/* ==========================================================================
   SECTION HEADINGS / EYEBROW
   ========================================================================== */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.section-heading h2 {
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 800;
  margin-top: 3px;
}
.heading-dot { color: var(--gold); }
.catalog-heading-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.game-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.view-toggle {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: var(--r-btn);
  font-size: 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.view-toggle:hover { color: var(--text); border-color: var(--line-gold); }
.view-toggle[aria-pressed="true"] {
  color: var(--gold);
  border-color: var(--line-gold);
  background: rgba(232, 185, 35, .14);
}

/* ==========================================================================
   CATALOG TOOLS
   ========================================================================== */
.catalog { display: flex; flex-direction: column; gap: 14px; }

.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.category-tabs,
.collection-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-btn);
  background: rgba(3, 10, 30, .5);
  border: 1px solid var(--line);
}
.category-tab,
.collection-tabs button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .01em;
  color: var(--muted);
  padding: 7px 14px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  transition: color .14s ease, background .14s ease;
}
.category-tab:hover,
.collection-tabs button:hover { color: var(--text); }
.category-tab.active,
.category-tab[aria-pressed="true"],
.collection-tabs button[aria-pressed="true"] {
  color: #17130a;
  background: var(--gold);
}

.filter-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 200px;
  padding: 0 12px;
  height: 40px;
  border-radius: var(--r-btn);
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color .14s ease, box-shadow .14s ease;
}
.search-field:focus-within {
  border-color: var(--line-gold);
  box-shadow: var(--ring-gold);
}
.search-field > span[aria-hidden] { color: var(--muted); font-size: 15px; }
.search-field input {
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
  width: 100%;
  min-width: 0;
}
.search-field input::placeholder { color: var(--muted); }

.provider-field,
.sort-controls label { display: inline-flex; align-items: center; }

select#provider,
select#game-sort {
  appearance: none;
  -webkit-appearance: none;
  height: 40px;
  padding: 0 32px 0 13px;
  border-radius: var(--r-btn);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  background:
    var(--bg-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393a4c8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color .14s ease, box-shadow .14s ease;
}
select#provider:hover,
select#game-sort:hover { border-color: var(--line-gold); }
select#provider:focus-visible,
select#game-sort:focus-visible { box-shadow: var(--ring-gold); border-color: var(--line-gold); }
select#provider option,
select#game-sort option { background: var(--surface); color: var(--text); }

.catalog-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.sort-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
#reset-filters {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold-2);
  padding: 7px 13px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line-gold);
  background: rgba(232, 185, 35, .08);
  transition: background .14s ease, color .14s ease;
}
#reset-filters:hover { background: rgba(232, 185, 35, .18); color: #fff; }

#catalog-status { margin: 0; font-size: 12.5px; color: var(--muted); }

/* ==========================================================================
   GAME GRID + CARDS — dense BetConstruct casino grid
   ========================================================================== */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(144px, 1fr));
  gap: clamp(8px, 1vw, 12px);
}
.game-grid.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-card);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .14s ease, transform .12s ease;
}
.game-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 185, 35, .5);
}

.game-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2), var(--bg-2));
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .25s ease, filter .25s ease;
}
.game-card:hover .game-cover img { transform: scale(1.05); filter: brightness(.68); }

.game-cover.image-unavailable {
  display: grid;
  place-items: center;
}
.game-cover.image-unavailable::after {
  content: "BETZOO";
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .1em;
  color: rgba(232, 185, 35, .35);
}
.game-cover.image-unavailable img { display: none; }

/* Play overlay on hover */
.play-indicator {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0;
  color: #17130a;
  opacity: 0;
  transition: opacity .18s ease;
  background: rgba(3, 10, 30, .5);
  z-index: 2;
}
.play-indicator::before {
  content: "▶ OYNA";
  display: inline-grid;
  place-items: center;
  height: 34px;
  padding: 0 16px;
  font-size: 12.5px;
  letter-spacing: .06em;
  border-radius: var(--r-btn);
  background: var(--gold);
  transform: scale(.94);
  transition: transform .18s ease;
}
.game-card:hover .play-indicator,
.game-card:focus-within .play-indicator { opacity: 1; }
.game-card:hover .play-indicator::before { transform: scale(1); }

.game-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px 10px;
}
.game-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-provider {
  font-size: 10.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Favorite heart */
.favorite-toggle {
  position: absolute;
  top: 6px; right: 6px;
  z-index: 3;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  color: #fff;
  background: rgba(3, 10, 30, .6);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform .12s ease, background .14s ease, color .14s ease, border-color .14s ease;
}
.favorite-toggle:hover { transform: scale(1.1); border-color: var(--line-gold); }
.favorite-toggle.active,
.favorite-toggle[aria-pressed="true"] {
  color: var(--gold);
  background: rgba(232, 185, 35, .2);
  border-color: var(--line-gold);
}

/* Compact grid: tighter typography */
.compact-grid .game-info { padding: 7px 9px 8px; }
.compact-grid .game-name { font-size: 11.5px; }
.compact-grid .game-provider { font-size: 10px; }
.compact-grid .favorite-toggle { width: 25px; height: 25px; font-size: 12px; }

/* Skeleton loaders */
.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 3.5;
  min-height: 150px;
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .06) 45%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* State / empty panels */
.state-panel,
.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 42px 20px;
  border-radius: var(--r-card);
  border: 1px dashed var(--line-gold);
  background: rgba(3, 10, 30, .4);
  color: var(--muted);
  font-size: 13px;
}
.state-panel h3,
.empty-state strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--text);
}
.state-panel .button,
.empty-state .button { margin-top: 4px; }

.load-more-wrap {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding-top: 2px;
}

/* ==========================================================================
   LIVE SHELF (stays hidden — minimal styles)
   ========================================================================== */
.live-shelf { display: flex; flex-direction: column; gap: 14px; }
.live-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .09em;
  color: var(--danger);
}
.live-label i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 8px rgba(255, 93, 108, .8);
}
.live-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }

/* ==========================================================================
   LOWER BANNERS
   ========================================================================== */
.lower-banners {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 16px);
}
.mini-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 170px;
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  isolation: isolate;
}
.mini-banner::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--paw);
  background-size: 130px;
  opacity: .6;
  z-index: 0;
}
.mini-banner .eyebrow { position: relative; z-index: 1; }
.mini-banner h2 {
  position: relative;
  z-index: 1;
  font-size: clamp(17px, 2.2vw, 24px);
  font-weight: 800;
  color: #fff;
}
.mini-banner .button { position: relative; z-index: 1; margin-top: auto; }
.slot-mini { background: linear-gradient(135deg, #12306a, #1c50b0 60%, #123064); }
.account-mini { background: linear-gradient(135deg, #201836, #4a3410 60%, #102552); }
.slot-mini-art,
.account-mini-art {
  position: absolute;
  right: -6px;
  bottom: -14px;
  z-index: 0;
  font-size: clamp(100px, 15vw, 150px);
  line-height: 1;
  opacity: .12;
  pointer-events: none;
  user-select: none;
}
.account-mini-art {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--gold);
  opacity: .16;
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.trust-item > span[aria-hidden] {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--gold);
  background: rgba(232, 185, 35, .1);
  border: 1px solid var(--line-gold);
}
.trust-item div { display: flex; flex-direction: column; gap: 2px; }
.trust-item strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .02em;
}
.trust-item span:not([aria-hidden]) { font-size: 11.5px; color: var(--muted); }

/* ==========================================================================
   HELP SECTION + FAQ
   ========================================================================== */
.help-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(16px, 2.6vw, 34px);
  align-items: start;
  padding: clamp(18px, 2.4vw, 30px);
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: var(--surface);
}
.help-intro { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.help-intro h2 { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; }
.help-intro p { margin: 0; color: var(--muted); font-size: 13.5px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-list details {
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(3, 10, 30, .4);
  overflow: hidden;
  transition: border-color .14s ease, background .14s ease;
}
.faq-list details[open] {
  border-color: var(--line-gold);
  background: rgba(232, 185, 35, .05);
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "+";
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: var(--r-btn);
  font-size: 16px; font-weight: 700;
  color: var(--gold);
  background: rgba(232, 185, 35, .12);
  border: 1px solid var(--line-gold);
  transition: transform .18s ease;
}
.faq-list details[open] summary::before { content: "−"; }
.faq-list summary:hover { color: #fff; }
.faq-list summary:focus-visible { box-shadow: var(--ring-gold); }
.faq-list details p {
  margin: 0;
  padding: 0 15px 14px 49px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ==========================================================================
   FOOTER — operator-standard badge rows
   ========================================================================== */
.footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 6px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.footer-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-badges-label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--muted);
  min-width: 82px;
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
}
.brand-badge,
.pay-badge,
.trust-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--muted);
  padding: 7px 12px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  transition: color .14s ease, border-color .14s ease;
}
.brand-badge:hover,
.pay-badge:hover { color: var(--text); border-color: var(--line-gold); }
.pay-badge { color: var(--gold-2); border-color: var(--line-gold); background: rgba(232, 185, 35, .06); }
.trust-badges { gap: 8px; }
.trust-badge {
  color: var(--muted);
  border-color: var(--line);
}
.trust-badge.age {
  font-weight: 800;
  color: var(--gold);
  border-color: var(--line-gold);
  background: rgba(232, 185, 35, .08);
}
/* License/trust badge — reads like a real operator license seal (generic) */
.trust-badge.license {
  gap: 7px;
  padding: 5px 6px 5px 9px;
  color: var(--text);
  border-color: var(--line-gold);
  background: rgba(232, 185, 35, .06);
}
.trust-badge.license .license-seal {
  display: grid;
  place-items: center;
  width: 18px; height: 18px;
  font-size: 11px;
  line-height: 1;
  color: var(--gold);
  filter: grayscale(1) brightness(1.8) sepia(1) hue-rotate(5deg) saturate(4);
}
.trust-badge.license .license-text {
  font-weight: 700;
  letter-spacing: .03em;
}
.trust-badge.license .license-no {
  font-family: 'Courier New', ui-monospace, monospace;
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .02em;
  color: var(--gold-2);
  padding: 3px 7px;
  border-radius: var(--r-btn);
  background: rgba(3, 10, 30, .5);
  border: 1px solid var(--line-gold);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--line-2);
}
.footer-top > p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
}
.footer-top > p strong { color: var(--text); font-family: var(--font-display); }
.footer-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.footer-links button {
  font-size: 12px;
  color: var(--muted);
  padding: 7px 11px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  transition: color .14s ease, border-color .14s ease;
}
.footer-links button:hover { color: var(--text); border-color: var(--line-gold); }
.age-badge {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
  border: 2px solid var(--line-gold);
  background: rgba(232, 185, 35, .08);
}
.footer-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 96ch;
}
.footer-copyright {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* ==========================================================================
   MOBILE NAV (hidden on desktop)
   ========================================================================== */
.mobile-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  grid-template-columns: repeat(5, 1fr);
  padding: 5px 5px calc(5px + env(safe-area-inset-bottom));
  background: var(--header);
  border-top: 1px solid var(--line-gold);
}
.mobile-nav-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: var(--r-btn);
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  transition: color .14s ease;
}
.mobile-nav-button > span[aria-hidden] { font-size: 18px; line-height: 1; }
.mobile-nav-button.active { color: var(--gold); }
/* Deposit gets the same distinct green accent as the header PARA YATIR CTA */
.mobile-nav-button[data-action="deposit"] { color: var(--green-2); }
.mobile-nav-button[data-action="deposit"] > span[aria-hidden] { color: var(--green-2); }
.mobile-nav-button[data-action="deposit"].active { color: var(--green-2); }

/* ==========================================================================
   MODAL (#modal)
   ========================================================================== */
dialog {
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
}
dialog::backdrop {
  background: rgba(2, 6, 18, .7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100vw - 24px));
  height: -moz-fit-content;
  height: fit-content;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 20px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid var(--line-gold);
  box-shadow: 0 30px 70px -28px #000;
  animation: modal-in .2s cubic-bezier(.2, .8, .3, 1);
}
/* Uzun formlarda başlık + kapat (×) her zaman erişilebilir kalsın */
.modal .dialog-header {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: -20px -20px 14px;
  padding: 16px 20px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.dialog-header h2 {
  font-size: 19px;
  font-weight: 800;
}
.dialog-close {
  flex-shrink: 0;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: var(--r-btn);
  font-size: 19px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  transition: color .14s ease, background .14s ease, border-color .14s ease;
}
.dialog-close:hover { color: #fff; background: var(--danger-soft); border-color: rgba(255, 93, 108, .4); }

.modal-notice {
  margin: 0 0 12px;
  padding: 9px 13px;
  border-radius: var(--r-btn);
  font-size: 12.5px;
  color: var(--gold-2);
  background: rgba(232, 185, 35, .1);
  border: 1px solid var(--line-gold);
}
#modal-body { display: flex; flex-direction: column; gap: 14px; }

/* ==========================================================================
   FORMS
   ========================================================================== */
.auth-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label,
.field > span:first-child {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border-radius: var(--r-btn);
  color: var(--text);
  font-size: 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.field textarea { height: auto; min-height: 88px; padding: 11px 13px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted); }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--line-gold);
  box-shadow: var(--ring-gold);
  background: var(--surface);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background:
    var(--bg-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393a4c8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  padding-right: 34px;
}
.field select option { background: var(--surface); color: var(--text); }

/* Password field with inline toggle */
.password-toggle {
  align-self: flex-end;
  margin-top: -2px;
  height: auto;
  padding: 4px 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: normal;
  color: var(--gold-2);
  border: 0;
}
.password-toggle:hover { color: #fff; background: transparent; }

.form-error:empty { display: none; }
.modal-notice:empty { display: none; }
.form-error {
  margin: 0;
  font-size: 12.5px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 93, 108, .3);
  border-radius: var(--r-btn);
  padding: 8px 12px;
}
.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.form-stack .button { width: 100%; margin-top: 2px; }

/* ==========================================================================
   ACCOUNT PANEL
   ========================================================================== */
.account-summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border-radius: var(--r-card);
  background: var(--surface-2);
  border: 1px solid var(--line-gold);
}
.account-avatar {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 21px;
  color: #17130a;
  background: var(--gold);
}
.account-summary > strong { font-family: var(--font-display); font-size: 16px; }
.account-summary > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.account-wallet {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  border-radius: var(--r-card);
  border: 1px solid var(--line);
  background: rgba(3, 10, 30, .4);
}
.account-wallet .eyebrow { color: var(--muted); }
.account-wallet > strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 25px;
  color: var(--gold);
  line-height: 1.1;
}
.account-wallet .button { align-self: flex-start; }
.account-menu {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.account-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: auto;
  padding: 12px 14px;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text);
  text-align: left;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .02);
  transition: border-color .14s ease, background .14s ease;
}
.account-menu button.primary {
  color: #17130a;
  background: var(--gold);
  border-color: var(--gold-deep);
  font-weight: 700;
}
.account-menu button::after { content: "→"; color: var(--muted); }
.account-menu button.primary::after { color: #17130a; }
.account-menu button:hover {
  border-color: var(--line-gold);
  background: rgba(232, 185, 35, .06);
}
.account-menu button.primary:hover { background: var(--gold-2); }

/* ==========================================================================
   DEPOSIT
   ========================================================================== */
.deposit-steps {
  display: flex;
  align-items: center;
  gap: 6px;
}
.deposit-steps span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  padding: 9px 10px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(3, 10, 30, .4);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.deposit-steps span b {
  display: grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  color: var(--gold);
  background: rgba(232, 185, 35, .12);
  border: 1px solid var(--line-gold);
}
.deposit-steps span.done {
  border-color: var(--line-gold);
  color: var(--text);
  background: rgba(37, 194, 110, .07);
}
.deposit-steps span.done b {
  color: #17130a;
  background: var(--success);
  border-color: var(--success);
}

.amount-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 8px;
}
.amount-option {
  height: 42px;
  padding: 0 8px;
  border-radius: var(--r-btn);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--surface-2);
  transition: border-color .14s ease, background .14s ease;
}
.amount-option:hover { border-color: var(--line-gold); background: var(--raised); }
.amount-option.active,
.amount-option[aria-pressed="true"] {
  color: #17130a;
  background: var(--gold);
  border-color: var(--gold-deep);
}

.iban-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--r-card);
  background: rgba(3, 10, 30, .6);
  border: 1px dashed var(--line-gold);
}
.iban-box .eyebrow { flex-basis: 100%; color: var(--muted); }
.iban-box strong {
  font-family: 'Courier New', ui-monospace, monospace;
  font-size: 15px;
  letter-spacing: .04em;
  color: #fff;
  word-break: break-all;
}
.iban-box p { margin: 0; flex-basis: 100%; font-size: 12px; color: var(--muted); }
.iban-box button {
  margin-left: auto;
  height: 32px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #17130a;
  padding: 0 12px;
  border-radius: var(--r-btn);
  background: var(--gold);
}
.iban-box button:hover { background: var(--gold-2); }

/* ==========================================================================
   HISTORY
   ========================================================================== */
.history-filter {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 4px;
  padding: 0;
  height: 40px;
  align-items: center;
  border-radius: var(--r-btn);
  color: var(--text);
  font-size: 13px;
}
select.history-filter {
  appearance: none;
  -webkit-appearance: none;
  padding: 0 32px 0 13px;
  background:
    var(--bg-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2393a4c8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E")
    no-repeat right 13px center;
  border: 1px solid var(--line);
  cursor: pointer;
}
select.history-filter option { background: var(--surface); color: var(--text); }

.history-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 46dvh;
  overflow-y: auto;
  padding-right: 2px;
}
.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
  background: rgba(3, 10, 30, .4);
  font-size: 13px;
}
.history-row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.history-row strong { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.history-row p { margin: 0; }
.history-row small { color: var(--muted); font-size: 11px; }

.status-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.status-badge::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status-badge[data-status="pending"] {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: rgba(245, 184, 61, .35);
}
.status-badge[data-status="approved"] {
  color: var(--success);
  background: var(--success-soft);
  border-color: rgba(37, 194, 110, .35);
}
.status-badge[data-status="rejected"] {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: rgba(255, 93, 108, .35);
}
.status-badge[data-status="unknown"] {
  color: var(--muted);
  background: rgba(147, 164, 200, .12);
  border-color: var(--line);
}

.history-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 11px 13px;
  border-radius: var(--r-btn);
  background: rgba(232, 185, 35, .07);
  border: 1px solid var(--line-gold);
  font-size: 12.5px;
  color: var(--muted);
}
.history-summary span {
  padding: 4px 9px;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line);
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.inline-actions .button { flex: 1; min-width: 120px; }

/* ==========================================================================
   GAME DIALOG (#game-dialog)
   ========================================================================== */
/* KRİTİK: <dialog>'lar KAPALIYKEN gizli kalmalı — display:flex/grid tarayıcı
   varsayılanını (dialog:not([open]){display:none}) ezip kapalı pencereyi
   görünür bırakıyordu (ortadaki kocaman siyah kutu = kapalı game-dialog). */
.modal:not([open]),
.game-dialog:not([open]) { display: none !important; }
.game-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-radius: 0;
  overflow: hidden;
  background: var(--bg-2);
  border: 0;
  box-shadow: none;
}
.game-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
#game-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-balance {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--gold);
  padding: 5px 11px;
  border-radius: var(--r-btn);
  background: rgba(232, 185, 35, .1);
  border: 1px solid var(--line-gold);
}
.game-toolbar .button { flex-shrink: 0; }
#fullscreen-game { margin-left: 0; }
#game-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #000;
}

/* ==========================================================================
   TOAST
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 3000;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  border-radius: var(--r-btn);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--line-gold);
  box-shadow: 0 16px 40px -16px #000;
  animation: toast-in .24s cubic-bezier(.2, .8, .3, 1);
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Runtime-injected helper hooks (from app.js) */
.game-open { cursor: pointer; text-align: left; width: 100%; }
.brand-symbol,
.configured-logo { display: block; }

/* ==========================================================================
   RESPONSIVE — 1300 / 900 / 640
   ========================================================================== */
@media (max-width: 1300px) {
  .feature-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-showcase { grid-template-columns: 1fr; gap: 12px; }
  .provider-heading { max-width: none; }
  .provider-all { justify-self: start; }
  .help-section { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .hero-copy { max-width: 80%; }
  .hero-emblem { opacity: .6; width: clamp(130px, 30vw, 200px); height: clamp(130px, 30vw, 200px); }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

@media (max-width: 640px) {
  .announcement { font-size: 12px; padding: 6px 14px; }
  .announcement button { display: none; }

  /* Simplified topbar: brand + register/deposit only */
  .topbar { gap: 10px; padding: 0 14px; }
  .header-nav { display: none; }
  .header-help,
  .language { display: none; }
  .brand-lockup,
  .betzoo-wordmark { height: 30px; }
  .account-actions { gap: 6px; }
  /* Keep BOTH guest buttons visible on mobile so guests can still log in;
     make them compact so GİRİŞ YAP + KAYIT OL both fit */
  #guest-actions .button {
    height: 34px;
    --btn-pad-x: 11px;
    font-size: 11px;
    letter-spacing: .02em;
    gap: 4px;
  }
  .balance-block { padding: 3px 10px; }
  #balance { font-size: 14px; }
  #member-actions .account-btn { display: none; }

  .lobby-shortcuts { padding: 9px 12px; }
  .lobby-shortcuts > div button span { display: none; }

  .content {
    padding: 14px 12px calc(78px + env(safe-area-inset-bottom));
    gap: 20px;
  }

  /* Show mobile nav */
  .mobile-nav { display: grid; }

  .hero {
    min-height: 220px;
    align-items: flex-end;
    padding: 20px 16px 48px;
  }
  .hero-emblem {
    right: -30px; top: 22%;
    width: 150px; height: 150px;
    opacity: .45;
  }
  .hero-copy { max-width: 100%; }
  .banner-controls { top: 14px; right: 12px; bottom: auto; }
  .banner-dots { bottom: 16px; }
  .banner-age { display: none; }

  .feature-tile { min-height: 84px; padding: 12px 13px; }
  .tile-art { width: 42px; height: 42px; font-size: 16px; }
  .tile-copy small { margin-top: 4px; }

  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .game-grid.compact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .lower-banners { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }

  .section-heading { align-items: flex-start; }
  .catalog-tools,
  .catalog-secondary { flex-direction: column; align-items: stretch; }
  .category-tabs,
  .collection-tabs {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .category-tab,
  .collection-tabs button { white-space: nowrap; }
  .filter-controls { flex-direction: column; align-items: stretch; }
  .search-field,
  select#provider { width: 100%; }
  .sort-controls { justify-content: space-between; }

  .footer-badges-label { min-width: 0; flex-basis: 100%; }
  .footer-top { flex-direction: column; align-items: flex-start; }

  .modal { width: calc(100vw - 20px); padding: 16px; }
  .game-dialog { width: 100vw; height: 100dvh; border-radius: 0; border: 0; margin: 0; inset: 0; }

  .amount-shortcuts { grid-template-columns: repeat(3, 1fr); }
  .deposit-steps span { font-size: 0; gap: 0; padding: 8px; justify-content: center; }
  .deposit-steps span b { font-size: 12px; }
  .inline-actions .button { min-width: 0; }
}

/* Large-desktop: denser lobby grid that fills wide screens like a real operator */
@media (min-width: 1300px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .game-grid.compact-grid { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
}

@media (min-width: 1440px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); }
}

/* Ultra-wide: even more columns for a full operator lobby feel */
@media (min-width: 1720px) {
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(164px, 1fr)); }
}

/* ==========================================================================
   MOTION / PRINT PREFERENCES
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   BETZOO EKSTRALAR — üst marquee · alt kazananlar barı · karşılama popup
   ========================================================================== */

/* --- Üst kayan yazı (marquee) --- */
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
  animation: bz-marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  padding-right: 44px;
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
}
.marquee-item::before { content: "◆"; color: var(--gold); margin-right: 12px; font-size: 8px; vertical-align: middle; opacity: .7; }
@keyframes bz-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Alt kazananlar barı --- */
.winners-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  height: 40px;
  background: linear-gradient(90deg, #0a1636, #0c1c44);
  border-top: 1px solid var(--line-gold);
  box-shadow: 0 -8px 24px -14px #000;
}
.winners-bar[hidden] { display: none !important; }
.winners-label {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 14px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .03em;
  color: #22160a;
  background: var(--gold-grad);
  white-space: nowrap;
}
.winners-viewport { flex: 1; min-width: 0; overflow: hidden; height: 100%; position: relative; }
.winners-track {
  display: inline-flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  will-change: transform;
  animation: bz-winners 64s linear infinite;
}
.winners-bar:hover .winners-track { animation-play-state: paused; }
.winner-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  height: 22px;
  border-right: 1px solid var(--line);
}
.winner-name { font-weight: 700; font-size: 12px; color: var(--text); }
.winner-game { font-size: 11.5px; color: var(--muted); }
.winner-amount { font-family: var(--font-display); font-weight: 800; font-size: 12.5px; color: var(--green-2); }
@keyframes bz-winners { from { transform: translateX(0); } to { transform: translateX(-50%); } }
body.has-winners-bar { padding-bottom: 40px; }

/* --- Karşılama popup (girişte açılan bonus görseli) --- */
.welcome-pop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(2, 6, 18, .82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: bz-fade .25s ease;
}
.welcome-pop[hidden] { display: none !important; }
.welcome-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(400px, 92vw);
  max-height: 94dvh;
  animation: bz-pop .3s cubic-bezier(.2, .8, .3, 1);
}
.welcome-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 78dvh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 60px -20px #000;
}
.welcome-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  color: #0a1020;
  border: 2px solid var(--gold);
  font-size: 18px; font-weight: 800;
  display: grid; place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px #000;
  z-index: 2;
  transition: background .15s ease, transform .15s ease;
}
.welcome-close:hover { background: var(--gold); transform: scale(1.06); }
.welcome-cta { width: 100%; max-width: 320px; }
@keyframes bz-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bz-pop { from { opacity: 0; transform: scale(.92) translateY(10px); } to { opacity: 1; transform: none; } }

/* --- Mobil uyum --- */
@media (max-width: 640px) {
  .winners-bar { bottom: calc(54px + env(safe-area-inset-bottom)); height: 34px; }
  .winners-label { font-size: 10px; padding: 0 10px; }
  .winner-item { padding: 0 14px; gap: 6px; }
  body.has-winners-bar { padding-bottom: calc(34px + 54px + env(safe-area-inset-bottom)); }
  .welcome-close { top: 2px; right: 2px; }
  .welcome-card { width: 94vw; }
  .marquee-item { font-size: 11.5px; padding-right: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .winners-track { animation-duration: 120s; }
}
