/* Plantão do Técnico · Santa Mônica: mundo em tela cheia + telas por cima. */
body.jt { margin: 0; overflow: hidden; background: #6fae52; color: #16212e; font-family: var(--ap-fonte); font-size: 15px; line-height: 1.45; }
.jt * { box-sizing: border-box; }
#mundo { position: fixed; inset: 0; display: block; touch-action: none; }
#minimapa { position: fixed; right: 12px; bottom: 12px; width: 200px; height: auto; border: 3px solid #fff; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.25); background: #6fae52; z-index: 5; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
kbd { display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 6px; background: #fff; color: #16212e; border: 1px solid #c6cfd9; border-bottom-width: 3px; font: 700 12px/1.4 var(--ap-fonte); text-align: center; }
.peq { font-size: 13px; color: #566476; }

/* botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 12px; padding: 10px 16px; font: 700 15px var(--ap-fonte);
  background: #1559b3; color: #fff; cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 #0b3c7d; transition: transform .08s; }
.botao:hover { background: #1b66c9; } .botao:active { transform: translateY(2px); box-shadow: 0 1px 0 #0b3c7d; }
.botao.cinza { background: #e8edf3; color: #16212e; box-shadow: 0 3px 0 #c3ccd7; } .botao.cinza:hover { background: #dfe6ee; }
.botao.verde { background: #1f8a4c; box-shadow: 0 3px 0 #136034; } .botao.verde:hover { background: #239a55; }
.botao.grande { padding: 13px 22px; font-size: 17px; }
.botao.peq-btn { padding: 6px 12px; font-size: 13px; }
.pulsar { animation: pulsar 1.2s infinite; }
@keyframes pulsar { 0%, 100% { box-shadow: 0 3px 0 #136034, 0 0 0 0 rgba(31,138,76,.6); } 50% { box-shadow: 0 3px 0 #136034, 0 0 0 10px rgba(31,138,76,0); } }

/* HUD */
.hud { position: fixed; top: 10px; left: 10px; right: 10px; z-index: 6; display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud-esq { display: flex; align-items: center; gap: 10px; background: rgba(16,34,54,.88); color: #fff; padding: 8px 14px 8px 8px; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.2); min-width: 0; }
.hud-avatar { width: 38px; height: 38px; border-radius: 10px; background: #1559b3; display: grid; place-items: center; font-size: 20px; border-bottom: 3px solid #ff8a1f; }
.hud-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hud-txt b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.hud-txt small { color: #b8c6d6; font-size: 12px; }
.hud-dir { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hud-btn, .hud-xp { border: 0; background: rgba(16,34,54,.88); color: #fff; font: 700 14px var(--ap-fonte); padding: 10px 14px; border-radius: 12px; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.2); text-decoration: none; }
.hud-btn:hover { background: #1559b3; }
.hud-ico { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; background: #ffd34d; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; image-rendering: pixelated; }
.hud-xp { background: #f0b400; color: #16212e; }
.hud-xp { position: relative; }
.hud-xp[data-dica]::after { content: attr(data-dica); position: absolute; top: calc(100% + 8px); right: 0; z-index: 9; width: max-content; max-width: min(330px, 80vw);
  white-space: pre-line; text-align: left; background: #13233a; color: #fff; font: 600 13px/1.45 var(--ap-fonte); padding: 10px 12px; border: 3px solid #0b1626; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); opacity: 0; transform: translateY(-4px); transition: opacity .12s ease, transform .12s ease; pointer-events: none; }
.hud-xp[data-dica]:hover::after, .hud-xp[data-dica]:focus-visible::after { opacity: 1; transform: none; }
@media (pointer: coarse) { .hud-xp[data-dica]::after { display: none; } }

.aviso-porta { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 6; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;
  background: #fff; padding: 10px 12px 10px 16px; border-radius: 16px; box-shadow: 0 6px 24px rgba(0,0,0,.28); max-width: calc(100vw - 24px); font-size: 15px; }
.aviso-porta .ok { color: #e0a800; }
.aviso-porta button { border: 0; background: #1f8a4c; color: #fff; font: 700 15px var(--ap-fonte); border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.aviso-porta button kbd { background: rgba(255,255,255,.2); color: #fff; border-color: rgba(255,255,255,.4); margin-left: 4px; }
.op-ponto { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 2px rgba(0,0,0,.08); }
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); z-index: 40; background: #102236; color: #fff; padding: 10px 16px; border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); max-width: min(560px, calc(100vw - 24px)); font-size: 15px; animation: toastIn .2s ease-out; }
.toast.ok { background: #1f8a4c; } .toast.erro { background: #b3261e; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -8px); } }

/* toque */
.toque { position: fixed; inset: auto 0 0 0; height: 0; z-index: 7; }
.dpad { position: fixed; left: 14px; bottom: 14px; width: 150px; height: 150px; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 4px; }
.dpad button { border: 0; border-radius: 12px; background: rgba(16,34,54,.6); color: #fff; font-size: 20px; touch-action: none; user-select: none; -webkit-user-select: none; }
.dpad button.ativo { background: #1559b3; }
.dpad [data-dir="cima"] { grid-area: 1 / 2; } .dpad [data-dir="esq"] { grid-area: 2 / 1; } .dpad [data-dir="dir"] { grid-area: 2 / 3; } .dpad [data-dir="baixo"] { grid-area: 3 / 2; }
.acao { position: fixed; right: 18px; bottom: 170px; width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; background: #8a94a3; color: #fff; font: 800 26px var(--ap-fonte); touch-action: manipulation; }
.acao.pronto { background: #1f8a4c; animation: pulsar 1.2s infinite; }
@media (pointer: coarse) { #minimapa { width: 140px; height: auto; top: 70px; bottom: auto; right: 10px; } .aviso-porta { bottom: 176px; } }

/* telas */
.tela { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: auto; background: rgba(12,26,42,.55); backdrop-filter: blur(2px); }
.tela-inicio { background: linear-gradient(160deg, rgba(13,63,134,.92), rgba(16,34,54,.88)); }
.ini-card { display: flex; gap: 24px; align-items: center; background: #fff; border-radius: 20px; padding: 24px; max-width: 860px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
#ini-boneco { flex: 0 0 auto; background: radial-gradient(circle at 50% 60%, #e9f1fb, #cfe0f5); border-radius: 18px; }
.ini-txt { min-width: 0; }
.ini-chapeu { margin: 0; color: #1559b3; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; }
.ini-txt h1 { margin: 4px 0 10px; font-size: clamp(26px, 4vw, 36px); line-height: 1.1; }
.ini-txt h1 span { font-size: .6em; color: #ff8a1f; }
.ini-passos { padding-left: 22px; margin: 10px 0; } .ini-passos li { margin: 5px 0; }
.bal { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #8a2bb8; color: #fff; font-weight: 800; font-size: 13px; }
.ini-nome { display: flex; flex-direction: column; gap: 4px; font-weight: 700; margin: 12px 0 6px; }
.ini-nome input { font: 16px var(--ap-fonte); padding: 10px 12px; border: 2px solid #c6cfd9; border-radius: 10px; max-width: 360px; }
.ini-nome input:focus { border-color: #1559b3; outline: none; }
.ini-aviso { color: #b3261e; font-weight: 700; margin: 0 0 6px; }
.ini-botoes { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
@media (max-width: 640px) { .ini-card { flex-direction: column; padding: 18px; } #ini-boneco { width: 110px; height: 138px; } }

.lista-card { background: #fff; border-radius: 18px; padding: 18px 20px; width: min(640px, 100%); max-height: calc(100dvh - 32px); overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.lista-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lista-topo h2 { margin: 0; font-size: 20px; }
.fechar { border: 0; background: #eef1f5; width: 36px; height: 36px; border-radius: 10px; font-size: 16px; cursor: pointer; }
.lista-os { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.os-item { display: flex; align-items: center; gap: 10px; text-align: left; border: 2px solid #e3e8ee; background: #fff; border-radius: 12px; padding: 8px 10px; cursor: pointer; font: inherit; color: inherit; }
.os-item:hover { border-color: #1559b3; } .os-item.alvo { border-color: #f0b400; background: #fffbea; }
.os-item.trancada { opacity: .55; cursor: not-allowed; }
/* caderno do técnico (consulta para o SAEP) */
.caderno-card { width: min(720px, 100%); }
.caderno-busca { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0 2px; }
.caderno-busca input { flex: 1 1 220px; min-width: 0; font: 15px var(--ap-fonte); padding: 9px 12px; border: 2px solid #c6cfd9; border-radius: 10px; background: #fff; color: #16212e; }
.caderno-busca input:focus { border-color: #1559b3; outline: none; }
.caderno-conta { font: 700 12.5px var(--ap-fonte); color: #566476; }
.caderno-gtit { margin: 18px 0 4px; padding-bottom: 4px; border-bottom: 2px solid #e3e8ee; font-size: 15px; color: #16212e; }
.caderno-missao { margin: 10px 0 12px; }
.caderno-topo { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.caderno-topo b { display: block; font-size: 14px; }
.caderno-topo small { display: block; font-size: 12.5px; color: #566476; }
.caderno-ok { color: #1f8a4c; font-weight: 800; }
.caderno-est { font: 700 12px var(--ap-fonte); color: #b88709; white-space: nowrap; }
.caderno-itens { margin: 6px 0 0; padding-left: 20px; }
.caderno-itens li { margin: 5px 0; font-size: 13.5px; line-height: 1.45; color: #2b3542; }
.caderno-itens li b { color: #16212e; }
/* lojinha */
.loja-card { width: min(760px, 100%); }
.loja-saldo { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #fff7e0; border: 2px solid #f0c75a; font-weight: 600; }
.loja-saldo .loja-xp { font-size: 20px; font-weight: 800; color: #8a5a00; }
.loja-saldo .botao { margin: 6px 4px 0 0; }
.loja-aviso { margin: 6px 0; padding: 8px 12px; border-radius: 10px; background: #eef4ff; color: #16325e; font-weight: 600; }
.loja-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; margin: 10px 0; }
.loja-sec { grid-column: 1 / -1; margin: 6px 0 2px; text-align: left; }
.loja-sec h3 { margin: 0; font-size: 15px; color: #16325e; }
.loja-sec small { font-weight: 600; color: #5a6675; font-size: 12px; }
.loja-bike { grid-column: 1 / -1; display: grid !important; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; text-align: left; }
.loja-bike p { margin: 4px 0 0; }
.loja-veiculos { display: flex; gap: 6px; margin-top: 8px; }
.loja-veiculos .botao { flex: 1 1 0; width: auto; min-width: 0; margin: 0; }
@media (max-width: 520px) { .loja-bike { grid-template-columns: auto 1fr; } .loja-bike .botao { grid-column: 1 / -1; } }
.loja-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 8px; border: 2px solid #e3e8ee; border-radius: 14px; background: #fff; text-align: center; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.loja-item canvas { width: 84px; height: 120px; image-rendering: pixelated; background: linear-gradient(#cfe8f7 0 62%, #7cc06a 62%); border-radius: 10px; }
.loja-item b { font-size: 14px; line-height: 1.15; }
.loja-item .botao { width: 100%; }
.loja-item.r-raro { border-color: #9cc6ef; } .loja-item.r-epico { border-color: #c9a2e6; background: #fbf6ff; }
.loja-item.r-lendario { border-color: #f0b44a; background: linear-gradient(#fffaf0, #fff1d6); box-shadow: 0 0 0 2px rgba(240,180,74,.35); }
.loja-item.r-exclusivo { border-color: #ff8a1f; background: linear-gradient(#fffdf7, #fff3e0); box-shadow: 0 0 0 2px rgba(255,138,31,.18); }
/* capa da vitrine: o cenário acompanha a raridade, sempre em pixelado */
.loja-item.r-epico canvas { background: linear-gradient(#e8dcf7 0 62%, #a58bc4 62%); }
.loja-item.r-lendario canvas { background: linear-gradient(#c9a7e0 0 40%, #f7c3a3 40% 62%, #e0aa6c 62%); }
.loja-item.r-exclusivo canvas { background: linear-gradient(#ffdfba 0 62%, #e9c08c 62%); }
.loja-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(16,34,54,.16); }
.loja-item.r-lendario:hover { box-shadow: 0 8px 18px rgba(16,34,54,.16), 0 0 0 2px rgba(240,180,74,.35); }
.loja-item.r-exclusivo:hover { box-shadow: 0 8px 18px rgba(16,34,54,.16), 0 0 0 2px rgba(255,138,31,.18); }
.loja-item.esgotado { opacity: .72; background: #f4f6f8; border-color: #cfd6de; }
.loja-item.esgotado canvas { background: linear-gradient(#dfe5ea 0 62%, #b9c1c8 62%); }
.loja-item.esgotado:hover { transform: none; box-shadow: none; }
.loja-item.usando { border-color: #1f8a4c; background: #f0fbf4; box-shadow: 0 0 0 2px rgba(31,138,76,.22); }
.loja-item.usando.r-exclusivo { background: linear-gradient(#fffdf7, #fff3e0); }
.loja-item.usando:hover { box-shadow: 0 8px 18px rgba(16,34,54,.16), 0 0 0 2px rgba(31,138,76,.3); }
@media (prefers-reduced-motion: reduce) { .loja-item { transition: none; } .loja-item:hover { transform: none; } }
.loja-rar { color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; }
.botao.laranja { background: #e08a00; box-shadow: 0 3px 0 #a35f00; } .botao.laranja:hover { background: #f09a10; }
.botao[disabled] { opacity: .75; cursor: not-allowed; }
.loja-pe { margin-top: 4px; }
/* lojinha: abas (Lojinha · Mercado) */
.loja-abas { display: flex; gap: 6px; margin: 10px 0 4px; padding-bottom: 6px; border-bottom: 2px solid #e3e8ee; }
.loja-aba { flex: 1 1 0; min-width: 0; border: 2px solid #c6cfd9; border-bottom: 0; border-radius: 10px 10px 0 0; background: #eef1f5; color: #46525f; font: 700 14px var(--ap-fonte); padding: 9px 10px; cursor: pointer; }
.loja-aba:hover { background: #e3e9f0; }
.loja-aba.ativa { background: #1559b3; border-color: #0b3c7d; color: #fff; }
.loja-aba:focus-visible { outline: 3px solid #f39200; outline-offset: 1px; }
/* lojinha: aba Mercado */
.mercado-corpo { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.mercado-sec { margin: 10px 0 0; text-align: left; }
.mercado-sec h3 { margin: 0; font-size: 15px; color: #16325e; }
.mercado-sec small { font-weight: 600; color: #5a6675; font-size: 12px; }
.mercado-vazio { margin: 4px 0; padding: 10px 12px; border: 2px dashed #d7dee6; border-radius: 12px; background: #fafbfc; font-size: 13.5px; color: #566476; }
.mercado-vazio.mini { padding: 6px 10px; font-size: 12.5px; }
.mercado-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border: 2px solid #e3e8ee; border-radius: 14px; background: linear-gradient(#fffdf7, #fff3e0); border-color: #ff8a1f; box-shadow: 0 0 0 2px rgba(255,138,31,.12); text-align: left; }
.mercado-card.fechado { background: #f6f8fa; border-color: #cfd6de; box-shadow: none; opacity: .9; }
.mercado-card canvas { width: 56px; height: 80px; flex: 0 0 auto; image-rendering: pixelated; border-radius: 8px; background: linear-gradient(#ffdfba 0 62%, #e9c08c 62%); }
.mercado-card.fechado canvas { background: linear-gradient(#dfe5ea 0 62%, #b9c1c8 62%); }
.mercado-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mercado-info b { font-size: 14.5px; line-height: 1.2; }
.mercado-preco { font-weight: 800; color: #8a5a00; }
.mercado-selo { align-self: flex-start; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: #fff; background: #2f86d6; padding: 2px 8px; border-radius: 999px; }
.mercado-acoes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.mercado-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.mercado-form input[type="number"], .mercado-form select { font: 15px var(--ap-fonte); padding: 6px 8px; min-width: 0; border: 2px solid #c6cfd9; border-radius: 8px; background: #fff; color: #16212e; }
.mercado-form input[type="number"] { width: 110px; }
.mercado-form select { max-width: 180px; }
.mercado-campo { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 700; color: #46525f; text-align: left; }
.mercado-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #2b3542; }
.mercado-oferta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border: 2px solid #e3e8ee; border-radius: 12px; background: #fff; text-align: left; }
.mercado-oferta-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.mercado-oferta-info b { font-size: 14px; }
.mercado-troca { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: #8a2bb8; }
.mercado-troca canvas { width: 32px; height: 50px; image-rendering: pixelated; border-radius: 6px; background: linear-gradient(#e8dcf7 0 62%, #a58bc4 62%); }
.mercado-status { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; color: #46525f; background: #eef1f5; padding: 2px 8px; border-radius: 999px; }
.mercado-oferta-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 520px) {
  .mercado-card { grid-template-columns: auto 1fr; }
  .mercado-card .mercado-acoes { grid-column: 1 / -1; justify-content: stretch; }
  .mercado-card .mercado-acoes .botao { flex: 1 1 auto; }
  .mercado-form { width: 100%; }
  .mercado-form input[type="number"], .mercado-form select { flex: 1 1 120px; width: auto; max-width: none; }
  .mercado-oferta { flex-direction: column; align-items: stretch; }
  .mercado-oferta-acoes .botao { flex: 1 1 auto; }
}
/* ranking */
.rank-card { width: min(560px, 100%); }
.rank-lema { margin: 2px 0 6px; font-size: 18px; font-weight: 800; color: #e08a00; }
.rank-lista { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rank-linha { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 2px solid #e3e8ee; border-radius: 12px; background: #fff; }
.rank-pos { width: 34px; text-align: center; font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.rank-nome { flex: 1 1 auto; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-nome small { color: #1f8a4c; font-weight: 800; }
.rank-xp { font-weight: 800; color: #8a5a00; white-space: nowrap; }
.rank-linha.p1 { border-color: #f0c75a; background: #fffaeb; } .rank-linha.p2 { border-color: #c9d1db; background: #f7f9fb; } .rank-linha.p3 { border-color: #e2b48c; background: #fdf5ee; }
.rank-linha.voce { border-color: #1f8a4c; background: #effaf3; box-shadow: 0 0 0 3px rgba(31,138,76,.18); }
.rank-sep { text-align: center; color: #8a94a3; font-weight: 800; letter-spacing: 3px; }
.rank-dica { margin: 8px 0 0; padding: 10px 12px; border-radius: 12px; background: #eef4ff; color: #16325e; font-weight: 600; }
.rank-total { text-align: right; margin-top: 6px; }
.os-num { flex: 0 0 30px; height: 30px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 800; }
.os-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; } .os-txt small { color: #566476; }
.os-est { color: #e0a800; font-weight: 800; letter-spacing: 1px; white-space: nowrap; }
.lista-rodape { display: flex; justify-content: flex-end; }
.glossario { padding-left: 20px; } .glossario li { margin: 3px 0; }

/* resultado */
.resultado { text-align: center; }
.medalha { width: 84px; height: 84px; margin: 4px auto 8px; border-radius: 50%; display: grid; place-items: center; font-size: 40px; color: #fff; background: radial-gradient(circle at 35% 30%, #ffe27a, #e0a800); box-shadow: 0 0 0 6px #fff3c4; }
.medalha.prata { background: radial-gradient(circle at 35% 30%, #f1f3f5, #a7b0ba); box-shadow: 0 0 0 6px #e9edf1; }
.medalha.bronze { background: radial-gradient(circle at 35% 30%, #f3c39a, #b26a2e); box-shadow: 0 0 0 6px #f6e1cf; }
.resultado h2 { margin: 4px 0; }
.estrelas { font-size: 38px; letter-spacing: 6px; color: #d5dbe2; } .estrelas .on { color: #f0b400; }
.r-lista { text-align: left; margin: 10px 0; border: 1px solid #e3e8ee; border-radius: 12px; overflow: hidden; }
.r-lista > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; } .r-lista > div:nth-child(odd) { background: #f5f7fa; }
.r-lista p { padding: 8px 12px; margin: 0; }
.r-cod { font-size: 16px; } .r-cod b { font-size: 20px; color: #1559b3; letter-spacing: 1px; }
.resultado .ini-botoes { justify-content: center; }
.card.xp-res { border: 2px solid #f0d36b; background: #fffbea; border-radius: 12px; padding: 10px 14px; margin: 10px 0; text-align: left; }
.card.xp-res.ganhou { border-color: #1f8a4c; background: #eafaf0; }
.xp-num { font-size: 26px; font-weight: 800; color: #1f8a4c; }
.xp-caixa { border: 2px solid #f0d36b; background: #fffbea; border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.xp-barra { height: 8px; background: #eee3b8; border-radius: 4px; overflow: hidden; margin: 6px 0; } .xp-barra i { display: block; height: 100%; background: #f0b400; }

/* dentro da casa */
.tela-casa { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 0; background: #e9eef4; backdrop-filter: none; overflow: hidden; }
.casa-topo { flex: 0 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; background: #102236; color: #fff; }
.casa-tit { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.casa-tit b { font-size: 17px; } .casa-tit small { color: #b8c6d6; }
.casa-area { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 12px; padding: 12px; }
.casa-lado { min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 10px; }
.casa-cena { width: 100%; height: 132px; display: block; background: #cfe3f2; border: 3px solid #1d1b2a; border-radius: 6px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .25); image-rendering: pixelated; }
.casa-cena.cena-curta { height: 90px; }
.fala { display: flex; gap: 10px; align-items: flex-start; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 2px 8px rgba(16,33,54,.08); }
.fala canvas { flex: 0 0 auto; border-radius: 50%; }
.fala p { margin: 0; font-size: 15px; }
.tarefas { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: 0 2px 8px rgba(16,33,54,.08); }
.tarefas h3 { margin: 0 0 6px; font-size: 15px; text-transform: uppercase; letter-spacing: .5px; color: #566476; }
.tarefas ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tarefas li { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; }
.tarefas li.ok > span:last-child { color: #1f8a4c; text-decoration: line-through; text-decoration-color: rgba(31,138,76,.5); }
.caixinha { flex: 0 0 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #eef1f5; font-weight: 800; font-size: 13px; border: 2px solid #c6cfd9; }
li.ok .caixinha { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.casa-botoes { display: flex; gap: 8px; } .casa-botoes .botao { flex: 1; padding: 9px 10px; }
.dica { background: #fff8d6; border: 2px solid #f0d36b; border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.dica small { color: #7a6a2a; }
.etq { background: #fff; border: 2px dashed #9aa6b4; border-radius: 12px; overflow: hidden; font-size: 14px; }
.etq-topo { background: #102236; color: #fff; font-weight: 700; padding: 6px 10px; }
.etq table { width: 100%; border-collapse: collapse; } .etq th, .etq td { text-align: left; padding: 4px 10px; border-top: 1px solid #edf0f3; }
.etq th { color: #566476; font-weight: 600; width: 46%; } .etq td { font-family: Consolas, "Courier New", monospace; word-break: break-all; }
.etq-os { margin-top: 8px; border-color: #f0b400; } .etq-os .etq-topo { background: #b07a00; } .etq .peq { margin: 6px 10px; }
#btn-entregar { width: 100%; }
.casa-direita { min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.casa-direita .casa-janela { flex: 1 1 auto; min-height: 0; }
.cmd { flex: 0 0 auto; background: #0c0c0c; color: #e6e6e6; border-radius: 10px; overflow: hidden; border: 1px solid #333; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.cmd-barra { display: flex; justify-content: space-between; align-items: center; background: #1f1f1f; color: #ddd; font-size: 13px; padding: 5px 10px; }
.cmd-min { background: transparent; border: 1px solid #555; color: #ddd; border-radius: 6px; font-size: 12px; padding: 1px 8px; cursor: pointer; }
.cmd-corpo { height: 210px; overflow: auto; padding: 8px 10px; font: 14px/1.35 Consolas, "Cascadia Mono", "Courier New", monospace; cursor: text; }
.cmd.min .cmd-corpo { height: 0; padding: 0 10px; }
.cmd pre { margin: 0; white-space: pre-wrap; font: inherit; }
.cmd pre .gw { background: #f0b400; color: #000; font-weight: 700; }
.cmd pre .dica-cmd { color: #8fd18f; }
.cmd-linha { display: flex; gap: 0; } .cmd-linha label { white-space: nowrap; }
.cmd-linha input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; outline: none; caret-color: #fff; }
.url-form input:disabled { cursor: not-allowed; }
.url-form { padding: 2px 4px 2px 12px; }
.url-form input { flex: 1; min-width: 0; border: 0; font: 15px var(--ap-fonte); padding: 4px 0; outline: none; background: transparent; }
.url-ir { border: 0; background: #1559b3; color: #fff; font-weight: 700; border-radius: 12px; padding: 4px 14px; cursor: pointer; }
.nav-vazio { padding: 40px 24px; text-align: center; color: #3c4857; max-width: 520px; margin: auto; }
.nav-vazio .nav-ico { font-size: 54px; } .nav-vazio.erro { color: #7a1f19; }
@media (max-width: 860px) {
  .tela-casa { overflow: auto; }
  .casa-area { display: flex; flex-direction: column; overflow: visible; flex: 0 0 auto; }
  .casa-lado { overflow: visible; flex: 0 0 auto; }
  .casa-direita { flex: 0 0 auto; }
  .casa-direita .casa-janela { flex: 0 0 auto; height: 78dvh; }
}
@media (max-width: 600px) { #minimapa { display: none; } .hud-btn span { display: none; } .hud-txt b { max-width: 34vw; } }

/* ================================================================ v2: interface no estilo de jogo
   Caixas com borda escura de 3px e sombra "dura" deslocada, como nos RPGs em pixel art. */
.jt { --px-borda: #1b2333; --px-sombra: 4px 4px 0 rgba(17,24,39,.55); --px-laranja: #f39200; --px-azul: #1559b3; }
.hud-esq, .hud-btn, .hud-xp, .aviso-porta, .toast, .ini-card, .lista-card, .fala, .tarefas, .dica, #minimapa {
  border: 3px solid var(--px-borda); border-radius: 6px; box-shadow: var(--px-sombra); }
.hud-esq { background: #13233a; padding: 6px 14px 6px 6px; }
.hud-avatar { border-radius: 4px; border: 2px solid #0b1626; border-bottom: 4px solid var(--px-laranja); }
.hud-txt b { font-size: 15px; letter-spacing: .2px; }
.hud-txt small { color: #ffd27a; font-weight: 700; }
.hud-btn, .hud-xp { background: #13233a; padding: 8px 12px; }
.hud-btn:hover { background: var(--px-azul); }
.hud-trava { background: #7c2d12; border-color: #ffd27a; color: #fff; }
.hud-trava:hover { background: #9a3412; }
.hud-trava[hidden] { display: none; }
.hud-multi[hidden] { display: none; }
.hud-multi.off { background: #2b3648; color: #8a94a3; cursor: default; }
.hud-multi.off:hover { background: #2b3648; }
.hud-multi:not(.off)[aria-pressed="false"] { opacity: .6; }
.hud-trava.travado { background: #c92a2a; border-color: #ffe066; color: #fff; animation: travaPulso 1.4s infinite; }
.hud-trava.travado:hover { background: #e03131; }
@keyframes travaPulso { 0%, 100% { box-shadow: var(--px-sombra), 0 0 0 0 rgba(224,49,49,.65); } 50% { box-shadow: var(--px-sombra), 0 0 0 8px rgba(224,49,49,0); } }
.hud-xp { background: #ffc61a; }
.toast { border-radius: 6px; font-weight: 600; top: 74px; }
.toast.ok { background: #1d7a43; } .toast.erro { background: #a3241c; }
.aviso-porta { border-radius: 6px; background: #fffaf0; font-weight: 600; }
.aviso-porta button { border: 2px solid var(--px-borda); border-radius: 4px; box-shadow: 2px 2px 0 var(--px-borda); }
.botao { border-radius: 6px; border: 3px solid var(--px-borda); box-shadow: 3px 3px 0 var(--px-borda); }
.botao:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--px-borda); }
.botao.cinza { box-shadow: 3px 3px 0 var(--px-borda); } .botao.verde { box-shadow: 3px 3px 0 var(--px-borda); }
.pulsar { animation: pulsar2 1.1s infinite; }
@keyframes pulsar2 { 0%, 100% { box-shadow: 3px 3px 0 var(--px-borda), 0 0 0 0 rgba(31,138,76,.6); } 50% { box-shadow: 3px 3px 0 var(--px-borda), 0 0 0 9px rgba(31,138,76,0); } }
.tela-inicio { background: linear-gradient(180deg, rgba(10,42,92,.9), rgba(13,24,40,.92)); }
.ini-card { border-radius: 8px; background: #fffdf7; }
#ini-boneco { border-radius: 6px; border: 3px solid var(--px-borda); background: linear-gradient(#8fd0f0 0 62%, #6fae52 62%); image-rendering: pixelated; }
.ini-txt h1 { text-shadow: 2px 2px 0 #ffd27a; letter-spacing: .3px; }
.ini-txt h1 span { color: #d96d00; text-shadow: none; }
.ini-nome input { border: 3px solid var(--px-borda); border-radius: 4px; }
.lista-card { border-radius: 8px; background: #fffdf7; }
.os-item { border-radius: 4px; border-width: 3px; }
.os-item:hover { border-color: var(--px-borda); }
.os-num { border-radius: 4px; border: 2px solid var(--px-borda); }
.fechar { border: 2px solid var(--px-borda); border-radius: 4px; }
.medalha { border: 3px solid var(--px-borda); }
.r-lista { border: 3px solid var(--px-borda); border-radius: 4px; }
kbd { border-radius: 3px; border: 2px solid var(--px-borda); border-bottom-width: 3px; }

/* caixa de diálogo do cliente (estilo RPG) */
.casa-topo { border-bottom: 4px solid var(--px-laranja); }
.fala { background: #13233a; color: #fff; padding: 10px; gap: 12px; align-items: center; }
.fala canvas { border-radius: 4px; border: 3px solid #fff; background: #8fd0f0; image-rendering: pixelated; }
.fala-txt { flex: 1; min-width: 0; }
.fala-nome { display: inline-block; background: var(--px-laranja); color: #13233a; font-weight: 800; font-size: 13px; padding: 1px 8px; border: 2px solid #fff; border-radius: 3px; margin-bottom: 4px; }
.fala p { color: #fff; font-size: 15.5px; line-height: 1.45; cursor: pointer; min-height: 3em; }
.fala p.digitando::after { content: "▌"; color: #ffd27a; animation: piscar .6s steps(1) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.tarefas { background: #fffdf7; }
.tarefas h3 { color: #13233a; }
.caixinha { border-radius: 3px; border-color: var(--px-borda); }
.dica { border-color: var(--px-borda); background: #fff6cc; border-radius: 6px; }
.cmd { border: 3px solid var(--px-borda); border-radius: 6px; box-shadow: var(--px-sombra); }
.casa-janela { border: 3px solid var(--px-borda); box-shadow: var(--px-sombra); }

/* intervalo: cobre tudo e trava o jogo */
.intervalo { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: repeating-linear-gradient(45deg, rgba(10,22,40,.96) 0 18px, rgba(16,34,58,.96) 18px 36px); }
.intervalo[hidden] { display: none; }
.iv-card { display: flex; gap: 24px; align-items: center; background: #fffdf7; border: 4px solid var(--px-borda); border-radius: 8px; box-shadow: 6px 6px 0 #000; padding: 24px 28px; max-width: 640px; width: 100%; }
#iv-boneco { flex: 0 0 auto; border: 3px solid var(--px-borda); border-radius: 6px; background: linear-gradient(#ffd27a 0 62%, #6fae52 62%); image-rendering: pixelated; }
.iv-chapeu { margin: 0; color: #d96d00; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.iv-txt h2 { margin: 4px 0 8px; font-size: 26px; }
.iv-relogio { font: 800 44px/1 Consolas, "Courier New", monospace; color: #13233a; background: #e9f1fb; border: 3px solid var(--px-borda); border-radius: 4px; display: inline-block; padding: 8px 14px; margin: 6px 0; letter-spacing: 2px; }
.iv-falta { margin: 6px 0 0; font-size: 17px; }
body.no-intervalo .toast { display: none; }
/* controle flutuante e tela da trava de aula (admin pausa toda a turma) */
.admin-trava-flutuante { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 1005; display: flex; align-items: center; gap: 10px;
  background: #13233a; color: #fff; border: 3px solid var(--px-borda); border-radius: 8px; box-shadow: var(--px-sombra); padding: 6px 10px 6px 14px;
  font-weight: 700; font-size: 14px; max-width: calc(100vw - 24px); }
.admin-trava-flutuante[hidden] { display: none; }
.admin-trava-flutuante.travado { background: #a61e22; border-color: #ffe066; }
.admin-trava-flutuante .atf-btn { padding: 5px 12px; font-size: 13px; background: #fffdf7; color: #13233a; white-space: nowrap; }
.admin-trava-flutuante .atf-btn:hover { background: #ffe066; }
.intervalo.trava { background: repeating-linear-gradient(45deg, rgba(16,28,52,.97) 0 18px, rgba(24,42,74,.97) 18px 36px); }
#tr-boneco { flex: 0 0 auto; border: 3px solid var(--px-borda); border-radius: 6px; background: linear-gradient(#9fd3ff 0 62%, #6fae52 62%); image-rendering: pixelated; }
.tr-card .iv-chapeu { color: #1559b3; }
@media (max-width: 600px) { .iv-card { flex-direction: column; text-align: center; padding: 18px; } .iv-relogio { font-size: 34px; } }

/* quadro fixo "Como andar" (computador) */
.teclas-ajuda { position: fixed; left: 12px; bottom: 12px; z-index: 5; background: #13233a; color: #fff; border: 3px solid var(--px-borda); border-radius: 6px; box-shadow: var(--px-sombra); padding: 8px 12px 10px; }
.ta-tit { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0; padding: 0; background: none; border: 0; font: inherit; font-weight: 800; font-size: 13px; color: #ffd27a; text-transform: uppercase; letter-spacing: .6px; cursor: pointer; text-align: left; }
.ta-tit:hover { color: #fff1c4; }
.ta-tit:focus-visible { outline: 2px solid #ffd27a; outline-offset: 3px; }
.ta-seta { margin-left: auto; font-size: 12px; }
.teclas-ajuda.aberto .ta-tit { margin-bottom: 6px; }
.teclas-ajuda:not(.aberto) { padding: 6px 10px; }
.ta-linha { display: flex; align-items: center; gap: 10px; }
.ta-ou { font-size: 13px; color: #b8c6d6; }
.ta-cruz { display: grid; grid-template-columns: repeat(3, 28px); grid-template-rows: repeat(2, 28px); gap: 3px; }
.ta-cruz kbd { display: grid; place-items: center; min-width: 0; padding: 0; font-size: 13px; }
.ta-cruz .c { grid-area: 1 / 2; } .ta-cruz .e { grid-area: 2 / 1; } .ta-cruz .b { grid-area: 2 / 2; } .ta-cruz .d { grid-area: 2 / 3; }
.ta-acao { margin: 8px 0 0; font-size: 13px; }
@media (max-height: 520px), (max-width: 700px) { .teclas-ajuda { display: none; } }
@media (max-height: 700px) {
  .teclas-ajuda { padding: 5px 8px 6px; }
  .ta-tit { font-size: 11px; margin-bottom: 4px; }
  .ta-cruz { grid-template-columns: repeat(3, 21px); grid-template-rows: repeat(2, 21px); gap: 2px; }
  .ta-cruz kbd { font-size: 11px; }
  .ta-acao { font-size: 11px; margin-top: 4px; }
  .cmd-corpo { height: 150px; }
  .casa-lado { gap: 8px; }
  .fala p, .tarefas li { font-size: 14px; }
}

/* v3: minimapa mais largo, escolha de personagem, segredo do ônibus, noite */
#minimapa { width: 224px; height: auto; }
@media (pointer: coarse) { #minimapa { width: 154px; height: auto; } }
/* v4: fluxo em duas etapas — carrossel de personagens e tela de orientações */
.tela-personagem { background: linear-gradient(180deg, rgba(9,37,82,.95), rgba(13,24,40,.96)); }
.carrossel-card { width: min(660px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 18px 22px 20px;
  background: #fffdf7; background-image: radial-gradient(circle, rgba(27,35,51,.07) 1px, transparent 1.5px); background-size: 14px 14px;
  border: 4px solid var(--px-borda); border-radius: 8px; box-shadow: 8px 8px 0 rgba(0,0,0,.55); animation: cardEntra .28s ease-out; }
@keyframes cardEntra { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) { .carrossel-card, .ini-card { animation: none; } }
.carrossel-topo { text-align: center; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 3px dashed #e3d9c2; }
.carrossel-topo .ini-chapeu { color: #d96d00; }
.carrossel-topo h1 { margin: 4px 0 0; font-size: clamp(24px, 3.6vw, 32px); line-height: 1.12; letter-spacing: .3px; text-shadow: 2px 2px 0 #ffd27a; }
.carrossel-topo h1 span { display: block; color: #d96d00; text-shadow: none; font-size: .82em; text-transform: uppercase; letter-spacing: 1px; }
.carrossel { display: flex; align-items: center; justify-content: center; gap: 14px; }
.carrossel-centro { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 0 1 224px; min-width: 0; }
.carrossel-palco { position: relative; width: 100%; min-width: 0; touch-action: pan-y; }
#car-boneco { display: block; width: 100%; height: auto; cursor: grab; touch-action: pan-y;
  border: 4px solid var(--px-borda); border-radius: 6px; box-shadow: 4px 4px 0 rgba(17,24,39,.32); image-rendering: pixelated;
  background: radial-gradient(circle at 76% 15%, #fff3b0 0 8%, rgba(255,243,176,0) 9%), linear-gradient(#8fd0f0 0 60%, #a7d98d 60% 64%, #6fae52 64%); }
#car-boneco:active { cursor: grabbing; }
.car-placa { display: inline-block; max-width: 100%; margin: 0;
  padding: 3px 12px; background: #13233a; color: #ffd27a; border: 3px solid var(--px-borda); border-radius: 4px;
  box-shadow: 3px 3px 0 rgba(0,0,0,.35); font-weight: 800; font-size: clamp(12px, 3vw, 15px); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.carrossel-seta { flex: 0 0 auto; align-self: center; margin-bottom: 39px; width: 54px; height: 54px; display: grid; place-items: center; padding: 0 0 4px;
  font: 800 30px/1 var(--ap-fonte); color: #13233a; background: #ffd27a;
  border: 3px solid var(--px-borda); border-radius: 6px; box-shadow: 3px 3px 0 var(--px-borda); cursor: pointer;
  transition: background .12s, transform .08s, box-shadow .08s; }
.carrossel-seta:hover { background: #ffc61a; }
.carrossel-seta:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--px-borda); }
.carrossel-laterais { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin: 14px auto 0; }
.carrossel-laterais button { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 8px 5px 5px; text-align: left;
  background: #fff; color: #16212e; font: 700 13px/1.25 var(--ap-fonte);
  border: 3px solid var(--px-borda); border-radius: 6px; box-shadow: 3px 3px 0 var(--px-borda); cursor: pointer;
  transition: background .12s, box-shadow .08s, transform .08s; }
.carrossel-laterais button:hover { background: #fff6cc; }
.carrossel-laterais button:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--px-borda); }
.carrossel-laterais button canvas { flex: 0 0 auto; width: 48px; height: 58px; border: 2px solid var(--px-borda); border-radius: 3px;
  image-rendering: pixelated; background: linear-gradient(#8fd0f0 0 62%, #6fae52 62%); }
.carrossel-laterais button span { min-width: 0; }
.carrossel-laterais button small { display: block; color: #566476; font-weight: 600; font-size: 12px; }
.carrossel-laterais button.sel { background: #fff3c4; border-color: #d96d00; box-shadow: 3px 3px 0 #d96d00; }
.carrossel-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; max-width: 500px; margin: 14px auto 0; }
.carrossel-pontos { display: flex; gap: 4px; }
.car-ponto { position: relative; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.car-ponto::after { content: ""; position: absolute; inset: 5px; background: #e8edf3; border: 3px solid var(--px-borda); border-radius: 50%;
  box-shadow: 2px 2px 0 rgba(17,24,39,.35); transition: background .12s, transform .12s; }
.car-ponto:hover::after { background: #ffd27a; }
.car-ponto.on::after { background: #f39200; transform: translateY(-2px); }
.carrossel-dica { margin: 0; font-size: 13px; color: #566476; }
.carrossel-dica kbd { font-size: 11px; min-width: 20px; }
.carrossel-acoes { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 16px; text-align: center; }
.carrossel-acoes .peq { margin: 0; max-width: 420px; text-align: center; }
/* etapa 2: personagem em destaque ao lado das orientações */
.tela-inicio { align-items: flex-start; }
.tela-inicio > .ini-card, .tela-inicio > .carrossel-card { margin-top: auto; margin-bottom: auto; }
.ini-heroi { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ini-heroi-txt { display: flex; flex-direction: column; align-items: center; gap: 8px; }
#ini-boneco { width: 192px; height: 240px; border: 4px solid var(--px-borda); border-radius: 6px; box-shadow: 4px 4px 0 rgba(17,24,39,.3); }
.ini-etiqueta { max-width: 200px; margin: 0; padding: 3px 10px; background: #13233a; color: #ffd27a; text-align: center; line-height: 1.25;
  font-weight: 800; font-size: 13px; border: 3px solid var(--px-borda); border-radius: 4px; box-shadow: 3px 3px 0 rgba(17,24,39,.3); }
#btn-trocar { font-size: 12.5px; padding: 5px 10px; }
.ini-card { animation: cardEntra .28s ease-out; }
@media (min-width: 641px) and (max-height: 760px) { #ini-boneco { width: 168px; height: 210px; } }
@media (max-width: 640px) {
  .carrossel-card { padding: 14px; }
  .carrossel { gap: 8px; }
  .carrossel-seta { width: 42px; height: 42px; font-size: 24px; }
  .carrossel-laterais { gap: 6px; }
  .carrossel-laterais button { flex-direction: column; text-align: center; padding: 5px; gap: 4px; }
  .carrossel-laterais button canvas { width: 40px; height: 48px; }
  .carrossel-laterais button small { font-size: 11px; line-height: 1.2; }
  .carrossel-acoes .peq { max-width: none; text-align: center; }
  .ini-card { gap: 14px; }
  .ini-heroi { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; }
  .ini-heroi-txt { align-items: flex-start; }
  #ini-boneco { width: 120px; height: 150px; }
  .ini-etiqueta { text-align: left; }
}
@media (max-width: 420px) { .carrossel-laterais button { padding: 4px; } .carrossel-laterais button small { font-size: 10.5px; } }
@media (max-width: 380px) { .trocar-longo { display: none; } }.surpresa .sp-onibus { font-size: 56px; animation: busPassa 1.6s ease-in-out infinite; }
@keyframes busPassa { 0% { transform: translateX(-40px); } 50% { transform: translateX(40px); } 100% { transform: translateX(-40px); } }
.sp-segredo { background: #fff3c4; border: 3px solid #d96d00; border-radius: 6px; padding: 8px 10px; }
.intervalo.noite { background: radial-gradient(circle at 70% 20%, #24305e, #0b1024 70%); }
.intervalo.manutencao { background: radial-gradient(circle at 70% 20%, #4a3a12, #191204 70%); }
.nt-card { max-width: 760px; }
.nt-cena-caixa { flex: 0 0 auto; text-align: center; }
#nt-cena { width: 320px; height: 192px; border: 3px solid var(--px-borda); border-radius: 6px; image-rendering: pixelated; display: block; }
#nt-legenda { margin: 6px 0 0; font-weight: 800; color: #13233a; }
@media (max-width: 700px) { .nt-card { flex-direction: column; text-align: center; } #nt-cena { width: 240px; height: 144px; margin: 0 auto; } }

/* ---------- Oficina do Técnico (segundo mapa) ---------- */
.oficina-host { position: fixed; inset: 0; z-index: 30; overflow: auto; background: #06101d; -webkit-overflow-scrolling: touch; }
.oficina-host[hidden] { display: none; }
body.na-oficina #minimapa, body.na-oficina .hud, body.na-oficina .aviso-porta, body.na-oficina .toque, body.na-oficina .teclas-ajuda, body.na-oficina .toast { display: none !important; }
.mapa-fade { position: fixed; inset: 0; z-index: 25; background: #040a14; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mapa-fade.on { opacity: 1; }
.lista-sub { margin: 16px 0 2px; font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .mapa-fade { transition-duration: .08s; } }

/* ================================================================ ficha do técnico (canto superior esquerdo) */
.jt .hud-ficha { align-items: center; gap: 10px; padding: 6px 12px 6px 6px; background: linear-gradient(180deg, #1a2f4d, #12223a); min-width: 230px; max-width: min(340px, 58vw); }
.jt .hud-avatar { position: relative; width: 52px; height: 52px; flex: none; padding: 0; overflow: visible; background: linear-gradient(180deg, #3d8fe0, #1559b3); border: 2px solid #0b1626; border-bottom: 4px solid var(--px-laranja); border-radius: 6px; }
.jt .hud-avatar img { width: 100%; height: 100%; display: block; image-rendering: pixelated; border-radius: 3px; }
.jt .hud-lv { position: absolute; right: -7px; bottom: -8px; min-width: 20px; height: 20px; padding: 0 4px; display: grid; place-items: center; background: #ffc61a; color: #16212e; border: 2px solid #0b1626; border-radius: 4px; font: 800 11px/1 var(--ap-fonte); }
.jt .hud-txt { gap: 2px; flex: 1; }
.jt .hud-l1 b { display: block; font-size: 15px; line-height: 1.15; max-width: 100%; }
.jt .hud-nivel { color: #ffd27a; font: 800 11px/1.2 var(--ap-fonte); text-transform: uppercase; letter-spacing: .6px; }
.jt .hud-barras { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; }
.jt .hud-barra { display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 6px; opacity: .72; }
.jt .hud-barra[hidden] { display: none; }
.jt .hud-barra.aqui { opacity: 1; }
.jt .hud-barra .hb-ic { font-size: 12px; line-height: 1; text-align: center; }
.jt .hud-barra i { display: block; height: 8px; min-width: 70px; background: #0b1626; border: 1px solid #2c4466; border-radius: 2px; overflow: hidden; }
.jt .hud-barra em { display: block; height: 100%; width: 0; transition: width .4s; }
.jt .hud-barra.redes em { background: linear-gradient(90deg, #2fb4ff, #6fd3ff); }
.jt .hud-barra.micro em { background: linear-gradient(90deg, #f39200, #ffc61a); }
.jt .hud-barra small { color: #dfe8f3; font: 700 11px/1 var(--ap-fonte); min-width: 32px; text-align: right; }
.jt .hud-txt .hud-sub { color: #9fb3c9; font-size: 11px; font-weight: 600; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) {
  .jt .hud-ficha { min-width: 0; max-width: 62vw; gap: 8px; padding: 5px 9px 5px 5px; }
  .jt .hud-avatar { width: 42px; height: 42px; }
  .jt .hud-l1 b { font-size: 14px; }
  .jt .hud-nivel { font-size: 10px; }
  .jt .hud-barra i { min-width: 44px; height: 7px; }
  .jt .hud-txt .hud-sub { display: none; }
}
/* no celular a ficha fica mais alta: o aviso desce para não cobrir as barras */
@media (max-width: 600px) { .jt .toast { top: 112px; } }

/* ================================================================ missões EaD (Redes SOHO) */
body.na-ead #minimapa, body.na-ead .hud, body.na-ead .aviso-porta, body.na-ead .toque, body.na-ead .teclas-ajuda, body.na-ead .toast { display: none !important; }
.ead-host { position: fixed; inset: 0; z-index: 30; overflow: auto; background: #0e1a2b; color: #e9f0f8; -webkit-overflow-scrolling: touch; }
.ead-host[hidden] { display: none; }
.ead-raiz { min-height: 100%; background: radial-gradient(1200px 500px at 50% -10%, #263e66 0%, #0e1a2b 60%); font-family: var(--ap-fonte); }
.ead-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 3px solid var(--ead-cor, #7b4bd6); background: #0b1626; position: sticky; top: 0; z-index: 2; }
.ead-marca { font-size: 14px; color: #c9d6e6; }
.ead-marca b { color: #fff; }
.ead-x { border: 2px solid #2c4466; background: #13233a; color: #fff; width: 40px; height: 40px; border-radius: 6px; font-size: 18px; cursor: pointer; }
.ead-cab { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 18px auto 0; padding: 0 16px; }
.ead-cab h2 { margin: 2px 0 0; font-size: 22px; line-height: 1.2; color: #fff; }
.ead-n { font: 800 12px/1.2 var(--ap-fonte); text-transform: uppercase; letter-spacing: .6px; color: var(--ead-cor, #b99cf5); filter: brightness(1.6); }
.ead-foto { width: 60px; height: 60px; image-rendering: pixelated; border-radius: 6px; border: 3px solid #0b1626; background: linear-gradient(180deg, #3d8fe0, #1559b3); border-bottom: 4px solid var(--ead-cor, #7b4bd6); flex: none; }
.ead-cena { width: 100%; height: 120px; display: block; background: #cfe3f2; border: 3px solid #1b2333; border-radius: 6px; box-shadow: 4px 4px 0 rgba(0, 0, 0, .35); image-rendering: pixelated; margin-bottom: 12px; }
.ead-cena.cena-curta { height: 90px; }
.ead-main { max-width: 760px; margin: 0 auto; padding: 14px 16px 40px; }
.ead-fala { background: #fffbe9; color: #2b2210; border: 3px solid #1b2333; border-radius: 6px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 4px 4px 0 rgba(0,0,0,.35); font-size: 15px; }
.ead-card { background: #fff; color: #16212e; border: 3px solid #1b2333; border-radius: 6px; padding: 16px; box-shadow: 4px 4px 0 rgba(0,0,0,.35); }
.ead-pontos { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.ead-pontos i { width: 22px; height: 7px; border-radius: 2px; background: #d6dee8; }
.ead-pontos i.ok { background: #1f8a4c; } .ead-pontos i.agora { background: #f39200; }
.ead-pontos span { margin-left: 6px; font: 700 12px var(--ap-fonte); color: #5b6b7d; }
.ead-p { font-size: 16px; line-height: 1.5; margin: 0 0 12px; }
.ead-ops { display: grid; gap: 8px; }
.ead-op { text-align: left; border: 2px solid #c6d2df; border-bottom-width: 4px; background: #f6f9fc; color: #16212e; border-radius: 8px; padding: 12px 14px; font: 600 15px/1.4 var(--ap-fonte); cursor: pointer; }
.ead-op:hover:not(:disabled) { border-color: #1559b3; background: #eef5ff; }
.ead-op.certa { border-color: #1f8a4c; background: #e6f6ec; }
.ead-op.errada { border-color: #c0392b; background: #fdecea; text-decoration: line-through; opacity: .75; }
.ead-msg { margin-top: 12px; padding: 10px 12px; border-radius: 6px; font-size: 15px; line-height: 1.45; }
.ead-msg.ok { background: #e6f6ec; color: #145c33; border: 2px solid #1f8a4c; }
.ead-msg.erro { background: #fdecea; color: #8e2318; border: 2px solid #c0392b; }
.ead-acoes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ead-cls { display: grid; gap: 8px; }
.ead-cl { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 2px solid #d6dee8; border-radius: 8px; background: #f6f9fc; }
.ead-cl span { font-weight: 600; }
.ead-cl div { display: flex; gap: 6px; }
.ead-cl button { border: 2px solid #c6d2df; background: #fff; border-radius: 6px; padding: 7px 12px; font: 700 14px var(--ap-fonte); cursor: pointer; color: #16212e; }
.ead-cl button.sel { background: #1559b3; border-color: #0d3f84; color: #fff; }
.ead-cl.certa { border-color: #1f8a4c; background: #e6f6ec; } .ead-cl.errada { border-color: #c0392b; background: #fdecea; }
.ead-rj { display: flex; justify-content: center; margin: 4px 0 12px; }
.ead-pinos { display: flex; gap: 4px; padding: 10px 12px 14px; background: linear-gradient(180deg, #e8eef5, #c9d4e0); border: 3px solid #8796a8; border-radius: 6px 6px 14px 14px; }
.ead-pino { position: relative; width: 26px; height: 64px; border-radius: 3px; background: #f2f5f8; border: 2px dashed #9aa8b8; }
.ead-pino.cheio { border: 2px solid #1b2333; }
.ead-pino em { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font: 800 11px var(--ap-fonte); font-style: normal; color: #445; }
.ead-fios { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 18px; }
.ead-fio { display: flex; align-items: center; gap: 8px; border: 2px solid #c6d2df; background: #f6f9fc; border-radius: 8px; padding: 8px 10px; font: 700 14px var(--ap-fonte); cursor: pointer; color: #16212e; text-align: left; }
.ead-fio.usado { opacity: .35; }
.ead-cl div { flex-wrap: wrap; }
.ead-seq { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.ead-seq li { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border: 2px dashed #c6d2df; border-radius: 8px; background: #f6f9fc; color: #8796a8; font-weight: 600; }
.ead-seq li em { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #8796a8; color: #fff; font-style: normal; font-weight: 800; }
.ead-seq li.cheio { border-style: solid; border-color: #1f8a4c; background: #e6f6ec; color: #16212e; } .ead-seq li.cheio em { background: #1f8a4c; }
.ead-fios-txt { grid-template-columns: 1fr; }
.ead-fio.treme { animation: ead-treme .35s; border-color: #c0392b; }
@keyframes ead-treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ead-cor { width: 30px; height: 14px; border-radius: 3px; border: 1px solid #333; flex: none; }
/* ligar pares: duas colunas, clique ou arrasto */
.ead-lig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 4px; }
.ead-lig-col { display: grid; gap: 8px; align-content: start; }
.ead-lig-op { display: flex; align-items: center; gap: 8px; text-align: left; border: 2px solid #c6d2df; border-bottom-width: 4px; background: #f6f9fc; color: #16212e; border-radius: 8px; padding: 10px 12px; font: 600 14px/1.35 var(--ap-fonte); cursor: pointer; overflow-wrap: anywhere; touch-action: pan-y; }
.ead-lig-op:hover:not(:disabled) { border-color: #1559b3; background: #eef5ff; }
.ead-lig-op.sel { border-color: #f39200; background: #fff6e5; box-shadow: 0 0 0 2px rgba(243,146,0,.25); }
.ead-lig-op.alvo { border-color: #1559b3; background: #dbeaff; }
.ead-lig-op.arrastando { opacity: .65; }
.ead-lig-op.ligado { border-color: #1f8a4c; background: #e6f6ec; cursor: default; }
.ead-lig-op:disabled { color: #16212e; opacity: 1; }
.ead-lig-op.ligado .ead-lig-num { display: grid; background: #1f8a4c; color: #fff; }
.ead-lig-num { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #e3e9f1; color: #6b7b8d; font: 800 12px var(--ap-fonte); font-style: normal; }
.ead-lig-num:empty { display: none; }
.ead-lig-op.treme { animation: ead-treme .35s; border-color: #c0392b; }
@media (max-width: 480px) { .ead-lig { gap: 6px; } .ead-lig-op { padding: 8px 9px; font-size: 12.5px; gap: 6px; } .ead-lig-num { width: 18px; height: 18px; font-size: 10px; } }
/* marcar: linha de log (monoespaçada) ou cartão de aparelho */
.ead-mar-log .ead-mar-linhas { background: #0c0c0c; padding: 8px 6px; max-height: 300px; overflow: auto; }
.ead-mar-l { display: block; width: 100%; text-align: left; border: 1px solid transparent; border-radius: 4px; background: transparent; color: #d8d8d8; font: 14px/1.45 Consolas, "Courier New", monospace; padding: 4px 8px; cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; }
.ead-mar-l:hover:not(:disabled) { border-color: #4d5f77; background: #18202b; }
.ead-mar-l.certa { border-color: #1f8a4c; background: #10351f; color: #b9f6ce; }
.ead-mar-l.errada { border-color: #c0392b; background: #3a1512; color: #ffc9c2; }
.ead-mar-log .ead-mar-l.errada { text-decoration: line-through; }
.ead-mar-log .ead-mar-l:disabled { opacity: 1; color: #d8d8d8; }
.ead-mar-log .ead-mar-l.certa:disabled { color: #b9f6ce; }
.ead-mar-log .ead-mar-l.errada:disabled { color: #ffc9c2; }
.ead-graf { background: #111217; border: 2px solid #2c3235; border-radius: 10px; padding: 10px; color: #d8d9da; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); }
.ead-graf-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid #262a30; }
.ead-graf-tit { display: flex; align-items: center; gap: 7px; font: 700 13px/1.2 var(--ap-fonte); color: #f1f3f5; }
.ead-graf-logo { flex: none; }
.ead-graf-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ead-graf-pill { background: #181b1f; border: 1px solid #2c3235; border-radius: 6px; padding: 2px 8px; font: 600 11px/1.4 Consolas, "Courier New", monospace; color: #9fa7b3; display: inline-flex; align-items: center; gap: 5px; }
.ead-graf-pill.live { color: #73bf69; border-color: rgba(115, 191, 105, .35); }
.ead-graf-pill.live i { width: 7px; height: 7px; border-radius: 50%; background: #73bf69; display: inline-block; animation: ead-graf-pulse 1.4s infinite; }
.ead-graf-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.ead-graf-kpi { background: #181b1f; border: 1px solid #2c3235; border-radius: 6px; padding: 6px 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.ead-graf-kpi small { font: 600 11px var(--ap-fonte); color: #9fa7b3; text-transform: uppercase; letter-spacing: .4px; }
.ead-graf-kpi b { font: 800 18px/1 Consolas, "Courier New", monospace; }
.ead-graf-kpi.k-ok b { color: #73bf69; }
.ead-graf-kpi.k-warn b { color: #ff9830; }
.ead-graf-kpi.k-crit b { color: #9fa7b3; }
.ead-graf-kpi.k-crit.alerta { border-color: rgba(242, 73, 92, .55); background: rgba(242, 73, 92, .08); }
.ead-graf-kpi.k-crit.alerta b { color: #f2495c; }
.ead-mar-painel { display: grid; grid-template-columns: repeat(auto-fill, minmax(195px, 1fr)); gap: 8px; }
.ead-mar-p { border: 1px solid #2c3235; border-top: 3px solid #2c3235; border-radius: 7px; background: #181b1f; color: #d8d9da; padding: 9px 10px 7px; font: 600 13.5px/1.3 var(--ap-fonte); cursor: pointer; display: grid; gap: 5px; text-align: left; overflow-wrap: anywhere; transition: border-color .15s, background .15s, transform .1s; }
.ead-mar-p:hover:not(:disabled) { border-color: #ff780a; background: #20242a; transform: translateY(-1px); }
.ead-mar-p:disabled { color: #d8d9da; opacity: 1; cursor: default; }
.ead-mar-p.st-ok { border-top-color: #73bf69; }
.ead-mar-p.st-warn { border-top-color: #ff9830; }
.ead-mar-p.st-crit { border-top-color: #f2495c; background: linear-gradient(180deg, rgba(242, 73, 92, .12), #181b1f 58%); }
.ead-graf-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.ead-graf-nome { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.ead-graf-nome i { font-style: normal; font-size: 14px; flex: none; }
.ead-mar-p b { font-size: 13.5px; color: #f1f3f5; }
.ead-graf-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ead-mar-ip { color: #9fa7b3; font: 600 11.5px Consolas, "Courier New", monospace; }
.ead-graf-lat { color: #6e7785; font: 600 11px Consolas, "Courier New", monospace; white-space: nowrap; }
.ead-mar-est { flex: none; display: inline-flex; align-items: center; gap: 4px; background: #22262d; color: #d8d9da; border: 1px solid #343a42; border-radius: 4px; padding: 1px 6px; font: 700 11px Consolas, "Courier New", monospace; font-style: normal; white-space: nowrap; }
.ead-graf-dot { width: 6px; height: 6px; border-radius: 50%; background: #73bf69; display: inline-block; }
.st-ok .ead-mar-est { color: #73bf69; border-color: rgba(115, 191, 105, .35); background: rgba(115, 191, 105, .1); }
.st-warn .ead-mar-est { color: #fade2a; border-color: rgba(255, 152, 48, .4); background: rgba(255, 152, 48, .12); }
.st-warn .ead-graf-dot { background: #ff9830; }
.st-crit .ead-mar-est { color: #ff808f; border-color: rgba(242, 73, 92, .5); background: rgba(242, 73, 92, .16); }
.st-crit .ead-graf-dot { background: #f2495c; animation: ead-graf-pulse 1s infinite; }
.ead-graf-spark { width: 100%; height: 28px; display: block; background: #111217; border-radius: 4px; border: 1px solid #22262c; }
.ead-graf-thr { stroke: #38404a; stroke-width: 1; stroke-dasharray: 3 3; }
.ead-graf-line { fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke: #73bf69; }
.ead-graf-area { fill: rgba(115, 191, 105, .14); }
.st-warn .ead-graf-line { stroke: #ff9830; }
.st-warn .ead-graf-area { fill: rgba(255, 152, 48, .16); }
.st-crit .ead-graf-line { stroke: #f2495c; }
.st-crit .ead-graf-area { fill: rgba(242, 73, 92, .18); }
.ead-graf-rodape { margin-top: 8px; padding-top: 7px; border-top: 1px solid #22262c; font: 600 11px var(--ap-fonte); color: #8b949e; text-align: right; }
.ead-mar-p.certa { border-color: #73bf69; border-top-color: #73bf69; background: #11261a; box-shadow: 0 0 0 2px rgba(115, 191, 105, .35); }
.ead-mar-p.certa .ead-mar-est { background: #1f8a4c; color: #fff; border-color: #73bf69; }
.ead-mar-p.errada { border-color: #f2495c; border-top-color: #f2495c; background: #2b1318; opacity: .72; }
.ead-mar-p.errada .ead-mar-est { background: #c0392b; color: #fff; border-color: #f2495c; }
@keyframes ead-graf-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.85); } }
@media (max-width: 480px) {
  .ead-graf-kpis { gap: 5px; }
  .ead-graf-kpi { padding: 5px 7px; }
  .ead-graf-kpi b { font-size: 15px; }
  .ead-mar-painel { grid-template-columns: 1fr; }
  .ead-mar-l { font-size: 12px; }
}
.ead-cmd { background: #0c0c0c; border: 3px solid #1b2333; border-radius: 6px; overflow: hidden; }
.ead-cmd-topo { background: #e9ecef; color: #222; font: 12px var(--ap-fonte); padding: 4px 8px; }
.ead-cmd pre { margin: 0; padding: 10px 12px; color: #d8d8d8; font: 14px/1.45 Consolas, "Courier New", monospace; white-space: pre-wrap; max-height: 260px; overflow: auto; }
.ead-cmd form { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-top: 1px solid #333; flex-wrap: wrap; }
.ead-cmd form span { color: #d8d8d8; font: 14px Consolas, "Courier New", monospace; }
.ead-cmd input { flex: 1; min-width: 140px; background: #1b1b1b; color: #fff; border: 1px solid #555; border-radius: 4px; padding: 8px; font: 15px Consolas, "Courier New", monospace; }
/* navegador simulado (portal, painel e laudo do campus): mesma janela do Prompt, com barra de endereço */
.ead-nav { border: 3px solid #1b2333; border-radius: 8px; overflow: hidden; background: #fff; margin: 0 0 12px; box-shadow: 0 3px 0 rgba(27, 35, 51, .22); }
.ead-nav-topo { display: flex; align-items: center; gap: 6px; background: #dee4ec; padding: 7px 10px; border-bottom: 1px solid #c2ccd9; }
.ead-nav-topo i { width: 10px; height: 10px; border-radius: 50%; background: #9aa7b8; flex: none; }
.ead-nav-topo i:nth-child(1) { background: #ff5f57; } .ead-nav-topo i:nth-child(2) { background: #febc2e; } .ead-nav-topo i:nth-child(3) { background: #28c840; }
.ead-nav-topo span { margin-left: 6px; font: 700 12px var(--ap-fonte); color: #39465a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ead-nav-url { display: flex; align-items: center; gap: 8px; background: #f4f7fb; border-bottom: 2px solid #cfd8e3; padding: 6px 10px; }
.ead-nav-url b { flex: none; font: 700 10px var(--ap-fonte); color: #5b6b7d; text-transform: uppercase; letter-spacing: .6px; }
.ead-nav-url code { flex: 1; min-width: 0; background: #fff; border: 1px solid #c3cedb; border-radius: 20px; padding: 5px 10px; font: 13px Consolas, "Courier New", monospace; color: #16212e; overflow-wrap: anywhere; }
.ead-nav-corpo { background: #fff; color: #1f2937; padding: 12px 14px; font: 14px/1.5 var(--ap-fonte); max-height: 400px; overflow: auto; }
.ead-nav-corpo h3 { margin: 0 0 8px; font-size: 17px; color: #0b3d91; }
.ead-nav-corpo p { margin: 0 0 8px; }
.ead-nav-corpo ul { margin: 0 0 8px 18px; padding: 0; }
.ead-nav-corpo li { margin: 2px 0; }
.ead-nav-corpo .nav-selo { display: inline-block; background: #0b3d91; color: #fff; font: 700 10px var(--ap-fonte); padding: 2px 7px; border-radius: 4px; letter-spacing: .6px; text-transform: uppercase; margin-bottom: 6px; }
.ead-nav-corpo .nav-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; border-bottom: 1px dashed #d5dde8; padding: 4px 0; }
.ead-nav-corpo .nav-linha span { color: #475569; } .ead-nav-corpo .nav-linha b { color: #111827; text-align: right; }
.ead-nav-corpo .nav-pend { background: #fff1e0; border: 2px solid #f08c00; border-radius: 6px; padding: 8px 10px; margin: 8px 0; color: #7a3d00; }
.ead-nav-corpo .nav-assina { margin: 10px 0 0; border-top: 1px solid #cbd5e1; padding-top: 8px; font-size: 13px; color: #475569; }
@media (max-width: 600px) { .ead-nav-corpo { font-size: 13px; max-height: 260px; padding: 10px; } .ead-nav-topo span { font-size: 11px; } }
.ead-dica { margin-top: 8px; border: 0; background: none; color: #1559b3; font: 700 14px var(--ap-fonte); cursor: pointer; padding: 4px 0; }
.ead-dig { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; background: #f1f4f8; border: 2px solid #c6d2df; border-radius: 8px; padding: 12px; }
.ead-dig label { display: grid; gap: 4px; flex: 1; min-width: 200px; font: 700 13px var(--ap-fonte); color: #445; }
.ead-dig input { border: 2px solid #9fb0c4; border-radius: 6px; padding: 10px; font: 16px var(--ap-fonte); }
.ead-fim { text-align: center; }
.ead-fim .ead-acoes { justify-content: center; }
.ead-est { font-size: 46px; color: #f5b400; letter-spacing: 6px; text-shadow: 2px 2px 0 #1b2333; }
.ead-est span { color: #cfd6df; }
.ead-comp { max-width: 560px; margin: 8px auto 0; border-color: #7b4bd6; }
.ead-comp-topo { display: grid; gap: 2px; text-align: center; padding-bottom: 10px; border-bottom: 2px dashed #c9b8ee; }
.ead-comp-topo span { font: 800 12px var(--ap-fonte); color: #7b4bd6; text-transform: uppercase; letter-spacing: .8px; }
.ead-comp-topo b { font-size: 21px; }
.ead-comp-topo small { color: #5b6b7d; }
.ead-comp-nome { text-align: center; font-size: 22px; font-weight: 800; margin: 14px 0 10px; }
.ead-tab { width: 100%; border-collapse: collapse; font-size: 14px; }
.ead-tab td { padding: 7px 6px; border-bottom: 1px solid #e3e8ef; }
.ead-tdest { text-align: right; color: #d79a00; font-weight: 800; white-space: nowrap; }
.ead-comp-rod { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; text-align: center; flex-wrap: wrap; }
.ead-comp-rod div { flex: 1; min-width: 90px; background: #f3effc; border-radius: 6px; padding: 8px; }
.ead-comp-rod small { display: block; color: #6b5a8e; font-weight: 700; font-size: 11px; text-transform: uppercase; }
.ead-cod { font: 800 18px Consolas, "Courier New", monospace; color: #4b2a9a; }
.ead-comp-ok { background: #e6f6ec; border: 2px solid #1f8a4c; border-radius: 6px; padding: 10px; margin-top: 12px; color: #145c33; }
.ead-comp-falta { background: #fff4e0; border: 2px solid #f39200; border-radius: 6px; padding: 10px; margin-top: 12px; color: #7a4a00; }
.ead-cert { border-color: #b88709; border-width: 3px; }
.ead-cert-selo { text-align: center; font-size: 34px; line-height: 1; margin-top: 6px; }
.ead-cert-nota { text-align: center; font-size: 44px; font-weight: 900; color: #b88709; margin: 2px 0 0; text-shadow: 1px 1px 0 #f1e3bd; }
.ead-cert-sub { text-align: center; color: #5b6b7d; font-size: 13px; margin: 2px 0 12px; }
.ead-cert-pe { text-align: center; color: #6b5a2e; font-size: 12px; margin-top: 10px; }
.ead-cert .ead-comp-rod div { min-width: 118px; }
.ead-cert .ead-cod { white-space: nowrap; font-size: 15px; }
.jt .hud-barra.ead em { background: linear-gradient(90deg, #7b4bd6, #b99cf5); }
@media (max-width: 600px) { .ead-cab h2 { font-size: 19px; } .ead-p { font-size: 15px; } .ead-pino { width: 22px; height: 54px; } .ead-pinos { gap: 3px; padding: 8px 8px 14px; } }
.ead-fala.curta { font-size: 13px; padding: 8px 12px; opacity: .95; }
.ead-cmd-ver { margin: 0 0 12px; } .ead-cmd-ver pre { max-height: none; white-space: pre; overflow-x: auto; }
@media (max-width: 600px) { .ead-cmd-ver pre { font-size: 11px; padding: 8px; } } .ead-cmd-ver mark { background: #ffd23f; color: #111; border-radius: 2px; padding: 0 1px; }
.ead-info { background: #fff6d6; border: 2px solid #f0b400; border-radius: 6px; padding: 9px 12px; margin: 0 0 12px; font-size: 15px; color: #4a3800; }
.ead-aula { display: grid; gap: 12px; margin-bottom: 4px; }
.ead-bloco { display: grid; grid-template-columns: 220px 1fr; gap: 14px; align-items: center; background: #f6f9fc; border: 2px solid #c9d6e3; border-radius: 6px; padding: 10px; }
.ead-bloco h3 { margin: 0 0 4px; font-size: 16px; color: #16212e; }
.ead-bloco p { margin: 0; font-size: 15px; line-height: 1.45; }
.ead-fig svg { width: 100%; height: auto; display: block; background: #fff; border-radius: 4px; }
@media (max-width: 600px) { .ead-bloco { grid-template-columns: 1fr; } .ead-fig { max-width: 300px; } .ead-bloco p { font-size: 14px; } }

/* easter egg: árvore de Natal */
.natal-festa { position: fixed; inset: 0; z-index: 90; overflow: hidden; display: grid; place-items: center; background: rgba(8,14,28,.35); }
.natal-festa i { position: absolute; top: -14px; width: 8px; height: 12px; border-radius: 2px; animation: natal-cai linear forwards; }
@keyframes natal-cai { to { transform: translate(var(--vento), 110vh) rotate(var(--giro)); } }
.natal-cartao { position: relative; background: #fffbe9; color: #2b2210; border: 4px solid #1b2333; border-radius: 10px; padding: 18px 26px; text-align: center; box-shadow: 6px 6px 0 rgba(0,0,0,.4); max-width: min(360px, calc(100vw - 32px)); animation: natal-pula .5s ease-out; }
.natal-cartao h2 { margin: 4px 0 6px; font-size: 28px; color: #c92a2a; }
.natal-cartao p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.natal-arvore { font-size: 54px; line-height: 1; }
@keyframes natal-pula { from { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
/* recado do professor (recompensa com mensagem): fica até o aluno clicar */
.natal-festa.natal-fixo { background: rgba(8,14,28,.62); }
.natal-fixo .natal-cartao { max-width: min(420px, calc(100vw - 32px)); }
.natal-fixo .natal-cartao p { text-align: left; white-space: normal; }
.recado-de { display: block; text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #7a5c12; margin-bottom: 8px; }
.recado-xp { color: #2b8a3e; font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .natal-festa i { display: none; } .natal-cartao { animation: none; } }

/* comemoração ao concluir uma OS ou missão: confete e estrelas que pulam */
.festa-confete { position: fixed; inset: 0; z-index: 95; pointer-events: none; overflow: hidden; }
.festa-confete i { position: absolute; top: -10px; display: block; border-radius: 1px; animation: festa-cai linear forwards; }
@keyframes festa-cai { to { transform: translateY(105vh) rotate(var(--giro)); } }
.estrela-pop { display: inline-block; animation: estrela-pop .38s cubic-bezier(.2,.9,.3,1.6) both; }
@keyframes estrela-pop { 0% { transform: scale(0); opacity: .2; } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
.estrela-pop.vazia { color: #9aa3ad; }
.ead-est .estrela-pop { color: #f5b400; }
.ead-est .estrela-pop.vazia { color: #9aa3ad; }
@media (prefers-reduced-motion: reduce) { .festa-confete { display: none; } .estrela-pop { animation: none; } }

/* provão final: 30 questões na mesma página + monitor de troca de aba */
.provao-barra { position: sticky; top: 0; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; background: #16212e; color: #ffffff; padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.18); font-size: 14px; }
.provao-barra b { color: #ffd23f; }
.provao-regra-aba { background: #fff9db; border: 2px solid #f59f00; border-radius: 8px; padding: 10px 14px; margin-bottom: 12px; font-size: 13.5px; color: #5c3c00; line-height: 1.45; }
.provao-regra-aba.alerta { background: #fff4e6; border-color: #fd7e14; color: #7c2d12; }
.provao-regra-aba.penal { background: #fff5f5; border-color: #e03131; color: #7f1d1d; box-shadow: 0 0 0 3px rgba(224,49,49,.15); }
.provao-aba-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 12px; font-size: 12.5px; font-weight: 700; }
.provao-aba-tag.ok { background: rgba(43,138,62,.28); color: #8ce99a; border: 1px solid #40c057; }
.provao-aba-tag.aviso { background: rgba(245,159,0,.28); color: #ffe066; border: 1px solid #fcc419; }
.provao-aba-tag.penal { background: rgba(224,49,49,.35); color: #ffc9c9; border: 1px solid #ff6b6b; }
.provao-tipo-tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 12px; font-size: 12.5px; font-weight: 800; letter-spacing: .3px; }
.provao-tipo-tag.tipo-a { background: rgba(51,154,240,.28); color: #a5d8ff; border: 1px solid #339af0; }
.provao-tipo-tag.tipo-b { background: rgba(245,159,0,.28); color: #ffe066; border: 1px solid #f59f00; }
.ead-cert .provao-tipo-tag.tipo-a { background: #e7f5ff; color: #1864ab; border-color: #339af0; }
.ead-cert .provao-tipo-tag.tipo-b { background: #fff9db; color: #8f5100; border-color: #f08c00; }
.provao-lista { display: grid; gap: 14px; margin-bottom: 16px; }
.provao-q { background: #f8fafd; border: 2px solid #d0dbe7; border-radius: 10px; padding: 14px 16px; transition: border-color .15s, background .15s; }
.provao-q.respondida { border-color: #2b8a3e; background: #f4fbf6; }
.provao-q.faltou { border-color: #e03131; background: #fff5f5; box-shadow: 0 0 0 3px rgba(224,49,49,.2); }
.provao-q-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 13px; font-weight: 800; color: #1f63c6; text-transform: uppercase; letter-spacing: .4px; }
.provao-q-topo span.st { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 12px; background: #e9ecef; color: #495057; text-transform: none; }
.provao-q.respondida .provao-q-topo span.st { background: #d3f9d8; color: #2b8a3e; }
.provao-q .ead-op.sel { border-color: #1f63c6; background: #e7f1ff; color: #0b3d91; font-weight: 700; box-shadow: 0 0 0 2px rgba(31,99,198,.25); }
.provao-gabarito { display: grid; gap: 10px; margin: 16px 0; text-align: left; }
.provao-gab-item { border: 2px solid #d0dbe7; border-radius: 8px; padding: 10px 12px; background: #ffffff; font-size: 14px; }
.provao-gab-item.ok { border-color: #2b8a3e; background: #f4fbf6; }
.provao-gab-item.err { border-color: #e03131; background: #fff5f5; }
.provao-gab-item h4 { margin: 0 0 4px; font-size: 14px; color: #16212e; }
.provao-gab-item p { margin: 3px 0; font-size: 13px; line-height: 1.4; }

/* modal da Carreta de Natal (2 chances) */
.carreta-cartao { position: relative; background: #fffbe9; color: #2b2210; border: 4px solid #1b2333; border-radius: 12px; padding: 18px 22px; text-align: center; box-shadow: 6px 6px 0 rgba(0,0,0,.4); width: min(440px, calc(100vw - 28px)); max-height: calc(100vh - 36px); overflow-y: auto; animation: natal-pula .4s ease-out; }
.carreta-cartao h2 { margin: 4px 0 4px; font-size: 24px; color: #c92a2a; }
.carreta-cartao p.sub { margin: 0 0 14px; font-size: 14px; color: #5c4826; }
.carreta-cards { display: grid; gap: 12px; text-align: left; }
.carreta-item { background: #ffffff; border: 2px solid #dfd7be; border-radius: 8px; padding: 12px 14px; box-shadow: 0 2px 4px rgba(0,0,0,.06); }
.carreta-item.concluido { border-color: #2b8a3e; background: #f4fbf5; }
.carreta-item-tit { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: #16212e; }
.carreta-item-tit span.xp-badge { background: #ffd23f; color: #111; padding: 2px 8px; border-radius: 12px; font-size: 13px; font-weight: 800; }
.carreta-item p { margin: 0 0 8px; font-size: 13px; color: #495057; line-height: 1.4; }
.carreta-trilha { position: relative; width: 100%; height: 28px; background: #16212e; border: 2px solid #0b111a; border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.carreta-jackpot-zona { position: absolute; left: 42%; width: 16%; height: 100%; background: linear-gradient(90deg, #ffd700, #ff922b); color: #111; font-weight: 900; font-size: 10px; display: flex; align-items: center; justify-content: center; letter-spacing: 0.5px; box-shadow: 0 0 8px rgba(255,215,0,.6); text-transform: uppercase; }
.carreta-cursor { position: absolute; top: 0; width: 6px; height: 100%; background: #ffffff; box-shadow: 0 0 8px #ffffff, 0 0 14px #ffd700; border-radius: 2px; transform: translateX(-50%); pointer-events: none; }

/* modo fim de semana (sexta, sábado e domingo) */
.fds-caixa { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: rgba(255,210,63,.14); border: 2px dashed #ffd23f; text-align: center; }
.fds-caixa p { margin: 0 0 10px; font-weight: 700; }
.fds-btn { background: #ffd23f; color: #2b2210; border-color: #1b2333; }

/* ---------- acessibilidade: texto maior / modo sem pressa ---------- */
body.t-texto-1 .tela .lista-card, body.t-texto-1 .tela .ead-card, body.t-texto-1 .tela .iv-card, body.t-texto-1 .tela .casa-card { zoom: 1.15; }
body.t-texto-2 .tela .lista-card, body.t-texto-2 .tela .ead-card, body.t-texto-2 .tela .iv-card, body.t-texto-2 .tela .casa-card { zoom: 1.3; }
body.t-sem-pressa #mt-relogio, body.t-sem-pressa #iv-relogio, body.t-sem-pressa #nt-relogio { display: none; }

/* ---------- conquistas na ficha ---------- */
.conq-lista { margin-top: 4px; }
.conq-msg { color: #5c5646; font-weight: 700; margin: 6px 0; }
.conq-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 6px; }
.conq-item { display: flex; flex-direction: column; gap: 2px; background: #fffbe9; color: #2b2210; border: 2px solid #d8cfae; border-radius: 8px; padding: 8px 10px; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.conq-item.ganha { border-color: #2f9e5b; background: #f2fbf4; }
.conq-item.nao { opacity: .62; filter: grayscale(1); background: #eef0f2; }
.conq-ic { font-size: 22px; line-height: 1; }
.conq-nome { font-size: 13px; line-height: 1.2; }
.conq-desc { font-size: 11.5px; line-height: 1.3; color: #5c5646; }

/* ---------- abas do ranking ---------- */
.rank-abas { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.rank-aba { border: 2px solid #2c4466; background: #13233a; color: #fff; font: 700 13px var(--ap-fonte); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.rank-aba:hover { border-color: #f0b400; }
.rank-aba.on { background: #1559b3; border-color: #ffc61a; color: #fff; }
.rank-sub { color: #16325e; font-weight: 700; margin: 0 0 8px; }

/* ================================================================ v5: fonte pixel nos títulos, moldura única e transições */
/* Fonte Pixelify só em títulos e rótulos curtos. Texto corrido, perguntas, alternativas,
   Prompt/terminal e painéis dos provedores continuam na fonte legível. Mínimo de 14px. */
.tela .ini-card h1,
.tela .carrossel-card h1,
.carrossel-topo h1,
.lista-card h2,
.lista-topo h2,
.resultado h2,
.iv-card h2,
.natal-cartao h2,
.carreta-cartao h2,
.lista-sub,
.loja-sec h3,
.mercado-sec h3,
.caderno-gtit,
.caderno-topo b,
.casa-tit b,
.tarefas h3,
.hud-btn span,
.hud-txt b,
.jt .hud-nivel,
.fala-nome,
.car-placa,
.ini-etiqueta {
  font-family: var(--ap-titulo);
  letter-spacing: .3px;
}
.jt .hud-nivel { font-size: 14px; letter-spacing: .5px; }
.fala-nome { font-size: 14px; }
.ini-etiqueta { font-size: 14px; }
.car-placa { font-size: clamp(14px, 3vw, 16px); }
.lista-topo h2, .resultado h2, .iv-card h2 { letter-spacing: .2px; }
@media (max-width: 600px) { .jt .hud-nivel { font-size: 14px; } }

/* Moldura única das janelas e cartões: borda 3px, canto 6px e sombra dura (cores de fundo intactas). */
.ini-card, .carrossel-card, .lista-card, .iv-card, .toast, .admin-trava-flutuante,
.natal-cartao, .carreta-cartao, .fala, .tarefas, .dica, .casa-janela {
  border: 3px solid #1d1b2a;
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .25);
}
.botao, .botao.cinza, .botao.verde, .botao.laranja {
  border-color: #1d1b2a;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .25);
}
.botao:active, .botao.cinza:active, .botao.verde:active, .botao.laranja:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, .25);
}

/* Troca de tela: a tela que abre entra com fade + leve subida (160 ms). Não bloqueia clique nem foco. */
.tela.entrando { animation: telaEntra .16s ease-out; }
@keyframes telaEntra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.toast.entrando { animation: toastEntra .15s ease-out; }
@keyframes toastEntra { from { opacity: 0; transform: translate(-50%, -14px); } }
@media (prefers-reduced-motion: reduce) {
  .tela.entrando, .toast.entrando { animation: none; }
}

/* ============ atividades: alternativas com letra, feedback animado e atalhos ============ */
.ead-ops { counter-reset: ead-op; }
.ead-op { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding-left: 12px; transition: transform .08s ease, background .15s ease, border-color .15s ease; }
.ead-op::before { counter-increment: ead-op; content: counter(ead-op, upper-alpha); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: #1b2333; color: #fff; font: 700 14px var(--ap-titulo, var(--ap-fonte)); box-shadow: 2px 2px 0 rgba(0,0,0,.25); }
.ead-op:hover:not(:disabled) { transform: translateY(-1px); }
.ead-op:active:not(:disabled) { transform: translateY(1px); }
.ead-op:focus-visible { outline: 3px solid #f39200; outline-offset: 2px; }
.ead-op.certa::before { content: "✓"; background: #1f8a4c; }
.ead-op.errada::before { content: "✕"; background: #c0392b; }
.ead-op.certa { animation: ead-pulso .45s ease; }
.ead-op.errada { animation: ead-treme .32s ease; }
@keyframes ead-pulso { 0% { transform: scale(1); } 40% { transform: scale(1.025); box-shadow: 0 0 0 4px rgba(31,138,76,.25); } 100% { transform: scale(1); } }
@keyframes ead-treme { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.ead-dica-teclas { margin-top: 8px; font: 600 12px var(--ap-fonte); color: #6b7b8d; }
.ead-dica-teclas kbd { display: inline-block; min-width: 18px; padding: 0 4px; border: 1px solid #b9c4d0; border-bottom-width: 2px; border-radius: 4px; background: #fff; font: 700 11px var(--ap-fonte); text-align: center; color: #16212e; }

/* barra de passos: segmentos maiores, o atual pulsa */
.ead-pontos { gap: 4px; }
.ead-pontos i { flex: 1; max-width: 46px; height: 8px; border-radius: 3px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); transition: background .2s ease; }
.ead-pontos i.agora { animation: ead-agora 1.2s ease-in-out infinite; }
@keyframes ead-agora { 50% { filter: brightness(1.25); } }

/* mensagens de acerto/erro entram deslizando, com ícone */
.ead-msg:not([hidden]) { animation: ead-msg .2s ease-out; display: flex; gap: 8px; align-items: flex-start; }
@keyframes ead-msg { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#ead-seguir:not([hidden]) { animation: ead-msg .2s ease-out; }

@media (max-width: 480px) { .ead-op { min-height: 56px; font-size: 15px; } .ead-dica-teclas { display: none; } }
@media (prefers-reduced-motion: reduce) { .ead-op, .ead-op.certa, .ead-op.errada, .ead-pontos i.agora, .ead-msg:not([hidden]), #ead-seguir:not([hidden]) { animation: none; transition: none; } }
.loja-item.em-breve canvas { opacity: .55; }
.novidades { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(8, 18, 30, .6); }
.novidades[hidden] { display: none; }
.novidades-card h2 { margin: 0 0 10px; }
.novidades-lista { margin: 0 0 16px; padding-left: 18px; display: grid; gap: 10px; line-height: 1.45; }
.salao-card { width: min(560px, 100%); }
.salao-escolha { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.salao-btn { opacity: .75; }
.salao-btn.ativo { opacity: 1; outline: 3px solid #ffd23f; outline-offset: 2px; }
.salao-palco { background: #0d1630; border-radius: 8px; padding: 6px; border: 3px solid #3df5ff; box-shadow: 0 0 0 3px #5b2a8c; }
#salao-cv { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; image-rendering: pixelated; touch-action: none; border-radius: 4px; }
#salao-cv:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.salao-placar { font-weight: 700; margin: 10px 0 4px; }
#minimapa { cursor: zoom-in; }
.online-painel { position: fixed; top: 64px; right: 12px; z-index: 30; width: min(300px, calc(100vw - 24px)); max-height: calc(100dvh - 90px); overflow: auto; background: #fffdf7; color: #1d1b2a; border-radius: 8px; padding: 12px 14px; box-shadow: 0 12px 34px rgba(0,0,0,.35); border: 3px solid #102236; }
.online-painel[hidden] { display: none; }
.online-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.online-topo h2 { font-size: 1.05rem; margin: 0; }
.online-sala { margin: 2px 0 6px; font-size: .8rem; color: #5b6672; }
.online-sala:empty { display: none; }
.online-lista { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 4px; }
.online-lista li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-radius: 6px; background: #f1eee4; font-size: .9rem; }
.online-lista li.eu { background: #e3eefc; }
.online-local { margin-left: auto; font-size: .75rem; color: #5b6672; white-space: nowrap; }
.online-ponto { width: 9px; height: 9px; border-radius: 2px; background: #8a94a3; flex: none; }
.online-ponto.junto { background: #ff6bd6; }
.online-lista li.eu .online-ponto { background: #1f63c6; }
.online-vazio { font-size: .9rem; color: #5b6672; margin: 6px 0 10px; }
.mapa-grande { position: fixed; inset: 0; z-index: 25; display: grid; place-items: center; padding: 12px; background: rgba(8, 18, 30, .55); }
.mapa-grande[hidden] { display: none; }
.mapa-grande-card { background: #fffdf7; border-radius: 8px; padding: 10px 12px 8px; width: min(1100px, 100%); max-height: calc(100dvh - 24px); display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.mapa-grande-topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.mapa-grande-topo h2 { margin: 0; font-size: 1.1rem; }
#mapa-grande-cv { display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 130px); align-self: center; image-rendering: pixelated; border: 3px solid #102236; border-radius: 6px; background: #6fae52; }
.mapa-grande-legenda { margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.mg-l { display: inline-block; width: 10px; height: 10px; border-radius: 2px; border: 1px solid #1d1b2a; }
.mg-l.voce { background: #ffffff; } .mg-l.colega { background: #ff6bd6; } .mg-l.feita { background: #1f8a4c; } .mg-l.fechada { background: #8a94a3; }
.panfleto-codigo { display: inline-block; font-family: monospace; font-size: 1.5em; letter-spacing: .12em; background: #f4efe1; color: #1d1b2a; padding: 6px 12px; border-radius: 4px; border: 2px dashed #ff8a1f; }
.hud-dir { position: relative; }
.hud-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 12; display: grid; gap: 4px; min-width: 230px; padding: 8px; background: #102236; border-radius: 8px; box-shadow: 0 12px 34px rgba(0,0,0,.35); }
.hud-menu[hidden] { display: none; }
.hud-menu .hud-btn { width: 100%; text-align: left; box-shadow: none; display: flex; align-items: center; gap: 8px; }
.hud-menu .hud-btn span { display: inline !important; }
.hud-menu .hud-btn[hidden] { display: none; }
#btn-pressa[aria-pressed="true"], #btn-mapa[aria-pressed="true"] { outline: 2px solid #ffd23f; outline-offset: -2px; }
.hud-menu-sep { height: 1px; background: rgba(255,255,255,.15); margin: 4px 2px; }
.hud-menu-btn[aria-expanded="true"] { background: #1559b3; }
.tela-titulo { display: grid; place-items: center; }
.titulo-card { text-align: center; color: #fff; padding: 24px 16px; max-width: 520px; }
.titulo-logo { font-family: var(--ap-titulo); font-size: clamp(40px, 9vw, 72px); line-height: .95; margin: 10px 0 12px; color: #ffd23f; text-shadow: 0 4px 0 #b4570b, 0 8px 0 rgba(0,0,0,.35); letter-spacing: 1px; }
.titulo-logo span { color: #ffffff; text-shadow: 0 4px 0 #1559b3, 0 8px 0 rgba(0,0,0,.35); }
.titulo-sub { color: #cfe0f5; margin: 0 0 22px; }
.titulo-botoes { display: grid; gap: 10px; justify-items: center; }
.titulo-botoes .botao { min-width: 220px; }
.titulo-rodape { color: #9fb2c8; margin-top: 22px; }
.op-grupo { border: 2px solid #d9d2c0; border-radius: 6px; padding: 8px 12px 10px; margin: 0 0 12px; }
.op-grupo legend { font-weight: 800; padding: 0 6px; }
.op-linha { display: flex; align-items: center; gap: 10px; margin: 6px 0; flex-wrap: wrap; }
.op-linha input[type=range] { flex: 1 1 160px; accent-color: #1559b3; }
.op-linha output { min-width: 3.5em; text-align: right; font-weight: 700; }
.op-radios label { display: inline-flex; align-items: center; gap: 4px; }
.op-check input { width: 18px; height: 18px; accent-color: #1559b3; }
.op-teclas { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 4px 0; align-items: center; }
.op-teclas dt { font-weight: 700; } .op-teclas dd { margin: 0; }
.creditos { display: grid; gap: 4px; margin: 0 0 12px; }
.creditos dt { font-weight: 800; margin-top: 6px; } .creditos dd { margin: 0; }
.carregando { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: #0b1a2e; transition: opacity .3s ease; }
.carregando[hidden] { display: none; }
.carregando.saindo { opacity: 0; }
.carregando-card { width: min(440px, 100%); text-align: center; color: #fff; }
.carregando-tit { font-family: var(--ap-titulo); font-size: 28px; color: #ffd23f; margin: 0 0 16px; }
.carregando-barra { height: 14px; border: 3px solid #ffffff; border-radius: 4px; background: #13233a; overflow: hidden; }
.carregando-barra i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(90deg, #ffd23f 0 8px, #ff8a1f 8px 16px); }
.carregando-txt { margin: 10px 0 18px; color: #cfe0f5; }
.carregando-dica { margin: 0; color: #e6edf5; line-height: 1.45; background: rgba(255,255,255,.06); border-radius: 6px; padding: 10px 12px; }
.carregando-dica b { color: #ffd23f; }
.conquista { position: fixed; top: 64px; right: 12px; z-index: 41; display: flex; align-items: center; gap: 12px; min-width: min(300px, calc(100vw - 24px)); max-width: min(420px, calc(100vw - 24px)); padding: 10px 16px 10px 10px; background: #102236; color: #fff; border: 3px solid #ffd23f; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.conquista[hidden] { display: none; }
.conquista.entra { animation: conq-entra .32s cubic-bezier(.2,1.4,.4,1); }
.conquista.sai { opacity: 0; transform: translateX(24px); transition: opacity .25s ease, transform .25s ease; }
.conquista-ic { flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 28px; background: #1d3a5c; border-radius: 6px; border: 2px solid #ffd23f; }
.conquista small { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: #ffd23f; font-weight: 800; }
@keyframes conq-entra { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
.salvo { position: fixed; left: 12px; bottom: 56px; z-index: 30; background: rgba(16,34,54,.92); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 6px; border-left: 4px solid #3cc46b; transition: opacity .4s ease; }
.salvo[hidden] { display: none; }
.salvo.some { opacity: 0; }
body.na-oficina .conquista, body.na-ead .conquista { top: 16px; }
@media (prefers-reduced-motion: reduce) { .conquista.entra { animation: none; } }
.diario-meta { background: #102236; color: #fff; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.diario-meta small { width: 100%; color: #ffd23f; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 11px; }
.diario-cards { display: grid; gap: 6px; margin-bottom: 12px; }
.diario-card { display: grid; grid-template-columns: 1fr 120px 52px; align-items: center; gap: 10px; padding: 6px 8px; background: #f1eee4; border-radius: 6px; font-size: .92rem; }
.diario-card i { height: 10px; background: #d9d2c0; border-radius: 3px; overflow: hidden; } .diario-card em { display: block; height: 100%; background: #1559b3; }
.diario-card.completo em { background: #1f8a4c; } .diario-card b { text-align: right; }
.diario-lista { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 4px; }
.diario-lista li { display: flex; gap: 8px; align-items: baseline; padding: 5px 8px; border-left: 3px solid #ff8a1f; background: #fbf8ef; }
@media (max-width: 520px) { .diario-card { grid-template-columns: 1fr 70px 44px; } }
.hud-hora { display: block; margin-top: 2px; }
.fps-medidor { position: fixed; left: 8px; bottom: 8px; z-index: 90; background: rgba(0,0,0,.7); color: #8cff9b; font: 700 12px monospace; padding: 4px 8px; border-radius: 4px; pointer-events: none; }
.titulo-senai { font-size: 18px; letter-spacing: 4px; } .titulo-logo { margin-bottom: 26px; }
.tela-titulo { position: fixed; overflow: hidden; background: #06101c; }
.tt-fundo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.titulo-card { position: relative; z-index: 1; background: rgba(6,16,28,.72); border: 2px solid rgba(92,200,255,.35); border-radius: 10px; padding: 26px 28px; box-shadow: 0 0 40px rgba(0,0,0,.5); }
.titulo-senai { color: #8fd0ff; }
.ead-adaptada .provao-lista { gap: 0; }
.ead-adaptada .provao-q { padding: 18px 20px; }
.ead-adaptada .provao-q[hidden] { display: none; }
.ead-adaptada .ead-p { font-size: 20px; line-height: 1.55; margin-bottom: 16px; }
.ead-adaptada .ead-ops { gap: 12px; }
.ead-adaptada .ead-op { font-size: 18px; min-height: 60px; padding: 14px 16px; }
.adaptada-foto { display: block; max-width: 100%; max-height: 220px; margin: 4px auto 14px; object-fit: contain; border-radius: 10px; border: 2px solid #d0dbe7; background: #fff; }
.adaptada-progresso { height: 10px; border-radius: 6px; background: #e3e9f0; margin: 4px 0 14px; overflow: hidden; }
.adaptada-progresso i { display: block; height: 100%; background: #2b8a3e; border-radius: 6px; transition: width .2s ease; }
.adaptada-nav { justify-content: space-between; }
.adaptada-nav .botao { font-size: 17px; min-height: 48px; padding: 0 20px; }
.adaptada-nav .botao[hidden] { display: none; }
.adaptada-nav .botao:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 600px) { .ead-adaptada .ead-p { font-size: 18px; } .ead-adaptada .ead-op { font-size: 16px; } }

/* ================================================================ tela inicial enxuta (24/11)
   Só o essencial à vista: 3 passos, nome e botão. Mapa de missões e passo a passo ficam recolhidos. */
.tela-inicio .ini-card { max-width: 880px; align-items: flex-start; }
.ini-txt { flex: 1 1 auto; }
.ini-txt h1 { margin: 4px 0 6px; }
.ini-lead { margin: 0 0 12px; font-size: 16px; color: #2b3648; }
.ini-rapido { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 14px; padding: 0; }
.ini-rapido li { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; padding: 10px 6px 8px;
  background: #eef4fb; border: 3px solid #1d1b2a; border-radius: 6px; box-shadow: 3px 3px 0 rgba(0,0,0,.18); }
.ini-rapido b { font-family: var(--ap-titulo); font-size: 17px; letter-spacing: .3px; color: #13233a; }
.ini-rapido small { font-size: 13px; color: #44515f; line-height: 1.35; }
.ini-rapido kbd { font-size: 11px; min-width: 18px; padding: 0 4px; margin: 0 1px; }
.ini-ico { font-size: 26px; line-height: 30px; height: 30px; display: grid; place-items: center; }
.ini-ico .bal { width: 26px; height: 26px; font-size: 15px; }
.ini-nome { display: block; margin: 0 0 6px; font-weight: 800; color: #13233a; }
.ini-entrar { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; margin: 0 0 8px; }
.ini-entrar input { flex: 1 1 200px; min-width: 0; font: 18px var(--ap-fonte); padding: 10px 12px; border: 3px solid #1d1b2a; border-radius: 4px; background: #fff; }
.ini-entrar input:focus { border-color: #1559b3; outline: 3px solid #ffd27a; outline-offset: 1px; }
.ini-entrar .botao.grande { flex: 0 0 auto; font-size: 18px; padding: 12px 20px; background: #1f8a4c; color: #fff; }
.ini-entrar .botao.grande:hover { background: #23a058; }
.ini-destino { margin: 0 0 8px; font-weight: 700; color: #1559b3; }
.tela-inicio .xp-caixa { margin: 10px 0 0; padding: 8px 12px; }
.tela-inicio .xp-caixa p { margin: 4px 0 0; }
.ini-mais { margin: 10px 0 0; border: 3px solid #1d1b2a; border-radius: 6px; background: #fff; }
.ini-mais summary { cursor: pointer; list-style: none; padding: 8px 12px; font-family: var(--ap-titulo); font-size: 16px; color: #13233a;
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ini-mais summary::-webkit-details-marker { display: none; }
.ini-mais summary::after { content: "▸"; margin-left: auto; color: #d96d00; transition: transform .15s; }
.ini-mais[open] summary::after { transform: rotate(90deg); }
.ini-mais summary small { font-family: var(--ap-fonte); font-size: 13px; color: #566476; }
.ini-mais summary:hover { background: #fff6df; }
.ini-mais summary:focus-visible { outline: 3px solid #ffd27a; outline-offset: 2px; }
.ini-mais[open] summary { border-bottom: 2px dashed #c6cfd9; }
.ini-mais .ini-passos { margin: 8px 12px 10px; padding-left: 20px; }
.ini-dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; padding: 10px 12px 4px; }
.ini-dest { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 7px 9px; cursor: pointer;
  font: 14px var(--ap-fonte); color: #13233a; background: #f4f7fb; border: 2px solid #1d1b2a; border-radius: 4px; box-shadow: 2px 2px 0 rgba(0,0,0,.18); }
.ini-dest b { font-size: 14px; }
.ini-dest small { font-size: 12.5px; color: #566476; }
.ini-dest:hover { background: #fff6df; }
.ini-dest:focus-visible { outline: 3px solid #ffd27a; outline-offset: 1px; }
.ini-dest.on { background: #ffe9a8; border-color: #d96d00; box-shadow: 2px 2px 0 #d96d00; }
.ini-nota { margin: 6px 12px 10px; font-size: 13.5px; color: #44515f; }
@media (max-width: 640px) {
  .ini-rapido { gap: 6px; }
  .ini-rapido li { padding: 8px 4px 6px; }
  .ini-rapido b { font-size: 15px; }
  .ini-rapido small { font-size: 12px; }
  .ini-entrar .botao.grande { flex: 1 1 100%; }
  .ini-dests { grid-template-columns: 1fr 1fr; }
}
