/* =========================================================
   MINIJOGOS — Forca, Quem Sou Eu?, Antes ou Depois?, Quiz
   Só variáveis do projeto; funciona nos temas pet, pixel e museu.
   ========================================================= */

/* ---------- tela ---------- */
html body[data-tela="mini"] { background: var(--jogo-fundo); color: var(--jogo-texto); }
body[data-tela="mini"] .topo, body[data-tela="mini"] .rodape { display: none; }
body[data-tela="mini"] main { max-width: 1180px; }
[data-tema="pixel"] body[data-tela="mini"] main { padding-bottom: 110px; }
#tela-mini { color: var(--jogo-texto); min-height: 100vh; min-height: 100dvh; }

.mj {
  --mj-acento: var(--ouro);
  --mj-vidro: color-mix(in srgb, var(--jogo-texto) 8%, transparent);
  --mj-vidro-2: color-mix(in srgb, var(--jogo-texto) 18%, transparent);
  --mj-ok: #1e7a6f; --mj-nao: #b83c47;
  color: var(--jogo-texto); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding-bottom: 28px;
  min-width: 0; max-width: 100%;
}
/* nada dentro do minijogo pode alargar a página (overflow-x): quem precisa rolar de lado rola sozinho */
.mj-palco { min-width: 0; max-width: 100%; }
[data-tema="pixel"] .mj { --mj-acento: var(--coral); }
.mj .ico svg { stroke: var(--mj-acento); fill: color-mix(in srgb, var(--mj-acento) 20%, transparent); }
.mj .ico svg .tr { fill: none; }
.mj-sr, .mj-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mj kbd { font: 700 12px/1 var(--sans); padding: 3px 6px; border-radius: 5px; background: var(--mj-vidro-2); }
.mj-aviso { text-align: center; padding: 60px 0; font-size: 18px; }
.mj-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--cor); flex: none; vertical-align: middle; margin-right: 2px; }
.mj-link { border: 0; background: none; padding: 0; color: var(--mj-acento); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.mj .btn-leve { color: var(--jogo-texto); }
.mj .mj-papel .btn-leve { color: var(--titulo); }
/* hover só onde existe mouse: no toque o iOS "gruda" o :hover no elemento que ficou sob o dedo */
@media (hover: hover) {
  .mj-link:hover { text-decoration-thickness: 2px; }
  .mj .btn-leve:hover { background: var(--mj-vidro); }
  .mj .mj-papel .btn-leve:hover { background: color-mix(in srgb, var(--tinta) 6%, transparent); }
}
.mj .mj-papel .mj-link { color: var(--coral); }

/* papel: superfície clara para texto e alternativas (no museu, como as cartas) */
.mj-papel { background: var(--creme); color: var(--tinta); border-radius: calc(var(--raio) + 4px); box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .6); }
[data-tema="museu"] :is(.mj-papel, .mj-cartinha, .mj-lt-carta, .mj-marco) {
  --tinta: #2a2118; --tinta-2: #5d5040; --titulo: #2a2118; --linha: #e3d6b8; --superficie: #fffaf0; --papel: #efe4c8; --petroleo: #2a2118;
}
[data-tema="museu"] .mj-papel { box-shadow: 0 30px 60px -24px #000, inset 0 0 0 1px rgba(201, 164, 92, .6); }
[data-tema="pixel"] .mj-papel { box-shadow: 6px 6px 0 var(--linha), inset 0 0 0 3px var(--linha); }

/* ---------- topo ---------- */
.mj-topo { display: flex; align-items: center; gap: 12px; padding: 12px 0; position: sticky; top: 0; z-index: 6; background: var(--jogo-fundo); }
.mj-tit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mj-tit-nome { display: flex; align-items: center; gap: 8px; font: 700 clamp(17px, 2.4vw, 22px)/1.1 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mj-tit-nome svg { width: 24px; height: 24px; }
.mj-tit-sub { font-size: 13px; font-weight: 700; opacity: .85; }
.mj-tit-modo { opacity: .85; }
.mj-stats { flex-wrap: wrap; justify-content: flex-end; }
.mj-stats b { white-space: nowrap; }
.mj-vez { padding-top: 0; }
.vez-j.mj-fora { opacity: .35; text-decoration: line-through; }
.mj-perg-mini { display: inline-flex; align-items: center; gap: 2px; font: 700 13px/1 var(--sans); opacity: .9; }
.mj-perg-mini svg { width: 16px; height: 16px; fill: color-mix(in srgb, var(--ouro) 40%, transparent); stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mj-perg-mini svg .tr { fill: none; }
@media (max-width: 600px) {
  .mj-topo { flex-wrap: wrap; row-gap: 8px; }
  .mj-stats { width: 100%; justify-content: center; order: 3; }
  .mj-stats span { min-width: 58px; padding: 4px 10px; }
  .mj-stats b { font-size: 17px; }
}

/* ---------- tela inicial ---------- */
.mj-intro { width: 100%; max-width: 900px; margin: 0 auto; padding: 8px 0 30px; display: flex; flex-direction: column; gap: 22px; animation: sobeFade .45s var(--suave); }
.mj-intro-cab { display: flex; gap: 18px; align-items: center; }
.mj-intro-ico svg { width: clamp(56px, 10vw, 80px); height: clamp(56px, 10vw, 80px); }
.mj-kicker { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mj-acento); }
.mj-intro h2 { margin: 0; font: 800 clamp(32px, 6vw, 54px)/1 var(--serif); letter-spacing: -.01em; }
.mj-intro-desc { margin: 8px 0 0; font-size: clamp(16px, 2vw, 18px); opacity: .88; max-width: 560px; }
.mj-ajustes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; }
.mj-ajuste { border: 0; margin: 0; padding: 16px; border-radius: var(--raio); background: var(--mj-vidro); min-width: 0; }
.mj-ajuste legend { float: left; width: 100%; padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.mj-ajuste .seg { display: flex; flex-wrap: wrap; border-radius: 22px; clear: both; }
.mj-ajuste .seg button { flex: 1 1 auto; padding: 9px 12px; }
.mj-ajuste-desc { margin: 10px 2px 0; font-size: 14.5px; opacity: .88; min-height: 2.8em; }
[data-tema="pixel"] .mj-ajuste { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--linha) 35%, transparent); }
.mj-intro-times { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; }
.mj-intro-times b { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--mj-vidro); box-shadow: inset 0 0 0 2px var(--cor); }
.mj-intro-times b::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--cor); }
.mj-intro-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mj-rec-linha { font-size: 14px; opacity: .9; }
.mj-rec-linha b { color: var(--mj-acento); }

/* ---------- como jogar ---------- */
.mj-como { border-radius: calc(var(--raio) + 6px); background: var(--mj-vidro); padding: clamp(14px, 3vw, 22px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px 24px; align-items: center; animation: sobeFade .4s var(--suave); }
@media (max-width: 700px) { .mj-como { grid-template-columns: 1fr; } }
.mj-demo { position: relative; height: 210px; border-radius: var(--raio); background: color-mix(in srgb, var(--jogo-texto) 7%, transparent); overflow: hidden; display: grid; place-items: center; }
.mj-como-txt { min-width: 0; }
.mj-passos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.mj-passos li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.4; animation: sobeFade .45s var(--suave) both; animation-delay: calc(var(--i) * 140ms); }
.mj-passo-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--mj-acento); color: var(--jogo-fundo); font-weight: 700; }
.mj-passos b { color: var(--mj-acento); }
.mj-teclas { margin: 14px 0 0; font-size: 13px; opacity: .8; line-height: 1.9; }
.mj-como-poderes { grid-column: 1 / -1; border-top: 1px solid var(--mj-vidro-2); padding-top: 14px; }
.mj-como-poderes ul { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 16px; }
.mj-como-poderes li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.35; }
.mj-como-poderes li b { color: var(--mj-acento); }
.mj-como-poderes .poder-ico svg { width: 26px; height: 26px; fill: color-mix(in srgb, var(--ouro) 35%, transparent); stroke: var(--jogo-texto); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; flex: none; }
.mj-como-poderes .poder-ico svg .tr { fill: none; }
.mj-como-perg-regra { margin: 0; font-size: 14px; opacity: .88; }
.mj-como-perg-regra b { color: var(--mj-acento); }
.mj-como-ov { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 14px; background: rgba(13, 26, 33, .78); backdrop-filter: blur(4px); animation: sobeFade .25s var(--suave); }
.mj-como-caixa { width: min(100%, 820px); max-height: 100%; overflow: auto; background: var(--jogo-fundo); color: var(--jogo-texto); border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), inset 0 0 0 1px var(--mj-vidro-2); animation: modal .4s var(--mola); }
[data-tema="pixel"] .mj-como-caixa { box-shadow: 8px 8px 0 #2e1427, inset 0 0 0 4px var(--linha); }
.mj-como-cab { display: flex; align-items: center; gap: 12px; }
.mj-como-cab svg { width: 38px; height: 38px; }
.mj-como-cab small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .75; font-weight: 700; }
.mj-como-cab b { font: 800 24px/1.05 var(--serif); }
.mj-como-rodape { display: flex; justify-content: flex-end; }

