/* =====================================================================
   Partida Certa — interface v2 ("repaginação profissional")
   Mobile primeiro (uso com uma mão), cores do time preservadas.
   Sem Jinja neste arquivo: o tema por conta (--sao-*) chega por <style> no v2/base.html.
   Convenções: .v2-* = componente; --v2-* = token; alvo de toque mínimo 44px (padrão 48px).
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* marca (sobrescrito por conta no v2/base.html) */
  --sao-grena: #6b1522;
  --sao-grena-rgb: 107, 21, 34;
  --sao-grena-escuro: #4a0f18;
  --sao-verde: #0f4a2c;
  --sao-verde-rgb: 15, 74, 44;
  --sao-verde-escuro: #0a3620;
  --sao-dourado: #c9a227;

  --v2-bg: #f2f4f7;
  --v2-surface: #ffffff;
  --v2-surface-2: #f6f8fa;
  --v2-surface-3: #eaeef2;
  --v2-line: #dde3e9;
  --v2-text: #141c24;
  --v2-text-2: #384654;
  --v2-text-3: #5b6876;        /* >= 4,5:1 sobre --v2-bg e sobre branco */
  --v2-primary: var(--sao-verde);
  --v2-primary-ink: #ffffff;
  --v2-brand: var(--sao-grena);
  --v2-focus: #1d6fd8;
  --v2-win: #17733f;
  --v2-win-bg: #e3f4ea;
  --v2-draw: #4d5964;
  --v2-draw-bg: #e8ecf0;
  --v2-loss: #b02318;
  --v2-loss-bg: #fbe7e5;
  --v2-warn: #8a5300;
  --v2-warn-bg: #fff1d3;
  --v2-info: #1b5aa8;
  --v2-info-bg: #e4eefb;
  --v2-live: #d92d20;

  --v2-r-sm: 10px;
  --v2-r-md: 14px;
  --v2-r-lg: 20px;
  --v2-r-xl: 28px;
  --v2-sh-1: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .06);
  --v2-sh-2: 0 4px 14px rgba(16, 24, 40, .09);
  --v2-sh-3: 0 18px 48px rgba(16, 24, 40, .22);

  --v2-tap: 48px;
  --v2-topbar-h: 60px;
  --v2-tabbar-h: 64px;
  --v2-safe-b: env(safe-area-inset-bottom, 0px);
  --v2-safe-t: env(safe-area-inset-top, 0px);
  --v2-ease: cubic-bezier(.22, .8, .24, 1);
}

[data-bs-theme="dark"] {
  --v2-bg: #0d1317;
  --v2-surface: #151c22;
  --v2-surface-2: #1b242b;
  --v2-surface-3: #232e36;
  --v2-line: #2a363f;
  --v2-text: #eef2f5;
  --v2-text-2: #cdd6dd;
  --v2-text-3: #9aa8b4;
  --v2-primary: #1f8a54;
  --v2-focus: #6aa7ff;
  --v2-win: #5fd08e;
  --v2-win-bg: #14301f;
  --v2-draw: #b4c0ca;
  --v2-draw-bg: #232e36;
  --v2-loss: #ff8a80;
  --v2-loss-bg: #3a1a18;
  --v2-warn: #f5c36b;
  --v2-warn-bg: #3a2c0e;
  --v2-info: #8dbbff;
  --v2-info-bg: #14263f;
  --v2-sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --v2-sh-2: 0 4px 14px rgba(0, 0, 0, .45);
  --v2-sh-3: 0 18px 48px rgba(0, 0, 0, .6);
}

/* ---------- 2. Base ---------- */
html { -webkit-text-size-adjust: 100%; }
body.v2-body {
  margin: 0;
  background: var(--v2-bg);
  color: var(--v2-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
.v2-body * { box-sizing: border-box; }
.v2-body h1, .v2-body h2, .v2-body h3 { margin: 0; letter-spacing: -.01em; }
:where(.v2-body a) { color: inherit; }
.v2-body img { max-width: 100%; }
.v2-body :focus { outline: none; }
.v2-body :focus-visible { outline: 3px solid var(--v2-focus); outline-offset: 2px; border-radius: 6px; }
.v2-skip { position: absolute; left: -999px; top: 8px; z-index: 3000; background: var(--v2-surface); padding: 10px 14px; border-radius: 10px; }
.v2-skip:focus { left: 8px; }
.v2-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .v2-body *, .v2-body *::before, .v2-body *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 3. Casca: topo, conteúdo, barra inferior ---------- */
.v2-topbar {
  position: sticky; top: 0; z-index: 900;
  display: flex; align-items: center; gap: 8px;
  min-height: calc(var(--v2-topbar-h) + var(--v2-safe-t)); padding: var(--v2-safe-t) 12px 0 14px;
  background: color-mix(in srgb, var(--v2-surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--v2-line);
}
.v2-topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--sao-grena), var(--sao-verde)); opacity: .9; }
.v2-brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; min-height: var(--v2-tap); }
.v2-brand__nome { font-weight: 800; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-brand__sub { display: block; font-weight: 500; font-size: .72rem; color: var(--v2-text-3); line-height: 1.1; }
.v2-nav-desktop { display: none; gap: 4px; align-items: center; }
.v2-nav-desktop a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; color: var(--v2-text-2); text-decoration: none;
}
.v2-nav-desktop a:hover { background: var(--v2-surface-3); }
.v2-nav-desktop a[aria-current="page"] { background: var(--v2-primary); color: var(--v2-primary-ink); }

