/* ==========================================================================
   Bolão — Design System "Arena"
   Dark neutro · acento verde-limão elétrico · Barlow Condensed (esporte)
   Atemporal: serve para qualquer campeonato.
   ========================================================================== */

/* ------------------------------------------------ tokens */
:root {
  /* superfícies */
  --bg: #0A0A0B;
  --surface: #141417;
  --surface-strong: #1C1C21;
  --surface-sunken: rgba(0, 0, 0, 0.32);
  --border: #26262C;
  --border-strong: #35353E;

  /* texto */
  --text: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;

  /* marca — acento único, alto contraste */
  --accent: #D4FF3F;
  --accent-dim: #A3CC22;
  --accent-soft: rgba(212, 255, 63, 0.12);
  --on-accent: #0A0A0B;

  /* semânticas */
  --success: #34D399;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning: #FBBF24;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --danger: #FB7185;
  --danger-bg: rgba(251, 113, 133, 0.12);

  /* geometria */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* espaçamento (escala 4pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* tipografia */
  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Barlow", system-ui, sans-serif;
  --fs-xs: 0.75rem;   /* 12 */
  --fs-sm: 0.875rem;  /* 14 */
  --fs-base: 1rem;    /* 16 */
  --fs-lg: 1.125rem;  /* 18 */
  --fs-xl: 1.5rem;    /* 24 */
  --fs-2xl: 2.125rem; /* 34 */

  /* movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;

  /* camadas */
  --z-nav: 40;
  --z-toast: 100;
  --z-dialog: 200;
}

/* ------------------------------------------------ reset & base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  padding: var(--sp-4);
  touch-action: manipulation;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:disabled { cursor: not-allowed; opacity: 0.4; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

::selection { background: rgba(212, 255, 63, 0.25); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------ layout */
.wrap { max-width: 460px; margin: 0 auto; }

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  text-align: center;
  padding: var(--sp-4) 0 var(--sp-8);
}

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); text-decoration: none; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--on-accent);
}
.brand-mark svg { width: 21px; height: 21px; stroke-width: 2.4; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
}
.brand-name em { font-style: normal; color: var(--accent); }

.site-tagline { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: var(--sp-2); }

.site-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  padding: var(--sp-10) 0 var(--sp-4);
  display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
}
.site-footer a { color: var(--text-muted); }

.stack { display: flex; flex-direction: column; gap: var(--sp-3); }

/* ------------------------------------------------ cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.card-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.card-title svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

.card--center { text-align: center; }
.card--center .card-title { justify-content: center; }

/* títulos de página */
.page-title {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}
.page-subtitle { color: var(--text-secondary); font-size: var(--fs-sm); margin-top: var(--sp-2); }

/* ------------------------------------------------ prêmio acumulado */
.pote-banner {
  text-align: center;
  padding: var(--sp-5);
  border-radius: var(--radius);
  border: 1px solid var(--accent-dim);
  background: var(--accent-soft);
}
.pote-banner .label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.pote-banner .label svg { width: 15px; height: 15px; }
.pote-banner .valor {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin: var(--sp-1) 0;
  line-height: 1.1;
}
.pote-banner .hint { color: var(--text-secondary); font-size: var(--fs-xs); }

/* ------------------------------------------------ lista de jogos */
.match-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.match-card:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.match-card:active { transform: scale(0.99); }

.match-flag {
  width: 42px; height: 42px; flex: none;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--accent);
}
.match-flag svg { width: 20px; height: 20px; }