/* ---------- pergaminhos (complementa .poderes/.poder do style.css) ---------- */
.mj-poderes-box:empty { display: none; }
.mj .poderes { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.mj-perg-conta { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px 6px 8px; border-radius: 999px; background: var(--mj-vidro); font: 800 18px/1 var(--serif); }
.mj-perg-conta svg { width: 26px; height: 26px; fill: color-mix(in srgb, var(--ouro) 45%, transparent); stroke: var(--jogo-texto); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.mj-perg-conta svg .tr { fill: none; }
/* aparência de reserva, caso .poder ainda não esteja no style.css (especificidade zero) */
:where(.mj .poder) {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 8px;
  border: 0; border-radius: 999px; background: var(--mj-vidro);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--mj-acento) 70%, transparent);
  font-size: 14px; transition: transform .15s var(--suave), opacity .2s;
}
@media (hover: hover) { :where(.mj .poder:hover:not(:disabled)) { transform: translateY(-2px); } }
:where(.mj .poder:disabled) { opacity: .45; cursor: not-allowed; }
:where(.mj .poder .poder-ico svg) { width: 26px; height: 26px; fill: color-mix(in srgb, var(--ouro) 45%, transparent); stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
:where(.mj .poder .poder-ico) { display: inline-grid; }
:where(.mj .poder .poder-ico svg .tr) { fill: none; }
:where(.mj .poder i) { font-style: normal; font-size: 12px; font-weight: 700; opacity: .75; }
.mj .poder.usando { opacity: 1; box-shadow: 0 0 0 3px var(--verde), 0 0 18px -2px var(--verde); }
.mj .poder.mj-poder-pop { animation: pop .45s var(--mola); }

/* ---------- barra de tempo ---------- */
.mj-barra { height: 10px; border-radius: 99px; background: var(--mj-vidro-2); overflow: hidden; }
.mj-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--verde), var(--ouro)); transform-origin: left; transform: scaleX(var(--p, 1)); transition: transform .12s linear, background .3s; }
.mj-barra.urgente i { background: var(--coral); animation: pulsa 1s infinite; }
.mj-barra.gelo { box-shadow: 0 0 0 3px color-mix(in srgb, var(--verde) 60%, transparent); }

/* ---------- ficha (fim de cada carta) ---------- */
.mj-ficha { padding: clamp(16px, 3vw, 24px); display: flex; flex-direction: column; gap: 4px; animation: modal .45s var(--mola); }
.mj-ficha-res { margin: 0 0 6px; font-weight: 700; font-size: 16px; }
.mj-ficha-res.ok { color: var(--mj-ok); }
.mj-ficha-res.nao { color: var(--mj-nao); }
.mj-ficha small { font-weight: 700; color: var(--coral); letter-spacing: .05em; }
.mj-ficha h3 { margin: 0; font: 800 clamp(22px, 3vw, 28px)/1.08 var(--serif); color: var(--titulo); }
.mj-ficha-sub { margin: 0; color: var(--tinta-2); font-size: 15px; }
.mj-ficha > p:not([class]) { margin: 8px 0 4px; font-size: 16px; }
.mj-credito { margin: 4px 0 0; font-size: 12.5px; color: var(--tinta-2); }
.mj-credito a { color: inherit; }
.mj-ficha .btn { align-self: flex-start; margin-top: 12px; }