.v2-main { width: 100%; max-width: 760px; margin: 0 auto; padding: 14px 14px calc(var(--v2-tabbar-h) + var(--v2-safe-b) + 28px); }
.v2-page-titulo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 2px 14px; }
.v2-page-titulo h1 { font-size: 1.5rem; font-weight: 800; }
.v2-page-titulo p { margin: 2px 0 0; color: var(--v2-text-3); font-size: .9rem; }
.v2-secao { margin-top: 22px; }
.v2-secao__cab { display: flex; align-items: center; justify-content: space-between; margin: 0 2px 10px; }
.v2-secao__cab h2 { font-size: 1.05rem; font-weight: 800; }
.v2-link { color: var(--v2-primary); font-weight: 700; font-size: .9rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
[data-bs-theme="dark"] .v2-link { color: #5fd08e; }

.v2-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--v2-tabbar-h) + var(--v2-safe-b)); padding: 0 6px var(--v2-safe-b);
  background: color-mix(in srgb, var(--v2-surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-top: 1px solid var(--v2-line);
}
.v2-tabbar--4 { grid-template-columns: repeat(4, 1fr); }
.v2-tab {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--v2-tabbar-h); padding-top: 4px;
  color: var(--v2-text-3); text-decoration: none; font-size: .75rem; font-weight: 600; background: none; border: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v2-tab i { font-size: 1.35rem; line-height: 1; transition: transform .2s var(--v2-ease); }
.v2-tab[aria-current="page"] { color: var(--v2-brand); }
[data-bs-theme="dark"] .v2-tab[aria-current="page"] { color: #ff9aa8; }
.v2-tab[aria-current="page"]::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: currentColor; }
.v2-tab:active i { transform: scale(.88); }
.v2-tab--fab { justify-content: flex-start; }
.v2-fab {
  display: grid; place-items: center; width: 58px; height: 58px; margin-top: -20px; border-radius: 50%;
  background: linear-gradient(145deg, var(--v2-primary), var(--sao-verde-escuro)); color: #fff; font-size: 1.7rem;
  box-shadow: 0 8px 20px rgba(var(--sao-verde-rgb), .45), 0 0 0 5px var(--v2-bg);
  transition: transform .2s var(--v2-ease);
}
.v2-tab--fab:active .v2-fab { transform: scale(.92); }
.v2-tab--fab span.v2-tab__rotulo { margin-top: 2px; color: var(--v2-text-2); }

@media (min-width: 992px) {
  .v2-tabbar { display: none; }
  .v2-nav-desktop { display: flex; }
  .v2-main { max-width: 1080px; padding-bottom: 48px; }
  .v2-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
  .v2-brand { flex: 0 1 auto; }
  .v2-topbar { padding-left: max(20px, calc((100vw - 1080px) / 2)); padding-right: max(20px, calc((100vw - 1080px) / 2)); }
  .v2-topbar-acoes { margin-left: auto; }
}

/* ---------- 4. Primitivos ---------- */
.v2-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--v2-tap); padding: 0 20px; border-radius: var(--v2-r-md);
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer; user-select: none; -webkit-tap-highlight-color: transparent;
  transition: transform .12s var(--v2-ease), background-color .15s, border-color .15s, box-shadow .15s;
}
.v2-btn:active { transform: scale(.975); }
.v2-btn[disabled], .v2-btn.is-loading { opacity: .7; pointer-events: none; }
.v2-btn--primary { background: var(--v2-primary); color: var(--v2-primary-ink); box-shadow: 0 2px 8px rgba(var(--sao-verde-rgb), .28); }
.v2-btn--primary:hover { filter: brightness(1.08); }
.v2-btn--secondary { background: var(--v2-surface); color: var(--v2-text); border-color: var(--v2-line); }
.v2-btn--secondary:hover { background: var(--v2-surface-2); border-color: var(--v2-text-3); }
.v2-btn--ghost { background: transparent; color: var(--v2-text-2); }
.v2-btn--ghost:hover { background: var(--v2-surface-3); }
.v2-btn--danger { background: var(--v2-surface); color: var(--v2-loss); border-color: color-mix(in srgb, var(--v2-loss) 45%, transparent); }
.v2-btn--danger:hover { background: var(--v2-loss-bg); }
.v2-btn--danger-solid { background: var(--v2-loss); color: #fff; }
.v2-btn--block { width: 100%; }
.v2-btn--sm { min-height: 44px; padding: 0 14px; font-size: .9rem; border-radius: 12px; }
.v2-btn--onbrand { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); }
.v2-btn--onbrand:hover { background: rgba(255, 255, 255, .26); }
.v2-btn--solid-light { background: #fff; color: var(--sao-grena-escuro); }
.v2-btn .spinner { width: 16px; height: 16px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: v2spin .7s linear infinite; }
@keyframes v2spin { to { transform: rotate(360deg); } }

.v2-iconbtn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent;
  color: var(--v2-text-2); font-size: 1.2rem; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.v2-iconbtn:hover { background: var(--v2-surface-3); }
.v2-iconbtn--solid { background: var(--v2-surface-2); border: 1px solid var(--v2-line); }
.v2-theme-ico-sol { display: none; }
[data-bs-theme="dark"] .v2-theme-ico-sol { display: inline; }
[data-bs-theme="dark"] .v2-theme-ico-lua { display: none; }

.v2-card { background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-r-lg); box-shadow: var(--v2-sh-1); }
.v2-card--pad { padding: 16px; }
.v2-card + .v2-card { margin-top: 12px; }