.match-info { flex: 1; min-width: 0; }
.match-info .teams {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.match-info .meta { color: var(--text-muted); font-size: var(--fs-xs); margin-top: 2px; }
.match-info .meta svg {
  width: 12px; height: 12px; display: inline-block; vertical-align: -1px; margin-right: 3px;
}
.match-side { display: flex; flex-direction: column; align-items: flex-end; gap: var(--sp-1); }

/* ------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
}
.badge svg { width: 12px; height: 12px; }
.badge--aberto    { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-dim); }
.badge--lotado    { background: var(--danger-bg);   color: var(--danger); border-color: rgba(251,113,133,.3); }
.badge--sorteado  { background: var(--warning-bg);  color: var(--warning); border-color: rgba(251,191,36,.3); }
.badge--encerrado { background: var(--surface-strong); color: var(--text-secondary); border-color: var(--border); }

/* ------------------------------------------------ progresso */
.progress {
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--surface-sunken);
  overflow: hidden;
  margin: var(--sp-3) 0 var(--sp-2);
}
.progress > div {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 400ms var(--ease);
}

/* ------------------------------------------------ estatísticas */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-top: var(--sp-4); }
.stat {
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  text-align: center;
}
.stat .valor {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .rotulo {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.stat--gold { background: var(--accent-soft); border-color: var(--accent-dim); }
.stat--gold .valor { color: var(--accent); }
.stat--green .valor { color: var(--success); }

/* ------------------------------------------------ formulários */
.field { margin-bottom: var(--sp-4); }

.field label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.field label .req { color: var(--accent); }

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-sunken);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.field select option { color: #111; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field .helper { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--sp-1); }
.field .error-msg { display: none; font-size: var(--fs-xs); color: var(--danger); margin-top: var(--sp-1); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }

/* ------------------------------------------------ botões */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-accent);
  background: var(--accent);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.98); }

.btn--ghost {
  background: var(--surface-strong);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover { filter: none; background: #24242B; }

.btn--danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(251, 113, 133, 0.35);
}
.btn--danger:hover { filter: none; background: rgba(251, 113, 133, 0.2); }

.btn--block { width: 100%; margin-top: var(--sp-3); }
.btn--lg { min-height: 56px; font-size: 1.2rem; }

.btn.loading { pointer-events: none; opacity: 0.75; }
.btn.loading .btn-label { visibility: hidden; }
.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2.5px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------ listas */
.plain-list { list-style: none; display: flex; flex-direction: column; gap: var(--sp-2); }

.row-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.row-item .name { display: flex; align-items: center; gap: var(--sp-2); font-weight: 600; min-width: 0; }
.row-item .name svg { width: 15px; height: 15px; color: var(--text-muted); flex: none; }
.row-item .check { color: var(--success); }
.row-item .check svg { width: 17px; height: 17px; }

/* ------------------------------------------------ pares (sorteio legado) */
.pair {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-2);
  background: var(--surface-strong);
  border: 1px solid var(--border);
}
.pair .who { font-weight: 600; font-size: var(--fs-sm); flex: 0 0 38%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pair .arrow { color: var(--text-muted); flex: none; }
.pair .arrow svg { width: 14px; height: 14px; }
.pair .player { flex: 1; text-align: right; font-weight: 700; font-size: var(--fs-sm); color: var(--accent); }
.pair--winner { border-color: var(--success); background: var(--success-bg); }
.pair--winner .player { color: var(--success); }

/* ------------------------------------------------ status pill (PIX) */
.status-pill {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: var(--fs-sm);
  margin: var(--sp-3) 0;
}
.status-pill svg { width: 16px; height: 16px; }
.status-pill--pendente { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(251,191,36,.3); }
.status-pill--pago     { background: var(--success-bg); color: var(--success); border: 1px solid rgba(52,211,153,.35); }
.status-pill--expirado { background: var(--danger-bg);  color: var(--danger);  border: 1px solid rgba(251,113,133,.35); }
.status-pill--pendente svg { animation: spin 1.4s linear infinite; }

/* ------------------------------------------------ QR / copia-e-cola */
.qr-frame {
  background: #fff;
  border-radius: var(--radius);
  padding: var(--sp-4);
  display: inline-block;
  margin: var(--sp-4) auto;
}
.qr-frame img { width: 224px; height: 224px; }

.copy-box {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-xs);
  word-break: break-all;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  padding: var(--sp-3);
  border-radius: var(--radius-sm);
  margin: var(--sp-3) 0;
  max-height: 88px;
  overflow: auto;
  text-align: left;
  color: var(--text-secondary);
}

