/* Lagoon — Night & Gold
   Palette: Night #0F0F0F · Jet #2A2929 · Black olive #444342 · Jonquil #FFD000 · Selective yellow #FFB700 */

html {
  --night: #0f0f0f;
  --jet: #2a2929;
  --olive: #444342;
  --jonquil: #ffd000;
  --amber: #ffb700;

  --s0: #0a0a0a;
  --s1: #0f0f0f;
  --s2: #161515;
  --s3: #1d1c1c;
  --s4: #2a2929;
  --s5: #444342;

  --ink: #f5f3ee;
  --ink-2: #c9c6c0;
  --dim: #9c9a96;
  --mute: #6f6d6a;

  --gold: linear-gradient(135deg, #ffd000 0%, #ffb700 100%);
  --gold-sheen: linear-gradient(135deg, #ffe04d 0%, #ffd000 35%, #ffb700 100%);
  --gold-soft: rgba(255, 183, 0, 0.12);
  --gold-line: rgba(255, 208, 0, 0.22);
  --hair: rgba(255, 255, 255, 0.06);
  --line: #2f2e2e;

  /* Benjamin green — the $100 note, reserved for wallet / money surfaces. */
  --bill: #85bb65;
  --bill-ink: #e9f3df;
  --bill-dim: #a9c99a;
  --bill-deep: #0e2d1f;
  --bill-line: rgba(133, 187, 101, 0.32);
  --bill-bg:
    radial-gradient(120% 140% at 0% 0%, rgba(133, 187, 101, 0.28), transparent 55%),
    repeating-radial-gradient(circle at 115% 50%, rgba(233, 243, 223, 0.05) 0 1px, transparent 1px 5px),
    linear-gradient(135deg, #1a4a33 0%, #123a28 48%, #0c2a1c 100%);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;
  --btn-h: 44px;
  --btn-h-sm: 36px;
  --field-h: 46px;
  --field-bg: #141413;
  --field-bg-focus: #1c1b1a;
  --field-line: rgba(255, 255, 255, 0.1);
  --field-line-hover: rgba(255, 255, 255, 0.2);
  --field-ring: 0 0 0 3px rgba(255, 208, 0, 0.16);

  --lift: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 10px 30px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px rgba(255, 208, 0, 0.55), 0 16px 40px rgba(255, 183, 0, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --primary: 43 100% 50% !important;
  --primary-foreground: 0 0% 6% !important;
  --accent: 49 100% 50% !important;
  --accent-foreground: 0 0% 6% !important;
  --background: 0 0% 6% !important;
  --foreground: 40 20% 95% !important;
  --card: 0 2% 8% !important;
  --card-foreground: 40 20% 95% !important;
  --popover: 0 2% 8% !important;
  --popover-foreground: 40 20% 95% !important;
  --secondary: 0 1% 16% !important;
  --secondary-foreground: 40 20% 95% !important;
  --muted: 0 1% 16% !important;
  --muted-foreground: 40 2% 60% !important;
  --border: 0 1% 18% !important;
  --input: 0 1% 18% !important;
  --ring: 43 100% 50% !important;
  --radius: 0.875rem !important;
  --bg-main: #0f0f0f !important;

  color-scheme: dark;
  background: var(--night) !important;
}

/* ---------- Base ---------- */

html,
body {
  color: var(--ink);
  font-family: Manrope, Inter, system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body {
  background-color: var(--night) !important;
  background-image:
    radial-gradient(900px 420px at 12% -120px, rgba(255, 208, 0, 0.06), transparent 70%),
    radial-gradient(900px 480px at 100% -80px, rgba(255, 183, 0, 0.05), transparent 70%) !important;
  background-attachment: fixed !important;
}

body > div.flex-1.overflow-y-auto,
body > div[class~="overflow-y-auto"] {
  background: transparent !important;
}

::selection {
  color: var(--night);
  background: var(--jonquil);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--olive) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: var(--olive);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--amber);
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

:focus-visible {
  outline: 2px solid var(--jonquil) !important;
  outline-offset: 2px !important;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1,
h2,
h3 {
  font-weight: 800 !important;
}

.tabular-nums,
[class~="font-mono"] {
  font-variant-numeric: tabular-nums;
}

[class~="font-mono"] {
  font-family: Manrope, Inter, system-ui, sans-serif !important;
}

img {
  -webkit-user-drag: none;
}

/* ---------- Palette remap: Tailwind hue utilities ---------- */
[class*=" text-green-"],
[class*=" text-emerald-"],
[class*=" text-lime-"],
[class*=" text-teal-"],
[class*=" text-cyan-"],
[class*=" text-sky-"],
[class*=" text-blue-"],
[class*=" text-indigo-"],
[class*=" text-violet-"],
[class*=" text-purple-"],
[class*=" text-fuchsia-"],
[class*=" text-pink-"],
[class*=" text-rose-"],
[class*=" text-orange-"],
[class*=" text-yellow-"],
[class*=" text-amber-"] {
  color: #ffd000 !important;
}
[class*=" bg-green-"],
[class*=" bg-emerald-"],
[class*=" bg-lime-"],
[class*=" bg-teal-"],
[class*=" bg-cyan-"],
[class*=" bg-sky-"],
[class*=" bg-blue-"],
[class*=" bg-indigo-"],
[class*=" bg-violet-"],
[class*=" bg-purple-"],
[class*=" bg-fuchsia-"],
[class*=" bg-pink-"],
[class*=" bg-rose-"],
[class*=" bg-orange-"],
[class*=" bg-yellow-"],
[class*=" bg-amber-"] {
  background-color: #ffb700 !important;
  color: var(--night) !important;
}
[class*=" bg-green-8"],
[class*=" bg-green-9"],
[class*=" bg-emerald-8"],
[class*=" bg-emerald-9"],
[class*=" bg-lime-8"],
[class*=" bg-lime-9"],
[class*=" bg-teal-8"],
[class*=" bg-teal-9"],
[class*=" bg-cyan-8"],
[class*=" bg-cyan-9"],
[class*=" bg-sky-8"],
[class*=" bg-sky-9"],
[class*=" bg-blue-8"],
[class*=" bg-blue-9"],
[class*=" bg-indigo-8"],
[class*=" bg-indigo-9"],
[class*=" bg-violet-8"],
[class*=" bg-violet-9"],
[class*=" bg-purple-8"],
[class*=" bg-purple-9"],
[class*=" bg-fuchsia-8"],
[class*=" bg-fuchsia-9"],
[class*=" bg-pink-8"],
[class*=" bg-pink-9"],
[class*=" bg-rose-8"],
[class*=" bg-rose-9"],
[class*=" bg-orange-8"],
[class*=" bg-orange-9"],
[class*=" bg-yellow-8"],
[class*=" bg-yellow-9"],
[class*=" bg-amber-8"],
[class*=" bg-amber-9"] {
  background-color: var(--s3) !important;
  color: inherit !important;
}
[class*=" bg-green-"][class*="00/"],
[class*=" bg-emerald-"][class*="00/"],
[class*=" bg-lime-"][class*="00/"],
[class*=" bg-teal-"][class*="00/"],
[class*=" bg-cyan-"][class*="00/"],
[class*=" bg-sky-"][class*="00/"],
[class*=" bg-blue-"][class*="00/"],
[class*=" bg-indigo-"][class*="00/"],
[class*=" bg-violet-"][class*="00/"],
[class*=" bg-purple-"][class*="00/"],
[class*=" bg-fuchsia-"][class*="00/"],
[class*=" bg-pink-"][class*="00/"],
[class*=" bg-rose-"][class*="00/"],
[class*=" bg-orange-"][class*="00/"],
[class*=" bg-yellow-"][class*="00/"],
[class*=" bg-amber-"][class*="00/"] {
  background-color: rgba(255, 183, 0, 0.12) !important;
  color: inherit !important;
}
[class*=" border-green-"],
[class*=" border-emerald-"],
[class*=" border-lime-"],
[class*=" border-teal-"],
[class*=" border-cyan-"],
[class*=" border-sky-"],
[class*=" border-blue-"],
[class*=" border-indigo-"],
[class*=" border-violet-"],
[class*=" border-purple-"],
[class*=" border-fuchsia-"],
[class*=" border-pink-"],
[class*=" border-rose-"],
[class*=" border-orange-"],
[class*=" border-yellow-"],
[class*=" border-amber-"] {
  border-color: rgba(255, 183, 0, 0.45) !important;
}
[class*=" ring-green-"],
[class*=" ring-emerald-"],
[class*=" ring-lime-"],
[class*=" ring-teal-"],
[class*=" ring-cyan-"],
[class*=" ring-sky-"],
[class*=" ring-blue-"],
[class*=" ring-indigo-"],
[class*=" ring-violet-"],
[class*=" ring-purple-"],
[class*=" ring-fuchsia-"],
[class*=" ring-pink-"],
[class*=" ring-rose-"],
[class*=" ring-orange-"],
[class*=" ring-yellow-"],
[class*=" ring-amber-"] {
  --tw-ring-color: rgba(255, 183, 0, 0.55) !important;
}
[class*=" shadow-green-"],
[class*=" shadow-emerald-"],
[class*=" shadow-lime-"],
[class*=" shadow-teal-"],
[class*=" shadow-cyan-"],
[class*=" shadow-sky-"],
[class*=" shadow-blue-"],
[class*=" shadow-indigo-"],
[class*=" shadow-violet-"],
[class*=" shadow-purple-"],
[class*=" shadow-fuchsia-"],
[class*=" shadow-pink-"],
[class*=" shadow-rose-"],
[class*=" shadow-orange-"],
[class*=" shadow-yellow-"],
[class*=" shadow-amber-"] {
  --tw-shadow-color: rgba(255, 183, 0, 0.28) !important;
}
[class*=" from-green-"],
[class*=" from-emerald-"],
[class*=" from-lime-"],
[class*=" from-teal-"],
[class*=" from-cyan-"],
[class*=" from-sky-"],
[class*=" from-blue-"],
[class*=" from-indigo-"],
[class*=" from-violet-"],
[class*=" from-purple-"],
[class*=" from-fuchsia-"],
[class*=" from-pink-"],
[class*=" from-rose-"],
[class*=" from-orange-"],
[class*=" from-yellow-"],
[class*=" from-amber-"] {
  --tw-gradient-from: #ffd000 var(--tw-gradient-from-position) !important;
}
[class*=" from-green-8"],
[class*=" from-green-9"],
[class*=" from-emerald-8"],
[class*=" from-emerald-9"],
[class*=" from-lime-8"],
[class*=" from-lime-9"],
[class*=" from-teal-8"],
[class*=" from-teal-9"],
[class*=" from-cyan-8"],
[class*=" from-cyan-9"],
[class*=" from-sky-8"],
[class*=" from-sky-9"],
[class*=" from-blue-8"],
[class*=" from-blue-9"],
[class*=" from-indigo-8"],
[class*=" from-indigo-9"],
[class*=" from-violet-8"],
[class*=" from-violet-9"],
[class*=" from-purple-8"],
[class*=" from-purple-9"],
[class*=" from-fuchsia-8"],
[class*=" from-fuchsia-9"],
[class*=" from-pink-8"],
[class*=" from-pink-9"],
[class*=" from-rose-8"],
[class*=" from-rose-9"],
[class*=" from-orange-8"],
[class*=" from-orange-9"],
[class*=" from-yellow-8"],
[class*=" from-yellow-9"],
[class*=" from-amber-8"],
[class*=" from-amber-9"] {
  --tw-gradient-from: var(--s3) var(--tw-gradient-from-position) !important;
}
[class*=" to-green-"],
[class*=" to-emerald-"],
[class*=" to-lime-"],
[class*=" to-teal-"],
[class*=" to-cyan-"],
[class*=" to-sky-"],
[class*=" to-blue-"],
[class*=" to-indigo-"],
[class*=" to-violet-"],
[class*=" to-purple-"],
[class*=" to-fuchsia-"],
[class*=" to-pink-"],
[class*=" to-rose-"],
[class*=" to-orange-"],
[class*=" to-yellow-"],
[class*=" to-amber-"] {
  --tw-gradient-to: #ffb700 var(--tw-gradient-to-position) !important;
}
[class*=" to-green-8"],
[class*=" to-green-9"],
[class*=" to-emerald-8"],
[class*=" to-emerald-9"],
[class*=" to-lime-8"],
[class*=" to-lime-9"],
[class*=" to-teal-8"],
[class*=" to-teal-9"],
[class*=" to-cyan-8"],
[class*=" to-cyan-9"],
[class*=" to-sky-8"],
[class*=" to-sky-9"],
[class*=" to-blue-8"],
[class*=" to-blue-9"],
[class*=" to-indigo-8"],
[class*=" to-indigo-9"],
[class*=" to-violet-8"],
[class*=" to-violet-9"],
[class*=" to-purple-8"],
[class*=" to-purple-9"],
[class*=" to-fuchsia-8"],
[class*=" to-fuchsia-9"],
[class*=" to-pink-8"],
[class*=" to-pink-9"],
[class*=" to-rose-8"],
[class*=" to-rose-9"],
[class*=" to-orange-8"],
[class*=" to-orange-9"],
[class*=" to-yellow-8"],
[class*=" to-yellow-9"],
[class*=" to-amber-8"],
[class*=" to-amber-9"] {
  --tw-gradient-to: var(--s1) var(--tw-gradient-to-position) !important;
}
[class*=" via-green-"],
[class*=" via-emerald-"],
[class*=" via-lime-"],
[class*=" via-teal-"],
[class*=" via-cyan-"],
[class*=" via-sky-"],
[class*=" via-blue-"],
[class*=" via-indigo-"],
[class*=" via-violet-"],
[class*=" via-purple-"],
[class*=" via-fuchsia-"],
[class*=" via-pink-"],
[class*=" via-rose-"],
[class*=" via-orange-"],
[class*=" via-yellow-"],
[class*=" via-amber-"] {
  --tw-gradient-stops: var(--tw-gradient-from), #ffc400 var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}
[class*=" via-green-8"],
[class*=" via-green-9"],
[class*=" via-emerald-8"],
[class*=" via-emerald-9"],
[class*=" via-lime-8"],
[class*=" via-lime-9"],
[class*=" via-teal-8"],
[class*=" via-teal-9"],
[class*=" via-cyan-8"],
[class*=" via-cyan-9"],
[class*=" via-sky-8"],
[class*=" via-sky-9"],
[class*=" via-blue-8"],
[class*=" via-blue-9"],
[class*=" via-indigo-8"],
[class*=" via-indigo-9"],
[class*=" via-violet-8"],
[class*=" via-violet-9"],
[class*=" via-purple-8"],
[class*=" via-purple-9"],
[class*=" via-fuchsia-8"],
[class*=" via-fuchsia-9"],
[class*=" via-pink-8"],
[class*=" via-pink-9"],
[class*=" via-rose-8"],
[class*=" via-rose-9"],
[class*=" via-orange-8"],
[class*=" via-orange-9"],
[class*=" via-yellow-8"],
[class*=" via-yellow-9"],
[class*=" via-amber-8"],
[class*=" via-amber-9"] {
  --tw-gradient-stops: var(--tw-gradient-from), var(--s2) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

/* ---------- Palette remap: cool neutrals -> warm neutrals ---------- */
[class*=" bg-slate-7"],
[class*=" bg-gray-7"],
[class*=" bg-zinc-7"],
[class*=" bg-neutral-7"],
[class*=" bg-stone-7"] {
  background-color: var(--s4) !important;
}
[class*=" bg-slate-8"],
[class*=" bg-gray-8"],
[class*=" bg-zinc-8"],
[class*=" bg-neutral-8"],
[class*=" bg-stone-8"] {
  background-color: var(--s3) !important;
}
[class*=" bg-slate-9"],
[class*=" bg-gray-9"],
[class*=" bg-zinc-9"],
[class*=" bg-neutral-9"],
[class*=" bg-stone-9"] {
  background-color: var(--s2) !important;
}
[class*=" border-slate-6"],
[class*=" border-gray-6"],
[class*=" border-zinc-6"],
[class*=" border-neutral-6"],
[class*=" border-stone-6"] {
  border-color: var(--s5) !important;
}
[class*=" border-slate-7"],
[class*=" border-slate-8"],
[class*=" border-slate-9"],
[class*=" border-gray-7"],
[class*=" border-gray-8"],
[class*=" border-gray-9"],
[class*=" border-zinc-7"],
[class*=" border-zinc-8"],
[class*=" border-zinc-9"],
[class*=" border-neutral-7"],
[class*=" border-neutral-8"],
[class*=" border-neutral-9"],
[class*=" border-stone-7"],
[class*=" border-stone-8"],
[class*=" border-stone-9"] {
  border-color: #2f2e2e !important;
}
[class*=" text-slate-1"],
[class*=" text-slate-2"],
[class*=" text-gray-1"],
[class*=" text-gray-2"],
[class*=" text-zinc-1"],
[class*=" text-zinc-2"],
[class*=" text-neutral-1"],
[class*=" text-neutral-2"],
[class*=" text-stone-1"],
[class*=" text-stone-2"] {
  color: var(--ink) !important;
}
[class*=" text-slate-3"],
[class*=" text-gray-3"],
[class*=" text-zinc-3"],
[class*=" text-neutral-3"],
[class*=" text-stone-3"] {
  color: var(--ink-2) !important;
}
[class*=" text-slate-4"],
[class*=" text-gray-4"],
[class*=" text-zinc-4"],
[class*=" text-neutral-4"],
[class*=" text-stone-4"] {
  color: var(--dim) !important;
}
[class*=" text-slate-5"],
[class*=" text-slate-6"],
[class*=" text-gray-5"],
[class*=" text-gray-6"],
[class*=" text-zinc-5"],
[class*=" text-zinc-6"],
[class*=" text-neutral-5"],
[class*=" text-neutral-6"],
[class*=" text-stone-5"],
[class*=" text-stone-6"] {
  color: var(--mute) !important;
}
[class*=" from-slate-7"],
[class*=" from-slate-8"],
[class*=" from-slate-9"],
[class*=" from-gray-7"],
[class*=" from-gray-8"],
[class*=" from-gray-9"],
[class*=" from-zinc-7"],
[class*=" from-zinc-8"],
[class*=" from-zinc-9"],
[class*=" from-neutral-7"],
[class*=" from-neutral-8"],
[class*=" from-neutral-9"],
[class*=" from-stone-7"],
[class*=" from-stone-8"],
[class*=" from-stone-9"] {
  --tw-gradient-from: var(--s2) var(--tw-gradient-from-position) !important;
}
[class*=" to-slate-7"],
[class*=" to-slate-8"],
[class*=" to-slate-9"],
[class*=" to-gray-7"],
[class*=" to-gray-8"],
[class*=" to-gray-9"],
[class*=" to-zinc-7"],
[class*=" to-zinc-8"],
[class*=" to-zinc-9"],
[class*=" to-neutral-7"],
[class*=" to-neutral-8"],
[class*=" to-neutral-9"],
[class*=" to-stone-7"],
[class*=" to-stone-8"],
[class*=" to-stone-9"] {
  --tw-gradient-to: var(--s1) var(--tw-gradient-to-position) !important;
}

/* ---------- Palette remap: hardcoded hex utilities ---------- */
[class*=" bg-[#010101]"],
[class*=" bg-[#050505]"],
[class*=" bg-[#050508]"],
[class*=" bg-[#05060a]"],
[class*=" bg-[#05060f]"],
[class*=" bg-[#07090D]"],
[class*=" bg-[#0a0a0a]"],
[class*=" bg-[#0a0a0f]"],
[class*=" bg-[#0a0a10]"],
[class*=" bg-[#0a0b16]"],
[class*=" bg-[#0a0c14]"],
[class*=" bg-[#0b0617]"],
[class*=" bg-[#0b0d15]"] {
  background-color: var(--s0) !important;
}
[class*=" bg-[#0D0D0F]"],
[class*=" bg-[#0F1116]"],
[class*=" bg-[#0d0d0d]"],
[class*=" bg-[#0d1117]"],
[class*=" bg-[#0e0e0e]"],
[class*=" bg-[#0e1621]"],
[class*=" bg-[#0f0f0f]"],
[class*=" bg-[#0f0f11]"],
[class*=" bg-[#0f0f1a]"],
[class*=" bg-[#0f1221]"],
[class*=" bg-[#0f1419]"],
[class*=" bg-[#0f172a]"],
[class*=" bg-[#111118]"],
[class*=" bg-[#111]"] {
  background-color: var(--s1) !important;
}
[class*=" bg-[#141414]"],
[class*=" bg-[#151515]"],
[class*=" bg-[#151b2b]"],
[class*=" bg-[#161616]"],
[class*=" bg-[#161a2e]"],
[class*=" bg-[#161b22]"],
[class*=" bg-[#16213e]"],
[class*=" bg-[#18181b]"],
[class*=" bg-[#1A1A1E]"],
[class*=" bg-[#1A1D24]"],
[class*=" bg-[#1a0d2e]"],
[class*=" bg-[#1a1a1a]"],
[class*=" bg-[#1a1a2e]"],
[class*=" bg-[#1a1c24]"] {
  background-color: var(--s2) !important;
}
[class*=" bg-[#1c2139]"],
[class*=" bg-[#1c222b]"],
[class*=" bg-[#1d1d2b]"],
[class*=" bg-[#1e1e1e]"],
[class*=" bg-[#1e2340]"],
[class*=" bg-[#1e2738]"],
[class*=" bg-[#1f1f1f]"],
[class*=" bg-[#202024]"],
[class*=" bg-[#222]"],
[class*=" bg-[#232323]"],
[class*=" bg-[#252525]"],
[class*=" bg-[#25252A]"],
[class*=" bg-[#252a40]"],
[class*=" bg-[#252a50]"] {
  background-color: var(--s3) !important;
}
[class*=" bg-[#27272a]"],
[class*=" bg-[#2F343D]"],
[class*=" bg-[#2a1a0a]"],
[class*=" bg-[#2a1a47]"],
[class*=" bg-[#2a2a2a]"],
[class*=" bg-[#2a2a2e]"],
[class*=" bg-[#2a2f4a]"],
[class*=" bg-[#2a3548]"],
[class*=" bg-[#333]"] {
  background-color: var(--s4) !important;
}
[class*=" bg-[#383838]"],
[class*=" bg-[#3A404B]"],
[class*=" bg-[#3a3a3a]"],
[class*=" bg-[#3f3f46]"],
[class*=" bg-[#444]"] {
  background-color: var(--s5) !important;
}
[class*=" bg-[#00C853]"],
[class*=" bg-[#009624]"],
[class*=" bg-[#00A846]"],
[class*=" bg-[#00E701]"],
[class*=" bg-[#00FF00]"],
[class*=" bg-[#00a844]"],
[class*=" bg-[#289030]"],
[class*=" bg-[#32b13c]"],
[class*=" bg-[#34d399]"],
[class*=" bg-[#3a9bc5]"],
[class*=" bg-[#3a9bc6]"],
[class*=" bg-[#4ab7e2]"],
[class*=" bg-[#a78bfa]"],
[class*=" bg-[#e91e63]"],
[class*=" bg-[#FF9100]"],
[class*=" bg-[#FFD600]"],
[class*=" bg-[#d4a420]"],
[class*=" bg-[#f0a900]"],
[class*=" bg-[#f4c430]"],
[class*=" bg-[#f9bf15]"],
[class*=" bg-[#ffb700]"] {
  background-color: #ffb700 !important;
  color: var(--night) !important;
}
[class*=" bg-[#00C853]/"],
[class*=" bg-[#009624]/"],
[class*=" bg-[#00A846]/"],
[class*=" bg-[#00E701]/"],
[class*=" bg-[#00FF00]/"],
[class*=" bg-[#00a844]/"],
[class*=" bg-[#289030]/"],
[class*=" bg-[#32b13c]/"],
[class*=" bg-[#34d399]/"],
[class*=" bg-[#3a9bc5]/"],
[class*=" bg-[#3a9bc6]/"],
[class*=" bg-[#4ab7e2]/"],
[class*=" bg-[#a78bfa]/"],
[class*=" bg-[#e91e63]/"],
[class*=" bg-[#FF9100]/"],
[class*=" bg-[#FFD600]/"],
[class*=" bg-[#d4a420]/"],
[class*=" bg-[#f0a900]/"],
[class*=" bg-[#f4c430]/"],
[class*=" bg-[#f9bf15]/"],
[class*=" bg-[#ffb700]/"] {
  background-color: rgba(255, 183, 0, 0.12) !important;
  color: inherit !important;
}
[class*=" bg-[#0088cc]"],
[class*=" bg-[#1877f2]"],
[class*=" bg-[#1da1f2]"],
[class*=" bg-[#0a66c2]"],
[class*=" bg-[#5865f2]"],
[class*=" bg-[#9146ff]"],
[class*=" bg-[#25d366]"],
[class*="from-[#f09433]"] {
  background: var(--s4) !important;
  color: #ffd000 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.18);
}
[class*=" border-[#0a0a0a]"],
[class*=" border-[#0a0a0f]"],
[class*=" border-[#111]"],
[class*=" border-[#161616]"],
[class*=" border-[#1a1a1a]"],
[class*=" border-[#1a1a2e]"],
[class*=" border-[#1c1c1c]"],
[class*=" border-[#1e2340]"],
[class*=" border-[#1f1f1f]"],
[class*=" border-[#222233]"],
[class*=" border-[#222238]"],
[class*=" border-[#222]"],
[class*=" border-[#252a40]"],
[class*=" border-[#262626]"] {
  border-color: #232222 !important;
}
[class*=" border-[#2a2a2a]"],
[class*=" border-[#2a2a3e]"],
[class*=" border-[#2a2f4a]"],
[class*=" border-[#2a3548]"],
[class*=" border-[#2c2c2c]"],
[class*=" border-[#333]"],
[class*=" border-[#353a50]"],
[class*=" border-[#353b5a]"],
[class*=" border-[#3a3a3a]"],
[class*=" border-[#3a4060]"] {
  border-color: #2f2e2e !important;
}
[class*=" border-[#444]"],
[class*=" border-[#555]"],
[class*=" border-[#666]"] {
  border-color: #444342 !important;
}
[class*=" border-[#00C853]"],
[class*=" border-[#4ab7e2]"],
[class*=" border-[#f0a900]"],
[class*=" border-[#f4c430]"] {
  border-color: rgba(255, 183, 0, 0.55) !important;
}
[class*=" text-[#00C853]"],
[class*=" text-[#32b13c]"],
[class*=" text-[#4ab7e2]"],
[class*=" text-[#f4c430]"],
[class*=" text-[#f9bf15]"] {
  color: #ffd000 !important;
}
[class*=" text-[#e91e63]"],
[class*=" text-[#f0a900]"] {
  color: #ffb700 !important;
}
[class*=" text-[#333]"],
[class*=" text-[#3d4158]"],
[class*=" text-[#444]"] {
  color: #444342 !important;
}
[class*=" text-[#4a4f65]"],
[class*=" text-[#555]"],
[class*=" text-[#5a5e72]"],
[class*=" text-[#666]"],
[class*=" text-[#6b7089]"],
[class*=" text-[#6f6f6f]"] {
  color: #6f6d6a !important;
}
[class*=" text-[#777]"],
[class*=" text-[#888899]"],
[class*=" text-[#888]"],
[class*=" text-[#8b8fa3]"],
[class*=" text-[#8b8fa8]"],
[class*=" text-[#999]"],
[class*=" text-[#9a9a9a]"] {
  color: #9c9a96 !important;
}
[class*=" text-[#aaa]"],
[class*=" text-[#bbb]"],
[class*=" text-[#c0c4d6]"],
[class*=" text-[#ccc]"] {
  color: #c9c6c0 !important;
}
[class*=" from-[#0a0a0a]"],
[class*=" from-[#0a0a0f]"],
[class*=" from-[#0a1a0a]"],
[class*=" from-[#0d0d0d]"],
[class*=" from-[#0d1117]"],
[class*=" from-[#161b22]"],
[class*=" from-[#18181b]"],
[class*=" from-[#1a1a1a]"],
[class*=" from-[#1a1a2e]"],
[class*=" from-[#1a1c24]"],
[class*=" from-[#1a2040]"],
[class*=" from-[#1a2332]"],
[class*=" from-[#1a3322]"],
[class*=" from-[#1b1608]"],
[class*=" from-[#1e2738]"],
[class*=" from-[#222]"],
[class*=" from-[#2a2d36]"],
[class*=" from-[#0d0b14]"],
[class*=" from-[#0f0f11]"],
[class*=" from-[#141c28]"],
[class*=" from-[#15171e]"],
[class*=" from-[#16213e]"],
[class*=" from-[#1a2a1a]"],
[class*=" from-[#0d0d1a]"],
[class*=" from-[#0f0f1a]"],
[class*=" from-[#12101d]"],
[class*=" from-[#1e2548]"] {
  --tw-gradient-from: var(--s2) var(--tw-gradient-from-position) !important;
}
[class*=" to-[#0a0a0a]"],
[class*=" to-[#0a0a0f]"],
[class*=" to-[#0a1a0a]"],
[class*=" to-[#0d0d0d]"],
[class*=" to-[#0d1117]"],
[class*=" to-[#161b22]"],
[class*=" to-[#18181b]"],
[class*=" to-[#1a1a1a]"],
[class*=" to-[#1a1a2e]"],
[class*=" to-[#1a1c24]"],
[class*=" to-[#1a2040]"],
[class*=" to-[#1a2332]"],
[class*=" to-[#1a3322]"],
[class*=" to-[#1b1608]"],
[class*=" to-[#1e2738]"],
[class*=" to-[#222]"],
[class*=" to-[#2a2d36]"],
[class*=" to-[#0d0b14]"],
[class*=" to-[#0f0f11]"],
[class*=" to-[#141c28]"],
[class*=" to-[#15171e]"],
[class*=" to-[#16213e]"],
[class*=" to-[#1a2a1a]"],
[class*=" to-[#0d0d1a]"],
[class*=" to-[#0f0f1a]"],
[class*=" to-[#12101d]"],
[class*=" to-[#1e2548]"] {
  --tw-gradient-to: var(--s1) var(--tw-gradient-to-position) !important;
}
[class*=" via-[#0a0a0a]"],
[class*=" via-[#0a0a0f]"],
[class*=" via-[#0a1a0a]"],
[class*=" via-[#0d0d0d]"],
[class*=" via-[#0d1117]"],
[class*=" via-[#161b22]"],
[class*=" via-[#18181b]"],
[class*=" via-[#1a1a1a]"],
[class*=" via-[#1a1a2e]"],
[class*=" via-[#1a1c24]"],
[class*=" via-[#1a2040]"],
[class*=" via-[#1a2332]"],
[class*=" via-[#1a3322]"],
[class*=" via-[#1b1608]"],
[class*=" via-[#1e2738]"],
[class*=" via-[#222]"],
[class*=" via-[#2a2d36]"],
[class*=" via-[#0d0b14]"],
[class*=" via-[#0f0f11]"],
[class*=" via-[#141c28]"],
[class*=" via-[#15171e]"],
[class*=" via-[#16213e]"],
[class*=" via-[#1a2a1a]"],
[class*=" via-[#0d0d1a]"],
[class*=" via-[#0f0f1a]"],
[class*=" via-[#12101d]"],
[class*=" via-[#1e2548]"] {
  --tw-gradient-stops: var(--tw-gradient-from), var(--s2) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}
[class*=" from-[#00C853]"],
[class*=" from-[#3a9bc5]"],
[class*=" from-[#4ab7e2]"],
[class*=" from-[#f09433]"],
[class*=" from-[#f9bf15]"],
[class*=" from-[#257ba5]"],
[class*=" from-[#2d8bb8]"],
[class*=" from-[#34d399]"],
[class*=" from-[#bc1888]"],
[class*=" from-[#d4a012]"],
[class*=" from-[#5ec4e8]"],
[class*=" from-[#a78bfa]"],
[class*=" from-[#e6683c]"],
[class*=" from-[#fcd44d]"] {
  --tw-gradient-from: #ffd000 var(--tw-gradient-from-position) !important;
}
[class*=" to-[#00C853]"],
[class*=" to-[#3a9bc5]"],
[class*=" to-[#4ab7e2]"],
[class*=" to-[#f09433]"],
[class*=" to-[#f9bf15]"],
[class*=" to-[#257ba5]"],
[class*=" to-[#2d8bb8]"],
[class*=" to-[#34d399]"],
[class*=" to-[#bc1888]"],
[class*=" to-[#d4a012]"],
[class*=" to-[#5ec4e8]"],
[class*=" to-[#a78bfa]"],
[class*=" to-[#e6683c]"],
[class*=" to-[#fcd44d]"] {
  --tw-gradient-to: #ffb700 var(--tw-gradient-to-position) !important;
}
[class*=" via-[#00C853]"],
[class*=" via-[#3a9bc5]"],
[class*=" via-[#4ab7e2]"],
[class*=" via-[#f09433]"],
[class*=" via-[#f9bf15]"],
[class*=" via-[#257ba5]"],
[class*=" via-[#2d8bb8]"],
[class*=" via-[#34d399]"],
[class*=" via-[#bc1888]"],
[class*=" via-[#d4a012]"],
[class*=" via-[#5ec4e8]"],
[class*=" via-[#a78bfa]"],
[class*=" via-[#e6683c]"],
[class*=" via-[#fcd44d]"] {
  --tw-gradient-stops: var(--tw-gradient-from), #ffc400 var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}
[class*=" shadow-[#00E701]"],
[class*=" shadow-[#4ab7e2]"],
[class*=" ring-[#4ab7e2]"] {
  --tw-shadow-color: rgba(255, 183, 0, 0.28) !important;
  --tw-ring-color: rgba(255, 183, 0, 0.55) !important;
}
[class*=" bg-[#4a1c1c]"],
[class*=" bg-red-9"][class*="00/"],
[class*=" bg-red-5"][class*="00/"] {
  background-color: rgba(229, 72, 77, 0.08) !important;
}
[class*=" border-[#8b2525]"] {
  border-color: rgba(229, 72, 77, 0.35) !important;
}

/* ---------- Palette remap: hover / group-hover variants ---------- */
[class*="hover:bg-green-"]:hover,
[class*="hover:bg-emerald-"]:hover,
[class*="hover:bg-lime-"]:hover,
[class*="hover:bg-teal-"]:hover,
[class*="hover:bg-cyan-"]:hover,
[class*="hover:bg-sky-"]:hover,
[class*="hover:bg-blue-"]:hover,
[class*="hover:bg-indigo-"]:hover,
[class*="hover:bg-violet-"]:hover,
[class*="hover:bg-purple-"]:hover,
[class*="hover:bg-fuchsia-"]:hover,
[class*="hover:bg-pink-"]:hover,
[class*="hover:bg-rose-"]:hover,
[class*="hover:bg-orange-"]:hover,
[class*="hover:bg-yellow-"]:hover,
[class*="hover:bg-amber-"]:hover,
[class*="hover:bg-[#00C853]"]:hover,
[class*="hover:bg-[#009624]"]:hover,
[class*="hover:bg-[#00A846]"]:hover,
[class*="hover:bg-[#00E701]"]:hover,
[class*="hover:bg-[#00FF00]"]:hover,
[class*="hover:bg-[#00a844]"]:hover,
[class*="hover:bg-[#289030]"]:hover,
[class*="hover:bg-[#32b13c]"]:hover,
[class*="hover:bg-[#34d399]"]:hover,
[class*="hover:bg-[#3a9bc5]"]:hover,
[class*="hover:bg-[#3a9bc6]"]:hover,
[class*="hover:bg-[#4ab7e2]"]:hover,
[class*="hover:bg-[#a78bfa]"]:hover,
[class*="hover:bg-[#e91e63]"]:hover,
[class*="hover:bg-[#FF9100]"]:hover,
[class*="hover:bg-[#FFD600]"]:hover,
[class*="hover:bg-[#d4a420]"]:hover,
[class*="hover:bg-[#f0a900]"]:hover,
[class*="hover:bg-[#f4c430]"]:hover,
[class*="hover:bg-[#f9bf15]"]:hover,
[class*="hover:bg-[#ffb700]"]:hover,
.group:hover [class*="group-hover:bg-green-"],
.group:hover [class*="group-hover:bg-emerald-"],
.group:hover [class*="group-hover:bg-lime-"],
.group:hover [class*="group-hover:bg-teal-"],
.group:hover [class*="group-hover:bg-cyan-"],
.group:hover [class*="group-hover:bg-sky-"],
.group:hover [class*="group-hover:bg-blue-"],
.group:hover [class*="group-hover:bg-indigo-"],
.group:hover [class*="group-hover:bg-violet-"],
.group:hover [class*="group-hover:bg-purple-"],
.group:hover [class*="group-hover:bg-fuchsia-"],
.group:hover [class*="group-hover:bg-pink-"],
.group:hover [class*="group-hover:bg-rose-"],
.group:hover [class*="group-hover:bg-orange-"],
.group:hover [class*="group-hover:bg-yellow-"],
.group:hover [class*="group-hover:bg-amber-"],
.group:hover [class*="group-hover:bg-[#00C853]"],
.group:hover [class*="group-hover:bg-[#009624]"],
.group:hover [class*="group-hover:bg-[#00A846]"],
.group:hover [class*="group-hover:bg-[#00E701]"],
.group:hover [class*="group-hover:bg-[#00FF00]"],
.group:hover [class*="group-hover:bg-[#00a844]"],
.group:hover [class*="group-hover:bg-[#289030]"],
.group:hover [class*="group-hover:bg-[#32b13c]"],
.group:hover [class*="group-hover:bg-[#34d399]"],
.group:hover [class*="group-hover:bg-[#3a9bc5]"],
.group:hover [class*="group-hover:bg-[#3a9bc6]"],
.group:hover [class*="group-hover:bg-[#4ab7e2]"],
.group:hover [class*="group-hover:bg-[#a78bfa]"],
.group:hover [class*="group-hover:bg-[#e91e63]"],
.group:hover [class*="group-hover:bg-[#FF9100]"],
.group:hover [class*="group-hover:bg-[#FFD600]"],
.group:hover [class*="group-hover:bg-[#d4a420]"],
.group:hover [class*="group-hover:bg-[#f0a900]"],
.group:hover [class*="group-hover:bg-[#f4c430]"],
.group:hover [class*="group-hover:bg-[#f9bf15]"],
.group:hover [class*="group-hover:bg-[#ffb700]"] {
  background-color: #ffb700 !important;
  color: var(--night) !important;
}
[class*="hover:text-green-"]:hover,
[class*="hover:text-emerald-"]:hover,
[class*="hover:text-lime-"]:hover,
[class*="hover:text-teal-"]:hover,
[class*="hover:text-cyan-"]:hover,
[class*="hover:text-sky-"]:hover,
[class*="hover:text-blue-"]:hover,
[class*="hover:text-indigo-"]:hover,
[class*="hover:text-violet-"]:hover,
[class*="hover:text-purple-"]:hover,
[class*="hover:text-fuchsia-"]:hover,
[class*="hover:text-pink-"]:hover,
[class*="hover:text-rose-"]:hover,
[class*="hover:text-orange-"]:hover,
[class*="hover:text-yellow-"]:hover,
[class*="hover:text-amber-"]:hover,
[class*="hover:text-[#00C853]"]:hover,
[class*="hover:text-[#009624]"]:hover,
[class*="hover:text-[#00A846]"]:hover,
[class*="hover:text-[#00E701]"]:hover,
[class*="hover:text-[#00FF00]"]:hover,
[class*="hover:text-[#00a844]"]:hover,
[class*="hover:text-[#289030]"]:hover,
[class*="hover:text-[#32b13c]"]:hover,
[class*="hover:text-[#34d399]"]:hover,
[class*="hover:text-[#3a9bc5]"]:hover,
[class*="hover:text-[#3a9bc6]"]:hover,
[class*="hover:text-[#4ab7e2]"]:hover,
[class*="hover:text-[#a78bfa]"]:hover,
[class*="hover:text-[#e91e63]"]:hover,
[class*="hover:text-[#FF9100]"]:hover,
[class*="hover:text-[#FFD600]"]:hover,
[class*="hover:text-[#d4a420]"]:hover,
[class*="hover:text-[#f0a900]"]:hover,
[class*="hover:text-[#f4c430]"]:hover,
[class*="hover:text-[#f9bf15]"]:hover,
[class*="hover:text-[#ffb700]"]:hover,
.group:hover [class*="group-hover:text-green-"],
.group:hover [class*="group-hover:text-emerald-"],
.group:hover [class*="group-hover:text-lime-"],
.group:hover [class*="group-hover:text-teal-"],
.group:hover [class*="group-hover:text-cyan-"],
.group:hover [class*="group-hover:text-sky-"],
.group:hover [class*="group-hover:text-blue-"],
.group:hover [class*="group-hover:text-indigo-"],
.group:hover [class*="group-hover:text-violet-"],
.group:hover [class*="group-hover:text-purple-"],
.group:hover [class*="group-hover:text-fuchsia-"],
.group:hover [class*="group-hover:text-pink-"],
.group:hover [class*="group-hover:text-rose-"],
.group:hover [class*="group-hover:text-orange-"],
.group:hover [class*="group-hover:text-yellow-"],
.group:hover [class*="group-hover:text-amber-"],
.group:hover [class*="group-hover:text-[#00C853]"],
.group:hover [class*="group-hover:text-[#009624]"],
.group:hover [class*="group-hover:text-[#00A846]"],
.group:hover [class*="group-hover:text-[#00E701]"],
.group:hover [class*="group-hover:text-[#00FF00]"],
.group:hover [class*="group-hover:text-[#00a844]"],
.group:hover [class*="group-hover:text-[#289030]"],
.group:hover [class*="group-hover:text-[#32b13c]"],
.group:hover [class*="group-hover:text-[#34d399]"],
.group:hover [class*="group-hover:text-[#3a9bc5]"],
.group:hover [class*="group-hover:text-[#3a9bc6]"],
.group:hover [class*="group-hover:text-[#4ab7e2]"],
.group:hover [class*="group-hover:text-[#a78bfa]"],
.group:hover [class*="group-hover:text-[#e91e63]"],
.group:hover [class*="group-hover:text-[#FF9100]"],
.group:hover [class*="group-hover:text-[#FFD600]"],
.group:hover [class*="group-hover:text-[#d4a420]"],
.group:hover [class*="group-hover:text-[#f0a900]"],
.group:hover [class*="group-hover:text-[#f4c430]"],
.group:hover [class*="group-hover:text-[#f9bf15]"],
.group:hover [class*="group-hover:text-[#ffb700]"] {
  color: #ffd000 !important;
}
[class*="hover:border-green-"]:hover,
[class*="hover:border-emerald-"]:hover,
[class*="hover:border-lime-"]:hover,
[class*="hover:border-teal-"]:hover,
[class*="hover:border-cyan-"]:hover,
[class*="hover:border-sky-"]:hover,
[class*="hover:border-blue-"]:hover,
[class*="hover:border-indigo-"]:hover,
[class*="hover:border-violet-"]:hover,
[class*="hover:border-purple-"]:hover,
[class*="hover:border-fuchsia-"]:hover,
[class*="hover:border-pink-"]:hover,
[class*="hover:border-rose-"]:hover,
[class*="hover:border-orange-"]:hover,
[class*="hover:border-yellow-"]:hover,
[class*="hover:border-amber-"]:hover,
[class*="hover:border-[#00C853]"]:hover,
[class*="hover:border-[#009624]"]:hover,
[class*="hover:border-[#00A846]"]:hover,
[class*="hover:border-[#00E701]"]:hover,
[class*="hover:border-[#00FF00]"]:hover,
[class*="hover:border-[#00a844]"]:hover,
[class*="hover:border-[#289030]"]:hover,
[class*="hover:border-[#32b13c]"]:hover,
[class*="hover:border-[#34d399]"]:hover,
[class*="hover:border-[#3a9bc5]"]:hover,
[class*="hover:border-[#3a9bc6]"]:hover,
[class*="hover:border-[#4ab7e2]"]:hover,
[class*="hover:border-[#a78bfa]"]:hover,
[class*="hover:border-[#e91e63]"]:hover,
[class*="hover:border-[#FF9100]"]:hover,
[class*="hover:border-[#FFD600]"]:hover,
[class*="hover:border-[#d4a420]"]:hover,
[class*="hover:border-[#f0a900]"]:hover,
[class*="hover:border-[#f4c430]"]:hover,
[class*="hover:border-[#f9bf15]"]:hover,
[class*="hover:border-[#ffb700]"]:hover,
.group:hover [class*="group-hover:border-green-"],
.group:hover [class*="group-hover:border-emerald-"],
.group:hover [class*="group-hover:border-lime-"],
.group:hover [class*="group-hover:border-teal-"],
.group:hover [class*="group-hover:border-cyan-"],
.group:hover [class*="group-hover:border-sky-"],
.group:hover [class*="group-hover:border-blue-"],
.group:hover [class*="group-hover:border-indigo-"],
.group:hover [class*="group-hover:border-violet-"],
.group:hover [class*="group-hover:border-purple-"],
.group:hover [class*="group-hover:border-fuchsia-"],
.group:hover [class*="group-hover:border-pink-"],
.group:hover [class*="group-hover:border-rose-"],
.group:hover [class*="group-hover:border-orange-"],
.group:hover [class*="group-hover:border-yellow-"],
.group:hover [class*="group-hover:border-amber-"],
.group:hover [class*="group-hover:border-[#00C853]"],
.group:hover [class*="group-hover:border-[#009624]"],
.group:hover [class*="group-hover:border-[#00A846]"],
.group:hover [class*="group-hover:border-[#00E701]"],
.group:hover [class*="group-hover:border-[#00FF00]"],
.group:hover [class*="group-hover:border-[#00a844]"],
.group:hover [class*="group-hover:border-[#289030]"],
.group:hover [class*="group-hover:border-[#32b13c]"],
.group:hover [class*="group-hover:border-[#34d399]"],
.group:hover [class*="group-hover:border-[#3a9bc5]"],
.group:hover [class*="group-hover:border-[#3a9bc6]"],
.group:hover [class*="group-hover:border-[#4ab7e2]"],
.group:hover [class*="group-hover:border-[#a78bfa]"],
.group:hover [class*="group-hover:border-[#e91e63]"],
.group:hover [class*="group-hover:border-[#FF9100]"],
.group:hover [class*="group-hover:border-[#FFD600]"],
.group:hover [class*="group-hover:border-[#d4a420]"],
.group:hover [class*="group-hover:border-[#f0a900]"],
.group:hover [class*="group-hover:border-[#f4c430]"],
.group:hover [class*="group-hover:border-[#f9bf15]"],
.group:hover [class*="group-hover:border-[#ffb700]"] {
  border-color: #ffb700 !important;
}
[class*="hover:shadow-green-"]:hover,
[class*="hover:shadow-emerald-"]:hover,
[class*="hover:shadow-lime-"]:hover,
[class*="hover:shadow-teal-"]:hover,
[class*="hover:shadow-cyan-"]:hover,
[class*="hover:shadow-sky-"]:hover,
[class*="hover:shadow-blue-"]:hover,
[class*="hover:shadow-indigo-"]:hover,
[class*="hover:shadow-violet-"]:hover,
[class*="hover:shadow-purple-"]:hover,
[class*="hover:shadow-fuchsia-"]:hover,
[class*="hover:shadow-pink-"]:hover,
[class*="hover:shadow-rose-"]:hover,
[class*="hover:shadow-orange-"]:hover,
[class*="hover:shadow-yellow-"]:hover,
[class*="hover:shadow-amber-"]:hover,
.group:hover [class*="group-hover:shadow-green-"],
.group:hover [class*="group-hover:shadow-emerald-"],
.group:hover [class*="group-hover:shadow-lime-"],
.group:hover [class*="group-hover:shadow-teal-"],
.group:hover [class*="group-hover:shadow-cyan-"],
.group:hover [class*="group-hover:shadow-sky-"],
.group:hover [class*="group-hover:shadow-blue-"],
.group:hover [class*="group-hover:shadow-indigo-"],
.group:hover [class*="group-hover:shadow-violet-"],
.group:hover [class*="group-hover:shadow-purple-"],
.group:hover [class*="group-hover:shadow-fuchsia-"],
.group:hover [class*="group-hover:shadow-pink-"],
.group:hover [class*="group-hover:shadow-rose-"],
.group:hover [class*="group-hover:shadow-orange-"],
.group:hover [class*="group-hover:shadow-yellow-"],
.group:hover [class*="group-hover:shadow-amber-"] {
  --tw-shadow-color: rgba(255, 183, 0, 0.3) !important;
}

/* ---------- Boot loader ---------- */

/* body is display:flex (row), so the platform's loader shrinks to the spinner width and sits at the left edge. */
body > div.min-h-screen:has(> .animate-spin:only-child) {
  flex: 1 0 100%;
  width: 100%;
  background: var(--night) !important;
}

body > div.min-h-screen > .animate-spin.rounded-full:only-child {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  background: conic-gradient(from 0deg, rgba(255, 183, 0, 0) 0%, rgba(255, 183, 0, 0.15) 30%, var(--amber) 75%, var(--jonquil) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
  filter: drop-shadow(0 0 10px rgba(255, 183, 0, 0.35));
  animation-duration: 0.8s !important;
}

/* ---------- Primitives ---------- */

.text-primary {
  color: var(--amber) !important;
}

.border-primary {
  border-color: var(--amber) !important;
}

.bg-primary,
button[class~="bg-primary"],
a[class~="bg-primary"] {
  color: var(--night) !important;
  background: var(--gold) !important;
  border: 0 !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: none;
  transition: transform 0.2s var(--ease), filter 0.2s var(--ease);
}

.bg-primary:hover,
button[class~="bg-primary"]:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: none;
}

.bg-primary:active,
button[class~="bg-primary"]:active {
  transform: translateY(0) scale(0.98);
}

[class~="bg-white/5"],
[class~="bg-white/10"],
[class~="bg-black/20"],
[class~="bg-black/40"],
[class~="bg-card"] {
  background-color: rgba(42, 41, 41, 0.55) !important;
}

[class~="border-white/5"],
[class~="border-white/10"],
[class~="border-white/20"],
[class~="border-border"] {
  border-color: var(--hair) !important;
}

[class~="text-gray-400"],
[class~="text-gray-500"],
[class~="text-muted-foreground"] {
  color: var(--dim) !important;
}

/* One field. Input, textarea and select share the same metal; only the height changes. */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]),
select,
textarea,
button[role="combobox"] {
  color: var(--ink) !important;
  background-color: var(--field-bg) !important;
  border: 1px solid var(--field-line) !important;
  border-radius: 12px !important;
  color-scheme: dark;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.005em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease);
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]),
select,
button[role="combobox"] {
  height: var(--field-h) !important;
  min-height: var(--field-h) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([class*="pl-"])),
textarea,
select {
  padding-left: 14px !important;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([class*="pr-"])),
textarea {
  padding-right: 14px !important;
}

select {
  padding-right: 34px !important;
}

textarea {
  display: block;
  min-height: 104px !important;
  height: auto !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  line-height: 1.55 !important;
  resize: vertical;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]):hover,
select:hover,
textarea:hover,
button[role="combobox"]:hover {
  border-color: var(--field-line-hover) !important;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]):focus,
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]):focus-visible,
select:focus,
select:focus-visible,
textarea:focus,
textarea:focus-visible,
button[role="combobox"]:focus,
button[role="combobox"]:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  background-color: var(--field-bg-focus) !important;
  border-color: rgba(255, 208, 0, 0.72) !important;
  box-shadow:
    var(--field-ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]):disabled,
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden])[readonly],
textarea:disabled,
textarea[readonly],
select:disabled {
  color: var(--ink-2) !important;
  -webkit-text-fill-color: var(--ink-2);
  background-color: #10100f !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: default;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden])[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
  border-color: rgba(229, 72, 77, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.14) !important;
}

