/* =========================================================
   K88 — style.css
   Light sky blue, navy, gold foil, prosperity red. One sans family. See DESIGN.md.
   ========================================================= */

:root {
  /* Palette */
  --sky: #eaf5fd;
  --sky-deep: #cfe7f8;
  --blue: #1f6fb2;
  --navy: #0d2b45;
  --gold: #d9a93e;
  --gold-deep: #8a5a00;
  --prosperity-red: #b3202f;
  --white: #ffffff;

  /* Derived */
  --navy-2: #081d30;
  --muted: #4a6580;
  --line: #c4ddf0;
  --line-strong: #8fbde0;
  --gold-light: #f3c95c;
  --on-navy: #dce9f5;
  --on-navy-muted: #a9c0d6;
  --foil: linear-gradient(115deg, #b88424 0%, var(--gold) 28%, #f8e2a0 48%, var(--gold) 66%, #b88424 100%);
  --shadow: 0 1px 2px rgba(13, 43, 69, 0.06), 0 6px 18px rgba(13, 43, 69, 0.08);
  --glow: 0 0 0 1px var(--blue), 0 10px 26px rgba(31, 111, 178, 0.22);

  /* Type: one sans family throughout (Noto Sans SC covers Chinese pages) */
  --font: "Manrope", "Noto Sans SC", "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.2rem;
  --step-2: 1.44rem;
  --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 1.875rem);
  --step-4: clamp(1.8rem, 1.3rem + 2vw, 2.4rem);

  /* Radii — tiered by hierarchy */
  --r-chip: 4px;
  --r-card: 6px;
  --r-tile: 10px;

  --wrap: 1280px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --header-h: 64px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--navy);
  background-color: var(--sky);
  background-image:
    radial-gradient(1000px 500px at 10% 0%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(31, 111, 178, 0.08), transparent 60%);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  color: var(--navy);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font-family: var(--font); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.5rem 1rem; border-radius: var(--r-chip);
  font-weight: 700;
}
.skip:focus { top: 1rem; color: var(--white); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 44px; padding: 0.6rem 1.25rem;
  font: 700 var(--step--1)/1 var(--font);
  text-decoration: none;
  border-radius: var(--r-card);
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow 0.2s ease, background-position 0.4s ease, color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}
.btn-gold {
  color: #2a1a00;
  background: var(--foil);
  background-size: 200% 100%;
  border-color: #c4922f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 2px 6px rgba(138, 90, 0, 0.25);
}
.btn-gold:hover { color: #2a1a00; background-position: 100% 0; box-shadow: 0 0 0 1px var(--gold), 0 8px 20px rgba(217, 169, 62, 0.4); }
.btn-ghost { color: var(--blue); background: var(--white); border-color: var(--blue); }
.btn-ghost:hover { color: var(--white); background: var(--blue); }
.btn-lg { min-height: 52px; padding: 0.8rem 1.75rem; font-size: var(--step-0); }
.btn-block { width: 100%; }

.badge-18 {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--prosperity-red);
  color: var(--prosperity-red);
  font: 800 0.72rem/1 var(--font);
  letter-spacing: -0.02em;
  flex: none;
}

/* ---------- Logo ---------- */
.logo {
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--navy);
  font: 800 1.75rem/1 var(--font); letter-spacing: -0.03em;
}
.logo img { width: 40px; height: 40px; }
.logo .num { color: var(--prosperity-red); }
.logo:hover { color: var(--navy); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px rgba(13, 43, 69, 0.05);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(10px); }
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; column-gap: 0.75rem; }
.header-inner > * { flex: none; }
.header-inner > .logo { min-height: var(--header-h); margin-right: auto; }
.header-inner > .main-nav { flex: 1 0 100%; }
.lang { display: flex; gap: 0.25rem; align-items: center; font-size: var(--step--1); color: var(--muted); }
.lang a { color: var(--muted); text-decoration: none; padding: 0.25rem 0.4rem; border-radius: var(--r-chip); font-weight: 600; }
.lang a[aria-current] { color: var(--blue); font-weight: 800; }
.lang a:hover { color: var(--navy); }
.lang .sep { opacity: 0.4; }
.header-inner > .btn { min-height: 38px; padding: 0.45rem 0.9rem; }

