:root {
  --bg: #0e1b2a;
  --bg-2: #142a40;
  --card: #16293d;
  --card-2: #1d3450;
  --line: rgba(255, 255, 255, 0.08);
  --ink: #f6f2e8;
  --muted: #a3b3c6;
  --azul: #2f6fdb;
  --amarelo: #ffd23f;
  --coxinha: #27a84f;
  --coxinha-2: #5bdb82;
  --coxinha-deep: #146a30;
  --mortadela: #e63956;
  --mortadela-2: #ff6b81;
  --mortadela-deep: #9c1f36;
  --neutro: #2b3f55;
  --radius: 18px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(1200px 600px at 20% -10%, #1c3a57 0%, var(--bg) 55%), var(--bg);
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
a { color: var(--amarelo); }
button { font: inherit; }
[hidden] { display: none !important; }

.screen { min-height: 100dvh; }
.screen-lobby { padding: 20px 16px 40px; max-width: 560px; margin: 0 auto; display: grid; gap: 14px; }

.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 8px 0 4px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background:
    linear-gradient(135deg, var(--coxinha) 0 50%, var(--mortadela) 50% 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.35), inset 0 0 0 3px rgba(255,255,255,.12);
  transform: rotate(-6deg);
}
h1 { font-size: 34px; margin: 0; letter-spacing: -0.5px; font-weight: 900; }
h1 .hl { color: var(--amarelo); }
h2 { font-size: 18px; margin: 0; font-weight: 700; }
.tagline { color: var(--muted); margin: 10px auto 0; max-width: 420px; line-height: 1.4; }
.tagline .vs { color: var(--amarelo); font-weight: 900; }

/* ---------- placar ---------- */
.placar-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 10px; font-weight: 700; }
.placar-team { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; }
.placar-team.mortadela { justify-content: end; text-align: right; }
.placar-team .dot { grid-row: 1; align-self: center; }
.placar-team .placar-nome { grid-row: 1; font-size: 15px; }
.placar-team strong { grid-row: 2; grid-column: 2; font-size: 30px; font-weight: 900; line-height: 1; }
.placar-team small { grid-row: 2; grid-column: 1; color: var(--muted); font-weight: 500; font-size: 12px; justify-self: end; }
.placar-team.mortadela small { grid-column: 2; justify-self: start; }
.placar-team.mortadela strong { grid-column: 1; }
.placar-team.mortadela .dot { grid-column: 2; }
.placar-team.mortadela .placar-nome { grid-column: 1; }
.placar-vs { color: var(--amarelo); font-weight: 900; font-size: 22px; padding: 0 10px; }
.placar-team.coxinha strong { color: var(--coxinha-2); }
.placar-team.mortadela strong { color: var(--mortadela-2); }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; align-self: center; }
.coxinha .dot { background: var(--coxinha); }
.mortadela .dot { background: var(--mortadela); }
.placar-sub { margin: 10px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.barra {
  display: flex; height: 34px; border-radius: 12px; overflow: hidden;
  background: var(--neutro); font-weight: 900; font-size: 14px;
}
.barra > div { display: flex; align-items: center; transition: width .6s cubic-bezier(.2,.8,.2,1); min-width: 0; }
.barra-coxinha { background: linear-gradient(90deg, var(--coxinha-deep), var(--coxinha)); justify-content: flex-start; padding-left: 10px; color: #fff; }
.barra-mortadela { background: linear-gradient(90deg, var(--mortadela), var(--mortadela-deep)); justify-content: flex-end; padding-right: 10px; color: #fff; }
.barra.mini { height: 10px; border-radius: 6px; }
.barra.mini > div { padding: 0; }

/* ---------- mapa do Brasil ---------- */
.mapa-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.chip { background: rgba(255,255,255,.08); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.mapa-svg svg { width: 100%; height: auto; display: block; }
.tile { cursor: pointer; }
.tile path { stroke: #0a1522; stroke-width: 1.2; stroke-linejoin: round; transition: fill .5s, stroke .15s; }
.tile:hover path { stroke: #fff; }
.tile.selected path { stroke: var(--amarelo); stroke-width: 3; }
.mapa-svg text { font-family: var(--font); fill: #fff; text-anchor: middle; pointer-events: none; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 3px; stroke-linejoin: round; }
.mapa-svg text.uf { font-weight: 900; font-size: 15px; }
.mapa-svg text.uf.small { font-size: 11px; }
.mapa-svg text.pct { font-size: 10px; font-weight: 700; opacity: .95; }
.mapa-svg text.flag { font-size: 9px; font-weight: 700; fill: var(--amarelo); }
.mapa-svg line.leader { stroke: rgba(255,255,255,.55); stroke-width: 1; }
.mapa-legenda { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: 12px; margin: 10px 0 0; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; vertical-align: -2px; margin-right: 4px; }
.sw.coxinha { background: var(--coxinha); } .sw.mortadela { background: var(--mortadela); } .sw.neutro { background: var(--neutro); }

/* ---------- form ---------- */
.entrar { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
input[type=text], select {
  width: 100%; background: #0d1a28; color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px; font-size: 16px; font-family: var(--font);
}
input:focus, select:focus { outline: 2px solid var(--amarelo); border-color: transparent; }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.time {
  position: relative; display: grid; gap: 2px; justify-items: center; padding: 14px 10px;
  border-radius: 14px; border: 2px solid var(--line); background: #0d1a28; cursor: pointer; text-align: center;
  transition: transform .15s, border-color .15s, background .15s;
}
.time input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.time-ico { width: 44px; height: 44px; border-radius: 50%; margin-bottom: 6px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.25); }
.time.coxinha .time-ico { background: radial-gradient(circle at 35% 30%, var(--coxinha-2), var(--coxinha) 60%, var(--coxinha-deep)); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; }
.time.mortadela .time-ico { background: radial-gradient(circle at 35% 30%, var(--mortadela-2), var(--mortadela) 60%, var(--mortadela-deep)); }
.time-nome { font-weight: 900; font-size: 17px; }
.time-sub { font-size: 12px; color: var(--muted); }
.time:has(input:checked) { transform: translateY(-2px); background: var(--card-2); }
.time.coxinha:has(input:checked) { border-color: var(--coxinha); }
.time.mortadela:has(input:checked) { border-color: var(--mortadela); }

.btn {
  border: 0; border-radius: 14px; padding: 12px 18px; font-weight: 800; cursor: pointer;
  color: var(--ink); background: rgba(255,255,255,.08); transition: transform .1s, filter .15s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--amarelo), #f2b800); color: #231a00; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary { background: var(--azul); color: #fff; }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.btn-turbo { background: linear-gradient(180deg, #ffffff, #e7ecf3); color: #0b1a2a; }
.btn-big { font-size: 20px; padding: 16px; width: 100%; }
.erro { color: var(--mortadela-2); font-weight: 700; margin: 0; }
.turnstile:empty { display: none; }

/* ---------- ads ---------- */
.ad-slot { min-height: 90px; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.ad-slot.ad-big { min-height: 250px; }
.house-ad {
  width: 100%; min-height: 90px; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: linear-gradient(90deg, #1f3b58, #16293d); border: 1px dashed var(--line); cursor: pointer;
}
.house-ad .tag { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.house-ad strong { display: block; font-size: 15px; }
.house-ad span.sub { color: var(--muted); font-size: 12px; }
.house-ad .mark { width: 40px; height: 40px; border-radius: 10px; background: linear-gradient(135deg, var(--coxinha) 0 50%, var(--mortadela) 50% 100%); }

.rodape { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.5; }
.rodape p { margin: 6px 0; }
.rodape .mini { opacity: .6; }
.mini { font-size: 12px; color: var(--muted); }

/* ---------- arena ---------- */
.screen-arena { position: fixed; inset: 0; background: #08131f; overflow: hidden; touch-action: none; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
/* em partida a pagina precisa poder ficar 1px abaixo do topo (ver showScreen) */
html.em-partida body { min-height: calc(100% + 2px); }
#canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hud { position: absolute; left: 0; right: 0; display: flex; gap: 8px; align-items: center; padding: 0 12px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-top { top: max(10px, env(safe-area-inset-top)); justify-content: space-between; }
.hud-chip { background: rgba(8,19,31,.8); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-weight: 900; color: var(--ink); display: flex; gap: 8px; align-items: baseline; }
.hud-chip small { color: var(--muted); font-weight: 500; font-size: 11px; }
.hud-btn { cursor: pointer; }
.hud-timer { font-size: 28px; font-weight: 900; text-shadow: 0 2px 8px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; }
.hud-bar { top: calc(max(10px, env(safe-area-inset-top)) + 54px); flex-direction: column; align-items: stretch; gap: 4px; }
.hud-bar-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.hud-bottom { bottom: max(12px, env(safe-area-inset-bottom)); justify-content: space-between; }
.hud-dica { margin: 0; font-size: 12px; color: var(--muted); max-width: 60%; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.ko { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: rgba(230,57,86,.18); backdrop-filter: blur(2px); font-size: 26px; font-weight: 900; text-shadow: 0 2px 10px rgba(0,0,0,.7); }
.ko span { font-size: 14px; font-weight: 500; color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--amarelo); color: #231a00; padding: 12px 16px; border-radius: 12px; font-weight: 800; box-shadow: var(--shadow); z-index: 50; max-width: 90vw; text-align: center; }
.mapa-overlay { position: absolute; inset: 0; background: rgba(8,19,31,.85); display: grid; place-items: center; padding: 16px; overflow: auto; }
.mapa-overlay .card { width: min(520px, 100%); display: grid; gap: 10px; }

/* ---------- resultado ---------- */
.screen-resultado { padding: 24px 16px 40px; max-width: 520px; margin: 0 auto; display: grid; gap: 14px; align-content: start; }
.resultado-card { display: grid; gap: 14px; text-align: center; }
.eyebrow { margin: 0; color: var(--amarelo); font-weight: 800; letter-spacing: 1px; text-transform: uppercase; font-size: 12px; }
.resultado-card h2 { font-size: 26px; font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: #0d1a28; border-radius: 12px; padding: 12px 6px; display: grid; }
.stat strong { font-size: 24px; font-weight: 900; }
.stat span { color: var(--muted); font-size: 12px; }
.res-sub { margin: 0; color: var(--muted); }
.acoes { display: grid; gap: 10px; }

/* ---------- sheet (boosts) ---------- */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; align-items: end; z-index: 40; }
.sheet-card { background: var(--card); border-radius: 22px 22px 0 0; padding: 18px 16px max(20px, env(safe-area-inset-bottom)); display: grid; gap: 12px; max-height: 88dvh; overflow: auto; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-sub { margin: 0; color: var(--muted); font-size: 13px; }
.skus { display: grid; gap: 10px; }
.sku { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; background: #0d1a28; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: left; color: var(--ink); cursor: pointer; }
.sku strong { font-size: 16px; }
.sku span { color: var(--muted); font-size: 12px; grid-column: 1; }
.sku .preco { grid-row: 1 / span 2; grid-column: 2; font-size: 18px; font-weight: 900; color: var(--amarelo); }
.sku:hover { border-color: var(--amarelo); }

/* ---------- interstitial ---------- */
.interstitial { position: fixed; inset: 0; background: rgba(8,19,31,.96); display: grid; place-items: center; z-index: 60; padding: 16px; }
.interstitial-card { width: min(420px, 100%); display: grid; gap: 12px; justify-items: center; }

@media (min-width: 720px) {
  .screen-lobby { max-width: 620px; }
  h1 { font-size: 40px; }
  .hud-dica { max-width: 70%; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- ranking / disputa ---------- */
.seg { display: inline-flex; background: #0d1a28; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--muted); font-weight: 800; padding: 6px 12px; border-radius: 999px; cursor: pointer; font-size: 13px; }
.seg button.on { background: var(--amarelo); color: #231a00; }
.seg.small { margin: 8px 0 10px; }
.seg.small button { padding: 4px 10px; font-size: 12px; }
.ranking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: pos; }
.ranking-list li { display: grid; grid-template-columns: 28px 10px 1fr auto; align-items: center; gap: 8px; background: #0d1a28; border-radius: 10px; padding: 8px 10px; font-weight: 700; }
.ranking-list li::before { counter-increment: pos; content: counter(pos); color: var(--muted); font-variant-numeric: tabular-nums; }
.ranking-list li .dot { width: 10px; height: 10px; }
.ranking-list li .pts { font-variant-numeric: tabular-nums; color: var(--amarelo); }
.ranking-list li.me { outline: 2px solid var(--amarelo); }
.ranking-list li.vazio { grid-template-columns: 1fr; color: var(--muted); font-weight: 500; }
.ranking-list li.vazio::before { content: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-disputa { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-weight: 900; font-size: 13px; cursor: pointer; border: 1px solid var(--line); background: #0d1a28; }
.chip-disputa .bar { width: 48px; height: 6px; border-radius: 3px; background: var(--mortadela); overflow: hidden; }
.chip-disputa .bar i { display: block; height: 100%; background: var(--coxinha); }
.sub-h { margin-top: 14px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.viradas { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.viradas li { display: flex; justify-content: space-between; gap: 8px; }
.viradas li time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.t-coxinha { color: var(--coxinha-2); font-weight: 900; }
.t-mortadela { color: var(--mortadela-2); font-weight: 900; }
.hud-virada { margin: 2px 0 0; text-align: center; font-size: 13px; font-weight: 800; text-shadow: 0 1px 4px rgba(0,0,0,.8); color: var(--amarelo); }
.res-pontos { margin: 0; font-weight: 900; font-size: 18px; color: var(--amarelo); }
.tile.disputa path { stroke: var(--amarelo); stroke-dasharray: 4 3; }
.tile.virou path { animation: virou 1.2s ease-out 3; }
@keyframes virou { 0% { filter: brightness(1.8); } 100% { filter: brightness(1); } }
.toast.flip { background: #fff; color: #0b1a2a; }

/* =====================================================================
   HUD: sair, tabuleiros do estado e fusao
   ===================================================================== */
.hud-esq { display: flex; gap: 8px; align-items: center; }

/* Sair: dois toques (o primeiro arma, o segundo sai) para nao sair sem querer */
.hud-sair { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13px; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.hud-sair .sair-x { font-size: 12px; opacity: .8; }
.hud-sair:active { transform: scale(.94); }
.hud-sair.armado { background: var(--amarelo); color: #1a1a1a; border-color: transparent; animation: sair-pulso .9s ease-in-out infinite; }
@keyframes sair-pulso { 50% { box-shadow: 0 0 0 6px rgba(255, 210, 63, .25); } }

/* Chip "SP · tabuleiro 3 de 7" com a pilha de cartas (1 carta = 1 tabuleiro) */
.tab-chip { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; overflow: hidden; transition: transform .15s; font: inherit; }
.tab-chip:active { transform: scale(.96); }
.tab-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.tab-txt #hud-uf { font-size: 17px; }
.tab-txt small { font-weight: 600; color: var(--muted); font-size: 11px; white-space: nowrap; }
.tab-total { display: inline-block; overflow: hidden; vertical-align: bottom; height: 1.2em; }
.tab-total b { display: inline-block; color: var(--amarelo); }
.tab-pilha { position: relative; width: 22px; height: 22px; flex: none; }
.tab-pilha i { position: absolute; inset: 3px; border-radius: 4px; border: 1.5px solid rgba(255,255,255,.85);
  background: linear-gradient(135deg, var(--coxinha) 0 50%, var(--mortadela) 50% 100%);
  transition: transform .45s cubic-bezier(.2,.9,.2,1.2), opacity .3s; }
.tab-pilha i:nth-child(2), .tab-pilha i:nth-child(3) { opacity: 0; }
.tab-pilha[data-n="2"] i:nth-child(2), .tab-pilha[data-n="3"] i:nth-child(2) { opacity: .85; transform: translate(-4px, 3px) rotate(-8deg); }
.tab-pilha[data-n="3"] i:nth-child(3) { opacity: .7; transform: translate(4px, 4px) rotate(9deg); }
.tab-pilha i:nth-child(1) { z-index: 2; }

/* abriu tabuleiro novo: uma carta entra pela lateral */
.tab-chip.abriu .tab-pilha i:nth-child(1) { animation: carta-entra .6s cubic-bezier(.2,.9,.2,1.3); }
@keyframes carta-entra { from { transform: translateX(16px) rotate(18deg); opacity: 0; } }

/* numero rolando (7 -> 5) */
.tab-total b.rola-sai { animation: num-sai .35s ease-in forwards; }
.tab-total b.rola-entra { animation: num-entra .45s cubic-bezier(.2,.9,.2,1.3); }
@keyframes num-sai { to { transform: translateY(-120%); opacity: 0; } }
@keyframes num-entra { from { transform: translateY(120%); opacity: 0; } }

/* fundindo: as cartas deslizam uma sobre a outra e um brilho dourado cruza o chip */
.tab-chip.fundindo { border-color: rgba(255, 210, 63, .7); box-shadow: 0 0 0 3px rgba(255, 210, 63, .18), 0 6px 24px rgba(255, 210, 63, .25); }
.tab-chip.fundindo::after { content: ''; position: absolute; inset: -2px; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 236, 160, .55) 45%, rgba(255,255,255,.9) 50%, rgba(255, 236, 160, .55) 55%, transparent 80%);
  transform: translateX(-120%); animation: brilho 1.1s ease-in-out .15s 2; }
@keyframes brilho { to { transform: translateX(120%); } }
.tab-chip.fundindo .tab-pilha i:nth-child(2), .tab-chip.fundindo .tab-pilha i:nth-child(3) { animation: carta-funde .9s cubic-bezier(.6,0,.2,1) forwards; }
.tab-chip.fundindo .tab-pilha i:nth-child(1) { animation: carta-recebe .9s ease-out; }
@keyframes carta-funde { to { transform: translate(0, 0) rotate(0) scale(.9); opacity: 0; } }
@keyframes carta-recebe { 55% { transform: scale(1); } 75% { transform: scale(1.3); box-shadow: 0 0 12px rgba(255,210,63,.9); } 100% { transform: scale(1); } }

/* faixa "Fundindo tabuleiros" que desce do topo */
.fusao-faixa { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 54px); transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 16px; z-index: 6; pointer-events: none;
  background: linear-gradient(135deg, rgba(40, 32, 6, .92), rgba(16, 29, 45, .92)); border: 1px solid rgba(255, 210, 63, .55);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 0 0 4px rgba(255,210,63,.08); backdrop-filter: blur(8px);
  animation: faixa-desce .5s cubic-bezier(.2,.9,.2,1.25); }
.fusao-faixa.saindo { animation: faixa-sobe .35s ease-in forwards; }
@keyframes faixa-desce { from { transform: translate(-50%, -30px) scale(.9); opacity: 0; } }
@keyframes faixa-sobe { to { transform: translate(-50%, -24px) scale(.95); opacity: 0; } }
.fusao-texto { display: flex; flex-direction: column; line-height: 1.15; }
.fusao-texto b { color: var(--amarelo); font-weight: 900; letter-spacing: .01em; }
.fusao-texto small { color: var(--ink); opacity: .85; font-size: 12px; }
.fusao-cartas { position: relative; width: 34px; height: 26px; flex: none; }
.fusao-cartas i { position: absolute; top: 3px; width: 20px; height: 20px; border-radius: 5px; border: 1.5px solid #fff;
  background: linear-gradient(135deg, var(--coxinha) 0 50%, var(--mortadela) 50% 100%); }
.fusao-cartas i:nth-child(1) { left: 0; animation: cf-esq 1.2s cubic-bezier(.6,0,.2,1) .2s infinite; }
.fusao-cartas i:nth-child(2) { left: 7px; z-index: 2; animation: cf-meio 1.2s ease-out .2s infinite; }
.fusao-cartas i:nth-child(3) { left: 14px; animation: cf-dir 1.2s cubic-bezier(.6,0,.2,1) .2s infinite; }
@keyframes cf-esq { 0% { transform: translateX(-6px) rotate(-12deg); } 60%, 100% { transform: translateX(7px) rotate(0); opacity: 0; } }
@keyframes cf-dir { 0% { transform: translateX(6px) rotate(12deg); } 60%, 100% { transform: translateX(-7px) rotate(0); opacity: 0; } }
@keyframes cf-meio { 55% { transform: scale(1); } 72% { transform: scale(1.25); box-shadow: 0 0 14px rgba(255,210,63,.95); } 100% { transform: scale(1); } }

/* lista de tabuleiros */
.tab-lista { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; }
.tab-item { display: grid; gap: 7px; padding: 11px 12px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid var(--line);
  animation: item-entra .4s cubic-bezier(.2,.9,.2,1.1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes item-entra { from { transform: translateY(10px); opacity: 0; } }
.tab-item.eu { border-color: rgba(255, 210, 63, .6); background: linear-gradient(135deg, rgba(255,210,63,.10), rgba(255,255,255,.03)); }
.tab-item.vazio { opacity: .62; }
.tab-item.sumindo { animation: item-funde .55s cubic-bezier(.6,0,.2,1) forwards; }
@keyframes item-funde { to { transform: scale(.85) translateY(-14px); opacity: 0; height: 0; padding-block: 0; margin: 0; } }
.tab-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tab-nome { font-weight: 900; }
.tab-selo { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--muted); white-space: nowrap; }
.tab-item.eu .tab-selo { background: var(--amarelo); color: #1a1a1a; }
.tab-barra { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.08); }
.tab-barra > span { display: block; height: 100%; width: 0; transition: width .9s cubic-bezier(.2,.9,.2,1); }
.tab-barra .c { background: linear-gradient(90deg, var(--coxinha-deep), var(--coxinha)); }
.tab-barra .m { background: linear-gradient(90deg, var(--mortadela), var(--mortadela-deep)); margin-left: auto; }
.tab-pcts { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; }
.tab-pcts .c { color: var(--coxinha-2); }
.tab-pcts .m { color: var(--mortadela-2); }
.tab-pcts .v { color: var(--muted); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  .tab-chip *, .tab-chip::after, .fusao-faixa, .fusao-faixa *, .tab-item, .tab-barra > span, .hud-sair.armado { animation: none !important; transition: none !important; }
}
/* o chip virou <button>: o peso da fonte nao vem mais do .hud-chip */
.tab-txt #hud-uf { font-weight: 900; color: var(--ink); }
.fusao-texto b { white-space: nowrap; }