/* ================= FORCA ================= */
.mj-forca { display: grid; grid-template-columns: minmax(230px, 340px) minmax(0, 1fr); gap: clamp(16px, 3.5vw, 40px); align-items: start; padding-top: 8px; }
@media (max-width: 760px) { .mj-forca { grid-template-columns: 1fr; gap: 14px; } }
.mj-forca-visual { display: flex; gap: 14px; align-items: flex-end; justify-content: center; position: sticky; top: 76px; }
@media (max-width: 760px) { .mj-forca-visual { position: static; } }
.mj-quadro { margin: 0; position: relative; flex: 1 1 auto; width: 100%; max-width: 240px; aspect-ratio: 3 / 4; border-radius: var(--raio); overflow: hidden; background: var(--mj-vidro); box-shadow: 0 0 0 3px var(--mj-vidro-2), 0 16px 30px -16px rgba(0, 0, 0, .6); }
@media (max-width: 760px) { .mj-quadro { max-width: 150px; } }
.mj-quadro canvas, .mj-quadro img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mj-quadro canvas { image-rendering: pixelated; transition: filter .5s var(--suave); }
.mj-quadro img { opacity: 0; transition: opacity .9s var(--suave); }
.mj-quadro.revelado img { opacity: 1; }
.mj-quadro.revelado canvas { opacity: 0; transition: opacity .9s; }
.mj-quadro.pisca { animation: mjPisca .45s var(--suave); }
.mj-quadro-vazio { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; text-align: center; }
.mj-quadro-vazio span { font: 800 clamp(52px, 9vw, 80px)/1 var(--serif); color: var(--mj-acento); }
.mj-quadro-vazio small { font: 700 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.mj-quadro.pixel .mj-quadro-vazio { display: none; }
.mj-quadro.vazio.revelado .mj-quadro-vazio { opacity: 0; transition: opacity .6s; }
.mj-quadro.vazio { background: repeating-linear-gradient(45deg, var(--mj-vidro) 0 10px, transparent 10px 20px), var(--mj-vidro); }

.mj-vela-box { flex: none; width: clamp(74px, 11vw, 104px); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mj-vela { width: 100%; height: auto; overflow: visible; }
.mj-vela-halo { fill: var(--ouro); opacity: .18; filter: blur(7px); transform-box: fill-box; transform-origin: center; animation: mjHalo 2.2s ease-in-out infinite; transition: opacity .5s, transform .7s var(--mola); }
.mj-vela-prato { fill: var(--jogo-texto); opacity: .22; }
.mj-vela-poca { fill: var(--creme); opacity: .85; transform-box: fill-box; transform-origin: center; transition: transform .7s var(--mola); }
.mj-vela-corpo { fill: var(--creme); stroke: var(--jogo-texto); stroke-opacity: .35; stroke-width: 2; vector-effect: non-scaling-stroke; transform-box: fill-box; transform-origin: 50% 100%; transition: transform .75s var(--mola); }
.mj-vela-luz { fill: url(#mj-vela-luz); stroke: none; }
.mj-vela-topo { transition: transform .75s var(--mola); }
.mj-vela-boca { fill: color-mix(in srgb, var(--creme) 80%, #000); }
.mj-vela-pavio { stroke: var(--jogo-texto); stroke-width: 2.6; stroke-linecap: round; fill: none; }
.mj-chama { transform-box: fill-box; transform-origin: 50% 100%; animation: mjChama 1.3s ease-in-out infinite alternate; transition: opacity .4s, transform .4s; }
.mj-chama-f { fill: var(--laranja); }
.mj-chama-n { fill: var(--creme); opacity: .9; }
.mj-fumaca path { fill: none; stroke: var(--jogo-texto); stroke-opacity: .5; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 60; stroke-dashoffset: 60; opacity: 0; }
.mj-vela.fraca .mj-chama { animation-duration: .35s; }
.mj-vela.fraca .mj-vela-halo { opacity: .08; }
.mj-vela.apagada .mj-chama, .mj-vela.apagada .mj-vela-halo { opacity: 0; transform: scale(.2); animation: none; }
.mj-vela.apagada .mj-fumaca path { animation: mjFumaca 2.6s var(--suave) infinite; }
.mj-vela.apagada .mj-fumaca path + path { animation-delay: .5s; }
.mj-vela.vitoria .mj-chama { animation: mjChamaOk .7s var(--mola) both, mjChama 1.3s ease-in-out .7s infinite alternate; }
.mj-vela.vitoria .mj-vela-halo { opacity: .42; }
.mj-pingo { fill: var(--creme); animation: mjPinga 1.35s cubic-bezier(.55, 0, .85, .45) forwards; }
.mj-vidas { font-size: 13px; font-weight: 700; opacity: .9; white-space: nowrap; }
.mj-vidas b { font: 800 17px/1 var(--serif); color: var(--mj-acento); font-variant-numeric: tabular-nums; }

.mj-forca-jogo { min-width: 0; container-type: inline-size; }
.mj-forca-kicker { margin: 0 0 12px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; display: flex; align-items: center; gap: 6px; }
.mj-palavra { --t: clamp(18px, calc((100cqw - 4px * var(--max)) / (var(--max) + .4)), 42px); display: flex; flex-wrap: wrap; gap: 12px calc(var(--t) * .55); margin-bottom: 16px; }
.mj-palavra.treme { animation: treme .4s; }
.mj-pal { display: inline-flex; gap: 4px; }
.mj-l { width: var(--t); height: calc(var(--t) * 1.3); display: grid; place-items: end center; border-bottom: 3px solid currentColor; padding-bottom: 2px; font: 800 calc(var(--t) * .78)/1 var(--serif); }
.mj-l b { opacity: 0; transform: translateY(10px) scale(.5); transition: opacity .25s, transform .5s var(--mola); transition-delay: calc(var(--i, 0) * 70ms); }
.mj-l.on b { opacity: 1; transform: none; }
.mj-l.on:not(.falta) { border-bottom-color: var(--mj-acento); }
.mj-l.falta b { color: var(--coral); }
.mj-l.falta { border-bottom-color: var(--coral); }
.mj-l-fixo { width: auto; min-width: calc(var(--t) * .35); border-bottom-color: transparent; }
.mj-l-fixo b { opacity: 1; transform: none; }
.mj-forca-ctrl { display: flex; flex-direction: column; gap: 12px; }
.mj-forca-ctrl[hidden] { display: none; }
.mj-dicas { display: flex; flex-wrap: wrap; gap: 8px; }
.mj-dica { border: 0; border-radius: 999px; padding: 9px 14px; background: var(--mj-vidro); color: inherit; font-weight: 700; font-size: 14px; box-shadow: inset 0 0 0 2px var(--mj-vidro-2); display: inline-flex; gap: 0; align-items: center; min-height: 40px; transition: background .2s, transform .15s; }
@media (hover: hover) { .mj-dica:hover:not(:disabled) { background: var(--mj-vidro-2); transform: translateY(-1px); } }
.mj-dica small { font-weight: 700; color: var(--mj-acento); margin-left: 8px; }
.mj-dica-n { white-space: pre; }
.mj-dica:disabled { opacity: .5; cursor: default; }
.mj-dicas-txt { display: grid; gap: 8px; }
.mj-dicas-txt:empty { display: none; }
.mj-chip { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--mj-vidro); border-left: 4px solid var(--mj-acento); font-size: 15.5px; animation: sobeFade .35s var(--suave); }
.mj-chip b { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mj-acento); }
/* teclado: cada fileira é uma grade de 20 colunas que encolhem (minmax(0,1fr)); cada tecla ocupa 2.
   A 2ª fileira começa meia tecla adiante e a 3ª, uma tecla e meia: todas cabem em qualquer largura. */
.mj-teclado { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; width: 100%; max-width: 640px; min-width: 0; }
.mj-tec-linha { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.mj-tec-linha > .mj-tecla { grid-column: span 2; }
.mj-tec-linha:nth-child(2) > .mj-tecla:first-child { grid-column: 2 / span 2; }
.mj-tec-linha:nth-child(3) > .mj-tecla:first-child { grid-column: 4 / span 2; }
.mj-tecla {
  width: 100%; min-width: 0; padding: 0; height: clamp(42px, 6vw, 54px); border: 0; border-radius: 10px;
  background: var(--superficie); color: var(--tinta); font: 700 clamp(15px, 2.4vw, 19px)/1 var(--sans);
  box-shadow: 0 3px 0 color-mix(in srgb, var(--tinta) 30%, transparent); transition: transform .12s var(--suave), background .2s, opacity .2s;
}
@media (hover: hover) { .mj-tecla:hover:not(:disabled) { transform: translateY(-2px); } }
.mj-tecla:active:not(:disabled) { transform: translateY(2px); box-shadow: none; }
.mj-tecla:disabled { cursor: default; }
.mj-tecla.certa { background: var(--verde); color: #fff; box-shadow: 0 3px 0 color-mix(in srgb, var(--verde) 60%, #000); }
.mj-tecla.errada { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px var(--mj-vidro-2); opacity: .45; text-decoration: line-through; }
[data-tema="pixel"] .mj-tecla { box-shadow: 3px 3px 0 var(--linha), inset 0 0 0 2px var(--linha); }
[data-tema="pixel"] .mj-tecla.errada { box-shadow: inset 0 0 0 2px var(--linha); }
[data-tema="museu"] .mj-tecla { box-shadow: inset 0 0 0 1px rgba(212, 176, 106, .35), 0 3px 0 #000; }

/* ================= QUEM SOU EU ================= */
.mj-quem { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(14px, 3vw, 30px); align-items: start; padding-top: 8px; }
@media (max-width: 780px) { .mj-quem { grid-template-columns: 1fr; } }
.mj-q-cartao { padding: clamp(16px, 3vw, 24px); }
.mj-q-cab { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.mj-q-sil { width: 66px; height: 66px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--btn-fundo); color: var(--btn-texto); font: 800 34px/1 var(--serif); overflow: hidden; box-shadow: 0 0 0 3px var(--ouro); }
.mj-q-sil img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; animation: pop .5s var(--mola); }
.mj-q-sil.revelada { box-shadow: 0 0 0 3px var(--verde); }
.mj-q-cab > div { flex: 1; min-width: 0; }
.mj-q-cab small { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--tinta-2); }
.mj-q-titulo { display: block; font: 800 clamp(22px, 3vw, 28px)/1.05 var(--serif); color: var(--titulo); }
.mj-q-vale { flex: none; text-align: center; padding: 6px 12px; border-radius: 12px; background: var(--papel); }
.mj-q-vale b { display: block; font: 800 24px/1 var(--serif); color: var(--coral); font-variant-numeric: tabular-nums; }
.mj-q-vale small { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--tinta-2); }
.mj-q-vale.cai b { animation: mjCai .5s var(--mola); }
.mj-q-lista { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.mj-q-pista { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--superficie); box-shadow: inset 0 0 0 1px var(--linha); }
.mj-q-pista.nova { animation: mjEntra .55s var(--mola) both; }
.mj-q-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-fundo); color: var(--btn-texto); font-weight: 700; font-size: 13px; }
.mj-q-rot { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.mj-q-txt { font-size: 16px; line-height: 1.38; }
.mj-q-pista img { margin-top: 6px; width: 100%; max-height: 240px; object-fit: cover; object-position: center 25%; border-radius: 10px; }
.mj-q-mais { width: 100%; justify-content: space-between; flex-wrap: wrap; }
.mj-q-mais small { font-weight: 700; opacity: .75; }
.mj-q-lado { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mj-q-resp { padding: clamp(14px, 3vw, 20px); }
.mj-q-opt-tit { margin: 0 0 12px; font: 700 19px/1.2 var(--serif); color: var(--titulo); }
.mj-q-opts.duas { grid-template-columns: 1fr 1fr; }
.mj .alt.mj-cortada { opacity: .4; text-decoration: line-through; text-decoration-thickness: 2px; animation: mjRisca .5s var(--suave); }
.mj-livre label { display: block; font: 700 19px/1.2 var(--serif); color: var(--titulo); margin-bottom: 10px; }
.mj-livre-linha { display: flex; gap: 8px; flex-wrap: wrap; }
.mj-livre input { flex: 1 1 200px; min-width: 0; padding: 12px 16px; border-radius: 12px; border: 2px solid var(--linha); background: #fff; color: var(--tinta); font: inherit; font-size: 17px; }
.mj-livre input:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; border-color: var(--petroleo); }
.mj-livre.erro input { border-color: var(--coral); animation: treme .4s; }
.mj-livre-msg { min-height: 1.4em; margin: 8px 0 6px; font-size: 14.5px; font-weight: 700; color: var(--mj-nao); }
.mj-q-fim[hidden] { display: none; }

/* ================= ANTES OU DEPOIS ================= */
.mj-antes { display: flex; flex-direction: column; gap: 16px; padding-top: 4px; }
/* a faixa rola só na horizontal e só ela (overflow-y: hidden: a animação de entrada não pode criar
   rolagem vertical dentro da faixa, que cortava nomes e anos ao meio no iPhone) */
.mj-lt-wrap {
  min-width: 0; max-width: 100%; flex: none;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; touch-action: pan-x pan-y;
  scroll-snap-type: x proximity; scroll-padding-inline: 14px; scrollbar-width: thin;
  padding: 4px 2px 8px; border-radius: var(--raio); background: var(--mj-vidro); outline: none;
}
.mj-lt-wrap:focus-visible { box-shadow: 0 0 0 3px var(--laranja); }
.mj-lt { list-style: none; margin: 0; padding: 26px 14px 8px; display: flex; align-items: flex-start; gap: 10px; width: max-content; min-width: 100%; justify-content: center; position: relative; }
.mj-lt::before { content: ''; position: absolute; left: 8px; right: 8px; top: 12px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ouro), var(--coral)); }
.mj-lt:empty { min-height: 120px; }
.mj-lt:empty::after { content: 'As cartas que você acertar entram aqui, em ordem.'; align-self: center; font-size: 14px; opacity: .75; padding-top: 16px; }
[data-tema="pixel"] .mj-lt::before { background: repeating-linear-gradient(90deg, var(--linha) 0 12px, transparent 12px 18px); }
.mj-lt-item { position: relative; width: 78px; flex: none; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.mj-lt-item::before { content: ''; position: absolute; top: -19px; width: 12px; height: 12px; border-radius: 50%; background: var(--creme); box-shadow: 0 0 0 3px var(--jogo-fundo); }
.mj-lt-carta { width: 66px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--creme); display: grid; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, .6); }
.mj-lt-carta img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mj-lt-carta .mj-ini { display: grid; place-items: center; font: 800 20px/1 var(--serif); color: var(--petroleo); background: var(--papel); }
.mj-lt-nome { font-size: 11.5px; line-height: 1.15; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mj-lt-ano { font: 700 13px/1.1 var(--serif); color: var(--mj-acento); }
.mj-lt-marco { display: block; font: 600 10.5px/1.15 var(--sans); color: var(--jogo-texto); opacity: .8; }
.mj-lt-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mj-lt-item.entra { animation: mjEntra .65s var(--mola); }
.mj-lt-item.entra .mj-lt-carta { box-shadow: 0 0 0 3px var(--verde), 0 8px 18px -6px rgba(0, 0, 0, .6); }
.mj-lt-item.atual .mj-lt-carta { box-shadow: 0 0 0 3px var(--mj-acento), 0 8px 18px -6px rgba(0, 0, 0, .6); }
.mj-lt-slot { flex: none; align-self: stretch; display: flex; padding-top: 4px; }
.mj-slot { width: 38px; min-height: 88px; border: 2px dashed var(--mj-vidro-2); border-radius: 12px; background: transparent; color: inherit; display: grid; place-items: center; font: 800 15px/1 var(--serif); opacity: .85; transition: background .2s, border-color .2s, transform .2s var(--mola); }
@media (hover: hover) { .mj-slot:hover:not(:disabled) { background: var(--mj-vidro-2); border-color: var(--mj-acento); border-style: solid; transform: scale(1.06); } }
.mj-slot:focus-visible { background: var(--mj-vidro-2); border-color: var(--mj-acento); border-style: solid; transform: scale(1.06); }
.mj-slot:disabled { cursor: default; }
.mj-slot.aqui { border: 3px solid var(--verde); background: color-mix(in srgb, var(--verde) 25%, transparent); animation: pulsa 1s 3; opacity: 1; }
.mj-slot.errado { border: 3px solid var(--coral); background: color-mix(in srgb, var(--coral) 22%, transparent); opacity: 1; }
.mj-lt-final { align-self: stretch; width: 100%; }
.mj-lt-final .mj-lt { justify-content: flex-start; }
.mj-lt-final .mj-lt-item { scroll-snap-align: start; }

.mj-antes-perg { margin: 0; text-align: center; font: 600 clamp(18px, 2.6vw, 22px)/1.3 var(--serif); }
.mj-antes-perg b { color: var(--mj-acento); }
.mj-duelo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(8px, 3vw, 28px); align-items: center; max-width: 620px; width: 100%; margin: 12px auto 0; }
.mj-duelo-um { grid-template-columns: 1fr; max-width: 240px; }
.mj-vs { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--mj-vidro-2); font: 800 22px/1 var(--serif); }
.mj-cartinha { position: relative; width: 100%; max-width: min(210px, 24vh); justify-self: center; aspect-ratio: 3 / 4.3; border-radius: var(--raio); overflow: hidden; background: var(--creme); color: var(--tinta); display: flex; flex-direction: column; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .65); animation: sobeFade .45s var(--suave); transition: box-shadow .3s; }
.mj-cartinha.mj-nova { animation: mjChega .55s var(--mola); }
.mj-cartinha.ok { box-shadow: 0 0 0 4px var(--verde), 0 16px 30px -14px rgba(0, 0, 0, .65); }
.mj-cartinha.nao { box-shadow: 0 0 0 4px var(--coral), 0 16px 30px -14px rgba(0, 0, 0, .65); animation: treme .4s; }
.mj-cartinha-rot { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 3px 9px; border-radius: 99px; background: var(--btn-fundo); color: var(--btn-texto); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mj-cartinha-img { flex: 1; min-height: 0; position: relative; background: var(--papel); }
.mj-cartinha-img img, .mj-cartinha-img .mj-ini { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.mj-cartinha-img .mj-ini { display: grid; place-items: center; font: 800 44px/1 var(--serif); color: var(--petroleo); }
.mj-cartinha-txt { padding: 9px 10px 4px; text-align: center; border-top: 4px solid var(--laranja); display: flex; flex-direction: column; gap: 2px; }
.mj-cartinha-txt b { font: 700 clamp(13px, 1.9vw, 17px)/1.1 var(--serif); color: var(--titulo); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mj-cartinha-txt small { font-size: 11px; color: var(--tinta-2); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mj-cartinha-txt small.mj-cartinha-marco { text-transform: none; letter-spacing: 0; font-size: 12px; line-height: 1.15; color: var(--coral); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mj-cartinha-ano { padding: 2px 10px 10px; text-align: center; font: 800 clamp(18px, 2.8vw, 26px)/1.1 var(--serif); color: var(--coral); font-variant-numeric: tabular-nums; }
.mj-cartinha-ano.oculto { color: var(--tinta-2); letter-spacing: .15em; }
.mj-cartinha-ano.revela span { display: inline-block; animation: pop .45s var(--mola); }
.mj-marco { justify-self: center; width: min(100%, 200px); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; text-align: center; gap: 4px; background: var(--creme); color: var(--tinta); box-shadow: inset 0 0 0 6px var(--creme), inset 0 0 0 9px var(--coral), 0 16px 30px -14px rgba(0, 0, 0, .65); animation: pop .5s var(--mola); padding: 12px; }
.mj-marco small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--tinta-2); }
.mj-marco b { font: 800 clamp(30px, 6vw, 46px)/1 var(--serif); color: var(--titulo); font-variant-numeric: tabular-nums; }
.mj-marco-dica { font-size: 12.5px; font-weight: 700; color: var(--mj-ok); max-width: 150px; }
@media (max-width: 520px) {
  .mj-cartinha { max-width: 150px; }
  .mj-vs { width: 34px; height: 34px; font-size: 17px; }
  .mj-marco { width: 140px; }
}
.mj-antes-base { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mj-antes-msg { margin: 0; min-height: 1.4em; text-align: center; font-weight: 700; font-size: 16px; max-width: 640px; }
.mj-antes-msg.ok { color: var(--jogo-texto); }
.mj-antes-msg.ok::before { content: '✓ '; color: var(--verde); }
.mj-antes-msg.nao::before { content: '✕ '; color: var(--coral); }
.mj-antes-acoes { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.mj-antes-acoes .btn-grande { min-width: 160px; }
.mj-antes-acoes .btn.escolhida { outline: 3px solid var(--mj-acento); outline-offset: 3px; }
[data-tema="pixel"] .mj-antes-acoes .btn-grande::after { content: none; }
.mj-cor { display: inline-flex; gap: 1px; color: var(--coral); font-size: 15px; line-height: 1; }
.mj-cor b.off { opacity: .25; color: inherit; filter: grayscale(1); }
.mj-escudo-mini { font-style: normal; color: var(--verde); margin-left: 3px; }
.vez-j .mj-cor { font-size: 12px; }
.mj .mj-stats span.mj-cor { flex-direction: row; background: none; box-shadow: none; padding: 0; min-width: 0; border-radius: 0; font-size: 17px; }

/* ================= QUIZ ================= */
.mj-quiz { position: relative; width: 100%; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.mj-quiz-info { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; }
.mj-quiz-quem { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.mj-mult { margin-left: auto; font: 800 26px/1 var(--serif); color: var(--mj-acento); opacity: .55; transition: opacity .3s; }
.mj-mult.quente { opacity: 1; animation: pop .4s var(--mola); }
.mj-quiz-perg { padding: clamp(16px, 3.4vw, 26px); }
.mj-quiz-perg.entra { animation: mjTroca .4s var(--suave); }
.mj-quiz-perg .perg-carta small { color: var(--verde); }
.mj-quiz-perg .perg-carta .mj-ini { width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; background: var(--petroleo); color: var(--creme); font: 800 22px/1 var(--serif); flex: none; box-shadow: 0 0 0 3px var(--verde); }
.mj-quiz-perg .perg-carta b { font-size: 17px; }
.mj-flutuas { position: absolute; top: 0; right: 0; pointer-events: none; }
.mj-flutua { position: absolute; right: 10px; top: 36px; white-space: nowrap; font: 800 24px/1 var(--serif); color: var(--verde); animation: mjFlutua 1.05s var(--suave) forwards; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.mj-flutua.nao { color: var(--coral); }
.mj-flutua.gelo { color: var(--mj-acento); }
.mj-vez-tela { min-height: 52vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; animation: sobeFade .4s var(--suave); }
.mj-vez-nome { --cor: var(--destaque); padding: 14px 30px; border-radius: 999px; background: var(--cor); color: #fff; font: 800 clamp(24px, 5vw, 40px)/1 var(--serif); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); animation: pop .5s var(--mola); }
.mj-vez-tela p { margin: 0; font-size: 17px; opacity: .9; }
.mj-conta { font: 800 clamp(90px, 22vw, 180px)/1 var(--serif); color: var(--mj-acento); }
.mj-conta.bate { animation: mjBate .6s var(--suave); }

/* ---------- fim ---------- */
.mj-fim { padding: 10px 0 30px; display: flex; flex-direction: column; gap: 22px; align-items: center; }
.mj-fim-caixa { width: min(100%, 580px); padding: clamp(22px, 5vw, 38px); text-align: center; animation: modal .5s var(--mola); }
.mj-fim-caixa h2 { font: 800 clamp(28px, 5vw, 44px)/1.05 var(--serif); margin: 14px 0 6px; color: var(--titulo); }
.mj-fim-caixa > p { margin: 0; color: var(--tinta-2); font-size: 17px; }
.mj-fim .fim-placar { display: grid; width: 100%; min-width: 0; margin-top: 16px; }
.mj-fim .fim-placar div { align-items: center; }
.mj-fim .fim-placar div.venc { background: color-mix(in srgb, var(--ouro) 22%, var(--superficie)); }
.mj-fim-linhas div { font-size: 15px; }
.mj-coroa { font-style: normal; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; background: var(--ouro); color: #2a2118; padding: 2px 8px; border-radius: 99px; margin-left: 6px; vertical-align: middle; }
.mj-rec-antigo { margin: 10px 0 0; color: var(--tinta-2); font-size: 14px; }
.mj-fim .fim-acoes { margin-top: 22px; }
.mj-trocar { margin-top: 14px; font-size: 14px; }
.mj-rev-tit { font: 700 22px/1.2 var(--serif); margin: 8px 0 0; align-self: flex-start; }
.mj-rev { width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.mj-rev-item { display: flex; gap: 12px; padding: 12px; border-left: 6px solid var(--verde); }
.mj-rev-item.nao { border-left-color: var(--coral); }
.mj-rev-item .mj-rev-img, .mj-rev-item .mj-ini { width: 70px; height: 90px; border-radius: 10px; object-fit: cover; object-position: center 25%; flex: none; }
.mj-rev-item .mj-ini { display: grid; place-items: center; background: var(--petroleo); color: var(--creme); font: 800 26px/1 var(--serif); }
.mj-rev-item small { color: var(--coral); font-weight: 700; font-size: 13px; }
.mj-rev-item b { display: block; font: 700 17px/1.15 var(--serif); color: var(--titulo); }
.mj-rev-item p { margin: 4px 0 0; font-size: 14px; color: var(--tinta-2); }
.mj-rev-time { display: inline-flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12.5px; font-weight: 700; color: var(--tinta-2); }
.mj-rev-time i { width: 9px; height: 9px; border-radius: 50%; background: var(--cor); }
.mj-erros { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.mj-erro { padding: 14px 16px; border-left: 6px solid var(--coral); display: flex; flex-direction: column; gap: 4px; }
.mj-erro small { display: flex; align-items: center; gap: 4px; font-weight: 700; color: var(--coral); font-size: 13px; }
.mj-erro b { font: 700 16.5px/1.3 var(--serif); color: var(--titulo); }
.mj-erro p { margin: 0; font-size: 14.5px; color: var(--tinta-2); }
.mj-erro .mj-erro-resp { color: var(--tinta); font-weight: 700; }
.mj-erro-resp span { color: var(--mj-ok); }
.mj-sem-erros { font-size: 17px; font-weight: 700; }

/* ================= DEMOS ("Como jogar") ================= */
.mjd { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px; }
.mjd img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }

/* forca */
.mjd-quadro { width: 92px; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--mj-vidro-2); display: grid; place-items: center; flex: none; }
.mjd-quadro span { font: 800 44px/1 var(--serif); color: var(--mj-acento); }
.mjd-quadro img { animation: mjdNitido 6s steps(1) infinite; image-rendering: pixelated; }
.mjd-vela { width: 42px; height: 96px; overflow: visible; flex: none; }
.mjd-vela-prato { fill: var(--jogo-texto); opacity: .25; }
.mjd-vela-corpo { fill: var(--creme); transform-box: fill-box; transform-origin: 50% 100%; animation: mjdDerrete 6s var(--mola) infinite; }
.mjd-vela-topo { animation: mjdDesce 6s var(--mola) infinite; }
.mjd-pavio { stroke: var(--jogo-texto); stroke-width: 2; fill: none; }
.mjd-chama { fill: var(--laranja); transform-box: fill-box; transform-origin: 50% 100%; animation: mjChama 1.2s ease-in-out infinite alternate; }
.mjd-lado { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.mjd-slots { display: flex; gap: 6px; }
.mjd-slots i { width: 26px; height: 34px; display: grid; place-items: end center; border-bottom: 3px solid var(--mj-acento); font: 800 22px/1 var(--serif); font-style: normal; }
.mjd-slots i b { display: block; }
.mjd-slots i:nth-child(1) b { animation: mjdL1 6s infinite; }
.mjd-slots i:nth-child(2) b { animation: mjdL4 6s infinite; }
.mjd-slots i:nth-child(3) b { animation: mjdL2 6s infinite; }
.mjd-slots i:nth-child(4) b { animation: mjdL3 6s infinite; }
.mjd-teclas { display: flex; gap: 5px; }
.mjd-teclas span { width: 26px; height: 28px; border-radius: 6px; display: grid; place-items: center; background: var(--superficie); color: var(--tinta); font-weight: 700; font-size: 13px; }
.mjd-teclas span:nth-child(1) { animation: mjdT1 6s infinite; }
.mjd-teclas .mjd-x { animation: mjdTx 6s infinite; }
.mjd-teclas span:nth-child(3) { animation: mjdT2 6s infinite; }
.mjd-teclas span:nth-child(4) { animation: mjdT3 6s infinite; }
.mjd-cron { font: 800 18px/1 var(--serif); color: var(--coral); animation: pulsa 1s infinite; }

/* quem */
/* ciclo de 7,5 s: cada pista fica pelo menos 3 s à mostra (ritmo de leitura, mín. 2,5 s) */
.mjd-quem { gap: 14px; --mjd-q-ciclo: 7.5s; }
.mjd-q-esq { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.mjd-sil { position: relative; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--btn-fundo); color: var(--btn-texto); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--ouro); }
.mjd-sil span { position: absolute; font: 800 32px/1 var(--serif); animation: mjdSomeQ var(--mjd-q-ciclo) infinite; }
.mjd-sil img { position: absolute; inset: 0; animation: mjdMostra var(--mjd-q-ciclo) infinite; }
.mjd-vale { height: 26px; overflow: hidden; font: 800 22px/26px var(--serif); color: var(--coral); text-align: center; }
.mjd-vale span { display: block; animation: mjdVale var(--mjd-q-ciclo) steps(1) infinite; }
.mjd-pistas { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 140px; flex: none; }
.mjd-pistas li { padding: 6px 9px; border-radius: 8px; background: var(--creme); color: var(--tinta); font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--coral); }
[data-tema="museu"] .mjd-pistas li, [data-tema="museu"] .mjd-opts i, [data-tema="museu"] .mjd-digita { color: #2a2118; }
.mjd-pistas li:nth-child(1) { animation: mjdP1 var(--mjd-q-ciclo) infinite; }
.mjd-pistas li:nth-child(2) { animation: mjdP2 var(--mjd-q-ciclo) infinite; }
.mjd-pistas li:nth-child(3) { animation: mjdP3 var(--mjd-q-ciclo) infinite; }
.mjd-opts { display: grid; gap: 6px; width: 120px; flex: none; }
.mjd-opts i { font-style: normal; padding: 6px 8px; border-radius: 8px; background: var(--creme); color: var(--tinta); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mjd-opts i.ok { animation: mjdOk var(--mjd-q-ciclo) infinite; }
.mjd-digita { width: 130px; padding: 8px 10px; border-radius: 8px; background: #fff; color: var(--tinta); font-size: 12px; font-weight: 700; overflow: hidden; white-space: nowrap; box-shadow: inset 0 0 0 2px var(--linha); }
.mjd-digita span { display: inline-block; overflow: hidden; vertical-align: bottom; animation: mjdDigita var(--mjd-q-ciclo) steps(14) infinite; border-right: 2px solid var(--coral); }
@media (max-width: 420px) { .mjd-pistas { width: 118px; } .mjd-opts, .mjd-digita { width: 96px; } .mjd-quem { gap: 8px; padding: 8px; } }

/* antes */
.mjd-antes { gap: 18px; }
.mjd-trilho { position: absolute; left: 10%; right: 10%; top: 50%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--ouro), var(--coral)); }
.mjd-card { position: relative; z-index: 1; width: 78px; aspect-ratio: 3 / 4.4; border-radius: 10px; overflow: hidden; background: var(--creme); display: flex; flex-direction: column; box-shadow: 0 10px 18px -8px rgba(0, 0, 0, .6); flex: none; }
.mjd-card img, .mjd-card > span { flex: 1; min-height: 0; background: var(--papel); }
.mjd-card b { padding: 4px 2px 6px; text-align: center; font: 800 13px/1 var(--serif); color: var(--coral); }
.mjd-carta .mjd-a { animation: mjdVaiDir 5s var(--mola) infinite; }
.mjd-carta .mjd-b { animation: mjdVaiEsq 5s var(--mola) infinite; }
.mjd-carta .mjd-b b { animation: mjdAno 5s infinite; }
.mjd-ok { position: absolute; z-index: 2; top: 18px; left: 50%; translate: -50% 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--verde); color: #fff; font-weight: 700; animation: mjdCheck 5s infinite; }
.mjd-data { gap: 14px; flex-wrap: wrap; }
.mjd-marco { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--creme); color: #2a2118; font: 800 18px/1 var(--serif); box-shadow: inset 0 0 0 4px var(--creme), inset 0 0 0 6px var(--coral); flex: none; }
.mjd-data .mjd-b b { animation: mjdAno 5s infinite; }
.mjd-bots { display: flex; flex-direction: column; gap: 8px; }
.mjd-bots i { font-style: normal; padding: 7px 12px; border-radius: 999px; background: var(--btn-fundo); color: var(--btn-texto); font-size: 12px; font-weight: 700; }
.mjd-bots i.ok { animation: mjdBotao 5s infinite; }
.mjd-linha { gap: 10px; }
.mjd-slot { position: relative; z-index: 1; width: 22px; height: 70px; border-radius: 8px; border: 2px dashed var(--mj-acento); flex: none; animation: mjdSlot 5s infinite; }
.mjd-linha .mjd-nova { position: absolute; left: 50%; top: 8px; margin-left: -39px; z-index: 2; animation: mjdCai 5s var(--mola) infinite; }
.mjd-linha .mjd-l1 { animation: mjdAbreE 5s var(--mola) infinite; }
.mjd-linha .mjd-l2 { animation: mjdAbreD 5s var(--mola) infinite; }

/* quiz */
.mjd-quiz { flex-direction: column; gap: 10px; }
.mjd-q-topo { display: flex; align-items: center; gap: 14px; }
.mjd-anel { width: 44px; height: 44px; transform: rotate(-90deg); }
.mjd-anel circle { fill: none; stroke: var(--mj-vidro-2); stroke-width: 5; }
.mjd-anel .mjd-anel-v { stroke: var(--verde); stroke-dasharray: 113; stroke-dashoffset: 0; stroke-linecap: round; animation: mjdAnel 6s linear infinite; }
.mjd-cor { color: var(--coral); font-size: 22px; letter-spacing: 2px; }
.mjd-perde { animation: mjdPerde 6s infinite; display: inline-block; }
.mjd-cont { font: 800 22px/1 var(--serif); }
.mjd-cont b { color: var(--mj-acento); }
.mjd-mult { font: 800 24px/1 var(--serif); color: var(--mj-acento); animation: mjdMult 6s infinite; }
.mjd-alts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; width: min(240px, 90%); }
.mjd-alts i { height: 24px; border-radius: 8px; background: var(--creme); box-shadow: inset 0 0 0 2px var(--mj-vidro-2); }
.mjd-alts i.ok { animation: mjdCerta 6s infinite; }
.mjd-sobrevivencia .mjd-alts i.ok { animation: none; }
.mjd-alts i.nao { animation: mjdErra 6s infinite; }
.mjd-mais { position: absolute; right: 14%; top: 26%; font: 800 20px/1 var(--serif); color: var(--verde); opacity: 0; animation: mjdMais 6s infinite; }
.mjd-sobrevivencia .mjd-mais { display: none; }
.mjd-exp { width: min(240px, 90%); height: 26px; border-radius: 8px; background: color-mix(in srgb, var(--verde) 35%, transparent); animation: mjdExp 6s infinite; }

/* ---------- keyframes ---------- */
@keyframes mjChama { from { transform: scale(1, 1) rotate(-2deg); } to { transform: scale(.92, 1.08) rotate(2deg); } }
@keyframes mjChamaOk { 0% { transform: scale(1); } 50% { transform: scale(1.5); } 100% { transform: scale(1.15); } }
@keyframes mjHalo { 50% { transform: scale(1.12); opacity: .26; } }
@keyframes mjFumaca { 0% { stroke-dashoffset: 60; opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-16px); } }
@keyframes mjPinga { 0% { transform: translateY(0) scale(.4); opacity: 0; } 15% { opacity: 1; transform: translateY(0) scale(1); } 90% { opacity: 1; } 100% { transform: translateY(var(--queda, 60px)) scale(1.1, .7); opacity: 0; } }
@keyframes mjPisca { 40% { box-shadow: 0 0 0 3px var(--mj-acento), 0 0 28px -4px var(--mj-acento); } }
@keyframes mjEntra { from { opacity: 0; transform: translateY(14px) scale(.9); } }
@keyframes mjChega { from { opacity: 0; transform: translateX(40px) rotate(4deg); } }
@keyframes mjCai { 0% { transform: translateY(-8px); color: var(--mj-nao); } }
@keyframes mjRisca { from { opacity: 1; transform: translateX(0); } 40% { transform: translateX(6px); } }
@keyframes mjTroca { from { opacity: 0; transform: translateX(24px); } }
@keyframes mjFlutua { from { opacity: 0; transform: translateY(8px) scale(.8); } 20% { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-34px); } }
@keyframes mjBate { from { transform: scale(1.6); opacity: 0; } 30% { transform: scale(1); opacity: 1; } to { opacity: .2; } }

/* demos: o estado sem animação é o estado "resolvido" (letras à mostra etc.) */
@keyframes mjdNitido { 0% { filter: blur(9px) saturate(.3); } 22% { filter: blur(6px) saturate(.5); } 44% { filter: blur(6px) saturate(.5); } 58% { filter: blur(3px) saturate(.75); } 76% { filter: none; } 100% { filter: none; } }
@keyframes mjdL1 { 0%, 14% { opacity: 0; transform: translateY(8px) scale(.5); } 20%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdL2 { 0%, 50% { opacity: 0; transform: translateY(8px) scale(.5); } 56%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdL3 { 0%, 64% { opacity: 0; transform: translateY(8px) scale(.5); } 70%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdL4 { 0%, 76% { opacity: 0; transform: translateY(8px) scale(.5); } 82%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdT1 { 0%, 12% { background: var(--superficie); } 16%, 96% { background: var(--verde); color: #fff; } }
@keyframes mjdTx { 0%, 32% { background: var(--superficie); } 34% { transform: translateX(-3px); } 36% { transform: translateX(3px); } 38%, 96% { background: var(--coral); color: #fff; transform: none; opacity: .6; } }
@keyframes mjdT2 { 0%, 48% { background: var(--superficie); } 52%, 96% { background: var(--verde); color: #fff; } }
@keyframes mjdT3 { 0%, 62% { background: var(--superficie); } 66%, 96% { background: var(--verde); color: #fff; } }
@keyframes mjdDerrete { 0%, 33% { transform: scaleY(1); } 42%, 94% { transform: scaleY(.78); } 100% { transform: scaleY(1); } }
@keyframes mjdDesce { 0%, 33% { transform: translateY(0); } 42%, 94% { transform: translateY(12.3px); } 100% { transform: translateY(0); } }
@keyframes mjdSomeQ { 0%, 70% { opacity: 1; } 76%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes mjdMostra { 0%, 70% { opacity: 0; transform: scale(.6); } 76%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdVale { 0%, 30% { transform: translateY(0); } 30.01%, 52% { transform: translateY(-26px); } 52.01%, 100% { transform: translateY(-52px); } }
@keyframes mjdP1 { 0%, 4% { opacity: 0; transform: translateX(-10px); } 10%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdP2 { 0%, 26% { opacity: 0; transform: translateX(-10px); } 32%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdP3 { 0%, 48% { opacity: 0; transform: translateX(-10px); } 54%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdOk { 0%, 64% { background: var(--creme); color: var(--tinta); transform: none; } 68% { transform: scale(1.08); } 72%, 96% { background: var(--verde); color: #fff; transform: none; } }
@keyframes mjdDigita { 0%, 50% { width: 0; } 70%, 96% { width: 100%; } 100% { width: 0; } }
@keyframes mjdVaiDir { 0%, 30% { transform: none; } 50%, 90% { transform: translateX(96px); } 100% { transform: none; } }
@keyframes mjdVaiEsq { 0%, 30% { transform: none; } 50%, 90% { transform: translateX(-96px); } 100% { transform: none; } }
@keyframes mjdAno { 0%, 54% { color: transparent; text-shadow: 0 0 6px var(--tinta-2); } 60%, 94% { color: var(--coral); text-shadow: none; } 100% { color: transparent; } }
@keyframes mjdCheck { 0%, 60% { opacity: 0; transform: scale(.3); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mjdBotao { 0%, 36% { transform: none; box-shadow: none; } 40% { transform: scale(.94); } 44%, 94% { transform: none; box-shadow: 0 0 0 3px var(--verde); } }
@keyframes mjdSlot { 0%, 20% { border-color: var(--mj-acento); opacity: 1; } 30%, 44% { border-style: solid; background: var(--mj-vidro-2); } 50%, 100% { opacity: 0; } }
@keyframes mjdCai { 0%, 14% { opacity: 0; transform: translateY(-30px); } 20%, 30% { opacity: 1; transform: translateY(-4px); } 50%, 92% { opacity: 1; transform: translateY(52px) scale(.96); } 100% { opacity: 0; transform: translateY(52px); } }
@keyframes mjdAbreE { 0%, 30% { transform: none; } 50%, 92% { transform: translateX(-34px); } 100% { transform: none; } }
@keyframes mjdAbreD { 0%, 30% { transform: none; } 50%, 92% { transform: translateX(34px); } 100% { transform: none; } }
@keyframes mjdAnel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 113; } }
@keyframes mjdPerde { 0%, 54% { opacity: 1; transform: none; } 58% { transform: scale(1.4); } 64%, 100% { opacity: .2; transform: none; filter: grayscale(1); } }
@keyframes mjdMult { 0%, 34% { opacity: .35; transform: none; } 38% { transform: scale(1.5); } 42%, 100% { opacity: 1; transform: none; } }
@keyframes mjdCerta { 0%, 28% { background: var(--creme); } 32%, 90% { background: var(--verde); box-shadow: none; } }
@keyframes mjdErra { 0%, 50% { background: var(--creme); transform: none; } 53% { transform: translateX(-4px); } 56% { transform: translateX(4px); } 59%, 92% { background: var(--coral); transform: none; } }
@keyframes mjdMais { 0%, 32% { opacity: 0; transform: translateY(6px); } 38% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; transform: translateY(-20px); } }
@keyframes mjdExp { 0%, 40% { opacity: 0; transform: scaleX(.3); } 48%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .mj-demo *, .mj-chama, .mj-vela-halo, .mj-fumaca path, .mj-barra.urgente i { animation: none !important; }
  .mjd-linha .mjd-nova { display: none; }
  .mjd-carta .mjd-a { transform: translateX(96px); }
  .mjd-carta .mjd-b { transform: translateX(-96px); }
}

/* estrelas no papel do museu: acesas douradas, apagadas claras */
[data-tema="museu"] .mj-papel .estrelas span { color: #e3d6b8; }
[data-tema="museu"] .mj-papel .estrelas span.on { color: var(--ouro); text-shadow: 0 3px 0 #8a6d38; }

/* =========================================================
   CELULAR (28/09): toque sem "hover grudado", topo compacto e cada jogo cabendo numa tela
   ========================================================= */

/* O iOS aplica :hover no elemento que ficou sob o dedo e o mantém depois que a tela troca:
   a alternativa (ou a tecla "E") da pergunta seguinte aparecia com borda escura / em relevo,
   como se estivesse pré-selecionada. Sem mouse, o hover do style.css é neutralizado aqui. */
.mj .alt { --mj-alt-sombra: inset 0 0 0 2px var(--linha); }
[data-tema="pixel"] .mj .alt { --mj-alt-sombra: inset 0 0 0 3px rgba(91, 45, 76, .2); }
@media (hover: none) {
  .mj .alt:hover:not(:disabled), [data-tema="pixel"] .mj .alt:hover:not(:disabled) { box-shadow: var(--mj-alt-sombra); transform: none; }
  .mj .btn:hover:not(:active) { filter: none; transform: none; }
  .mj .btn-leve:hover:not(:active) { background: transparent; }
  .mj .poder:hover:not(:disabled):not(:active):not(.usando) {
    transform: none; background: color-mix(in srgb, currentColor 10%, transparent);
    box-shadow: inset 0 0 0 1.5px color-mix(in srgb, currentColor 28%, transparent);
  }
}
/* foco visível só para teclado */
.mj :is(.alt, .mj-tecla, .poder, .mj-dica, .btn):focus:not(:focus-visible) { outline: none; }

@media (max-width: 600px) {
  /* topo fixo mais baixo: libera altura para o jogo */
  .mj-topo { gap: 8px; row-gap: 6px; padding: max(8px, env(safe-area-inset-top)) 0 6px; }
  .mj-topo .btn-voltar { width: 36px; height: 36px; font-size: 17px; }
  .mj-tit-nome { font-size: 16.5px; gap: 6px; }
  .mj-tit-nome svg { width: 20px; height: 20px; }
  .mj-tit-sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mj-stats { flex-wrap: nowrap; gap: 5px; }
  .mj-stats > span { flex: 1 1 0; min-width: 0; max-width: 104px; padding: 3px 6px; border-radius: 10px; }
  .mj-stats > span small { font-size: 9.5px; letter-spacing: .05em; white-space: nowrap; }
  .mj-stats b { font-size: 15.5px; }
  .mj .mj-stats span.mj-cor { flex: none; font-size: 15px; }

  /* pergaminhos numa linha só (Quiz, Forca, Quem Sou Eu, Antes ou Depois) */
  .mj .mj-poderes { flex-wrap: nowrap; justify-content: center; gap: 6px; width: 100%; }
  .mj .mj-poderes .mj-perg-conta { flex: none; padding: 4px 7px 4px 4px; gap: 2px; font-size: 15px; }
  .mj .mj-poderes .mj-perg-conta svg { width: 18px; height: 18px; }
  .mj .mj-poderes .poder { flex: 0 1 auto; min-width: 0; min-height: 38px; padding: 3px 8px 3px 3px; gap: 4px; font-size: 11.5px; line-height: 1.1; text-align: left; }
  .mj .mj-poderes .poder b { min-width: 0; }
  .mj .mj-poderes .poder-ico { flex: none; width: 21px; height: 21px; }
  .mj .mj-poderes .poder-ico svg { width: 15px; height: 15px; }

  /* ---- Antes ou Depois: faixa, pergunta, cartas e botões numa tela ---- */
  .mj-antes { gap: 8px; padding-top: 0; }
  .mj-lt-wrap { padding: 2px 0 4px; }
  .mj-lt { padding: 20px 12px 2px; gap: 6px; }
  .mj-lt::before { top: 8px; height: 3px; }
  .mj-lt:empty { min-height: 80px; }
  .mj-lt:empty::after { padding-top: 4px; font-size: 13px; }
  .mj-lt-item { width: 62px; gap: 2px; }
  .mj-lt-item::before { top: -16px; width: 10px; height: 10px; }
  .mj-lt-carta { width: 40px; border-radius: 8px; }
  .mj-lt-carta .mj-ini { font-size: 15px; }
  .mj-lt-nome { font-size: 10.5px; }
  .mj-lt-ano { font-size: 11.5px; }
  .mj-lt-marco { font-size: 9.5px; }
  .mj-lt-slot { padding-top: 0; }
  .mj-slot { width: 30px; min-height: 54px; border-radius: 10px; font-size: 13px; }
  .mj-antes-perg { font-size: 16px; line-height: 1.25; }
  .mj-duelo { margin-top: 6px; gap: 8px; }
  .mj-cartinha { max-width: min(148px, 27svh); }
  .mj-cartinha-rot { top: 6px; left: 6px; font-size: 9.5px; padding: 2px 7px; }
  .mj-cartinha-txt { padding: 6px 6px 2px; }
  .mj-cartinha-txt b { font-size: 13.5px; }
  .mj-cartinha-txt small { font-size: 10px; }
  .mj-cartinha-txt small.mj-cartinha-marco { font-size: 11px; }
  .mj-cartinha-ano { padding: 0 6px 6px; font-size: 18px; }
  .mj-cartinha-img .mj-ini { font-size: 34px; }
  .mj-marco { width: min(128px, 100%); padding: 8px; }
  .mj-marco b { font-size: 30px; }
  .mj-antes-base { gap: 8px; width: 100%; }
  .mj-antes-msg { font-size: 14px; line-height: 1.3; }
  .mj-antes-acoes { width: 100%; gap: 10px; flex-wrap: nowrap; }
  /* botões logo abaixo das cartas; depois a mensagem e, por último, os pergaminhos: o "Continuar"
     nunca cai para baixo da dobra quando a mensagem do resultado ocupa 3 linhas */
  .mj-antes-base .mj-antes-acoes { order: -2; }
  .mj-antes-base .mj-antes-msg { order: -1; }
  .mj-antes-msg:empty { min-height: 0; }
  .mj-antes-acoes .btn-grande { flex: 1 1 0; min-width: 0; max-width: 200px; padding: 13px 10px; font-size: 17px; }

  /* ---- Quem Sou Eu: pistas, "Mais uma pista", pergaminhos e TODAS as opções numa tela ----
     A lista de pistas tem rolagem própria; a altura máxima dela é calculada em quem.js (cabe()). */
  .mj-quem { gap: 8px; padding-top: 0; }
  .mj-q-cartao { padding: 10px 12px 12px; }
  .mj-q-cab { gap: 10px; margin-bottom: 8px; }
  .mj-q-sil { width: 40px; height: 40px; font-size: 22px; box-shadow: 0 0 0 2px var(--ouro); }
  .mj-q-sil.revelada { box-shadow: 0 0 0 2px var(--verde); }
  .mj-q-cab small { font-size: 10.5px; }
  .mj-q-titulo { font-size: 19px; }
  .mj-q-vale { padding: 3px 9px; border-radius: 10px; }
  .mj-q-vale b { font-size: 19px; }
  .mj-q-vale small { font-size: 9px; }
  .mj-q-lista { margin-bottom: 8px; gap: 6px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 10px; }
  /* quando rola, esmaece o topo: indica que há pistas acima */
  .mj-q-lista.rola { -webkit-mask-image: linear-gradient(transparent, #000 16px); mask-image: linear-gradient(transparent, #000 16px); }
  .mj-q-pista { grid-template-columns: 22px minmax(0, 1fr); gap: 8px; padding: 7px 10px; border-radius: 10px; }
  .mj-q-n { width: 22px; height: 22px; font-size: 12px; }
  .mj-q-rot { font-size: 10px; }
  .mj-q-txt { font-size: 14.5px; line-height: 1.3; }
  .mj-q-pista img { margin-top: 4px; max-height: 110px; }
  .mj-q-mais { min-height: 40px; padding: 8px 14px; font-size: 15px; }
  .mj-q-lado { gap: 8px; }
  .mj-q-resp { padding: 10px; }
  .mj-q-opt-tit, .mj-livre label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .mj-q-opts { gap: 6px; }
  .mj-q-opts .alt { min-height: 42px; padding: 5px 10px; gap: 8px; font-size: 15px; line-height: 1.2; border-radius: 12px; }
  .mj-q-opts .alt-l { width: 24px; height: 24px; font-size: 13px; }
  .mj-q-opts.duas { grid-template-columns: 1fr 1fr; }
  .mj-q-opts.duas .alt { padding: 5px 8px; gap: 6px; font-size: 13.5px; }
  .mj-livre-linha { flex-wrap: nowrap; }
  .mj-livre input { flex: 1 1 0; padding: 9px 12px; font-size: 16px; }
  .mj-livre-linha .btn { flex: none; padding: 10px 16px; }
  .mj-livre-msg { margin: 6px 0 4px; font-size: 13.5px; line-height: 1.3; }

  /* ---- Quiz ---- */
  .mj-quiz { gap: 8px; padding-top: 0; }
  .mj-quiz-info { min-height: 0; }
  .mj-quiz-info:has(.mj-quiz-quem:empty) .mj-mult { font-size: 20px; }
  .mj-quiz-perg { padding: 14px; }
  .mj-quiz-perg .perg-carta { margin-bottom: 10px; gap: 10px; }
  .mj-quiz-perg .perg-carta img, .mj-quiz-perg .perg-carta .mj-ini { width: 44px; height: 44px; }
  .mj-quiz-perg .perg-enun { font-size: 17px; margin-bottom: 12px; }
  .mj-quiz-perg .perg-alts { gap: 7px; }
  .mj-quiz-perg .alt { padding: 10px 12px; font-size: 15px; }
}

/* ---- Forca no celular: imagem e vela lado a lado e baixas, dicas numa linha, teclado sempre à vista ---- */
@media (max-width: 760px) {
  .mj-forca { gap: 8px; padding-top: 0; }
  .mj-forca-visual { gap: 12px; align-items: center; }
  .mj-quadro { flex: none; width: auto; max-width: none; height: clamp(92px, 17svh, 150px); }
  .mj-quadro-vazio span { font-size: 40px; }
  .mj-quadro-vazio small { font-size: 9.5px; }
  .mj-vela-box { width: 46px; }
  .mj-vidas { font-size: 11.5px; }
  .mj-vidas b { font-size: 15px; }
  .mj-forca-kicker { margin: 0 0 6px; font-size: 11.5px; }
  /* no celular a coluna é a largura da tela: dá para medir em vw (não depende de container query) */
  .mj-palavra { --t: clamp(16px, calc((100vw - 40px - 4px * var(--max)) / (var(--max) + .4)), 30px); row-gap: 8px; margin-bottom: 8px; }
  .mj-forca-ctrl { gap: 8px; }
  .mj-dicas { flex-wrap: nowrap; gap: 6px; }
  .mj-dica { flex: 1 1 0; min-width: 0; justify-content: center; gap: 0; padding: 5px 8px; min-height: 36px; font-size: 13px; white-space: nowrap; }
  .mj-dica .mj-dica-n { display: none; }
  .mj-dica .mj-dica-o::first-letter { text-transform: uppercase; }
  .mj-dica .mj-dica-o { display: inline-block; }
  .mj-dica small { margin-left: 6px; }
  .mj-chip { padding: 7px 10px; font-size: 14px; }
  .mj-teclado { gap: 5px; position: sticky; bottom: 0; z-index: 3; padding: 6px 0 max(6px, env(safe-area-inset-bottom)); background: var(--jogo-fundo); }
  .mj-tec-linha { gap: 5px; }
  .mj-tecla { height: 42px; font-size: 16px; border-radius: 8px; }
}
