:root {
  --bg: #07111f; --bg2: #0c1a2e; --card: #10223b; --card2: #16304f; --line: #23415f;
  --tx: #e8f1fb; --tx2: #9fb6cf; --tx3: #8aa2bd;   /* tx3 clareado (antes #6f89a6, 4,4:1 no cartão): agora acima de 5:1 em todos os fundos (WCAG AA) */
  --art: #f43f5e; --ven: #6366f1; --o2: #fbbf24; --ok: #34d399; --bad: #fb7185; --warn: #fbbf24;
  --r: 16px; --font: "Sora", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--tx); font-family: var(--font); }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
p { line-height: 1.55; margin: 0.4em 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--tx2); } .faint { color: var(--tx3); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 10px; }
.grow { flex: 1; }

/* Botões com profundidade 3D: volume e reação ao clique */
.btn {
  --c: #2563eb; --c2: #1e40af;
  appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, var(--c) 55%);
  border-radius: 14px; padding: 12px 18px; min-height: 48px;
  box-shadow: 0 5px 0 var(--c2), 0 8px 16px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transform: translateY(0); transition: transform .08s, box-shadow .08s, filter .15s;
  text-shadow: 0 1px 0 rgba(0,0,0,.25);
}
@media (hover: hover) { .btn:hover { filter: brightness(1.07); } }   /* no iPhone o hover grudava depois do toque */
.btn:active, .btn.on { transform: translateY(4px); box-shadow: 0 1px 0 var(--c2), 0 3px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.25); }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; }
.btn.sec { --c: #2a4a6e; --c2: #162c45; }
.btn.ok { --c: #10b981; --c2: #047857; color: #04261b; text-shadow: 0 1px 0 rgba(255,255,255,.28); }   /* texto escuro sobre o verde vivo: 6,4:1 (branco dava 2,5:1) */
.btn.warn { --c: #f59e0b; --c2: #b45309; color: #2b1700; text-shadow: 0 1px 0 rgba(255,255,255,.3); }   /* 8:1 (branco dava 2,2:1) */
.btn.red { --c: #d4143f; --c2: #8c0f2e; }   /* vermelho um pouco mais fundo: texto branco acima de 4,5:1 */
.btn.sm { padding: 7px 12px; min-height: 36px; font-size: 13px; border-radius: 11px; box-shadow: 0 3px 0 var(--c2), 0 5px 10px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.sm:active, .btn.sm.on { transform: translateY(2px); box-shadow: 0 1px 0 var(--c2); }
.btn.block { width: 100%; }

.card {
  background: linear-gradient(180deg, var(--card2), var(--card)); border-radius: var(--r); padding: 16px;
  box-shadow: 0 6px 0 #081526, 0 12px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.04);
}
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #1b3555; color: #cfe2f7; }
.chip.law { background: #2a1f4d; color: #d9ccff; }
.badge { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; font-weight: 800; color: #fff;
  box-shadow: 0 3px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.4); }

.opt { display: block; width: 100%; text-align: left; padding: 12px 14px; margin: 6px 0; border-radius: 13px; cursor: pointer; font: inherit; color: var(--tx);
  background: #132a46; border: 0; box-shadow: 0 4px 0 #0a1a2d, inset 0 1px 0 rgba(255,255,255,.06); transition: transform .08s; }
.opt:active { transform: translateY(3px); box-shadow: 0 1px 0 #0a1a2d; }
.opt.sel { background: #1d4b7a; box-shadow: 0 2px 0 #0a1a2d, 0 0 0 2px #60a5fa inset; transform: translateY(2px); }
.opt.right { background: #0f3d33; box-shadow: 0 2px 0 #072a22, 0 0 0 2px var(--ok) inset; }
.opt.wrong { background: #3d1422; box-shadow: 0 2px 0 #2a0b16, 0 0 0 2px var(--bad) inset; }
input[type=text], textarea, input[type=number], select {
  width: 100%; font: inherit; color: var(--tx); background: #0b1a2c; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; min-height: 46px;
}
textarea { min-height: 80px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #8fa7c2; opacity: 1; }   /* o cinza padrão do navegador dava 3,8:1 */
/* Foco por teclado visível em tudo que se clica (antes só o slider tinha) */
button:focus-visible, .btn:focus-visible, .opt:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; }
/* Slider 3D: trilho afundado e botão com volume, que afunda ao arrastar */
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; touch-action: pan-y; }
input[type=range]::-webkit-slider-runnable-track { height: 10px; border-radius: 999px; background: #0b1a2c; box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.07); }
input[type=range]::-moz-range-track { height: 10px; border-radius: 999px; background: #0b1a2c; box-shadow: inset 0 2px 3px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.07); }
input[type=range]::-moz-range-progress { height: 10px; border-radius: 999px; background: #3b82f6; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; margin-top: -8px; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, #bfdbfe, #3b82f6 60%); box-shadow: 0 4px 0 #1e40af, 0 6px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .08s, box-shadow .08s; }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: linear-gradient(180deg, #bfdbfe, #3b82f6 60%); box-shadow: 0 4px 0 #1e40af, 0 6px 10px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.7); transition: transform .08s, box-shadow .08s; }
input[type=range]:active::-webkit-slider-thumb { transform: translateY(3px); box-shadow: 0 1px 0 #1e40af, 0 2px 4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5); }
input[type=range]:active::-moz-range-thumb { transform: translateY(3px); box-shadow: 0 1px 0 #1e40af, 0 2px 4px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.5); }
input[type=range]:focus-visible { outline: 2px solid #60a5fa; outline-offset: 4px; border-radius: 999px; }
button, .btn, .opt, a, input[type=range] { -webkit-tap-highlight-color: transparent; }
.dirs { display: flex; gap: 6px; }
.dirs .btn { flex: 1; font-size: 20px; padding: 6px; min-height: 44px; }

table.vals { width: 100%; border-collapse: collapse; font-size: 14px; }
table.vals td, table.vals th { padding: 7px 6px; border-bottom: 1px solid #1d3654; text-align: left; }
table.vals th { color: var(--tx3); font-weight: 600; font-size: 12px; }
table.vals td.n { font-family: var(--mono); text-align: right; white-space: nowrap; }

/* ----- Telão ----- */
.telao { position: relative; width: 100%; aspect-ratio: 16 / 9; background: radial-gradient(1200px 600px at 50% -10%, #12345a 0%, var(--bg) 60%); overflow: hidden; border-radius: 18px; container-type: inline-size; }
.telao:fullscreen { width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.telao .tin { position: absolute; inset: 0; padding: 2.2cqw 2.6cqw; display: flex; flex-direction: column; gap: 1.4cqw; font-size: 1.25cqw; }
.telao h1 { font-size: 3cqw; } .telao h2 { font-size: 2.1cqw; } .telao h3 { font-size: 1.5cqw; }
.telao .top { display: flex; align-items: center; gap: 1.2cqw; }
.telao .fase { font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; color: var(--o2); font-weight: 700; }
.telao .fsbtn { position: absolute; right: 1cqw; bottom: 1cqw; z-index: 5; opacity: .85; }
.telao .big { font-size: 1.7cqw; line-height: 1.5; }
.telao .card { padding: 1.2cqw; border-radius: 1.2cqw; }
.telao .grid { display: grid; gap: 1cqw; }
.telao .chip { font-size: .95cqw; padding: .3cqw .8cqw; }
.metro { width: 100%; height: auto; }
.metro .st-label { font: 700 15px var(--font); fill: var(--tx); }
.metro .st-sub { font: 500 12px var(--font); fill: var(--tx2); }
.metro .st-val { font: 600 13px var(--mono); fill: #fff; }
.metro.grande .st-label { font-size: 22px; } .metro.grande .st-sub { font-size: 17px; } .metro.grande .st-val { font-size: 18px; }
.prog { height: .9cqw; background: #12263f; border-radius: 99px; overflow: hidden; }
.prog > i { display: block; height: 100%; background: linear-gradient(90deg, #38bdf8, #a78bfa); border-radius: 99px; transition: width .4s; }

/* ----- Celular ----- */
.phone { background: var(--bg2); color: var(--tx); font-size: 15px; display: flex; flex-direction: column; min-height: 100%; }
.phone .hd { position: sticky; top: 0; z-index: 3; padding: 10px 14px; display: flex; align-items: center; gap: 10px; background: rgba(12,26,46,.94); backdrop-filter: blur(6px); border-bottom: 1px solid #1a3150; }
.phone .bd { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.phone h2 { font-size: 19px; } .phone h3 { font-size: 16px; }
.anchor { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; border-radius: 14px; background: #241a05; border: 1px solid #5c430b; }
.anchor b { font: 700 26px var(--mono); color: var(--o2); }
.pill-ok { color: var(--ok); font-weight: 700; } .pill-bad { color: var(--bad); font-weight: 700; }
.sep { height: 1px; background: #1b3352; margin: 4px 0; }

/* ----- Simulador ----- */
/* minmax(0,1fr) + min-width:0: sem isso, a fileira de celulares (20 × 314 px) alargava a coluna e o telão chegava a 6274 px em janelas de até 1100 px */
.sim { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; padding: 16px; max-width: 1800px; margin: 0 auto; }
.sim > * { min-width: 0; }
.sim .turma { grid-column: 1 / -1; }
.phones { display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 18px; }
.ph-wrap { flex: 0 0 auto; width: 300px; }
.ph-frame { width: 300px; height: 600px; border-radius: 34px; padding: 10px; background: #02060c; box-shadow: 0 0 0 2px #1f2f44, 0 18px 40px rgba(0,0,0,.5); }
.ph-screen { width: 100%; height: 100%; border-radius: 26px; overflow: auto; background: var(--bg2); }
.ph-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; }
.group-sep { flex: 0 0 auto; width: 6px; border-radius: 6px; }
@media (max-width: 1100px) { .sim { grid-template-columns: minmax(0, 1fr); } }
/* "Reduzir movimento": ver o fim do arquivo (R17) */

/* ----- Mosaico Vila ----- */
.telao.cheio { position: fixed; inset: 0; z-index: 50; width: 100vw; height: 100vh; aspect-ratio: auto; border-radius: 0; }
.chip.regra.monopolio { background: #3d1422; color: #fecdd3; }
.chip.regra.prosperidade { background: #0f3d33; color: #a7f3d0; }
.dado { display: inline-grid; place-items: center; width: 84px; height: 84px; margin: 6px auto; border-radius: 18px; font: 800 44px var(--mono); color: #0b1a2c;
  background: linear-gradient(180deg, #fff, #dbe7f5); box-shadow: 0 6px 0 #8aa1bb, 0 12px 22px rgba(0,0,0,.4), inset 0 1px 0 #fff; animation: rolar .5s ease-out; }
@keyframes rolar { from { transform: rotate(-200deg) scale(.6); } to { transform: none; } }
.telao table.vals { font-size: 1.05cqw; }
.telao table.vals td { padding: .3cqw .4cqw; }
.telao .metro.grande .st-label { font-size: 20px; }
.phone input[type=range] { height: 44px; }
.phone input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #2563eb, #60a5fa var(--p, 0%), #0b1a2c var(--p, 0%)); }
.phone input[type=range]::-webkit-slider-thumb { width: 32px; height: 32px; margin-top: -11px; }
.phone input[type=range]::-moz-range-thumb { width: 32px; height: 32px; }
.phone .opt b { font-size: 15px; }
.revela { animation: revela .7s ease-out both; }
@keyframes revela { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.linha-revela { animation: linha .5s ease-out both; }
@keyframes linha { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.phone .proj { background: linear-gradient(180deg, #13304a, #0f2338); }
.phone .proj table.vals { font-size: 13px; }
.barra { flex: 1; height: .85cqw; min-height: 8px; background: rgba(148,163,184,.18); border-radius: 99px; overflow: hidden; }
.barra i { display: block; height: 100%; background: linear-gradient(90deg, #64748b, #cbd5e1); border-radius: 99px; }
.fech-linha svg { height: 11cqw; width: 100%; }
.mapa-compacto svg { height: 18cqw; width: 100%; }

/* ----- Ícones 3D (assets/icones) ----- */
.ico3 { flex: 0 0 auto; width: 28px; height: 28px; object-fit: contain; vertical-align: middle; user-select: none;
  filter: drop-shadow(0 3px 2px rgba(0,0,0,.38)); }
.ico3.m { width: 36px; height: 36px; }
.ico3.g { width: 48px; height: 48px; }
.ico3.xl { width: 96px; height: 96px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.telao .ico3 { width: 2.4cqw; height: 2.4cqw; }
.telao .ico3.g { width: 3.6cqw; height: 3.6cqw; }
.telao .ico3.xl { width: 9cqw; height: 9cqw; }
h2.row, h3.row, b.row { gap: 8px; flex-wrap: nowrap; }
.telao h2.row, .telao h3.row, .telao b.row { gap: .7cqw; }
/* Casa 3D da família, com a forma 3D no canto */
.ico-fam { position: relative; display: inline-block; flex: 0 0 auto; width: var(--t); height: var(--t); }
.ico-fam img { position: absolute; object-fit: contain; user-select: none; }
.ico-fam .casa { inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 3px 2px rgba(0,0,0,.4)); }
.ico-fam .forma { right: -14%; bottom: -8%; width: 50%; height: 50%; filter: drop-shadow(0 2px 2px rgba(0,0,0,.5)); }
.telao .ico-fam { width: 3.8cqw; height: 3.8cqw; }

/* Mais profundidade: chips, painéis e campos com volume */
.chip { box-shadow: 0 2px 0 rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.14); }
.anchor { box-shadow: 0 4px 0 #120c02, inset 0 1px 0 rgba(255,255,255,.08); }
.card { transition: transform .12s, box-shadow .12s; }
@media (hover: hover) { a.card:hover { transform: translateY(-2px); } }
input[type=text], input[type=number], select, textarea { box-shadow: inset 0 3px 6px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.05); }
.prog, .barra { box-shadow: inset 0 2px 3px rgba(0,0,0,.45); }
.btn .ico3 { width: 24px; height: 24px; margin: -4px 6px -4px -4px; }

/* ===== R11: telão para TV — letra grande, barra de ícones, uma ideia por tela ===== */
.telao .tin { font-size: 1.9cqw; gap: 1.1cqw; padding: 1.7cqw 2.3cqw; }
.telao h1 { font-size: 3.2cqw; line-height: 1.1; }
.telao h2 { font-size: 2.6cqw; line-height: 1.15; }
.telao h3 { font-size: 2.2cqw; }
.telao .fase { font-size: 1.5cqw; }
.telao .big { font-size: 2.3cqw; line-height: 1.35; }
.telao .enorme { font-size: 3.3cqw; line-height: 1.22; font-weight: 700; margin: 0; }
.telao .rodape { font-size: 1.9cqw; line-height: 1.35; color: #cbd5e1; margin: 0; }
.telao .muted { color: #cbd5e1; }
.telao .chip { font-size: 1.6cqw; padding: .35cqw 1cqw; display: inline-flex; align-items: center; gap: .5cqw; }
.telao .chip.nome { font-size: 1.35cqw; }
.telao .chip .ico3 { width: 2.4cqw; height: 2.4cqw; }
.telao .card { padding: 1.3cqw 1.6cqw; }
.telao .ico3 { width: 3cqw; height: 3cqw; }
.telao .ico3.g { width: 4.4cqw; height: 4.4cqw; }
.telao .ico3.xl { width: 9cqw; height: 9cqw; }
.telao .centro { align-items: center; justify-content: center; }
.telao .card.destaque { display: flex; align-items: center; gap: 1.8cqw; }
.telao .conta { min-width: 17cqw; text-align: right; }
.telao .conta b { font-size: 2.6cqw; display: block; }
.telao .conta span { display: block; font-size: 1.5cqw; color: #a9bdd3; margin-bottom: .3cqw; }
.telao .fam b { font-size: 2.2cqw; }
.telao .fam .conta-fam { margin-left: auto; font-size: 1.9cqw; color: #a9bdd3; }
.telao .fam .nomes { font-size: 1.6cqw; color: #cbd5e1; margin: .5cqw 0; }

/* Barra de ícones: o estado da vila, sempre no mesmo lugar */
.hud { display: flex; gap: .9cqw; }
.hud { justify-content: space-between; }
.hud .slot { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .7cqw; padding: .6cqw .9cqw; border-radius: 1.1cqw;
  background: linear-gradient(180deg, #183455, #10243d); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 .45cqw 0 #071423, 0 .8cqw 1.4cqw rgba(0,0,0,.35); }
.hud .slot .ico3 { width: 3.7cqw; height: 3.7cqw; }
.hud .slot b { display: flex; align-items: center; font-size: 2.15cqw; line-height: 1.1; white-space: nowrap; font-family: Sora, sans-serif; font-variant-numeric: tabular-nums; }
.hud .slot b small { font-size: 1.6cqw; color: #a9bdd3; margin-left: .15cqw; }
.hud .slot span { display: block; font-size: 1.45cqw; color: #a9bdd3; white-space: nowrap; }
.hud .slot.ano { flex: 0 1 auto; padding-right: 1.4cqw; }
.hud .slot.ano .pips { display: flex; gap: .3cqw; margin-top: .35cqw; }
.hud .slot.mal { background: linear-gradient(180deg, #5a1a24, #2c0d14); }
.hud .slot.atencao { background: linear-gradient(180deg, #4a3810, #271c06); }
.hud .slot.ok { background: linear-gradient(180deg, #14532d, #0b2e19); }
.hud .pips i, .hud .niv i { display: inline-block; width: 1.1cqw; height: 1.1cqw; border-radius: 50%; background: #2a4366; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); }
.hud .pips i.feito { background: #4ade80; } .hud .pips i.agora { background: #fbbf24; box-shadow: 0 0 0 .3cqw rgba(251,191,36,.3); }
.hud .niv { gap: .25cqw; } .hud .niv i { width: 1.3cqw; height: 1.8cqw; border-radius: .35cqw; }
.hud .niv i.on { background: linear-gradient(180deg, #fde68a, #b45309); }
.hud .delta { font-style: normal; font-size: 1.5cqw; margin-left: .5cqw; padding: .05cqw .5cqw; border-radius: 99px; font-family: Sora, sans-serif; }
.hud .delta.up { background: #14532d; color: #86efac; } .hud .delta.down { background: #5b1d1d; color: #fca5a5; }
.hud .pulsa { animation: pulsa 1.1s ease 3; }
@keyframes pulsa { 50% { transform: translateY(-.3cqw) scale(1.04); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 .45cqw 0 #071423, 0 0 0 .4cqw rgba(251,191,36,.45); } }

/* Mapa do tamanho certo, sem sobra */
.telao .lado { display: grid; grid-template-columns: 58cqw minmax(0, 1fr); gap: 1.4cqw; flex: 1; min-height: 0; align-items: center; }
.telao .mapa-card { width: 58cqw; aspect-ratio: 800 / 450; padding: .3cqw; display: flex; align-items: center; justify-content: center; }
.telao .mapa-card svg { width: 100%; height: 100%; }

/* Revelações em sequência (o último painel fica) */
.telao .seq { display: grid; flex: 1; min-height: 0; }
.telao .seq > .painel { grid-area: 1 / 1; min-height: 0; display: flex; flex-direction: column; gap: 1.1cqw; opacity: 0;
  animation: pEntra .6s ease var(--a) forwards, pSai .45s ease var(--b) forwards; }
.telao .seq > .painel.ultimo { animation: pEntra .6s ease var(--a) forwards; }
@keyframes pEntra { from { opacity: 0; transform: translateY(1cqw); } to { opacity: 1; transform: none; } }
@keyframes pSai { to { opacity: 0; transform: translateY(-1cqw); visibility: hidden; } }
.telao .seq-dots { display: flex; gap: .8cqw; justify-content: center; }
.telao .seq-dots span { font-size: 1.5cqw; padding: .25cqw 1.1cqw; border-radius: 99px; background: #132a46; color: #7f97b2;
  animation: dOn .3s ease var(--a) forwards, dOff .3s ease var(--b) forwards; }
.telao .seq-dots span.ultimo { animation: dOn .3s ease var(--a) forwards; }
@keyframes dOn { to { background: #fbbf24; color: #1b1300; } }
@keyframes dOff { to { background: #1d3a5c; color: #cbd5e1; } }

/* Fatos do ano, com ícone */
.telao .fato { display: flex; align-items: center; gap: 1.1cqw; font-size: 2.3cqw; line-height: 1.25; }
.telao .fato .ico3 { width: 4.4cqw; height: 4.4cqw; }
.telao .fato.mal { color: #fca5a5; } .telao .fato.bom { color: #86efac; }
.telao .chips-iso { display: flex; flex-wrap: wrap; gap: .6cqw; }

/* Isotype: fileiras de ícones */
.iso { display: inline-flex; align-items: flex-end; --iso: 3.1cqw; gap: .12cqw; flex-wrap: nowrap; }
.iso-i { display: inline-block; width: var(--iso); height: var(--iso); overflow: hidden; flex: 0 0 auto; }
.iso-i img { width: var(--iso); height: var(--iso); object-fit: contain; filter: drop-shadow(0 .2cqw .15cqw rgba(0,0,0,.45)); }
.iso.g { --iso: 4.6cqw; } .iso-linha.p .iso { --iso: 2cqw; }
.iso-linha { display: flex; align-items: center; gap: 1cqw; margin: .2cqw 0; }
.iso-linha > b { font-size: 2cqw; margin-left: auto; }
.iso-linha.p > b { font-size: 1.6cqw; }
.iso-linha .rot-iso { min-width: 15cqw; font-size: 1.9cqw; color: #cbd5e1; }
.telao .barra.grande { height: 2cqw; flex: none; width: 100%; }

/* Exemplo resolvido linha a linha */
.passo-a-passo { margin: .4cqw 0 0; padding-left: 2.6cqw; font-size: 2.3cqw; line-height: 1.32; }
.passo-a-passo li { opacity: 0; margin: .35cqw 0; animation: lEntra .5s ease var(--a) forwards, lDim .5s ease var(--b) forwards; }
.passo-a-passo li.ultimo { animation: lEntra .5s ease var(--a) forwards; }
@keyframes lEntra { from { opacity: 0; transform: translateX(-1cqw); } to { opacity: 1; transform: none; } }
@keyframes lDim { from { opacity: 1; font-size: 1em; } to { opacity: .55; font-size: 1.9cqw; } }   /* R13: a linha apagada nunca fica abaixo de 1,9 cqw */
.passo-a-passo li { font-size: 1em; }
.passo-a-passo.compacto { font-size: 1.95cqw; line-height: 1.26; }   /* R29: a última linha cabia por pouco nos anos 1 e 4 */

/* Cronômetro grande, contado pelo CSS (45 s) */
@property --s { syntax: "<integer>"; inherits: false; initial-value: 45; }
.crono-wrap { display: flex; flex-direction: column; align-items: center; gap: 1cqw; }
.crono { --s: 45; width: 15cqw; height: 15cqw; border-radius: 50%; display: grid; place-items: center; counter-reset: s var(--s);
  background: conic-gradient(#fbbf24 calc(var(--s) * 8deg), #1b3352 0); animation: conta45 45s linear var(--d) forwards;
  box-shadow: inset 0 0 0 1.5cqw #0e2238, 0 .6cqw 0 #071423, 0 1.2cqw 2cqw rgba(0,0,0,.4); }
.crono::after { content: counter(s); font: 800 5.6cqw/1 "JetBrains Mono", ui-monospace, monospace; color: #fff; }
@keyframes conta45 { from { --s: 45; } to { --s: 0; } }

/* Linha do tempo maior */
.telao .linha-grande svg { width: 100%; height: 100%; max-height: 30cqw; }
.telao .linha-media svg { width: 100%; height: 13cqw; }
.telao .linha-grande .st-sub, .telao .linha-media .st-sub { font-size: 17px; }

/* Fechamento: uma pergunta por vez */
.telao .temas { display: flex; gap: .6cqw; flex-wrap: wrap; }
.telao .temas span { font-size: 1.6cqw; padding: .3cqw 1cqw; border-radius: 99px; background: #132a46; color: #7f97b2; box-shadow: 0 .25cqw 0 #071423; }
.telao .temas span.feito { background: #1d3a5c; color: #cbd5e1; }
.telao .temas span.agora { background: #fbbf24; color: #1b1300; font-weight: 700; }
.telao .pergunta-txt { font-size: 3cqw; line-height: 1.3; font-weight: 600; margin: 1.4cqw 0 .8cqw; }

/* Prévia "fundo da sala": o telão no tamanho aparente de uma TV de 55" vista a uns 6 m (cerca de 40% da largura do monitor a 60 cm) */
.sim.fundo .telao:not(.cheio):not(:fullscreen) { width: 460px; margin: 40px auto; }   /* R13: tamanho fixo, que não depende da tela de quem testa */
.sim.fundo .fundo-nota { display: block; }
.fundo-nota { display: none; text-align: center; margin: -28px 0 10px; font-size: 13px; color: var(--tx2); }

/* Barra pequena no celular */
.phone .hd { flex-wrap: wrap; }
.mini-hud { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
.mini-hud span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 3px; border-radius: 99px; background: #132a46; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 0 #071423; font-size: 12px; white-space: nowrap; }
.mini-hud .ico3 { width: 20px; height: 20px; }
.mini-hud b { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== R13: cartas sorteadas, painéis com controle, moedas de 10, dois gráficos, letra mínima ===== */
/* Rótulos do telão nunca abaixo de 1,6 cqw; linhas de texto, 1,9 cqw */
.telao .fase, .telao .conta span, .hud .slot span, .hud .delta, .telao .seq-dots span, .telao .chip.nome { font-size: 1.6cqw; }
.telao .card.como { border: 2px solid rgba(251,191,36,.45); }
.telao .chip.mal { color: #fecaca; background: #3a1620; }
/* Painel segurado por quem conduz: fica parado */
.telao .seq.fixo > .painel { opacity: 1; animation: none; }
.telao .seq-dots.fixo span { animation: none; }
.telao .seq-dots.fixo span.feito { background: #1d3a5c; color: #cbd5e1; }
.telao .seq-dots.fixo span.agora { background: #fbbf24; color: #1b1300; }
/* Moedas por pessoa, com a marca da meta */
.fila-moedas { position: relative; display: inline-flex; min-width: calc(var(--iso) * var(--n) + .12cqw * var(--n)); --iso: 3.6cqw; padding-top: .15cqw; }
.iso-linha:first-of-type .fila-moedas { padding-top: 2.2cqw; }
.sem-marca .iso-linha:first-of-type .fila-moedas { padding-top: .15cqw; }   /* R23: no ano 3 não há marca da meta acima das moedas */
.fila-moedas .iso { --iso: inherit; }
.fila-moedas + b { margin-left: 1.2cqw !important; font-size: 2.2cqw; }
.marca-meta { position: absolute; top: 0; bottom: -.3cqw; width: 0; border-left: .3cqw dashed #fbbf24; }
.marca-meta b { position: absolute; top: -.2cqw; left: .5cqw; font-size: 1.6cqw; color: #fde68a; white-space: nowrap; font-style: normal; }
.iso-linha + .iso-linha .marca-meta b { display: none; }
.iso.p { --iso: 2.2cqw; vertical-align: middle; }
/* Quem a turma achou que mais dava golpe */
.barra-rot { display: grid; grid-template-columns: 25cqw 1fr 5cqw; align-items: center; gap: .8cqw; font-size: 1.7cqw; }
.barra-rot .barra { height: 1.4cqw; }
.barra-rot b { text-align: right; }
/* Linha do tempo em dois gráficos */
.tempo2 { display: grid; grid-template-rows: 1fr 1fr; gap: .6cqw; height: 100%; min-height: 0; }
.tempo2 svg { width: 100%; height: 100%; min-height: 0; }
.telao .linha-grande { display: flex; flex-direction: column; }
/* Celular: primeiro o telão, depois o extrato (no tempo do último painel) */
.surge { opacity: 0; animation: surge .45s ease var(--a) forwards; }
@keyframes surge { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.espera { max-height: 260px; overflow: hidden; animation: espSome .35s ease var(--a) forwards; }
@keyframes espSome { to { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; margin: 0; border-width: 0; } }
.telao .guiou p { margin: 0; font-size: 1.9cqw; line-height: 1.35; }
.fila-moedas + b { align-self: flex-end; }
/* R14: banner da proposta grande no ano 5, pergunta longa, linha de apoio */
.telao .card.banner { padding: .8cqw 1.4cqw; }
.telao .card.banner.mal { border: 2px solid rgba(251,113,133,.6); }
.telao .card.banner.bom { border: 2px solid rgba(134,239,172,.5); }
.telao .fato .sub { color: #cbd5e1; font-weight: 400; }
.telao .pergunta-txt.longa { font-size: 2.6cqw; }
.telao .pergunta-txt.longa2 { font-size: 2.25cqw; line-height: 1.28; }   /* R25: pergunta 3 com cargas, propostas na mata e no bem público e colapso */
.telao .rodape.apoio { color: #fde68a; }
.telao .linha-media { flex: 1; min-height: 0; }
.telao .linha-media .tempo2 svg { height: 100%; }
.tempo1 { height: 100%; min-height: 0; display: flex; align-items: center; }
.telao .linha-media .tempo1 svg { width: 100%; height: 100%; }
/* R15: "de onde vem" no fechamento; gráficos e mapa sem invadir a fileira de painéis */
.telao .rodape.teoria { color: #a5b4fc; }
.telao .seq .grid { grid-template-rows: minmax(0, 1fr); }
.telao .seq > .painel { overflow: hidden; }
.telao .linha-grande { min-height: 0; overflow: hidden; }
.telao .linha-grande .tempo2 { height: 100%; }
.telao .linha-grande .tempo2 svg { min-height: 0; }
.telao .lado.compacto { grid-template-columns: 46cqw minmax(0, 1fr); }
.telao .lado.compacto .mapa-card { width: 46cqw; }   /* R23: cabe com o aviso de 3 linhas */
.telao .lado.compacto .crono { width: 11cqw; height: 11cqw; }   /* R23: no ano 5, o aviso da proposta grande ocupa o alto; o cronômetro menor deixa o resto caber na TV */
.telao .lado.compacto .crono::after { font-size: 4.2cqw; }

/* R16: relógios de 90 s (conversa antes do voto) e 60 s (dupla do fechamento) */
@keyframes conta90 { from { --s: 90; } to { --s: 0; } }
@keyframes conta60 { from { --s: 60; } to { --s: 0; } }
.crono.c90 { --s: 90; background: conic-gradient(#fbbf24 calc(var(--s) * 4deg), #1b3352 0); animation: conta90 90s linear var(--d) forwards; }
.crono.c60 { --s: 60; background: conic-gradient(#fbbf24 calc(var(--s) * 6deg), #1b3352 0); animation: conta60 60s linear var(--d) forwards; }
.crono-mini { margin-top: auto; display: flex; justify-content: flex-end; }
.crono-mini .crono { width: 8cqw; height: 8cqw; box-shadow: inset 0 0 0 .8cqw #0e2238, 0 .4cqw 0 #071423; }
.crono-mini .crono::after { font-size: 3cqw; }
.crono-mini .crono-wrap { flex-direction: row; gap: 1cqw; }
.telao .fech-barras { gap: 1.1cqw; justify-content: center; height: 100%; overflow: hidden; font-size: 2cqw; }
.telao .fech-barras .barra.grande { height: 1.6cqw; margin-top: .4cqw; }
.telao .fech-barras .rodape { margin-top: .3cqw; }

/* R17: com "reduzir movimento" ligado, nada se mexe, mas a sequência continua: cada painel, linha do exemplo e o extrato
   do celular aparecem no seu tempo, sem deslizar; os relógios continuam contando (só o número muda). */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  .dado, .revela, .linha-revela, .hud .pulsa { animation: none !important; }
  .telao .seq > .painel, .telao .seq-dots span, .passo-a-passo li, .surge, .espera { animation-duration: .01s !important; }
  @keyframes pEntra { from { opacity: 0; } to { opacity: 1; } }
  @keyframes pSai { to { opacity: 0; visibility: hidden; } }
  @keyframes lEntra { from { opacity: 0; } to { opacity: 1; } }
  @keyframes surge { from { opacity: 0; } to { opacity: 1; } }
}
@keyframes conta30 { from { --s: 30; } to { --s: 0; } }
.crono.c30 { --s: 30; background: conic-gradient(#fbbf24 calc(var(--s) * 12deg), #1b3352 0); animation: conta30 30s linear var(--d) forwards; }
/* R18: os controles da proposta ficam escondidos (e sem toque) durante a conversa da família */
.surge.trava { visibility: hidden; animation-name: surgeT; }
@keyframes surgeT { from { opacity: 0; visibility: visible; } to { opacity: 1; visibility: visible; } }
.telao .fech-barras { gap: .8cqw; }
.telao .fech-barras .rodape { font-size: 1.9cqw; }   /* R24: texto corrido em 1,9% (antes 1,7%) */

/* R24: quando todos enviaram, o Avançar de quem conduz acende (a simulação supõe o avanço uns 5 s depois do último envio) */
.btn.pronto { animation: prontoP 1.2s ease-in-out infinite; }
@keyframes prontoP { 50% { box-shadow: 0 0 0 4px rgba(134,239,172,.45), 0 4px 0 #14532d; } }
@media (prefers-reduced-motion: reduce) { .btn.pronto { animation: none; box-shadow: 0 0 0 4px rgba(134,239,172,.45); } }

/* R28: carimbo vermelho "Corrupção" na revelação das propostas (pequena, grande e pergunta 4) */
.telao .carimbo { align-self: flex-start; display: inline-block; color: #fff; background: linear-gradient(180deg, #dc2626, #991b1b); border: .3cqw solid #fecaca;
  border-radius: .8cqw; padding: .35cqw 1.6cqw .45cqw; font: 900 3.6cqw/1 Sora, sans-serif; letter-spacing: .25cqw; text-transform: uppercase;
  transform: rotate(-3deg); box-shadow: 0 .5cqw 0 #7f1d1d, 0 0 2.2cqw rgba(239,68,68,.5); animation: carimbar .45s cubic-bezier(.2,1.6,.4,1) calc(var(--a, 0s) + .3s) both; }
.telao .carimbo.pq { font-size: 2.2cqw; padding: .25cqw 1cqw .3cqw; }
.telao .carimbo.pq { white-space: nowrap; flex: none; }   /* R34: numa linha só, sem esticar até a borda */
.telao .carimbo.pq.longo { font-size: 1.95cqw; letter-spacing: .15cqw; }
.telao .carimbo.parado { animation: none; }   /* R34: bate uma vez; nos redesenhos, fica parado */
.telao .carimbo.md { font-size: 2.8cqw; padding: .3cqw 1.2cqw .4cqw; margin-top: .4cqw; }   /* R30: no painel da pequena, cabe sem cortar */
@keyframes carimbar { from { transform: rotate(-3deg) scale(1.8); opacity: 0; } to { transform: rotate(-3deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .telao .carimbo { animation: none; } }
.telao .falas-barras { gap: .8cqw; font-size: 2cqw; }
.telao .falas-barras .barra.grande { height: 1.6cqw; margin-top: .4cqw; }
.telao .fech-barras.fino .barra.grande { height: 1.3cqw; margin-top: .25cqw; }

/* R30: regras do mercado de lotes, uma por linha */
.telao .regras-lote { margin: 0; padding-left: 2.6cqw; font-size: 2cqw; line-height: 1.3; }
.telao .regras-lote li { margin: .45cqw 0; }

/* R31: as duas respostas de uma carta com o mesmo tamanho (largura e altura), qualquer que seja o texto e a largura do celular */
.escolha { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: stretch; }
.escolha .btn { width: 100%; min-width: 0; height: 100%; }

/* R33: as duas opções do voto lado a lado, com a mesma largura e a mesma altura, qualquer que seja o texto */
.opcoes-iguais { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 10px; margin: 6px 0; }
.opcoes-iguais .opt { margin: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; }

/* R36: regras do mercado no celular atrás de "ver as regras" */
.regras-cel { margin-top: 8px; padding: 10px 12px; }
.regras-cel ul { margin: 0; padding-left: 18px; font-size: 13px; }
.regras-cel li { margin: 3px 0; }
/* R37: no celular, alvo de toque de pelo menos 44 px também nos botões pequenos (palpites, fechamento, regras do mercado) */
.phone .btn.sm { min-height: 44px; }

/* ===== Mosaico Vila Ética ===== */
/* faixa de conceitos técnicos no telão */
.telao .conceitos { display: flex; flex-wrap: wrap; align-items: center; gap: .6cqw; margin-top: .5cqw; font-size: 1.6cqw; }
.telao .conceitos .conc-rot { display: inline-flex; align-items: center; gap: .4cqw; color: var(--warn, #fbbf24); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 1.6cqw; }
.telao .conceitos .conc-rot .ico { width: 2cqw; height: 2cqw; }
.telao .chip.conceito { font-size: 1.6cqw; padding: .25cqw .9cqw; background: color-mix(in srgb, var(--c) 22%, #0f1d33); color: #f1f5ff; border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); }
.telao .conceitos .conc-fim { color: #9fb3cc; font-size: 1.6cqw; }
.telao .conc-dot { margin-left: .8cqw; font-style: normal; color: #fbbf24; font-weight: 700; }
.telao .seq-dots span:not(.agora) .conc-dot { display: none; }
.telao .seq-dots span.agora .conc-dot { color: #1f2937; }
/* glossário no celular */
.phone .glos-btn { margin-left: auto; min-height: 44px; padding: 6px 10px; font-size: 12px; --c: #6d28d9; --c2: #4c1d95; flex: none; }
.mini-hud .ano-chip { padding: 2px 9px; background: #23406a; }
.phone .novo { display: inline-block; margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: #fbbf24; color: #1f2937; font-size: 11px; font-weight: 800; }
.phone .glos-cat { display: flex; flex-direction: column; gap: 6px; }
.phone .glos-cor { width: 14px; height: 14px; border-radius: 4px; background: var(--c); box-shadow: 0 2px 0 var(--c2); display: inline-block; }
.phone .glos-item { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; padding: 10px 12px; min-height: 44px; border: 1px solid #23406a; border-radius: 12px; background: #13294a; color: #e6efff; font: inherit; cursor: pointer; box-shadow: 0 3px 0 #0b1a30; }
.phone .glos-item:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b1a30; }
.phone .glos-item.aberto { border-color: #a78bfa; }
.phone .glos-def { color: #c7d6ee; font-size: 14px; line-height: 1.45; }
/* Momento do Lazer: memória (24 cartas) e Acerte a sequência (8 botões), com volume e reação ao toque */
.phone .lz-topo { justify-content: space-between; }
.phone .mem-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.phone .mem { aspect-ratio: 1 / 1; min-height: 0; padding: 4px; border: 0; border-radius: 10px; cursor: pointer; font: inherit; color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #34508a, #24396a); box-shadow: 0 4px 0 #142342, inset 0 1px 0 rgba(255,255,255,.25); }
.phone .mem b { font-size: 22px; opacity: .8; }
.phone .mem:active { transform: translateY(3px); box-shadow: 0 1px 0 #142342; }
.phone .mem.aberta.a { background: linear-gradient(180deg, #6ea2ff, #3b82f6); box-shadow: 0 4px 0 #1d4ed8, inset 0 1px 0 rgba(255,255,255,.35); }
.phone .mem.aberta.b { background: linear-gradient(180deg, #5fe0f0, #0ea5b7); box-shadow: 0 4px 0 #0e7490, inset 0 1px 0 rgba(255,255,255,.35); }
.phone .mem.achada { background: linear-gradient(180deg, #4ade80, #16a34a) !important; box-shadow: 0 4px 0 #15803d !important; }
.phone .mem.aberta.b span { font-weight: 500; }
.phone .mem.achada { opacity: .7; }
.phone .mem span { font-size: 11px; line-height: 1.15; font-weight: 700; word-break: break-word; hyphens: auto; }
.phone .gen-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.phone .gen { min-height: 92px; border: 0; border-radius: 16px; cursor: pointer; font: inherit; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 6px 8px; text-align: center;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 55%, #1b2436), color-mix(in srgb, var(--c2) 70%, #0b1220)); box-shadow: 0 5px 0 color-mix(in srgb, var(--c2) 60%, #000), inset 0 1px 0 rgba(255,255,255,.2); filter: saturate(.75) brightness(.85); transition: filter .08s, transform .08s; }
.phone .gen small { font-size: 10px; opacity: .85; text-transform: uppercase; letter-spacing: .06em; }
.phone .gen span { font-size: 13px; font-weight: 800; line-height: 1.15; }
.phone .gen.aceso { filter: saturate(1.3) brightness(1.55); transform: translateY(-1px); box-shadow: 0 5px 0 var(--c2), 0 0 22px var(--c), inset 0 1px 0 rgba(255,255,255,.5); }
.phone .gen:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--c2); }
.phone .gen:disabled { cursor: default; }

.phone .lz-topo { font-size: 14px; }
.phone .glos-btn .cnt { margin-left: 4px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 11px; }
.phone .hd .grow { min-width: 0; }
.phone .linha-fam { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .glos-btn { padding: 6px 9px; }
.telao .titulo-conc { display: flex; align-items: center; flex-wrap: nowrap; gap: .5cqw .7cqw; }
.telao .titulo-conc h1 { margin-right: .6cqw; }
.telao .titulo-conc .conc-rot { display: inline-flex; align-items: center; gap: .4cqw; color: #fbbf24; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 1.6cqw; }
.telao .titulo-conc .conc-rot .ico { width: 2cqw; height: 2cqw; }
.telao .fase-conc { display: flex; align-items: center; flex-wrap: nowrap; gap: .6cqw; overflow: hidden; }
.telao .fase-conc .fase { flex: none; }
.telao .fase-conc .chip.conceito { padding: .1cqw .8cqw; flex: none; }
.telao .titulo-conc .chip.conceito { flex: none; }

/* toque: cartas da memória e verbetes do glossário afundam com a mesma animação dos botões */
.phone .mem, .phone .glos-item { transition: transform .08s, box-shadow .08s; }
.phone .mem, .phone .gen, .phone .glos-item { -webkit-tap-highlight-color: transparent; }
/* Lazer: as cartas e os botões crescem para ocupar a altura do celular (cqh = altura da tela do celular;
   sem contêiner, vale a altura visível do navegador). No celular pequeno ficam no tamanho mínimo de antes. */
.ph-screen { container-type: size; }
.phone .mem { aspect-ratio: auto; height: clamp(56px, calc((100cqh - 178px) / 6), 124px); }
.phone .gen { min-height: clamp(92px, calc((100cqh - 184px) / 4), 160px); }

/* ===== R39 (16/11/2026): avaliação visual — tela cheia que ocupa a tela toda, botão de tela cheia legível ===== */
/* Em tela cheia o fundo do telão cobre a tela inteira; o conteúdo (desenhado em 16:9) ocupa a maior caixa 16:9 que cabe e fica centrado,
   para não cortar em telas 16:10, 4:3 ou ultralargas (as unidades cqw passam a medir esta caixa). */
.telao:fullscreen, .telao.cheio { display: grid; place-items: center; border-radius: 0; box-shadow: none; border: 0; }
.telao:fullscreen > #telaoIn, .telao.cheio > #telaoIn { position: relative; width: min(100vw, 177.7778vh); aspect-ratio: 16 / 9; container-type: inline-size; }
.telao .fsbtn.btn.sm { right: 1.2cqw; bottom: 1.2cqw; min-height: 44px; padding: 8px 18px; font-size: max(14px, 1.3cqw); opacity: 0; pointer-events: none; transition: opacity .25s; }
/* O botão só aparece quando o mouse ou o dedo mexe no telão (some em 2,5 s, ver sim.js) ou ao receber foco: não cobre o texto da TV */
.telao.mostra-fs .fsbtn.btn.sm, .telao .fsbtn.btn.sm:focus-visible { opacity: .95; pointer-events: auto; }
@media (hover: none) { .telao .fsbtn.btn.sm { opacity: .9; pointer-events: auto; } }
.telao:fullscreen > .fsbtn, .telao.cheio > .fsbtn { right: 20px; bottom: 20px; }

/* ===== R39: direção artística — "a vila vista ao entardecer" =====
   Só pintura (luz, moldura, sombras): nenhuma medida do telão muda. O céu esfria de um ano para o outro (data-ano, posto por sim.js). */
@property --hz { syntax: "<color>"; inherits: true; initial-value: rgba(251, 191, 36, .34); }
@property --ceu { syntax: "<color>"; inherits: true; initial-value: #14395f; }
body { background: radial-gradient(1100px 560px at 50% -140px, #123057 0%, rgba(18, 48, 87, 0) 70%), var(--bg); background-repeat: no-repeat; }
.telao { --hz: rgba(251, 191, 36, .34); --ceu: #14395f;
  background: radial-gradient(ellipse 92% 68% at 50% 124%, var(--hz), transparent 66%), radial-gradient(1200px 620px at 50% -12%, var(--ceu) 0%, transparent 66%), linear-gradient(180deg, #0a1b33, var(--bg));
  box-shadow: 0 0 0 6px #040a14, 0 0 0 7px #2a4a6e, 0 26px 60px rgba(0, 0, 0, .55), 0 0 90px rgba(56, 130, 246, .10);
  transition: --hz 1.2s ease, --ceu 1.2s ease; }
.telao[data-ano="2"] { --hz: rgba(251, 146, 60, .34); --ceu: #17386a; }
.telao[data-ano="3"] { --hz: rgba(244, 114, 182, .28); --ceu: #1a3469; }
.telao[data-ano="4"] { --hz: rgba(167, 139, 250, .34); --ceu: #1b3068; }
.telao[data-ano="5"] { --hz: rgba(99, 102, 241, .40); --ceu: #172a62; }
.telao:fullscreen, .telao.cheio { box-shadow: none; }
/* Barra de ícones: o ano em índigo (não confunde com o âmbar de "atenção") e a meta da vila com aro dourado */
.hud .slot.ano { background: linear-gradient(180deg, #2f3f86, #19244f); }
.hud .slot.ano b { font-size: 2.5cqw; }
.hud .slot:has(img[src*="/meta."]) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 .45cqw 0 #071423, 0 .8cqw 1.4cqw rgba(0, 0, 0, .35), 0 0 0 .18cqw rgba(251, 191, 36, .6); }
/* Relógio com brilho quente; painéis do telão com luz de cima mais firme */
.telao .crono { filter: drop-shadow(0 0 1.2cqw rgba(251, 191, 36, .30)); }
.telao .card { box-shadow: 0 .4cqw 0 #081526, 0 1cqw 2cqw rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .10), inset 0 -2px 6px rgba(0, 0, 0, .18); }
/* Celular: a barrinha de estado sobe de 12 para 13 px */
.mini-hud span { font-size: 13px; }

/* R39: celular — letra mínima de 13 px nos rótulos de cabeçalho e alvo de toque de 48 px nas respostas (eram 12 px e 43 px) */
.phone .hd .faint { font-size: 13px !important; }
.phone .chip { font-size: 13px; }
.opt { min-height: 48px; }
/* iPhone/iPad: a tela cheia simulada (.cheio) usa a altura visível de verdade (dvh), sem a faixa do endereço */
.telao.cheio { height: 100vh; height: 100dvh; }
.telao:fullscreen > #telaoIn, .telao.cheio > #telaoIn { width: min(100vw, 177.7778vh); width: min(100vw, 177.7778dvh); }
/* R39: cartas do jogo da memória no celular: texto legível (mín. 13px) */
.phone .mem span { font-size: 13px; }
.phone .novo, .phone .glos-btn .cnt { font-size: 12.5px; }

/* ===== R40 (16/11/2026): direção artística — "a maquete da vila ao entardecer" =====
   Só pintura (céu, luz, material, sombra): nenhum texto, regra ou medida de letra muda. Nenhuma imagem nova: morros, estrelas e
   texturas são gradientes do CSS. As peças 3D (casas, árvores, prédios) passam a ser as miniaturas de uma maquete iluminada por lampião. */
:root { --tx3: #9bb1ca; --lampiao: #fbbf24; --placa1: #1d3d68; --placa2: #12284a; --base: #040b17; --fio: rgba(160, 200, 255, .20); }

/* --- Céu do telão: noite no alto, horizonte quente, três morros em silhueta na frente --- */
.telao { background:
    radial-gradient(ellipse 46% 15% at 16% 104%, #071730 0 97%, transparent 100%),
    radial-gradient(ellipse 52% 12% at 74% 105%, #091c38 0 97%, transparent 100%),
    radial-gradient(ellipse 34% 9% at 46% 104%, #0c2242 0 97%, transparent 100%),
    radial-gradient(ellipse 120% 50% at 50% 106%, var(--hz), transparent 72%),
    radial-gradient(ellipse 90% 60% at 50% -18%, var(--ceu) 0%, transparent 70%),
    linear-gradient(180deg, #071326 0%, #0b1d3a 58%, #13233f 100%); }
.telao { --hz: rgba(251, 191, 36, .42); }
.telao[data-ano="2"] { --hz: rgba(251, 146, 60, .42); }
.telao[data-ano="3"] { --hz: rgba(244, 114, 182, .36); }
.telao[data-ano="4"] { --hz: rgba(167, 139, 250, .40); }
.telao[data-ano="5"] { --hz: rgba(99, 102, 241, .46); }

/* --- Placas (cartões): luz de cima, fio claro na borda, base grossa; a placa principal de cada tela recebe a luz do lampião --- */
.card { background: linear-gradient(180deg, var(--placa1), var(--placa2)); border: 1px solid var(--fio); border-bottom-color: rgba(0, 0, 0, .35);
  box-shadow: 0 6px 0 var(--base), 0 14px 26px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .13), inset 0 -10px 18px rgba(4, 11, 23, .22); }
.telao .card { box-shadow: 0 .5cqw 0 var(--base), 0 1.2cqw 2.2cqw rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .14), inset 0 -1cqw 1.8cqw rgba(4, 11, 23, .22); }
.telao .card.destaque { border-left: .4cqw solid var(--lampiao);
  background: radial-gradient(ellipse 34% 150% at 0% 50%, rgba(251, 191, 36, .22), transparent 72%), linear-gradient(180deg, #214474, #132b50); }
.telao .card.destaque .ico3 { filter: drop-shadow(0 .5cqw .5cqw rgba(0, 0, 0, .5)) drop-shadow(0 0 1.4cqw rgba(251, 191, 36, .28)); }
.telao .card.como { border: 2px solid rgba(251, 191, 36, .55); background: linear-gradient(180deg, #2a2a3f, #171c33); }
.telao .card.banner.mal { background: linear-gradient(180deg, #3b1a2b, #1f1223); }
.telao .card.banner.bom { background: linear-gradient(180deg, #123f3a, #0c2530); }
.telao .mapa-card { background: linear-gradient(180deg, #17335a, #0e2140); }

/* --- Título do telão: etiqueta com fio dourado, título com mais peso --- */
.telao .fase { display: inline-flex; align-items: center; gap: .7cqw; letter-spacing: .16em; }
.telao .fase::before { content: ""; flex: none; width: 2.2cqw; height: .3cqw; border-radius: 99px; background: linear-gradient(90deg, var(--lampiao), #f59e0b); box-shadow: 0 0 .8cqw rgba(251, 191, 36, .6); }
.telao .card .fase::before { display: none; }
.telao h1 { font-weight: 800; letter-spacing: -.02em; text-shadow: 0 .18cqw 0 rgba(0, 0, 0, .35); }
.telao .conta b { font-variant-numeric: tabular-nums; }
.prog { background: #0a1730; }
.prog > i { background: linear-gradient(90deg, #38bdf8, #818cf8 60%, #c084fc); box-shadow: 0 0 .8cqw rgba(129, 140, 248, .55); }

/* --- Barra de estado: peças de jogo (ficha com borda clara e base), cada estado com a sua cor --- */
.hud .slot { border: 1px solid var(--fio); border-bottom-color: rgba(0, 0, 0, .4); background: linear-gradient(180deg, #1e3f6b, #112646);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 .5cqw 0 var(--base), 0 1cqw 1.6cqw rgba(0, 0, 0, .4); }
.hud .slot .ico3 { filter: drop-shadow(0 .3cqw .3cqw rgba(0, 0, 0, .5)); }
.hud .slot.ano { background: linear-gradient(180deg, #4353b8, #232f73); border-color: rgba(199, 210, 254, .35); }
.hud .slot.mal { background: linear-gradient(180deg, #7a2233, #3a101b); border-color: rgba(254, 202, 202, .35); }
.hud .slot.atencao { background: linear-gradient(180deg, #5a4210, #2c1f08); border-color: rgba(253, 230, 138, .35); }
.hud .slot.ok { background: linear-gradient(180deg, #145a33, #0b3220); border-color: rgba(134, 239, 172, .4); }
.hud .slot:has(img[src*="/meta."]) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 .5cqw 0 var(--base), 0 1cqw 1.6cqw rgba(0, 0, 0, .4), 0 0 0 .2cqw rgba(251, 191, 36, .7), 0 0 1.6cqw rgba(251, 191, 36, .18); }
.hud .slot.ok span, .hud .slot.mal span, .hud .slot.atencao span { color: #d5e2f0; }
.hud .pips i { background: #16224f; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.hud .niv i { background: #0e1d38; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .55); }
.hud .niv i.on { background: linear-gradient(180deg, #fde68a, #f59e0b 55%, #b45309); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 0 .6cqw rgba(251, 191, 36, .45); }

/* --- Abas dos painéis e temas do fechamento: peças com base; a da vez acende --- */
.telao .seq-dots span, .telao .temas span { background: linear-gradient(180deg, #1a365c, #10233f); color: #9db3cd; border: 1px solid rgba(160, 200, 255, .14); box-shadow: 0 .3cqw 0 var(--base); }
.telao .seq-dots.fixo span.feito, .telao .temas span.feito { background: linear-gradient(180deg, #264a78, #183255); color: #dbe7f5; }
.telao .seq-dots.fixo span.agora, .telao .temas span.agora { background: linear-gradient(180deg, #fde68a, #fbbf24 55%, #f59e0b); color: #1b1300; border-color: #fff3c4; box-shadow: 0 .3cqw 0 #92400e, 0 0 1.4cqw rgba(251, 191, 36, .4); }
.telao .chip { border: 1px solid rgba(160, 200, 255, .16); }

/* --- Relógio: mostrador com aro de metal e vidro --- */
.telao .crono { box-shadow: inset 0 0 0 1.5cqw #0c1c36, inset 0 0 0 1.75cqw rgba(160, 200, 255, .22), 0 .7cqw 0 var(--base), 0 1.4cqw 2.4cqw rgba(0, 0, 0, .5); }
.crono-mini .crono { box-shadow: inset 0 0 0 .8cqw #0c1c36, inset 0 0 0 .95cqw rgba(160, 200, 255, .22), 0 .4cqw 0 var(--base); }
.telao .crono::after { text-shadow: 0 .2cqw 0 rgba(0, 0, 0, .35); }

/* --- Mapa: o desenho ocupa a placa inteira (sem a sobra de cima e dos lados) --- */
.telao .mapa-card { aspect-ratio: 780 / 410; padding: .5cqw; }

/* --- Botões: desligado fica afundado e fosco (não parece clicável) --- */
.btn:disabled { filter: grayscale(.85) brightness(.66); transform: translateY(3px); box-shadow: 0 2px 0 var(--c2), inset 0 1px 0 rgba(255, 255, 255, .12); text-shadow: none; }
.btn.sm:disabled { transform: translateY(2px); box-shadow: 0 1px 0 var(--c2); }

/* --- Celular: cabeçalho com a mesma luz do telão, placas com fio claro, respostas com mais corpo --- */
.phone { background: radial-gradient(ellipse 120% 34% at 50% 0%, #15335c 0%, transparent 72%), linear-gradient(180deg, #0c1c36, #0a1528); }
.phone .hd { background: linear-gradient(180deg, rgba(22, 48, 84, .96), rgba(12, 28, 54, .96)); border-bottom: 1px solid rgba(160, 200, 255, .16); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.mini-hud span { background: linear-gradient(180deg, #1c3a63, #122846); border: 1px solid rgba(160, 200, 255, .14); }
.opt { background: linear-gradient(180deg, #1d3d68, #14294a); border: 1px solid rgba(160, 200, 255, .16); border-bottom-color: rgba(0, 0, 0, .35); box-shadow: 0 4px 0 var(--base), inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform .08s, box-shadow .08s; }
.opt:active { box-shadow: 0 1px 0 var(--base); }
.opt.sel { background: linear-gradient(180deg, #2a62a4, #1d4b7a); box-shadow: 0 2px 0 var(--base), 0 0 0 2px #7cb7ff inset, 0 0 16px rgba(96, 165, 250, .35); }
.anchor { background: linear-gradient(180deg, #33250a, #1f1604); border: 1px solid #7a5a12; }
.phone .glos-btn { font-size: 13px; }
.phone .novo, .phone .glos-btn .cnt { font-size: 13px; }

/* --- Simulador: moldura do celular com aro e reflexo --- */
.ph-frame { background: linear-gradient(160deg, #101b2e, #02060c 40%); box-shadow: 0 0 0 2px #2a4266, 0 0 0 3px #060d18, 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .12); }

/* --- Celular: o cartão de espera ("Conversem na família") mostrava o botão cortado em telas estreitas --- */
.espera { max-height: 460px; }

/* --- Barra de estado com 6 fichas (anos 3 a 5): no pior caso ("Prosperidade" + mata com variação + bem público com variação) o texto
   encostava na ficha vizinha. As fichas ficam mais justas (ícone, respiro e número um pouco menores; os rótulos seguem em 1,6 cqw). --- */
.hud:has(.slot:nth-child(6)) { gap: .6cqw; }
.hud:has(.slot:nth-child(6)) .slot { padding: .6cqw .65cqw; gap: .5cqw; flex-shrink: 0; }
.hud:has(.slot:nth-child(6)) .slot .ico3 { width: 3.1cqw; height: 3.1cqw; }
.hud:has(.slot:nth-child(6)) .slot b { font-size: 2cqw; }
.hud:has(.slot:nth-child(6)) .slot.ano b { font-size: 2.3cqw; }
.hud:has(.slot:nth-child(6)) .slot.ano { padding-right: 1cqw; }
.hud:has(.slot:nth-child(6)) .delta { margin-left: .35cqw; padding: .05cqw .4cqw; }

/* --- Palpite já enviado: a resposta escolhida continua colorida e ganha um aro; as outras ficam foscas (antes, as três ficavam cinza) --- */
.btn.on:disabled { filter: none; cursor: default; text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
  box-shadow: 0 1px 0 var(--c2), inset 0 0 0 2px rgba(191, 219, 254, .9), 0 0 14px rgba(96, 165, 250, .35); }

/* --- Cor por assunto (as placas eram todas do mesmo azul): a frase principal de cada tela é uma placa quente, de lampião;
   em "Como ficou a vila", cada painel tem a cor do seu assunto. O azul fica para o que é leitura de apoio. --- */
.telao .card.destaque { border-left: .4cqw solid var(--lampiao); border-color: rgba(253, 230, 138, .32); border-left-color: var(--lampiao); border-bottom-color: rgba(0, 0, 0, .4);
  background: radial-gradient(ellipse 36% 160% at 0% 50%, rgba(251, 191, 36, .30), transparent 72%), linear-gradient(180deg, #5b3f16, #33230d); }
.telao .painel[data-tema="aluguel"] .card { background: linear-gradient(180deg, #57301f, #2e1910); border-color: rgba(253, 186, 116, .28); border-bottom-color: rgba(0, 0, 0, .4); }
.telao .painel[data-tema="mercado"] .card { background: linear-gradient(180deg, #185058, #0d2d35); border-color: rgba(153, 246, 228, .26); border-bottom-color: rgba(0, 0, 0, .4); }
.telao .painel[data-tema="dinheiro"] .card { background: linear-gradient(180deg, #17573f, #0c3024); border-color: rgba(134, 239, 172, .26); border-bottom-color: rgba(0, 0, 0, .4); }
.telao .painel[data-tema="desigualdade"] .card { background: linear-gradient(180deg, #4b2459, #281331); border-color: rgba(240, 171, 252, .26); border-bottom-color: rgba(0, 0, 0, .4); }
.telao .painel[data-tema="carta"] .card { background: linear-gradient(180deg, #372d74, #1c1743); border-color: rgba(196, 181, 253, .28); border-bottom-color: rgba(0, 0, 0, .4); }
.telao .painel[data-tema="carta"] .card.destaque { background: radial-gradient(ellipse 36% 160% at 0% 50%, rgba(251, 191, 36, .30), transparent 72%), linear-gradient(180deg, #5b3f16, #33230d); }
.telao .card:has(.temas) { background: linear-gradient(180deg, #372d74, #1c1743); border-color: rgba(196, 181, 253, .28); border-bottom-color: rgba(0, 0, 0, .4); }

/* ===== R41: manual do jogador no celular (abre na entrada; depois, no "i" do cabeçalho) ===== */
.phone .info-btn { flex: none; width: 44px; min-width: 44px; min-height: 44px; padding: 0; border-radius: 50%; font: italic 800 20px/1 Georgia, "Times New Roman", serif; --c: #2f6fd6; --c2: #1b4391; }
.phone .man-gancho { border-left: 4px solid var(--lampiao); background: radial-gradient(ellipse 60% 140% at 0% 40%, rgba(251, 191, 36, .26), transparent 72%), linear-gradient(180deg, #5b3f16, #33230d); border-color: rgba(253, 230, 138, .32); border-left-color: var(--lampiao); }
.phone .man-gancho b { display: block; font-size: 17px; line-height: 1.3; }
.phone .man-gancho p { margin: 8px 0 0; color: #fde68a; font-size: 14px; }
.phone .man-bloco { padding: 12px 14px; }
.phone .man-bloco h3 { font-size: 15px; color: var(--lampiao); letter-spacing: .02em; margin-bottom: 4px; }
.phone .man-bloco p, .phone .man-bloco li { font-size: 14px; line-height: 1.45; color: #dbe7f5; margin: 0; }
.phone .man-bloco ul, .phone .man-bloco ol { margin: 0; padding-left: 18px; }
.phone .man-bloco li + li { margin-top: 5px; }

/* ===== R42: painel superior do celular (o cartão de visitas do jogo, sempre visível) =====
   Linha 1: quem sou e as ferramentas. Linha 2: faixa de mostradores (saldo em pontos, mata, bem público, meta e regra).
   Mostrador é afundado (não se aperta); botão é saliente (aperta). Nada quebra de linha: o que não couber encurta com reticências. */
.phone .hd.painel { display: block; padding: 6px 12px 8px; }
.phone .p-topo { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.phone .p-quem { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.phone .p-quem b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .p-quem .p-fam { font-size: 13px; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .p-topo .glos-btn { margin-left: 0; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px 4px 6px; font-size: 13px; }
.phone .p-topo .glos-btn .ico3 { width: 26px; height: 26px; margin: 0; }
@media (max-width: 429px) { .phone .glos-txt { display: none; } }
@container (max-width: 429px) { .phone .glos-txt { display: none; } }
.phone .p-anos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 5px; }
.phone .p-anos i { height: 4px; border-radius: 99px; background: #1b2c5e; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .5); }
.phone .p-anos i.feito { background: #4ade80; }
.phone .p-anos i.agora { background: var(--lampiao); box-shadow: 0 0 8px rgba(251, 191, 36, .6); }
.phone .p-faixa { display: flex; margin-top: 5px; border-radius: 12px; overflow: hidden; background: #091630; border: 1px solid rgba(160, 200, 255, .16);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .08); }
.phone .p-cel { flex: 1 1 auto; min-width: 0; padding: 4px 4px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1px; }
.phone .p-cel + .p-cel { border-left: 1px solid rgba(160, 200, 255, .14); }
.phone .p-cel b { display: flex; align-items: center; gap: 3px; min-height: 20px; font-size: 15px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.phone .p-cel b .p-val { font: inherit; color: inherit; overflow: visible; }
.phone .p-cel b small { font-size: 13px; font-weight: 600; color: #a9bdd3; }
.phone .p-cel > span { max-width: 100%; font-size: 13px; line-height: 1.2; color: #a9bdd3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone .p-cel .ico3 { width: 16px; height: 16px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .5)); }
.phone .p-cel.saldo { flex-grow: 1.3; background: linear-gradient(180deg, rgba(251, 191, 36, .24), rgba(251, 191, 36, .09)); }
.phone .p-cel.saldo b { font-size: 17px; color: #fde68a; }
.phone .p-cel.saldo > span { color: #f1dc9c; }
.phone .p-cel.atencao { background: rgba(249, 115, 22, .16); }
.phone .p-cel.atencao b { color: #fdba74; }
.phone .p-cel.mal { background: rgba(244, 63, 94, .24); }
.phone .p-cel.mal b { color: #fecdd3; }
.phone .p-niv { gap: 2px !important; }
.phone .p-niv i { width: 8px; height: 13px; border-radius: 2px; background: #2a3d7c; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .55), 0 0 0 1px rgba(160, 200, 255, .22); }
.phone .p-niv i.on { background: linear-gradient(180deg, #fde68a, #f59e0b 55%, #b45309); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
/* Simulador: o celular simulado passa a ter a largura de um celular de verdade (360 px de tela; antes, 280) */
.ph-wrap { width: 380px; }
.ph-frame { width: 380px; height: 680px; }


/* ===== R43: painel do professor por família, menu de ações, tema por família no celular ===== */
.pp-tit { font: 700 12px/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--tx3, #9bb1ca); margin: 14px 2px 6px; }
.pp-fam { border: 2px solid var(--fam, #23415f); border-radius: 16px; background: var(--card); margin: 0 0 10px; overflow: hidden; }
.pp-cab { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: linear-gradient(90deg, color-mix(in srgb, var(--fam) 34%, var(--card)), var(--card)); }
.pp-cabtx { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.pp-cabtx b { font-size: 17px; line-height: 1.15; }
.pp-cabtx span { font-size: 13px; line-height: 1.3; }
.pp-cabtx small { font-size: 12px; opacity: .8; }
.pp-lista { padding: 2px 12px 8px; }
.pp-lin { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(160, 200, 255, .14); }
.pp-lin:first-child { border-top: 0; }
.pp-bol { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.pp-bol.on { background: #22c55e; }
.pp-bol.off { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .28); }
.pp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.pp-txt > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-st { font-size: 12.5px; line-height: 1.3; }
.pp-st.ok { color: #86efac; } .pp-st.falta { color: #fbbf24; font-weight: 700; } .pp-st.info { color: var(--tx3, #9bb1ca); }
.pp-off { color: #fca5a5; }
.pp-tag { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #7c3aed; color: #fff; border-radius: 999px; padding: 2px 7px; vertical-align: middle; }
.pp-menu { min-width: 36px; padding: 0 6px; min-height: 44px; font-size: 22px; font-weight: 900; line-height: 1; flex: none; }
.pp-aviso { border: 2px solid #f59e0b; background: rgba(245, 158, 11, .12); border-radius: 14px; padding: 10px 12px; font-size: 13px; margin: 0 0 10px; }
.pp-aviso.red { border-color: #ef4444; background: rgba(239, 68, 68, .14); }
.pp-fundo { position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, .62); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.pp-menu-card { width: 100%; max-width: 420px; max-height: 88vh; overflow: auto; background: var(--card2); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.pp-menu-card h3 { margin: 0 0 4px; font-size: 20px; }
.pp-opcoes { display: grid; gap: 6px; }
.pp-fam-op { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--fam); background: color-mix(in srgb, var(--fam2) 40%, var(--card)); color: var(--tx); font: inherit; text-align: left; cursor: pointer; }
.pp-fam-op b { flex: 1; } .pp-fam-op small { opacity: .8; }
.ent-confirma { margin-top: 10px; display: grid; gap: 8px; border: 2px solid #f59e0b; border-radius: 14px; padding: 12px; background: rgba(245, 158, 11, .12); }
.ent-confirma p { margin: 0; }

/* celular: a cor da família vale para a tela inteira; o papel e a família sempre em destaque */
.phone .p-rot { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--tx2, #b6c8dc); }
.phone .p-quem b.p-fam-nome { font-size: 19px; line-height: 1.1; white-space: normal; overflow: visible; }
.phone .p-quem .p-fam { white-space: normal; }
.phone[data-fam] { background: radial-gradient(ellipse 120% 38% at 50% 0%, color-mix(in srgb, var(--fam) 38%, transparent) 0%, transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--fam2) 24%, #0a1528), #0a1528); }
.phone[data-fam] .hd { background: linear-gradient(180deg, color-mix(in srgb, var(--fam2) 68%, #0c1c36), rgba(12, 28, 54, .97)); border-bottom: 3px solid var(--fam); }
.phone[data-fam] .btn:not(.sec):not(.ok):not(.warn):not(.red):not(.info-btn) { --c: var(--fam2); --c2: color-mix(in srgb, var(--fam2) 55%, #000); }
.phone[data-fam] input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--fam2), var(--fam) var(--p, 0%), #0b1a2c var(--p, 0%)); }
.phone .fase-aviso { display: block; margin-top: 6px; background: #fff; color: #0b1a2c; border-radius: 12px; padding: 8px 12px; font-size: 15px; text-align: center; overflow: hidden; animation: faseAviso 3.6s ease forwards; }
@keyframes faseAviso { 0% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; } 8% { max-height: 64px; opacity: 1; padding-top: 8px; padding-bottom: 8px; } 85% { max-height: 64px; opacity: 1; } 100% { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; margin-top: 0; } }

/* R44: aula encerrada (telão e celulares) e barra fixa do professor */
.fim-ico { width: 96px; height: 96px; border-radius: 26px; display: flex; align-items: center; justify-content: center; font-size: 56px; color: #fff; background: linear-gradient(180deg, #22c55e, #15803d); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 7px 0 #14532d, 0 8px 0 1px #0b2e1a, 0 16px 20px rgba(0,0,0,.35); margin: 0 auto 18px; }
.fim-tela { text-align: center; }
.fim-tela h1, .fim-tela h2 { margin: 0 0 8px; }
.tin .fim-ico { width: 14cqw; height: 14cqw; font-size: 8cqw; border-radius: 3.6cqw; }
.pro-barra { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(7,17,31,.94); border-top: 1px solid var(--line, #23415f); backdrop-filter: blur(6px); }
.pro-barra .btn { flex: 1; max-width: 280px; }

/* Barras com moeda na ponta (20/11/2026): cilindro dourado com volume, moeda 3D no fim, porcentagem e pontos ao lado; escala fixa 0–120 */
.bm-linha { display: flex; align-items: center; gap: 1.6cqw; margin: .35cqw 0; }
.bm-trilho { position: relative; flex: 1; min-width: 0; height: calc(var(--m, 4.4cqw) * .62); margin-right: calc(var(--m, 4.4cqw) * .5); border-radius: 999px;
  background: linear-gradient(180deg, #04101c 0%, #0b2236 55%, #12334d 100%); box-shadow: inset 0 .3cqw .6cqw rgba(0, 0, 0, .75), inset 0 -.12cqw 0 rgba(255, 255, 255, .1), 0 .12cqw 0 rgba(255, 255, 255, .14); }
.bm-enche { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--p) * 1%); min-width: calc(var(--m, 4.4cqw) * .5); border-radius: 999px;
  background: linear-gradient(180deg, #fff3b0 0%, #fcd34d 22%, #f59e0b 58%, #b45309 100%);
  box-shadow: inset 0 .2cqw .25cqw rgba(255, 255, 255, .8), inset 0 -.3cqw .35cqw rgba(120, 53, 15, .7), 0 .35cqw 0 #78350f, 0 .55cqw 0 #451a03, 0 .9cqw 1cqw rgba(0, 0, 0, .45); }
.bm-enche::before { content: ""; position: absolute; left: 6%; right: calc(var(--m, 4.4cqw) * .4); top: 14%; height: 24%; border-radius: 999px; background: linear-gradient(180deg, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0)); }
.bm-moeda { position: absolute; right: calc(var(--m, 4.4cqw) * -.5); top: 50%; width: var(--m, 4.4cqw); height: var(--m, 4.4cqw); transform: translateY(-50%); object-fit: contain; filter: drop-shadow(0 .45cqw .35cqw rgba(0, 0, 0, .55)); pointer-events: none; }
.bm-txt { flex: none; width: 15cqw; line-height: 1.05; text-align: left; }
.bm-txt b { display: block; font-size: 2.5cqw; color: #fde68a; font-variant-numeric: tabular-nums; }
.bm-txt span { display: block; font-size: 1.8cqw; color: #cbd5e1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-linha:first-of-type .bm-trilho { margin-top: 2.2cqw; }
.sem-marca .bm-linha:first-of-type .bm-trilho { margin-top: .15cqw; }
.bm-trilho .marca-meta { top: -.5cqw; bottom: -.5cqw; z-index: 2; }
.bm-linha:first-of-type .bm-trilho .marca-meta { top: -2.2cqw; }
.bm-linha + .bm-linha .marca-meta b { display: none; }
.bm-linha.g .bm-txt { width: 19cqw; } .bm-linha.g .bm-txt b { font-size: 3.4cqw; } .bm-linha.g .bm-txt span { font-size: 2.2cqw; }
