/* ==========================================================================
   Krone — Diagnóstico de Compra · modo arcade
   Página escura de fliperama: tipografia pixel (Press Start 2P) nos rótulos
   e títulos curtos, Manrope no texto corrido, cantos duros, sombras em degrau
   e o dourado da marca (#FFB700) como cor de destaque.
   ========================================================================== */
:root {
  --bg: #100b22;
  --bg-2: #1a1338;
  --painel: #1f1842;
  --painel-2: #2a2158;
  --tinta: #07050f;
  --texto: #f6f2ff;
  --texto-2: #c9c1e6;
  --texto-3: #958bbd;
  --ouro: #ffb700;
  --ouro-2: #ffd25c;
  --ouro-esc: #b98200;
  --ciano: #3de0ff;
  --rosa: #ff4d9d;
  --verde: #3ee089;
  /* 'Silkscreen' só tem os dígitos (ver index.html): números nela, resto na Pixelify. */
  --pixel: 'Silkscreen', 'Pixelify Sans', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --degrau: -3px 0 0 0 var(--tinta), 3px 0 0 0 var(--tinta), 0 -3px 0 0 var(--tinta), 0 3px 0 0 var(--tinta);
  --degrau-sombra: -3px 0 0 0 var(--tinta), 3px 0 0 0 var(--tinta), 0 -3px 0 0 var(--tinta), 0 7px 0 0 var(--tinta);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.55) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 9%, rgba(255,255,255,.45) 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 62%, rgba(255,255,255,.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 44%, rgba(255,255,255,.4) 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.3) 50%, transparent 51%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  color: var(--texto);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--ouro); }
a:hover { color: var(--ouro-2); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--ciano); outline-offset: 3px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Linhas de varredura de monitor CRT, por cima de tudo e sem capturar clique. */
.crt {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}

/* ---------- Topo ---------- */
/* Topo em 3 colunas (1fr auto 1fr): o selo verde fica no centro exato da
   página, alinhado com o título e os textos da abertura. */
.topo {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  max-width: 1180px; margin: 0 auto; padding: 18px 20px;
}
.marca { font-family: var(--pixel); font-size: 18px; letter-spacing: 1px; color: var(--ouro); justify-self: start; }
.marca i { font-style: normal; color: var(--texto-3); margin: 0 4px; }
.topo-botoes { display: flex; gap: 10px; justify-self: end; }
.btn-som[hidden] { display: none; }
.selo-topo {
  justify-self: center; text-align: center;
  font-family: var(--pixel); font-size: 14px; line-height: 1.5; letter-spacing: .5px; color: var(--tinta);
  background: var(--verde); padding: 6px 12px; box-shadow: var(--degrau);
}
/* Aviso de modo teste: só em localhost, discreto no canto inferior. */
.modo-teste {
  position: fixed; left: 10px; bottom: 10px; z-index: 60;
  font-family: var(--pixel); font-size: 11px; line-height: 1.5; color: var(--texto-2);
  background: var(--painel); padding: 4px 8px; box-shadow: var(--degrau); opacity: .85;
}
.modo-teste[hidden] { display: none; }
.btn-som {
  font-family: var(--pixel); font-size: 14px; color: var(--texto-2); background: var(--painel);
  border: 0; padding: 9px 10px; cursor: pointer; box-shadow: var(--degrau); min-height: 36px;
}
.btn-som[aria-pressed="false"] { color: var(--texto-3); }
.btn-som:hover { color: var(--ouro); }

/* ---------- Abertura ---------- */
/* Tela de título ocupa a tela inteira (descontado o topo), com o conteúdo
   centralizado na vertical — um pouco acima do meio, para equilíbrio ótico.
   Depois do PRESS START ela encolhe e o jogo assume a tela. */
:root { --topo-h: 76px; }
.abertura {
  max-width: 860px; margin: 0 auto; padding: 36px 20px 40px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  min-height: calc(100vh - var(--topo-h));
  min-height: calc(100svh - var(--topo-h));
  padding-bottom: max(40px, 8vh);
}
.abertura.iniciado { min-height: 0; padding-bottom: 32px; }
.kicker { margin: 0; font-family: var(--pixel); font-size: 15px; letter-spacing: 2px; color: var(--ouro); }
/* Título em Press Start 2P (letra de fliperama). A fonte não tem o "Ã"
   maiúsculo, então o til é desenhado em pixel sobre o "A" (.til). */
.abertura h1 {
  margin: 14px 0 0; font-family: 'Press Start 2P', var(--pixel); font-weight: 400; line-height: 1.5;
  font-size: clamp(28px, 7vw, 68px); letter-spacing: 2px;
  color: var(--texto); text-shadow: 4px 4px 0 var(--rosa), 8px 8px 0 var(--tinta);
}
.abertura h1 > span > span:not(.til) { color: var(--ouro); text-shadow: 4px 4px 0 var(--ouro-esc), 8px 8px 0 var(--tinta); }
.til { position: relative; }
.til::before {
  content: ''; position: absolute; left: 12%; right: 12%; top: -.42em; height: .26em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 2' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1H1zM5 0h1v1H5zM0 1h1v1H0zM3 1h2v1H3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 2' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h2v1H1zM5 0h1v1H5zM0 1h1v1H0zM3 1h2v1H3z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  filter: drop-shadow(4px 4px 0 var(--rosa)) drop-shadow(4px 4px 0 var(--tinta));
}

/* Tela de título: com JS, o jogo fica desligado até o PRESS START. */
.js .jogo:not(.ligado) { display: none; }
.abertura.iniciado .btn-start { display: none; }

