/* =========================================================================
   ThePUNTER — Design System  ·  "Camarote VIP"  ·  Navy-night & Platinum
   Tokens, reset, typography, primitives.
   ========================================================================= */

:root {
  /* ---- Surfaces (navy-night) ---- */
  --bg-0: #060912;          /* page base */
  --bg-1: #0a0f1e;          /* section */
  --bg-2: #0e1426;          /* card */
  --bg-3: #131b32;          /* elevated card / hover */
  --bg-glass: rgba(14, 20, 38, 0.72);

  /* ---- Lines ---- */
  --line: rgba(174, 188, 224, 0.10);
  --line-2: rgba(174, 188, 224, 0.18);
  --line-strong: rgba(174, 188, 224, 0.30);

  /* ---- Text (platinum) ---- */
  --ink: #eef1fa;
  --ink-2: #aab2cf;
  --ink-3: #717a9c;
  --ink-4: #4d5475;

  /* ---- Accents ---- */
  --silver: #cfd6ea;
  --silver-deep: #8b97bd;
  --gold: #d8b977;          /* champagne — reserved for VIP / premium */
  --gold-deep: #b8954e;
  --azure: #5f8bff;         /* interactive / live / adrenaline */
  --azure-soft: rgba(95, 139, 255, 0.14);
  --win: #34d98b;
  --win-soft: rgba(52, 217, 139, 0.12);
  --loss: #ff5d6c;
  --loss-soft: rgba(255, 93, 108, 0.12);
  --void: #ffb648;          /* push / void */

  /* ---- Brand gradient strokes ---- */
  --grad-gold: linear-gradient(135deg, #f0d89b 0%, #d8b977 38%, #a87f3e 100%);
  --grad-silver: linear-gradient(135deg, #f2f5ff 0%, #cfd6ea 40%, #8b97bd 100%);
  --grad-azure: linear-gradient(135deg, #8fb0ff 0%, #5f8bff 55%, #3b63d6 100%);

  /* ---- Type ---- */
  --serif: "Bodoni Moda", "Playfair Display", Georgia, serif;
  --sans: "Sora", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* ---- Radius ---- */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* ---- Shadow / glow ---- */
  --sh-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 40px -24px rgba(0,0,0,0.8);
  --sh-pop: 0 24px 70px -28px rgba(0,0,0,0.85);
  --glow-gold: 0 0 0 1px rgba(216,185,119,0.35), 0 18px 50px -22px rgba(216,185,119,0.4);
  --glow-azure: 0 0 0 1px rgba(95,139,255,0.4), 0 16px 44px -22px rgba(95,139,255,0.45);

  /* ---- Layout ---- */
  --maxw: 1240px;
  --gut: clamp(18px, 4vw, 46px);
  --nav-h: 68px;
}

/* THEME VARIANTS (Tweaks-driven) ----------------------------------------- */
[data-theme="emerald"] {
  --bg-0: #04100a; --bg-1: #061509; --bg-2: #0a1c10; --bg-3: #0f2717;
  --line: rgba(120,210,160,0.12); --line-2: rgba(120,210,160,0.2);
  --gold: #6fe6a6; --gold-deep: #36b977; --azure: #44d6a0;
  --grad-gold: linear-gradient(135deg,#b7f5d4 0%,#5fe0a0 45%,#2a9d6e 100%);
  --silver: #d6e9dd;
}
[data-theme="onyx"] {
  --bg-0: #0a0a0c; --bg-1: #0f0f12; --bg-2: #15151a; --bg-3: #1d1d24;
  --gold: #e3c074; --gold-deep: #b8954e; --azure: #c9a24a;
  --grad-gold: linear-gradient(135deg,#f7e6b0 0%,#e3c074 42%,#a87f3e 100%);
  --grad-azure: linear-gradient(135deg,#f7e6b0 0%,#e3c074 50%,#a87f3e 100%);
  --silver: #e8e3d4;
}
[data-theme="crimson"] {
  --bg-0: #0c0608; --bg-1: #12080b; --bg-2: #1a0d11; --bg-3: #251217;
  --gold: #ff8a5c; --gold-deep: #d2542f; --azure: #ff5d6c;
  --grad-gold: linear-gradient(135deg,#ffc6a0 0%,#ff8a5c 45%,#d2542f 100%);
  --silver: #f0d8d4;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Luxe page atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(95,139,255,0.10), transparent 60%),
    radial-gradient(760px 460px at 8% 6%, rgba(216,185,119,0.07), transparent 62%);
  pointer-events: none; z-index: 0;
}
/* Fine film grain for that premium box texture */
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.022; pointer-events: none; z-index: 0; mix-blend-mode: screen;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input { font: inherit; }
::selection { background: rgba(216,185,119,0.28); color: #fff; }

/* ---- Type scale ---- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}
.display {
  font-family: var(--serif);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.012em;
  font-optical-sizing: auto;
}
h1.display { font-size: clamp(40px, 7vw, 88px); }
h2.display { font-size: clamp(30px, 4.6vw, 56px); }
h3.display { font-size: clamp(22px, 3vw, 34px); }

.lead { color: var(--ink-2); font-size: clamp(15px, 1.5vw, 18.5px); line-height: 1.62; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.text-grad-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-grad-silver { background: var(--grad-silver); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- Layout primitives ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); position: relative; z-index: 1; }
.section { padding-block: clamp(64px, 9vw, 124px); position: relative; z-index: 1; }
.section--tight { padding-block: clamp(44px, 6vw, 80px); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }

.section-head { max-width: 720px; margin-bottom: clamp(34px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
.section-head .eyebrow { display: inline-block; margin-bottom: 18px; }
.section-head p.lead { margin-top: 18px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--gold {
  background: var(--grad-gold); color: #1a1206; box-shadow: var(--glow-gold);
  font-weight: 700;
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(216,185,119,0.6), 0 26px 60px -22px rgba(216,185,119,0.6); }
.btn--ghost { border-color: var(--line-2); color: var(--ink); background: rgba(255,255,255,0.015); }
.btn--ghost:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.045); transform: translateY(-2px); }
.btn--dark { background: var(--bg-3); border-color: var(--line); color: var(--ink); }
.btn--dark:hover { background: var(--bg-2); border-color: var(--line-2); transform: translateY(-2px); }
.btn--sm { padding: 9px 15px; font-size: 13px; }
.btn--block { width: 100%; }

/* ---- Chips / badges ---- */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--r-pill);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--ink-2); background: rgba(255,255,255,0.02);
}
.chip--vip { border-color: rgba(216,185,119,0.4); color: var(--gold); background: rgba(216,185,119,0.07); }
.chip--live { border-color: rgba(255,93,108,0.4); color: #ff8a93; background: rgba(255,93,108,0.08); }
.chip--win { color: var(--win); border-color: rgba(52,217,139,0.35); background: var(--win-soft); }
.chip--loss { color: var(--loss); border-color: rgba(255,93,108,0.35); background: var(--loss-soft); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 currentColor; }
.dot--pulse { animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,93,108,.5);} 70%{ box-shadow:0 0 0 7px rgba(255,93,108,0);} 100%{box-shadow:0 0 0 0 rgba(255,93,108,0);} }

/* ---- Cards ---- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.018), rgba(255,255,255,0) 36%), var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 18%, var(--line-2) 82%, transparent); border: 0; }

/* Stat number */
.stat-num { font-family: var(--serif); font-weight: 600; line-height: 1; letter-spacing: -0.01em; }

/* Pitch / placeholder texture used by image slots */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 12px, rgba(255,255,255,0) 12px 24px),
    var(--bg-3);
  border: 1px solid var(--line);
  display: grid; place-items: center;
}
.ph__tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3); padding: 6px 12px; border: 1px dashed var(--line-2); border-radius: var(--r-pill);
  background: var(--bg-1);
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;} }

