/* =========================================================
   LuckyNova — core stylesheet
   ========================================================= */

:root {
  --ov: 255, 255, 255;
  --hdr: 4, 5, 11;
  --inp: 0, 0, 0;
  --ovl: 2, 3, 8;
  --bgc: 3, 4, 9;
  --bg: #04050b;
  --bg-2: #070a14;
  --bg-3: #0b0f1d;
  --panel: rgba(var(--ov), 0.045);
  --panel-2: rgba(var(--ov), 0.07);
  --line: rgba(var(--ov), 0.09);
  --line-soft: rgba(var(--ov), 0.05);
  --txt: #eef1f9;
  --muted: #aeb8d2;
  --dim: #98a2bd;
  --gold: #f7c948;
  --gold-2: #ffe9a8;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f43f5e;
  --green: #2ee6a8;
  --red: #ff5566;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
  --glow-violet: 0 0 60px -12px rgba(139, 92, 246, 0.65);
  --glow-gold: 0 0 60px -12px rgba(247, 201, 72, 0.55);
  --font-display: "Sora", "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 74px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(139, 92, 246, 0.20), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(34, 211, 238, 0.13), transparent 58%),
    radial-gradient(800px 700px at 50% 108%, rgba(247, 201, 72, 0.09), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 48%, var(--bg) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(var(--ov), 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--ov), 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, #000 0%, transparent 78%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }
::selection { background: rgba(247, 201, 72, 0.28); color: #fff; }

#dust {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.app { position: relative; z-index: 1; }

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

/* ------------------------------ header ------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(var(--hdr), 0.72);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 0 14px rgba(247, 201, 72, 0.45));
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(100deg, #fff 10%, var(--gold) 55%, #fff 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-name span { color: var(--gold); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.main-nav a {
  position: relative;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.main-nav a:hover { color: #fff; background: rgba(var(--ov), 0.05); }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--violet));
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(247, 201, 72, 0.28);
  background: linear-gradient(180deg, rgba(247, 201, 72, 0.14), rgba(247, 201, 72, 0.04));
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, transform 0.2s;
}

.balance-pill:hover { border-color: rgba(247, 201, 72, 0.55); transform: translateY(-1px); }
.balance-pill .coin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff6cf, var(--gold) 58%, #a8760c);
  box-shadow: 0 0 10px rgba(247, 201, 72, 0.6);
}
.balance-pill b { color: var(--gold-2); font-weight: 700; }
.balance-pill i { font-style: normal; color: var(--dim); font-size: 11px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.995); }

.btn-gold {
  background: linear-gradient(135deg, #ffdf7e 0%, var(--gold) 42%, #e0a91a 100%);
  color: #1a1206;
  box-shadow: 0 10px 30px -10px rgba(247, 201, 72, 0.75), inset 0 1px 0 rgba(var(--ov), 0.5);
}
.btn-gold:hover { box-shadow: 0 16px 40px -12px rgba(247, 201, 72, 0.9); transform: translateY(-1px); }

.btn-violet {
  background: linear-gradient(135deg, #a78bfa, #7c3aed 55%, #5b21b6);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgba(124, 58, 237, 0.9), inset 0 1px 0 rgba(var(--ov), 0.22);
}
.btn-violet:hover { transform: translateY(-1px); box-shadow: 0 18px 40px -14px rgba(124, 58, 237, 1); }

.btn-ghost {
  background: rgba(var(--ov), 0.05);
  border-color: var(--line);
  color: var(--txt);
}
.btn-ghost:hover { background: rgba(var(--ov), 0.09); border-color: rgba(var(--ov), 0.2); }

.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; pointer-events: none; }

.icon-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(var(--ov), 0.04);
  color: var(--muted);
  transition: 0.2s;
}
.icon-btn:hover { color: #fff; border-color: rgba(var(--ov), 0.22); }

.burger { display: none; }

/* ------------------------------ hero ------------------------------ */

.hero {
  position: relative;
  padding: 74px 0 34px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 9px;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 168, 0.28);
  background: rgba(46, 230, 168, 0.07);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #8df3cd;
}

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.7);
  animation: pulseRing 2.2s infinite;
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0.65); }
  70% { box-shadow: 0 0 0 11px rgba(46, 230, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 22px 0 18px;
}

.hero h1 .grad {
  background: linear-gradient(96deg, #fff 0%, var(--gold-2) 34%, var(--gold) 52%, var(--violet) 78%, var(--cyan) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s ease-in-out infinite;
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero p.lead {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-metrics {
  display: flex;
  gap: 34px;
  margin-top: 42px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.metric .k {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.metric .k em { font-style: normal; color: var(--gold); }
.metric .l {
  margin-top: 3px;
  font-size: 11.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--dim);
}

/* hero visual */
.hero-visual {
  position: relative;
  height: 440px;
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(52px);
  opacity: 0.55;
  animation: orbFloat 12s ease-in-out infinite;
}
.orb.a { width: 260px; height: 260px; background: #7c3aed; top: 10px; right: 30px; }
.orb.b { width: 200px; height: 200px; background: #0891b2; bottom: 20px; left: 10px; animation-delay: -4s; }
.orb.c { width: 150px; height: 150px; background: #b45309; bottom: 90px; right: 90px; animation-delay: -7s; }

@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -26px, 0) scale(1.12); }
}

.hero-cards {
  position: relative;
  width: 320px;
  height: 320px;
  transform-style: preserve-3d;
  animation: heroSpin 18s linear infinite;
}

@keyframes heroSpin {
  from { transform: rotateY(0deg) rotateX(12deg); }
  to { transform: rotateY(360deg) rotateX(12deg); }
}

.hero-card {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 168px;
  height: 168px;
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(var(--ov), 0.16), rgba(var(--ov), 0.03));
  border: 1px solid rgba(var(--ov), 0.16);
  box-shadow: 0 30px 60px -24px #000, inset 0 1px 0 rgba(var(--ov), 0.25);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.hero-card:nth-child(1) { transform: rotateY(0deg) translateZ(150px); }
.hero-card:nth-child(2) { transform: rotateY(90deg) translateZ(150px); }
.hero-card:nth-child(3) { transform: rotateY(180deg) translateZ(150px); }
.hero-card:nth-child(4) { transform: rotateY(270deg) translateZ(150px); }
.hero-card svg { width: 96px; height: 96px; }

.hero-ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 1px dashed rgba(247, 201, 72, 0.22);
  animation: spin 30s linear infinite;
}
.hero-ring::after {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px 3px rgba(247, 201, 72, 0.8);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ jackpot strip ------------------------------ */

.jackpot-strip {
  margin: 8px 0 6px;
  border: 1px solid rgba(247, 201, 72, 0.2);
  background:
    linear-gradient(90deg, rgba(247, 201, 72, 0.10), rgba(139, 92, 246, 0.10), rgba(34, 211, 238, 0.08)),
    rgba(8, 10, 20, 0.7);
  border-radius: 20px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow: hidden;
  position: relative;
}

.jackpot-strip::after {
  content: "";
  position: absolute;
  top: 0; left: -40%;
  width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(var(--ov), 0.12), transparent);
  animation: sweep 6.5s ease-in-out infinite;
}

@keyframes sweep {
  0% { left: -45%; }
  60%, 100% { left: 115%; }
}

.jackpot-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.jackpot-value {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(96deg, #fff, var(--gold-2) 45%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.jackpot-side {
  margin-left: auto;
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.jackpot-side span b { color: var(--green); }

/* ------------------------------ sections ------------------------------ */

.section { padding: 34px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.7vw, 29px);
  letter-spacing: -0.025em;
  margin: 0;
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--dim);
  font-size: 13.5px;
}

.section-head .spacer { margin-left: auto; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
}
.link-arrow:hover { gap: 10px; }

.chips {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 9px 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(var(--ov), 0.035);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: 0.2s;
}
.chip:hover { color: #fff; border-color: rgba(var(--ov), 0.24); }
.chip.active {
  color: #140f04;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-color: transparent;
  box-shadow: 0 8px 24px -10px rgba(247, 201, 72, 0.8);
}

/* ------------------------------ game grid ------------------------------ */

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  gap: 16px;
}

.game-card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--ov), 0.055), rgba(var(--ov), 0.014));
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s, box-shadow 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
  cursor: pointer;
  opacity: 1;
  animation: cardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.game-card:hover {
  border-color: rgba(247, 201, 72, 0.45);
  box-shadow: 0 26px 50px -26px rgba(247, 201, 72, 0.5), 0 0 0 1px rgba(247, 201, 72, 0.14);
}

.game-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 95% at 50% 0%, rgba(var(--ov), 0.20), transparent 58%),
    radial-gradient(85% 85% at 50% 60%, var(--t1), transparent 72%),
    linear-gradient(160deg, var(--t1), var(--t2) 58%, var(--bg-2) 100%);
}