.v2-badge {
  display: inline-flex; align-items: center; gap: 5px; min-height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .75rem; font-weight: 700; white-space: nowrap; background: var(--v2-surface-3); color: var(--v2-text-2);
}
.v2-badge--ok { background: var(--v2-win-bg); color: var(--v2-win); }
.v2-badge--warn { background: var(--v2-warn-bg); color: var(--v2-warn); }
.v2-badge--bad { background: var(--v2-loss-bg); color: var(--v2-loss); }
.v2-badge--mute { background: var(--v2-draw-bg); color: var(--v2-draw); }
.v2-badge--info { background: var(--v2-info-bg); color: var(--v2-info); }
.v2-badge--live { background: var(--v2-live); color: #fff; }
.v2-badge--live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: v2pulse 1.4s ease-in-out infinite; }
@keyframes v2pulse { 50% { opacity: .25; } }

.v2-chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.v2-chips::-webkit-scrollbar { display: none; }
.v2-chips--wrap { flex-wrap: wrap; overflow: visible; }
.v2-chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--v2-line); background: var(--v2-surface); color: var(--v2-text-2); font: inherit; font-weight: 600; font-size: .92rem;
  cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background-color .15s, border-color .15s, color .15s;
}
.v2-chip:hover { border-color: var(--v2-text-3); }
.v2-chip[aria-pressed="true"], .v2-chip.is-active { background: var(--v2-primary); border-color: var(--v2-primary); color: var(--v2-primary-ink); }
.v2-chip img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; }

.v2-empty { text-align: center; padding: 36px 20px; color: var(--v2-text-3); }
.v2-empty i { font-size: 2.4rem; display: block; margin-bottom: 10px; opacity: .7; }
.v2-empty strong { display: block; color: var(--v2-text); font-size: 1.05rem; margin-bottom: 4px; }

.v2-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--v2-r-md); font-size: .92rem; font-weight: 500; }
.v2-alert i { margin-top: 2px; }
.v2-alert--bad { background: var(--v2-loss-bg); color: var(--v2-loss); }
.v2-alert--warn { background: var(--v2-warn-bg); color: var(--v2-warn); }
.v2-alert--ok { background: var(--v2-win-bg); color: var(--v2-win); }
.v2-alert--info { background: var(--v2-info-bg); color: var(--v2-info); }

/* formulários */
.v2-field { margin-bottom: 16px; }
.v2-label { display: block; margin: 0 0 6px 2px; font-size: .85rem; font-weight: 700; color: var(--v2-text-2); }
.v2-hint { margin: 6px 2px 0; font-size: .82rem; color: var(--v2-text-3); }
.v2-erro-campo { margin: 6px 2px 0; font-size: .84rem; font-weight: 600; color: var(--v2-loss); }
.v2-input, .v2-select, .v2-textarea {
  width: 100%; min-height: var(--v2-tap); padding: 0 14px; border-radius: var(--v2-r-md); border: 1.5px solid var(--v2-line);
  background: var(--v2-surface); color: var(--v2-text); font: inherit; font-size: 1rem; appearance: none; -webkit-appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.v2-textarea { padding: 12px 14px; min-height: 88px; resize: vertical; }
.v2-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235b6876' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m2 5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.v2-input:hover, .v2-select:hover, .v2-textarea:hover { border-color: var(--v2-text-3); }
.v2-input:focus, .v2-select:focus, .v2-textarea:focus { border-color: var(--v2-focus); box-shadow: 0 0 0 4px color-mix(in srgb, var(--v2-focus) 22%, transparent); outline: none; }
.v2-input.is-invalid { border-color: var(--v2-loss); }
.v2-input-wrap { position: relative; }
.v2-input-wrap > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--v2-text-3); pointer-events: none; }
.v2-input-wrap .v2-input { padding-left: 42px; }
.v2-input-wrap .v2-iconbtn { position: absolute; right: 2px; top: 2px; }
.v2-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.v2-row2--1-2 { grid-template-columns: 1fr 1.6fr; }