input::placeholder,
textarea::placeholder {
  color: var(--mute) !important;
  font-weight: 500;
  opacity: 1;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]):-webkit-autofill,
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]):-webkit-autofill:hover,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--ink) !important;
  caret-color: var(--ink);
  border-color: var(--field-line) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
  box-shadow: 0 0 0 1000px var(--field-bg) inset !important;
  transition: background-color 99999s ease-out;
}

input:where(:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"])):not([hidden]):-webkit-autofill:focus,
textarea:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink) !important;
  border-color: rgba(255, 208, 0, 0.72) !important;
  -webkit-box-shadow:
    0 0 0 1000px var(--field-bg-focus) inset,
    var(--field-ring) !important;
  box-shadow:
    0 0 0 1000px var(--field-bg-focus) inset,
    var(--field-ring) !important;
}

input[type="range"] {
  accent-color: var(--amber);
}

/* Checkbox and radio — native and Radix. The mark springs in on check. */
input[type="checkbox"],
input[type="radio"],
button[role="checkbox"],
button[role="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  min-width: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto;
  display: inline-grid !important;
  place-content: center;
  vertical-align: middle;
  color: #141210 !important;
  background: #121110 !important;
  background-image: none !important;
  border: 1.5px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  cursor: pointer;
  transition:
    border-color 0.18s var(--ease),
    background 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}

input[type="checkbox"],
button[role="checkbox"] {
  border-radius: 6px !important;
}

input[type="radio"],
button[role="radio"] {
  border-radius: 50% !important;
}

input[type="checkbox"]:hover,
input[type="radio"]:hover,
button[role="checkbox"]:hover,
button[role="radio"]:hover {
  border-color: rgba(255, 208, 0, 0.55) !important;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible,
button[role="checkbox"]:focus-visible,
button[role="radio"]:focus-visible,
button[role="switch"]:focus-visible {
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: var(--field-ring) !important;
}

input[type="checkbox"]::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #141210;
  border-bottom: 2px solid #141210;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
}