.game-thumb::after {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(115deg, rgba(var(--ov), 0.055) 0 2px, transparent 2px 9px);
  opacity: 0.28;
  mix-blend-mode: soft-light;
}

.game-thumb svg {
  width: 78%;
  height: 78%;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, 0.55)) saturate(1.18) brightness(1.08);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.game-card:hover .game-thumb svg { transform: scale(1.08) rotate(-2deg); }

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 4px 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  border-radius: 7px;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.game-badge.hot { background: rgba(255, 45, 95, 0.92); color: #fff; box-shadow: 0 6px 18px -8px #ff2d5f; }
.game-badge.new { background: rgba(34, 211, 238, 0.92); color: #04222a; }
.game-badge.jackpot { background: rgba(247, 201, 72, 0.95); color: #1a1206; }
.game-badge.vip { background: rgba(139, 92, 246, 0.92); color: #fff; }

.game-rtp {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(var(--inp), 0.45);
  border: 1px solid rgba(var(--ov), 0.14);
  color: #d9fbe9;
  backdrop-filter: blur(6px);
}

.game-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: rgba(4, 5, 11, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.25s;
}
.game-card:hover .game-play-overlay { opacity: 1; }

.play-btn {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #140f04;
  box-shadow: 0 10px 26px -10px rgba(247, 201, 72, 0.9);
  transform: translateY(6px);
  transition: transform 0.25s;
}
.game-card:hover .play-btn { transform: translateY(0); }

.game-info { padding: 13px 14px 15px; }
.game-name {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--dim);
}
.game-meta .cat { text-transform: uppercase; letter-spacing: 0.07em; }

/* ------------------------------ promos ------------------------------ */

.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.promo-card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, rgba(var(--ov), 0.07), rgba(var(--ov), 0.015));
  transition: transform 0.3s, border-color 0.3s;
}
.promo-card:hover { transform: translateY(-4px); border-color: rgba(247, 201, 72, 0.4); }

.promo-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -70px;
  top: -80px;
  background: radial-gradient(circle, var(--pc, rgba(139, 92, 246, 0.55)), transparent 68%);
  filter: blur(14px);
}

