/* ============================================================
   BK888 Esports — Sports & Esports Betting Casino
   Direction: aligned to bk888casino.com — light canvas, gold
   accent (#E8A800), navy structure, emerald + electric-blue
   secondaries, rounded cards, bold Montserrat display.
   ============================================================ */

:root {
  /* ---- palette (brand) ---- */
  --bg:        #ffffff;
  --bg-2:      #f3f6fb;   /* light section */
  --surface:   #ffffff;   /* cards */
  --ink:       #14283f;   /* deep navy text */
  --navy:      #1a3a52;   /* brand navy */
  --navy-deep: #0e1f31;   /* dark blocks / overlay / footer */
  --muted:     #5d6b7d;
  --line:      #e3e9f1;
  --gold:      #e8a800;   /* primary accent */
  --gold-deep: #c88f00;
  --gold-soft: #fbf0d2;
  --emerald:   #10b981;   /* secondary / live / wins */
  --blue:      #1b4dff;   /* secondary / links */

  /* ---- type ---- */
  --font-display: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --text-hero: clamp(2.6rem, 1rem + 6.4vw, 6rem);
  --text-h2:   clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem);
  --text-h3:   clamp(1.2rem, 1rem + 0.8vw, 1.55rem);
  --text-base: clamp(0.98rem, 0.94rem + 0.2vw, 1.08rem);

  /* ---- space / motion ---- */
  --shell: min(1240px, 92vw);
  --space-section: clamp(4rem, 3rem + 6vw, 8rem);
  --radius: 14px;
  --radius-lg: 20px;
  --dur: 260ms;
  --dur-slow: 640ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 6px 20px -12px rgba(20, 40, 63, 0.35);
  --shadow-card: 0 18px 50px -28px rgba(20, 40, 63, 0.45);
  --glow-gold: 0 14px 36px -14px rgba(232, 168, 0, 0.6);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--navy-deep); }

.shell { width: var(--shell); margin-inline: auto; }
.accent-gold { color: var(--gold); }
.label {
  font-family: var(--font-display); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold-deep); display: inline-flex; align-items: center; gap: 0.55rem;
}
.label::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--gold); }

/* ============================================================
   BUTTONS — rounded, bold
   ============================================================ */
.btn {
  --pad-y: 0.78rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-display); font-weight: 700; font-size: 0.94rem;
  letter-spacing: 0.005em; border-radius: var(--radius); cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-lg { --pad-y: 0.95rem; --pad-x: 2rem; font-size: 1.02rem; }
.btn-solid { background: var(--gold); color: var(--navy-deep); }
.btn-solid:hover { background: var(--gold-deep); transform: translateY(-3px); box-shadow: var(--glow-gold); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-3px); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--gold-deep); }
.btn-line { border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-deep); transform: translateY(-3px); }
.btn-line-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-line-light:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9); border-bottom: 1px solid transparent; transition: box-shadow var(--dur), border-color var(--dur), backdrop-filter var(--dur); }
.site-header[data-scrolled] { backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; padding: 0.9rem 0; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-mark { display: grid; place-items: center; color: var(--gold); transition: transform var(--dur-slow) var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 0.92; }
.brand-text strong { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: 0.01em; color: var(--ink); }
.brand-text em { font-style: normal; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4em; color: var(--gold-deep); margin-top: 3px; }

.primary-nav { display: flex; gap: 1.8rem; margin-inline: auto; }
.primary-nav a { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; position: relative; padding: 0.2rem 0; color: var(--muted); transition: color var(--dur) var(--ease); }
.primary-nav a::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0; border-radius: 2px; background: var(--gold); transition: width var(--dur) var(--ease); }
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 0.5rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--ink); transition: transform var(--dur) var(--ease), opacity var(--dur); }

/* ============================================================
   HERO — full-bleed image, dark overlay, white text
   ============================================================ */