.v2-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: var(--v2-r-md); background: var(--v2-surface-3); }
.v2-seg input { position: absolute; opacity: 0; pointer-events: none; }
.v2-seg label {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 11px;
  font-weight: 700; font-size: .95rem; color: var(--v2-text-2); cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s;
}
.v2-seg input:checked + label { background: var(--v2-surface); color: var(--v2-text); box-shadow: var(--v2-sh-1); }
.v2-seg input:focus-visible + label { outline: 3px solid var(--v2-focus); outline-offset: 1px; }

.v2-switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: var(--v2-tap); padding: 6px 2px; cursor: pointer; }
.v2-switch__txt strong { display: block; font-size: .98rem; }
.v2-switch__txt span { font-size: .82rem; color: var(--v2-text-3); }
.v2-switch input { position: absolute; opacity: 0; }
.v2-switch__trilho { flex: 0 0 auto; width: 52px; height: 32px; border-radius: 999px; background: var(--v2-surface-3); border: 1.5px solid var(--v2-line); position: relative; transition: background-color .2s; }
.v2-switch__trilho::after { content: ''; position: absolute; top: 2px; left: 2px; width: 25px; height: 25px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .2s var(--v2-ease); }
.v2-switch input:checked + .v2-switch__trilho { background: var(--v2-primary); border-color: var(--v2-primary); }
.v2-switch input:checked + .v2-switch__trilho::after { transform: translateX(20px); }
.v2-switch input:focus-visible + .v2-switch__trilho { outline: 3px solid var(--v2-focus); outline-offset: 2px; }

.v2-stepper { display: inline-flex; align-items: center; gap: 6px; }
.v2-stepper button { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--v2-line); background: var(--v2-surface); color: var(--v2-text); font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; }
.v2-stepper button:active { transform: scale(.92); background: var(--v2-surface-3); }
.v2-stepper input { width: 56px; height: 48px; text-align: center; border: 0; background: transparent; font: inherit; font-weight: 800; font-size: 1.5rem; color: var(--v2-text); -moz-appearance: textfield; appearance: textfield; }
.v2-stepper input::-webkit-outer-spin-button, .v2-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.v2-stepper--sm button { width: 44px; height: 44px; font-size: 1.25rem; }
.v2-stepper--sm input { width: 38px; font-size: 1.15rem; }

/* escudo / avatar */
.v2-crest { flex: 0 0 auto; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--v2-surface); border: 1px solid var(--v2-line); overflow: hidden; color: var(--v2-text-3); }
.v2-crest img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.v2-crest--sm { width: 30px; height: 30px; border-radius: 9px; font-size: .9rem; }
.v2-crest--lg { width: 64px; height: 64px; border-radius: 18px; font-size: 1.5rem; }
.v2-crest--xl { width: 76px; height: 76px; border-radius: 20px; font-size: 1.7rem; }
.v2-avatar { flex: 0 0 auto; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--v2-surface-3); color: var(--v2-text-3); overflow: hidden; border: 2px solid var(--v2-surface); box-shadow: 0 0 0 1px var(--v2-line); }
.v2-avatar img { width: 100%; height: 100%; object-fit: contain; background: var(--v2-surface-2); }
.v2-avatar--sm { width: 36px; height: 36px; }
.v2-avatar--lg { width: 56px; height: 56px; }

