:root {
  --navy: #16324f; --navy2: #1f4a6e; --sea: #2a8fa8; --cream: #fff7e6; --paper: #fffdf7; --ink: #2b2a3a; --muted: #6b6a7a;
  --teal: #2bb3a3; --coral: #f2766b; --mustard: #f6c453; --lav: #9b7fd4; --leaf: #6cc48f;
  --r-s: #3d7fe6; --r-v: #19a074; --r-c: #dc3f78; --r-x: #e8962a; --r-d: #8a72d4; --r-k: #22a89a; --r-w: #e9b93a;
  --b: 3px solid var(--ink); --sh: 0 5px 0 rgba(43, 42, 58, .9); --sh-s: 0 3px 0 rgba(43, 42, 58, .9);
  --card-fs: clamp(22px, 2.7vw, 34px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: 'Nunito', system-ui, sans-serif; color: var(--ink); font-size: 17px; line-height: 1.5;
  background: var(--cream);
  background-image: radial-gradient(rgba(43, 42, 58, .06) 1.5px, transparent 1.5px); background-size: 22px 22px;
  min-height: 100vh; overscroll-behavior: none;
}
body.big-text { --card-fs: clamp(26px, 3vw, 38px); font-size: 19px; }
.pixel { font-family: 'Press Start 2P', monospace; letter-spacing: .02em; line-height: 1.35; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
img { max-width: 100%; display: block; }
a { color: var(--navy2); }

/* ---------- topo ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-left)); background: var(--navy); color: #fff; border-bottom: 4px solid #0d2236;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 10px; background: var(--cream); image-rendering: pixelated; }
.brand span { font-size: 13px; }
.nav { display: flex; gap: 6px; }
.nav a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; color: #dbe9f5; text-decoration: none; font-weight: 800; font-size: 15px; }
.nav a.on { background: var(--mustard); color: var(--ink); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
main { max-width: 1240px; margin: 0 auto; padding: 18px 16px 80px; }
.login-mode .top { display: none; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: var(--b); border-radius: 14px; background: #fff;
  padding: 10px 18px; font-weight: 900; box-shadow: var(--sh-s); transition: transform .08s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 transparent; }
.btn.big { font-size: 20px; padding: 14px 26px; border-radius: 18px; box-shadow: var(--sh); }
.btn.go { background: var(--mustard); }
.btn.sm { font-size: 14px; padding: 7px 12px; border-radius: 10px; margin-top: 8px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: rgba(43, 42, 58, .35); }
.row-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(180deg, #7fd3e6, #2a8fa8 70%, #16324f); }
.login-card { width: min(420px, 100%); background: var(--paper); border: var(--b); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: 26px 24px; text-align: center; }
.login-card img { width: 150px; margin: -80px auto 6px; }
.login-card h1 { font-size: 26px; margin: 6px 0; color: var(--navy); }
.login-card p { margin: 0 0 18px; color: var(--muted); font-weight: 700; }
.login-card input { width: 100%; font: inherit; font-size: 22px; padding: 14px 16px; border: var(--b); border-radius: 14px; margin-bottom: 14px; text-align: center; background: #fff; }
.login-card .btn { width: 100%; }
.err { margin-top: 12px; color: #b3261e; font-weight: 800; }
.float { animation: float 3s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }

/* ---------- mapa ---------- */
.hero { position: relative; border: var(--b); border-radius: 26px; overflow: hidden; box-shadow: var(--sh); min-height: 320px; display: flex; align-items: stretch; background: var(--sea); }
.hero-art { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.05); }
.hero-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(22, 50, 79, .92) 0%, rgba(22, 50, 79, .75) 45%, rgba(22, 50, 79, .1) 100%); }
.hero-in { position: relative; display: flex; align-items: center; gap: 22px; padding: 28px; color: #fff; }
.hero-mascot { width: 170px; flex: none; filter: drop-shadow(0 6px 0 rgba(0, 0, 0, .35)); }
.hero h1 { font-size: clamp(26px, 4vw, 44px); margin: 4px 0 10px; color: var(--mustard); text-shadow: 4px 4px 0 #0d2236; }
.kicker { font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; opacity: .85; margin: 0; }
.lead { font-size: 19px; font-weight: 700; max-width: 480px; margin: 0 0 16px; }
.album { margin: 18px 0 6px; display: flex; align-items: center; gap: 14px; background: var(--paper); border: var(--b); border-radius: 18px; padding: 10px 16px; box-shadow: var(--sh-s); overflow-x: auto; }
.album-t { font-size: 11px; color: var(--navy); flex: none; }
.album-s { display: flex; gap: 6px; font-size: 28px; flex-wrap: nowrap; }
.album-s em { font-size: 15px; color: var(--muted); white-space: nowrap; }
.sec-t { margin: 28px 0 8px; font-size: 16px; color: var(--navy); }
.phase { margin: 16px 0 6px; }
.phase-t { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.phase-t i { width: 18px; height: 18px; border: var(--b); border-radius: 5px; background: var(--ph); }
.weeks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wk { text-align: left; padding: 0; border: var(--b); border-radius: 20px; background: var(--paper); box-shadow: var(--sh); overflow: hidden; transition: transform .12s; }
.wk:active { transform: translateY(3px) scale(.99); box-shadow: var(--sh-s); }
.wk-img { position: relative; aspect-ratio: 16/10; overflow: hidden; border-bottom: var(--b); background: #f3ead6; }
.wk-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.wk:hover .wk-img img { transform: scale(1.05); }
.wk-n { position: absolute; left: 10px; top: 10px; background: var(--ph); border: var(--b); border-radius: 10px; padding: 7px 8px 5px; font-size: 14px; color: #fff; text-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
.wk-here { position: absolute; right: 10px; top: 10px; background: var(--mustard); border: var(--b); border-radius: 10px; padding: 3px 9px; font-weight: 900; font-size: 13px; animation: float 2s ease-in-out infinite; }
.wk.now { outline: 5px solid var(--mustard); outline-offset: 3px; }
.wk-b { padding: 12px 14px 14px; }
.wk-t { font-weight: 900; font-size: 19px; line-height: 1.2; }
.wk-a { color: var(--muted); font-weight: 700; font-size: 15px; }
.wk-stars { display: flex; gap: 6px; margin-top: 8px; }
.wk-stars span { width: 34px; height: 34px; display: grid; place-items: center; border: 2px dashed rgba(43, 42, 58, .3); border-radius: 10px; filter: grayscale(1); opacity: .45; font-size: 18px; }
.wk-stars span.on { border: 2px solid var(--ink); filter: none; opacity: 1; background: #fff3c9; }
.wk.complete .wk-b { background: linear-gradient(0deg, #fff3c9, var(--paper)); }
.foot { color: var(--muted); font-size: 14px; margin-top: 30px; }

/* ---------- semana ---------- */
.wk-hero { position: relative; display: grid; grid-template-columns: 300px 1fr; gap: 20px; background: var(--paper); border: var(--b); border-radius: 24px; padding: 16px; box-shadow: var(--sh); border-top: 12px solid var(--ph); }
.back { position: absolute; top: -22px; left: 14px; border: var(--b); border-radius: 10px; background: #fff; font-weight: 900; padding: 3px 12px; }
.wk-hero-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: var(--b); border-radius: 16px; }
.wk-hero-tx h1 { margin: 8px 0 4px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.1; }
.chip { display: inline-block; border: 2px solid var(--ink); border-radius: 8px; padding: 4px 8px 3px; font-size: 10px; background: var(--mustard); vertical-align: middle; }
.chip.ph { font-family: 'Nunito'; font-size: 13px; font-weight: 900; background: var(--ph); color: #fff; }
.focus { font-weight: 800; font-size: 18px; color: var(--navy2); margin: 0 0 6px; }
.obj { margin: 0; }
.wk-nav { grid-column: 1/-1; display: flex; justify-content: space-between; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0; position: sticky; top: 66px; z-index: 10; background: var(--cream); padding: 6px 0; }
.tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; border: var(--b); border-radius: 14px; background: #fff; font-weight: 900; padding: 12px 8px; box-shadow: var(--sh-s); font-size: 16px; }
.tabs button span { font-size: 22px; }
.tabs button.on { background: var(--navy); color: #fff; }
.activity-head h2 { margin: 0; font-size: 30px; }
.activity-head p { margin: 2px 0 10px; font-size: 18px; }
.prize { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 14px; }
.prize-t { font-weight: 900; font-size: 18px; margin: 8px 0; }
.prize-o { display: flex; gap: 10px; }
.prize-o button { width: 70px; height: 70px; font-size: 38px; border: var(--b); border-radius: 16px; background: #fff; box-shadow: var(--sh-s); }
.prize-o button.on { background: var(--mustard); transform: scale(1.12) rotate(-4deg); }
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lvl { text-align: left; border: var(--b); border-radius: 22px; background: var(--paper); box-shadow: var(--sh); padding: 16px; display: flex; flex-direction: column; gap: 4px; border-top: 14px solid var(--lc); transition: transform .1s; }
.lvl:active { transform: translateY(4px); box-shadow: var(--sh-s); }
.lvl-ic { font-size: 46px; line-height: 1; }
.lvl-n { font-size: 15px; margin-top: 6px; }
.lvl-l { font-weight: 900; color: var(--muted); }
.lvl p { margin: 4px 0 10px; font-size: 15px; flex: 1; }
.lvl-go { align-self: flex-start; background: var(--lc); color: #fff; font-weight: 900; border: var(--b); border-radius: 12px; padding: 6px 14px; text-shadow: 1px 1px 0 rgba(0, 0, 0, .3); }
.sub-t { margin: 30px 0 10px; font-size: 21px; }
.sub-t small { font-size: 14px; color: var(--muted); font-weight: 700; }
.agenda { display: grid; gap: 10px; }
.ag { display: grid; grid-template-columns: 74px 1fr 44px; gap: 12px; align-items: center; background: var(--paper); border: var(--b); border-radius: 16px; padding: 10px 12px; box-shadow: var(--sh-s); cursor: pointer; }
.ag-min { font-family: 'Press Start 2P'; font-size: 20px; text-align: center; color: var(--navy); }
.ag-min small { display: block; font-size: 9px; margin-top: 4px; }
.ag-t { font-weight: 900; font-size: 17px; }
.ag-b p { margin: 2px 0 0; font-size: 15px; }
.ag-ck { width: 40px; height: 40px; border: var(--b); border-radius: 10px; display: grid; place-items: center; font-weight: 900; font-size: 22px; background: #fff; }
.ag.done { background: #e8f7ee; }
.ag.done .ag-ck { background: var(--leaf); color: #fff; }
.note-s { color: var(--muted); font-size: 14px; }

.home-intro, .sup-intro { display: flex; align-items: center; gap: 16px; background: var(--paper); border: var(--b); border-radius: 20px; padding: 14px 18px; box-shadow: var(--sh-s); margin-bottom: 16px; }
.sup-intro { justify-content: space-between; }
.home-intro img { width: 100px; }
.home-intro h2, .sup-intro h2 { margin: 0; }
.home-intro p, .sup-intro p { margin: 4px 0; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.hc, .sc { background: var(--paper); border: var(--b); border-radius: 18px; padding: 16px; box-shadow: var(--sh-s); }
.hc-n { width: 40px; height: 40px; border: var(--b); border-radius: 10px; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 14px; }
.hc h3, .sc h3 { margin: 10px 0 4px; font-size: 19px; }
.hc p, .sc p { margin: 0; }
.sc-h { display: flex; align-items: center; gap: 10px; }
.sc-h span { font-size: 30px; }
.sc-h h3 { margin: 0; }
.tip { margin-top: 18px; background: #e9f6f4; border: var(--b); border-radius: 18px; padding: 14px 18px; }
.tip h3 { margin: 0 0 6px; }
.tip ul { margin: 0; padding-left: 20px; }
.tip li { margin: 4px 0; }
.home-play { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--navy); color: #fff; border: var(--b); border-radius: 20px; padding: 16px 20px; box-shadow: var(--sh); }
.home-play h3, .home-play p { margin: 0; }
.legend { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 6px 0; }
.lg { background: #fff; border: var(--b); border-radius: 14px; padding: 10px; text-align: center; border-color: var(--rc); }
.lg .sh-icon { display: block; width: 42px; height: 42px; margin: 0 auto 4px; }
.lg b { display: block; font-size: 14px; }
.lg small { color: var(--muted); }

/* ---------- avaliação ---------- */
.eval { background: var(--paper); border: var(--b); border-radius: 22px; padding: 18px; box-shadow: var(--sh-s); display: grid; gap: 12px; }
.eval h2 { margin: 0; }
.eval label { display: grid; gap: 4px; font-weight: 800; }
.eval input, .eval textarea, .eval select { font: inherit; font-weight: 600; padding: 10px 12px; border: 2px solid rgba(43, 42, 58, .5); border-radius: 12px; background: #fff; width: 100%; }
.eval select { appearance: auto; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.lab { font-weight: 800; }
.lab small { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 2px solid rgba(43, 42, 58, .5); border-radius: 999px; background: #fff; padding: 7px 13px; font-weight: 700; font-size: 15px; }
.chips button.on { background: var(--teal); color: #fff; border-color: var(--ink); }
.faces { display: flex; gap: 10px; }
.faces button { font-size: 36px; width: 64px; height: 64px; border: var(--b); border-radius: 16px; background: #fff; filter: grayscale(.8); opacity: .7; }
.faces button.on { filter: none; opacity: 1; background: var(--mustard); transform: scale(1.08); }
.auto { background: #eef4ff; border: 2px solid var(--r-s); border-radius: 14px; padding: 10px 14px; }
.auto.muted { background: #f4f1ea; border-color: rgba(43, 42, 58, .2); color: var(--muted); }
.auto-g { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 6px; }
.auto-g div, .kpis div, .end-stats div { background: #fff; border-radius: 12px; padding: 8px; text-align: center; border: 2px solid rgba(43, 42, 58, .15); }
.auto-g b, .kpis b { display: block; font-size: 22px; }
.auto-g span, .kpis span { font-size: 13px; color: var(--muted); font-weight: 700; }
.evlist { display: grid; gap: 8px; }
.evc { background: var(--paper); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; }
.evc summary { font-weight: 800; cursor: pointer; }
.evc summary span { background: var(--mustard); border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.evc div { margin: 4px 0; }
.muted { color: var(--muted); }
.loading { padding: 40px; text-align: center; font-weight: 800; color: var(--muted); }

/* ---------- evolução ---------- */
.page-t { font-size: 32px; margin: 4px 0; }
.chart-card { background: var(--paper); border: var(--b); border-radius: 20px; padding: 16px; box-shadow: var(--sh-s); margin: 12px 0; }
.legend-l { display: flex; gap: 14px; font-weight: 800; margin-bottom: 8px; }
.legend-l i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); margin-right: 5px; vertical-align: -2px; }
.chart { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 220px; align-items: end; border-bottom: 3px solid var(--ink); padding-bottom: 4px; }
.bar-g { display: flex; flex-direction: column; height: 100%; }
.bars { flex: 1; display: flex; gap: 2px; align-items: flex-end; }
.bar { flex: 1; height: var(--h); min-height: 0; background: var(--c); border: 2px solid var(--ink); border-bottom: 0; border-radius: 4px 4px 0 0; position: relative; }
.bar span { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 10px; font-weight: 900; }
.bar-l { text-align: center; font-weight: 900; font-size: 12px; margin-top: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; background: var(--paper); border: var(--b); border-radius: 14px; overflow: hidden; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid rgba(43, 42, 58, .15); text-align: center; }
.tbl th { background: var(--navy); color: #fff; font-size: 14px; }
.tbl td:first-child { text-align: left; font-weight: 800; }
.mini-t td { padding: 3px 8px; border-bottom: 1px solid #eee; }

/* ---------- ajustes ---------- */
.set { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.set-g { background: var(--paper); border: var(--b); border-radius: 20px; padding: 16px; box-shadow: var(--sh-s); }
.set-g h3 { margin: 0 0 6px; }
.tg { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed rgba(43, 42, 58, .2); cursor: pointer; }
.tg input { display: none; }
.tg > span { width: 58px; height: 32px; border: var(--b); border-radius: 999px; background: #ddd; position: relative; transition: .2s; }
.tg > span::after { content: ''; position: absolute; width: 22px; height: 22px; top: 2px; left: 3px; background: #fff; border: 2px solid var(--ink); border-radius: 50%; transition: .2s; }
.tg input:checked + span { background: var(--teal); }
.tg input:checked + span::after { left: 27px; }
.tg small, .rate small { display: block; color: var(--muted); }
.rate { padding-top: 10px; }
.seg { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.seg button { border: var(--b); border-radius: 12px; background: #fff; padding: 8px 12px; font-weight: 800; }
.seg button.on { background: var(--mustard); }
.guide section { background: var(--paper); border: var(--b); border-radius: 20px; padding: 6px 20px 14px; margin: 14px 0; box-shadow: var(--sh-s); }
.guide li { margin: 6px 0; }

/* ================= JOGO ================= */
body.in-game { overflow: hidden; }
.game { position: fixed; inset: 0; z-index: 100; background: #fdf3dc; display: flex; flex-direction: column;
  background-image: linear-gradient(rgba(43, 42, 58, .035) 2px, transparent 2px), linear-gradient(90deg, rgba(43, 42, 58, .035) 2px, transparent 2px); background-size: 32px 32px; }
.g-top { display: flex; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-left)); background: var(--navy); border-bottom: 4px solid #0d2236; }
.g-btn { width: 56px; height: 56px; border: var(--b); border-radius: 14px; background: #fff; font-size: 26px; box-shadow: var(--sh-s); flex: none; }
.g-btn:active { transform: translateY(3px); box-shadow: none; }
.g-hint { background: var(--mustard); }
.g-pips { flex: 1; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.g-pips i { width: 22px; height: 22px; border: 3px solid #0d2236; background: #31597e; border-radius: 6px; }
.g-pips i.done { background: var(--leaf); }
.g-pips i.now { background: var(--mustard); transform: scale(1.2); }
.g-stage { position: relative; flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; }
.g-stage.enter > * { animation: enter .35s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(14px); } }
.g-buddy { position: absolute; right: 12px; bottom: 10px; display: flex; align-items: flex-end; pointer-events: none; z-index: 5; flex-direction: row-reverse; }
.g-buddy img { width: 96px; }
.g-buddy img.hop { animation: hop .5s; }
@keyframes hop { 40% { transform: translateY(-18px) rotate(-6deg); } }
.g-bubble { background: #fff; border: var(--b); border-radius: 16px; padding: 8px 14px; font-weight: 900; font-size: 18px; margin-right: -6px; margin-bottom: 70px; opacity: 0; transform: scale(.8); transition: .2s; max-width: 260px; }
.g-bubble.show { opacity: 1; transform: none; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.instr { font-weight: 900; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.2; text-align: center; margin-bottom: 12px; }

.scene { border: var(--b); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: var(--sh); align-self: center; justify-self: center; }
.scene img { width: 100%; height: 100%; object-fit: contain; }
.scene.multi { display: flex; gap: 6px; padding: 8px; justify-content: center; align-items: center; }
.scene.multi img { width: 30%; height: auto; }
.scene.multi.n2 img { width: 45%; }
.scene.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; }
.v-build, .v-choice, .v-say { flex: 1; display: grid; grid-template-columns: minmax(260px, 42%) 1fr; gap: 22px; align-items: center; padding-bottom: 110px; }
.v-build:not(.has-img), .v-choice.no-scene { grid-template-columns: 1fr; }
.v-build .scene, .v-choice .scene, .v-say .scene { width: 100%; max-height: 62vh; aspect-ratio: 1; }
.play { display: flex; flex-direction: column; align-items: center; }

/* slots */
.slots { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 10px 0 22px; }
.slot { position: relative; min-width: 170px; min-height: 104px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 4px dashed rgba(43, 42, 58, .35); border-radius: 16px; background: rgba(255, 255, 255, .7); padding: 26px 10px 8px; transition: .15s; }
.slot .sh-icon { position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 44px; height: 44px; display: none; }
.slot.shaped .sh-icon { display: block; }
.slot.shaped { border-style: solid; border-color: var(--rc); background: color-mix(in srgb, var(--rc) 12%, white); }
.slot.shaped.outline { border-color: rgba(43, 42, 58, .5); background: #fff; }
.slot.shaped.outline .sh-icon svg * { fill: #fff; stroke: rgba(43, 42, 58, .6); }
.slot.sh-circle { border-radius: 999px; min-width: 180px; }
.slot.sh-square { border-radius: 8px; }
.slot.sh-narrow { min-width: 78px; }
.slot.sh-strip { border-radius: 999px; min-width: 190px; }
.slot.sh-triangle { border-radius: 8px 8px 24px 24px; }
.slot .q { font-weight: 900; font-size: 14px; color: var(--rc); margin-top: 4px; min-height: 18px; letter-spacing: .04em; }
.slot.plain .q { color: var(--muted); }
.slot-in { font-family: 'Atkinson Hyperlegible', sans-serif; font-weight: 700; font-size: var(--card-fs); letter-spacing: .03em; min-height: 1.2em; }
.slot.filled { border-style: solid; border-color: var(--rc); background: #fff; }
.slot.filled.plain { border-color: var(--ink); }
.slot.pop { animation: pop .35s; }
@keyframes pop { 50% { transform: scale(1.1); } }
.slot.pulse { animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(246, 196, 83, .8); } }
.slot.reading { background: var(--mustard) !important; transform: scale(1.08); }
.slots.reading-all .slot { background: #fff3c9; }
.slots.await .slot:not(.filled) { border-color: var(--mustard); background: #fff8e0; }
.sh-icon svg { width: 100%; height: 100%; }
.sh-icon svg * { fill: var(--rc); stroke: var(--ink); stroke-width: 3; }
.r-s { --rc: var(--r-s); } .r-v { --rc: var(--r-v); } .r-c { --rc: var(--r-c); } .r-x { --rc: var(--r-x); } .r-d { --rc: var(--r-d); } .r-k { --rc: var(--r-k); } .r-w { --rc: var(--r-w); }
.slots.mini { gap: 10px; margin: 6px 0 16px; }
.slots.mini .slot { min-width: 120px; min-height: 70px; padding: 22px 8px 6px; }
.slots.mini .slot-in { font-size: calc(var(--card-fs) * .8); }
.slot.changed { animation: pulse 1s infinite; background: #fff3c9 !important; }
.model { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-size: calc(var(--card-fs) * 1.6); letter-spacing: .3em; color: rgba(43, 42, 58, .22); margin-bottom: 4px; }

/* cards */
.tray { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.card {
  min-height: 76px; min-width: 120px; padding: 10px 20px; border: var(--b); border-radius: 16px; background: #fff; box-shadow: var(--sh);
  font-family: 'Atkinson Hyperlegible', sans-serif; font-weight: 700; font-size: var(--card-fs); letter-spacing: .03em; display: inline-flex; align-items: center; gap: 10px;
  touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .12s, opacity .3s;
}
.card.colored { background: color-mix(in srgb, var(--rc) 20%, white); border-color: var(--rc); box-shadow: 0 5px 0 var(--rc); }
.card .c-ico { width: 30px; height: 30px; flex: none; }
.card.tile { background: #fff6d6; min-width: 100px; justify-content: center; }
.card.sel { transform: translateY(-8px) scale(1.06); outline: 5px solid var(--mustard); }
.card.lifted { opacity: .3; }
.card.used { visibility: hidden; }
.card.fade { opacity: .25; pointer-events: none; }
.card.glow, .opt.glow, .o-card.glow { animation: glow 1s infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 10px rgba(246, 196, 83, .9), var(--sh); transform: scale(1.06); } }
.drag-ghost { position: fixed; z-index: 200; pointer-events: none; transform: scale(1.08) rotate(-2deg); box-shadow: 0 14px 20px rgba(0, 0, 0, .25); margin: 0; }
.wobble { animation: wobble .45s; }
@keyframes wobble { 20% { transform: translateX(-10px) rotate(-3deg); } 40% { transform: translateX(8px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }

/* choice */
.word { font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-size: calc(var(--card-fs) * 1.7); letter-spacing: .06em; background: #fff; border: var(--b); border-radius: 18px; padding: 8px 26px; box-shadow: var(--sh); margin: 0 0 20px; }
.word .blank { display: inline-block; min-width: .8em; border-bottom: 6px solid var(--coral); color: var(--coral); }
.word .blank.swap { animation: pop .5s; color: var(--r-v); border-color: var(--r-v); }
.opts { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; width: 100%; }
.opt { border: var(--b); border-radius: 18px; background: #fff; box-shadow: var(--sh); min-height: 88px; min-width: 120px; padding: 12px 24px; font-family: 'Atkinson Hyperlegible'; font-weight: 700; font-size: var(--card-fs); transition: transform .12s, opacity .3s; }
.opt:active { transform: translateY(3px); }
.txt-opts { flex-direction: column; align-items: center; }
.txt-opts .opt { min-width: min(560px, 100%); }
.opts:not(.txt-opts) .opt:not(.img) { min-width: 110px; font-size: calc(var(--card-fs) * 1.25); }
.short-opts .opt { min-width: 120px; min-height: 120px; font-size: calc(var(--card-fs) * 1.6); border-radius: 22px; }
.opt.img { padding: 8px; width: min(320px, 44%); aspect-ratio: 1; }
.img-opts.n3 .opt.img { width: min(260px, 30%); }
.opt.img img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.opt .multi { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; height: 100%; }
.opt .multi img { width: 48%; height: auto; }
.opt.shape { display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: 'Nunito'; font-weight: 900; font-size: 18px; border-color: var(--rc); }
.opt.shape .sh-icon { width: 64px; height: 64px; }
.opt.off { opacity: .25; transform: scale(.94); pointer-events: none; }
.opt.right { background: #e3f7ea; border-color: var(--r-v); transform: scale(1.06); box-shadow: 0 0 0 6px var(--leaf), var(--sh); }
.v-choice.no-scene .opt.img { width: min(300px, 30%); }
.v-choice .scene.multi { aspect-ratio: auto; }

/* order */
.v-order { flex: 1; display: flex; flex-direction: column; align-items: center; padding-bottom: 110px; }
.o-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; width: 100%; max-width: 1000px; }
.o-slot { border: 4px dashed rgba(43, 42, 58, .35); border-radius: 16px; background: rgba(255, 255, 255, .7); padding: 8px; text-align: center; }
.o-lab { font-weight: 900; font-size: 16px; color: var(--navy2); }
.o-in { aspect-ratio: 1; display: grid; place-items: center; }
.o-in img { border-radius: 10px; }
.o-slot.filled { border-style: solid; border-color: var(--ink); background: #fff; }
.o-slot.pulse { animation: pulse 1s infinite; }
.o-slot.reading { background: var(--mustard); transform: scale(1.04); }
.o-slot.pop { animation: pop .35s; }
.o-tray { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.o-card { width: 190px; aspect-ratio: 1; padding: 6px; border: var(--b); border-radius: 16px; background: #fff; box-shadow: var(--sh); touch-action: none; user-select: none; }
.o-card img { border-radius: 10px; pointer-events: none; }
.o-card.sel { transform: translateY(-8px) scale(1.05); outline: 5px solid var(--mustard); }
.o-card.used { visibility: hidden; }
.o-card.lifted { opacity: .3; }

/* say */
.v-say .listen { margin: 8px 0 16px; font-size: 18px; }
.word.reveal { color: transparent; text-shadow: 0 0 16px rgba(43, 42, 58, .4); cursor: pointer; }
.word.reveal.on { color: var(--ink); text-shadow: none; }
.med { width: 100%; max-width: 640px; background: #fff; border: 2px dashed var(--navy2); border-radius: 16px; padding: 12px; }
.med-t { font-weight: 900; color: var(--navy2); margin-bottom: 8px; }
.med-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.med-btns button { border: var(--b); border-radius: 12px; padding: 12px 8px; font-weight: 900; background: #f8f5ee; font-size: 16px; }
.med-btns .m0 { background: #e3f7ea; grid-column: 1/-1; font-size: 20px; }
.med-btns button.chosen { background: var(--mustard); }
.med-btns button:disabled:not(.chosen) { opacity: .35; }
.med .note { width: 100%; margin-top: 8px; font: inherit; padding: 10px; border: 2px solid rgba(43, 42, 58, .3); border-radius: 10px; }

/* próxima */
.g-next { position: sticky; bottom: 0; margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 120px 12px 12px; z-index: 4; animation: enter .3s; }
.g-explain { background: #fff; border: var(--b); border-radius: 16px; padding: 10px 16px; font-weight: 800; font-size: 19px; max-width: 700px; box-shadow: var(--sh-s); }
.g-next .btn { font-size: 24px; padding: 16px 40px; animation: nudge 1.6s infinite; }
@keyframes nudge { 50% { transform: scale(1.05); } }

/* pausa */
.calm { position: absolute; inset: 0; z-index: 50; background: rgba(155, 127, 212, .92); display: grid; place-items: center; padding: 16px; }
.calm-box { background: #f5f0ff; border: var(--b); border-radius: 26px; padding: 22px; text-align: center; max-width: 440px; box-shadow: 0 8px 0 var(--ink); }
.calm-box img { width: 150px; margin: 0 auto; }
.calm-box p { font-weight: 800; font-size: 19px; }
.breath { width: 150px; height: 150px; margin: 10px auto; border-radius: 50%; background: radial-gradient(circle, #fff, #c9b8f0); border: var(--b); display: grid; place-items: center; animation: breathe 8s ease-in-out infinite; }
.breath span { font-weight: 900; font-size: 18px; }
@keyframes breathe { 0%, 100% { transform: scale(.75); } 50% { transform: scale(1.1); } }

/* fim */
.end { margin: auto; text-align: center; max-width: 640px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.end-mascot { width: 170px; animation: float 2.4s ease-in-out infinite; }
.end h2 { font-size: clamp(20px, 3vw, 30px); color: var(--navy); margin: 0; }
.sticker-win { font-size: 90px; line-height: 1; background: #fff; border: var(--b); border-radius: 24px; padding: 14px 22px 8px; box-shadow: var(--sh); animation: pop .6s; }
.sticker-win small { display: block; font-size: 15px; font-weight: 900; }
.end-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.end-stats b { display: block; font-size: 32px; }
.end-stats span { font-weight: 800; color: var(--muted); }
.end-med { width: 100%; text-align: left; background: #fff; border: 2px dashed var(--navy2); border-radius: 14px; padding: 10px 14px; }
.end-med summary { font-weight: 900; cursor: pointer; }
.end-med table { width: 100%; font-size: 14px; border-collapse: collapse; }
.end-med td { padding: 3px 6px; border-bottom: 1px solid #eee; }
.end-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* modo calmo */
.calm-mode *, .calm-mode *::before, .calm-mode *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition: none !important; }
.calm-mode .breath { animation: breathe 8s ease-in-out infinite !important; }
@media (prefers-reduced-motion: reduce) { .float, .wk-here, .g-next .btn { animation: none; } }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .weeks { grid-template-columns: repeat(2, 1fr); }
  .levels { grid-template-columns: 1fr; }
  .lvl { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .lvl p { flex-basis: 100%; }
  .cards3 { grid-template-columns: 1fr; }
  .legend { grid-template-columns: repeat(3, 1fr); }
  .auto-g { grid-template-columns: repeat(3, 1fr); }
}
@media (orientation: portrait), (max-width: 860px) {
  .v-build, .v-choice, .v-say { grid-template-columns: 1fr; gap: 14px; }
  .v-build .scene, .v-choice .scene, .v-say .scene { max-height: 34vh; width: auto; max-width: 100%; }
  .v-build.tiles .scene { max-height: 30vh; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav a span { display: none; }
  .brand span { display: none; }
  .hero-in { flex-direction: column; text-align: center; padding: 20px 16px; }
  .hero-art::after { background: rgba(22, 50, 79, .8); }
  .hero-mascot { width: 120px; }
  .weeks { grid-template-columns: 1fr; }
  .wk-hero { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(2, 1fr); top: 62px; }
  .cards2, .set, .row2, .row3 { grid-template-columns: 1fr; }
  .legend { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .home-intro, .sup-intro, .home-play { flex-direction: column; align-items: flex-start; }
  .g-btn { width: 46px; height: 46px; font-size: 21px; }
  .g-buddy img { width: 70px; }
  .slot { min-width: 120px; }
  .o-card { width: 120px; }
  .g-next { padding-right: 12px; }
  .ag { grid-template-columns: 56px 1fr 40px; }
}
@media print {
  .top, .row-btns, .tabs { display: none !important; }
  body { background: #fff; }
  .evc { break-inside: avoid; }
  details { display: block; }
  details > * { display: block; }
}