/* ---------- Botão arcade ---------- */
.btn-arcade {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--pixel); font-size: 18px; line-height: 1.5; letter-spacing: .5px;
  color: var(--tinta); background: var(--ouro); text-decoration: none;
  border: 0; padding: 16px 22px; min-height: 52px; cursor: pointer;
  box-shadow: var(--degrau-sombra), inset -4px -4px 0 0 var(--ouro-esc), inset 4px 4px 0 0 var(--ouro-2);
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
}
.btn-arcade:hover { background: var(--ouro-2); color: var(--tinta); }
.btn-arcade:active { transform: translateY(4px); box-shadow: var(--degrau), inset -4px -4px 0 0 var(--ouro-esc); }
.btn-arcade:disabled,
.btn-arcade.bloqueado {
  cursor: not-allowed; background: #4a4370; color: #8f87b5;
  box-shadow: var(--degrau-sombra), inset -4px -4px 0 0 #39325c, inset 4px 4px 0 0 #5a5287;
}
.btn-start { margin-top: 6px; animation: piscar-btn 1.1s steps(2) infinite; }
@keyframes piscar-btn { 50% { background: var(--ouro-2); } }

/* ---------- Jogo (palco + cartucho) ---------- */
.jogo {
  max-width: 1180px; margin: 0 auto; padding: 8px 20px 64px;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start;
}
.jogo-palco {
  position: sticky; top: 16px;
  height: min(600px, calc(100vh - 32px)); min-height: 420px;
  box-shadow: var(--degrau-sombra);
  background: var(--tinta);
}
.jogo-cartucho {
  background: var(--painel); padding: 26px 24px 24px; box-shadow: var(--degrau-sombra);
  min-height: 520px; position: relative;
}

/* ---------- Carregamento (depois do PRESS START) ----------
   Uma grade de blocos escuros cobre o jogo e cada bloco some num instante
   sorteado, revelando a tela "pixel a pixel". Por cima, o texto de carga. */
