/* Atenção (scripts/features/attention-training.js): visual como o dos Fonemas (fundo azul bem claro, título forte,
   passos numerados em quadros brancos), na cor do tipo de atenção escolhido (--at / --at-soft). */

/* Sem barra lateral: o quadro do treino ocupa a largura toda. */
body[data-active-module="attentionTraining"] #view-treino.is-active > .session-panel,
body[data-active-module="visualPerception"] #view-treino.is-active > .session-panel,
body[data-active-module="memoryTraining"] #view-treino.is-active > .session-panel { display: none !important; }
body[data-active-module="attentionTraining"] #view-treino.is-active,
body[data-active-module="visualPerception"] #view-treino.is-active,
body[data-active-module="memoryTraining"] #view-treino.is-active { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) !important; }
.trainer:has(.at-root) { display: block; min-width: 0; overflow: auto; overscroll-behavior: contain; padding: clamp(10px, 2vw, 22px); background: #eef4fb; }
body[data-app-view="treino"] #view-treino.is-active > .trainer:has(.at-root[data-screen="home"]) { overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.trainer:has(.at-root:not([data-screen="home"])) { overflow: hidden; }
.trainer:has(.at-root:not([data-screen="home"])) > .choices.at-host { height: 100%; }
.choices.at-host, body[data-design] .choices.at-host, body.training-fullscreen .choices.at-host { display: block; width: 100%; max-width: none; min-width: 0; margin: 0; }
body.training-fullscreen .trainer:has(.at-root) { position: fixed; inset: 0; z-index: 1; padding: 66px 14px 12px; }
body.training-fullscreen.controls-hidden .trainer:has(.at-root) { padding-top: 12px; }

.at-root { --ink: #24343d; --muted: #5f6f78; width: 100%; min-width: 0; color: var(--ink); font-family: "Nunito", system-ui, sans-serif; }
.at-root svg { display: block; }

/* ---------- Tela inicial ---------- */
.at-root[data-screen="home"] { display: grid; gap: 16px; max-width: 1080px; margin: 0 auto; padding-bottom: 14px; }
.at-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 6px 4px 2px; }
.at-header h2 { margin: 0 0 8px; color: #5b3cc4; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 900; line-height: 1.1; }
.at-header p { margin: 0; max-width: 620px; color: var(--muted); font-size: clamp(0.98rem, 1.6vw, 1.12rem); line-height: 1.5; }
.at-header p b { color: var(--ink); }
.at-fan { display: flex; align-items: flex-end; padding-right: 6px; }
.at-fan span { width: clamp(64px, 8vw, 92px); aspect-ratio: 1; padding: 12px; border-radius: 22px; background: var(--at-soft); box-shadow: 0 6px 18px rgba(30, 60, 90, 0.14); }
.at-fan span + span { margin-left: -12px; }
.at-fan span:nth-child(1) { rotate: -6deg; }
.at-fan span:nth-child(2) { translate: 0 -8px; z-index: 1; }
.at-fan span:nth-child(3) { rotate: 6deg; }

.at-step { display: grid; gap: 14px; padding: clamp(16px, 2.6vw, 26px); border-radius: 24px; background: #fff; box-shadow: 0 2px 10px rgba(30, 60, 90, 0.06); }
.at-step h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0; font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 800; }
.at-step h3 small { color: #8a99a2; font-size: 0.95rem; font-weight: 600; }
.at-step-number { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border-radius: 50%; background: #5b3cc4; color: #fff; font-weight: 900; }

.at-types { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.at-type {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 12px 10px 14px; border: 3px solid transparent; border-radius: 20px;
  background: var(--at-soft); color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease;
}
.at-type-icon { width: clamp(54px, 7vw, 76px); aspect-ratio: 1; padding: 8px; border-radius: 18px; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08); }
.at-type strong { font-size: clamp(0.98rem, 1.5vw, 1.15rem); font-weight: 900; color: var(--at); filter: brightness(0.82); }
.at-type small { color: var(--muted); font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.at-type.is-active { border-color: var(--at); box-shadow: 0 0 0 4px color-mix(in srgb, var(--at) 25%, transparent); transform: translateY(-3px); }
.at-soon-tag { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(36, 52, 61, 0.78); color: #fff; font-size: 0.7rem; font-weight: 900; }

.at-levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.at-level {
  display: grid; justify-items: center; gap: 2px; padding: 10px 8px 12px; border: 3px solid #e3eaf0; border-radius: 18px; background: #fff;
  color: var(--ink); font: inherit; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease;
}
.at-level strong { font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 900; }
.at-level small { color: var(--muted); font-size: 0.82rem; font-weight: 700; }
.at-stars { color: #f5b800; font-size: 1.35rem; letter-spacing: 2px; }
.at-stars i, .at-result-stars i { font-style: normal; color: #dfe6ec; }
.at-level.is-active { border-color: var(--at); background: var(--at-soft); transform: translateY(-2px); }

.at-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.at-game {
  position: relative; display: grid; align-content: start; gap: 6px; padding: 8px 8px 12px; border: 2px solid #dbe5ec; border-radius: 20px;
  background: #fff; color: var(--ink); font: inherit; text-align: center; cursor: pointer; transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.at-game:hover, .at-game:focus-visible { border-color: var(--at); box-shadow: 0 6px 16px rgba(30, 60, 90, 0.12); }
.at-game:active { transform: scale(0.97); }
.at-game-cover { position: relative; display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; }
.at-game-cover svg { width: 100%; height: 100%; }
.at-game-n { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--at); color: #fff; font-weight: 900; font-size: 0.95rem; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); }
.at-game strong { font-size: 0.98rem; font-weight: 900; line-height: 1.2; }
.at-game small { color: var(--muted); font-size: 0.78rem; line-height: 1.3; }
.at-game em { font-style: normal; font-weight: 900; color: #17803f; font-size: 0.82rem; }
.at-game.is-done { border-color: #9fdcb9; background: #f3fbf6; }
.at-coming { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: var(--at-soft); }
.at-coming span { width: 70px; flex: none; }
.at-coming p { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--muted); }
.at-coming b { color: var(--ink); }

/* ---------- Telas do jogo ---------- */
.at-root:not([data-screen="home"]) {
  position: relative; height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; gap: 10px;
  padding: clamp(10px, 1.6vw, 16px); border-radius: 24px; background: linear-gradient(180deg, var(--at-soft), #ffffff 70%); box-sizing: border-box; overflow: hidden;
}
.at-root[data-screen="intro"], .at-root[data-screen="result"] { grid-template-rows: auto minmax(0, 1fr); }
.at-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.at-back, .at-again, .at-go, .at-demo { min-height: 48px; padding: 0 18px; border: 0; border-radius: 14px; font: inherit; font-weight: 900; font-size: 1.02rem; cursor: pointer; }
.at-back { background: #fff; color: var(--ink); box-shadow: 0 3px 0 #d6e0e7; }
.at-bar-title { font-size: clamp(1.05rem, 1.9vw, 1.35rem); font-weight: 900; }
.at-bar-level { margin-left: auto; padding: 6px 14px; border-radius: 999px; background: var(--at); color: #fff; font-weight: 900; }
.at-go { background: #22a55b; color: #fff; box-shadow: 0 4px 0 #17803f; }
.at-demo { background: #fff; color: var(--at); box-shadow: 0 3px 0 #d6e0e7; border: 3px solid var(--at); }
.at-again { background: #fff; color: var(--ink); box-shadow: 0 3px 0 #d6e0e7; }
.at-say { width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: #2f6fd6; color: #fff; font-size: 1.2rem; cursor: pointer; }
.at-task { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0; min-height: 46px; font-size: clamp(1.25rem, 2.6vw, 1.85rem); font-weight: 900; text-align: center; }
.at-demo-tag { padding: 4px 12px; border-radius: 999px; background: #ffd34d; color: #6b4e00; font-size: 0.9rem; }
.at-stage { position: relative; min-height: 0; display: grid; gap: 12px; align-content: center; justify-items: center; }
.at-progress { height: 10px; border-radius: 999px; background: #e3eaf0; overflow: hidden; }
.at-progress i { display: block; height: 100%; border-radius: inherit; background: var(--at); transition: width 0.3s ease; }

/* Respostas: certo, errado e a dica piscando. */
.at-root .is-right { border-color: #2fb36f !important; box-shadow: 0 0 0 6px rgba(47, 179, 111, 0.35) !important; transform: scale(1.06); }
.at-root .is-wrong { animation: at-shake 0.45s ease; border-color: #e15d5d !important; }
.at-root .is-hint { animation: at-glow 1.1s ease-in-out infinite; border-color: #f5b800 !important; }
@keyframes at-shake { 20%, 60% { translate: -9px 0; } 40%, 80% { translate: 9px 0; } }
@keyframes at-glow { 0%, 100% { box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.35); } 50% { box-shadow: 0 0 0 12px rgba(245, 184, 0, 0.55), 0 0 26px rgba(245, 184, 0, 0.7); } }

/* Mãozinha da demonstração */
.at-hand { position: absolute; z-index: 5; left: 50%; top: 110%; font-size: 3.2rem; line-height: 1; translate: -30% -10%; transition: left 0.6s ease, top 0.6s ease, scale 0.15s ease; pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)); }
.at-hand.is-tap { scale: 0.8; }

/* Apresentação */
.at-intro { min-height: 0; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(16px, 3vw, 40px); align-items: center; max-width: 960px; width: 100%; margin: 0 auto; }
.at-intro-cover { width: min(100%, 340px, 52vh); justify-self: center; aspect-ratio: 1; border-radius: 28px; overflow: hidden; box-shadow: 0 10px 26px rgba(30, 60, 90, 0.18); }
.at-intro-cover svg { width: 100%; height: 100%; }
.at-intro-text { display: grid; gap: 16px; }
.at-intro-text h3 { margin: 0; color: var(--at); filter: brightness(0.8); font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; }
.at-intro-text p { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 800; line-height: 1.4; }
.at-intro-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.at-intro-buttons button { min-height: 58px; font-size: 1.2rem; padding: 0 24px; }

/* Fileira (a sequência) */
.at-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.at-slot { width: clamp(44px, 6vw, 64px); aspect-ratio: 1; display: grid; place-items: center; padding: 5px; border: 3px dashed #c9d4dc; border-radius: 14px; background: #fff; font-size: 1.5rem; font-weight: 900; color: #9aa8b1; box-sizing: border-box; }
.at-row.is-small .at-slot { width: clamp(36px, 4.6vw, 52px); }
.at-slot img, .at-slot svg { width: 100%; height: 100%; object-fit: contain; }
.at-slot.is-done { border-style: solid; border-color: #2fb36f; background: #f0fbf5; }
.at-slot.is-now { border-style: solid; border-color: var(--at); box-shadow: 0 0 0 4px color-mix(in srgb, var(--at) 25%, transparent); }
.at-slot.is-later img { opacity: 0.35; }

/* 1. Duas figuras grandes */
.at-pair { display: flex; justify-content: center; gap: clamp(16px, 4vw, 60px); width: 100%; min-height: 0; }
.at-big { display: grid; justify-items: center; gap: 4px; width: min(36vw, 300px, 40vh); padding: 12px; border: 5px solid #fff; border-radius: 28px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 8px 20px rgba(30, 60, 90, 0.14); transition: transform 0.15s ease; }
.at-big img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.at-big b { font-size: 1.3rem; font-weight: 900; text-transform: uppercase; }
.at-big:active, .at-card:active, .at-box:active, .at-node:active { transform: scale(0.95); }

/* 2. Categorias e 7. Missões: cartões com figura */
.at-cat-cue { width: clamp(64px, 9vw, 96px); aspect-ratio: 1; display: grid; place-items: center; padding: 8px; border-radius: 50%; background: #fff; border: 4px solid var(--at); font-size: 2.4rem; font-weight: 900; color: var(--muted); box-sizing: border-box; animation: at-pop 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.at-cat-cue.is-hidden { border-style: dashed; border-color: #c9d4dc; }
@keyframes at-pop { from { scale: 0.6; opacity: 0; } }
.at-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 16px); width: min(100%, calc(var(--cols) * 170px)); }
.at-card { aspect-ratio: 1; padding: 8px; border: 4px solid #fff; border-radius: 22px; background: #fff; cursor: pointer; box-shadow: 0 5px 14px rgba(30, 60, 90, 0.12); transition: transform 0.15s ease, opacity 0.3s ease; }
.at-card img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }

/* 3. Trilha */
.at-trail-list { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; font-weight: 900; font-size: 1.1rem; }
.at-trail-list span { min-width: 34px; padding: 3px 8px; border-radius: 10px; background: #fff; text-align: center; color: var(--muted); }
.at-trail-list span.is-done { background: #2fb36f; color: #fff; }
.at-trail-list span.is-now { background: var(--at); color: #fff; }
.at-trail-list i { font-style: normal; color: #b6c3cc; }
.at-root[data-game="trilha"] .at-stage { align-content: stretch; justify-items: stretch; grid-template-rows: auto minmax(0, 1fr); }
.at-root[data-game="trilha"] .at-stage > .at-trail:only-child { grid-row: 1 / -1; }
.at-trail { position: relative; width: 100%; height: 100%; min-height: 220px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 3px #e3eaf0; }
.at-trail-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.at-trail-lines polyline { fill: none; stroke: var(--at); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.at-node {
  position: absolute; width: clamp(52px, 7vw, 76px); aspect-ratio: 1; margin: 0; padding: 0; translate: -50% -50%; border: 4px solid #24343d; border-radius: 50%;
  font: inherit; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; color: #24343d; cursor: pointer; transition: transform 0.15s ease, background 0.2s ease;
}
.at-node.is-num { background: #e6f0ff; }
.at-node.is-let { background: #ffe9d1; }
.at-node.is-done { background: #2fb36f; border-color: #1a7a49; color: #fff; }

/* 4, 5 e 6. Cartas de cor e forma */
.at-cue { display: grid; justify-items: center; gap: 2px; padding: 8px 18px; border-radius: 20px; background: #fff; border: 4px solid #24343d; box-shadow: 0 6px 16px rgba(30, 60, 90, 0.12); }
.at-cue svg { width: 64px; height: 64px; }
.at-cue b { font-size: 1.1rem; font-weight: 900; letter-spacing: 1px; }
.at-cue.is-big svg { width: clamp(110px, 18vh, 170px); height: auto; aspect-ratio: 1; }
.at-cue.is-big b { font-size: 1.8rem; }
.at-cue.is-mid svg { width: clamp(56px, 10vh, 84px); height: auto; aspect-ratio: 1; }
.at-cue.is-mid b { font-size: 1.25rem; }
.at-cue.is-small { padding: 4px 10px; border-width: 3px; }
.at-cue.is-small svg { width: 40px; height: 40px; }
.at-cue.is-small b { font-size: 0.85rem; }
.at-cue.is-cor { border-color: #e5484d; }
.at-cue.is-forma { border-color: #2f6fd6; }
.at-cue.is-empty { visibility: hidden; height: 40px; padding: 0; }
.at-announce { display: grid; justify-items: center; gap: 12px; animation: at-pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.at-announce p { margin: 0; font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; }
.at-announce-tag { padding: 6px 18px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 1.3rem; animation: at-glow 1s ease-in-out infinite; }
.at-sort, .at-choice { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 56px); width: 100%; }
.at-arrow { font-size: 2.6rem; font-weight: 900; color: #b6c3cc; }
.at-options { display: flex; gap: clamp(16px, 5vw, 70px); }
.at-box { width: clamp(120px, 20vw, 210px); max-width: 30vh; aspect-ratio: 1; padding: 16px; border: 5px solid #24343d; border-radius: 22px; background: #fffaf0; cursor: pointer; box-shadow: 0 7px 0 #b9a77e; transition: transform 0.15s ease; }
.at-box.is-option { border-color: #c9d4dc; background: #fff; box-shadow: 0 6px 16px rgba(30, 60, 90, 0.12); max-width: 24vh; }
.at-box svg { width: 100%; height: 100%; }
.at-current { display: grid; justify-items: center; gap: 6px; }
.at-current svg { width: clamp(90px, 14vw, 150px); max-width: 22vh; height: auto; aspect-ratio: 1; padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 8px 20px rgba(30, 60, 90, 0.18); animation: at-pop 0.3s ease; }
.at-current small { color: var(--muted); font-weight: 800; }

/* 7. Missões */
.at-missions { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr) minmax(0, 0.8fr); gap: clamp(10px, 2vw, 24px); align-items: center; width: 100%; height: 100%; }
.at-holder { position: relative; display: grid; justify-items: center; gap: 6px; padding: 14px 10px; border: 4px solid transparent; border-radius: 24px; background: #fff; opacity: 0.6; transition: opacity 0.3s ease, border-color 0.3s ease; }
.at-holder.is-active { opacity: 1; border-color: var(--at); box-shadow: 0 0 0 6px color-mix(in srgb, var(--at) 22%, transparent); }
.at-holder small { font-weight: 900; color: var(--muted); font-size: 1rem; }
.at-holder-tag { position: absolute; top: -14px; left: 50%; translate: -50% 0; padding: 2px 14px; border-radius: 999px; background: #24343d; color: #fff; font-weight: 900; }
.at-holder.is-a .at-holder-tag { background: #c98b4a; }
.at-holder.is-b .at-holder-tag { background: #2f6fd6; }
.at-basket, .at-toybox { position: relative; width: min(100%, 170px); aspect-ratio: 1; }
.at-basket svg { width: 100%; height: 100%; }
.at-toybox { display: grid; align-items: end; }
.at-toybox::before { content: ""; position: absolute; left: 6%; right: 6%; bottom: 4%; height: 62%; border: 4px solid #1b4a99; border-radius: 10px; background: #8cc0ff; }
.at-toybox-lid { position: absolute; left: 2%; right: 2%; top: 30%; height: 12%; border: 4px solid #1b4a99; border-radius: 6px; background: #5a9ae6; }
.at-in { position: absolute; left: 10%; right: 10%; bottom: 10%; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; }
.at-in img { width: 34%; aspect-ratio: 1; object-fit: contain; animation: at-pop 0.35s ease; }
.at-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 12px; padding: 14px; border-radius: 24px; background: #f6efe2; box-shadow: inset 0 0 0 4px #e6d6b8; max-height: 100%; overflow: auto; }
.at-table .at-card.is-done { visibility: hidden; }
.at-alert { position: absolute; left: 50%; top: 50%; translate: -50% -50%; z-index: 4; padding: 18px 30px; border-radius: 26px; background: #fff; border: 5px solid var(--at); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 900; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25); animation: at-pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); white-space: nowrap; }

/* Resumo */
.at-result { min-height: 0; display: grid; place-items: center; }
.at-result-card { display: grid; justify-items: center; gap: 12px; width: min(100%, 620px); padding: clamp(18px, 3vw, 30px); border-radius: 28px; background: #fff; box-shadow: 0 12px 30px rgba(30, 60, 90, 0.16); text-align: center; }
.at-result-stars { color: #f5b800; font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: 6px; line-height: 1; }
.at-result-card h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; }
.at-result-nums { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.at-result-nums span { display: grid; min-width: 96px; padding: 8px 12px; border-radius: 16px; background: var(--at-soft); font-weight: 800; color: var(--muted); }
.at-result-nums b { font-size: 1.6rem; color: var(--ink); }
.at-result-extra { margin: 0; padding: 10px 14px; border-radius: 14px; background: #f4f7fa; color: var(--muted); font-weight: 800; line-height: 1.5; }
.at-result-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (orientation: portrait) {
  .at-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .at-header { grid-template-columns: minmax(0, 1fr); }
  .at-fan { display: none; }
  .at-intro { grid-template-columns: minmax(0, 1fr); }
  .at-missions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .at-table { grid-column: 1 / -1; grid-row: 1; }
}

/* ---------- Atividades com história (attention-missions.js): cenário, guia, balões ---------- */
.at-root.is-story { grid-template-rows: auto minmax(0, 1fr) !important; font-family: "Baloo 2", "Nunito", system-ui, sans-serif; }
.am-scene { position: relative; min-height: 0; height: 100%; overflow: hidden; border-radius: 26px; background: center / cover no-repeat #bfe6ff; box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.6); }
/* Quintal provisório (até chegar a imagem do dono): céu, sol, nuvens, cerca e grama. */
.am-yard { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 86% 16%, #ffe27a 0 5%, rgba(255, 226, 122, 0.35) 5.5% 9%, transparent 9.5%),
    radial-gradient(ellipse 9% 4% at 20% 16%, #fff 98%, transparent),
    radial-gradient(ellipse 7% 3.5% at 26% 13%, #fff 98%, transparent),
    radial-gradient(ellipse 8% 3.5% at 58% 10%, #fff 98%, transparent),
    linear-gradient(180deg, transparent 0 34%, #8a5a2b 34% 35%, transparent 35% 100%),
    repeating-linear-gradient(90deg, #f3d9a8 0 3.2%, #d9b47a 3.2% 3.6%, transparent 3.6% 5%) 0 22% / 100% 14% no-repeat,
    linear-gradient(180deg, #9fd8ff 0%, #d5f0ff 36%, #86d16a 36%, #6cc153 70%, #57ad41 100%);
}
.am-yard::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64%;
  background: radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.18) 0 1.2%, transparent 1.4%) 0 0 / 9% 18%,
              radial-gradient(circle at 60% 70%, rgba(40, 110, 30, 0.18) 0 1%, transparent 1.2%) 0 0 / 7% 14%; }

.am-guide { display: block; }
.am-guide img, .am-guide svg { display: block; width: 100%; height: 100%; object-fit: contain; object-position: bottom; }
.am-guide svg { overflow: visible; }

/* Tela da história */
.am-story { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr); align-items: center; gap: clamp(10px, 2vw, 30px); padding: 3% 4% 0; }
.am-story .am-guide.is-big { position: relative; z-index: 1; align-self: end; height: 88%; animation: am-bob 2.6s ease-in-out infinite; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.18)); }
@keyframes am-bob { 50% { translate: 0 -8px; } }
.am-balloon { position: relative; z-index: 2; display: grid; gap: 16px; padding: clamp(16px, 2.4vw, 28px); border-radius: 28px; background: #fff; box-shadow: 0 12px 30px rgba(20, 60, 30, 0.22); animation: at-pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.am-story .am-balloon { align-self: center; margin-bottom: 14%; }
.am-story .am-balloon::before { content: ""; position: absolute; left: -16px; top: 46%; border: 16px solid transparent; border-left: 0; border-right-color: #fff; }
.am-balloon p { display: flex; align-items: center; gap: 12px; margin: 0; color: #24343d; font-size: clamp(1.2rem, 2.3vw, 1.75rem); font-weight: 800; line-height: 1.35; }
.am-balloon .am-btn { justify-self: start; }
.am-balloon-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.am-btn { min-height: 56px; padding: 0 30px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #7ad34a, #4fb12a); color: #fff; font: inherit; font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 900; cursor: pointer; box-shadow: 0 5px 0 #3a8a1d, 0 8px 14px rgba(0, 0, 0, 0.15); text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15); }
.am-btn:active { translate: 0 3px; box-shadow: 0 2px 0 #3a8a1d; }
.am-btn.is-light { background: #fff; color: #3a8a1d; box-shadow: 0 5px 0 #cfe6c3; text-shadow: none; border: 3px solid #7ad34a; }

/* Jogo */
.am-hud { position: absolute; z-index: 3; left: 2%; right: 2%; top: 2.5%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; pointer-events: none; }
.am-poster { justify-self: start; display: grid; justify-items: center; gap: 2px; width: clamp(74px, 9vw, 104px); padding: 6px 6px 8px; border-radius: 14px; background: #fff8e8; border: 4px solid #c98b4a; box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18); rotate: -4deg; }
.am-poster small { padding: 1px 8px; border-radius: 999px; background: #e5484d; color: #fff; font-size: 0.72rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.am-poster span { width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.am-poster span svg, .am-poster span img { width: 92%; height: 92%; object-fit: contain; }
.am-poster b { font-size: 2.4rem; color: #c98b4a; }
.am-wave { display: grid; justify-items: center; gap: 6px; }
.am-wave b { padding: 6px 18px; border-radius: 999px; background: #fff; color: #24343d; font-size: clamp(0.95rem, 1.6vw, 1.15rem); font-weight: 900; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); }
.am-wave span { display: flex; gap: 6px; }
.am-wave i { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, 0.7); border: 3px solid #fff; }
.am-wave i.is-done { background: #2fb36f; }
.am-wave i.is-now { background: #f5b800; }
.am-chips { justify-self: end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.am-chip { padding: 6px 12px; border-radius: 999px; background: #fff; color: #24343d; font-weight: 900; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12); }
.am-chip.is-demo { background: #ffd34d; color: #6b4e00; }

.am-holder { position: absolute; z-index: 1; bottom: 4%; width: clamp(120px, 19%, 220px); display: grid; justify-items: center; gap: 4px; padding: 8px 8px 10px; border-radius: 26px; transition: background 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease; filter: saturate(0.65) brightness(0.92); }
.am-holder.is-a { left: 2.5%; }
.am-holder.is-b { right: 2.5%; }
.am-holder.is-active { filter: none; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 5px #ffd34d, 0 0 30px rgba(255, 211, 77, 0.9); animation: am-glow 1.4s ease-in-out infinite; }
@keyframes am-glow { 50% { box-shadow: 0 0 0 9px #ffd34d, 0 0 44px rgba(255, 211, 77, 1); } }
.am-holder-art { position: relative; width: 100%; aspect-ratio: 1; display: grid; place-items: center; }
.am-holder-art svg, .am-holder-art img { width: 100%; height: 100%; object-fit: contain; }
.am-holder-in { position: absolute; left: 16%; right: 16%; top: 44%; display: flex; flex-wrap: wrap; justify-content: center; }
.am-holder-in img { width: 36%; aspect-ratio: 1; object-fit: contain; margin: -6% -2%; animation: at-pop 0.35s ease; }
.am-holder small { padding: 2px 12px; border-radius: 999px; background: #fff; color: #24343d; font-weight: 900; font-size: 1rem; }
.am-box-draw { position: relative; width: 82%; height: 62%; margin-top: 26%; border: 5px solid #1b4a99; border-radius: 12px; background: linear-gradient(180deg, #8cc0ff, #5a9ae6); box-sizing: border-box; }
.am-box-draw i { position: absolute; left: -10%; right: -10%; top: -26%; height: 22%; border: 5px solid #1b4a99; border-radius: 8px; background: #3f86de; rotate: -8deg; transform-origin: left; }

.am-item { position: absolute; z-index: 2; width: clamp(70px, 10vw, 118px); aspect-ratio: 1; margin: 0; padding: 0; border: 0; background: none; translate: -50% -50%; rotate: var(--r, 0deg); cursor: pointer; transition: scale 0.15s ease, opacity 0.3s ease; filter: drop-shadow(0 6px 4px rgba(0, 40, 0, 0.25)); animation: am-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
.am-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.am-item:active { scale: 0.92; }
.am-item.is-done { opacity: 0; pointer-events: none; }
.am-item.is-right { border: 0; box-shadow: none !important; scale: 1.15; }
.am-item.is-hint { border-radius: 50%; animation: at-glow 1.1s ease-in-out infinite; background: rgba(255, 255, 255, 0.45); }
@keyframes am-in { from { scale: 0.3; opacity: 0; } }
.am-play.is-paused .am-item { filter: saturate(0.6) drop-shadow(0 6px 4px rgba(0, 40, 0, 0.2)); }
.am-fly { position: fixed; z-index: 50; object-fit: contain; pointer-events: none; transition: transform 0.55s cubic-bezier(0.5, -0.3, 0.6, 1), opacity 0.55s ease; }
.am-float { position: absolute; z-index: 6; translate: -50% -100%; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; white-space: nowrap; text-shadow: 0 2px 0 #c97b00, 0 4px 10px rgba(0, 0, 0, 0.3); pointer-events: none; animation: am-up 1.2s ease forwards; }
@keyframes am-up { 0% { opacity: 0; transform: translateY(10px) scale(0.6); } 20% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-50px); } }

/* Balão do guia durante o jogo */
.am-talk { position: absolute; z-index: 5; left: 50%; top: 50%; translate: -50% -42%; display: flex; align-items: flex-end; gap: 4px; width: min(86%, 760px); }
.am-talk .am-guide { flex: none; height: clamp(190px, 40vh, 340px); aspect-ratio: 0.72; animation: am-pop-in 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.2)); }
.am-talk .am-balloon { flex: 1; margin-bottom: 22%; }
.am-talk .am-balloon::before { content: ""; position: absolute; left: -14px; bottom: 26px; border: 14px solid transparent; border-left: 0; border-right-color: #fff; }
.am-talk.is-oops { top: 17%; translate: -50% 0; align-items: center; width: min(64%, 560px); pointer-events: none; }
.am-talk.is-oops .am-guide { height: clamp(90px, 17vh, 150px); }
.am-talk.is-oops .am-balloon { margin-bottom: 0; padding: 12px 16px; }
.am-talk.is-oops .am-balloon p { font-size: clamp(1rem, 1.7vw, 1.25rem); }
@keyframes am-pop-in { from { translate: 0 40px; opacity: 0; } }
.am-play.is-paused::after { content: ""; position: absolute; inset: 0; z-index: 4; background: rgba(20, 40, 30, 0.25); }
.am-play:has(.am-talk.is-oops)::after { display: none; }
.am-holder.is-b .am-holder-in { top: 40%; }
.am-scene { background-position: center bottom; }

/* Tela de jogo das histórias: fundo pastel liso, figuras soltas, pouca distração (pedido dele, como as referências). */
.am-play { background: linear-gradient(180deg, #cfe5ee 0%, #dfeadf 48%, #f3ead6 100%); box-shadow: none; }
.am-hill { position: absolute; left: -10%; right: -10%; bottom: -18%; height: 40%; border-radius: 50%; background: #f8f1e1; pointer-events: none; }
.am-play .am-poster { padding: 8px 8px 6px; border: 0; border-radius: 10px; background: #fff; box-shadow: 0 6px 16px rgba(60, 50, 30, 0.18); rotate: -3deg; }
.am-play .am-poster span { border-radius: 6px; background: #eef4f6; }
.am-play .am-poster small { padding: 0; background: none; color: #6b5536; font-size: 0.78rem; letter-spacing: 2px; }
.am-play .am-wave b, .am-play .am-chip { box-shadow: 0 3px 10px rgba(60, 50, 30, 0.08); color: #4a3a22; }
.am-play .am-wave i { border-color: #fff; background: #ece4d3; }
.am-play .am-wave i.is-now { background: #6b5536; }
.am-play .am-wave i.is-done { background: #8cc49a; }
.am-play .am-holder { filter: saturate(0.55) opacity(0.75); }
.am-play .am-holder.is-active { filter: none; background: rgba(255, 255, 255, 0.5); box-shadow: 0 0 0 4px #f6dfa0; animation: none; }
.am-play .am-holder small { background: rgba(255, 255, 255, 0.8); color: #6b5536; }
.am-play .am-item { filter: saturate(0.8) drop-shadow(0 4px 3px rgba(60, 50, 30, 0.12)); }
.am-play .am-item.is-hint { background: rgba(255, 244, 200, 0.7); }
.am-play.is-paused::after { background: rgba(60, 50, 30, 0.12); }

/* ---------- Mudança de regra em 15 fases (attention-rules.js): cartas e caixas pastel ---------- */
.ar-phases { display: grid; gap: 8px; padding-top: 6px; border-top: 2px dashed #e6e0d2; }
.ar-phases small { color: #8a7a5c; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; font-size: 0.78rem; }
.ar-phases div { display: flex; flex-wrap: wrap; gap: 6px; }
.ar-phases button { width: 40px; height: 40px; border: 2px solid #e2dccd; border-radius: 12px; background: #fff; color: #6b5536; font: inherit; font-weight: 900; cursor: pointer; }
.ar-phases button.is-done { background: #e3f3e6; border-color: #9fd4a6; }
.ar-phases button.is-active { background: #6b5536; border-color: #6b5536; color: #fff; }
.ar-phases p { margin: 0; color: #5f6f78; font-size: 0.95rem; font-weight: 700; }
.ar-phases p b { color: #24343d; }
.am-story .am-balloon:has(.ar-phases) { margin-bottom: 4%; }

.ar-poster { width: clamp(84px, 10vw, 116px); }
.ar-cue { display: grid; place-items: center; transition: rotate 0.6s ease; }
.ar-cue svg { width: 84%; height: 84%; }
.ar-cue.is-flip { animation: ar-flip 0.8s ease; }
@keyframes ar-flip { 0% { transform: rotateY(0) scale(1); } 40% { transform: rotateY(90deg) scale(1.3); } 100% { transform: rotateY(0) scale(1); } }
.ar-poster small { font-size: 0.7rem !important; letter-spacing: 1px !important; white-space: nowrap; }
.ar-legend { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 6px; padding: 4px; background: #eef4f6; border-radius: 6px; }
.ar-legend span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 6px; background: #fff; }
.ar-legend span.is-border { box-shadow: inset 0 0 0 3px #b98a4a; }
.ar-legend span svg { width: 22px; height: 22px; }
.ar-legend b { font-size: 0.68rem; color: #6b5536; }

.ar-table { position: absolute; inset: 22% 3% 6%; display: grid; grid-template-rows: auto minmax(0, 1fr); justify-items: center; align-items: center; gap: 3%; }
.ar-current { position: relative; width: clamp(110px, 17vh, 170px); aspect-ratio: 1; padding: 14px; border-radius: 26px; background: #fff; box-shadow: 0 10px 24px rgba(60, 50, 30, 0.14); animation: at-pop 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); box-sizing: border-box; }
.ar-current svg { width: 100%; height: 100%; }
.ar-current.has-border { box-shadow: inset 0 0 0 9px #c99a5a, 0 10px 24px rgba(60, 50, 30, 0.14); }
.ar-timer { position: absolute; left: 10%; right: 10%; bottom: -16px; height: 8px; border-radius: 999px; background: #e9e1cf; overflow: hidden; }
.ar-timer::after { content: ""; position: absolute; inset: 0; background: #e7a35c; transform-origin: left; animation: ar-time var(--ms) linear forwards; }
@keyframes ar-time { to { transform: scaleX(0); } }
.ar-boxes { width: min(100%, calc(var(--n) * 250px)); display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(10px, 3vw, 40px); align-self: end; }
.ar-box { position: relative; aspect-ratio: 1.15; max-height: 30vh; padding: 10% 14% 16%; border: 0; border-radius: 22px 22px 30px 30px; background: linear-gradient(180deg, #f7efe0, #ecdfc6); box-shadow: inset 0 -10px 0 rgba(160, 130, 80, 0.18), 0 8px 18px rgba(60, 50, 30, 0.12); cursor: pointer; transition: transform 0.15s ease; justify-self: center; width: 100%; }
.ar-box::before { content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 12%; border-radius: 0 0 14px 14px; background: rgba(160, 130, 80, 0.16); }
.ar-box-art { display: grid; place-items: center; width: 100%; height: 100%; }
.ar-box-art svg { width: 100%; height: 100%; }
.ar-paint { width: 70%; aspect-ratio: 1; border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: var(--c); box-shadow: inset 0 0 0 4px var(--d); }
.ar-box:active { transform: scale(0.95); }
.ar-box.is-right { box-shadow: 0 0 0 6px #a3d8ab, 0 8px 18px rgba(60, 50, 30, 0.12) !important; }
.ar-box.is-wrong { box-shadow: 0 0 0 6px #f29b9b !important; }
.ar-play .am-talk.is-oops { top: 24%; left: auto; right: 2%; translate: 0 0; width: min(40%, 430px); }
.ar-play .am-talk.is-oops .am-guide { height: clamp(80px, 14vh, 130px); }

/* Mudança de regra com as figuras do dono (coelho, barco, peixe, carro, pássaro em 4 cores pastel) e a caixa de papelão. */
.ar-play { background: center bottom / cover no-repeat #eef2f0; }
.ar-fig { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ar-fig.is-outline { filter: grayscale(1) brightness(1.08) opacity(0.55); }
.ar-current { padding: 8px; }
.ar-current .ar-fig { filter: drop-shadow(0 4px 4px rgba(60, 50, 30, 0.12)); }
.ar-box { aspect-ratio: 1; padding: 0; border-radius: 22px; background: none; box-shadow: none; display: grid; }
.ar-box::before { display: none; }
.ar-crate { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: contain; object-position: bottom; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(60, 50, 30, 0.14)); }
.ar-box .ar-box-art { grid-area: 1 / 1; align-self: end; justify-self: center; width: 58%; height: 58%; margin-bottom: 9%; }
.ar-box .ar-paint { width: 78%; }
.ar-box.is-right { box-shadow: none !important; }
.ar-box.is-right .ar-crate { filter: drop-shadow(0 0 0 #a3d8ab) drop-shadow(0 0 14px #7fcf8b); }
.ar-box.is-wrong { box-shadow: none !important; }
.ar-box.is-wrong .ar-crate { filter: drop-shadow(0 0 12px #f29b9b); }
.ar-box.is-hint { animation: none; background: none; }
.ar-box.is-hint .ar-crate { animation: ar-hint 1.1s ease-in-out infinite; }
@keyframes ar-hint { 50% { filter: drop-shadow(0 0 16px #f6c94a) drop-shadow(0 0 4px #f6c94a); } }
.ar-legend span .ar-fig { width: 24px; height: 24px; }
.ar-box .ar-box-art { position: relative; z-index: 1; }
.ar-play .ar-current { width: clamp(130px, 22vh, 200px); }

/* ---------- Atenção seletiva · Ache os iguais (attention-search.js) ---------- */
.as-play { background: center bottom / cover no-repeat #eef2f0; }
.as-posters { display: flex; gap: 8px; }
.as-poster { cursor: pointer; pointer-events: auto; }
.as-poster span img { width: 92%; height: 92%; object-fit: contain; }
.as-poster.is-hidden span { background: #f3ede1; }
.as-field { position: absolute; inset: 21% 3% 3%; }
.as-item { position: absolute; width: var(--s); aspect-ratio: 1; margin: 0; padding: 0; border: 0; background: none; translate: -50% -50%; scale: var(--k, 1); rotate: var(--t, 0deg); cursor: pointer; transition: scale 0.2s ease, opacity 0.3s ease; }
.as-item.is-enter { animation: am-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1) backwards; }
/* Contorno branco de figurinha + sombra: a pelúcia se separa do fundo mesmo quando a cor é parecida. */
.as-item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(2.5px 0 0 #fff) drop-shadow(-2.5px 0 0 #fff) drop-shadow(0 2.5px 0 #fff) drop-shadow(0 -2.5px 0 #fff) drop-shadow(0 5px 5px rgba(60, 50, 30, 0.22)); }
.as-item img.is-flip { transform: scaleX(-1); }
.as-item.is-right { box-shadow: none !important; }
.as-item.is-found { scale: calc(var(--k, 1) * 1.08); }
.as-item.is-found::after { content: "✓"; position: absolute; right: 4%; top: 4%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #7fcf8b; color: #fff; font-size: calc(var(--s) * 0.16); font-weight: 900; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); }
.as-item.is-fresh::after { animation: at-pop 0.3s ease; }
.as-item.is-found img { filter: drop-shadow(0 0 10px rgba(127, 207, 139, 0.9)); }
.as-item.is-x img { opacity: 0.45; filter: grayscale(0.6); }
.as-x { position: absolute; right: 6%; top: 2%; width: 30%; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: #f29b9b; color: #fff; font-size: calc(var(--s) * 0.15); font-style: normal; font-weight: 900; }
.as-item.is-hint { border-radius: 50%; background: radial-gradient(circle, rgba(255, 236, 160, 0.9), transparent 70%); animation: at-glow 1.1s ease-in-out infinite; }
.as-star { position: absolute; width: calc(var(--s) * 0.55); aspect-ratio: 1; padding: 0; border: 0; background: none; translate: -50% -50%; cursor: pointer; animation: as-twinkle 1.8s ease-in-out infinite; }
.as-star img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
@keyframes as-twinkle { 50% { scale: 1.12; rotate: 8deg; } }
.as-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.as-path polyline { fill: none; stroke: #a07a4a; stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; animation: as-draw 1.4s ease forwards; stroke-dashoffset: 400; }
@keyframes as-draw { to { stroke-dashoffset: 0; } }
.as-timer { position: absolute; z-index: 3; left: 30%; right: 30%; top: 15%; height: 10px; border-radius: 999px; background: #efe6d4; overflow: hidden; }
.as-timer::after { content: ""; position: absolute; inset: 0; background: #e7a35c; transform-origin: left; animation: ar-time var(--ms) linear forwards; }
/* Noite: tudo escuro, só a lanterna (segue o dedo) ilumina. */
.as-dark { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: radial-gradient(circle at var(--lx, 50%) var(--ly, 55%), transparent 0 12vh, rgba(14, 18, 40, 0.97) 17vh); }
.as-play.is-dark .am-hud { z-index: 4; }
/* Pedido para guardar na memória */
.as-memo { position: absolute; z-index: 5; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: rgba(255, 255, 255, 0.75); }
.as-memo img { width: min(40vh, 300px); aspect-ratio: 1; object-fit: contain; padding: 16px; border-radius: 26px; background: #fff; box-shadow: 0 12px 30px rgba(60, 50, 30, 0.18); animation: at-pop 0.4s ease; }
.as-memo b { font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; color: #4a3a22; }
/* Cortina de toldo (listras da loja) com a placa do lugar */
.as-curtain { position: absolute; z-index: 6; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(90deg, #f6c4c4 0 7%, #fff8ee 7% 14%); animation: as-curtain 1.5s ease forwards; }
@keyframes as-curtain { 0% { clip-path: inset(0 0 100% 0); } 20%, 75% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.as-sign { display: grid; justify-items: center; gap: 2px; padding: 14px 34px; border-radius: 18px; background: #fff; border: 5px solid #a07a4a; box-shadow: 0 10px 24px rgba(60, 50, 30, 0.25); }
.as-sign small { color: #e5484d; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }
.as-sign b { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: #4a3a22; font-weight: 900; }
/* Cartão do fim da rodada */
.as-card { position: absolute; z-index: 5; left: 50%; top: 50%; translate: -50% -50%; display: grid; justify-items: center; gap: 6px; padding: 18px 30px; border-radius: 24px; background: #fff; box-shadow: 0 14px 34px rgba(60, 50, 30, 0.22); animation: at-pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); text-align: center; }
.as-card .at-result-stars { font-size: clamp(2rem, 5vw, 3rem); }
.as-card b { font-size: 1.3rem; font-weight: 900; color: #24343d; }
.as-card small { font-size: 1rem; font-weight: 800; color: #8a6a3a; }
.as-play.is-paused::after { display: none; }
.as-play .am-talk.is-oops { top: 17%; left: auto; right: 2%; translate: 0 0; width: min(44%, 460px); }
.as-play .am-talk.is-oops .am-guide { height: clamp(80px, 14vh, 130px); }
.as-play .am-float { z-index: 6; }

/* Ache os iguais: explicação de cada fase (o Tuca só aparece aqui, não durante o jogo). */
.am-story .am-guide.is-big.is-anim { animation: none; height: 92%; }
.as-brief-tag { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px; background: #fff1d6; color: #9a5b12; font-weight: 800; font-size: clamp(12px, 1.5vw, 15px); }
.am-talk.as-oops { justify-content: center; width: min(52%, 460px); }
.am-talk.as-oops .am-balloon { margin-bottom: 0; text-align: center; }
.am-talk.as-oops .am-balloon::before { display: none; }
/* Balão do Tuca: as palavras aparecem no ritmo da fala. */
.am-balloon .as-w { opacity: 0; transition: opacity 0.18s ease; }
.am-balloon .as-w.is-on { opacity: 1; }
.am-balloon .as-words { flex: 1; min-width: 0; }

/* Barra do que falta achar (topo, embaixo do nome do lugar): enche a cada pelúcia achada. */
.as-meter { display: flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; box-shadow: 0 3px 10px rgba(60, 50, 30, 0.1); }
.as-meter-bar { position: relative; width: clamp(110px, 18vw, 220px); height: 14px; border-radius: 999px; background: #ece4d3; overflow: hidden; }
.as-meter-fill { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #5cc98a, #2fb36f); transition: width 0.4s cubic-bezier(0.3, 1.4, 0.5, 1); }
.as-meter small { color: #4a3a22; font-weight: 900; font-size: clamp(0.85rem, 1.4vw, 1rem); white-space: nowrap; }

/* Carimbos do Tuca (atenção alternada): quadro das regras em cima à esquerda, carimbos em cima à direita. */
.st-rules { display: grid; gap: 8px; justify-self: start; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 12px rgba(60, 50, 30, 0.12); }
.st-rule { display: flex; align-items: center; gap: 6px; }
.st-rule svg { width: clamp(30px, 4.4vw, 46px); height: clamp(30px, 4.4vw, 46px); }
.st-rule b { color: #8a7a5a; font-size: 1rem; }
.st-rule img { width: clamp(36px, 5vw, 54px); height: clamp(36px, 5vw, 54px); object-fit: contain; }
.st-rule small { max-width: 13em; color: #4a3a22; font-weight: 900; font-size: clamp(0.85rem, 1.5vw, 1.1rem); line-height: 1.15; }
.st-stamps { position: absolute; z-index: 5; right: 2%; top: 2.5%; display: flex; gap: 10px; }
.st-stamp { width: clamp(58px, 8.5vw, 92px); aspect-ratio: 1; padding: 10px; border: 3px solid #fff; border-radius: 22px; background: #fffaf0; box-shadow: 0 6px 14px rgba(60, 50, 30, 0.18); cursor: grab; touch-action: none; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.st-stamp svg { width: 100%; height: 100%; pointer-events: none; }
.st-stamp.is-selected { transform: translateY(-4px) scale(1.06); border-color: #2fb36f; box-shadow: 0 0 0 4px rgba(47, 179, 111, 0.35), 0 8px 16px rgba(60, 50, 30, 0.2); }
.st-stamp.is-done { opacity: 0.45; }
.st-play .am-hud .am-chips { display: none; }
.st-play .am-hud { grid-template-columns: 1fr auto 1fr; }
.st-ghost { position: fixed; z-index: 9999; width: 84px; height: 84px; translate: -50% -50%; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.25)); }
.st-ghost svg { width: 100%; height: 100%; }
.st-mark { position: absolute; right: -4%; top: -4%; width: 42%; aspect-ratio: 1; padding: 6%; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18); }
.st-mark svg { width: 100%; height: 100%; display: block; }
.st-item.is-fresh .st-mark { animation: at-pop 0.35s ease; }
.st-item.is-found img { opacity: 0.85; }
/* O ✓ das pelúcias achadas não serve aqui: a marca é o próprio carimbo. */
.st-item.is-found::after { display: none; }
.st-mark { z-index: 2; }

/* ===== Visual "noite" (Ache os iguais e Carimbos): ideias do vídeo de referência do dono, desenho nosso. ===== */
.as-play.is-night { background: radial-gradient(120% 90% at 50% 0%, #2c4a78 0%, #1b2f55 45%, #121f3c 100%); color: #fff; }
.is-night .nt-sky { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.is-night .nt-rays { position: absolute; inset: -20% -10% 30%; background: repeating-linear-gradient(100deg, transparent 0 7%, rgba(255, 255, 255, 0.06) 7% 10%, transparent 10% 18%); filter: blur(10px); transform-origin: 50% 0; animation: nt-sway 14s ease-in-out infinite alternate; }
@keyframes nt-sway { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
.is-night .nt-moon { position: absolute; right: 12%; top: 9%; width: 9vh; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff9e0, #f6e2a6 60%, #e7c977); box-shadow: 0 0 40px 12px rgba(255, 236, 170, 0.25); opacity: 0.85; }
.is-night .nt-hills { position: absolute; left: -5%; right: -5%; bottom: -8%; height: 34%; background: radial-gradient(60% 70% at 20% 100%, #18284a 0 60%, transparent 61%), radial-gradient(55% 80% at 75% 100%, #152443 0 60%, transparent 61%), radial-gradient(90% 60% at 50% 110%, #101c36 0 70%, transparent 71%); filter: blur(2px); }
.is-night .nt-p { position: absolute; bottom: -12px; width: var(--d); height: var(--d); border-radius: 50%; background: rgba(214, 232, 255, 0.55); box-shadow: 0 0 6px rgba(214, 232, 255, 0.6); animation: nt-rise var(--dur) linear infinite; }
.is-night .nt-p.is-star { background: #fff4c2; box-shadow: 0 0 8px 2px rgba(255, 236, 160, 0.7); }
@keyframes nt-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 0.8; } 100% { transform: translate(var(--dx), -105vh); opacity: 0; } }

/* Placar mínimo: fase à esquerda, tempo no meio, contador à direita; régua lateral das fases. */
.is-night .nt-hud { z-index: 4; left: 4.5%; right: 2.5%; top: 3%; grid-template-columns: 1fr auto 1fr; }
.is-night .nt-left { display: grid; gap: 10px; justify-items: start; pointer-events: auto; }
.is-night .nt-phase b { display: block; color: #fff; font-size: clamp(1.4rem, 2.8vw, 2.1rem); font-weight: 900; line-height: 1; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.is-night .nt-phase small { color: rgba(255, 255, 255, 0.72); font-size: clamp(0.7rem, 1.1vw, 0.85rem); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.is-night .nt-center { display: grid; justify-items: center; gap: 8px; }
.is-night .nt-time { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 900; font-variant-numeric: tabular-nums; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.is-night .nt-progress { width: clamp(120px, 22vw, 260px); height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.is-night .nt-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7df0a4, #3fd27c); box-shadow: 0 0 10px rgba(80, 230, 140, 0.8); transition: width 0.4s ease; }
.is-night .nt-right { display: grid; justify-items: end; gap: 6px; }
.is-night .nt-count { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 900; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.is-night .nt-count i { width: 0.75em; height: 0.75em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #cfe3ff 60%, #8fb4ea); box-shadow: 0 0 8px rgba(200, 225, 255, 0.9); }
.is-night .nt-count.is-bonus { font-size: 1rem; }
.is-night .nt-demo { padding: 4px 12px; border-radius: 99px; background: rgba(255, 210, 90, 0.9); color: #3b2a00; font-weight: 900; font-size: 0.8rem; }
.is-night .nt-track { position: absolute; z-index: 3; left: 1.6%; top: 16%; bottom: 14%; width: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.16); }
.is-night .nt-track b { position: absolute; left: -3px; width: 10px; height: 2px; background: rgba(255, 255, 255, 0.25); }
.is-night .nt-track i { position: absolute; left: 50%; width: 16px; height: 16px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #c9dcff); box-shadow: 0 0 10px rgba(200, 225, 255, 0.9); transition: top 0.6s ease; }

/* Pedido: ficha redonda + pílula dourada. */
.is-night .nt-poster { display: grid; justify-items: center; gap: 6px; padding: 0; background: none; box-shadow: none; transform: none; }
.is-night .nt-poster span { display: grid; place-items: center; width: clamp(64px, 10vh, 96px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #f3efe6); border: 4px solid #15213b; box-shadow: 0 0 0 3px rgba(255, 214, 102, 0.9), 0 0 22px rgba(255, 214, 102, 0.55); }
.is-night .nt-poster span img { width: 78%; height: 78%; object-fit: contain; }
.is-night .nt-poster small { padding: 3px 12px; border-radius: 99px; background: linear-gradient(#ffd766, #f0b72f); color: #3b2a00; font-weight: 900; font-size: 0.72rem; letter-spacing: 0.08em; box-shadow: 0 3px 0 #b9851a; }
.is-night .as-posters { gap: 14px; }

/* Figuras em fichas redondas, com brilho. */
.is-night .as-item { box-sizing: border-box; width: calc(var(--s) * 0.76); height: auto; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #ffffff, #f2eee6 70%, #e2dccf); border: 4px solid #15213b; box-shadow: 0 0 18px rgba(190, 215, 255, 0.35), 0 8px 14px rgba(0, 0, 0, 0.35); padding: 0; overflow: visible; }
.is-night .as-item > img { position: absolute; inset: 11%; width: 78%; height: 78%; display: block; object-fit: contain; z-index: 1; }
.is-night .as-item::before { content: ""; position: absolute; right: 13%; bottom: 13%; width: 13%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.85); pointer-events: none; }
.is-night .as-item img { filter: none; }
.is-night .as-item.is-found { box-shadow: inset 0 0 0 5px #4fe08a, 0 0 0 3px #4fe08a, 0 0 26px rgba(80, 230, 140, 0.85); }
.is-night .as-item.is-found::after { display: none; }
.is-night .as-item.is-hint { box-shadow: 0 0 0 4px #ffd766, 0 0 30px rgba(255, 214, 102, 0.9); }
.is-night .as-item.is-x { box-shadow: 0 0 0 4px #ff6b6b, 0 0 24px rgba(255, 90, 90, 0.75); opacity: 0.75; }
.is-night .as-item.is-wrong { box-shadow: 0 0 0 4px #ff6b6b, 0 0 24px rgba(255, 90, 90, 0.85); }
.is-night .as-field { z-index: 2; }
.is-night .am-float { color: #fff; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }

/* Mensagem de erro/ajuda: pílula no topo. */
.is-night .nt-pill { position: absolute; z-index: 6; left: 50%; top: 15%; translate: -50% 0; padding: 8px 20px; border-radius: 99px; background: #e5484d; color: #fff; font-weight: 900; font-size: clamp(0.9rem, 1.6vw, 1.1rem); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); white-space: nowrap; animation: at-pop 0.3s ease; pointer-events: none; }

/* Entrada da fase e fim da rodada no mesmo tom. */
.is-night .nt-curtain { background: rgba(10, 18, 36, 0.8); animation: nt-curtain 1.5s ease forwards; }
@keyframes nt-curtain { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.is-night .nt-curtain::before, .is-night .nt-curtain::after { display: none; }
.is-night .nt-curtain .as-sign { background: none; box-shadow: none; border: 0; transform: none; }
.is-night .nt-curtain .as-sign small { color: rgba(255, 255, 255, 0.75); letter-spacing: 0.14em; text-transform: uppercase; }
.is-night .nt-curtain .as-sign b { color: #ffd766; font-size: clamp(2rem, 5vw, 3.4rem); text-shadow: 0 0 24px rgba(255, 214, 102, 0.5); }
.is-night .as-card { background: #10203f; border: 3px solid rgba(255, 255, 255, 0.18); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.is-night .as-card b { color: #fff; }
.is-night .as-path polyline { stroke: rgba(255, 214, 102, 0.8); }
.is-night.is-paused::after { display: none; }

/* Carimbos no visual da noite: quadro das regras escuro e carimbos em fichas. */
.is-night .st-rules { background: rgba(8, 16, 34, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: none; }
.is-night .st-rule small { color: #fff; }
.is-night .st-rule b { color: #ffd766; }
.is-night .st-rule img { border-radius: 50%; background: #f3efe6; padding: 3px; }
.is-night .st-stamps { top: 3%; right: 2.5%; }
.is-night .st-stamp { border-radius: 50%; border: 4px solid #15213b; background: radial-gradient(circle at 40% 30%, #fff, #ece6d8); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25), 0 0 18px rgba(190, 215, 255, 0.4); }
.is-night .st-stamp.is-selected { box-shadow: 0 0 0 4px #4fe08a, 0 0 26px rgba(80, 230, 140, 0.85); }
.is-night .st-play .am-hud, .st-play.is-night .am-hud { grid-template-columns: 1fr auto 1fr; }
.is-night .st-mark { border: 2px solid #15213b; }
/* Carimbos (noite): regras numa faixa embaixo do tempo; contador junto da barra; a lua sai (carimbos no canto). */
.st-play.is-night .st-rules { grid-auto-flow: column; gap: 14px; padding: 6px 14px; margin-top: 4px; }
.st-play.is-night .st-rule small { max-width: 9em; font-size: clamp(0.75rem, 1.25vw, 0.95rem); }
.st-play.is-night .st-rule svg { width: clamp(24px, 3.2vw, 34px); height: clamp(24px, 3.2vw, 34px); }
.st-play.is-night .st-rule img { width: clamp(28px, 3.8vw, 40px); height: clamp(28px, 3.8vw, 40px); }
.st-play.is-night .nt-moon { display: none; }
.st-play.is-night .as-field { inset: 30% 3% 3% 5%; }
.is-night .nt-sub { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, 0.85); font-weight: 900; font-size: clamp(0.85rem, 1.4vw, 1rem); }
.is-night .nt-sub i { width: 0.7em; height: 0.7em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff, #cfe3ff 60%, #8fb4ea); }
.st-play.is-night .st-stamp { width: clamp(54px, 7.4vw, 84px); }

/* Tela cheia do app (botões de tela cheia/cadeado como nos outros módulos): a cena do Tuca e o jogo ocupam a tela toda,
   sem bordas nem cantos; o placar começa abaixo dos botões do app (66px), ou no topo com os botões escondidos. */
body.training-fullscreen .trainer:has(.at-root .am-scene) { padding: 0; }
body.training-fullscreen .at-root:has(.am-scene) { height: 100%; gap: 0; padding: 0; grid-template-rows: minmax(0, 1fr) !important; }
body.training-fullscreen .at-root:has(.am-scene) .at-bar { display: none; }
body.training-fullscreen .am-scene { border-radius: 0; box-shadow: none; }
body.training-fullscreen .am-story { padding-top: 66px; }
body.training-fullscreen .is-night .nt-hud { top: 70px; }
body.training-fullscreen .is-night .st-stamps { top: 70px; }
body.training-fullscreen .is-night .nt-track { top: calc(16% + 50px); }
body.training-fullscreen .as-play.is-night .as-field { top: calc(31% + 50px); }
body.training-fullscreen .is-night .nt-pill { top: calc(15% + 50px); }
body.training-fullscreen.controls-hidden .am-story { padding-top: 3%; }
body.training-fullscreen.controls-hidden .is-night .nt-hud, body.training-fullscreen.controls-hidden .is-night .st-stamps { top: 3%; }
body.training-fullscreen.controls-hidden .is-night .nt-track { top: 16%; }
body.training-fullscreen.controls-hidden .as-play.is-night .as-field { top: 31%; }
.am-story .am-guide.is-big.is-anim { height: 92%; }

/* Sem tempo na tela: no topo do meio fica a instrução (Pedido ou regras) e embaixo as estrelas (uma por item certo). */
.is-night .nt-center { gap: 6px; }
.is-night .nt-center .as-posters { justify-content: center; }
.is-night .nt-stars { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; max-width: min(64vw, 620px); }
.is-night .nt-stars i { font-style: normal; font-size: clamp(1.15rem, 2.3vw, 1.7rem); line-height: 1; color: rgba(255, 255, 255, 0.2); -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.55); transition: color 0.3s ease; }
.is-night .nt-stars i.is-on { color: #ffd34d; -webkit-text-stroke: 1.5px #c99312; text-shadow: 0 0 10px rgba(255, 210, 80, 0.75); }
.is-night .nt-stars i.is-new { animation: nt-star 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes nt-star { from { transform: scale(0.2) rotate(-40deg); } to { transform: scale(1) rotate(0); } }
.as-play.is-night:not(.st-play) .as-field { inset: 31% 3% 3% 5%; }
.st-play.is-night .as-field { inset: 33% 3% 3% 5%; }
/* Régua das fases: de cima (1) para baixo (15); linha andada acesa e bolinha na fase atual (desce na entrada da fase). */
.is-night .nt-track-done { position: absolute; left: 0; top: 0; width: 100%; border-radius: inherit; background: linear-gradient(#9fd0ff, #ffd34d); box-shadow: 0 0 8px rgba(255, 210, 80, 0.6); }
.is-night .nt-track b.is-done { background: rgba(255, 211, 77, 0.8); }
.is-night .nt-track b.is-now { background: #fff; }
.is-night .nt-track i { width: 20px; height: 20px; background: radial-gradient(circle at 35% 35%, #fff, #ffe9a6 60%, #ffcf3f); box-shadow: 0 0 14px rgba(255, 210, 80, 0.95); }
.is-night .nt-track i.is-moving { animation: nt-ball 1.1s cubic-bezier(0.5, 0, 0.3, 1.4) 0.2s backwards; }
@keyframes nt-ball { from { top: var(--from); } }

/* Tema (passo 2): Escuro (o visual "noite" acima) ou Claro (.is-light). Só cores e fundo; o jogo é o mesmo. */
.at-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 640px; }
.at-theme { display: grid; justify-items: center; gap: 6px; padding: 12px; border: 3px solid #e6e1f3; border-radius: 20px; background: #faf8ff; font: inherit; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.at-theme strong { font-size: clamp(0.98rem, 1.5vw, 1.15rem); font-weight: 900; color: #3a2b80; }
.at-theme small { color: var(--muted); font-size: 0.82rem; font-weight: 700; text-align: center; }
.at-theme.is-active { border-color: #5b3cc4; box-shadow: 0 0 0 4px rgba(91, 60, 196, 0.22); transform: translateY(-3px); }
.at-theme-look { position: relative; width: 100%; aspect-ratio: 16 / 7; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 8%; }
.at-theme-look.is-escuro { background: radial-gradient(120% 90% at 50% 0%, #2c4a78, #121f3c); }
.at-theme-look.is-claro { background: radial-gradient(70% 45% at 20% 108%, #fff 0 60%, transparent 61%), radial-gradient(70% 50% at 85% 112%, #f4fbff 0 60%, transparent 61%), linear-gradient(#9fdcfa, #d8f1fd); }
.at-theme-look i { width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #ece6d8); border: 3px solid #15213b; }
.at-theme-look.is-escuro i:nth-child(2) { box-shadow: 0 0 0 2px #4fe08a, 0 0 12px rgba(80, 230, 140, 0.8); }
.at-theme-look.is-claro i:nth-child(2) { box-shadow: 0 0 0 3px #4a9cf0, 0 0 12px rgba(74, 156, 240, 0.6); }

.is-night .nt-clouds, .is-night .nt-tw { display: none; }
.as-play.is-night.is-light { background: linear-gradient(180deg, #8fd6f8 0%, #b9e6fb 55%, #e3f5fe 100%); color: #15213b; }
.is-light .nt-rays { background: repeating-linear-gradient(100deg, transparent 0 7%, rgba(255, 255, 255, 0.22) 7% 10%, transparent 10% 18%); }
.is-light .nt-moon, .is-light .nt-hills { display: none; }
.is-light .nt-clouds { display: block; position: absolute; left: 0; bottom: -4%; width: 200%; height: 36%; background:
  radial-gradient(14% 60% at 6% 100%, #fff 0 70%, transparent 71%), radial-gradient(12% 75% at 17% 100%, #f7fcff 0 70%, transparent 71%),
  radial-gradient(16% 55% at 31% 100%, #fff 0 70%, transparent 71%), radial-gradient(11% 70% at 42% 100%, #f3faff 0 70%, transparent 71%),
  radial-gradient(14% 60% at 56% 100%, #fff 0 70%, transparent 71%), radial-gradient(12% 75% at 67% 100%, #f7fcff 0 70%, transparent 71%),
  radial-gradient(16% 55% at 81% 100%, #fff 0 70%, transparent 71%), radial-gradient(11% 70% at 92% 100%, #f3faff 0 70%, transparent 71%);
  opacity: 0.75; animation: nt-clouds 60s linear infinite; }
.is-light .nt-clouds.is-front { bottom: -12%; height: 30%; opacity: 1; animation-duration: 90s; animation-direction: reverse; filter: drop-shadow(0 -4px 10px rgba(120, 180, 220, 0.25)); }
@keyframes nt-clouds { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.is-light .nt-tw { display: block; position: absolute; width: var(--d); height: var(--d); background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9)); animation: nt-twinkle 3.2s ease-in-out infinite; }
@keyframes nt-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.6) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(20deg); } }
.is-light .nt-p { background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 6px rgba(255, 255, 255, 0.9); }
.is-light .nt-p.is-star { background: #fff2b0; box-shadow: 0 0 8px 2px rgba(255, 226, 120, 0.8); }
.is-light .nt-phase b { color: #15213b; text-shadow: none; }
.is-light .nt-phase small { color: #3d4d6b; }
.is-light .nt-sub { color: #3d4d6b; }
.is-light .nt-sub i { background: #15213b; }
.is-light .nt-stars i { color: rgba(255, 255, 255, 0.55); -webkit-text-stroke: 1.5px rgba(21, 33, 59, 0.45); }
.is-light .nt-stars i.is-on { color: #ffd34d; -webkit-text-stroke: 1.5px #c99312; text-shadow: 0 0 8px rgba(255, 210, 80, 0.6); }
.is-light .nt-track { background: rgba(21, 33, 59, 0.55); }
.is-light .nt-track b { background: rgba(21, 33, 59, 0.6); }
.is-light .nt-track-done { background: linear-gradient(#4a9cf0, #2f6fd6); box-shadow: 0 0 8px rgba(74, 156, 240, 0.5); }
.is-light .nt-track b.is-done { background: #2f6fd6; }
.is-light .nt-track i { background: radial-gradient(circle at 35% 35%, #fff, #eef6ff 70%, #cfe2f7); border: 2px solid #b7c9de; box-shadow: 0 0 10px rgba(255, 255, 255, 0.95); }
.is-light .nt-poster span { box-shadow: 0 6px 14px rgba(21, 33, 59, 0.25); }
.is-light .nt-poster small { background: #15213b; color: #fff; box-shadow: none; }
.is-light .as-item { box-shadow: 0 8px 14px rgba(21, 33, 59, 0.22); }
.is-light .as-item.is-found { box-shadow: 0 0 0 4px #fff, 0 0 0 8px #4a9cf0, 0 0 26px rgba(74, 156, 240, 0.7); }
.is-light .am-float { color: #15213b; text-shadow: 0 2px 6px rgba(255, 255, 255, 0.8); }
.is-light .st-rules { background: #15213b; border: 0; box-shadow: 0 6px 14px rgba(21, 33, 59, 0.25); }
.is-light .st-stamp { box-shadow: 0 6px 14px rgba(21, 33, 59, 0.22); }
.is-light .st-stamp.is-selected { box-shadow: 0 0 0 4px #fff, 0 0 0 8px #4a9cf0, 0 0 26px rgba(74, 156, 240, 0.7); }
.is-light .nt-curtain { background: rgba(186, 228, 250, 0.9); }
.is-light .nt-curtain .as-sign small { color: #3d4d6b; }
.is-light .nt-curtain .as-sign b { color: #15213b; text-shadow: 0 0 20px rgba(255, 255, 255, 0.9); }
.is-light .as-card { background: #fff; border: 3px solid #15213b; color: #15213b; box-shadow: 0 18px 40px rgba(21, 33, 59, 0.25); }
.is-light .as-card b { color: #15213b; }
.is-light .as-path polyline { stroke: rgba(47, 111, 214, 0.75); }
/* Fases de lanterna no tema claro: o placar volta a ser claro por cima do escuro. */
.is-light.is-dark .nt-phase b { color: #fff; }
.is-light.is-dark .nt-phase small, .is-light.is-dark .nt-sub { color: rgba(255, 255, 255, 0.75); }
.is-light.is-dark .nt-track { background: rgba(255, 255, 255, 0.3); }
/* Tela cheia: todas as telas da Atenção (atividades, apresentação, resumo) ocupam a tela toda, até os cantos;
   o conteúdo começa abaixo dos botões do app (66px; 12px com os botões escondidos). */
body.training-fullscreen .trainer:has(.at-root) { padding: 0; }
body.training-fullscreen .at-root:not([data-screen="home"]) { border-radius: 0; padding: 66px 14px 12px; }
body.training-fullscreen .at-root[data-screen="home"] { padding: 66px 14px 14px; }
body.training-fullscreen.controls-hidden .at-root:not([data-screen="home"]), body.training-fullscreen.controls-hidden .at-root[data-screen="home"] { padding-top: 12px; }
body.training-fullscreen .at-root:has(.am-scene) { padding: 0; }
/* Com os botões escondidos, a regra de cima (12px) não pode valer nos jogos: deixava uma faixa clara no alto. */
body.training-fullscreen.controls-hidden .at-root:has(.am-scene) { padding: 0; }

/* ---------- Controle inibitório · Esteira do Chef Astro (attention-conveyor.js) ---------- */
.cv-field { position: absolute; z-index: 2; inset: 25% 0 0 0; }

.cv-item { position: absolute; width: var(--s); max-width: 150px; z-index: 2; width: var(--s); aspect-ratio: 1; margin: 0; padding: 0; translate: -50% -50%; scale: var(--p, 1); rotate: var(--t, 0deg); box-sizing: border-box; border-radius: 50%; border: 4px solid #15213b; background: radial-gradient(circle at 40% 30%, #ffffff, #f2eee6 70%, #e2dccf); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.35); cursor: pointer; opacity: 0.88; transition: opacity 0.2s ease, box-shadow 0.2s ease; -webkit-tap-highlight-color: transparent; }
.cv-item.is-lit { opacity: 1; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 22px rgba(255, 226, 130, 0.6), 0 8px 14px rgba(0, 0, 0, 0.35); }
.cv-art { position: absolute; inset: 12%; display: grid; place-items: center; pointer-events: none; }
.cv-art svg { width: 100%; height: 100%; overflow: visible; }
.cv-item.is-small .cv-art { inset: 30%; }
.cv-item.is-big .cv-art { inset: 4%; }
.cv-art.is-burnt svg { filter: brightness(0.42) saturate(0.5) sepia(0.5); }
.cv-smoke { position: absolute; left: 50%; top: 6%; pointer-events: none; }
.cv-smoke b { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: rgba(140, 140, 150, 0.75); animation: cv-smoke 1.6s ease-out infinite; }
.cv-smoke b:nth-child(2) { left: -12px; animation-delay: 0.5s; }
.cv-smoke b:nth-child(3) { left: 10px; animation-delay: 1s; }
@keyframes cv-smoke { from { transform: translateY(0) scale(0.5); opacity: 0.9; } to { transform: translateY(-34px) scale(1.4); opacity: 0; } }
.cv-shine { position: absolute; right: 14%; top: 12%; width: 18px; height: 18px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 4px #fff); animation: nt-twinkle 1.6s ease-in-out infinite; pointer-events: none; }
.cv-item.is-taken { pointer-events: none; box-shadow: 0 0 0 4px #4fe08a, 0 0 26px rgba(80, 230, 140, 0.85); opacity: 1; }
.cv-item.is-x { box-shadow: 0 0 0 4px #ff6b6b, 0 0 24px rgba(255, 90, 90, 0.75); opacity: 0.6; }
.cv-item.is-wrong { animation: cv-shake 0.45s ease; }
.cv-item.is-early { animation: cv-wobble 0.35s ease; }
@keyframes cv-shake { 0%, 100% { translate: -50% -50%; } 20% { translate: calc(-50% - 10px) -50%; } 40% { translate: calc(-50% + 10px) -50%; } 60% { translate: calc(-50% - 7px) -50%; } 80% { translate: calc(-50% + 7px) -50%; } }
@keyframes cv-wobble { 50% { rotate: 8deg; } }
.cv-not { position: relative; display: block; width: 100%; height: 100%; }
.cv-not > i { position: absolute; inset: 0; border-radius: 50%; border: 6px solid #e5484d; background: linear-gradient(135deg, transparent 46%, #e5484d 46% 54%, transparent 54%); }
.cv-icons { display: flex; gap: 4px; width: 100%; height: 100%; }
.cv-icons > * { flex: 1; min-width: 0; }

.cv-order { display: flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 18px; background: rgba(8, 16, 34, 0.72); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; pointer-events: auto; }
.cv-order b { font-size: clamp(1.05rem, 2vw, 1.45rem); font-weight: 900; white-space: nowrap; }
.cv-order small { padding: 3px 10px; border-radius: 99px; background: #b46cff; color: #fff; font-weight: 900; font-size: 0.78rem; }
.cv-order.is-wait { padding: 10px 18px; color: rgba(255, 255, 255, 0.7); font-weight: 800; animation: none; }
.cv-order.is-invert { background: rgba(96, 40, 170, 0.85); border-color: #d9a6ff; box-shadow: 0 0 24px rgba(180, 108, 255, 0.7); }
.cv-icon { display: block; width: clamp(38px, 6vh, 54px); height: clamp(38px, 6vh, 54px); padding: 3px; box-sizing: border-box; border-radius: 50%; background: radial-gradient(circle at 40% 30%, #fff, #ece6d8); border: 3px solid #15213b; transition: opacity 0.4s ease; }
.cv-icon .cv-art { position: static; inset: auto; width: 100%; height: 100%; }
.cv-icon svg { width: 100%; height: 100%; display: block; }
.cv-lamp { width: 18px; height: 18px; border-radius: 50%; background: #5d6a85; border: 2px solid rgba(255, 255, 255, 0.4); }
.cv-lamp.is-on { background: radial-gradient(circle at 35% 35%, #fff, #d9a6ff 45%, #9a4fe8); box-shadow: 0 0 16px 4px rgba(180, 108, 255, 0.9); }

.cv-box small { color: rgba(255, 255, 255, 0.8); font-weight: 900; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.cv-chef { position: absolute; z-index: 4; left: 4.5%; bottom: 4%; display: flex; align-items: flex-end; gap: 10px; }
.cv-chef-face { width: clamp(64px, 12vh, 104px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2f6e4a, #1b3d2b); border: 3px solid rgba(255, 255, 255, 0.3); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); }
.cv-chef-face img { width: 100%; height: 150%; object-fit: cover; object-position: 50% 8%; }
.cv-chef > div { display: grid; gap: 6px; justify-items: start; padding-bottom: 6px; }
.cv-chef small { color: rgba(255, 255, 255, 0.75); font-weight: 900; font-size: clamp(0.85rem, 1.5vw, 1.05rem); }
.cv-say { position: relative; padding: 8px 16px; border: 0; border-radius: 14px; background: rgba(8, 16, 34, 0.85); color: #fff; font: inherit; font-weight: 800; font-size: clamp(0.95rem, 1.8vw, 1.25rem); cursor: pointer; }
.cv-say::before { content: ""; position: absolute; left: -10px; top: 50%; translate: 0 -50%; border: 9px solid transparent; border-left: 0; border-right-color: rgba(8, 16, 34, 0.85); }
.cv-rain { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.cv-rain i { position: absolute; left: 0; top: var(--y); animation: cv-fly var(--dur) linear infinite; }
.cv-rain i.is-leaf { width: 26px; height: 13px; border-radius: 0 100% 0 100%; background: linear-gradient(135deg, #8bd17c, #3f9a4b); }
.cv-rain i.is-spark { width: 16px; height: 16px; background: #ffd34d; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); filter: drop-shadow(0 0 4px #ffd34d); }
.cv-rain i.is-star { width: 20px; height: 20px; background: #fff; clip-path: polygon(50% 0, 62% 36%, 98% 36%, 68% 58%, 80% 94%, 50% 72%, 20% 94%, 32% 58%, 2% 36%, 38% 36%); }
@keyframes cv-fly { from { transform: translate(-6vw, 0) rotate(0); } 50% { transform: translate(50vw, 6vh) rotate(var(--r)); } to { transform: translate(110vw, -4vh) rotate(calc(var(--r) * 2)); } }
.cv-play .am-float.is-bad { color: #ff8a8a; }

/* Tema claro da esteira */
.is-light .cv-item { box-shadow: 0 8px 14px rgba(21, 33, 59, 0.22); }
.is-light .cv-item.is-lit { box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(74, 156, 240, 0.45), 0 8px 14px rgba(21, 33, 59, 0.22); }
.is-light .cv-order:not(.is-invert) { background: #15213b; }
.is-light .cv-chef small, .is-light .cv-box small { color: #3d4d6b; }
.is-light .cv-say { background: #15213b; }
.is-light .cv-say::before { border-right-color: #15213b; }

body.training-fullscreen .cv-play .cv-field { top: calc(25% + 46px); }
body.training-fullscreen.controls-hidden .cv-play .cv-field { top: 25%; }
.cv-play .nt-moon { display: none; }
.cv-play .nt-stars { max-width: min(46vw, 460px); }

/* Esteira em SVG (beltSvg): cores por tema; trilhos e luzinhas roxos no pedido ao contrário. */
.cv-play { --cvb-s1: #141f3b; --cvb-s2: #2a3f6e; --cvb-gap: rgba(4, 9, 22, 0.75); --cvb-lip: rgba(160, 190, 240, 0.16); --cvb-l0: rgba(255, 226, 130, 0); --cvb-l1: rgba(255, 226, 130, 0.17);
  --cvb-r1: #5b7096; --cvb-r2: #d9e5f7; --cvb-back: #0b1428; --cvb-led: #8fd0ff; --cvb-glow: rgba(90, 170, 255, 0.45); --cvb-lane: rgba(143, 180, 234, 0.3); }
.cv-play.is-invert { --cvb-r1: #6a3fa8; --cvb-r2: #ecd2ff; --cvb-led: #e3b6ff; --cvb-glow: rgba(190, 110, 255, 0.6); }
.is-light.cv-play { --cvb-s1: #b9c8dc; --cvb-s2: #eef3fa; --cvb-gap: rgba(60, 80, 110, 0.32); --cvb-lip: rgba(255, 255, 255, 0.85); --cvb-l0: rgba(255, 255, 255, 0); --cvb-l1: rgba(255, 255, 255, 0.55);
  --cvb-r1: #8197b3; --cvb-r2: #ffffff; --cvb-back: #6d819e; --cvb-led: #4a9cf0; --cvb-glow: rgba(74, 156, 240, 0.35); --cvb-lane: rgba(60, 80, 110, 0.25); }
.is-light.cv-play.is-invert { --cvb-r1: #8a58c8; --cvb-r2: #f3e2ff; --cvb-led: #a45ef0; --cvb-glow: rgba(164, 94, 240, 0.45); }
.cv-belt { position: absolute; left: 50%; top: -34%; bottom: -2%; width: var(--bw, 26%); translate: -50% 0; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 20%); mask-image: linear-gradient(180deg, transparent 0, #000 20%); }
.cv-belt svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.45)); }
.is-light .cv-belt svg { filter: drop-shadow(0 16px 22px rgba(21, 33, 59, 0.25)); }
.cvb-s1 { stop-color: var(--cvb-s1); } .cvb-s2 { stop-color: var(--cvb-s2); }
.cvb-l0 { stop-color: var(--cvb-l0); } .cvb-l1 { stop-color: var(--cvb-l1); }
.cvb-r1 { stop-color: var(--cvb-r1); } .cvb-r2 { stop-color: var(--cvb-r2); }
.cvb-gap { fill: var(--cvb-gap); } .cvb-lip { fill: var(--cvb-lip); }
.cvb-shadow { fill: rgba(0, 0, 0, 0.35); }
.cvb-lane { stroke: var(--cvb-lane); fill: none; }
.cvb-rail-back { stroke: var(--cvb-back); fill: none; }
.cvb-rail-shine { stroke: rgba(255, 255, 255, 0.55); fill: none; }
.cvb-led { fill: var(--cvb-led); }
.cvb-glow { fill: var(--cvb-glow); animation: cv-led 1.8s ease-in-out infinite; }
@keyframes cv-led { 50% { opacity: 0.45; } }
.cvb-slats { animation: cv-slats linear infinite; }
@keyframes cv-slats { from { transform: translateY(0); } to { transform: translateY(var(--slat)); } }
.cv-play.is-paused .cvb-slats { animation-play-state: paused; }
.cv-box { position: absolute; z-index: 1; left: 86%; top: 80%; width: clamp(80px, 15vh, 132px); translate: -50% -50%; display: grid; justify-items: center; gap: 0; pointer-events: none; }
.cv-box svg { width: 100%; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.25)); }
.cv-box.is-bump svg { animation: cv-bump 0.4s cubic-bezier(0.3, 1.6, 0.5, 1); transform-origin: 50% 90%; }
@keyframes cv-bump { 40% { transform: scale(1.1, 0.9); } }
.cv-play.is-lanes-3 .cv-box, .cv-play.is-lanes-4 .cv-box { width: clamp(70px, 12vh, 110px); }
/* Esteira larga: o chef fica em coluna (balão em cima do rosto) para não cobrir a esteira. */
.cv-play.is-lanes-3 .cv-chef, .cv-play.is-lanes-4 .cv-chef { flex-direction: column-reverse; align-items: flex-start; gap: 6px; }
.cv-play.is-lanes-3 .cv-chef > div, .cv-play.is-lanes-4 .cv-chef > div { padding-bottom: 0; }
.cv-play.is-lanes-3 .cv-say, .cv-play.is-lanes-4 .cv-say { max-width: 16vw; text-align: left; }
.cv-play.is-lanes-3 .cv-say::before, .cv-play.is-lanes-4 .cv-say::before { display: none; }
.cv-play.is-lanes-3 .cv-chef-face, .cv-play.is-lanes-4 .cv-chef-face { width: clamp(56px, 10vh, 84px); }
.cv-play.is-lanes-3 .cv-chef small, .cv-play.is-lanes-4 .cv-chef small { display: none; }
.cv-order.is-new, .cv-say.is-new { animation: at-pop 0.35s ease; }
/* Cronômetro decrescente da esteira (no lugar das estrelas). */
.cv-timer { display: grid; justify-items: center; gap: 5px; pointer-events: none; }
.cv-timer b { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35); }
.cv-timer i { display: block; width: clamp(140px, 22vw, 280px); height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.cv-timer span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #7df0a4, #3fd27c); box-shadow: 0 0 10px rgba(80, 230, 140, 0.8); }
.cv-timer.is-end b { color: #ff8a8a; animation: cv-tick 1s ease infinite; }
.cv-timer.is-end span { background: linear-gradient(90deg, #ff8a8a, #e5484d); box-shadow: 0 0 10px rgba(255, 90, 90, 0.8); }
@keyframes cv-tick { 0% { transform: scale(1.18); } 30%, 100% { transform: scale(1); } }
.is-light .cv-timer b { color: #15213b; text-shadow: none; }
.is-light .cv-timer i { background: rgba(21, 33, 59, 0.15); }
.is-light .cv-timer span { background: linear-gradient(90deg, #4a9cf0, #2f6fd6); box-shadow: none; }
.is-light .cv-timer.is-end b { color: #e5484d; }

/* Carimbos (11/2026): quadro das regras maior e destacado; carimbos numa coluna à direita; o escolhido cresce e os
   outros ficam cinza; regra do carimbo escolhido acesa; fase 15: figuras que brilham e trocam de lugar. */
.st-play.is-night .st-rules { grid-auto-flow: row; grid-template-columns: repeat(2, auto); gap: 8px 18px; padding: 10px 18px; margin-top: 2px; border-radius: 18px; background: rgba(8, 16, 34, 0.86); border: 2px solid #ffd766; box-shadow: 0 0 0 4px rgba(255, 214, 102, 0.18), 0 10px 24px rgba(0, 0, 0, 0.35); }
.st-play.is-night .st-rule { gap: 8px; padding: 4px 8px; border-radius: 12px; transition: background 0.2s ease; }
.st-play.is-night .st-rule.is-on { background: rgba(255, 214, 102, 0.22); box-shadow: inset 0 0 0 2px rgba(255, 214, 102, 0.7); }
.st-play.is-night .st-rule svg { width: clamp(32px, 4.4vw, 48px); height: clamp(32px, 4.4vw, 48px); }
.st-play.is-night .st-rule img { width: clamp(38px, 5.4vw, 58px); height: clamp(38px, 5.4vw, 58px); }
.st-play.is-night .st-rule small { max-width: 11em; font-size: clamp(0.9rem, 1.6vw, 1.2rem); }
.st-play.is-night .st-rule b { font-size: 1.2rem; }
.st-swatch { display: block; flex: none; width: clamp(32px, 4.4vw, 46px); aspect-ratio: 1; border-radius: 50%; border: 4px solid; box-sizing: border-box; }
.is-light.st-play .st-rules { background: #15213b; border-color: #ffd766; }
.st-play.is-night .st-stamps { top: 24%; right: 2%; flex-direction: column; gap: 12px; }
.st-play.is-night .st-stamp { width: clamp(56px, 7.6vw, 86px); transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease; }
.st-play.is-night .st-stamps.is-4 .st-stamp { width: clamp(52px, 6.8vw, 76px); }
.st-play .st-stamp.is-selected { transform: scale(1.24); z-index: 1; }
.st-play .st-stamps.has-pick .st-stamp:not(.is-selected) { filter: grayscale(0.9); opacity: 0.5; transform: scale(0.88); }
.st-play.is-night .as-field, .st-play.is-night:not(.is-tall) .as-field { inset: 31% 12% 3% 6%; }
.st-play.is-night.is-tall .as-field { inset: 41% 12% 3% 6%; }
body.training-fullscreen .st-play.is-night .st-stamps { top: calc(24% + 40px); }
body.training-fullscreen .st-play.is-night .as-field { top: calc(31% + 50px); }
body.training-fullscreen .st-play.is-night.is-tall .as-field { top: calc(41% + 40px); }
body.training-fullscreen.controls-hidden .st-play.is-night .as-field { top: 31%; }
body.training-fullscreen.controls-hidden .st-play.is-night.is-tall .as-field { top: 41%; }
.st-item.is-swap { animation: st-swap 0.55s ease-in-out infinite alternate; }
@keyframes st-swap { to { box-shadow: 0 0 0 5px #fff, 0 0 30px 10px rgba(255, 230, 120, 0.95); scale: calc(var(--k, 1) * 1.08); } }
.st-item.is-swapped { animation: am-in 0.45s cubic-bezier(0.3, 1.5, 0.5, 1); }
.st-play .nt-phase b { white-space: nowrap; }
.st-play.is-night.is-kit .as-item > img { inset: 6%; width: 88%; height: 88%; }
/* Ache as setas: a seta (SVG) ocupa o lugar da pelúcia na ficha e no Pedido. */
.sa-fig { display: block; width: 100%; height: 100%; pointer-events: none; }
.sa-fig svg { display: block; width: 100%; height: 100%; }
.is-night .as-item > .sa-fig { position: absolute; inset: 14%; width: 72%; height: 72%; z-index: 1; }
.is-night .nt-poster span .sa-fig { width: 72%; height: 72%; }
.at-intro-text .ar-phases { margin-top: 12px; }
.at-intro-text .ar-phases p { display: block; }
/* Ache as sombras: as pelúcias viram silhuetas pretas (só a forma). */
.as-item img.sh-fig, .nt-poster img.sh-fig, .as-memo img.sh-fig { filter: brightness(0) !important; }
.nt-poster img.sh-fig.is-flip { transform: scaleX(-1); }
/* Número na forma: a forma ocupa mais a ficha (número legível). */
.is-night .as-item > .sa-fig.is-shape { inset: 9%; width: 82%; height: 82%; }
.is-night .nt-poster span .sa-fig.is-shape { width: 84%; height: 84%; }
/* Ache a letra: a letra ocupa a ficha; nas fases "sem fichas" ela fica solta, como na folha (por cima umas das outras). */
.is-night .as-item > .sa-fig.is-letter { inset: 6%; width: 88%; height: 88%; }
.is-night .as-item:has(.is-bare) { background: none; border: 0; box-shadow: none; }
.is-night .as-item:has(.is-bare)::before { display: none; }
.is-night .as-item:has(.is-bare) > .sa-fig { inset: -12%; width: 124%; height: 124%; filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.9)) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25)); }
.is-night .as-item.is-found:has(.is-bare) { box-shadow: 0 0 0 4px #4fe08a, 0 0 22px rgba(80, 230, 140, 0.8); background: rgba(255, 255, 255, 0.5); }
.is-night .as-item.is-x:has(.is-bare) { box-shadow: 0 0 0 4px #ff6b6b; background: rgba(255, 255, 255, 0.4); }
.is-night .nt-poster span .sa-fig.is-letter { width: 92%; height: 92%; }
/* Fases "sem fichas" do Ache a letra: as letras ficam numa folha branca com moldura roxa (como a folha do dono). */
.as-play.is-night .as-field:has(.is-bare) { background: #fff; border: 8px solid #5530c9; border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); overflow: hidden; }
.is-night .as-item:has(.is-bare) > .sa-fig { filter: none; }

/* ---------- Atenção alternada · Código das figuras (attention-coding.js) ---------- */
.cd-play .nt-moon { display: none; }
.cd-count { padding: 6px 16px; border-radius: 99px; background: rgba(8, 16, 34, 0.75); color: #fff; font-weight: 900; font-size: clamp(0.95rem, 1.7vw, 1.2rem); }
.is-light .cd-count { background: #15213b; }
.cd-sheet { position: absolute; z-index: 1; left: 5.5%; right: 3%; top: 13%; bottom: 17%; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 2.2%; padding: 1.4% 1.8%; box-sizing: border-box; border-radius: 14px; background: #fff; border: 7px solid #5530c9; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.cd-key { display: flex; justify-content: center; }
.cd-keycell { display: grid; grid-template-rows: auto auto; width: min(calc(100% / var(--cols)), 13vh); }
.cd-keycell .cd-num, .cd-keycell img { box-sizing: border-box; border: 3px solid #111; margin: -1.5px; background: #fff; }
.cd-keycell .cd-num { display: grid; place-items: center; height: clamp(26px, 5.4vh, 46px); }
.cd-keycell img { width: 100%; height: clamp(40px, 9.5vh, 82px); object-fit: contain; padding: 6%; }
.cd-num { color: #111; font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: clamp(1.1rem, 3.6vh, 2rem); line-height: 1; }
.cd-lists { display: grid; grid-template-rows: repeat(var(--rows), minmax(0, 1fr)); gap: 3%; min-height: 0; }
.cd-row { display: flex; justify-content: center; min-height: 0; }
.cd-cell { display: grid; grid-template-rows: 1fr 1fr; width: min(calc(100% / var(--cols)), 13vh); min-height: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.cd-cell > span { display: grid; place-items: center; min-height: 0; box-sizing: border-box; border: 3px solid #111; margin: -1.5px; background: #fff; overflow: hidden; }
.cd-cell .cd-top img { width: 100%; height: 100%; object-fit: contain; padding: 8%; box-sizing: border-box; }
.cd-cell.is-inverse .cd-top { background: #f1ecff; }
.cd-cell .cd-box img { width: 100%; height: 100%; object-fit: contain; padding: 10%; box-sizing: border-box; }
.cd-cell.is-active .cd-box { background: #fff3b0; box-shadow: inset 0 0 0 4px #f5b800; animation: cd-blink 1.2s ease-in-out infinite; }
@keyframes cd-blink { 50% { background: #ffe680; } }
.cd-cell.is-done .cd-box .cd-num { color: #1f9d55; }
.cd-cell.is-fresh .cd-box > * { animation: at-pop 0.35s ease; }
.cd-pad { position: absolute; z-index: 1; left: 5.5%; right: 3%; bottom: 2.5%; height: 12%; display: flex; justify-content: center; align-items: center; gap: clamp(6px, 1.2vw, 14px); }
.cd-pad button { height: 100%; aspect-ratio: 1; max-height: 84px; border: 3px solid #15213b; border-radius: 16px; background: radial-gradient(circle at 40% 30%, #fff, #ece6d8); color: #15213b; font-family: Arial, Helvetica, sans-serif; font-weight: 900; font-size: clamp(1.4rem, 4.4vh, 2.4rem); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3); cursor: pointer; }
.cd-pad button:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0, 0, 0, 0.3); }
.cd-pad.is-figs button img { width: 86%; height: 86%; object-fit: contain; }
.cd-pad button.is-wrong { animation: cv-shake 0.45s ease; border-color: #e5484d; }
.cd-play .at-hand { z-index: 9; }
body.training-fullscreen .cd-play .cd-sheet { top: calc(13% + 46px); }
body.training-fullscreen.controls-hidden .cd-play .cd-sheet { top: 13%; }
/* Código: legenda e listas com a mesma largura de caixa; figuras sempre inteiras (posição absoluta dentro da caixa). */
.cd-sheet { top: 12%; bottom: 16%; --cw: min(calc(84vw / var(--cols)), 12.5vh); }
.cd-keycell, .cd-cell { width: var(--cw); flex: none; }
.cd-keycell { grid-template-rows: clamp(24px, 4.6vh, 40px) calc(var(--cw) * 0.8); }
.cd-play[style*="--rows:3"] .cd-keycell { grid-template-rows: clamp(22px, 4vh, 34px) min(calc(var(--cw) * 0.7), 7vh); }
.cd-keycell img { height: auto; min-height: 0; }
.cd-keycell .cd-pic, .cd-cell > span { position: relative; }
.cd-keycell img { width: 100%; height: 100%; object-fit: contain; padding: 6%; }
.cd-cell .cd-top img, .cd-cell .cd-box img { position: absolute; inset: 7%; width: 86%; height: 86%; padding: 0; object-fit: contain; }
.cd-cell { max-height: calc(var(--cw) * 2); align-self: center; height: 100%; }
.cd-pad { height: 11%; }
.cd-cell .cd-top img, .cd-cell .cd-box img { inset: 3%; width: 94%; height: 94%; }
.cd-keycell img { padding: 3%; }
/* Código: a legenda é o MODELO — faixa amarela com etiqueta, fichas arredondadas separadas, número em bolinha roxa. */
.cd-key { position: relative; gap: clamp(4px, 0.8vw, 10px); align-self: center; justify-self: center; padding: clamp(14px, 2.4vh, 22px) clamp(10px, 1.4vw, 18px) clamp(8px, 1.2vh, 12px); border-radius: 16px; background: #fff3cf; border: 3px solid #f0b429; box-shadow: 0 4px 0 #d99a14; }
.cd-key-tag { position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%); padding: 3px 16px; border-radius: 999px; background: #f0b429; color: #4a3200; font: 900 clamp(11px, 1.6vh, 15px)/1.2 inherit; font-style: normal; letter-spacing: 0.12em; text-transform: uppercase; box-shadow: 0 2px 0 #c98a0a; }
.cd-key .cd-keycell { width: calc(var(--cw) * 0.92); gap: 3px; justify-items: center; }
.cd-keycell .cd-num, .cd-keycell img { border: 0; margin: 0; }
.cd-keycell .cd-num { width: clamp(24px, 4.4vh, 38px); height: clamp(24px, 4.4vh, 38px); border-radius: 50%; background: #5530c9; color: #fff; font-size: clamp(14px, 2.6vh, 22px); box-shadow: 0 2px 0 #3a1f94; }
.cd-keycell img { border-radius: 12px; background: #fff; border: 2px solid #f0c75a; }
.cd-play[style*="--rows:3"] .cd-key { padding-top: 12px; padding-bottom: 6px; }
.cd-key { box-sizing: border-box; max-width: 100%; }
.cd-key .cd-keycell { flex: 1 1 0; min-width: 0; max-width: calc(var(--cw) * 0.92); width: auto; }
.cd-play[style*="--rows:3"] .cd-keycell { grid-template-rows: clamp(20px, 3.6vh, 30px) min(calc(var(--cw) * 0.8), 8vh); }
.cd-play[style*="--rows:3"] .cd-keycell .cd-num { width: clamp(20px, 3.6vh, 30px); height: clamp(20px, 3.6vh, 30px); font-size: clamp(12px, 2.2vh, 18px); }
/* Ache a palavra (seletiva 6): figuras à esquerda, quadro de letras à direita, numa folha branca com moldura roxa. */
.wd-sheet { position: absolute; z-index: 1; left: 5.5%; right: 3%; top: 12%; bottom: 3%; display: grid; grid-template-columns: minmax(0, 0.8fr) auto; align-items: center; justify-content: center; gap: 4%; padding: 1.6% 3%; border-radius: 14px; background: #fff; border: 7px solid #5530c9; box-shadow: 0 10px 30px rgb(0 0 0 / 25%); box-sizing: border-box; }
.wd-figs { display: grid; grid-template-columns: repeat(var(--cols-f, 1), minmax(0, 1fr)); gap: clamp(6px, 1.4vh, 14px); align-content: center; justify-items: center; max-height: 100%; min-width: 0; }
.wd-play[style*="--n:3"] .wd-figs, .wd-play[style*="--n:4"] .wd-figs, .wd-play[style*="--n:5"] .wd-figs { --cols-f: 2; }
.wd-fig { position: relative; display: grid; justify-items: center; gap: 4px; padding: 6px; border: 3px solid transparent; border-radius: 16px; background: none; cursor: pointer; font: inherit; color: #111; }
.wd-fig img { width: min(100%, var(--fig, 30vh)); height: var(--fig, 30vh); object-fit: contain; }
.wd-play[style*="--n:2"] { --fig: 20vh; }
.wd-play[style*="--n:3"], .wd-play[style*="--n:4"] { --fig: 15vh; }
.wd-play[style*="--n:5"] { --fig: 12vh; }
.wd-fig.is-active { border-color: #f5b800; background: #fff8dc; }
.wd-fig.is-found { border-color: var(--wc); background: color-mix(in srgb, var(--wc) 22%, #fff); }
.wd-fig.is-found img { opacity: 0.75; }
.wd-fig.is-fresh { animation: wd-pop 0.5s ease; }
.wd-check { position: absolute; top: 2px; right: 4px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #2fb36f; color: #fff; font-size: 18px; }
.wd-word { display: flex; gap: 3px; }
.wd-word i { font: 700 clamp(14px, 2.8vh, 26px)/1 Arial, Helvetica, sans-serif; font-style: normal; letter-spacing: 0.04em; color: #5f6575; }
.wd-word i.is-on { color: #1a7a49; }
.wd-word.is-blanks i { display: grid; place-items: end center; min-width: clamp(14px, 2.4vh, 24px); height: clamp(18px, 3.2vh, 30px); border-bottom: 3px solid #333; color: #1a7a49; }
.wd-grid { display: grid; grid-template-columns: repeat(var(--size), var(--cell)); grid-template-rows: repeat(var(--size), var(--cell)); --cell: min(calc(70vh / var(--size)), calc(50vw / var(--size))); border: 3px solid #111; }
.wd-cell { display: grid; place-items: center; margin: 0; padding: 0; border: 1.5px solid #111; background: #fff; color: #111; font: 500 calc(var(--cell) * 0.56)/1 Arial, Helvetica, sans-serif; cursor: pointer; touch-action: manipulation; }
.wd-cell.is-picked { background: #ffe680; }
.wd-cell.is-found { background: var(--wc); }
.wd-cell.is-fresh { animation: wd-pop 0.45s ease; }
.at-root .wd-cell.is-wrong { animation: at-shake 0.45s ease; background: #ffd6d6; border-color: #111 !important; }
@keyframes wd-pop { 50% { transform: scale(1.12); } }
.wd-play.is-light .wd-sheet { box-shadow: 0 10px 30px rgb(40 70 120 / 22%); }
body.training-fullscreen .wd-play .wd-sheet { top: calc(12% + 40px); }
body.training-fullscreen.controls-hidden .wd-play .wd-sheet { top: 12%; }
/* Ache a palavra: o quadro mede pelo espaço da folha (não passa da borda). */
.wd-sheet { container-type: size; grid-template-columns: minmax(0, 1fr) auto; gap: 3%; }
.wd-grid { --cell: min(calc(92cqh / var(--size)), calc(58cqw / var(--size))); }
.wd-play[style*="--n:2"] { --fig: 26cqh; }
.wd-play[style*="--n:3"], .wd-play[style*="--n:4"] { --fig: 18cqh; }
.wd-play[style*="--n:5"] { --fig: 14cqh; }
.wd-fig img { height: var(--fig, 50cqh); width: min(100%, var(--fig, 50cqh)); }
.wd-word { flex-wrap: nowrap; max-width: 100%; }
.wd-play[style*="--n:3"] .wd-word i, .wd-play[style*="--n:4"] .wd-word i, .wd-play[style*="--n:5"] .wd-word i { font-size: clamp(11px, 3.2cqh, 20px); }
.wd-play[style*="--n:3"] .wd-word.is-blanks i, .wd-play[style*="--n:4"] .wd-word.is-blanks i, .wd-play[style*="--n:5"] .wd-word.is-blanks i { min-width: clamp(9px, 2.6cqh, 16px); height: clamp(14px, 4cqh, 22px); border-bottom-width: 2px; }
.wd-word.is-blanks { gap: 2px; }
.wd-play[style*="--n:3"], .wd-play[style*="--n:4"] { --fig: 27cqh; }
.wd-play[style*="--n:5"] { --fig: 19cqh; }
.wd-word.is-blanks { gap: 5px; }
.wd-play[style*="--n:5"] .wd-word.is-blanks { gap: 3px; }

/* Áreas (Percepção Visual, Memória) e atividades que são outro módulo (Encontre o Par): capa = imagem do cartão. */
.ah-cover { background: #fff; }
.ah-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.at-types.ah-types { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Atenção, passo 1: só o nome do tipo (pedido do dono), botões baixos. */
.at-types.is-names .at-type { min-height: 0; padding: 18px 12px; align-content: center; }
.at-types.is-names .at-type strong { font-size: clamp(1rem, 1.7vw, 1.2rem); }
/* Botões escondidos na tela cheia: nada de faixa em cima, a Atenção continua na tela toda (pedido do dono). */
body.training-fullscreen.controls-hidden .trainer:has(.at-root) { padding: 0; }
/* iPad/Safari: tamanhos fixos, sem depender de "100% da casinha" nem de aspect-ratio em botão (pedido do dono, 11/2026).
   Código das figuras: a figura do modelo tem altura fixa (não invade a lista). */
.cd-key { --kh: calc(var(--cw) * 0.8); }
.cd-play[style*="--rows:3"] .cd-key { --kh: min(calc(var(--cw) * 0.8), 8vh); }
.cd-key .cd-keycell { grid-template-rows: auto var(--kh) !important; }
.cd-key .cd-keycell img { width: 100%; height: var(--kh) !important; max-height: var(--kh); box-sizing: border-box; object-fit: contain; }
/* Carimbos: botão redondo com largura e altura iguais. */
.st-stamp { --st: clamp(58px, 8.5vw, 92px); width: var(--st); height: var(--st); flex: none; box-sizing: border-box; }
.st-play.is-night .st-stamp { --st: clamp(56px, 7.6vw, 86px); width: var(--st); height: var(--st); }
.st-play.is-night .st-stamps.is-4 .st-stamp { --st: clamp(52px, 6.8vw, 76px); width: var(--st); height: var(--st); }
/* Carimbos do Tuca: os carimbos ficam numa "caixa de carimbos" cinza (cartão de metal), cada um com o aro da própria cor
   (pedido do dono, 11/2026). --sc = cor forte do carimbo, --sl = cor clara. */
.st-play.is-night .st-stamps { padding: 16px 14px; gap: 16px; border-radius: 30px; background: linear-gradient(160deg, #eef0f3 0%, #c9ced6 45%, #aeb4be 100%); border: 3px solid #8d939d; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 6px rgba(60, 66, 78, 0.35), 0 10px 24px rgba(0, 0, 0, 0.45); }
.st-play.is-night .st-stamp { border: 4px solid var(--sc, #15213b); background: radial-gradient(circle at 40% 30%, #ffffff, #f4f1ea 70%, #e6e1d6); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 0 14px color-mix(in srgb, var(--sl, #fff) 80%, transparent), 0 4px 8px rgba(40, 46, 58, 0.35); }
.st-play.is-night .st-stamp.is-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 7px var(--sc, #4fe08a), 0 0 26px var(--sl, rgba(80, 230, 140, 0.85)); }
.st-play.is-light .st-stamps { border-color: #9aa1ab; }
/* Carimbo escolhido cabe na caixa: mais espaço por dentro, cresce menos e anel mais fino. */
.st-play.is-night .st-stamps { padding: 22px 22px; gap: 24px; }
.st-play .st-stamp.is-selected { transform: scale(1.12); }
.st-play.is-night .st-stamp.is-selected { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--sc, #4fe08a), 0 0 16px var(--sl, rgba(80, 230, 140, 0.85)); }
/* Número na forma (pedido do dono): sem a ficha redonda em volta, nos itens e no modelo; só a forma (miolo branco,
   borda preta) com o número dentro. Achado / errado / ajuda viram brilho em volta da própria forma. */
.is-night .as-item:has(.is-shape), .is-night .nt-poster span:has(.is-shape) { background: none; border: 0; box-shadow: none; border-radius: 0; }
.is-night .as-item:has(.is-shape)::before { display: none; }
.is-night .as-item > .sa-fig.is-shape { inset: -4%; width: 108%; height: 108%; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.is-night .nt-poster span .sa-fig.is-shape { width: 100%; height: 100%; filter: drop-shadow(0 0 6px rgba(255, 214, 102, 0.95)) drop-shadow(0 0 2px rgba(255, 214, 102, 0.95)); }
.is-night .as-item.is-found:has(.is-shape) { box-shadow: none; }
.is-night .as-item.is-found:has(.is-shape) > .sa-fig { filter: drop-shadow(0 0 3px #4fe08a) drop-shadow(0 0 3px #4fe08a) drop-shadow(0 0 12px rgba(80, 230, 140, 0.9)); }
.is-night .as-item.is-hint:has(.is-shape) { box-shadow: none; }
.is-night .as-item.is-hint:has(.is-shape) > .sa-fig { filter: drop-shadow(0 0 3px #ffd766) drop-shadow(0 0 14px rgba(255, 214, 102, 0.9)); }
.is-night .as-item.is-x:has(.is-shape), .is-night .as-item.is-wrong:has(.is-shape) { box-shadow: none; }
.is-night .as-item.is-x:has(.is-shape) > .sa-fig, .is-night .as-item.is-wrong:has(.is-shape) > .sa-fig { filter: drop-shadow(0 0 3px #ff6b6b) drop-shadow(0 0 12px rgba(255, 90, 90, 0.85)); }
.is-night .nt-poster span.sa-fig.is-shape { background: none; border: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto; width: 100%; height: 100%; }
/* Boca do Som (Fonemas, features/fono-mouths.js): mesmo jogo da Atenção seletiva, dentro do módulo Fonemas.
   Itens = foto da boca com a letra embaixo; modelo = a onda do som (tocar = ouvir). */
.sf-root[data-screen="mouths"] { height: 100%; }
.sf-root[data-screen="mouths"] > .at-root { height: 100%; }
.trainer:has(.sf-root[data-screen="mouths"] .at-root[data-screen="game"]) { overflow: hidden; padding: 0; }
.trainer:has(.sf-root[data-screen="mouths"] .at-root[data-screen="game"]) > .choices.at-host { height: 100%; }
.sa-fig.is-mouth { display: grid; grid-template-rows: minmax(0, 1fr) auto; justify-items: center; align-items: center; }
.sa-fig.is-mouth img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 18%; }
.sa-fig.is-mouth b { font: 900 calc(var(--s, 15vh) * 0.17) / 1 Arial, Helvetica, sans-serif; color: #15213b; margin-top: 2%; }
.is-night .as-item > .sa-fig.is-mouth { inset: 13%; width: 74%; height: 74%; }
.fm-wave { width: 82%; height: 82%; object-fit: contain; border-radius: 50%; }
.is-night .nt-poster span .fm-wave { width: 86%; height: 86%; }
.fm-play .as-poster { cursor: pointer; }
.fm-cover { background: #f5f5f5; display: grid; place-items: center; }
.fm-cover img { width: 100%; height: 100%; object-fit: cover; }
.fm-sound { margin: 6px 0 10px; color: var(--muted); font-weight: 800; }
.fm-sound b { color: #17766d; font-size: 1.2em; }
.is-night .as-item > .sa-fig.is-mouth { inset: 7%; width: 86%; height: 86%; }
.sa-fig.is-mouth { grid-template-rows: minmax(0, 1fr) 24%; }
.sa-fig.is-mouth img { border-radius: 22%; }
.sa-fig.is-mouth b { font-size: calc(var(--s, 15vh) * 0.15); margin-top: 0; align-self: start; }
/* Boca do Som: fichas quadradas (cantos arredondados) para a foto da boca encaixar melhor (pedido do dono). */
.is-night .as-item:has(.is-mouth) { border-radius: 18%; }
.is-night .as-item:has(.is-mouth)::before { display: none; }
.is-night .as-item > .sa-fig.is-mouth { inset: 5%; width: 90%; height: 90%; }
.sa-fig.is-mouth img { border-radius: 12%; }
/* Boca do Som da fase 3 em diante: só a letra, grande, no meio da ficha. */
.sa-fig.is-mouth.is-text { display: grid; grid-template-rows: 1fr; place-items: center; }
.sa-fig.is-mouth.is-text b { font-size: calc(var(--s, 15vh) * 0.52); margin: 0; align-self: center; line-height: 1; }
.sa-fig.is-mouth.is-text.is-long b { font-size: calc(var(--s, 15vh) * 0.36); letter-spacing: -0.02em; }