/* listas */
.v2-lista { background: var(--v2-surface); border: 1px solid var(--v2-line); border-radius: var(--v2-r-lg); overflow: hidden; box-shadow: var(--v2-sh-1); }
.v2-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; width: 100%; text-align: left; text-decoration: none; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v2-item + .v2-item { border-top: 1px solid var(--v2-line); }
.v2-item:hover { background: var(--v2-surface-2); }
.v2-item__corpo { flex: 1; min-width: 0; }
.v2-item__titulo { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-item__sub { display: block; font-size: .84rem; color: var(--v2-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-item__fim { flex: 0 0 auto; color: var(--v2-text-3); display: flex; align-items: center; gap: 8px; }
.v2-item.is-novo { animation: v2destaque 2.4s var(--v2-ease); }
@keyframes v2destaque { 0%, 40% { background: color-mix(in srgb, var(--sao-dourado) 28%, transparent); } 100% { background: transparent; } }

/* ---------- 5. Camadas: folha, confirmação, toast, menu ---------- */
.v2-overlay { position: fixed; inset: 0; z-index: 1400; background: rgba(10, 16, 22, .52); opacity: 0; transition: opacity .22s; backdrop-filter: blur(2px); }
.v2-overlay.is-open { opacity: 1; }
.v2-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1410; display: flex; flex-direction: column;
  max-height: 94vh; max-height: 94dvh; background: var(--v2-surface); border-radius: var(--v2-r-xl) var(--v2-r-xl) 0 0;
  box-shadow: var(--v2-sh-3); transform: translateY(105%); transition: transform .3s var(--v2-ease);
}
.v2-sheet.is-open { transform: translateY(0); }
.v2-sheet--full { height: 94vh; height: 94dvh; }
.v2-sheet__alca { flex: 0 0 auto; width: 44px; height: 5px; margin: 9px auto 0; border-radius: 999px; background: var(--v2-line); }
.v2-sheet__cab { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 20px; }
.v2-sheet__cab h2 { flex: 1; font-size: 1.15rem; font-weight: 800; }
.v2-sheet__corpo { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 20px; -webkit-overflow-scrolling: touch; }
.v2-sheet__rodape {
  flex: 0 0 auto; display: flex; gap: 10px; padding: 12px 20px calc(12px + var(--v2-safe-b));
  background: var(--v2-surface); border-top: 1px solid var(--v2-line);
}
.v2-sheet__rodape .v2-btn--primary { flex: 1; }
.v2-sheet__carregando { display: grid; place-items: center; min-height: 220px; }
.v2-sheet__carregando .spinner { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--v2-line); border-top-color: var(--v2-primary); animation: v2spin .8s linear infinite; }
@media (min-width: 640px) {
  .v2-sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 560px; max-width: calc(100vw - 32px); max-height: 90vh; border-radius: var(--v2-r-xl); transform: translate(-50%, -46%) scale(.97); opacity: 0; transition: transform .25s var(--v2-ease), opacity .2s; }
  .v2-sheet.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .v2-sheet--full { height: auto; }
  .v2-sheet__alca { display: none; }
  .v2-sheet__cab { padding-top: 16px; }
}

.v2-dialogo { position: fixed; left: 50%; top: 50%; z-index: 1500; width: min(420px, calc(100vw - 32px)); padding: 22px; border-radius: var(--v2-r-xl); background: var(--v2-surface); box-shadow: var(--v2-sh-3); transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .22s var(--v2-ease), opacity .18s; }
.v2-dialogo.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.v2-dialogo h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.v2-dialogo p { margin: 0 0 18px; color: var(--v2-text-2); }
.v2-dialogo__acoes { display: flex; flex-direction: column-reverse; gap: 10px; }
@media (min-width: 420px) { .v2-dialogo__acoes { flex-direction: row; justify-content: flex-end; } }