.jogo { position: relative; }
.carga {
  position: absolute; inset: 0 20px 64px; z-index: 30; pointer-events: none;
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); grid-template-rows: repeat(var(--rows), 1fr);
}
.carga i { background: var(--tinta); animation: bloco-some 1ms steps(1) forwards; animation-delay: var(--d); }
.carga i:nth-child(7n + 3) { background: #150f2c; }
.carga i:nth-child(11n + 5) { background: #1d1540; }
@keyframes bloco-some { to { opacity: 0; } }
.carga-texto {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 31;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-family: var(--pixel); font-size: 18px; color: var(--ouro); text-align: center;
  animation: carga-sai 1ms steps(1) forwards; animation-delay: var(--fim);
}
.carga-barra { width: 220px; height: 16px; box-shadow: var(--degrau); background: var(--tinta); padding: 3px; }
.carga-barra b { display: block; height: 100%; width: 0; background: var(--verde); animation: carga-enche var(--carga) steps(10) forwards; }
.carga-pct { font-size: 9px; color: var(--texto-2); }
@keyframes carga-enche { to { width: 100%; } }
@keyframes carga-sai { to { opacity: 0; visibility: hidden; } }

/* ---------- HUD ---------- */
.quiz { display: flex; flex-direction: column; gap: 22px; position: relative; scroll-margin-top: 16px; }
.hud { display: flex; flex-direction: column; gap: 10px; }
.hud-linha { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hud-fase, .hud-xp { font-family: var(--pixel); font-size: 15px; letter-spacing: 1px; }
.hud-fase { color: var(--ouro); }
.hud-xp { color: var(--texto-3); }
.hud-xp b { color: var(--verde); font-weight: 400; }
.hud-barra { display: flex; gap: 6px; }
.hud-barra i { flex: 1; height: 10px; background: var(--painel-2); box-shadow: inset 0 0 0 2px var(--tinta); }
.hud-barra i.feito { background: var(--ouro); }
.hud-barra i.atual { background: repeating-linear-gradient(90deg, var(--ouro) 0 6px, var(--ouro-esc) 6px 12px); animation: barra-andar .6s steps(4) infinite; }
@keyframes barra-andar { to { background-position: 12px 0; } }

/* ---------- Telas do quiz ---------- */
.quiz-tela { display: flex; flex-direction: column; gap: 16px; animation: entrar .35s steps(5) both; }
@keyframes entrar { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
.quiz-kicker { margin: 0; font-family: var(--pixel); font-size: 14px; letter-spacing: 1.5px; color: var(--ciano); }
.quiz h3, .quiz .quiz-titulo {
  margin: 0 0 4px; font-family: var(--pixel); font-weight: 400;
  font-size: clamp(21px, 2.6vw, 27px); line-height: 1.3; color: var(--texto);
}
.quiz-opcoes { display: flex; flex-direction: column; gap: 12px; }
.quiz-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--painel-2); color: var(--texto); border: 0; cursor: pointer;
  padding: 12px 14px; min-height: 56px; box-shadow: var(--degrau);
  transition: transform 80ms steps(2), background 80ms steps(2);
}
.opt-num {
  flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center;
  font-family: var(--pixel); font-size: 15px; color: var(--ouro); background: var(--tinta);
}
.opt-txt { flex: 1; font-size: 16px; font-weight: 700; line-height: 1.35; }
.opt-cursor { font-size: 12px; color: var(--ouro); opacity: 0; }
.quiz-opt:hover, .quiz-opt:focus-visible { background: #3a2f78; transform: translateX(4px); }
.quiz-opt:hover .opt-cursor, .quiz-opt:focus-visible .opt-cursor { opacity: 1; animation: piscar 0.6s steps(2) infinite; }
.quiz-opt.marcada { box-shadow: var(--degrau), inset 0 0 0 2px var(--ouro); }
.quiz-opt.escolhida { background: var(--ouro); color: var(--tinta); animation: escolher .5s steps(2) 3; }
.quiz-opt.escolhida .opt-num { color: var(--tinta); background: var(--ouro-2); }
.quiz-opt.escolhida .opt-cursor { opacity: 1; color: var(--tinta); }
@keyframes escolher { 50% { background: var(--ouro-2); } }
@keyframes piscar { 50% { opacity: 0; } }
.quiz.travado .quiz-opt, .quiz.travado .btn-back { pointer-events: none; }

/* Pergunta 1: dois cartões lado a lado (Imóvel / Carro), como no
   game-consórcio original — ícone num quadro, nome e ▶ (✔ quando escolhido). */
.quiz-cartoes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.quiz-cartoes .quiz-opt {
  flex-direction: column; justify-content: center; gap: 14px; text-align: center;
  min-height: 200px; padding: 22px 12px 16px;
}
.quiz-cartoes .quiz-opt:hover, .quiz-cartoes .quiz-opt:focus-visible { transform: translateY(-4px); }
.opt-num.opt-icone {
  width: 92px; height: 92px; background: var(--painel);
  box-shadow: var(--degrau), inset 0 0 0 3px var(--tinta);
}
.opt-icone .sprite { width: 62px; height: auto; }
.quiz-cartoes .opt-txt { flex: 0 0 auto; font-family: var(--pixel); font-size: 22px; font-weight: 400; }
.quiz-cartoes .opt-cursor { opacity: .7; font-size: 14px; }
.quiz-cartoes .quiz-opt.marcada .opt-cursor,
.quiz-cartoes .quiz-opt.escolhida .opt-cursor { font-size: 0; opacity: 1; animation: none; }
.quiz-cartoes .quiz-opt.marcada .opt-cursor::after,
.quiz-cartoes .quiz-opt.escolhida .opt-cursor::after {
  content: '✔'; font-size: 16px; display: inline-grid; place-items: center;
  width: 26px; height: 26px; background: var(--ouro); color: var(--tinta);
}
.quiz-cartoes .quiz-opt.escolhida .opt-cursor::after { background: var(--tinta); color: var(--ouro); }

/* Pergunta 2: barra de valor (− / R$ campo / +, slider, limites) + AVANÇAR */
.valor { display: flex; flex-direction: column; gap: 14px; background: var(--painel-2); padding: 18px 16px; box-shadow: var(--degrau); }
.valor-linha { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; }
.valor-passo {
  height: 56px; border: 0; cursor: pointer; background: var(--tinta); color: var(--ouro);
  font-family: var(--pixel); font-size: 28px; line-height: 1; box-shadow: inset 0 0 0 3px var(--ouro);
}
.valor-passo:hover { background: var(--ouro); color: var(--tinta); }
.valor-passo:active { transform: translateY(2px); }
.valor-campo { display: flex; align-items: stretch; background: var(--tinta); box-shadow: inset 0 0 0 2px var(--painel); min-width: 0; }
.valor-campo span {
  display: grid; place-items: center; padding: 0 12px; font-family: var(--pixel); font-size: 16px;
  color: var(--texto-3); border-right: 2px solid var(--painel);
}
.valor-campo input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--texto); text-align: center;
  font-family: var(--pixel); font-size: 24px; outline: none; caret-color: var(--ouro);
}
.valor-campo:focus-within { box-shadow: inset 0 0 0 2px var(--ouro); }

.valor-slider {
  --pct: 0%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 4px 0 0;
  background: transparent; cursor: pointer;
}
.valor-slider::-webkit-slider-runnable-track {
  height: 16px; box-shadow: 0 0 0 3px var(--tinta);
  background: linear-gradient(90deg, var(--ciano) 0 var(--pct), var(--tinta) var(--pct) 100%);
}
.valor-slider::-moz-range-track { height: 16px; background: var(--tinta); box-shadow: 0 0 0 3px var(--tinta); }
.valor-slider::-moz-range-progress { height: 16px; background: var(--ciano); }
.valor-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 28px; height: 32px; margin-top: -8px;
  background: var(--ouro); border: 0; box-shadow: 0 0 0 3px var(--tinta), inset -4px -4px 0 var(--ouro-esc), inset 4px 4px 0 var(--ouro-2);
}
.valor-slider::-moz-range-thumb {
  width: 28px; height: 32px; border: 0; border-radius: 0; background: var(--ouro);
  box-shadow: 0 0 0 3px var(--tinta), inset -4px -4px 0 var(--ouro-esc), inset 4px 4px 0 var(--ouro-2);
}
.valor-slider:focus-visible { outline: 3px solid var(--ciano); outline-offset: 6px; }
.valor-limites { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--texto-3); margin-top: -4px; }
.btn-avancar { width: 100%; margin-top: 4px; }
.btn-avancar.escolhida { animation: escolher .5s steps(2) 3; }