.promo-card h3 {
  position: relative;
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}
.promo-card p {
  position: relative;
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 420px;
}
.promo-card .tag {
  position: relative;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

/* ------------------------------ winners ticker ------------------------------ */

.ticker {
  border: 1px solid var(--line);
  background: rgba(var(--ov), 0.028);
  border-radius: 16px;
  padding: 14px 0;
  overflow: hidden;
  position: relative;
}

.ticker-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: tickerMove 34s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.ticker-item b { color: #fff; font-weight: 600; }
.ticker-item .amt { color: var(--green); font-weight: 700; }
.ticker-item .ava {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #0b0f1d;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

/* ------------------------------ footer ------------------------------ */

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line-soft);
  padding: 46px 0 40px;
  background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.05));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-grid h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}
.footer-col a {
  display: block;
  padding: 6px 0;
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }

.footer-about p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 340px;
  margin: 14px 0 0;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--dim);
}

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 85, 102, 0.5);
  color: #ff8b96;
  font-size: 11px;
  font-weight: 800;
}

/* ------------------------------ pages / panels ------------------------------ */

.page { padding: 46px 0 30px; }

.page-head { margin-bottom: 26px; }
.page-head h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.page-head p { margin: 0; color: var(--muted); font-size: 14px; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(var(--ov), 0.05), rgba(var(--ov), 0.015));
  padding: 24px;
}

