/* =========================================================
   ESTILO GERAL
   Layout: telas em camada única (position fixed) com rolagem interna;
   jogos ocupam 100% da tela, sem rolagem.
   ========================================================= */
:root {
  --ink: #2B2340;
  --ink-soft: #5B5377;
  --sky: #8ED8FF;
  --sky-2: #E4F7FF;
  --sun: #FFD23F;
  --sun-dark: #E0A800;
  --orange: #FF8A2B;
  --orange-dark: #D96510;
  --coral: #FF6B6B;
  --grape: #8E6CF0;
  --mint: #2FBF71;
  --card: #FFFFFF;
  --line: rgba(43, 35, 64, .12);
  --shadow: rgba(43, 35, 64, .18);
  --font-display: 'Baloo 2', 'Arial Rounded MT Bold', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --tap: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--sky);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
  -webkit-text-size-adjust: 100%;
}
button { font-family: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
input { font-family: inherit; user-select: text; -webkit-user-select: text; }
svg { display: block; }
.ic { width: 1.5em; height: 1.5em; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; }

#app { position: fixed; inset: 0; overflow: hidden; }
.screen {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse 30% 9% at 15% 14%, rgba(255,255,255,.9) 60%, transparent 62%),
    radial-gradient(ellipse 22% 7% at 82% 24%, rgba(255,255,255,.8) 60%, transparent 62%),
    radial-gradient(ellipse 26% 8% at 60% 6%, rgba(255,255,255,.6) 60%, transparent 62%),
    linear-gradient(180deg, var(--sky) 0%, var(--sky-2) 75%);
  animation: screenIn .35s ease-out;
}
@keyframes screenIn { from { opacity: 0; transform: translateY(12px); } }
.scroll {
  flex: 1; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding-top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 28px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.scroll > * { max-width: 1100px; margin-left: auto !important; margin-right: auto !important; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.center { align-items: center; text-align: center; }
.center-screen .scroll { display: flex; align-items: center; }
.flex1 { flex: 1; }

/* ---------- tipografia ---------- */
.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 6.5vw, 3.4rem); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.brand { color: var(--orange); white-space: nowrap; }
.brand-sm { font-family: var(--font-display); font-weight: 800; color: var(--orange-dark); font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
.sec-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 4.6vw, 2.1rem); margin: 0; line-height: 1.1; text-wrap: balance; display: flex; align-items: center; gap: 8px; }
.sec-title.center { justify-content: center; }
.sec-title.left { margin: 22px 0 10px; }
.lead { font-size: 1.15rem; line-height: 1.5; margin: 0; max-width: 34em; color: var(--ink-soft); font-weight: 600; }
.note { font-size: .92rem; color: var(--ink-soft); margin: 4px 0 0; }

/* ---------- botões ---------- */
.btn {
  min-height: var(--tap); padding: 0 28px; border: none; border-radius: 999px;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  background: var(--card); color: var(--ink);
  box-shadow: 0 6px 0 var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .08s, box-shadow .08s; text-decoration: none;
}
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--shadow); }
.btn.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 0 var(--orange-dark); }
.btn.primary:active { box-shadow: 0 2px 0 var(--orange-dark); }
.btn.big { min-height: 72px; font-size: 1.4rem; padding: 0 34px; }
.btn.huge { min-height: 84px; font-size: 1.7rem; padding: 0 40px; }
.btn.ghost { background: #fff; }
.btn.danger { color: #C9303B; }
.btn.danger-fill { background: #E5484D; color: #fff; box-shadow: 0 6px 0 #A8262B; }
.btn.small-btn { min-height: 56px; padding: 0 18px; font-size: 1.05rem; }
.btn .ic { width: 1.3em; height: 1.3em; }
.icon-btn {
  width: var(--tap); height: var(--tap); flex: none; border-radius: 50%; border: none;
  background: #fff; color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 5px 0 var(--shadow); transition: transform .08s, box-shadow .08s;
}
.icon-btn:active { transform: translateY(3px) scale(.96); box-shadow: 0 2px 0 var(--shadow); }
.icon-btn .ic { width: 34px; height: 34px; }
.icon-btn.gold { color: #E09B00; }
.link-btn { background: none; border: none; color: var(--ink-soft); font-weight: 700; font-size: 1rem; text-decoration: underline; min-height: 48px; }
.row-btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.row-btns.left { justify-content: flex-start; }

.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chips.left { justify-content: flex-start; }
.chip-btn {
  min-width: var(--tap); min-height: var(--tap); padding: 0 18px; border-radius: 22px; border: 3px solid var(--line);
  background: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink);
  transition: transform .1s;
}
.chip-btn.big { font-size: 1.5rem; padding: 0 24px; min-height: 76px; }
.chip-btn.sel { background: var(--sun); border-color: var(--sun-dark); transform: scale(1.06); }
.chip-btn:active { transform: scale(.95); }

/* ---------- topo das telas ---------- */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.top-title { flex: 1; min-width: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 4.5vw, 2rem); margin: 0; line-height: 1.1; }
.kid-chip {
  display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 4px 16px 4px 4px; border-radius: 999px;
  border: none; background: #fff; box-shadow: 0 5px 0 var(--shadow); font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; max-width: 46vw;
}
.kid-chip-av { width: 52px; height: 52px; flex: none; }
.kid-chip-av svg { width: 100%; height: 100%; }
.kid-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* mascote: ver css/mascote.css */

.bubble {
  position: relative; background: #fff; border-radius: 26px; padding: 14px 20px; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.15rem, 3.8vw, 1.5rem); line-height: 1.2; box-shadow: 0 6px 0 var(--shadow); max-width: 28em;
}
.bubble::before { content: ""; position: absolute; left: -12px; top: 50%; translate: 0 -50%; border: 12px solid transparent; border-right-color: #fff; border-left: 0; }
.bubble.pop { animation: pop .4s; }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.boing { animation: boing .5s; }
@keyframes boing { 0% { transform: scale(1); } 30% { transform: scale(1.18, .86); } 60% { transform: scale(.92, 1.1); } 100% { transform: scale(1); } }
.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-10px); } 40%, 80% { transform: translateX(10px); } }
.wobble { animation: wobble .6s; }
@keyframes wobble { 25% { transform: rotate(-5deg); } 50% { transform: rotate(4deg); } 75% { transform: rotate(-2deg); } }