input[type="checkbox"]:checked {
  background: linear-gradient(135deg, #ffd000, #ffb700) !important;
  border-color: transparent !important;
  animation: lg-field-pop 0.28s var(--ease);
}

input[type="checkbox"]:checked::after {
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

input[type="radio"]::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffd000;
  transform: scale(0);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

input[type="radio"]:checked {
  border-color: #ffb700 !important;
  background: #121110 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

input[type="radio"]:checked::after {
  transform: scale(1);
}

button[role="checkbox"][data-state="checked"],
button[role="radio"][data-state="checked"] {
  animation: lg-field-pop 0.28s var(--ease);
}

button[role="checkbox"][data-state="checked"] {
  background: linear-gradient(135deg, #ffd000, #ffb700) !important;
  border-color: transparent !important;
  color: #141210 !important;
}

button[role="checkbox"] svg {
  width: 13px !important;
  height: 13px !important;
  stroke-width: 3px;
}

button[role="checkbox"][data-state="checked"] svg {
  animation: lg-tick 0.32s cubic-bezier(0.34, 1.45, 0.64, 1);
}

button[role="radio"][data-state="checked"] {
  border-color: #ffb700 !important;
  background: #121110 !important;
  color: #ffd000 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

button[role="radio"] svg {
  width: 8px !important;
  height: 8px !important;
}

button[role="radio"][data-state="checked"] svg {
  animation: lg-dot 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

label:has(> input[type="checkbox"]),
label:has(> input[type="radio"]),
label:has(> button[role="checkbox"]),
label:has(> button[role="radio"]) {
  cursor: pointer;
}

button[role="switch"] {
  background: #2a2929 !important;
  border: 0 !important;
}

button[role="switch"] > span {
  background: var(--ink) !important;
}

button[role="switch"][data-state="checked"] {
  background: var(--gold) !important;
}

button[role="switch"][data-state="checked"] > span {
  background: #141210 !important;
}

@keyframes lg-field-pop {
  0% { transform: scale(0.86); }
  55% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes lg-tick {
  0% { transform: scale(0.3) rotate(-18deg); opacity: 0; }
  60% { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@keyframes lg-dot {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- Header ---------- */

header.header-safe-top,
header[class~="sticky"] {
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.055), transparent 46%),
    #0c0b0a !important;
  border-bottom: 1px solid rgba(255, 208, 0, 0.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 214, 0.22),
    0 18px 36px -28px rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
}

/* One catchlight. A polished edge, not a lamp. */
header.header-safe-top::before {
  content: "";
  position: absolute;
  left: 22%;
  right: 22%;
  top: 0;
  z-index: 3;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 244, 214, 0.7), transparent);
}

header.header-safe-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 10%, rgba(255, 208, 0, 0.55) 50%, transparent 90%);
}

/* Align the header grid with the page content (main is max-w-[1600px] + 24px gutter). */
header.header-safe-top > .container {
  max-width: 1600px !important;
  padding-inline: 24px !important;
}

header.header-safe-top > .container > .flex {
  height: 76px !important;
  gap: 24px;
}

header.header-safe-top .container > .flex > div:first-child {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  gap: 40px !important;
}

header.header-safe-top .container > .flex > div:first-child > a:first-child {
  position: relative;
  flex: 0 0 auto;
  width: calc(40px * 384 / 150);
  overflow: hidden;
  padding: 6px 0;
  transition: opacity 0.2s ease, transform 0.3s var(--ease);
}

header.header-safe-top .container > .flex > div:first-child > a:first-child:hover {
  opacity: 0.9;
}

header.header-safe-top .container > .flex > div:first-child > a:first-child img {
  height: 40px !important;
  width: calc(40px * 700 / 150) !important;
  max-width: none !important;
  filter: none;
  object-fit: fill;
  /* The file is 700×150 with the mark inset at x=158. Cancel that so the mark lines up with the container padding. */
  margin-left: calc(-40px * 158 / 150) !important;
  margin-right: calc(-40px * 158 / 150) !important;
}

header.header-safe-top nav[class~="lg:flex"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 1024px) {
  header.header-safe-top .container > .flex > div:first-child {
    gap: 0 !important;
  }

  header.header-safe-top nav[class~="lg:flex"] {
    display: flex !important;
    flex: 1 1 auto;
    justify-content: center;
    align-items: center;
  }

  header.header-safe-top nav[class~="lg:flex"] > nav,
  header.header-safe-top nav[class~="lg:flex"] ul {
    width: max-content;
    margin-inline: auto;
  }
}

header.header-safe-top nav.is-scrollable:not(.is-at-end) {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
}

header.header-safe-top nav[class~="lg:flex"]::-webkit-scrollbar {
  display: none;
}

header.header-safe-top nav[class~="lg:flex"] > nav {
  display: flex;
  align-items: center;
  height: 100%;
}

@property --lg-pill-x {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --lg-pill-w {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --lg-nx {
  syntax: "<length>";
  inherits: true;
  initial-value: 48px;
}

@property --lg-sheen {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.45;
}

/* Dark glass capsule. The page behind the header is opaque, so the material is the rim, the top light, and the moving lens — not a blur of the content. */
header.header-safe-top nav[class~="lg:flex"] ul {
  --lg-pill-x: 0px;
  --lg-pill-w: 0px;
  --lg-nx: 48px;
  --lg-sheen: 0.45;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: 46px;
  gap: 0 !important;
  width: max-content;
  margin: 0;
  padding: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 244, 214, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.08), rgba(255, 255, 255, 0.02) 42%, rgba(0, 0, 0, 0.34)),
    #141312;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.55),
    0 14px 28px -18px rgba(0, 0, 0, 0.9);
  transition:
    --lg-pill-x 0.55s var(--ease),
    --lg-pill-w 0.55s var(--ease),
    --lg-nx 0.4s var(--ease),
    --lg-sheen 0.35s ease;
}

header.header-safe-top nav[class~="lg:flex"] ul::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(110px 28px at var(--lg-nx) 0%, rgba(255, 248, 230, 0.28), transparent 72%);
  opacity: var(--lg-sheen);
}

header.header-safe-top nav[class~="lg:flex"] ul::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 4px;
  height: calc(100% - 8px);
  width: var(--lg-pill-w);
  border-radius: 999px;
  pointer-events: none;
  transform: translate3d(var(--lg-pill-x), 0, 0);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 46%),
    #ffb700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(120, 72, 0, 0.4);
}

header.header-safe-top nav[class~="lg:flex"] li {
  display: flex;
}

header.header-safe-top nav a {
  color: var(--ink-2) !important;
  opacity: 1 !important;
  font-weight: 600 !important;
  letter-spacing: 0.07em;
  white-space: nowrap;
  transform: none !important;
  text-shadow:
    0 -1px 0 rgba(255, 252, 246, 0.4),
    0 1px 0 rgba(0, 0, 0, 0.6) !important;
  transition: color 0.25s var(--ease), text-shadow 0.25s var(--ease);
}

header.header-safe-top nav[class~="lg:flex"] a {
  position: relative;
  z-index: 3;
  display: flex !important;
  align-items: center;
  height: 38px;
  padding: 0 15px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  letter-spacing: 0.08em;
  background: transparent !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

header.header-safe-top nav[class~="lg:flex"] a::before,
header.header-safe-top nav[class~="lg:flex"] a::after {
  content: none;
}

header.header-safe-top nav[class~="lg:flex"] a:hover,
header.header-safe-top nav[class~="lg:flex"] a.is-active,
header.header-safe-top nav[class~="lg:flex"] a.is-lit {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
  text-shadow: none !important;
}

/* The lens is the selected state. Dark type sits on it; the page's own item keeps primary type once the lens moves on. */
header.header-safe-top nav[class~="lg:flex"] a.is-active {
  color: #ffb700 !important;
}

header.header-safe-top nav[class~="lg:flex"] a.is-lit {
  color: #14110a !important;
}

.lg-navico {
  display: block;
  flex: none;
  fill: currentColor;
  stroke: none;
  pointer-events: none;
}

header.header-safe-top nav[class~="lg:flex"] a {
  gap: 6px;
  padding: 0 12px !important;
}

header.header-safe-top nav[class~="lg:flex"] a .lg-navico {
  width: 16px;
  height: 16px;
  color: #ffb700;
}

header.header-safe-top nav[class~="lg:flex"] a.is-lit .lg-navico {
  color: #14110a;
}

/* Aviator is a game href, so the card rules (lift, square radius) would otherwise hit this one item. */
header.header-safe-top nav[class~="lg:flex"] a[href*="/casino/game/"],
header.header-safe-top nav[class~="lg:flex"] a[href*="/casino/game/"]:hover,
header.header-safe-top nav[class~="lg:flex"] a[href*="/live-casino/game/"],
header.header-safe-top nav[class~="lg:flex"] a[href*="/live-casino/game/"]:hover {
  height: 38px !important;
  border-radius: 999px !important;
  transform: none !important;
  transition: color 0.25s var(--ease) !important;
}

header.header-safe-top .container > .flex > div:last-child {
  flex: 0 0 auto;
  gap: 10px !important;
}

/* Language + Istanbul clock, BahisFair-style, sitting at the header's right edge. */
header.header-safe-top .lg-meta {
  display: inline-flex;
  align-items: center;
  flex: none;
}

header.header-safe-top .lg-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  min-width: 78px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 767px) {
  /* Clock and language leave the header so the logo keeps its width. Language is parked in the footer. */
  header.header-safe-top .lg-clock,
  header.header-safe-top .lg-lang,
  header.header-safe-top .lg-meta {
    display: none !important;
  }
}

header.header-safe-top .container > .flex > div:last-child > div {
  gap: 10px !important;
}

/* Platform search does not return results. Hide the control and the panel. */
header.header-safe-top button:has(> svg.lucide-search),
header.header-safe-top div[class~="py-4"][class~="border-t"] {
  display: none !important;
}

/* Guest Giriş / Kayıt. Same box. Login stays dark so the label stays readable. */
header.header-safe-top .container > .flex > div:last-child div[class~="gap-2"] > button:not(:has(svg)) {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 20px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  line-height: 1 !important;
  transform: none !important;
}

header.header-safe-top .container > .flex > div:last-child div[class~="gap-2"] > button:not(:has(svg)):not([class~="bg-primary"]) {
  background: #2a2929 !important;
  color: #f5f3ee !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

header.header-safe-top .container > .flex > div:last-child div[class~="gap-2"] > button:not(:has(svg)):not([class~="bg-primary"]):hover {
  background: #353332 !important;
  color: var(--amber) !important;
  border-color: rgba(255, 183, 0, 0.45) !important;
}

header.header-safe-top .container > .flex > div:last-child div[class~="gap-2"] > button[class~="bg-primary"] {
  color: var(--night) !important;
  background: var(--gold) !important;
  border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 18px rgba(255, 183, 0, 0.22) !important;
}

header.header-safe-top .container > .flex > div:last-child div[class~="gap-2"] > button[class~="bg-primary"]:hover {
  color: var(--night) !important;
  filter: brightness(1.05);
}

@media (max-width: 767px) {
  header.header-safe-top .container > .flex > div:last-child {
    gap: 6px !important;
  }

  header.header-safe-top .container > .flex > div:last-child div[class~="gap-2"] > button:not(:has(svg)) {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
  }
}

/* No admin toggle exists for the header notification bell (part of the "Modern" header variant). */
header.header-safe-top button:has(> svg.lucide-bell) {
  display: none !important;
}

header.header-safe-top button span[class~="rounded-full"] {
  top: 9px !important;
  right: 9px !important;
  background: var(--jonquil) !important;
  border-color: #0b0b0b !important;
  box-shadow: 0 0 8px rgba(255, 208, 0, 0.8);
}

/* Wallet chip: Benjamin green note with the deposit action (injected by custom.js) built in. */
header.header-safe-top .cursor-pointer {
  position: relative;
  gap: 10px !important;
  height: 48px;
  padding: 4px 4px 4px 16px !important;
  overflow: hidden;
  border: 1px solid var(--bill-line) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 46%),
    var(--bill-bg) !important;
  box-shadow:
    inset 0 1px 0 rgba(233, 243, 223, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 10px 22px -12px rgba(8, 40, 24, 0.9);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}

header.header-safe-top .cursor-pointer::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(233, 243, 223, 0.08);
  border-radius: 11px;
  pointer-events: none;
}

header.header-safe-top .cursor-pointer:hover {
  border-color: rgba(133, 187, 101, 0.55) !important;
  box-shadow:
    inset 0 1px 0 rgba(233, 243, 223, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    0 12px 26px -12px rgba(20, 90, 55, 0.8);
}

header.header-safe-top .cursor-pointer .uppercase {
  color: var(--bill-dim) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em;
  line-height: 1.2;
}

header.header-safe-top .cursor-pointer .font-black {
  color: var(--bill-ink) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  letter-spacing: -0.005em;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

header.header-safe-top .cursor-pointer > div:last-child {
  width: 38px !important;
  height: 38px !important;
  border-radius: 10px !important;
  color: var(--jonquil) !important;
  background: rgba(6, 26, 17, 0.55) !important;
  border: 1px solid rgba(255, 208, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(233, 243, 223, 0.06) !important;
  font-size: 14px;
  font-weight: 800 !important;
}

header.header-safe-top .lg-deposit {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px 0 11px;
  border: 0;
  border-radius: 10px;
  color: var(--night);
  font: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: var(--gold-sheen);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(120, 70, 0, 0.35), 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: filter 0.2s ease, transform 0.2s var(--ease);
}

header.header-safe-top .lg-deposit svg {
  width: 16px;
  height: 16px;
}

header.header-safe-top .lg-deposit:hover {
  filter: brightness(1.06);
}

header.header-safe-top .lg-deposit:active {
  transform: scale(0.97);
}

@media (max-width: 1279px) {
  header.header-safe-top .container > .flex > div:first-child {
    gap: 16px !important;
    min-width: 0;
    overflow: hidden;
  }

  header.header-safe-top nav[class~="lg:flex"] {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-start;
    overflow-x: auto;
  }

  header.header-safe-top nav[class~="lg:flex"] > nav,
  header.header-safe-top nav[class~="lg:flex"] ul {
    width: max-content;
    max-width: none;
    margin-inline: 0;
  }

  header.header-safe-top nav[class~="lg:flex"] ul {
    gap: 0 !important;
  }

  header.header-safe-top nav[class~="lg:flex"] a {
    padding: 0 10px !important;
    font-size: 12px !important;
    letter-spacing: 0.05em;
  }
}

/* Below the desktop nav the left column is only the logo. It keeps its width; the right cluster yields. */
@media (max-width: 1023px) {
  header.header-safe-top > .container > .flex {
    gap: 12px;
  }

  header.header-safe-top .container > .flex > div:first-child {
    flex: 0 0 auto;
    min-width: calc(40px * 384 / 150);
    overflow: visible;
  }

  header.header-safe-top .container > .flex > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  /* Giriş + Kayıt are wider than the wallet, so the clock leaves before the wordmark does. */
  header.header-safe-top:not(:has(.cursor-pointer)) .lg-clock {
    display: none !important;
  }
}

@media (max-width: 767px) {
  header.header-safe-top > .container {
    padding-inline: 16px !important;
  }

  header.header-safe-top > .container > .flex {
    height: 64px !important;
    gap: 8px;
  }

  /* The right cluster must not be allowed to shrink the logo down to nothing. */
  header.header-safe-top .container > .flex > div:first-child {
    flex: 0 0 auto;
    min-width: calc(32px * 384 / 150);
    overflow: visible;
  }

  header.header-safe-top .container > .flex > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: flex-end;
  }

  header.header-safe-top .container > .flex > div:first-child > a:first-child {
    width: calc(32px * 384 / 150);
  }

  header.header-safe-top .container > .flex > div:first-child > a:first-child img {
    height: 32px !important;
    width: calc(32px * 700 / 150) !important;
    margin-left: calc(-32px * 158 / 150) !important;
    margin-right: calc(-32px * 158 / 150) !important;
  }

  header.header-safe-top .cursor-pointer {
    height: 42px;
    gap: 8px !important;
    padding: 3px 3px 3px 12px !important;
  }

  header.header-safe-top .cursor-pointer > .text-right {
    display: block !important;
  }

  header.header-safe-top .cursor-pointer .uppercase {
    display: none;
  }

  header.header-safe-top .cursor-pointer .font-black {
    font-size: 14px !important;
  }

  header.header-safe-top .cursor-pointer > div:last-child {
    display: none !important;
  }

  header.header-safe-top .lg-deposit {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
  }

  header.header-safe-top .lg-deposit span {
    display: none;
  }
}

/* Discount request, beside the wallet. Compact on purpose so the header row stays intact. */
header.header-safe-top .lg-bonus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 40px;
  max-width: 100%;
  overflow: hidden;
  padding: 0 12px 0 10px;
  border: 1px solid rgba(255, 208, 0, 0.28);
  border-radius: 12px;
  background: rgba(255, 208, 0, 0.09);
  color: var(--jonquil);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

header.header-safe-top .lg-bonus svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

header.header-safe-top .lg-bonus:hover {
  background: rgba(255, 208, 0, 0.16);
  border-color: rgba(255, 208, 0, 0.45);
  transform: translateY(-1px);
}

header.header-safe-top .lg-bonus:active {
  transform: scale(0.98);
}

header.header-safe-top .lg-bonus[data-state="pending"] {
  color: var(--ink-2);
  background: var(--s3);
  border-color: var(--line);
}

header.header-safe-top .lg-bonus[data-state="pending"] svg {
  color: var(--jonquil);
  animation: lg-bonus-wait 1.6s ease-in-out infinite;
}

header.header-safe-top .lg-bonus[data-state="active"] {
  color: var(--jonquil);
  background: rgba(255, 208, 0, 0.09);
  border-color: transparent;
}

@keyframes lg-bonus-wait {
  50% { opacity: 0.4; }
}

@media (max-width: 767px) {
  header.header-safe-top .lg-bonus {
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 12px;
  }

  header.header-safe-top .lg-bonus span {
    display: none;
  }
}

/* Narrow desktop: drop the bonus label first, then the deposit label. Mobile sizes stay on the 767 rules. */
@media (max-width: 1279px) and (min-width: 768px) {
  header.header-safe-top .lg-bonus {
    width: 40px;
    height: 40px;
    padding: 0;
    gap: 0;
  }

  header.header-safe-top .lg-bonus span {
    display: none;
  }
}

@media (max-width: 1120px) and (min-width: 768px) {
  header.header-safe-top .lg-deposit {
    width: 38px;
    height: 38px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }

  header.header-safe-top .lg-deposit span {
    display: none;
  }
}

/* Request receipt. The card carries role=dialog, so generic dialog rules are pinned back here. */
#lg-claim {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

#lg-claim[hidden] {
  display: none !important;
}

#lg-claim .lg-claim__veil {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(5, 5, 5, 0.78);
  cursor: pointer;
}

#lg-claim .lg-claim__card {
  position: relative !important;
  width: min(400px, 100%) !important;
  margin: 0 !important;
  padding: 28px 26px 22px !important;
  border-radius: 22px !important;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 208, 0, 0.16), transparent 55%),
    var(--s2) !important;
  border: 1px solid rgba(255, 208, 0, 0.18) !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  text-align: center;
  animation: lg-claim-in 0.32s var(--ease) both;
}

#lg-claim .lg-claim__mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  color: var(--night);
  background: var(--gold-sheen);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 24px rgba(255, 183, 0, 0.22);
}

#lg-claim .lg-claim__mark svg {
  width: 26px;
  height: 26px;
}

#lg-claim .lg-claim__card[data-tone="pending"] .lg-claim__mark,
#lg-claim .lg-claim__card[data-tone="rejected"] .lg-claim__mark,
#lg-claim .lg-claim__card[data-tone="error"] .lg-claim__mark,
#lg-claim .lg-claim__card[data-tone="missing"] .lg-claim__mark {
  color: var(--jonquil);
  background: rgba(255, 208, 0, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.28);
}

#lg-claim .lg-claim__card[data-tone="error"] .lg-claim__mark,
#lg-claim .lg-claim__card[data-tone="rejected"] .lg-claim__mark {
  color: #f0a8a8;
  background: rgba(229, 72, 77, 0.12);
  box-shadow: inset 0 0 0 1px rgba(229, 72, 77, 0.28);
}

#lg-claim .lg-claim__kicker {
  margin: 0 0 8px;
  color: var(--jonquil);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#lg-claim .lg-claim__card h2 {
  margin: 0 0 10px !important;
  color: var(--ink) !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
}

#lg-claim .lg-claim__text {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.55;
  text-transform: none;
}

#lg-claim .lg-claim__meta[hidden] {
  display: none !important;
}

#lg-claim .lg-claim__meta {
  display: inline-flex;
  margin: 14px 0 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#lg-claim .lg-claim__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 46px;
  margin-top: 22px;
  border: 0;
  border-radius: 12px;
  color: var(--night);
  background: var(--gold-sheen);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -1px 0 rgba(120, 70, 0, 0.35);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}

#lg-claim .lg-claim__ok:hover {
  filter: brightness(1.06);
}

#lg-claim .lg-claim__ok:active {
  transform: scale(0.98);
}

#lg-claim .lg-claim__ok:focus-visible {
  outline: 2px solid var(--jonquil);
  outline-offset: 3px;
}

@keyframes lg-claim-in {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  #lg-claim .lg-claim__card,
  header.header-safe-top .lg-bonus[data-state="pending"] svg {
    animation: none !important;
  }
}

header.header-safe-top div[class~="py-6"] {
  background: var(--night) !important;
  border-top: 1px solid var(--hair) !important;
}

/* Mobile menu + search: overlay panels under the header instead of pushing the page with slide-in-from-top. */
header.header-safe-top [class~="slide-in-from-top"] {
  animation: lg-panel-in 0.22s var(--ease) both !important;
}

@keyframes lg-panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

header.header-safe-top div[class~="py-6"] {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100dvh - 76px);
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom)) !important;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(255, 183, 0, 0.06), transparent 70%),
    #0b0b0b !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

header.header-safe-top div[class~="py-6"] > nav > div {
  padding: 0 !important;
}

header.header-safe-top div[class~="py-6"] li {
  animation: lg-tile-in 0.32s var(--ease) both;
}

header.header-safe-top div[class~="py-6"] li:nth-child(2) { animation-delay: 0.02s; }
header.header-safe-top div[class~="py-6"] li:nth-child(3) { animation-delay: 0.04s; }
header.header-safe-top div[class~="py-6"] li:nth-child(4) { animation-delay: 0.06s; }
header.header-safe-top div[class~="py-6"] li:nth-child(5) { animation-delay: 0.08s; }
header.header-safe-top div[class~="py-6"] li:nth-child(6) { animation-delay: 0.1s; }
header.header-safe-top div[class~="py-6"] li:nth-child(7) { animation-delay: 0.12s; }
header.header-safe-top div[class~="py-6"] li:nth-child(n + 8) { animation-delay: 0.14s; }

@keyframes lg-tile-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 767px) {
  header.header-safe-top div[class~="py-6"] {
    height: calc(100dvh - 64px);
  }
}

header.header-safe-top div[class~="py-6"] ul[class~="space-y-2"] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

header.header-safe-top div[class~="py-6"] ul[class~="space-y-2"] > li {
  margin: 0 !important;
}

header.header-safe-top div[class~="py-6"] a {
  position: relative;
  display: flex !important;
  align-items: center;
  min-height: 56px;
  padding: 14px 16px !important;
  color: var(--ink-2) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.06em;
  border-radius: var(--r-md) !important;
  background: linear-gradient(160deg, #1d1c1c, #161515) !important;
  border: 1px solid var(--hair);
  opacity: 1 !important;
}

header.header-safe-top div[class~="py-6"] a::after {
  content: "";
  position: absolute;
  right: 14px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--olive);
  border-right: 2px solid var(--olive);
  transform: rotate(45deg);
  transition: border-color 0.2s ease, transform 0.2s var(--ease);
}

header.header-safe-top div[class~="py-6"] a:active {
  transform: scale(0.98);
}

header.header-safe-top div[class~="py-6"] a:hover::after,
header.header-safe-top div[class~="py-6"] a.is-active::after {
  border-color: var(--jonquil);
  transform: translateX(2px) rotate(45deg);
}

header.header-safe-top div[class~="py-6"] a.is-active {
  color: var(--night) !important;
  background: var(--gold) !important;
  border-color: transparent;
}

header.header-safe-top div[class~="py-6"] a.is-active::after {
  border-color: var(--night);
}

/* ---------- Section headings ---------- */

main section:not(#lg-hero) > div:first-child h2,
main h2[class~="text-xl"],
main h2[class~="text-2xl"] {
  font-size: clamp(18px, 1.2vw + 12px, 22px) !important;
  letter-spacing: -0.02em;
}

main section svg[class~="text-primary"] {
  color: var(--jonquil) !important;
}

main section button[class~="rounded-full"] {
  border: 1px solid var(--line) !important;
  background: var(--s2) !important;
  color: var(--ink-2) !important;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease);
}

main section button[class~="rounded-full"]:hover {
  border-color: var(--amber) !important;
  color: var(--jonquil) !important;
  background: var(--s3) !important;
}

/* ---------- Category pills (Lobby / New Releases / ...) ---------- */

main div[class~="no-scrollbar"] {
  overflow-x: auto !important;
  overflow-y: visible !important;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 16px;
}

main div[class~="no-scrollbar"] > div {
  padding-inline: 2px;
}

main div[class~="no-scrollbar"] > div > button,
main div[class~="no-scrollbar"] button[class~="rounded-full"] {
  flex: none;
  scroll-snap-align: start;
  font-weight: 700 !important;
  border: 1px solid transparent !important;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

main div[class~="no-scrollbar"] button:hover {
  color: var(--ink) !important;
  border-color: var(--line) !important;
}

/* ---------- Homepage boxes & brand creatives ---------- */

/* The card clips its own artwork and the hover sheen. overflow:visible let the sheen
   paint a square past the rounded corner while the highlight travelled. */
main a.group[class~="rounded-xl"]:has(> img),
main div.group[class~="rounded-xl"]:has(> img[src*="/uploads/"]) {
  overflow: hidden !important;
  border-radius: var(--r-md) !important;
  isolation: isolate;
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.55);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease) !important;
}

main a.group[class~="rounded-xl"] > img {
  border-radius: inherit;
  box-shadow: none !important;
  transform: none !important;
  filter: none;
  transition: filter 0.45s var(--ease), opacity 0.25s ease !important;
}

main a.group[class~="rounded-xl"] > img + div[class~="absolute"] {
  display: none !important;
}

main a.group[class~="rounded-xl"]:has(> img):hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 28px -14px rgba(0, 0, 0, 0.6);
}

main a.group[class~="rounded-xl"]:has(> img):hover > img {
  filter: brightness(1.04) saturate(1.06) !important;
}

/* A thin glass highlight. Clipped by the card's own radius — no image mask,
   because an opaque cover turns that mask into a square. */
main a.group[class~="rounded-xl"][style*="--lg-art"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    108deg,
    transparent 42%,
    rgba(255, 252, 240, 0) 48%,
    rgba(255, 252, 240, 0.28) 50%,
    rgba(255, 252, 240, 0) 52%,
    transparent 58%
  );
  background-size: 240% 100%;
  background-position: 120% 0;
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.7s var(--ease);
}

main a.group[class~="rounded-xl"][style*="--lg-art"]:hover::after {
  opacity: 1;
  background-position: -35% 0;
}

img[data-gold-src] {
  transition: opacity 0.25s ease;
}

/* ---------- Wide slot banner (lg_banner_slots, Box Editor row 3, /casino) ---------- */

/* The Box Editor JPG is only a no-JS fallback. With JS the box becomes a full-width lobby
   banner: a tilted wall of real game covers drifting upward at different depths, rising
   light motes, and a headline whose game count rolls in like slot reels. */
main div[class~="flex-wrap"]:has(> a.lg-slotbanner) {
  justify-content: stretch !important;
}

main a.group[class~="rounded-xl"].lg-slotbanner {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: none !important;
  height: clamp(300px, 25vw, 400px);
  overflow: hidden !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  background:
    radial-gradient(70% 120% at 0% 100%, rgba(255, 176, 0, 0.1), transparent 60%),
    radial-gradient(50% 90% at 70% -10%, rgba(255, 208, 0, 0.08), transparent 70%),
    #0c0b0b !important;
  isolation: isolate;
  color: var(--ink);
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 30px 70px -40px rgba(0, 0, 0, 0.95);
  transition: border-color 0.6s ease, box-shadow 0.6s var(--ease) !important;
}

main a.group[class~="rounded-xl"].lg-slotbanner:hover {
  transform: none;
  border-color: rgba(255, 208, 0, 0.26) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px -36px rgba(255, 176, 0, 0.3);
}

main a.group[class~="rounded-xl"].lg-slotbanner.is-built > img {
  display: none !important;
}

main a.group[class~="rounded-xl"].lg-slotbanner::after,
main a.group[class~="rounded-xl"].lg-slotbanner[style*="--lg-art"]::after {
  display: none;
}

.lg-slot-in {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Hairline top light + film grain: print finish, not a render. */
.lg-slot-in::before {
  content: "";
  position: absolute;
  top: 0;
  left: 6%;
  right: 6%;
  z-index: 5;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 120, 0.5), transparent);
}

.lg-slot-in::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---- the wall ---- */

@property --lg-spot {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

.lg-slot-wall {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 62%;
  overflow: hidden;
  contain: paint;
  perspective: 1400px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  mask-composite: intersect;
}

.lg-slot-grid {
  position: absolute;
  top: 50%;
  left: 52%;
  width: 135%;
  height: 260%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  transform: translate(-50%, -50%) rotateX(18deg) rotateZ(-14deg);
  transform-style: flat;
}

.lg-slot-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 16px;
  will-change: transform;
  animation: lg-wall-rise var(--dur, 60s) linear infinite;
}

.lg-slot-col:nth-child(2n) {
  margin-top: -18%;
}

@keyframes lg-wall-rise {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}

.lg-slot-tile {
  position: relative;
  flex: none;
  aspect-ratio: 216 / 152;
  overflow: hidden;
  border-radius: 14px;
  background: #1a1919;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.lg-slot-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) brightness(0.94);
  transition: filter 0.8s ease;
}

.lg-slot-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14), transparent 38%);
  pointer-events: none;
}