.panel + .panel { margin-top: 16px; }

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.panel-title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.split {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 18px;
  align-items: start;
}

.wallet-hero {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(247, 201, 72, 0.25);
  background:
    radial-gradient(600px 200px at 100% 0%, rgba(139, 92, 246, 0.35), transparent 70%),
    linear-gradient(160deg, rgba(247, 201, 72, 0.14), rgba(var(--ov), 0.02));
  overflow: hidden;
}
.wallet-hero::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  right: -60px; bottom: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.4), transparent 68%);
  filter: blur(10px);
}
.wallet-label {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.wallet-amount {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
  font-variant-numeric: tabular-nums;
}
.wallet-amount small { font-size: 15px; color: var(--gold); margin-left: 6px; font-weight: 600; }
.wallet-sub { font-size: 12.5px; color: var(--dim); }
.wallet-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }

.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: 12px;
  background: rgba(var(--ov), 0.045);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.2s;
}
.tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(124, 58, 237, 0.7));
  box-shadow: 0 8px 22px -12px rgba(124, 58, 237, 0.9);
}

.field { margin-bottom: 15px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.input, .select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(var(--inp), 0.32);
  color: var(--txt);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.input::placeholder { color: #8791ab; }
.input:focus, .select:focus {
  border-color: rgba(247, 201, 72, 0.6);
  box-shadow: 0 0 0 3px rgba(247, 201, 72, 0.12);
  background: rgba(var(--inp), 0.45);
}
.input.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.06em; }
.hint { font-size: 11.5px; color: var(--dim); margin-top: 6px; line-height: 1.5; }

.amount-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 9px;
  margin-bottom: 16px;
}
.amount-opt {
  padding: 13px 8px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(var(--ov), 0.035);
  font-size: 14px;
  font-weight: 700;
  color: var(--txt);
  text-align: center;
  transition: 0.18s;
  font-variant-numeric: tabular-nums;
}
.amount-opt:hover { border-color: rgba(247, 201, 72, 0.45); }
.amount-opt.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(247, 201, 72, 0.24), rgba(247, 201, 72, 0.08));
  color: var(--gold-2);
  box-shadow: 0 0 0 1px rgba(247, 201, 72, 0.35), 0 10px 26px -14px rgba(247, 201, 72, 0.9);
}

.notice {
  display: flex;
  gap: 11px;
  padding: 13px 15px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.07);
  color: #b7e9f5;
}
.notice.warn {
  border-color: rgba(247, 201, 72, 0.28);
  background: rgba(247, 201, 72, 0.07);
  color: #f5e2b0;
}
.notice b { color: #fff; }

.copy-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.copy-row .input { flex: 1; }

.kv {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 13.5px;
}
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.kv b { font-weight: 650; }
.kv b.gold { color: var(--gold); }
.kv b.green { color: var(--green); }
.kv b.red { color: var(--red); }

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #e8ecf8;
  white-space: nowrap;
}
table.data tr:hover td { background: rgba(var(--ov), 0.025); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill.pending { background: rgba(247, 201, 72, 0.14); color: #f2d483; border: 1px solid rgba(247, 201, 72, 0.3); }
.pill.ok { background: rgba(46, 230, 168, 0.13); color: #86f0c6; border: 1px solid rgba(46, 230, 168, 0.3); }
.pill.bad { background: rgba(255, 85, 102, 0.13); color: #ff9aa5; border: 1px solid rgba(255, 85, 102, 0.3); }

.empty {
  padding: 36px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
}

/* ------------------------------ auth ------------------------------ */

.auth-wrap {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: grid;
  place-items: center;
  padding: 50px 0;
}

.auth-card {
  width: min(430px, 100%);
  padding: 34px 32px 30px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(var(--ov), 0.075), rgba(var(--ov), 0.02));
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: -90px; right: -70px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 68%);
  filter: blur(12px);
}
.auth-card h2 {
  font-family: var(--font-display);
  font-size: 25px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  position: relative;
}
.auth-card p.sub { margin: 0 0 24px; color: var(--muted); font-size: 13.5px; position: relative; }

.auth-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--dim);
  line-height: 1.6;
  text-align: center;
}

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

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(var(--ovl), 0.78);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-root.open { opacity: 1; pointer-events: auto; }