/* Mobile nav: CSS-only checkbox toggle */
.nav-toggle { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-burger {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-left: -0.5rem;
  cursor: pointer; border-radius: var(--r-card);
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy); position: relative;
  transition: transform 0.2s ease;
}
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after { position: absolute; top: 7px; }
.nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--blue); outline-offset: 2px; }
.nav-toggle:checked + .nav-burger span { background: transparent; }
.nav-toggle:checked + .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav { display: none; border-top: 1px solid var(--line); }
.nav-toggle:checked ~ .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0.5rem 0 1rem; }
.main-nav a {
  display: block; padding: 0.7rem 0.25rem;
  color: var(--navy); text-decoration: none; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--blue); }
.nav-lang { display: flex; padding-top: 0.75rem; }
.header-inner > .lang, .header-inner > .badge-18 { display: none; }

@media (max-width: 420px) {
  .logo { font-size: 1.5rem; }
  .logo img { width: 34px; height: 34px; }
  .header-inner { column-gap: 0.4rem; }
  .header-inner > .btn { padding: 0.45rem 0.65rem; font-size: 0.8rem; }
}
@media (min-width: 720px) {
  .header-inner > .lang { display: flex; }
  .header-inner > .badge-18 { display: inline-grid; }
  .nav-lang { display: none; }
}
@media (min-width: 1100px) {
  .nav-burger, .nav-toggle { display: none; }
  .main-nav { display: block; }
  .main-nav ul { display: flex; justify-content: space-between; padding: 0; }
  .main-nav a { border: 0; padding: 0.8rem 0.25rem; font-size: 0.95rem; position: relative; }
  .main-nav a[aria-current="page"]::after,
  .main-nav a:hover::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--foil);
  }
}

/* ---------- Banner (every page hero) ---------- */
.banner { background: var(--navy); border-bottom: 1px solid var(--line); }
.banner picture, .banner img { display: block; width: 100%; }
.banner img { max-width: 1920px; margin-inline: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 720px) { .banner img { aspect-ratio: 1920 / 520; } }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding-block: clamp(2.25rem, 5vw, 4rem) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.section-head h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; }
.section-head h2 img { width: 20px; height: 20px; flex: none; }
.section-head .more { font-weight: 700; font-size: var(--step--1); }

/* ---------- Vertical tiles (home) ---------- */
.tiles { display: grid; gap: 0.75rem; grid-template-columns: repeat(2, 1fr); }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 130px; padding: 1rem;
  text-decoration: none; color: var(--navy);
  border-radius: var(--r-tile);
  background: linear-gradient(160deg, var(--white), var(--sky-deep));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tile:hover { color: var(--navy); transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--glow); }
