:root {
  --fundo: #0b0b11; --painel: #13131c; --painel-2: #191924; --borda: #26263a; --tinta: #ededf5; --suave: #9a9ab0;
  --acento: #ec4899; --acento-suave: rgba(236, 72, 153, .14); --ok: #10b981; --aviso: #f59e0b; --info: #2563eb; --risco: #ef4444; --violeta: #8b5cf6;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--fundo); color: var(--tinta); font: 14px/1.45 system-ui, "Segoe UI", sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
[hidden] { display: none !important; }
kbd { font: 12px var(--mono); border: 1px solid var(--borda); border-bottom-width: 2px; border-radius: 5px; padding: 0 5px; background: var(--painel-2); }
.so-defs { position: absolute; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.jogo { position: relative; height: 100%; background: radial-gradient(120% 90% at 85% -10%, rgba(236, 72, 153, .10), transparent 60%), var(--fundo); }
.tela { position: absolute; inset: 0; display: flex; flex-direction: column; animation: entra .28s ease both; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rolagem { overflow-y: auto; padding: clamp(10px, 3vw, 28px); height: 100%; }

/* início e fim */
.abertura { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.abertura h1 { margin: 0; font-size: clamp(20px, 4.4vw, 34px); letter-spacing: -.02em; }
.abertura h1 span { color: var(--acento); }
.lema { margin: 2px 0 0; color: var(--suave); max-width: 60ch; }
.abertura-acoes { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.recorde { margin: 0; color: var(--suave); font: 12px var(--mono); }
.recorde b { color: var(--tinta); font-size: 14px; }
.botao { min-height: 40px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--borda); background: var(--painel-2); font-weight: 600; transition: transform .12s, background .15s, border-color .15s, opacity .15s; }
.botao:hover:not(:disabled) { border-color: #3a3a55; }
.botao:active:not(:disabled) { transform: scale(.97); }
.botao:disabled { opacity: .4; }
.botao.principal { background: var(--acento); border-color: transparent; color: #fff; box-shadow: 0 6px 22px rgba(236, 72, 153, .28); }
.botao.principal:hover:not(:disabled) { background: #f05aa6; }
.botao.mini { padding: 0 12px; font-size: 13px; }
.demo { position: relative; display: flex; gap: 3px; height: 12px; margin-top: 16px; padding: 2px; border-radius: 8px; border: 1px solid var(--borda); background: var(--painel); overflow: hidden; }
.demo i { border-radius: 4px; animation: demo 7s ease-in-out infinite both; }
.demo .d1 { width: 9%; background: #34344c; animation: none; }
.demo .d2 { width: 5%; background: var(--violeta); animation: none; }
.demo .d3 { width: 12%; background: var(--info); animation-delay: .2s; }
.demo .d4 { width: 30%; background: var(--aviso); animation-name: demo-corta; }
.demo .d5 { width: 6%; background: var(--ok); animation-delay: 1.4s; }
.demo b { position: absolute; right: 0; top: 0; bottom: 0; width: 20%; background: repeating-linear-gradient(135deg, rgba(245, 158, 11, .28) 0 5px, transparent 5px 10px); border-left: 1px dashed var(--aviso); }
@keyframes demo { 0%, 8% { width: 0; opacity: 0; } 18%, 82% { opacity: 1; } 92%, 100% { width: 0; opacity: 0; } }
@keyframes demo-corta { 0%, 14% { width: 0; } 24%, 44% { width: 44%; } 54%, 84% { width: 9%; } 94%, 100% { width: 0; } }
.blocos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 16px; }
.bloco { background: var(--painel); border: 1px solid var(--borda); border-radius: 14px; padding: 14px 16px; }
.bloco h2 { margin: 0 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.bloco .num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--acento-suave); color: var(--acento); font: 600 12px var(--mono); }
.bloco p, .bloco li { color: var(--suave); margin: 0 0 6px; }
.bloco ul { margin: 0; padding-left: 18px; }
.nota { font-size: 12px; border-top: 1px dashed var(--borda); padding-top: 6px; color: var(--suave); }

/* topo: placar e a janela */
.topo { display: grid; grid-template-columns: auto auto auto 1fr auto; grid-template-areas: "fase turno conf pontos pausa" "vit vit vit vit vit"; align-items: center; gap: 6px 18px; padding: 8px 12px 10px; border-bottom: 1px solid var(--borda); background: rgba(19, 19, 28, .85); }
.h-fase { grid-area: fase; } .h-turno { grid-area: turno; } .h-conf { grid-area: conf; } .h-pontos { grid-area: pontos; justify-self: end; } #btn-pausa { grid-area: pausa; } .vitrine { grid-area: vit; min-width: 0; }
.hud-item { display: flex; align-items: center; gap: 6px; font: 12px var(--mono); color: var(--suave); white-space: nowrap; }
.hud-item b { color: var(--tinta); font-size: 14px; }
.pips { display: inline-flex; gap: 3px; }
.pip { width: 10px; height: 10px; border-radius: 50%; background: var(--acento); transition: opacity .25s, transform .25s; }
.pip.gasto { opacity: .25; transform: scale(.6); background: var(--suave); }
.botao.icone { width: 40px; padding: 0; font: 700 12px var(--mono); }
.vitrine-topo { margin: 0 0 4px; display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: var(--suave); }
.vitrine-nome { font-weight: 600; color: var(--tinta); }
.ocup { font: 600 13px var(--mono); color: var(--tinta); }
.zona { margin-left: auto; font: 12px var(--mono); padding: 1px 8px; border-radius: 999px; border: 1px solid var(--borda); white-space: nowrap; }
.zona[data-zona="folga"] { color: #6ee7b7; border-color: rgba(16, 185, 129, .5); }
.zona[data-zona="neblina"] { color: #fcd34d; border-color: rgba(245, 158, 11, .6); background: rgba(245, 158, 11, .1); }
.medidor { position: relative; height: 36px; border-radius: 10px; border: 1px solid var(--borda); background: var(--painel-2); overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.medidor[data-zona="folga"] { border-color: rgba(16, 185, 129, .45); }
.medidor[data-zona="neblina"] { border-color: var(--aviso); box-shadow: 0 0 18px rgba(245, 158, 11, .25); }
.medidor[data-zona="estouro"] { border-color: var(--risco); box-shadow: 0 0 20px rgba(239, 68, 68, .4); }
.zona[data-zona="estouro"] { color: #fca5a5; border-color: rgba(239, 68, 68, .7); background: rgba(239, 68, 68, .12); }
.medidor[data-zona="estouro"] .faixa.neblina { animation: neblina 1.2s linear infinite; }
.faixa { position: absolute; pointer-events: none; }
.faixa.folga { left: 0; bottom: 0; height: 4px; background: var(--ok); z-index: 2; border-right: 2px solid #fff; transition: width .3s; }
.faixa.neblina { top: 0; bottom: 0; right: 0; z-index: 2; border-left: 1px dashed var(--aviso); background: repeating-linear-gradient(135deg, rgba(245, 158, 11, .30) 0 5px, transparent 5px 10px); background-size: 28.28px 100%; transition: left .3s; }
.medidor[data-zona="neblina"] .faixa.neblina { animation: neblina 1.2s linear infinite; }
@keyframes neblina { to { background-position: 28.28px 0; } }
.segs { position: absolute; inset: 0; display: flex; }
.seg { --n: 1; flex: none; height: 100%; overflow: hidden; white-space: nowrap; font: 600 0/36px var(--mono); font-style: normal; text-align: center; color: #fff; border-right: 2px solid var(--fundo); transition: width .35s cubic-bezier(.3, 1.3, .5, 1), opacity .3s, filter .3s;
  background-image: linear-gradient(90deg, rgba(8, 8, 12, .4) 1px, transparent 1px); background-size: calc(100% / var(--n)) 100%; }
.seg.saindo { border-right-width: 0; }
.s-nucleo { background-color: #34344c; color: #c9c9dd; }
.s-indice { background-color: var(--violeta); }
.s-resumo { background-color: var(--acento); }
.s-conversa { background-color: #55556e; }
.s-conversa.atual { background-color: #8a8aa6; color: #0b0b11; }
.s-resultado { background-color: var(--aviso); color: #1a1206; }
.s-doc { background-color: var(--info); background-image: repeating-linear-gradient(135deg, rgba(8, 8, 12, .28) 0 4px, transparent 4px 8px); background-size: auto; }
.s-secao { background-color: var(--info); }
.s-nota { background-color: var(--ok); color: #04241a; }
.seg.ocioso { opacity: .32; filter: saturate(.4); }
.seg.usado { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .85); }
.varre { position: absolute; top: 0; bottom: 0; left: 0; width: 70px; z-index: 3; pointer-events: none; opacity: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent); }
.medidor.lendo .varre { animation: varre .7s ease-out; }
@keyframes varre { from { opacity: 1; transform: translateX(-70px); } to { opacity: 1; transform: translateX(1200px); } }
.medidor.treme { animation: treme .4s; }
@keyframes treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* mesa */
.mesa { flex: 1; min-height: 0; overflow-y: auto; display: grid; gap: 10px 12px; padding: 10px 12px; align-content: start; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-areas: "tarefa dentro" "tarefa fora"; grid-template-rows: auto 1fr; }
.tarefa { grid-area: tarefa; align-self: start; display: grid; gap: 10px; }
.p-dentro { grid-area: dentro; } .p-fora { grid-area: fora; align-self: start; }
.tarefa-corpo { background: var(--painel); border: 1px solid var(--borda); border-radius: 14px; padding: 12px 14px; }
.tarefa-cab { margin: 0 0 8px; }
.etq { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--acento); }
.pedidos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pedido { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.pedido p { margin: 0; font-size: 15.5px; line-height: 1.3; }
.pede { display: inline-grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 7px; align-items: center; min-height: 40px; max-width: 250px; padding: 4px 10px; border-radius: 10px; border: 1px solid var(--borda); background: var(--painel-2); font-size: 13px; text-align: left; line-height: 1.2; transition: border-color .2s, background .2s, transform .12s; }
.pede .ico { grid-row: 1 / span 2; }
.pede-nome { font-weight: 600; align-self: end; }
.pede small { font: 12px var(--mono); color: var(--suave); align-self: start; }
button.pede:active:not(:disabled) { transform: scale(.97); }
.pede.e-ok { border-color: rgba(16, 185, 129, .5); background: rgba(16, 185, 129, .08); }
.pede.e-ok .ico { color: #6ee7b7; }
button.pede.e-falta { border-color: var(--acento); background: var(--acento-suave); animation: chama 1.6s ease-in-out infinite; }
button.pede.e-falta .ico { color: var(--acento); }
button.pede:disabled { animation: none; }
span.pede.e-falta { border-style: dashed; color: var(--suave); }
.pede.e-pesado { border-color: rgba(245, 158, 11, .6); background: rgba(245, 158, 11, .08); }
.pede.e-pesado .ico { color: #fcd34d; }
.pede.e-neutro { border-color: rgba(139, 92, 246, .6); background: rgba(139, 92, 246, .1); }
.pede.e-neutro .ico { color: #c4b5fd; }
.pede.e-perdido { border-color: rgba(239, 68, 68, .6); background: rgba(239, 68, 68, .1); }
.pede.e-perdido .ico, .pede.e-perdido small { color: #fca5a5; }
@keyframes chama { 50% { box-shadow: 0 0 0 4px rgba(236, 72, 153, .16); } }
.combinado { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(16, 185, 129, .55); background: rgba(16, 185, 129, .06); }
.combinado > .ico { color: #6ee7b7; }
.combinado p { margin: 0; flex: 1; min-width: 0; font-size: 13.5px; }
.feito { display: inline-flex; align-items: center; gap: 4px; font: 12px var(--mono); color: #6ee7b7; white-space: nowrap; }
.aviso { margin: 0 0 8px; padding: 6px 10px; border-radius: 9px; border: 1px solid rgba(245, 158, 11, .55); background: rgba(245, 158, 11, .1); color: #fcd34d; font-size: 13px; }
.a-seguir { margin: 10px 0 0; font-size: 12.5px; color: var(--suave); }
.a-seguir b { font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.resultado { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--borda); background: var(--painel); animation: salta .3s cubic-bezier(.3, 1.4, .5, 1) both; }
@keyframes salta { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.res-pontos { margin: 0; font: 700 clamp(24px, 5vw, 34px) var(--mono); }
.res-titulo { margin: 0; font-weight: 700; }
.resultado ul { margin: 2px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--suave); }
.resultado li b { font-family: var(--mono); color: var(--tinta); }
.resultado small { font-size: 12px; }
.resultado .corte { color: #fcd34d; }
.r-bom { border-color: rgba(16, 185, 129, .55); } .r-bom .res-pontos { color: #6ee7b7; }
.r-meio { border-color: rgba(245, 158, 11, .6); } .r-meio .res-pontos { color: #fcd34d; }
.r-ruim { border-color: rgba(239, 68, 68, .65); background: linear-gradient(0deg, rgba(239, 68, 68, .08), rgba(239, 68, 68, .08)), var(--painel); } .r-ruim .res-pontos { color: #fca5a5; }
.r-ruim li:not(:last-child) { color: var(--tinta); }
.painel h3 { margin: 0 0 6px; font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--suave); }
.fichas { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.p-dentro .fichas { padding: 8px; border-radius: 14px; border: 1px solid var(--borda); background: linear-gradient(180deg, var(--acento-suave), transparent 70%), var(--painel); min-height: 58px; }
.grupo { flex-basis: 100%; font-size: 12px; color: var(--suave); }
.grupo:not(:first-child) { margin-top: 4px; }
.ficha { --c: var(--suave); display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 9px; border-radius: 10px; border: 1px solid var(--borda); border-left: 3px solid var(--c); background: var(--painel-2); font-size: 13px; font-weight: 600; transition: transform .12s, border-color .15s, opacity .25s, background .2s; }
.ficha > .ico:first-child { color: var(--c); }
.ficha > .ico:last-child { width: 13px; height: 13px; color: var(--suave); }
button.ficha:hover:not(:disabled) { border-color: var(--tinta); border-left-color: var(--c); }
button.ficha:active:not(:disabled) { transform: scale(.96); }
.ficha.fixa { background: transparent; font-weight: 500; color: var(--suave); }
.ficha.pop { animation: pop .3s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
.f-tam { font: 600 12px var(--mono); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; display: inline-grid; place-items: center; background: rgba(237, 237, 245, .1); color: var(--tinta); }
.f-comb { display: inline-flex; align-items: center; gap: 2px; font: 600 12px var(--mono); color: #6ee7b7; }
.f-comb .ico { width: 12px; height: 12px; }
.f-custo { font: 700 12px var(--mono); color: #fcd34d; }
.t-nucleo { --c: #6b6b85; } .t-indice { --c: #a78bfa; } .t-resumo { --c: var(--acento); } .t-conversa { --c: #8a8aa6; }
.t-resultado { --c: var(--aviso); } .t-doc, .t-secao { --c: #5b8cff; } .t-nota { --c: var(--ok); }
.ficha.t-doc { border-left-style: double; border-left-width: 6px; }
.ficha.ocioso { opacity: .8; border-color: rgba(245, 158, 11, .6); border-left-color: var(--c); }
.ficha.usado { border-color: rgba(16, 185, 129, .5); border-left-color: var(--c); }
[data-estado="resultado"] .ficha:disabled, [data-estado="resultado"] .pede:disabled { opacity: 1; }
.toast { position: absolute; left: 12px; right: 12px; bottom: 66px; z-index: 4; margin: 0 auto; width: fit-content; max-width: calc(100% - 24px); padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(245, 158, 11, .6); background: #241a08; color: #fde9b0; font-size: 13px; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); animation: salta .25s ease both; pointer-events: none; }
.rodape { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-top: 1px solid var(--borda); background: rgba(19, 19, 28, .9); }
.diario { flex: 1; min-width: 0; margin: 0; color: var(--suave); font-size: 12.5px; max-height: 2.9em; overflow: hidden; }
.rodape .botao { flex: none; }

/* véu */
.veu { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 12px; background: rgba(8, 8, 12, .78); backdrop-filter: blur(5px); animation: entra .2s ease both; }
.cartao { width: min(480px, 100%); max-height: 100%; display: flex; flex-direction: column; overflow: hidden; background: var(--painel); border: 1px solid var(--borda); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.cartao-rol { min-height: 0; overflow-y: auto; padding: clamp(12px, 3vw, 22px); padding-bottom: 4px; }
.cartao .etiqueta { margin: 0; font: 600 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acento); }
.cartao h2 { margin: 2px 0 6px; font-size: clamp(17px, 3.6vw, 22px); }
.cartao p { margin: 0 0 10px; color: var(--suave); }
.cartao ul { margin: 0 0 10px; padding-left: 18px; color: var(--suave); }
.cartao .cita { color: var(--tinta); font-weight: 600; border-left: 3px solid var(--acento); padding-left: 10px; }
.cartao p b { color: var(--tinta); }
.veu-botoes { flex: none; position: relative; display: flex; gap: 8px; padding: 8px clamp(12px, 3vw, 22px) clamp(12px, 3vw, 18px); box-shadow: 0 -12px 12px -8px rgba(8, 8, 12, .7); }
.veu-botoes .botao { white-space: nowrap; padding: 0 10px; }
.veu-botoes .botao { flex: 1; }
.opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 10px; }
.opcoes.uma { grid-template-columns: 1fr; }
.opcao { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--borda); background: var(--painel-2); text-align: left; font-size: 13.5px; line-height: 1.25; transition: border-color .15s, background .15s; }
.opcao span { flex: 1; min-width: 0; }
.opcao small { font: 12px var(--mono); color: var(--suave); white-space: nowrap; }
.opcao .ico { color: #6ee7b7; }
.opcao:hover:not(:disabled) { border-color: var(--tinta); }
.opcao:disabled { opacity: .5; }
.opcao.larga { grid-column: 1 / -1; color: var(--suave); border-style: dashed; }
.opcao.marcada { border-color: var(--acento); background: var(--acento-suave); }
.caixa { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--suave); display: grid; place-items: center; }
.opcao[aria-pressed="true"] { border-color: var(--acento); background: var(--acento-suave); }
.opcao[aria-pressed="true"] .caixa { border-color: var(--acento); background: var(--acento); }
.opcao[aria-pressed="true"] .caixa::after { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.conta { font: 12px var(--mono); }

/* fim */
.placar { font: 700 clamp(30px, 8vw, 54px) var(--mono); margin: 4px 0; color: var(--acento); }
.licao { border-left: 3px solid var(--acento); padding: 4px 0 4px 12px; color: var(--tinta); max-width: 70ch; }
.resumo { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 12px 0; }
.resumo div { background: var(--painel); border: 1px solid var(--borda); border-radius: 10px; padding: 8px 10px; font-size: 12px; color: var(--suave); }
.resumo b { display: block; font: 600 18px var(--mono); color: var(--tinta); }
.sub { margin: 16px 0 6px; font-size: 14px; }
.grafico { position: relative; display: flex; align-items: stretch; gap: 3px; height: 96px; padding: 8px 8px 0; border-radius: 12px; border: 1px solid var(--borda); background: var(--painel); }
.grafico::before, .grafico::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc((100% - 8px) * .5); border-top: 1px dashed rgba(16, 185, 129, .5); }
.grafico::after { bottom: calc((100% - 8px) * .8); border-top-color: rgba(245, 158, 11, .6); }
.col { position: relative; z-index: 1; flex: 1; min-width: 4px; display: flex; align-items: flex-end; }
.col i { display: block; width: 100%; min-height: 3px; border-radius: 3px 3px 0 0; background: var(--suave); }
.col.z-folga i { background: var(--ok); }
.col.z-neblina i { background: repeating-linear-gradient(135deg, var(--aviso) 0 3px, #7a4f05 3px 6px); }
.col.erro::before { content: "×"; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); z-index: 2; font: 700 13px/14px var(--mono); width: 14px; text-align: center; border-radius: 50%; background: var(--painel); color: #fca5a5; }
.sep { align-self: flex-end; font: 600 12px var(--mono); color: var(--suave); padding: 0 1px 2px 4px; border-left: 1px dashed var(--borda); }
.sep:first-child { border-left: 0; padding-left: 0; }
.legenda { margin: 6px 0 0; font-size: 12px; color: var(--suave); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.legenda span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--suave); font-style: normal; }
.lg.folga { background: var(--ok); } .lg.neblina { background: repeating-linear-gradient(135deg, var(--aviso) 0 3px, #7a4f05 3px 6px); }
.lg.erro { background: none; width: auto; height: auto; font: 700 13px var(--mono); color: #fca5a5; }
.perdas { margin: 0; padding-left: 18px; color: var(--suave); font-size: 13px; }
.perdas li { margin-bottom: 5px; }
.perdas b { color: var(--tinta); font-weight: 600; margin-right: 4px; }

/* telas grandes: a janela ganha corpo */
@media (min-width: 900px) and (min-height: 560px) {
  body { font-size: 15px; }
  .medidor { height: 54px; border-radius: 12px; } .seg { font-size: 12.5px; line-height: 54px; } .faixa.folga { height: 5px; }
  .mesa { gap: 14px 18px; padding: 16px; }
  .tarefa-corpo { padding: 16px 18px; } .pedido p { font-size: 18px; } .pede { font-size: 14px; min-height: 46px; max-width: 300px; }
  .combinado p { font-size: 15px; } .a-seguir { font-size: 13.5px; }
  .ficha { min-height: 46px; font-size: 14.5px; padding: 0 12px; gap: 8px; } .p-dentro .fichas { padding: 10px; gap: 8px; }
  .resultado ul { font-size: 14px; }
}

/* telas estreitas: uma coluna */
@media (max-width: 720px) {
  .mesa { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tarefa" "dentro" "fora"; grid-template-rows: none; }
  .topo { gap: 6px 12px; }
  .h-conf .rot { display: none; }
  .zona { font-size: 0; } .zona::after { content: attr(data-curta); font-size: 12px; }
  .pedido p { font-size: 14.5px; }
  .pede { max-width: 46vw; }
  .rodape .botao { padding: 0 12px; flex: 1; }
  .rodape .longo { display: none; }
  .diario { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .rodape { justify-content: flex-end; }
  .rodape .botao.principal { flex: 1; }
}

/* iframe pequeno do portal (cerca de 340 x 212): placar e janela na mesma faixa */
@media (max-height: 320px) {
  body { font-size: 12.5px; }
  .topo { grid-template-columns: auto minmax(0, 1fr) auto 40px; grid-template-areas: "fase vit conf pausa" "turno vit pontos pausa"; gap: 0 8px; padding: 2px 8px; }
  .topo .rot { display: none; }
  .h-fase b::before { content: "F "; color: var(--suave); font-weight: 400; } .h-turno b::before { content: "T "; color: var(--suave); font-weight: 400; }
  .hud-item b { font-size: 12px; } .h-pontos { justify-self: start; }
  .pip { width: 7px; height: 7px; } .pips { gap: 2px; }
  .vitrine-nome { display: none; } .vitrine-topo { margin: 0 0 2px; gap: 6px; } .ocup { font-size: 12px; } .zona { border: 0; padding: 0; background: none !important; overflow: hidden; text-overflow: ellipsis; }
  .medidor { height: 18px; border-radius: 6px; } .seg { border-right-width: 1px; } .faixa.folga { height: 3px; }
  .mesa { padding: 5px 8px; gap: 6px; }
  .tarefa { gap: 6px; }
  .tarefa-corpo { padding: 6px 8px; border-radius: 10px; } .tarefa-cab { display: none; }
  .pedidos { gap: 5px; } .pedido { gap: 6px; } .pedido p { font-size: 12.5px; line-height: 1.25; }
  .pede { font-size: 12px; padding: 2px 7px; gap: 5px; max-width: 150px; } .pede small { font-size: 12px; }
  .combinado { margin-top: 5px; padding: 3px 6px; } .combinado p { font-size: 12px; line-height: 1.25; }
  .a-seguir { margin-top: 4px; font-size: 12px; line-height: 1.25; } .aviso { font-size: 12px; margin-bottom: 5px; padding: 3px 6px; }
  .resultado { padding: 5px 8px; gap: 8px; border-radius: 10px; } .res-pontos { font-size: 20px; } .resultado ul, .resultado small { font-size: 12px; line-height: 1.25; }
  .painel h3 { margin-bottom: 3px; } .fichas { gap: 5px; } .p-dentro .fichas { padding: 5px; min-height: 0; border-radius: 10px; }
  .ficha { font-size: 12px; padding: 0 6px; gap: 4px; } .grupo { font-size: 12px; margin: 0 !important; }
  .rodape { padding: 2px 8px; gap: 6px; } .rodape .botao { font-size: 12.5px; padding: 0 9px; }
  .toast { bottom: 48px; font-size: 12px; padding: 5px 9px; }
  .veu { padding: 6px; } .cartao { border-radius: 12px; } .cartao-rol { padding: 8px 10px 2px; } .veu-botoes { padding: 5px 10px 8px; }
  .pede-doc, .pede-nota, .cartao .apoio, .veu:not([data-tipo="fase"]):not([data-tipo="entre"]):not([data-tipo="pausa"]) .etiqueta { display: none; }
  .zona { font-size: 0; } .zona::after { content: attr(data-curta); font-size: 12px; } .h-pontos b::after { content: " pts"; color: var(--suave); font-weight: 400; } .cartao p, .cartao ul { margin-bottom: 6px; font-size: 12px; line-height: 1.3; } .cartao h2 { font-size: 15px; margin-bottom: 3px; }
  .opcoes { gap: 5px; margin-bottom: 6px; } .opcao { font-size: 12px; min-height: 40px; padding: 3px 7px; gap: 5px; } .opcao small { font-size: 12px; }
  .blocos { margin-top: 10px; } .demo { margin-top: 8px; }
  .grafico { height: 70px; gap: 2px; padding: 6px 5px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