.modal {
  width: min(460px, 100%);
  border-radius: 20px;
  border: 1px solid rgba(var(--ov), 0.12);
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  box-shadow: 0 40px 90px -30px #000;
  padding: 30px 28px 26px;
  text-align: center;
  transform: translateY(14px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  overflow: hidden;
}
.modal-root.open .modal { transform: translateY(0) scale(1); }

.modal::before {
  content: "";
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 280px; height: 200px;
  background: radial-gradient(circle, rgba(255, 85, 102, 0.42), transparent 68%);
  filter: blur(14px);
}

.modal-icon {
  width: 62px; height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 85, 102, 0.12);
  border: 1px solid rgba(255, 85, 102, 0.35);
  position: relative;
}
.modal h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  position: relative;
}
.modal p {
  margin: 0 0 8px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
  position: relative;
}
.modal .mono-line {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: #ffb3bb;
  background: rgba(255, 85, 102, 0.08);
  border: 1px dashed rgba(255, 85, 102, 0.25);
  border-radius: 9px;
  padding: 9px;
  margin: 14px 0 18px;
  word-break: break-all;
  position: relative;
}
.modal-actions { display: flex; gap: 10px; position: relative; }
.modal-actions .btn { flex: 1; }

/* ------------------------------ toast ------------------------------ */

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 250px;
  max-width: 360px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 18, 32, 0.96);
  box-shadow: 0 20px 46px -20px #000;
  font-size: 13.5px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: toastIn 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  backdrop-filter: blur(12px);
}
.toast.out { animation: toastOut 0.3s forwards; }
.toast .bar { width: 3px; align-self: stretch; border-radius: 3px; background: var(--green); }
.toast.err .bar { background: var(--red); }
.toast.info .bar { background: var(--cyan); }

@keyframes toastIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(28px); } }

/* ------------------------------ skeleton ------------------------------ */

.skel {
  border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(var(--ov), 0.045) 25%, rgba(var(--ov), 0.09) 37%, rgba(var(--ov), 0.045) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
  aspect-ratio: 16 / 13;
}
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ------------------------------ mobile nav ------------------------------ */

.mobile-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  background: rgba(6, 8, 16, 0.94);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
}
.mobile-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mobile-nav li { flex: 1; }
.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 2px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--dim);
  border-radius: 10px;
}
.mobile-nav a.active { color: var(--gold); }
.mobile-nav svg { width: 21px; height: 21px; }

/* ------------------------------ icons animation ------------------------------ */

.ic-spin { transform-origin: 50% 50%; animation: icSpin 9s linear infinite; }
.ic-spin-fast { transform-origin: 50% 50%; animation: icSpin 4.5s linear infinite; }
.ic-float { animation: icFloat 3.6s ease-in-out infinite; }
.ic-float-slow { animation: icFloat 5.4s ease-in-out infinite; }
.ic-pulse { animation: icPulse 2.6s ease-in-out infinite; }
.ic-flicker { animation: icFlicker 3.2s ease-in-out infinite; }
.ic-drop { animation: icDrop 2.8s cubic-bezier(0.5, 0, 0.5, 1) infinite; }
.ic-orbit { transform-origin: 50% 50%; animation: icSpin 7s linear infinite; }
.ic-swing { transform-origin: 50% 20%; animation: icSwing 3.4s ease-in-out infinite; }