.hero { position: relative; isolation: isolate; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--navy-deep) 8%, rgba(14,31,49,0.82) 42%, rgba(14,31,49,0.45) 100%); }
.hero-inner { padding: clamp(3.5rem, 2rem + 8vw, 8rem) 0 clamp(3.5rem, 2rem + 7vw, 7rem); max-width: 40ch; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-display); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0.4rem 0.95rem; background: rgba(255,255,255,0.08); }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(16,185,129,0.3); animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } }
.hero h1 { font-size: var(--text-hero); font-weight: 800; margin: 1.3rem 0 1.3rem; letter-spacing: -0.03em; line-height: 1; }
.hero h1 .gold { color: var(--gold); }
.hero-lede { color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.9rem 0 2rem; }
.hero-trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: 0.9rem; color: rgba(255,255,255,0.85); }
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust span { color: var(--gold); }

/* ============================================================
   ODDS TICKER (marquee)
   ============================================================ */
.ticker { border-bottom: 1px solid var(--line); background: var(--navy-deep); overflow: hidden; }
.ticker-track { display: flex; gap: 2.4rem; width: max-content; padding: 0.75rem 0; animation: scroll-x 38s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; white-space: nowrap; color: rgba(255,255,255,0.65); }
.ticker-item .sport { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--emerald); font-size: 0.76rem; }
.ticker-item .match { color: #fff; }
.ticker-item .odd { font-family: var(--font-display); font-weight: 800; color: var(--gold); }
@keyframes scroll-x { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ============================================================
   STATS
   ============================================================ */
.stats { padding: clamp(3rem, 2rem + 3vw, 4.5rem) 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); box-shadow: var(--shadow-sm); }
.stat-num { font-family: var(--font-display); font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.stat-num .accent { color: var(--gold); }
.stat-label { font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 0.6rem; font-weight: 500; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head { margin-bottom: clamp(2.2rem, 1.5rem + 2.5vw, 3.4rem); }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.section-head h2 { font-size: var(--text-h2); margin-top: 0.9rem; }
.section-head p { color: var(--muted); max-width: 42ch; margin-top: 0.5rem; }

/* ============================================================
   MARKETS — bento
   ============================================================ */
.markets { padding: var(--space-section) 0; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(180px, auto); gap: 1rem; }
.tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; color: #fff; isolation: isolate; box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur); }
.tile-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(175deg, rgba(14,31,49,0.15) 0%, rgba(14,31,49,0.5) 50%, rgba(14,31,49,0.9) 100%); }
.tile--lg { grid-column: span 2; grid-row: span 2; }
.tile--wide { grid-column: span 2; }
.tile .tag { font-family: var(--font-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.tile h3 { font-size: var(--text-h3); margin-top: auto; padding-top: 1.2rem; }
.tile--lg h3 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); }
.tile p { color: rgba(255,255,255,0.85); font-size: 0.92rem; margin-top: 0.4rem; }
.tile .go { margin-top: 1rem; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; transition: color var(--dur), padding var(--dur); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.tile:hover .tile-bg { transform: scale(1.06); }
.tile:hover .go { color: var(--gold); padding-left: 4px; }

/* ============================================================
   ESPORTS SPOTLIGHT
   ============================================================ */
.esports { padding: var(--space-section) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.title-chips { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }
.title-chip { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color var(--dur), transform var(--dur); }
.title-chip b { color: var(--gold-deep); font-weight: 700; }
.title-chip:hover { border-color: var(--gold); transform: translateY(-2px); }
.title-chip .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: var(--space-section) 0; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: border-color var(--dur), transform var(--dur), box-shadow var(--dur); }
.step:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-card); }
.step-no { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--navy-deep); background: var(--gold); width: 2.2rem; height: 2.2rem; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1.2rem; }
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.92rem; }

/* ============================================================
   PROMO
   ============================================================ */