/* Dim veil with a cursor spotlight: the covers under the pointer wake up. */
.lg-slot-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle var(--lg-spot) at var(--mx, 60%) var(--my, 50%), rgba(12, 11, 11, 0) 0%, rgba(12, 11, 11, 0) 30%, rgba(12, 11, 11, 0.32) 100%);
  transition: --lg-spot 0.7s var(--ease);
}

.lg-slotbanner:hover .lg-slot-veil {
  --lg-spot: 320px;
}

.lg-slotbanner:hover .lg-slot-tile img {
  filter: saturate(1.05) brightness(1);
}

/* ---- rising motes (dream layer) ---- */

.lg-slot-motes {
  position: absolute;
  inset: 0;
  z-index: 2;
  container-type: size;
  overflow: hidden;
  pointer-events: none;
}

.lg-slot-motes i {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: -12%;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 244, 200, 0.95), rgba(255, 196, 40, 0.55) 45%, rgba(255, 176, 0, 0) 70%);
  filter: blur(var(--b));
  opacity: 0;
  animation: lg-mote var(--d) cubic-bezier(0.35, 0, 0.65, 1) var(--t) infinite;
}

@keyframes lg-mote {
  0% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); }
  15% { opacity: var(--o); }
  50% { transform: translate3d(calc(var(--sway) * 1px), -60cqh, 0) scale(1); }
  85% { opacity: calc(var(--o) * 0.7); }
  100% { opacity: 0; transform: translate3d(calc(var(--sway) * -0.6px), -125cqh, 0) scale(0.85); }
}

/* ---- copy ---- */

.lg-slot-copy {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(52%, 700px);
  height: 100%;
  padding: 0 clamp(24px, 4.2vw, 76px);
}

.lg-slot-title {
  margin: 0 !important;
  font-size: clamp(30px, 3.5vw, 60px) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.035em !important;
  color: var(--ink);
  text-wrap: balance;
}

.lg-slot-title .l1 {
  display: block;
  color: var(--ink-2);
  font-weight: 500;
}

.lg-slot-title .l2 {
  display: block;
}

.lg-slot-title em {
  display: inline-block;
  padding: 0 0.12em 0.08em 0;
  margin-right: -0.12em;
  font-style: italic;
  font-weight: 800;
  background-image: linear-gradient(180deg, #fff3c2 0%, #ffd84a 30%, #ffc400 65%, #eea300 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Game count as rolling reels. The window and every digit share one measured step (--lh),
   otherwise the strip stops between two digits and the glyph is clipped. */
.lg-slot-count {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  --lh: 1.15em;
  height: var(--lh);
  overflow: hidden;
  font-weight: 800;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.03em;
  line-height: 1;
}

.lg-odo {
  display: block;
  height: var(--lh);
  overflow: hidden;
}

.lg-odo__strip,
.lg-odo__sep {
  background-image: linear-gradient(180deg, #fff3c2 0%, #ffd84a 30%, #ffc400 65%, #eea300 100%);
  background-size: 100% var(--lh);
  background-repeat: repeat-y;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lg-odo__strip {
  display: flex;
  flex-direction: column;
}

.lg-odo__strip > span {
  display: grid;
  flex: 0 0 var(--lh);
  place-items: center;
  height: var(--lh);
  min-height: 0;
  max-height: var(--lh);
  line-height: 1;
}

.lg-odo__sep {
  display: grid;
  place-items: center;
  height: var(--lh);
  line-height: 1;
}

.lg-odo__strip {
  transform: translateY(0);
}

.lg-slot-count.is-roll .lg-odo__strip {
  transform: translateY(calc(var(--d) * var(--lh) * -1 - var(--lh) * 10));
  transition: transform calc(1.4s + var(--i) * 0.12s) cubic-bezier(0.16, 0.84, 0.24, 1) calc(0.25s + var(--i) * 0.06s);
}

.lg-slot-sub {
  margin: 0.9em 0 0;
  max-width: 34em;
  color: var(--dim);
  font-size: clamp(13px, 1vw, 15.5px);
  font-weight: 500;
  line-height: 1.55;
}

.lg-slot-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(18px, 1.8vw, 28px);
}

.lg-slot-cta {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.4em 0.95em 1.7em;
  overflow: hidden;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--night) !important;
  font-size: clamp(12px, 0.9vw, 14px);
  font-weight: 800;
  letter-spacing: 0.04em;
  background: var(--gold-sheen);
  box-shadow: none;
  transition: transform 0.4s var(--ease);
}

.lg-slot-cta svg {
  width: 1.1em;
  height: 1.1em;
  stroke-width: 2.6;
  transition: transform 0.4s var(--ease);
}

.lg-slot-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.9s var(--ease);
}

.lg-slotbanner:hover .lg-slot-cta {
  box-shadow: none;
}

.lg-slotbanner:hover .lg-slot-cta::after {
  transform: translateX(120%);
}

.lg-slotbanner:hover .lg-slot-cta svg {
  transform: translateX(4px);
}

.lg-slot-meta {
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 600;
}

.lg-slot-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  letter-spacing: 0.01em;
}

.lg-slot-meta .lg-slot-count {
  font-size: 1.15em;
}

/* ---- entrance ---- */

.lg-slot-title .l1,
.lg-slot-title .l2,
.lg-slot-sub,
.lg-slot-row {
  opacity: 1;
  transform: none;
  filter: none;
}

.lg-slotbanner.is-in .lg-slot-title .l1 { opacity: 1; transform: none; filter: none; transition-delay: 0.05s; }
.lg-slotbanner.is-in .lg-slot-title .l2 { opacity: 1; transform: none; filter: none; transition-delay: 0.15s; }
.lg-slotbanner.is-in .lg-slot-sub { opacity: 1; transform: none; filter: none; transition-delay: 0.35s; }
.lg-slotbanner.is-in .lg-slot-row { opacity: 1; transform: none; filter: none; transition-delay: 0.5s; }

.lg-slot-wall {
  opacity: 1;
}

.lg-slotbanner.is-paused .lg-slot-col,
.lg-slotbanner.is-paused .lg-slot-motes i {
  animation-play-state: paused;
}

/* ---- phones: wall becomes a band on top, copy below ---- */

@media (max-width: 767px) {
  main a.group[class~="rounded-xl"].lg-slotbanner {
    height: auto;
    min-height: 0;
    border-radius: 18px !important;
  }

  .lg-slot-in {
    position: relative;
    inset: auto;
  }

  .lg-slot-wall {
    position: relative;
    width: 100%;
    height: 210px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 60%, transparent 100%);
  }

  .lg-slot-grid {
    left: 50%;
    width: 190%;
    height: 330%;
    gap: 10px;
  }

  .lg-slot-col {
    gap: 10px;
    padding-bottom: 10px;
  }

  .lg-slot-tile {
    border-radius: 10px;
  }

  .lg-slot-motes {
    height: 100%;
  }

  .lg-slot-copy {
    width: 100%;
    height: auto;
    margin-top: -36px;
    padding: 0 20px 22px;
  }

  .lg-slot-title {
    font-size: 30px !important;
  }

  .lg-slot-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .lg-slot-cta {
    justify-content: center;
    font-size: 14px;
  }

  .lg-slot-meta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-slot-col,
  .lg-slot-motes {
    animation: none !important;
  }

  .lg-slot-motes {
    display: none;
  }

  .lg-slot-title .l1,
  .lg-slot-title .l2,
  .lg-slot-sub,
  .lg-slot-row,
  .lg-slot-wall {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ---------- Hero slider ---------- */

/* Slider Management uses a fixed height (470px desktop / 250px mobile) with object-fit:cover, which
   crops the lg_slide_* banners' left-hand copy on tablets. Follow the artwork's ratio instead:
   desktop art 1920x640 (≥768px), mobile art 1400x899. */
main div.relative.w-full.overflow-hidden[style*="height"]:has(> div > img[src*="lg_slide_"]) {
  height: auto !important;
  aspect-ratio: 1400 / 899;
  max-height: 420px;
}

/* Phones swipe; the prev/next arrows would sit on the banner copy. */
@media (max-width: 767px) {
  main div:has(> div.relative.w-full > div > img[src*="lg_slide_"]) > button[aria-label$=" slide"] {
    display: none !important;
  }
}

@media (min-width: 768px) {
  main div.relative.w-full.overflow-hidden[style*="height"]:has(> div > img[src*="lg_slide_"]) {
    aspect-ratio: 1920 / 640;
    max-height: 470px;
  }
}

/* ---------- Animated hero (injected by custom.js) ---------- */

/* The platform slider stays in the DOM as a no-JS fallback; once #lg-hero mounts it is hidden. */
.lg-hero-src {
  display: none !important;
}

/* html.lg-js is set the moment custom.js runs: platform originals that JS replaces keep their space but
   stay invisible until the replacement mounts, so their old look never flashes. */
html.lg-js main div.w-full:has(> div.grid div[style*="images/jackpot/"]):not(.lg-jack-fallback) {
  visibility: hidden;
}

/* Green-era uploads wait for the canvas gold pass (goldifyImage marks every image it has seen). */
html.lg-js img[src*="/uploads/"]:not([src*="_lg_"]):not([src*="lgrail"]):not([src*=".gif"]):not([src*=".svg"]):not([data-gold-src]) {
  opacity: 0 !important;
}

#lg-hero {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pad: clamp(28px, 4.6cqw, 72px);
  /* Dark panel is the left of the art. Type is centered inside it, not across the figure. */
  --copy-w: min(44%, 620px);
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 1;
  max-height: 470px;
  container-type: inline-size;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: #0b0b0b;
  color: var(--ink);
  outline: none;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#lg-hero:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 208, 0, 0.6);
}

.lg-hero__stage,
.lg-hero__slide,
.lg-hero__art,
.lg-hero__shade,
.lg-hero__fx {
  position: absolute;
  inset: 0;
}

.lg-hero__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  cursor: pointer;
}

.lg-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.lg-hero__slide.is-leaving {
  visibility: visible;
  z-index: 1;
  animation: lg-hero-out 0.9s var(--ease) forwards;
}

@keyframes lg-hero-out {
  to {
    opacity: 0;
  }
}

/* Figure sits right of center. A mild left crop closes the gap without covering the type. */
.lg-hero__art img {
  position: absolute;
  top: 0;
  right: 0;
  left: auto;
  width: 132%;
  height: 100%;
  object-fit: cover;
  object-position: right 16%;
  transform-origin: right center;
  will-change: transform;
}

.lg-hero__art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.lg-hero__slide.is-active .lg-hero__art img {
  animation: lg-hero-art 8s var(--ease) both;
}

@keyframes lg-hero-art {
  from {
    transform: scale(1.05);
  }
  to {
    transform: none;
  }
}

.lg-hero__shade {
  z-index: 2;
  background: linear-gradient(
    90deg,
    #0b0b0b 0%,
    rgba(11, 11, 11, 0.9) 20%,
    rgba(11, 11, 11, 0.55) 36%,
    rgba(11, 11, 11, 0.16) 48%,
    transparent 60%
  );
  pointer-events: none;
}

/* Type owns the dark panel: centered in the left column, clear of the figure. */
.lg-hero__copy {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: var(--copy-w);
  box-sizing: border-box;
  padding-inline: var(--pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  pointer-events: none;
}

.lg-hero__copy > * {
  margin: 0;
}

.lg-hero__kicker {
  display: block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffd000;
  white-space: normal;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
}

.lg-hero__value {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 10px !important;
  font-size: clamp(80px, 10.4cqw, 160px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.35));
}

.lg-hero__d,
.lg-hero__unit {
  display: inline-block;
  background-image: linear-gradient(180deg, #fff6cc 0%, #ffd000 42%, #e6a400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lg-hero__unit {
  font-size: 0.42em;
  font-weight: 500;
  line-height: 1;
  margin-left: 0.06em;
  margin-top: 0.12em;
  letter-spacing: 0;
}

.lg-hero__title {
  margin-top: 6px !important;
  font-size: clamp(26px, 2.8cqw, 44px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #f7f4ee;
  text-wrap: balance;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.lg-hero__title--hero {
  font-size: clamp(36px, 4.2cqw, 68px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Words stay whole. The old overflow mask was slicing Ş/Ğ/Ç and the letterforms. */
.lg-hero__w {
  display: inline-block;
  overflow: visible;
  vertical-align: baseline;
  padding: 0.08em 0.04em 0.16em;
  margin: 0 -0.02em;
}

.lg-hero__w > span {
  display: inline-block;
  color: inherit;
}

.lg-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
  margin-top: clamp(6px, 0.9cqw, 14px) !important;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jonquil);
}

.lg-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 14px !important;
  padding: 0.72em 1.35em 0.72em 1.5em;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--night) !important;
  background: var(--gold-sheen);
  box-shadow: none;
  pointer-events: auto;
  transition: transform 0.25s var(--ease);
}

.lg-hero__cta svg {
  width: 1.15em;
  height: 1.15em;
  stroke-width: 2.6;
  transition: transform 0.25s var(--ease);
}

.lg-hero__slide:hover .lg-hero__cta {
  transform: translateY(-2px);
  box-shadow: none;
}

.lg-hero__slide:hover .lg-hero__cta svg {
  transform: translateX(3px);
}

/* ---- entrance choreography (staggered, framer-style) ---- */

.lg-hero__kicker,
.lg-hero__d,
.lg-hero__unit,
.lg-hero__w > span,
.lg-hero__tag,
.lg-hero__cta {
  opacity: 0;
}

.lg-hero__slide.is-active .lg-hero__kicker {
  animation: lg-in-up 0.7s var(--ease) 0.12s both;
}

.lg-hero__slide.is-active .lg-hero__d {
  animation: lg-in-roll 0.8s var(--ease) both;
  animation-delay: calc(0.26s + var(--i) * 0.07s);
}

.lg-hero__slide.is-active .lg-hero__unit {
  animation: lg-in-up 0.6s var(--ease) 0.62s both;
}

.lg-hero__slide.is-active .lg-hero__w > span {
  animation: lg-in-up 0.65s var(--ease) both;
  animation-delay: calc(0.42s + var(--i) * 0.06s);
}

.lg-hero__slide.is-active .lg-hero__tag {
  animation: lg-in-up 0.6s var(--ease) 0.86s both;
}

.lg-hero__slide.is-active .lg-hero__cta {
  animation: lg-in-up 0.7s var(--ease) 0.98s both;
}

@keyframes lg-in-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lg-in-roll {
  from {
    opacity: 0;
    transform: translateY(55%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lg-in-mask {
  from {
    opacity: 1;
    transform: translateY(112%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- coins: numerals roll, gold dust drifts ---- */

.lg-hero__fx i {
  position: absolute;
  left: calc(var(--x) * 1%);
  bottom: -6%;
  width: var(--w);
  height: var(--w);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff2a8, #ffb700 60%, rgba(255, 183, 0, 0) 72%);
  opacity: 0;
  filter: blur(0.4px);
  pointer-events: none;
}

.lg-hero__slide[data-fx="coins"].is-active .lg-hero__fx i {
  animation: lg-float var(--d) linear var(--t) infinite;
}

@keyframes lg-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.6);
  }
  12% {
    opacity: 0.85;
  }
  80% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--w) * 3), -112cqh, 0) scale(1.1);
  }
}

/* ---- kinetic: sport — italic, skewed slides, gold streak ---- */

.lg-hero__slide[data-fx="kinetic"].is-active .lg-hero__d,
.lg-hero__slide[data-fx="kinetic"].is-active .lg-hero__w > span {
  animation-name: lg-in-up;
}

.lg-hero__slide[data-fx="kinetic"].is-active .lg-hero__art img {
  animation-name: lg-hero-art-kinetic;
  animation-duration: 1.4s;
}

.lg-hero__slide[data-fx="kinetic"] .lg-hero__fx::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(112deg, transparent 44%, rgba(255, 208, 0, 0.16) 50%, transparent 56%);
  transform: translateX(-60%);
  opacity: 0;
}

.lg-hero__slide[data-fx="kinetic"].is-active .lg-hero__fx::before {
  animation: lg-streak 1.5s var(--ease) 0.25s both;
}

@keyframes lg-in-skid {
  from {
    opacity: 0;
    transform: translateX(-28%) skewX(-14deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lg-in-skew {
  from {
    opacity: 0;
    transform: translateX(-40px) skewX(-12deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lg-hero-art-kinetic {
  from {
    transform: scale(1.08) translate3d(2%, 0, 0);
    filter: blur(4px);
  }
  to {
    transform: none;
    filter: blur(0);
  }
}

@keyframes lg-streak {
  from {
    opacity: 0;
    transform: translateX(-60%);
  }
  30% {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: translateX(60%);
  }
}

/* ---- regal: slow bloom, tracking settles ---- */

.lg-hero__slide[data-fx="regal"].is-active .lg-hero__kicker {
  animation-name: lg-in-track;
  animation-duration: 1.1s;
}

.lg-hero__slide[data-fx="regal"].is-active .lg-hero__d {
  animation-name: lg-in-bloom;
  animation-duration: 1.1s;
}

.lg-hero__slide[data-fx="regal"].is-active .lg-hero__unit {
  animation-name: lg-in-bloom;
  animation-duration: 1s;
}

.lg-hero__slide[data-fx="regal"].is-active .lg-hero__w > span {
  animation-name: lg-in-fade;
  animation-duration: 1s;
}

.lg-hero__slide[data-fx="regal"].is-active .lg-hero__art img {
  animation-duration: 10s;
}

.lg-hero__slide[data-fx="regal"] .lg-hero__fx::before {
  content: "";
  position: absolute;
  right: 12%;
  top: 8%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 0, 0.22), rgba(255, 183, 0, 0) 62%);
  opacity: 0;
}

.lg-hero__slide[data-fx="regal"].is-active .lg-hero__fx::before {
  animation: lg-halo 5s ease-in-out 0.3s infinite alternate;
}

@keyframes lg-in-track {
  from {
    opacity: 0;
    letter-spacing: 0.7em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.22em;
  }
}

@keyframes lg-in-bloom {
  from {
    opacity: 0;
    transform: scale(1.18);
    filter: blur(14px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes lg-in-fade {
  from {
    opacity: 0;
    transform: translateY(8px);
    letter-spacing: 0.12em;
  }
  to {
    opacity: 1;
    transform: none;
    letter-spacing: -0.015em;
  }
}

@keyframes lg-halo {
  from {
    opacity: 0.55;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* ---- pop: playful spring ---- */

.lg-hero__slide[data-fx="pop"].is-active .lg-hero__d {
  animation: lg-in-pop 0.9s var(--spring) both;
  animation-delay: calc(0.26s + var(--i) * 0.09s);
}

.lg-hero__slide[data-fx="pop"].is-active .lg-hero__unit {
  animation: lg-in-pop 0.8s var(--spring) 0.6s both;
}

.lg-hero__slide[data-fx="pop"].is-active .lg-hero__w > span {
  animation: lg-in-bounce 0.8s var(--spring) both;
  animation-delay: calc(0.5s + var(--i) * 0.09s);
}

.lg-hero__slide[data-fx="pop"].is-active .lg-hero__cta {
  animation: lg-in-pop 0.8s var(--spring) 0.95s both;
}

@keyframes lg-in-pop {
  from {
    opacity: 0;
    transform: scale(0.4) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lg-in-bounce {
  from {
    opacity: 0;
    transform: translateY(70%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- noir: outlined title inks in, art emerges from black ---- */

.lg-hero__slide[data-fx="noir"].is-active .lg-hero__w > span {
  animation: lg-in-up 0.7s var(--ease) both;
  animation-delay: calc(0.45s + var(--i) * 0.07s);
}

.lg-hero__slide[data-fx="noir"].is-active .lg-hero__art img {
  animation-name: lg-hero-art-noir;
  animation-duration: 2.2s;
}

.lg-hero__slide[data-fx="noir"] .lg-hero__fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 47%, rgba(255, 255, 255, 0.05) 50%, transparent 53%);
  opacity: 0;
}

.lg-hero__slide[data-fx="noir"].is-active .lg-hero__fx::before {
  animation: lg-streak 2.4s var(--ease) 0.9s both;
}

@keyframes lg-in-ink {
  0% {
    opacity: 0;
    color: transparent;
    transform: translateY(10px);
  }
  35% {
    opacity: 1;
    color: transparent;
    transform: none;
  }
  100% {
    opacity: 1;
    color: var(--ink);
    transform: none;
  }
}

@keyframes lg-hero-art-noir {
  from {
    transform: scale(1.05);
    filter: brightness(0) contrast(1.3);
  }
  to {
    transform: none;
    filter: brightness(1) contrast(1);
  }
}

/* ---- drop: numerals fall and bounce, sparks ---- */

.lg-hero__slide[data-fx="drop"].is-active .lg-hero__d {
  animation: lg-in-drop 1s cubic-bezier(0.2, 1.5, 0.4, 1) both;
  animation-delay: calc(0.22s + var(--i) * 0.11s);
}

.lg-hero__slide[data-fx="drop"].is-active .lg-hero__unit {
  animation: lg-in-drop 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) 0.62s both;
}

.lg-hero__slide[data-fx="drop"] .lg-hero__fx i {
  bottom: auto;
  top: 30%;
  border-radius: 1px;
  width: 3px;
  height: 3px;
  background: #ffe45c;
  box-shadow: 0 0 8px 1px rgba(255, 208, 0, 0.7);
}

.lg-hero__slide[data-fx="drop"].is-active .lg-hero__fx i {
  animation: lg-spark var(--d) ease-out var(--t) infinite;
}

@keyframes lg-in-drop {
  from {
    opacity: 0;
    transform: translateY(-110%) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes lg-spark {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.5);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc((var(--w) - 8px) * 6), 60cqh, 0) scale(0.2);
  }
}

/* ---- sunrise: warm sheen sweeps the numerals ---- */

.lg-hero__slide[data-fx="sunrise"] .lg-hero__d,
.lg-hero__slide[data-fx="sunrise"] .lg-hero__unit {
  /* longhands only: the `background` shorthand would reset background-clip: text */
  background-image: linear-gradient(100deg, #e09600 0%, #fffdf4 18%, #ffd84a 42%, #fff6c4 50%, #ffb400 68%, #e09600 100%);
  background-size: 400% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lg-hero__slide[data-fx="sunrise"].is-active .lg-hero__d,
.lg-hero__slide[data-fx="sunrise"].is-active .lg-hero__unit {
  animation:
    lg-in-up 0.8s var(--ease) both,
    lg-sheen 4s linear 1s infinite;
  animation-delay: calc(0.26s + var(--i, 4) * 0.07s), 1s;
}

.lg-hero__slide[data-fx="sunrise"].is-active .lg-hero__art img {
  animation-name: lg-hero-art-warm;
  animation-duration: 3s;
}

.lg-hero__slide[data-fx="sunrise"] .lg-hero__fx::before {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.28), rgba(255, 170, 0, 0) 60%);
  opacity: 0;
}

.lg-hero__slide[data-fx="sunrise"].is-active .lg-hero__fx::before {
  animation: lg-halo 6s ease-in-out infinite alternate;
}

@keyframes lg-sheen {
  from {
    background-position: 0% 0;
  }
  to {
    background-position: -400% 0;
  }
}

@keyframes lg-hero-art-warm {
  from {
    transform: scale(1.06);
    filter: brightness(1.5) saturate(1.2);
  }
  to {
    transform: none;
    filter: brightness(1) saturate(1);
  }
}

/* ---- party: gold title pops, confetti rains ---- */

.lg-hero__slide[data-fx="party"].is-active .lg-hero__w > span {
  animation: lg-in-pop 0.9s var(--spring) both;
  animation-delay: calc(0.3s + var(--i) * 0.11s);
}

.lg-hero__slide[data-fx="party"] .lg-hero__fx i {
  bottom: auto;
  top: -6%;
  border-radius: 1px;
  width: calc(var(--w) * 0.7);
  height: var(--w);
  background: linear-gradient(135deg, #ffe45c, #ffb700);
  filter: none;
}

.lg-hero__slide[data-fx="party"] .lg-hero__fx i:nth-child(3n) {
  background: #f5f3ee;
}

.lg-hero__slide[data-fx="party"] .lg-hero__fx i:nth-child(4n) {
  background: #2a2929;
}

.lg-hero__slide[data-fx="party"].is-active .lg-hero__fx i {
  animation: lg-confetti var(--d) linear var(--t) infinite;
}

@keyframes lg-confetti {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  8% {
    opacity: 0.9;
  }
  90% {
    opacity: 0.8;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--w) * -4), 112cqh, 0) rotate(560deg);
  }
}

/* One type system on every frame. Size, weight and tracking stay put. */

/* ---- controls ---- */

.lg-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--hair);
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.55);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}

.lg-hero__nav svg {
  width: 20px;
  height: 20px;
}

.lg-hero__nav--prev {
  left: 16px;
}

.lg-hero__nav--next {
  right: 16px;
}

#lg-hero:hover .lg-hero__nav,
#lg-hero:focus-within .lg-hero__nav {
  opacity: 1;
}

.lg-hero__nav:hover {
  background: rgba(255, 208, 0, 0.14);
  border-color: rgba(255, 208, 0, 0.5);
}

.lg-hero__dots {
  position: absolute;
  left: 0;
  bottom: clamp(12px, 2.2cqw, 28px);
  z-index: 5;
  display: flex;
  justify-content: center;
  gap: 6px;
  width: var(--copy-w);
  box-sizing: border-box;
  padding-inline: var(--pad);
}

.lg-hero__dot {
  position: relative;
  width: 20px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.45s var(--ease), background 0.3s;
}

.lg-hero__dot::before {
  content: "";
  position: absolute;
  inset: -8px 0;
}

.lg-hero__dot:hover {
  background: rgba(255, 255, 255, 0.34);
}

.lg-hero__dot.is-active {
  width: 54px;
}

.lg-hero__dot i {
  position: absolute;
  inset: 0;
  background: var(--jonquil);
  transform: scaleX(0);
  transform-origin: left;
}

.lg-hero__dot.is-active i {
  animation: lg-hero-progress var(--hold, 6.5s) linear forwards;
}

#lg-hero.is-paused .lg-hero__dot i {
  animation-play-state: paused;
}

@keyframes lg-hero-progress {
  to {
    transform: scaleX(1);
  }
}

/* ---- responsive: the stage ratio follows the viewport, the type follows the stage width (cqw) ---- */

@media (max-width: 1023px) {
  #lg-hero {
    aspect-ratio: 2.2 / 1;
    max-height: none;
  }
}

@media (max-width: 767px) {
  #lg-hero {
    aspect-ratio: 4 / 3;
    max-height: none;
    border-radius: 0;
    --pad: 18px;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

@container (max-width: 900px) {
  .lg-hero__copy,
  .lg-hero__dots {
    width: 48%;
  }

  .lg-hero__value {
    font-size: 8.2cqw;
  }

  .lg-hero__title {
    font-size: 2.6cqw;
    letter-spacing: 0.01em;
  }

  .lg-hero__title--hero {
    font-size: 3.1cqw;
  }

  .lg-hero__kicker {
    font-size: 11px;
    letter-spacing: 0.1em;
  }
}

@container (max-width: 640px) {
  .lg-hero__art img {
    inset: 0;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 78% 18%;
    transform: none;
    animation: none;
  }

  .lg-hero__slide.is-active .lg-hero__art img,
  .lg-hero__slide[data-fx].is-active .lg-hero__art img {
    animation: none;
    transform: none;
  }

  .lg-hero__shade {
    background:
      linear-gradient(180deg, rgba(11, 11, 11, 0.42) 0%, rgba(11, 11, 11, 0.28) 38%, rgba(11, 11, 11, 0.55) 100%),
      linear-gradient(90deg, rgba(11, 11, 11, 0.62) 0%, rgba(11, 11, 11, 0.22) 52%, transparent 78%);
  }

  .lg-hero__copy {
    width: 86%;
    top: 50%;
    bottom: auto;
    transform: translateY(calc(-50% - 8px));
    align-items: flex-start;
    text-align: left;
    padding-inline: 0;
    left: var(--pad);
  }

  .lg-hero__value {
    justify-content: flex-start;
  }

  .lg-hero__dots {
    left: var(--pad);
    width: auto;
    justify-content: flex-start;
    padding-inline: 0;
  }

  .lg-hero__kicker {
    font-size: 11px;
    letter-spacing: 0.16em;
  }

  .lg-hero__value {
    font-size: 20cqw;
    margin-top: 2px !important;
    line-height: 0.88;
  }

  .lg-hero__title {
    font-size: 5.4cqw;
    letter-spacing: -0.01em;
    margin-top: 2px !important;
  }

  .lg-hero__title--hero {
    font-size: 7.2cqw;
    line-height: 1.02;
  }

  .lg-hero__tag {
    font-size: 3.2cqw;
    margin-top: 4px !important;
  }

  .lg-hero__cta {
    height: 36px;
    gap: 6px;
    margin-top: 10px !important;
    padding: 0 14px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.1em;
  }

  .lg-hero__cta svg {
    width: 14px;
    height: 14px;
  }

  .lg-hero__nav {
    display: none;
  }

  .lg-hero__dots {
    bottom: 8px;
  }
}

@media (hover: none) {
  .lg-hero__nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Entrance animations are the only thing that raises these from opacity 0.
     The site-wide reduced-motion rule sets animation:none, so the copy must
     be shown in its finished state or the slide reads as an empty picture. */
  #lg-hero .lg-hero__slide.is-active .lg-hero__kicker,
  #lg-hero .lg-hero__slide.is-active .lg-hero__d,
  #lg-hero .lg-hero__slide.is-active .lg-hero__unit,
  #lg-hero .lg-hero__slide.is-active .lg-hero__w > span,
  #lg-hero .lg-hero__slide.is-active .lg-hero__tag,
  #lg-hero .lg-hero__slide.is-active .lg-hero__cta {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .lg-hero__fx {
    display: none;
  }
}

/* ---------- Game cards ---------- */

a[href*="/casino/game/"],
a[href*="/live-casino/game/"] {
  border-radius: var(--r-md);
  transition: transform 0.3s var(--ease);
}

a[href*="/casino/game/"] img,
a[href*="/live-casino/game/"] img {
  border-radius: var(--r-md);
  transition: transform 0.45s var(--ease), box-shadow 0.35s var(--ease), filter 0.35s ease;
}

a[href*="/casino/game/"]:hover,
a[href*="/live-casino/game/"]:hover {
  transform: translateY(-4px);
}

header a[href*="/casino/game/"],
header a[href*="/casino/game/"]:hover,
header a[href*="/live-casino/game/"],
header a[href*="/live-casino/game/"]:hover {
  transform: none !important;
}

a[href*="/casino/game/"]:hover img,
a[href*="/live-casino/game/"]:hover img {
  filter: saturate(1.08) brightness(1.04);
  box-shadow: var(--glow);
}

/* ---------- Platform Originals ---------- */

main a[class*="aspect-[215/160]"] {
  background: var(--s2) !important;
  border: 1px solid var(--hair) !important;
  border-radius: var(--r-md) !important;
  transition: transform 0.35s var(--ease), border-color 0.3s ease, box-shadow 0.35s var(--ease);
}

main a[class*="aspect-[215/160]"] > div[class~="bg-gradient-to-br"] {
  opacity: 1 !important;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(255, 208, 0, 0.42), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(255, 183, 0, 0.16), transparent 60%),
    linear-gradient(160deg, #2a2929 0%, #161515 70%) !important;
}

main a[class*="aspect-[215/160]"]:nth-child(3n + 2) > div[class~="bg-gradient-to-br"] {
  background:
    radial-gradient(110% 90% at 10% 0%, rgba(255, 183, 0, 0.4), transparent 55%),
    linear-gradient(200deg, #2a2929 0%, #141414 75%) !important;
}

main a[class*="aspect-[215/160]"]:nth-child(3n + 3) > div[class~="bg-gradient-to-br"] {
  background:
    radial-gradient(80% 70% at 50% 0%, rgba(255, 208, 0, 0.34), transparent 65%),
    radial-gradient(60% 60% at 100% 100%, rgba(255, 183, 0, 0.14), transparent 70%),
    linear-gradient(180deg, #2a2929 0%, #121212 80%) !important;
}

main a[class*="aspect-[215/160]"]:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 208, 0, 0.5) !important;
  box-shadow: 0 18px 40px rgba(255, 183, 0, 0.14);
}

main a[class*="aspect-[215/160]"] p[class~="text-lg"] {
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

/* ---------- Game shell ---------- */

/* The rail is empty. Hide it with the stage, before the iframe exists,
   so the page does not open narrow and then grow. */
main div.grid[class*="xl:grid-cols-4"]:has(> div[class*="xl:col-span-3"] div[class*="aspect-[16/9]"]) > div[class*="xl:col-span-1"] {
  display: none !important;
}

main div.grid[class*="xl:grid-cols-4"]:has(> div[class*="xl:col-span-3"] div[class*="aspect-[16/9]"]) > div[class*="xl:col-span-3"] {
  grid-column: 1 / -1 !important;
  min-width: 0;
}

main div.min-h-screen:has(> div.container > div.grid[class*="xl:grid-cols-4"] div[class*="aspect-[16/9]"]) > div.container {
  max-width: 1600px !important;
}

main div.grid[class*="xl:grid-cols-4"] > div[class*="xl:col-span-3"] > div[class*="aspect-[16/9]"] {
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 16px !important;
  background: #000 !important;
  box-shadow: 0 40px 90px -48px rgba(0, 0, 0, 0.9) !important;
}

/* ---------- Jackpot ---------- */

main [class*="JACKPOT"],
main [class~="tabular-nums"] {
  font-variant-numeric: tabular-nums;
}

/* Platform jackpot grid stays in the DOM (it keeps ticking) but #lg-jack replaces it visually. */
.lg-jack-src {
  display: none !important;
}

#lg-jack {
  padding: 16px 0 8px;
  animation: lg-jack-in 0.45s var(--ease) both;
}

/* Lobby repeats the pool title above the cards. The cards stay. */
main div.container > #lg-jack > .lg-jack__head {
  display: none !important;
}

main div.container > #lg-jack {
  padding-top: 4px;
}