.v2-toasts { position: fixed; left: 12px; right: 12px; bottom: calc(var(--v2-tabbar-h) + var(--v2-safe-b) + 14px); z-index: 1600; display: flex; flex-direction: column; gap: 8px; pointer-events: none; align-items: center; }
.v2-toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; width: min(460px, 100%); padding: 13px 14px; border-radius: var(--v2-r-md);
  background: #1c262e; color: #fff; font-weight: 600; font-size: .94rem; box-shadow: var(--v2-sh-3); border-left: 5px solid var(--v2-info);
  animation: v2toast .35s var(--v2-ease);
}
.v2-toast--ok { border-left-color: #35c07a; }
.v2-toast--bad { border-left-color: #ff6b5e; }
.v2-toast i { font-size: 1.2rem; }
.v2-toast--ok i { color: #35c07a; }
.v2-toast--bad i { color: #ff8a80; }
.v2-toast--info i { color: #8dbbff; }
.v2-toast__fechar { margin-left: auto; background: none; border: 0; color: #cdd6dd; width: 36px; height: 36px; border-radius: 10px; cursor: pointer; font-size: 1.1rem; }
.v2-toast.is-saindo { opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
@keyframes v2toast { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (min-width: 992px) { .v2-toasts { bottom: 24px; align-items: flex-end; left: auto; right: 24px; } }

.v2-menu-lista { margin: 0 -8px; }
.v2-menu-item { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 6px 12px; border-radius: 14px; text-decoration: none; color: var(--v2-text); font-weight: 600; background: none; border: 0; font-size: 1rem; width: 100%; font-family: inherit; cursor: pointer; text-align: left; }
.v2-menu-item:hover { background: var(--v2-surface-2); }
.v2-menu-item i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--v2-surface-3); font-size: 1.1rem; color: var(--v2-text-2); }
.v2-menu-item small { display: block; font-weight: 500; color: var(--v2-text-3); font-size: .8rem; }
.v2-menu-item--perigo { color: var(--v2-loss); }
.v2-menu-item--perigo i { background: var(--v2-loss-bg); color: var(--v2-loss); }
.v2-menu-sep { height: 1px; background: var(--v2-line); margin: 8px 12px; }
.v2-menu-grupo { margin: 14px 12px 2px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--v2-text-3); }

.v2-previa { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font-size: .82rem; font-weight: 600; background: var(--v2-warn-bg); color: var(--v2-warn); }
.v2-previa a { margin-left: auto; font-weight: 800; text-decoration: underline; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; margin-block: -13px; }

/* ---------- 6. Componentes de tela ---------- */
/* próximo jogo (destaque) */
.v2-hero {
  position: relative; overflow: hidden; border-radius: var(--v2-r-xl); padding: 18px 16px 16px; color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, .12), transparent 55%), linear-gradient(140deg, var(--sao-grena) 0%, var(--sao-grena-escuro) 52%, var(--sao-verde-escuro) 100%);
  box-shadow: var(--v2-sh-2);
}
.v2-hero__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .95; }
.v2-hero__chip { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); letter-spacing: 0; text-transform: none; font-weight: 700; }
.v2-hero__times { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 8px; margin: 18px 0 14px; }
.v2-hero__time { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.v2-hero__time .v2-crest { background: rgba(255, 255, 255, .94); border-color: transparent; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.v2-hero__nome { font-weight: 800; font-size: .95rem; line-height: 1.2; overflow-wrap: anywhere; }
.v2-hero__x { align-self: center; font-weight: 800; font-size: 1.2rem; opacity: .8; padding-top: 8px; }
.v2-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: .9rem; font-weight: 600; opacity: .96; }
.v2-hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.v2-hero__meta a { text-decoration: underline; text-underline-offset: 3px; }
.v2-hero__acoes { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.v2-hero__acoes .v2-btn { flex: 1 1 150px; }
.v2-hero--vazio { text-align: center; padding: 26px 18px; }
.v2-hero--vazio h2 { font-size: 1.2rem; font-weight: 800; margin: 8px 0 4px; }
.v2-hero--vazio p { margin: 0 0 16px; opacity: .9; }

/* faixa "falta lançar placar" */
.v2-pendente { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: var(--v2-r-lg); background: var(--v2-warn-bg); border: 1px solid color-mix(in srgb, var(--v2-warn) 30%, transparent); margin-bottom: 12px; }
.v2-pendente + .v2-pendente { margin-top: -4px; }
.v2-pendente__txt { flex: 1; min-width: 0; }
.v2-pendente__txt strong { display: block; color: var(--v2-warn); font-size: .95rem; }
.v2-pendente__txt span { font-size: .85rem; color: var(--v2-text-2); }

/* temporada */
.v2-temp { padding: 16px; }
.v2-temp__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v2-tile { text-align: center; padding: 12px 4px; border-radius: var(--v2-r-md); background: var(--v2-surface-2); }
.v2-tile b { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.v2-tile span { font-size: .78rem; font-weight: 700; color: var(--v2-text-3); text-transform: uppercase; letter-spacing: .04em; }
.v2-tile--v b { color: var(--v2-win); } .v2-tile--d b { color: var(--v2-loss); }
.v2-barra { height: 10px; border-radius: 999px; background: var(--v2-surface-3); overflow: hidden; margin: 14px 0 6px; }
.v2-barra > span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--v2-primary), var(--sao-dourado)); }
.v2-temp__linha { display: flex; justify-content: space-between; font-size: .9rem; color: var(--v2-text-2); font-weight: 600; }
.v2-temp__extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--v2-line); font-size: .9rem; }
.v2-temp__extra strong { color: var(--v2-win); }

