/* ==========================================================================
   Futebol Virtual - design system
   Degrade #021013 -> #1C302E (esquerda p/ direita), destaque #1FD655
   Estrutura de layout inspirada em games/_lobby (sidebar, topbar, footer, bottom-nav)
   ========================================================================== */
:root {
  --bg-a: #021013;
  --bg-b: #1c302e;
  --accent: #1fd655;
  --accent-ink: #04140a;
  --accent-dim: rgba(31, 214, 85, 0.14);
  --accent-glow: rgba(31, 214, 85, 0.35);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.38);
  --panel: rgba(2, 16, 19, 0.62);
  --panel-2: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(31, 214, 85, 0.42);
  --danger: #ff6464;
  --warn: #f6c453;
  --radius: 16px;
  --radius-sm: 10px;
  --side-w: 280px;
  --bar-h: 64px;
  --font-display: "Saira Condensed", "Arial Narrow", sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 400 15px/1.55 var(--font-body);
  background: linear-gradient(90deg, var(--bg-a), var(--bg-b)) fixed;
  background-color: var(--bg-a);
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.mono { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- botoes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em; white-space: nowrap;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--accent); color: #000; box-shadow: 0 0 0 0 var(--accent-glow); }
.btn-primary:hover { box-shadow: 0 0 22px var(--accent-glow); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--accent-dim); }
.btn-danger { background: transparent; border-color: rgba(255, 100, 100, 0.5); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 100, 100, 0.12); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2);
}
.icon-btn:hover { border-color: var(--line-strong); }

