/* ===========================================================================
   Bolão dos Fellas — dashboard dark premium (glassmorphism + glow)
   =========================================================================== */
:root {
  --bg: #0a0e1a;
  --bg-2: #0d1220;
  --card: #131a2a;
  --card-2: #182034;
  --card-3: #1e2840;
  --line: #28324a;
  --line-2: #34415c;
  --text: #e9efec;
  --muted: #99a59f;
  --muted-2: #6f7c76;
  --brand: #18b56a;        /* verde Brasil refinado */
  --brand-2: #4b78e6;      /* azul, uso pontual */
  --accent: #f2c84d;       /* amarelo dourado, só em destaques */
  --danger: #ef5a6e;
  --live: #ff1f44;
  --grad: linear-gradient(135deg, #17b167, #0f9a57);
  --grad-gold: linear-gradient(135deg, #f4cf5e, #e0a72f);
  /* superfícies (vidro suave) */
  --glass: linear-gradient(180deg, rgba(26, 33, 52, .7), rgba(15, 20, 33, .7));
  --glass-2: linear-gradient(180deg, rgba(32, 41, 64, .82), rgba(18, 24, 40, .84));
  --hair: 1px solid rgba(255, 255, 255, .07);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .05);
  --shadow: 0 22px 54px rgba(0, 0, 0, .5);
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, .35);
  --glow-brand: 0 0 0 1px rgba(24, 181, 106, .35), 0 10px 26px rgba(0, 0, 0, .35);
  --glow-blue: 0 0 0 1px rgba(75, 120, 230, .4), 0 10px 26px rgba(0, 0, 0, .35);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.005em;
}
/* fundo: brilho verde bem sutil só no topo (combina com o header) */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 460px at 50% -12%, rgba(24, 181, 106, .06), transparent 62%),
    radial-gradient(700px 420px at 100% -8%, rgba(242, 200, 77, .03), transparent 58%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 75%);
}
@keyframes drift { from { transform: translate3d(-1.5%, -1%, 0) scale(1); } to { transform: translate3d(1.5%, 1.5%, 0) scale(1.05); } }

/* ===========================================================================
   Intro / carregamento
   =========================================================================== */