/* top artilheiros (resumo) */
.v2-top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.v2-top3__item { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 10px; border-radius: var(--v2-r-md); background: var(--v2-surface-2); text-align: center; text-decoration: none; min-width: 0; }
.v2-top3__item:first-child { background: linear-gradient(180deg, color-mix(in srgb, var(--sao-dourado) 22%, var(--v2-surface-2)), var(--v2-surface-2)); }
.v2-top3__nome { font-weight: 700; font-size: .85rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-top3__gols { font-weight: 800; font-size: 1.3rem; line-height: 1; }
.v2-top3__gols small { font-size: .7rem; font-weight: 700; color: var(--v2-text-3); margin-left: 2px; }

/* navegação de mês */
.v2-mes { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 4px 0 12px; }
.v2-mes h2 { flex: 1; text-align: center; font-size: 1.15rem; font-weight: 800; }
.v2-mes h2 small { display: block; font-size: .75rem; font-weight: 600; color: var(--v2-text-3); }

/* cartão de jogo (lista) */
.v2-jogo {
  position: relative; display: grid; grid-template-columns: 58px 1fr auto; column-gap: 12px; row-gap: 2px; padding: 14px 14px 12px;
  background: var(--v2-surface); border: 1px solid var(--v2-line); border-left: 5px solid var(--v2-line); border-radius: var(--v2-r-lg); box-shadow: var(--v2-sh-1);
}
.v2-jogo + .v2-jogo { margin-top: 12px; }
.v2-jogo--vitoria { border-left-color: var(--v2-win); }
.v2-jogo--derrota { border-left-color: var(--v2-loss); }
.v2-jogo--empate { border-left-color: var(--v2-draw); }
.v2-jogo--pendente { border-left-color: var(--sao-dourado); }
.v2-jogo--confirmado { border-left-color: var(--v2-primary); }
.v2-jogo--cancelado { border-left-color: var(--v2-line); opacity: .82; }
.v2-jogo__data { grid-row: 1 / span 2; align-self: start; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--v2-surface-2); line-height: 1.1; }
.v2-jogo__data .dow { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: var(--v2-text-3); text-transform: uppercase; }
.v2-jogo__data .dia { display: block; font-size: 1.55rem; font-weight: 800; }
.v2-jogo__data .mes { display: block; font-size: .7rem; font-weight: 700; color: var(--v2-text-3); text-transform: uppercase; }
.v2-jogo__corpo { min-width: 0; }
.v2-placar-linha { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.v2-placar-linha__nome { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-placar-linha__gols { min-width: 26px; text-align: right; font-weight: 800; font-size: 1.25rem; }
.v2-placar-linha.is-vencedor .v2-placar-linha__nome { font-weight: 800; }
.v2-placar-linha.is-perdedor .v2-placar-linha__gols { color: var(--v2-text-3); font-weight: 700; }
.v2-jogo__lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.v2-jogo__meta { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: .85rem; color: var(--v2-text-3); font-weight: 500; }
.v2-jogo__meta span { display: inline-flex; align-items: center; gap: 5px; }
.v2-jogo__meta a { color: var(--v2-text-2); text-decoration: underline; text-underline-offset: 2px; }
.v2-jogo__gols { grid-column: 2 / -1; margin-top: 6px; font-size: .85rem; color: var(--v2-text-2); }
.v2-jogo__acoes { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--v2-line); }
.v2-jogo__acoes .v2-btn--primary, .v2-jogo__acoes .v2-btn--secondary { flex: 1; }

.v2-livres { margin-top: 18px; }
.v2-livres summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: var(--v2-r-lg); background: var(--v2-surface); border: 1px dashed var(--v2-line); font-weight: 700; cursor: pointer; list-style: none; }
.v2-livres summary::-webkit-details-marker { display: none; }
.v2-livres summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; transition: transform .2s; }
.v2-livres[open] summary::after { transform: rotate(180deg); }
.v2-livres .v2-chips { padding-top: 12px; }

/* seleção (agendar) */
.v2-selecionado { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--v2-r-md); background: var(--v2-surface-2); border: 1.5px solid var(--v2-primary); }
.v2-selecionado[hidden] { display: none; }
.v2-selecionado__txt { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-resultados { max-height: 240px; overflow-y: auto; margin-top: 8px; border: 1px solid var(--v2-line); border-radius: var(--v2-r-md); background: var(--v2-surface); }
.v2-resultados[hidden] { display: none; }
.v2-resultados .v2-item { min-height: 52px; }
.v2-detalhes { margin: 4px 0 16px; border-radius: var(--v2-r-md); border: 1px solid var(--v2-line); }
.v2-detalhes > summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; font-weight: 700; cursor: pointer; list-style: none; }
.v2-detalhes > summary::-webkit-details-marker { display: none; }
.v2-detalhes > summary::after { content: '\F282'; font-family: 'bootstrap-icons'; margin-left: auto; color: var(--v2-text-3); transition: transform .2s; }
.v2-detalhes[open] > summary::after { transform: rotate(180deg); }
.v2-detalhes__corpo { padding: 4px 14px 14px; }
.v2-perigo { margin-top: 8px; padding: 14px; border-radius: var(--v2-r-md); background: var(--v2-loss-bg); }
.v2-perigo p { margin: 0 0 10px; font-size: .86rem; color: var(--v2-text-2); }