@keyframes lg-jack-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.lg-jack__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lg-jack__title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lg-jack__title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.lg-jack__live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(255, 208, 0, 0.08);
  color: var(--jonquil);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lg-jack__live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jonquil);
  animation: lg-jack-live 2.2s ease-in-out infinite;
}

.lg-jack__total {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.lg-jack__total span {
  color: var(--mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lg-jack__total strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.lg-jack__track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* ---- Card + per-provider theme (tone = accent rgb, deep = base color the art fades into) ---- */

.lg-jack__card {
  --tone: 255, 208, 0;
  --deep: #080808;
  --cx: 70%;
  --cy: 30%;
  --tint: color-mix(in srgb, rgb(var(--tone)) 55%, #fff);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 16px 16px 14px;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(var(--tone), 0.28);
  background: var(--deep);
  color: var(--ink);
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.5s var(--ease),
    border-color 0.35s ease,
    box-shadow 0.5s var(--ease);
}

.lg-jack__card[data-pool="pragmatic"] { --tone: 168, 112, 255; --deep: #0c0714; --art-h: 118%; }
.lg-jack__card[data-pool="egtdigital"] { --tone: 255, 104, 44; --deep: #120606; --art-h: 128%; }
.lg-jack__card[data-pool="playson"] { --tone: 52, 206, 222; --deep: #050a14; --art-h: 132%; }
.lg-jack__card[data-pool="amusnet"] { --tone: 72, 226, 124; --deep: #04100a; --art-h: 172%; }

.lg-jack__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--deep);
}

.lg-jack__art {
  position: absolute;
  top: 0;
  right: -4%;
  width: auto;
  height: var(--art-h, 130%);
  aspect-ratio: 3 / 4;
  max-width: none;
  object-fit: cover;
  object-position: right top;
  transform-origin: right 18%;
  animation: lg-jack-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.lg-jack__bg::after {
  content: "";
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--tone), 0.16), transparent 72%);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: lg-jack-aura 5s ease-in-out infinite;
  pointer-events: none;
}

.lg-jack__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, transparent 14%),
    linear-gradient(90deg, var(--deep) 0%, color-mix(in srgb, var(--deep) 88%, transparent) 28%, transparent 58%),
    linear-gradient(180deg, transparent 72%, color-mix(in srgb, var(--deep) 70%, transparent) 88%, var(--deep) 100%);
}

.lg-jack__fx {
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  pointer-events: none;
}

/* A soft studio light passes over the piece now and then (staggered per card). */
.lg-jack__fx::before {
  content: "";
  position: absolute;
  inset: -20% -70%;
  background: linear-gradient(112deg, transparent 43%, rgba(255, 246, 225, 0.13) 50%, transparent 57%);
  transform: translateX(-62%);
  animation: lg-jack-sweep 8s var(--ease) infinite;
}

.lg-jack__card:nth-child(2) .lg-jack__fx::before { animation-delay: 2s; }
.lg-jack__card:nth-child(3) .lg-jack__fx::before { animation-delay: 4s; }
.lg-jack__card:nth-child(4) .lg-jack__fx::before { animation-delay: 6s; }

.lg-jack__dust i {
  position: absolute;
  bottom: 50%;
  left: calc(var(--x) * 1%);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(var(--tone), 0.9) 45%, rgba(var(--tone), 0) 72%);
  opacity: 0;
  animation: lg-jack-dust var(--d) linear infinite;
  animation-delay: var(--t);
}

/* ---- Running border beam, surge moment, hover ---- */

/* Static mask, rotating gradient. A custom-property angle repaints the card every frame. */
.lg-jack__beam {
  position: absolute;
  inset: -1px;
  z-index: 3;
  padding: 1.5px;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

.lg-jack__beam::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220%;
  aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 250deg,
    rgba(var(--tone), 0.65) 300deg,
    #fff6d8 340deg,
    transparent 360deg
  );
  transform: translate3d(-50%, -50%, 0);
  animation: lg-jack-beam 7s linear infinite;
}

.lg-jack__card:nth-child(2) .lg-jack__beam::before { animation-delay: -1.75s; }
.lg-jack__card:nth-child(3) .lg-jack__beam::before { animation-delay: -3.5s; }
.lg-jack__card:nth-child(4) .lg-jack__beam::before { animation-delay: -5.25s; }