.promo { padding: 0 0 var(--space-section); }
.promo-inner { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: linear-gradient(120deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: clamp(2.4rem, 1.5rem + 4vw, 5rem); display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 2.5rem; align-items: center; }
.promo-inner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 130% at 100% 100%, rgba(232,168,0,0.32), transparent 55%), radial-gradient(70% 120% at 0% 0%, rgba(27,77,255,0.28), transparent 60%); }
.promo-copy { position: relative; }
.promo-copy .label { color: var(--gold); }
.promo-copy .label::before { background: var(--gold); }
.promo-copy h2 { font-size: var(--text-h2); margin: 0.9rem 0 1rem; }
.promo-sub { color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 2rem; }
.promo-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.promo-badge { position: relative; justify-self: end; text-align: right; }
.promo-badge .pct { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.4rem, 2rem + 6vw, 6.4rem); line-height: 0.85; color: var(--gold); letter-spacing: -0.03em; }
.promo-badge .lbl { font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.7); font-weight: 600; }

/* ============================================================
   WINNERS
   ============================================================ */
.winners { padding: 0 0 var(--space-section); }
.win-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.win-card { flex: 1 1 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; align-items: center; gap: 0.9rem; box-shadow: var(--shadow-sm); }
.win-card .who { font-family: var(--font-display); font-weight: 700; }
.win-card .what { font-size: 0.82rem; color: var(--muted); }
.win-card .amt { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--emerald); white-space: nowrap; }
.win-card .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); flex: none; box-shadow: 0 0 0 4px rgba(16,185,129,0.18); }

/* ============================================================
   FOOTER — dark navy
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.72); padding: clamp(3rem, 2rem + 4vw, 5rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 2.5rem; }
.brand--footer { margin-bottom: 1.2rem; }
.brand--footer .brand-text strong { color: #fff; }
.footer-blurb { color: rgba(255,255,255,0.6); max-width: 34ch; margin-bottom: 1.2rem; font-size: 0.92rem; }
.age-badge { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 10px; border: 2px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-weight: 800; font-size: 0.9rem; }
.footer-col h4 { font-family: var(--font-display); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #fff; margin-bottom: 1rem; font-weight: 700; }
.footer-col a { display: block; color: rgba(255,255,255,0.6); padding: 0.32rem 0; font-size: 0.92rem; transition: color var(--dur), padding var(--dur); }
.footer-col a:hover { color: var(--gold); padding-left: 5px; }
.compliance { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; gap: clamp(1.4rem, 1rem + 3vw, 3.5rem); flex-wrap: wrap; }
.mark-pagcor { height: 50px; width: auto; }
.compliance-message { padding: 0.5rem clamp(1.4rem, 1rem + 2vw, 3rem); border-left: 1px solid rgba(255,255,255,0.14); border-right: 1px solid rgba(255,255,255,0.14); }
.cm-top { font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(255,255,255,0.6); }
.cm-main { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); text-transform: uppercase; color: #fff; }
.cm-main span { color: var(--gold); }
.compliance-mail { margin-left: auto; color: var(--blue); font-weight: 600; }
.compliance-mail:hover { color: var(--gold); }
.footer-bottom { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.responsible { color: rgba(255,255,255,0.55); font-size: 0.8rem; max-width: 62ch; }
.copy { color: rgba(255,255,255,0.55); font-size: 0.8rem; }

/* ---- reveal ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile--lg { grid-column: span 2; grid-row: span 1; }
  .tile--wide { grid-column: span 2; }
  .steps { grid-template-columns: 1fr 1fr; }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-badge { justify-self: start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 760px) {
  .primary-nav, .header-cta { display: none; }
  .primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1.5rem var(--shell); gap: 1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-card); }
  .nav-toggle { display: flex; margin-left: auto; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bento { grid-template-columns: 1fr; }
  .tile--lg, .tile--wide { grid-column: span 1; }
  .compliance { flex-direction: column; align-items: flex-start; }
  .compliance-message { border: 0; padding-inline: 0; border-top: 1px solid rgba(255,255,255,0.14); border-bottom: 1px solid rgba(255,255,255,0.14); padding-block: 0.8rem; }
  .compliance-mail { margin-left: 0; }
}
@media (max-width: 480px) {
  .stats-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
