/* OPERAÇÃO CINEFLOW · funil cinematográfico
   Identidade CineFlowPro (preto, azul, verde-lima, Inter + JetBrains Mono) com vermelho só para alerta. */
@font-face { font-family: 'Inter'; src: url('../../assets/fonts/inter-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../assets/fonts/inter-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../assets/fonts/inter-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../../assets/fonts/inter-latin-900-normal.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../../assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('../../assets/fonts/jetbrains-mono-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --preto: #030407;
  --grafite: #0c0f16;
  --grafite-2: #141925;
  --azul: #1558C9;
  --azul-claro: #4f8cf0;
  --lima: #D4FF24;
  --vermelho: #ff3b3b;
  --vermelho-esc: #b3121b;
  --texto: #EDF1F8;
  --texto-2: #A9B3C6;
  --texto-3: #6f7a90;
  --linha: rgba(79, 140, 240, .22);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --seguro-topo: env(safe-area-inset-top, 0px);
  --seguro-base: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--preto); color: var(--texto); font-family: var(--sans); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pular { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--lima); color: var(--preto); padding: 8px 14px; border-radius: 8px; font-weight: 800; }
.pular:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.lima { color: var(--lima); }
.noscript { position: fixed; inset: auto 16px 16px; z-index: 300; background: var(--grafite); padding: 16px; border-radius: 12px; }
.noscript a { color: var(--lima); }

/* ================= AMBIENTE ================= */
.ambiente { position: fixed; inset: 0; z-index: 0; overflow: hidden; background:
  radial-gradient(120% 80% at 50% 115%, rgba(21, 88, 201, .22), transparent 60%),
  radial-gradient(60% 50% at 50% 0%, rgba(40, 60, 100, .18), transparent 70%),
  linear-gradient(#05070c, #030407); }
.amb-luz { position: absolute; left: 50%; top: -20%; width: 80vmax; height: 90vmax; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(120, 160, 230, .10), transparent); filter: blur(10px); animation: respira 9s ease-in-out infinite; }
@keyframes respira { 50% { opacity: .6; } }
.amb-monitores { position: absolute; inset: 0; display: none; }
.amb-monitores i { position: absolute; bottom: 14%; width: 18vw; height: 22vh; border-radius: 6px; background: linear-gradient(160deg, rgba(21, 88, 201, .28), rgba(21, 88, 201, .04)); box-shadow: 0 0 80px 10px rgba(21, 88, 201, .12); filter: blur(14px); opacity: .55; animation: tremeluz 6s steps(1) infinite; }
.amb-monitores i:nth-child(1) { left: 6%; transform: perspective(600px) rotateY(28deg); }
.amb-monitores i:nth-child(2) { right: 6%; transform: perspective(600px) rotateY(-28deg); animation-delay: -2s; }
.amb-monitores i:nth-child(3) { left: 50%; bottom: auto; top: 6%; width: 30vw; height: 10vh; transform: translateX(-50%); opacity: .25; }
@keyframes tremeluz { 0%, 100% { opacity: .55; } 47% { opacity: .5; } 48% { opacity: .3; } 49% { opacity: .55; } }
.amb-alerta { position: absolute; inset: -20%; opacity: 0; transition: opacity 1.2s ease; background: conic-gradient(from 0deg at 50% 40%, rgba(255, 30, 40, .0) 0deg, rgba(255, 30, 40, .34) 30deg, rgba(255, 30, 40, 0) 70deg, rgba(255, 30, 40, 0) 360deg); mix-blend-mode: screen; }
.amb-grade { position: absolute; inset: 0; opacity: .5; background:
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 3px),
  linear-gradient(90deg, rgba(79, 140, 240, .05) 1px, transparent 1px) 0 0 / 64px 64px,
  linear-gradient(rgba(79, 140, 240, .05) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
.amb-vinheta { position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, .8)); }
.amb-grao { position: absolute; inset: -50%; opacity: .06; pointer-events: none; animation: grao 1s steps(4) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes grao { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }

/* níveis de ameaça (classe no body) */
body.ameaca-1 .amb-alerta { opacity: .25; animation: gira 6s linear infinite; }
body.ameaca-2 .amb-alerta { opacity: .55; animation: gira 2.6s linear infinite; }
body.ameaca-3 .amb-alerta { opacity: .85; animation: gira 1.6s linear infinite; }
body.ameaca-2 .ambiente, body.ameaca-3 .ambiente { background-color: #0a0204; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ================= HUD lateral ================= */
.hud { position: fixed; z-index: 2; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--texto-3); display: none; width: 230px; }
.hud-esq { left: clamp(24px, 5vw, 80px); }
.hud-dir { right: clamp(24px, 5vw, 80px); text-align: right; }
.hud-titulo { color: var(--texto-2); font-weight: 600; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--linha); }
.hud-dados { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; }
.hud-dados dt { color: var(--texto-3); }
.hud-dados dd { color: var(--texto-2); transition: color .4s; }
body.ameaca-2 #hudStatus, body.ameaca-3 #hudStatus { color: var(--vermelho); }
.hud-sinal { margin-top: 22px; width: 220px; height: 56px; opacity: .8; }
.hud-tc { font-size: 22px; letter-spacing: .08em; color: var(--texto-2); margin-bottom: 18px; font-variant-numeric: tabular-nums; }
.hud-log { list-style: none; display: grid; gap: 7px; min-height: 160px; }
.hud-log li { animation: entra-log .5s var(--ease) both; }
.hud-log li.r { color: var(--vermelho); }
.hud-log li.l { color: var(--lima); }
@keyframes entra-log { from { opacity: 0; transform: translateX(10px); } }