.lg-jack__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: radial-gradient(90% 70% at 30% 80%, rgba(var(--tone), 0.26), transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.lg-jack__card.is-surge,
.lg-jack__card:hover {
  border-color: rgba(var(--tone), 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 22px 52px rgba(0, 0, 0, 0.5),
    0 0 42px rgba(var(--tone), 0.3);
}

.lg-jack__card:hover {
  transform: translateY(-4px);
}

.lg-jack__card.is-surge::after,
.lg-jack__card:hover::after {
  opacity: 1;
}

.lg-jack__card.is-surge .lg-jack__art,
.lg-jack__card:hover .lg-jack__art {
  filter: brightness(1.14) saturate(1.1);
}

.lg-jack__card.is-surge .lg-jack__grand strong {
  animation: lg-jack-surge 1.5s var(--ease);
}

.lg-jack__card:focus-visible {
  outline: 2px solid rgb(var(--tone));
  outline-offset: 3px;
}

.lg-jack__burst {
  position: absolute;
  left: 34%;
  top: 62%;
  width: 0;
  height: 0;
  pointer-events: none;
}

.lg-jack__burst i {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  margin: -2.5px;
  border-radius: 50%;
  background: #fff6d8;
  box-shadow: 0 0 8px 2px rgba(var(--tone), 0.9);
  opacity: 0;
}

.lg-jack__card.is-surge .lg-jack__burst i {
  animation: lg-jack-burst 1.1s cubic-bezier(0.15, 0.8, 0.3, 1) forwards;
}

/* ---- Content ---- */

.lg-jack__top,
.lg-jack__grand,
.lg-jack__tiers {
  position: relative;
  z-index: 2;
}

.lg-jack__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.lg-jack__brand {
  display: flex;
  align-items: center;
  min-height: 26px;
}

.lg-jack__brand img {
  display: block;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.lg-jack__card[data-pool="pragmatic"] .lg-jack__brand img { height: 30px; }
.lg-jack__card[data-pool="egtdigital"] .lg-jack__brand img { height: 30px; }
.lg-jack__card[data-pool="playson"] .lg-jack__brand img { height: 15px; }
.lg-jack__card[data-pool="amusnet"] .lg-jack__brand img { height: 16px; }

.lg-jack__brand b {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lg-jack__brand.has-logo b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.lg-jack__grand {
  margin-top: auto;
}

.lg-jack__label {
  display: block;
  margin-bottom: 7px;
  color: var(--tint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.lg-jack__grand strong {
  display: block;
  font-size: clamp(24px, 2.15vw, 33px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: #ffd000;
  -webkit-text-fill-color: #ffd000;
  transform-origin: left center;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
}

/* Each digit is a clipped column. Only `transform` moves, and only on the digits
   that changed. The kuruş window is one glyph tall, so the roll cannot show above it. */
.lg-reel {
  display: flex;
  align-items: flex-end;
  width: max-content;
  max-width: 100%;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
  text-shadow: none;
}

.lg-reel__sym,
.lg-reel__sep,
.lg-reel__win {
  flex: none;
}

.lg-reel__win {
  --step: var(--lh, 1em);
  display: block;
  height: var(--step);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  line-height: 1;
  clip-path: inset(0);
}

.lg-reel__col {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, calc(var(--n, 0) * var(--step) * -1), 0);
}

.lg-reel__col.is-run {
  transition: transform 0.42s var(--ease);
  transition-delay: calc(var(--i, 0) * 28ms);
}

.lg-reel__col > i {
  display: block;
  flex: 0 0 var(--step);
  height: var(--step);
  overflow: hidden;
  font-style: normal;
  line-height: 1;
  text-align: center;
}

.lg-jack__grand .lg-reel__sym,
.lg-jack__grand .is-frac {
  font-size: 0.62em;
  color: #ffe7a3;
  -webkit-text-fill-color: #ffe7a3;
}

.lg-jack__tiers .lg-reel__sym,
.lg-jack__total .lg-reel__sym {
  font-size: 0.72em;
  color: var(--mute);
  -webkit-text-fill-color: var(--mute);
}

.lg-jack__tiers .is-frac {
  font-size: 0.78em;
  color: var(--ink-2);
  -webkit-text-fill-color: var(--ink-2);
}

.lg-reel__win.is-frac {
  --step: var(--lh-f, 1em);
}

.lg-jack__tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 0 0;
  list-style: none;
  border-top: 1px solid rgba(var(--tone), 0.28);
}

.lg-jack__tiers li {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.lg-jack__tiers span {
  color: color-mix(in srgb, rgb(var(--tone)) 35%, #8a8782);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lg-jack__tiers strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lg-jack.is-paused *,
.lg-jack.is-paused *::before,
.lg-jack.is-paused *::after {
  animation-play-state: paused !important;
}

.lg-jack.is-paused .lg-reel__col {
  transition: none !important;
}

@keyframes lg-jack-beam {
  to { transform: translate3d(-50%, -50%, 0) rotate(360deg); }
}

@keyframes lg-jack-surge {
  0% { transform: scale(1); }
  28% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

@keyframes lg-jack-burst {
  0% { opacity: 1; transform: rotate(var(--r)) translateX(0) scale(1); }
  100% { opacity: 0; transform: rotate(var(--r)) translateX(var(--len)) scale(0.3); }
}

@keyframes lg-jack-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes lg-jack-drift {
  from { transform: scale(1); }
  to { transform: scale(1.035); }
}

@keyframes lg-jack-aura {
  0%,
  100% { opacity: 0.6; transform: translate(-50%, -50%) scale(0.9); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

@keyframes lg-jack-sweep {
  0%,
  45% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}

@keyframes lg-jack-dust {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0; }
  12% { opacity: 0.9; }
  70% { opacity: 0.55; }
  100% { transform: translate(calc(var(--drift) * 1px), -150px) scale(1); opacity: 0; }
}

@keyframes lg-jack-shine {
  0%,
  60% { background-position: 100% 0; }
  100% { background-position: 0% 0; }
}

@keyframes lg-jack-live {
  0%,
  100% { box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.5); }
  60% { box-shadow: 0 0 0 6px rgba(255, 208, 0, 0); }
}

@media (max-width: 1023px) {
  .lg-jack__track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg-jack__grand strong {
    font-size: clamp(26px, 4vw, 32px);
  }
}

@media (max-width: 767px) {
  #lg-jack {
    padding: 8px 0 4px;
  }

  .lg-jack__head {
    align-items: center;
    margin-bottom: 12px;
  }

  .lg-jack__title h2 {
    font-size: 18px;
  }

  .lg-jack__total span {
    font-size: 9px;
  }

  .lg-jack__total strong {
    font-size: 14px;
  }

  .lg-jack__track {
    gap: 10px;
  }

  .lg-jack__card {
    min-height: 214px;
    padding: 12px 12px 11px;
    border-radius: 16px;
  }

  .lg-jack__top {
    gap: 6px;
  }

  .lg-jack__brand {
    min-height: 22px;
  }

  .lg-jack__card[data-pool="pragmatic"] .lg-jack__brand img { height: 24px; }
  .lg-jack__card[data-pool="egtdigital"] .lg-jack__brand img { height: 24px; }
  .lg-jack__card[data-pool="playson"] .lg-jack__brand img { height: 12px; }
  .lg-jack__card[data-pool="amusnet"] .lg-jack__brand img { height: 13px; }


  .lg-jack__label {
    margin-bottom: 5px;
    font-size: 8.5px;
    letter-spacing: 0.18em;
  }

  .lg-jack__grand strong {
    font-size: clamp(17px, 5.2vw, 22px);
    letter-spacing: -0.04em;
  }

  .lg-jack__tiers {
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
  }

  .lg-jack__tiers li {
    gap: 8px;
  }

  .lg-jack__tiers span {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .lg-jack__tiers strong {
    font-size: 16px;
    letter-spacing: -0.03em;
  }

  .lg-jack__burst {
    top: 58%;
  }
}

@media (hover: none) {
  .lg-jack__card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-jack *,
  .lg-jack *::before,
  .lg-jack *::after,
  .lg-jack__beam::before {
    animation: none !important;
    transition: none !important;
  }

  .lg-jack__dust {
    display: none;
  }
}

/* Lobby filters (Lobi / Yeni Çıkanlar / …). One height, one radius.
   The selected chip used to be forced to 36px while the rest stayed 42px. */
main div.relative.flex.items-center.overflow-hidden:has(> div.overflow-x-auto > div.flex.gap-2.pb-1) {
  align-items: center;
  margin-top: 2px;
}

main div.relative.flex.items-center.overflow-hidden:has(> div.overflow-x-auto > div.flex.gap-2.pb-1) > button {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid var(--hair) !important;
  border-radius: 999px !important;
  background: var(--s2) !important;
  background-image: none !important;
  color: var(--dim) !important;
  box-shadow: none !important;
}

main div.relative.flex.items-center.overflow-hidden:has(> div.overflow-x-auto > div.flex.gap-2.pb-1) > button:hover {
  color: var(--ink) !important;
  border-color: var(--line) !important;
  background: var(--s3) !important;
}

main div.overflow-x-auto > div.flex.gap-2.pb-1 {
  align-items: center;
  padding-top: 2px;
  padding-bottom: 2px;
}

main div.overflow-x-auto > div.flex.gap-2.pb-1 > button {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 1px solid var(--hair) !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-image: none !important;
  color: var(--ink-2) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

main div.overflow-x-auto > div.flex.gap-2.pb-1 > button svg {
  width: 14px !important;
  height: 14px !important;
  opacity: 0.72;
}

main div.overflow-x-auto > div.flex.gap-2.pb-1 > button:hover {
  color: var(--ink) !important;
  border-color: var(--line) !important;
  background: var(--s3) !important;
}

main div.overflow-x-auto > div.flex.gap-2.pb-1 > button[class*="bg-primary"],
main div.overflow-x-auto > div.flex.gap-2.pb-1 > button[class*="shadow-primary"] {
  background: rgba(255, 208, 0, 0.09) !important;
  color: var(--jonquil) !important;
  border-color: transparent !important;
}

main div.overflow-x-auto > div.flex.gap-2.pb-1 > button[class*="bg-primary"] svg,
main div.overflow-x-auto > div.flex.gap-2.pb-1 > button[class*="shadow-primary"] svg {
  opacity: 1;
  color: var(--jonquil);
}

main div[class*="1e2738"],
main div.group[class*="aspect-[215/160]"] {
  background-color: var(--s2) !important;
}

main div.grid.overflow-y-auto > button span:not([title]),
main div.grid.overflow-y-auto > button p {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Provider opener beside game search, and the sheet it opens below the lg breakpoint. */
main button:has(> svg.lucide-sliders-horizontal) {
  height: 40px !important;
  padding: 0 12px !important;
  gap: 6px !important;
  flex: 0 0 auto;
  border-radius: 12px !important;
  background: var(--s3) !important;
  background-image: none !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: none !important;
  font-size: 12.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.lg-prov {
  display: inline-flex;
  align-items: stretch;
  flex: 0 0 auto;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
}

.lg-prov > button:has(> svg.lucide-sliders-horizontal) {
  min-width: 0;
  max-width: 168px;
  height: 40px !important;
  border-radius: 12px !important;
}

.lg-prov > button:has(> svg.lucide-sliders-horizontal) > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.lg-prov.is-set > button:has(> svg.lucide-sliders-horizontal) {
  border-radius: 12px 0 0 12px !important;
  border-right: 0 !important;
  color: var(--jonquil) !important;
  background: rgba(255, 208, 0, 0.1) !important;
  border-color: rgba(255, 208, 0, 0.35) !important;
}

.lg-prov__x {
  display: grid;
  place-items: center;
  width: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 208, 0, 0.35);
  border-left: 1px solid rgba(255, 208, 0, 0.22);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 208, 0, 0.1);
  color: var(--jonquil);
  cursor: pointer;
}

.lg-prov__x svg {
  width: 14px;
  height: 14px;
}

.lg-prov__x:hover {
  background: rgba(255, 208, 0, 0.18);
  color: var(--ink);
}

@media (max-width: 1023px) {
  .lg-prov > button:has(> svg.lucide-sliders-horizontal) {
    display: inline-flex !important;
  }
}

@media (min-width: 1024px) {
  .lg-prov {
    display: none !important;
  }
}

main button:has(> svg.lucide-sliders-horizontal) > span {
  display: inline !important;
}

main button:has(> svg.lucide-sliders-horizontal):hover {
  color: var(--jonquil) !important;
  border-color: rgba(255, 208, 0, 0.35) !important;
}

.lg-provsearch {
  flex: none;
  padding: 12px 16px 4px;
}

.lg-provsearch input {
  display: block;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--s2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.lg-provsearch input::placeholder {
  color: var(--mute);
  font-weight: 500;
}

.lg-provsearch input:focus {
  outline: none;
  border-color: rgba(255, 208, 0, 0.45);
}

button.lg-prov-miss {
  display: none !important;
}

@media (max-width: 767px) {
  html.lg-has-tabbar div.fixed.bottom-0.rounded-t-2xl {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
}

html:has(div.fixed.bottom-0.rounded-t-2xl) button.fixed[title="Suggest a bet"],
html:has(div.fixed.bottom-0.rounded-t-2xl) button.fixed[title="Bahis Öner"],
html:has(div.fixed.bottom-0.rounded-t-2xl) button.fixed[class*="from-amber-500"],
html:has(div.fixed.bottom-0.rounded-t-2xl) div.fixed[class~="bottom-20"] {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* VPN flag hangs off the tile with top/left -4px; the provider grid scrolls and clips it. */
main div.grid.overflow-y-auto > button > span[title*="VPN"] {
  top: 3px !important;
  left: 3px !important;
  z-index: 2;
  height: auto !important;
  padding: 2px 4px !important;
  font-size: 8px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.06em;
}

main div.grid.overflow-y-auto > button > span[title*="VPN"] svg {
  width: 8px !important;
  height: 8px !important;
  flex: none;
}

/* ---------- Cards, panels, tables ---------- */

main [class~="rounded-xl"][class~="border"],
main [class~="rounded-2xl"][class~="border"] {
  border-color: var(--hair);
}

table thead th {
  color: var(--dim) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 11px;
}

table tbody tr {
  transition: background 0.15s ease;
}

table tbody tr:hover {
  background: rgba(255, 183, 0, 0.04) !important;
}

/* ---------- Dialogs & user panel ---------- */

[role="dialog"] {
  background: var(--s2) !important;
  border: 1px solid var(--hair) !important;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 208, 0, 0.05) !important;
}

[data-radix-dialog-overlay],
div[data-state="open"][class~="fixed"][class~="inset-0"][class*="bg-black"] {
  background: rgba(5, 5, 5, 0.72) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

[role="dialog"] h2 {
  letter-spacing: 0.02em;
}

/* Freespin cards in the user panel open the granted game. */
[role="dialog"] .lg-freespin {
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

[role="dialog"] .lg-freespin:hover {
  border-color: rgba(255, 208, 0, 0.45) !important;
  background: rgba(255, 208, 0, 0.06) !important;
}

[role="dialog"] .lg-freespin:focus-visible {
  outline: 2px solid rgba(255, 208, 0, 0.7);
  outline-offset: 2px;
}

[role="dialog"] .lg-freespin__go {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  height: 36px;
  border-radius: 8px;
  background: var(--gold-sheen);
  color: var(--night);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

[role="dialog"] aside,
[role="dialog"] > div > div:first-child[class~="border-r"] {
  background: var(--s1) !important;
}

[role="dialog"] button[class*="text-[#00C853]"],
[role="dialog"] button[class*="bg-[#00C853]/10"] {
  color: var(--jonquil) !important;
  background: rgba(255, 208, 0, 0.09) !important;
  box-shadow: none !important;
}

[role="dialog"] div[class~="border-l"][class*="ml-"] {
  border-left: 0 !important;
  margin-left: 12px !important;
  padding-left: 12px !important;
}

[role="dialog"] div[class~="border-l"][class*="ml-"] button {
  border-radius: 10px !important;
}

[role="dialog"] div[class~="border-l"][class*="ml-"] button:hover {
  color: var(--ink) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

[role="dialog"] div[style*="linear-gradient(90deg"] {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 208, 0, 0.16), transparent 55%),
    linear-gradient(160deg, #232222 0%, #161515 100%) !important;
  border: 1px solid rgba(255, 208, 0, 0.22) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[role="dialog"] div[class~="rounded-full"][style*="linear-gradient(135deg"] {
  background: var(--gold) !important;
  color: var(--night) !important;
  box-shadow: 0 0 0 2px var(--s1), 0 0 0 3px rgba(255, 208, 0, 0.45);
}

[role="dialog"] [class*="bg-red-"][class*="border"] {
  background: rgba(229, 72, 77, 0.08) !important;
  border-color: rgba(229, 72, 77, 0.35) !important;
}

/* User panel wallet card — same Benjamin green note as the header chip. */
[role="dialog"] div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) {
  position: relative;
  overflow: hidden;
  background: var(--bill-bg) !important;
  border: 1px solid var(--bill-line) !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(233, 243, 223, 0.1);
}

[role="dialog"] div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) span[class~="uppercase"] {
  color: var(--bill-dim) !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  font-size: 10px !important;
}

[role="dialog"] div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) > div[class~="text-3xl"] {
  color: var(--bill-ink) !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

[role="dialog"] div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) button[class~="flex-1"]:first-child {
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
}

[role="dialog"] div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) button[class~="flex-1"]:last-child {
  background: rgba(6, 26, 17, 0.55) !important;
  color: var(--bill-ink) !important;
  box-shadow: inset 0 0 0 1px var(--bill-line);
}

/* ---------- User panel ---------- */

[role="dialog"]:has(> div[class*="md:w-[260px]"]) {
  gap: 0 !important;
  background: var(--s1) !important;
  border: 1px solid rgba(255, 208, 0, 0.14) !important;
  border-radius: 0 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 160, 0.28),
    0 48px 120px rgba(0, 0, 0, 0.72) !important;
}

@media (min-width: 768px) {
  [role="dialog"]:has(> div[class*="md:w-[260px]"]) {
    border-radius: 20px !important;
  }

  [role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] {
    width: 292px !important;
    flex: 0 0 292px !important;
  }
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] {
  background:
    radial-gradient(120% 42% at 0% 0%, rgba(255, 208, 0, 0.06), transparent 58%),
    var(--s1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  overflow: hidden !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:hidden"] {
  background: var(--s1) !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  padding: 14px 16px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div:first-child {
  padding: 14px 16px 10px !important;
  border-bottom-color: transparent !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.rounded-full[style*="linear-gradient(135deg"] {
  width: 44px !important;
  height: 44px !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow:
    0 0 0 1px rgba(255, 208, 0, 0.55),
    0 10px 22px rgba(255, 183, 0, 0.18) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) span.font-semibold.truncate {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  color: var(--ink) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div:first-child span.text-xs:not([style]) {
  color: var(--mute) !important;
  font-size: 11px !important;
  font-weight: 600;
  letter-spacing: 0.14em;
  font-variant-numeric: tabular-nums;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.items-center.gap-1.mt-2 {
  width: fit-content;
  margin-top: 10px !important;
  padding: 4px 9px 4px 7px;
  border-radius: 999px;
  background: rgba(255, 208, 0, 0.1);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.items-center.gap-1.mt-2 span {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) {
  border-radius: 16px !important;
  padding: 14px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) > div[class~="text-3xl"] {
  font-size: 24px !important;
  font-weight: 800 !important;
  margin-bottom: 8px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class~="rounded-lg"][style*="linear-gradient"]:has(> div[class~="text-3xl"]) button[class~="flex-1"] {
  height: 36px !important;
  border-radius: 10px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex-1.overflow-y-auto.px-2 {
  min-height: 0 !important;
  padding: 6px 10px 10px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex-1.overflow-y-auto.px-2 > div {
  margin-bottom: 14px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex-1.overflow-y-auto.px-2 > div > button {
  color: var(--mute) !important;
  padding: 10px 10px 6px !important;
  border-radius: 8px !important;
  background: transparent !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex-1.overflow-y-auto.px-2 > div > button:hover {
  color: var(--dim) !important;
  background: transparent !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex-1.overflow-y-auto.px-2 > div > button span {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex-1.overflow-y-auto.px-2 > div > button svg {
  width: 15px;
  height: 15px;
  color: var(--mute);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="border-l"][class*="ml-"] {
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-2 > button,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.overflow-x-auto button {
  min-height: 44px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="border-l"] button {
  color: var(--ink-2) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  min-height: 44px;
  padding: 9px 12px !important;
  border-radius: 10px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="border-l"] button:hover {
  color: var(--ink) !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="border-l"] button[class*="00C853"],
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="border-l"] button[class*="bg-[#00C853]"] {
  color: var(--jonquil) !important;
  background: rgba(255, 208, 0, 0.1) !important;
  font-weight: 700 !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  background: var(--s1) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t:has(input) {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  height: 46px !important;
  border-radius: 10px !important;
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--ink) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t input::placeholder {
  color: var(--mute) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t:has(input) button {
  flex: 0 0 auto;
  height: 46px !important;
  border-radius: 10px !important;
  padding: 0 14px !important;
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t:last-child {
  border-color: rgba(255, 255, 255, 0.06) !important;
  padding: 8px 10px 12px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t:last-child button {
  color: var(--dim) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em;
  padding: 10px 10px !important;
  border-radius: 10px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t:last-child button:hover {
  color: var(--jonquil) !important;
  background: rgba(255, 208, 0, 0.06) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] {
  background:
    radial-gradient(80% 40% at 100% 0%, rgba(255, 208, 0, 0.05), transparent 60%),
    #101010 !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div:first-child,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div.md\:hidden {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
  background: transparent !important;
}

@media (min-width: 768px) {
  [role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div:first-child {
    padding: 20px 32px !important;
  }
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] h2 {
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  color: var(--ink) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div:first-child button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--dim) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div:first-child button:hover {
  color: var(--ink) !important;
  background: rgba(255, 255, 255, 0.05);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div.flex-1 {
  padding: 28px 32px 36px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) label {
  color: var(--dim) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  margin-bottom: 8px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] input:where(:not([type="checkbox"]):not([type="radio"])) {
  height: var(--field-h) !important;
  background: var(--field-bg) !important;
  border: 1px solid var(--field-line) !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] input:not([class*="pl-"]):not([type="checkbox"]) {
  padding-left: 14px !important;
  padding-right: 14px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] input::placeholder {
  color: var(--mute) !important;
  font-weight: 500;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] input:focus,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] input:focus-visible {
  outline: none !important;
  background-color: var(--field-bg-focus) !important;
  border-color: rgba(255, 208, 0, 0.72) !important;
  box-shadow: var(--field-ring), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] input:disabled,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] input[readonly] {
  opacity: 1 !important;
  color: var(--ink-2) !important;
  background: #10100f !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

/* Bet-history toolbar: id field, range select, and Göster share one height. */
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10):has(> button.h-10) {
  align-items: center;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) select.h-10,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) input,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) > button.h-10 {
  height: var(--field-h) !important;
  min-height: var(--field-h) !important;
  border-radius: var(--r-sm) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) select.h-10 {
  min-width: 148px !important;
  padding: 0 36px 0 14px !important;
  background-color: var(--field-bg) !important;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239c9a96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
  border: 1px solid var(--field-line) !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  appearance: none;
  -webkit-appearance: none;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) select.h-10:focus {
  outline: none;
  border-color: rgba(255, 208, 0, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(255, 208, 0, 0.12);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) > button.h-10 {
  padding: 0 22px !important;
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) > button.h-10:hover {
  filter: brightness(1.05);
}

@media (max-width: 767px) {
  [role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10):has(> button.h-10) {
    align-items: stretch;
  }

  [role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.gap-3:has(> select.h-10) > button.h-10 {
    width: 100%;
  }
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="bg-[#222]"][class*="border"] {
  min-height: var(--field-h);
  background: #10100f !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  color: var(--ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.grid.gap-4 {
  gap: 18px 16px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="bg-[#4a1c1c]"] {
  background: rgba(255, 183, 0, 0.06) !important;
  border: 1px solid rgba(255, 208, 0, 0.18) !important;
  border-radius: 14px !important;
  text-align: left !important;
  padding: 14px 16px !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="bg-[#4a1c1c]"] p {
  color: var(--ink-2) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.45;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.space-y-6 > button[class*="inline-flex"] {
  height: 50px !important;
  margin-top: 4px !important;
  border-radius: 14px !important;
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 28px rgba(255, 183, 0, 0.16) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.space-y-6 > button[class*="inline-flex"]:hover {
  filter: brightness(1.04);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) button.h-9.rounded-md {
  height: 34px !important;
  border-radius: 999px !important;
  padding: 0 14px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #161515 !important;
  color: var(--dim) !important;
  box-shadow: none !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) button.h-9[class*="bg-[#f4c430]"] {
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  border-color: transparent !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="min-h-[100px]"] {
  background: #161515 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  min-height: 124px !important;
  transition: border-color 0.2s ease, transform 0.25s var(--ease);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="min-h-[100px]"]:hover {
  border-color: rgba(255, 208, 0, 0.4) !important;
  transform: translateY(-2px);
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="min-h-[100px]"] button {
  height: 32px !important;
  width: 100%;
  border-radius: 10px !important;
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

@media (max-width: 767px) {
  [role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div.flex-1 {
    padding: 20px 16px 28px !important;
  }

  [role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="border-l"] button {
    min-height: 44px;
  }
}

/* ---------- Auth modal ---------- */

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) {
  background: transparent !important;
  border: 1px solid rgba(255, 208, 0, 0.16) !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 228, 160, 0.28),
    0 50px 120px rgba(0, 0, 0, 0.75) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) > div[class*="md:grid-cols-2"] {
  background: #090909;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) > div > div.absolute.inset-0.opacity-80 {
  opacity: 1 !important;
  background:
    radial-gradient(70% 55% at 12% 0%, rgba(255, 208, 0, 0.2), transparent 62%),
    radial-gradient(40% 36% at 0% 100%, rgba(255, 183, 0, 0.08), transparent 70%),
    #090909 !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) > div > div.absolute.rounded-full {
  display: none !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) > div > div.absolute.bg-\[\#0b0617\] {
  background: #090909 !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.relative.hidden.md\:flex {
  border-right: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-left: 0 !important;
}

/* Logo file has ~22.6% empty space on the left; shift so the mark lines up with the headline. */
[role="dialog"]:has(> div[class*="md:grid-cols-2"]) img[src*="lagoon_logo"] {
  height: 48px !important;
  width: auto !important;
  max-width: none !important;
  transform: translateX(-12%);
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.relative.flex.flex-col[class*="backdrop-blur"] {
  background: #121110 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-left: 0 !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) h2.text-3xl {
  font-size: 38px !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.02 !important;
  color: var(--ink) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) h2 span {
  background-image: linear-gradient(100deg, #fff4c2 0%, #ffd000 46%, #ffb700 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.relative.hidden > div:first-child > p {
  color: var(--dim) !important;
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  max-width: 32ch;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.items-start.gap-3 > div.rounded-lg {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: rgba(255, 208, 0, 0.1) !important;
  border: 1px solid rgba(255, 208, 0, 0.2) !important;
  color: var(--jonquil) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.items-start p.text-sm {
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.items-start p.text-xs {
  color: var(--mute) !important;
  font-size: 12.5px !important;
  line-height: 1.45 !important;
  margin-top: 2px !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div[class*="backdrop-blur-md"] {
  background: rgba(255, 208, 0, 0.06) !important;
  border: 1px solid rgba(255, 208, 0, 0.16) !important;
  border-radius: 16px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div[class*="backdrop-blur-md"] span {
  color: var(--jonquil) !important;
  letter-spacing: 0.18em !important;
  font-size: 10px !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div[class*="backdrop-blur-md"] p.text-sm {
  color: var(--ink) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div[class*="backdrop-blur-md"] p.text-xs {
  color: var(--dim) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.p-1.rounded-xl {
  background: #1a1918 !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 14px !important;
  padding: 4px !important;
  margin-bottom: 28px !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.p-1.rounded-xl button {
  height: 44px !important;
  border-radius: 10px !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  box-shadow: none !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.p-1.rounded-xl button[style*="background"] {
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.p-1.rounded-xl button:not([style*="background"]) {
  background: transparent !important;
  color: var(--dim) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex.p-1.rounded-xl button:not([style*="background"]):hover {
  color: var(--ink) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) button.absolute {
  width: 36px !important;
  height: 36px !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--dim) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) button.absolute:hover {
  color: var(--ink) !important;
  border-color: rgba(255, 208, 0, 0.4);
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form {
  justify-content: flex-start !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form > div.mb-1 {
  margin-bottom: 18px !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form h3 {
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--ink) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form h3 + p,
[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form label {
  color: var(--dim) !important;
  font-size: 13.5px !important;
  letter-spacing: 0.01em;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form input:where(:not([type="checkbox"])) {
  height: var(--field-h) !important;
  min-height: var(--field-h) !important;
  background: var(--field-bg) !important;
  border: 1px solid var(--field-line) !important;
  border-radius: var(--r-sm) !important;
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form input:not([class*="pl-"]):not([type="checkbox"]) {
  padding-left: 16px !important;
  padding-right: 16px !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form input::placeholder {
  color: var(--mute) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form input:focus,
[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form input:focus-visible {
  outline: none !important;
  background-color: var(--field-bg-focus) !important;
  border-color: rgba(255, 208, 0, 0.72) !important;
  box-shadow: var(--field-ring), inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  min-height: 18px !important;
  accent-color: transparent;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form button[class*="hover:text-white"] {
  color: var(--jonquil) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form > button {
  height: 50px !important;
  margin-top: 6px !important;
  border-radius: 14px !important;
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 14px 30px rgba(255, 183, 0, 0.2) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) form > button:hover {
  filter: brightness(1.04);
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex-1.flex.flex-col > div.mt-6 {
  margin-top: auto !important;
  padding-top: 18px;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.mt-6 button {
  color: var(--mute) !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.mt-6 button:hover {
  color: var(--jonquil) !important;
}

@media (max-width: 767px) {
  [role="dialog"]:has(> div[class*="md:grid-cols-2"]) {
    border-radius: 20px !important;
  }

  [role="dialog"]:has(> div[class*="md:grid-cols-2"]) > div > div.absolute.inset-0.opacity-80 {
    background: #101010 !important;
  }

  [role="dialog"]:has(> div[class*="md:grid-cols-2"]) div.flex-1.p-8 {
    padding: 28px 20px 24px !important;
  }

  [role="dialog"]:has(> div[class*="md:grid-cols-2"]) h2.text-3xl,
  [role="dialog"]:has(> div[class*="md:grid-cols-2"]) form h3 {
    font-size: 28px !important;
  }
}

/* ---------- Toasts ---------- */

[data-sonner-toast] {
  background: var(--s3) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--lift) !important;
}

/* ---------- Footer ---------- */

footer {
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(255, 183, 0, 0.05), transparent 70%),
    #0b0b0b !important;
  border-top: 1px solid var(--hair) !important;
  color: var(--dim);
}

footer .container,
main > .container {
  max-width: 1600px !important;
  padding-inline: 24px !important;
}

@media (max-width: 767px) {
  footer .container,
  main > .container {
    padding-inline: 16px !important;
  }
}

footer h4,
footer h3 {
  color: var(--ink) !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
}

footer a,
footer li button {
  color: var(--dim) !important;
  transition: color 0.18s ease, transform 0.18s var(--ease);
}

footer a:hover,
footer li button:hover {
  color: var(--jonquil) !important;
}

footer li a:hover,
footer li button:hover {
  transform: translateX(2px);
}

footer [class*="border-t"] {
  border-color: var(--line) !important;
}

footer div[class~="w-12"][class~="h-12"][class~="rounded-xl"] {
  background: linear-gradient(160deg, #2a2929, #1a1919) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.16), 0 8px 20px rgba(0, 0, 0, 0.35);
}

footer div[class~="w-12"][class~="h-12"][class~="rounded-xl"] svg {
  color: var(--jonquil) !important;
}

footer a[href*="t.me"],
footer a[href*="instagram"],
footer a[href*="twitter"],
footer a[href*="x.com"],
footer a[href*="facebook"],
footer a[href*="youtube"],
footer a[href*="whatsapp"],
footer a[href*="wa.me"],
footer a[href*="discord"],
footer a[href*="tiktok"] {
  background: var(--s4) !important;
  color: var(--jonquil) !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.18);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

footer a[href*="t.me"]:hover,
footer a[href*="instagram"]:hover,
footer a[href*="twitter"]:hover,
footer a[href*="x.com"]:hover,
footer a[href*="facebook"]:hover,
footer a[href*="youtube"]:hover,
footer a[href*="whatsapp"]:hover,
footer a[href*="wa.me"]:hover,
footer a[href*="discord"]:hover,
footer a[href*="tiktok"]:hover {
  background: var(--gold) !important;
  color: var(--night) !important;
  transform: translateY(-2px);
}

/* Social row. Brand marks, not the platform's stroke icons. */

.lg-social__label {
  color: var(--mute) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
}

.lg-social {
  display: flex;
  align-items: center;
  gap: 2px;
}

.lg-social a {
  width: 40px;
  height: 40px;
  display: grid !important;
  place-items: center;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  line-height: 0;
  transition: transform 0.22s var(--ease);
}

.lg-social a:hover {
  background: transparent !important;
  color: inherit !important;
  transform: translateY(-3px);
}

.lg-social a:focus-visible {
  outline: 2px solid var(--jonquil);
  outline-offset: 2px;
}

.lg-social svg {
  width: 30px;
  height: 30px;
  display: block;
  overflow: visible;
}

.lg-social a[data-net="youtube"] svg {
  width: 38px;
  height: 38px;
}

.lg-social a[data-net="x"] svg {
  width: 22px;
  height: 22px;
}

@media (hover: none) {
  .lg-social a:hover {
    transform: none;
  }
}

/* Deposit methods. A single looping row sitting on the copyright band. */

.lg-pays {
  overflow: hidden;
  padding: 14px 0 10px;
  border-top: 1px solid var(--hair);
}

.lg-pays h4 {
  display: none !important;
}

.lg-pays__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 64px, #000 calc(100% - 64px), transparent);
}

.lg-pays__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: lg-pay-run 32s linear infinite;
}

.lg-pays:hover .lg-pays__track {
  animation-play-state: paused;
}

.lg-pays__item {
  flex: 0 0 auto;
  margin-right: 12px;
}

.lg-pays__item img {
  display: block;
  height: 34px;
  width: auto;
  border-radius: 6px !important;
  user-select: none;
  -webkit-user-drag: none;
}

@keyframes lg-pay-run {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 767px) {
  .lg-pays {
    padding: 12px 0 8px;
  }

  .lg-pays__item {
    margin-right: 8px;
  }

  .lg-pays__item img {
    height: 28px;
  }

  .lg-pays__track {
    animation-duration: 36s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-pays__track {
    animation: none;
  }

  .lg-pays__viewport {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Language menu. Lives in the header; the dropdown is portaled to body so the header's backdrop-filter does not trap it. */
.lg-lang {
  position: relative;
  display: inline-flex;
  flex: none;
}

.lg-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin: 0;
  padding: 0 8px 0 8px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff !important;
  font-family: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.lg-lang__flag {
  display: flex;
  flex: none;
}

.lg-flag {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.lg-lang__btn svg.lg-lang__chev {
  width: 12px;
  height: 12px;
  flex: none;
  opacity: 0.55;
  transition: transform 0.2s var(--ease);
}

.lg-lang.is-open .lg-lang__chev {
  transform: rotate(180deg);
  opacity: 1;
}

.lg-lang__btn:hover,
.lg-lang.is-open .lg-lang__btn {
  color: var(--jonquil) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.38);
}

@media (max-width: 767px) {
  .lg-lang__btn {
    height: 28px;
    padding: 0 6px;
    gap: 5px;
  }

  /* Social icons on the left, language pill on the right. */
  footer .lg-social-row {
    width: 100%;
    justify-content: space-between;
  }

  footer .lg-social-row > .lg-social__label {
    display: none;
  }

  .lg-lang.is-footer {
    margin-left: auto;
  }

  .lg-lang.is-footer .lg-lang__btn {
    height: 36px;
    padding: 0 12px 0 10px;
    gap: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }
}

.lg-lang__menu {
  display: none;
  position: fixed;
  z-index: 80;
  width: 228px;
  margin: 0;
  padding: 8px;
  background:
    linear-gradient(180deg, rgba(255, 208, 0, 0.07), transparent 48px),
    #0b0b0b;
  border: 1px solid rgba(255, 208, 0, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lg-lang__menu.is-open {
  display: flex;
  flex-direction: column;
  animation: lg-lang-in 0.22s var(--ease) both;
}

@keyframes lg-lang-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.lg-lang__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 8px 6px;
  padding: 6px 2px 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--mute);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lg-lang__gem {
  width: 5px;
  height: 5px;
  flex: none;
  background: var(--jonquil);
  transform: rotate(45deg);
}

.lg-lang__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lg-lang__opt {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 0 10px 0 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--dim) !important;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-align: start;
  cursor: pointer;
  transform: none !important;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}

.lg-lang__opt:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink) !important;
}

.lg-lang__opt.is-active {
  background: rgba(255, 208, 0, 0.09);
  color: var(--jonquil) !important;
}

.lg-lang__short {
  display: grid;
  place-items: center;
  width: 32px;
  height: 22px;
  flex: none;
  border-radius: 7px;
  background: #161515;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--mute);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.lg-lang__opt.is-active .lg-lang__short {
  background: rgba(255, 208, 0, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.32);
  color: var(--jonquil);
}

.lg-lang__name {
  flex: 1;
  min-width: 0;
  text-align: start;
}

.lg-lang__mark {
  width: 6px;
  height: 6px;
  flex: none;
  margin-left: auto;
  background: var(--jonquil);
  transform: rotate(45deg);
  opacity: 0;
}

.lg-lang__opt.is-active .lg-lang__mark {
  opacity: 1;
}

/* ---------- Floating actions ---------- */

/* "Bahis Öner" — same gold pill as the chat bubble. Night text stays night on hover
   (the platform gradient + black label, and gold-on-gold remaps, both fail contrast). */
body > div > button.fixed[title="Suggest a bet"],
body > div > button.fixed[title="Bahis Öner"],
button.fixed[title="Suggest a bet"],
button.fixed[title="Bahis Öner"],
button.fixed[class*="from-amber-500"] {
  z-index: 40 !important;
  min-height: 44px !important;
  padding: 0 16px !important;
  color: var(--night) !important;
  background: var(--gold) !important;
  background-image: var(--gold) !important;
  border: 0 !important;
  box-shadow: 0 10px 28px rgba(255, 183, 0, 0.28) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

button.fixed[title="Suggest a bet"] svg,
button.fixed[title="Bahis Öner"] svg,
button.fixed[class*="from-amber-500"] svg {
  color: var(--night) !important;
}

button.fixed[title="Suggest a bet"]:hover,
button.fixed[title="Bahis Öner"]:hover,
button.fixed[class*="from-amber-500"]:hover,
button.fixed[title="Suggest a bet"]:active,
button.fixed[title="Bahis Öner"]:active,
button.fixed[class*="from-amber-500"]:active {
  color: var(--night) !important;
}

@media (hover: hover) and (pointer: fine) {
  button.fixed[title="Suggest a bet"]:hover,
  button.fixed[title="Bahis Öner"]:hover,
  button.fixed[class*="from-amber-500"]:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
  }

  button.fixed[title="Suggest a bet"]:active,
  button.fixed[title="Bahis Öner"]:active,
  button.fixed[class*="from-amber-500"]:active {
    filter: none;
    transform: translateY(0) scale(0.98);
  }
}

/* Game-page "Demo Bakiye ile Oyna". Rest is a quiet gold outline; hover fills gold
   with night text. The palette remap paints hover as gold text on a gold fill. */
button[aria-label="Demo bakiye ile oyna"][class*="amber"],
button[aria-label="Play with demo balance"][class*="amber"] {
  background: transparent !important;
  background-image: none !important;
  color: var(--jonquil) !important;
  border-color: rgba(255, 208, 0, 0.4) !important;
  box-shadow: none !important;
}

button[aria-label="Demo bakiye ile oyna"][class*="amber"] svg,
button[aria-label="Play with demo balance"][class*="amber"] svg {
  color: var(--jonquil) !important;
}

button[aria-label="Demo bakiye ile oyna"][class*="amber"]:hover,
button[aria-label="Play with demo balance"][class*="amber"]:hover {
  background: var(--gold) !important;
  background-image: var(--gold) !important;
  color: var(--night) !important;
  border-color: transparent !important;
}

button[aria-label="Demo bakiye ile oyna"][class*="amber"]:hover svg,
button[aria-label="Play with demo balance"][class*="amber"]:hover svg {
  color: var(--night) !important;
}

div.fixed[class~="bottom-20"][class~="z-50"] {
  z-index: 40 !important;
}

div.fixed[class~="bottom-20"] > button[class~="rounded-full"] {
  position: relative;
  color: var(--night) !important;
  background: var(--gold) !important;
  background-image: var(--gold) !important;
  border: 0 !important;
  box-shadow: 0 12px 32px rgba(255, 183, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

div.fixed[class~="bottom-20"] > button[class~="rounded-full"] svg {
  color: var(--night) !important;
}

div.fixed[class~="bottom-20"] > button[class~="rounded-full"]::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(255, 208, 0, 0.45);
  animation: lg-ping 2.8s var(--ease) infinite;
  pointer-events: none;
}

@keyframes lg-ping {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  80%,
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

/* ---------- Mobile tab bar (injected by custom.js) ---------- */

#lg-tabbar {
  display: none;
}

@media (max-width: 767px) {
  #lg-tabbar {
    --tab-h: 64px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    height: calc(var(--tab-h) + 10px + env(safe-area-inset-bottom));
    padding: 0 4px calc(10px + env(safe-area-inset-bottom));
    overflow: visible;
    color: var(--dim);
    background: #0c0c0c;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: transform 0.3s var(--ease), opacity 0.3s ease;
  }

  #lg-tabbar::before {
    content: none;
  }

  #lg-tabbar.is-hidden {
    transform: translateY(110%);
    opacity: 0;
    pointer-events: none;
  }

  #lg-tabbar .lg-tab {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: var(--tab-h);
    color: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease;
  }

  #lg-tabbar .lg-tab__icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 52px;
    height: 30px;
    border-radius: 999px;
    transition: transform 0.3s var(--ease);
  }

  #lg-tabbar .lg-tab__icon svg {
    position: relative;
    z-index: 1;
    width: 22px;
    height: 22px;
  }

  #lg-tabbar .lg-tab__label {
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    transition: color 0.2s ease, opacity 0.2s ease;
  }

  #lg-tabbar .lg-tab:not(.lg-tab--primary) .lg-tab__icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.7;
    transition: stroke-width 0.2s ease, transform 0.35s var(--ease);
  }

  #lg-tabbar .lg-tab:not(.lg-tab--primary) .lg-tab__icon::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 208, 0, 0.17), rgba(255, 183, 0, 0.07));
    box-shadow:
      inset 0 0 0 1px rgba(255, 208, 0, 0.16),
      inset 0 1px 0 rgba(255, 236, 160, 0.14),
      0 0 0 transparent;
    opacity: 0;
    transform: scaleX(0.45);
    transition: opacity 0.2s ease, transform 0.4s var(--ease);
  }

  #lg-tabbar .lg-tab:active .lg-tab__icon {
    transform: scale(0.92);
  }

  #lg-tabbar .lg-tab.is-active {
    color: var(--jonquil);
  }

  #lg-tabbar .lg-tab.is-active .lg-tab__icon::before {
    opacity: 1;
    transform: none;
  }

  #lg-tabbar .lg-tab.is-active:not(.lg-tab--primary) .lg-tab__icon svg {
    stroke-width: 2;
    transform: translateY(-0.5px);
  }

  #lg-tabbar .lg-tab.is-active .lg-tab__label {
    color: #ffe27a;
  }

  #lg-tabbar .lg-tab--deposit .lg-tab__icon svg {
    color: var(--bill);
  }

  #lg-tabbar .lg-tab--deposit .lg-tab__icon::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 1px;
    left: calc(50% + 5px);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background:
      linear-gradient(#0e2d1f, #0e2d1f) center / 7px 1.6px no-repeat,
      linear-gradient(#0e2d1f, #0e2d1f) center / 1.6px 7px no-repeat,
      linear-gradient(160deg, #b5dc95, var(--bill) 55%, #5f9644);
    box-shadow: 0 0 0 2px #0b0b0b, 0 2px 8px rgba(133, 187, 101, 0.45);
  }

  #lg-tabbar .lg-tab--deposit .lg-tab__icon::before {
    background: linear-gradient(180deg, rgba(133, 187, 101, 0.2), rgba(133, 187, 101, 0.08));
    box-shadow: inset 0 0 0 1px var(--bill-line), inset 0 1px 0 rgba(233, 243, 223, 0.12);
  }

  #lg-tabbar .lg-tab--deposit:active .lg-tab__icon::before {
    opacity: 1;
    transform: none;
  }

  #lg-tabbar .lg-tab__pulse {
    position: absolute;
    top: 13px;
    left: calc(50% + 8px);
    z-index: 3;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--jonquil);
    box-shadow: 0 0 8px rgba(255, 208, 0, 0.7);
  }

  #lg-tabbar .lg-tab__pulse::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--jonquil);
    animation: lg-live 1.8s ease-out infinite;
  }

  @keyframes lg-live {
    0% {
      transform: scale(1);
      opacity: 0.7;
    }
    100% {
      transform: scale(2.8);
      opacity: 0;
    }
  }

  #lg-tabbar .lg-tab--primary {
    color: var(--jonquil);
  }

  #lg-tabbar .lg-tab--primary .lg-tab__icon {
    width: 48px;
    height: 48px;
    margin-top: -30px;
    margin-bottom: 6px;
    border-radius: 15px;
    color: var(--night);
    background: var(--gold-sheen);
    box-shadow:
      0 0 0 4px #0c0c0c,
      0 8px 16px rgba(0, 0, 0, 0.45);
    transform: rotate(45deg);
  }

  #lg-tabbar .lg-tab--primary .lg-tab__icon svg {
    width: 24px;
    height: 24px;
    transform: rotate(-45deg);
  }

  #lg-tabbar .lg-tab .lg-navico {
    color: #ffb700;
  }

  #lg-tabbar .lg-tab.is-active .lg-navico {
    color: #ffe27a;
  }

  #lg-tabbar .lg-tab--primary .lg-tab__icon .lg-navico {
    width: 22px;
    height: 22px;
    color: #0f0f0f;
  }

  #lg-tabbar .lg-tab--primary:active .lg-tab__icon {
    transform: rotate(45deg) scale(0.92);
  }

  #lg-tabbar .lg-tab--primary.is-active .lg-tab__icon {
    background: var(--gold-sheen);
    box-shadow:
      0 0 0 4px #0c0c0c,
      0 8px 16px rgba(0, 0, 0, 0.45);
  }

  #lg-tabbar .lg-tab--primary .lg-tab__label {
    margin-top: 2px;
    font-weight: 800;
  }

  html.lg-has-tabbar body > div[class~="overflow-y-auto"] {
    padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important;
  }

  /* The tab bar owns navigation on phones; the header hamburger would be a duplicate. */
  html.lg-has-tabbar header.header-safe-top .container > .flex > div:last-child > button[class~="lg:hidden"] {
    display: none !important;
  }

  #lg-sheet-backdrop {
    position: fixed;
    inset: 0;
    z-index: 47;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  #lg-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    z-index: 48;
    max-height: calc(100dvh - 64px - 64px - env(safe-area-inset-bottom) - 24px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 10px 16px 28px;
    background:
      radial-gradient(420px 200px at 50% 0%, rgba(255, 183, 0, 0.07), transparent 70%),
      #121111 !important;
    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 20px 20px 0 0 !important;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.6) !important;
    transform: translateY(calc(100% + 80px));
    visibility: hidden;
    transition: transform 0.38s var(--ease), visibility 0s linear 0.38s;
  }

  html.lg-sheet-open #lg-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  html.lg-sheet-open #lg-sheet {
    transform: none;
    visibility: visible;
    transition: transform 0.38s var(--ease), visibility 0s;
  }

  html.lg-sheet-open body > div[class~="overflow-y-auto"] {
    overflow: hidden !important;
  }

  #lg-sheet svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
  }

  #lg-sheet .lg-sheet__grip {
    width: 40px;
    height: 4px;
    margin: 0 auto 14px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.16);
  }

  #lg-sheet .lg-sheet__account {
    padding: 14px;
    border-radius: 18px;
    background: var(--bill-bg);
    border: 1px solid var(--bill-line);
    box-shadow: inset 0 1px 0 rgba(233, 243, 223, 0.1);
  }

  #lg-sheet .lg-sheet__balance {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  #lg-sheet .lg-sheet__user {
    color: var(--bill-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
  }

  #lg-sheet .lg-sheet__balance strong {
    color: var(--bill-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
  }

  #lg-sheet .lg-sheet__cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  #lg-sheet .lg-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    border-radius: 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
  }

  #lg-sheet .lg-btn:active,
  #lg-sheet .lg-tile:active,
  #lg-sheet .lg-row:active {
    transform: scale(0.97);
  }

  #lg-sheet .lg-btn--gold {
    color: var(--night);
    background: var(--gold);
    border-color: transparent;
    box-shadow: none;
  }

  #lg-sheet .lg-sheet__title {
    margin: 20px 4px 10px;
    color: var(--mute);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
  }

  #lg-sheet .lg-sheet__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  #lg-sheet .lg-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 78px;
    padding: 10px 4px;
    border-radius: 16px;
    color: var(--ink-2);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, background 0.2s ease;
  }

  #lg-sheet .lg-tile__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: var(--jonquil);
    background: rgba(255, 208, 0, 0.08);
  }

  #lg-sheet .lg-tile__label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  #lg-sheet .lg-tile.is-active {
    color: var(--night);
    background: var(--gold);
    border-color: transparent;
  }

  #lg-sheet .lg-tile.is-active .lg-tile__icon {
    color: var(--night);
    background: rgba(15, 15, 15, 0.12);
  }

  #lg-sheet .lg-sheet__rows {
    display: grid;
    gap: 2px;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  #lg-sheet .lg-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 14px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  #lg-sheet .lg-row + .lg-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  #lg-sheet .lg-row > span:nth-child(2) {
    flex: 1;
  }

  #lg-sheet .lg-row__icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: var(--jonquil);
    background: rgba(255, 208, 0, 0.08);
  }

  #lg-sheet .lg-row > svg:last-child {
    width: 16px;
    height: 16px;
    color: var(--olive);
  }

  /* The sportsbook bet slip is fixed to the bottom edge of the iframe.
     Leave room above the tab bar so that red bar clears the raised center
     button and the chat bubble. */
  html.lg-has-tabbar main div[style*="height"]:has(> iframe) {
    height: calc(var(--app-vh, 100dvh) - 65px - 64px - 76px - env(safe-area-inset-bottom)) !important;
  }

  html.lg-has-tabbar button.fixed[title="Suggest a bet"],
  html.lg-has-tabbar button.fixed[title="Bahis Öner"],
  html.lg-has-tabbar button.fixed[class*="from-amber-500"],
  html.lg-has-tabbar div.fixed[class~="bottom-20"][class~="z-50"] {
    bottom: calc(80px + env(safe-area-inset-bottom)) !important;
  }

  html.lg-has-tabbar:has(main iframe) button.fixed[title="Suggest a bet"],
  html.lg-has-tabbar:has(main iframe) button.fixed[title="Bahis Öner"],
  html.lg-has-tabbar:has(main iframe) button.fixed[class*="from-amber-500"],
  html.lg-has-tabbar:has(main iframe) div.fixed[class~="bottom-20"][class~="z-50"] {
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
  }

  html.lg-has-tabbar header.header-safe-top div[class~="py-6"] {
    height: calc(100dvh - 64px - 64px - env(safe-area-inset-bottom));
  }
}

/* ---------- Homepage rails (injected by custom.js) ---------- */

.lg-home {
  display: flex;
  flex-direction: column;
  gap: 44px;
  padding: 20px 0 8px;
}

.lg-home + * {
  margin-top: 12px;
}

.lg-rail__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.lg-rail__title h2 {
  margin: 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.lg-rail__title p {
  margin: 5px 0 0;
  color: var(--mute);
  font-size: 12.5px;
  font-weight: 500;
}

.lg-rail__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.lg-rail__all {
  margin-right: 8px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lg-rail__all:hover {
  color: var(--jonquil);
}

.lg-rail__nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--ink-2);
  cursor: pointer;
  background: var(--s2);
  border: 1px solid var(--hair);
  border-radius: 50%;
  transition: color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.lg-rail__nav svg {
  width: 16px;
  height: 16px;
}

.lg-rail__nav:hover:not(:disabled) {
  color: var(--jonquil);
  border-color: var(--gold-line);
}

.lg-rail__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.lg-rail__track {
  --cols: 6;
  --gap: 14px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols));
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.lg-rail__track::-webkit-scrollbar {
  display: none;
}

.lg-game {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  scroll-snap-align: start;
}

a.lg-game:hover {
  transform: none;
}

.lg-game__media {
  position: relative;
  display: block;
  aspect-ratio: 216 / 160;
  overflow: hidden;
  border-radius: 12px;
  background: var(--s3);
  box-shadow: inset 0 0 0 1px var(--hair);
}

.lg-game__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 1.1s var(--ease), filter 0.6s ease !important;
}

.lg-game__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.3s ease;
  pointer-events: none;
}

.lg-game:hover .lg-game__media img {
  transform: scale(1.03);
  box-shadow: none !important;
  filter: brightness(0.72) !important;
}

.lg-game:hover .lg-game__media::after {
  box-shadow: inset 0 0 0 1px rgba(255, 208, 0, 0.55);
}

.lg-game__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  color: var(--night);
  background: var(--gold-sheen);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
}

.lg-game__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.lg-game:hover .lg-game__play {
  opacity: 1;
  transform: none;
}

.lg-game__name {
  margin-top: 10px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lg-game__prov {
  margin-top: 2px;
  color: var(--mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lg-game.is-broken .lg-game__media {
  background:
    radial-gradient(80% 80% at 50% 0%, rgba(255, 208, 0, 0.12), transparent 70%),
    var(--s3);
}

/* Homepage Box Editor rows (lgrail-*) as carousels; the platform would otherwise squeeze 10–12 boxes into one line. */
.lg-box-rail__head {
  margin: 28px 0 0;
}

main div.lg-box-rail {
  --cols: 6;
  --gap: 14px;
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: var(--gap) !important;
  margin-top: 4px !important;
  margin-bottom: 8px !important;
  padding-block: 8px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

main div.lg-box-rail::-webkit-scrollbar {
  display: none;
}

main div.lg-box-rail > a.group[class~="rounded-xl"] {
  position: relative !important;
  flex: 0 0 calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols)) !important;
  /* Safari treats width:auto on a flex item whose only children are absolute as a 0 content size and drops the basis, so the tile collapses and the image never paints. */
  width: calc((100% - var(--gap) * (var(--cols) - 1)) / var(--cols)) !important;
  max-width: none !important;
  height: auto !important;
  scroll-snap-align: start;
  overflow: hidden !important;
  /* The framed squares carry their own gold stroke a few pixels in. A large radius cuts that stroke. */
  border-radius: 10px !important;
  background: #0f0f0f;
}

main div.lg-box-rail > a.group[class~="rounded-xl"]::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* Square tiles for square art. Slot and live posters are 848×1040; a square
   pinned to the bottom was slicing the top of the cover. */
main div.lg-box-rail > a > img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: center center;
}

main div.lg-box-rail:has(> a > img[src*="lgrail-slot"]) > a.group[class~="rounded-xl"]::before,
main div.lg-box-rail:has(> a > img[src*="lgrail-live"]) > a.group[class~="rounded-xl"]::before {
  padding-top: 122.64%;
}

/* Promotions: typographic cards so they don't repeat the slider artwork. */
.lg-promos__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lg-promo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 20px 20px 18px;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(165deg, #1b1a1a 0%, #121111 100%);
  border: 1px solid var(--hair);
  border-radius: 16px;
  transition: border-color 0.3s ease, transform 0.35s var(--ease);
}

.lg-promo::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 88px;
  height: 88px;
  border-top: 1px solid rgba(255, 208, 0, 0.4);
  border-right: 1px solid rgba(255, 208, 0, 0.4);
  border-radius: 0 16px 0 0;
  -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 70%);
  mask-image: linear-gradient(225deg, #000 20%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}

.lg-promo:hover {
  border-color: rgba(255, 208, 0, 0.3);
  transform: translateY(-3px);
}

.lg-promo__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% 60%;
  opacity: 0.9;
  transform: scale(1.02);
  transition: transform 0.8s var(--ease), opacity 0.4s ease;
  pointer-events: none;
}

.lg-promo:has(.lg-promo__art)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.55) 48%, rgba(10, 10, 10, 0) 78%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.55) 0%, rgba(10, 10, 10, 0) 45%);
  pointer-events: none;
}

.lg-promo:has(.lg-promo__art) > span {
  position: relative;
  z-index: 1;
}

.lg-promo:has(.lg-promo__art) .lg-promo__title {
  max-width: 60%;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.lg-promo:hover .lg-promo__art {
  opacity: 1;
  transform: scale(1.07);
}

.lg-promo__type {
  color: var(--dim);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lg-promo__value {
  margin-top: 14px;
  color: var(--jonquil);
  font-size: 52px;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-variant-numeric: lining-nums;
}

.lg-promo__value small {
  margin-right: 2px;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
  vertical-align: 0.62em;
}

.lg-promo__title {
  display: -webkit-box;
  margin-top: 12px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.lg-promo__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--mute);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.lg-promo__more svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.lg-promo:hover .lg-promo__more {
  color: var(--jonquil);
}

.lg-promo:hover .lg-promo__more svg {
  transform: translateX(3px);
}

/* Providers */
.lg-studios__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.lg-studio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 92px;
  padding: 12px;
  color: var(--ink-2);
  text-decoration: none;
  background: var(--s2);
  border: 1px solid var(--hair);
  border-radius: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.lg-studio img {
  max-width: 80%;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(0.92);
  opacity: 0.62;
  transition: opacity 0.25s ease;
}

/* Pragmatic's SVGs carry wide transparent padding. */
.lg-studio img[src*="/pragmatic"] {
  height: 46px;
  max-width: 92%;
  margin-block: -8px;
}

.lg-studio__name {
  display: none;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lg-studio.is-textual .lg-studio__name {
  display: block;
}

.lg-studio__count {
  color: var(--mute);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lg-studio:hover {
  background: var(--s3);
  border-color: var(--gold-line);
}

.lg-studio:hover img {
  opacity: 1;
}

footer .lg-emoji-icon {
  display: inline-grid;
  place-items: center;
  color: var(--jonquil);
}

footer .lg-emoji-icon svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1279px) {
  .lg-rail__track,
  main div.lg-box-rail {
    --cols: 5;
  }

  .lg-studios__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .lg-rail__track,
  main div.lg-box-rail {
    --cols: 4;
  }

  .lg-promos__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .lg-home {
    gap: 32px;
    padding: 12px 0 4px;
  }

  .lg-rail__head {
    margin-bottom: 12px;
  }

  .lg-rail__title h2 {
    font-size: 18px;
  }

  .lg-rail__title p {
    font-size: 12px;
  }

  .lg-rail__nav {
    display: none;
  }

  .lg-rail__all {
    margin-right: 0;
  }

  .lg-rail__track,
  main div.lg-box-rail {
    --cols: 2;
    --gap: 10px;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }

  .lg-box-rail__head {
    margin-top: 20px;
  }

  .lg-promos__grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: 78%;
    gap: 10px;
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .lg-promo {
    min-height: 168px;
    scroll-snap-align: start;
  }

  .lg-promo__value {
    font-size: 44px;
  }

  .lg-studios__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .lg-studio {
    height: 78px;
    padding: 10px 6px;
  }

  .lg-studio img {
    height: 20px;
  }
}

/* ---------- Skeletons ---------- */

[class~="animate-pulse"] {
  background-color: var(--s3) !important;
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  header.header-safe-top nav[class~="lg:flex"] {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body {
    background-attachment: scroll !important;
  }

  a[href*="/casino/game/"],
  a[href*="/casino/game/"] img,
  a[href*="/live-casino/game/"],
  a[href*="/live-casino/game/"] img {
    border-radius: 12px;
  }

  a[href*="/casino/game/"]:hover,
  a[href*="/live-casino/game/"]:hover,
  main a.group[class~="rounded-xl"]:has(> img):hover {
    transform: none;
  }
}

@media (hover: none) {
  main a.group[class~="rounded-xl"]:has(> img)::after {
    display: none;
  }

  main a.group[class~="rounded-xl"]:has(> img):hover {
    transform: none;
  }
}

/* ---------- Major leagues (above the slot banner) ---------- */

.lg-leagues .lg-rail__track {
  --cols: 6;
  --gap: 12px;
}

.lg-league {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 0;
  padding: 18px 12px 14px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  background: var(--s2);
  border: 1px solid var(--hair);
  border-radius: 16px;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.35s var(--ease);
}

.lg-league__mark {
  display: grid;
  place-items: center;
  width: 100%;
  height: 58px;
  margin-bottom: 10px;
}

.lg-league__mark img {
  width: auto;
  max-width: 86%;
  height: 52px;
  object-fit: contain;
  border-radius: 0 !important;
  filter: none !important;
}

.lg-league__name {
  max-width: 100%;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lg-league__region {
  color: var(--mute);
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.3;
}

.lg-league:hover {
  background: var(--s3);
  border-color: var(--gold-line);
  transform: translateY(-3px);
}

@media (max-width: 1279px) {
  .lg-leagues .lg-rail__track {
    --cols: 5;
  }
}

@media (max-width: 1023px) {
  .lg-leagues .lg-rail__track {
    --cols: 4;
  }
}

@media (max-width: 767px) {
  .lg-leagues .lg-rail__track {
    --cols: 2.45;
    --gap: 10px;
  }

  .lg-league {
    padding: 14px 10px 12px;
  }

  .lg-league__mark {
    height: 48px;
    margin-bottom: 8px;
  }

  .lg-league__mark img {
    height: 42px;
  }

  .lg-league__name {
    font-size: 12.5px;
  }
}

@media (hover: none) {
  .lg-league:hover {
    transform: none;
  }
}

/* ---------- Lucky win replays ---------- */

.lg-wins .lg-rail__track {
  --cols: 3.15;
  --gap: 16px;
}

.lg-win {
  display: flex;
  flex-direction: column;
  min-width: 0;
  scroll-snap-align: start;
  overflow: hidden;
  background: var(--s2);
  border: 1px solid var(--hair);
  border-radius: 16px;
  transition: border-color 0.25s ease, transform 0.35s var(--ease);
}

.lg-win__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  overflow: hidden;
  color: inherit;
  cursor: pointer;
  background: var(--s3);
  border: 0;
  border-radius: 0;
}

.lg-win__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 0.8s var(--ease), filter 0.4s ease !important;
}

.lg-win__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  color: var(--night);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--gold-sheen);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.lg-win__play {
  position: absolute;
  top: 42%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  color: var(--night);
  background: var(--gold-sheen);
  border-radius: 50%;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  opacity: 1;
  transform: none;
  transition: transform 0.35s var(--ease);
}

.lg-win__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.lg-win__stats {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 28px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(8, 8, 8, 0.92));
}

.lg-win__stats span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lg-win__stats small {
  color: var(--dim);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.lg-win__stats b {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lg-win__stats span:last-child b {
  color: var(--jonquil);
}

.lg-win__info {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
}

.lg-win__icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  background: var(--s3);
  border-radius: 10px;
}

.lg-win__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lg-win__text strong,
.lg-win__text em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.lg-win__text strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  font-style: normal;
}

.lg-win__text em {
  margin-top: 2px;
  color: var(--mute);
  font-size: 11px;
  font-style: normal;
  font-weight: 500;
}

.lg-win__go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  color: var(--night);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  background: var(--gold-sheen);
  border-radius: 999px;
}

.lg-win:hover {
  border-color: var(--gold-line);
  transform: translateY(-3px);
}

.lg-win:hover .lg-win__media img {
  transform: scale(1.04);
  filter: brightness(0.72) !important;
}

.lg-win:hover .lg-win__play,
.lg-win__media:focus-visible .lg-win__play {
  transform: scale(1.06);
}

#lg-replay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}

#lg-replay[hidden] {
  display: none !important;
}

#lg-replay .lg-replay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 5, 0.72);
}

#lg-replay .lg-replay__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(960px, calc(100vw - 48px), calc((100dvh - 120px) * 16 / 9));
  overflow: hidden;
  background: #101010 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55) !important;
}

#lg-replay .lg-replay__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 8px 8px 14px;
  background: #101010;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#lg-replay .lg-replay__meta {
  flex: 1;
  min-width: 0;
}

#lg-replay .lg-replay__meta h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em !important;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#lg-replay .lg-replay__facts {
  margin: 1px 0 0;
  overflow: hidden;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#lg-replay .lg-replay__x {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--dim);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 8px;
}

