/* Protótipo dos totens Unimetal (entrada e saída). Tema CLARO, para enxergar de dia, com sol, em área aberta.
   Fundo branco e cinza muito claro, texto quase preto, vermelho do logotipo (#dc0d1d) como acento e nos botões
   primários. A faixa do topo fica preta (o logo tem texto branco e a faixa dá o maior contraste).
   Tudo local: sem fonte, imagem ou script remoto. Alvo: monitor de 15" com toque (1366x768) até 1920x1080,
   sem rolagem. As medidas de altura seguem a altura da tela (vh). */
:root {
  color-scheme: light;
  --fundo: #f3f4f6;
  --fundo-2: #e9ebee;
  --painel: #ffffff;
  --painel-2: #ffffff;
  --linha: #c3c8d0;
  --linha-forte: #6f7783;
  --texto: #14171c;
  --suave: #444c58;
  --vermelho: #dc0d1d;
  --vermelho-forte: #b80a18;
  --vermelho-texto: #b80a18;
  --verde: #0a7d4a;
  --verde-claro: #e3f5ec;
  --amarelo: #ffc933;
  --placa-fundo: #f4f5f6;
  --placa-azul: #1b3f94;
  --sombra-tecla: 0 3px 6px rgba(20, 23, 28, .14);

  --topo-h: clamp(56px, 8.4vh, 84px);
  --tecla-h: clamp(64px, 9vh, 104px);
  --tecla-num-h: clamp(72px, 11.6vh, 122px);
  --gap: clamp(8px, 1.2vh, 14px);
  --alvo: clamp(64px, 9vh, 88px);

  font-family: "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; background: var(--fundo); color: var(--texto); }
body { font-size: clamp(18px, 2.6vh, 26px); line-height: 1.35; -webkit-tap-highlight-color: transparent; }
h1, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
button:focus-visible { outline: 4px solid var(--texto); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.app { height: 100dvh; display: grid; grid-template-rows: var(--topo-h) minmax(0, 1fr); user-select: none; -webkit-user-select: none; }

/* Faixa do topo (preta: o logo tem texto branco) */
.topo { display: flex; align-items: center; gap: clamp(14px, 2vh, 24px); padding: 0 clamp(20px, 3vw, 48px); background: #000; color: #fff; border-bottom: 3px solid var(--vermelho); }
.topo-logo { height: clamp(22px, 3.6vh, 36px); width: auto; display: block; }
.topo-divisor { width: 2px; height: 55%; background: #6f7783; }
.topo-titulo { font-weight: 650; font-size: clamp(18px, 2.7vh, 28px); letter-spacing: .01em; }
.topo-titulo small { margin-left: 10px; font-size: .78em; font-weight: 500; color: #d3d8df; }
.topo-fim { margin-left: auto; display: flex; align-items: center; gap: clamp(14px, 2vh, 28px); }
.selo-proto { padding: 6px 14px; border: 1px dashed #aab2bd; border-radius: 999px; color: #e6e9ee; font-size: clamp(13px, 1.9vh, 18px); letter-spacing: .04em; text-transform: uppercase; }
.link-proto { padding: 6px 14px; border: 1px dashed #6f7783; border-radius: 999px; color: #c9ced6; font-size: clamp(12px, 1.7vh, 16px); text-decoration: none; white-space: nowrap; }
.link-proto:hover { color: #fff; border-color: #fff; }
.relogio { font-variant-numeric: tabular-nums; font-size: clamp(20px, 3vh, 32px); font-weight: 600; }

/* Palco e troca de tela */
.palco { position: relative; min-height: 0; background:
  radial-gradient(120% 90% at 85% 0%, #ffffff 0%, transparent 60%), var(--fundo); }
.tela { position: absolute; inset: 0; animation: entra .28s ease-out both; }
@keyframes entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.sobretitulo { color: var(--vermelho-texto); font-size: clamp(15px, 2.3vh, 24px); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: var(--alvo); padding: 0 clamp(24px, 3vh, 40px); border-radius: 18px; font-size: clamp(22px, 3.3vh, 34px); font-weight: 700; background: var(--painel-2); color: var(--texto); border: 2px solid var(--linha-forte); box-shadow: var(--sombra-tecla); transition: transform .08s ease, background .15s ease; }
.botao svg { width: 1.2em; height: 1.2em; flex: none; }
.botao:active { transform: scale(.97); background: #e3e6ea; }
.botao-pri { background: var(--vermelho); border-color: var(--vermelho); color: #fff; box-shadow: 0 8px 22px rgba(220, 13, 29, .30); }
.botao-pri:active { background: var(--vermelho-forte); }
.botao-grande { min-height: clamp(72px, 11vh, 110px); font-size: clamp(26px, 4vh, 42px); }

/* 1. Início */
.tela-inicio { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding: 0 clamp(32px, 6vw, 120px); overflow: hidden; }
.inicio-texto { position: relative; z-index: 1; display: grid; gap: clamp(14px, 2.6vh, 30px); justify-items: start; }
.tela-inicio h1 { font-size: clamp(48px, 10vh, 112px); line-height: 1; letter-spacing: -.035em; font-weight: 750; }
.inicio-sub { font-size: clamp(22px, 3.6vh, 38px); color: var(--suave); max-width: 18em; }
.botao-gigante { display: inline-flex; align-items: center; gap: clamp(16px, 2.6vh, 28px); margin-top: clamp(8px, 2vh, 24px); min-height: clamp(92px, 15vh, 150px); padding: 0 clamp(36px, 5vh, 64px); border-radius: 28px; background: var(--vermelho); color: #fff; font-size: clamp(32px, 5.4vh, 58px); font-weight: 750; box-shadow: 0 14px 36px rgba(220, 13, 29, .32), inset 0 -4px 0 rgba(0, 0, 0, .18); transition: transform .08s ease; animation: respira 2.8s ease-in-out infinite; }
.botao-gigante svg { width: 1.1em; height: 1.1em; }
.botao-gigante:active { transform: scale(.97); background: var(--vermelho-forte); animation: none; }
@keyframes respira { 0%, 100% { box-shadow: 0 14px 36px rgba(220, 13, 29, .26), inset 0 -4px 0 rgba(0, 0, 0, .18); } 50% { box-shadow: 0 14px 54px rgba(220, 13, 29, .5), inset 0 -4px 0 rgba(0, 0, 0, .18); } }
.inicio-dica { color: var(--suave); font-size: clamp(17px, 2.5vh, 26px); }
.inicio-arte { position: relative; align-self: stretch; }
.inicio-arte::before { content: ""; position: absolute; right: -12%; top: 50%; width: 130%; aspect-ratio: 202.85 / 100; transform: translateY(-50%) rotate(-6deg); background: url("marca.svg") center / contain no-repeat; opacity: .09; }

/* 2. Passos */
.tela-passo { display: grid; grid-template-rows: auto minmax(0, 1fr); padding: clamp(14px, 2.4vh, 28px) clamp(24px, 3.4vw, 64px) clamp(14px, 2.4vh, 28px); gap: clamp(10px, 2vh, 24px); }
.progresso { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); }
.progresso-texto { flex: none; font-size: clamp(22px, 3.4vh, 36px); font-weight: 750; font-variant-numeric: tabular-nums; }
.progresso-lista { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 1.2vw, 18px); }
.progresso-item { display: grid; gap: 8px; color: #55606c; font-size: clamp(14px, 2.1vh, 22px); font-weight: 600; }
.progresso-item::before { content: ""; height: clamp(8px, 1.1vh, 12px); border-radius: 99px; background: #d3d7dd; }
.progresso-item.feito { color: var(--suave); }
.progresso-item.feito::before { background: #ee8d95; }
.progresso-item.atual { color: var(--texto); font-weight: 750; }
.progresso-item.atual::before { background: var(--vermelho); }

.passo-corpo { min-height: 0; display: grid; grid-template-columns: minmax(360px, 38%) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); }
.passo-esq { min-height: 0; display: flex; flex-direction: column; gap: clamp(8px, 1.6vh, 18px); }
.passo-titulo { font-size: clamp(32px, 5.2vh, 56px); line-height: 1.05; letter-spacing: -.02em; font-weight: 750; }
.passo-dica { color: var(--suave); font-size: clamp(18px, 2.7vh, 28px); min-height: 1.35em; }
.passo-acoes { margin-top: auto; display: flex; gap: 16px; }
.passo-dir { min-height: 0; display: flex; align-items: center; justify-content: center; }

.campo { display: grid; gap: 10px; margin-top: clamp(4px, 1vh, 12px); }
.campo-rotulo { color: var(--suave); font-size: clamp(16px, 2.3vh, 24px); font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.campo-caixa { display: flex; align-items: center; min-height: clamp(76px, 11vh, 116px); padding: 0 clamp(18px, 2.4vh, 30px); border: 3px solid var(--linha-forte); border-radius: 20px; background: #fff; transition: border-color .15s, background .15s; }
.campo-valor { font-size: clamp(36px, 5.6vh, 60px); font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.caret { display: inline-block; width: 4px; height: clamp(40px, 6.4vh, 68px); margin-left: 6px; border-radius: 2px; background: var(--vermelho); animation: pisca 1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.campo-contagem { color: var(--suave); font-size: clamp(17px, 2.5vh, 26px); min-height: 1.35em; }
.espelho { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.campo.com-erro .campo-caixa { border-color: var(--vermelho-texto); background: #fdeaec; animation: treme .42s ease-in-out; }
.campo.com-erro .campo-rotulo { color: var(--vermelho-texto); }
.campo.com-erro .placa { outline: 6px solid var(--vermelho); outline-offset: 6px; animation: treme .42s ease-in-out; }
@keyframes treme { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.erro { display: flex; align-items: center; gap: 14px; padding: clamp(12px, 1.8vh, 20px) clamp(16px, 2.2vh, 26px); border-radius: 16px; background: var(--vermelho); color: #fff; font-size: clamp(28px, 3.9vh, 40px); font-weight: 700; line-height: 1.15; animation: entra .22s ease-out; }
.erro::before { content: "!"; flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: #fff; color: var(--vermelho); font-weight: 900; }

/* Placa */
.placa { container-type: inline-size; width: 100%; max-width: 560px; overflow: hidden; border: 4px solid #0c0d0f; border-radius: 16px; background: var(--placa-fundo); box-shadow: 0 6px 18px rgba(20, 23, 28, .22); }
.placa-topo { display: grid; place-items: center; height: clamp(24px, 4vh, 40px); background: var(--placa-azul); color: #fff; font-size: clamp(13px, 2vh, 20px); font-weight: 800; letter-spacing: .38em; }
.placa-chapa { display: flex; justify-content: center; align-items: center; gap: 1.2cqw; padding: clamp(8px, 1.6vh, 18px) 2cqw clamp(10px, 2vh, 22px); font-family: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif; }
.slot { position: relative; display: grid; place-items: center; width: 11.4cqw; font-size: min(12.4cqw, 9.2vh); font-weight: 800; line-height: 1.1; color: #17181b; }
.slot.vazio { color: #a3aab4; font-weight: 600; }
.slot.ativo::after { content: ""; position: absolute; left: 6%; right: 6%; bottom: -2px; height: 6px; border-radius: 3px; background: var(--vermelho); animation: pisca 1s steps(1) infinite; }
.slot + .slot.apos-3 { margin-left: 2.6cqw; }

/* Teclados: teclas brancas com borda e sombra leve, letra preta */
.teclado { display: grid; gap: var(--gap); width: 100%; }
.tecla { display: grid; place-items: center; min-width: 64px; min-height: var(--tecla-h); border-radius: 16px; background: #fff; border: 2px solid var(--linha-forte); border-bottom-width: 5px; box-shadow: var(--sombra-tecla); color: var(--texto); font-size: clamp(26px, 4vh, 44px); font-weight: 700; transition: transform .06s ease, background .12s ease; }
.tecla:active:not(:disabled) { transform: translateY(3px); border-bottom-width: 2px; box-shadow: none; background: #e3e6ea; }
.tecla svg { width: 1.15em; height: 1.15em; }
.tecla.especial { background: #e9ecf0; font-size: clamp(20px, 3vh, 32px); }
.tecla.avancar { background: var(--vermelho); border-color: var(--vermelho); border-bottom-color: var(--vermelho-forte); color: #fff; font-size: clamp(22px, 3.4vh, 38px); display: flex; align-items: center; justify-content: center; gap: 14px; }
.tecla:disabled, .tecla.especial:disabled, .tecla.avancar:disabled { background: #e6e8ec; border-color: #d3d7dd; border-bottom-width: 2px; box-shadow: none; color: #a3aab4; cursor: not-allowed; }

.teclado-num { max-width: min(100%, 80vh); grid-template-columns: repeat(3, 1fr); }
.teclado-num .tecla { min-height: var(--tecla-num-h); font-size: clamp(34px, 5.4vh, 58px); }
.teclado-num .tecla.especial { font-size: clamp(22px, 3.3vh, 36px); }
.teclado-num .tecla.avancar { font-size: clamp(20px, 2.7vh, 30px); gap: 10px; }
.teclado-placa { max-width: 980px; grid-template-columns: repeat(20, 1fr); }
.teclado-placa .tecla { grid-column: span 2; padding: 0; min-width: 0; }
.teclado-placa .linha-2 { grid-column: 2 / span 2; }
.teclado-placa .apagar { grid-column: span 4; }
.teclado-placa .avancar { grid-column: span 20; }

/* Leitor de TAG */
.leitor { display: grid; justify-items: center; gap: clamp(14px, 3vh, 34px); width: 100%; }
.leitor-anim { position: relative; display: grid; place-items: center; width: clamp(240px, 46vh, 460px); aspect-ratio: 1; }
.onda { position: absolute; inset: 0; border: 4px solid var(--vermelho); border-radius: 50%; opacity: 0; animation: onda 2.4s ease-out infinite; }
.onda:nth-child(2) { animation-delay: .8s; }
.onda:nth-child(3) { animation-delay: 1.6s; }
@keyframes onda { 0% { transform: scale(.42); opacity: .85; } 100% { transform: scale(1); opacity: 0; } }
.leitor-miolo { position: relative; display: grid; place-items: center; width: 42%; aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--vermelho); border: 4px solid var(--vermelho); box-shadow: 0 8px 28px rgba(220, 13, 29, .30); animation: bate 1.6s ease-in-out infinite; }
@keyframes bate { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
.ico-tag { width: 60%; height: 60%; stroke-width: 2.2; }
.ico-ok { display: none; width: 62%; height: 62%; stroke-width: 3.4; }
.leitor-texto { font-size: clamp(26px, 4.2vh, 46px); font-weight: 700; text-align: center; }
.botao-demo { min-height: 52px; padding: 0 22px; border-radius: 12px; border: 2px dashed #6f7783; background: transparent; color: #444c58; font-size: clamp(14px, 2vh, 19px); }
.botao-demo:active { background: #e3e6ea; }
.leitor.lido .onda { animation: none; opacity: 0; }
.leitor.lido .leitor-miolo { border-color: var(--verde); background: var(--verde-claro); box-shadow: 0 8px 28px rgba(10, 125, 74, .35); animation: none; color: var(--verde); }
.leitor.lido .ico-tag { display: none; }
.leitor.lido .ico-ok { display: block; }
.leitor.lido .botao-demo { visibility: hidden; }
.campo-tag-caixa.lida { border-color: var(--verde); background: var(--verde-claro); }
.campo-tag-caixa:not(.lida) .campo-valor { color: var(--suave); font-weight: 500; font-size: clamp(26px, 4vh, 42px); letter-spacing: 0; }

/* 3. Revisão */
.tela-revisao { display: grid; grid-template-rows: auto minmax(0, auto) auto; align-content: center; gap: clamp(10px, 2vh, 26px); padding: clamp(14px, 2.4vh, 30px) clamp(24px, 12vw, 260px); }
.revisao-cab h1 { margin-top: 4px; font-size: clamp(34px, 5.6vh, 60px); letter-spacing: -.02em; font-weight: 750; }
.revisao-lista { display: grid; gap: clamp(7px, 1vh, 12px); }
.revisao-item { display: grid; grid-template-columns: minmax(150px, 22%) 1fr auto; align-items: center; gap: 20px; min-height: var(--alvo); padding: 0 clamp(12px, 1.6vh, 20px) 0 clamp(18px, 2.4vh, 30px); border: 2px solid var(--linha); border-radius: 18px; background: var(--painel); box-shadow: 0 2px 6px rgba(20, 23, 28, .08); }
.revisao-rotulo { color: var(--suave); font-size: clamp(16px, 2.4vh, 24px); font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.revisao-valor { font-size: clamp(30px, 4.6vh, 50px); font-weight: 750; letter-spacing: .05em; font-variant-numeric: tabular-nums; }
.revisao-valor.placa-mini { justify-self: start; padding: 0 16px; border: 3px solid #0c0d0f; border-top: 8px solid var(--placa-azul); border-radius: 10px; background: var(--placa-fundo); color: #17181b; font-family: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif; font-weight: 800; letter-spacing: .1em; }
.botao-corrigir { min-height: 64px; padding: 0 26px; border-radius: 14px; background: #fff; border: 2px solid var(--linha-forte); font-size: clamp(20px, 2.8vh, 28px); font-weight: 650; color: var(--texto); }
.botao-corrigir:active { background: #e3e6ea; }
.revisao-acoes { display: grid; grid-template-columns: auto 1fr; gap: 20px; margin-top: clamp(2px, 1vh, 12px); }

/* 4. Sucesso */
.tela-sucesso { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(14px, 2.6vh, 30px); text-align: center; padding: 0 5vw; }
.sucesso-selo { display: grid; place-items: center; width: clamp(140px, 26vh, 260px); aspect-ratio: 1; border-radius: 50%; background: var(--verde); border: 6px solid var(--verde); box-shadow: 0 10px 40px rgba(10, 125, 74, .35); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.sucesso-selo svg { width: 56%; height: 56%; stroke: #fff; stroke-width: 3.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: traco .5s .25s ease-out forwards; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes traco { to { stroke-dashoffset: 0; } }
.tela-sucesso h1 { font-size: clamp(48px, 9vh, 100px); letter-spacing: -.03em; font-weight: 750; line-height: 1; }
.sucesso-sub { font-size: clamp(22px, 3.4vh, 36px); color: var(--suave); max-width: 24em; }
.sucesso-placa { display: inline-block; padding: 0 14px; border: 3px solid #0c0d0f; border-radius: 8px; background: var(--placa-fundo); color: #17181b; font-weight: 800; letter-spacing: .08em; font-family: "Bahnschrift", "Arial Narrow", "Segoe UI", sans-serif; }
.sucesso-volta { display: grid; gap: 10px; width: min(520px, 70vw); color: var(--suave); font-size: clamp(17px, 2.5vh, 26px); }
.sucesso-barra { height: 10px; border-radius: 99px; background: #d3d7dd; overflow: hidden; }
.sucesso-barra span { display: block; height: 100%; width: 100%; background: var(--vermelho); transform-origin: left; }
.sucesso-barra span.corre { animation: encolhe 10s linear forwards; }
@keyframes encolhe { to { transform: scaleX(0); } }

/* ===== Totem de saída (faturamento) ===== */
.app-fat { grid-template-rows: var(--topo-h) minmax(0, 1fr) auto; }

/* Rodapé de simulação: só no protótipo */
.proto-barra { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 6px clamp(20px, 3vw, 48px); background: var(--fundo-2); border-top: 2px dashed #8a929e; }
.proto-rotulo { margin-right: 6px; color: #444c58; font-size: clamp(12px, 1.7vh, 15px); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.proto-barra .botao-demo { min-height: 36px; padding: 0 14px; border-radius: 10px; background: #fff; font-size: clamp(12px, 1.8vh, 15px); }
.proto-barra .botao-demo[data-bip] { border-left: 8px solid var(--c, #6f7783); }

/* 1. Ocioso */
.fat-ocioso { display: grid; grid-template-rows: auto auto minmax(0, 1fr); justify-items: center; align-items: center; gap: clamp(10px, 2.2vh, 26px); padding: clamp(14px, 3vh, 34px) clamp(24px, 5vw, 96px) clamp(8px, 2vh, 24px); text-align: center; overflow: hidden; }
.fat-ocioso h1 { font-size: clamp(44px, 8.6vh, 96px); line-height: 1.02; letter-spacing: -.03em; font-weight: 750; }
.fat-instrucao { display: grid; gap: clamp(6px, 1.2vh, 14px); padding: clamp(10px, 1.8vh, 22px) clamp(20px, 3vh, 40px); border: 2px solid var(--linha-forte); border-radius: 20px; background: #fff; box-shadow: 0 2px 8px rgba(20, 23, 28, .10); text-align: left; }
.fat-instrucao p { display: flex; align-items: center; gap: 16px; font-size: clamp(22px, 3.5vh, 38px); font-weight: 650; }
.fat-instrucao b { flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: 50%; background: var(--vermelho); color: #fff; font-size: .9em; }
.fat-instrucao em { font-style: normal; font-weight: 800; color: var(--verde); }
.fat-leitor .leitor-anim { width: clamp(150px, 32vh, 340px); }
.fat-seta-leitor { width: 56%; height: 56%; stroke-width: 3; animation: desce 1.1s ease-in-out infinite; }
@keyframes desce { 0%, 100% { transform: translateY(-8%); } 50% { transform: translateY(10%); } }

/* 2 a 5 e 7. Lendo, avisos, impressão e erro: bloco sólido de uma cor (verde, amarelo, vermelho) */
.fat-status { --bloco: #fff; --on: #14171c; --icone-cor: var(--vermelho); display: grid; grid-template-rows: minmax(0, 1fr) auto auto; background: var(--bloco); color: var(--on); overflow: hidden; }
.fat-status[data-cor="verde"] { --bloco: #0a7d4a; --on: #fff; --icone-cor: #0a7d4a; }
.fat-status[data-cor="amarelo"] { --bloco: #ffc933; --on: #14171c; --icone-cor: #14171c; }
.fat-status[data-cor="vermelho"] { --bloco: #dc0d1d; --on: #fff; --icone-cor: #dc0d1d; }
.fat-status-corpo { min-height: 0; display: flex; align-items: center; justify-content: center; gap: clamp(28px, 5vw, 96px); padding: 0 clamp(24px, 5vw, 96px); }
.fat-icone { position: relative; flex: none; display: grid; place-items: center; width: clamp(180px, 34vh, 360px); aspect-ratio: 1; border-radius: 50%; border: clamp(6px, 1vh, 10px) solid var(--on); background: #fff; color: var(--icone-cor); box-shadow: 0 10px 30px rgba(0, 0, 0, .22); }
.fat-icone svg { width: 58%; height: 58%; stroke-width: 1.7; }
.fat-icone.gira::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 8px solid transparent; border-top-color: var(--on); animation: gira 1s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }
.fat-status-texto { display: grid; gap: clamp(10px, 2vh, 24px); justify-items: start; min-width: 0; max-width: 52vw; }
.fat-chip { display: inline-block; padding: 6px 22px; border: 3px solid var(--on); border-radius: 999px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; font-size: clamp(18px, 2.8vh, 30px); }
.fat-status h1 { font-size: clamp(40px, 7.4vh, 84px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
.fat-sub { font-size: clamp(22px, 3.6vh, 38px); line-height: 1.25; font-weight: 600; }
.fat-codigo { padding: 0 clamp(20px, 3vh, 36px); border: 4px solid var(--on); border-radius: 20px; background: #fff; color: var(--texto); font-size: clamp(48px, 9vh, 100px); font-weight: 800; letter-spacing: .1em; font-variant-numeric: tabular-nums; }
.fat-seta { display: grid; place-items: center; height: clamp(70px, 14vh, 150px); }
.fat-seta svg { height: 100%; aspect-ratio: 1; stroke-width: 3; animation: desce 1.1s ease-in-out infinite; }
.fat-barra { height: 10px; background: rgba(0, 0, 0, .22); }
.fat-barra span { display: block; height: 100%; background: var(--on); transform-origin: left; }

/* 6. Aguarde */
.fat-aguarde { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 110px); padding: 0 clamp(24px, 5vw, 96px); overflow: hidden; }
.fat-anel { position: relative; flex: none; display: grid; place-items: center; width: clamp(240px, 52vh, 520px); aspect-ratio: 1; }
.fat-anel svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); stroke-width: 5; }
.fat-anel .trilho { stroke: #d3d7dd; }
.fat-anel .avanco { stroke: var(--vermelho); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset .9s linear; }
.fat-tempo { font-size: clamp(64px, 15vh, 170px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fat-aguarde-texto { display: grid; gap: clamp(10px, 2vh, 22px); justify-items: start; min-width: 0; max-width: 42vw; }
.fat-aguarde-texto h1 { font-size: clamp(36px, 7vh, 80px); line-height: 1.04; letter-spacing: -.025em; font-weight: 800; }
.fat-regra { padding: clamp(10px, 1.6vh, 18px) clamp(16px, 2.4vh, 26px); border: 2px solid var(--linha-forte); border-left: 8px solid var(--vermelho); border-radius: 14px; background: #fff; font-size: clamp(20px, 3.1vh, 32px); font-weight: 600; }
.fat-aviso { visibility: hidden; padding: 8px 18px; border-radius: 12px; background: var(--amarelo); color: var(--texto); font-size: clamp(18px, 2.8vh, 28px); font-weight: 700; }
.fat-aguarde.bloqueado .fat-aviso { visibility: visible; }
.fat-aguarde.bloqueado .fat-anel { animation: treme .42s ease-in-out; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