/* ================= APARELHO ================= */
.aparelho { position: fixed; z-index: 5; left: 50%; top: 50%; width: 100vw; height: 100vh; height: 100dvh; transform: translate(-50%, -50%); outline: none; }
.tela { position: absolute; inset: 0; overflow: hidden; container-type: size; background:
  radial-gradient(120% 60% at 50% 0%, rgba(21, 88, 201, .20), transparent 60%),
  radial-gradient(100% 50% at 50% 100%, rgba(21, 88, 201, .10), transparent 70%),
  linear-gradient(180deg, #0a0e18 0%, #05070c 55%, #030407 100%); isolation: isolate; }
.tela::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .02) 0 1px, transparent 1px 4px); }

@media (min-width: 720px) and (min-height: 480px) {
  .hud, .amb-monitores { display: block; }
  .aparelho { width: min(400px, calc((100dvh - 48px) * .4618)); height: min(866px, calc(100dvh - 48px)); border-radius: 56px; padding: 12px; background: linear-gradient(145deg, #2a2f3a, #0e1118 40%, #1b1f28); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .06), 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 120px -10px rgba(21, 88, 201, .25); }
  .tela { inset: 12px; border-radius: 44px; }
  body.ameaca-2 .aparelho, body.ameaca-3 .aparelho { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 140px -10px rgba(255, 40, 50, .35); }
}
@media (min-width: 720px) and (max-width: 980px), (max-height: 619px) { .hud { display: none; } }

/* vibração visual */
.aparelho.vibra { animation: vibra .42s linear 0s 2; }
@keyframes vibra { 0%, 100% { transform: translate(-50%, -50%); } 10%, 50%, 90% { transform: translate(calc(-50% - 3px), -50%) rotate(-.6deg); } 30%, 70% { transform: translate(calc(-50% + 3px), -50%) rotate(.6deg); } }
.aparelho.treme { animation: treme .38s cubic-bezier(.36, .07, .19, .97) both; }
.aparelho.treme-forte { animation: treme-forte .7s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes treme { 20% { transform: translate(calc(-50% - 4px), calc(-50% + 2px)); } 40% { transform: translate(calc(-50% + 5px), calc(-50% - 2px)); } 60% { transform: translate(calc(-50% - 3px), -50%); } 80% { transform: translate(calc(-50% + 2px), calc(-50% + 1px)); } }
@keyframes treme-forte { 10% { transform: translate(calc(-50% - 12px), calc(-50% + 6px)) rotate(-1.2deg); } 25% { transform: translate(calc(-50% + 14px), calc(-50% - 8px)) rotate(1.4deg); } 40% { transform: translate(calc(-50% - 9px), calc(-50% + 4px)) rotate(-.8deg); } 60% { transform: translate(calc(-50% + 6px), calc(-50% - 3px)); } 80% { transform: translate(calc(-50% - 3px), -50%); } }
body.fuga .aparelho { animation: fuga .5s ease-in-out infinite; }
@keyframes fuga { 0%, 100% { transform: translate(-50%, -50%) rotate(0); } 25% { transform: translate(calc(-50% - 5px), calc(-50% + 4px)) rotate(-.8deg); } 75% { transform: translate(calc(-50% + 5px), calc(-50% - 3px)) rotate(.8deg); } }

/* barra de status */
.barra-status { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + var(--seguro-topo)) 26px 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ilha { width: 112px; height: 32px; border-radius: 20px; background: #000; display: none; }
@media (min-width: 720px) and (min-height: 480px) { .ilha { display: block; } .barra-status { padding-top: 12px; } }
.icones { display: flex; align-items: center; gap: 6px; }
.sinal { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sinal b { width: 3px; background: var(--texto); border-radius: 1px; transition: opacity .3s, background .3s; }
.sinal b:nth-child(1) { height: 4px; } .sinal b:nth-child(2) { height: 6px; } .sinal b:nth-child(3) { height: 9px; } .sinal b:nth-child(4) { height: 12px; }
.sinal[data-n="2"] b:nth-child(n+3), .sinal[data-n="1"] b:nth-child(n+2), .sinal[data-n="0"] b { opacity: .22; }
.sinal[data-n="1"] b:first-child, .sinal[data-n="0"] b:first-child { background: var(--vermelho); }
.rede { font-style: normal; font-size: 12px; font-weight: 800; }
.bateria { width: 25px; height: 12px; border: 1.5px solid rgba(237, 241, 248, .6); border-radius: 4px; padding: 1.5px; position: relative; }
.bateria b { display: block; height: 100%; width: 62%; background: var(--texto); border-radius: 1.5px; }

/* ================= TELAS (estados) ================= */
.t { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; padding: calc(64px + var(--seguro-topo)) 24px calc(28px + var(--seguro-base)); opacity: 0; visibility: hidden; transition: opacity .7s var(--ease), visibility 0s .7s, transform .7s var(--ease); transform: scale(1.02); }
body[data-estado="recebendo"] .t-recebendo,
body[data-estado="recusada"] .t-recusada,
body[data-estado="diretor"] .t-diretor,
body[data-estado="interrompido"] .t-diretor,
body[data-estado="perdida"] .t-perdida,
body[data-estado="contato"] .t-perdida,
body[data-estado="secretaria"] .t-secretaria,
body[data-estado="oferta"] .t-oferta,
body[data-estado="transferencia"] .t-transferencia,
body[data-estado="fim"] .t-fim { opacity: 1; visibility: visible; transition: opacity .7s var(--ease), visibility 0s, transform .7s var(--ease); transform: none; }

.rotulo-topo { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--texto-2); display: flex; align-items: center; gap: 8px; }
.pisca { width: 7px; height: 7px; border-radius: 50%; background: var(--vermelho); box-shadow: 0 0 10px var(--vermelho); animation: pisca 1.2s ease-in-out infinite; }
.pisca-lima { background: var(--lima); box-shadow: 0 0 10px var(--lima); }
.pisca-azul { background: var(--azul-claro); box-shadow: 0 0 10px var(--azul-claro); }
@keyframes pisca { 50% { opacity: .25; } }
.cadeado { width: 10px; height: 8px; border: 1.5px solid var(--lima); border-radius: 2px; position: relative; margin-top: 4px; }
.cadeado::before { content: ''; position: absolute; left: 1px; top: -6px; width: 5px; height: 5px; border: 1.5px solid var(--lima); border-bottom: 0; border-radius: 4px 4px 0 0; }

.contato { margin-top: clamp(28px, 9vh, 90px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.contato-p { margin-top: clamp(40px, 12vh, 110px); }
.avatar { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #23304d, #0a0f1c 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 20px 50px -10px rgba(0, 0, 0, .8); margin-bottom: 26px; }
.avatar b { font-size: 46px; font-weight: 900; letter-spacing: -.02em; background: linear-gradient(180deg, #fff, #8fa6cf); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avatar-p { width: 84px; height: 84px; margin-bottom: 18px; }
.avatar-p b { font-size: 34px; }
.onda-anel { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(79, 140, 240, .5); animation: anel 2.4s var(--ease) infinite; }
.onda-anel:nth-child(2) { animation-delay: .8s; } .onda-anel:nth-child(3) { animation-delay: 1.6s; }
@keyframes anel { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.nome { font-size: clamp(34px, 9vw, 42px); font-weight: 800; letter-spacing: .06em; line-height: 1.05; }
.nome-m { font-size: clamp(24px, 6.6vw, 30px); letter-spacing: .08em; }
.nome-p { font-size: 26px; letter-spacing: .04em; }
.sub { margin-top: 8px; color: var(--texto-2); font-size: 15px; }
.sub.mono { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.dica { margin-top: auto; margin-bottom: 18px; font-size: 12px; color: var(--texto-3); letter-spacing: .04em; transition: opacity .4s; }
.dica.some { opacity: 0; }

.acoes-chamada { width: 100%; max-width: 330px; display: flex; justify-content: space-between; margin-bottom: clamp(12px, 5vh, 46px); }
.acao { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--texto-2); }
.bt-redondo { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s var(--ease), box-shadow .25s; }
.bt-redondo svg { width: 34px; height: 34px; fill: #fff; }
.bt-recusar { background: #e5262f; box-shadow: 0 10px 30px -8px rgba(229, 38, 47, .7); }
.bt-atender { background: #22c55e; box-shadow: 0 10px 30px -8px rgba(34, 197, 94, .8); animation: chama 1.6s ease-in-out infinite; }
.bt-atender svg { animation: balanca 1.6s ease-in-out infinite; }
@keyframes chama { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55), 0 10px 30px -8px rgba(34, 197, 94, .8); } 60% { box-shadow: 0 0 0 18px rgba(34, 197, 94, 0), 0 10px 30px -8px rgba(34, 197, 94, .8); } }
@keyframes balanca { 0%, 40%, 100% { transform: rotate(0); } 8%, 24% { transform: rotate(-14deg); } 16%, 32% { transform: rotate(14deg); } }
.bt-redondo:active { transform: scale(.92); }
.atalho { font-size: 12px; color: var(--texto-3); text-decoration: underline; text-underline-offset: 3px; margin-bottom: 4px; }

/* recusada */
.aviso-mono { margin-top: 26px; font-family: var(--mono); font-size: 12px; color: var(--texto-3); letter-spacing: .06em; text-align: center; max-width: 280px; line-height: 1.6; }
.pilha-bt { margin-top: auto; width: 100%; max-width: 320px; display: grid; gap: 12px; margin-bottom: 12px; }
.bt-largo { min-height: 54px; border-radius: 999px; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; transition: transform .25s var(--ease); }
.bt-largo:active { transform: scale(.97); }
.bt-lima { background: var(--lima); color: var(--preto); }
.bt-linha { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); color: var(--texto-2); }
.t-fim .bt-largo { margin-top: auto; margin-bottom: 12px; width: 100%; max-width: 320px; }

/* ===== chamada ativa ===== */
.chamada-topo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 14px; }
.chamada-topo .nome { margin-top: 12px; }
.tempo { margin-top: 6px; font-family: var(--mono); font-size: 14px; color: var(--texto-2); font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.onda { width: 100%; max-width: 330px; height: 64px; margin-top: 18px; }

.dossie { width: 100%; max-width: 330px; margin-top: 14px; display: grid; gap: 10px; }
.dossie-l { display: grid; gap: 6px; align-items: start; font-size: 12px; opacity: 0; transform: translateY(8px); transition: opacity .6s var(--ease), transform .6s var(--ease); padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.dossie-l.on { opacity: 1; transform: none; }
.dossie-l > span { font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--texto-3); }
.dossie-l > b { font-weight: 600; color: var(--texto); letter-spacing: .04em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips i { font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; padding: 4px 8px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--texto-3); transition: all .4s var(--ease); }
.chips i.on { color: var(--preto); background: var(--lima); box-shadow: none; }
.chips.lista i { opacity: 0; transform: translateY(4px); color: var(--texto); box-shadow: inset 0 0 0 1px rgba(79, 140, 240, .55); background: rgba(21, 88, 201, .18); }
.chips.lista i.on { opacity: 1; transform: none; color: var(--texto); background: rgba(21, 88, 201, .18); }
body.ameaca-2 .dossie, body.ameaca-3 .dossie { opacity: .25; filter: blur(1px); transition: opacity 1s, filter 1s; }

.alerta-faixa { position: absolute; left: 16px; right: 16px; top: calc(52% - 30px); text-align: center; font-family: var(--mono); font-weight: 600; font-size: 13px; letter-spacing: .2em; color: #fff; padding: 12px; border-radius: 8px; background: rgba(179, 18, 27, .72); box-shadow: 0 0 0 1px rgba(255, 59, 59, .7), 0 0 40px rgba(255, 59, 59, .35); opacity: 0; transform: scaleY(.6); transition: opacity .25s, transform .25s var(--ease); pointer-events: none; backdrop-filter: blur(4px); }
.alerta-faixa.on { opacity: 1; transform: none; animation: faixa 1s steps(1) infinite; }
@keyframes faixa { 50% { background: rgba(120, 10, 16, .7); } }

.cartao-contato { position: absolute; left: 20px; right: 20px; top: calc(52% + 30px); padding: 14px 16px; border-radius: 14px; background: rgba(12, 15, 22, .92); box-shadow: inset 0 0 0 1px rgba(212, 255, 36, .45), 0 20px 40px -10px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(14px); transition: all .6s var(--ease); }
.cartao-contato.on { opacity: 1; transform: none; }
.cc-rot { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--lima); }
.cc-nome { font-weight: 800; letter-spacing: .1em; margin-top: 4px; }
.cc-num { font-family: var(--mono); font-size: 24px; letter-spacing: .14em; margin-top: 6px; min-height: 32px; }
.cc-num span { animation: pisca .8s steps(1) infinite; color: var(--lima); }

/* ===== comunicação perdida ===== */
.t-perdida { justify-content: flex-start; }
.terminal { width: 100%; max-width: 330px; margin-top: clamp(20px, 6vh, 60px); font-family: var(--mono); font-size: 13px; line-height: 1.7; letter-spacing: .08em; min-height: 120px; }
.term-l { opacity: 0; white-space: pre-wrap; }
.term-l.on { opacity: 1; }
.term-titulo { color: var(--texto-2); font-weight: 600; letter-spacing: .2em; margin-bottom: 6px; }
.term-vermelho { color: var(--vermelho); }
.term-l .cursor { display: inline-block; width: .6em; height: 1.1em; background: currentColor; vertical-align: -.2em; animation: pisca .7s steps(1) infinite; }
body[data-estado="contato"] .terminal { opacity: .45; transition: opacity .8s; }
.contato-sec { margin-top: auto; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; opacity: 0; transform: translateY(20px); transition: all .9s var(--ease); pointer-events: none; padding-bottom: 8px; }
body[data-estado="contato"] .contato-sec { opacity: 1; transform: none; pointer-events: auto; }
.avatar-sec { width: 92px; height: 92px; margin-bottom: 16px; background: radial-gradient(circle at 35% 30%, #1c3a2a, #0a120c 70%); }
.avatar-sec b { font-size: 38px; background: linear-gradient(180deg, #fff, var(--lima)); -webkit-background-clip: text; background-clip: text; }
.avatar-sec .onda-anel { border-color: rgba(212, 255, 36, .45); }
.sec-rot { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--lima); margin-bottom: 8px; }
.aguardando { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-2); }
.bt-ligar { margin-top: clamp(20px, 5vh, 40px); width: 100%; max-width: 320px; min-height: 64px; border-radius: 999px; background: #22c55e; color: #fff; font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 12px; animation: chama 1.6s ease-in-out infinite; transition: transform .25s var(--ease); }
.bt-ligar svg { width: 24px; height: 24px; fill: #fff; }
.bt-ligar:active { transform: scale(.97); }
.bt-ligar:disabled { opacity: .5; animation: none; }

/* ===== secretária ===== */
.monitor { width: 100%; max-width: 330px; margin-top: 16px; display: grid; gap: 10px; font-size: 12px; }
.mon-linha { display: grid; grid-template-columns: 82px 1fr; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); }
.mon-linha > span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: var(--texto-3); }
.mon-linha > b { font-family: var(--mono); font-weight: 600; letter-spacing: .08em; font-size: 11px; color: var(--texto-2); }
#monConexao.ok { color: var(--lima); }
#monArquivo.ok { color: var(--lima); }
#monArquivo.abrindo { color: var(--azul-claro); animation: pisca .5s steps(1) infinite; }
.mon-prog { height: 3px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.mon-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--azul), var(--azul-claro)); }

/* ===== legenda e controles ===== */
.legenda { position: absolute; z-index: 15; left: 18px; right: 18px; bottom: calc(118px + var(--seguro-base)); min-height: 52px; display: flex; align-items: flex-end; justify-content: center; text-align: center; pointer-events: none; opacity: 0; transition: opacity .4s; }
.legenda p { font-size: 16px; line-height: 1.4; font-weight: 600; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .9); background: rgba(3, 4, 7, .55); padding: 6px 10px; border-radius: 8px; max-width: 340px; }
.legenda p:empty { display: none; }
body.com-legenda:is([data-estado="diretor"], [data-estado="interrompido"], [data-estado="secretaria"], [data-estado="demo"], [data-estado="oferta"]) .legenda { opacity: 1; }
body[data-estado="oferta"] .legenda { bottom: calc(96px + var(--seguro-base)); }

.controles { position: absolute; z-index: 16; left: 0; right: 0; bottom: calc(20px + var(--seguro-base)); display: flex; justify-content: center; gap: 18px; padding: 0 18px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .5s var(--ease); }
body:is([data-estado="diretor"], [data-estado="interrompido"], [data-estado="secretaria"], [data-estado="demo"], [data-estado="oferta"]) .controles { opacity: 1; visibility: visible; transform: none; }
.ctl { width: 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--texto-2); }
.ctl svg { width: 52px; height: 52px; padding: 14px; border-radius: 50%; background: rgba(255, 255, 255, .1); fill: #fff; backdrop-filter: blur(10px); transition: background .25s, fill .25s; }
.ctl[aria-pressed="true"] svg { background: #fff; fill: var(--preto); }
.ctl .ic-mudo { display: none; }
#btMudo[aria-pressed="true"] .ic-som { display: none; }
#btMudo[aria-pressed="true"] .ic-mudo { display: block; }
.ctl-desligar svg { background: #e5262f; }
.ctl-vol { display: none; align-items: center; padding-bottom: 22px; }
.ctl-vol input { width: 90px; accent-color: var(--lima); }
@media (hover: hover) and (pointer: fine) { .ctl-vol.suporta { display: flex; } }
body[data-estado="demo"] .ctl svg { background: rgba(3, 4, 7, .6); }

.aviso-audio { position: absolute; z-index: 18; left: 16px; right: 16px; top: calc(56px + var(--seguro-topo)); padding: 10px 14px; border-radius: 10px; background: rgba(12, 15, 22, .95); box-shadow: inset 0 0 0 1px rgba(255, 59, 59, .5); font-size: 13px; color: var(--texto-2); display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.aviso-audio[hidden] { display: none; }
.link-bt { color: var(--lima); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; white-space: nowrap; }

/* efeitos de tela */
.flash { position: absolute; inset: 0; z-index: 30; background: #fff; opacity: 0; pointer-events: none; }
.flash.on { animation: flash .6s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.glitch { position: absolute; inset: 0; z-index: 31; pointer-events: none; opacity: 0; background:
  repeating-linear-gradient(0deg, rgba(255, 255, 255, .12) 0 2px, transparent 2px 5px),
  linear-gradient(90deg, rgba(255, 0, 60, .25), rgba(0, 120, 255, .25)); mix-blend-mode: screen; }
.glitch.on { animation: glitch .55s steps(6) both; }
@keyframes glitch { 0% { opacity: 1; clip-path: inset(10% 0 60% 0); transform: translateX(-8px); } 20% { clip-path: inset(50% 0 20% 0); transform: translateX(10px); } 40% { clip-path: inset(0 0 85% 0); transform: translateX(-4px); } 60% { clip-path: inset(70% 0 5% 0); transform: translateX(6px); } 80% { clip-path: inset(30% 0 40% 0); } 100% { opacity: 1; clip-path: inset(0); background: #000; } }
body[data-estado="interrompido"] .tela > .t-diretor { filter: grayscale(1) brightness(.4); }
.tela.apagada::after { content: 'SINAL PERDIDO'; position: absolute; inset: 0; z-index: 32; display: grid; place-items: center; background: #000; font-family: var(--mono); font-size: 12px; letter-spacing: .3em; color: var(--vermelho); }

/* ================= DEMONSTRAÇÃO ================= */
.demo { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(3, 4, 7, .96); opacity: 0; visibility: hidden; clip-path: circle(0% at 50% 50%); transition: clip-path 1.1s var(--ease), opacity .4s, visibility 0s 1.1s; }
body[data-estado="demo"] .demo { opacity: 1; visibility: visible; clip-path: circle(150% at 50% 50%); transition: clip-path 1.1s var(--ease), opacity .4s, visibility 0s; }
.demo-moldura { position: relative; height: 100dvh; width: 100vw; overflow: hidden; background: #000; }
.demo-moldura video { width: 100%; height: 100%; object-fit: cover; }
.demo-hud { position: absolute; inset: 14px; pointer-events: none; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: rgba(255, 255, 255, .8); }
.hud-c { position: absolute; width: 18px; height: 18px; border: 1.5px solid rgba(255, 255, 255, .6); }
.hud-c.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; } .hud-c.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-c.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; } .hud-c.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.demo-rec { position: absolute; top: calc(4px + var(--seguro-topo)); left: 28px; display: flex; align-items: center; gap: 6px; color: var(--lima); }
.demo-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--lima); animation: pisca 1s steps(1) infinite; }
.demo-tc { position: absolute; top: calc(4px + var(--seguro-topo)); right: 28px; font-variant-numeric: tabular-nums; }
.demo-titulos { position: absolute; inset: 0; pointer-events: none; }
.demo-titulo { position: absolute; left: 20px; right: 20px; top: calc(76px + var(--seguro-topo)); font-size: clamp(26px, 7.5vw, 34px); font-weight: 900; letter-spacing: -.01em; line-height: 1.02; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0, 0, 0, .9); opacity: 0; transform: translateY(16px); transition: opacity .45s var(--ease), transform .6s var(--ease); }
.demo-titulo span { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .24em; color: var(--lima); margin-bottom: 8px; }
.demo-titulo em { display: block; font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: none; color: var(--texto-2); margin-top: 8px; }
.demo-titulo.on { opacity: 1; transform: none; }
.demo-titulo[data-c="0"] { top: calc(212px + var(--seguro-topo)); }
.demo-nota { position: absolute; left: 28px; right: 28px; top: calc(36px + var(--seguro-topo)); font-size: 10px; color: rgba(255, 255, 255, .6); letter-spacing: .04em; text-shadow: 0 1px 6px #000; }
body[data-estado="demo"] .linha-tempo { top: calc(70px + var(--seguro-topo)); }

.linha-tempo { position: absolute; left: 16px; right: 16px; top: calc(54px + var(--seguro-topo)); padding: 12px; border-radius: 10px; background: rgba(3, 4, 7, .72); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); display: grid; gap: 8px; opacity: 0; transform: translateY(-10px); transition: all .5s var(--ease); }
.linha-tempo.on { opacity: 1; transform: none; }
.lt-faixa { display: grid; grid-template-columns: 70px 1fr; gap: 8px; align-items: center; font-family: var(--mono); font-size: 9px; letter-spacing: .14em; color: var(--texto-3); }
.lt-clips { display: flex; gap: 3px; height: 18px; }
.lt-clips i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #2b5fc4, #1a3f8a); transition: flex .6s var(--ease), opacity .4s, margin .6s; position: relative; }
.lt-clips i.x { background: repeating-linear-gradient(45deg, #b3121b 0 4px, #6d0b10 4px 8px); }
.lt-clips i.x::after { content: attr(data-r); position: absolute; top: -13px; left: 0; font-size: 8px; color: var(--vermelho); letter-spacing: .08em; text-transform: uppercase; }
.linha-tempo.cortou .lt-clips i.x { flex: 0; opacity: 0; margin: 0 -1.5px; }
.lt-leg .lt-clips i { background: var(--lima); opacity: 0; height: 8px; align-self: center; }
.lt-mus .lt-clips i { background: linear-gradient(90deg, rgba(79, 140, 240, .2), rgba(79, 140, 240, .7), rgba(79, 140, 240, .2)); opacity: 0; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease), opacity .3s; }
.linha-tempo.lt-leg-on .lt-leg .lt-clips i { opacity: 1; }
.linha-tempo.lt-mus-on .lt-mus .lt-clips i { opacity: 1; transform: none; }
.lt-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.lt-tags b { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; font-weight: 600; padding: 3px 6px; border-radius: 3px; background: rgba(212, 255, 36, .12); color: var(--lima); opacity: 0; transition: opacity .3s; }
.linha-tempo.tags .lt-tags b { opacity: 1; }
.linha-tempo.tags .lt-tags b:nth-child(2) { transition-delay: .1s; } .linha-tempo.tags .lt-tags b:nth-child(3) { transition-delay: .2s; } .linha-tempo.tags .lt-tags b:nth-child(4) { transition-delay: .3s; } .linha-tempo.tags .lt-tags b:nth-child(5) { transition-delay: .4s; }

@media (min-width: 720px) and (min-height: 480px) and (min-aspect-ratio: 5/4) {
  .demo-moldura { height: min(88dvh, 900px); width: auto; aspect-ratio: 9 / 16; border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 40px 120px -20px rgba(21, 88, 201, .45); }
  .demo-titulos { left: auto; right: auto; inset: 0; }
  .demo-titulos .demo-titulo { top: auto; left: auto; right: calc(50% + min(88dvh, 900px) * .28 + 48px); bottom: 50%; transform: translate(0, calc(50% + 16px)); width: min(360px, calc(50vw - min(88dvh, 900px) * .28 - 80px)); text-align: right; font-size: clamp(28px, 3vw, 44px); }
  .demo-titulos .demo-titulo.on { transform: translate(0, 50%); }
  .demo-nota { left: calc(50% + min(88dvh, 900px) * .28 + 48px); right: auto; top: auto; bottom: 50%; width: 220px; font-size: 11px; line-height: 1.5; }
  body[data-estado="demo"] .linha-tempo { top: 40px; }
  .linha-tempo { top: 40px; }
  .demo-rec, .demo-tc { top: 4px; }
}

/* ================= OFERTA ================= */
.t-oferta { justify-content: center; padding-bottom: calc(150px + var(--seguro-base)); }
.particulas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.oferta { position: relative; width: 100%; max-width: 330px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.of-op { font-family: var(--mono); font-size: 11px; letter-spacing: .3em; color: var(--texto-3); margin-bottom: 14px; }
.of-titulo { font-size: clamp(30px, 9vw, 38px); font-weight: 900; line-height: 1; letter-spacing: -.01em; display: flex; flex-direction: column; gap: 2px; }
.of-lin { display: block; clip-path: inset(0 100% 0 0); transition: clip-path .7s var(--ease); }
.t-oferta.aut .of-lin { clip-path: inset(0 0 0 0); }
.t-oferta.aut .of-lin:nth-child(2) { transition-delay: .15s; } .t-oferta.aut .of-lin:nth-child(3) { transition-delay: .3s; }
.selo { width: 96px; height: 96px; margin: 22px 0 18px; }
.selo svg { width: 100%; height: 100%; fill: none; stroke-linecap: round; }
.selo-a { stroke: rgba(79, 140, 240, .35); stroke-width: 1.5; stroke-dasharray: 4 6; transform-origin: 60px 60px; animation: gira 14s linear infinite; }
.selo-b { stroke: var(--azul-claro); stroke-width: 2; stroke-dasharray: 277; stroke-dashoffset: 277; transition: stroke-dashoffset 1.2s var(--ease), stroke .4s; }
.selo-corpo { stroke: var(--texto); stroke-width: 3; }
.selo-trava { stroke: var(--texto); stroke-width: 3; transition: transform .5s var(--ease) .1s, stroke .3s; transform-origin: 76px 56px; }
.t-oferta.aut .selo-b { stroke-dashoffset: 0; }
.t-oferta.livre .selo-trava { transform: translateY(-9px) rotate(28deg); stroke: var(--lima); }
.t-oferta.livre .selo-corpo, .t-oferta.livre .selo-b { stroke: var(--lima); }
.t-oferta.livre .selo { filter: drop-shadow(0 0 18px rgba(212, 255, 36, .55)); }
.precos { display: grid; gap: 8px; width: 100%; }
.p-ref, .p-esp { display: flex; flex-direction: column; align-items: center; opacity: 0; transform: translateY(12px); transition: all .7s var(--ease); }
.p-ref span, .p-esp span { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--texto-3); }
.p-ref s { font-size: 26px; font-weight: 800; color: var(--texto-2); text-decoration-thickness: 2px; text-decoration-color: rgba(255, 59, 59, 0); transition: text-decoration-color .5s, color .5s; }
.t-oferta.ref .p-ref { opacity: 1; transform: none; }
.t-oferta.livre .p-ref s { text-decoration-color: var(--vermelho); color: var(--texto-3); }
.p-esp strong { font-size: clamp(76px, 24vw, 104px); font-weight: 900; line-height: .95; letter-spacing: -.04em; color: var(--lima); text-shadow: 0 0 40px rgba(212, 255, 36, .45); display: flex; align-items: flex-start; }
.p-esp strong small { font-size: .3em; letter-spacing: 0; margin: .5em .12em 0 0; }
.t-oferta.livre .p-esp { opacity: 1; transform: none; }
.t-oferta.livre .p-esp strong { animation: revela 1s var(--ease) both; }
@keyframes revela { from { filter: blur(14px); transform: scale(1.35); opacity: 0; } to { filter: none; transform: none; opacity: 1; } }

/* ================= TRANSFERÊNCIA ================= */
.t-transferencia { justify-content: center; }
.transf { width: 100%; max-width: 330px; font-family: var(--mono); }
.tr-l { font-size: 13px; letter-spacing: .1em; line-height: 1.6; opacity: 0; transform: translateY(6px); transition: all .5s var(--ease); }
.tr-l.on { opacity: 1; transform: none; }
.tr-ok { color: var(--lima); font-weight: 600; }
.tr-azul { color: var(--azul-claro); }
.reticencias::after { content: ''; animation: pontos 1.2s steps(4) infinite; }
@keyframes pontos { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
.tr-arquivo { display: flex; align-items: center; gap: 14px; margin: 28px 0 14px; padding: 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tr-icone { position: relative; width: 44px; height: 54px; }
.tr-icone svg { width: 100%; height: 100%; fill: none; stroke: var(--lima); stroke-width: 2.5; }
.tr-icone b { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 11px; color: var(--lima); }
.tr-meta { flex: 1; font-size: 13px; color: var(--texto); }
.tr-pct { font-size: 28px; font-weight: 600; color: var(--texto); font-variant-numeric: tabular-nums; }
.tr-barra { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.tr-barra i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--azul), var(--lima)); box-shadow: 0 0 14px rgba(212, 255, 36, .6); }
.tr-log { list-style: none; margin-top: 16px; font-size: 10px; color: var(--texto-3); letter-spacing: .08em; display: grid; gap: 4px; height: 76px; overflow: hidden; }
body.saindo .aparelho, body.saindo .hud { transition: opacity .7s ease, transform .9s var(--ease); opacity: 0; }
body.saindo .aparelho { transform: translate(-50%, -50%) scale(.94); }

/* ================= movimento reduzido ================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important; }
  .aparelho.vibra, .aparelho.treme, .aparelho.treme-forte, body.fuga .aparelho { animation: none !important; }
  .amb-grao { display: none; }
}

/* telas baixas (celulares pequenos, janelas curtas) */
@container (max-height: 760px) {
  .onda { height: 48px; margin-top: 10px; }
  .dossie { gap: 6px; margin-top: 8px; }
  .dossie-l { padding-top: 6px; }
  .chips i { padding: 3px 6px; font-size: 9px; }
  .t-oferta { justify-content: flex-start; padding-top: calc(52px + var(--seguro-topo)); }
  .of-titulo { font-size: 28px; }
  .selo { width: 60px; height: 60px; margin: 12px 0 10px; }
  .p-ref s { font-size: 20px; }
  .p-esp strong { font-size: 72px; }
  .legenda p { font-size: 14px; }
}
.t-recebendo .rotulo-topo { justify-content: center; text-align: center; max-width: 290px; line-height: 1.5; }
/* luz de alerta dentro da tela (no celular a tela cobre o ambiente inteiro) */
body.ameaca-1 .tela { box-shadow: inset 0 0 90px rgba(255, 40, 50, .16); transition: box-shadow 1.2s; }
body.ameaca-2 .tela { animation: luz-alerta 1.8s ease-in-out infinite; }
body.ameaca-3 .tela { animation: luz-alerta 1.1s ease-in-out infinite; }
@keyframes luz-alerta { 0%, 100% { box-shadow: inset 0 0 60px rgba(255, 30, 40, .18); } 50% { box-shadow: inset 0 0 160px rgba(255, 30, 40, .5); } }

/* na demonstração, o aparelho fica por cima só com os controles e a legenda */
body[data-estado="demo"] .aparelho { z-index: 60; background: transparent; box-shadow: none; pointer-events: none; animation: none; }
body[data-estado="demo"] .tela { background: transparent; box-shadow: none; animation: none; }
body[data-estado="demo"] .tela::before, body[data-estado="demo"] .barra-status { opacity: 0; }
body[data-estado="demo"] .controles { pointer-events: auto; }
body[data-estado="demo"] .ctl svg { background: rgba(3, 4, 7, .6); }
body[data-estado="demo"] .ctl-desligar svg { background: #e5262f; }
body[data-estado="demo"] .ctl span { text-shadow: 0 1px 6px #000; }

/* leitura dos títulos sobre o vídeo */
.demo-moldura::after { content: ''; position: absolute; inset: 0 0 auto; height: 46%; pointer-events: none; background: linear-gradient(rgba(3, 4, 7, .72), rgba(3, 4, 7, 0)); }
.demo-moldura .linha-tempo, .demo-moldura .demo-hud { z-index: 2; }
.demo-titulos, .demo-nota { z-index: 3; }
@media (min-width: 720px) and (min-height: 480px) and (min-aspect-ratio: 5/4) { .demo-moldura::after { height: 28%; } }
body[data-estado="demo"] .ctl[aria-pressed="true"] svg { background: #fff; fill: var(--preto); }

/* barra de comando da demonstração (um comando = criação completa) */
.demo-prompt { --sb: calc(112px + var(--seguro-base)); position: absolute; z-index: 4; left: 12px; right: 12px; bottom: var(--sb); padding: 12px 14px 10px; border-radius: 14px; text-align: center; background: rgba(3, 4, 7, .78); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1.5px rgba(212, 255, 36, .7), 0 0 40px rgba(212, 255, 36, .2); opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease) .25s, transform .6s var(--ease) .25s; pointer-events: none; }
body[data-estado="demo"] .demo-prompt { opacity: 1; transform: none; }
.ds-grande { font-size: clamp(22px, 7vw, 30px); font-weight: 900; line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase; color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.ds-grande b { color: var(--lima); font-weight: 900; }
.ds-sub { margin-top: 4px; font-size: clamp(13px, 3.8vw, 16px); font-weight: 600; color: var(--texto); }
.dp-linha { margin-top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--texto-2); overflow-wrap: anywhere; }
.dp-sinal { color: var(--lima); margin-right: 6px; }
.dp-cursor { display: inline-block; width: .55em; height: 1.05em; vertical-align: -.18em; margin-left: 2px; background: var(--lima); animation: pisca .7s steps(1) infinite; }
body[data-estado="demo"] .legenda { bottom: calc(236px + var(--seguro-base)); }
@media (max-width: 719px) and (max-height: 700px) {
  .demo-prompt { --sb: calc(92px + var(--seguro-base)); padding: 8px 12px 7px; }
  .ds-grande { font-size: 22px; }
  .ds-sub { font-size: 13px; margin-top: 2px; }
  .dp-linha { margin-top: 3px; font-size: 11px; }
}
/* tela larga: selo dentro do quadro do vídeo, acima dos controles do telefone */
@media (min-width: 720px) and (min-height: 480px) and (min-aspect-ratio: 5/4) {
  .demo-prompt { --sb: calc(min(88dvh, 900px) * .27); left: 14px; right: 14px; }
  .ds-grande { font-size: clamp(20px, 2.2vw, 28px); }
}
/* tablet em pé */
@media (min-width: 720px) and (min-height: 480px) and (max-aspect-ratio: 5/4) {
  .demo-prompt { --sb: 260px; left: 50%; right: auto; width: min(460px, calc(100vw - 48px)); transform: translate(-50%, 14px); }
  body[data-estado="demo"] .demo-prompt { transform: translate(-50%, 0); }
  body[data-estado="demo"] .legenda { bottom: 130px; }
}
@media (min-width: 720px) and (min-height: 480px) and (min-aspect-ratio: 5/4) {
  .demo-nota { bottom: calc(50% - 40px) !important; }
  body[data-estado="demo"] .legenda { bottom: calc(118px + var(--seguro-base)); }
}

/* ===== celulares baixos (iPhone SE, navegador interno do Instagram/Facebook com barras) ===== */
@container (max-height: 700px) {
  .t { padding-top: calc(48px + var(--seguro-topo)); }
  .chamada-topo { margin-top: 2px; }
  .chamada-topo .nome { margin-top: 4px; font-size: 22px; }
  .tempo { margin-top: 2px; font-size: 12px; }
  .onda { height: 34px; margin-top: 6px; }
  .dossie { margin-top: 4px; gap: 4px; }
  .dossie-l { padding-top: 5px; gap: 4px; }
  .chips { gap: 4px; }
  .chips i { padding: 2px 6px; }
  .monitor { margin-top: 8px; gap: 6px; }
  .mon-linha { padding-top: 6px; }
  .controles { bottom: calc(12px + var(--seguro-base)); gap: 14px; }
  .ctl { gap: 4px; }
  .ctl svg { width: 46px; height: 46px; padding: 12px; }
  .legenda { bottom: calc(92px + var(--seguro-base)); min-height: 0; }
  .legenda p { font-size: 13.5px; padding: 4px 8px; }
  .cartao-contato { top: auto; bottom: calc(184px + var(--seguro-base)); padding: 10px 14px; }
  .cc-num { font-size: 20px; min-height: 26px; margin-top: 2px; }
  .alerta-faixa { top: 29%; }
  .contato { margin-top: 20px; }
  .avatar { width: 92px; height: 92px; margin-bottom: 18px; }
  .acoes-chamada { margin-bottom: 8px; }
  body[data-estado="oferta"] .legenda { bottom: calc(92px + var(--seguro-base)); }
}
@media (max-width: 719px) and (max-height: 700px) {
  body[data-estado="demo"] .legenda { bottom: calc(206px + var(--seguro-base)); }
}
@container (max-height: 600px) {
  .selo { display: none; }
  .of-titulo { font-size: 26px; }
  .p-esp strong { font-size: 64px; }
  .of-op { margin-bottom: 8px; }
  .dossie-l > span { display: none; }
  .avatar-sec { width: 72px; height: 72px; margin-bottom: 10px; }
  .bt-ligar { margin-top: 16px; min-height: 56px; }
}

/* celular deitado: pede para girar */
.girar { display: none; }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .girar { display: grid; place-items: center; position: fixed; inset: 0; z-index: 500; background: var(--preto); text-align: center; padding: 24px; font-family: var(--mono); font-size: 13px; letter-spacing: .12em; color: var(--texto-2); }
  .girar b { display: block; width: 34px; height: 56px; margin: 0 auto 16px; border: 2px solid var(--lima); border-radius: 8px; animation: girar 1.8s var(--ease) infinite; }
}
@keyframes girar { 0%, 30% { transform: rotate(-90deg); } 60%, 100% { transform: rotate(0); } }

/* telas muito baixas (celulares antigos de 4 polegadas com barras do navegador) */
@media (max-width: 719px) and (max-height: 520px) {
  body[data-estado="contato"] .terminal { display: none; }
  .linha-tempo { display: none; }
  .demo-titulo[data-c="0"] { top: calc(76px + var(--seguro-topo)); }
  .demo-titulo { font-size: 22px; }
  .demo-titulo em { font-size: 12px; margin-top: 4px; }
  .selo { display: none; }
  .of-titulo { font-size: 24px; }
  .p-esp strong { font-size: 60px; }
  .of-op { margin-bottom: 6px; }
}

/* tablet em pé: telefone no centro, demonstração em tela cheia; empilha comando acima da legenda e dos botões */
@media (min-width: 720px) and (min-height: 480px) and (max-aspect-ratio: 5/4) {
  body[data-estado="demo"] .legenda { bottom: 130px; }
}

/* telefone estreito (notebook de tela baixa): sem o controle de volume deslizante, para os botões caberem */
@container (max-width: 340px) {
  .ctl-vol.suporta { display: none; }
  .controles { gap: 12px; }
}