#lg-replay .lg-replay__x svg {
  width: 16px;
  height: 16px;
}

#lg-replay .lg-replay__x:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

#lg-replay .lg-replay__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

#lg-replay .lg-replay__stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 0;
  transition: opacity 0.25s ease;
}

#lg-replay .lg-replay__stage.is-ready iframe {
  opacity: 1;
}

#lg-replay .lg-replay__spin {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border: 2px solid rgba(255, 208, 0, 0.2);
  border-top-color: var(--jonquil);
  border-radius: 50%;
  animation: lg-replay-spin 0.8s linear infinite;
}

#lg-replay .lg-replay__stage.is-ready .lg-replay__spin {
  display: none;
}

@keyframes lg-replay-spin {
  to {
    transform: rotate(360deg);
  }
}

#lg-replay .lg-replay__play {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 14px;
  color: var(--night);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  background: var(--gold-sheen);
  border: 0;
  border-radius: 8px;
}

#lg-replay .lg-replay__play:hover {
  filter: brightness(1.06);
}

@media (max-width: 1023px) {
  .lg-wins .lg-rail__track {
    --cols: 2.15;
  }
}

@media (max-width: 767px) {
  .lg-wins .lg-rail__track {
    --cols: 1.18;
    --gap: 12px;
  }

  .lg-win:hover {
    transform: none;
  }

  #lg-replay {
    padding: 12px;
  }

  #lg-replay .lg-replay__panel {
    width: min(100%, calc((100dvh - 96px) * 16 / 9));
  }

  #lg-replay .lg-replay__meta h2 {
    font-size: 14px;
  }
}

@media (hover: none) {
  .lg-win:hover {
    transform: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- Unity: one gutter, one button, one input, one panel ---------- */

.lg-hide {
  display: none !important;
}

/* Primary actions that the palette remap does not size. One height, one radius, one type. */
button[class~="bg-[#ffb700]"],
button[class~="bg-[#FFB700]"],
button[class~="bg-[#f4c430]"],
button[class~="bg-[#f9bf15]"],
a[class~="bg-[#ffb700]"],
a[class~="bg-[#f4c430]"] {
  min-height: var(--btn-h) !important;
  height: auto !important;
  padding-inline: 18px !important;
  border: 0 !important;
  border-radius: var(--r-sm) !important;
  background: var(--gold) !important;
  color: var(--night) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  box-shadow: none !important;
}

button:disabled:not(.lg-rail__nav):not([class*="lg-tab"]),
button[disabled]:not(.lg-rail__nav):not([class*="lg-tab"]) {
  background: var(--s4) !important;
  color: var(--mute) !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  cursor: not-allowed;
}

/* Page column is already inset. Injected blocks must not add a second gutter. */
main div.pb-20 > div[class*="px-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Homepage boxes repeat main's px-4. On phones the hero is already edge to edge, so this stack is too. */
main div.pb-20 div.w-full[class~="px-4"][class~="py-4"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (max-width: 767px) {
  main div.pb-20 div.w-full[class~="px-4"][class~="py-4"] {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
  }
}

/* Bonus shell repeats main's px and adds pt-20 under an in-flow header. */
main > div.pt-20 {
  padding-top: 0 !important;
  background: transparent !important;
}

main > div.pt-20 > div[class*="px-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Home category row. Full-width tray; five equal buttons, one shape.
   Selected is that same button filled with gold. */
main div.pb-20 > div.overflow-x-auto:has(> div[class*="max-w-7xl"]) {
  overflow-x: auto !important;
  overflow-y: visible !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

main div.overflow-x-auto > div[class*="max-w-7xl"] {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: auto !important;
  margin-inline: 0 !important;
  flex-wrap: nowrap !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 6px !important;
  border: 1px solid rgba(255, 244, 214, 0.14) !important;
  border-radius: 18px !important;
  background:
    radial-gradient(70% 140% at 0% 0%, rgba(255, 208, 0, 0.1), transparent 58%),
    linear-gradient(180deg, rgba(255, 248, 230, 0.06), rgba(0, 0, 0, 0.28)),
    #141312 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 230, 0.24),
    0 18px 40px -28px rgba(0, 0, 0, 0.9) !important;
}

main div.overflow-x-auto > div[class*="max-w-7xl"]::before {
  content: none;
}

main div.overflow-x-auto > div[class*="max-w-7xl"] > button {
  position: relative;
  flex: 1 1 0 !important;
  justify-content: center;
  height: 52px !important;
  min-height: 52px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  gap: 10px !important;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(255, 248, 230, 0.05), transparent 42%),
    #1b1a1a !important;
  color: var(--ink-2) !important;
  box-shadow: none !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
}

main div.overflow-x-auto > div[class*="max-w-7xl"] > button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 18%;
  right: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 208, 0, 0.7), transparent);
  pointer-events: none;
}

main div.overflow-x-auto > div[class*="max-w-7xl"] > button svg {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  padding: 6px;
  box-sizing: content-box;
  flex: none;
  border-radius: 8px;
  background: rgba(255, 208, 0, 0.12);
  color: var(--jonquil);
}

main div.overflow-x-auto > div[class*="max-w-7xl"] > button:hover {
  color: var(--ink) !important;
  border-color: rgba(255, 208, 0, 0.4) !important;
  background:
    linear-gradient(180deg, rgba(255, 208, 0, 0.08), transparent 50%),
    #221f1c !important;
}

main div.overflow-x-auto > div[class*="max-w-7xl"] > button[class*="bg-white/10"],
main div.overflow-x-auto > div[class*="max-w-7xl"] > button[class*="bg-white/10"]:hover {
  border-color: transparent !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 46%),
    #ffb700 !important;
  color: #14110a !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 10px 24px -16px rgba(255, 183, 0, 0.8) !important;
}

main div.overflow-x-auto > div[class*="max-w-7xl"] > button[class*="bg-white/10"]::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
}

main div.overflow-x-auto > div[class*="max-w-7xl"] > button[class*="bg-white/10"] svg {
  background: rgba(20, 17, 10, 0.14);
  color: #14110a;
}

@media (max-width: 767px) {
  main div.overflow-x-auto > div[class*="max-w-7xl"] {
    width: max-content !important;
    min-width: 100% !important;
  }

  main div.overflow-x-auto > div[class*="max-w-7xl"] > button {
    flex: none !important;
    min-width: 148px !important;
    padding: 0 16px !important;
  }
}

.lg-pagehead {
  padding: 22px 0 14px;
}

.lg-pagehead h1 {
  margin: 0;
  color: var(--ink);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.05;
}

.lg-pagehead p {
  margin: 6px 0 0;
  color: var(--mute);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

/* Bonus filters share the title's column: one tray, one search. */
main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) {
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin-bottom: 18px !important;
  width: 100%;
}

main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) > div.overflow-x-auto {
  flex: 1 1 auto;
  min-width: 0;
  background: var(--s2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding: 4px !important;
}

main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) > div.overflow-x-auto button {
  border-radius: 999px !important;
  box-shadow: none !important;
  min-height: 36px !important;
  height: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.lg-filter-ico {
  display: inline-flex;
  flex: none;
  width: 15px;
  height: 15px;
  color: currentColor;
}

.lg-filter-ico svg {
  width: 15px;
  height: 15px;
}

main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) > div.overflow-x-auto button[class~="text-white"] {
  background: rgba(255, 208, 0, 0.14) !important;
  background-image: none !important;
  color: var(--jonquil) !important;
  box-shadow: none !important;
}

main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) > div:last-child:not(.overflow-x-auto) {
  display: flex !important;
  align-items: center;
  flex: 0 0 240px;
  width: 240px !important;
  height: 44px;
  background: var(--s2) !important;
  border: 1px solid var(--line) !important;
  border-radius: 999px !important;
  padding-inline: 14px !important;
}

main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) input {
  flex: 1 1 auto;
  align-self: center;
  min-width: 0;
  width: 100%;
  height: 28px !important;
  min-height: 0 !important;
  margin: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
  color: var(--ink) !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 28px !important;
  letter-spacing: 0;
  text-transform: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.lg-bonus-q::-webkit-search-decoration,
.lg-bonus-q::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.lg-bonus-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 56px 16px;
  color: var(--mute);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* Bonus cards. Quiet surface, one gold action, no sticker glow. */
main > div.pt-20 div.grid > div.group {
  background: var(--s2) !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-md) !important;
  box-shadow: none !important;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease) !important;
}

main > div.pt-20 div.grid > div.group > div:first-child {
  border-radius: 0 !important;
}

main > div.pt-20 div.grid > div.group img {
  transform: none !important;
  transition: transform 0.45s var(--ease) !important;
}