/* Prazo: meses em destaque, parcela estimada e se cabe no bolso */
.prazo-campo { justify-content: center; align-items: baseline; gap: 10px; padding: 8px 0; }
.prazo-campo b { font-family: var(--pixel); font-weight: 400; font-size: 30px; color: var(--texto); }
.prazo-campo span { border: 0; padding: 0; font-size: 14px; color: var(--texto-3); }
.prazo-resultado { background: var(--tinta); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.prazo-parcela { margin: 0; font-family: var(--pixel); font-size: 14px; color: var(--texto-2); }
.prazo-parcela .junto { white-space: nowrap; display: inline-block; }
.prazo-parcela b { font-weight: 400; font-size: 24px; color: var(--ouro); margin-left: 6px; }
.prazo-parcela small { font-size: 13px; color: var(--texto-3); margin-left: 2px; }
.prazo-status, .plano-status { margin: 0; font-family: var(--pixel); font-size: 13px; line-height: 1.4; }
.prazo-status.ok, .plano-status.ok { color: var(--verde); }
.prazo-status.alerta, .plano-status.alerta { color: #ff7a7a; }
/* Alerta do prazo em partes: título, explicação e botões de ajuste */
.prazo-status { display: flex; flex-direction: column; gap: 6px; }
.prazo-status strong { font-weight: 400; font-size: 15px; }
.prazo-status span { font-family: var(--sans); font-size: 14px; line-height: 1.45; color: var(--texto-2); }
.prazo-status span b { color: var(--texto); }
.ajustes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.ajustes button {
  font-family: var(--pixel); font-size: 13px; color: var(--tinta); background: var(--ouro);
  border: 0; padding: 8px 10px; cursor: pointer; box-shadow: var(--degrau);
}
.ajustes button:hover { background: var(--ouro-2); }

/* Plano de conquista (fase 6 e tela final) */
.plano-cartao {
  background: var(--tinta); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: inset 0 0 0 3px var(--ouro), inset 0 0 0 6px var(--tinta);
}
.plano-titulo { margin: 0; text-align: center; font-family: var(--pixel); font-size: 15px; color: var(--ouro); letter-spacing: 1px; }
.plano-linhas { margin: 0; display: grid; gap: 6px; }
.plano-linhas div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed #2f2760; padding-bottom: 5px; }
.plano-linhas dt { font-size: 14px; color: var(--texto-3); }
.plano-linhas dd { margin: 0; font-family: var(--pixel); font-size: 15px; color: var(--texto); text-align: right; }
.plano-linhas dd b { font-weight: 400; color: var(--ouro); }

.xp-pop {
  position: absolute; right: 8px; top: 40px; pointer-events: none;
  font-family: var(--pixel); font-size: 21px; color: var(--verde); text-shadow: 3px 3px 0 var(--tinta);
  animation: xp-subir .8s steps(8) forwards;
}
@keyframes xp-subir { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-36px); } }

.btn-back {
  align-self: flex-start; background: none; border: 0; cursor: pointer; padding: 6px 0;
  font-family: var(--pixel); font-size: 14px; color: var(--texto-3);
}
.btn-back:hover { color: var(--ouro); }

/* Contato */
.quiz-campos { display: grid; gap: 12px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo-rotulo { font-family: var(--pixel); font-size: 12px; letter-spacing: 1px; color: var(--texto-3); }
.quiz-input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--texto);
  background: var(--tinta); border: 0; box-shadow: inset 0 0 0 2px var(--painel-2); outline: none;
  caret-color: var(--ouro);
}
.quiz-input::placeholder { color: #6a6290; }
.quiz-input:focus { box-shadow: inset 0 0 0 2px var(--ouro); }
#quiz-submit { width: 100%; margin-top: 4px; }
.quiz-privacidade { display: flex; gap: 8px; margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--texto-3); }

/* Resultado */
.quiz-resultado p { margin: 0; color: var(--texto-2); font-size: 15.5px; line-height: 1.75; }
.quiz-resultado strong { color: var(--texto); }
.quiz-resultado h3 em { font-style: normal; color: var(--ouro); }
.selo-pronto {
  align-self: flex-start; font-family: var(--pixel); font-size: 14px; color: var(--tinta);
  background: var(--verde); padding: 8px 10px; box-shadow: var(--degrau);
}
.quiz-nota { color: var(--texto-3) !important; }

/* ---------- Rodapé ---------- */
.rodape {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  padding: 24px 20px 36px; font-size: 12.5px; color: var(--texto-3);
  border-top: 3px solid var(--tinta);
}
.rodape a { color: var(--texto-3); }

/* ==========================================================================
   Palco 3D
   ========================================================================== */