.tile img { position: absolute; top: 0.9rem; right: 0.9rem; width: 36px; height: 36px; }
.tile h3 { font-size: var(--step-1); margin: 0 0 0.1rem; }
.tile p { font-size: 0.8rem; color: var(--muted); margin: 0; }
.tile-feature { grid-column: span 2; min-height: 200px; background: linear-gradient(150deg, var(--blue), var(--navy)); border-color: var(--navy); }
.tile-feature, .tile-feature:hover { color: var(--white); }
.tile-feature h3 { color: var(--white); font-size: var(--step-3); }
.tile-feature p { color: var(--on-navy); }
.tile-feature img { width: 72px; height: 72px; }
.tile-red { background: linear-gradient(160deg, #d2394a, var(--prosperity-red)); border-color: var(--prosperity-red); }
.tile-red, .tile-red:hover { color: var(--white); }
.tile-red h3 { color: var(--white); }
.tile-red p { color: #fde3e6; }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .tile-feature { grid-row: span 2; min-height: 280px; }
}
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Game cards: compact, 5–6 per row ---------- */
.game-grid {
  display: grid; gap: 0.6rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none; padding: 0; margin: 0;
}
@media (min-width: 600px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) { .game-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.75rem; } }
@media (min-width: 1100px) { .game-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.game-grid.landscape { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .game-grid.landscape { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .game-grid.landscape { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.game-card {
  position: relative;
  border-radius: var(--r-card);
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.game-card:hover, .game-card:focus-within { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--glow); }
.game-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--sky-deep); }
.landscape .game-card img { aspect-ratio: 4 / 3; }
.game-card .meta { padding: 0.45rem 0.55rem 0.55rem; }
.game-card h3 { font: 700 0.82rem/1.25 var(--font); letter-spacing: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card h3 a { color: var(--navy); text-decoration: none; }
.game-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.game-card .provider { font-size: 0.72rem; color: var(--muted); margin: 0.1rem 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.game-card .desc { font-size: 0.75rem; color: var(--muted); margin: 0.25rem 0 0; line-height: 1.4; }
.flag {
  position: absolute; top: 0.4rem; left: 0.4rem; z-index: 1;
  font: 800 0.65rem/1 var(--font); padding: 0.3rem 0.45rem;
  border-radius: var(--r-chip); background: var(--prosperity-red); color: var(--white);
}
.flag-new { background: var(--blue); }

/* ---------- Chips / filter bars ---------- */
.chips { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.25rem 0.1rem 0.75rem; margin: 0 0 1rem; list-style: none; scrollbar-width: thin; }
.chips a {
  display: inline-block; white-space: nowrap;
  padding: 0.4rem 0.8rem; border-radius: var(--r-chip);
  border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-size: 0.82rem; font-weight: 700;
  background: var(--white);
}
.chips a:hover { border-color: var(--blue); color: var(--blue); }
.chips a[aria-current] { background: var(--blue); color: var(--white); border-color: var(--blue); }

/* ---------- Providers: compact, 5–6 per row ---------- */
.providers { display: grid; gap: 0.6rem; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0; }
.providers li { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--white); box-shadow: var(--shadow); }
.providers img { width: 100%; aspect-ratio: 5 / 2; }
@media (min-width: 600px) { .providers { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .providers { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .providers { grid-template-columns: repeat(6, 1fr); } }

/* ---------- Promo cards ---------- */
.promo-list { display: grid; gap: 1rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .promo-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .promo-list.wide { grid-template-columns: repeat(2, 1fr); } }
.promo-card {
  display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--r-tile); overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.promo-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.promo-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.promo-body h3 { font: 700 var(--step--1)/1.3 var(--font); letter-spacing: 0; color: var(--muted); margin: 0; }
.promo-body .promo-figure { font: 800 var(--step-3)/1.1 var(--font); letter-spacing: -0.02em; color: var(--prosperity-red); margin: 0; }
.promo-body p { margin: 0; font-size: var(--step--1); }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 0.6rem; }
.promo-foot a.terms { font-size: 0.8rem; color: var(--muted); }

/* ---------- CSS-only tabs ---------- */
.tabs > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tab-labels { display: flex; gap: 0.25rem; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.tab-labels label {
  padding: 0.7rem 1rem; cursor: pointer; white-space: nowrap; font-weight: 700; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab-labels label:hover { color: var(--navy); }
.tab-panel { display: none; }
.tabs > input:nth-of-type(1):checked ~ .tab-panels > .tab-panel:nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .tab-panels > .tab-panel:nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .tab-panels > .tab-panel:nth-child(3),
.tabs > input:nth-of-type(4):checked ~ .tab-panels > .tab-panel:nth-child(4),
.tabs > input:nth-of-type(5):checked ~ .tab-panels > .tab-panel:nth-child(5),
.tabs > input:nth-of-type(6):checked ~ .tab-panels > .tab-panel:nth-child(6) { display: block; }
.tabs > input:nth-of-type(1):checked ~ .tab-labels label:nth-child(1),
.tabs > input:nth-of-type(2):checked ~ .tab-labels label:nth-child(2),
.tabs > input:nth-of-type(3):checked ~ .tab-labels label:nth-child(3),
.tabs > input:nth-of-type(4):checked ~ .tab-labels label:nth-child(4),
.tabs > input:nth-of-type(5):checked ~ .tab-labels label:nth-child(5),
.tabs > input:nth-of-type(6):checked ~ .tab-labels label:nth-child(6) { color: var(--blue); border-bottom-color: var(--blue); }
.tabs > input:nth-of-type(1):focus-visible ~ .tab-labels label:nth-child(1),
.tabs > input:nth-of-type(2):focus-visible ~ .tab-labels label:nth-child(2),
.tabs > input:nth-of-type(3):focus-visible ~ .tab-labels label:nth-child(3),
.tabs > input:nth-of-type(4):focus-visible ~ .tab-labels label:nth-child(4),
.tabs > input:nth-of-type(5):focus-visible ~ .tab-labels label:nth-child(5),
.tabs > input:nth-of-type(6):focus-visible ~ .tab-labels label:nth-child(6) { outline: 2px solid var(--blue); outline-offset: -2px; }

/* ---------- Jackpots (slots): reel odometers, chasing bulbs ---------- */
.jackpots {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--r-tile);
  color: var(--white);
  background:
    radial-gradient(60% 70% at 50% 35%, rgba(255, 196, 92, 0.28), transparent 70%),
    radial-gradient(120% 120% at 50% 0%, #d2394a 0%, var(--prosperity-red) 45%, #5e0c16 100%);
  box-shadow: 0 18px 40px rgba(179, 32, 47, 0.28), inset 0 0 0 1px rgba(243, 201, 92, 0.6);
}
/* Marquee bulbs: four dotted edges whose dots chase around the frame */
.jackpots::before {
  content: ""; position: absolute; inset: 8px; z-index: -1; pointer-events: none; border-radius: 6px;
  background-image:
    radial-gradient(circle, #fff6d6 0 2px, var(--gold-light) 2.5px 3px, transparent 3.5px),
    radial-gradient(circle, #fff6d6 0 2px, var(--gold-light) 2.5px 3px, transparent 3.5px),
    radial-gradient(circle, #fff6d6 0 2px, var(--gold-light) 2.5px 3px, transparent 3.5px),
    radial-gradient(circle, #fff6d6 0 2px, var(--gold-light) 2.5px 3px, transparent 3.5px);
  background-size: 16px 8px, 16px 8px, 8px 16px, 8px 16px;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  background-position: 0 0, 0 100%, 0 0, 100% 0;
  filter: drop-shadow(0 0 4px rgba(255, 220, 140, 0.9));
  animation: chase 0.9s linear infinite;
}
@keyframes chase {
  to { background-position: 16px 0, -16px 100%, 0 -16px, 100% 16px; }
}
.jp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.jp-head h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; color: var(--white); font-size: var(--step-3); text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); }
.jp-head h2 img { width: 34px; height: 34px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(243, 201, 92, 0.5);
  font-size: 0.8rem; font-weight: 800; color: var(--gold-light);
}
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

.jp-grand {
  position: relative; overflow: hidden;
  display: grid; justify-items: center; gap: 0.5rem;
  padding: 1.25rem 0.75rem 1.5rem; margin-bottom: 1rem;
  border-radius: var(--r-tile);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.12));
  border: 1px solid rgba(243, 201, 92, 0.55);
  text-align: center;
}
.jp-grand::after {
  /* light sweep across the grand total */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 246, 214, 0.35) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  background-position: 150% 0;
  animation: sweep 4.5s ease-in-out 1.8s infinite;
}
@keyframes sweep { 0% { background-position: 150% 0; } 45%, 100% { background-position: -60% 0; } }
.jp-label { margin: 0; font-weight: 800; font-size: var(--step-0); color: #fde3e6; max-width: none; }
.jp-currency { font-weight: 800; color: var(--gold-light); font-size: 0.4em; align-self: center; margin-right: 0.35em; }

.jp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .jp-list { grid-template-columns: repeat(3, 1fr); } }
.jp-list li {
  display: grid; gap: 0.35rem; justify-items: start;
  padding: 0.85rem 1rem; border-radius: var(--r-card);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(243, 201, 92, 0.35);
}
.jp-list .jp-label { font-size: 0.82rem; }

/* Floating chips beside the grand total (wide screens only) */
.jp-chip { display: none; position: absolute; top: 50%; margin-top: -36px; width: 72px; animation: bob 5s ease-in-out infinite; }
.jp-chip.one { left: 4%; rotate: -16deg; }
.jp-chip.two { right: 4%; width: 56px; margin-top: -28px; rotate: 12deg; animation-delay: -2.5s; }
@media (min-width: 1100px) { .jp-chip { display: block; } }
@keyframes bob { 50% { translate: 0 -10px; } }

/* Odometer: each digit is a slot reel that spins and lands; cents keep ticking */
.odo { --cell: 1.15em; display: inline-flex; align-items: flex-end; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.odo.lg { font-size: clamp(1.7rem, 0.8rem + 5vw, 4.25rem); }
.odo.sm { font-size: clamp(1.35rem, 1rem + 1vw, 1.7rem); }
.reel {
  position: relative; display: inline-block; height: var(--cell); overflow: hidden;
  margin: 0 0.03em; padding: 0 0.06em; border-radius: 0.12em;
  background: linear-gradient(180deg, #1c0307 0%, #3d0912 22%, #4d0c17 50%, #3d0912 78%, #1c0307 100%);
  box-shadow: inset 0 0 0 1px rgba(243, 201, 92, 0.35), inset 0 6px 8px -6px rgba(0, 0, 0, 0.8), inset 0 -6px 8px -6px rgba(0, 0, 0, 0.8);
}
.strip { display: block; transform: translateY(calc((var(--d) + 20) * var(--cell) * -1)); animation: spin 1.9s cubic-bezier(0.15, 0.6, 0.2, 1) both; }
.strip span { display: block; height: var(--cell); line-height: var(--cell); text-align: center; color: var(--gold-light); text-shadow: 0 0 12px rgba(255, 210, 120, 0.55); }
@keyframes spin { from { transform: translateY(0); filter: blur(1.5px); } 80% { filter: none; } }
.d0 { --d: 0; } .d1 { --d: 1; } .d2 { --d: 2; } .d3 { --d: 3; } .d4 { --d: 4; }
.d5 { --d: 5; } .d6 { --d: 6; } .d7 { --d: 7; } .d8 { --d: 8; } .d9 { --d: 9; }
.ct0 { --t: 0; } .ct1 { --t: 1; } .ct2 { --t: 2; } .ct3 { --t: 3; } .ct4 { --t: 4; }
.ct5 { --t: 5; } .ct6 { --t: 6; } .ct7 { --t: 7; } .ct8 { --t: 8; } .ct9 { --t: 9; }
.cu0 { --u: 0; } .cu1 { --u: 1; } .cu2 { --u: 2; } .cu3 { --u: 3; } .cu4 { --u: 4; }
.cu5 { --u: 5; } .cu6 { --u: 6; } .cu7 { --u: 7; } .cu8 { --u: 8; } .cu9 { --u: 9; }
/* Stagger the landing left to right */
.odo > :nth-child(3) .strip { animation-delay: 0.08s; } .odo > :nth-child(4) .strip { animation-delay: 0.16s; }
.odo > :nth-child(5) .strip { animation-delay: 0.24s; } .odo > :nth-child(6) .strip { animation-delay: 0.32s; }
.odo > :nth-child(7) .strip { animation-delay: 0.4s; } .odo > :nth-child(8) .strip { animation-delay: 0.48s; }
.odo > :nth-child(9) .strip { animation-delay: 0.56s; } .odo > :nth-child(10) .strip { animation-delay: 0.64s; }
.odo > :nth-child(11) .strip { animation-delay: 0.72s; }
/* Cents: a true odometer, units step every 0.6s and tens every 6s, starting from the shown value */
.odo .tick .strip { transform: translateY(calc(var(--x) * var(--cell) * -1)); animation: tick 6s steps(10) infinite; }
.odo .tick.units .strip { --x: var(--u); animation-delay: calc(var(--u) * -0.6s); }
.odo .tick.tens .strip { --x: var(--t); animation-duration: 60s; animation-delay: calc((var(--t) * 10 + var(--u)) * -0.6s); }
@keyframes tick { from { transform: translateY(0); } to { transform: translateY(calc(var(--cell) * -10)); } }
.odo .sep { color: var(--gold-light); padding: 0 0.02em; line-height: var(--cell); }

/* ---------- Game card "Play" overlay ---------- */
.game-card .thumb { position: relative; }
.play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(13, 43, 69, 0.55);
  opacity: 0; transition: opacity 0.2s ease;
}
.play span {
  padding: 0.5rem 1.1rem; border-radius: 999px;
  background: var(--foil); color: #2a1a00; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  transform: scale(0.9); transition: transform 0.2s ease;
}
.game-card:hover .play, .game-card:focus-within .play { opacity: 1; }
.game-card:hover .play span, .game-card:focus-within .play span { transform: none; }
.game-card .flag { z-index: 2; }
@media (hover: none) {
  /* Touch: keep a small Play pill visible so cards read as tappable */
  .play { opacity: 1; background: none; place-items: end; padding: 0.4rem; }
  .play span { padding: 0.3rem 0.65rem; font-size: 0.7rem; transform: none; }
}

/* ---------- Panels & prose ---------- */
.panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border-radius: var(--r-tile);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel > :last-child { margin-bottom: 0; }
.two-col { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
.three-col { display: grid; gap: 1rem; }
@media (min-width: 720px) { .three-col { grid-template-columns: repeat(3, 1fr); } }
.prose h2 { font-size: var(--step-2); margin-top: 1.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 0.35rem; }
.todo { display: inline-block; padding: 0.15rem 0.5rem; border-radius: var(--r-chip); background: #fff4d6; color: var(--gold-deep); font-weight: 700; font-size: 0.8rem; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--white); box-shadow: var(--shadow); }
.data-table { font-size: var(--step--1); min-width: 560px; }
.data-table caption { text-align: left; padding: 1rem 1rem 0.5rem; font: 800 var(--step-1)/1.2 var(--font); color: var(--navy); }
.data-table th, .data-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
.data-table thead th { color: var(--navy); font-weight: 800; background: var(--sky-deep); }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody tr:nth-child(even) { background: #f6fbfe; }
.data-table tbody th { font-weight: 700; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table.compact { min-width: 0; }
.odd {
  display: inline-block; min-width: 4.2em; text-align: center; padding: 0.35rem 0.5rem;
  border: 1px solid var(--line-strong); border-radius: var(--r-chip); color: var(--blue); background: var(--white);
  font-weight: 800; font-variant-numeric: tabular-nums; text-decoration: none;
}
.odd:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* Fixtures */
.fixtures { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
@media (min-width: 900px) { .fixtures { grid-template-columns: repeat(3, 1fr); } }
.fixture {
  padding: 1rem 1.1rem; border-radius: var(--r-card);
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: grid; gap: 0.6rem;
}
.fixture .league { font-size: 0.78rem; color: var(--muted); }
.fixture .teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; align-items: center; font-weight: 800; }
.fixture .teams span:last-child { text-align: right; }
.fixture .vs { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.fixture .odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.fixture .odds.two { grid-template-columns: repeat(2, 1fr); }
.fixture .odd { display: grid; min-width: 0; font-size: 0.85rem; }
.fixture .odd small { color: var(--muted); font-weight: 600; font-size: 0.7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture .odd:hover small { color: var(--on-navy); }

.sport-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .sport-list { grid-template-columns: repeat(4, 1fr); } }
.sport-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1rem; border-radius: var(--r-card); border: 1px solid var(--line);
  color: var(--navy); text-decoration: none; font-weight: 700; background: var(--white);
}
.sport-list a:hover { border-color: var(--blue); color: var(--blue); }
.sport-list .count { font-size: 0.75rem; color: var(--white); background: var(--blue); border-radius: 999px; padding: 0.15rem 0.5rem; font-variant-numeric: tabular-nums; }

/* Lottery results */
.results { display: grid; gap: 0.75rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .results { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .results { grid-template-columns: repeat(4, 1fr); } }
.result { border-radius: var(--r-tile); overflow: hidden; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); }
.result header { padding: 0.7rem 1rem; background: var(--prosperity-red); display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.result header h3 { font-size: var(--step-0); margin: 0; color: var(--white); }
.result header time { font-size: 0.78rem; color: #fde3e6; }
.result dl { margin: 0; padding: 0.75rem 1rem 1rem; display: grid; grid-template-columns: auto 1fr; gap: 0.35rem 1rem; align-items: baseline; }
.result dt { font-size: 0.8rem; color: var(--muted); }
.result dd { margin: 0; font: 800 var(--step-1)/1.2 var(--font); font-variant-numeric: tabular-nums; letter-spacing: 0.12em; color: var(--navy); text-align: right; }

/* ---------- VIP ladder ---------- */
.ladder { display: none; list-style: none; padding: 0; margin: 0; gap: 0.5rem; align-items: end; }
.ladder li {
  --h: 0;
  padding: 1rem 1rem 1.15rem;
  min-height: calc(160px + var(--h) * 30px);
  border-radius: var(--r-tile) var(--r-tile) 0 0;
  border: 1px solid var(--line); border-bottom: 4px solid var(--tier);
  background: linear-gradient(180deg, var(--tier-bg), var(--white));
  display: flex; flex-direction: column; justify-content: flex-end; gap: 0.2rem;
}
.ladder li:nth-child(2) { --h: 1; }
.ladder li:nth-child(3) { --h: 2; }
.ladder li:nth-child(4) { --h: 3; }
.ladder li:nth-child(5) { --h: 4; }
.ladder li:nth-child(6) { --h: 5; }
.ladder .step { font-weight: 800; color: var(--muted); font-size: var(--step--1); }
.ladder h3 { margin: 0; font-size: var(--step-2); color: var(--tier); }
.ladder p { margin: 0; font-size: 0.8rem; color: var(--muted); }
.ladder strong { color: var(--navy); }
.tier-bronze { --tier-bg: #f6e9dd; --tier: #9a5a24; }
.tier-silver { --tier-bg: #eef1f4; --tier: #5c6875; }
.tier-gold { --tier-bg: #fbf1d6; --tier: #8a5a00; }
.tier-platinum { --tier-bg: #dff3f0; --tier: #1f7a72; }
.tier-diamond { --tier-bg: #e1ecfb; --tier: #1f5fbf; }
.tier-black { --tier-bg: #d9e2ea; --tier: #0d2b45; }
.ladder .tier-black { background: linear-gradient(180deg, #16395a, var(--navy)); border-color: var(--navy); border-bottom-color: var(--gold); }
.ladder .tier-black h3 { color: var(--gold-light); }
.ladder .tier-black p, .ladder .tier-black .step { color: var(--on-navy-muted); }
.ladder .tier-black strong { color: var(--white); }

.ladder-accordion { display: grid; gap: 0.5rem; }
.ladder-accordion details {
  border: 1px solid var(--line); border-left: 4px solid var(--tier); border-radius: var(--r-card);
  background: var(--white);
}
.ladder-accordion summary {
  cursor: pointer; padding: 0.85rem 1rem; display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: var(--step-1); color: var(--tier); list-style: none;
}
.ladder-accordion summary::-webkit-details-marker { display: none; }
.ladder-accordion summary::after { content: "+"; color: var(--blue); }
.ladder-accordion details[open] summary::after { content: "−"; }
.ladder-accordion dl { margin: 0; padding: 0 1rem 1rem; display: grid; grid-template-columns: 1fr auto; gap: 0.4rem 1rem; font-size: var(--step--1); }
.ladder-accordion dt { color: var(--muted); }
.ladder-accordion dd { margin: 0; text-align: right; font-weight: 700; }
@media (min-width: 900px) {
  .ladder { display: grid; grid-template-columns: repeat(6, 1fr); }
  .ladder-accordion { display: none; }
}

/* ---------- Forms (auth mocks) ---------- */
.auth { display: grid; place-items: center; padding-block: clamp(2rem, 6vw, 4rem) 0; }
.auth-card {
  width: min(100%, 460px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: var(--r-tile);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  box-shadow: 0 20px 50px rgba(13, 43, 69, 0.12);
}
.auth-card h2 { font-size: var(--step-3); margin-bottom: 0.25rem; }
.auth-card > p { color: var(--muted); }
.field { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.field label { font-weight: 700; font-size: var(--step--1); }
.field .hint { font-size: 0.78rem; color: var(--muted); }
.field input, .field select {
  min-height: 46px; padding: 0.6rem 0.8rem;
  font: inherit; color: var(--navy);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--r-card);
}
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--step--1); color: var(--muted); margin-bottom: 1.25rem; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 0.15rem; flex: none; }
.phone { display: grid; grid-template-columns: 90px 1fr; gap: 0.5rem; }
.auth-alt { text-align: center; font-size: var(--step--1); color: var(--muted); margin: 1.25rem 0 0; max-width: none; }

/* ---------- Contact cards ---------- */
.contact-card { display: grid; gap: 0.5rem; justify-items: start; }
.contact-card svg { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: var(--sky-deep); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h2 { font-size: var(--step-1); margin: 0; }
.contact-card p { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* ---------- CTA band ---------- */
.cta-band {
  display: grid; gap: 1rem; align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--r-tile);
  background: linear-gradient(120deg, var(--blue), var(--navy));
  color: var(--white);
  box-shadow: var(--shadow);
}
.cta-band h2 { margin: 0; font-size: var(--step-3); color: var(--white); }
.cta-band p { margin: 0; color: var(--on-navy); }
@media (min-width: 720px) {
  .cta-band {
    grid-template-columns: 1fr auto; padding-right: 180px;
    background: url("../assets/svg/chip.svg") right -30px center / 180px no-repeat, linear-gradient(120deg, var(--blue), var(--navy));
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 6vw, 5rem);
  background: var(--navy);
  color: var(--on-navy);
  font-size: var(--step--1);
}
.site-footer::before { content: ""; display: block; height: 4px; background: var(--foil); }
.site-footer a { color: var(--on-navy); text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); }
.site-footer h2 { font: 800 0.95rem/1.2 var(--font); letter-spacing: 0; color: var(--white); margin: 0 0 0.9rem; }

.footer-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding-block: 2rem 1.75rem; border-bottom: 1px solid rgba(169, 192, 214, 0.18);
}
.site-footer .logo, .site-footer .logo:hover { color: var(--white); }
.site-footer .logo .num { color: var(--gold-light); }
.contact-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; margin: 0; padding: 0; }
.contact-pills a {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(169, 192, 214, 0.25);
  color: var(--white); font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.contact-pills a:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--gold); color: var(--white); }
.contact-pills svg { width: 18px; height: 18px; fill: none; stroke: var(--gold-light); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.footer-grid { display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(2, 1fr); padding-block: 2rem; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr 1.6fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-pay { grid-column: 1 / -1; }
@media (min-width: 900px) { .footer-pay { grid-column: auto; } }
.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .pay-grid { grid-template-columns: repeat(3, 1fr); } }
.pay-grid li { background: var(--white); border-radius: var(--r-card); overflow: hidden; }
.pay-grid img { width: 100%; aspect-ratio: 5 / 2; }

.footer-providers { padding-block: 1.75rem; border-top: 1px solid rgba(169, 192, 214, 0.18); }
.prov-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 600px) { .prov-row { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1100px) { .prov-row { grid-template-columns: repeat(9, 1fr); } }
.prov-row li { border-radius: var(--r-card); overflow: hidden; opacity: 0.85; transition: opacity 0.2s ease; }
.prov-row li:hover { opacity: 1; }
.prov-row img { width: 100%; aspect-ratio: 5 / 2; }

.compliance {
  display: grid; gap: 1rem; padding-block: 1.5rem;
  border-top: 1px solid rgba(169, 192, 214, 0.18);
}
@media (min-width: 900px) { .compliance { grid-template-columns: 1.3fr 1fr; align-items: center; } }
.licence {
  display: flex; gap: 1rem; align-items: center;
  padding: 0.9rem 1rem; border-radius: var(--r-tile);
  background: rgba(255, 255, 255, 0.05); border: 1px dashed rgba(217, 169, 62, 0.55);
}
.licence img { width: 110px; border-radius: var(--r-chip); flex: none; }
.licence p { margin: 0; color: var(--on-navy-muted); }
.licence strong { color: var(--white); }
.rg-note { display: flex; gap: 0.85rem; align-items: center; color: var(--on-navy-muted); }
.rg-note p { margin: 0; }
.site-footer .rg-note a { color: var(--gold-light); text-decoration: underline; }
.site-footer .badge-18 { color: var(--white); border-color: #e0475a; width: 42px; height: 42px; font-size: 0.8rem; }

.footer-bottom { background: var(--navy-2); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; padding-block: 1rem; }
.footer-bottom p { margin: 0; color: var(--on-navy-muted); max-width: none; font-size: 0.8rem; }

/* ---------- Mobile bottom bar ---------- */
.bottom-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(13, 43, 69, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-bar a {
  display: grid; justify-items: center; gap: 0.15rem;
  padding: 0.5rem 0.25rem 0.55rem; min-height: 56px;
  color: var(--muted); text-decoration: none; font-size: 0.72rem; font-weight: 700;
}
.bottom-bar a:hover, .bottom-bar a:focus-visible { color: var(--blue); }
.bottom-bar svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 1.8; }
.bottom-bar .deposit { color: #2a1a00; background: var(--foil); }
.bottom-bar .deposit svg { stroke: #2a1a00; }
.bottom-bar .deposit:hover { color: #2a1a00; }
body { padding-bottom: 64px; }
@media (min-width: 900px) {
  .bottom-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .strip { filter: none; }
  .game-card:hover, .tile:hover { transform: none; }
}