.hide { display: none !important; }

/* ── Simulator ──────────────────────────────────────────────────────────── */
.sim-controls { padding: var(--sp-5); margin-bottom: var(--sp-5); }
.sim-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.sim-label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); flex: 1 1 140px;
}
.sim-input {
  background: var(--bg-3); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 8px 12px;
  color: var(--ink-1); font-size: 15px; font-family: var(--mono);
  width: 100%; outline: none;
}
.sim-input:focus { border-color: var(--accent); }
.sim-wrap { display: grid; grid-template-columns: 1fr 280px; gap: var(--sp-5); align-items: start; }
@media (max-width: 768px) { .sim-wrap { grid-template-columns: 1fr; } }
.sim-canvas { width: 100%; height: 280px; border-radius: var(--r-md); display: block; }
.sim-stats {
  display: flex; flex-direction: column; gap: var(--sp-2);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-4);
}
.sim-stat { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.sim-stat:last-child { border-bottom: none; }
.sim-stat__k { font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.sim-stat__v { font-size: 13px; font-family: var(--mono); font-weight: 600; color: var(--ink-1); }
.sim-stat__v.accent { color: var(--accent); }
.sim-stat__v.warn { color: #f87171; }
.sim-legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-3); font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.sim-leg { display: flex; align-items: center; gap: 6px; }
.sim-leg::before { content: ""; display: inline-block; width: 20px; height: 10px; border-radius: 2px; }
.sim-leg--band90::before { background: rgba(0,214,143,0.15); }
.sim-leg--band75::before { background: rgba(0,214,143,0.28); }
.sim-leg--median::before { background: #00d68f; height: 3px; }
.sim-leg--be::before { background: rgba(255,255,255,0.25); height: 1px; }

/* ── Live scores ─────────────────────────────────────────────────────────── */
.ls-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#ff4757; margin-right:6px; animation:lsPulse 1.4s infinite; vertical-align:middle; }
@keyframes lsPulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.7)} }
.ls-track { display:flex; gap:12px; overflow-x:auto; padding-bottom:8px; scroll-snap-type:x mandatory; }
.ls-track::-webkit-scrollbar { height:6px; }
.ls-track::-webkit-scrollbar-thumb { background:var(--line-2); border-radius:3px; }
.ls-card { flex:0 0 200px; scroll-snap-align:start; background:var(--bg-2); border:1px solid var(--line); border-radius:var(--r-md); padding:14px; }
.ls-league { display:flex; align-items:center; gap:6px; font-size:11px; color:var(--ink-3); font-family:var(--mono); text-transform:uppercase; letter-spacing:.06em; margin-bottom:10px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ls-flag { width:16px; height:auto; border-radius:2px; }
.ls-row { display:flex; justify-content:space-between; align-items:center; padding:3px 0; }
.ls-team { font-size:14px; color:var(--ink-1); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:140px; }
.ls-score { font-size:16px; font-weight:700; font-family:var(--mono); color:var(--gold); margin-left:8px; }
.ls-min { margin-top:8px; font-size:12px; font-family:var(--mono); color:var(--ink-3); }
.ls-min.is-live { color:#ff4757; font-weight:600; }

/* ── Promo banner (Mundial 2026) ─────────────────────────────────────────── */
.promo-banner {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; font-size: 13.5px; color: #1a1206;
  background: linear-gradient(90deg, #d8b977, #f0d9a6 50%, #d8b977);
  border-bottom: 1px solid rgba(0,0,0,0.18);
  flex-wrap: wrap; text-align: center;
}
.promo-banner__ball { font-size: 16px; }
.promo-banner__cta {
  margin-left: 10px; padding: 3px 12px; border-radius: 99px;
  background: #1a1206; color: #f0d9a6; font-weight: 700; font-size: 12.5px;
  text-decoration: none;
}
.promo-banner__cta:hover { filter: brightness(1.25); }

/* fonte da notícia no ticker */
.ticker__src { color: var(--gold); font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; margin-right: 4px; }
