/* Pocarr Live — a identidade é a do time (Sistema de design Pocarr Latina, o mesmo do Pocarr Scope):
   o marinho, o azul #09BEEB como única cor de ação e seleção, as três fichas, o logotipo e a Archivo.
   A forma é própria deste app, por pedido do Caio (15/11/2026): arredondada, fluida e com movimento,
   feita para o celular e para uma mão só. Quem preferir menos movimento (ajuste do aparelho) vê tudo parado.
   Tema (frente tema): o escuro é o padrão (:root). O claro vale com html[data-tema="claro"] (escolha "Claro" em Conta)
   ou, sem data-tema (escolha "Automático"), quando o celular está no claro. "Escuro" põe data-tema="escuro" e nada
   do claro se aplica. Por isso cada bloco de cores claras aparece DUAS vezes, igual: html[data-tema="claro"] { … } e
   @media (prefers-color-scheme: light) { html:not([data-tema]) { … } }. Nunca use :root dentro do @media (o
   testes/test_tema.py confere). Quem põe o data-tema no <html> é js/tema.js, carregado antes deste arquivo. */
@font-face { font-family: Archivo; font-weight: 400; font-display: swap; src: url(fontes/archivo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 600; font-display: swap; src: url(fontes/archivo-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 700; font-display: swap; src: url(fontes/archivo-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Archivo; font-weight: 800; font-display: swap; src: url(fontes/archivo-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #0B162B; --bl: #10203B; --bl2: #0D1B33; --fld: #0A1427; --ln: #21375E; --ln2: #182B4B; --hv: #142848;
  --t1: #EDF2FA; --t2: #93A6C7; --bd: #3A5182;
  --ac: #09BEEB; --acb: #09BEEB; --acf: #04121F;
  --up: #3ACB74; --dn: #F5666C; --wn: #E2E440;
  --selbg: rgba(9, 190, 235, .14); --upbg: rgba(58, 203, 116, .14); --dnbg: rgba(245, 102, 108, .12); --wnbg: rgba(226, 228, 64, .12);
  --vidro: rgba(13, 26, 50, .78); --sh: rgba(0, 0, 0, .38); --brilho: rgba(9, 190, 235, .42);
  --r1: 10px; --r2: 14px; --r3: 20px; --r4: 26px;
  --mola: cubic-bezier(.2, .8, .2, 1); --salto: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}
html[data-tema="claro"] {
  --bg: #F1F4F9; --bl: #FFFFFF; --bl2: #F7F9FC; --fld: #FFFFFF; --ln: #DCE3EE; --ln2: #E8EDF5; --hv: #EAF1FA;
  --t1: #0B162B; --t2: #526283; --bd: #A9B7CE;
  --ac: #057290; --acb: #09BEEB; --acf: #04121F;
  --up: #197540; --dn: #BD2229; --wn: #7A6900;
  --selbg: rgba(9, 190, 235, .16); --upbg: rgba(25, 117, 64, .10); --dnbg: rgba(189, 34, 41, .08); --wnbg: rgba(122, 105, 0, .10);
  --vidro: rgba(255, 255, 255, .82); --sh: rgba(11, 22, 43, .14); --brilho: rgba(9, 190, 235, .38);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  html:not([data-tema]) {
    --bg: #F1F4F9; --bl: #FFFFFF; --bl2: #F7F9FC; --fld: #FFFFFF; --ln: #DCE3EE; --ln2: #E8EDF5; --hv: #EAF1FA;
    --t1: #0B162B; --t2: #526283; --bd: #A9B7CE;
    --ac: #057290; --acb: #09BEEB; --acf: #04121F;
    --up: #197540; --dn: #BD2229; --wn: #7A6900;
    --selbg: rgba(9, 190, 235, .16); --upbg: rgba(25, 117, 64, .10); --dnbg: rgba(189, 34, 41, .08); --wnbg: rgba(122, 105, 0, .10);
    --vidro: rgba(255, 255, 255, .82); --sh: rgba(11, 22, 43, .14); --brilho: rgba(9, 190, 235, .38);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--t1);
  font: 400 15px/1.5 Archivo, system-ui, sans-serif; font-variant-numeric: tabular-nums;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: contain;
}
/* um clarão azul bem leve no alto da tela, parado enquanto a página rola */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 46% at 50% -8%, rgba(9, 190, 235, .13), transparent 62%); }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.escondido { display: none !important; }
.fraco { color: var(--t2); }
.mini { font-size: 12px; }
.centro-texto { text-align: center; }
.corta { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.corta-1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- movimento ---------- */
@keyframes surge { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes estala { from { transform: scale(.82); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes abre { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pulsa { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes torrada-entra { from { opacity: 0; transform: translate(-50%, 18px) scale(.9); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes torrada-sai { to { opacity: 0; transform: translate(-50%, 10px) scale(.96); } }
@keyframes deriva { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(3%, 3%, 0) scale(1.12); } }
@keyframes entra-dir { from { transform: translateX(28%); opacity: 0; } }
@keyframes sai-esq { to { transform: translateX(-14%); opacity: 0; } }
@keyframes entra-esq { from { transform: translateX(-14%); opacity: 0; } }
@keyframes sai-dir { to { transform: translateX(28%); opacity: 0; } }
@keyframes entra-baixo { from { transform: translateY(9%); opacity: 0; } }
@keyframes sai-baixo { to { transform: translateY(9%); opacity: 0; } }
@keyframes some { to { opacity: 0; } }
@keyframes aparece { from { opacity: 0; } }
/* a troca de tela: o conteúdo desliza; o topo e a barra de baixo ficam no lugar */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 300ms; animation-timing-function: var(--mola); animation-fill-mode: both; }
html[data-dir="avanca"]::view-transition-old(root) { animation-name: sai-esq; }
html[data-dir="avanca"]::view-transition-new(root) { animation-name: entra-dir; }
html[data-dir="volta"]::view-transition-old(root) { animation-name: sai-dir; }
html[data-dir="volta"]::view-transition-new(root) { animation-name: entra-esq; }
html[data-dir="sobe"]::view-transition-old(root) { animation-name: some; }
html[data-dir="sobe"]::view-transition-new(root) { animation-name: entra-baixo; }
html[data-dir="desce"]::view-transition-old(root) { animation-name: sai-baixo; }
html[data-dir="desce"]::view-transition-new(root) { animation-name: aparece; }
html[data-dir="troca"]::view-transition-old(root) { animation: some 140ms ease-out both; }
html[data-dir="troca"]::view-transition-new(root) { animation: aparece 220ms ease-out both; }
::view-transition-group(topo), ::view-transition-group(abas) { animation-duration: 260ms; }
.entrando > *, .entrando .lista > * { animation: surge var(--t-medio) var(--mola) both; }
.entrando > :nth-child(2), .entrando .lista > :nth-child(2) { animation-delay: 40ms; }
.entrando > :nth-child(3), .entrando .lista > :nth-child(3) { animation-delay: 80ms; }
.entrando > :nth-child(4), .entrando .lista > :nth-child(4) { animation-delay: 120ms; }
.entrando > :nth-child(5), .entrando .lista > :nth-child(5) { animation-delay: 160ms; }
.entrando > :nth-child(n+6), .entrando .lista > :nth-child(n+6) { animation-delay: 200ms; }
.entrando > .lista { animation: none; }

/* ---------- topo e barra de baixo ---------- */
.topo {
  position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 10px;
  /* no Android o app desenha sob a barra de status (frente tema, 1.3.1): o topo pinta o fundo dela e guarda 58px abaixo */
  min-height: calc(58px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0; background: var(--vidro);
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  border-bottom: 1px solid var(--ln2); view-transition-name: topo;
}
.topo h1 { flex: 1; min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo h1.produto { font-size: 19px; font-weight: 800; }
.marca { width: 30px; height: 26px; flex: none; }
.estado { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 11px 6px 10px;
  border-radius: 99px; background: var(--bl); border: 1px solid var(--ln); color: var(--t2); white-space: nowrap; transition: color .3s, border-color .3s; }
.estado::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.estado.ok { color: var(--up); }
.estado.indo { color: var(--wn); }
.estado.indo::before { animation: pulsa 1.4s ease-out infinite; }
.estado.fora { color: var(--dn); }
main { padding: 18px 16px calc(env(safe-area-inset-bottom) + 128px); max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.abas {
  position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 6; max-width: 616px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: center; height: 68px; border-radius: var(--r4);
  background: var(--vidro); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--ln); box-shadow: 0 14px 34px var(--sh); view-transition-name: abas;
}
.aba { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%;
  color: var(--t2); font-size: 11px; font-weight: 600; transition: color .25s, transform .25s var(--mola); }
.aba .icone { transition: transform var(--t-rapido) var(--salto); }
.aba::before { content: ""; position: absolute; top: 9px; width: 46px; height: 30px; border-radius: 99px; background: var(--selbg);
  transform: scaleX(.4); opacity: 0; transition: transform var(--t-rapido) var(--mola), opacity .25s; }
.aba.ativa { color: var(--ac); }
.aba.ativa::before { transform: none; opacity: 1; }
.aba.ativa .icone { transform: scale(1.08); }
.aba:active { transform: scale(.9); }
.aba-mais { justify-self: center; width: 60px; height: 60px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: var(--acf);
  background: linear-gradient(150deg, #5BDCFA, #09BEEB 52%, #078FB3); box-shadow: 0 10px 24px var(--brilho), inset 0 1px 0 rgba(255, 255, 255, .45);
  border: 4px solid var(--bg); transition: transform var(--t-rapido) var(--salto), box-shadow .25s; }
.aba-mais:active { transform: scale(.88) rotate(90deg); box-shadow: 0 4px 12px var(--brilho); }
.icone { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; position: relative; }
.aba-mais .icone { width: 28px; height: 28px; stroke-width: 2.6; }
.icone.mini { width: 12px; height: 12px; margin-right: 4px; vertical-align: -1px; }
.botao-icone { background: none; border: 0; padding: 0; margin-left: -10px; width: 44px; height: 44px; display: grid; place-items: center; flex: none; border-radius: 50%;
  transition: background-color .2s, transform .25s var(--mola); }
.botao-icone:active { background: var(--hv); transform: scale(.88); }
/* nos formulários a barra de baixo dá lugar ao botão de gravar, sempre à mão */
.rodape { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; padding: 22px 16px calc(env(safe-area-inset-bottom) + 14px);
  background: linear-gradient(to top, var(--bg) 62%, transparent); view-transition-name: abas; }
.rodape .botao { max-width: 608px; margin: 0 auto; width: 100%; }

/* ---------- campos ---------- */
input[type=text], input[type=password], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 12px 14px; min-height: 50px; background: var(--fld); border: 1.5px solid var(--ln); border-radius: var(--r2);
  font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 4px var(--selbg); }
input[type=search] { border-radius: 99px; padding-left: 18px; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--t2) 50%), linear-gradient(135deg, var(--t2) 50%, transparent 50%);
  background-position: calc(100% - 21px) 22px, calc(100% - 16px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
textarea { resize: none; line-height: 1.45; field-sizing: content; min-height: 76px; }
::placeholder { color: var(--t2); opacity: .75; }
.campo { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rotulo, h3 { font-size: 12px; font-weight: 700; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--t2); }
.campo small { color: var(--t2); font-size: 12.5px; }
.dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formulario { display: flex; flex-direction: column; gap: 20px; }
.bloco-mao { display: flex; flex-direction: column; gap: 20px; padding: 16px; background: var(--bl); border: 1px solid var(--ln); border-radius: var(--r3);
  animation: abre var(--t-medio) var(--mola) both; }
.botao { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 10px 18px; border: 0; border-radius: var(--r2);
  background: linear-gradient(150deg, #4FD6F8, #09BEEB 55%, #089FC6); color: var(--acf); font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 20px var(--brilho), inset 0 1px 0 rgba(255, 255, 255, .4); transition: transform .25s var(--mola), box-shadow .25s, opacity .2s; }
.botao:active { transform: scale(.96); box-shadow: 0 3px 10px var(--brilho); }
.botao.grande { min-height: 56px; font-size: 16px; border-radius: 18px; }
.botao.secundario { background: var(--selbg); color: var(--ac); box-shadow: none; font-weight: 700; }
.botao.perigo { background: var(--dnbg); color: var(--dn); box-shadow: none; }
.botao:disabled { opacity: .55; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; }
.acoes .botao { flex: 1; }
/* mensagens: a cor do estado e o sinal junto */
.erro { color: var(--dn); font-size: 14px; font-weight: 600; padding: 12px 14px; background: var(--dnbg); border-radius: var(--r2); animation: abre var(--t-medio) var(--mola) both; }
.erro:not(:has(*))::before { content: "✗  "; font-weight: 700; }
.formulario > .erro { position: sticky; bottom: 96px; z-index: 3; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.aviso { color: var(--up); font-weight: 600; padding: 12px 14px; background: var(--upbg); border-radius: var(--r2); overflow-wrap: anywhere;
  user-select: all; -webkit-user-select: all; animation: abre var(--t-medio) var(--mola) both; }
.aviso::before { content: "✓  "; font-weight: 700; }
.erro:empty, .aviso:empty { display: none; }
.torrada { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 102px); z-index: 9; white-space: nowrap; transform: translateX(-50%);
  padding: 12px 20px; border-radius: 99px; background: var(--up); color: #04121F; font-weight: 700; font-size: 14px;
  box-shadow: 0 12px 28px var(--sh); animation: torrada-entra var(--t-medio) var(--salto) both; }
.torrada::before { content: "✓  "; }
.torrada.sai { animation: torrada-sai 240ms ease-in both; }

/* ---------- chips e segmentados ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.formulario .chips { flex-wrap: wrap; overflow: visible; }
.chip { flex: none; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--bl); border: 1px solid var(--ln); color: var(--t2);
  font-size: 14px; font-weight: 600; transition: background-color .22s, color .22s, border-color .22s, transform var(--t-rapido) var(--salto), box-shadow .22s; }
.chip:active { transform: scale(.92); }
.chip.ligado { background: var(--acb); border-color: var(--acb); color: var(--acf); font-weight: 700; box-shadow: 0 6px 16px var(--brilho); }
.chips.aperto { gap: 7px; }
.chips.aperto .chip { min-width: 48px; padding: 0 11px; }
.chips.segmento { flex-wrap: nowrap !important; gap: 4px; padding: 4px; background: var(--bl); border: 1px solid var(--ln); border-radius: 18px; }
.chips.segmento .chip { flex: 1; border: 0; background: transparent; border-radius: 14px; min-height: 46px; padding: 0 6px; }
.chips.segmento .chip.ligado { background: var(--acb); }
main > .chips { margin: 0 -16px; padding: 2px 16px 8px; }

/* ---------- cartas: sempre claras, como carta de verdade, com os quatro naipes em quatro cores ---------- */
.carta { display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 31px; height: 30px; padding: 0 5px; border-radius: 7px;
  background: linear-gradient(#FFFFFF, #E9EEF6); box-shadow: 0 1px 3px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(11, 22, 43, .08);
  font-weight: 800; font-size: 15px; line-height: 1; }
.naipe { width: 12px; height: 12px; fill: currentColor; flex: none; }
.carta.grande { min-width: 50px; height: 66px; font-size: 24px; border-radius: 11px; flex-direction: column; gap: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(11, 22, 43, .08); }
.carta.grande .naipe { width: 19px; height: 19px; }
.carta-botao:last-of-type .carta { animation: estala var(--t-medio) var(--salto) both; }
.carta.vazia { background: none; box-shadow: none; border: 2px dashed var(--bd); color: var(--ac); font-weight: 400; font-size: 26px; transition: border-color .2s, transform var(--t-rapido) var(--salto); }
.carta.vazia:active { transform: scale(.9); border-color: var(--ac); }
.carta.naipe-s, .tecla.naipe-s { color: #0B162B; } .carta.naipe-h, .tecla.naipe-h { color: #D82732; }
.carta.naipe-d, .tecla.naipe-d { color: #0A7FB8; } .carta.naipe-c, .tecla.naipe-c { color: #0E723A; }
.cartas { display: inline-flex; gap: 3px; }
.cartas-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.carta-botao { background: none; border: 0; padding: 0; border-radius: 11px; transition: transform .25s var(--mola); }
.carta-botao:active { transform: scale(.9); }
.baralho { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--bl2); border: 1px solid var(--ln); border-radius: var(--r3);
  animation: abre var(--t-medio) var(--mola) both; transform-origin: top center; }
.valores { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.naipes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tecla { min-height: 46px; border-radius: 12px; background: var(--bl); border: 1px solid var(--ln); color: var(--t1); font-weight: 700; font-size: 16px; display: grid; place-items: center;
  transition: transform .25s var(--salto), background-color .18s, color .18s, opacity .2s; }
.tecla:active { transform: scale(.88); }
.naipes .tecla { min-height: 56px; background: linear-gradient(#FFFFFF, #E9EEF6); border: 0; }
.naipes .naipe { width: 26px; height: 26px; }
.tecla.ligado { background: var(--acb); color: var(--acf); border-color: var(--acb); box-shadow: 0 6px 16px var(--brilho); }
.tecla:disabled { opacity: .28; }

/* ---------- listas e notas ---------- */
.lista { display: flex; flex-direction: column; gap: 12px; }
.nota, .linha, .ficha { background: var(--bl); border: 1px solid var(--ln); border-radius: var(--r3); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
.nota { display: flex; flex-direction: column; gap: 12px; padding: 16px; transition: transform .25s var(--mola), background-color .2s; }
a.nota:active, a.linha:active { transform: scale(.975); background: var(--hv); }
.nota-topo { display: flex; align-items: center; gap: 9px; min-width: 0; }
.nota-jogador { flex: 1; min-width: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selo { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--hv); color: var(--t2); }
.selo-jogador { background: var(--selbg); color: var(--ac); }
.selo-mao { background: var(--upbg); color: var(--up); }
.selo-situacao { background: var(--wnbg); color: var(--wn); }
.vis { margin-left: auto; flex: none; display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: var(--t2); }
.vis.time { color: var(--ac); }
.nota-texto { font-size: 15.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.nota-pe { font-size: 12.5px; color: var(--t2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pendente { color: var(--wn); background: var(--wnbg); border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; }
.mao { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r2); background: var(--bl2); border: 1px solid var(--ln2); }
.mao-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.rua { font-size: 14.5px; overflow-wrap: anywhere; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: var(--hv); color: var(--t2); }
.tag b { color: var(--t1); }
.linha { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; transition: transform .25s var(--mola), background-color .2s, border-color .3s, box-shadow .3s; }
.linha.atual { border-color: var(--ac); box-shadow: 0 0 0 3px var(--selbg), 0 6px 18px rgba(0, 0, 0, .12); }
.linha.apagada { opacity: .55; }
.linha.usuario { flex-wrap: wrap; }
.linha.usuario .linha-corpo { flex-basis: 100%; }
.linha-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.linha-corpo > b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.conta-notas { flex: none; min-width: 32px; height: 28px; padding: 0 9px; border-radius: 99px; background: var(--selbg); color: var(--ac); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.ficha { display: flex; flex-direction: column; gap: 12px; padding: 18px; }
.ficha h2 { font-size: 24px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; overflow-wrap: anywhere; }
.faixa { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r3); border: 1px solid var(--ln);
  background: linear-gradient(120deg, rgba(9, 190, 235, .20), rgba(9, 190, 235, .04) 60%), var(--bl); transition: transform .25s var(--mola); }
.faixa:active { transform: scale(.975); }
.faixa span { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--up); }
.faixa span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulsa 1.8s ease-out infinite; }
.faixa b { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.faixa.apagada { background: none; border: 1.5px dashed var(--bd); color: var(--ac); font-weight: 600; }
.faixa.nova { background: var(--wnbg); border-color: transparent; }
.faixa.nova span { color: var(--wn); }
.vazio { padding: 44px 20px; text-align: center; color: var(--t2); border: 1.5px dashed var(--bd); border-radius: var(--r3); }
.sugestoes { display: flex; flex-direction: column; gap: 6px; }
.sugestao { text-align: left; padding: 12px 14px; min-height: 50px; border-radius: var(--r2); background: var(--bl); border: 1px solid var(--ln); animation: abre 260ms var(--mola) both;
  transition: transform .25s var(--mola), background-color .2s; }
.sugestao:active { transform: scale(.97); background: var(--hv); }
.sugestao.nova { color: var(--ac); font-weight: 700; background: var(--selbg); border-color: transparent; }
.escolhido { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 16px; min-height: 52px; border-radius: var(--r2); background: var(--selbg); border: 1.5px solid var(--ac); animation: estala var(--t-medio) var(--salto) both; }
.escolhido b { flex: 1; min-width: 0; font-size: 16px; overflow-wrap: anywhere; }
.escolhido .botao-icone { margin: 0; }
/* o anel do avatar: as três fichas em terços */
.avatar { flex: none; width: 52px; height: 52px; padding: 3px; border-radius: 50%; background: conic-gradient(#E2E440 0 33.3%, #D82732 0 66.6%, #0E723A 0); display: grid; }
.avatar > span { display: grid; place-items: center; border-radius: 50%; background: var(--bl); font-size: 17px; font-weight: 800; }
.avatar.mini { width: 24px; height: 24px; padding: 2px; }
.avatar.mini > span { font-size: 9.5px; font-weight: 700; }
.pessoa { display: flex; align-items: center; gap: 14px; }

/* ---------- entrada ---------- */
.entrar { position: relative; min-height: 100vh; min-height: 100dvh; max-width: 420px; margin: 0 auto; padding: 28px 20px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.entrar::before { content: ""; position: fixed; inset: -10%; z-index: -1; pointer-events: none; animation: deriva 16s ease-in-out infinite alternate;
  background: radial-gradient(42% 30% at 12% 14%, rgba(226, 228, 64, .20), transparent 70%), radial-gradient(46% 32% at 90% 22%, rgba(216, 39, 50, .22), transparent 70%),
    radial-gradient(60% 38% at 50% 100%, rgba(14, 114, 58, .34), transparent 72%); }
.entrar > * { animation: surge var(--t-medio) var(--mola) both; }
.entrar > :nth-child(2) { animation-delay: 70ms; } .entrar > :nth-child(3) { animation-delay: 130ms; }
.entrar > :nth-child(4) { animation-delay: 190ms; } .entrar > :nth-child(5) { animation-delay: 250ms; }
.entrar > :nth-child(n+6) { animation-delay: 310ms; }
.entrar h1 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.entrar h1.titulo { font-size: 26px; }
.logotipo { background: #221F1F; display: grid; place-items: center; padding: 30px; border-radius: 28px; box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.logotipo img { width: 160px; height: auto; display: block; }
.centro { min-height: 100vh; display: flex; flex-direction: column; gap: 16px; align-items: center; justify-content: center; padding: 24px; text-align: center; color: var(--t2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------- acertos finais ---------- */
html { scroll-padding: 80px 0 130px; }
.pessoa { flex-direction: row; }
.pendente.recusada { color: var(--dn); background: var(--dnbg); }
.aviso.rascunho { color: var(--t1); background: var(--wnbg); user-select: auto; -webkit-user-select: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.aviso.rascunho::before { content: none; }
.elo { background: none; border: 0; padding: 8px 0; color: var(--ac); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ficha .erro { margin: 0; }

/* ---------- frente: espanhol ---------- */
/* PT / ES no alto da tela de entrada, pequeno e fora do caminho do formulário */
.entrar > .idiomas { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 16px; }
.idiomas .chips.segmento .chip { flex: none; min-width: 52px; min-height: 44px; padding: 0 12px; font-weight: 700; letter-spacing: .04em; }

/* ---------- frente: mesa ---------- */
/* A mesa desenhada (SVG) para registrar a mão. Feltro e trilho nas cores do app (marinho), as três fichas nas apostas,
   azul só no herói, na vez e nos botões de ação. Os botões de ação ficam presos embaixo, acima do Gravar. */
.mesa-editor { display: flex; flex-direction: column; gap: 12px; }
.mesa-resumo { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: var(--r2);
  background: var(--bl2); border: 1px solid var(--ln2); color: var(--t2); font-size: 13.5px; font-weight: 600; text-align: left;
  transition: transform .25s var(--mola), background-color .2s; }
.mesa-resumo b { flex: none; color: var(--ac); font-weight: 700; }
.mesa-resumo:active { transform: scale(.97); background: var(--hv); }
.mesa-estrutura { display: flex; flex-direction: column; gap: 14px; animation: abre var(--t-medio) var(--mola) both; }
.mesa-ferramentas { display: flex; gap: 8px; }
.mesa-ferramentas .chip { flex: 1; padding: 0 8px; font-size: 13px; }
.mesa-status { display: flex; flex-direction: column; gap: 2px; min-height: 42px; text-align: center; }
.mesa-status b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.mesa-status small { color: var(--t2); font-size: 12.5px; }
.mesa-quadro { margin: -4px -8px 0; }
.mesa-svg { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.mesa-svg text { font-family: Archivo, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.mesa-borda { fill: var(--bl2); stroke: var(--ln); stroke-width: 2; }
.mesa-feltro { fill: var(--hv); }
.mesa-linha { fill: none; stroke: var(--ln); stroke-width: 1.2; stroke-dasharray: 2 5; }
.mesa-dealer { fill: var(--t2); font-size: 9px; font-weight: 700; letter-spacing: .14em; }
.mesa-pote { fill: var(--t1); font-size: 12.5px; font-weight: 700; }
.mesa-svg .alvo { fill: transparent; }
.mesa-svg .toque { cursor: pointer; }
.mesa-svg .toque:focus { outline: none; }
.mesa-svg .toque:focus-visible .mesa-disco, .mesa-svg .toque:focus-visible .alvo { stroke: var(--ac); stroke-width: 2; }
.mesa-disco { fill: var(--bl); stroke: var(--ln); stroke-width: 1.5; transform-box: fill-box; transform-origin: center;
  transition: transform .28s var(--salto), fill .25s, stroke .25s; }
.mesa-assento.toque:active .mesa-disco { transform: scale(.88); }
.mesa-pos { fill: var(--t1); font-size: 12px; font-weight: 800; pointer-events: none; }
.mesa-sub { fill: var(--t2); font-size: 9.5px; font-weight: 600; pointer-events: none; }
.mesa-assento.eu .mesa-disco { fill: var(--acb); stroke: var(--acb); }
.mesa-assento.eu .mesa-pos, .mesa-assento.eu .mesa-sub { fill: var(--acf); }
.mesa-assento.vilao .mesa-disco { stroke: var(--dn); stroke-width: 2.5; }
.mesa-assento.vez .mesa-disco { stroke: var(--acb); stroke-width: 3.5; animation: mesa-vez 1.3s ease-in-out infinite; }
.mesa-assento.sel .mesa-disco { stroke: var(--wn); stroke-width: 3.5; }
.mesa-assento.fora { opacity: .32; }
.mesa-assento { transition: opacity .3s; }
@keyframes mesa-vez { 50% { stroke-opacity: .35; } }
.mesa-botao circle { fill: #FFFFFF; stroke: rgba(11, 22, 43, .35); stroke-width: 1; }
.mesa-botao text { fill: #0B162B; font-size: 10px; font-weight: 800; }
.mesa-aposta text { fill: var(--t1); font-size: 12px; font-weight: 700; }
.mesa-aposta circle { stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; stroke-dasharray: 2.2 1.6; }
.mesa-aposta .ficha-0 { fill: #E2E440; } .mesa-aposta .ficha-1 { fill: #D82732; } .mesa-aposta .ficha-2 { fill: #0E723A; }
.mesa-check { fill: var(--t2); font-size: 11px; font-weight: 600; font-style: italic; }
.mc-f { fill: #FFFFFF; stroke: rgba(11, 22, 43, .18); stroke-width: .8; }
.mc text { font-weight: 800; }
.mc text, .mc path { fill: currentColor; }
.mc.naipe-s { color: #0B162B; } .mc.naipe-h { color: #D82732; } .mc.naipe-d { color: #0A7FB8; } .mc.naipe-c { color: #0E723A; }
.mc-vazia rect { fill: none; stroke: var(--bd); stroke-width: 1.5; stroke-dasharray: 3 3; }
.mc-vazia text { fill: var(--ac); font-size: 18px; font-weight: 400; }
.mc-lugar { fill: none; stroke: var(--ln); stroke-width: 1; stroke-dasharray: 3 3; }
.mesa-svg .novo { transform-box: fill-box; transform-origin: center; animation: estala var(--t-medio) var(--salto) both; }
.mesa-cartas.toque:active, .mesa-board.toque:active { opacity: .7; }
/* o painel de ação: preso embaixo, ao alcance do polegar, acima do botão de gravar */
.mesa-painel { position: sticky; bottom: calc(env(safe-area-inset-bottom) + 90px); z-index: 2; display: flex; flex-direction: column; gap: 8px;
  margin: 0 -8px; padding: 8px; border-radius: var(--r3); background: var(--vidro); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mesa-painel:empty { display: none; }
.mesa-acoes { display: grid; grid-template-columns: 52px repeat(3, 1fr); gap: 8px; }
.mesa-acoes.tamanhos { grid-template-columns: repeat(4, 1fr); }
.mesa-acoes.tamanhos.cinco { grid-template-columns: repeat(5, 1fr); }
.mesa-acoes.fim { grid-template-columns: 52px 1fr 1fr; }
.ma { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 54px; padding: 4px 2px; border-radius: 16px;
  border: 1px solid var(--ln); background: var(--bl2); color: var(--t1); font-size: 15px; line-height: 1.15;
  transition: transform .25s var(--salto), background-color .2s, opacity .2s; }
.ma b { font-weight: 800; white-space: nowrap; }
.ma small { color: var(--t2); font-size: 11px; font-weight: 600; white-space: nowrap; }
.ma:active:not(:disabled) { transform: scale(.9); }
.ma:disabled { opacity: .32; }
.ma.fold { background: var(--dnbg); color: var(--dn); border-color: transparent; }
.ma.call { background: var(--acb); color: var(--acf); border-color: transparent; box-shadow: 0 6px 16px var(--brilho); }
.ma.call small { color: var(--acf); opacity: .8; }
.ma.allin { background: var(--wnbg); color: var(--wn); border-color: transparent; }
.ma.desfazer { color: var(--t2); }
.ma.livre b { color: var(--ac); }
.mesa-livre, .mesa-baralho { display: flex; flex-direction: column; gap: 10px; animation: abre 260ms var(--mola) both; }
.mesa-vista { display: flex; flex-direction: column; gap: 10px; padding: 12px 8px; border-radius: var(--r3); background: var(--bl); border: 1px solid var(--ln); }
.mesa-legenda { text-align: center; font-size: 14px; font-weight: 600; min-height: 21px; }
.mesa-passos { display: grid; grid-template-columns: 52px 52px 1fr 52px 52px; gap: 8px; align-items: center; }
.mesa-conta { text-align: center; color: var(--t2); font-size: 13px; font-weight: 600; }

/* ---------- frente: calendário ---------- */
.cal-etapa h2 { font-size: 20px; }
.cal-grupos { display: flex; flex-direction: column; gap: 22px; }
.cal-dia { display: flex; flex-direction: column; gap: 10px; animation: surge var(--t-medio) var(--mola) both; }
.cal-dia-titulo { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 0 4px; color: var(--t1); }
.cal-dia-titulo .fraco { font-weight: 600; letter-spacing: 0; text-transform: none; }
.cal-linha { gap: 14px; }
.cal-linha .linha-corpo > b { font-size: 15px; }
.cal-hora { flex: none; min-width: 58px; padding: 8px 0; border-radius: var(--r2); background: var(--bl2); border: 1px solid var(--ln2);
  text-align: center; font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.cal-linha.atual .cal-hora { background: var(--selbg); border-color: transparent; color: var(--ac); }
.cal-selo, .cal-jogando { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px;
  border-radius: 99px; background: var(--upbg); color: var(--up); }
.cal-jogando { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; padding: 10px 16px; animation: estala var(--t-medio) var(--salto) both; }
.cal-jogando::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulsa 1.8s ease-out infinite; }
.cal-alerta { color: var(--t1); font-size: 14px; font-weight: 600; padding: 12px 14px; background: var(--wnbg); border-radius: var(--r2);
  border-left: 4px solid var(--wn); animation: abre var(--t-medio) var(--mola) both; }
.cal-infos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cal-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--r2); background: var(--bl); border: 1px solid var(--ln); min-width: 0; }
.cal-info b { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.cal-nao { color: var(--t2); font-style: italic; }
.cal-secao { display: flex; flex-direction: column; gap: 10px; }
.cal-tabela-caixa { border-radius: var(--r3); border: 1px solid var(--ln); background: var(--bl); overflow: hidden; }
.cal-tabela { width: 100%; border-collapse: collapse; font-size: 14px; }
.cal-tabela th { background: var(--bl2); color: var(--t2); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 10px 8px; }
.cal-tabela td { padding: 9px 8px; border-top: 1px solid var(--ln2); white-space: nowrap; }
.cal-tabela th:first-child, .cal-tabela td:first-child { padding-left: 14px; }
.cal-tabela th:last-child, .cal-tabela td:last-child { padding-right: 14px; }
.cal-tabela .num { text-align: right; }
.cal-niveis td:first-child { font-weight: 700; color: var(--t2); width: 1%; }
.cal-niveis tbody tr:not(.cal-pausa):not(.cal-fim-dia):nth-child(odd) td { background: var(--bl2); }
.cal-pausa td { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ac); background: var(--selbg); }
.cal-fim-dia td { text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--wn); background: var(--wnbg); }
main .cal-atalhos { margin: 0 -16px; padding: 2px 16px 8px; }
.cal-atalho { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; min-height: 58px; padding: 8px 16px; border-radius: var(--r2); color: var(--t1); }
.cal-atalho b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.cal-atalho span { font-size: 12px; font-weight: 600; color: var(--t2); white-space: nowrap; }

/* ---------- frente: sessão ---------- */
/* com sessão aberta, a faixa dela (que já diz o torneio) toma o lugar do "Jogando agora" logo acima */
main > .faixa:has(+ .sessao-faixa) { display: none; }
.faixa.sessao-faixa { background: linear-gradient(120deg, var(--upbg), transparent 70%), var(--bl); border-color: var(--up); animation: abre var(--t-medio) var(--mola) both; }
.faixa.sessao-faixa.pausada { background: linear-gradient(120deg, var(--wnbg), transparent 70%), var(--bl); border-color: var(--wn); }
.faixa.sessao-faixa.pausada span { color: var(--wn); }
.faixa.sessao-faixa.pausada span::before { animation: none; }
.relogio { font-variant-numeric: tabular-nums; }
.faixa-iniciar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: var(--r3); border: 1.5px dashed var(--bd);
  color: var(--ac); font-weight: 700; transition: transform .25s var(--mola), background-color .2s; }
.faixa-iniciar:active { transform: scale(.975); background: var(--selbg); }
.faixa-iniciar .play { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--selbg); display: grid; place-items: center; }
.faixa-iniciar .play::before { content: ""; margin-left: 3px; border-left: 10px solid var(--ac); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.sessao-topo { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.selo-sessao { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 99px; background: var(--hv); color: var(--t2); }
.selo-sessao.jogando { background: var(--upbg); color: var(--up); }
.selo-sessao.jogando::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulsa 1.8s ease-out infinite; }
.selo-sessao.pausa { background: var(--wnbg); color: var(--wn); }
.numeros { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.numeros.tres { grid-template-columns: 1fr 1fr 1fr; }
.numero { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 14px; border-radius: var(--r2); background: var(--bl2); border: 1px solid var(--ln2); }
.numero b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.numeros.tres .numero { padding: 10px; }
.numeros.tres .numero b { font-size: 15px; }
.numero.positivo b, .saldo.positivo { color: var(--up); }
.numero.negativo b, .saldo.negativo { color: var(--dn); }
.saldo { flex: none; font-weight: 800; font-size: 15px; }
.grafico { display: flex; flex-direction: column; gap: 4px; }
.grafico-fichas { width: 100%; height: 90px; display: block; }
.grafico-fichas .traco { fill: none; stroke: var(--up); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.grafico-fichas .area { fill: var(--upbg); stroke: none; }
.grafico-pe { display: flex; justify-content: space-between; font-size: 12px; }
.botoes-sessao { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.botao-sessao { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 8px 12px; border-radius: var(--r3);
  background: var(--bl); border: 1px solid var(--ln); color: var(--t1); font-size: 16px; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transition: transform var(--t-rapido) var(--salto), background-color .2s, border-color .2s, color .2s; }
.botao-sessao:active { transform: scale(.93); background: var(--hv); }
.botao-sessao.destaque { background: var(--selbg); border-color: transparent; color: var(--ac); }
.botao-sessao.ligado { background: var(--wnbg); border-color: var(--wn); color: var(--wn); }
.botao.encerrar { background: var(--dnbg); color: var(--dn); box-shadow: none; }
.painel-fichas > form { padding: 16px; background: var(--bl); border: 1.5px solid var(--ac); border-radius: var(--r3); gap: 14px; animation: abre var(--t-medio) var(--mola) both; }
.painel-fichas:empty { display: none; }
.painel-fichas input { font-size: 22px; font-weight: 700; text-align: center; }
.resumo-sessoes h3 { display: block; }
.numeros:not(.tres) > .numero:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* frente financeiro: buy-in do calendário, aviso com desfazer, balanço em dólar e por mês */
.linha-calendario { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--r2); background: var(--selbg);
  font-size: 13.5px; color: var(--t1); animation: abre var(--t-medio) var(--mola) both; }
.linha-calendario b { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ac); }
.torrada.com-acao { display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px; }
.torrada .desfazer { min-height: 44px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--acf); color: #FFFFFF; font-weight: 700;
  transition: transform .25s var(--salto); }
.torrada .desfazer:active { transform: scale(.92); }
.numero.investido-agora { background: var(--wnbg); border-color: transparent; }
.numero .cotacao-usada { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: 0; }
.numero.em-usd .elo { font-size: 15px; }
.balanco-usd { gap: 12px; }
.saldo-total { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r3); background: var(--bl2); border: 1px solid var(--ln2);
  animation: estala var(--t-medio) var(--salto) both; }
.saldo-total b { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.saldo-total.positivo { background: var(--upbg); border-color: transparent; }
.saldo-total.positivo b { color: var(--up); }
.saldo-total.negativo { background: var(--dnbg); border-color: transparent; }
.saldo-total.negativo b { color: var(--dn); }
.aviso-fora { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 10px 14px;
  border-radius: var(--r2); background: var(--wnbg); font-size: 13.5px; font-weight: 600; }
.aviso-fora .elo { min-height: 44px; display: inline-flex; align-items: center; }
.mes-sessoes { display: flex; flex-direction: column; gap: 8px; animation: surge var(--t-medio) var(--mola) both; }
.mes-cabeca { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 4px 0; }
.saldo-mes { flex: none; font-weight: 800; font-size: 17px; }
.saldo-mes.positivo { color: var(--up); }
.saldo-mes.negativo { color: var(--dn); }
.mes-ano { padding: 0 4px; margin-top: -6px; }
.selo-fora { align-self: flex-start; display: inline-block; margin-top: 4px; font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 99px; background: var(--wnbg); color: var(--wn); }
.por-moeda { padding: 8px 4px 0; }

/* frente financeiro: início atrasado e horários editáveis */
.hora-inicio { animation: abre var(--t-medio) var(--mola) both; }
input[type="datetime-local"] { min-width: 0; width: 100%; }
details.horarios { border: 1px solid var(--ln); border-radius: var(--r3); background: var(--bl); padding: 0 16px; transition: background-color .2s; }
details.horarios[open] { padding-bottom: 16px; display: flex; flex-direction: column; gap: 12px; }
details.horarios summary { min-height: 52px; display: flex; align-items: center; cursor: pointer; font-weight: 700; color: var(--ac); list-style: none; }
details.horarios summary::-webkit-details-marker { display: none; }
details.horarios summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--t-rapido) var(--mola); }
details.horarios[open] summary::after { transform: rotate(225deg); }
.horarios-lista { display: flex; flex-direction: column; gap: 10px; }
.hora-linha { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 8px; align-items: end; padding: 10px; border-radius: var(--r2);
  background: var(--bl2); border: 1px solid var(--ln2); animation: abre var(--t-medio) var(--mola) both; }
.hora-linha .campo { min-width: 0; }
.hora-linha input { font-size: 13.5px; padding-left: 8px; padding-right: 8px; }
.hora-linha .tirar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--dnbg); color: var(--dn); font-size: 22px; line-height: 1;
  transition: transform .25s var(--salto); }
.hora-linha .tirar:active { transform: scale(.88); }

/* frente financeiro: importar o relatório do BSOP */
.botao.importar { align-self: stretch; }
.arquivo-escondido { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.escolher-pdf { position: relative; cursor: pointer; }
.escolher-pdf:focus-within { box-shadow: 0 0 0 3px var(--ac); }
.relatorio { display: flex; flex-direction: column; gap: 14px; }
.aviso.lendo { animation: pulsa-texto 1.2s ease-in-out infinite alternate; }
@keyframes pulsa-texto { from { opacity: .55; } to { opacity: 1; } }
.relatorio-etapa { font-size: 14px; color: var(--t2); }
.relatorio-etapa b { color: var(--t1); }
.relatorio-evento { animation: surge var(--t-medio) var(--mola) both; transition: opacity .25s; }
.relatorio-evento.desligado { opacity: .6; }
.relatorio-nome { font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--t1); line-height: 1.3; }
.relatorio-linhas { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.mudancas { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--r2); background: var(--selbg); }
.mudanca { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: baseline; font-size: 14px; }
.mudanca s { color: var(--t2); }
.mudanca .seta { color: var(--ac); font-weight: 700; }
.mudanca b { color: var(--t1); }

/* frente financeiro: despesas pessoais */
.abas-financeiro { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 99px; background: var(--bl); border: 1px solid var(--ln); }
.abas-financeiro a { min-height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 99px; font-weight: 700; color: var(--t2);
  transition: background-color .25s, color .25s, transform var(--t-rapido) var(--salto); }
.abas-financeiro a:active { transform: scale(.95); }
.abas-financeiro a.ligado { background: var(--acb); color: var(--acf); box-shadow: 0 6px 16px var(--brilho); }
.botoes-sessao > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.chips.categorias { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips.categorias .chip { min-height: 60px; border-radius: var(--r3); font-size: 15px; white-space: normal; text-align: center; line-height: 1.2; }
.chips.categorias .chip:last-child:nth-child(odd) { grid-column: 1 / -1; }
.chips.categorias .chip.ligado { background: var(--acb); color: var(--acf); border-color: transparent; animation: estala var(--t-medio) var(--salto) both; }
.valor-grande { font-size: 26px; font-weight: 800; text-align: center; }
.despesa-linha { align-items: center; }
.categoria-marca { flex: none; width: 12px; height: 40px; border-radius: 99px; background: var(--ln); }
.categoria-marca.viagem { background: #09BEEB; }
.categoria-marca.hospedagem { background: #E2E440; }
.categoria-marca.deslocamento { background: #3ACB74; }
.categoria-marca.alimentacao { background: #D82732; }
.numeros.tres.resultado-despesas { grid-template-columns: 1fr; gap: 8px; }
.resultado-despesas .numero { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 14px; }
.numeros.tres.resultado-despesas .numero b { font-size: 17px; text-align: right; }
.resultado-despesas .numero.depois-despesas { border-color: var(--ac); }

/* ---------- frente: foto do vilão ---------- */
/* O retrato: as iniciais por baixo, a foto por cima quando chega (desliza e aparece). Na lista e na tela da foto,
   redondo com o anel das três fichas, como o avatar; na ficha, grande e arredondado, para reconhecer na mesa. */
@keyframes foto-surge { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
.retrato { position: relative; flex: none; display: grid; overflow: hidden; isolation: isolate; }
.retrato > * { grid-area: 1 / 1; }
.retrato-iniciais { display: grid; place-items: center; font-weight: 800; color: var(--t2); background: var(--bl2); }
.retrato-foto { width: 100%; height: 100%; object-fit: cover; display: block; animation: foto-surge var(--t-medio) var(--mola) both; }
.retrato.pronta .retrato-foto { animation: none; }
.retrato.mini, .retrato.enorme { border-radius: 50%; padding: 2.5px; background: conic-gradient(#E2E440 0 33.3%, #D82732 0 66.6%, #0E723A 0); }
.retrato.mini > *, .retrato.enorme > * { border-radius: 50%; }
.retrato.mini { width: 48px; height: 48px; }
.retrato.mini .retrato-iniciais { font-size: 15px; }
.retrato.enorme { width: 128px; height: 128px; padding: 4px; }
.retrato.enorme .retrato-iniciais { font-size: 40px; }
.retrato.enorme.nova { animation: estala var(--t-medio) var(--salto) both; }
.retrato.grande { width: 100%; aspect-ratio: 4 / 3; max-height: 300px; border-radius: var(--r3); background: var(--bl2); }
.retrato.grande .retrato-iniciais { font-size: 56px; }
.linha .retrato.mini { margin-left: -4px; }
.foto-ficha { position: relative; display: block; margin: -6px -6px 4px; border-radius: var(--r3); transition: transform var(--t-rapido) var(--mola); }
.foto-ficha:active { transform: scale(.975); }
.foto-ficha .retrato.grande { box-shadow: 0 10px 26px var(--sh); }
.foto-ficha .pendente { position: absolute; left: 12px; bottom: 12px; box-shadow: 0 4px 12px var(--sh); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.foto-vazia { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: var(--r2);
  border: 1.5px dashed var(--bd); color: var(--ac); font-weight: 700; transition: transform .25s var(--mola), background-color .2s, border-color .2s; }
.foto-vazia:active { transform: scale(.96); background: var(--selbg); border-color: var(--ac); }
.aviso-mesa { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r2); background: var(--wnbg); color: var(--t1);
  font-size: 14px; font-weight: 600; animation: abre var(--t-medio) var(--mola) both; }
.aviso-mesa .icone { color: var(--wn); width: 20px; height: 20px; margin-top: 1px; }
.foto-cabeca { display: flex; align-items: center; gap: 16px; }
.foto-previa { flex: none; }
.foto-quem { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.foto-quem b { font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; overflow-wrap: anywhere; }
.foto-origens { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foto-origem { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 12px;
  border-radius: var(--r3); background: var(--selbg); color: var(--ac); font-weight: 700; cursor: pointer;
  transition: transform var(--t-rapido) var(--salto), background-color .2s, box-shadow .2s; }
.foto-origem .icone { width: 30px; height: 30px; }
.foto-origem:active { transform: scale(.94); }
.foto-origem:focus-within { box-shadow: 0 0 0 3px var(--ac); }

/* ---------- frente: juntar jogadores ---------- */
.juntar-elo { align-self: flex-start; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.selo-parecido { background: var(--wnbg); color: var(--wn); }
.duelo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.lado { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; min-height: 168px; padding: 14px 12px 12px;
  text-align: left; background: var(--bl); border: 1.5px dashed var(--bd); border-radius: var(--r3); opacity: .72;
  transition: transform var(--t-rapido) var(--salto), border-color .25s, background-color .25s, box-shadow .25s, opacity .25s; }
.lado:active { transform: scale(.95); }
.lado.ligado { opacity: 1; border: 1.5px solid var(--ac); background: linear-gradient(160deg, var(--selbg), transparent 70%), var(--bl);
  box-shadow: 0 0 0 3px var(--selbg), 0 10px 24px var(--sh); }
.lado-selo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px;
  background: var(--dnbg); color: var(--dn); transition: background-color .25s, color .25s; }
.lado.ligado .lado-selo { background: var(--acb); color: var(--acf); animation: estala var(--t-medio) var(--salto) both; }
.lado-nome { font-size: 17px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; overflow-wrap: anywhere; }
.lado .fraco { overflow-wrap: anywhere; }
.lado-descricao { font-size: 13px; line-height: 1.4; color: var(--t2); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.lado-notas { margin-top: auto; width: auto; }
.juntar-resumo { font-size: 14px; color: var(--t2); }
.juntar-confirma { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: var(--r3); background: var(--wnbg);
  border: 1px solid var(--ln); animation: abre var(--t-medio) var(--mola) both; }
.juntar-frase { font-size: 16px; font-weight: 700; line-height: 1.35; }
.juntar-confirma .elo { align-self: flex-start; min-height: 44px; }
.parecidos { display: flex; flex-direction: column; gap: 8px; }
.parecido { display: flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: var(--r2); background: var(--wnbg);
  animation: abre var(--t-medio) var(--mola) both; }
.parecido-corpo { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px;
  font-size: 13.5px; transition: transform .25s var(--mola); }
.parecido-corpo span { overflow-wrap: anywhere; }
.parecido-corpo b { flex: none; color: var(--ac); }
.parecido-corpo:active { transform: scale(.97); }
.parecido .botao-icone { margin: 0; color: var(--t2); }

/* ---------- frente: níveis de acesso ---------- */
/* a linha discreta com o cadeado (mural e formulário de nota de quem é "Só as próprias") */
.acesso-aviso { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: var(--r3); font-size: 12.5px; line-height: 1.4;
  color: var(--t2); background: var(--bl2); border: 1px dashed var(--ln); animation: surge var(--t-medio) var(--mola) both; }
.acesso-aviso .icone.mini { flex: none; width: 13px; height: 13px; margin: 0; color: var(--t2); }
.campo .acesso-aviso { margin-top: 8px; }
/* o nível em Conta, embaixo do nome */
.acesso-meu { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 11px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--up); background: var(--upbg); }
.acesso-meu.limitado { color: var(--t2); background: var(--bl2); border: 1px solid var(--ln); }
.acesso-meu .icone.mini { margin: 0; }
/* Conta → Time */
.acesso-explica { display: grid; gap: 6px; }
.acesso-explica p { font-size: 14px; }
.acesso-pessoa, .acesso-fixo { flex-basis: 100%; }
.acesso-fixo { padding: 2px 4px; font-size: 12.5px; color: var(--t2); }
.chips.segmento.acesso-nivel .chip { min-height: 44px; font-size: 14px; font-weight: 600; transition: background-color .25s var(--mola), color .2s, transform .2s var(--salto); }
.chips.segmento.acesso-nivel .chip:active { transform: scale(.96); }
.chips.segmento.acesso-nivel .chip.ligado { color: var(--acf); }
@media (prefers-reduced-motion: reduce) { .acesso-aviso { animation: none; } }

/* ---------- frente: grade ---------- */
/* As cores da regra seguem a legenda da planilha do time (verde, amarelo, laranja, magenta, vermelho), em tons do app:
   verde, amarelo e vermelho são os do app; laranja e magenta foram acertados no mesmo brilho, para os dois temas. */
:root { --gr-lj: #F29A4A; --gr-ljbg: rgba(242, 154, 74, .14); --gr-mg: #DB6BD0; --gr-mgbg: rgba(219, 107, 208, .14); }
html[data-tema="claro"] { --gr-lj: #A4500A; --gr-ljbg: rgba(164, 80, 10, .10); --gr-mg: #962F88; --gr-mgbg: rgba(150, 47, 136, .10); }
@media (prefers-color-scheme: light) {
  html:not([data-tema]) { --gr-lj: #A4500A; --gr-ljbg: rgba(164, 80, 10, .10); --gr-mg: #962F88; --gr-mgbg: rgba(150, 47, 136, .10); }
}
.gr-verde { --gr: var(--up); --grbg: var(--upbg); }
.gr-amarelo { --gr: var(--wn); --grbg: var(--wnbg); }
.gr-laranja { --gr: var(--gr-lj); --grbg: var(--gr-ljbg); }
.gr-magenta { --gr: var(--gr-mg); --grbg: var(--gr-mgbg); }
.gr-vermelho { --gr: var(--dn); --grbg: var(--dnbg); }
.gr-neutro { --gr: var(--t2); --grbg: var(--bl2); }
/* o selo do circuito: sigla numa pastilha, nas cores das fichas e do marinho (não imita a marca de ninguém) */
.circuito { display: inline-flex; align-items: center; gap: 3px; height: 20px; padding: 0 8px; border-radius: 99px; flex: none;
  font-size: 10.5px; font-weight: 800; letter-spacing: .07em; line-height: 1; vertical-align: middle; white-space: nowrap;
  animation: estala var(--t-medio) var(--salto) both; }
.circuito .estrela { width: 11px; height: 11px; fill: currentColor; flex: none; }
.circuito-bsop { background: #0E723A; color: #EDF2FA; }
.circuito-ksop { background: #E2E440; color: #0B162B; }
.circuito-wsop { background: #D82732; color: #FFFFFF; }
.circuito-ept { background: var(--t1); color: var(--bg); }
.circuito-lapt { background: #3A5182; color: #EDF2FA; }
.circuito-wpt { background: transparent; color: var(--t1); box-shadow: inset 0 0 0 1.5px var(--t2); }
.circuito-outro { background: var(--hv); color: var(--t2); }
.gr-meta .circuito { margin-right: 7px; vertical-align: 1px; }
.faixa b.gr-meta .circuito { vertical-align: 2px; }
/* a regra e o estado */
.gr-regra { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700;
  color: var(--gr); background: var(--grbg); line-height: 1.25; overflow-wrap: anywhere; }
.gr-regra::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.gr-regra.gr-vermelho { text-transform: uppercase; letter-spacing: .05em; box-shadow: inset 0 0 0 1.5px currentColor; }
.gr-estado { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t2); }
.gr-estado-autorizado { color: var(--up); }
.gr-estado-negado { color: var(--dn); }
.gr-estado-pedido { color: var(--wn); }
.gr-selos { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.gr-na-grade { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px;
  font-size: 11.5px; font-weight: 700; color: var(--gr); background: var(--grbg); }
.gr-na-grade::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.gr-na-grade.negado { text-transform: uppercase; letter-spacing: .05em; }
/* os números da planilha */
.gr-extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gr-extras span { display: flex; flex-direction: column; padding: 6px 8px; border-radius: var(--r1); background: var(--bl2); border: 1px solid var(--ln2); min-width: 0; }
.gr-extras small { font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-extras b { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gr-extras i { font-style: normal; font-size: 11px; color: var(--t2); white-space: nowrap; }
.gr-evento .gr-extras { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.gr-linha { align-items: flex-start; }
.gr-linha .linha-corpo { gap: 6px; }
.gr-linha.gr-negada { opacity: .78; }
.gr-linha.gr-negada .linha-corpo > b { text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--dn); }
.gr-sem-cal { border-style: dashed; }
.cal-dia.gr-passado { opacity: .7; }
.gr-resumo .dupla .botao { min-height: 48px; font-size: 14px; padding: 8px 10px; }
.gr-filtro { display: flex; align-items: center; gap: 12px; }
.gr-filtro .chips.segmento { flex: 1; }
.gr-filtro .elo { flex: none; min-height: 44px; display: flex; align-items: center; }
.gr-evento .gr-cartao { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: var(--r3); background: var(--bl); border: 1px solid var(--ln);
  transition: border-color .3s, box-shadow .3s; }
.gr-evento .gr-cartao.atual { border-color: var(--ac); box-shadow: 0 0 0 3px var(--selbg); }
.gr-cartao-topo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gr-cartao-topo b { margin-right: auto; }
/* colar e a prévia */
textarea.gr-colar { font-size: 13px; min-height: 120px; max-height: 220px; field-sizing: fixed; white-space: pre; overflow: auto; }
.gr-previa { display: flex; flex-direction: column; gap: 12px; }
.gr-previa:empty { display: none; }
.gr-resumo-previa { gap: 4px; padding: 14px 16px; }
.gr-falta-regra { color: var(--wn); font-weight: 700; }
.gr-previa-linha { display: flex; flex-direction: column; gap: 8px; animation: surge var(--t-medio) var(--mola) both; }
.gr-previa-linha.sem-cal .linha { border-color: var(--wn); }
.gr-aviso { font-size: 13px; font-weight: 600; color: var(--t1); padding: 8px 12px; border-radius: var(--r2); background: var(--wnbg); }
.gr-trocar { align-self: flex-start; min-height: 44px; }
.gr-todas { min-height: 46px; font-size: 14px; }
.gr-opcoes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; animation: abre 280ms var(--mola) both; }
.gr-opcao { min-height: 48px; padding: 4px 2px; border-radius: var(--r2); border: 1.5px solid var(--ln); background: var(--bl); color: var(--t1);
  font-size: 12px; font-weight: 700; line-height: 1.15; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  transition: transform .2s var(--salto), background-color .25s, border-color .25s; }
.gr-opcao::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--gr); }
.gr-opcao:active { transform: scale(.92); }
.gr-opcao.ligado { background: var(--grbg); border-color: var(--gr); color: var(--gr); }
@media (prefers-reduced-motion: reduce) { .circuito, .gr-previa-linha, .gr-opcoes { animation: none; } }
/* com o selo da grade, o "Jogando agora" desce para baixo do nome (senão o nome fica espremido) */
.cal-linha:has(.gr-na-grade) { flex-wrap: wrap; row-gap: 8px; }
.cal-linha:has(.gr-na-grade) .linha-corpo { flex-basis: calc(100% - 72px); }
.cal-linha:has(.gr-na-grade) .cal-selo { margin-left: 72px; }

/* ---------- frente: ajustes da grande revisão ---------- */
/* confirmação na própria tela (exclusão de conta, apagar cadastro de vez) */
.confirma-bloco { display: flex; flex-direction: column; gap: 10px; }
.confirma-tela { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: var(--r3); background: var(--dnbg);
  border: 1px solid var(--ln); animation: abre var(--t-medio) var(--mola) both; }
.confirma-tela > p { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.chip.perigo { color: var(--dn); border-color: var(--dn); background: var(--dnbg); }
.elo.perigo-elo { color: var(--dn); align-self: flex-start; min-height: 44px; }
.apagar-de-vez { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; border-top: 1px dashed var(--ln); }
/* Conta: pedido de exclusão e a cópia que não coube */
.exclusao-conta > p { font-size: 14px; }
.aviso-copia { background: var(--wnbg); border-color: var(--wn); animation: abre var(--t-medio) var(--mola) both; }
.aviso-copia h3 { color: var(--t1); }
.aviso-copia p { font-size: 14px; }
/* Conta → Time: o pedido na linha da pessoa e as senhas desta visita */
.exclusao-pedido { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; }
.selo.selo-exclusao { align-self: flex-start; text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--dn); background: var(--dnbg); }
.senhas-visita { gap: 10px; border-color: var(--ac); box-shadow: 0 0 0 3px var(--selbg), 0 6px 18px rgba(0, 0, 0, .12); animation: abre var(--t-medio) var(--mola) both; }
.senha-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r2); background: var(--bl2); border: 1px solid var(--ln2);
  animation: surge var(--t-medio) var(--mola) both; }
.senha-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.senha-texto { font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; color: var(--t2); }
.senha-copiar { flex: none; color: var(--ac); border-color: var(--ac); transition: transform .2s var(--salto); }
.senha-copiar:active { transform: scale(.93); }
/* juntar: o recado sobre quem é "Só as próprias" */
.juntar-limitados { font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .confirma-tela, .aviso-copia, .senhas-visita, .senha-item { animation: none; } }

/* ---------- frente: mesa atual ---------- */
/* A mesa de agora, vista de cima: o mesmo feltro da mesa da mão (para reconhecer), mais alta para caber assentos
   grandes com o nome e a contagem de notas. Assentos na numeração do cassino (1 à esquerda do dealer, sentido horário).
   As posições ficam aqui, por classe (a CSP não deixa estilo embutido). Azul só no seu assento e na escolha. */
.ma-caixa { margin: -26px -6px 0; }  /* o alto do feltro (o dealer) fica sob a borda de cima: a mesa sobe sem cortar assento */
.ma-mesa { position: relative; width: 100%; max-width: 440px; aspect-ratio: 340 / 442; margin: 0 auto; animation: surge var(--t-medio) var(--mola) both; }
.ma-feltro { position: absolute; inset: 0; width: 100%; height: 100%; }
.ma-centro { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 50%; display: flex; flex-direction: column; align-items: center;
  gap: 3px; text-align: center; pointer-events: none; }
.ma-centro .pendente { pointer-events: auto; }
.ma-rotulo { font-size: 10px; font-weight: 700; letter-spacing: .16em; color: var(--t2); }
.ma-numero { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -.03em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ma-torneio { max-width: 100%; font-size: 12px; color: var(--t2); }
.ma-qtd { font-size: 13.5px; font-weight: 700; }
.ma-dica { font-size: 12px; line-height: 1.3; color: var(--t2); margin-top: 4px; }
.ma-instrucao { font-size: 16px; font-weight: 700; line-height: 1.3; animation: abre 260ms var(--mola) both; }
.ma-assento { position: absolute; translate: -50% -50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 58px; padding: 7px 4px 6px; border-radius: 18px; background: var(--bl); border: 1px solid var(--ln); color: var(--t1);
  box-shadow: 0 6px 16px var(--sh); transition: transform var(--t-rapido) var(--salto), background-color .2s, border-color .2s, box-shadow .2s; }
.ma-assento:active { transform: scale(.9); }
.ma-assento.ocupado { animation: estala var(--t-medio) var(--salto) both; }
.ma-assento.vazio { background: var(--bl2); border: 1.5px dashed var(--bd); box-shadow: none; color: var(--t2); }
.ma-assento.vazio:active { background: var(--selbg); border-color: var(--ac); }
.ma-assento.eu { background: var(--acb); border-color: var(--acb); color: var(--acf); box-shadow: 0 8px 20px var(--brilho); }
.ma-assento.sel { border: 2.5px solid var(--wn); box-shadow: 0 0 0 4px var(--wnbg), 0 6px 16px var(--sh); }
.ma-num { position: absolute; left: -5px; top: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800; background: var(--hv); color: var(--t2); border: 1px solid var(--ln); }
.ma-assento.eu .ma-num { background: var(--acf); color: var(--acb); border-color: var(--acf); }
.ma-nome { max-width: 100%; font-size: 13.5px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma-mais { font-size: 24px; line-height: 1; color: var(--ac); }
.ma-conta { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 2px 7px; border-radius: 99px; font-size: 11px; font-weight: 700;
  white-space: nowrap; overflow: hidden; }
.ma-conta.time { background: var(--upbg); color: var(--up); }
.ma-conta.suas { background: var(--hv); color: var(--t1); }
.ma-conta.nada { color: var(--t2); font-weight: 600; }
.ma-hoje { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--wn); color: var(--wn); animation: pulsa 1.8s ease-out infinite; }
.ma-assento .retrato.micro { position: absolute; right: -6px; top: -8px; }
.retrato.micro { width: 24px; height: 24px; border-radius: 50%; padding: 1.5px; background: conic-gradient(#E2E440 0 33.3%, #D82732 0 66.6%, #0E723A 0); }
.retrato.micro > * { border-radius: 50%; }
.retrato.micro .retrato-iniciais { font-size: 9px; }
.ma-mesa.l6 .ma-assento { width: 27%; } .ma-mesa.l8 .ma-assento { width: 26%; }
.ma-mesa.l9 .ma-assento { width: 23%; } .ma-mesa.l10 .ma-assento { width: 22%; }
.ma-mesa.l6 .ma-s1 { left: 80.9%; top: 26.3%; } .ma-mesa.l6 .ma-s2 { left: 86.3%; top: 58.1%; } .ma-mesa.l6 .ma-s3 { left: 69%; top: 86.9%; }
.ma-mesa.l6 .ma-s4 { left: 31%; top: 86.9%; } .ma-mesa.l6 .ma-s5 { left: 13.7%; top: 58.1%; } .ma-mesa.l6 .ma-s6 { left: 19.1%; top: 26.3%; }
.ma-mesa.l8 .ma-s1 { left: 76.4%; top: 20%; } .ma-mesa.l8 .ma-s2 { left: 86.6%; top: 43.7%; } .ma-mesa.l8 .ma-s3 { left: 83.4%; top: 68.7%; }
.ma-mesa.l8 .ma-s4 { left: 65.3%; top: 89.1%; } .ma-mesa.l8 .ma-s5 { left: 34.7%; top: 89.1%; } .ma-mesa.l8 .ma-s6 { left: 16.6%; top: 68.7%; }
.ma-mesa.l8 .ma-s7 { left: 13.4%; top: 43.7%; } .ma-mesa.l8 .ma-s8 { left: 23.6%; top: 20%; }
.ma-mesa.l9 .ma-s1 { left: 74.6%; top: 17.9%; } .ma-mesa.l9 .ma-s2 { left: 85.7%; top: 38.7%; } .ma-mesa.l9 .ma-s3 { left: 85.7%; top: 61.3%; }
.ma-mesa.l9 .ma-s4 { left: 74.6%; top: 82.1%; } .ma-mesa.l9 .ma-s5 { left: 50%; top: 92.6%; } .ma-mesa.l9 .ma-s6 { left: 25.4%; top: 82.1%; }
.ma-mesa.l9 .ma-s7 { left: 14.3%; top: 61.3%; } .ma-mesa.l9 .ma-s8 { left: 14.3%; top: 38.7%; } .ma-mesa.l9 .ma-s9 { left: 25.4%; top: 17.9%; }
.ma-mesa.l10 .ma-s1 { left: 73%; top: 16.3%; } .ma-mesa.l10 .ma-s2 { left: 84.6%; top: 34.7%; } .ma-mesa.l10 .ma-s3 { left: 86.7%; top: 55.2%; }
.ma-mesa.l10 .ma-s4 { left: 80.1%; top: 75.1%; } .ma-mesa.l10 .ma-s5 { left: 62.8%; top: 90.3%; } .ma-mesa.l10 .ma-s6 { left: 37.2%; top: 90.3%; }
.ma-mesa.l10 .ma-s7 { left: 19.9%; top: 75.1%; } .ma-mesa.l10 .ma-s8 { left: 13.3%; top: 55.2%; } .ma-mesa.l10 .ma-s9 { left: 15.4%; top: 34.7%; }
.ma-mesa.l10 .ma-s10 { left: 27%; top: 16.3%; }
/* ferramentas, botões e a lista de quem está na mesa */
main > .chips.ma-modos { margin: -4px 0 0; padding: 0; }
.ma-modos .chip { flex: 1; font-weight: 700; }
.ma-botoes .botao-sessao { min-height: 60px; font-size: 17px; }
.ma-trocas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ma-trocas .botao { min-height: 48px; font-size: 14.5px; }
.ma-linha .linha-corpo > b { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ma-linha-num { flex: none; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; align-self: center;
  font-size: 12px; font-weight: 800; background: var(--hv); color: var(--t2); }
.ma-aviso { font-size: 13px; font-weight: 600; color: var(--t2); }
.ma-aviso.time { color: var(--up); }
.ma-aviso.suas { color: var(--t1); }
.ma-hoje-texto { color: var(--wn); font-weight: 700; }
/* mural: a faixa da mesa e o atalho "Sentei" */
.faixa.ma-faixa { animation: abre var(--t-medio) var(--mola) both; }
.ma-icone-mesa { flex: none; width: 30px; height: 22px; border-radius: 50%; border: 2.5px solid var(--ac); background: var(--selbg); }
.botoes-sessao > .ma-botao-sessao:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* escolher quem sentou */
.ma-escolher input[type=search] { font-size: 17px; }
.ma-sugestao { display: flex; align-items: center; gap: 12px; }
.ma-sugestao .linha-corpo b { font-size: 15.5px; }
.ma-sugestoes > .rotulo { margin-top: 4px; }
.ma-novo:empty { display: none; }
.ma-novo { display: flex; flex-direction: column; gap: 12px; animation: abre 280ms var(--mola) both; }
/* na mão (mesa visual): a plaquinha com o nome de quem está no assento */
.mesa-placa { pointer-events: none; }
.mesa-placa rect { fill: var(--bl); stroke: var(--ln); stroke-width: 1; }
.mesa-placa.vilao rect { stroke: var(--dn); stroke-width: 1.6; }
.mesa-placa text { fill: var(--t1); font-size: 9.5px; font-weight: 700; }

/* ---------- frente: time no torneio e relógio ---------- */
/* mural: a faixa do time e, ao lado, o relógio do torneio que se está jogando */
.tt-faixas { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; animation: abre var(--t-medio) var(--mola) both; }
.tt-faixa { min-width: 0; }
.tt-faixa b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-relogio-elo { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 104px; padding: 10px 14px; border-radius: var(--r3);
  background: var(--bl); border: 1px solid var(--ln); transition: transform .25s var(--mola), background-color .2s; }
.tt-relogio-elo:active { transform: scale(.95); background: var(--hv); }
.tt-relogio-elo .tt-rotulo { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t2); }
.tt-nivel { display: flex; flex-direction: column; font-size: 12.5px; font-weight: 600; color: var(--t2); }
.tt-conta { font-size: 18px; font-weight: 800; color: var(--t1); letter-spacing: -.01em; }
/* painel */
.tt-eu-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tt-eu-topo h2 { font-size: 20px; }
.chip.tt-mostrar { min-height: 40px; font-size: 13.5px; font-weight: 600; }
.chip.tt-mostrar.ligado::before { content: ""; width: 7px; height: 7px; margin-right: 7px; display: inline-block; border-radius: 50%; background: currentColor; }
.tt-aviso, .tt-limitado { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--t2); }
.tt-editar:empty { display: none; }
.tt-form { padding: 16px; background: var(--bl2); border: 1.5px solid var(--ac); border-radius: var(--r3); gap: 14px; animation: abre var(--t-medio) var(--mola) both; }
.tt-fichas { display: flex; gap: 8px; }
.tt-fichas input { flex: 1; min-width: 0; font-size: 22px; font-weight: 700; text-align: center; }
.chip.tt-mil { min-width: 56px; font-size: 18px; font-weight: 800; color: var(--t1); }
.tt-grupo { display: flex; flex-direction: column; gap: 10px; animation: surge var(--t-medio) var(--mola) both; }
.tt-grupo + .tt-grupo { animation-delay: 70ms; }
.tt-grupo-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 2px 0; }
.tt-grupo-topo h3 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; min-width: 0; overflow-wrap: anywhere; }
.tt-grupo.atual .tt-grupo-topo h3::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--up); vertical-align: 2px; }
.chip.tt-relogio-chip { display: inline-flex; align-items: center; min-height: 40px; font-size: 13.5px; font-weight: 700; color: var(--ac); }
.tt-jogador { align-items: center; }
.tt-jogador.eu { border-color: var(--bd); }
.tt-jogador .linha-corpo > b { font-size: 15.5px; }
.tt-jogador:active { transform: scale(.975); }
.tt-stack { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tt-stack b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.tt-stack b small { font-size: 13px; font-weight: 700; color: var(--t2); }
.tt-stack b.sem { color: var(--t2); }
.tt-situacao { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; background: var(--upbg); color: var(--up); }
.tt-situacao.classificado { background: var(--wnbg); color: var(--wn); }
.tt-situacao.eliminado { background: var(--hv); color: var(--t2); }
.tt-jogador.velho, .tt-detalhe.velho { opacity: .55; }
.tt-jogador.fora .linha-corpo > b { color: var(--t2); }
.tt-grande { display: flex; align-items: baseline; gap: 8px; }
.tt-grande b { font-size: 54px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.tt-grande span { font-size: 20px; font-weight: 700; color: var(--t2); }
/* relógio */
.rl { display: flex; flex-direction: column; gap: 14px; }
.rl-torneio { font-size: 15px; overflow-wrap: anywhere; }
main .rl-dias { margin: 0 -16px; padding: 2px 16px 6px; }
.rl-dias .chip { min-height: 40px; font-size: 13.5px; }
.rl-nivel { align-items: center; text-align: center; gap: 10px; padding: 26px 18px 22px;
  background: radial-gradient(120% 90% at 50% 0%, rgba(9, 190, 235, .14), transparent 70%), var(--bl); animation: estala var(--t-medio) var(--salto) both; }
.rl-nivel.pausa { background: radial-gradient(120% 90% at 50% 0%, var(--wnbg), transparent 70%), var(--bl); }
.rl-nivel.sem { background: var(--bl); }
.rl-rotulo { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--t2); }
.rl-blinds-grande { font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; overflow-wrap: anywhere; }
.rl-nivel.sem .rl-blinds-grande { font-size: 26px; }
.rl-ante { font-size: 16px; color: var(--t2); }
.rl-ante b { color: var(--t1); font-size: 20px; }
.rl-conta { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 6px; padding: 10px 22px; border-radius: var(--r3); background: var(--bl2); border: 1px solid var(--ln2); }
.rl-conta span { font-size: 12.5px; font-weight: 600; color: var(--t2); }
.rl-conta b { font-size: 46px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.rl-stack { font-size: 17px; font-weight: 800; color: var(--up); padding: 4px 14px; border-radius: 99px; background: var(--upbg); }
.rl-linha b { font-size: 18px; }
.rl-linha small { font-size: 13px; font-weight: 600; }
.rl-proximos { display: flex; flex-direction: column; gap: 8px; }
.rl-proximos h3 { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--t2); }
.rl-prox { min-height: 54px; padding: 10px 14px; }
.rl-prox b { flex: 1; font-size: 17px; }
.rl-n { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bl2); border: 1px solid var(--ln); font-weight: 800; font-size: 14px; }
.rl-origem { text-align: center; }
.rl-editar:empty { display: none; }
.rl-form { padding: 16px; background: var(--bl2); border: 1.5px solid var(--ac); border-radius: var(--r3); gap: 14px; animation: abre var(--t-medio) var(--mola) both; }
.rl-form input { font-size: 20px; font-weight: 700; text-align: center; }
.rl-blinds { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tt-opcao { display: flex; flex-direction: column; gap: 6px; }
@media (prefers-reduced-motion: reduce) { .tt-faixas, .tt-grupo, .rl-nivel, .tt-form, .rl-form { animation: none; } }

/* ---------- frente: mesa (rodada 3: mesa e botões de ação juntos na tela, sem rolar) ---------- */
/* A altura da mesa se ajusta à tela: o que sobra depois do topo, da linha de status, dos botões de ação (presos) e do
   Gravar. Celular deitado: a mesa à esquerda, status e botões à direita (a mesa não some). */
.mesa-svg { max-height: max(220px, calc(100dvh - 356px)); }
@media (orientation: landscape) and (max-height: 560px) {
  .mesa-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; align-items: start; }
  .mesa-editor > .mesa-resumo { grid-column: 1; grid-row: 1; }
  .mesa-editor > .mesa-ferramentas { grid-column: 2; grid-row: 1; }
  .mesa-editor > .mesa-estrutura { grid-column: 1 / -1; grid-row: 2; }
  .mesa-editor > .mesa-quadro { grid-column: 1; grid-row: 3 / span 2; margin: 0; }
  .mesa-editor > .mesa-status { grid-column: 2; grid-row: 3; }
  .mesa-editor > .mesa-painel { grid-column: 2; grid-row: 4; position: static; }
  .mesa-svg { max-height: max(180px, calc(100dvh - 166px)); }
}
/* o botão de gravar mostra quem vai ver a nota: cadeado (só eu) ou pessoas (o time) */
#gravar .vis-gravar { width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; }

/* ---------- frente: managers ---------- */
/* o selo com o número de pedidos esperando: na aba Conta da barra de baixo, no topo do painel e no atalho em Conta.
   Amarelo do app (aviso), não o azul (o azul é só de ação e seleção). Entra com um estalo. */
.mg-selo { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px;
  background: var(--wn); color: var(--acf); font-size: 11.5px; font-weight: 800; line-height: 1; animation: estala var(--t-medio) var(--salto) both; }
.aba .mg-selo { position: absolute; top: 6px; left: calc(50% + 6px); box-shadow: 0 0 0 2px var(--bl); }
.topo h1 .mg-selo { margin-left: 8px; vertical-align: 2px; }
.mg-linha-conta .mg-selo { min-width: 26px; height: 26px; font-size: 13px; }
/* o seletor do papel em Conta → Time: o mesmo desenho do seletor de acesso, logo abaixo dele */
.chips.segmento.mg-nivel .chip { min-height: 44px; font-size: 14px; font-weight: 600; transition: background-color .25s var(--mola), color .2s, transform .2s var(--salto); }
.chips.segmento.mg-nivel .chip:active { transform: scale(.96); }
.chips.segmento.mg-nivel .chip.ligado { color: var(--acf); }
.mg-aviso { display: flex; align-items: center; justify-content: center; gap: 2px; }
/* as abas do painel */
.mg-abas .chip { display: flex; align-items: center; justify-content: center; }
/* um pedido na fila do manager; a bala extra (é no meio do torneio) vem com destaque */
.mg-pendente { gap: 10px; animation: surge var(--t-medio) var(--mola) both; }
.mg-pendente.mg-destaque { border-color: var(--wn); box-shadow: 0 0 0 3px var(--wnbg), 0 6px 18px rgba(0, 0, 0, .12); }
.mg-pendente-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mg-tipo { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px;
  background: var(--hv); color: var(--t2); }
.mg-destaque .mg-tipo { background: var(--wnbg); color: var(--wn); }
.mg-pendente .pessoa { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mg-pendente .pessoa b { font-size: 16px; }
.mg-uso { font-weight: 700; color: var(--wn); }
.mg-motivo { font-style: italic; color: var(--t1); overflow-wrap: anywhere; }
.mg-pendente .gr-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mg-pendente .gr-opcao { min-height: 48px; font-size: 13px; }
.mg-pendente input { min-height: 46px; }
/* o pedido do jogador (calendário e Minha grade) */
.mg-pedir { gap: 12px; border-style: dashed; border-color: var(--bd); }
.mg-meu-pedido { gap: 8px; padding: 14px 16px; animation: abre var(--t-medio) var(--mola) both; }
.mg-meu-pedido.mg-pedido { border-color: var(--wn); }
.mg-meu-pedido.mg-negado { opacity: .85; }
.mg-obs { font-size: 13.5px; color: var(--t1); padding: 8px 12px; border-radius: var(--r1); background: var(--bl2); border: 1px solid var(--ln2); overflow-wrap: anywhere; }
.mg-pedidos-evento, .mg-meus-pedidos { display: flex; flex-direction: column; gap: 12px; }
.mg-whats { min-height: 48px; }
/* as balas na sessão aberta */
.mg-balas { gap: 10px; transition: border-color .3s, box-shadow .3s; }
.mg-balas.no-limite { border-color: var(--wn); box-shadow: 0 0 0 3px var(--wnbg), 0 6px 18px rgba(0, 0, 0, .12); }
.mg-balas-topo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.mg-balas-topo b { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.mg-esperando { font-weight: 700; color: var(--wn); }
.mg-negada { font-weight: 600; color: var(--dn); }
.mg-bala-form { padding: 0; animation: abre var(--t-medio) var(--mola) both; }
/* as extras e a condição (regra condicional da legenda) */
.mg-extras { font-size: 12.5px; font-weight: 700; color: var(--up); }
.mg-condicao { font-size: 12.5px; font-weight: 700; color: var(--t2); }
.mg-condicao.positivo { color: var(--up); }
.mg-condicao.negativo { color: var(--dn); }
.gr-condicional { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px;
  color: var(--wn); background: var(--wnbg); box-shadow: inset 0 0 0 1px currentColor; }
/* o balanço do time */
.mg-jogador .saldo { flex: none; }
.mg-tabela { gap: 6px; }
.mg-par { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--ln2); }
.mg-par:first-of-type { border-top: 0; }
.mg-par span { min-width: 0; overflow-wrap: anywhere; }
.mg-linha-grade { display: flex; flex-direction: column; gap: 6px; }
.mg-mais-bala { align-self: flex-end; margin-top: -4px; }
.mg-papel, .mg-fixo { flex-basis: 100%; }
.mg-fixo { padding: 2px 4px; font-size: 12.5px; color: var(--t2); }
/* no balanço do time os valores podem ser longos (negativos, milhares): cabem numa linha, um pouco menores */
.balanco-usd .numeros.mg-numeros .numero b { font-size: 15.5px; white-space: nowrap; }

/* ---------- frente: foto na nota (foto da mão) ---------- */
/* As fotos da nota: miniaturas arredondadas no cartão, grandes na nota aberta e a tela cheia com zoom de pinça.
   No formulário, quadradinhos com o "x" para tirar e as duas origens (câmera e galeria) em quadros tracejados, como o
   "Pôr foto" do jogador. Na mesa visual, um botão redondo no canto de baixo da mesa (fora dos assentos e dos botões). */
.nf-img { position: relative; display: block; overflow: hidden; background: var(--bl2); }
.nf-img img { display: block; width: 100%; height: 100%; object-fit: cover; animation: foto-surge var(--t-medio) var(--mola) both;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.nf-img.pronta img { animation: none; }
.nf-img.sem::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 8px, var(--ln2) 8px 9px); }
/* cartão (mural, ficha do jogador) */
.nf-tira { display: flex; gap: 8px; }
.nf-mini-caixa { position: relative; flex: none; }
.nf-mini { width: 64px; height: 64px; border-radius: var(--r1); box-shadow: 0 4px 12px var(--sh); }
.nf-ponto { position: absolute; right: 5px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--wn); box-shadow: 0 0 0 2px var(--bl); }
.nf-ponto.recusada { background: var(--dn); }
/* nota aberta */
.nf-nota { display: flex; flex-direction: column; gap: 10px; }
.nf-grandes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nf-grandes.uma { grid-template-columns: 1fr; }
.nf-grande { position: relative; display: block; padding: 0; border: 0; background: none; border-radius: var(--r2); overflow: hidden;
  box-shadow: 0 6px 16px var(--sh); transition: transform var(--t-rapido) var(--mola); }
.nf-grande:active { transform: scale(.97); }
.nf-grande .nf-img { width: 100%; aspect-ratio: 4 / 3; }
.nf-grandes.uma .nf-img { aspect-ratio: 16 / 10; }
.nf-grande .pendente { position: absolute; left: 8px; bottom: 8px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nf-recusada { display: flex; flex-direction: column; gap: 8px; }
/* formulário */
.nf-rotulo { display: flex; justify-content: space-between; align-items: center; }
.nf-conta { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.nf-linha { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.nf-item { position: relative; aspect-ratio: 1; border-radius: var(--r2); animation: estala var(--t-medio) var(--salto) both; }
.nf-item .nf-quadro { width: 100%; height: 100%; border-radius: var(--r2); box-shadow: 0 4px 12px var(--sh); }
.nf-item.preparando { background: var(--bl2); border: 1.5px dashed var(--bd); animation: pulsa-texto .8s ease-in-out infinite alternate; }
.nf-item .nf-ponto { right: auto; left: 6px; }
.nf-tirar { position: absolute; right: -7px; top: -7px; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 1px solid var(--ln);
  display: grid; place-items: center; background: var(--vidro); color: var(--t1); box-shadow: 0 2px 8px var(--sh);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: transform var(--t-rapido) var(--salto); }
.nf-tirar::before { content: ""; position: absolute; inset: -8px; }   /* alvo de toque de 46 px */
.nf-tirar:active { transform: scale(.82); }
.nf-tirar .icone { width: 15px; height: 15px; }
.nf-origem { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px;
  border-radius: var(--r2); border: 1.5px dashed var(--bd); color: var(--ac); font-size: 12px; font-weight: 700; line-height: 1.15;
  text-align: center; cursor: pointer; transition: transform var(--t-rapido) var(--salto), background-color .2s, border-color .2s; }
.nf-origem .icone { width: 24px; height: 24px; }
.nf-origem:active { transform: scale(.92); background: var(--selbg); border-color: var(--ac); }
.nf-origem:focus-within { box-shadow: 0 0 0 3px var(--ac); }
.nf-regra { color: var(--t2); font-size: 12.5px; }
/* o atalho na mesa visual */
.mesa-quadro { position: relative; }
.mesa-foto { position: absolute; right: 8px; bottom: 4px; z-index: 1; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--vidro); color: var(--ac); border: 1.5px solid var(--ln); box-shadow: 0 6px 16px var(--sh); cursor: pointer;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: transform var(--t-rapido) var(--salto), opacity .2s; }
.mesa-foto:active { transform: scale(.86); }
.mesa-foto:focus-within { box-shadow: 0 0 0 3px var(--ac); }
.mesa-foto .icone { width: 24px; height: 24px; }
.mesa-foto.cheia { opacity: .5; }
.mesa-foto-conta { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px;
  display: grid; place-items: center; background: var(--acb); color: var(--acf); font-size: 11px; font-weight: 800; animation: estala var(--t-medio) var(--salto) both; }
.mesa-foto-conta:empty { display: none; }
/* tela cheia */
@keyframes nv-entra { from { opacity: 0; transform: scale(.96); } }
@keyframes nv-direita { from { opacity: 0; transform: translateX(30%); } }
@keyframes nv-esquerda { from { opacity: 0; transform: translateX(-30%); } }
@keyframes nv-dica { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
html.nv-aberto, html.nv-aberto body { overflow: hidden; }
.nv { position: fixed; inset: 0; z-index: 50; background: var(--bg); color: var(--t1); animation: nv-entra 260ms var(--mola) both; }
.nv.sai { animation: some 200ms ease both; }
.nv-palco { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.nv-img { width: 100%; height: 100%; background: transparent;
  transform: translate(calc(var(--nv-x, 0px) + var(--nv-dx, 0px)), var(--nv-y, 0px)) scale(var(--nv-z, 1)); transition: transform .28s var(--mola); }
.nv-palco.arrastando .nv-img { transition: none; }
.nv-img img { object-fit: contain; }
.nv-img.vem-direita img { animation: nv-direita var(--t-medio) var(--mola) both; }
.nv-img.vem-esquerda img { animation: nv-esquerda var(--t-medio) var(--mola) both; }
.nv-topo { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 10px 20px; pointer-events: none; }
.nv-topo > * { pointer-events: auto; }
.nv-conta { font-size: 14px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--vidro); }
.nv-conta:empty { visibility: hidden; }
.nv-fechar, .nv-seta { width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid var(--ln); display: grid; place-items: center;
  background: var(--vidro); color: var(--t1); box-shadow: 0 4px 14px var(--sh); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform var(--t-rapido) var(--salto), opacity .2s; }
.nv-fechar:active, .nv-seta:active { transform: scale(.86); }
.nv-seta { position: absolute; top: 50%; margin-top: -24px; }
.nv-seta.antes { left: 10px; }
.nv-seta.depois { right: 10px; }
.nv-seta:disabled { opacity: 0; pointer-events: none; }
.nv-dica { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 18px); text-align: center; color: var(--t2);
  font-size: 12.5px; pointer-events: none; animation: nv-dica 4s ease both; }

/* ---------- frente: correções 4 (2ª grande revisão) ---------- */
/* Time (administrador): contas "Só as próprias" que nunca foram revistas */
.faixa-revisar { gap: 10px; background: var(--wnbg); border-color: var(--wn); animation: abre var(--t-medio) var(--mola) both; }
.faixa-revisar > p:first-child { display: flex; align-items: flex-start; gap: 8px; font-size: 14.5px; line-height: 1.45; }
.faixa-revisar .icone.mini { flex: none; margin-top: 3px; color: var(--wn); }
.faixa-revisar .acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.faixa-revisar .acoes .botao { flex: 1 1 140px; }
.selo.selo-revisar { display: inline-block; margin: 0 0 6px; text-transform: none; letter-spacing: 0; font-size: 12px; background: var(--wnbg); color: var(--wn); }
@keyframes piscar-revisar { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 40% { box-shadow: 0 0 0 4px var(--brilho); } }
.acesso-pessoa.piscar { border-radius: var(--r2); animation: piscar-revisar 1.2s var(--mola) 2; }
/* Conta: a escolha das notas "Time todo" na exclusão */
.escolha-notas-time { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.escolha-notas-time .chips.segmento .chip { min-height: 44px; }
.escolha-notas-time .fraco.mini { font-size: 12.5px; line-height: 1.4; }
.confirma-tela .escolha-notas-time .rotulo, .exclusao-conta .escolha-notas-time .rotulo { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .faixa-revisar, .acesso-pessoa.piscar { animation: none; } }
/* juntar: quem cadastrou e se tem foto, em cada lado */
.lado-origem, .juntar-origem { overflow-wrap: anywhere; line-height: 1.35; }
.lado-foto { font-weight: 600; color: var(--ac); }
.lado-foto.fraco { font-weight: 400; color: var(--t2); }
/* grade: o nome que veio da planilha ao lado do evento casado pelo número */
.gr-planilha { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--t2); padding: 0 4px; }
.gr-planilha-nome { min-width: 0; overflow-wrap: anywhere; }
.gr-previa-linha.nome-diferente .linha { border-color: var(--dn); }
.gr-nome-diferente { padding: 8px 12px; border-radius: var(--r2); background: var(--dnbg); color: var(--t1); }
.gr-selo-diferente { flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--dn); color: var(--bl); }
.gr-descasar { min-height: 44px; font-size: 14px; }
.gr-casar { align-self: flex-start; min-height: 44px; }
/* item 9: telas estreitas (360 px) e letra grande do aparelho (zoom 130% ≈ 296 px): nenhum valor partido no meio
   ("R$ 10.0 / 00") nem nome cortado ("Wagn…", "1 del equi"). O dinheiro já vem com espaço que não quebra entre o símbolo
   e o número (dinheiroLocal); aqui o número só quebra entre palavras e a letra encolhe com a largura da caixa. */
.numero, .saldo-total { container-type: inline-size; }
.numero b { overflow-wrap: normal; word-break: normal; font-size: clamp(13px, 15cqi, 20px); }
.numeros.tres .numero b { font-size: clamp(12px, 15cqi, 15px); }
.numeros.tres.resultado-despesas .numero b { font-size: clamp(13px, 9cqi, 17px); }
.saldo-total b { overflow-wrap: normal; font-size: clamp(20px, 13cqi, 30px); }
.saldo-mes, .saldo, .mes-ano { white-space: nowrap; }
@media (max-width: 440px) { .numeros.tres { grid-template-columns: 1fr 1fr; } .numeros.tres > .numero:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 340px) { .numeros, .numeros.tres { grid-template-columns: 1fr; } }
.ma-nome { white-space: normal; overflow-wrap: normal; text-align: center; font-size: clamp(11px, 3.5vw, 13.5px);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; hyphens: auto; }
.ma-conta { white-space: normal; text-align: center; justify-content: center; line-height: 1.2; border-radius: 10px; overflow: visible; }
/* mesa atual: o número do assento e a foto ficam acima do nome (não cobrem mais "Wagner I."); o torneio no centro em
   até duas linhas */
.ma-assento.ocupado { padding-top: 15px; }
.ma-torneio { white-space: normal; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.25; }
.confirma-corpo { display: flex; flex-direction: column; gap: 14px; }
.confirma-corpo > p { font-size: 14.5px; font-weight: 600; line-height: 1.45; }

/* ---------- frente: ao vivo ---------- */
/* avisos que pedem atenção sem bloquear (regra da grade, relógio do celular errado): o amarelo da ficha, sem o ✓ */
.aviso.aviso-grade, .aviso.rl-celular { color: var(--t1); background: var(--wnbg); box-shadow: inset 3px 0 0 var(--wn); }
.aviso.aviso-grade::before, .aviso.rl-celular::before { content: none; }
.avisos-grade { display: flex; flex-direction: column; gap: 8px; }
.avisos-grade:empty, .avisos-mao:empty, .avisos-topo:empty { display: none; }
.linha-calendario.linha-grade { background: var(--upbg); }
.linha-calendario.linha-grade b { color: var(--up); }
/* os avisos de rascunho no topo da área da mão (a tela rola até eles) */
.avisos-mao { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; animation: abre var(--t-medio) var(--mola) both; }
/* relógio: de quando são as fichas; o dia que começou sem o nível no calendário */
.rl-stack-quando { display: block; text-align: center; margin-top: -2px; }
.rl-comecou { margin-top: 12px; }
.relatorio-fim small, .relatorio-cotacao small { color: var(--t2); }
/* números do balanço e da sessão numa linha só (antes "US$ 1.869,1 / 6" quebrava no meio) */
.numero b { overflow-wrap: normal; white-space: nowrap; }
.numeros:not(.tres) .numero b { font-size: clamp(13px, 4.2vw, 20px); letter-spacing: -.02em; }
@media (max-width: 370px) { .numeros .numero { padding-left: 11px; padding-right: 11px; } }
.numeros.tres .numero b { font-size: clamp(12px, 3.6vw, 15px); }
.tt-situacao.classificado { border-radius: var(--r1); }   /* "Entre dias · passou para o Dia 2 · 118.000 fichas" quebra em 2 linhas */

/* ---------- frente: design (etapa A) — a régua do app ---------- */
/* Tokens para tudo o que for novo ou mexido (docs/frentes/16-design.md). As cores do topo não mudam.
   Espaço: --e1…--e8. Letra: --f-selo…--f-heroi (nada menor que 11 px). Elevação: --el1 (cartão) e --el2 (barra, folha, aviso);
   o brilho azul é só do botão principal da tela. Tempo: --t-toque (apertar), --t-rapido (ligar/desligar),
   --t-medio (abrir, entrar), --t-tela (troca de tela). Nenhuma animação segura o toque seguinte. */
:root {
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 20px; --e6: 24px; --e8: 32px;
  --f-selo: 11px; --f-meta: 13px; --f-corpo: 15px; --f-forte: 17px; --f-titulo: 20px; --f-numero: 26px; --f-heroi: 44px;
  --el1: 0 4px 14px rgba(0, 0, 0, .16); --el2: 0 14px 34px var(--sh);
  --t-toque: 120ms; --t-rapido: 180ms; --t-medio: 240ms; --t-tela: 260ms; --sai: cubic-bezier(.4, 0, 1, 1);
  /* a mesa tem cor própria (antes usava --hv e sumia no tema claro) */
  --feltro: #16305A; --feltro2: #0F2242; --trilho: #2A4573;
  /* o aviso de baixo: neutro, com o sinal na cor do estado */
  --torrada: #EDF2FA; --torrada-t: #0B162B; --torrada-ok: #197540; --torrada-erro: #BD2229; --veu: rgba(4, 10, 22, .55);
}
html[data-tema="claro"] {
  --el1: 0 4px 14px rgba(11, 22, 43, .07);
  --feltro: #CFE2F6; --feltro2: #E3EEFA; --trilho: #9FB6D4;
  --torrada: #0B162B; --torrada-t: #FFFFFF; --torrada-ok: #3ACB74; --torrada-erro: #F5666C; --veu: rgba(11, 22, 43, .32);
}
@media (prefers-color-scheme: light) {
  html:not([data-tema]) {
    --el1: 0 4px 14px rgba(11, 22, 43, .07);
    --feltro: #CFE2F6; --feltro2: #E3EEFA; --trilho: #9FB6D4;
    --torrada: #0B162B; --torrada-t: #FFFFFF; --torrada-ok: #3ACB74; --torrada-erro: #F5666C; --veu: rgba(11, 22, 43, .32);
  }
}
/* campos que tinham ficado de fora do estilo (data e hora apareciam como uma barra clara de 26 px) */
input[type=datetime-local], input[type=time], input[type=number], input[type=tel], input[type=email] {
  width: 100%; min-width: 0; padding: 12px 14px; min-height: 50px; background: var(--fld); border: 1.5px solid var(--ln); border-radius: var(--r2);
  font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.hora-linha input[type=datetime-local] { min-height: 46px; padding: 8px; font-size: 13.5px; }
::placeholder { opacity: 1; }
/* aviso de baixo (torrada): neutro, ✓ verde ou ✕ vermelho; sobe para o alto quando o toque foi na metade de baixo da tela,
   para nunca cobrir o botão que se acabou de tocar (a classe .alto vem de avisar(), em js/base.js) */
@keyframes torrada-entra-alto { from { opacity: 0; transform: translate(-50%, -14px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes torrada-sai-alto { to { opacity: 0; transform: translate(-50%, -8px) scale(.98); } }
.torrada { background: var(--torrada); color: var(--torrada-t); box-shadow: var(--el2); max-width: calc(100vw - 24px); white-space: normal; text-align: left;
  width: max-content; animation: torrada-entra var(--t-medio) var(--mola) both; }
.torrada::before { content: "✓"; margin-right: 8px; font-weight: 800; color: var(--torrada-ok); }
.torrada.erro::before { content: "✕"; color: var(--torrada-erro); }
.torrada.sai { animation: torrada-sai 160ms var(--sai) both; }
.torrada.alto { bottom: auto; top: calc(env(safe-area-inset-top) + 68px); animation-name: torrada-entra-alto; }
.torrada.alto.sai { animation-name: torrada-sai-alto; }
.torrada.com-acao::before { margin-right: 0; }
.torrada .desfazer { background: var(--acb); color: var(--acf); }
/* um botão principal por tela: o que não é a ação da tela perde o azul cheio */
.chip.tt-mostrar.ligado { background: var(--selbg); border-color: transparent; color: var(--ac); box-shadow: none; }
/* alvos de toque: 44 px no mínimo */
.estado { position: relative; }
.estado::after { content: ""; position: absolute; inset: -6px -4px; }   /* a pastilha continua pequena; o toque pega 44 px de altura */
.chip.tt-mostrar, .chip.tt-relogio-chip, .rl-dias .chip { min-height: 44px; }
.hora-linha .tirar { min-width: 44px; min-height: 44px; }
main a.elo { min-height: 44px; display: inline-flex; align-items: center; }
/* a mesa (da mão e a mesa atual) com cor própria nos dois temas, e a letra dos assentos maior */
.mesa-borda { fill: var(--trilho); stroke: var(--ln); }
.mesa-feltro { fill: var(--feltro); }
.mesa-linha { stroke: var(--trilho); opacity: .7; }
.mesa-sub { font-size: 11px; }
.mesa-placa text { font-size: 11px; }
.mesa-dealer { font-size: 10px; }
/* movimento: mais curto, e sem segurar o toque: um toque durante a troca de tela termina a animação e vale na tela nova
   (js/navegacao.js). O título do topo troca sem misturar os dois textos. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--t-tela); }
::view-transition-group(topo), ::view-transition-group(abas) { animation-duration: 200ms; }
::view-transition-old(topo) { animation: some 90ms ease-out both; }
::view-transition-new(topo) { animation: aparece 160ms ease-out 60ms both; }
.entrando > *, .entrando .lista > * { animation-duration: var(--t-medio); }
.entrando > :nth-child(2), .entrando .lista > :nth-child(2) { animation-delay: 30ms; }
.entrando > :nth-child(3), .entrando .lista > :nth-child(3) { animation-delay: 60ms; }
.entrando > :nth-child(4), .entrando .lista > :nth-child(4) { animation-delay: 90ms; }
.entrando > :nth-child(5), .entrando .lista > :nth-child(5) { animation-delay: 120ms; }
.entrando > :nth-child(n+6), .entrando .lista > :nth-child(n+6) { animation-delay: 150ms; }
.aba-mais:active { transform: scale(.9); }                                  /* sem o giro de 90 graus */
.faixa:not(.sessao-faixa) span::before, .ma-hoje { animation: none; }        /* um ponto pulsando por tela: o da sessão */
@media (prefers-reduced-motion: reduce) { .torrada, .torrada.sai { animation: none !important; } }

/* ---------- frente: design (etapa B) — folha inferior ---------- */
@keyframes folha-sobe { from { transform: translateY(100%); } }
@keyframes folha-desce { to { transform: translateY(100%); } }
.veu { position: fixed; inset: 0; z-index: 10; background: var(--veu); animation: aparece var(--t-rapido) ease-out both; }
.veu.sai { animation: some 160ms var(--sai) both; pointer-events: none; }
.folha { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--e4);
  padding: 0 var(--e4) calc(env(safe-area-inset-bottom) + var(--e5)); border-radius: var(--r4) var(--r4) 0 0; background: var(--bl); border: 1px solid var(--ln); border-bottom: 0;
  box-shadow: 0 -14px 40px var(--sh); max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; animation: folha-sobe var(--t-medio) var(--mola) both; }
.folha.sai { animation: folha-desce 160ms var(--sai) both; pointer-events: none; }
.folha-pega { align-self: center; flex: none; width: 96px; height: 44px; margin-bottom: calc(-1 * var(--e4)); background: none; border: 0; padding: 0; display: grid; place-items: center; }
.folha-pega::before { content: ""; width: 40px; height: 5px; border-radius: 99px; background: var(--bd); }
.folha-titulo { font-size: var(--f-titulo); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.folha .chips { flex-wrap: wrap; overflow: visible; }
.folha > form { display: flex; flex-direction: column; gap: var(--e4); }
.torrada { z-index: 12; }
@media (prefers-reduced-motion: reduce) { .veu, .folha { animation: none !important; } }

/* ---------- frente: design (etapa B) — mural: painel de jogo e filtros ---------- */
/* As peças de dentro são as das frentes (mesmas classes): aqui elas viram um painel só. Cabeça (torneio ou sessão),
   três quadros (fichas, relógio, mesa) e a linha do time. */
.jogo { display: flex; flex-wrap: wrap; gap: var(--e2); padding: var(--e3); border-radius: var(--r4); border: 1px solid var(--ln);
  background: linear-gradient(140deg, rgba(9, 190, 235, .16), rgba(9, 190, 235, .03) 55%), var(--bl); box-shadow: var(--el1); animation: abre var(--t-medio) var(--mola) both; }
.jogo .tt-faixas { display: contents; animation: none; }
.jogo > *, .jogo .tt-faixas > * { flex: 1 1 100%; min-width: 0; animation: none; }
.jogo > .faixa:has(+ .sessao-faixa) { display: none; }
.jogo .faixa { box-shadow: none; }
.jogo .faixa:not(.sessao-faixa) span::before { content: none; }
/* a cabeça: sem caixa, com o nome grande */
.jogo > .faixa:first-child:not(.apagada), .jogo > .faixa.sessao-faixa { order: 0; background: none; border: 0; border-radius: var(--r2); padding: var(--e1) var(--e1) var(--e2); gap: 4px; }
.jogo > .faixa:first-child:not(.apagada) b, .jogo > .faixa.sessao-faixa b { font-size: var(--f-titulo); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.jogo > .faixa:first-child:not(.apagada) span { color: var(--t2); }
.jogo > .faixa.apagada { order: 0; min-height: 48px; justify-content: center; }
.jogo > .faixa-iniciar:not(.ma-iniciar) { order: 1; }
/* os quadros */
.jogo-fichas, .jogo .tt-relogio-elo, .jogo > .faixa.ma-faixa { flex: 1 1 0; min-width: 28%; display: flex; flex-direction: column; justify-content: flex-start; gap: 2px; min-height: 76px; padding: 10px;
  border-radius: var(--r2); background: var(--bl2); border: 1px solid var(--ln2); transition: transform var(--t-toque) var(--mola), background-color var(--t-rapido); }
.jogo-fichas:active, .jogo .tt-relogio-elo:active, .jogo > .faixa.ma-faixa:active { transform: scale(.96); background: var(--hv); }
.jogo-fichas { order: 2; } .jogo .tt-relogio-elo { order: 3; } .jogo > .faixa.ma-faixa { order: 4; }
.jogo-fichas span, .jogo .tt-relogio-elo .tt-rotulo, .jogo > .faixa.ma-faixa span { font-size: var(--f-selo); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t2); line-height: 1.3; }
.jogo-fichas b, .jogo .tt-conta { font-size: var(--f-titulo); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; color: var(--t1); }
.jogo-fichas small { font-size: 12px; font-weight: 600; color: var(--up); }
.jogo .tt-nivel { font-size: 12px; font-weight: 600; color: var(--t2); flex-direction: column-reverse; gap: 1px; }
.jogo > .faixa.ma-faixa b { font-size: 12.5px; font-weight: 600; letter-spacing: 0; line-height: 1.3; color: var(--t1); }
.jogo > .ma-iniciar { order: 5; min-height: 48px; }
/* a linha do time */
.jogo .faixa.tt-faixa { order: 6; flex-direction: row; align-items: center; gap: var(--e2); min-height: 44px; background: none; border: 0; border-top: 1px solid var(--ln2); border-radius: 0;
  padding: var(--e2) var(--e1) 0; }
.jogo .faixa.tt-faixa span { color: var(--t2); letter-spacing: 0; text-transform: none; font-size: var(--f-meta); font-weight: 600; }
.jogo .faixa.tt-faixa b { font-size: 14px; }
.jogo .faixa.tt-faixa::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--t2); border-top: 2px solid var(--t2); transform: rotate(45deg); flex: none; }
/* a busca com o botão de filtros; uma fileira só de tipos */
.busca-linha { display: flex; gap: var(--e2); align-items: center; }
.busca-linha .busca { flex: 1; min-width: 0; }
.botao-filtros { position: relative; flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bl); border: 1px solid var(--ln); color: var(--t2);
  transition: transform var(--t-toque) var(--mola), border-color var(--t-rapido), color var(--t-rapido); }
.botao-filtros:active { transform: scale(.92); }
.botao-filtros.ligado { border-color: var(--ac); color: var(--ac); }
.botao-filtros.ligado::after { content: ""; position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--acb); border: 2px solid var(--bl); }
.jogo > .faixa.ma-faixa { padding: 10px 8px; }
.jogo > .faixa.ma-faixa b em { display: block; font-style: normal; white-space: nowrap; font-size: clamp(11px, 3.3vw, 12.5px); }
.jogo > .faixa.ma-faixa b em.fraco { font-weight: 600; }

/* ---------- frente: design (etapa B) — a mão pela mesa em dois passos ---------- */
/* passo-mesa: só a mesa e os botões; passo-detalhes: resultado, fotos, comentário, etiquetas, torneio e quem vê.
   Os campos estão sempre no formulário; aqui só se mostra ou esconde (js/telas/nota.js). */
form.passo-mesa .so-detalhes { display: none !important; }
form.passo-detalhes .mesa-editor, form.passo-detalhes .modo-mao { display: none; }
form:not(.passo-detalhes) .voltar-mesa { display: none; }
form.passo-detalhes .so-detalhes { animation: surge var(--t-medio) var(--mola) both; }
form.passo-mesa .bloco-mao { gap: var(--e3); }
.rodape.com-passo { display: flex; gap: var(--e2); justify-content: center; }
.rodape.com-passo .botao { margin: 0; }
.rodape.com-passo .botao-passo { flex: 0 0 auto; width: auto; min-height: 56px; padding: 0 var(--e5); border-radius: 18px; font-size: 16px;
  background: var(--bl); border: 1px solid var(--ln); color: var(--ac); }
.rodape.com-passo #gravar { flex: 1 1 auto; min-width: 0; max-width: 608px; white-space: nowrap; }
@media (max-width: 380px) { .rodape.com-passo .botao-passo { padding: 0 var(--e3); font-size: 15px; } .rodape.com-passo #gravar { font-size: 15px; padding: 0 var(--e2); } }
.voltar-mesa { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: var(--r2);
  background: var(--bl2); border: 1px solid var(--ln2); color: var(--t2); font-size: 13.5px; font-weight: 600; text-align: left; transition: transform var(--t-toque) var(--mola), background-color var(--t-rapido); }
.voltar-mesa b { flex: none; color: var(--ac); font-weight: 700; }
.voltar-mesa:active { transform: scale(.97); background: var(--hv); }

/* ---------- frente: design (etapa B) — barra de ação das telas de trabalho ---------- */
/* Na sessão aberta, na mesa atual e no relógio, no lugar das abas: "Atualizar fichas · + Mão · + Nota". */
.acao-barra { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 6; max-width: 616px; margin: 0 auto; display: flex; gap: var(--e2); padding: var(--e2);
  border-radius: var(--r4); background: var(--vidro); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid var(--ln); box-shadow: var(--el2); view-transition-name: abas; }
.acao-barra .botao-sessao { flex: 1 1 0; min-width: 0; min-height: 56px; padding: 0 var(--e2); border-radius: 18px; font-size: 15px; white-space: nowrap; box-shadow: none;
  background: var(--selbg); border-color: transparent; color: var(--ac); }
.acao-barra .botao-sessao.destaque { flex: 1.7 1 0; background: linear-gradient(150deg, #4FD6F8, #09BEEB 55%, #089FC6); color: var(--acf); font-size: 16px;
  box-shadow: 0 8px 20px var(--brilho), inset 0 1px 0 rgba(255, 255, 255, .4); }
.acao-barra .botao-sessao:active { transform: scale(.95); }
@media (max-width: 370px) { .acao-barra .botao-sessao, .acao-barra .botao-sessao.destaque { font-size: 14px; } }
.acao-barra .botao-sessao { white-space: normal; line-height: 1.15; text-align: center; }
.acao-barra .barra-fichas:not(.destaque) { flex: 1.3 1 0; }
.acao-barra .barra-fichas:not(.destaque) ~ .destaque { flex: 1.3 1 0; }

/* ---------- frente: design (etapa B) — movimento ---------- */
/* a mesa: as cartas novas do board viram (uma depois da outra no flop); as fichas vão ao pote (js/telas/mesa.js) */
@keyframes vira { from { transform: scaleX(.04); opacity: .5; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes pote-sobe { 40% { transform: scale(1.18); } }
.mesa-svg .mc.novo { transform-box: fill-box; transform-origin: center; animation: vira var(--t-rapido) ease-out both; }
.mesa-svg .mesa-board .mc.novo:nth-child(2) { animation-delay: 60ms; }
.mesa-svg .mesa-board .mc.novo:nth-child(3) { animation-delay: 120ms; }
.ficha-voando { pointer-events: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1.4; stroke-dasharray: 2.2 1.6; }
.ficha-voando.ficha-0 { fill: #E2E440; } .ficha-voando.ficha-1 { fill: #D82732; } .ficha-voando.ficha-2 { fill: #0E723A; }
.mesa-pote.pote-sobe { transform-box: fill-box; transform-origin: center; animation: pote-sobe 360ms var(--mola) 180ms both; }
/* a vez anda devagar em vez de piscar forte */
.mesa-assento.vez .mesa-disco { animation-duration: 1.6s; }
/* gravado → na fila → enviada (js/pecas.js) e números que contam (js/base.js) */
@keyframes recem { from { box-shadow: 0 0 0 3px var(--acb), 0 6px 18px rgba(0, 0, 0, .12); } to { box-shadow: 0 0 0 0 transparent, 0 6px 18px rgba(0, 0, 0, .12); } }
@keyframes enviada { 0% { opacity: 0; transform: scale(.8); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; } }
.nota.recem { animation: recem 1.4s ease-out both; }
.pendente:not(.recusada) { animation: estala var(--t-medio) var(--salto) both; }
.selo-enviada { color: var(--up); background: var(--upbg); border-radius: 99px; padding: 2px 9px; font-size: 11px; font-weight: 700; animation: enviada 2.4s ease-out both; }
.selo-enviada::before { content: "✓ "; }
[data-conta] { transition: color var(--t-rapido); }
[data-conta].subiu { color: var(--up); } [data-conta].desceu { color: var(--dn); }
@media (prefers-reduced-motion: reduce) { .selo-enviada, .ficha-voando { display: none; } }

/* ---------- frente: ferramentas do administrador ---------- */
/* Conta → Administração (painel, calendário, notas apagadas, junções), o histórico do dinheiro (folha) e corrigir o
   torneio. Só tokens da régua (frente design) e as cores do topo; o azul só no botão principal de cada tela. */
.ad-ferramenta .linha-corpo > b { font-size: var(--f-forte); }
.ad-numeros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--e2); }
.ad-numero { display: flex; flex-direction: column; gap: 2px; padding: var(--e3) var(--e4); border-radius: var(--r2); background: var(--bl2);
  border: 1px solid var(--ln2); min-width: 0; animation: surge var(--t-medio) var(--mola) both; }
.ad-numero b { font-size: var(--f-numero); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.ad-numero span { font-size: var(--f-meta); color: var(--t2); overflow-wrap: anywhere; }
.ad-numero.alerta { background: var(--wnbg); border-color: transparent; }
.ad-numero.alerta b { color: var(--wn); }
.ad-contas { display: flex; flex-direction: column; }
.ad-conta { display: flex; align-items: center; gap: var(--e3); padding: var(--e3) 0; border-top: 1px solid var(--ln2); min-height: 56px; }
.ad-conta:first-child { border-top: 0; }
.ad-conta.apagada { opacity: .55; }
.ad-conta .linha-corpo { gap: 0; }
.ad-versao { flex: none; max-width: 46%; text-align: center; font-size: var(--f-selo); font-weight: 700; letter-spacing: .03em; padding: 4px 10px;
  border-radius: 99px; background: var(--hv); color: var(--t2); overflow-wrap: anywhere; }
.ad-versao.ok { background: var(--upbg); color: var(--up); }
.ad-versao.velha { background: var(--wnbg); color: var(--wn); }
.ad-falha { display: flex; flex-direction: column; gap: var(--e3); }
/* calendário */
.ad-arquivo { position: relative; overflow: hidden; }
.ad-arquivo input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ad-enviar textarea { font-family: ui-monospace, monospace; font-size: var(--f-meta); max-height: 40dvh; }
.ad-previa { animation: surge var(--t-medio) var(--mola) both; }
.ad-eventos { display: flex; flex-direction: column; gap: var(--e1); }
.ad-eventos ul { margin: 0; padding-left: var(--e5); display: flex; flex-direction: column; gap: 2px; font-size: var(--f-meta); overflow-wrap: anywhere; }
.ad-neutro { padding: var(--e3) var(--e4); border-radius: var(--r2); background: var(--hv); color: var(--t1); font-weight: 600; }
.botao.grande:disabled { box-shadow: none; }
/* notas apagadas e junções */
.ad-apagada { border-style: dashed; }
.ad-apagada .ad-recuperar, .ad-pessoal .ad-recuperar { min-height: 44px; }
.ad-pessoal { flex-wrap: wrap; }
.ad-pessoal > .icone { flex: none; color: var(--t2); }
.ad-juncao { gap: var(--e2); }
.ad-juncao > b { font-size: var(--f-forte); overflow-wrap: anywhere; }
.ad-motivo { padding: var(--e2) var(--e3); border-radius: var(--r1); background: var(--bl2); }
.ad-feito p { margin-top: var(--e1); font-weight: 500; color: var(--t1); }
.ad-folha { display: flex; flex-direction: column; gap: var(--e3); }
/* histórico do dinheiro */
.ad-editado { color: var(--wn); }
.ad-hist-elo { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); min-height: 44px; width: 100%; padding: var(--e2) var(--e3);
  border: 1px solid var(--ln2); border-radius: var(--r2); background: var(--bl2); text-align: left; font-size: var(--f-meta); font-weight: 600;
  transition: transform var(--t-toque) var(--mola), background-color var(--t-rapido); }
.ad-hist-elo:active { transform: scale(.97); background: var(--hv); }
.ad-elo { color: var(--ac); flex: none; }
.ad-hist { display: flex; flex-direction: column; gap: var(--e3); }
.ad-hist-item { display: flex; flex-direction: column; gap: 2px; padding: var(--e3) var(--e4); border-radius: var(--r2); background: var(--bl2); border: 1px solid var(--ln2);
  animation: surge var(--t-medio) var(--mola) both; }
.ad-hist-item > b { overflow-wrap: anywhere; }
.ad-hist-item.apagada { border-style: dashed; }
.ad-hist-campo { font-size: var(--f-meta); overflow-wrap: anywhere; }
.ad-hist-campo s { color: var(--t2); }
.ad-hist-campo b { color: var(--t1); }
.ad-torneio .botao { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .ad-numero, .ad-previa, .ad-hist-item { animation: none !important; } }

/* ---------- frente: sem nome (1.3) — cadastro rápido, "É ele?", listas oficiais e ditado ---------- */
/* ditado: o microfone dentro do campo, no canto; 44 px de toque; azul só enquanto ouve (é a ação em curso) */
@keyframes ouvindo { 0% { box-shadow: 0 0 0 0 var(--brilho); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.ditado-caixa { position: relative; display: block; min-width: 0; }
.ditado-caixa > input, .ditado-caixa > textarea { width: 100%; padding-right: 52px; }
.ditado { position: absolute; right: 4px; top: 3px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: transparent; color: var(--t2); transition: background-color var(--t-rapido), color var(--t-rapido), transform var(--t-toque) var(--mola); }
.ditado-caixa.area .ditado { top: auto; bottom: 4px; }
.ditado .icone { width: 22px; height: 22px; }
.ditado:active { transform: scale(.88); background: var(--hv); }
.ditado.ouvindo { background: var(--acb); color: var(--acf); animation: ouvindo 1.4s ease-out infinite; }
/* cadastro rápido no assento vazio */
.sn-rapido { display: flex; flex-direction: column; gap: var(--e3); }
.sn-rapido-campo { font-size: 17px; }
.sn-sabe { margin-top: var(--e3); font-size: var(--f-meta); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t2); }
.sn-sugestoes { display: flex; flex-direction: column; gap: var(--e2); }
.sn-sugestoes:empty { display: none; }
/* "É ele?": a foto grande (é por ela que se reconhece), a descrição com as palavras em comum marcadas */
.sn-ehele { display: flex; align-items: center; gap: var(--e3); padding: var(--e3); border-radius: var(--r3); background: var(--bl); border: 1px solid var(--ln);
  box-shadow: var(--el1); animation: abre var(--t-medio) var(--mola) both; }
.sn-ehele .linha-corpo { gap: 2px; }
.sn-ehele .linha-corpo > b { font-size: var(--f-corpo); }
.retrato.mini.sn-foto { width: 64px; height: 64px; }
.retrato.mini.sn-foto .retrato-iniciais { font-size: 20px; }
.sn-desc { font-size: var(--f-meta); color: var(--t2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sn-desc mark, .sn-ehele mark { background: var(--wnbg); color: var(--t1); border-radius: 4px; padding: 0 2px; }
.sn-ehele .botao { flex: none; min-height: 44px; padding: 8px 14px; }
/* "Sem nome": selo, faixa em Jogadores, a lista e a tela de pôr o nome */
.sn-selo { background: var(--wnbg); color: var(--wn); vertical-align: 2px; }
.faixa.sn-faixa { background: var(--wnbg); border-color: transparent; margin-bottom: var(--e2); }
.faixa.sn-faixa span { color: var(--wn); }
.sn-linha { gap: var(--e2); padding-right: var(--e3); }
.sn-linha-ficha { flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--e3); }
.sn-pornome { flex: none; min-height: 44px; padding: 8px 14px; }
.sn-quem { display: flex; align-items: center; gap: var(--e3); padding: var(--e3) var(--e4); border-radius: var(--r3); background: var(--wnbg); }
.sn-iguais { display: flex; flex-direction: column; gap: var(--e2); }
.sn-iguais:empty { display: none; }
/* listas oficiais na mesa: a faixa e a tela de preencher */
.faixa.sn-oficial { margin-top: var(--e3); background: var(--selbg); border-color: transparent; }
.faixa.sn-oficial span { color: var(--ac); }
.faixa.sn-oficial b { color: var(--t1); }
.sn-dica-lista { font-size: var(--f-meta); color: var(--ac); font-weight: 600; }
.sn-dica-lista:empty { display: none; }
.acoes-linha { display: flex; justify-content: flex-end; }
.acoes-linha .elo, .sn-adm > .elo { min-height: 44px; display: inline-flex; align-items: center; }
.sn-oficiais { gap: var(--e2); }
.sn-oficial-linha { display: flex; align-items: flex-start; gap: var(--e3); padding: var(--e3); border-radius: var(--r3); background: var(--bl); border: 1px solid var(--ln);
  transition: border-color var(--t-rapido), box-shadow var(--t-rapido), opacity var(--t-rapido); }
.sn-oficial-linha.marcado { border-color: var(--acb); box-shadow: 0 0 0 3px var(--selbg); }
.sn-oficial-linha.fora { opacity: .62; }
.sn-oficial-linha .linha-corpo { gap: 4px; }
.sn-oficial-linha .linha-corpo > b { font-size: var(--f-corpo); }
.sn-marca { flex: none; width: 44px; height: 44px; margin: -4px -4px 0; border: 0; background: transparent; display: grid; place-items: center; position: relative; }
.sn-marca::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--bd); transition: background-color var(--t-rapido), border-color var(--t-rapido), transform var(--t-toque) var(--salto); }
.sn-marca[aria-pressed="true"]::before { background: var(--acb); border-color: var(--acb); transform: scale(1.06); }
.sn-marca[aria-pressed="true"]::after { content: "✓"; position: absolute; color: var(--acf); font-weight: 800; font-size: 14px; }
.sn-marca:disabled::before { opacity: .4; }
.sn-marca.vazia::before { border-style: dashed; }
.sn-assento { flex: none; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 99px; background: var(--hv); color: var(--t1); display: grid; place-items: center;
  font-size: var(--f-meta); font-weight: 800; }
.sn-pergunta { color: var(--wn); font-weight: 700; }
.sn-opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.sn-opcoes .chip { min-height: 44px; padding: 6px 12px; font-size: var(--f-meta); white-space: normal; text-align: left; }
/* administrador: ler, conferir, prévia, aplicar */
.sn-pdf { position: relative; cursor: pointer; }
.sn-pdf.ocupado { opacity: .6; pointer-events: none; }
.sn-lida { display: flex; flex-direction: column; gap: var(--e3); padding: var(--e4); border-radius: var(--r3); background: var(--bl); border: 1px solid var(--ln); }
.sn-aviso-lista { color: var(--wn); font-size: var(--f-meta); font-weight: 600; }
.sn-amostra { display: flex; flex-direction: column; gap: 4px; }
.sn-amostra > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--e2); font-size: var(--f-meta); }
.sn-previa { padding: var(--e3) var(--e4); border-radius: var(--r2); background: var(--selbg); display: flex; flex-direction: column; gap: 4px; animation: abre var(--t-medio) var(--mola) both; }
.sn-tirar { flex: none; min-height: 44px; padding: 8px 14px; }
@media (prefers-reduced-motion: reduce) { .ditado.ouvindo { animation: none; } }

/* ---------- frente: grade-dia — Minha grade por dia ---------- */
/* A fileira de dias rola de lado e encosta nas bordas da tela (como os chips do topo); a hora vem em destaque; o torneio
   que já começou há mais de 4 h (ou de um dia que passou) esmaece, mas continua na lista. Só tokens da régua. */
.gr-por-dia { display: flex; flex-direction: column; gap: var(--e3); }
.chips.gr-dias { margin: 0 calc(-1 * var(--e4)); padding: var(--e1) var(--e4) var(--e2); scroll-padding: 0 var(--e4); scroll-snap-type: x proximity; }
.chips.gr-dias .chip { scroll-snap-align: start; font-weight: 600; transition: background-color var(--t-rapido), color var(--t-rapido), box-shadow var(--t-rapido), transform var(--t-toque) var(--mola); }
.chips.gr-dias .chip:active { transform: scale(.94); }
.chips.gr-dias .chip.ligado { font-weight: 700; box-shadow: none; animation: estala var(--t-medio) var(--salto) both; }
.gr-por-dia .cal-dia.gr-passado { opacity: 1; }
.gr-dia .cal-hora { min-width: 64px; padding: var(--e2) 0; font-size: var(--f-forte); }
.gr-linha.gr-passou { opacity: .5; }
.gr-comecou { font-size: var(--f-selo); font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--t2); }
.gr-selos .cal-selo { padding: var(--e1) var(--e3); }
.gr-item { display: flex; flex-direction: column; gap: var(--e2); }
.gr-vou-jogar { align-self: flex-end; min-height: 44px; padding: 0 var(--e5); font-size: var(--f-meta); border-radius: 99px; }
.gr-por-dia > .vazio { padding: var(--e8) var(--e5); display: flex; flex-direction: column; align-items: center; gap: var(--e3); animation: surge var(--t-medio) var(--mola) both; }
@media (prefers-reduced-motion: reduce) { .chips.gr-dias .chip.ligado, .gr-por-dia > .vazio { animation: none; } }

/* ---------- correção 16/11: a cor sem legenda ---------- */
/* a linha pintada com uma cor que não está na legenda colada nem na do time: o aviso fica ao lado dela, na cor de alerta */
.gr-aviso.gr-cor-sem-legenda { border-left: 4px solid var(--wn); font-weight: 700; }

/* ---------- correção 16/11: a planilha com a numeração antiga ---------- */
/* "Número na planilha #47 → no calendário #48" é um aviso calmo (não é erro: o app achou o evento pelo nome e pelo dia);
   a lista dos eventos do dia quando o app não achou (o jogador escolhe). */
.gr-renumerado { font-size: var(--f-meta); font-weight: 600; color: var(--t2); padding: var(--e2) var(--e3); border-radius: var(--r2); background: var(--bl2); }
.gr-renumerado .elo { min-height: 44px; }
.gr-candidatos { display: flex; flex-direction: column; gap: var(--e2); animation: abre var(--t-medio) var(--mola) both; }
.gr-candidato { display: block; width: 100%; min-height: 48px; padding: var(--e2) var(--e3); border-radius: var(--r2); border: 1.5px solid var(--ln); background: var(--bl);
  color: var(--t1); font-size: var(--f-meta); text-align: left; transition: transform var(--t-toque) var(--mola), border-color var(--t-rapido); }
.gr-candidato:active { transform: scale(.97); border-color: var(--acb); }
@media (prefers-reduced-motion: reduce) { .gr-candidatos { animation: none; } }

/* ---------- frente: e-mail e "esqueci minha senha" ---------- */
/* Telas sem login (esqueci, mandamos o link, redefinir, confirmar e-mail) no mesmo palco da entrada (.entrar); o emblema
   no alto "estala" ao aparecer e o envelope sobe e volta quando o link sai. Azul só no botão e no emblema da ação. */
.es-tela { justify-content: center; }
.es-tela > div > .titulo + p, .es-tela > div > .titulo + .fraco { margin-top: var(--e2); }
.es-emblema { align-self: flex-start; width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; color: var(--ac);
  background: var(--selbg); box-shadow: inset 0 0 0 1px var(--ln); animation: estala var(--t-medio) var(--salto) both; }
.es-emblema .icone { width: 30px; height: 30px; }
.es-emblema.ok { color: var(--up); background: var(--upbg); }
.es-emblema.aviso { color: var(--wn); background: var(--wnbg); }
.es-emblema.aviso::before { content: none; }   /* rodada 8: o "✓" do .aviso (regra global) não entra no emblema de alerta */
.es-sem-conexao { display: grid; gap: 8px; justify-items: start; }
.es-emblema.voa .icone { animation: es-voa 900ms var(--mola) 260ms both; }
@keyframes es-voa { 0% { transform: none; } 45% { transform: translate(14px, -16px) rotate(-8deg) scale(.82); opacity: 0; }
  46% { transform: translate(-14px, 12px) scale(.82); opacity: 0; } 100% { transform: none; opacity: 1; } }
.es-dicas { margin: 0; padding: var(--e4) var(--e4) var(--e4) 34px; display: flex; flex-direction: column; gap: var(--e2); border-radius: var(--r3);
  background: var(--bl); border: 1px solid var(--ln); color: var(--t2); font-size: var(--f-meta); }
.es-dicas li::marker { color: var(--ac); }
.es-desligado { padding: var(--e3) var(--e4); border-radius: var(--r2); background: var(--wnbg); color: var(--t1); font-weight: 600; line-height: 1.45; }
.es-desligado.mini { font-size: var(--f-meta); font-weight: 500; }
.es-voltar, .es-esqueci-elo { align-self: center; min-height: 44px; display: inline-flex; align-items: center; }
.es-esqueci-elo { margin-top: -6px; }
a.botao { text-decoration: none; }
/* Conta → Meu e-mail */
.es-atual { gap: var(--e2); }
.es-endereco { font-size: var(--f-forte); font-weight: 700; overflow-wrap: anywhere; }
.es-pendente { padding: var(--e3) var(--e4); border-radius: var(--r2); background: var(--wnbg); color: var(--t1); font-weight: 600; overflow-wrap: anywhere; }
.es-tirar { align-self: flex-start; min-height: 44px; }
/* Time: o e-mail na linha da pessoa */
.es-na-linha { flex-basis: 100%; display: flex; flex-direction: column; gap: var(--e2); }
.es-email-pessoa { display: flex; align-items: center; gap: 2px; font-size: var(--f-meta); color: var(--t1); overflow-wrap: anywhere; }
.es-email-pessoa .icone { color: var(--t2); flex: none; }
.es-email-pessoa.vazio { color: var(--t2); font-style: italic; }
.es-botoes { display: flex; flex-wrap: wrap; gap: var(--e2); }
.es-botoes .chip { display: inline-flex; align-items: center; gap: 4px; padding: 0 12px; }
.es-link { color: var(--ac); border-color: var(--ac); }
.es-editar { display: flex; flex-direction: column; gap: var(--e3); padding: var(--e3); border-radius: var(--r3); background: var(--bl2); border: 1px solid var(--ln);
  animation: abre var(--t-medio) var(--mola) both; }

/* ---------- frente: modelo da grade ---------- */
.mdg-filtros .dupla > div { display: flex; flex-direction: column; gap: var(--e1); min-width: 0; }
.mdg-filtros input[type=text] { width: 100%; }
.mdg-etapa-nome { font-size: var(--f-forte); }
.mdg-esconder { flex-wrap: wrap; overflow: visible; }
.mdg-esconder .chip, .mdg-pausas .chip { transition: background-color var(--t-rapido) var(--mola), color var(--t-rapido), transform var(--t-toque) var(--salto); }
.mdg-esconder .chip:active, .mdg-pausas .chip:active { transform: scale(.95); }
.mdg-pausas .chip { font-size: var(--f-meta); line-height: 1.2; white-space: normal; }
.mdg-resumo { display: flex; flex-direction: column; gap: var(--e1); padding: var(--e3) var(--e4); border-radius: var(--r2); background: var(--bl2); border: 1px solid var(--ln); }
.mdg-resumo b { font-size: var(--f-forte); }
.mdg-aviso-confira { color: var(--wn); }
.mdg-acoes { display: flex; flex-direction: column; gap: var(--e2); }
.mdg-texto-caixa { display: flex; flex-direction: column; gap: var(--e2); animation: abre var(--t-medio) var(--mola) both; }
.mdg-texto { width: 100%; min-height: 160px; padding: var(--e3); border-radius: var(--r2); border: 1px solid var(--ac); background: var(--fld);
  font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; white-space: pre; overflow: auto; resize: vertical; }
.mdg-previa { display: flex; flex-direction: column; gap: var(--e2); }
.mdg-tabela-caixa { overflow-x: auto; border-radius: var(--r3); border: 1px solid var(--ln); background: var(--bl); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.mdg-tabela { border-collapse: collapse; font-size: var(--f-meta); min-width: max-content; }
.mdg-tabela th { background: var(--bl2); color: var(--t2); font-size: var(--f-selo); font-weight: 700; letter-spacing: .02em; text-align: left; padding: var(--e2) var(--e3); white-space: nowrap; }
.mdg-tabela td { padding: var(--e2) var(--e3); border-top: 1px solid var(--ln2); white-space: nowrap; }
.mdg-tabela td.num { text-align: right; }
.mdg-tabela td.mdg-vazia { background: var(--bl2); }
.mdg-tabela th:first-child, .mdg-tabela td:first-child { padding-left: var(--e4); }
.mdg-tabela th:last-child, .mdg-tabela td:last-child { padding-right: var(--e4); }
.mdg-tabela tbody tr { animation: aparece var(--t-medio) var(--mola) both; }
.mdg-tabela td .elo { min-height: 0; padding: 0; }
.mdg-confira { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--wnbg); color: var(--wn); font-size: var(--f-selo); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .mdg-tabela tbody tr, .mdg-texto-caixa { animation: none; } }
/* o nome do evento fica preso à esquerda ao rolar a prévia (cortado com "…"; o nome inteiro está no title e no texto copiado) */
.mdg-tabela td:nth-child(3), .mdg-tabela th:nth-child(3) { position: sticky; left: 0; z-index: 1; max-width: 136px; overflow: hidden; text-overflow: ellipsis;
  background: var(--bl); box-shadow: 1px 0 0 var(--ln); }
.mdg-tabela th:nth-child(3) { background: var(--bl2); }
.mdg-outras { display: flex; flex-direction: column; align-items: flex-start; }
.mdg-outras .elo { min-height: 44px; padding: 0; font-size: var(--f-meta); }

/* ---------- frente: mão por voz (frente 26) ---------- */
/* O gravador: um botão redondo grande (alvo de 128 px), o anel que respira com o nível do som (o raio é atributo do SVG,
   mexido pelo js: nada de style=), o tempo correndo embaixo. Azul = ação; vermelho só enquanto grava (o "REC"). */
.vz-tela { display: flex; flex-direction: column; gap: var(--e4); }
.vz-dica { font-size: var(--f-meta); line-height: 1.45; }
.vz-gravador { display: flex; flex-direction: column; align-items: center; gap: var(--e2); padding: var(--e2) 0 var(--e1); }
.vz-botao { width: 148px; height: 148px; padding: 0; border: 0; background: none; border-radius: 50%; -webkit-tap-highlight-color: transparent;
  transition: transform var(--t-toque) var(--salto); }
.vz-botao:active { transform: scale(.93); }
.vz-desenho { width: 100%; height: 100%; overflow: visible; }
.vz-miolo { fill: var(--acb); filter: drop-shadow(0 10px 22px var(--brilho)); transition: fill var(--t-rapido); }
.vz-anel { fill: none; stroke: var(--acb); stroke-width: 3; opacity: .45; transition: r 90ms linear; }
.vz-onda { fill: var(--selbg); stroke: none; transition: opacity 90ms linear; }
.vz-icone { fill: none; stroke: var(--acf); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.vz-gravador.gravando .vz-miolo { fill: var(--dn); filter: drop-shadow(0 10px 22px var(--dnbg)); }
.vz-gravador.gravando .vz-anel { stroke: var(--dn); opacity: .7; }
.vz-gravador.gravando .vz-onda { fill: var(--dnbg); }
.vz-gravador.gravando .vz-icone { fill: #fff; stroke: none; }
.vz-gravador.gravando .vz-tempo { color: var(--dn); }
.vz-tempo { font-size: var(--f-forte); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--t2); margin: 0; }
.vz-ouvir { display: flex; flex-direction: column; gap: var(--e3); padding: var(--e4); border-radius: var(--r3); background: var(--bl); border: 1px solid var(--ln);
  box-shadow: var(--el1); animation: surge var(--t-medio) var(--mola) both; }
.vz-ouvir audio { width: 100%; height: 44px; border-radius: 22px; }
.vz-ouvir .acoes > .botao { flex: 1 1 0; }
.vz-transcrevendo { display: flex; flex-direction: column; align-items: center; gap: var(--e2); padding: var(--e6) var(--e4); border-radius: var(--r3);
  background: var(--bl); border: 1px solid var(--ln); text-align: center; animation: surge var(--t-medio) var(--mola) both; }
.vz-transcrevendo small { color: var(--t2); }
@keyframes vz-gira { to { transform: rotate(360deg); } }
.vz-giro { width: 38px; height: 38px; border-radius: 50%; border: 4px solid var(--selbg); border-top-color: var(--acb); animation: vz-gira .9s linear infinite; }
.vz-texto-caixa { display: flex; flex-direction: column; gap: var(--e3); }
.vz-texto-caixa.pronto { padding: var(--e4); border-radius: var(--r3); background: var(--bl); border: 1px solid var(--ln); box-shadow: var(--el1); animation: surge var(--t-medio) var(--mola) both; }
.vz-texto { line-height: 1.5; }
.vz-texto-caixa .acoes > .botao { flex: 1 1 0; }
.vz-texto-caixa .acoes > .vz-montar { flex: 2 1 0; }
.vz-aviso { color: var(--t1); background: var(--wnbg); }
.vz-aviso::before { content: none; }
.vz-mic { color: var(--t1); background: var(--wnbg); font-weight: 400; line-height: 1.45; }
.vz-mic::before { content: none; }
.vz-feito { display: flex; align-items: center; justify-content: space-between; gap: var(--e3); padding: var(--e3) var(--e3) var(--e3) var(--e4); border-radius: var(--r3);
  background: var(--upbg); color: var(--up); animation: estala var(--t-medio) var(--salto) both; }
.vz-feito b::before { content: "✓ "; }
.vz-feito .vz-outra { gap: var(--e2); min-height: 48px; }
.vz-feito .vz-outra .icone { width: 20px; height: 20px; }
.vz-lista h2 { font-size: var(--f-meta); color: var(--t2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin: var(--e2) 0; }
.vz-item { display: flex; align-items: center; gap: var(--e2); padding: var(--e1) var(--e1) var(--e1) var(--e2); margin-bottom: var(--e2); border-radius: var(--r2);
  background: var(--bl); border: 1px solid var(--ln); }
.vz-item.transcrito { border-color: var(--acb); }
.vz-item.erro, .vz-item.sem-servico { border-color: var(--dn); }
.vz-abrir { flex: 1; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; text-align: left;
  background: none; border: 0; padding: var(--e1) var(--e2); border-radius: var(--r1); }
.vz-abrir small { color: var(--t2); }
.vz-item.transcrito .vz-abrir small { color: var(--ac); font-weight: 600; }
.vz-item.fila .vz-abrir small::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--wn); margin-right: 6px; animation: pulsa 1.6s infinite; color: var(--wn); }
/* o atalho na nota nova e o microfone na barra da sessão */
.vz-atalho { display: flex; align-items: center; justify-content: center; gap: var(--e2); min-height: 48px; padding: 0 var(--e4); border-radius: 24px;
  background: var(--selbg); color: var(--ac); font-weight: 700; transition: transform var(--t-toque) var(--salto); }
.vz-atalho:active { transform: scale(.96); }
.vz-atalho .icone { width: 20px; height: 20px; }
.acao-barra .botao-sessao.barra-voz { flex: 0 0 56px; padding: 0; display: flex; align-items: center; justify-content: center; }
.acao-barra .barra-voz .icone { width: 22px; height: 22px; }
/* na nota de mão: o aviso "confira" e os assentos a conferir */
.vz-confira { color: var(--t1); background: var(--wnbg); font-weight: 400; user-select: auto; -webkit-user-select: auto; display: flex; flex-direction: column; gap: var(--e1); }
.vz-confira::before { content: none; }
.vz-confira ul { margin: 0; padding-left: 18px; }
.vz-confira li { font-size: var(--f-meta); }
.vz-confira small { color: var(--t2); }
.vz-confira-topo { display: flex; align-items: center; justify-content: space-between; gap: var(--e2); }
.vz-confira .vz-conferi { flex: none; min-height: 44px; padding: 0 var(--e4); }
.vz-confira { padding: var(--e2) var(--e3); }
.vz-confira small { font-size: 12px; }
@keyframes vz-confira { 50% { stroke-opacity: .55; } }
.mesa-assento.confira .mesa-disco { fill: var(--wnbg); stroke: var(--wn); stroke-width: 3.5; stroke-dasharray: 6 3; animation: vz-confira 1.6s ease-in-out infinite; }
.mesa-assento.confira .mesa-pos { fill: var(--wn); }
/* frente mao-voz2: cada ponto "confira" leva ao lugar com um toque; as notas (naipes escolhidos, ante do big) ficam
   discretas; sem dúvida nenhuma, o aviso não alarma (fundo neutro). Sem transição nova: o movimento é da frente fluidez. */
.vz-confira.calmo { background: var(--bl2); }
.vz-confira ul.vz-pontos { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: var(--e1); }
.vz-confira .vz-ir { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; min-height: 44px;
  padding: var(--e1) var(--e2); border: 1px solid var(--wn); border-radius: var(--r1); background: none; color: var(--t1);
  font: inherit; font-size: var(--f-meta); text-align: left; cursor: pointer; }
.vz-confira .vz-ir small { color: var(--ac); font-weight: 700; font-size: var(--f-selo); }
.vz-confira .vz-ir.visto { border-color: var(--ln); }
.vz-confira .vz-valor { display: flex; align-items: flex-end; gap: var(--e2); flex-wrap: wrap; margin-top: var(--e1); }
.vz-confira .vz-valor .campo { flex: 1 1 120px; margin: 0; }
.vz-confira .vz-notas { display: flex; flex-wrap: wrap; gap: var(--e1); margin: 0; }
.vz-confira .vz-nota { font: inherit; font-size: var(--f-selo); color: var(--t2); background: none; border: 1px solid var(--ln);
  border-radius: 99px; padding: 2px 10px; min-height: 32px; text-align: left; }
.vz-confira button.vz-nota { cursor: pointer; }
@media (prefers-reduced-motion: reduce) {
  .vz-giro, .mesa-assento.confira .mesa-disco, .vz-item.fila .vz-abrir small::before { animation: none; }
  .vz-anel, .vz-onda { transition: none; }
}
/* na mão pela mesa (passo 1) o atalho sai: a mesa e os botões têm de caber na tela sem rolar */
.formulario.passo-mesa > .vz-atalho { display: none; }
/* revisão 9: a transcrição que chegou pela fila com algo já digitado (à parte, nada é apagado) */
.vz-pronta { display: flex; flex-direction: column; gap: var(--e2); padding: var(--e3); border-radius: var(--r2); background: var(--selbg);
  border: 1px solid var(--ln); animation: surge var(--t-medio) var(--mola) both; }
.vz-pronta b { color: var(--ac); font-size: var(--f-meta); }
.vz-pronta-texto { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--t1); }
.vz-pronta .acoes { display: flex; gap: var(--e2); }
.vz-pronta .acoes > .botao { flex: 1 1 0; min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .vz-pronta { animation: none; } }

/* ---------- frente: cotação ---------- */
/* Selos: "estimada" (referência do dia ou grade) no amarelo de aviso; "fechamento" (a do acerto) no verde de confirmado;
   "referência" neutro. Nada de azul: o azul é só de ação e seleção. */
.selo-cot { display: inline-block; vertical-align: middle; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
  padding: 1px 9px; border-radius: 99px; white-space: nowrap; transition: transform .2s var(--salto); }
.selo-cot.estimada { background: var(--wnbg); color: var(--wn); }
.selo-cot.fechamento { background: var(--upbg); color: var(--up); }
.selo-cot.referencia { background: var(--ln2); color: var(--t2); }
.linha .selo-cot { align-self: flex-start; margin-top: 4px; }
.cotacao-usada .selo-cot { margin-left: 4px; }
.com-estimado .estimado { font-size: .62em; font-weight: 700; color: var(--wn); white-space: nowrap; }
.ct-nota-estimada { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 10px; font-size: 13px; color: var(--t2); }
.ct-nota-estimada .elo { font-weight: 700; }
.ct-dica { color: var(--t2); }
.ct-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct-referencia, .ct-fechamento, .ct-historico, .ct-busca { display: grid; gap: 8px; border-radius: var(--r3); }
.ct-grande { display: grid; gap: 2px; padding: 6px 0 2px; }
.ct-grande b { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.ct-grande .rotulo { font-size: 12px; font-weight: 700; color: var(--t2); text-transform: uppercase; letter-spacing: .06em; }
.ct-outras { display: grid; }
.ct-valor { font-size: 20px; font-weight: 800; }
.ct-xe { justify-self: start; font-weight: 700; }
.ct-xe-linha { margin: -2px 0 4px; }
.ct-fechamentos { display: grid; gap: 10px; }
.ct-fechamento { animation: ct-entra .32s var(--mola) both; }
.ct-fechamento .acoes { margin-top: 4px; }
.ct-form { border-radius: var(--r3); animation: ct-entra .28s var(--mola) both; }
.ct-mudanca { padding: 8px 0; border-top: 1px solid var(--ln2); }
.ct-mudanca:first-of-type { border-top: 0; }
.ct-offline { margin-bottom: 8px; }
.ct-anotar { margin-top: 12px; }
.mdg-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
.mg-proprio { opacity: .92; }
.mg-esperando-outro { margin-top: 6px; }
@keyframes ct-entra { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ct-fechamento, .ct-form { animation: none; } .selo-cot { transition: none; } }

/* ---------- frente: dia 2 — a hora do Dia 2 (faixa no mural e na sessão; folhas da pergunta e do aviso) ---------- */
/* Uma faixa com ação (azul: é para tocar), não um link: o toque fica nos botões de dentro. */
.dia2-faixa { gap: var(--e2); background: linear-gradient(120deg, var(--selbg), transparent 75%), var(--bl); border-color: var(--ac);
  animation: abre var(--t-medio) var(--mola) both; }
.dia2-faixa:active { transform: none; }
.dia2-faixa > span { color: var(--ac); }
.dia2-faixa > b { overflow-wrap: anywhere; }
.dia2-faixa > small { color: var(--t2); font-size: var(--f-meta); font-weight: 600; }
.dia2-faixa .acoes { flex-direction: column; align-items: stretch; gap: var(--e1); margin-top: var(--e1); }
.dia2-faixa .acoes .botao { min-height: 50px; }
.dia2-faixa .elo { min-height: 44px; align-self: center; }
.dia2-folha > p { font-size: var(--f-corpo); line-height: 1.5; }
.dia2-folha > p.fraco { font-size: var(--f-meta); }
@media (prefers-reduced-motion: reduce) { .dia2-faixa { animation: none; } }

/* ---------- frente: fluidez (1.5.0) ---------- */
/* Régua de movimento (docs/frentes/28-fluidez.md). Só transform e opacity; tudo interrompível (um toque durante a troca
   de tela termina a animação e vale na tela nova, js/navegacao.js); "reduzir movimento" desliga tudo (regra global do
   topo e o fim deste bloco). Tempos: --t-toque 120 · --t-rapido 180 · --t-medio 240 · --t-tela 260 · --t-folha 300
   (a folha que sobe de baixo, a única que anda a altura da tela) · --t-sai 160 (o que sai é sempre mais curto). */
:root { --t-folha: 300ms; --t-sai: 160ms; --cascata: 24ms; }

/* trocar de aba: desliza para o lado da aba tocada; a tela de antes sai rápido (sem as duas misturadas) */
@keyframes aba-entra-dir { from { transform: translateX(9%); opacity: 0; } }
@keyframes aba-entra-esq { from { transform: translateX(-9%); opacity: 0; } }
@keyframes aba-sai-esq { to { transform: translateX(-5%); opacity: 0; } }
@keyframes aba-sai-dir { to { transform: translateX(5%); opacity: 0; } }
html[data-dir="aba-dir"]::view-transition-old(root) { animation: aba-sai-esq 90ms var(--sai) both; }
html[data-dir="aba-dir"]::view-transition-new(root) { animation: aba-entra-dir var(--t-tela) var(--mola) 60ms both; }
html[data-dir="aba-esq"]::view-transition-old(root) { animation: aba-sai-dir 90ms var(--sai) both; }
html[data-dir="aba-esq"]::view-transition-new(root) { animation: aba-entra-esq var(--t-tela) var(--mola) 60ms both; }
/* a luz da aba ativa é uma peça (.aba-luz) e, na troca de aba, anda da aba de antes até a nova */
.aba::before { content: none; }
.aba-luz { position: absolute; top: 9px; left: 50%; width: 46px; height: 30px; margin-left: -23px; border-radius: 99px; background: var(--selbg); }
html[data-dir^="aba-"] .aba-luz { view-transition-name: aba-luz; }
::view-transition-group(aba-luz) { animation-duration: var(--t-tela); animation-timing-function: var(--mola); }
::view-transition-old(aba-luz) { animation: none; opacity: 0; }
::view-transition-new(aba-luz) { animation: none; }
.aba > :not(.aba-luz) { position: relative; }

/* ir e voltar (nível 1): a tela de antes some mais cedo, para não ficarem duas por cima uma da outra */
@keyframes sai-esq-cedo { 0% { transform: none; opacity: 1; } 55% { opacity: 0; } 100% { transform: translateX(-14%); opacity: 0; } }
@keyframes sai-dir-cedo { 0% { transform: none; opacity: 1; } 55% { opacity: 0; } 100% { transform: translateX(28%); opacity: 0; } }
html[data-dir="avanca"]::view-transition-old(root) { animation-name: sai-esq-cedo; }
html[data-dir="volta"]::view-transition-old(root) { animation-name: sai-dir-cedo; }

/* o cartão que vira a tela: o cartão tocado (um jogador, uma nota, as fichas, a mesa) cresce até o topo da tela que abre;
   no voltar, encolhe de volta para o cartão. O resto da tela só esmaece (o olho segue o cartão). */
.vt-heroi { view-transition-name: heroi; }
::view-transition-group(heroi) { animation-duration: var(--t-tela); animation-timing-function: var(--mola); border-radius: var(--r3); overflow: clip; }
/* as duas imagens no tamanho delas (sem esticar): o cartão pequeno não vira um borrão grande; a tela nova se revela
   enquanto o recorte cresce */
::view-transition-old(heroi), ::view-transition-new(heroi) { inline-size: auto; block-size: auto; }
::view-transition-old(heroi) { animation: some 120ms ease-out both; }
::view-transition-new(heroi) { animation: aparece 180ms ease-out 20ms both; }
::view-transition-old(heroi):only-child, ::view-transition-new(heroi):only-child { animation-duration: 120ms; animation-delay: 0ms; }
@keyframes atras-sai { to { opacity: 0; transform: scale(.98); } }
@keyframes atras-entra { from { opacity: 0; transform: scale(1.02); } }
html[data-dir="expande"]::view-transition-old(root), html[data-dir="recolhe"]::view-transition-old(root) { animation: atras-sai 100ms var(--sai) both; }
/* a barra de baixo que troca de forma (abas ↔ barra de ação ↔ Gravar): a de antes sai logo, sem as duas misturadas */
html[data-barra="muda"]::view-transition-old(abas) { animation: some 90ms ease-out both; }
html[data-barra="muda"]::view-transition-new(abas) { animation: aparece 160ms ease-out 50ms both; }
html[data-dir="expande"]::view-transition-new(root), html[data-dir="recolhe"]::view-transition-new(root) { animation: atras-entra var(--t-tela) var(--mola) 60ms both; }
html[data-dir="recolhe"]::view-transition-new(root) { animation-name: aparece; }

/* formulário (nível 2) é uma folha: sobe de baixo POR CIMA da tela de antes, que recua um pouco; ao fechar, desce e a de
   antes volta ao lugar. O topo e a barra de baixo vão junto com a folha (sem a barra "derretendo" no botão Gravar). */
@keyframes folha-tela-sobe { from { transform: translateY(100%); } }
@keyframes folha-tela-desce { to { transform: translateY(100%); } }
@keyframes fundo-recua { to { transform: scale(.94); opacity: .55; } }
@keyframes fundo-volta { from { transform: scale(.94); opacity: .55; } }
html[data-dir="sobe"]::view-transition-old(root) { animation: fundo-recua var(--t-folha) var(--mola) both; }
html[data-dir="sobe"]::view-transition-new(root) { animation: folha-tela-sobe var(--t-folha) var(--mola) both; }
html[data-dir="desce"]::view-transition-old(root) { animation: folha-tela-desce var(--t-tela) var(--sai) both; z-index: 2; }
html[data-dir="desce"]::view-transition-new(root) { animation: fundo-volta var(--t-tela) var(--mola) both; }
html[data-dir="sobe"] .topo, html[data-dir="desce"] .topo, html[data-dir="sobe"] .abas, html[data-dir="desce"] .abas,
html[data-dir="sobe"] .rodape, html[data-dir="desce"] .rodape, html[data-dir="sobe"] .acao-barra, html[data-dir="desce"] .acao-barra { view-transition-name: none; }
/* o "+" vira o botão Gravar da nota nova (e o Gravar volta a ser o "+") */
html[data-mais][data-dir="sobe"] .aba-mais, html[data-mais][data-dir="desce"] .aba-mais,
html[data-mais][data-dir="sobe"] .rodape #gravar, html[data-mais][data-dir="desce"] .rodape #gravar { view-transition-name: mais; }
::view-transition-group(mais) { animation-duration: var(--t-folha); animation-timing-function: var(--mola); border-radius: 30px; overflow: clip; z-index: 3; }
::view-transition-old(mais), ::view-transition-new(mais) { height: 100%; object-fit: cover; }
::view-transition-old(mais) { animation: some 140ms ease-out both; }
::view-transition-new(mais) { animation: aparece 180ms ease-out 60ms both; }
.topo h1:focus { outline: none; }   /* o foco que acompanha a troca de tela (js/navegacao.js) não desenha anel no título */

/* segmentado: a pílula azul é uma camada (::before) que desliza do item de antes até o tocado (js/pecas.js, deslizarPilula) */
.chips.segmento .chip { position: relative; isolation: isolate; }
.chips.segmento .chip.ligado { background: transparent; box-shadow: none; }
.chips.segmento .chip.ligado::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--acb);
  box-shadow: 0 6px 16px var(--brilho); transform-origin: left center; }

/* a folha que se arrasta: segue o dedo (--arrasto), fecha do ponto onde foi solta, ou volta com mola */
@keyframes folha-volta { from { transform: translateY(var(--arrasto, 0px)); } to { transform: none; } }
@keyframes folha-desce-arrasto { from { transform: translateY(var(--arrasto, 0px)); } to { transform: translateY(100%); } }
@keyframes veu-volta { from { opacity: var(--veu-op, 1); } to { opacity: 1; } }
@keyframes veu-some-arrasto { from { opacity: var(--veu-op, 1); } to { opacity: 0; } }
.folha-pega, .folha-titulo { touch-action: none; }
.folha-pega { cursor: grab; }
/* depois do primeiro arrasto a entrada não toca de novo quando as classes de arrasto saem */
.folha.assentada:not(.volta):not(.sai):not(.arrastando), .veu.assentada:not(.volta):not(.sai):not(.arrastando) { animation: none; }
.folha.arrastando { animation: none; transform: translateY(var(--arrasto, 0px)); }
.veu.arrastando { animation: none; opacity: var(--veu-op, 1); }
.folha.volta { animation: folha-volta 300ms var(--salto) both; }
.veu.volta { animation: veu-volta 300ms ease-out both; }
.folha.sai.arrastada { animation: folha-desce-arrasto var(--t-sai) var(--sai) both; }
.veu.sai.arrastada { animation: veu-some-arrasto var(--t-sai) var(--sai) both; }

/* esqueleto: a forma do mural enquanto a cópia do aparelho abre (em vez de "Carregando…" sozinho no meio da tela) */
@keyframes esq-brilho { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
.esqueleto .esq { background: var(--bl); border: 1px solid var(--ln2); border-radius: var(--r3); animation: esq-brilho 1.2s ease-in-out 450ms infinite; }   /* só respira se demorar */
.esqueleto .esq .esq { border: 0; background: var(--ln2); border-radius: 99px; animation: none; }
.esq-jogo { height: 196px; border-radius: var(--r4) !important; }
.esq-busca { height: 50px; border-radius: 99px !important; }
.esq-nota { display: flex; flex-direction: column; gap: 12px; padding: 18px 16px; }
.esq-linha { height: 12px; width: 100%; } .esq-linha.curta { width: 34%; } .esq-linha.media { width: 62%; }
.esqueleto .lista > :nth-child(2) { animation-delay: 600ms; } .esqueleto .lista > :nth-child(3) { animation-delay: 750ms; }
.esq-texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* a nota recém-gravada nasce no lugar dela no mural; o contorno azul é um anel que se apaga (opacity, não sombra) */
@keyframes nasce { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
@keyframes anel-some { from { opacity: 1; } to { opacity: 0; } }
a.nota.recem { position: relative; animation: nasce 320ms var(--salto) 80ms both; }
a.nota.recem::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 0 3px var(--acb); pointer-events: none;
  animation: anel-some 1.4s ease-out 300ms both; }

/* os pontos que pulsam (sincronizando, sessão jogando, hoje, áudio na fila) respiram com transform e opacity (antes: sombra
   redesenhada a cada quadro) */
@keyframes pulsa { 0%, 100% { transform: none; opacity: 1; } 50% { transform: scale(.7); opacity: .45; } }
.estado.fora::before { animation: pulsa 2.4s ease-in-out infinite; }   /* sem sinal ou fila parada: calmo, sem alarme */
.estado:active { transform: scale(.94); }
.estado { transition: color .3s, border-color .3s, transform var(--t-toque) var(--mola); }
@keyframes estado-muda { from { transform: scale(.9); } }
.estado.mudou { animation: estado-muda var(--t-medio) var(--salto); }

/* o aviso de baixo: o ✓ (ou ✕) estala logo depois de o aviso chegar */
.torrada::before { display: inline-block; animation: estala var(--t-medio) var(--salto) 90ms both; }

/* a mesa: a aposta nova sai do assento e desliza até o lugar dela (--de-x/--de-y, js/telas/mesa.js) */
@keyframes aposta-vem { from { transform: translate(var(--de-x, 0px), var(--de-y, 0px)) scale(.8); opacity: .2; } 40% { opacity: 1; } to { transform: none; opacity: 1; } }
.mesa-svg .mesa-aposta.novo { animation: aposta-vem var(--t-medio) var(--mola) both; }

@media (prefers-reduced-motion: reduce) {
  .esqueleto .esq, a.nota.recem, a.nota.recem::after, .estado.mudou, .torrada::before, .mesa-svg .mesa-aposta.novo, .folha.volta, .veu.volta { animation: none !important; }
  .folha.arrastando { transform: none; }
}