@keyframes icSpin { to { transform: rotate(360deg); } }
@keyframes icFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes icPulse {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes icFlicker {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.45; }
  55% { opacity: 1; }
  70% { opacity: 0.6; }
}
@keyframes icDrop {
  0% { transform: translateY(-16px); opacity: 0; }
  30% { opacity: 1; }
  80% { transform: translateY(16px); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes icSwing {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { height: 340px; order: -1; }
  .hero-cards { width: 250px; height: 250px; }
  .hero-card { width: 132px; height: 132px; border-radius: 20px; }
  .hero-card:nth-child(1) { transform: rotateY(0deg) translateZ(118px); }
  .hero-card:nth-child(2) { transform: rotateY(90deg) translateZ(118px); }
  .hero-card:nth-child(3) { transform: rotateY(180deg) translateZ(118px); }
  .hero-card:nth-child(4) { transform: rotateY(270deg) translateZ(118px); }
  .hero-card svg { width: 74px; height: 74px; }
  .hero-ring { width: 300px; height: 300px; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .header-right .btn-ghost.hide-sm { display: none; }
  .hero { padding: 34px 0 18px; }
  .hero h1 { margin: 16px 0 14px; }
  .hero p.lead { font-size: 14.5px; }
  .hero-metrics { gap: 22px; margin-top: 30px; padding-top: 20px; }
  .metric .k { font-size: 20px; }
  .mobile-nav { display: block; }
  .app { padding-bottom: 74px; }
  .site-footer { padding-bottom: 90px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .game-info { padding: 10px 11px 12px; }
  .game-name { font-size: 12.8px; }
  .game-meta { font-size: 10.5px; }
  .game-badge, .game-rtp { font-size: 9px; padding: 3px 6px; }
  .jackpot-strip { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 18px; }
  .jackpot-side { margin-left: 0; }
  .container { width: calc(100% - 28px); }
  .panel { padding: 18px; }
  .auth-card { padding: 26px 20px; }
  .page { padding: 30px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .toast-root { left: 14px; right: 14px; bottom: 84px; }
  .toast { max-width: none; }
  .wallet-amount { font-size: 34px; }
}

@media (max-width: 520px) {
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { height: 290px; }
  .hero-metrics { gap: 18px; }
  .amount-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .balance-pill { padding: 8px 11px; font-size: 12px; }
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(var(--bgc), 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.drawer a {
  padding: 15px 4px;
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line-soft);
  color: var(--txt);
}
.drawer .btn { margin-top: 22px; }


/* =========================================================
   浅色 / 深色主题切换
   ========================================================= */
[data-theme="light"] {
  --ov: 15, 23, 42;
  --hdr: 255, 255, 255;
  --inp: 255, 255, 255;
  --ovl: 15, 23, 42;
  --bgc: 255, 255, 255;
  --bg: #f5f7fb;
  --bg-2: #eef1f8;
  --bg-3: #e7ebf4;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: rgba(255, 255, 255, 0.98);
  --line: rgba(15, 23, 42, 0.13);
  --line-soft: rgba(15, 23, 42, 0.09);
  --txt: #101828;
  --muted: #4a5568;
  --dim: #6b7385;
  --shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.22);
}

[data-theme="light"] body {
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(139, 92, 246, 0.13), transparent 62%),
    radial-gradient(900px 520px at 8% 4%, rgba(34, 211, 238, 0.10), transparent 58%),
    radial-gradient(800px 700px at 50% 108%, rgba(247, 201, 72, 0.14), transparent 60%),
    linear-gradient(180deg, #f7f9fd 0%, #eef1f8 48%, #f7f9fd 100%);
}

[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.045) 1px, transparent 1px);
}

[data-theme="light"] .main-nav a:hover,
[data-theme="light"] .main-nav a.active,
[data-theme="light"] .icon-btn:hover,
[data-theme="light"] .ticker-item b,
[data-theme="light"] .notice b,
[data-theme="light"] .tab.active { color: #101828; }

[data-theme="light"] .tab.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.78));
}

[data-theme="light"] .panel,
[data-theme="light"] .promo-card,
[data-theme="light"] .jackpot-strip {
  box-shadow: 0 14px 34px -26px rgba(15, 23, 42, 0.35);
}

[data-theme="light"] .input::placeholder { color: #98a1b3; }

[data-theme="light"] .modal { box-shadow: 0 40px 90px -34px rgba(15, 23, 42, 0.4); }
[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.82); }
[data-theme="light"] .site-footer { background: rgba(255, 255, 255, 0.6); }

/* 主题切换按钮 */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: rgba(var(--ov), 0.04);
  color: var(--txt);
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
}
.theme-toggle:hover { border-color: rgba(var(--ov), 0.24); background: rgba(var(--ov), 0.09); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .ic-moon { display: none; }
[data-theme="light"] .theme-toggle .ic-sun { display: none; }
[data-theme="light"] .theme-toggle .ic-moon { display: block; }

/* 浅色主题下的对比度修正 */
[data-theme="light"] .brand-name,
[data-theme="light"] .hero h1 .grad,
[data-theme="light"] .jackpot-value {
  background-image: linear-gradient(96deg, #101828 0%, #6d28d9 42%, #b45309 68%, #101828 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme="light"] .btn-gold { color: #241a02; }
[data-theme="light"] .gold { color: #a16207; }
[data-theme="light"] .green { color: #047857; }
[data-theme="light"] .red { color: #c02434; }
[data-theme="light"] .eyebrow { color: #4a5568; }
[data-theme="light"] .chip.active { color: #241a02; }
[data-theme="light"] .amount-opt.active { color: #7c4a03; }
[data-theme="light"] .notice { background: rgba(139, 92, 246, 0.08); color: #1f2937; }
[data-theme="light"] .notice.warn { background: rgba(247, 201, 72, 0.16); color: #4a3a10; }
[data-theme="light"] .site-footer { background: linear-gradient(180deg, transparent, rgba(139, 92, 246, 0.06)); }

/* 浅色主题：指标数字与金色链接 */
[data-theme="light"] .metric .k { color: #101828; }
[data-theme="light"] .metric .k em { color: #a16207; }
[data-theme="light"] .link-arrow { color: #9a5b00; }
[data-theme="light"] .metric .l { color: #55607a; }

/* 浅色主题：游戏卡上的 RTP 标签保持深底浅字 */
[data-theme="light"] .game-rtp {
  background: rgba(10, 15, 28, 0.62);
  border-color: rgba(255, 255, 255, 0.18);
  color: #d9fbe9;
}
/* 浅色主题：VIP 档位标签加深 */
[data-theme="light"] .vip-tier { filter: brightness(0.6) saturate(1.5); }

/* 浅色主题：跑马灯金额与促销标签 */
[data-theme="light"] .ticker-item .amt { color: #047857; }
[data-theme="light"] .promo-card .tag { color: #8a5300; border-color: rgba(138, 83, 0, 0.35); }

/* =========================================================
   Toast / notice / withdraw-progress  (2026-10-31 fixes)
   ========================================================= */

/* 提示框文字原来继承浅色主题的深色文字，压在深底上完全看不见 —— 这里锁死前景色 */
.toast {
  color: #f2f5ff;
  font-weight: 500;
  line-height: 1.45;
  background: rgba(13, 17, 30, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 44px -18px #000, 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.toast span:last-child { color: #f2f5ff; word-break: break-word; }
.toast.err { border-color: rgba(255, 85, 102, 0.55); box-shadow: 0 18px 44px -18px #000, 0 0 24px -8px rgba(255, 85, 102, 0.5); }
.toast.info { border-color: rgba(34, 211, 238, 0.45); }
[data-theme="light"] .toast,
[data-theme="light"] .toast span:last-child { color: #f7f9ff; }

/* card number field: keep LTR, no weird advances before digits */
.card-input {
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: left;
}

/* generic wide modal */
.modal.modal-wide { width: min(540px, 100%); text-align: left; }
.modal.modal-wide h3 { margin-top: 0; }

/* notice popup */
.notice-modal { text-align: center; }
.notice-modal .nm-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 24px; font-weight: 800; color: #241a02;
  background: linear-gradient(135deg, #ffe9a8, #f7c948);
  box-shadow: 0 12px 34px -14px rgba(247, 201, 72, 0.9);
}
.notice-modal.warn .nm-icon { background: linear-gradient(135deg, #ffd3a6, #ff8a3d); color: #2b1200; box-shadow: 0 12px 34px -14px rgba(255, 138, 61, 0.85); }
.notice-modal.ok .nm-icon { background: linear-gradient(135deg, #a8f0d3, #2ee6a8); color: #062a1e; box-shadow: 0 12px 34px -14px rgba(46, 230, 168, 0.85); }
.notice-modal h3 { margin: 0 0 10px; font-family: var(--font-display); font-size: 19px; color: var(--txt); }
.notice-modal .nm-body { font-size: 13.5px; line-height: 1.75; color: var(--muted); margin-bottom: 22px; }
.notice-modal .nm-body b { color: var(--txt); }

/* on-chain waiting popup */
.chain-wait { text-align: center; padding: 6px 2px 2px; }
.chain-wait h3 { font-family: var(--font-display); font-size: 18px; margin: 18px 0 8px; color: var(--txt); }
.chain-wait .cw-sub { font-size: 13px; color: var(--muted); margin: 0 0 18px; line-height: 1.7; }
.chain-wait .cw-sub b { color: var(--gold); }
.chain-wait .cw-count {
  font-family: var(--font-display); font-size: 46px; font-weight: 800;
  color: var(--gold); line-height: 1; letter-spacing: -0.03em;
  text-shadow: 0 0 40px rgba(247, 201, 72, 0.35);
}
.chain-wait .cw-hint { margin-top: 12px; font-size: 11.5px; color: var(--dim); }
.chain-ring { position: relative; width: 86px; height: 86px; margin: 0 auto; }
.chain-ring span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--gold);
}
.chain-ring span:nth-child(1) { animation: ringSpin 1.15s linear infinite; }
.chain-ring span:nth-child(2) { inset: 10px; border-top-color: var(--cyan); animation: ringSpin 1.7s linear infinite reverse; }
.chain-ring span:nth-child(3) { inset: 22px; border-top-color: var(--violet); animation: ringSpin 2.3s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* saved payout addresses */
.addr-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow: auto; }
.addr-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(var(--ov), 0.035);
}
.addr-row .add-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.addr-row .add-main b { font-size: 12.5px; color: var(--txt); }
.addr-row .add-main .mono { font-size: 11px; color: var(--muted); word-break: break-all; }
.addr-row .mini-x {
  margin-left: auto; flex: none; cursor: pointer;
  border: 1px solid rgba(255, 85, 102, 0.4); background: rgba(255, 85, 102, 0.1);
  color: #ff8f9c; font-size: 11.5px; padding: 6px 10px; border-radius: 9px;
}
.addr-row .mini-x:hover { background: rgba(255, 85, 102, 0.2); }
.addr-empty {
  padding: 16px; border-radius: 12px; text-align: center;
  border: 1px dashed var(--line); color: var(--muted); font-size: 12.5px;
}

/* ===== 2026-11-07 对比度修复(浅色主题) ===== */
[data-theme="light"] table.data td { color: #2a3348; }
[data-theme="light"] table.data th { color: #414b61; }
[data-theme="light"] .pill.pending { color: #8a6a00; background: rgba(247,201,72,0.25); border-color: rgba(138,106,0,0.4); }
[data-theme="light"] .pill.ok { color: #067a55; background: rgba(46,230,168,0.18); border-color: rgba(6,122,85,0.35); }
[data-theme="light"] .pill.bad { color: #c81f34; background: rgba(255,85,102,0.15); border-color: rgba(200,31,52,0.35); }
[data-theme="light"] .kv span { color: #3d475c; }
[data-theme="light"] .hint { color: #515a6e; }
[data-theme="light"] .field label { color: #3a445a; }
[data-theme="light"] .empty { color: #4a5468; }