/* placar */
.v2-placar-cab { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; margin: 4px 0 6px; }
.v2-placar-lado { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.v2-placar-lado b { font-size: .85rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.v2-placar-x { align-self: center; padding-top: 30px; font-weight: 800; font-size: 1.3rem; color: var(--v2-text-3); }
.v2-placar-lado .v2-stepper input { font-size: 2.1rem; width: 64px; height: 56px; }
.v2-placar-lado .v2-stepper { flex-direction: column; gap: 2px; }
.v2-placar-lado .v2-stepper button { width: 56px; height: 52px; border-radius: 16px; }
.v2-jogador-gol { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 4px; }
.v2-jogador-gol + .v2-jogador-gol { border-top: 1px solid var(--v2-line); }
.v2-jogador-gol__nome { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-jogador-gol.is-marcou .v2-jogador-gol__nome { font-weight: 800; }
.v2-jogador-gol[hidden] { display: none; }
.v2-resumo-gols { display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; border-radius: var(--v2-r-md); font-weight: 700; font-size: .92rem; background: var(--v2-surface-2); }
.v2-resumo-gols.is-ok { background: var(--v2-win-bg); color: var(--v2-win); }
.v2-resumo-gols.is-aviso { background: var(--v2-warn-bg); color: var(--v2-warn); }

/* artilharia */
.v2-lider { position: relative; overflow: hidden; border-radius: var(--v2-r-xl); color: #fff; padding: 20px 18px 0; min-height: 230px; display: grid; grid-template-columns: 1fr 42%; gap: 4px;
  background: radial-gradient(100% 100% at 0% 0%, rgba(201, 162, 39, .35), transparent 60%), linear-gradient(140deg, var(--sao-verde-escuro), var(--sao-verde) 60%, var(--sao-grena-escuro)); box-shadow: var(--v2-sh-2); }
.v2-lider__info { padding-bottom: 18px; align-self: center; min-width: 0; }
.v2-lider__tag { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--sao-dourado); }
.v2-lider__nome { font-size: 1.6rem; font-weight: 800; line-height: 1.1; margin: 6px 0 2px; overflow-wrap: anywhere; }
.v2-lider__sub { font-size: .85rem; opacity: .8; }
.v2-lider__gols { font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--sao-dourado); margin-top: 8px; }
.v2-lider__gols small { font-size: 1rem; color: #fff; font-weight: 700; margin-left: 6px; }
.v2-lider__foto { align-self: end; justify-self: center; display: flex; align-items: flex-end; height: 100%; min-height: 200px; }
.v2-lider__foto img { max-width: 100%; max-height: 240px; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); }
.v2-lider__foto .v2-avatar { width: 96px; height: 96px; align-self: center; font-size: 2.4rem; }
.v2-rank { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; width: 100%; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.v2-rank + .v2-rank { border-top: 1px solid var(--v2-line); }
.v2-rank:hover { background: var(--v2-surface-2); }
.v2-rank__pos { width: 26px; text-align: center; font-weight: 800; color: var(--v2-text-3); }
.v2-rank__corpo { flex: 1; min-width: 0; }
.v2-rank__nome { font-weight: 700; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-rank__barra { display: block; height: 6px; margin-top: 7px; border-radius: 999px; background: var(--v2-surface-3); overflow: hidden; }
.v2-rank__barra span { display: block; height: 100%; background: linear-gradient(90deg, var(--v2-primary), var(--sao-dourado)); border-radius: 999px; }
.v2-rank__gols { text-align: right; min-width: 52px; }
.v2-rank__gols b { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1; }
.v2-rank__gols small { font-size: .72rem; color: var(--v2-text-3); font-weight: 600; }

/* busca / filtros */
.v2-busca { position: sticky; top: calc(var(--v2-topbar-h) + var(--v2-safe-t)); z-index: 5; padding: 8px 0 10px; background: var(--v2-bg); }

/* utilitários */
.v2-mt-1 { margin-top: 8px; } .v2-mt-2 { margin-top: 16px; } .v2-mt-3 { margin-top: 24px; }
.v2-flex { display: flex; align-items: center; gap: 10px; } .v2-grow { flex: 1; min-width: 0; }
.v2-texto-3 { color: var(--v2-text-3); } .v2-peq { font-size: .85rem; }
.v2-centro { text-align: center; }
[hidden] { display: none !important; }

/* ---------- 7. Ajustes finais ---------- */
.v2-sheet__conteudo, .v2-sheet__conteudo > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.v2-so-desktop { display: none !important; }
@media (min-width: 992px) { .v2-so-desktop { display: inline-flex !important; } }
.v2-body ul, .v2-body ol { margin: 0; padding: 0; list-style: none; }
.v2-body p { margin: 0 0 .5em; }
.v2-body button, .v2-body input, .v2-body select, .v2-body textarea { font-family: inherit; }

/* home: no celular a coluna lateral (próximo jogo, temporada) vem primeiro */
.v2-home-grid { display: flex; flex-direction: column; gap: 6px; }
.v2-col-lateral { order: 1; } .v2-col-principal { order: 2; margin-top: 22px; }
@media (min-width: 992px) {
  .v2-home-grid { display: grid; gap: 20px; }
  .v2-col-principal { order: 1; margin-top: 0; } .v2-col-lateral { order: 2; position: sticky; top: calc(var(--v2-topbar-h) + 16px); }
}
.v2-chip:has(input:focus-visible) { outline: 3px solid var(--v2-focus); outline-offset: 2px; }

.v2-tabbar--5 { grid-template-columns: repeat(5, 1fr); }
.v2-galeria-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--v2-r-lg); background: linear-gradient(120deg, var(--sao-grena), var(--sao-verde)); color: #fff; text-decoration: none; box-shadow: var(--v2-sh-1); min-height: 64px; }
.v2-galeria-card i:first-child { font-size: 1.8rem; }
.v2-galeria-card strong { display: block; font-size: 1.05rem; }
.v2-galeria-card span { font-size: .85rem; opacity: .9; }
.v2-galeria-card i:last-child { margin-left: auto; }