.palco {
  --ceu-1: #1b1145; --ceu-2: #5a2a8a; --ceu-3: #ff6f91;
  --chao: #120a2e; --grade: rgba(255, 77, 157, .75);
  position: relative; width: 100%; height: 100%; overflow: hidden;
  background: linear-gradient(180deg, var(--ceu-1) 0%, var(--ceu-2) 42%, var(--ceu-3) 58%);
  transition: --ceu-1 .6s, background .6s;
  isolation: isolate;
}
.palco[data-ceu="dia"]     { --ceu-1: #2f8fe8; --ceu-2: #6cc3ff; --ceu-3: #c9eeff; --chao: #2f6b3a; --grade: rgba(190, 255, 170, .55); }
.palco[data-ceu="tarde"]   { --ceu-1: #2a1a5e; --ceu-2: #c4487a; --ceu-3: #ffb36b; --chao: #3a1d3f; --grade: rgba(255, 179, 107, .7); }
.palco[data-ceu="noite"]   { --ceu-1: #04041a; --ceu-2: #12124a; --ceu-3: #2b2b7a; --chao: #07071f; --grade: rgba(61, 224, 255, .65); }
.palco[data-ceu="neblina"] { --ceu-1: #3b4660; --ceu-2: #7d879e; --ceu-3: #b9c0cf; --chao: #333a4d; --grade: rgba(220, 226, 240, .45); }
.palco[data-ceu="ouro"]    { --ceu-1: #3a1d06; --ceu-2: #c26a00; --ceu-3: #ffd25c; --chao: #2a1600; --grade: rgba(255, 210, 92, .8); }

.ceu { position: absolute; inset: 0 0 42% 0; }
.astro {
  position: absolute; left: 66%; top: 16%; width: 84px; height: 84px;
  clip-path: polygon(30% 0, 70% 0, 70% 6%, 85% 6%, 85% 15%, 94% 15%, 94% 30%, 100% 30%, 100% 70%, 94% 70%, 94% 85%, 85% 85%, 85% 94%, 70% 94%, 70% 100%, 30% 100%, 30% 94%, 15% 94%, 15% 85%, 6% 85%, 6% 70%, 0 70%, 0 30%, 6% 30%, 6% 15%, 15% 15%, 15% 6%, 30% 6%);
  background: linear-gradient(180deg, #ffe66d, #ff4d9d);
}
/* Sol "synthwave" listrado na abertura */
.palco[data-ceu="inicio"] .astro {
  top: 30%; width: 120px; height: 120px; left: calc(50% - 60px);
  -webkit-mask: linear-gradient(#000 0 52%, transparent 52% 58%, #000 58% 66%, transparent 66% 72%, #000 72% 79%, transparent 79% 85%, #000 85%);
  mask: linear-gradient(#000 0 52%, transparent 52% 58%, #000 58% 66%, transparent 66% 72%, #000 72% 79%, transparent 79% 85%, #000 85%);
}
.palco[data-ceu="dia"] .astro { background: #ffd23f; box-shadow: none; top: 12%; }
.palco[data-ceu="tarde"] .astro { background: linear-gradient(180deg, #ffd25c, #ff6a3d); top: 46%; width: 110px; height: 110px; left: 18%; }
.palco[data-ceu="noite"] .astro { background: #f1f0ff; width: 60px; height: 60px; top: 14%; left: 74%; }
.palco[data-ceu="neblina"] .astro { background: #f3f4f8; opacity: .55; }
.palco[data-ceu="ouro"] .astro { background: #fff1b8; width: 130px; height: 130px; top: 22%; left: calc(50% - 65px); box-shadow: 0 0 0 0 transparent; animation: pulsar 1.2s steps(3) infinite; }
@keyframes pulsar { 50% { opacity: .75; } }

.estrelas {
  position: absolute; inset: 0; opacity: 0; transition: opacity .6s;
  background:
    radial-gradient(2px 2px at 8% 20%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 22% 8%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 35% 30%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 52% 12%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 38%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 26%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 93% 6%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 15% 46%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 52%, #fff 50%, transparent 51%);
}
.palco[data-ceu="inicio"] .estrelas, .palco[data-ceu="noite"] .estrelas { opacity: 1; animation: cintilar 2.4s steps(2) infinite; }
@keyframes cintilar { 50% { opacity: .55; } }

.nuvens { position: absolute; inset: 0; opacity: 0; transition: opacity .6s; }
.palco[data-ceu="dia"] .nuvens, .palco[data-ceu="neblina"] .nuvens { opacity: 1; }
.nuvem { position: absolute; }
.nuvem-a { left: 8%; top: 18%; animation: deriva 30s linear infinite alternate; }
.nuvem-b { left: 58%; top: 40%; animation: deriva 22s linear infinite alternate-reverse; }
@keyframes deriva { to { transform: translateX(60px); } }

.chao {
  position: absolute; left: 0; right: 0; bottom: 0; height: 42%;
  background: var(--chao); overflow: hidden; perspective: 240px;
  border-top: 3px solid var(--grade);
}
.grade {
  position: absolute; left: -100%; right: -100%; bottom: 0; height: 400%;
  transform-origin: 50% 100%; transform: rotateX(72deg);
  background-image:
    linear-gradient(var(--grade) 2px, transparent 2px),
    linear-gradient(90deg, var(--grade) 2px, transparent 2px);
  background-size: 52px 52px;
  animation: rolar .7s linear infinite;
}
@keyframes rolar { to { background-position: 0 52px; } }

/* --- Mundo 3D --- */
.cena3d {
  position: absolute; inset: 0; z-index: 2;
  container-type: size;
  perspective: 1400px; perspective-origin: 50% 35%;
  --u-base: min(2.2cqi, 2.9cqh);
}
.camera {
  position: absolute; left: 50%; top: 70%; width: 0; height: 0;
  transform-style: preserve-3d; transform: rotateX(-24deg);   /* inclinação: arrastável (cena.js) */
}
.orbita { position: absolute; transform-style: preserve-3d; }   /* ângulo extra do arraste */

/* Arrastar para girar: cursor de "pegar"; no toque o vertical continua rolando a página */
.cena3d { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.palco.girando .cena3d { cursor: grabbing; }
.dica-giro {
  position: absolute; right: 12px; bottom: 14px; z-index: 5; pointer-events: none;
  font-family: var(--pixel); font-size: 11px; color: var(--texto-2);
  background: rgba(7, 5, 15, .72); padding: 5px 8px; box-shadow: var(--degrau);
  animation: dica-pisca 1.6s steps(2) 4;
}
@keyframes dica-pisca { 50% { opacity: .45; } }
.palco.festa .dica-giro { display: none; }
.mundo {
  position: absolute; transform-style: preserve-3d;
  animation: girar 18s linear infinite;
}
@keyframes girar { from { transform: rotateY(25deg); } to { transform: rotateY(-335deg); } }
.plataforma { --u: var(--u-base); position: absolute; transform-style: preserve-3d; }
.modelo { --u: calc(var(--u-base) * var(--esc, 1)); position: absolute; transform-style: preserve-3d; }
.modelo.surgindo { animation: surgir .55s steps(6) both; }
@keyframes surgir {
  0% { transform: scale3d(.2, .2, .2) translateY(-40px); }
  60% { transform: scale3d(1.12, 1.12, 1.12); }
  100% { transform: scale3d(1, 1, 1); }
}

.cubo { position: absolute; transform-style: preserve-3d; }
.cubo-flutua { animation: flutuar 1.6s steps(6) infinite alternate; }
@keyframes flutuar { to { transform: translateY(calc(var(--u) * -1.4)); } }

.face {
  position: absolute; left: 0; top: 0;
  background-color: var(--c);
  backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.rotulo {
  font-family: var(--pixel); font-size: calc(var(--u) * 1.5); line-height: 1;
  color: #1b1b2b; white-space: nowrap;
}
.pad-plataforma { box-shadow: inset 0 0 0 calc(var(--u) * .5) #3d3277; }
.pad-plataforma .rotulo { color: var(--ouro); }

/* Padrões das faces (sempre sobre a cor sombreada --c) */
.pad-janelas {
  background-image:
    linear-gradient(90deg, var(--c) 0 22%, transparent 22% 78%, var(--c) 78%),
    linear-gradient(var(--c) 0 22%, var(--vidro, #8fd3f4) 22% 72%, var(--c) 72%);
  background-size: calc(var(--u) * 2.5) calc(var(--u) * 3);
  background-position: calc(var(--u) * .4) 0;
}
.palco[data-ceu="noite"] .pad-janelas, .palco[data-ceu="tarde"] .pad-janelas { --vidro: #ffd23f; }
.pad-vidro {
  background-image:
    repeating-linear-gradient(90deg, rgba(10, 20, 40, .45) 0 2px, transparent 2px calc(var(--u) * 2)),
    repeating-linear-gradient(0deg, rgba(10, 20, 40, .45) 0 2px, transparent 2px calc(var(--u) * 3)),
    linear-gradient(160deg, rgba(255, 255, 255, .45), transparent 45%, rgba(255, 255, 255, .15) 70%, transparent 80%);
}
.palco[data-ceu="noite"] .pad-vidro {
  background-image:
    repeating-linear-gradient(90deg, rgba(10, 20, 40, .55) 0 2px, transparent 2px calc(var(--u) * 2)),
    repeating-linear-gradient(0deg, rgba(10, 20, 40, .55) 0 2px, transparent 2px calc(var(--u) * 3)),
    linear-gradient(rgba(255, 210, 63, .35), rgba(255, 210, 63, .35));
}
.pad-fachada {
  background-image:
    linear-gradient(#7a4a22, #7a4a22),
    linear-gradient(var(--vidro, #8fd3f4), var(--vidro, #8fd3f4)),
    linear-gradient(var(--vidro, #8fd3f4), var(--vidro, #8fd3f4));
  background-size: 18% 58%, 22% 30%, 22% 30%;
  background-position: 50% 100%, 12% 35%, 88% 35%;
  background-repeat: no-repeat;
}
.pad-janela1 {
  background-image: linear-gradient(var(--vidro, #8fd3f4), var(--vidro, #8fd3f4));
  background-size: 34% 36%; background-position: 50% 40%; background-repeat: no-repeat;
}
.pad-janela2 {
  background-image: linear-gradient(var(--vidro, #8fd3f4), var(--vidro, #8fd3f4)), linear-gradient(var(--vidro, #8fd3f4), var(--vidro, #8fd3f4));
  background-size: 24% 38%, 24% 38%; background-position: 20% 40%, 80% 40%; background-repeat: no-repeat;
}
.palco[data-ceu="noite"] .face { --vidro: #ffd23f; }
.pad-garagem {
  background-image: repeating-linear-gradient(0deg, #8d96a3 0 3px, #c7ced6 3px 7px);
  background-size: 72% 72%; background-position: 50% 100%; background-repeat: no-repeat;
}
.pad-vitrine {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 calc(var(--u) * 2.4), rgba(20, 20, 40, .5) calc(var(--u) * 2.4) calc(var(--u) * 2.4 + 2px)),
    linear-gradient(var(--vidro, #8fd3f4), var(--vidro, #8fd3f4));
  background-size: 86% 62%, 86% 62%; background-position: 50% 100%, 50% 100%; background-repeat: no-repeat;
}
.pad-listras { background-image: repeating-linear-gradient(90deg, var(--c) 0 calc(var(--u) * 1), #fff calc(var(--u) * 1) calc(var(--u) * 2)); }
.pad-cabine {
  background-image: linear-gradient(#9bd7f5, #5aa9d6);
  background-size: 84% 70%; background-position: 50% 30%; background-repeat: no-repeat;
}
.pad-roda, .pad-roda-ouro {
  background-image: linear-gradient(#b8bec8, #b8bec8);
  background-size: 42% 42%; background-position: 50% 50%; background-repeat: no-repeat;
}
.pad-roda-ouro { background-image: linear-gradient(#ffd23f, #ffd23f); }
.pad-folhas {
  background-image:
    radial-gradient(circle at 30% 30%, rgba(0, 0, 0, .2) 0 18%, transparent 19%),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, .16) 0 14%, transparent 15%);
  background-size: calc(var(--u) * 1.5) calc(var(--u) * 1.5);
}
.pad-agua { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 2px, transparent 2px calc(var(--u) * 1.2)); }
.pad-interrogacao::after {
  content: '?'; font-family: var(--pixel); font-size: calc(var(--u) * 3.2); color: #fff;
  text-shadow: calc(var(--u) * .3) calc(var(--u) * .3) 0 #a35f00;
}
.pad-interrogacao { box-shadow: inset 0 0 0 calc(var(--u) * .35) #a35f00; }

/* --- Sobreposições do palco --- */
/* Brilho de escolha confirmada: dourado e fraco, só no clique (KroneCena.destacar). */
.flash { position: absolute; inset: 0; z-index: 4; background: var(--ouro); opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.flash.ativo { animation: flash .4s steps(3) both; }
@keyframes flash { 0% { opacity: .28; } 100% { opacity: 0; } }

.tag-modelo {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: rgba(7, 5, 15, .82); padding: 10px 14px; box-shadow: var(--degrau);
  text-align: center; white-space: nowrap; max-width: calc(100% - 24px);
}
.tag-modelo b { font-family: var(--pixel); font-weight: 400; font-size: 17px; color: var(--ouro); }
.tag-modelo small { font-family: var(--pixel); font-size: 11px; color: var(--texto-2); letter-spacing: .5px; }
.palco.em-previa .tag-modelo b::before { content: 'PRÉVIA · '; color: var(--ciano); }

/* Indicadores no canto superior esquerdo do palco: entrada e prazo. */
.hud-chips {
  position: absolute; left: 12px; top: 12px; z-index: 5;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.hud-chip {
  display: flex; align-items: center; gap: 8px;
  background: rgba(7, 5, 15, .82); padding: 8px 10px; box-shadow: var(--degrau);
  font-family: var(--pixel); font-size: 12px; color: var(--texto);
}
.hud-chip[hidden] { display: none; }
.hud-entrada b, .hud-parcela b, .hud-prazo b { font-weight: 400; color: var(--verde); }
.mini-barra { display: block; width: 54px; height: 8px; background: var(--tinta); box-shadow: 0 0 0 2px var(--painel-2); }
.mini-barra i { display: block; height: 100%; background: var(--ouro); }

.prop { position: absolute; right: 12px; top: 12px; z-index: 5; }
.prop-item {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: rgba(7, 5, 15, .82); padding: 10px 12px; box-shadow: var(--degrau);
  animation: entrar .35s steps(5) both;
}
.prop-item span { font-family: var(--pixel); font-size: 11px; line-height: 1.6; text-align: center; color: var(--texto); }
.prop-final span { color: var(--ouro); }
.brilha { animation: pulsar .8s steps(2) infinite; }

.confete { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.confete[hidden] { display: none; }
.confete i {
  position: absolute; top: -12px; width: 8px; height: 8px; background: var(--cor);
  animation: cair 2.4s steps(12) infinite;
}
@keyframes cair { to { transform: translateY(640px) rotate(180deg); } }

/* ---------- Fase 7: baú da recompensa (trancado) ---------- */
.bau-bloqueado {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  background: var(--tinta); box-shadow: inset 0 0 0 3px var(--ouro), inset 0 0 0 6px var(--tinta);
  font-size: 14px; line-height: 1.5; color: var(--texto-2);
}
.bau-bloqueado strong { display: block; font-family: var(--pixel); font-weight: 400; font-size: 15px; color: var(--ouro); margin-bottom: 2px; }
.bau-icone { flex: 0 0 auto; animation: bau-treme 2.4s steps(2) infinite; }
@keyframes bau-treme { 0%, 80%, 100% { transform: none; } 85% { transform: translateX(-2px) rotate(-4deg); } 90% { transform: translateX(2px) rotate(4deg); } }

/* ---------- Vitória em tela cheia ---------- */
.sem-rolagem, .sem-rolagem body { overflow: hidden; }
.jogo-palco.tela-cheia {
  position: fixed !important; inset: 0; z-index: 90; width: auto; height: 100vh; height: 100svh;
  min-height: 0; margin: 0 !important; box-shadow: none;
}
.palco.festa .camera { top: 50%; }
.palco.festa .cena3d { --u-base: min(2.7cqi, 3.2cqh); }   /* modelo maior na festa */
.palco.festa .mundo { animation-duration: 6s; }
.palco.festa .hud-chips, .palco.festa .tag-modelo, .palco.festa .prop { display: none; }
.vitoria { position: absolute; inset: 0; z-index: 20; pointer-events: none; display: flex; flex-direction: column; justify-content: space-between; padding: 22px 16px; }
.vitoria .raios {
  position: absolute; left: 50%; top: 46%; width: 180vmax; height: 180vmax; margin: -90vmax 0 0 -90vmax; z-index: -1;
  background: repeating-conic-gradient(rgba(255, 210, 92, .22) 0 9deg, transparent 9deg 18deg);
  animation: raios-giram 14s linear infinite;
}
@keyframes raios-giram { to { transform: rotate(360deg); } }
.fogos, .chuva-moedas { position: absolute; inset: 0; overflow: hidden; }
.fogo {
  position: absolute; width: 6px; height: 6px; background: var(--cor); opacity: 0;
  box-shadow: 0 -34px var(--cor), 24px -24px var(--cor), 34px 0 var(--cor), 24px 24px var(--cor),
              0 34px var(--cor), -24px 24px var(--cor), -34px 0 var(--cor), -24px -24px var(--cor),
              0 -18px var(--cor), 18px 0 var(--cor), 0 18px var(--cor), -18px 0 var(--cor);
  animation: estouro 1.6s steps(6) infinite; animation-delay: var(--d);
}
@keyframes estouro { 0% { transform: scale(.1); opacity: 1; } 70% { opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
.chuva-moedas span { position: absolute; top: -40px; animation: moeda-cai 2.6s linear infinite; }
@keyframes moeda-cai { to { transform: translateY(110vh) rotate(1turn); } }
.vitoria-topo { text-align: center; animation: titulo-cai .6s steps(6) both; }
@keyframes titulo-cai { from { transform: translateY(-140%); } to { transform: none; } }
.vitoria-titulo {
  margin: 0; font-family: 'Press Start 2P', var(--pixel); font-size: clamp(18px, 4.2vw, 46px); line-height: 1.4;
  color: var(--ouro); text-shadow: 3px 3px 0 var(--ouro-esc), 6px 6px 0 var(--tinta); animation: piscar-ouro .9s steps(2) infinite;
}
@keyframes piscar-ouro { 50% { color: #fff3b0; } }
.vitoria-sub { margin: 10px 0 0; font-family: var(--pixel); font-size: clamp(15px, 2vw, 22px); color: #fff; text-shadow: 3px 3px 0 var(--tinta); }
.vitoria-painel {
  pointer-events: auto; align-self: center; width: min(560px, 100%);
  display: flex; align-items: center; gap: 16px; padding: 16px;
  background: rgba(7, 5, 15, .88); box-shadow: inset 0 0 0 3px var(--ouro), inset 0 0 0 6px var(--tinta), 0 8px 0 var(--tinta);
  animation: painel-sobe .5s steps(5) .6s both;
}
@keyframes painel-sobe { from { transform: translateY(140%); } to { transform: none; } }
.vitoria-bau { position: relative; flex: 0 0 auto; width: 92px; height: 92px; display: grid; place-items: center; }
.vitoria-bau .sprite { position: absolute; }
.vitoria-bau .bau-fechado { animation: bau-abre 1.2s steps(6) .6s both; }
.vitoria-bau .trofeu { opacity: 0; animation: trofeu-surge .5s steps(4) 1.5s both; }
@keyframes bau-abre { 0%, 70% { transform: translateX(0); } 20% { transform: translateX(-4px) rotate(-6deg); } 40% { transform: translateX(4px) rotate(6deg); } 100% { transform: scale(1.4); opacity: 0; } }
@keyframes trofeu-surge { from { opacity: 0; transform: scale(.3) translateY(20px); } to { opacity: 1; transform: none; } }
.vitoria-recompensas { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vitoria-rotulo { margin: 0; font-family: var(--pixel); font-size: 14px; color: var(--ciano); }
.vitoria-recompensas ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.vitoria-recompensas li { font-size: 15px; line-height: 1.4; color: var(--texto); opacity: 0; animation: item-aparece .3s steps(3) both; }
.vitoria-recompensas li.vitoria-xp { font-family: var(--pixel); color: var(--verde); }
@keyframes item-aparece { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.vitoria-continuar { margin-top: 6px; align-self: flex-start; }

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  .jogo { grid-template-columns: 1fr; gap: 18px; padding: 0 16px 48px; }
  .carga { position: fixed; inset: 0; }
  .jogo-palco {
    position: sticky; top: 0; z-index: 10;
    height: clamp(220px, 40vh, 320px); min-height: 0;
    margin: 0 -16px; box-shadow: 0 4px 0 0 var(--tinta);
  }
  .cena3d { --u-base: min(2cqi, 2.6cqh); }
  .quiz { scroll-margin-top: calc(clamp(220px, 40vh, 320px) + 12px); }
  .jogo-cartucho { min-height: 0; padding: 22px 16px 20px; }
  .topo { padding: 14px 16px; }
  /* Telas menores: marca e botões na 1ª linha, selo centralizado na 2ª. */
  .topo { grid-template-columns: auto 1fr; grid-template-areas: "marca botoes" "selo selo"; row-gap: 14px; }
  .marca { grid-area: marca; }
  .topo-botoes { grid-area: botoes; }
  .selo-topo { grid-area: selo; }
  :root { --topo-h: 112px; }
  .abertura { padding: 20px 16px 28px; padding-bottom: max(28px, 8vh); }
  .kicker { line-height: 1.7; }
  .abertura h1 { font-size: clamp(28px, 9.2vw, 44px); letter-spacing: 1px; }
  .kicker span { display: block; }
  .tag-modelo { bottom: 8px; padding: 7px 10px; }
  .tag-modelo b { font-size: 14px; }
  .hud-chips, .prop { top: 8px; }
  .dica-giro { top: 8px; bottom: auto; right: 8px; font-size: 10px; }
  .hud-chips { left: 8px; gap: 6px; }
  .hud-chip { font-size: 11px; padding: 6px 8px; }
  .mini-barra { width: 40px; }
  .prop { right: 8px; }
  .prop-item { padding: 6px 8px; transform-origin: top right; scale: .85; }
  .astro { width: 64px; height: 64px; }
  .palco[data-ceu="inicio"] .astro { width: 90px; height: 90px; left: calc(50% - 45px); top: 22%; }
}
@media (max-width: 520px) {
  .vitoria { padding: 18px 12px; }
  .vitoria-painel { gap: 10px; padding: 12px; }
  .vitoria-bau { width: 70px; height: 70px; }
  .vitoria-bau .sprite { width: 64px; height: auto; }
  .vitoria-recompensas li { font-size: 13.5px; }
  .vitoria-rotulo { font-size: 12px; }
  .marca { font-size: 14px; }
  .topo-botoes { gap: 6px; }
  .selo-topo { font-size: 12px; }
  .btn-som { font-size: 12px; padding: 8px 7px; }
  .btn-arcade { font-size: 16px; padding: 14px 16px; }
  .valor { padding: 16px 12px; }
  .valor-linha { grid-template-columns: 46px 1fr 46px; gap: 8px; }
  .valor-passo { height: 50px; font-size: 24px; }
  .valor-campo span { padding: 0 8px; font-size: 14px; }
  .valor-campo input { font-size: 19px; }
  .quiz-cartoes { gap: 10px; }
  .quiz-cartoes .quiz-opt { min-height: 170px; padding: 18px 8px 14px; }
  .opt-num.opt-icone { width: 76px; height: 76px; }
  .opt-icone .sprite { width: 52px; }
  .quiz-cartoes .opt-txt { font-size: 19px; }
}

/* Movimento reduzido: cena parada num ângulo bom, sem efeitos piscando. */
@media (prefers-reduced-motion: reduce) {
  .mundo { animation: none; transform: rotateY(-32deg); }
  .grade, .estrelas, .nuvem, .btn-start, .hud-barra i.atual, .cubo-flutua,
  .confete i, .brilha, .astro, .dica-giro { animation: none !important; }
  .modelo.surgindo, .flash.ativo, .quiz-tela, .prop-item, .xp-pop, .quiz-opt.escolhida { animation-duration: 1ms !important; }
  /* Vitória: tudo aparece de uma vez, sem fogos, moedas caindo nem raios girando */
  .fogos, .chuva-moedas, .bau-fechado { display: none; }
  .vitoria .raios, .vitoria-titulo, .bau-icone { animation: none !important; }
  .vitoria-topo, .vitoria-painel, .trofeu, .vitoria-recompensas li { animation-duration: 1ms !important; animation-delay: 0s !important; }
}

/* Dados obrigatórios: aviso do que falta e campo inválido */
.campos-falta { margin: -4px 0 0; font-size: 13px; line-height: 1.5; color: var(--rosa); }
.campos-falta.ok { color: var(--verde); }
.campo.invalido .quiz-input { box-shadow: inset 0 0 0 2px var(--rosa); }
.campo.invalido .campo-rotulo { color: var(--rosa); }
