@font-face { font-family: 'Playwrite BR'; src: url(fonts/playwrite-br-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: block; }
@font-face { font-family: 'Andika'; src: url(fonts/andika-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Andika'; src: url(fonts/andika-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(fonts/nunito-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url(fonts/nunito-latin-800-normal.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  color-scheme: light;
  --bg1: #CFEBFF; --bg2: #F4FAFF; --grass: #A6D98A;
  --card: #FFFFFF; --card2: #EEF6FF; --ink: #1E2A5A; --muted: #5B6A93;
  --primary: #404E9C; --primary-ink: #fff; --sky: #8ED1FC; --accent: #F7B267; --sun: #FFD45C;
  --ok: #3FA34D; --ok-bg: #DDF5D8; --bad: #E05A6A; --bad-bg: #FFE1E5;
  --line: #C9D9F0; --trace-guide: #D6E6F5; --shadow: 0 6px 0 rgba(30, 42, 90, .12), 0 10px 24px rgba(30, 42, 90, .10);
  --r: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg1: #141B3D; --bg2: #1D2654; --grass: #2E5A3A;
    --card: #232D5E; --card2: #2B3770; --ink: #EAF2FF; --muted: #A9B6DA;
    --primary: #8ED1FC; --primary-ink: #14204A; --sky: #5AA9E6;
    --ok-bg: #1F4A2A; --bad-bg: #4E2330; --line: #3B4785; --trace-guide: #34407A;
    --shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg1: #141B3D; --bg2: #1D2654; --grass: #2E5A3A;
  --card: #232D5E; --card2: #2B3770; --ink: #EAF2FF; --muted: #A9B6DA;
  --primary: #8ED1FC; --primary-ink: #14204A; --sky: #5AA9E6;
  --ok-bg: #1F4A2A; --bad-bg: #4E2330; --line: #3B4785; --trace-guide: #34407A;
  --shadow: 0 6px 0 rgba(0, 0, 0, .25), 0 10px 24px rgba(0, 0, 0, .25);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: 'Nunito', system-ui, sans-serif; font-weight: 600; color: var(--ink);
  background: linear-gradient(180deg, var(--bg1), var(--bg2) 70%) fixed;
  -webkit-user-select: none; user-select: none; touch-action: manipulation; overscroll-behavior: none;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
#app { max-width: 1100px; margin: 0 auto; padding: 0 16px 24px; min-height: 100dvh; display: flex; flex-direction: column; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
input, select { font: inherit; color: var(--ink); background: var(--card2); border: 2px solid var(--line); border-radius: 12px; padding: 8px 10px; -webkit-user-select: text; user-select: text; }
h1, h2, h3 { font-weight: 800; margin: .3em 0; }
.cur { font-family: 'Playwrite BR', cursive; font-weight: 400; line-height: 1.9; }
.bas { font-family: 'Andika', 'Nunito', sans-serif; font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; justify-content: center; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.row.tight { gap: 6px; margin: 0; flex-wrap: nowrap; }
.row.wrap { flex-wrap: wrap; }

.btn { background: var(--primary); color: var(--primary-ink); padding: 12px 20px; border-radius: 16px; font-weight: 800; box-shadow: 0 4px 0 rgba(0, 0, 0, .18); transition: transform .08s; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.btn.ghost { background: var(--card); color: var(--ink); border: 2px solid var(--line); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.big { font-size: 1.4rem; padding: 16px 34px; }
.btn.sm { padding: 8px 14px; font-size: .92rem; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow); font-size: 1.3rem; display: grid; place-items: center; flex: none; }
.icon-btn.sm { width: 38px; height: 38px; font-size: 1rem; }
.pill { background: var(--card); border-radius: 999px; padding: 8px 14px; box-shadow: var(--shadow); white-space: nowrap; }

/* barra do topo */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; }
.topbar .ttl { font-size: 1.25rem; text-align: center; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand { font-family: 'Playwrite BR'; font-size: 1.15rem; color: var(--primary); }

/* início */
.hero { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; background: var(--card); border-radius: 30px; padding: 16px 20px 0; box-shadow: var(--shadow); overflow: hidden; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: var(--grass); z-index: 0; }
.chars { display: flex; align-items: flex-end; gap: 0; position: relative; z-index: 1; }
.chars .maria { width: clamp(110px, 22vw, 190px); }
.chars .blu { width: clamp(80px, 15vw, 140px); margin-left: -18px; }
.chars.small { justify-content: center; }
.chars.small .maria { width: 120px; }
.chars.small .blu { width: 90px; }
.hello { z-index: 1; padding-bottom: 30px; }
.hello .hi { margin: 0; font-size: 1.1rem; color: var(--muted); }
.myname { font-size: clamp(2.2rem, 7vw, 3.6rem); margin: -10px 0 -6px; color: var(--primary); }
.hello .sub { margin: 4px 0 0; }
.goal { z-index: 1; display: grid; justify-items: center; padding-bottom: 32px; }
.ring { width: 96px; }
.ring-bg { fill: none; stroke: var(--card2); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .6s; }
.ring text { fill: var(--ink); font-weight: 800; font-size: 15px; }
.big-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.small-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }
.act { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 14px; display: grid; justify-items: center; gap: 4px; text-align: center; transition: transform .1s; }
.act:active { transform: scale(.97); }
.act .ai { font-size: 2.6rem; }
.act b { font-size: 1.35rem; }
.act small { color: var(--muted); }
.act.play { background: linear-gradient(160deg, #8ED1FC, #5AA9E6); color: #13235A; }
.act.play small { color: #1E3A7A; }
.act.challenge.due { background: linear-gradient(160deg, #FFD45C, #F7B267); color: #4A2A00; animation: glow 1.6s ease-in-out infinite; }
.act.challenge.due small { color: #6B3E00; }
.act.sm .ai { font-size: 1.9rem; }
.act.sm b { font-size: 1.02rem; }
.act.static { cursor: default; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px rgba(255, 212, 92, .45), var(--shadow); } }

/* trilha */
.trail { display: flex; flex-direction: column; align-items: stretch; padding: 8px 0 20px; }
.island { display: flex; gap: 14px; align-items: center; text-align: left; background: var(--card); border-radius: 26px; padding: 14px 18px; box-shadow: var(--shadow); border-left: 12px solid var(--c); width: min(560px, 100%); }
.island.left { align-self: flex-start; }
.island.right { align-self: flex-end; }
.island.locked { opacity: .55; filter: grayscale(.6); }
.iicon { font-size: 2.6rem; }
.itxt { display: grid; gap: 2px; flex: 1; }
.itxt b { font-size: 1.2rem; }
.itxt small { color: var(--muted); }
.iletters { font-size: 1.5rem; letter-spacing: .2em; color: var(--primary); line-height: 1.6; }
.path { height: 28px; width: 6px; margin: 2px auto; background: repeating-linear-gradient(var(--line) 0 8px, transparent 8px 14px); border-radius: 3px; }
.bar-h { display: block; height: 10px; background: var(--card2); border-radius: 99px; overflow: hidden; margin: 4px 0; }
.bar-h i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .5s; }

/* fase */
.letter-strip { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.ls { background: var(--card); border-radius: 18px; padding: 4px 14px; box-shadow: var(--shadow); border-bottom: 6px solid var(--c); display: grid; justify-items: center; }
.ls .cur { font-size: 2rem; }
.ls .bas { font-size: 1rem; color: var(--muted); margin-top: -8px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 18px 0; }
.gcard { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; display: grid; justify-items: center; text-align: center; gap: 4px; }
.gcard .gi { font-size: 2.8rem; }
.gcard b { font-size: 1.2rem; }
.gcard small { color: var(--muted); }

/* jogo */
.game { display: flex; flex-direction: column; min-height: calc(100dvh - 30px); position: relative; }
.gbar { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.gtitle { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.dots { display: flex; gap: 6px; flex: 1; justify-content: center; flex-wrap: wrap; }
.dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.dots i.ok { background: var(--ok); box-shadow: none; }
.dots i.miss { background: var(--accent); box-shadow: none; }
.dots i.neutral { background: var(--primary); box-shadow: none; }
.gbody { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding-bottom: 130px; }
.prompt { text-align: center; }
.ask { font-size: clamp(1.1rem, 3.4vw, 1.5rem); margin: 6px 0; text-align: center; }
.big { background: var(--card); border-radius: 30px; box-shadow: var(--shadow); min-width: 180px; padding: 0 30px; display: inline-flex; justify-content: center; align-items: center; margin: 4px auto; }
.big .cur, .big .bas { font-size: clamp(5rem, 20vw, 9rem); line-height: 1.75; color: var(--primary); }
.big .bas { line-height: 1.3; }
.big.word .cur { font-size: clamp(2.8rem, 11vw, 5.6rem); }
.options { display: grid; gap: 14px; width: min(720px, 100%); margin-top: 10px; }
.options.n2 { grid-template-columns: repeat(2, 1fr); }
.options.n3 { grid-template-columns: repeat(3, 1fr); }
.options.n4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .options.n4 { grid-template-columns: repeat(2, 1fr); } }
.opt { background: var(--card); border-radius: 24px; box-shadow: var(--shadow); min-height: 110px; display: grid; place-items: center; padding: 0 8px; border: 4px solid transparent; transition: transform .1s, background .2s; }
.opt:active { transform: scale(.95); }
.opt .cur { font-size: clamp(3rem, 10vw, 4.6rem); line-height: 1.7; }
.opt .bas { font-size: clamp(3rem, 10vw, 4.4rem); }
.opt .bas.caps { font-size: clamp(1.5rem, 5vw, 2.4rem); letter-spacing: .04em; }
.opt .emoji { font-size: clamp(3.4rem, 11vw, 5rem); }
.opt.right { background: var(--ok-bg); border-color: var(--ok); animation: pop .35s; }
.opt.wrong { background: var(--bad-bg); border-color: var(--bad); animation: shake .4s; opacity: .7; }
.opt.hint { border-color: var(--ok); animation: pulse 1s infinite; }
.opt.picked { border-color: var(--primary); }
.opt:disabled { cursor: default; }
@keyframes pop { 50% { transform: scale(1.08); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(63, 163, 77, .3); } }
.speaker { font-size: 2.6rem; background: var(--card); border-radius: 50%; width: 92px; height: 92px; box-shadow: var(--shadow); }
.hint-emoji { font-size: 3rem; margin-top: 6px; }
.inline { font-size: 1.4em; }

.buddy { position: fixed; right: max(12px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 6px; pointer-events: none; z-index: 5; }
.buddy .blu { width: 100px; }
.bubble { background: var(--card); color: var(--ink); border-radius: 18px 18px 4px 18px; padding: 10px 14px; max-width: min(320px, 60vw); box-shadow: var(--shadow); font-size: 1.02rem; margin-bottom: 60px; }
.jump { animation: jump .5s; }
.tilt { animation: tilt .6s; }
@keyframes jump { 40% { transform: translateY(-16px); } }
@keyframes tilt { 30% { transform: rotate(-8deg); } 70% { transform: rotate(6deg); } }
.blu .tail { transform-origin: 150px 176px; animation: wag 1.2s ease-in-out infinite; }
@keyframes wag { 50% { transform: rotate(14deg); } }

/* memória */
.memory { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: min(640px, 100%); }
@media (max-width: 520px) { .memory { grid-template-columns: repeat(3, 1fr); } }
.card { aspect-ratio: 3/4; perspective: 600px; position: relative; }
.card > span { position: absolute; inset: 0; border-radius: 18px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform .4s; box-shadow: var(--shadow); }
.card .back { background: linear-gradient(150deg, #8ED1FC, #404E9C); font-size: 2rem; }
.card .front { background: var(--card); transform: rotateY(180deg); }
.card .front .cur { font-size: clamp(2.2rem, 8vw, 3.6rem); color: var(--primary); }
.card .front .bas { font-size: clamp(2.2rem, 8vw, 3.4rem); }
.card.up .back { transform: rotateY(180deg); }
.card.up .front { transform: rotateY(360deg); }
.card.matched .front { background: var(--ok-bg); }

/* balões */
.sky-top { text-align: center; }
.target { display: inline-flex; align-items: center; gap: 12px; background: var(--card); padding: 0 24px 10px; border-radius: 22px; box-shadow: var(--shadow); }
.target .bas { font-size: 3rem; }
.target .cur { font-size: 3.4rem; color: var(--primary); line-height: 2; }
.target .arrow { font-size: 1.6rem; color: var(--muted); }
.need { display: flex; gap: 8px; justify-content: center; margin-top: 8px; }
.need i { width: 22px; height: 22px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 3px var(--line); }
.need i.on { background: var(--sun); box-shadow: none; }
.sky { position: relative; width: 100%; flex: 1; min-height: 52dvh; overflow: hidden; border-radius: 26px; background: linear-gradient(180deg, transparent, rgba(142, 209, 252, .25)); }
.balloon { position: absolute; bottom: -140px; width: 92px; height: 112px; border-radius: 50% 50% 48% 48%; background: var(--c); box-shadow: inset -10px -12px 0 rgba(0, 0, 0, .12), inset 8px 8px 0 rgba(255, 255, 255, .3); animation: rise linear forwards; display: grid; place-items: center; touch-action: none; }
.balloon::after { content: ''; position: absolute; bottom: -38px; left: 50%; width: 2px; height: 38px; background: rgba(0, 0, 0, .3); }
.balloon .cur { font-size: 2.9rem; color: #13235A; line-height: 1.6; pointer-events: none; }
.balloon.popped { animation: popb .3s forwards; }
.balloon.nope { animation-play-state: paused; filter: grayscale(.8); opacity: .5; }
@keyframes rise { to { transform: translateY(var(--rise, -700px)); } }
@keyframes popb { to { transform: scale(1.6); opacity: 0; } }

/* traçar */
.trace-wrap { position: relative; width: min(560px, 100%); aspect-ratio: 4/3; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); touch-action: none; }
.trace { position: absolute; inset: 0; touch-action: none; }
.trace-emoji { position: absolute; top: 10px; right: 14px; font-size: 2.2rem; pointer-events: none; }
:root { --ink-trace: var(--primary); }

/* resultado */
.result, .assess-intro, .rest, .welcome { text-align: center; display: grid; justify-items: center; gap: 4px; padding: 10px 0 30px; }
.big-stars { font-size: 2.6rem; font-weight: 800; margin: 4px 0; }
.grade { font-size: 6rem; font-weight: 800; margin: 0; color: var(--primary); line-height: 1; }
.unlock { background: var(--card); border-radius: 20px; padding: 6px 20px; box-shadow: var(--shadow); margin: 6px 0; border: 3px dashed var(--accent); }
.stickers { display: flex; gap: 10px; justify-content: center; }
.sticker { font-size: 2.6rem; display: grid; justify-items: center; }
.sticker i { font-size: 1.2rem; font-style: normal; line-height: 1.6; }
.prize-note { background: var(--card); border-radius: 16px; padding: 8px 16px; }

/* álbum */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.slot { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; display: grid; justify-items: center; border: 3px dashed var(--line); }
.slot.got { border: 3px solid var(--sun); background: linear-gradient(160deg, var(--card), var(--card2)); }
.slot .em { font-size: 2.4rem; }
.slot .cur { font-size: 1.4rem; line-height: 1.7; }
.slot .bar-h { width: 80%; }
.slot small { color: var(--muted); }

/* visual */
.style { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 20px; align-items: start; }
@media (max-width: 640px) { .style { grid-template-columns: 1fr; } .preview { max-width: 200px; margin: 0 auto; } }
.preview { background: var(--card); border-radius: 30px; box-shadow: var(--shadow); padding: 16px; position: sticky; top: 10px; }
.sws { display: flex; gap: 10px; flex-wrap: wrap; }
.sw { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 12px; display: grid; justify-items: center; gap: 2px; min-width: 64px; border: 3px solid transparent; }
.sw.on { border-color: var(--primary); }
.sw.locked { opacity: .55; }
.sw .dot { width: 30px; height: 30px; border-radius: 50%; display: block; border: 2px solid rgba(0, 0, 0, .1); }
.sw small { font-size: .78rem; color: var(--muted); }

/* prêmios */
.prizes { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; width: 100%; }
.prize { display: flex; gap: 14px; align-items: center; background: var(--card); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); }
.prize .pi { font-size: 2.4rem; }
.prize > div { flex: 1; display: grid; }
.prize small { color: var(--muted); }
.prize.done { border: 3px solid var(--sun); }
.prize .ok { color: var(--ok); font-weight: 800; }

/* pais */
.parent { padding-bottom: 30px; }
.pbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.pbar h1 { font-size: 1.3rem; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.tab { padding: 8px 16px; border-radius: 999px; background: var(--card); white-space: nowrap; box-shadow: var(--shadow); }
.tab.on { background: var(--primary); color: var(--primary-ink); }
.card-p { background: var(--card); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); margin: 14px 0; }
.card-p h3 { margin-top: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 12px; }
.kpi { background: var(--card); border-radius: 18px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; }
.kpi small, .kpi span { color: var(--muted); font-size: .85rem; }
.kpi b { font-size: 2rem; }
.chart-wrap { overflow-x: auto; }
.chart { width: 100%; max-width: 680px; min-width: 360px; height: auto; display: block; margin: 0 auto; }
.chart .gl { stroke: var(--line); stroke-dasharray: 4 4; }
.chart .ax { fill: var(--muted); font-size: 12px; }
.chart .ln { fill: none; stroke: var(--primary); stroke-width: 3; }
.chart .pt { fill: var(--accent); }
.chart .lbl { fill: var(--ink); font-weight: 800; font-size: 13px; }
.chart .lbl.sm { font-size: 11px; }
.chart .bar { fill: var(--sky); }
.prow { display: grid; grid-template-columns: 1fr 2fr 48px; gap: 10px; align-items: center; margin: 6px 0; }
.lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; }
.lg-col { display: grid; gap: 4px; justify-items: center; }
.lg-col b { font-size: .8rem; color: var(--muted); }
.lg-cell { width: 44px; height: 50px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--card2); }
.lg-cell .cur { font-size: 1.3rem; line-height: 1.7; }
.lg-legend { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.lg-legend .lg-cell { width: 18px; height: 18px; border-radius: 5px; }
.lv-1 { background: var(--card2); opacity: .6; }
.lv0 { background: #FFD9DD; } .lv1 { background: #FFE6C2; } .lv2 { background: #FFF1B8; }
.lv3 { background: #E3F4C4; } .lv4 { background: #C4EBB1; } .lv5 { background: #9ED98A; }
.lv0 .cur, .lv1 .cur, .lv2 .cur, .lv3 .cur, .lv4 .cur, .lv5 .cur { color: #1E2A5A; }
.conf { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.conf li { display: flex; gap: 10px; align-items: center; background: var(--card2); border-radius: 12px; padding: 2px 12px; }
.conf .cur { font-size: 1.5rem; line-height: 1.7; }
.conf b { margin-left: auto; }
.report { white-space: pre-wrap; font-family: 'Nunito', sans-serif; font-weight: 600; background: var(--card2); border-radius: 14px; padding: 14px; line-height: 1.5; -webkit-user-select: text; user-select: text; font-size: .95rem; }
.settings { display: grid; gap: 12px; }
.settings label { display: grid; gap: 4px; }
.settings label.chk { display: flex; gap: 10px; align-items: center; }
.settings input[type=checkbox] { width: 24px; height: 24px; }
.code { font-size: 1.3rem; letter-spacing: .08em; -webkit-user-select: text; user-select: text; }
.re-row { display: grid; grid-template-columns: 2fr 2fr 80px auto auto auto; gap: 8px; align-items: center; margin: 8px 0; }
@media (max-width: 700px) { .re-row { grid-template-columns: 1fr 1fr; } }
.re-prog.done { color: var(--ok); font-weight: 800; }
.file { cursor: pointer; }
.modal { position: fixed; inset: 0; background: rgba(10, 15, 40, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-box { background: var(--card); border-radius: 24px; padding: 22px; width: min(360px, 100%); text-align: center; box-shadow: var(--shadow); }
.modal-box input { width: 100%; font-size: 1.6rem; text-align: center; margin: 8px 0; }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

.welcome h1 { font-size: 2rem; }
.welcome p { font-size: 1.2rem; max-width: 520px; }
.welcome .cur { font-size: 1.5em; color: var(--primary); }
.welcome .bas { font-size: 1.1em; }

@media (max-width: 640px) {
  .hero { grid-template-columns: auto 1fr; padding: 12px 14px 0; }
  .goal { grid-column: 1 / -1; grid-template-columns: auto auto; align-items: center; gap: 10px; justify-content: start; padding-bottom: 34px; margin-top: -24px; }
  .ring { width: 72px; }
  .small-actions { grid-template-columns: repeat(2, 1fr); }
  .act .ai { font-size: 2.1rem; }
  .act b { font-size: 1.15rem; }
  .buddy .blu { width: 76px; }
  .bubble { margin-bottom: 44px; font-size: .95rem; }
  .gtitle { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; } .balloon { animation-duration: 8s !important; } }