/* ---------- paineis ---------- */
.card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.card { padding: 22px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.card-title .ico { color: var(--accent); }
.eyebrow { font: 700 12px/1 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 18px;
  background: rgba(2, 16, 19, 0.7); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 18px; z-index: 40;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #000; box-shadow: 0 0 18px var(--accent-glow);
}
.brand-mark .ico { width: 24px; height: 24px; stroke-width: 2; }
.brand-name { display: block; font: 700 22px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.brand-name b { color: var(--accent); }
.brand-tag { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }
.side-label { margin: 6px 8px -6px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); font-weight: 700; }
.side-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: var(--muted); font-weight: 600; border: 1px solid transparent;
}
.side-nav a:hover { color: var(--text); background: var(--panel-2); }
.side-nav a.is-active { color: var(--text); background: var(--accent-dim); border-color: var(--line-strong); }
.side-nav a.is-active .ico { color: var(--accent); }
.side-club { margin-top: auto; padding: 16px; }
.side-club h3 { font-size: 22px; margin: 4px 0 8px; }
.side-club-top { display: flex; justify-content: space-between; align-items: flex-start; }
.side-club .seal { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 17px var(--font-display); color: #000; background: var(--accent); }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; box-shadow: 0 0 10px var(--accent-glow); transition: width 0.5s; }

.content-col { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--bar-h); padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(2, 16, 19, 0.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px);
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 12px; }
.topbar-drawer-btn { display: none; }
.crumb { font: 700 13px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.crumb b { color: var(--accent); }
.wallet-chip { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--accent-dim); }
.wallet-chip .ico { color: var(--accent); }
.wallet-label { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.1; }
.wallet-value { display: block; font: 700 18px/1.1 var(--font-display); }
.avatar-wrap { position: relative; }
.avatar-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--panel-2); font: 700 17px var(--font-display); }
.menu {
  position: absolute; right: 0; top: 52px; min-width: 200px; padding: 8px; border-radius: 14px;
  background: #07191a; border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}
.menu a, .menu button {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  background: none; border: 0; text-align: left; color: var(--muted); font-weight: 600;
}
.menu a:hover, .menu button:hover { background: var(--accent-dim); color: var(--text); }
.content-body { padding: 28px; display: flex; flex-direction: column; gap: 26px; flex: 1; }

/* ---------- hero ---------- */
.hero { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); }
.hero-track { display: flex; transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
.hero-slide { position: relative; flex: 0 0 100%; min-height: 340px; display: flex; align-items: center; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2, 16, 19, 0.92) 8%, rgba(2, 16, 19, 0.35) 62%, transparent); }
.hero-slide.align-right::after { background: linear-gradient(270deg, rgba(2, 16, 19, 0.92) 8%, rgba(2, 16, 19, 0.35) 62%, transparent); }
.hero-copy { position: relative; z-index: 1; padding: 36px 48px; max-width: 560px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hero-slide.align-right .hero-copy { margin-left: auto; align-items: flex-end; text-align: right; }
.hero-copy h2 { font-size: clamp(30px, 4vw, 52px); text-transform: uppercase; }
.hero-copy h2 b { color: var(--accent); }
.hero-copy p { color: var(--muted); margin: 0; font-size: 16px; }
.hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(2, 16, 19, 0.7); display: grid; place-items: center; }
.hero-arrow.prev { left: 14px; } .hero-arrow.prev .ico { transform: rotate(180deg); }
.hero-arrow.next { right: 14px; }
.hero-arrow:hover { background: var(--accent); color: #000; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.hero-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, 0.4); padding: 0; transition: width 0.25s; }
.hero-dots button.is-active { width: 30px; background: var(--accent); }

/* ---------- atalhos / kpis ---------- */
.shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; }
.shortcut { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-weight: 700; font-size: 13px; text-align: center; transition: border-color 0.2s, transform 0.15s; }
.shortcut:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.shortcut-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-dim); color: var(--accent); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.kpi { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.kpi small { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.kpi strong { display: block; font: 700 30px/1.15 var(--font-display); margin-top: 6px; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi.is-up strong { color: var(--accent); } .kpi.is-down strong { color: var(--danger); }

/* ---------- jogos: tabs de liga ---------- */
.arena { padding: 0; overflow: hidden; border-color: var(--line-strong); }
.arena-head { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.arena-head h2 { font-size: 30px; text-transform: uppercase; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font: 700 12px var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.live-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.league-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 18px 24px 0; }
.league-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px 12px 0 0;
  background: var(--panel-2); border: 1px solid var(--line); border-bottom: 0; color: var(--muted); font-weight: 700;
}
.league-tab b { font: 700 15px var(--font-display); letter-spacing: 0.06em; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.league-tab small { display: block; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.league-tab:hover { color: var(--text); }
.league-tab.is-on { color: var(--text); background: rgba(31, 214, 85, 0.12); border-color: var(--line-strong); }
.league-tab.is-on b { background: var(--accent); color: #000; }
.arena-body { border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0; }
.arena-left { padding: 22px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.arena-right { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.screen { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 1px solid var(--line); }
.screen video, .screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.screen-status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: rgba(0, 0, 0, 0.55); font-weight: 600; pointer-events: none; }

/* placar estilo painel de estadio */
.green { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, rgba(31, 214, 85, 0.09), rgba(2, 16, 19, 0.7)); position: relative; overflow: hidden; }
.green-head { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.green-head strong { font: 700 clamp(20px, 2.6vw, 30px)/1.1 var(--font-display); text-transform: uppercase; }
.green-body { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 96px; justify-content: center; }
.green-btn { min-width: 220px; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; box-shadow: 0 0 22px var(--accent-glow); }
.green-btn:disabled { box-shadow: none; }
.btn.green-btn.is-locked, .green-result .btn.is-locked { background: var(--panel-2); color: var(--faint); border: 1px solid var(--line); box-shadow: none; animation: none; cursor: not-allowed; }
.green-btn:not(:disabled) { animation: green-pulse 1.6s ease-in-out infinite; }
@keyframes green-pulse { 50% { box-shadow: 0 0 34px var(--accent-glow), 0 0 0 5px var(--accent-dim); } }
.green-info { margin: 0; font-size: 13px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.green-note { margin: 0; font-size: 11px; color: var(--faint); text-align: center; }
.green-scan { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.green-scan-msg { margin: 0; font: 700 13px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); min-height: 1.4em; text-align: center; }
.green-radar { position: relative; width: 64px; height: 64px; border-radius: 50%; border: 2px solid var(--line-strong); background: radial-gradient(circle, var(--accent-dim), transparent 68%); }
.green-radar::before, .green-radar::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 1px solid var(--line-strong); }
.green-radar::after { inset: 27px; background: var(--accent); border: 0; box-shadow: 0 0 14px var(--accent-glow); }
.green-radar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(31, 214, 85, 0.55), transparent 28%); animation: spin 1.1s linear infinite; }
.green-bar { width: 100%; max-width: 360px; height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.green-bar span { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); transition: width 0.1s linear; }
.green-result { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.green-result.is-pop { animation: green-pop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
@keyframes green-pop { from { transform: scale(0.88); opacity: 0; } to { transform: none; opacity: 1; } }
.green-pick { font: 700 clamp(26px, 4vw, 38px)/1.05 var(--font-display); text-transform: uppercase; color: var(--accent); text-shadow: 0 0 22px var(--accent-glow); }
.spin { display: block; margin: 0 auto 6px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tape { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.slip { padding: 9px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); background: var(--panel-2); font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.slip b { font: 700 20px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.slip.is-new { border-style: solid; background: var(--accent-dim); }

.countdown { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.countdown b { font: 700 28px var(--font-display); color: var(--accent); font-variant-numeric: tabular-nums; }
.match-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.match-line h3 { font-size: 22px; text-transform: uppercase; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 99px; font: 700 11px var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--line-strong); }
.tag.warn { color: var(--warn); border-color: rgba(246, 196, 83, 0.45); background: rgba(246, 196, 83, 0.1); }
.tag.danger { color: var(--danger); border-color: rgba(255, 100, 100, 0.45); background: rgba(255, 100, 100, 0.1); }
.tag.neutral { color: var(--muted); border-color: var(--line); background: var(--panel-2); }

/* odds */
.odds-switch { display: flex; gap: 6px; }
.odds-switch button { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 13px; color: var(--muted); }
.odds-switch button.is-on { background: var(--accent); color: #000; border-color: var(--accent); }
.markets { display: flex; flex-direction: column; gap: 10px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.market { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); overflow: hidden; }
.market > summary { list-style: none; cursor: pointer; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.market > summary::-webkit-details-marker { display: none; }
.market > summary::after { content: "+"; color: var(--accent); font-size: 18px; }
.market[open] > summary::after { content: "–"; }
.market-body { padding: 4px 12px 12px; display: grid; gap: 8px; }
.odd-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; }
.odd-row.wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); }
.odd {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; padding: 6px 4px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(2, 16, 19, 0.7); font-size: 12px; color: var(--muted); text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.odd b { font: 700 18px var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.odd:not(:disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
.odd.is-picked { background: var(--accent); border-color: var(--accent); color: #000; }
.odd.is-picked b { color: #000; }
.odd:disabled { opacity: 0.55; cursor: default; }
.odd.is-won { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.odd.is-won b { color: var(--accent); }
.odd.is-lost { opacity: 0.45; }

/* boletim */
.betslip { position: sticky; bottom: 0; padding: 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: #061a1c; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35); display: grid; gap: 10px; }
.betslip h4 { font-size: 18px; display: flex; justify-content: space-between; align-items: center; }
.slip-pick { font-size: 13px; color: var(--muted); }
.slip-pick strong { color: var(--text); display: block; font-size: 15px; }
.stake-row { display: flex; gap: 8px; }
.stake-row .field { flex: 1; }
.quick-stakes { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-stakes button { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 12px; }
.quick-stakes button:hover { border-color: var(--accent); }
.slip-sum { display: flex; justify-content: space-between; font-size: 14px; }
.slip-sum b { font: 700 20px var(--font-display); color: var(--accent); }
.hint { font-size: 12px; color: var(--muted); }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }
.input, .select, textarea.input {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(2, 16, 19, 0.75); color: var(--text); font: inherit; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea.input { padding: 12px 14px; min-height: 90px; }
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.input.is-bad { border-color: var(--danger); }
.input.is-ok { border-color: var(--accent); }
.field .msg { font-size: 12px; min-height: 16px; color: var(--muted); }
.field .msg.bad { color: var(--danger); } .field .msg.ok { color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 16px; font-size: 14px; }
.alert.error { border-color: rgba(255, 100, 100, 0.5); background: rgba(255, 100, 100, 0.1); color: #ffb4b4; }
.alert.ok { border-color: var(--line-strong); background: var(--accent-dim); color: #bff5cf; }
.alert.warn { border-color: rgba(246, 196, 83, 0.45); background: rgba(246, 196, 83, 0.1); color: #ffe3a1; }
.strength { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.strength > span { display: block; height: 100%; width: 0; background: var(--danger); transition: width 0.25s, background 0.25s; }
.confirm-box { padding: 12px 14px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--accent-dim); font-size: 13px; }
.confirm-box strong { display: block; font: 700 17px var(--font-display); letter-spacing: 0.04em; }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; padding: 12px 14px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.pos { color: var(--accent); } .neg { color: var(--danger); }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty strong { display: block; font: 700 20px var(--font-display); color: var(--text); margin-bottom: 4px; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); }
.modal-card { position: relative; width: min(480px, 100%); max-height: 92vh; overflow-y: auto; padding: 26px; border-radius: 20px; border: 1px solid var(--line-strong); background: #061a1c; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-card h2 { font-size: 30px; text-transform: uppercase; margin: 6px 0 14px; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 10px; }
.toast { padding: 12px 16px; border-radius: 12px; background: #061a1c; border: 1px solid var(--line-strong); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5); max-width: 340px; animation: slidein 0.25s; }
.toast.bad { border-color: rgba(255, 100, 100, 0.6); }
@keyframes slidein { from { transform: translateY(14px); opacity: 0; } }

/* ---------- rails (cards horizontais) ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.rail-title { font-size: 26px; display: flex; align-items: center; gap: 10px; }
.rail-title .ico { color: var(--accent); }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel-2); display: grid; place-items: center; }
.rail-nav .prev .ico { transform: rotate(180deg); }
.rail-nav button:hover { border-color: var(--accent); color: var(--accent); }
.rail-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 10px; }
.league-card { position: relative; flex: 0 0 210px; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); scroll-snap-align: start; display: flex; align-items: flex-end; cursor: pointer; background: #04161a; text-align: left; padding: 0; }
.league-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.league-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2, 16, 19, 0.95), transparent 60%); }
.league-card:hover img { transform: scale(1.06); }
.league-card:hover { border-color: var(--accent); }
.league-card .copy { position: relative; z-index: 1; padding: 14px; }
.league-card h3 { font-size: 22px; text-transform: uppercase; }
.league-card p { margin: 2px 0 0; font-size: 12px; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- missoes / ranking ---------- */
.mission { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mission:last-child { border-bottom: 0; }
.mission strong { display: block; }
.mission .bar { grid-column: 1 / -1; }
.rank-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); font: 700 14px var(--font-display); }
.rank-row:nth-child(1) .rank-pos { background: var(--accent); color: #000; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel-2); text-align: center; }
.badge .ico { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--faint); }
.badge.on { border-color: var(--line-strong); background: var(--accent-dim); }
.badge.on .ico { color: var(--accent); }
.badge small { display: block; color: var(--muted); font-size: 12px; }

/* ---------- landing / auth ---------- */
.pub-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 28px; background: rgba(2, 16, 19, 0.78); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.pub-nav { display: flex; gap: 10px; align-items: center; }
.landing { max-width: 1280px; margin: 0 auto; padding: 34px 28px 20px; display: grid; gap: 34px; }
.land-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.8fr); gap: 24px; align-items: stretch; }
.land-copy { display: flex; flex-direction: column; min-width: 0; }
.land-copy .preview { flex: 1; display: flex; flex-direction: column; }
.land-copy .preview .screen { flex: 1; min-height: 0; }
.land-copy h1 { font-size: clamp(40px, 5.4vw, 74px); text-transform: uppercase; margin: 14px 0 14px; }
.land-copy h1 b { color: var(--accent); }
.land-copy > p { color: var(--muted); font-size: 17px; max-width: 560px; }
.preview { margin-top: 22px; padding: 16px; }
.preview-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.preview-tabs button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 12px; color: var(--muted); }
.preview-tabs button.is-on { background: var(--accent); color: #000; border-color: var(--accent); }
.auth-card { padding: 26px; position: sticky; top: 90px; align-self: start; background-image: linear-gradient(180deg, rgba(31, 214, 85, 0.07), transparent 40%); }
.land-grid .auth-card { display: flex; flex-direction: column; align-self: stretch; position: static; }
.login-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 6px 0 10px; }
.login-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-dim); border: 1px solid var(--line-strong); box-shadow: 0 0 28px rgba(31, 214, 85, 0.25); margin-bottom: 16px; }
.login-badge .ico { width: 28px; height: 28px; color: var(--accent); }
.login-sub { font-size: 14px; margin: 0 0 22px; }
.input-wrap { position: relative; }
.input-wrap > .ico { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-wrap .input { padding-left: 42px; }
.input-wrap:focus-within > .ico { color: var(--accent); }
.input-wrap .pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); padding: 6px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--accent); background: transparent; }
.input-wrap .pw-toggle:hover { background: var(--accent-dim); }
.input-wrap:has(.pw-toggle) .input { padding-right: 84px; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row a { font-size: 12px; font-weight: 700; color: var(--accent); }
.btn-lg { padding: 15px 20px; font-size: 16px; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 18px 0 14px; font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.trust-list { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.trust-list li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.trust-list .ico { width: 18px; height: 18px; color: var(--accent); flex: none; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); margin-bottom: 20px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; color: var(--muted); }
.auth-tabs a.is-on { background: var(--accent); color: #000; }
.auth-card h2 { font-size: 30px; text-transform: uppercase; margin-bottom: 4px; }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 14px; }
.auth-links a { color: var(--accent); font-weight: 700; }
.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 20px; }
.feature .ico { width: 30px; height: 30px; color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: 22px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 14px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-page .auth-card { position: static; width: min(460px, 100%); }
.center { text-align: center; }

/* ---------- footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: rgba(2, 16, 19, 0.7); }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 36px 28px 10px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 28px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 12px; max-width: 360px; }
.footer-col h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-legal { max-width: 1280px; margin: 0 auto; padding: 18px 28px 26px; display: flex; gap: 18px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 24px; }
.footer-legal p { margin: 0; font-size: 12px; color: var(--faint); max-width: 860px; }
.age-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.age-badge .num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font: 700 14px var(--font-display); }

.bottom-nav { display: none; }
.drawer-overlay { display: none; }

/* ---------- responsivo ---------- */
@media (max-width: 1100px) {
  .arena-body { grid-template-columns: 1fr; }
  .arena-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .land-grid { grid-template-columns: 1fr; }
  .auth-card { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform 0.28s; box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5); }
  body.drawer-open .sidebar { transform: none; }
  body.drawer-open .drawer-overlay { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 35; }
  .topbar-drawer-btn { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .content-body { padding: 16px 14px 90px; gap: 20px; }
  .crumb { display: none; }
  .hero-slide { min-height: 300px; }
  .hero-copy { padding: 24px 22px; }
  .hero-slide.align-right .hero-copy { margin-left: 0; align-items: flex-start; text-align: left; }
  .hero-slide.align-right::after { background: linear-gradient(90deg, rgba(2, 16, 19, 0.92) 8%, rgba(2, 16, 19, 0.35) 62%, transparent); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 38; background: rgba(2, 16, 19, 0.96); border-top: 1px solid var(--line-strong); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--muted); background: none; border: 0; padding: 6px 0; }
  .bottom-nav .is-active { color: var(--accent); }
  .bottom-nav .nav-deposit { color: #000; background: var(--accent); border-radius: 14px; margin: -14px 4px 0; box-shadow: 0 0 18px var(--accent-glow); }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .wallet-chip .wallet-label { display: none; }
  .topbar-right .btn-primary span { display: none; }
  .pub-top { padding: 10px 14px; }
  .landing { padding: 20px 14px; }
  .green-btn { width: 100%; }
}
@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .arena-head, .league-tabs, .arena-left, .arena-right { padding-left: 14px; padding-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }

/* ---------- barras de rolagem (vertical e horizontal) ---------- */
html { color-scheme: dark; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 99px; margin: 3px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(31, 214, 85, 0.6), rgba(31, 214, 85, 0.3));
  border: 3px solid transparent; background-clip: padding-box; border-radius: 99px;
  min-height: 42px; min-width: 42px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #1fd655, rgba(31, 214, 85, 0.65)); background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: #1fd655; background-clip: padding-box; }
::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar { width: 14px; height: 14px; }
html::-webkit-scrollbar-track { background: rgba(2, 16, 19, 0.9); border-radius: 0; margin: 0; border-left: 1px solid var(--line); }
.sidebar::-webkit-scrollbar, .league-tabs::-webkit-scrollbar, .preview-tabs::-webkit-scrollbar, .rail-track::-webkit-scrollbar { width: 8px; height: 8px; }
.league-tabs::-webkit-scrollbar-thumb, .rail-track::-webkit-scrollbar-thumb, .table-wrap::-webkit-scrollbar-thumb { border-width: 2px; }
.sidebar, .markets, .modal-card { overscroll-behavior: contain; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: rgba(31, 214, 85, 0.5) transparent; }
}