/* ---------- toast e textos flutuantes ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); translate: -50% 0; z-index: 90;
  display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 20px 8px 10px; border-radius: 999px;
  font-weight: 800; font-size: 1.05rem; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: calc(100vw - 32px); animation: toastIn .35s;
}
.toast.out { opacity: 0; transition: opacity .4s; }
@keyframes toastIn { from { transform: translateY(30px); opacity: 0; } }
.fx-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.float-text {
  position: fixed; z-index: 85; pointer-events: none; translate: -50% -50%; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem;
  color: #fff; -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; animation: floatUp 1.2s ease-out forwards; white-space: nowrap;
}
@keyframes floatUp { 0% { transform: translateY(0) scale(.6); opacity: 0; } 15% { transform: translateY(-10px) scale(1.15); opacity: 1; } 100% { transform: translateY(-80px) scale(1); opacity: 0; } }

/* ---------- modal ---------- */
.modal-wrap { position: fixed; inset: 0; z-index: 70; background: rgba(43,35,64,.5); display: grid; place-items: center; padding: 16px; animation: screenIn .25s; }
.modal { background: var(--sky-2); border-radius: 32px; padding: 24px 18px; width: min(460px, 100%); max-height: calc(100% - 8px); overflow-y: auto; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.modal.wide { width: min(640px, 100%); }
.big-input { font-size: 2rem; font-weight: 800; text-align: center; width: 180px; min-height: 68px; border-radius: 20px; border: 3px solid var(--line); }

/* ---------- 1. configuração ---------- */
.setup-body { max-width: 680px; padding-top: 4vh; }
.steps { display: flex; gap: 8px; justify-content: center; }
.steps i { width: 30px; height: 10px; border-radius: 9px; background: rgba(43,35,64,.15); }
.steps i.on { background: var(--orange); }
.count-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.count-btn {
  width: 84px; height: 84px; border-radius: 28px; border: none; background: #fff; box-shadow: 0 6px 0 var(--shadow);
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; transition: transform .1s;
}
.count-btn.sel { background: var(--sun); box-shadow: 0 6px 0 var(--sun-dark); transform: scale(1.08); }
.kid-form { width: 100%; display: flex; flex-direction: column; gap: 16px; align-items: stretch; text-align: left; }
.kf-preview { display: flex; justify-content: center; }
.kf-av { width: 120px; height: 120px; border-radius: 50%; box-shadow: 0 6px 0 var(--shadow); }
.kf-av svg { width: 100%; height: 100%; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.field input { min-height: 64px; border-radius: 20px; border: 3px solid var(--line); padding: 0 18px; font-size: 1.35rem; font-weight: 700; background: #fff; color: var(--ink); width: 100%; }
.field input:focus { border-color: var(--grape); outline: none; }
.field input.need { border-color: var(--coral); animation: shake .4s; }
.chips.ages { justify-content: flex-start; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.color-row { display: flex; flex-wrap: wrap; gap: 10px; }
.color-btn { width: 64px; height: 64px; border-radius: 50%; border: 5px solid #fff; box-shadow: 0 4px 0 var(--shadow); }
.color-btn.sel { outline: 4px solid var(--ink); outline-offset: 2px; }

/* PIN */
.pin-pad { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.pin-title { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; }
.pin-sub { color: var(--ink-soft); font-weight: 700; max-width: 22em; }
.pin-dots { display: flex; gap: 16px; margin: 6px 0; }
.pin-dots i { width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--ink); transition: background .1s, transform .1s; }
.pin-dots i.on { background: var(--ink); transform: scale(1.1); }
.pin-keys { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; }
.key { width: 84px; height: 76px; border-radius: 24px; border: none; background: #fff; box-shadow: 0 5px 0 var(--shadow); font-family: var(--font-display); font-weight: 800; font-size: 2rem; display: grid; place-items: center; }
.key:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--shadow); }
.key.ghost { background: rgba(255,255,255,.6); }
.key .ic { width: 34px; height: 34px; }

/* ---------- 2. quem vai jogar ---------- */
.who-head { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 2vh auto 22px; }
.who-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.who-grid > .who-card { width: clamp(140px, calc(50% - 8px), 210px); }
.who-card {
  border: none; background: #fff; border-radius: 36px; padding: 16px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 8px;
  box-shadow: 0 8px 0 var(--kc), 0 12px 24px rgba(43,35,64,.12); transition: transform .12s; animation: popIn .5s both;
}
.who-card:nth-child(2) { animation-delay: .06s; } .who-card:nth-child(3) { animation-delay: .12s; } .who-card:nth-child(4) { animation-delay: .18s; } .who-card:nth-child(5) { animation-delay: .24s; }
.who-card:hover { transform: translateY(-4px) rotate(-1deg); }
.who-card:active { transform: scale(.96); }
.who-av { width: 100%; max-width: 150px; aspect-ratio: 1; position: relative; }
.who-av svg { width: 100%; height: 100%; }
.who-name { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who-stars { display: flex; align-items: center; gap: 4px; font-weight: 800; color: #B07800; }
.who-stars .ic { color: var(--sun); width: 22px; height: 22px; }
.zz-badge { position: absolute; right: -4px; top: -4px; background: #5B6BD6; color: #fff; font-weight: 800; padding: 4px 10px; border-radius: 99px; font-size: .95rem; }
.who-foot { display: flex; justify-content: center; margin-top: 34px; }
.parents-btn { font-size: 1.1rem; }
@keyframes popIn { from { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.05); } }

/* ---------- 3. ilhas ---------- */
.subjects-screen .screen, .subjects-screen { background: linear-gradient(180deg, var(--sky) 0%, #BFEAFF 55%, #5EC4F0 56%, #3AA7DC 100%); }
.greet { display: flex; align-items: center; gap: 18px; margin: 4px auto 18px; justify-content: center; }
.islands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; max-width: 980px; }
.island {
  border: none; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative;
  animation: float 4s ease-in-out infinite; animation-delay: var(--d);
}
.island.main { grid-column: 1 / -1; }
.island-top {
  width: 100%; max-width: 260px; aspect-ratio: 1.45; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 40%), var(--ic);
  border-radius: 48% 52% 44% 56% / 58% 50% 50% 42%;
  box-shadow: 0 12px 0 var(--icd), 0 22px 0 #F2D49A, 0 26px 20px rgba(0,40,80,.25);
  transition: transform .15s;
}
.island.main .island-top { max-width: 360px; }
.island-glyph { font-family: var(--font-display); font-weight: 800; color: #fff; font-size: clamp(2rem, 9vw, 3.6rem); text-shadow: 0 4px 0 rgba(0,0,0,.18); }
.island.main .island-glyph { font-size: clamp(2.6rem, 12vw, 4.6rem); }
.island-name { margin-top: 18px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 4vw, 1.6rem); background: #fff; padding: 2px 18px; border-radius: 99px; box-shadow: 0 4px 0 var(--shadow); }
.island.main .island-name { font-size: clamp(1.5rem, 5vw, 2rem); }
.island.locked .island-top { filter: saturate(.35) brightness(1.05); }
.island-lock { position: absolute; top: 8px; right: 8%; display: flex; gap: 4px; align-items: center; background: var(--ink); color: #fff; font-weight: 800; font-size: .9rem; padding: 6px 12px 6px 8px; border-radius: 99px; }
.island-lock .ic { width: 20px; height: 20px; }
.island.active:active .island-top { transform: scale(.95); }
.island.wobble { animation: wobble .6s; }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (min-width: 900px) {
  .islands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .island.main { grid-column: 1 / -1; }
}

/* ---------- 4. mundo / cartões de jogo ---------- */
.world-screen { background: linear-gradient(180deg, #FFE7C2 0%, #FFF6E5 100%); }
.fav-strip .sec-title { margin-top: 6px; }
.world-title { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 4px 0 4px; color: var(--orange-dark); }
.heart-ic { color: var(--coral); width: 1.1em; height: 1.1em; display: inline-block; vertical-align: -0.15em; }
.fav-row { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.fav-card {
  flex: none; width: 150px; border: none; border-radius: 28px; background: var(--gc); color: #fff; padding: 10px; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; box-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.fav-art { width: 100%; aspect-ratio: 1.3; background: rgba(255,255,255,.25); border-radius: 20px; display: grid; place-items: center; overflow: hidden; }
.fav-art svg { width: 86%; height: 86%; }
.fav-empty { background: rgba(255,255,255,.7); border: 3px dashed rgba(43,35,64,.2); border-radius: 24px; padding: 16px; font-weight: 700; color: var(--ink-soft); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.cat { margin-top: 18px; }
.cat-title { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 4.6vw, 1.9rem); margin: 0 0 10px; line-height: 1.1; }
.cat-title small { font-family: var(--font-body); font-size: .95rem; font-weight: 700; color: var(--ink-soft); }
.cat-dot { width: 18px; height: 18px; border-radius: 6px; background: var(--cc); transform: rotate(45deg); flex: none; }
.cat-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 20px; margin: 0 -4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cat-row > .game-card { flex: 0 0 clamp(230px, 68vw, 290px); scroll-snap-align: start; }
.cat-row .gc-name { font-size: 1.45rem; }
.game-card.soon .gc-main { box-shadow: 0 8px 0 #D8D2E3; cursor: default; }
.game-card.soon .gc-art { background: repeating-linear-gradient(45deg, #EEE9F6 0 14px, #E4DDF0 14px 28px); color: #B6ABD0; }
.game-card.soon .gc-art .ic { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 64px; height: 64px; }
.game-card.soon .gc-main:hover { transform: none; }
.game-card { position: relative; animation: popIn .45s both; }
.game-card:nth-child(2) { animation-delay: .08s; } .game-card:nth-child(3) { animation-delay: .16s; }
.gc-main {
  width: 100%; border: none; padding: 0; border-radius: 34px; background: #fff; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; box-shadow: 0 8px 0 var(--gc), 0 14px 26px rgba(43,35,64,.12); transition: transform .12s;
}
.gc-main:hover { transform: translateY(-4px); }
.gc-main:active { transform: scale(.97); }
.gc-art { aspect-ratio: 16 / 10; position: relative; background: radial-gradient(circle at 50% 120%, rgba(255,255,255,.4), transparent 60%), var(--gc); }
.gc-art svg { position: absolute; left: 11%; top: 6%; width: 78%; height: 88%; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.gc-info { padding: 12px 18px 16px; display: flex; flex-direction: column; gap: 6px; }
.gc-name { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.gc-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .85rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: #F0ECF7; color: var(--ink-soft); }
.tag.hot { background: var(--mint); color: #fff; }
.stars-row { display: inline-flex; gap: 2px; }
.stars-row .st .ic { width: 30px; height: 30px; color: #E4DEEE; }
.stars-row .st.on .ic { color: var(--sun); filter: drop-shadow(0 2px 0 var(--sun-dark)); }
.heart-btn { position: absolute; top: 10px; right: 10px; width: var(--tap); height: var(--tap); border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: #D8D2E3; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.15); }
.heart-btn .ic { width: 34px; height: 34px; }
.heart-btn.on { color: var(--coral); animation: boing .5s; }

/* ---------- troféus ---------- */
.trophies-screen { background: linear-gradient(180deg, #E7DDFF 0%, #FFF4FB 100%); }
.trophy-head { display: flex; align-items: center; gap: 16px; justify-content: center; margin: 6px auto 18px; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px; }
.sticker { border: none; background: none; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 800; font-size: .9rem; text-align: center; padding: 0; }
.sticker svg { width: 100%; max-width: 110px; filter: drop-shadow(0 5px 0 rgba(43,35,64,.15)); }
.sticker.empty { color: #B6ABD0; }
.sticker-svg.blank { filter: none; }
.collect-row { display: flex; flex-wrap: wrap; gap: 12px; }
.collect-item { width: 104px; background: #fff; border-radius: 22px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .85rem; font-weight: 800; text-align: center; box-shadow: 0 4px 0 var(--shadow); }
.collect-item svg { width: 64px; height: 64px; }

/* ---------- 5. tela de jogo ---------- */
.game-screen { background: var(--gc); animation: none; }
.game-top {
  display: flex; align-items: center; gap: 8px; background: var(--gc); position: relative; z-index: 6;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) max(10px, env(safe-area-inset-right, 0px)) 8px max(10px, env(safe-area-inset-left, 0px));
}
.game-top .icon-btn { box-shadow: 0 4px 0 rgba(0,0,0,.2); }
.game-hud { flex: 1; min-width: 0; display: flex; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; white-space: nowrap; overflow: hidden; }
.hud-score { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.18); padding: 4px 14px; border-radius: 99px; }
.hud-score .ic { width: 26px; height: 26px; color: var(--sun); }
.hud-lvl { background: rgba(0,0,0,.18); padding: 4px 14px; border-radius: 99px; font-size: 1.1rem; }
.game-progress { height: 8px; background: rgba(255,255,255,.35); position: relative; z-index: 6; }
.game-progress i { display: block; height: 100%; width: 0; background: var(--sun); border-radius: 0 9px 9px 0; transition: width .4s; }
.game-stage { flex: 1; position: relative; min-height: 0; overflow: hidden; touch-action: none; }

.game-intro { position: absolute; inset: 0; z-index: 20; background: rgba(43,35,64,.55); display: grid; place-items: center; padding: 14px max(14px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); animation: screenIn .3s; }
.intro-card { background: #fff; border-radius: 34px; padding: 18px; width: min(540px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; box-shadow: 0 12px 0 rgba(0,0,0,.15); }
.intro-side { display: contents; }
.intro-demo { width: 100%; aspect-ratio: 16 / 10; max-height: 38vh; border-radius: 24px; background: var(--gc); position: relative; overflow: hidden; flex: none; }
.intro-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 6vw, 2.4rem); margin: 0; line-height: 1; }
.intro-text { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink-soft); }
.play-btn { width: 100%; max-width: 360px; }
@media (orientation: landscape) and (max-height: 560px) {
  .intro-card { flex-direction: row; width: min(820px, 100%); text-align: left; align-items: center; gap: 18px; }
  .intro-demo { width: 48%; max-height: none; }
  .intro-card > :not(.intro-demo) { flex: 1; }
  .intro-card { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  .intro-demo { grid-row: 1 / 4; width: 100%; }
}

.pause-wrap { position: absolute; inset: 0; z-index: 30; background: rgba(43,35,64,.6); display: grid; place-items: center; padding: 16px; animation: screenIn .2s; }
.pause-card { background: var(--sky-2); border-radius: 34px; padding: 20px; width: min(440px, 100%); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.pause-btns { display: flex; flex-direction: column; gap: 14px; width: 100%; }
@media (orientation: landscape) and (max-height: 500px) {
  .pause-card { flex-direction: row; flex-wrap: wrap; justify-content: center; width: min(640px, 100%); }
  .pause-card .sec-title { flex-basis: 50%; }
}

/* demonstrações */
.demo { position: absolute; inset: 0; }
.dm-hand { position: absolute; width: 18%; max-width: 70px; z-index: 3; filter: drop-shadow(0 4px 0 rgba(0,0,0,.2)); }
.dm-hand svg { width: 100%; height: auto; }
.demo-mon .dm-mon { position: absolute; left: 4%; bottom: 0; width: 46%; height: 96%; }
.demo-mon .dm-mon svg { width: 100%; height: 100%; }
.demo-mon .dm-food { position: absolute; width: 16%; animation: dmFood 3.2s infinite; }
.demo-mon .dm-hand { animation: dmHand 3.2s infinite; }
.demo-mon .dm-bell { position: absolute; right: 5%; bottom: 8%; width: 16%; aspect-ratio: 1; background: var(--sun); border-radius: 50%; color: #8A5A00; display: grid; place-items: center; animation: dmBell 3.2s infinite; }
.demo-mon .dm-bell .ic { width: 70%; height: 70%; }
@keyframes dmFood { 0%, 12% { left: 66%; top: 26%; transform: scale(1); opacity: 1; } 50% { left: 24%; top: 40%; transform: scale(.9); opacity: 1; } 56%, 100% { left: 24%; top: 42%; transform: scale(0); opacity: 0; } }
@keyframes dmHand { 0% { left: 80%; top: 70%; } 12% { left: 72%; top: 38%; } 50% { left: 30%; top: 52%; } 62% { left: 60%; top: 80%; } 78% { left: 82%; top: 76%; transform: scale(1); } 84% { transform: scale(.85); } 92%, 100% { left: 84%; top: 78%; transform: scale(1); } }
@keyframes dmBell { 0%, 80% { transform: rotate(0); } 84% { transform: rotate(-18deg) scale(1.1); } 88% { transform: rotate(16deg) scale(1.1); } 92% { transform: rotate(0); } }
.demo-kg svg { position: absolute; inset: 0; width: 100%; height: 100%; background: linear-gradient(#7FD4FF, #D8F5FF); }
.demo-kg .dk-roo { animation: dkJump 3s infinite; }
.demo-kg .dk-arc { stroke-dasharray: 220; animation: dkArc 3s infinite; }
.demo-kg .dk-lbl { animation: dkLbl 3s infinite; }
.demo-kg .dk-btn { position: absolute; right: 4%; bottom: 6%; background: var(--sun); border-radius: 14px; padding: 2px 12px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; box-shadow: 0 4px 0 var(--sun-dark); animation: dmBell 3s infinite; }
.demo-kg .dk-hand { animation: dkHand 3s infinite; }
@keyframes dkJump { 0%, 25% { transform: translate(10px, -4px); } 45% { transform: translate(92px, -70px); } 65%, 100% { transform: translate(175px, -4px); } }
@keyframes dkArc { 0%, 25% { stroke-dashoffset: 220; } 65%, 100% { stroke-dashoffset: 0; } }
@keyframes dkLbl { 0%, 35% { opacity: 0; } 45%, 100% { opacity: 1; } }
@keyframes dkHand { 0% { right: 2%; bottom: -30%; } 18% { right: 5%; bottom: 2%; transform: scale(1); } 22% { transform: scale(.85); } 30%, 100% { right: 2%; bottom: -30%; transform: scale(1); } }
.demo-bl { background: linear-gradient(#7FD4FF, #E8F8FF); }
.db-target { position: absolute; top: 6%; left: 50%; translate: -50% 0; background: #fff; border-radius: 16px; padding: 0 16px; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: #F25C9A; }
.db-b { position: absolute; width: 20%; animation: dbFloat 3.4s infinite; }
.db-b svg { width: 100%; height: auto; }
.db-b b { position: absolute; inset: 0 0 26% 0; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; }
.db-b.b1 { left: 14%; top: 34%; animation-name: dbPop1; }
.db-b.b2 { left: 62%; top: 40%; animation-name: dbPop2; }
.db-b.b3 { left: 40%; top: 52%; }
.db-hand { animation: dbHand 3.4s infinite; }
@keyframes dbFloat { 50% { transform: translateY(-8px); } }
@keyframes dbPop1 { 0%, 60% { transform: scale(1); opacity: 1; } 66% { transform: scale(1.4); opacity: 0; } 100% { opacity: 0; } }
@keyframes dbPop2 { 0%, 62% { transform: scale(1); opacity: 1; } 68% { transform: scale(1.4); opacity: 0; } 100% { opacity: 0; } }
@keyframes dbHand { 0% { left: 40%; top: 100%; } 20%, 26% { left: 22%; top: 55%; } 28% { transform: scale(.85); } 32% { transform: scale(1); } 52%, 58% { left: 70%; top: 60%; } 60% { transform: scale(.85); } 64% { transform: scale(1); } 100% { left: 46%; top: 100%; } }

/* ---------- 6. resultado ---------- */
.result-screen { background: radial-gradient(circle at 50% 30%, #fff 0%, transparent 60%), linear-gradient(180deg, var(--gc), #FFF2D6); }
.result-body { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 620px; }
.result-stars { display: flex; gap: 6px; align-items: flex-end; margin-top: 2vh; }
.rs .ic { width: clamp(70px, 22vw, 120px); height: auto; color: rgba(255,255,255,.45); }
.rs:nth-child(2) .ic { width: clamp(86px, 27vw, 148px); }
.rs { transform: scale(0); }
.rs.show { animation: starIn .55s cubic-bezier(.3,1.6,.5,1) forwards; }
.rs.on .ic { color: var(--sun); filter: drop-shadow(0 6px 0 var(--sun-dark)); }
@keyframes starIn { from { transform: scale(0) rotate(-90deg); } to { transform: scale(1) rotate(0); } }
.result-lines { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pill { background: #fff; border-radius: 99px; padding: 8px 18px; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 0 var(--shadow); }
.prize { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 26px; padding: 10px 20px 10px 10px; text-align: left; font-size: 1.1rem; box-shadow: 0 5px 0 var(--shadow); animation: popIn .6s 1.6s both; }
.prize-art { width: 72px; height: 72px; flex: none; }
.prize-art svg { width: 100%; height: 100%; }
.result-btns { display: flex; flex-direction: column; gap: 14px; width: min(380px, 100%); margin-top: 6px; }

@media (orientation: landscape) and (max-height: 560px) {
  .result-screen .mascot.big { --ms: 110px; }
  .result-stars .rs .ic { width: 64px; }
  .result-stars .rs:nth-child(2) .ic { width: 80px; }
  .result-btns { flex-direction: row; width: auto; }
}

/* ---------- descanso / portão ---------- */
.rest-screen { background: linear-gradient(180deg, #2B2F72 0%, #5B6BD6 100%); color: #fff; }
.rest-screen .lead { color: #E3E6FF; }
.rest-screen .stack { padding-top: 6vh; }
.gate-screen .stack { padding-top: 4vh; }

/* ---------- 7. área dos pais ---------- */
.parents-screen { background: #F4F1FA; animation: screenIn .25s; }
.parents-screen .scroll > * { max-width: 860px; }
.kid-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; }
.kid-tab { flex: none; display: flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 4px 18px 4px 6px; border-radius: 99px; border: 3px solid transparent; background: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 0 var(--shadow); }
.kid-tab.sel { border-color: var(--kc); background: #FFFBEF; }
.kid-tab.add { padding-left: 16px; color: var(--ink-soft); }
.kid-tab.add .ic { width: 24px; height: 24px; }
.panel-card { background: #fff; border-radius: 26px; padding: 18px; margin-bottom: 14px; box-shadow: 0 2px 0 var(--line); }
.panel-card h3 { font-family: var(--font-display); font-size: 1.3rem; margin: 6px 0 10px; }
.kid-summary { display: flex; align-items: center; gap: 14px; border: 4px solid var(--kc); flex-wrap: wrap; }
.ks-av { width: 76px; height: 76px; flex: none; }
.ks-av svg { width: 100%; height: 100%; }
.ks-info { flex: 1; min-width: 140px; }
.ks-info h2 { margin: 0; font-family: var(--font-display); font-size: 1.8rem; line-height: 1; }
.ks-info span { color: var(--ink-soft); font-weight: 700; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: 22px; padding: 14px 10px; text-align: center; box-shadow: 0 2px 0 var(--line); }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(1.15rem, 4.4vw, 1.7rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: .9rem; color: var(--ink-soft); font-weight: 700; }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 150px; align-items: end; }
.bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; font-size: .8rem; font-weight: 800; color: var(--ink-soft); }
.bar i { width: 100%; max-width: 36px; background: var(--grape); border-radius: 10px 10px 4px 4px; order: 2; }
.bar span { order: 1; font-variant-numeric: tabular-nums; }
.bar em { order: 3; font-style: normal; }
.skill-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.skill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font-weight: 800; font-size: .95rem; }
.skill .ic { width: 18px; height: 18px; }
.skill.ok { background: #DDF6E8; color: #1E7A47; }
.skill.tr { background: #FFF1CC; color: #8A5A00; }
.game-stats { display: flex; flex-direction: column; gap: 8px; }
.gs { display: grid; grid-template-columns: 1.4fr 1fr auto 1fr; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .95rem; }
.gs:last-child { border-bottom: 0; }
.gs-name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.gs .stars-row .st .ic { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .gs { grid-template-columns: 1fr auto; }
  .gs > :nth-child(2), .gs > :nth-child(4) { font-size: .85rem; color: var(--ink-soft); }
}

/* =========================================================
   JOGO 1: MONSTRO COMILÃO
   ========================================================= */
.mon-game {
  position: absolute; inset: 0; display: grid; gap: 6px;
  grid-template-areas: "req" "mon" "ctl" "plates";
  grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-columns: minmax(0, 1fr);
  padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
  background: repeating-linear-gradient(90deg, #FFE3EF 0 40px, #FFD4E6 40px 80px);
}
.mon-game.land {
  grid-template-areas: "mon req ctl" "mon plates plates";
  grid-template-columns: minmax(0, .9fr) auto minmax(0, .7fr); grid-template-rows: auto minmax(0, 1fr);
  column-gap: 14px; align-items: center;
}
.mon-game.land .mon-area { align-self: stretch; }
.mon-game.land .mon-ctl { justify-content: flex-start; }
.mon-req { grid-area: req; display: flex; justify-content: center; }
.req-bubble {
  background: #fff; border-radius: 28px; padding: 6px 22px; min-height: 72px; display: flex; align-items: center; box-shadow: 0 6px 0 rgba(43,35,64,.15); position: relative;
}
.req-bubble::after { content: ""; position: absolute; bottom: -14px; left: 50%; translate: -50% 0; border: 14px solid transparent; border-top-color: #fff; border-bottom: 0; }
.mon-game.land .req-bubble::after { left: -14px; bottom: auto; top: 50%; translate: 0 -50%; border: 14px solid transparent; border-right-color: #fff; border-left: 0; }
.req-bubble.pop { animation: pop .45s; }
.req-content { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 7vw, 3rem); line-height: 1; }
.req-content .food-svg { width: clamp(46px, 11vw, 60px); height: clamp(46px, 11vw, 60px); }
.req-num { color: var(--grape); }
.req-part { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 14px; border-radius: 22px; background: color-mix(in srgb, var(--pc) 16%, #fff); border: 4px solid var(--pc); color: var(--pc); }
.req-part .food-svg { width: 42px; height: 42px; }
.req-op { color: var(--ink); }
.req-txt { font-size: .55em; color: var(--ink-soft); }
.req-cat svg { width: 58px; height: 58px; }
.mon-area { grid-area: mon; position: relative; min-height: 0; display: flex; justify-content: center; align-items: flex-end; }
.mon-svg { height: 100%; width: 100%; max-width: 480px; min-height: 0; }
.mon-svg svg { width: 100%; height: 100%; overflow: visible; }
.mon-cat { position: absolute; right: 2%; bottom: 0; width: clamp(64px, 18vmin, 120px); }
.mon-cat svg { width: 100%; height: auto; }
.mon-cat .cat-tail { animation: catTail 1.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 0 100%; }
.mon-cat.eating { animation: catHop .5s 3; }
@keyframes catTail { 50% { transform: rotate(-14deg); } }
@keyframes catHop { 50% { transform: translateY(-20%) rotate(-6deg); } }
.mon-ctl { grid-area: ctl; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.mon-counter {
  min-width: 96px; min-height: 64px; padding: 0 18px; background: var(--ink); color: #fff; border-radius: 22px; display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem; line-height: 1; font-variant-numeric: tabular-nums;
}
.mon-counter.bump { animation: pop .3s; }
.cnt-part { color: var(--pc); background: #fff; border-radius: 12px; padding: 0 8px; }
.cnt-op { opacity: .8; font-size: .8em; }
.mon-slots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.slot-group { display: flex; gap: 5px; flex-wrap: wrap; padding: 6px 8px; background: rgba(255,255,255,.75); border-radius: 16px; border: 3px solid var(--pc, transparent); max-width: 280px; }
.slot-group i { width: 20px; height: 20px; border-radius: 50%; border: 3px dashed #8E6CF0; }
.slot-group i.on { background: #8E6CF0; border-style: solid; animation: pop .3s; }
.slot-group i.ten { width: auto; height: 20px; padding: 0 6px; border-radius: 8px; font-style: normal; font-size: .75rem; font-weight: 800; line-height: 14px; color: #8E6CF0; }
.slot-group i.ten.on { color: #fff; }
.bell-btn {
  width: 80px; height: 80px; border-radius: 50%; border: none; background: var(--sun); color: #8A5A00; display: grid; place-items: center;
  box-shadow: 0 6px 0 var(--sun-dark), 0 0 0 6px rgba(255,255,255,.6); flex: none;
}
.bell-btn .ic { width: 50px; height: 50px; }
.bell-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--sun-dark), 0 0 0 6px rgba(255,255,255,.6); }
.bell-btn.ring .ic { animation: ring .6s; transform-origin: 50% 10%; }
@keyframes ring { 20% { transform: rotate(-22deg); } 40% { transform: rotate(18deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }
.mon-plates { grid-area: plates; display: flex; gap: 10px; justify-content: center; align-items: stretch; min-height: 0; }
.mon-game.land .mon-plates { align-items: center; }
.plate {
  flex: 1 1 0; max-width: 620px; border-radius: 40px; padding: 12px; min-width: 0;
  background: radial-gradient(ellipse at 50% 40%, #fff 55%, #F1ECF8 100%);
  border: 6px solid var(--pc, #E3DCEF); box-shadow: 0 8px 0 rgba(43,35,64,.12);
}
.plate-items { display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 6px; height: 100%; }
.food { width: var(--fs, 64px); height: var(--fs, 64px); touch-action: none; cursor: grab; transform: rotate(var(--r, 0deg)); animation: foodIn .45s var(--dl, 0s) both; position: relative; }
.food svg { width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 3px 0 rgba(43,35,64,.15)); }
.food:hover svg { animation: wiggle .5s; }
.food.gone { visibility: hidden; }
.food.lifted { opacity: .2; }
.food.box { width: calc(var(--fs, 64px) * 2.3); height: calc(var(--fs, 64px) * 1.15); transform: none; }
.food.cat-mark::after { content: "gato"; position: absolute; left: 50%; bottom: -6px; translate: -50% 0; background: #9A9AAE; color: #fff; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 8px; }
.food.cat-mark svg { opacity: .55; }
.crate { position: relative; display: block; width: 100%; height: 100%; background: #C98B5B; border-radius: 12px; border: 4px solid #8B5A3C; padding: 3px; }
.crate-grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(2, 1fr); width: 100%; height: 100%; }
.crate-grid svg { width: 100%; height: 100%; filter: none; }
.crate b { position: absolute; right: -8px; top: -12px; background: var(--grape); color: #fff; font-family: var(--font-display); font-size: 1.1rem; border-radius: 12px; padding: 0 8px; }
@keyframes foodIn { from { transform: scale(0) rotate(-40deg); } }
@keyframes wiggle { 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.drag-ghost { position: fixed !important; z-index: 60; pointer-events: none; animation: none !important; transform: scale(1.2) rotate(-6deg); filter: drop-shadow(0 10px 8px rgba(0,0,0,.25)); }
.drag-ghost.spit { transform: none; }
.mon-eq {
  position: absolute; left: 50%; top: 32%; translate: -50% -50%; z-index: 5; pointer-events: none; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.6rem, 10vw, 4.4rem); color: #fff; -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill;
  animation: eqIn 2.4s ease-out forwards;
}
@keyframes eqIn { 0% { transform: scale(.3); opacity: 0; } 15% { transform: scale(1.15); opacity: 1; } 25% { transform: scale(1); } 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* monstro: estados */
.mon .mon-body { transform-box: fill-box; transform-origin: 50% 100%; animation: monBreath 2.4s ease-in-out infinite; }
.mon .mon-mouth-open, .mon .mon-puppy, .mon .mon-mouth-pout { display: none; }
.mon .mon-lids { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); animation: monBlink 4s infinite; }
.mon .mon-belly { transform-box: fill-box; transform-origin: 50% 40%; transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.mon .mon-pupils circle { transition: transform .1s; }
.mon.open .mon-mouth-closed, .mon.chomp .mon-mouth-closed { display: none; }
.mon.open .mon-mouth-open { display: inline; }
.mon.chomp .mon-mouth-open { display: inline; animation: jaw .38s; transform-box: fill-box; transform-origin: 50% 30%; }
.mon.chomp .mon-body { animation: munch .38s; }
.mon.puppy .mon-pupils, .mon.puppy .mon-lids, .mon.puppy .mon-mouth-closed { display: none; }
.mon.puppy .mon-puppy, .mon.puppy .mon-mouth-pout { display: inline; }
.mon.puppy .mon-body { animation: tilt 1.6s ease-in-out infinite; }
.mon.stuffed .mon-belly { transform: scale(1.35, 1.3); }
.mon.wobble .mon-body { animation: monWobble .7s; }
.mon.flip .mon-body { animation: monFlip 1s cubic-bezier(.4,0,.3,1); transform-origin: 50% 50%; }
.mon .propeller { transform-box: fill-box; transform-origin: center; animation: prop .4s linear infinite; }
@keyframes monBreath { 50% { transform: scale(1.02, .98); } }
@keyframes monBlink { 0%, 93%, 100% { transform: scaleY(0); } 96% { transform: scaleY(1.05); } }
@keyframes jaw { 0% { transform: scaleY(1); } 40% { transform: scaleY(.1); } 70% { transform: scaleY(.9); } 100% { transform: scaleY(.1); } }
@keyframes munch { 30% { transform: scale(1.08, .9); } 60% { transform: scale(.96, 1.05); } }
@keyframes tilt { 50% { transform: rotate(-5deg); } }
@keyframes monWobble { 20% { transform: scale(1.12, .9); } 40% { transform: scale(.92, 1.08); } 60% { transform: scale(1.06, .95); } }
@keyframes monFlip { 0% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-28%) rotate(0); } 70% { transform: translateY(-28%) rotate(360deg); } 85% { transform: translateY(0) rotate(360deg) scale(1.1, .9); } 100% { transform: translateY(0) rotate(360deg); } }
@keyframes prop { 50% { transform: scaleX(-1); } }

/* =========================================================
   JOGO 2: CANGURU SALTITÃO
   ========================================================= */
.kg-game { position: absolute; inset: 0; overflow: hidden; background: var(--sky2, #D8F5FF); }
.kg-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kg-num { font-family: var(--font-display); font-weight: 800; fill: #2B2340; }
.kg-stone.goal .kg-num { fill: #8A5A00; }
.kg-stone.hid .kg-num { fill: #fff; opacity: .85; }
.kg-stone.reveal text { animation: pop .5s; transform-box: fill-box; transform-origin: center; }
.kg-arc path { stroke: #fff; stroke-width: 5; stroke-linecap: round; }
.kg-arc text { font-family: var(--font-display); font-weight: 800; fill: var(--orange); stroke: #fff; stroke-width: 7px; paint-order: stroke; transition: opacity .2s; }
.kg-arc.lbl-pop text { animation: pop .4s; transform-box: fill-box; transform-origin: center; }
.kg-arc.ghost path { stroke-dasharray: 6 12; stroke: #FFD23F; animation: dash 1s linear infinite; }
.kg-arc.ghost text { fill: #FFB020; }
.kg-arc.fail path { stroke: var(--coral); }
@keyframes dash { to { stroke-dashoffset: -36; } }
.kg-goal-star { transform-box: fill-box; transform-origin: center; animation: starBob 1.6s ease-in-out infinite; }
.kg-goal-star.got { animation: starGot .8s forwards; }
@keyframes starBob { 50% { transform: translateY(-6px) rotate(8deg); } }
@keyframes starGot { 40% { transform: scale(1.8) rotate(180deg); } 100% { transform: scale(1.3) rotate(360deg); } }
.kg-roo .kg-inner { transform-box: fill-box; transform-origin: 50% 100%; }
.kg-roo.squash .kg-inner { animation: squash .35s; }
@keyframes squash { 30% { transform: scale(1.18, .8); } 65% { transform: scale(.95, 1.06); } }
.kg-top { position: absolute; top: 10px; left: max(10px, env(safe-area-inset-left, 0px)); right: max(10px, env(safe-area-inset-right, 0px)); display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; pointer-events: none; }
.kg-goal-badge { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 99px; padding: 4px 20px 4px 10px; font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; line-height: 1.1; box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.kg-star .ic { width: 40px; height: 40px; color: var(--sun); filter: drop-shadow(0 2px 0 var(--sun-dark)); }
.kg-world-name { background: rgba(255,255,255,.75); border-radius: 99px; padding: 6px 14px; font-weight: 800; color: var(--ink); }
.kg-bottom { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px max(10px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.kg-eq { max-width: 100%; overflow-x: auto; white-space: nowrap; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.94); border-radius: 22px; padding: 4px 18px; min-height: 52px; font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; box-shadow: 0 4px 0 rgba(0,0,0,.12); scrollbar-width: none; }
.eq-j { color: var(--orange-dark); }
.eq-j.neg { color: #2E63C9; }
.eq-eq { color: var(--ink-soft); }
.eq-res.done { color: var(--mint); animation: pop .4s; }
.eq-mult { margin-left: 8px; padding: 0 10px; border-radius: 12px; background: var(--sun); }
.kg-springs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.spring-btn {
  width: clamp(76px, 21vw, 108px); height: 84px; border: none; border-radius: 24px; background: var(--sun); color: var(--ink); box-shadow: 0 7px 0 var(--sun-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1;
}
.spring-btn .coil { width: 42px; height: 22px; color: #8A5A00; }
.spring-btn.neg { background: #8FD3FF; box-shadow: 0 7px 0 #3B8FD9; }
.spring-btn.neg .coil { color: #1E5FA8; }
.spring-btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--sun-dark); }
.spring-btn.press .coil { animation: coil .3s; }
.spring-btn.hint { animation: pulse .9s ease-in-out infinite; outline: 5px solid #fff; }
.spring-btn.off { opacity: .35; filter: grayscale(1); }
@keyframes coil { 40% { transform: scaleY(.4); } 70% { transform: scaleY(1.3); } }
@keyframes pulse { 50% { transform: scale(1.1); } }
.kg-game.space .kg-world-name { background: rgba(255,255,255,.2); color: #fff; }
@media (max-height: 440px) {
  .kg-bottom { flex-direction: row; justify-content: center; gap: 10px; padding-top: 6px; padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); }
  .kg-bottom { justify-content: space-between; align-items: flex-end; }
  .kg-eq { max-width: 44%; font-size: 1.3rem; min-height: 44px; }
  .spring-btn { height: 68px; width: 84px; font-size: 1.6rem; }
  .spring-btn .coil { height: 16px; }
  .kg-goal-badge { font-size: 1.7rem; }
  .kg-star .ic { width: 30px; height: 30px; }
}

/* =========================================================
   JOGO 3: ESTOURA-BALÃO
   ========================================================= */
.bl-game { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: linear-gradient(180deg, #7FD4FF 0%, #E8F8FF 100%); }
.bl-clouds { position: absolute; inset: 0; pointer-events: none; }
.bl-clouds i { position: absolute; width: 180px; height: 60px; background: #fff; border-radius: 60px; opacity: .7; animation: cloud 40s linear infinite; }
.bl-clouds i::before, .bl-clouds i::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.bl-clouds i::before { width: 80px; height: 80px; left: 30px; top: -36px; }
.bl-clouds i::after { width: 60px; height: 60px; left: 90px; top: -24px; }
.bl-clouds i:nth-child(1) { top: 30%; animation-duration: 46s; }
.bl-clouds i:nth-child(2) { top: 60%; animation-duration: 34s; animation-delay: -18s; transform: scale(.7); }
.bl-clouds i:nth-child(3) { top: 82%; animation-duration: 52s; animation-delay: -30s; }
@keyframes cloud { from { left: -220px; } to { left: 110%; } }
.bl-head { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) 4px max(10px, env(safe-area-inset-left, 0px)); }
.bl-target { background: #fff; border-radius: 26px; padding: 2px 20px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 7vw, 2.8rem); line-height: 1.25; box-shadow: 0 6px 0 rgba(43,35,64,.15); white-space: nowrap; }
.bl-target.pop { animation: pop .5s; }
.bl-eq { display: flex; align-items: center; gap: 6px; }
.bl-eq .q { color: #C3BBD8; }
.bl-eq .op { color: var(--grape); }
.bl-eq .tg { color: #E63E86; font-size: 1.25em; }
.bl-combo { background: var(--ink); color: #fff; border-radius: 20px; padding: 4px 12px; text-align: center; line-height: 1; min-width: 72px; }
.bl-combo span { font-size: .75rem; font-weight: 800; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.bl-combo b { display: block; font-family: var(--font-display); font-size: 1.9rem; }
.bl-combo.hot b { color: var(--sun); }
.bl-combo.bump { animation: pop .3s; }
.bl-time { position: relative; z-index: 3; height: 12px; margin: 4px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); background: rgba(255,255,255,.65); border-radius: 99px; overflow: hidden; }
.bl-time i { display: block; height: 100%; width: 100%; background: var(--mint); border-radius: 99px; }
.bl-time i.low { background: var(--coral); animation: blink .5s infinite; }
@keyframes blink { 50% { opacity: .5; } }
.bl-field { flex: 1; position: relative; overflow: hidden; touch-action: none; min-height: 0; }
.balloon { position: absolute; left: 0; top: 0; width: var(--bs, 90px); height: calc(var(--bs, 90px) * 1.3); will-change: transform; cursor: pointer; }
.balloon > * { transform-origin: 50% 40%; }
.balloon .bl-body { width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.balloon .bl-n { position: absolute; left: 0; right: 0; top: 0; height: 74%; display: flex; align-items: center; justify-content: center; pointer-events: none;
  font-family: var(--font-display); font-weight: 800; font-size: calc(var(--bs, 90px) * .44); color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.22); }
.balloon .bl-n.star .ic { width: 50%; height: 50%; color: #fff; }
.balloon.sel > * { animation: selWig .35s ease-in-out infinite alternate; }
.balloon.sel .bl-body { filter: drop-shadow(0 0 0 #fff) drop-shadow(0 0 4px #fff) drop-shadow(0 0 10px #fff); }
.balloon.hint .bl-body { filter: drop-shadow(0 0 8px #FFD23F) drop-shadow(0 0 16px #FFD23F); }
.balloon.hint > * { animation: pulse .8s ease-in-out infinite; }
.balloon.boing > * { animation: squishB .45s; }
.balloon.popping > * { animation: popOut .22s forwards; }
.balloon.gold .bl-body { filter: drop-shadow(0 0 10px #FFE27A); }
@keyframes selWig { from { transform: rotate(-5deg) scale(1.08); } to { transform: rotate(5deg) scale(1.12); } }
@keyframes squishB { 25% { transform: scale(1.25, .78); } 55% { transform: scale(.85, 1.15); } }
@keyframes popOut { to { transform: scale(1.6); opacity: 0; } }
.bl-banner {
  position: absolute; left: 50%; top: 40%; translate: -50% -50%; z-index: 8; pointer-events: none; white-space: nowrap;
  background: var(--grape); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 8vw, 3.2rem); padding: 6px 28px; border-radius: 30px; box-shadow: 0 8px 0 #6B48D6;
}
.bl-banner.show { animation: banner 1.9s forwards; }
@keyframes banner { 0% { transform: scale(0) rotate(-8deg); } 15% { transform: scale(1.1) rotate(2deg); } 25%, 80% { transform: scale(1); opacity: 1; } 100% { transform: scale(.8); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Estoura-Balão: placar e recorde */
.bl-score { position: relative; z-index: 3; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 4px 12px 0; font-weight: 800; }
.bl-pts { background: rgba(255,255,255,.85); border-radius: 99px; padding: 2px 14px; font-size: 1rem; }
.bl-pts b { font-family: var(--font-display); font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.bl-rec { display: inline-flex; align-items: center; gap: 6px; background: rgba(43,35,64,.82); color: #fff; border-radius: 99px; padding: 2px 14px; font-size: .95rem; }
.bl-rec .ic { width: 20px; height: 20px; color: var(--sun); }
.bl-rec i { width: 60px; height: 8px; border-radius: 9px; background: linear-gradient(90deg, var(--sun) var(--p), rgba(255,255,255,.25) var(--p)); }
.bl-rec.beat { background: var(--sun); color: var(--ink); animation: pop .5s; }
.bl-rec.beat .ic { color: var(--ink); }
.medal { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--m); vertical-align: middle; box-shadow: 0 2px 0 rgba(0,0,0,.2); }
.medal .ic { width: 20px; height: 20px; color: #fff; }
.hist { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; vertical-align: middle; margin-left: 6px; }
.hist i { width: 8px; background: #D8D2E3; border-radius: 3px; }
.hist i.now { background: var(--grape); }

/* Canguru: pulos contados e "monte a conta" */
.kg-left { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.kg-jumps { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.9); border-radius: 99px; padding: 4px 12px; font-weight: 800; font-size: .95rem; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.kg-jumps:empty { display: none; }
.kg-jumps i { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); box-shadow: inset 0 -3px 0 rgba(0,0,0,.18); transition: transform .2s, opacity .2s; }
.kg-jumps i.used { opacity: .25; transform: scale(.7); }
.go-btn { min-width: 120px; height: 84px; border: none; border-radius: 24px; background: var(--mint); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; box-shadow: 0 7px 0 #1E9353; padding: 0 18px; }
.go-btn:disabled { background: #B8C9BF; box-shadow: 0 7px 0 #94A69B; }
.go-btn:not(:disabled) { animation: pulse 1s ease-in-out infinite; }
.eq-slot { min-width: 64px; height: 56px; border-radius: 16px; border: 3px dashed #B6ABD0; background: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: #B6ABD0; padding: 0 8px; }
.eq-slot.full { border-style: solid; border-color: var(--sun-dark); background: #FFF3C4; color: var(--orange-dark); }
.eq-slot.full.neg { border-color: #3B8FD9; background: #E1F2FF; color: #2E63C9; }
.eq-slot.run { outline: 4px solid var(--mint); animation: pop .4s; }
.kg-game.plan .kg-eq { padding: 6px 12px; }
.kg-game.plan .kg-springs { max-width: 760px; }
.kg-game.plan .spring-btn { width: clamp(64px, 17vw, 96px); height: 76px; font-size: 1.7rem; }
.kg-eq .eq-res .ic { width: 30px; height: 30px; color: var(--sun); }
@media (max-height: 440px) {
  .go-btn { height: 68px; font-size: 1.4rem; min-width: 96px; }
  .kg-game.plan .spring-btn { height: 64px; width: 66px; }
  .eq-slot { height: 46px; min-width: 52px; font-size: 1.3rem; }
}
@media (max-height: 440px) {
  .kg-game.plan .kg-bottom { top: 0; flex-direction: column; justify-content: space-between; align-items: center; pointer-events: none; padding-top: 8px; }
  .kg-game.plan .kg-bottom > * { pointer-events: auto; }
  .kg-game.plan .kg-eq { max-width: 52%; }
  .kg-game.plan .kg-springs { max-width: none; flex-wrap: nowrap; }
}

/* =========================================================
   JOGO 4: PESCARIA
   ========================================================= */
.pe-game { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; background: #1C8FC6; }
.pe-sky { position: absolute; left: 0; right: 0; top: 0; height: 30%; pointer-events: none; }
.pe-sun { position: absolute; right: 6%; top: 10%; width: 70px; height: 70px; border-radius: 50%; background: #FFE27A; box-shadow: 0 0 0 12px rgba(255,226,122,.35); }
.pe-dock { position: relative; z-index: 3; background: repeating-linear-gradient(90deg, #C98B5B 0 46px, #B97A4B 46px 50px); border-top: 8px solid #8B5A3C; box-shadow: 0 -6px 0 rgba(0,0,0,.12); display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 10px max(12px, env(safe-area-inset-right, 0px)) 8px max(12px, env(safe-area-inset-left, 0px)); }
.pe-bucket { position: relative; width: clamp(84px, 22vw, 120px); flex: none; }
.pe-bucket svg { width: 100%; height: auto; }
.pe-bucket b { position: absolute; left: 0; right: 0; top: 34%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.2rem, 9vw, 3.2rem); color: #fff; text-shadow: 0 3px 0 #2E63C9; line-height: 1; }
.pe-bucket.pop { animation: pop .5s; }
.pe-bucket.wiggle { animation: wobble .6s; }
.pe-eq { display: flex; align-items: center; gap: 6px; background: rgba(255,255,255,.92); border-radius: 26px; padding: 6px 12px; box-shadow: 0 5px 0 rgba(43,35,64,.12); font-family: var(--font-display); font-weight: 800; font-size: 2rem; transition: background .2s; }
.pe-eq.ok { background: #DDF6E8; }
.pe-eq.bad { background: #FFE0E0; animation: shake .45s; }
.pe-op { color: var(--grape); }
.pe-tg { color: #1E7FB0; font-size: 1.2em; min-width: 1ch; text-align: center; }
.pe-slot { width: clamp(78px, 22vw, 120px); aspect-ratio: 170 / 104; border-radius: 18px; border: 3px dashed #9FB7D6; position: relative; }
.pe-slot.full { border-color: transparent; animation: pop .35s; }
.pe-slot.s0.full { cursor: pointer; }
.pe-slot svg { width: 100%; height: 100%; }
.pe-water { position: relative; flex: 1; min-height: 0; background: linear-gradient(180deg, #6FD3F5 0%, #2AA6DA 55%, #1C8FC6 100%); overflow: hidden; }
.pe-water::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 30% 4% at 25% 30%, rgba(255,255,255,.25), transparent 70%), radial-gradient(ellipse 25% 3% at 70% 60%, rgba(255,255,255,.2), transparent 70%), radial-gradient(ellipse 20% 3% at 40% 85%, rgba(255,255,255,.18), transparent 70%); }
.pe-waves { display: none; position: absolute; left: 0; right: 0; top: -10px; height: 24px; background: radial-gradient(circle at 20px -6px, transparent 18px, #4CC3EE 19px) 0 0 / 40px 24px repeat-x; opacity: .9; animation: waves 6s linear infinite; }
@keyframes waves { to { background-position: 40px 0; } }
.pe-pond { position: absolute; inset: 14px 0 14px 0; touch-action: none; z-index: 1; }
.pe-dock { padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important; }
.pe-fish { position: absolute; left: 0; top: 0; width: var(--fw, 120px); will-change: transform; cursor: pointer; }
.pe-fish svg { width: 100%; height: auto; pointer-events: none; filter: drop-shadow(0 4px 0 rgba(0,40,80,.18)); transition: transform .2s; }
.pe-fish.left svg { transform: scaleX(1); }
.pe-fish:not(.left) svg { transform: scaleX(-1); }
.pe-fish .pe-num, .pe-slot .pe-num { position: absolute; right: 4%; top: -8%; min-width: 36px; height: 36px; border-radius: 18px; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; pointer-events: none; padding: 0 6px; }
.pe-fish.hint svg { filter: drop-shadow(0 0 8px #FFD23F) drop-shadow(0 0 16px #FFD23F); animation: pulse .8s ease-in-out infinite; }
.pe-fish.jump svg { animation: fishJump .6s; }
@keyframes fishJump { 40% { transform: translateY(-40%) rotate(-20deg); } }
.pe-ghost { position: fixed !important; z-index: 60; pointer-events: none; margin: 0; }
.pe-ghost .pe-num { display: none; }
.pe-slot-ghost { border: none !important; }
@media (orientation: landscape) and (max-height: 500px) {
  .pe-dock { padding-top: 6px; padding-bottom: 2px; }
  .pe-bucket { width: 78px; }
  .pe-slot { width: 92px; }
  .pe-eq { font-size: 1.6rem; padding: 4px 10px; }
  .pe-sun { display: none; }
}
/* demonstração */
.demo-pe { background: linear-gradient(180deg, #9FE3FF 0 30%, #4CC3EE 30% 100%); }
.dp-bucket { position: absolute; left: 50%; top: 3%; width: 20%; translate: -50% 0; }
.dp-bucket svg { width: 100%; height: auto; }
.dp-bucket b { position: absolute; inset: 30% 0 0 0; text-align: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }
.dp-fish { position: absolute; width: 26%; }
.dp-fish svg { width: 100%; height: auto; }
.dp-fish.f1 { left: 6%; top: 48%; animation: dpF1 3.6s infinite; }
.dp-fish.f2 { left: 64%; top: 70%; animation: dpF2 3.6s infinite; }
.dp-fish.f3 { left: 36%; top: 62%; animation: dbFloat 2s infinite; }
.dp-hand { animation: dpHand 3.6s infinite; }
@keyframes dpF1 { 0%, 22% { transform: none; opacity: 1; } 40% { transform: translate(110%, -150%) scale(.6); opacity: 1; } 75% { transform: translate(110%, -150%) scale(.6); opacity: 1; } 85%, 100% { transform: translate(140%, -170%) scale(.2); opacity: 0; } }
@keyframes dpF2 { 0%, 50% { transform: none; opacity: 1; } 68% { transform: translate(-60%, -230%) scale(.6); opacity: 1; } 75% { transform: translate(-60%, -230%) scale(.6); } 85%, 100% { transform: translate(-50%, -250%) scale(.2); opacity: 0; } }
@keyframes dpHand { 0% { left: 40%; top: 100%; } 18%, 22% { left: 16%; top: 62%; transform: scale(1); } 24% { transform: scale(.85); } 28% { transform: scale(1); } 46%, 52% { left: 74%; top: 82%; } 54% { transform: scale(.85); } 58% { transform: scale(1); } 100% { left: 50%; top: 110%; } }

/* =========================================================
   v1.2 — KIT DOS JOGOS (arrastar, selecionar, faixa)
   ========================================================= */
.kit-ghost { position: absolute !important; z-index: 50; pointer-events: none; margin: 0 !important; transform: scale(1.12) rotate(-5deg); filter: drop-shadow(0 12px 8px rgba(0,0,0,.25)); animation: none !important; }
.kit-lifted { opacity: .25 !important; }
.kit-sel { outline: 5px solid #fff; outline-offset: 3px; border-radius: 18px; z-index: 3; }
.kit-sel > * { animation: kitSel .8s ease-in-out infinite; }
@keyframes kitSel { 50% { transform: translateY(-6px) scale(1.05); } }
.kit-bump { animation: pop .4s; }
.kit-banner { position: absolute; left: 50%; top: 42%; z-index: 40; translate: -50% -50%; background: #fff; color: var(--ink); border-radius: 28px; padding: 6px 26px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 7vmin, 3.4rem); line-height: 1.2; box-shadow: 0 8px 0 rgba(0,0,0,.15); pointer-events: none; animation: banner 1.9s forwards; white-space: nowrap; max-width: 94%; }
.kit-banner em { font-style: normal; color: var(--orange); }
.kit-banner .kb-big { display: block; letter-spacing: .04em; }
.kit-banner svg { display: inline-block; vertical-align: middle; }

/* =========================================================
   JOGO 5: TREM DO ALFABETO
   ========================================================= */
.tr-game { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); overflow: hidden; touch-action: none; --wu: 80px; --yu: 100px; }
.tr-game.portrait { grid-template-rows: minmax(0, .72fr) minmax(0, 1fr); }
.tr-game.cargo { grid-template-rows: minmax(0, 1.4fr) minmax(0, 1fr); }
.tr-game.cargo.portrait { grid-template-rows: minmax(0, .9fr) minmax(0, 1fr); }
.tr-top { position: relative; background: linear-gradient(180deg, #8ED8FF 0%, #DDF5FF 100%); overflow: hidden; }
.tr-hills { position: absolute; inset: auto 0 0 0; height: 55%; background: radial-gradient(ellipse 34% 60% at 18% 100%, #B7E890 60%, transparent 61%), radial-gradient(ellipse 44% 72% at 78% 100%, #A6E07B 60%, transparent 61%); }
.tr-line { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0 12px 16px; }
.tr-train { display: flex; align-items: flex-end; gap: calc(var(--wu) * .1); position: relative; z-index: 2; transition: transform 1.25s cubic-bezier(.55,0,.7,.4); }
.tr-train.arrive { animation: trArrive .9s cubic-bezier(.2,.8,.3,1); }
@keyframes trArrive { from { transform: translateX(110vw); } }
.tr-train.leave { transform: translateX(-140vw); }
.tr-rail { position: absolute; left: 0; right: 0; bottom: 8px; height: 14px; z-index: 1; background: linear-gradient(#7A839B, #7A839B) 0 0 / 100% 5px no-repeat, repeating-linear-gradient(90deg, #8B5A3C 0 12px, transparent 12px 28px); }
.tr-loco { width: calc(var(--wu) * var(--lw, 1.3)); flex: none; position: relative; }
.tr-svg { width: 100%; height: auto; overflow: visible; display: block; }
.tr-car { position: relative; width: var(--wu); flex: none; container-type: inline-size; }
.tr-l, .tr-ghost-l { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 50cqw; line-height: 1.1; color: var(--ink); pointer-events: none; }
.tr-ghost-l { color: transparent; }
.tr-car.empty.hint .tr-ghost-l { color: rgba(43,35,64,.38); }
.tr-car.slot { transition: transform .15s; cursor: pointer; }
.tr-car.slot.over { transform: scale(1.1) translateY(-4px); }
.tr-car.slot.hint { animation: pulse .8s ease-in-out infinite; }
.tr-car.slot.hint .tr-svg { filter: drop-shadow(0 0 6px #FFD23F) drop-shadow(0 0 12px #FFD23F); }
.tr-loco .tr-oh { display: none; }
.tr-loco.oops .tr-oh { display: inline; }
.tr-loco.oops .tr-smile { display: none; }
.tr-loco.oops { animation: shake .4s; }
.tr-yard { position: relative; background: linear-gradient(#9BD96A, #7CC653); border-top: 8px solid #6DB648; }
.tr-yard-in { position: absolute; top: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 14px 18px; }
.tr-piece { width: var(--yu); position: relative; cursor: grab; touch-action: none; flex: none; }
.tr-piece > * { animation: trBob 2.6s ease-in-out infinite; animation-delay: var(--d); }
.tr-piece .tr-car { width: 100%; }
@keyframes trBob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.tr-piece.hint > * { animation: pulse .8s ease-in-out infinite; }
.tr-piece.hint .tr-svg { filter: drop-shadow(0 0 8px #FFD23F) drop-shadow(0 0 14px #FFD23F); }
.tr-box { container-type: inline-size; }
.tr-box i, .tr-cargo i { position: absolute; inset: 12% 0 0 0; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 56cqw; color: var(--ink); line-height: 1; pointer-events: none; }
.tr-cargo { position: absolute; left: 14%; width: 72%; bottom: 86%; aspect-ratio: 100 / 90; container-type: inline-size; border: 4px dashed #fff; border-radius: 12px; background: rgba(255,255,255,.4); }
.tr-cargo.full { border-color: transparent; background: none; animation: pop .35s; }
.tr-car.slot.hint .tr-cargo { border-color: #FFD23F; background: rgba(255,210,63,.35); }
.kit-ghost.tr-nope { animation: shake .4s !important; }
.tr-rock { animation: wobble .5s; }
.tr-dizzy > * { animation: trDizzy .6s !important; }
@keyframes trDizzy { 30% { transform: rotate(-14deg); } 60% { transform: rotate(10deg); } }
.tr-clank { animation: squash .45s; }
.tr-parade { animation: trParade .45s; }
@keyframes trParade { 40% { transform: translateY(-24%) scale(1.12); } }
/* demonstração */
.demo-tr { background: linear-gradient(#8ED8FF 0 60%, #9BD96A 60%); }
.dt-train { position: absolute; left: 4%; width: 70%; bottom: 40%; display: flex; align-items: flex-end; gap: 2%; }
.dt-loco { width: 30%; } .dt-loco svg, .dt-car svg { width: 100%; height: auto; overflow: visible; }
.dt-car { width: 22%; position: relative; container-type: inline-size; flex: none; }
.dt-car b { position: absolute; left: 0; right: 0; top: 22%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 50cqw; line-height: 1.1; color: var(--ink); }
.dt-rail { position: absolute; left: 0; right: 0; bottom: 37%; height: 6px; background: #7A839B; }
.dt-empty { animation: dtEmpty 3.6s infinite; }
@keyframes dtEmpty { 0%, 54% { opacity: 1; } 56%, 100% { opacity: 0; } }
.dt-move { position: absolute; width: 15.4%; animation: dtMove 3.6s infinite; z-index: 2; }
@keyframes dtMove { 0%, 18% { left: 72%; top: 66%; transform: none; } 30% { transform: rotate(-6deg) scale(1.1); } 55%, 100% { left: 43.2%; top: 33%; transform: none; } }
.dt-hand { animation: dtHand 3.6s infinite; }
@keyframes dtHand { 0% { left: 76%; top: 105%; } 18% { left: 77%; top: 76%; transform: scale(1); } 22% { transform: scale(.85); } 55% { left: 48%; top: 44%; transform: scale(.85); } 62% { transform: scale(1); } 100% { left: 60%; top: 110%; } }

/* =========================================================
   JOGO 6: ÔNIBUS DA BICHARADA
   ========================================================= */
.on-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: linear-gradient(180deg, #8ED8FF 0%, #E4F7FF 100%); --road: 70%; --roadh: 60px; --au: 84px; }
.on-bg { position: absolute; inset: 0; pointer-events: none; }
.on-city { position: absolute; left: 0; right: 0; top: 0; height: var(--road); background-repeat: repeat-x; background-position: 0 100%; background-size: 600px 160px; opacity: .9; }
.on-road { position: absolute; left: 0; right: 0; top: var(--road); height: var(--roadh); background: #6B7390; border-top: 6px solid #9AA3B8; }
.on-road i { position: absolute; left: 0; right: 0; top: 46%; height: 6px; background: repeating-linear-gradient(90deg, #fff 0 40px, transparent 40px 80px); }
.on-walk { position: absolute; left: 0; right: 0; top: calc(var(--road) + var(--roadh)); bottom: 0; background: repeating-linear-gradient(90deg, #E3DCCF 0 58px, #D6CEBF 58px 60px); border-top: 8px solid #BFB6A6; }
.on-game.driving .on-city { animation: onCity 1.5s ease-in-out; }
@keyframes onCity { to { background-position-x: -600px; } }
.on-game.driving .on-road i { animation: onDash 1.5s ease-in-out; }
@keyframes onDash { to { background-position-x: -640px; } }
.on-game.driving .on-wheel { animation: onWheel .35s linear infinite; }
@keyframes onWheel { to { transform: rotate(360deg); } }
.on-game.driving .on-bus { animation: onBounce .3s ease-in-out infinite; }
@keyframes onBounce { 50% { transform: translateY(-3px); } }
.on-layout { position: absolute; inset: 0; display: grid; gap: 6px 10px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.on-game.land .on-layout { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; grid-template-areas: "bus stop" "bus horn"; }
.on-game.port .on-layout { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1.2fr) minmax(0, .8fr); grid-template-areas: "bus bus" "stop horn"; }
.on-stop { grid-area: stop; position: relative; display: flex; flex-direction: column; align-items: stretch; min-height: 0; min-width: 0; background: rgba(255,255,255,.55); border-radius: 12px 12px 18px 18px; border-top: 14px solid #2E63C9; box-shadow: 0 -4px 0 #2050B0 inset, 0 6px 0 rgba(0,0,0,.08); padding: 6px 8px 10px; z-index: 2; }
.on-game.land .on-stop { margin-top: 4%; }
.on-bench { position: absolute; left: 10%; right: 10%; bottom: 8px; height: 10px; border-radius: 6px; background: #C98B5B; z-index: -1; }
.on-busbox { grid-area: bus; container-type: size; display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.on-busbox { align-items: flex-end !important; padding-bottom: 5%; }
.on-bus { position: relative; aspect-ratio: var(--ar, 2.3); width: min(100cqw, calc(100cqh * var(--ar, 2.3))); max-width: 720px; container-type: inline-size; touch-action: none; cursor: pointer; transition: filter .15s; }
.on-bus.over { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 4px #FFD23F); }
.on-bus-art, .on-seats { position: absolute; inset: 0; }
.on-bus-art svg { width: 100%; height: 100%; display: block; overflow: visible; }
.on-seat { position: absolute; overflow: hidden; border-radius: 16% / 14%; }
.on-pass { position: absolute; left: 4%; right: 4%; bottom: -10%; }
.on-pass svg { width: 100%; height: auto; display: block; }
.on-curtain { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, #E5484D 0 7px, #C9303B 7px 11px); transform: scaleY(0); transform-origin: top; transition: transform .35s; }
.on-game.closed .on-curtain { transform: scaleY(1); }
.on-game.closed.open-hint .on-curtain { transform: scaleY(.18); }
.on-seat.hint { background: rgba(255,210,63,.55); box-shadow: inset 0 0 0 4px #FFD23F; animation: pulse .8s ease-in-out infinite; }
.on-seat.hintout { box-shadow: inset 0 0 0 4px #FFD23F; }
.on-seat.hintout .on-pass { animation: onWave .6s ease-in-out infinite; }
@keyframes onWave { 50% { transform: translateY(-14%) rotate(-8deg); } }
.on-seat.party .on-pass { animation: onParty .45s ease-in-out infinite; animation-delay: var(--d); }
@keyframes onParty { 50% { transform: translateY(-16%) scale(1.05); } }
.on-hop-out { animation: onHopOut .38s forwards; }
@keyframes onHopOut { to { transform: translateY(-110%) rotate(25deg); opacity: 0; } }
.on-sit { animation: squash .4s; }
.on-display { position: absolute; left: 50%; top: 1.5%; height: 12%; min-width: 14%; padding: 0 2%; translate: -50% 0; background: var(--ink); color: #FFD23F; border-radius: 1.4cqw; font-family: var(--font-display); font-weight: 800; font-size: 8cqw; line-height: 1; display: none; place-items: center; pointer-events: none; box-shadow: 0 0 0 .8cqw #fff; }
.on-game.closed .on-display { display: grid; }
.on-tally { position: absolute; left: 64%; top: 1.5%; height: 12%; font-family: var(--font-display); font-weight: 800; font-size: 7cqw; line-height: 1.2; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); pointer-events: none; }
.on-think { position: absolute; right: -1%; top: -26%; width: 18%; aspect-ratio: 1; background: #fff; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 4px 0 rgba(0,0,0,.12); opacity: 0; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1), opacity .2s; pointer-events: none; }
.on-think svg { width: 62%; height: auto; }
.on-think b { position: absolute; right: 10%; top: 4%; font-family: var(--font-display); font-weight: 800; font-size: 7cqw; color: var(--coral); line-height: 1; }
.on-game.thinking .on-think { opacity: 1; transform: scale(1); }
.on-driver .dr-worry, .on-driver .dr-oh { display: none; }
.on-game.dr-worried .dr-smile, .on-game.dr-shock .dr-smile { display: none; }
.on-game.dr-worried .dr-worry, .on-game.dr-shock .dr-oh { display: inline; }
.on-cough { animation: onCough .6s; }
@keyframes onCough { 15% { transform: translateX(-5px) rotate(-1deg); } 35% { transform: translateX(5px) rotate(1deg); } 55% { transform: translateX(-4px); } 75% { transform: translateX(3px) scaleY(.97); } }
.on-full { animation: shake .4s; }
.on-sign { display: flex; justify-content: center; flex: none; margin-top: -4px; }
.on-plate { background: #fff; border: 5px solid #2E63C9; border-radius: 18px; padding: 0 14px 0 8px; min-width: 96px; display: grid; grid-template-columns: auto auto; align-items: center; justify-items: center; column-gap: 6px; box-shadow: 0 5px 0 rgba(0,0,0,.15); }
.on-stop-ic svg { width: 34px; height: 34px; display: block; }
.on-plate .on-dots { grid-column: 1 / -1; }
.on-target { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 9vmin, 4rem); color: #2E63C9; line-height: 1.1; }
.on-dots { display: none; grid-template-columns: repeat(5, auto); gap: 4px; padding-bottom: 8px; }
.on-dots i { width: 12px; height: 12px; border-radius: 50%; background: #2E63C9; }
.on-game.show-dots .on-dots, .on-game.show-dots-hint .on-dots { display: grid; }
.on-crowd { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px 8px; min-height: 0; min-width: 0; position: relative; }
.on-crowd { align-content: flex-end; padding-bottom: 6px; }
.on-wait { width: var(--au); flex: none; cursor: grab; touch-action: none; position: relative; }
.on-wait svg { width: 100%; height: auto; display: block; }
.on-wait > svg { animation: onIdle 2.4s ease-in-out infinite; animation-delay: var(--d); transform-origin: 50% 100%; }
@keyframes onIdle { 50% { transform: scale(1.03, .97); } }
.on-wait.hint > svg { filter: drop-shadow(0 0 8px #FFD23F) drop-shadow(0 0 14px #FFD23F); animation: pulse .8s ease-in-out infinite; }
.on-arrive { animation: onArrive .5s; }
@keyframes onArrive { from { transform: translateY(-40px) scale(.6); opacity: 0; } }
.on-game .go-out { transform: translateX(-140vw); transition: transform 1.3s cubic-bezier(.5,0,.7,.4); }
.on-game .come-in { animation: onComeIn .8s cubic-bezier(.2,.8,.3,1); }
@keyframes onComeIn { from { transform: translateX(100vw); } }
.on-horn.hint { animation: pulse .8s ease-in-out infinite; box-shadow: 0 7px 0 #D98E00, 0 0 0 6px #fff; }
.on-horn { grid-area: horn; justify-self: end; align-self: end; width: clamp(84px, 14vmin, 112px); height: clamp(84px, 14vmin, 112px); border-radius: 50%; border: none; background: radial-gradient(circle at 35% 30%, #FFE27A, #FFB020 70%); box-shadow: 0 7px 0 #D98E00; display: grid; place-items: center; z-index: 3; }
.on-horn svg { width: 62%; height: auto; }
.on-game.land .on-horn { justify-self: center; }
.on-press { animation: onPress .35s; }
@keyframes onPress { 30% { transform: translateY(5px) scale(.92); } 70% { transform: scale(1.08) rotate(-6deg); } }
.on-eq-banner { top: 20%; background: #fff; color: #2E63C9; }
.on-eqb span { display: inline-block; animation: popIn .4s both; animation-delay: calc(var(--i) * .16s); }
/* demonstração */
.demo-on { background: linear-gradient(#8ED8FF 0 70%, #6B7390 70% 86%, #E3DCCF 86%); }
.do-bus { position: absolute; left: 3%; bottom: 13%; width: 64%; aspect-ratio: 400 / 188; }
.do-bus > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.do-p { position: absolute; top: 28.7%; height: 28.7%; width: 13%; overflow: hidden; }
.do-p svg { width: 100%; height: auto; position: absolute; bottom: -10%; left: 0; }
.do-p.p0 { left: 6%; } .do-p.p1 { left: 21%; } .do-p.p2 { left: 36%; }
.do-p.in { animation: doIn 4s infinite; }
@keyframes doIn { 0%, 48% { opacity: 0; } 52%, 100% { opacity: 1; } }
.do-sign { position: absolute; right: 7%; top: 6%; background: #fff; border: 4px solid #2E63C9; border-radius: 12px; padding: 0 14px; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1.2; color: #2E63C9; }
.do-wait { position: absolute; right: 22%; bottom: 6%; width: 12%; animation: doWait 4s infinite; }
.do-wait svg { width: 100%; height: auto; }
@keyframes doWait { 0%, 15% { transform: none; opacity: 1; } 45% { transform: translate(-150%, -70%) scale(.8); opacity: 1; } 50%, 100% { transform: translate(-150%, -70%) scale(.8); opacity: 0; } }
.do-horn { position: absolute; right: 4%; bottom: 6%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #FFB020; display: grid; place-items: center; box-shadow: 0 4px 0 #D98E00; animation: doHorn 4s infinite; }
.do-horn svg { width: 62%; height: auto; }
@keyframes doHorn { 0%, 76% { transform: none; } 80% { transform: scale(.85); } 86% { transform: scale(1.1) rotate(-8deg); } 92%, 100% { transform: none; } }
.do-hand { animation: doHand 4s infinite; }
@keyframes doHand { 0% { left: 70%; top: 105%; } 15% { left: 72%; top: 72%; transform: scale(1); } 18% { transform: scale(.85); } 45% { left: 46%; top: 44%; transform: scale(.85); } 52% { transform: scale(1); } 76% { left: 88%; top: 78%; transform: scale(1); } 80% { transform: scale(.8); } 90%, 100% { left: 92%; top: 108%; transform: scale(1); } }

/* =========================================================
   JOGO 7: CORREIO DAS LETRAS
   ========================================================= */
.co-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: linear-gradient(180deg, #FFE7C2 0%, #FFDDB0 calc(100% - 64px), #D9A15C calc(100% - 64px), #C98B5B 100%); --pk: 200px; --mb: 110px; }
.co-wall { position: absolute; inset: 0 0 64px 0; background: repeating-linear-gradient(90deg, rgba(255,255,255,.25) 0 26px, transparent 26px 52px); pointer-events: none; }
.co-sun { display: none; }
.co-layout { position: absolute; inset: 0; display: grid; gap: 8px 12px; padding: 10px max(12px, env(safe-area-inset-right, 0px), calc((100% - 1300px) / 2)) calc(22px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px), calc((100% - 1300px) / 2)); }
.co-game.port .co-layout { grid-template-rows: minmax(0, 1.05fr) minmax(0, 1fr); }
.co-game.land .co-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.co-desk { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 0; min-width: 0; }
.co-belt { display: none; }
.co-pkg-slot { width: var(--pk); aspect-ratio: 120 / 110; position: relative; flex: none; }
.co-pkg { position: absolute; inset: 0; cursor: grab; touch-action: none; container-type: inline-size; }
.co-pkg > svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.co-pic { position: absolute; left: 21%; top: 21%; width: 58%; height: 63%; pointer-events: none; }
.co-pic svg, .dc-pic svg { width: 100%; height: 100%; display: block; }
.co-in { animation: coIn .55s cubic-bezier(.2,.8,.3,1.15); }
@keyframes coIn { from { transform: translateX(-70vw) rotate(-25deg); } }
.co-dizzy { animation: trDizzy .6s; }
.co-wiggle { animation: wobble .5s; }
.co-word { display: flex; gap: .04em; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, calc(var(--pk) * .22), 3.4rem); line-height: 1.15; color: var(--ink); background: #fff; border-radius: 16px; padding: 2px 14px; box-shadow: 0 5px 0 rgba(0,0,0,.12); max-width: 100%; flex: none; letter-spacing: .03em; }
.co-word i { font-style: normal; display: inline-block; border-radius: 10px; padding: 0 .05em; position: relative; transition: background .2s, transform .2s, color .2s; }
.co-word i.lit { background: #FFD23F; color: #C9303B; transform: scale(1.2); z-index: 1; }
.co-word.final i.tgt::before { content: ''; position: absolute; left: 50%; top: -.36em; translate: -50% 0; border: .2em solid transparent; border-top: .26em solid var(--orange); }
.co-boxes { display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; justify-content: center; gap: 8px 16px; min-height: 0; min-width: 0; padding-bottom: 2%; }
.co-box { width: var(--mb); position: relative; container-type: inline-size; flex: none; cursor: pointer; transform-origin: 50% 100%; }
.co-box > svg { width: 100%; height: auto; display: block; overflow: visible; }
.co-box b, .dc-box b { position: absolute; left: 18%; right: 18%; top: 46.7%; height: 28%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 40cqw; color: var(--ink); line-height: 1; pointer-events: none; }
.co-mouth { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.co-box.open .co-mouth { transform: scaleY(2.6); }
.co-tongue { display: none; }
.co-box.yuck .co-tongue { display: inline; }
.co-box.yuck .co-mouth { transform: scaleY(1.7); }
.co-flag { transform-box: view-box; transform-origin: 90px 62px; transform: rotate(180deg); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.co-box.flag .co-flag { transform: rotate(0deg); }
.co-eat { animation: munch .5s; }
.co-no { animation: coNo .5s; }
@keyframes coNo { 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(4deg); } }
.co-box.hint { animation: pulse .9s ease-in-out infinite; }
.co-box.hint > svg { filter: drop-shadow(0 0 8px #FFD23F) drop-shadow(0 0 16px #FFD23F); }
.co-stamp { position: absolute; left: 30%; top: 4%; width: 40%; animation: coStamp .4s cubic-bezier(.3,1.6,.5,1); pointer-events: none; }
.co-stamp svg { width: 100%; height: auto; }
@keyframes coStamp { from { transform: scale(2.4); opacity: 0; } }
/* demonstração */
.demo-co { background: linear-gradient(#FFE7C2 0 74%, #D9A15C 74%); }
.dc-pkg { position: absolute; left: 8%; top: 10%; width: 30%; aspect-ratio: 120 / 110; animation: dcPkg 3.6s infinite; }
.dc-pkg > svg { width: 100%; height: 100%; }
.dc-pic { position: absolute; left: 21%; top: 21%; width: 58%; height: 63%; }
@keyframes dcPkg { 0%, 15% { transform: none; opacity: 1; } 48% { transform: translate(205%, 82%) scale(.3); opacity: 1; } 54%, 92% { transform: translate(205%, 82%) scale(.1); opacity: 0; } 100% { transform: none; opacity: 0; } }
.dc-word { position: absolute; left: 8%; width: 30%; top: 66%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; background: #fff; border-radius: 10px; line-height: 1.3; }
.dc-box { position: absolute; width: 17%; bottom: 4%; container-type: inline-size; }
.dc-box > svg { width: 100%; height: auto; display: block; overflow: visible; }
.dc-box.b1 { left: 52%; } .dc-box.b2 { left: 76%; }
.dc-box.b2 .co-flag { animation: dcFlag 3.6s infinite; }
@keyframes dcFlag { 0%, 55% { transform: rotate(180deg); } 62%, 100% { transform: rotate(0deg); } }
.dc-hand { animation: dcHand 3.6s infinite; }
@keyframes dcHand { 0% { left: 30%; top: 105%; } 15% { left: 22%; top: 36%; transform: scale(1); } 18% { transform: scale(.85); } 48% { left: 83%; top: 70%; transform: scale(.85); } 55% { transform: scale(1); } 100% { left: 90%; top: 110%; } }

/* =========================================================
   JOGO 8: FÁBRICA DE PALAVRAS
   ========================================================= */
.fa-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: linear-gradient(180deg, #EDE6FF 0%, #D9CCFF 100%); --sb: 90px; --ss: 90px; }
.fa-layout { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px; padding: 34px max(12px, env(safe-area-inset-right, 0px), calc((100% - 1240px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px), calc((100% - 1240px) / 2)); }
.fa-game.land .fa-layout { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding-top: 34px; }
.fa-machine { position: relative; background: linear-gradient(#B9A5FF, #9B85F0); border-radius: 28px; border: 5px solid #7446D6; box-shadow: 0 8px 0 #5B35B8; display: grid; padding: 12px; gap: 10px; min-height: 0; min-width: 0; }
.fa-machine { grid-template-rows: minmax(0, 1fr) calc(var(--ss) / 1.15 + 8px); }
.fa-screen { background: #fff; border-radius: 20px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 0; min-width: 0; padding: 6px; box-shadow: inset 0 0 0 4px #E2DAFF; }
.fa-pic { flex: 1 1 0; min-height: 0; aspect-ratio: 1; max-width: 100%; position: relative; z-index: 2; }
.fa-pic svg { width: 100%; height: 100%; display: block; overflow: visible; }
.fa-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 5vmin, 2.4rem); line-height: 1.15; color: var(--ink); max-height: 0; overflow: hidden; letter-spacing: .06em; flex: none; }
.fa-word.show { max-height: 1.3em; animation: popIn .4s; }
.fa-slots { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 0; min-width: 0; }
.fa-slot { width: var(--ss); aspect-ratio: 1.15; border-radius: 18px; border: 4px dashed #fff; background: rgba(255,255,255,.3); position: relative; container-type: inline-size; flex: none; transition: transform .15s; cursor: pointer; }
.fa-slot em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: 40cqw; color: transparent; pointer-events: none; }
.fa-slot.hint { border-color: #FFD23F; background: rgba(255,210,63,.4); animation: pulse .8s ease-in-out infinite; }
.fa-slot.hint:not(.full) em { color: rgba(43,35,64,.38); }
.fa-slot.over { transform: scale(1.08); background: rgba(255,255,255,.65); }
.fa-slot.full { border-color: transparent; background: none; }
.fa-slot .fa-block { position: absolute; inset: 0; width: 100%; cursor: pointer; }
.fa-game.free .fa-slot.full:not(.lock) .fa-block { box-shadow: 0 6px 0 rgba(0,0,0,.2), 0 0 0 4px #fff; }
.fa-block { width: var(--sb); aspect-ratio: 1.15; border-radius: 18px; background: var(--bc); box-shadow: 0 6px 0 rgba(0,0,0,.2), inset 0 -6px 0 rgba(0,0,0,.12); display: grid; place-items: center; container-type: inline-size; position: relative; cursor: grab; touch-action: none; flex: none; }
.fa-block span { font-family: var(--font-display); font-weight: 800; font-size: 40cqw; color: #fff; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.2); pointer-events: none; }
.fa-block.used { visibility: hidden; }
.fa-block.hint { animation: pulse .8s ease-in-out infinite; box-shadow: 0 0 0 5px #FFD23F, 0 6px 0 rgba(0,0,0,.2); }
.fa-block.arrive { animation: faArrive .6s cubic-bezier(.2,.8,.3,1.1) both; animation-delay: var(--d); }
@keyframes faArrive { from { transform: translateX(100vw); } }
.fa-blocks.leave .fa-block { transform: translateX(-120vw); transition: transform .45s ease-in; }
.fa-belt { position: relative; background: #5B5377; border-radius: 24px; border: 5px solid #433C5C; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.fa-blocks { flex: 1; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 12px; padding: 8px; min-height: 0; }
.fa-tread { height: 14px; flex: none; background: repeating-linear-gradient(90deg, #8A93A8 0 18px, #6B7390 18px 30px); border-radius: 0 0 18px 18px; }
.fa-belt.rolling .fa-tread { animation: faTread .4s linear infinite; }
@keyframes faTread { to { background-position-x: -30px; } }
.fa-chimney { position: absolute; right: 12%; top: -27px; width: 30px; height: 24px; background: #7446D6; border-radius: 6px 6px 0 0; }
.fa-face { position: absolute; left: 50%; top: -28px; translate: -50% 0; display: flex; gap: 14px; z-index: 3; }
.fa-face i { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 4px solid #7446D6; position: relative; }
.fa-face i::after { content: ''; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); left: 50%; top: 50%; translate: -50% -50%; }
.fa-machine.happy .fa-face i::after { height: 7px; width: 14px; border-radius: 8px 8px 0 0; }
.fa-machine.dizzy { animation: shake .4s; }
.fa-machine.dizzy .fa-face i::after { animation: faDizzy .3s linear infinite; }
@keyframes faDizzy { 25% { translate: -20% -80%; } 50% { translate: -80% -80%; } 75% { translate: -80% -20%; } }
.fa-machine.working { animation: faWork .18s linear 4; }
@keyframes faWork { 50% { transform: translateY(-3px) scale(1.01); } }
.fa-snap { animation: squash .35s; }
.fa-shake { animation: shake .4s; }
.fa-wob { animation: wobble .45s; }
.kit-ghost.fa-nope { animation: shake .35s !important; }
.fa-pic.alive { animation-duration: 1s; animation-iteration-count: 2; animation-timing-function: ease-in-out; transform-origin: 50% 85%; }
.anim-bounce { animation-name: faBounce; } @keyframes faBounce { 30% { transform: translateY(-16%) scale(.95, 1.05); } 55% { transform: scale(1.1, .9); } 75% { transform: translateY(-5%); } }
.anim-hop { animation-name: faHop; } @keyframes faHop { 25% { transform: translateY(-14%) rotate(-7deg); } 50% { transform: none; } 75% { transform: translateY(-14%) rotate(7deg); } }
.fa-pic.anim-spin { animation-name: faSpin; transform-origin: 50% 50%; } @keyframes faSpin { to { transform: rotate(360deg); } }
.fa-pic.anim-swing { animation-name: faSwing; transform-origin: 50% 15%; } @keyframes faSwing { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.anim-float { animation-name: faFloat; } @keyframes faFloat { 50% { transform: translateY(-12%) rotate(-4deg); } }
.anim-wiggle { animation-name: faWiggle; } @keyframes faWiggle { 20% { transform: rotate(-8deg) scale(1.08); } 40% { transform: rotate(8deg) scale(1.08); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(4deg); } }
.anim-drive { animation-name: faDrive; } @keyframes faDrive { 30% { transform: translateX(-12%) rotate(-3deg); } 65% { transform: translateX(12%) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .fa-pic.alive { animation-iteration-count: 1; } }
/* demonstração */
.demo-fa { background: linear-gradient(#EDE6FF, #D9CCFF); }
.df-mach { position: absolute; left: 10%; right: 10%; top: 6%; height: 50%; background: #B9A5FF; border: 4px solid #7446D6; border-radius: 16px; display: flex; align-items: center; gap: 4%; padding: 0 4%; box-sizing: border-box; }
.df-pic { width: 26%; aspect-ratio: 1; background: #fff; border-radius: 10px; flex: none; }
.df-pic svg { width: 100%; height: 100%; display: block; }
.df-slot { width: 22%; aspect-ratio: 1.15; border: 3px dashed #fff; border-radius: 10px; flex: none; }
.df-belt { position: absolute; left: 4%; right: 4%; bottom: 6%; height: 30%; background: #5B5377; border-radius: 14px; }
.df-b { position: absolute; width: 15%; aspect-ratio: 1.15; background: var(--bc); border-radius: 10px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; bottom: 10%; box-shadow: 0 3px 0 rgba(0,0,0,.2); }
.df-b.b1 { left: 14%; animation: dfB1 4s infinite; } .df-b.b2 { left: 44%; animation: dfB2 4s infinite; } .df-b.b3 { left: 72%; }
@keyframes dfB1 { 0%, 15% { transform: none; } 35%, 100% { transform: translate(163%, -232%); } }
@keyframes dfB2 { 0%, 50% { transform: none; } 70%, 100% { transform: translate(102%, -232%); } }
.df-hand { animation: dfHand 4s infinite; }
@keyframes dfHand { 0% { left: 20%; top: 100%; } 15% { left: 20%; top: 78%; transform: scale(1); } 18% { transform: scale(.85); } 35% { left: 43%; top: 28%; transform: scale(.85); } 40% { transform: scale(1); } 50% { left: 50%; top: 78%; transform: scale(1); } 53% { transform: scale(.85); } 70% { left: 66%; top: 28%; transform: scale(.85); } 75% { transform: scale(1); } 100% { left: 70%; top: 110%; } }
.collect-item.wide { width: 150px; }
.collect-item.wide svg { width: 128px; height: 64px; }

/* =========================================================
   JOGO 9: AQUÁRIO DAS LETRAS
   ========================================================= */
.aq-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; --gw: 160px; --jw: 150px; --sh: 220px; --bs: 90px; }
.aq-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #8EE3FF 0%, #46B8E8 55%, #2A93CF 100%); pointer-events: none; }
.aq-ray { position: absolute; top: -10%; width: 14%; height: 90%; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent); transform: skewX(-14deg); }
.aq-ray.r1 { left: 18%; } .aq-ray.r2 { left: 48%; width: 8%; } .aq-ray.r3 { left: 74%; }
.aq-sand { position: absolute; left: 0; right: 0; bottom: 0; height: max(34px, 7%); background: #F3D9A4; border-top: 4px solid #E7C27E; pointer-events: none; }
.aq-algae { position: absolute; bottom: 60%; width: 26px; height: min(140px, 22vh); opacity: .85; transform-origin: 50% 100%; animation: aqSway 4s ease-in-out infinite alternate; }
.aq-algae svg { width: 100%; height: 100%; display: block; }
.aq-algae.a0 { left: 3%; } .aq-algae.a1 { left: 8%; height: min(100px, 16vh); animation-delay: -1s; } .aq-algae.a2 { left: 52%; animation-delay: -2s; } .aq-algae.a3 { right: 12%; height: min(110px, 18vh); animation-delay: -3s; } .aq-algae.a4 { right: 4%; animation-delay: -.5s; }
@keyframes aqSway { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
.aq-layout { position: absolute; inset: 0; display: grid; gap: 8px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(max(34px, 7%) - 10px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.aq-game.land .aq-layout { grid-template-columns: var(--gw) minmax(0, 1fr) var(--jw); grid-template-areas: 'guide tank jar'; }
.aq-game.port .aq-layout { grid-template-columns: 1fr 1fr; grid-template-rows: var(--sh) minmax(0, 1fr); grid-template-areas: 'guide jar' 'tank tank'; }
.aq-guide { grid-area: guide; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: var(--gw); min-height: 0; }
.aq-game.port .aq-guide { justify-self: start; }
.aq-sign { position: relative; width: 100%; aspect-ratio: 1 / .82; background: #fff; border: 5px solid #E08F1A; border-radius: 18px; box-shadow: 0 6px 0 rgba(0,0,0,.15); container-type: inline-size; display: grid; place-items: center; flex: none; z-index: 2; }
.aq-sign-l { position: relative; font-family: var(--font-display); font-weight: 800; font-size: 66cqw; line-height: 1; color: var(--ink); display: inline-block; padding: 0 .04em; }
.aq-sign.low .aq-sign-l { font-size: 74cqw; }
.aq-arrow { display: none; position: absolute; width: 22cqw; height: 22cqw; translate: 0 -50%; pointer-events: none; z-index: 3; }
.aq-arrow::before { content: ''; position: absolute; inset: 0; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M2 20 L18 6 V14 H38 V26 H18 V34 Z' fill='%23FF8A2B' stroke='%23fff' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E"); animation: aqPoint .7s ease-in-out infinite alternate; }
@keyframes aqPoint { from { transform: translateX(0); } to { transform: translateX(18%); } }
.aq-stick { width: 7%; min-width: 6px; height: 7%; min-height: 8px; background: #B97E3B; flex: none; }
.aq-gfish { width: 92%; aspect-ratio: 170 / 104; flex: none; animation: aqBob 2.4s ease-in-out infinite; transform-origin: 40% 50%; }
.aq-gfish svg { width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes aqBob { 50% { translate: 0 -5px; } }
.aq-gsneeze { display: none; }
.aq-gfish.tickle .aq-gmouth { display: none; } .aq-gfish.tickle .aq-gsneeze { display: inline; }
.aq-gfish.tickle { animation: aqTickle .14s linear infinite; }
@keyframes aqTickle { 50% { transform: rotate(4deg) scale(1.03); } }
.aq-sneeze { animation: aqSneeze .6s ease-out; }
@keyframes aqSneeze { 0% { transform: scale(1.08, .92); } 25% { transform: translateX(14px) rotate(-10deg) scale(.95, 1.08); } 60% { transform: translateX(-4px) rotate(3deg); } 100% { transform: none; } }
.aq-happy { animation: aqHappy .7s ease-out; }
@keyframes aqHappy { 30% { transform: translateY(-16px) rotate(-8deg); } 60% { transform: translateY(0) rotate(6deg); } }
.aq-flip { animation: aqFlip .45s ease-out; }
@keyframes aqFlip { 0% { transform: rotateY(90deg); } 100% { transform: none; } }
.aq-game.hinting .aq-sign { border-color: #FFD23F; box-shadow: 0 0 0 5px rgba(255,210,63,.6), 0 6px 0 rgba(0,0,0,.15); }
.aq-tank { grid-area: tank; position: relative; min-width: 0; min-height: 0; }
.aq-jar { grid-area: jar; position: relative; width: var(--jw); aspect-ratio: 100 / 120; max-height: 100%; align-self: end; justify-self: center; cursor: pointer; transform-origin: 50% 100%; z-index: 1; }
.aq-game.port .aq-jar { align-self: center; justify-self: end; height: 100%; width: auto; max-width: var(--jw); }
.aq-jar > svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.aq-jar.open > svg { filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 18px #FFD23F); }
.aq-jar-in { position: absolute; left: 12%; right: 12%; top: 36%; bottom: 8%; overflow: hidden; pointer-events: none; }
.aq-jfish { position: absolute; width: 34%; animation: aqSwim 4s ease-in-out infinite alternate; }
.aq-jfish svg { width: 100%; height: auto; display: block; }
@keyframes aqSwim { 0% { transform: translateX(0) scaleX(1); } 45% { transform: translateX(80%) scaleX(1); } 50% { transform: translateX(80%) scaleX(-1); } 95% { transform: translateX(0) scaleX(-1); } 100% { transform: translateX(0) scaleX(1); } }
.aq-jar-ok { animation: pop .45s; }
.aq-jar-no { animation: wobble .5s; }
.aq-bubble { position: absolute; left: 0; top: 0; width: var(--bs); height: var(--bs); container-type: inline-size; cursor: grab; touch-action: none; z-index: 2; will-change: transform; }
.aq-bubble svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.aq-bubble b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 58cqw; line-height: 1; color: var(--ink); pointer-events: none; padding-bottom: 4%; }
.aq-bubble.aq-new > * { animation: aqNew .45s cubic-bezier(.3,1.5,.5,1); }
@keyframes aqNew { from { transform: scale(.2); opacity: 0; } }
.aq-bubble.aq-drag { z-index: 30; cursor: grabbing; }
.aq-bubble.aq-drag > * { transform: scale(1.12); filter: drop-shadow(0 10px 6px rgba(0,0,0,.25)); }
.aq-bubble.kit-sel { outline: none; z-index: 20; }
.aq-bubble.kit-sel svg circle:first-child { stroke: #FFB547; stroke-width: 7; }
.aq-bubble.hint svg { filter: drop-shadow(0 0 6px #FFD23F) drop-shadow(0 0 12px #FFD23F); }
.aq-bubble.hint svg circle:first-child { stroke: #FFD23F; stroke-width: 8; }
.aq-bubble.hint > * { animation: pulse .8s ease-in-out infinite; }
.aq-bubble.aq-popping > * { animation: popOut .25s forwards; }
/* demonstração */
.demo-aq { background: linear-gradient(#8EE3FF, #46B8E8 80%, #F3D9A4 80%); overflow: hidden; }
.da-sign { position: absolute; left: 5%; top: 6%; width: 22%; aspect-ratio: 1 / .82; background: #fff; border: 4px solid #E08F1A; border-radius: 12px; display: grid; place-items: center; container-type: inline-size; }
.da-sign b { font-family: var(--font-display); font-weight: 800; font-size: 64cqw; line-height: 1; color: var(--ink); }
.da-guide { position: absolute; left: 4%; top: 46%; width: 25%; }
.da-guide svg { width: 100%; height: auto; display: block; }
.da-bub { position: absolute; width: 16%; aspect-ratio: 1; container-type: inline-size; }
.da-bub svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.da-bub b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 58cqw; color: var(--ink); line-height: 1; }
.da-bub.b1 { left: 36%; top: 30%; animation: daRise 3.8s linear infinite; }
.da-bub.b2 { left: 52%; top: 50%; animation: daB2 3.8s infinite; }
.da-bub.b3 { left: 36%; top: 64%; animation: daRise 3.8s linear infinite -1.9s; }
@keyframes daRise { from { transform: translateY(40%); } to { transform: translateY(-40%); } }
@keyframes daB2 { 0% { transform: translateY(30%); } 25% { transform: translateY(0); } 55% { transform: translate(148%, 66%) scale(.5); opacity: 1; } 62%, 100% { transform: translate(148%, 66%) scale(.2); opacity: 0; } }
.da-jar { position: absolute; right: 6%; bottom: 18%; width: 20%; aspect-ratio: 100 / 120; }
.da-jar > svg { width: 100%; height: 100%; display: block; }
.da-fish { position: absolute; left: 22%; top: 50%; width: 50%; opacity: 0; animation: daFish 3.8s infinite; }
.da-fish svg { width: 100%; height: auto; display: block; }
@keyframes daFish { 0%, 58% { opacity: 0; transform: scale(.3); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
.da-hand { animation: daHand 3.8s infinite; }
@keyframes daHand { 0% { left: 60%; top: 105%; } 22% { left: 58%; top: 60%; transform: scale(1); } 26% { transform: scale(.85); } 55% { left: 84%; top: 82%; transform: scale(.85); } 62% { transform: scale(1); } 100% { left: 92%; top: 110%; } }

/* =========================================================
   TRILHA DO TRAÇO (v1.4)
   ========================================================= */
.tc-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.tc-bg { position: absolute; inset: 0; background: linear-gradient(180deg, #BDEBFF 0 18%, #A6E08E 18% 100%); pointer-events: none; }
.tc-cloud { position: absolute; width: min(22vw, 140px); opacity: .9; animation: tcCloud 30s linear infinite alternate; }
.tc-cloud svg, .tc-tree svg, .tc-flower svg { width: 100%; height: auto; display: block; }
.tc-cloud.c1 { left: 6%; top: 1%; } .tc-cloud.c2 { right: 8%; top: 4%; width: min(16vw, 100px); animation-delay: -12s; }
@keyframes tcCloud { to { transform: translateX(40px); } }
.tc-tree { position: absolute; width: min(14vmin, 110px); }
.tc-tree.t1 { left: 1%; bottom: 6%; } .tc-tree.t2 { right: 1%; top: 8%; } .tc-tree.t3 { right: 3%; bottom: 4%; width: min(11vmin, 80px); }
.tc-flower { position: absolute; width: min(5vmin, 30px); }
.tc-flower.f1 { left: 5%; bottom: 8%; } .tc-flower.f2 { left: 14%; bottom: 3%; } .tc-flower.f3 { right: 16%; bottom: 10%; }
.tc-layout { position: absolute; inset: 0; display: grid; gap: 8px; padding: 8px max(10px, env(safe-area-inset-right, 0px)) max(8px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.tc-game.land .tc-layout { grid-template-columns: clamp(96px, 17%, 190px) minmax(0, 1fr); }
.tc-game.port .tc-layout { grid-template-rows: auto minmax(0, 1fr); }
.tc-side { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 0; z-index: 2; }
.tc-game.port .tc-side { flex-direction: row; justify-content: center; flex-wrap: wrap; }
.tc-model { width: 100%; max-width: 150px; aspect-ratio: 1; background: #fff; border: 5px solid #5DBB63; border-radius: 22px; box-shadow: 0 6px 0 rgba(0,0,0,.15); display: grid; place-items: center; container-type: inline-size; flex: none; }
.tc-game.port .tc-model { width: clamp(70px, 22vw, 110px); }
.tc-model-l { font-family: var(--font-display); font-weight: 800; font-size: 72cqw; line-height: 1; color: var(--ink); padding-top: 8%; }
.tc-model.low .tc-model-l { font-size: 82cqw; padding-top: 0; padding-bottom: 10%; }
.tc-flip { animation: aqFlip .45s ease-out; }
.tc-name { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; background: #fff; border-radius: 14px; padding: 2px 8px; box-shadow: 0 4px 0 rgba(0,0,0,.12); max-width: 100%; }
.tc-name b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 3.4vmin, 1.6rem); color: #A9A3BD; line-height: 1.3; }
.tc-name b.on { color: #FF5A5A; transform: scale(1.2); }
.tc-flags { display: flex; gap: 5px; flex-wrap: wrap; justify-content: center; }
.tc-flags i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255,255,255,.7); border: 3px solid #fff; box-shadow: 0 3px 0 rgba(0,0,0,.12); }
.tc-flags i.on { background: #FFD23F; border-color: #E0A800; animation: pop .4s; }
.tc-game.land .tc-flags { max-width: 116px; }
.tc-boardwrap { position: relative; min-width: 0; min-height: 0; display: grid; place-items: center; }
.tc-board { position: relative; }
.tc-board.tc-in { animation: tcIn .45s cubic-bezier(.3,1.4,.5,1); }
@keyframes tcIn { from { transform: scale(.85); opacity: 0; } }
.tc-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; touch-action: none; }
.tc-road path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tc-curb { stroke: #fff; }
.tc-asph { stroke: #646B7E; }
.tc-dash { stroke: #FFE27A; }
.tc-road.later { opacity: .38; }
.tc-road.later .tc-dash { display: none; }
.tc-paint { fill: none; stroke: #FF5A5A; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.tc-game.tc-won .tc-paint { animation: tcRainbow 1.2s linear infinite; filter: drop-shadow(0 0 3px #fff); }
@keyframes tcRainbow { 0% { stroke: #FF5A5A; } 25% { stroke: #FFB547; } 50% { stroke: #2FBF71; } 75% { stroke: #4E8CFF; } 100% { stroke: #FF5A5A; } }
.tc-game.tc-won .tc-curb { stroke: #FFD23F; }
.tc-arrow { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.tc-game.hinting .tc-arrow { animation: tcBlink .7s ease-in-out infinite alternate; stroke: #FFD23F; }
@keyframes tcBlink { from { opacity: .2; } to { opacity: 1; } }
.tc-start { fill: #2FBF71; stroke: #fff; stroke-width: 1.5; }
.tc-badge circle { fill: #FF8A2B; stroke: #fff; stroke-width: 1.5; }
.tc-badge text { fill: #fff; font-family: var(--font-display); font-weight: 800; }
.tc-car, .tc-ghost, .tc-top { pointer-events: none; }
.tc-ghost { opacity: .5; }
.tc-ring { fill: none; stroke: #FFD23F; opacity: 0; }
.tc-game:not(.tc-won) .tc-car:not(.held) .tc-ring { animation: tcRing 1.2s ease-in-out infinite; }
.tc-game.tc-lostc .tc-ring { stroke: #FF5A5A; }
@keyframes tcRing { 0%, 100% { opacity: .2; transform: scale(.85); } 50% { opacity: .95; transform: scale(1.05); } }
.tc-car.held .tc-car-fx { transform: scale(1.12); filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.tc-call { animation: tcCall .5s ease-out; }
@keyframes tcCall { 30% { transform: scale(1.3); } 60% { transform: scale(.95); } }
.tc-reverse { animation: tcReverse .9s ease-out; }
@keyframes tcReverse { 0% { transform: rotate(0); } 12% { transform: rotate(-12deg); } 24% { transform: rotate(10deg); } 50% { transform: translateX(-30%) rotate(-6deg); } 75% { transform: translateX(-12%); } 100% { transform: none; } }
.tc-lap { animation: tcLap 1s ease-in-out; }
@keyframes tcLap { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(200deg) scale(1.35); } 100% { transform: rotate(360deg) scale(1); } }
.tc-words { position: absolute; left: 50%; bottom: 2%; translate: -50% 0; display: none; align-items: flex-end; gap: 8px; pointer-events: none; z-index: 5; }
.tc-words.show { display: flex; }
.tc-wl { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 9vmin, 4.2rem); line-height: 1; color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; animation: pop .45s; }
.tc-wcard { width: clamp(70px, 13vmin, 120px); background: #fff; border-radius: 16px; padding: 6px 6px 2px; box-shadow: 0 6px 0 rgba(0,0,0,.15); text-align: center; animation: tcCard .5s cubic-bezier(.3,1.5,.5,1) both; }
.tc-wcard svg { width: 100%; height: auto; display: block; }
.tc-wcard span { font-family: var(--font-display); font-weight: 800; font-size: clamp(.8rem, 2.3vmin, 1.1rem); color: var(--ink); }
@keyframes tcCard { from { transform: translateY(60px) scale(.3); opacity: 0; } }
/* demonstração */
.demo-tc { background: linear-gradient(#BDEBFF 0 20%, #A6E08E 20%); }
.demo-tc .dtc-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* =========================================================
   JOGO 12: SORVETERIA DAS LETRAS
   ========================================================= */
.sv-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: repeating-linear-gradient(90deg, #FFE3EE 0 34px, #FFF2F7 34px 68px); --fs: 70px; --pt: 100px; --cn: 90px; --ch: 180px; --tk: 140px; }
.sv-wall { position: absolute; inset: 0; pointer-events: none; }
.sv-awning { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: repeating-linear-gradient(90deg, #F25C9A 0 40px, #fff 40px 80px); border-radius: 0 0 50% 50% / 0 0 14px 14px; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.sv-counter { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(#FFB3D1 0 12px, #F7A2C4 12px); border-top: 6px solid #F25C9A; pointer-events: none; }
.sv-game.land .sv-counter { height: 22%; }
.sv-layout { position: absolute; inset: 0; display: grid; gap: 6px 12px; padding: 30px max(12px, env(safe-area-inset-right, 0px), calc((100% - 1320px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px), calc((100% - 1320px) / 2)); }
.sv-game.port .sv-layout { grid-template-rows: minmax(0, .95fr) minmax(0, .95fr) minmax(0, 1.1fr); }
.sv-game.land .sv-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.2fr) minmax(0, 1fr); }
.sv-shop { position: relative; min-width: 0; min-height: 0; }
.sv-custwrap { position: absolute; left: 4%; bottom: 0; z-index: 2; }
.sv-game.land .sv-custwrap { left: 0; }
.sv-cust { position: relative; height: var(--ch); aspect-ratio: 100 / 140; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.5,-0.3,.7,1), opacity .6s; }
.sv-cust-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.sv-tongue { display: none; transform-box: fill-box; transform-origin: 50% 0; }
.sv-cust.yum .sv-tongue { display: inline; animation: svLick .4s ease-in-out 3; }
.sv-cust.yum { animation: svDance .5s ease-in-out 3; }
@keyframes svLick { 50% { transform: scaleY(1.6) translateY(2px); } }
@keyframes svDance { 25% { transform: rotate(-8deg) translateY(-8px); } 75% { transform: rotate(8deg) translateY(-8px); } }
.sv-coldface { display: none; }
.sv-cust.cold .sv-coldface { display: inline; }
.sv-cust.cold { animation: svShiver .12s linear 8; }
@keyframes svShiver { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.sv-splat { position: absolute; left: 20%; top: -10%; width: 60%; color: var(--sc); display: none; pointer-events: none; }
.sv-splat svg { width: 100%; height: auto; display: block; }
.sv-cust.cold .sv-splat { display: block; animation: svSplat .35s cubic-bezier(.3,1.6,.5,1); }
@keyframes svSplat { from { transform: translateY(-40px) scale(.6); } }
.sv-headpt { position: absolute; left: 50%; top: 4%; width: 2px; height: 2px; }
.sv-handpt { position: absolute; left: 82%; top: 52%; width: 2px; height: 2px; }
.sv-cust.leave { transform: translateX(-170%) rotate(-10deg); opacity: 0; }
.sv-enter { animation: svEnter .65s cubic-bezier(.2,.9,.3,1.2); }
@keyframes svEnter { from { transform: translateX(-160%); } 60% { transform: translateX(6%) rotate(5deg); } }
.sv-think { position: absolute; width: var(--tk); aspect-ratio: 120 / 110; right: 4%; top: 2%; z-index: 1; }
.sv-game.port .sv-think { right: 6%; top: auto; bottom: 18%; }
.sv-think-svg { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 5px 0 rgba(0,0,0,.08)); }
.sv-pic { position: absolute; left: 22%; top: 13%; width: 62%; height: 70%; }
.sv-pic svg { width: 100%; height: 100%; display: block; }
.sv-think-in { animation: svThinkIn .55s .25s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes svThinkIn { from { transform: scale(0); opacity: 0; } }
.sv-pig { position: absolute; left: 2%; bottom: 2%; width: clamp(54px, 8vmin, 92px); z-index: 1; }
.sv-game.land .sv-think { right: auto; top: auto; bottom: calc(var(--ch) * .78); left: calc(var(--ch) * .45); }
.sv-game.port .sv-think { right: calc(4% + 0px); }
.sv-pig svg { width: 100%; height: auto; display: block; }
.sv-coins { position: absolute; left: 30%; top: 30%; width: 40%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 2.6vmin, 1.6rem); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; line-height: 1; }
.sv-coin { position: absolute; width: 36px; height: 36px; z-index: 40; pointer-events: none; }
.sv-coin svg { width: 100%; height: 100%; display: block; }
.sv-order { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 0; }
.sv-card { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs); line-height: 1.1; color: var(--ink); padding: .1em .26em; border-radius: .3em; max-width: 100%; cursor: pointer; position: relative; z-index: 2;
  background: repeating-linear-gradient(45deg, transparent 0 .3em, rgba(201,139,91,.35) .3em calc(.3em + 3px)), repeating-linear-gradient(-45deg, transparent 0 .3em, rgba(201,139,91,.35) .3em calc(.3em + 3px)), #F2C47E; border: 5px solid #C98B5B; box-shadow: 0 6px 0 rgba(0,0,0,.12); }
.sv-card > b { display: inline-block; padding: 0 .02em; color: var(--ink); -webkit-text-stroke: .1em #FFF7E8; paint-order: stroke fill; }
.sv-gap { position: relative; display: inline-block; font-style: normal; flex: none; width: 1em; height: 1em; margin: 0 .05em; border-radius: 50%; border: max(4px, .06em) dashed #fff; background: rgba(255,255,255,.5); transition: transform .15s, background .15s; }
.sv-gap.wide { width: 1.62em; border-radius: .5em; }
.sv-gap.over, .sv-card.want .sv-gap:not(.full) { background: #fff; }
.sv-gap.over { transform: scale(1.14); }
.sv-card.want .sv-gap:not(.full) { animation: pulse .9s ease-in-out infinite; }
.sv-gap-ghost, .sv-gap-v { position: absolute; inset: 0; display: grid; place-items: center; font-size: .74em; line-height: 1; color: var(--ink); pointer-events: none; }
.sv-gap.wide .sv-gap-ghost, .sv-gap.wide .sv-gap-v { font-size: .62em; }
.sv-gap-ghost { opacity: 0; transition: opacity .3s; }
.sv-gap.hint .sv-gap-ghost { opacity: .33; }
.sv-gap.hint:not(.full) { animation: pulse .9s ease-in-out infinite; box-shadow: 0 0 0 4px #FFD23F, 0 0 18px #FFD23F; }
.sv-gap.full { border-style: solid; border-color: var(--d); background: var(--c); }
.sv-gap.full .sv-gap-ghost { display: none; }
.sv-gap-v { -webkit-text-stroke: .1em #fff; paint-order: stroke fill; }
.sv-card.done { box-shadow: 0 0 0 5px #FFD23F, 0 0 26px #FFD23F; }
.sv-wave { animation: svWave .45s; }
@keyframes svWave { 40% { transform: translateY(-.18em) scale(1.12); } }
.sv-plop { animation: pop .4s; }
.sv-nope { animation: shake .4s; }
.sv-cone { position: relative; width: var(--cn); flex: none; cursor: pointer; }
.sv-cone > svg { width: 100%; height: auto; display: block; }
.sv-cone.gone { visibility: hidden; }
.sv-cone-top { position: absolute; left: -6%; right: -6%; bottom: 86%; display: flex; flex-direction: column-reverse; align-items: center; pointer-events: none; }
.sv-cone-ball { width: 100%; margin-top: -40%; animation: svBallIn .4s cubic-bezier(.3,1.6,.5,1) both; }
.sv-cone-ball:last-child { margin-top: 0; }
.sv-cone-ball svg { width: 100%; height: auto; display: block; }
@keyframes svBallIn { from { transform: translateY(-60px) scale(.5); opacity: 0; } }
.sv-cone-fly { position: absolute !important; z-index: 30; pointer-events: none; transition: opacity .5s; }
.sv-cone-fly.leave { opacity: 0; }
.sv-pots { display: flex; flex-wrap: wrap; align-items: flex-end; align-content: center; justify-content: center; gap: 8px 12px; padding: 0 calc((100% - var(--per, 4) * (var(--pt) + 12px)) / 2); min-width: 0; min-height: 0; position: relative; z-index: 2; }
.sv-pot { position: relative; width: var(--pt); height: calc(var(--pt) * 1.12); flex: none; }
.sv-tub { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; display: block; filter: drop-shadow(0 5px 0 rgba(0,0,0,.12)); }
.sv-spoonw { position: absolute; right: -4%; top: 34%; width: 20%; transform: rotate(24deg); pointer-events: none; z-index: 0; }
.sv-spoonw svg { width: 100%; height: auto; display: block; }
.sv-scoop { position: absolute; left: 7%; top: 0; width: 86%; aspect-ratio: 100 / 96; z-index: 2; cursor: grab; touch-action: none; container-type: inline-size; }
.sv-scoop .sv-ball { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 4px 0 rgba(0,0,0,.12)); }
.sv-scoop b, .ds-sc b, .ds-fly b { position: absolute; left: 0; right: 0; top: 6%; height: 84%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 50cqw; line-height: 1; color: var(--ink); -webkit-text-stroke: .1em #fff; paint-order: stroke fill; pointer-events: none; }
.sv-scoop.syl b { font-size: 36cqw; }
.sv-scoop.kit-sel { outline: none; z-index: 5; }
.sv-scoop.kit-sel .sv-ball path { stroke: #fff; stroke-width: 9; }
.sv-scoop.kit-sel { filter: drop-shadow(0 0 10px #fff); }
.sv-scoop.hint { animation: pulse .9s ease-in-out infinite; }
.sv-scoop.hint .sv-ball { filter: drop-shadow(0 0 8px #FFD23F) drop-shadow(0 0 16px #FFD23F); }
.sv-refill { animation: svBallIn .35s cubic-bezier(.3,1.6,.5,1); }
.sv-wiggle { animation: wobble .5s; }
.kit-ghost.sv-scoop { width: auto; }
.kit-ghost.sv-slip { transition: transform .25s !important; transform: rotate(40deg) translateY(30%) !important; }
/* demonstração */
.demo-sv { background: linear-gradient(#FFE3EE 0 66%, #F7A2C4 66%); }
.ds-think { position: absolute; left: 4%; top: 6%; width: 26%; aspect-ratio: 120 / 110; }
.ds-think > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ds-pic { position: absolute; left: 22%; top: 13%; width: 62%; height: 70%; }
.ds-pic svg { width: 100%; height: 100%; display: block; }
.ds-card { position: absolute; left: 36%; top: 14%; width: 58%; height: 30%; display: flex; align-items: center; justify-content: center; gap: 2%; background: #F2C47E; border: 4px solid #C98B5B; border-radius: 14px; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 5vmin, 2.4rem); color: var(--ink); }
.ds-gap { display: inline-block; width: 1em; height: 1em; border-radius: 50%; border: 3px dashed #fff; background: rgba(255,255,255,.5); }
.ds-pot { position: absolute; bottom: 5%; width: 16%; container-type: inline-size; }
.ds-pot > svg { width: 100%; height: auto; display: block; }
.ds-pot.p1 { left: 36%; } .ds-pot.p2 { left: 57%; } .ds-pot.p3 { left: 78%; }
.ds-sc { position: absolute; left: 5%; width: 90%; bottom: 46%; aspect-ratio: 100 / 96; container-type: inline-size; }
.ds-sc svg, .ds-fly svg { width: 100%; height: 100%; display: block; }
.ds-pot.p2 .ds-sc { animation: dsGone 3.6s infinite; }
@keyframes dsGone { 0%, 14% { opacity: 1; } 16%, 70% { opacity: .25; } 76%, 100% { opacity: 1; } }
.ds-fly { position: absolute; width: 14.4%; aspect-ratio: 100 / 96; left: 57.8%; top: 47%; container-type: inline-size; opacity: 0; animation: dsFly 3.6s infinite; }
@keyframes dsFly { 0%, 14% { opacity: 0; transform: none; } 16% { opacity: 1; transform: none; } 48% { opacity: 1; transform: translate(-60%, -112%) scale(.62); } 92% { opacity: 1; transform: translate(-60%, -112%) scale(.62); } 100% { opacity: 0; transform: translate(-60%, -112%) scale(.62); } }
.ds-hand { animation: dsHand 3.6s infinite; }
@keyframes dsHand { 0% { left: 70%; top: 105%; } 14% { left: 64%; top: 56%; transform: scale(1); } 17% { transform: scale(.85); } 48% { left: 56%; top: 22%; transform: scale(.85); } 56% { transform: scale(1); } 100% { left: 80%; top: 110%; } }

/* ===== Tambor das Sílabas (v1.6) ===== */
.tb-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: linear-gradient(#C9F0FF 0, #E6F8D8 38%, #B8E59A 100%); --fs: 56px; --pic: 140px; --pd: 90px; --dr: 100px; --fr: 84px; --pl: 110px; }
.tb-sky { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 88% 10%, #FFF2A8 0 4%, transparent 4.5%), radial-gradient(ellipse at 20% 12%, #fff 0 5%, transparent 5.5%), radial-gradient(ellipse at 27% 10%, #fff 0 4%, transparent 4.5%); opacity: .9; }
.tb-layout { position: absolute; inset: 0; display: grid; gap: 10px 12px; padding: 10px max(12px, env(safe-area-inset-right, 0px), calc((100% - 1320px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px), calc((100% - 1320px) / 2)); }
.tb-game.land .tb-layout { grid-template-columns: minmax(0, .3fr) minmax(0, 1fr); grid-template-rows: minmax(0, .92fr) minmax(0, 1.08fr); grid-template-areas: "pile words" "pond pond"; }
.tb-game.port .tb-layout { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: minmax(0, .64fr) minmax(0, 1.36fr); grid-template-areas: "words words" "pond pile"; }
.tb-words { grid-area: words; display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 0; }
.tb-pilebox { grid-area: pile; display: grid; place-items: center; min-width: 0; min-height: 0; transition: opacity .3s; }
.tb-pond { grid-area: pond; position: relative; min-width: 0; min-height: 0; }
.tb-game.comparing .tb-pilebox { opacity: .3; }
.tb-game.comparing .tb-slots { opacity: .45; }
/* palavra */
.tb-card { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #fff; border: 5px solid #43B65A; border-radius: 26px; padding: 8px 14px; box-shadow: 0 6px 0 rgba(0,0,0,.1); max-width: 100%; max-height: 100%; min-width: 0; transition: opacity .4s, transform .4s; }
.tb-words.side .tb-card { flex-direction: row; gap: 16px; padding: 8px 22px 8px 12px; }
.tb-words.two .tb-card { flex: 1 1 0; cursor: pointer; min-height: 0; }
.tb-words.col { flex-direction: column; gap: 10px; }
.tb-words.col .tb-card { width: 100%; }
.tb-game.land.comparing .tb-words { grid-column: 1 / -1; }
.tb-game.land.comparing .tb-pilebox { display: none; }
.tb-pic { width: var(--pic); height: var(--pic); flex: none; display: block; }
.tb-pic svg { width: 100%; height: 100%; display: block; }
.tb-text { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: var(--fs); line-height: 1.05; color: var(--ink); white-space: nowrap; }
.tb-s { display: inline-block; transition: color .2s, background .25s, padding .25s, margin .25s; border-radius: .22em; }
.tb-s.lit { color: var(--sc); }
.tb-s.miss { color: #fff; background: #8FD3FF; }
.tb-dot { display: inline-block; width: 0; height: .2em; border-radius: 50%; background: transparent; transition: width .25s, margin .25s, background .25s; }
.tb-words.hint .tb-dot { width: .2em; margin: 0 .12em; background: var(--ink); }
.tb-words.hint .tb-s { color: var(--sc); }
.tb-words.split .tb-dot { width: .14em; margin: 0 .05em; background: transparent; }
.tb-words.split .tb-s { background: var(--sc); color: #fff; padding: 0 .14em; -webkit-text-stroke: .05em rgba(0,0,0,.15); }
.tb-words.want .tb-card { animation: pulse .9s ease-in-out infinite; }
.tb-card.over { box-shadow: 0 0 0 6px #FFD23F, 0 0 22px #FFD23F; }
.tb-card.gone { opacity: 0; transform: scale(.6); }
.tb-in { animation: pop .45s; }
.tb-beat { animation: tbBeat .3s; }
@keyframes tbBeat { 40% { transform: translateY(-.16em) scale(1.18); } }
.tb-nope { animation: shake .4s; }
/* lagoa */
.tb-water { position: absolute; inset: 0; border-radius: 30px; background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,.35) 0 6%, transparent 6.5%), radial-gradient(ellipse at 70% 75%, rgba(255,255,255,.28) 0 5%, transparent 5.5%), linear-gradient(160deg, #67D0F5, #2FA6DE); box-shadow: inset 0 0 0 6px rgba(255,255,255,.35), 0 6px 0 rgba(0,0,0,.08); }
.tb-pond.over .tb-water, .tb-pond.want .tb-water { box-shadow: inset 0 0 0 6px #fff, 0 0 18px #fff; }
.tb-bank { position: absolute; pointer-events: none; overflow: hidden; border-radius: 30px; }
.tb-bank-svg { width: 100%; height: 100%; display: block; }
.tb-bank-svg.fx { transform: scaleX(-1); }
.tb-bank-svg.fy { transform: scaleY(-1); }
.tb-flag { position: absolute; width: min(60%, 64px); right: 14%; top: 50%; translate: 0 -55%; }
.tb-pond.vert .tb-flag { width: auto; height: 80%; right: 12%; top: 46%; }
.tb-pond.vert .tb-flag svg { height: 100%; width: auto; }
.tb-flag svg { width: 100%; height: auto; display: block; }
.tb-slots { position: absolute; inset: 0; transition: opacity .3s; }
.tb-slot { position: absolute; width: var(--pd); height: var(--pd); }
.tb-ring { position: absolute; inset: 8%; border-radius: 50%; border: 4px dashed rgba(255,255,255,.75); background: rgba(255,255,255,.12); }
.tb-pond.want .tb-slot.next .tb-ring, .tb-pond.over .tb-slot.next .tb-ring { background: rgba(255,255,255,.55); animation: pulse .9s ease-in-out infinite; }
.tb-pad { position: absolute; inset: 0; transform: scale(0); opacity: 0; transition: transform .25s cubic-bezier(.3,1.6,.5,1), opacity .2s, filter .2s; pointer-events: none; }
.tb-slot.full { cursor: pointer; }
.tb-slot.full .tb-pad { transform: none; opacity: 1; }
.tb-pad svg, .tb-flypad svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 0 rgba(0,0,0,.15)); }
.tb-slot.lit .tb-pad { filter: brightness(1.15) drop-shadow(0 0 10px #FFF2A8); }
.tb-slot.need .tb-ring { border-color: #FFD23F; background: rgba(255,210,63,.35); animation: pulse .7s ease-in-out infinite; box-shadow: 0 0 16px #FFD23F; }
.tb-slot.extra .tb-pad { animation: tbBlink .6s ease-in-out infinite; }
@keyframes tbBlink { 50% { filter: drop-shadow(0 0 10px #FF6B6B) brightness(1.2); transform: scale(1.08); } }
.tb-slot.sinking .tb-pad { transition: transform .5s, opacity .5s; transform: translateY(12%) scale(.7); opacity: .25; }
.tb-slots.sink .tb-slot.full .tb-pad { transition: transform .5s, opacity .5s; transform: scale(.4); opacity: 0; }
.tb-plop { animation: pop .4s; }
.tb-bob { animation: tbBob .35s; }
@keyframes tbBob { 50% { transform: scale(.9) translateY(6%); } }
.tb-full { animation: shake .4s; }
.tb-flypad { position: absolute; z-index: 30; pointer-events: none; }
.tb-drum { position: absolute; width: var(--dr); height: calc(var(--dr) * .9); padding: 0; margin: 0; border: 0; background: none; cursor: pointer; z-index: 4; -webkit-tap-highlight-color: transparent; }
.tb-drum svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tb-hit { animation: tbHit .25s; }
@keyframes tbHit { 40% { transform: scale(1.1, .9); } }
/* sapo */
.tb-frog { position: absolute; left: 0; top: 0; width: var(--fr); height: var(--fr); z-index: 20; cursor: pointer; transition: opacity .3s, transform .3s; transform-origin: 50% 90%; }
.tb-frog svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tb-frog.grab { cursor: grab; animation: tbWait 1.4s ease-in-out infinite; }
@keyframes tbWait { 50% { transform: translateY(-6%) rotate(-3deg); } }
.tb-frog.kit-sel { outline: none; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 4px #FFD23F); }
.tb-frog.air { transform: scale(1.06, .94) rotate(-4deg); }
.tb-frog.sunk { opacity: 0; transform: translateY(40%) scale(.6); }
.tb-drops, .tb-q, .tb-oh { display: none; }
.tb-frog.wet .tb-drops { display: inline; }
.tb-frog.wet { animation: tbShake .14s linear 7; }
@keyframes tbShake { 25% { transform: rotate(-6deg); } 75% { transform: rotate(6deg); } }
.tb-frog.huh .tb-q, .tb-frog.huh .tb-oh { display: inline; }
.tb-frog.huh .tb-smile { display: none; }
.tb-frog.huh { animation: wobble .6s; }
.tb-frog.dance { animation: tbDance .45s ease-in-out 4; }
@keyframes tbDance { 25% { transform: translateY(-14%) rotate(-10deg); } 75% { transform: translateY(-14%) rotate(10deg); } }
.tb-stick { transform-box: fill-box; }
.tb-stick.l { transform-origin: 100% 100%; } .tb-stick.r { transform-origin: 0 100%; }
.tb-frog.drum .tb-stick.l, .tb-frog.dance .tb-stick.l { animation: tbStickL .2s ease-in-out 3; }
.tb-frog.drum .tb-stick.r, .tb-frog.dance .tb-stick.r { animation: tbStickR .2s ease-in-out 3 .1s; }
@keyframes tbStickL { 50% { transform: rotate(-35deg); } }
@keyframes tbStickR { 50% { transform: rotate(35deg); } }
.tb-frog.slip { transform: rotate(-60deg) translateX(-20%); transition: transform .35s cubic-bezier(.5,-0.4,.6,1.4); }
.tb-wiggle { animation: wobble .5s; }
/* pilha de folhas */
.tb-pile { position: relative; width: var(--pl); height: var(--pl); }
.tb-stack { position: absolute; width: 86%; height: 86%; pointer-events: none; }
.tb-stack svg { width: 100%; height: 100%; display: block; }
.tb-stack.s1 { left: 0; top: 14%; transform: rotate(-14deg); opacity: .8; }
.tb-stack.s2 { left: 14%; top: 8%; transform: rotate(10deg); opacity: .9; }
.tb-src { position: absolute; left: 6%; top: 0; width: 86%; height: 86%; cursor: grab; touch-action: none; z-index: 2; }
.tb-src svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 5px 0 rgba(0,0,0,.15)); }
.tb-src.kit-sel { outline: none; border-radius: 50%; filter: drop-shadow(0 0 10px #fff) drop-shadow(0 0 6px #FFD23F); }
.kit-ghost.tb-src { border-radius: 50%; }
.kit-ghost.tb-frog { width: var(--fr); height: var(--fr); }
/* demonstração */
.demo-tb { background: linear-gradient(#E6F8D8 0 46%, #B8E59A 46%); }
.dt-word { position: absolute; left: 30%; top: 5%; width: 64%; height: 36%; display: flex; align-items: center; justify-content: center; gap: 6%; background: #fff; border: 4px solid #43B65A; border-radius: 16px; }
.dt-pic { width: 34%; height: 90%; } .dt-pic svg { width: 100%; height: 100%; display: block; }
.dt-word b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.4rem, 6vmin, 2.6rem); color: var(--ink); }
.dt-word i { font-style: normal; display: inline-block; }
.dt-word i.a { animation: dtLitA 4s infinite; } .dt-word i.b { animation: dtLitB 4s infinite; }
@keyframes dtLitA { 0%, 62% { color: var(--ink); transform: none; } 64%, 96% { color: #FF6B6B; transform: translateY(-6%); } }
@keyframes dtLitB { 0%, 76% { color: var(--ink); transform: none; } 78%, 96% { color: #4E8CFF; transform: translateY(-6%); } }
.dt-pond { position: absolute; left: 4%; right: 4%; bottom: 6%; height: 40%; border-radius: 18px; background: linear-gradient(160deg, #67D0F5, #2FA6DE); }
.dt-pile { position: absolute; left: 6%; top: 10%; width: 18%; } .dt-pile svg, .dt-pad svg, .dt-drum svg, .dt-frog svg { width: 100%; height: auto; display: block; }
.dt-drum { position: absolute; left: 6%; bottom: 12%; width: 17%; }
.dt-pad { position: absolute; bottom: 14%; width: 17%; opacity: 0; }
.dt-pad.p1 { left: 36%; animation: dtPad1 4s infinite; } .dt-pad.p2 { left: 60%; animation: dtPad2 4s infinite; }
@keyframes dtPad1 { 0%, 22% { opacity: 0; transform: scale(.4); } 26%, 100% { opacity: 1; transform: none; } }
@keyframes dtPad2 { 0%, 44% { opacity: 0; transform: scale(.4); } 48%, 100% { opacity: 1; transform: none; } }
.dt-frog { position: absolute; left: 7.5%; bottom: 30%; width: 14%; animation: dtFrog 4s infinite; }
@keyframes dtFrog { 0%, 56% { left: 7.5%; bottom: 30%; } 61% { bottom: 44%; } 64% { left: 37.5%; bottom: 22%; } 71% { bottom: 38%; } 78%, 84% { left: 61.5%; bottom: 22%; } 92% { left: 84%; bottom: 34%; } 100% { left: 84%; bottom: 30%; } }
.dt-hand { animation: dtHand 4s infinite; }
@keyframes dtHand { 0% { left: 14%; top: 26%; } 8% { left: 12%; top: 22%; transform: scale(.85); } 22% { left: 41%; top: 62%; transform: scale(.85); } 26% { transform: scale(1); } 30% { left: 12%; top: 22%; transform: scale(.85); } 44% { left: 65%; top: 62%; transform: scale(.85); } 48% { transform: scale(1); } 52% { left: 14%; top: 70%; transform: scale(1); } 55% { transform: scale(.85); } 58%, 100% { left: 14%; top: 108%; transform: scale(1); } }

/* ===== Cozinha das Palavras (v1.7) ===== */
.cz-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: #FFF3DC; --sl: 80px; --ch: 180px; --cd: 140px; --ov: 120px; --jt: 90px; }
.cz-wall { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,.55) 2px, transparent 2px) 0 0 / 46px 46px, linear-gradient(rgba(255,255,255,.55) 2px, transparent 2px) 0 0 / 46px 46px, linear-gradient(#FFE9C7, #FFF3DC); }
.cz-layout { position: absolute; inset: 0; display: grid; gap: 8px 12px; padding: 10px max(12px, env(safe-area-inset-right, 0px), calc((100% - 1320px) / 2)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px), calc((100% - 1320px) / 2)); }
.cz-game.land .cz-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.5fr) minmax(0, .6fr); grid-template-rows: minmax(0, 1.12fr) minmax(0, .88fr); grid-template-areas: "chef form oven" "shelf shelf shelf"; }
.cz-game.port .cz-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-rows: minmax(0, .9fr) minmax(0, .5fr) minmax(0, 1fr); grid-template-areas: "chef oven" "form form" "shelf shelf"; }
.cz-chefbox { grid-area: chef; display: flex; align-items: flex-end; justify-content: center; gap: 10px; min-width: 0; min-height: 0; }
.cz-game.port .cz-chefbox { align-items: center; }
.cz-chef { height: var(--ch); aspect-ratio: 100 / 140; flex: none; transform-origin: 50% 100%; }
.cz-chef svg { width: 100%; height: 100%; display: block; overflow: visible; }
.cz-eyes-wow, .cz-oh { display: none; }
.cz-chef.wow .cz-eyes-wow, .cz-chef.wow .cz-oh { display: inline; }
.cz-chef.wow .cz-eyes-ok, .cz-chef.wow .cz-smile { display: none; }
.cz-chef.wow { animation: wobble .5s; }
.cz-stache { transform-box: fill-box; transform-origin: 50% 50%; }
.cz-chef.wow .cz-stache { animation: czStache .1s linear 10; }
@keyframes czStache { 50% { transform: translateY(-2px) scaleX(1.08); } }
.cz-card { width: var(--cd); height: var(--cd); flex: none; background: #fff; border: 5px solid #FF8A2B; border-radius: 22px; box-shadow: 0 6px 0 rgba(0,0,0,.1); display: grid; place-items: center; align-self: center; transform: rotate(3deg); }
.cz-pic { width: 84%; height: 84%; display: block; }
.cz-pic svg { width: 100%; height: 100%; display: block; }
.cz-in { animation: pop .45s; }
.cz-formbox { grid-area: form; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.cz-form { display: flex; gap: 8px; padding: 12px 16px; background: linear-gradient(#DCE3EE, #B9C3D6); border: 5px solid #8A93A8; border-radius: 20px; box-shadow: 0 7px 0 rgba(0,0,0,.12), inset 0 3px 0 rgba(255,255,255,.6); cursor: pointer; max-width: 100%; transition: opacity .2s; }
.cz-form.gone { opacity: 0; }
.cz-form.done { box-shadow: 0 0 0 5px #FFD23F, 0 0 24px #FFD23F; }
.cz-slot { position: relative; width: var(--sl); height: var(--sl); flex: none; border-radius: 14px; border: 4px dashed #8A93A8; background: rgba(255,255,255,.55); display: grid; place-items: center; transition: transform .15s, background .15s; }
.cz-slot.over, .cz-form.want .cz-slot:not(.full) { background: #fff; }
.cz-slot.over { transform: scale(1.12); }
.cz-form.want .cz-slot:not(.full) { animation: pulse .9s ease-in-out infinite; }
.cz-slot.full { border-style: solid; border-color: #C98B5B; background: #F2C47E; }
.cz-slot.ok { border-color: #2FBF71; }
.cz-let, .cz-ghost { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: calc(var(--sl) * .64); line-height: 1; color: var(--ink); pointer-events: none; }
.cz-ghost { opacity: 0; transition: opacity .3s; }
.cz-slot.hint .cz-ghost { opacity: .3; }
.cz-slot.hint { box-shadow: 0 0 0 4px #FFD23F, 0 0 16px #FFD23F; animation: pulse .9s ease-in-out infinite; }
.cz-form.blind .cz-slot:not(.full):last-child::after { content: '+'; font-family: var(--font-display); font-weight: 800; font-size: calc(var(--sl) * .5); color: #8A93A8; }
.cz-plop { animation: squash .35s; }
.cz-wave { animation: svWave .45s; }
.cz-shake { animation: shake .4s; }
.cz-wob { animation: wobble .45s; }
.cz-jump { animation: czJump .6s; }
@keyframes czJump { 30% { transform: translateY(-22%); } 60% { transform: none; } 80% { transform: translateY(-8%); } }
.kit-ghost.cz-nope { animation: shake .35s !important; }
.cz-fly { position: absolute !important; z-index: 30; pointer-events: none; margin: 0; }
.cz-ovenbox { grid-area: oven; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 0; }
.cz-oven { width: var(--ov); aspect-ratio: 100 / 110; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cz-oven svg { width: 100%; height: 100%; display: block; overflow: visible; filter: drop-shadow(0 6px 0 rgba(0,0,0,.12)); }
.cz-oven.ask { animation: pulse .9s ease-in-out infinite; }
.cz-oven.ask .cz-glow, .cz-oven.baking .cz-glow { opacity: .9; }
.cz-oven.baking { animation: czBake .25s linear infinite; }
@keyframes czBake { 50% { transform: translateY(-2px) rotate(-1deg); } }
.cz-glow { transition: opacity .3s; }
.cz-book { position: relative; width: clamp(54px, 7vmin, 84px); flex: none; }
.cz-game.port .cz-book { position: absolute; right: 0; bottom: 0; }
.cz-book svg { width: 100%; height: auto; display: block; }
.cz-count { position: absolute; inset: 14% 0 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1rem, 2.6vmin, 1.5rem); color: #E05A8E; -webkit-text-stroke: 3px #fff; paint-order: stroke fill; }
.cz-shelf { grid-area: shelf; position: relative; min-width: 0; min-height: 0; background: linear-gradient(transparent calc(100% - 16px), #B9722F calc(100% - 16px), #B9722F calc(100% - 8px), #8B5A3C calc(100% - 8px)); }
.cz-jars { position: absolute; inset: 0 0 14px; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: center; justify-content: center; gap: 10px 12px; padding: 0 calc((100% - var(--per, 6) * (var(--jt) + 12px)) / 2); }
.cz-jar { position: relative; width: var(--jt); height: calc(var(--jt) * 1.1); flex: none; cursor: grab; touch-action: none; transition: opacity .2s; }
.cz-jar svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 0 rgba(0,0,0,.12)); }
.cz-jar b { position: absolute; left: 0; right: 0; top: 22%; bottom: 6%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: calc(var(--jt) * .56); line-height: 1; color: var(--jc); -webkit-text-stroke: .05em var(--ink); paint-order: stroke fill; pointer-events: none; }
.cz-jar.used { opacity: 0; pointer-events: none; }
.cz-jar.kit-sel { outline: none; filter: drop-shadow(0 0 8px #fff) drop-shadow(0 0 4px #FFD23F); transform: translateY(-8%); }
.cz-jar.hint { animation: czJump .8s ease-in-out infinite; }
.cz-jar.hint svg { filter: drop-shadow(0 0 8px #FFD23F) drop-shadow(0 0 14px #FFD23F); }
.kit-ghost.cz-jar b { color: var(--jc); }
.cz-out { position: absolute; z-index: 35; pointer-events: none; transform: scale(.15); opacity: 0; transition: left .55s cubic-bezier(.3,1.3,.5,1), top .55s cubic-bezier(.3,1.3,.5,1), transform .55s cubic-bezier(.3,1.3,.5,1), opacity .3s; background: radial-gradient(circle, #fff 0 55%, rgba(255,255,255,0) 70%); border-radius: 50%; }
.cz-out.show { transform: none; opacity: 1; }
.cz-out > svg { position: absolute; inset: 10%; width: 80%; height: 80%; display: block; }
.cz-out > svg.alive { animation-duration: 1s; animation-iteration-count: 2; animation-timing-function: ease-in-out; transform-origin: 50% 85%; }
.cz-out > svg.anim-spin { animation-name: faSpin; transform-origin: 50% 50%; }
.cz-out > svg.anim-swing { animation-name: faSwing; transform-origin: 50% 15%; }
.cz-outw { position: absolute; left: 50%; bottom: -6%; translate: -50% 0; background: #fff; border: 4px solid #FF8A2B; border-radius: 14px; padding: 0 .3em; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.3rem, 5vmin, 2.6rem); color: var(--ink); white-space: nowrap; }
.cz-steam { position: absolute; left: 30%; right: 30%; top: -6%; height: 26%; display: flex; justify-content: space-between; }
.cz-steam i { width: 14%; height: 100%; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 0 8px rgba(160,170,190,.6); animation: czSteam 1.2s ease-in infinite; }
.cz-steam i:nth-child(2) { animation-delay: .3s; } .cz-steam i:nth-child(3) { animation-delay: .6s; }
@keyframes czSteam { from { transform: translateY(40%) scale(.6); opacity: 0; } 40% { opacity: .9; } to { transform: translateY(-60%) scale(1.2); opacity: 0; } }
/* demonstração */
.demo-cz { background: linear-gradient(#FFE9C7 0 62%, #E7A35A 62%); }
.dz-chef { position: absolute; left: 3%; top: 4%; width: 18%; } .dz-chef svg, .dz-jar svg { width: 100%; height: auto; display: block; }
.dz-card { position: absolute; left: 23%; top: 8%; width: 22%; aspect-ratio: 1; background: #fff; border: 3px solid #FF8A2B; border-radius: 12px; } .dz-card svg { width: 100%; height: 100%; display: block; }
.dz-form { position: absolute; left: 50%; top: 18%; width: 46%; height: 26%; display: flex; gap: 5%; justify-content: center; align-items: center; background: #C9D3E3; border: 3px solid #8A93A8; border-radius: 12px; }
.dz-form i { width: 26%; height: 76%; border-radius: 8px; border: 3px dashed #8A93A8; background: rgba(255,255,255,.5); display: grid; place-items: center; font-style: normal; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 5vmin, 2.2rem); color: transparent; }
.dz-form i.a { animation: dzA 4.2s infinite; } .dz-form i.b { animation: dzB 4.2s infinite; } .dz-form i.c { animation: dzC 4.2s infinite; }
@keyframes dzA { 0%, 24% { color: transparent; background: rgba(255,255,255,.5); } 27%, 100% { color: var(--ink); background: #F2C47E; border-style: solid; } }
@keyframes dzB { 0%, 50% { color: transparent; background: rgba(255,255,255,.5); } 53%, 100% { color: var(--ink); background: #F2C47E; border-style: solid; } }
@keyframes dzC { 0%, 76% { color: transparent; background: rgba(255,255,255,.5); } 79%, 100% { color: var(--ink); background: #F2C47E; border-style: solid; } }
.dz-jar { position: absolute; bottom: 6%; width: 15%; }
.dz-jar b { position: absolute; inset: 22% 0 6%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.2rem, 5vmin, 2.2rem); color: var(--ink); }
.dz-jar.j1 { left: 22%; animation: dzJ3 4.2s infinite; } .dz-jar.j2 { left: 44%; animation: dzJ1 4.2s infinite; } .dz-jar.j3 { left: 66%; animation: dzJ2 4.2s infinite; }
@keyframes dzJ1 { 0%, 24% { opacity: 1; } 26%, 94% { opacity: .15; } 100% { opacity: 1; } }
@keyframes dzJ2 { 0%, 50% { opacity: 1; } 52%, 94% { opacity: .15; } 100% { opacity: 1; } }
@keyframes dzJ3 { 0%, 76% { opacity: 1; } 78%, 94% { opacity: .15; } 100% { opacity: 1; } }
.dz-hand { animation: dzHand 4.2s infinite; }
@keyframes dzHand { 0% { left: 50%; top: 80%; transform: scale(1); } 6% { left: 50%; top: 76%; transform: scale(.85); } 24% { left: 57%; top: 28%; transform: scale(.85); } 27% { transform: scale(1); } 32% { left: 72%; top: 76%; transform: scale(.85); } 50% { left: 70%; top: 28%; transform: scale(.85); } 53% { transform: scale(1); } 58% { left: 28%; top: 76%; transform: scale(.85); } 76% { left: 83%; top: 28%; transform: scale(.85); } 79%, 100% { left: 90%; top: 110%; transform: scale(1); } }
.cz-game.port .cz-form { gap: 5px; padding: 8px 10px; border-width: 4px; }

/* ---------- Tela de matérias (cartões com progresso) ---------- */
.subjects-v2, .subjects-v2 .screen { background: #FFF6E8; }
.subj-wrap { max-width: 640px; margin: 0 auto; padding: 0 4px 28px; display: flex; flex-direction: column; gap: 16px; }
.subj-greet { justify-content: flex-start; margin: 0; }
.subj-greet .bubble { font-size: clamp(1.05rem, 4.2vw, 1.35rem); }
.subj-continue { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; border-radius: 20px; padding: 12px 16px; text-align: left; min-height: 64px; box-shadow: 0 5px 0 rgba(0,0,0,.25); }
.subj-continue:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0,0,0,.25); }
.subj-play { width: 44px; height: 44px; border-radius: 50%; background: #FF8A2B; display: flex; align-items: center; justify-content: center; flex: none; }
.subj-play .ic { width: 22px; height: 22px; }
.subj-cont-txt { display: flex; flex-direction: column; }
.subj-cont-lbl { font-size: .85rem; font-weight: 800; opacity: .85; }
.subj-cont-name { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; }
.subj-list { display: flex; flex-direction: column; gap: 16px; }
.subj-card { display: flex; align-items: center; gap: 12px; background: var(--icd); color: #fff; border: 3px solid var(--ink); border-radius: 26px; box-shadow: 0 6px 0 var(--ink); padding: 16px 14px 16px 20px; text-align: left; transition: transform .12s; }
.subj-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.subj-info { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.subj-name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 6.5vw, 2rem); line-height: 1; text-shadow: 0 2px 0 rgba(0,0,0,.15); }
.subj-count { font-weight: 800; font-size: .95rem; }
.subj-bar { height: 12px; background: rgba(255,255,255,.35); border-radius: 99px; overflow: hidden; margin-top: 2px; }
.subj-bar > span { display: block; height: 100%; min-width: 12px; background: #FFE27A; border-radius: 99px; }
.subj-stars { display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: .9rem; }
.subj-star { width: 18px; height: 18px; color: #FFD23F; }
.subj-art { width: clamp(108px, 32vw, 150px); aspect-ratio: 4 / 3; background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 6px; flex: none; display: flex; }
.subj-art svg { width: 100%; height: 100%; }
.subj-soon-title { margin: 6px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.subj-soon { display: flex; flex-wrap: wrap; gap: 8px; }
.subj-chip { display: flex; align-items: center; gap: 6px; background: #EDE6DA; color: #5C5348; border-radius: 99px; padding: 10px 16px; font-weight: 800; font-size: 1rem; min-height: 48px; }
.subj-chip .ic { width: 18px; height: 18px; }
.subj-chip.wobble { animation: wobble .6s; }
@media (min-width: 900px) {
  .subj-wrap { max-width: 920px; }
  .subj-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- VARAL DAS PALAVRAS ---------- */
.va-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: linear-gradient(180deg, #9FE0FF 0%, #D6F3FF 62%, #7FD27A 62%, #6CC567 100%); --sw: 100px; --cw: 110px; }
.va-sky { position: absolute; inset: 0; pointer-events: none; }
.va-sun { position: absolute; right: 6%; top: 4%; width: 12vmin; height: 12vmin; border-radius: 50%; background: #FFD23F; box-shadow: 0 0 0 10px rgba(255,210,63,.3); transition: box-shadow .4s, transform .4s; }
.va-game.shine .va-sun { box-shadow: 0 0 0 26px rgba(255,210,63,.45), 0 0 60px 30px rgba(255,236,150,.6); transform: scale(1.15); }
.va-cloud { position: absolute; background: #fff; border-radius: 99px; opacity: .85; height: 6vmin; animation: vaCloud 30s linear infinite; }
.va-cloud.c1 { width: 22vmin; top: 8%; left: -25%; } .va-cloud.c2 { width: 16vmin; top: 18%; left: -25%; animation-delay: -14s; animation-duration: 38s; }
@keyframes vaCloud { to { transform: translateX(160vw); } }
.va-grass { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: radial-gradient(circle at 20% 0, #8FE08A 0 30%, transparent 31%), radial-gradient(circle at 70% 0, #8FE08A 0 24%, transparent 25%); opacity: .5; pointer-events: none; }
.va-layout { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1.25fr) minmax(0, 1fr); gap: 6px; padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.va-yard { position: relative; min-height: 0; display: flex; justify-content: center; }
.va-pole { position: absolute; top: 6px; bottom: 0; width: 10px; border-radius: 5px; background: #8B5A3C; }
.va-pole.l { left: 2%; } .va-pole.r { right: 2%; }
.va-rope { position: absolute; left: 2%; right: 2%; top: 18px; height: 28px; border-bottom: 4px solid #6B4226; border-radius: 0 0 50% 50% / 0 0 100% 100%; pointer-events: none; }
.va-slots { position: relative; z-index: 1; display: flex; justify-content: center; gap: 12px; padding-top: 14px; width: 100%; max-width: 980px; }
.va-slots.out .va-cloth { transition: transform .4s, opacity .4s; transform: translateY(-30px) scale(.6); opacity: 0; }
.va-slot { width: var(--sw); display: flex; flex-direction: column; align-items: center; position: relative; cursor: pointer; }
.va-slot .va-peg { width: calc(var(--sw) * .16); height: auto; position: relative; z-index: 2; margin-bottom: -6px; }
.va-pic { width: var(--sw); height: var(--sw); background: #fff; border: 4px solid var(--ink); border-radius: 16px; box-shadow: 0 5px 0 rgba(0,0,0,.15); padding: 6%; box-sizing: border-box; transition: transform .2s, box-shadow .2s; }
.va-pic svg { width: 100%; height: 100%; display: block; }
.va-slot.near .va-pic { transform: scale(1.06); box-shadow: 0 0 0 6px #FFD23F, 0 5px 0 rgba(0,0,0,.15); }
.va-slot.hint .va-pic { box-shadow: 0 0 0 6px #FF8A2B, 0 0 22px 6px rgba(255,138,43,.6); animation: pulse .8s ease-in-out infinite; }
.va-hang { width: var(--sw); height: calc(var(--sw) * .95); display: flex; justify-content: center; align-items: flex-start; margin-top: 2px; }
.va-hop { animation: vaHop .5s; }
@keyframes vaHop { 30% { transform: translateY(-14px) scale(1.06); } 60% { transform: translateY(0) scale(.97); } }
.va-basket { position: relative; min-height: 0; display: flex; justify-content: center; align-items: stretch; }
.va-basket-back { position: absolute; left: 50%; bottom: 0; width: min(96%, 900px); height: 70%; translate: -50% 0; background: repeating-linear-gradient(90deg, #D9A15C 0 14px, #C98B5B 14px 28px); border: 4px solid #8B5A3C; border-radius: 18px 18px 40px 40px; }
.va-clothes { position: relative; z-index: 1; width: min(96%, 900px); display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 12px; }
.va-cloth { width: var(--cw); height: var(--cw); position: relative; cursor: grab; touch-action: none; container-type: inline-size; }
.va-cloth > svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 4px 0 rgba(0,0,0,.15)); }
.va-word { position: absolute; left: 14%; right: 14%; top: 42%; text-align: center; font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1; font-size: min(24cqw, calc(118cqw / var(--n))); background: rgba(255,255,255,.85); border-radius: 8px; padding: 2px 0; pointer-events: none; }
.va-first.hint { color: #fff; background: #FF8A2B; border-radius: 5px; padding: 0 2px; }
.va-cloth.hint { animation: pulse .8s ease-in-out infinite; }
.va-in { animation: vaIn .5s backwards; }
@keyframes vaIn { from { transform: translateY(40px) scale(.6); opacity: 0; } }
.va-hang .va-cloth { width: calc(var(--sw) * .95); height: calc(var(--sw) * .95); cursor: default; transform-origin: 50% 0; animation: vaSwing 2.4s ease-in-out infinite; }
@keyframes vaSwing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
.va-game.wind .va-hang .va-cloth { animation: vaSwing .3s ease-in-out infinite; }
.va-bird { position: absolute; z-index: 3; width: calc(var(--sw) * .7); top: -2px; right: 6%; transform: translate(160%, -140%) scaleX(-1); transition: transform .6s cubic-bezier(.3,1.3,.5,1); pointer-events: none; }
.va-bird svg { width: 100%; height: auto; display: block; }
.va-bird.in { transform: translate(0, 0) scaleX(-1); animation: vaSing .35s ease-in-out .6s 4; }
.va-bird.peek { transform: translate(40%, -20%) scaleX(-1) rotate(-10deg); }
@keyframes vaSing { 50% { transform: translate(0, -6px) scaleX(-1) rotate(-6deg); } }
.va-game.land .va-layout { grid-template-rows: minmax(0, 1.35fr) minmax(0, 1fr); }
/* demonstração */
.demo-va { background: linear-gradient(#BEEBFF 0 70%, #7FD27A 70%); }
.dva-line { position: absolute; left: 6%; right: 6%; top: 8%; height: 10%; border-bottom: 3px solid #6B4226; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.dva-pic { position: absolute; top: 16%; width: 22%; aspect-ratio: 1; background: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 2%; box-sizing: border-box; }
.dva-pic svg { width: 100%; height: 100%; }
.dva-pic.p1 { left: 18%; } .dva-pic.p2 { left: 58%; }
.dva-cloth { position: absolute; width: 22%; aspect-ratio: 1; left: 39%; top: 62%; container-type: inline-size; animation: dvaCloth 3.6s infinite; }
.dva-cloth svg { width: 100%; height: 100%; }
.dva-cloth b { position: absolute; left: 14%; right: 14%; top: 42%; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 26cqw; background: rgba(255,255,255,.85); border-radius: 6px; line-height: 1.1; }
@keyframes dvaCloth { 0%, 18% { left: 39%; top: 62%; transform: none; } 50%, 80% { left: 58%; top: 40%; transform: rotate(4deg); } 100% { left: 39%; top: 62%; } }
.dva-hand { animation: dvaHand 3.6s infinite; }
@keyframes dvaHand { 0% { left: 52%; top: 105%; } 18% { left: 48%; top: 72%; transform: scale(.85); } 50% { left: 67%; top: 50%; transform: scale(.85); } 60% { transform: scale(1); } 100% { left: 80%; top: 110%; } }

/* ---------- TEATRO DAS FRASES ---------- */
.te-game { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: radial-gradient(ellipse at 50% 30%, #5B3F86 0%, #3B2A55 60%, #2A1E3E 100%); --pl: 120px; --ac: 90px; }
.te-back { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; background: linear-gradient(#C98B5B, #A86B3C); border-top: 6px solid #8B5A3C; }
.te-layout { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(64px, auto) minmax(0, 1fr) minmax(0, .42fr); gap: 6px; padding: 8px max(14px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
.te-sign { position: relative; z-index: 2; justify-self: center; width: min(100%, 900px); max-height: 30vh; background: #FFF3DC; border: 5px solid #E0A800; border-radius: 18px; box-shadow: 0 0 0 4px #8B5A3C, 0 8px 0 rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; padding: 6px 12px; box-sizing: border-box; overflow: hidden; }
.te-sentence { font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1.2; text-align: center; word-spacing: .08em; }
.te-w { display: inline-block; transition: color .2s, transform .2s, background .2s; border-radius: 6px; padding: 0 2px; }
.te-w.lit { color: #E5484D; transform: translateY(-3px); }
.te-game.hinting .te-w.r-a { background: #FFE0B8; color: #C2410C; } .te-game.hinting .te-w.r-b { background: #D7E6FF; color: #1D4ED8; }
.te-game.hinting .te-w.r-c { background: #D9F5DD; color: #15803D; } .te-game.hinting .te-w.r-d { background: #F3E1FF; color: #7E22CE; }
.te-stage { position: relative; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.te-places { display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; justify-content: center; gap: 8px 6px; width: 100%; min-width: 0; }
.te-place { position: relative; width: calc(var(--pl) * 1.6); height: calc(var(--pl) * 1.7); flex: none; }
.te-pimg { position: absolute; left: 0; top: calc(var(--pl) * .5); width: var(--pl); height: var(--pl); z-index: 1; }
.te-pimg > svg { width: 100%; height: 100%; display: block; }
.te-zone { position: absolute; border-radius: 50%; border: 3px dashed rgba(255,255,255,.45); box-sizing: border-box; display: flex; align-items: center; justify-content: center; transition: background .15s, border-color .15s, transform .15s; }
.te-zone.z-na { left: 20%; top: 4%; width: 60%; height: 60%; z-index: 2; }
.te-zone.z-cima { left: calc(var(--pl) * .2); top: 0; width: calc(var(--pl) * .6); height: calc(var(--pl) * .55); z-index: 2; }
.te-zone.z-lado { left: calc(var(--pl) * 1); top: calc(var(--pl) * .8); width: calc(var(--pl) * .6); height: calc(var(--pl) * .65); z-index: 2; }
.te-zone.z-baixo { left: calc(var(--pl) * .2); top: calc(var(--pl) * 1.08); width: calc(var(--pl) * .6); height: calc(var(--pl) * .58); z-index: 0; }
.te-game:not(.rels) .te-zone.z-cima, .te-game:not(.rels) .te-zone.z-lado, .te-game:not(.rels) .te-zone.z-baixo { display: none; }
.te-game.rels .te-zone.z-na { display: none; }
.te-game:not(.rels) .te-zone.z-na { border-color: transparent; }
.te-zone.near { background: rgba(255,210,63,.35); border-color: #FFD23F; transform: scale(1.08); }
.te-zone.hint { animation: pulse .8s ease-in-out infinite; border-style: solid; }
.te-zone.h-b { border-color: #3B82F6; background: rgba(59,130,246,.3); } .te-zone.h-d { border-color: #A855F7; background: rgba(168,85,247,.3); }
.te-zone > .te-actor { width: 100%; height: 100%; }
.te-wings { position: relative; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 0; }
.te-actor { width: var(--ac); height: var(--ac); flex: none; cursor: grab; touch-action: none; filter: drop-shadow(0 5px 0 rgba(0,0,0,.25)); }
.te-actor > svg { width: 100%; height: 100%; display: block; }
.te-wings .te-actor { background: rgba(255,255,255,.14); border-radius: 22px; padding: 6px; box-sizing: border-box; }
.te-actor.on { width: calc(var(--pl) * .85); height: calc(var(--pl) * .85); cursor: default; position: relative; display: flex; align-items: flex-start; justify-content: flex-end; }
.te-actor.on.near { filter: drop-shadow(0 0 10px #FFD23F) drop-shadow(0 0 18px #FFD23F); }
.te-actor.on > .te-actor { position: absolute; right: -12%; bottom: 0; width: 55%; height: 55%; }
.te-actor.hint { animation: pulse .8s ease-in-out infinite; }
.te-actor.h-a { filter: drop-shadow(0 0 8px #F97316) drop-shadow(0 0 14px #F97316); } .te-actor.h-b { filter: drop-shadow(0 0 8px #3B82F6) drop-shadow(0 0 14px #3B82F6); }
.te-actor.h-c { filter: drop-shadow(0 0 8px #22C55E) drop-shadow(0 0 14px #22C55E); }
.te-actor.placed { cursor: default; }
.te-hop { animation: teHop .5s; }
@keyframes teHop { 40% { transform: translateY(-16px) rotate(-6deg); } }
.te-game.cheer .te-actor.placed, .te-game.cheer .te-actor.on { animation: teBow 1s ease-in-out .3s 2; }
@keyframes teBow { 50% { transform: rotate(14deg) translateY(4px); } }
.kit-ghost.te-confused { animation: teConfused .6s !important; }
@keyframes teConfused { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
.te-audience { position: absolute; left: 0; right: 0; bottom: -2px; height: 5vmin; display: flex; justify-content: space-around; align-items: flex-end; pointer-events: none; z-index: 4; }
.te-audience i { width: min(9%, 7vmin); aspect-ratio: 1.3; background: #1C1430; border-radius: 50% 50% 0 0; }
.te-game.cheer .te-audience i { animation: teClap .3s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.07s); }
.te-game.ohh .te-audience i { transform: translateY(4px); }
@keyframes teClap { to { transform: translateY(-8px); } }
.te-curtain { position: absolute; top: 0; bottom: 0; width: 52%; z-index: 20; transition: transform .6s cubic-bezier(.6,0,.4,1); pointer-events: none; }
.te-curtain svg { width: 100%; height: 100%; display: block; }
.te-curtain.l { left: 0; transform: translateX(-92%); } .te-curtain.r { right: 0; transform: translateX(92%) scaleX(-1); }
.te-game.closed .te-curtain.l { transform: translateX(0); } .te-game.closed .te-curtain.r { transform: translateX(0) scaleX(-1); }
.te-game.closed .te-curtain { pointer-events: auto; }
.te-flower { position: absolute; top: -50px; width: 38px; z-index: 15; animation: teFall 2s ease-in forwards; pointer-events: none; }
.te-flower svg { width: 100%; height: auto; display: block; }
@keyframes teFall { to { transform: translateY(70vh) rotate(540deg); opacity: .9; } }
.te-game.land .te-layout { grid-template-rows: minmax(54px, auto) minmax(0, 1fr) minmax(0, .5fr); }
/* demonstração */
.demo-te { background: radial-gradient(ellipse at 50% 30%, #5B3F86, #2A1E3E); }
.dte-sign { position: absolute; left: 10%; right: 10%; top: 6%; background: #FFF3DC; border: 3px solid #E0A800; border-radius: 10px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.dte-bed { position: absolute; left: 50%; top: 36%; width: 34%; aspect-ratio: 1; }
.dte-cat { position: absolute; width: 20%; aspect-ratio: 1; animation: dteCat 3.6s infinite; }
.dte-bed svg, .dte-cat svg { width: 100%; height: 100%; }
@keyframes dteCat { 0%, 18% { left: 14%; top: 66%; } 50%, 85% { left: 57%; top: 34%; } 100% { left: 14%; top: 66%; } }
.dte-hand { animation: dteHand 3.6s infinite; }
@keyframes dteHand { 0% { left: 20%; top: 105%; } 18% { left: 22%; top: 76%; transform: scale(.85); } 50% { left: 65%; top: 46%; transform: scale(.85); } 60% { transform: scale(1); } 100% { left: 80%; top: 110%; } }

/* ---------- Boletim dos pais ---------- */
.bol-sub { margin: 18px 4px 6px; font-family: var(--font-display); font-size: 1.15rem; }
.bol-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; position: relative; }
.bol-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; }
.bol-step:not(:last-child)::after { content: ""; position: absolute; top: 26px; left: calc(50% + 30px); right: calc(-50% + 30px); height: 4px; border-radius: 2px; background: #E6E1EE; }
.bol-step.ok:not(:last-child)::after { background: var(--sc); }
.bol-dot { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: .95rem; color: var(--ink);
  background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(var(--sc) calc(var(--pct) * 1%), #ECE8F2 0); }
.bol-step.ok .bol-dot { background: var(--sc); color: #fff; }
.bol-step.ok .bol-dot .ic { width: 26px; height: 26px; }
.bol-step.soon .bol-dot { background: #F1EEF5; color: #9B93AA; }
.bol-step.soon .bol-dot .ic { width: 20px; height: 20px; }
.bol-name { font-weight: 800; font-size: .88rem; line-height: 1.15; }
.bol-state { font-size: .78rem; color: #6B6280; }
.bol-step.tr .bol-state { color: var(--scd); font-weight: 800; }
.bol-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px 18px; }
.bol-cols h3 { display: flex; align-items: center; gap: 6px; }
.bol-cols h3 .ic { width: 20px; height: 20px; color: #F2B600; }
.bol-list { margin: 4px 0 6px; padding-left: 20px; line-height: 1.5; }
.bol-sug { display: flex; align-items: center; gap: 12px; margin-top: 10px; background: #FFF6E8; border-radius: 16px; padding: 10px 12px; }
.bol-sug-art { width: 76px; flex: none; }
.bol-sug-art svg { width: 100%; height: auto; display: block; }

/* ---------- Avisos para os responsáveis + jogos novos ---------- */
.parents-btn { position: relative; }
.parents-btn .av-badge { position: absolute; top: -9px; right: -9px; margin: 0; box-shadow: 0 0 0 3px #fff; }
.game-card { position: relative; }
.gc-new { position: absolute; z-index: 2; top: -10px; left: 14px; background: #E5383B; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .03em; padding: 2px 12px; border-radius: 99px; border: 3px solid var(--ink); transform: rotate(-4deg); animation: gcNew 1.8s ease-in-out infinite; pointer-events: none; }
@keyframes gcNew { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .gc-new { animation: none; } }
.subj-new { display: inline-block; margin-left: 6px; background: #FFD23F; color: var(--ink); border-radius: 99px; padding: 1px 9px; font-size: .8rem; font-weight: 800; vertical-align: 1px; }
.cat-row:has(.is-new) { padding-top: 14px; }

.av-btn { aspect-ratio: 1; min-height: 64px; border-radius: 24px; border: 4px solid transparent; background: #fff; padding: 6px; box-shadow: 0 4px 0 var(--shadow); transition: transform .1s; }
.av-btn svg { width: 100%; height: 100%; }
.av-btn.sel { border-color: var(--orange); transform: scale(1.06); background: #FFF3D6; }

/* ---------- Contar pro Tatu (pausa) ---------- */
.kfb-open { min-height: 64px; font-size: 1.1rem; }
.kfb-card { width: min(560px, 100%); }
.kfb { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.kfb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.kfb-temas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: 100%; }
.kfb-btn, .kfb-tema { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #fff; border: 3px solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 10px 6px; min-height: 64px; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; color: var(--ink); }
.kfb-tema { font-size: .9rem; border-radius: 18px; padding: 8px 4px; }
.kfb-btn:active, .kfb-tema:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.kfb-art { width: min(100%, 92px); aspect-ratio: 1; display: block; }
.kfb-tema .kfb-art { width: min(100%, 64px); }
.kfb-art svg { width: 100%; height: 100%; display: block; }
.kfb-lead { margin: 0; }
.kfb-adulto { width: 100%; text-align: left; font-weight: 700; color: var(--ink-soft); }
.kfb-adulto summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.kfb-adulto textarea { width: 100%; font: inherit; border-radius: 14px; border: 2px solid var(--line); padding: 10px; margin: 6px 0; }
@media (max-width: 420px) { .kfb-temas { grid-template-columns: repeat(2, 1fr); } .kfb-btn { font-size: .95rem; } }
@media (orientation: landscape) and (max-height: 500px) {
  .kfb-card { width: min(760px, 100%); }
  .kfb-temas { grid-template-columns: repeat(8, 1fr); }
  .kfb-tema .kfb-art { width: min(100%, 52px); }
  .kfb-art { width: min(100%, 72px); }
  .kfb .mascot { display: none; }
}

/* ---------- Gostou? (resultado) ---------- */
.gostou { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border-radius: 22px; padding: 10px 16px; box-shadow: 0 4px 0 var(--shadow); }
.gostou-q { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; }
.gostou-faces { display: flex; gap: 12px; }
.gostou-btn { width: 68px; height: 68px; border-radius: 50%; border: 0; background: transparent; padding: 0; display: grid; place-items: center; transition: transform .12s; }
.gostou-btn svg { width: 100%; height: 100%; }
.gostou-btn:hover { transform: scale(1.08); }
.gostou-btn:active { transform: scale(.94); }
.gostou-btn.sel { animation: pop .5s; }

/* ---------- Jogo em conserto ---------- */
.game-card.is-fix .gc-art { filter: grayscale(.8); opacity: .7; }
.tag.fix { background: #FFE3C2; color: #A04F00; }

/* ---------- Fale com a gente (pais) ---------- */
.fale { display: grid; gap: 10px; }
.fale-txt, .fale-email { width: 100%; font: inherit; font-weight: 600; border-radius: 14px; border: 2px solid var(--line); padding: 10px 12px; background: #fff; min-height: 48px; color: var(--ink); }
.fale-txt { resize: vertical; line-height: 1.45; }
.fale-enviar { justify-self: start; }
@media (orientation: landscape) and (max-height: 500px) {
  .pause-card:not(.kfb-card) .mascot { width: 84px; height: 84px; }
  .pause-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pause-btns .btn.huge { grid-column: 1 / -1; min-height: 72px; }
  .pause-btns .btn.big, .pause-btns .kfb-open { min-height: 64px; font-size: 1.15rem; padding: 0 14px; }
  .kfb-card { padding: 14px; }
}
