:root {
  --green: #0D3B2E;
  --green-mid: #164d3c;
  --green-light: #1e6b53;
  --gold: #F5C518;
  --gold-dim: #c9a012;
  --dark: #111111;
  --surface: #181818;
  --surface2: #212121;
  --off-white: #F0F0EC;
  --muted: #888888;
  --red: #C8102E;
  --font-display: 'Bebas Neue', sans-serif;
  --font-logo: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--dark); color: var(--off-white); font-family: var(--font-body); min-height: 100vh; }
img { display: block; }
button { font-family: inherit; }

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--green); border-bottom: 2px solid var(--gold);
  padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.header-brand { display: flex; align-items: center; gap: 12px; }
.header-icon { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 7px rgba(245,197,24,0.55)); }
.header-title {
  font-family: var(--font-logo); font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--gold); line-height: 1;
}
.header-sub { font-size: 0.66rem; color: rgba(255,255,255,0.5); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 3px; }
.header-right { display: flex; align-items: center; gap: 10px; }

nav { display: flex; gap: 4px; }
.filter-btn {
  background: var(--surface); border: 1px solid #2a2a2a; color: var(--muted);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 5px; cursor: pointer; transition: all 0.15s;
}
.filter-btn:hover { color: var(--off-white); border-color: #444; }
.filter-btn.active { background: rgba(245,197,24,0.1); border-color: var(--gold); color: var(--gold); }

.nav-btn {
  background: transparent; border: none; color: rgba(255,255,255,0.55);
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 6px; cursor: pointer; transition: all 0.18s;
}
.nav-btn:hover { color: var(--off-white); background: rgba(255,255,255,0.06); }
.nav-btn.active { color: var(--gold); background: rgba(245,197,24,0.1); }

.user-chip { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: var(--off-white); }
.user-chip .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.btn-ghost { background: transparent; border: 1px solid #2a2a2a; color: var(--muted); font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: 5px; cursor: pointer; }
.btn-ghost:hover { color: var(--off-white); border-color: #444; }

/* ── MAIN ── */
main { max-width: 960px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.section { display: none; }
.section.visible { display: block; }
.section-title { font-family: var(--font-display); font-size: 2.4rem; letter-spacing: 0.06em; color: var(--off-white); margin-bottom: 0.2rem; }
.section-desc { font-size: 0.82rem; color: var(--muted); margin-bottom: 2rem; letter-spacing: 0.04em; }

/* ── MATCH CARDS ── */
.matches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1rem; }
@media (max-width: 520px) { .matches-grid { grid-template-columns: 1fr; } }
.match-card { background: var(--surface); border: 1px solid #2a2a2a; border-radius: 12px; overflow: hidden; transition: border-color 0.2s; }
.match-card:hover { border-color: #3a3a3a; }
.match-card.live { border-color: var(--gold); }
.match-header { padding: 10px 16px 8px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #222; }
.match-round { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.match-status { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; }
.status-upcoming { color: var(--muted); background: rgba(255,255,255,0.05); }
.status-waiting { color: #9a8; background: rgba(255,255,255,0.04); }
.status-live { color: var(--dark); background: var(--gold); animation: pulse 2s infinite; }
.status-finished { color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.75; } }

.match-body { padding: 20px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.team { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; }
.team-flag img { width: 58px; height: 39px; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,0.5); background: #222; }
.team-flag.tbd { width: 58px; height: 39px; border: 1.5px dashed #3a3a3a; border-radius: 4px; display:flex; align-items:center; justify-content:center; color:#444; font-size:1.4rem; }
.team-name { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.06em; color: var(--off-white); text-align: center; }
.team-name.tbd { color: var(--muted); font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0; }

.scoreboard { display: flex; align-items: center; gap: 6px; background: #0a0a0a; border: 1px solid #2a2a2a; border-radius: 8px; padding: 10px 14px; min-width: 110px; justify-content: center; }
.score-num { font-family: var(--font-mono); font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; min-width: 32px; text-align: center; }
.score-sep { font-family: var(--font-mono); font-size: 1.6rem; color: #444; line-height: 1; }
.live .score-num { text-shadow: 0 0 16px rgba(245, 197, 24, 0.5); }
.match-time { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); text-align: center; padding: 6px 0 0; }
.live .match-time { color: var(--gold); }

/* ── PALPITE ── */
.match-footer { padding: 16px 20px; margin-top: 4px; }
.palpite-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.palpite-row { display: flex; align-items: center; gap: 8px; }
.palpite-input-group { display: flex; align-items: center; gap: 8px; flex: 1; }
.palpite-team img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.palpite-input { width: 52px; height: 40px; background: var(--surface2); border: 1.5px solid #333; border-radius: 6px; color: var(--off-white); font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700; text-align: center; outline: none; transition: border-color 0.2s, background 0.2s; -moz-appearance: textfield; }
.palpite-input::-webkit-outer-spin-button, .palpite-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.palpite-input:focus { border-color: var(--gold); background: #1d1d1d; }
.palpite-input:disabled { cursor: not-allowed; opacity: 0.35; }
.palpite-x { font-family: var(--font-mono); font-size: 0.85rem; color: #444; }
.btn-palpite { background: var(--gold); color: var(--dark); border: none; border-radius: 6px; padding: 0 16px; height: 40px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; cursor: pointer; transition: background 0.15s; white-space: nowrap; }
.btn-palpite:hover { background: #d9af14; }
.btn-palpite:disabled { background: #333; color: #555; cursor: not-allowed; }
.palpite-locked { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--muted); flex-wrap: wrap; }
.palpite-locked-badge { background: rgba(255,255,255,0.05); border: 1px solid #2a2a2a; border-radius: 5px; padding: 4px 10px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold); font-weight: 700; }
.link-galera { background: none; border: none; color: var(--green-light); font-size: 0.74rem; font-weight: 600; cursor: pointer; text-decoration: underline; padding: 0; }
.link-galera:hover { color: #4ecba0; }

/* ── RANKING ── */
.ranking-table { width: 100%; border-collapse: collapse; }
.ranking-table th { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 16px 12px; }
.ranking-table th:last-child { text-align: right; }
.ranking-row { background: var(--surface); transition: background 0.15s; cursor: pointer; }
.ranking-row:hover { background: #1d1d1d; }
.ranking-row td { padding: 14px 16px; font-size: 0.9rem; border-top: 1px solid #1a1a1a; }
.rank-pos { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700; color: var(--muted); width: 36px; }
.rank-pos.gold { color: var(--gold); } .rank-pos.silver { color: #aaa; } .rank-pos.bronze { color: #cd7f32; }
.rank-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; background: var(--surface2); border: 1.5px solid #2a2a2a; }
.rank-name { font-weight: 600; font-size: 0.88rem; }
.rank-pts { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; color: var(--gold); text-align: right; }
.rank-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.7rem; padding: 2px 7px; border-radius: 4px; font-weight: 600; letter-spacing: 0.05em; }
.badge-exact { background: rgba(245,197,24,0.12); color: var(--gold); }
.badge-partial { background: rgba(30,107,83,0.3); color: #4ecba0; }
.rank-detail td { background: #141414; padding: 0; }
.rank-detail-inner { padding: 8px 16px 14px 56px; display: flex; flex-direction: column; gap: 6px; }
.rank-detail-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.8rem; border-bottom: 1px solid #1c1c1c; padding: 5px 0; }
.rank-detail-row .jogo { color: var(--off-white); }
.rank-detail-row .pal { font-family: var(--font-mono); color: var(--muted); }
.rank-detail-row .pt { font-family: var(--font-mono); font-weight: 700; }

/* ── MEUS PALPITES ── */
.palpites-list { display: flex; flex-direction: column; gap: 10px; }
.meu-palpite-card { background: var(--surface); border: 1px solid #222; border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mp-teams { font-family: var(--font-display); font-size: 1rem; letter-spacing: 0.04em; color: var(--off-white); display: flex; align-items: center; gap: 6px; }
.mp-teams img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; }
.mp-palpite { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; color: var(--gold); }
.mp-resultado { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); text-align: right; }
.mp-resultado span { display: block; font-size: 0.72rem; color: #444; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.08em; }
.pts-exact { color: var(--gold) !important; } .pts-partial { color: #4ecba0 !important; }

/* ── CLASSIFICAÇÃO (grupos) ── */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.group-card { background: var(--surface); border: 1px solid #2a2a2a; border-radius: 10px; padding: 14px 16px; }
.group-card h3 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 8px; }
.std-table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.std-table th { color: var(--muted); font-weight: 600; text-align: center; padding: 4px 3px; font-size: 0.62rem; text-transform: uppercase; }
.std-table th:first-child, .std-table td:first-child { text-align: left; }
.std-table td { padding: 5px 3px; text-align: center; border-top: 1px solid #1c1c1c; }
.std-table td.nome { display: flex; align-items: center; gap: 6px; }
.std-table td.nome img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; }
.std-pos { color: var(--muted); font-family: var(--font-mono); }
.std-table tr.q1 td:first-child { box-shadow: inset 3px 0 0 var(--gold); }
.std-table tr.q2 td:first-child { box-shadow: inset 3px 0 0 var(--green-light); }
.std-pts { font-family: var(--font-mono); font-weight: 700; color: var(--gold); }

/* ── live dot / tabs / toast (do original) ── */
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; margin-right: 5px; animation: blink 1.2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
.inner-tabs { display: flex; gap: 4px; margin-bottom: 1.5rem; border-bottom: 1px solid #222; padding-bottom: 1px; }
.inner-tab { background: transparent; border: none; color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 14px; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.15s; margin-bottom: -1px; }
.inner-tab.active { color: var(--off-white); border-bottom-color: var(--gold); }
.inner-tab:hover { color: var(--off-white); }
.inner-section { display: none; }
.inner-section.visible { display: block; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--green); color: var(--off-white); padding: 12px 20px; border-radius: 8px; border: 1px solid var(--gold); font-size: 0.85rem; font-weight: 600; z-index: 1000; transition: transform 0.3s ease, opacity 0.3s ease; max-width: 90vw; text-align: center; opacity: 0; visibility: hidden; pointer-events: none; }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }
.toast.err { border-color: var(--red); }

/* ações de usuário no painel admin */
.user-actions { display: flex; gap: 4px; flex-shrink: 0; }
.user-actions button { background: var(--surface2); border: 1px solid #333; color: var(--off-white); border-radius: 6px; padding: 5px 8px; font-size: 0.8rem; cursor: pointer; line-height: 1; }
.user-actions button:hover { border-color: var(--gold); }
.user-actions button.danger:hover { border-color: var(--red); }
#admin-users-list .galera-row { gap: 8px; }

/* barra de palpites não salvos */
.unsaved-bar { position: sticky; top: 72px; z-index: 90; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: rgba(245,197,24,0.12); border: 1px solid var(--gold); border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.unsaved-msg { font-size: 0.82rem; color: var(--gold); font-weight: 600; flex: 1; min-width: 180px; }
.unsaved-bar .btn-gold { padding: 8px 16px; height: auto; white-space: nowrap; font-size: 0.82rem; }
.btn-palpite.saved { background: var(--green-light); color: #fff; }
.match-card.just-saved { border-color: var(--green-light); animation: savedFlash 1.2s ease; }
@keyframes savedFlash { 0% { box-shadow: 0 0 0 3px rgba(78,203,160,0.75); } 100% { box-shadow: 0 0 0 2px rgba(30,107,83,0); } }

/* ── HERO ── */
.hero-band { background: linear-gradient(135deg, var(--green) 0%, #0f4a35 100%); border: 1px solid rgba(245,197,24,0.2); border-radius: 12px; padding: 20px 24px; margin-bottom: 2rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
@media (max-width: 520px) { .hero-band { flex-direction: column; align-items: flex-start; } }
.hero-text-main { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.1em; color: var(--gold); }
.hero-text-sub { font-size: 0.77rem; color: rgba(255,255,255,0.4); margin-top: 4px; letter-spacing: 0.06em; }
.hero-stats { display: flex; gap: 20px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; color: var(--off-white); line-height: 1; }
.hero-stat-label { font-size: 0.65rem; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; }

/* ── MODAIS ── */
.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.85); z-index: 200; overflow-y: auto; }
.modal.open { display: block; }
.modal-box { max-width: 520px; margin: 40px auto; background: var(--surface); border: 1px solid #2a2a2a; border-radius: 14px; padding: 28px 24px; }
.modal-box.wide { max-width: 680px; }
.modal-title { font-family: var(--font-display); font-size: 1.6rem; letter-spacing: 0.06em; color: var(--off-white); }
.modal-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.field-label { font-size: 0.72rem; color: var(--muted); margin-bottom: 6px; letter-spacing: 0.08em; text-transform: uppercase; }
.field { width: 100%; background: var(--surface2); border: 1.5px solid #333; border-radius: 6px; color: var(--off-white); font-family: var(--font-body); font-size: 0.92rem; padding: 9px 12px; outline: none; }
.field:focus { border-color: var(--gold); }
.btn-gold { background: var(--gold); color: var(--dark); border: none; border-radius: 8px; height: 44px; font-weight: 800; font-size: 0.9rem; cursor: pointer; letter-spacing: 0.04em; width: 100%; }
.btn-gold:hover { background: #d9af14; }
.err-text { font-size: 0.78rem; color: var(--red); margin-top: 8px; min-height: 1em; }
.status-opt { flex: 1; background: var(--surface2); border: 1.5px solid #333; color: var(--muted); font-size: 0.75rem; font-weight: 600; padding: 7px 10px; border-radius: 6px; cursor: pointer; transition: all 0.15s; text-align: center; }
.status-opt.selected { border-color: var(--gold); color: var(--gold); background: rgba(245,197,24,0.08); }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 18px; flex-wrap: wrap; }
.admin-tab { background: var(--surface2); border: 1px solid #2a2a2a; color: var(--muted); font-size: 0.74rem; font-weight: 600; padding: 6px 11px; border-radius: 6px; cursor: pointer; }
.admin-tab.active { color: var(--gold); border-color: var(--gold); }
.admin-pane { display: none; }
.admin-pane.visible { display: block; }
.galera-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.galera-row { display: flex; align-items: center; justify-content: space-between; background: var(--surface2); border-radius: 7px; padding: 9px 12px; }
.galera-row .who { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.galera-row .pal { font-family: var(--font-mono); font-weight: 700; color: var(--gold); }

/* ── LOGIN SCREEN ── */
#login-screen { display: none; min-height: 100vh; align-items: center; justify-content: center; padding: 1.5rem; }
#login-screen.visible { display: flex; }
.login-card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid #2a2a2a; border-radius: 16px; padding: 32px 28px; text-align: center; }
.login-logo { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 14px; filter: drop-shadow(0 0 12px rgba(245,197,24,0.5)); }
.login-title { font-family: var(--font-logo); font-size: 1.5rem; color: var(--gold); letter-spacing: 0.02em; }
.login-sub { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; margin: 4px 0 22px; }
.login-card .field { margin-bottom: 10px; text-align: left; }
.login-toggle { margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.login-toggle button { background: none; border: none; color: var(--gold); cursor: pointer; font-weight: 600; }

footer { text-align: center; padding: 24px; font-size: 0.72rem; color: #333; letter-spacing: 0.06em; }
.hidden { display: none !important; }

/* ── TAÇA ANIMADA ── */
.header-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.login-logo { width: 84px; height: 84px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.trophy-svg { width: 100%; height: 100%; display: block; animation: trophyFloat 3.6s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(245,197,24,0.55)); transform-origin: center; }
.login-logo .trophy-svg { filter: drop-shadow(0 0 14px rgba(245,197,24,0.55)); }
@keyframes trophyFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.trophy-shine { animation: trophyShine 2.8s ease-in-out infinite; }
@keyframes trophyShine { 0%,100% { opacity: 0.12; } 50% { opacity: 0.85; } }

/* ── MENU DE CONTA ── */
.acct { position: relative; }
.acct-btn { display: flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid #2a2a2a; border-radius: 8px; padding: 4px 8px 4px 4px; cursor: pointer; color: var(--off-white); }
.acct-btn .avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.acct-name { font-size: 0.78rem; font-weight: 600; }
.acct-caret { color: var(--muted); font-size: 0.7rem; }
.acct-menu { display: none; position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid #2a2a2a; border-radius: 10px; padding: 6px; min-width: 180px; z-index: 150; box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.acct-menu.open { display: block; }
.acct-item { display: block; width: 100%; text-align: left; background: transparent; border: none; color: var(--off-white); font-size: 0.84rem; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.acct-item:hover { background: rgba(255,255,255,0.06); }

/* ── NAV INFERIOR (mobile) ── */
.bottom-nav { display: none; }
.bnav-btn { background: transparent; border: none; color: rgba(255,255,255,0.55); display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; padding: 7px 4px 5px; cursor: pointer; flex: 1; }
.bnav-btn .bi { font-size: 1.15rem; line-height: 1; filter: grayscale(0.4); }
.bnav-btn.active { color: var(--gold); }
.bnav-btn.active .bi { filter: none; }

/* ── filtros com scroll horizontal ── */
.filter-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.2rem; scrollbar-width: none; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-row { display: flex; gap: 6px; width: max-content; }

/* ── modal head / admin score ── */
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 10px; }
.admin-score { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; margin-bottom: 16px; }
.admin-x { font-family: var(--font-mono); color: #444; padding-bottom: 10px; }
.score-in { text-align: center; color: var(--gold); font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; }

/* ── REGRAS ── */
.rules-card { background: var(--surface); border: 1px solid #2a2a2a; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; }
.rules-card h3 { font-size: 1rem; color: var(--gold); margin-bottom: 10px; letter-spacing: 0.02em; }
.rules-table { width: 100%; border-collapse: collapse; }
.rules-table td { padding: 8px 6px; font-size: 0.86rem; border-top: 1px solid #1c1c1c; vertical-align: top; }
.rules-table tr:first-child td { border-top: none; }
.rt-pt { font-family: var(--font-mono); font-weight: 700; color: var(--gold); white-space: nowrap; text-align: right; width: 70px; }
.rt-ex { color: var(--muted); font-size: 0.76rem; text-align: right; }
.rules-note { font-size: 0.8rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.rules-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rules-list li { font-size: 0.86rem; line-height: 1.5; padding-left: 16px; position: relative; }
.rules-list li::before { content: "›"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }

/* ════ MOBILE ════ */
@media (max-width: 680px) {
  header { padding: 0 0.9rem; height: 56px; }
  .header-title { font-size: 0.98rem; }
  .header-sub { display: none; }
  .top-nav { display: none; }
  .acct-name { display: none; }
  .acct-btn { padding: 3px; border: none; background: transparent; }

  main { padding: 1.2rem 0.9rem 90px; }
  .section-title { font-size: 1.9rem; }
  .section-desc { margin-bottom: 1.3rem; font-size: 0.78rem; }

  .matches-grid { grid-template-columns: 1fr; gap: 0.8rem; }
  .match-body { padding: 16px 14px 0; }
  .team-name { font-size: 1rem; }
  .team-flag img { width: 50px; height: 34px; }
  .score-num { font-size: 2rem; }

  .bottom-nav { display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 120;
    background: var(--green); border-top: 2px solid var(--gold);
    padding-bottom: env(safe-area-inset-bottom, 0); }

  .hero-band { padding: 16px; }
  .hero-stats { gap: 14px; }
  .hide-mobile { display: none; }
  .unsaved-bar { top: 62px; }

  .groups-grid { grid-template-columns: 1fr; }
  .modal-box { margin: 0; min-height: 100vh; max-width: 100%; border-radius: 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom,0)); }
  .modal-box.wide { max-width: 100%; }
  .toast { bottom: 80px; }
  .ranking-table th, .ranking-row td { padding-left: 10px; padding-right: 10px; }
  .rank-detail-inner { padding-left: 16px; }
}

@media (max-width: 380px) {
  .bnav-btn span:not(.bi) { display: none; }
  .bnav-btn { padding: 9px 4px; }
}