.countdown { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--accent); }

/* ------------------------------------------------ alerts */
.alert {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  border: 1px solid transparent;
}
.alert svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.alert--error   { background: var(--danger-bg);  color: var(--danger);  border-color: rgba(251,113,133,.3); }
.alert--success { background: var(--success-bg); color: var(--success); border-color: rgba(52,211,153,.3); }
.alert--info    { background: var(--surface-strong); color: var(--text-secondary); border-color: var(--border); }

/* ------------------------------------------------ toast */
.toast-region {
  position: fixed;
  bottom: max(var(--sp-4), env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  z-index: var(--z-toast);
  display: flex; flex-direction: column; gap: var(--sp-2);
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.6);
  font-size: var(--fs-sm);
  font-weight: 600;
  animation: toast-in 250ms var(--ease);
  pointer-events: auto;
}
.toast svg { width: 17px; height: 17px; flex: none; }
.toast--success svg { color: var(--success); }
.toast--error svg { color: var(--danger); }
.toast.leaving { animation: toast-out 180ms var(--ease) forwards; }
@keyframes toast-in  { from { opacity: 0; transform: translateY(12px); } }
@keyframes toast-out { to   { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------ dialog */
dialog.confirm {
  margin: auto;
  width: min(92vw, 400px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: var(--sp-6);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
}
dialog.confirm::backdrop { background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
dialog.confirm h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; margin-bottom: var(--sp-2); text-transform: uppercase; }
dialog.confirm p { color: var(--text-secondary); font-size: var(--fs-sm); margin-bottom: var(--sp-5); }
dialog.confirm .actions { display: flex; gap: var(--sp-3); }
dialog.confirm .actions .btn { flex: 1; margin-top: 0; }

/* ------------------------------------------------ skeleton */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-strong) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  min-height: 20px;
}
.skeleton--card { min-height: 76px; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------ empty state */
.empty-state { text-align: center; padding: var(--sp-8) var(--sp-4); color: var(--text-muted); font-size: var(--fs-sm); }
.empty-state svg { width: 34px; height: 34px; margin: 0 auto var(--sp-3); opacity: 0.5; }

/* ------------------------------------------------ passos (como funciona) */
.steps { display: flex; flex-direction: column; gap: var(--sp-4); counter-reset: passo; }
.step { display: flex; gap: var(--sp-3); align-items: flex-start; }
.step-num {
  counter-increment: passo;
  flex: none;
  width: 26px; height: 26px;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  background: var(--accent-soft);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
}
.step-num::before { content: counter(passo); }
.step p { font-size: var(--fs-sm); color: var(--text-secondary); padding-top: 2px; }
.step p b { color: var(--text); }

/* ------------------------------------------------ tabela admin */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
table.data th {
  text-align: left;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  padding: var(--sp-2) var(--sp-3);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}
table.data td { padding: var(--sp-3); border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ avatar */
.avatar {
  width: 30px; height: 30px; flex: none;
  border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* ------------------------------------------------ distribuição de palpites */
.dist-lista { display: flex; flex-direction: column; gap: var(--sp-2); }

.dist {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  overflow: hidden;
}
.dist summary {
  list-style: none;
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 10px 14px;
  min-height: 48px;
  cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.dist summary::-webkit-details-marker { display: none; }
.dist summary:hover { background: rgba(255, 255, 255, 0.03); }
.dist .placar {
  flex: none; width: 52px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.dist .barra { flex: 1; height: 8px; border-radius: var(--radius-full); background: var(--surface-sunken); overflow: hidden; }
.dist .barra > div {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  transition: width 400ms var(--ease);
}
.dist .qtd {
  flex: none;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.dist .qtd svg { width: 13px; height: 13px; color: var(--success); }
.dist .nomes { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 14px 12px; }
.dist .nomes .tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 3px;
}
.dist .nomes .tag .avatar { width: 24px; height: 24px; font-size: 0.62rem; border-radius: var(--radius-full); }
.dist--hit { border-color: var(--success); }
.dist--hit .barra > div { background: linear-gradient(90deg, #10B981, var(--success)); }
.dist--hit .placar { color: var(--success); }

/* ------------------------------------------------ carrinho de placares */
.palpite-row {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  padding: var(--sp-3) var(--sp-4) var(--sp-2);
  margin-bottom: var(--sp-2);
}
.palpite-row .remover {
  display: flex; align-items: center; gap: 4px;
  margin: 4px 0 0 auto;
  padding: 6px 8px;
  min-height: 32px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.palpite-row .remover:hover { color: var(--danger); background: var(--danger-bg); }
.palpite-row:only-child .remover { display: none; }

/* ------------------------------------------------ stepper de placar */
.stepper-linha { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.stepper-linha .time {
  flex: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.stepper-linha .time--brasil { color: var(--accent); }
.stepper { display: flex; align-items: center; gap: var(--sp-2); flex: none; }
.step-btn {
  width: 46px; height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--surface-strong);
  color: var(--text);
  font-size: 1.3rem;
  font-weight: 700;
  display: grid; place-items: center;
  transition: background var(--dur) var(--ease), transform 120ms var(--ease);
}
.step-btn:active { transform: scale(0.92); background: #2A2A32; }
.stepper input[type="number"] {
  width: 56px;
  min-height: 46px;
  padding: 4px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ------------------------------------------------ chip de placar */
.score-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  border: 1px solid var(--border-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.score-chip--hit { background: var(--success-bg); border-color: var(--success); color: var(--success); }

/* ------------------------------------------------ histórico */
.history-winner {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 5px;
  font-size: var(--fs-sm);
}
.history-winner svg { width: 14px; height: 14px; flex: none; }

/* ------------------------------------------------ confete */
.confete {
  position: fixed;
  top: -14px;
  width: 8px; height: 14px;
  border-radius: 2px;
  z-index: var(--z-toast);
  pointer-events: none;
  animation: confete-cair var(--dur-c, 2.2s) ease-in forwards;
}
@keyframes confete-cair {
  to { transform: translateY(105vh) rotate(var(--rot, 540deg)); opacity: 0.85; }
}

/* ------------------------------------------------ motion de entrada */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rise-in { from { opacity: 0; transform: translateY(10px); } }
  #conteudo > * { animation: rise-in 300ms var(--ease) backwards; }
  #conteudo > *:nth-child(2) { animation-delay: 60ms; }
  #conteudo > *:nth-child(3) { animation-delay: 120ms; }
  #conteudo > *:nth-child(4) { animation-delay: 180ms; }
  #conteudo > *:nth-child(n+5) { animation-delay: 240ms; }

  .plain-list .row-item, .pair, .dist { animation: rise-in 250ms var(--ease) backwards; }
  .plain-list .row-item:nth-child(2), .pair:nth-of-type(2), .dist:nth-of-type(2) { animation-delay: 30ms; }
  .plain-list .row-item:nth-child(3), .pair:nth-of-type(3), .dist:nth-of-type(3) { animation-delay: 60ms; }
  .plain-list .row-item:nth-child(4), .pair:nth-of-type(4), .dist:nth-of-type(4) { animation-delay: 90ms; }
  .plain-list .row-item:nth-child(n+5), .pair:nth-of-type(n+5), .dist:nth-of-type(n+5) { animation-delay: 120ms; }
}

/* ------------------------------------------------ utilitários */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: var(--fs-sm); }
.text-xs { font-size: var(--fs-xs); }
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mb-4 { margin-bottom: var(--sp-4); }
.hidden { display: none !important; }

.back-link {
  display: inline-flex; align-items: center; gap: var(--sp-1);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: var(--sp-4);
  min-height: 44px;
}
.back-link:hover { color: var(--text); }
.back-link svg { width: 16px; height: 16px; }

@media (min-width: 640px) {
  body { padding: var(--sp-6); }
  .card { padding: var(--sp-6); }
}