main > div.pt-20 div.grid > div.group h3 {
  color: var(--ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em;
  line-height: 1.3 !important;
}

main > div.pt-20 div.grid > div.group > div:last-child > p {
  color: var(--mute) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

main > div.pt-20 div.grid > div.group div.absolute.top-2.left-2 span,
main > div.pt-20 div.grid > div.group div.absolute.top-2.right-2 {
  background: rgba(10, 10, 10, 0.72) !important;
  color: var(--jonquil) !important;
  border: 1px solid var(--gold-line);
  box-shadow: none !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
}

main > div.pt-20 div.grid > div.group span:has(> svg.lucide-sparkles) {
  color: var(--mute) !important;
  font-size: 11px !important;
  letter-spacing: 0.04em;
}

main > div.pt-20 div.grid > div.group span:has(> svg.lucide-sparkles) svg {
  display: none;
}

main > div.pt-20 div.grid > div.group button {
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 12px !important;
  border: 1px solid var(--gold-line) !important;
  border-radius: var(--r-sm) !important;
  background: transparent !important;
  color: var(--jonquil) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  gap: 0 !important;
}

main > div.pt-20 div.grid > div.group button svg {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  main > div.pt-20 div.grid > div.group:hover {
    transform: translateY(-3px);
    border-color: var(--s5) !important;
  }

  main > div.pt-20 div.grid > div.group:hover img {
    transform: scale(1.03) !important;
  }

  main > div.pt-20 div.grid > div.group:hover button {
    background: var(--gold) !important;
    color: var(--night) !important;
    border-color: transparent !important;
  }
}

/* Bonus detail. Same surfaces as the page, gold only on the action. */
[role="dialog"]:has(> div[class*="md:flex-row"]) {
  width: min(920px, calc(100vw - 48px)) !important;
  max-width: min(920px, calc(100vw - 48px)) !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 1px solid var(--line) !important;
  border-radius: var(--r-lg) !important;
  background: var(--s1) !important;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55) !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) > div[class*="md:flex-row"] {
  background: var(--s1) !important;
  border: 0 !important;
  border-radius: inherit !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) > div[class*="md:flex-row"] > div:first-child {
  display: flex;
  align-items: center;
  padding: 16px 8px 16px 16px;
  background: transparent !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) > div[class*="md:flex-row"] > div:last-child {
  background: transparent !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) > div[class*="md:flex-row"] img {
  border-radius: var(--r-md) !important;
  object-fit: cover !important;
  object-position: center 18% !important;
  background: var(--s0) !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) h2 {
  color: var(--ink) !important;
  font-size: 26px !important;
  font-weight: 750 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) span[style*="background"] {
  background: rgba(255, 208, 0, 0.1) !important;
  color: var(--jonquil) !important;
  box-shadow: none !important;
  letter-spacing: 0.08em;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) .text-gray-300,
[role="dialog"]:has(> div[class*="md:flex-row"]) .text-gray-300 p {
  color: var(--ink-2) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) .text-gray-300 p:empty {
  display: none;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) > div > button.absolute {
  top: 12px !important;
  right: 12px !important;
  background: var(--s3) !important;
  border: 1px solid var(--line);
  color: var(--ink) !important;
}

[role="dialog"]:has(> div[class*="md:flex-row"]) button.w-full {
  height: var(--btn-h) !important;
  min-height: var(--btn-h) !important;
  border: 0 !important;
  border-radius: var(--r-sm) !important;
  background: var(--gold) !important;
  color: var(--night) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
}

@media (max-width: 767px) {
  main > div.pt-20 div.grid > div.group h3 {
    font-size: 16px !important;
  }

  main > div.pt-20 div.grid > div.group button {
    height: 36px !important;
    min-height: 36px !important;
    background: var(--gold) !important;
    color: var(--night) !important;
    border-color: transparent !important;
  }

  [role="dialog"]:has(> div[class*="md:flex-row"]) {
    width: calc(100vw - 20px) !important;
    max-width: calc(100vw - 20px) !important;
    max-height: calc(100dvh - 20px) !important;
  }

  [role="dialog"]:has(> div[class*="md:flex-row"]) > div[class*="md:flex-row"] > div:first-child {
    padding: 12px 12px 0;
  }

  [role="dialog"]:has(> div[class*="md:flex-row"]) > div[class*="md:flex-row"] img {
    height: 168px !important;
  }

  [role="dialog"]:has(> div[class*="md:flex-row"]) h2 {
    font-size: 22px !important;
  }

  [role="dialog"]:has(> div[class*="md:flex-row"]) > div[class*="md:flex-row"] > div:last-child {
    padding: 18px 16px 16px !important;
  }
}

@media (max-width: 767px) {
  main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) {
    align-items: stretch !important;
  }

  main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) > div:last-child:not(.overflow-x-auto) {
    flex: 1 1 auto;
    width: 100% !important;
  }
}


main:has(.lg-pagehead) > div > h1.lg-hide,
main:has(.lg-pagehead) h2.lg-hide {
  display: none !important;
}

/* Casino / live lobby: the platform title repeats the page. The view switch stays. */
main div.flex.items-center.justify-between:has(svg.lucide-layout-grid) > h1 {
  display: none !important;
}

/* Casino / live lobby: the view switch sits on the right of the game search. */
@media (min-width: 768px) {
  main div.flex.flex-col.gap-3:has(> div.flex.items-center.justify-between svg.lucide-layout-grid) {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }

  main div.flex.flex-col.gap-3:has(> div.flex.items-center.justify-between svg.lucide-layout-grid) > div.flex.items-center.justify-between {
    order: 2;
    flex: none;
    width: auto;
  }

  main div.flex.flex-col.gap-3:has(> div.flex.items-center.justify-between svg.lucide-layout-grid) > div.flex.items-center.gap-2:has(svg.lucide-search) {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Casino / live lobby: drop the gold left bar, hide the pill scrollbar. */
main aside [class*="border-l"],
main [class*="border-l-2"][class*="border-primary"],
main [class*="border-l-4"] {
  border-left-width: 0 !important;
}

main div.overflow-x-auto {
  scrollbar-width: none;
}

main div.overflow-x-auto::-webkit-scrollbar {
  display: none;
}

main div.overflow-x-auto > div.flex.gap-2.pb-1 {
  margin-top: 4px;
}

/* Bonus detail art must stay whole. Filter emoji are stripped in JS. */
[role="dialog"]:not(:has(> div[class*="md:w-[260px]"])):not(:has(> div[class*="md:grid-cols-2"])) img {
  object-fit: contain !important;
  object-position: center center !important;
  background: var(--s1);
}

/* Platform game cards share one poster radius. */
main a[href*="/casino/game/"],
main a[href*="/live-casino/game/"] {
  border-radius: var(--r-md) !important;
}

main a[href*="/casino/game/"] img,
main a[href*="/live-casino/game/"] img {
  border-radius: var(--r-md) !important;
}

/* 404 */
.lg-404 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 440px;
  margin: 12vh auto;
  padding: 0 24px;
  text-align: left;
}

.lg-404 strong {
  color: var(--jonquil);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.lg-404 p {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
}

.lg-404 a {
  display: inline-flex;
  align-items: center;
  min-height: var(--btn-h);
  margin-top: 8px;
  padding: 0 18px;
  border-radius: var(--r-sm);
  background: var(--gold);
  color: var(--night);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
}

/* The platform shell is a three-column card page. Keep it out of the first paint
   until the wheel classes land in the same turn the markup appears. */
main:not(:has(.lg-wheel__grid)) > div.min-h-screen[class*="from-[#0a0a0f]"] {
  visibility: hidden;
  animation: lg-wheel-reveal 0s 1.6s forwards;
}
@keyframes lg-wheel-reveal {
  to { visibility: visible; }
}

/* Wheel. One instrument, not a three-column card page. */
main.lg-wheel {
  --wheel: min(420px, calc(100vw - 48px));
}

main.lg-wheel .lg-wheel__page {
  background: transparent !important;
  min-height: 0 !important;
  padding: 18px 24px 72px !important;
}

main.lg-wheel .lg-wheel__wrap {
  max-width: 760px !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

main.lg-wheel .lg-wheel__hero {
  margin: 0 0 16px !important;
  text-align: center !important;
}

main.lg-wheel .lg-wheel__hero h1 {
  margin: 0 !important;
  color: var(--ink) !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  letter-spacing: -0.034em !important;
  line-height: 1.05 !important;
  background: none !important;
  -webkit-text-fill-color: var(--ink) !important;
}

main.lg-wheel .lg-wheel__hero p {
  max-width: none !important;
  margin: 6px 0 0 !important;
  color: var(--mute) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
}

main.lg-wheel .lg-wheel__grid {
  display: grid !important;
  grid-template-columns: 1fr auto auto 1fr !important;
  grid-template-areas:
    "stage stage stage stage"
    ". spins claim ."
    "prizes prizes prizes prizes"
    "history history history history"
    "rules rules rules rules" !important;
  gap: 20px 18px !important;
  align-items: center !important;
  width: 100%;
}

main.lg-wheel .lg-wheel__side {
  display: contents !important;
}

main.lg-wheel .lg-wheel__side > * {
  margin: 0 !important;
}

main.lg-wheel .lg-wheel__card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

main.lg-wheel .lg-wheel__col {
  position: relative;
  grid-area: stage;
  width: 100%;
  background: radial-gradient(ellipse 46% 40% at 50% 44%, rgba(255, 196, 40, 0.16), transparent 70%);
}

main.lg-wheel .lg-wheel__rotor {
  width: var(--wheel);
  height: var(--wheel);
  margin-inline: auto;
  filter: none !important;
}

main.lg-wheel .lg-wheel__rotor canvas {
  display: block;
  width: var(--wheel) !important;
  height: var(--wheel) !important;
  filter: none !important;
}

main.lg-wheel .lg-wheel__rotor > div {
  display: none !important;
}

main.lg-wheel .lg-wheel__col::before {
  content: "";
  position: absolute;
  z-index: 6;
  left: 50%;
  top: calc(var(--wheel) * -0.006);
  width: calc(var(--wheel) * 0.04);
  height: calc(var(--wheel) * 0.04);
  background: linear-gradient(135deg, #fff8d4 0%, #ffd000 46%, #c4920a 100%);
  transform: translateX(-50%) rotate(45deg);
  box-shadow:
    0 0 0 4px #0f0f0f,
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 8px 12px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

main.lg-wheel .lg-wheel__col::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 0;
  width: var(--wheel);
  height: var(--wheel);
  box-sizing: border-box;
  padding: calc(var(--wheel) * 0.028);
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(152deg, #fff8d6 0%, #ffe36a 16%, #ffd000 38%, #c49212 68%, #7a5608 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.45));
  pointer-events: none;
}

main.lg-wheel .lg-wheel__cap {
  position: absolute !important;
  z-index: 5;
  left: 50%;
  top: calc(var(--wheel) / 2);
  width: calc(var(--wheel) * 0.25);
  height: calc(var(--wheel) * 0.25);
  margin: 0 !important;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(155deg, #fff8d4 0%, #ffd000 36%, #c4920a 70%, #7a5608 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 12px 20px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

main.lg-wheel .lg-wheel__cap > div {
  display: none !important;
}

main.lg-wheel .lg-wheel__cap::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #3a3428 0%, #161410 62%, #0c0b0a 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 220, 120, 0.35),
    inset 0 -10px 14px rgba(0, 0, 0, 0.45);
}

main.lg-wheel .lg-wheel__cap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #fff6c2, #ffd000 55%, #e0a800);
  transform: translate(-50%, -50%) rotate(45deg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

main.lg-wheel .lg-wheel__col > div:has(> button) {
  width: min(260px, 100%);
  margin: 18px auto 0 !important;
}

main.lg-wheel .lg-wheel__col > div:has(> button.is-idle) {
  width: auto;
  margin-top: 6px !important;
}

main.lg-wheel .lg-wheel__col button {
  position: relative !important;
  overflow: hidden;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #3e3c3a 0%, #2a2929 46%, #1c1b1a 100%) !important;
  color: var(--dim) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 8px 16px rgba(0, 0, 0, 0.32) !important;
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease) !important;
}

main.lg-wheel .lg-wheel__col button::before,
main.lg-wheel .lg-wheel__claim button::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8%;
  right: 8%;
  top: 1px;
  height: 46%;
  border-radius: 12px 12px 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  pointer-events: none;
}

main.lg-wheel .lg-wheel__col button:not(:disabled) {
  background: linear-gradient(180deg, #ffe978 0%, #ffd000 46%, #f0ad00 100%) !important;
  color: #1a1408 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(122, 78, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.32) !important;
}

main.lg-wheel .lg-wheel__col button:not(:disabled)::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
}

main.lg-wheel .lg-wheel__col button.is-idle {
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mute) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.18em !important;
}

main.lg-wheel .lg-wheel__col button.is-idle::before {
  display: none;
}

main.lg-wheel .lg-wheel__col > div[class*="mt-6"] {
  width: min(320px, 100%);
  margin: 14px auto 0 !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  background: rgba(255, 208, 0, 0.1) !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  animation: none !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
}

main.lg-wheel .lg-wheel__spins {
  grid-area: spins;
  text-align: right;
}

main.lg-wheel .lg-wheel__spins > div {
  display: block !important;
}

main.lg-wheel .lg-wheel__spins [class*="w-14"] {
  display: none !important;
}

main.lg-wheel .lg-wheel__spins p:first-child {
  margin: 0 0 2px !important;
  color: var(--mute) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

main.lg-wheel .lg-wheel__spins p:last-child {
  margin: 0 !important;
  background: linear-gradient(180deg, #fff8d4 0%, #ffd000 52%, #e2a400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  letter-spacing: -0.045em !important;
  line-height: 1 !important;
}

main.lg-wheel .lg-wheel__claim {
  grid-area: claim;
  text-align: left;
}

main.lg-wheel .lg-wheel__claim h3,
main.lg-wheel .lg-wheel__claim p {
  display: none !important;
}

main.lg-wheel .lg-wheel__claim button {
  position: relative !important;
  overflow: hidden;
  height: 48px !important;
  min-height: 48px !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(180deg, #ffe978 0%, #ffd000 46%, #f0ad00 100%) !important;
  color: #1a1408 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(122, 78, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.32) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  transition: transform 0.22s var(--ease), filter 0.22s var(--ease) !important;
}

main.lg-wheel .lg-wheel__prizes,
main.lg-wheel .lg-wheel__history,
main.lg-wheel .lg-wheel__rules {
  grid-column: 1 / -1;
  width: 100%;
  text-align: center;
}

main.lg-wheel .lg-wheel__prizes {
  grid-area: prizes;
}

main.lg-wheel .lg-wheel__history {
  grid-area: history;
}

main.lg-wheel .lg-wheel__rules {
  grid-area: rules;
}

main.lg-wheel .lg-wheel__prizes h3,
main.lg-wheel .lg-wheel__history h3 {
  display: block !important;
  margin: 0 0 12px !important;
  color: var(--mute) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
}

main.lg-wheel .lg-wheel__prizes h3 svg,
main.lg-wheel .lg-wheel__history h3 svg {
  display: none !important;
}

main.lg-wheel .lg-wheel__prizes > div {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px 0 !important;
}

main.lg-wheel .lg-wheel__prizes > div > div {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

main.lg-wheel .lg-wheel__prizes > div > div > span:first-child {
  color: var(--prize, var(--jonquil)) !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

main.lg-wheel .lg-wheel__prizes > div > div > span:last-child {
  display: none !important;
}


main.lg-wheel .lg-wheel__prizes > div > div:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--olive);
}

main.lg-wheel .lg-wheel__history p {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--mute) !important;
  font-size: 13px !important;
  text-align: center !important;
}

main.lg-wheel .lg-wheel__history div.space-y-2 > div {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hair) !important;
  border-radius: 0 !important;
  padding: 10px 0 !important;
}

main.lg-wheel .lg-wheel__rules h3 {
  display: none !important;
}

main.lg-wheel .lg-wheel__rules ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

main.lg-wheel .lg-wheel__rules li {
  margin: 0 !important;
  color: var(--mute) !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  list-style: none !important;
}

@media (hover: hover) and (pointer: fine) {
  main.lg-wheel .lg-wheel__claim button:hover,
  main.lg-wheel .lg-wheel__col button:not(:disabled):hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
  }

  main.lg-wheel .lg-wheel__claim button:active,
  main.lg-wheel .lg-wheel__col button:not(:disabled):active {
    transform: translateY(1px);
    filter: brightness(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  main.lg-wheel .lg-wheel__claim button,
  main.lg-wheel .lg-wheel__col button {
    transition: none !important;
  }
}

main.lg-wheel [class*="text-green"],
main.lg-wheel [class*="text-emerald"],
main.lg-wheel [class*="text-red"],
main.lg-wheel [class*="22c55e"],
main.lg-wheel [class*="ef4444"] {
  color: var(--jonquil) !important;
}

@media (max-width: 767px) {
  main.lg-wheel .lg-wheel__page {
    padding: 12px 16px 88px !important;
  }

  main.lg-wheel .lg-wheel__hero h1 {
    font-size: 24px !important;
  }

  main.lg-wheel .lg-wheel__grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "stage"
      "spins"
      "claim"
      "prizes"
      "history"
      "rules" !important;
    gap: 20px !important;
  }

  main.lg-wheel .lg-wheel__spins,
  main.lg-wheel .lg-wheel__claim {
    text-align: center;
  }

  main.lg-wheel .lg-wheel__claim button,
  main.lg-wheel .lg-wheel__col > div:has(> button) {
    width: 100%;
    max-width: 320px;
  }

  main.lg-wheel .lg-wheel__spins p:last-child {
    font-size: 32px !important;
  }
}

/* User panel sits in the page, not edge to edge.
   Keep the platform's left/top 50% + translate centering. inset:0 fights that translate and shoves the dialog off the top-left. */
@media (min-width: 768px) {
  [role="dialog"]:has(> div[class*="md:w-[260px]"]) {
    width: min(1120px, calc(100vw - 48px)) !important;
    height: min(820px, calc(100vh - 48px)) !important;
    max-width: min(1120px, calc(100vw - 48px)) !important;
    max-height: min(820px, calc(100vh - 48px)) !important;
  }
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div.flex-1 > div {
  width: 100%;
  max-width: 720px;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div.flex-1 form,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div.flex-1 > div > div[class*="max-w-"],
[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="bg-[#1a1a1a]"] > div.flex-1 > div > div[class*="mx-auto"] {
  max-width: 560px !important;
  margin-left: 0 !important;
  margin-right: auto !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex:not(.flex-wrap):has(> button.h-9) {
  flex-wrap: nowrap !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

/* Deposit / withdraw method filters. One cell size — label length must not
   change the control. Active = soft gold, same height as the rest. */
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px !important;
  width: 100%;
  justify-content: stretch !important;
  overflow: visible;
  padding: 0 !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 8px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: #161515 !important;
  color: var(--ink-2) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.1 !important;
  white-space: nowrap;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button:hover {
  color: var(--ink) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  background: #1d1c1c !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button[class*="00C853"],
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button[class*="f4c430"],
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button.bg-primary {
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  border-color: transparent !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button[class*="00C853"]:hover,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button[class*="f4c430"]:hover,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) > button.bg-primary:hover {
  background: var(--gold-sheen) !important;
  color: var(--night) !important;
  border-color: transparent !important;
  filter: brightness(1.05);
}

@media (max-width: 767px) {
  [role="dialog"]:has(> div[class*="md:w-[260px]"]) div.flex.flex-wrap:has(> button.h-9.rounded-md) {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="min-h-[100px]"] img[class*="absolute"],
[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="min-h-[100px]"] img[class*="opacity-"] {
  display: none !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) div[class*="min-h-[100px]"] img {
  width: 28px !important;
  height: 28px !important;
  object-fit: contain !important;
  opacity: 1 !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) [class*="22c55e"],
[role="dialog"]:has(> div[class*="md:w-[260px]"]) [class*="16a34a"],
[role="dialog"]:has(> div[class*="md:w-[260px]"]) [class*="4ade80"] {
  color: var(--dim) !important;
}

[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t input,
[role="dialog"]:has(> div[class*="md:w-[260px]"]) > div[class*="md:w-[260px]"] > div.border-t:has(input) button {
  height: var(--btn-h) !important;
  min-height: var(--btn-h) !important;
  border-radius: var(--r-sm) !important;
}

.lg-code {
  background: var(--s2) !important;
  color: var(--ink) !important;
  border: 1px solid var(--gold-line) !important;
  box-shadow: none !important;
}

.lg-code h2,
.lg-code h3,
.lg-code p,
.lg-code span,
.lg-code label {
  color: var(--ink) !important;
}

.lg-code button {
  background: var(--gold) !important;
  color: var(--night) !important;
}

.lg-warn {
  background: rgba(229, 72, 77, 0.08) !important;
  border: 1px solid rgba(229, 72, 77, 0.35) !important;
  color: var(--ink-2) !important;
}

[role="dialog"]:has(> div[class*="md:grid-cols-2"]) label:has(input[type="checkbox"]) {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

footer {
  padding-bottom: 96px !important;
}

@media (max-width: 767px) {
  .lg-pagehead {
    padding-top: 12px;
  }

  .lg-pagehead h1 {
    font-size: 26px;
  }

  main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) {
    align-items: stretch !important;
  }

  main > div.pt-20 > div[class*="px-"] > div.flex.mb-8:has(> div.overflow-x-auto) > div:last-child:not(.overflow-x-auto) {
    flex-basis: auto;
    width: 100% !important;
  }

  footer {
    padding-bottom: 128px !important;
  }

  button[class~="bg-[#ffb700]"],
  button[class~="bg-[#f4c430]"] {
    min-height: var(--btn-h) !important;
  }
}

/* Yellow utility glows read as lamps. Keep the gold, drop the halo. */
[class*="shadow-primary"],
[class*="shadow-amber"],
[class*="shadow-yellow"] {
  box-shadow: none !important;
}

/* Small view toggles are status, not a call to action. */
main button[class~="w-8"][class~="h-8"][class~="bg-primary"] {
  background: rgba(255, 208, 0, 0.12) !important;
  background-image: none !important;
  color: var(--jonquil) !important;
  border: 1px solid rgba(255, 208, 0, 0.28) !important;
  box-shadow: none !important;
}

/* Lobby category chips. Active = soft gold wash, same height as the rest. */
main button[class~="rounded-lg"][class*="shadow-primary"],
main button[class~="rounded-full"][class~="bg-primary"],
main button[class~="rounded-full"][class*="text-primary-foreground"] {
  background: rgba(255, 208, 0, 0.12) !important;
  background-image: none !important;
  color: var(--jonquil) !important;
  border: 1px solid rgba(255, 208, 0, 0.28) !important;
  box-shadow: none !important;
  filter: none !important;
  text-shadow: none !important;
  min-height: 36px !important;
  height: 36px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  font-weight: 700 !important;
}

/* Recommended-game pager marks are 8px dots. The rule above was stretching the active one into a 36px pill. */
main button[class~="h-2"][class~="rounded-full"],
main button[class~="h-2"][class~="rounded-full"]:hover,
main button[class~="h-2"][class~="rounded-full"]:active {
  width: 8px !important;
  height: 8px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
}

main button[class~="h-2"][class~="w-4"][class~="rounded-full"] {
  width: 16px !important;
}

main button[class~="h-2"][class~="w-6"][class~="rounded-full"],
main button[class~="h-2"][class~="w-6"][class~="rounded-full"]:hover {
  width: 24px !important;
  background: var(--gold) !important;
  color: transparent !important;
}

/* Static pages (/p/…) — the html module renders inside .prose */
main div.py-12 > div.container > h1 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

main .prose {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 68ch;
}

main .prose h2 {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 1.7em 0 0.45em;
  scroll-margin-top: 96px;
}

main .prose h3 {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  margin: 1.15em 0 0.3em;
  scroll-margin-top: 96px;
}

main .prose p,
main .prose li {
  color: var(--ink-2);
}

main .prose a {
  color: var(--jonquil);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

main .prose strong {
  color: var(--ink);
  font-weight: 700;
}

main .prose ul {
  margin: 0.4em 0 0.8em;
  padding-left: 1.15em;
  list-style: disc;
}

main .prose li + li {
  margin-top: 0.28em;
}

/* Console gate: opaque veil for every session except the owner. */
html.lg-console-open {
  overflow: hidden !important;
}

#lg-console {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #0b0b0b !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--ink);
}

#lg-console[hidden] {
  display: none !important;
}

#lg-console.is-on {
  animation: lg-console-in 0.22s var(--ease) both;
}

@keyframes lg-console-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

#lg-console .lg-console__card {
  width: min(420px, 100%);
  padding: 28px 28px 22px;
  border-radius: 18px;
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(255, 208, 0, 0.08), transparent 70%),
    var(--s2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  text-align: left;
}

#lg-console .lg-console__kicker {
  margin: 0 0 10px;
  color: var(--jonquil);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#lg-console h2 {
  margin: 0;
  color: var(--ink) !important;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.03em !important;
  line-height: 1.15;
}

#lg-console .lg-console__line {
  margin: 12px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.5;
}

#lg-console .lg-console__line b {
  color: var(--jonquil);
  font-weight: 700;
}

#lg-console .lg-console__hold {
  display: none;
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 0.82rem;
  line-height: 1.45;
}

#lg-console.is-held .lg-console__hold {
  display: block;
}

#lg-console .lg-console__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

#lg-console .lg-console__go {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--jonquil), var(--amber));
  color: var(--night);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

#lg-console .lg-console__ok {
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent !important;
  color: var(--dim) !important;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
}

#lg-console.is-held .lg-console__ok {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  #lg-console.is-on {
    animation: none !important;
  }
}

/* ---------- Static pages (lg-doc) ---------- */

.prose .lg-doc {
  color: var(--ink-2, #c8c4bc);
}

.prose .lg-doc__lead {
  margin: 0 0 1.25rem;
  max-width: 42rem;
  color: var(--ink, #f5f3ee);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.prose .lg-doc__toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.75rem;
  padding: 0;
}

.prose .lg-doc__toc a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border: 1px solid rgba(255, 208, 0, 0.28);
  border-radius: 999px;
  background: rgba(255, 208, 0, 0.05);
  color: #ffd000;
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.prose .lg-doc__toc a:hover {
  background: rgba(255, 208, 0, 0.14);
  color: #fff6cc;
}

.prose .lg-doc__sec {
  margin: 1.75rem 0 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prose .lg-doc h2 {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin: 0 0 0.75rem;
  color: var(--ink, #f5f3ee);
  font-size: clamp(1.25rem, 1.5vw, 1.55rem);
  letter-spacing: -0.02em;
}

.prose .lg-doc h2 span {
  color: #ffd000;
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.prose .lg-doc h3 {
  margin: 1.1rem 0 0.4rem;
  color: #f7f4ee;
  font-size: 1.02rem;
}

.prose .lg-doc p,
.prose .lg-doc li {
  line-height: 1.6;
}

.prose .lg-doc a {
  color: #ffd000;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose .lg-doc__note {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem 0.9rem 1rem;
  border-left: 2px solid #ffd000;
  border-radius: 0 14px 14px 0;
  background: rgba(255, 208, 0, 0.06);
  color: var(--ink, #f5f3ee);
}

.prose .lg-doc__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 0.75rem 0 0;
}

.prose .lg-doc__card {
  margin: 0;
  padding: 0.95rem 1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #141313;
}

.prose .lg-doc__card strong {
  display: block;
  margin-bottom: 0.3rem;
  color: #f7f4ee;
}

.prose .lg-doc__table {
  width: 100%;
  margin: 0.75rem 0 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  overflow: hidden;
}

.prose .lg-doc__table th,
.prose .lg-doc__table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.prose .lg-doc__table th {
  color: #ffd000;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prose .lg-doc__table tr:last-child td {
  border-bottom: 0;
}

.prose .lg-doc__scroll {
  margin-top: 0.75rem;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #141313;
}

.prose .lg-doc__scroll .lg-doc__table {
  margin: 0;
}

.prose .lg-doc__q {
  margin: 0 0 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.prose .lg-doc__q h3 {
  margin: 0 0 0.35rem;
}

.prose .lg-doc__q p {
  margin: 0;
}

.prose .lg-doc__updated {
  margin: 1.75rem 0 0;
  color: #9c9a96;
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .prose .lg-doc__table th,
  .prose .lg-doc__table td {
    padding: 0.55rem 0.6rem;
  }
}
