@font-face { font-family: 'Fredoka'; src: url('../assets/fonts/fredoka-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url('../assets/fonts/fredoka-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/nunito-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/nunito-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/nunito-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../assets/fonts/nunito-latin-800-normal.woff2') format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #3a2a22;
  --ink-soft: #6b5446;
  --paper: #fff8ec;
  --paper-2: #f6ead6;
  --line: #ead9bf;
  --coral: #ff6b57;
  --azul: #2d8fd5;
  --amarelo: #f2b21b;
  --verde: #35a86b;
  --danger: #e8483b;
  --teal: #1f9e97;
  --shadow: 0 10px 30px rgba(74, 45, 25, 0.18), 0 2px 6px rgba(74, 45, 25, 0.12);
  --radius: 18px;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: #bfe3f2;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
button { font-family: inherit; color: inherit; }
[hidden] { display: none !important; }

#sky {
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 12%, rgba(255, 255, 255, 0.7), transparent 70%),
    radial-gradient(ellipse 50% 35% at 85% 25%, rgba(255, 255, 255, 0.55), transparent 70%),
    linear-gradient(180deg, #ffd9b5 0%, #fde6c8 22%, #cfe9f3 58%, #a9d8ee 100%);
}
#cena { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; outline: none; }

/* ---------------------------------------------------------------- HUD */
#hud { position: fixed; inset: 0; pointer-events: none; }
#hud > * { pointer-events: auto; }
.topbar {
  position: absolute; top: 10px; left: 12px; right: 12px;
  display: flex; align-items: center; gap: 10px; flex-wrap: nowrap;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.chip {
  background: rgba(255, 248, 236, 0.94);
  border: 2px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 6px 14px;
  display: flex; align-items: center; gap: 8px;
  height: 46px;
  backdrop-filter: blur(6px);
}
.chip.map { font-family: var(--display); font-weight: 700; font-size: 17px; }
.chip.map small { font-family: var(--body); font-weight: 700; color: var(--ink-soft); font-size: 12px; }
.clock { gap: 10px; }
.clock svg { width: 30px; height: 30px; flex: none; }
.clock b { font-family: var(--display); font-size: 17px; }
.clock span { font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.score b { font-family: var(--display); font-size: 22px; min-width: 2ch; text-align: right; }
.score span { font-size: 12px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.score svg { width: 24px; height: 24px; }
.spacer { flex: 1; }
.iconbtn {
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--line); background: rgba(255, 248, 236, 0.94);
  box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center;
  transition: transform .12s ease, background .12s;
}
.iconbtn:hover { transform: translateY(-1px); background: #fff; }
.iconbtn:active { transform: scale(.94); }
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn.on { background: #ffe9c7; border-color: #f2c47a; }
.iconbtn .lbl { font-family: var(--display); font-weight: 700; font-size: 15px; }

#alertas { position: absolute; top: 66px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; pointer-events: none; }
.alerta {
  background: #fff1ee; border: 2px solid #f3b3a9; color: #8e2b20; border-radius: 999px;
  padding: 5px 14px 5px 8px; font-weight: 800; font-size: 13px; display: flex; gap: 8px; align-items: center;
  box-shadow: var(--shadow); animation: pop .3s ease;
}
.alerta i { width: 22px; height: 22px; border-radius: 50%; background: var(--danger); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 900; }
.alerta .bar { width: 70px; height: 7px; border-radius: 9px; background: #f8d4ce; overflow: hidden; }
.alerta .bar > div { height: 100%; background: var(--danger); width: 0; }

.pausado {
  position: absolute; top: 66px; left: 50%; transform: translateX(-50%);
  background: rgba(58, 42, 34, 0.86); color: #fff8ec; border-radius: 999px; padding: 6px 16px;
  font-weight: 800; font-size: 13px; pointer-events: none; letter-spacing: .02em;
}

/* anfitriã */
.host {
  position: absolute; left: 14px; bottom: 104px;
  width: 250px; display: flex; flex-direction: column; align-items: flex-start;
  pointer-events: none;
}
.host .bubble {
  background: var(--paper); border: 2px solid var(--line); border-radius: 18px 18px 18px 6px;
  box-shadow: var(--shadow); padding: 10px 13px 11px; font-size: 14.5px; line-height: 1.35; font-weight: 600;
  margin-bottom: 8px; margin-left: 58px; max-width: 250px; position: relative;
  transition: opacity .25s, transform .25s; pointer-events: auto;
}
.host .bubble b { display: block; font-family: var(--display); font-size: 13px; color: var(--teal); margin-bottom: 2px; letter-spacing: .02em; }
.host .bubble.quiet { opacity: 0; transform: translateY(6px); pointer-events: none; }
.host .bubble.alerta-fala { border-color: #f3b3a9; background: #fff4f1; }
.host .bubble .skip { margin-top: 8px; display: inline-block; font-size: 12px; font-weight: 800; color: var(--ink-soft); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.host .face {
  width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #fff4dc, #f6d9a8 70%, #efc88c);
  border: 3px solid #fff; box-shadow: var(--shadow); overflow: hidden; position: relative;
  pointer-events: auto;
}
.host .face img { position: absolute; left: 50%; top: 4px; width: 128%; transform: translateX(-50%); transition: opacity .2s; }
.host .tag {
  position: absolute; left: 12px; bottom: -8px; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 11px;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .04em; pointer-events: none;
}
.host .wrapface { position: relative; }

/* doca de ferramentas */
#dock {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; padding: 8px; border-radius: 26px;
  background: rgba(255, 248, 236, 0.95); border: 2px solid var(--line); box-shadow: var(--shadow);
}
.tool {
  position: relative; width: 74px; height: 70px; border-radius: 18px; border: 2px solid transparent;
  background: var(--paper-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transition: transform .12s, background .12s, border-color .12s;
}
.tool svg { width: 30px; height: 30px; }
.tool .nome { font-size: 11.5px; font-weight: 800; color: var(--ink-soft); }
.tool .qtd {
  position: absolute; top: -8px; right: -6px; min-width: 26px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: var(--ink); color: #fff; font-family: var(--display); font-weight: 700; font-size: 14px; display: grid; place-items: center;
  border: 2px solid #fff;
}
.tool .qtd.zero { background: #b9a898; }
.tool .qtd.bump { animation: bump .45s ease; }
.tool:hover { transform: translateY(-2px); }
.tool.ativo { background: #fff; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 158, 151, .2); }
.tool.info { cursor: default; opacity: .95; }
.tool.info:hover { transform: none; }
.tool .tecla { position: absolute; bottom: 3px; left: 7px; font-size: 10px; font-weight: 800; color: #b59e86; }
.tool.vazio { opacity: .55; }

#toast {
  position: absolute; bottom: 104px; left: 50%; transform: translateX(-50%);
  background: rgba(58, 42, 34, .92); color: #fff8ec; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  opacity: 0; transition: opacity .2s; pointer-events: none; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis;
}
#toast.on { opacity: 1; }

#floaters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.floater {
  position: absolute; left: 0; top: 0; font-family: var(--display); font-weight: 700; font-size: 20px; color: #fff; will-change: transform, opacity;
  -webkit-text-stroke: 1px rgba(58, 42, 34, .35); text-shadow: 0 2px 0 rgba(58, 42, 34, .35);
  transform: translate(-50%, -50%); white-space: nowrap;
}

/* ---------------------------------------------------------------- telas */
.screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; }
#tela-titulo { background: #cfe9f3 center / cover no-repeat; }
#tela-titulo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 244, 226, .92) 0%, rgba(255, 244, 226, .78) 34%, rgba(255, 244, 226, 0) 62%); }
.titulo-box { position: relative; z-index: 1; width: min(1100px, 94vw); display: flex; align-items: center; gap: 30px; }
.titulo-texto { flex: 1; max-width: 520px; }
.kicker { font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
h1.logo { font-family: var(--display); font-weight: 700; font-size: clamp(42px, 6.4vw, 78px); line-height: .95; margin: 8px 0 14px; color: var(--ink); letter-spacing: -.01em; }
h1.logo span { display: block; color: var(--coral); }
.tagline { font-size: 18px; line-height: 1.45; font-weight: 600; color: var(--ink-soft); margin: 0 0 22px; max-width: 440px; }
.botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 16px; padding: 14px 24px; font-family: var(--display); font-weight: 700; font-size: 19px; cursor: pointer;
  background: var(--coral); color: #fff; box-shadow: 0 5px 0 #d4493a, var(--shadow); transition: transform .1s, box-shadow .1s;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #d4493a; }
.btn.sec { background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 #e0cdb0, var(--shadow); border: 2px solid var(--line); }
.btn.sec:active { box-shadow: 0 2px 0 #e0cdb0; }
.btn.teal { background: var(--teal); box-shadow: 0 5px 0 #177873, var(--shadow); }
.btn.small { font-size: 15px; padding: 10px 16px; min-height: 44px; border-radius: 13px; }
.titulo-host { width: min(330px, 30vw); position: fixed; right: 7vw; bottom: 0; z-index: 1; }
/* A base da ilustração some por máscara, sem faixa clara sobre a capa. */
.titulo-host img { width: 100%; display: block; filter: drop-shadow(0 16px 24px rgba(74, 45, 25, .25)); -webkit-mask-image: linear-gradient(0deg, transparent 0, #000 24%); mask-image: linear-gradient(0deg, transparent 0, #000 24%); }
.titulo-host .fala {
  position: absolute; top: 4%; right: 82%; width: 230px; background: var(--paper); border: 2px solid var(--line); border-radius: 18px 18px 6px 18px;
  padding: 12px 14px; font-weight: 700; font-size: 15px; line-height: 1.35; box-shadow: var(--shadow);
}
.titulo-host .fala b { color: var(--teal); font-family: var(--display); display: block; font-size: 13px; }
.rodape-titulo { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 12.5px; font-weight: 700; color: rgba(58, 42, 34, .8); z-index: 2; padding: 0 14px; pointer-events: none; }
.rodape-titulo > * { pointer-events: auto; }
.rodape-titulo { text-shadow: 0 0 6px rgba(255, 244, 226, .95), 0 0 2px rgba(255, 244, 226, 1); }
.rodape-titulo button { background: none; border: 0; color: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; font-size: inherit; }
.som-titulo { position: absolute; top: 14px; right: 14px; z-index: 2; }

#tela-mapas { background: linear-gradient(180deg, rgba(255, 236, 214, .96), rgba(214, 238, 246, .96)); overflow-y: auto; align-items: flex-start; }
.mapas-box { width: min(1080px, 94vw); padding: 34px 0 40px; }
.mapas-box h2 { font-family: var(--display); font-size: 36px; margin: 0 0 4px; }
.mapas-box .sub { color: var(--ink-soft); font-weight: 700; margin: 0 0 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--paper); border: 2px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.card svg.mini { width: 100%; height: auto; border-radius: 14px; display: block; background: #7ec8d8; }
.card h3 { font-family: var(--display); font-size: 23px; margin: 2px 0 0; }
.card p { margin: 0; color: var(--ink-soft); font-weight: 600; font-size: 14px; line-height: 1.35; }
.card .rec { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; background: var(--paper-2); border-radius: 12px; padding: 8px 12px; }
.card .rec b { font-family: var(--display); font-size: 20px; color: var(--coral); }
.seedrow { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; flex-wrap: wrap; font-weight: 700; }
.seedrow input { font-family: var(--display); font-size: 18px; width: 120px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.voltar { margin-top: 18px; }

/* ---------------------------------------------------------------- modais */
.modal { position: fixed; inset: 0; background: rgba(58, 42, 34, .38); display: flex; align-items: center; justify-content: center; padding: 14px; z-index: 20; backdrop-filter: blur(2px); }
.painel {
  background: var(--paper); border: 2px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
  width: min(560px, 100%); max-height: calc(100vh - 28px); overflow-y: auto; padding: 24px 24px 22px; position: relative; animation: pop .28s ease;
}
.painel h2 { font-family: var(--display); font-size: 30px; margin: 0 0 6px; line-height: 1.05; }
.painel p { margin: 0 0 12px; font-weight: 600; line-height: 1.45; color: var(--ink-soft); }
.painel .acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.escolhas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.escolha {
  border: 2px solid var(--line); background: #fff; border-radius: 20px; padding: 16px 14px; cursor: pointer; text-align: left;
  display: flex; flex-direction: column; gap: 6px; transition: transform .12s, border-color .12s; min-height: 150px;
}
.escolha:hover, .escolha:focus-visible { transform: translateY(-3px); border-color: var(--teal); outline: none; }
.escolha svg { width: 46px; height: 46px; }
.escolha b { font-family: var(--display); font-size: 20px; }
.escolha span { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); line-height: 1.35; }
.escolha kbd { align-self: flex-start; font-size: 11px; font-weight: 800; background: var(--paper-2); border-radius: 6px; padding: 1px 6px; color: var(--ink-soft); }
.painel .retrato { float: right; width: 120px; margin: -8px -6px 0 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; clear: both; }
.stat { background: var(--paper-2); border-radius: 14px; padding: 10px; text-align: center; }
.stat b { display: block; font-family: var(--display); font-size: 26px; }
.stat span { font-size: 12px; font-weight: 800; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.diag { background: #fff3ef; border: 2px solid #f6c7bd; border-radius: 16px; padding: 12px 14px; margin: 8px 0; }
.diag h3 { margin: 0 0 4px; font-family: var(--display); font-size: 19px; color: #a3372a; }
.diag p { margin: 0 0 6px; color: #6d3a30; }
.diag .dica { font-weight: 800; color: #1c6f6a; margin: 0; }
.recorde { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--coral); }
.creditos { font-size: 14px; }
.creditos li { margin-bottom: 6px; line-height: 1.4; font-weight: 600; color: var(--ink-soft); }
.volume { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-weight: 800; color: var(--ink-soft); font-size: 14px; }
.volume input { flex: 1; accent-color: var(--teal); height: 28px; }
.teclas { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); margin: 6px 0 0; }
.teclas kbd { font-family: var(--body); font-weight: 800; background: var(--paper-2); border: 1px solid var(--line); border-radius: 7px; padding: 1px 7px; color: var(--ink); white-space: nowrap; }

@keyframes pop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.alerta, .painel { will-change: transform; }

/* ---------------------------------------------------------------- tutorial e guia (2.2.0) */
/* controle do aparelho em uso em cada pedido do tutorial */
.host .ctrl-linha { display: flex; flex-wrap: wrap; gap: 5px 6px; margin-top: 7px; }
.host .ctrl { display: inline-flex; align-items: center; gap: 5px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px 2px 5px; font-size: 12.5px; font-weight: 800; color: var(--ink); line-height: 1.2; }
.host .ctrl svg { width: 22px; height: 22px; flex: none; color: #177873; }
.host .ctrl kbd { font-family: var(--body); font-weight: 800; font-size: 11.5px; line-height: 17px; background: #fff; border: 1px solid #d9c4a3; border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; color: var(--ink); white-space: nowrap; }
.host .ctrl kbd + kbd { margin-left: -2px; }
/* botão ou ferramenta que o pedido atual pede para tocar */
.tut-alvo { position: relative; outline: 3px solid var(--coral); outline-offset: 3px; animation: tutAlvo 1.1s ease-in-out infinite; }
@keyframes tutAlvo { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 107, 87, .55); } 50% { box-shadow: 0 0 0 10px rgba(255, 107, 87, 0); } }
/* ajuda no menu de pausa, separada das ações da partida */
.painel .acoes.ajuda { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--line); }
/* guia "Como jogar" (kit comum da coleção em css/como-jogar.css) nas cores e fontes do jogo */
.cj-fundo {
  --cj-painel: #fff8ec; --cj-painel-2: #fffdf8; --cj-texto: #3a2a22; --cj-suave: #6b5446;
  --cj-destaque: #177873; --cj-destaque-texto: #fff; --cj-borda: #ead9bf; --cj-raio: 22px;
  --cj-fonte: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: rgba(58, 42, 34, .42); backdrop-filter: blur(2px);
}
.cj-fundo .cj-painel { border-width: 2px; box-shadow: var(--shadow); }
.cj-fundo .cj-topo h2, .cj-fundo .cj-titulo-cartao { font-family: var(--display); font-weight: 700; }
.cj-fundo .cj-topo h2 { font-size: 1.5rem; }
.cj-fundo .cj-titulo-cartao { font-size: 1.25rem; }
.cj-fundo .cj-texto { font-weight: 600; }
.cj-fundo .cj-controles { background: var(--paper-2); }
.cj-fundo .cj-acao { font-weight: 600; }
.cj-fundo .cj-prox { font-family: var(--display); }
.cj-fundo .cj-icones { min-width: 64px; }
.cj-rosto {
  width: 56px; height: 56px; flex: none; border-radius: 50%; overflow: hidden; position: relative;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(74, 45, 25, .22);
  background: radial-gradient(circle at 50% 38%, #fff4dc, #f6d9a8 70%, #efc88c);
}
.cj-rosto img { position: absolute; left: 50%; top: 2px; width: 128%; transform: translateX(-50%); }
/* deitado e baixo: volta aos tamanhos compactos do kit */
@media (max-height: 520px) and (orientation: landscape) {
  .cj-fundo .cj-topo h2 { font-size: 1.05rem; }
  .cj-fundo .cj-titulo-cartao { font-size: 1rem; }
  .cj-rosto { width: 40px; height: 40px; border-width: 2px; }
  .cj-fundo .cj-lista li { min-height: 30px; }
  .cj-fundo .cj-gesto svg { width: 26px; height: 26px; }
  .cj-fundo .cj-cartao { row-gap: 4px; }
  .cj-fundo .cj-controles { padding: 4px 8px; }
  .cj-fundo .cj-rotulo { margin-bottom: 2px; }
}

/* ---------------------------------------------------------------- telas estreitas */
@media (max-width: 760px), (max-aspect-ratio: 10/11) {
  .topbar { top: 8px; left: 8px; right: 8px; gap: 5px; }
  .chip { height: 42px; padding: 4px 9px; gap: 6px; }
  .chip.map { display: none; }
  .clock svg { width: 22px; height: 22px; }
  .clock b { font-size: 14px; white-space: nowrap; }
  .clock span { display: none; }
  .score b { font-size: 18px; }
  .score svg { width: 20px; height: 20px; }
  .score span { display: none; }
  .iconbtn { width: 42px; height: 42px; flex: none; }
  .iconbtn svg { width: 19px; height: 19px; }
  #alertas { top: auto; bottom: 126px; left: 8px; right: 8px; transform: none; flex-direction: column-reverse; }
  .alerta { font-size: 12px; white-space: nowrap; padding: 4px 10px 4px 6px; }
  .alerta .bar { width: 48px; }
  .pausado { top: 116px; }
  .host { left: 8px; right: 8px; top: 56px; bottom: auto; width: auto; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 8px; }
  .host .bubble { margin: 0; flex: 1; max-width: none; font-size: 13px; padding: 7px 10px; border-radius: 16px 16px 16px 6px; }
  .host .bubble b { font-size: 11px; }
  .host .face { width: 54px; height: 54px; flex: none; }
  .host .tag { display: none; }
  #dock { bottom: 8px; gap: 5px; padding: 6px; border-radius: 22px; width: calc(100vw - 16px); justify-content: space-between; }
  .tool { width: auto; flex: 1; height: 62px; border-radius: 15px; }
  .tool svg { width: 26px; height: 26px; }
  .tool .nome { font-size: 10.5px; }
  .tool .tecla { display: none; }
  #toast { bottom: 84px; font-size: 13px; }
  .titulo-box { flex-direction: column-reverse; gap: 6px; align-items: flex-start; padding-top: 10px; }
  #tela-titulo::before { background: linear-gradient(0deg, rgba(255, 244, 226, .96) 0%, rgba(255, 244, 226, .9) 52%, rgba(255, 244, 226, .1) 80%); }
  #tela-titulo { align-items: flex-end; background-position: 30% top; background-size: auto 56%; background-color: #fbe9d2; }
  .titulo-host { width: 128px; right: 6px; bottom: auto; top: 11vh; }
  .kicker { font-size: 11px; }
  .titulo-host::after { display: none; }
  .titulo-host .fala { width: 180px; right: 88%; top: 2%; font-size: 13px; }
  .tagline { font-size: 16px; margin-bottom: 16px; }
  .titulo-texto { padding-bottom: 54px; }
  .cards { grid-template-columns: 1fr; }
  .mapas-box h2 { font-size: 28px; }
  .escolhas { grid-template-columns: 1fr; }
  .escolha { min-height: 0; }
  .painel { padding: 20px 16px 18px; }
  .painel h2 { font-size: 25px; }
  .painel .retrato { width: 86px; }
  .stat b { font-size: 21px; }
}
@media (max-width: 760px), (max-aspect-ratio: 10/11) {
  .host .ctrl-linha { margin-top: 5px; gap: 4px; }
  .host .ctrl { font-size: 11.5px; padding: 1px 8px 1px 4px; }
  .host .ctrl svg { width: 18px; height: 18px; }
  .host .bubble .skip { margin-top: 5px; }
}
/* 2.2.0 (correção): o clipe do guia (4:3) fica do tamanho dele, com moldura, sobre o painel creme — sem as
   faixas pretas laterais do kit em tela deitada; escala suave (a cena é 3D, não pixel art) */
.cj-fundo .cj-clipe { background: transparent; border: 0; border-radius: 0; }
.cj-fundo .cj-clipe video { width: auto; max-width: 100%; border: 2px solid var(--cj-borda); border-radius: 12px; background: var(--paper-2); image-rendering: auto; }
/* tutorial jogável em tela deitada e baixa (ex.: 844×390, 1024×600): a anfitriã fica pequena no canto de baixo
   e o pedido ocupa a coluna da esquerda, inteiro na tela e acima da doca (antes subia para fora do topo) */
@media (min-width: 761px) and (max-height: 640px) {
  body.em-tutorial .host { top: 58px; bottom: 8px; left: 8px; width: min(248px, calc(50vw - 165px)); justify-content: space-between; }
  body.em-tutorial .host .bubble {
    margin: 0; width: 100%; max-width: none; font-size: 12.5px; line-height: 1.3; padding: 7px 10px 8px;
    border-radius: 16px 16px 16px 6px; max-height: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain;
  }
  body.em-tutorial .host .bubble b { font-size: 11px; }
  body.em-tutorial .host .face { width: 52px; height: 52px; border-width: 2px; }
  body.em-tutorial .host .tag { display: none; }
  body.em-tutorial .host .ctrl-linha { margin-top: 5px; gap: 4px; }
  body.em-tutorial .host .ctrl { font-size: 11.5px; padding: 1px 8px 1px 4px; }
  body.em-tutorial .host .ctrl svg { width: 18px; height: 18px; }
  body.em-tutorial .host .bubble .skip { margin-top: 5px; }
}
/* menu de pausa em tela deitada e baixa: teclas à esquerda; volume, ações e ajuda à direita, sem rolar */
@media (max-height: 520px) and (orientation: landscape) {
  .painel.pausa {
    width: min(820px, 100%); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    column-gap: 22px; align-items: start; padding: 14px 20px 16px;
  }
  .painel.pausa > h2, .painel.pausa > p { grid-column: 1 / -1; }
  .painel.pausa > h2 { font-size: 24px; margin-bottom: 2px; }
  .painel.pausa > p { margin-bottom: 6px; }
  .painel.pausa > .teclas { grid-column: 1; grid-row: 3 / span 3; margin: 0; font-size: 13px; gap: 3px 10px; }
  .painel.pausa > .volume { grid-column: 2; grid-row: 3; margin-top: 0; }
  .painel.pausa > .acoes { grid-column: 2; margin-top: 10px; gap: 8px; }
  .painel.pausa > .acoes.ajuda { padding-top: 10px; }
  .painel.pausa > .acoes .btn { font-size: 15px; padding: 10px 14px; min-height: 44px; border-radius: 13px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