.intro {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: radial-gradient(900px 600px at 50% 35%, #0d1322, var(--bg) 70%);
  transition: opacity .65s ease, visibility .65s;
}
.intro.intro-hide { opacity: 0; visibility: hidden; }
.intro-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; padding: 24px; }
.intro-glow {
  position: absolute; top: 38%; left: 50%; transform: translate(-50%, -50%);
  width: 480px; height: 480px; max-width: 90vw; max-height: 90vw; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(0,224,138,.22), rgba(24,160,255,.13) 45%, transparent 68%);
  filter: blur(12px); animation: breathe 4.5s ease-in-out infinite;
}
.intro-logo {
  width: min(380px, 76vw); height: auto;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.55));
  animation: intro-pop .85s cubic-bezier(.2,.85,.25,1) both;
}
@keyframes intro-pop { 0% { opacity: 0; transform: scale(.8) translateY(12px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.intro-fallback { display: none; flex-direction: column; align-items: center; gap: 10px; animation: intro-pop .85s cubic-bezier(.2,.85,.25,1) both; }
.if-ball { font-size: 70px; filter: drop-shadow(0 8px 20px rgba(0,224,138,.4)); animation: bob 4s ease-in-out infinite; }
.if-name { font-size: 28px; font-weight: 900; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.intro-bar { width: 240px; height: 4px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.intro-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--grad); box-shadow: 0 0 14px rgba(0,224,138,.55); animation: intro-load 2s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes intro-load { from { width: 0; } to { width: 100%; } }
.intro-text { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.intro-text::after { content: "…"; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }

.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.block { width: 100%; }
.bonus { color: var(--accent); font-weight: 800; }

/* ---------- Botões ---------- */
.btn {
  border: var(--hair); background: var(--glass-2); color: var(--text);
  padding: 11px 18px; border-radius: 12px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .12s cubic-bezier(.2,.7,.3,1), filter .15s, box-shadow .2s;
  box-shadow: var(--hi);
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: var(--shadow-sm), var(--hi); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); color: #042012; border: none; box-shadow: 0 10px 26px rgba(0, 224, 138, .35); }
.btn-primary:hover { box-shadow: 0 14px 34px rgba(0, 224, 138, .45); }
.btn-ghost { background: rgba(255,255,255,.03); }
.btn-icon { background: transparent; border: none; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: 8px; transition: .15s; }
.btn-icon:hover { color: var(--text); background: var(--card-3); }

/* ---------- Inputs ---------- */
.input {
  width: 100%; background: rgba(6, 9, 18, .6); border: 1px solid var(--line);
  color: var(--text); padding: 11px 13px; border-radius: 12px; font-size: 14px; outline: none; transition: .18s;
}
.input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(24, 160, 255, .18); background: rgba(6, 9, 18, .8); }
.field-label { display: block; font-size: 12px; color: var(--muted); margin: 4px 0 6px; font-weight: 700; letter-spacing: .02em; }
.error-msg { color: var(--danger); font-size: 13px; min-height: 18px; margin: 8px 0 0; }
code { background: var(--card-3); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

/* ---------- Bandeiras / escudos ---------- */
.crest { height: 22px; width: 22px; object-fit: contain; border-radius: 4px; vertical-align: middle; flex: 0 0 auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
.crest.flagimg { height: 16px; width: 24px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.crest-lg { height: 46px; width: 46px; }
.crest-lg.flagimg { height: 34px; width: 50px; }
.flag-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  height: 16px; min-width: 24px; padding: 0 3px; font-size: 10px; font-weight: 800;
  background: var(--card-3); border-radius: 4px; color: var(--muted); vertical-align: middle;
}

/* ===========================================================================
   Tela de entrada
   =========================================================================== */
.gate { min-height: 100vh; display: grid; place-items: center; padding: 24px; position: relative; }
.gate-glow {
  position: absolute; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,224,138,.22), rgba(24,160,255,.12) 45%, transparent 68%); filter: blur(22px);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }
.gate-card {
  position: relative; width: 100%; max-width: 430px;
  background: var(--glass-2); border: var(--hair); border-radius: 24px; padding: 36px 32px;
  box-shadow: var(--shadow), var(--hi); backdrop-filter: blur(16px);
  animation: fade-up .5s cubic-bezier(.2,.7,.3,1);
}
.gate-logo { display: block; width: min(240px, 62%); height: auto; margin: 2px auto 24px; filter: drop-shadow(0 16px 40px rgba(0,0,0,.5)); }
.gate-formtitle { text-align: center; font-size: 23px; font-weight: 900; letter-spacing: .01em; margin: 0 0 18px;
  background: linear-gradient(180deg, #fff, #b9c4dc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gate-logo-fb { text-align: center; font-size: 26px; font-weight: 900; letter-spacing: -.02em; margin: 6px 0 24px;
  background: linear-gradient(180deg, #fff, #b9c4dc); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.gate-divider { text-align: center; margin: 20px 0 14px; position: relative; color: var(--muted-2); font-size: 12px; }
.gate-divider::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.gate-divider span { background: var(--bg-2); padding: 0 12px; position: relative; }
.gate-row { display: flex; gap: 8px; }
.gate-row .input { flex: 1; }
.gate-switch { text-align: center; font-size: 13px; color: var(--muted); margin: 16px 0 0; }
.gate-switch a { color: var(--brand); font-weight: 700; cursor: pointer; }
.gate-switch a:hover { text-decoration: underline; }

/* ===========================================================================
   App shell
   =========================================================================== */
.topbar {
  display: flex; align-items: center; gap: 18px; padding: 13px 26px;
  background: rgba(10, 14, 26, .72); backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: var(--hair); position: sticky; top: 0; z-index: 30;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; cursor: pointer; }
.brand:hover .brand-title { color: var(--brand); }
.brand-logo { height: 46px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 14px rgba(0, 224, 138, .45)); flex: 0 0 auto; }
.brand-ball { font-size: 30px; filter: drop-shadow(0 4px 14px rgba(0, 224, 138, .55)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(8deg); } }
.brand-title { font-weight: 800; font-size: 16px; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.brand-sub { font-size: 11px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 700; white-space: nowrap; }

.tabs { display: flex; gap: 2px; margin-left: 22px; background: transparent; padding: 0; border: none; }
.tab {
  position: relative; background: transparent; border: none; color: var(--muted); padding: 9px 14px;
  border-radius: 9px; font-size: 14px; font-weight: 600; cursor: pointer; transition: color .15s, background .15s;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,.05); }
.tab.active { color: var(--text); font-weight: 700; }
.tab.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2.5px;
  border-radius: 3px; background: var(--grad);
}

.topbar-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sync-pill {
  font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap;
}
.sync-pill.on { color: var(--brand); border-color: rgba(0,224,138,.35); background: rgba(0,224,138,.08); box-shadow: 0 0 14px rgba(0,224,138,.15); }
.sync-pill.off { color: var(--accent); border-color: rgba(255,207,63,.3); background: rgba(255,207,63,.07); }
.user-chip { display: flex; align-items: center; gap: 8px; background: var(--glass); border: var(--hair); padding: 6px 8px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 700; box-shadow: var(--hi); }
.user-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--grad); color: #042012; display: grid; place-items: center; font-weight: 900; font-size: 13px; box-shadow: 0 4px 12px rgba(0,224,138,.4); }

/* ---------- Barra de placares (ticker com scroll automático) ---------- */
.ticker { display: block; overflow: hidden; background: rgba(10, 14, 26, .6); backdrop-filter: blur(10px); border-bottom: var(--hair); }
.ticker:empty { display: none; }
.tk-track { display: flex; width: max-content; will-change: transform; }
.tk-game { flex: 0 0 auto; min-width: 132px; padding: 8px 14px; border-right: 1px solid rgba(255,255,255,.05); cursor: pointer; transition: background .15s; }
.tk-game:hover { background: rgba(255,255,255,.04); }
.tk-status { font-size: 10px; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 5px; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tk-st { font-weight: 800; font-size: 9px; letter-spacing: .03em; padding: 1px 5px; border-radius: 4px; display: inline-flex; align-items: center; gap: 3px; }
.tk-st.live { color: #fff; background: var(--live); box-shadow: 0 0 9px rgba(255,31,68,.55); }
.tk-st.fim { color: var(--muted); background: var(--card-3); }
.tk-team { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.5; }
.tk-team .crest { height: 14px; width: 14px; }
.tk-team .crest.flagimg { height: 11px; width: 16px; }
.tk-abbr { flex: 1; color: var(--text); }
.tk-team.lose .tk-abbr, .tk-team.lose .tk-sc { color: var(--muted-2); }
.tk-sc { font-weight: 900; min-width: 16px; text-align: right; }

.content { max-width: 1120px; margin: 0 auto; padding: 28px 24px 90px; }
.panel { animation: fade-in .35s ease; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-head { margin-bottom: 18px; }
.panel-head.between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.panel-head h2 { margin: 0 0 5px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; position: relative; padding-left: 13px; }
.panel-head h2::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--grad); }
.panel-head p { margin: 0; font-size: 13px; padding-left: 13px; }
.legend { margin-left: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 3px 0 8px; vertical-align: middle; }
.dot.ok { background: var(--brand); box-shadow: 0 0 8px var(--brand); } .dot.warn { background: var(--accent); box-shadow: 0 0 8px var(--accent); }

/* ===========================================================================
   Dashboard — faixa de destaques
   =========================================================================== */
.dash-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 28px; }
.dash-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px;
  background: var(--glass); border: var(--hair); border-radius: 16px; padding: 16px 18px;
  box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(12px);
  animation: fade-up .5s cubic-bezier(.2,.7,.3,1) both;
}
.dash-card:nth-child(2) { animation-delay: .06s; }
.dash-card:nth-child(3) { animation-delay: .12s; }
.dash-ico { font-size: 26px; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.05); flex: 0 0 auto; box-shadow: var(--hi); }
.dash-body { min-width: 0; flex: 1; }
.dash-label { font-size: 11px; font-weight: 800; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.dash-value { font-size: 19px; font-weight: 900; letter-spacing: -.01em; margin: 2px 0 1px; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-value .nx-list { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; }
.dash-value .nx-item { font-size: 16px; line-height: 1.25; }
.dash-value .nx-more { font-size: 11px; color: var(--muted); font-weight: 700; margin-top: 1px; }
.dash-value .sc-flag { width: 22px; height: 15px; }
.dash-sub { font-size: 12px; color: var(--muted); font-weight: 600; }
.dash-sub b { color: var(--brand); }

/* Visão geral — grid de gráficos */
.ov-grid { display: grid; gap: 14px; margin-bottom: 14px; }
.ov-grid.ov-2a { grid-template-columns: 1.5fr 1fr; }
.ov-grid.ov-2b { grid-template-columns: 1fr 1fr; }
.ov-card { background: var(--glass); border: var(--hair); border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(8px); }
.ov-ch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.ov-ch h3 { margin: 0; font-size: 15px; font-weight: 800; position: relative; padding-left: 11px; }
.ov-ch h3::before { content: ""; position: absolute; left: 0; top: 1px; bottom: 1px; width: 3px; border-radius: 3px; background: var(--grad); }
.ov-tag { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); background: var(--card-2); border: var(--hair); padding: 3px 9px; border-radius: 999px; }

/* barras de ranking */
.ov-bars { display: flex; flex-direction: column; gap: 11px; }
.ov-bar { display: grid; grid-template-columns: 26px minmax(0, 1fr) 64px auto; align-items: center; gap: 10px; font-size: 13px; }
.ov-bar.noprog { grid-template-columns: 26px minmax(0, 1fr) auto; } /* ranking de lucros: sem barra */
.ov-bar .ov-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 900; color: #06210f; background: var(--grad); }
.ov-bar.lead .ov-av { background: var(--grad-gold); color: #3a2a00; }
.ov-bar.me .ov-av { box-shadow: 0 0 0 2px var(--brand-2); }
.ov-bar .ov-nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-bar .ov-nm em { font-style: normal; font-size: 10px; font-weight: 800; color: var(--brand-2); background: rgba(75,120,230,.16); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.ov-bt { height: 9px; background: rgba(255,255,255,.06); border-radius: 999px; overflow: hidden; }
.ov-bt i { display: block; height: 100%; border-radius: 999px; background: var(--grad); transition: width .6s cubic-bezier(.2,.7,.3,1); }
.ov-bar.lead .ov-bt i { background: var(--grad-gold); }
.ov-bar b { text-align: right; font-weight: 900; white-space: nowrap; }

/* donut */
.ov-donutwrap { display: flex; align-items: center; gap: 20px; }
.ov-donut { width: 124px; height: 124px; flex: 0 0 auto; transform: rotate(-90deg); }
.ov-donut .dk { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 13; }
.ov-donut .dv { fill: none; stroke: var(--brand); stroke-width: 13; stroke-linecap: round; transition: stroke-dashoffset .7s cubic-bezier(.2,.7,.3,1); }
.ov-donut .dt { transform: rotate(90deg); transform-origin: 62px 62px; text-anchor: middle; fill: var(--text); font-size: 27px; font-weight: 900; }
.ov-donut .ds { transform: rotate(90deg); transform-origin: 62px 62px; text-anchor: middle; fill: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.ov-leg { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.ov-leg span { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.ov-leg b { color: var(--text); margin-left: auto; font-weight: 800; }
.ov-leg i { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.ov-leg i.g { background: var(--brand); } .ov-leg i.y { background: var(--accent); } .ov-leg i.m { background: #3a4742; }

/* artilharia (mini) */
.ov-scorers { display: flex; flex-direction: column; gap: 11px; }
.ov-sc { display: grid; grid-template-columns: 18px 104px 1fr 22px; align-items: center; gap: 10px; font-size: 13px; }
.ov-sc .p { color: var(--muted-2); font-weight: 900; text-align: center; }
.ov-sc .nm { font-weight: 700; display: flex; align-items: center; gap: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-sc .nm .crest, .ov-sc .nm .sc-flag { width: 18px; height: 12px; }
.ov-sc .ov-bt i { background: linear-gradient(90deg, #0e9a57, var(--brand)); }
.ov-sc b { text-align: right; font-weight: 900; color: var(--brand); }

/* próximos jogos */
.ov-fix { display: flex; flex-direction: column; }
.ov-fx { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: var(--hair); font-size: 13.5px; cursor: pointer; }
.ov-fx:first-child { border-top: none; }
.ov-fx:hover { background: rgba(255,255,255,.02); }
.ov-fx .t { font-weight: 700; color: var(--accent); width: 92px; flex: 0 0 auto; font-size: 12.5px; }
.ov-fx .m { font-weight: 700; display: flex; align-items: center; gap: 7px; min-width: 0; }
.ov-fx .m .crest, .ov-fx .m .sc-flag { width: 18px; height: 13px; }
.ov-fx .vs { color: var(--muted-2); }
.ov-fx .ph { margin-left: auto; font-size: 10px; font-weight: 800; color: var(--muted-2); background: var(--card-2); border: var(--hair); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }

@media (max-width: 760px) {
  .ov-grid.ov-2a, .ov-grid.ov-2b { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Grupos
   =========================================================================== */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.group-card { background: var(--glass); border: var(--hair); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(10px); transition: transform .15s, box-shadow .2s; }
.group-card:hover { transform: translateY(-3px); box-shadow: var(--shadow), var(--hi); }
.group-title { font-weight: 900; font-size: 13px; letter-spacing: .1em; padding: 12px 15px; background: linear-gradient(90deg, rgba(0,224,138,.18), transparent); border-bottom: var(--hair); color: var(--brand); }
.group-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.group-table th { text-align: right; color: var(--muted-2); font-weight: 700; font-size: 11px; padding: 7px 8px; }
.group-table th.team-col, .group-table td.team-col { text-align: left; }
.group-table td { padding: 9px 8px; border-top: 1px solid rgba(255,255,255,.05); text-align: right; }
.group-table tbody tr { transition: background .15s; }
.group-table tbody tr:hover { background: rgba(255,255,255,.03); }
.group-table .team-col { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.group-table .pts { font-weight: 900; color: var(--text); }
.qual-mark { width: 3px; height: 20px; border-radius: 3px; background: transparent; display: inline-block; }
.qual-mark.ok { background: var(--brand); box-shadow: 0 0 8px rgba(0,224,138,.6); } .qual-mark.warn { background: var(--accent); box-shadow: 0 0 8px rgba(255,207,63,.5); }

/* ===========================================================================
   Mata-mata — bracket visual (estilo ESPN)
   =========================================================================== */
.bracket-wrap { width: 100vw; margin-left: calc(50% - 50vw); padding: 6px 16px 14px; overflow: hidden; }
.bracket { --gutter: 26px; display: flex; align-items: stretch; gap: var(--gutter); width: max-content; transform-origin: top left; }
.bracket-side { display: flex; gap: var(--gutter); }
.side-label { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.bk-col { display: flex; flex-direction: column; justify-content: center; }

.bk-match {
  position: relative; width: 172px; height: 64px; box-sizing: border-box; margin: var(--mg, 8px) 0;
  background: var(--glass); border: var(--hair); border-radius: 11px; padding: 6px 9px;
  cursor: pointer; display: flex; flex-direction: column; justify-content: center; gap: 5px;
  transition: border-color .15s, transform .12s, box-shadow .2s; z-index: 1; box-shadow: var(--hi); backdrop-filter: blur(6px);
}
.bk-match:hover { box-shadow: var(--glow-blue); transform: translateY(-2px); z-index: 3; }
.bk-match.live { border-color: rgba(255, 59, 92, .5); box-shadow: 0 0 0 1px rgba(255,59,92,.4), 0 10px 24px rgba(255,59,92,.15); }
.bk-team { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; }
.bk-team .bk-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.bk-team .bk-sc { font-weight: 900; min-width: 16px; text-align: right; color: var(--text); }
.bk-team.win { color: var(--brand); }
.bk-team.win .bk-sc { color: var(--brand); }
.bk-team.tbd { color: var(--muted-2); font-style: italic; }
.bk-team .crest { height: 16px; width: 16px; }
.bk-team .crest.flagimg { height: 13px; width: 19px; }
.bk-slot { position: absolute; top: 3px; right: 7px; font-size: 9px; font-weight: 800; letter-spacing: .03em; z-index: 2; }
.bk-live { position: absolute; top: 3px; right: 6px; z-index: 2; color: #fff; background: var(--live); font-size: 8px; font-weight: 800; letter-spacing: .03em; padding: 1px 5px; border-radius: 4px; box-shadow: 0 0 8px rgba(255,31,68,.55); animation: pulse 1.6s infinite; }

.bracket-side .bk-match::after { content: ""; position: absolute; top: 50%; width: var(--gutter); height: 2px; background: linear-gradient(90deg, var(--line-2), rgba(46,60,92,.4)); }
.bracket-side.left .bk-match::after { left: 100%; }
.bracket-side.right .bk-match::after { right: 100%; }
.bracket-side .bk-col[data-recv="1"] .bk-match::before { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 2px; height: var(--feed-gap); background: var(--line-2); }
.bracket-side.left .bk-col[data-recv="1"] .bk-match::before { right: 100%; }
.bracket-side.right .bk-col[data-recv="1"] .bk-match::before { left: 100%; }

.bracket-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 4px; }
.center-label { font-size: 11px; font-weight: 800; color: var(--brand-2); text-transform: uppercase; letter-spacing: .06em; text-align: center; margin-bottom: 6px; }
.center-final .bk-match { width: 192px; border-color: rgba(24,160,255,.3); box-shadow: var(--glow-blue); }
.champ-banner {
  width: 158px; padding: 16px 12px 30px; text-align: center; color: #fff; position: relative;
  background: linear-gradient(180deg, #2a5fe0, #14296a);
  border-radius: 12px 12px 8px 8px; box-shadow: 0 18px 44px rgba(24,160,255,.25);
  clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%);
}
.champ-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); background-size: 200% 100%; animation: sheen 4.5s linear infinite; clip-path: inherit; }
@keyframes sheen { from { background-position: 200% 0; } to { background-position: -60% 0; } }
.champ-banner.won { background: linear-gradient(180deg, #f6cf52, #9a7416); color: #2a1d00; box-shadow: 0 18px 44px rgba(246,207,82,.35); }
.cb-year { font-weight: 900; font-size: 18px; letter-spacing: .03em; position: relative; }
.cb-crest { margin: 12px 0 8px; font-size: 30px; display: flex; justify-content: center; position: relative; }
.cb-crest .crest { height: 40px; width: 40px; }
.cb-name { font-weight: 800; font-size: 14px; min-height: 17px; position: relative; }
.cb-label { font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .9; margin-top: 6px; position: relative; }
.center-third .bk-match { width: 176px; opacity: .92; }

/* ===========================================================================
   Controles dos jogos
   =========================================================================== */
.controls { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.segmented { display: inline-flex; background: rgba(255,255,255,.03); border: var(--hair); border-radius: 12px; padding: 4px; gap: 2px; box-shadow: var(--hi); }
.seg { background: transparent; border: none; color: var(--muted); padding: 8px 15px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all .18s; }
.seg:hover { color: var(--text); }
.seg.active { color: #042012; background: var(--grad); box-shadow: 0 4px 12px rgba(0,224,138,.3); }
.filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { background: var(--glass); border: var(--hair); color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.chip:hover { color: var(--text); transform: translateY(-1px); }
.chip.active { color: #042012; background: var(--grad); border-color: transparent; box-shadow: 0 6px 16px rgba(0,224,138,.3); }

/* seletor de período (calendário) na aba Jogos */
.day-quick { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; flex-wrap: wrap; }
.date-range { display: flex; align-items: center; gap: 8px; margin: -6px 0 18px; flex-wrap: wrap; }
.date-range.hidden { display: none; }
.dr-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.dr-sep { color: var(--muted-2); font-size: 13px; }
.dr-input { width: auto; max-width: 165px; color-scheme: dark; padding: 8px 11px; font-size: 13px; }
.dr-input::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
.pl-count { color: var(--brand); font-weight: 700; }

.match-groups { display: flex; flex-direction: column; gap: 26px; }
.day-block { animation: fade-up .4s ease both; }
.day-block .day-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: var(--hair); }
.day-head .day-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.day-head .day-count { font-size: 12px; color: var(--muted-2); font-weight: 700; }
.match-list { display: flex; flex-direction: column; gap: 10px; }

/* ===========================================================================
   Card de jogo
   =========================================================================== */
.match-card {
  position: relative; background: var(--glass); border: var(--hair); border-radius: 14px;
  padding: 13px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 12px; transition: transform .12s, box-shadow .2s, border-color .15s; cursor: pointer;
  box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(8px);
}
.match-card:hover { box-shadow: var(--glow-blue); transform: translateY(-2px); }
.match-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted-2); margin-bottom: 3px; gap: 10px; }
.match-meta .phase-badge { color: var(--brand-2); font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.match-meta .meta-right { display: flex; align-items: center; gap: 8px; }
.side { display: flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; }
.side .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side.away { justify-content: flex-end; text-align: right; }
.side.tbd { color: var(--muted-2); font-style: italic; }

.score-box { display: flex; align-items: center; gap: 7px; }
.score-input {
  width: 48px; text-align: center; background: rgba(6,9,18,.6); border: 1px solid var(--line-2);
  color: var(--text); font-size: 18px; font-weight: 900; padding: 9px 0; border-radius: 11px;
  outline: none; -moz-appearance: textfield; transition: .15s;
}
.score-input::-webkit-inner-spin-button { display: none; }
.score-input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(24,160,255,.18); }
.score-input:disabled { opacity: .55; cursor: not-allowed; }
.score-sep { color: var(--muted-2); font-weight: 900; }
.score-official { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 2px 9px; font-size: 24px; font-weight: 900; }
.score-official .x { color: var(--muted-2); font-size: 16px; }
.score-official .pen { flex-basis: 100%; text-align: center; } /* pênaltis embaixo, sem descentralizar o placar */

/* botão palpitar + palpite salvo no centro do card */
.btn-palpitar { background: var(--grad); color: #06210f; border: none; font-weight: 800; font-size: 13px; padding: 9px 16px; border-radius: 11px; cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.3); transition: transform .1s, filter .15s; white-space: nowrap; }
.btn-palpitar:hover { filter: brightness(1.08); transform: translateY(-1px); }
.my-pred { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.my-pred .mp-label { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.my-pred .mp-score { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.my-pred .mp-score i { color: var(--muted-2); font-style: normal; font-size: 14px; margin: 0 2px; }
.mp-none { color: var(--muted-2); font-weight: 800; font-size: 20px; }
.btn.sm { padding: 7px 14px; font-size: 12.5px; border-radius: 10px; }
.foot-actions { display: flex; gap: 8px; }
.match-card.editing { border-color: var(--line-2); box-shadow: var(--glow-brand); }
.pen { font-size: 11px; font-weight: 700; color: var(--accent); }
.detail-score .pen { display: block; font-size: 12px; margin-top: 2px; }

.badge { font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.badge.live { color: #fff; background: var(--live); border-radius: 5px; font-weight: 800; box-shadow: 0 0 12px rgba(255,31,68,.6); animation: pulse 1.6s infinite; }
.badge.ft { color: var(--muted); background: var(--card-3); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); display: inline-block; box-shadow: 0 0 0 0 rgba(255,31,68,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 8px rgba(255,31,68,.55); } 50% { box-shadow: 0 0 14px rgba(255,31,68,.85); } 100% { box-shadow: 0 0 8px rgba(255,31,68,.55); } }

.card-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.pts-pill { font-size: 12px; font-weight: 800; padding: 3px 11px; border-radius: 999px; }
.pts-pill.p3 { background: rgba(0,224,138,.18); color: var(--brand); }
.pts-pill.p1 { background: rgba(255,207,63,.16); color: var(--accent); }
.pts-pill.p0 { background: rgba(255,85,107,.14); color: var(--danger); }
.lock-note { font-size: 11px; color: var(--muted-2); }
.detail-link { font-size: 12px; color: var(--brand-2); font-weight: 700; margin-left: auto; }

/* ===========================================================================
   Ranking
   =========================================================================== */
.ranking { display: flex; flex-direction: column; gap: 9px; }
.rank-row { position: relative; display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; background: var(--glass); border: var(--hair); border-radius: 15px; padding: 15px 20px; transition: transform .12s, box-shadow .2s; box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(8px); animation: fade-up .4s ease both; }
.rank-row:hover { transform: translateY(-2px); box-shadow: var(--shadow), var(--hi); }
.rank-row.me { border-color: rgba(24,160,255,.5); box-shadow: var(--glow-blue); }
.rank-row.top1 { background: linear-gradient(100deg, rgba(255,207,63,.16), var(--glass) 60%); border-color: rgba(255,207,63,.4); box-shadow: 0 0 0 1px rgba(255,207,63,.25), 0 14px 34px rgba(255,207,63,.12); }
.rank-pos { font-size: 22px; font-weight: 900; text-align: center; color: var(--muted-2); }
.rank-row { cursor: pointer; }
/* Histórico de pontos do jogador (modal) */
.hist-hero { text-align: center; padding: 24px 48px 18px; border-bottom: var(--hair); background: radial-gradient(600px 220px at 50% -40%, rgba(242,200,77,.16), transparent); }
.hist-name { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.hist-total { font-size: 30px; font-weight: 900; color: var(--brand); margin-top: 2px; }
.hist-total small { font-size: 13px; color: var(--muted); font-weight: 700; }
.hist-champ { background: var(--glass); border: var(--hair); border-radius: 12px; padding: 10px 13px; font-size: 13px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hist-champ.ok { border-color: rgba(0,224,138,.4); background: rgba(0,224,138,.08); }
.hist-list { display: flex; flex-direction: column; }
.hist-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-top: 1px solid rgba(255,255,255,.05); }
.hist-row:first-child { border-top: none; }
.hist-match { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.hist-real { color: var(--muted); font-weight: 800; }
.hist-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.rank-name { font-weight: 800; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.rank-name .tag { font-size: 11px; font-weight: 800; color: var(--brand-2); background: rgba(24,160,255,.14); padding: 2px 8px; border-radius: 999px; }
.rank-detail { font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.rank-points { font-size: 26px; font-weight: 900; color: var(--brand); text-align: right; }
.rank-points small { font-size: 12px; color: var(--muted-2); font-weight: 700; }

/* ===========================================================================
   Artilharia
   =========================================================================== */
.scorers { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.scorer { display: flex; align-items: center; gap: 12px; background: var(--glass); border: var(--hair); border-radius: 12px; padding: 9px 16px; box-shadow: var(--hi); transition: background .15s; }
.scorer:hover { background: var(--glass-2); }
.sc-pos.m1 { color: #ffcf3f; } /* ouro */
.sc-pos.m2 { color: #cdd6ea; } /* prata */
.sc-pos.m3 { color: #e0954b; } /* bronze */
.sc-pos { font-size: 14px; font-weight: 800; color: var(--muted-2); min-width: 18px; text-align: center; }
.sc-photo { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; background: var(--card-3); flex: 0 0 auto; box-shadow: 0 0 0 2px rgba(255,255,255,.06); }
.sc-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sc-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.sc-flag { width: 20px; height: 14px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); flex: 0 0 auto; }
.sc-pos-label { font-size: 11px; color: var(--muted-2); }
.sc-goals { font-size: 20px; font-weight: 900; color: var(--brand); }
.sc-goals small { font-size: 10px; color: var(--muted-2); font-weight: 700; margin-left: 3px; }

/* ===========================================================================
   Admin
   =========================================================================== */
.card-block { background: var(--glass); border: var(--hair); border-radius: 14px; padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(8px); }
.block-title { font-weight: 800; font-size: 15px; margin-bottom: 10px; }
.block-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.block-actions .input { max-width: 280px; }
.sync-info { font-size: 13px; margin-bottom: 12px; line-height: 1.7; }
.sync-info b { color: var(--text); }
.admin-auth { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-auth .input { max-width: 240px; }
.match-card.admin { cursor: default; }
.champ-pick { text-align: right; }
.champ-pick .input { min-width: 230px; }

/* ===========================================================================
   Modal de detalhe
   =========================================================================== */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4, 7, 14, .74); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; background: var(--glass-2); border: var(--hair); border-radius: 22px; box-shadow: var(--shadow), var(--hi); backdrop-filter: blur(20px); animation: modal-in .25s cubic-bezier(.2,.7,.3,1); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-x { position: absolute; top: 14px; right: 16px; background: rgba(255,255,255,.06); border: none; color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 17px; cursor: pointer; z-index: 2; transition: .15s; }
.modal-x:hover { color: var(--text); background: rgba(255,255,255,.12); }
.detail-hero { padding: 26px 24px 18px; text-align: center; background: radial-gradient(600px 220px at 50% -40%, rgba(24,160,255,.18), transparent); border-bottom: var(--hair); }
.detail-phase { font-size: 11px; font-weight: 800; color: var(--brand-2); text-transform: uppercase; letter-spacing: .06em; }
.detail-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin: 14px 0 6px; }
.detail-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.detail-score { font-size: 38px; font-weight: 900; letter-spacing: -.02em; }
.detail-score .x { color: var(--muted-2); font-size: 22px; margin: 0 8px; }
.detail-score.pending { font-size: 18px; color: var(--muted); font-weight: 700; }
.detail-venue { font-size: 12px; color: var(--muted-2); margin-top: 6px; }

.detail-section { padding: 18px 24px; border-bottom: var(--hair); }
.detail-section:last-child { border-bottom: none; }
.section-title { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }

.stat-row { margin-bottom: 13px; }
.stat-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; margin-bottom: 5px; }
.stat-head .lbl { color: var(--muted); font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.stat-bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: var(--card-3); }
.stat-bar .h { background: linear-gradient(90deg, #00b870, var(--brand)); } .stat-bar .a { background: linear-gradient(90deg, var(--brand-2), #0a78d0); margin-left: auto; }

.events { display: flex; flex-direction: column; gap: 8px; }
.event { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 10px; font-size: 13px; }
.event.away-ev { grid-template-columns: 1fr 38px; text-align: right; }
.event .min { font-weight: 800; color: var(--accent); font-size: 12px; }
.event .desc { color: var(--text); } .event .desc .sub { color: var(--muted-2); }

.pred-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.pred-row:first-child { border-top: none; }
.pred-row .who { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pred-row .who .tag, .dbet-who .tag { font-size: 10px; font-weight: 600; color: var(--muted-2); letter-spacing: .02em; }
.accounts-list { display: flex; flex-direction: column; }
.acct-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-top: 1px solid rgba(255,255,255,.05); }
.acct-row:first-child { border-top: none; }
.acct-name { font-weight: 700; flex: 1; display: flex; align-items: center; }
.acct-master { font-size: 9px; font-weight: 800; color: #ffc24d; background: rgba(255,180,63,.14); padding: 2px 7px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; margin-left: 7px; }
.acct-meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.acct-lock { opacity: .55; font-size: 13px; width: 64px; text-align: center; }
.acct-del:hover { color: #fff; background: var(--live); border-color: transparent; }
.pred-row .guess { font-weight: 900; }
.pred-row .pp { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-left: 8px; }
.empty-note { color: var(--muted-2); font-size: 13px; text-align: center; padding: 6px 0; }

/* ===========================================================================
   Toast
   =========================================================================== */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--glass-2); border: var(--hair); color: var(--text); padding: 12px 20px; border-radius: 12px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow); backdrop-filter: blur(12px); z-index: 80; animation: toast-in .25s cubic-bezier(.2,.7,.3,1); }
.toast.ok { border-color: rgba(0,224,138,.5); box-shadow: var(--shadow), 0 0 18px rgba(0,224,138,.2); } .toast.err { border-color: rgba(255,85,107,.5); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* telas médias: abas quebram pra 2ª linha (evita estouro horizontal) */
@media (max-width: 1024px) {
  .topbar { flex-wrap: wrap; gap: 10px 12px; }
  .tabs { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .tab { flex: 1; padding: 9px 6px; font-size: 13.5px; text-align: center; }
  .tab.active::after { left: 8px; right: 8px; }
}
@media (max-width: 760px) {
  .controls { flex-direction: column; align-items: stretch; }
  .panel-head.between { flex-direction: column; align-items: stretch; }
  .champ-pick { text-align: left; }
  .detail-score { font-size: 30px; }
}
/* respeita "reduzir movimento", mas mantém o ticker rolando (é a função dele) */
@media (prefers-reduced-motion: reduce) {
  *:not(.tk-track), *::before, *::after { animation: none !important; }
}

/* ===== Apostas (dinheiro fictício) ===== */
.balance-chip { background: var(--card-2); border: var(--hair); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 800; color: var(--brand); white-space: nowrap; box-shadow: var(--hi); }
.bet-wallet { text-align: right; flex: 0 0 auto; }
.bw-label { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); }
.bw-value { font-size: 22px; font-weight: 900; color: var(--brand); }
.bet-subnav { display: flex; width: fit-content; background: rgba(255,255,255,.03); border: var(--hair); border-radius: 12px; padding: 4px; gap: 2px; box-shadow: var(--hi); margin-bottom: 14px; }

.bet-card { background: var(--glass); border: var(--hair); border-radius: 14px; padding: 13px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(8px); }
.bet-card-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-bottom: 11px; font-size: 14px; }
.bch-team { display: flex; align-items: center; gap: 7px; min-width: 0; }
.bch-team b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bch-team.away { justify-content: flex-end; }
.bch-time { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.bm-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 7px; }
.bm-row.cols3 { grid-template-columns: repeat(3, 1fr); }
.odd-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; background: var(--card-2); border: var(--hair); border-radius: 10px; padding: 9px 8px; cursor: pointer; transition: all .15s; }
.odd-btn:hover { border-color: var(--brand); background: var(--card-3); transform: translateY(-1px); }
.ob-lab { font-size: 11px; font-weight: 700; color: var(--muted); text-align: center; line-height: 1.2; }
.ob-odd { font-size: 15px; font-weight: 900; color: var(--brand); }
.bet-mkt { margin-top: 11px; }
.bm-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 6px; }
.bet-more { margin-top: 11px; background: transparent; border: none; color: var(--brand); font-weight: 800; font-size: 13px; cursor: pointer; padding: 4px 0; }
.bet-more.open { color: var(--muted); }
.bet-more-panel { margin-top: 4px; }

/* Bilhete */
.betslip-card { max-width: 440px; padding-bottom: 22px; }
.slip-head { padding: 24px 44px 14px; text-align: center; border-bottom: var(--hair); background: radial-gradient(500px 180px at 50% -40%, rgba(0,224,138,.14), transparent); }
.slip-game { font-size: 18px; font-weight: 900; }
.slip-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.slip-pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; background: var(--card-2); border-bottom: var(--hair); }
.sp-mkt { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.sp-sel { font-size: 15px; font-weight: 800; margin-top: 2px; }
.sp-odd { font-size: 24px; font-weight: 900; color: var(--brand); white-space: nowrap; }
.betslip-card .field-label { display: block; margin: 16px 24px 6px; }
.betslip-card #slip-stake { margin: 0 24px; width: calc(100% - 48px); }
.slip-quick { display: flex; gap: 7px; margin: 10px 24px 0; flex-wrap: wrap; }
.slip-quick button { flex: 1; min-width: 64px; background: var(--card-2); border: var(--hair); color: var(--muted); border-radius: 9px; padding: 8px 6px; font-size: 12px; font-weight: 800; cursor: pointer; transition: .15s; }
.slip-quick button:hover { color: var(--text); border-color: var(--brand); }
.slip-return { display: flex; justify-content: space-between; align-items: center; margin: 16px 24px 0; padding: 12px 15px; background: var(--card-2); border-radius: 10px; font-size: 14px; font-weight: 700; }
.slip-return b { font-size: 19px; color: var(--brand); }
.betslip-card #slip-confirm { margin: 14px 24px 0; width: calc(100% - 48px); }
.slip-bal { text-align: center; margin: 10px 0 0; font-size: 12px; }

/* Minhas apostas / histórico de apostas */
.mybets-list, .hist-betlist { display: flex; flex-direction: column; gap: 8px; }
.bh-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--glass); border: var(--hair); border-left: 3px solid var(--line); border-radius: 12px; padding: 11px 15px; }
.bh-row.won { border-left-color: var(--brand); }
.bh-row.lost { border-left-color: var(--danger); }
.bh-row.void { border-left-color: var(--muted-2); }
.bh-row.open { border-left-color: var(--accent); }
.bh-game { font-weight: 700; font-size: 14px; }
.bh-pick { font-size: 12px; color: var(--muted); margin-top: 3px; }
.bh-status { text-align: right; font-size: 12px; font-weight: 800; white-space: nowrap; }
.bh-status.won { color: var(--brand); }
.bh-status.lost { color: var(--danger); }
.bh-status.open { color: var(--accent); }
.bh-status small { font-weight: 700; opacity: .9; }
.hist-wallet { display: flex; justify-content: space-between; align-items: center; background: var(--card-2); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; font-weight: 700; }

/* Jogadores */
.players-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.player-card { background: var(--glass); border: var(--hair); border-radius: 16px; padding: 20px; cursor: pointer; transition: transform .12s, box-shadow .2s; box-shadow: var(--shadow-sm), var(--hi); backdrop-filter: blur(8px); }
.player-card:hover { transform: translateY(-2px); box-shadow: var(--shadow), var(--hi); }
.player-card.me { border-color: rgba(24,160,255,.5); }
.pc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.pc-av { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #042012; display: grid; place-items: center; font-weight: 900; font-size: 14px; flex: 0 0 auto; }
.pc-name { font-weight: 800; font-size: 15px; }
.pc-name .you { font-style: normal; font-size: 10px; font-weight: 800; color: var(--brand-2); background: rgba(75,120,230,.16); padding: 1px 6px; border-radius: 999px; margin-left: 5px; }
.pc-money { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-box { background: var(--card-2); border: var(--hair); border-radius: 12px; padding: 12px 14px; }
.pc-box.pos { border-color: rgba(0,224,138,.28); }
.pc-box.neg { border-color: rgba(239,90,110,.28); }
.pc-box-lab { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 5px; }
.pc-box-val { font-size: 18px; font-weight: 900; }
.pc-box-val.pos { color: var(--brand); }
.pc-box-val.neg { color: var(--danger); }
.pc-sec { margin-top: 14px; }
.pc-sec + .pc-sec { padding-top: 14px; border-top: var(--hair); }
.pc-sec-lab { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-2); margin-bottom: 8px; }
.pc-pts { font-size: 14px; color: var(--muted); }
.pc-pts b { font-size: 22px; font-weight: 900; color: var(--text); margin-right: 4px; }
.pc-betfoot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.rank-points.pos { color: var(--brand); }
.rank-points.neg { color: var(--danger); }
/* Visão geral — apostas */
.ov-active { display: flex; flex-direction: column; gap: 6px; }
.ov-bet-sum { display: flex; gap: 10px; margin-bottom: 4px; }
.ov-bet-sum > div { flex: 1; background: var(--card-2); border: var(--hair); border-radius: 10px; padding: 9px 12px; }
.obs-lab { display: block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.obs-val { font-size: 17px; font-weight: 900; }
.obs-val.pos { color: var(--brand); }
.ov-betrow { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.05); }
.obr-game { font-weight: 700; }
.obr-pick { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; }
.ov-betmore { font-size: 12px; color: var(--muted-2); padding-top: 5px; }
.ov-bt i.neg { background: linear-gradient(90deg, #b23147, var(--danger)); }
.ov-bar b.pos, .dash-sub b.pos { color: var(--brand); }
.ov-bar b.neg, .dash-sub b.neg { color: var(--danger); }
.bet-subnav.sub { margin-top: -8px; }
.bet-subnav.sub .seg { font-size: 12px; padding: 6px 12px; }

/* Detalhe do jogo — apostas + lista colapsável */
.dcol { position: relative; }
.dcol-items.collapsed > *:nth-child(n+6) { display: none; }
.dcol-items.collapsed { -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.dcol-more { width: 100%; margin-top: 4px; background: transparent; border: none; color: var(--brand); font-weight: 800; font-size: 13px; cursor: pointer; padding: 7px; border-radius: 8px; }
.dcol-more:hover { background: rgba(255,255,255,.04); }
.dbet-row { display: grid; grid-template-columns: 1fr 1.3fr auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.05); font-size: 13px; }
.dbet-row:first-child { border-top: none; }
.dbet-who { font-weight: 700; display: flex; align-items: center; gap: 6px; }
.dbet-end { text-align: right; white-space: nowrap; font-weight: 800; }
.dbet-st { font-size: 9px; font-weight: 800; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; margin-left: 5px; }
.dbet-st.open { color: var(--accent); background: rgba(242,200,77,.14); }
.dbet-st.won { color: var(--brand); background: rgba(0,224,138,.14); }
.dbet-st.lost { color: var(--danger); background: rgba(255,85,107,.14); }
.dbet-st.void { color: var(--muted); background: var(--card-3); }
/* carteira no histórico do jogador, com rótulos */
.hw-item { display: flex; flex-direction: column; gap: 2px; }
.hw-item:last-child { align-items: flex-end; text-align: right; }
.hw-lab { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted-2); }
.hw-item b { font-size: 15px; font-weight: 900; }

/* ===== Mural de avisos (popup) ===== */
.announce-card { max-width: 460px; padding: 26px 28px 22px; text-align: center; }
.announce-badge { display: inline-block; font-size: 11px; font-weight: 900; letter-spacing: .12em; color: #2a1d00; background: var(--grad-gold); padding: 5px 13px; border-radius: 999px; }
#announce-title { font-size: 20px; font-weight: 900; margin: 14px 0 8px; }
#announce-body { color: var(--muted); font-size: 14px; line-height: 1.55; white-space: pre-wrap; text-align: left; margin: 0 0 20px; max-height: 50vh; overflow-y: auto; }
.announce-card .btn-primary { margin-top: 4px; }

/* ===== Chat ===== */
.chat { position: fixed; bottom: 20px; right: 20px; z-index: 120; }
.chat-bubble { position: relative; width: 58px; height: 58px; border-radius: 50%; background: var(--grad); color: #042012; border: none; font-size: 25px; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,224,138,.45), inset 0 1px 0 rgba(255,255,255,.25); transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .2s; }
.chat-bubble:hover { transform: translateY(-2px) scale(1.05); box-shadow: 0 14px 32px rgba(0,224,138,.6), inset 0 1px 0 rgba(255,255,255,.25); }
.chat-bubble:active { transform: scale(.96); }
.chat-bubble.active { background: var(--card-3); color: var(--text); box-shadow: var(--shadow-sm), var(--hi); }
.chat-bubble.has-unread { animation: chat-pulse 2.2s ease-in-out infinite; }
@keyframes chat-pulse { 0%, 100% { box-shadow: 0 8px 24px rgba(0,224,138,.45), inset 0 1px 0 rgba(255,255,255,.25); } 50% { box-shadow: 0 8px 26px rgba(0,224,138,.6), 0 0 0 7px rgba(0,224,138,.13), inset 0 1px 0 rgba(255,255,255,.25); } }
.chat-unread { position: absolute; top: -5px; right: -5px; background: var(--live); color: #fff; font-size: 11px; font-weight: 900; min-width: 21px; height: 21px; border-radius: 999px; display: grid; place-items: center; padding: 0 5px; box-shadow: 0 0 0 2.5px var(--bg), 0 3px 10px rgba(255,31,68,.55); animation: unread-pop .25s cubic-bezier(.2,.85,.25,1.4); }
@keyframes unread-pop { from { transform: scale(0); } to { transform: scale(1); } }
.chat-panel { position: absolute; bottom: 66px; right: 0; width: 340px; max-width: calc(100vw - 32px); height: 460px; max-height: calc(100vh - 120px); background: var(--glass-2); border: var(--hair); border-radius: 16px; box-shadow: var(--shadow), var(--hi); backdrop-filter: blur(18px); display: flex; flex-direction: column; overflow: hidden; animation: fade-up .2s ease both; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: var(--hair); font-weight: 800; font-size: 14px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg { background: var(--card-2); border: var(--hair); border-radius: 12px; padding: 7px 11px; max-width: 86%; align-self: flex-start; }
.chat-msg.me { align-self: flex-end; background: rgba(24,181,106,.15); border-color: rgba(24,181,106,.3); }
.cm-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cm-name { font-size: 11px; font-weight: 800; color: var(--brand); }
.chat-msg.me .cm-name { color: var(--accent); }
.cm-text { font-size: 13px; margin-top: 2px; word-break: break-word; line-height: 1.4; }
.chat-del { background: none; border: none; cursor: pointer; font-size: 11px; opacity: .45; padding: 0 2px; }
.chat-del:hover { opacity: 1; }
.chat-form { display: flex; gap: 6px; padding: 10px; border-top: var(--hair); }
.chat-form .input { padding: 9px 11px; }
.chat-send { padding: 9px 14px; font-size: 15px; }
