/* Piscalê — tema infantil para tablet: cores vivas, alvos grandes, muita animação. */
:root {
  --ink: #2a1b5c;
  --ink-soft: #5d5288;
  --purple: #6c4cf5;
  --pink: #ff5fa2;
  --orange: #ff8a3d;
  --yellow: #ffc531;
  --green: #3bc46b;
  --blue: #00b8d9;
  --indigo: #5b6cff;
  --card: #ffffff;
  --shadow: 0 8px 0 rgba(42, 27, 92, .12), 0 18px 30px rgba(42, 27, 92, .12);
  --radius: 28px;
  --top: 76px;
  --font: 'Baloo 2', 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  --read: 'Andika', 'Baloo 2', system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, #7dd8ff 0%, #b9ecff 45%, #fff3c9 100%);
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
input, textarea { font: inherit; -webkit-user-select: text; user-select: text; }
:focus-visible { outline: 4px solid var(--yellow); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- céu animado ---------- */
.sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.cloud { position: absolute; width: 180px; height: 56px; background: #fff; border-radius: 60px; opacity: .85; animation: drift linear infinite; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; left: 26px; top: -40px; }
.cloud::after { width: 60px; height: 60px; left: 90px; top: -26px; }
.c1 { top: 14%; animation-duration: 70s; animation-delay: -10s; }
.c2 { top: 32%; transform: scale(.7); animation-duration: 95s; animation-delay: -50s; opacity: .7; }
.c3 { top: 8%; transform: scale(.5); animation-duration: 120s; animation-delay: -80s; opacity: .6; }
@keyframes drift { from { left: -220px; } to { left: 110%; } }
.twinkle { position: absolute; color: #fff; font-size: 22px; animation: twinkle 3s ease-in-out infinite; text-shadow: 0 0 10px #fff8b0; }
.t1 { top: 10%; left: 20%; } .t2 { top: 22%; left: 75%; animation-delay: -1s; }
.t3 { top: 40%; left: 90%; animation-delay: -2s; } .t4 { top: 50%; left: 6%; animation-delay: -.5s; }
@keyframes twinkle { 50% { opacity: .2; transform: scale(.6) rotate(45deg); } }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 22vh; }
.hills span { position: absolute; bottom: -12vh; border-radius: 50%; }
.hills span:nth-child(1) { left: -10%; width: 70%; height: 30vh; background: #8fe39b; }
.hills span:nth-child(2) { right: -15%; width: 75%; height: 34vh; background: #6fd486; }
.hills span:nth-child(3) { left: 30%; width: 60%; height: 24vh; background: #a8eeb0; bottom: -14vh; }

/* ---------- topo ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: var(--top);
  display: flex; align-items: center; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 10px) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
}
.topbar-title { flex: 1; margin: 0; font-size: clamp(20px, 3.2vw, 30px); font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(42, 27, 92, .25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round-btn {
  width: 56px; height: 56px; flex: none; border-radius: 50%; background: #fff; font-size: 26px;
  display: grid; place-items: center; box-shadow: 0 5px 0 rgba(42, 27, 92, .18); transition: transform .12s;
}
.round-btn:active { transform: translateY(4px); box-shadow: 0 1px 0 rgba(42, 27, 92, .18); }
.round-btn:disabled { opacity: .35; }
.star-pill {
  display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 18px 0 12px; border-radius: 30px;
  background: #fff; font-size: 26px; font-weight: 800; box-shadow: 0 5px 0 rgba(42, 27, 92, .18);
}
.star-pill.bump { animation: bump .45s; }
.star-ico { display: inline-block; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bump { 40% { transform: scale(1.25); } }
.avatar-btn { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, #ffe680, #ffb84d); font-size: 34px; display: grid; place-items: center; box-shadow: 0 5px 0 rgba(42, 27, 92, .18); border: 4px solid #fff; }

/* ---------- área principal ---------- */
#screen {
  position: fixed; z-index: 5; left: 0; right: 0; bottom: 0;
  top: calc(var(--top) + env(safe-area-inset-top));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 8px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  outline: none;
}
.center-screen { min-height: 100%; display: grid; place-items: center; align-content: center; gap: 20px; padding-bottom: 80px; }
.hello { font-size: clamp(28px, 4.5vw, 46px); margin: 4px 0 14px; color: #fff; text-shadow: 0 4px 0 rgba(42, 27, 92, .22); text-align: center; }
.wave { display: inline-block; animation: wave 1.6s ease-in-out infinite; transform-origin: 70% 70%; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-10deg); } }
.tag { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .08em; padding: 4px 14px; border-radius: 20px; background: rgba(255, 255, 255, .3); }

@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } 70% { transform: translate(-50%, -50%) scale(1.05); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes popIn { from { opacity: 0; transform: scale(.6) translateY(20px); } 70% { transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* ---------- perfis ---------- */
.profile-list { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; max-width: 900px; }
.profile-card {
  width: 170px; padding: 20px 10px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  display: grid; justify-items: center; gap: 4px; animation: popIn .5s backwards; transition: transform .15s;
}
.profile-card:active { transform: scale(.94); }
.profile-card strong { font-size: 24px; }
.profile-card small { font-size: 18px; color: var(--ink-soft); }
.profile-card.add { background: rgba(255, 255, 255, .6); border: 4px dashed #fff; box-shadow: none; }
.avatar-xl { font-size: 76px; line-height: 1.1; animation: floaty 3s ease-in-out infinite; }

.form-screen { display: grid; place-items: center; padding: 10px 0 100px; }
.form-card { width: min(720px, 100%); background: #fff; border-radius: 36px; padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); animation: popIn .5s backwards; }
.form-card h2 { margin: 0; font-size: clamp(26px, 4vw, 38px); color: var(--purple); }
.sub { margin: 4px 0 18px; font-size: 20px; color: var(--ink-soft); }
.field { display: grid; gap: 10px; margin: 18px 0; font-size: 20px; font-weight: 700; }
.field input { font-size: 28px; padding: 14px 20px; border-radius: 20px; border: 4px solid #e4dcff; outline: none; color: var(--ink); }
.field input:focus { border-color: var(--purple); }
.avatar-grid, .age-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-width: 64px; height: 64px; padding: 0 14px; border-radius: 22px; background: #f3efff; font-size: 30px; font-weight: 800;
  box-shadow: 0 4px 0 #ddd3ff; transition: transform .12s;
}
.age-chip { font-size: 26px; color: #fff; background: var(--tint); box-shadow: 0 4px 0 rgba(0, 0, 0, .15); opacity: .55; }
.chip.on { transform: scale(1.12); background: var(--yellow); box-shadow: 0 4px 0 #e0a400; }
.age-chip.on { opacity: 1; background: var(--tint); outline: 5px solid var(--ink); }
.big-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 72px; padding: 0 34px; border-radius: 40px; white-space: nowrap; font-size: clamp(22px, 3vw, 30px); font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #8f73ff, var(--purple)); box-shadow: 0 7px 0 #4b31c9, 0 14px 24px rgba(76, 49, 201, .3);
  transition: transform .1s, box-shadow .1s;
}
.big-btn:active:not(:disabled) { transform: translateY(6px); box-shadow: 0 1px 0 #4b31c9; }
.big-btn:disabled { filter: grayscale(.8); opacity: .5; }
.big-btn.small { min-height: 54px; font-size: 20px; padding: 0 22px; }
.big-btn.danger { background: linear-gradient(180deg, #ff7c7c, #e84545); box-shadow: 0 6px 0 #b72d2d; }
.form-card .start { width: 100%; margin-top: 10px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 16px; }

/* ---------- início ---------- */
.home { max-width: 1180px; margin: 0 auto; padding-bottom: 90px; }
.home-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 22px; }
.adventure-card {
  position: relative; overflow: hidden; grid-row: span 2; min-height: 330px; border-radius: 36px; padding: 28px; text-align: left; color: #fff;
  background: radial-gradient(circle at 80% 20%, #ffe36e 0 9%, transparent 10%), linear-gradient(160deg, #7a5cff, #4b9dff 60%, #23d5c3);
  box-shadow: 0 9px 0 #3d2bb0, 0 22px 40px rgba(61, 43, 176, .35); animation: popIn .5s backwards; transition: transform .15s;
}
.adventure-card:active { transform: scale(.97); }
.adv-text { position: relative; z-index: 2; display: grid; gap: 8px; justify-items: start; }
.adv-text strong { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; text-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.adv-text small { font-size: 21px; opacity: .95; }
.play-pill { margin-top: 10px; padding: 10px 30px; border-radius: 30px; background: var(--yellow); color: var(--ink); font-size: 28px; font-weight: 800; box-shadow: 0 6px 0 #d99a00; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.07); } }
.adv-art { position: absolute; right: 16px; bottom: 34px; font-size: 92px; display: flex; align-items: flex-end; }
.adv-art span:nth-child(1) { animation: floaty 4s ease-in-out infinite; }
.adv-art span:nth-child(2) { font-size: 58px; animation: floaty 3s ease-in-out infinite -1s; }
.adv-art span:nth-child(3) { position: absolute; top: -170px; right: 10px; font-size: 48px; animation: spin 8s linear infinite; }
.adv-progress { position: absolute; left: 28px; right: 28px; bottom: 16px; height: 12px; border-radius: 8px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.adv-progress span { display: block; height: 100%; background: var(--yellow); border-radius: 8px; min-width: 12px; }
.worlds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.world-card {
  position: relative; min-height: 150px; border-radius: var(--radius); padding: 16px 12px; color: #fff; background: var(--tint);
  display: grid; justify-items: center; align-content: center; gap: 2px; text-align: center;
  box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .14), var(--shadow); animation: popIn .5s backwards; transition: transform .15s;
}
.world-card:active { transform: scale(.94) rotate(-1deg); }
.world-card strong { font-size: clamp(19px, 2.3vw, 24px); line-height: 1.1; }
.world-card small { font-size: 16px; opacity: .95; }
.world-icon { font-size: 54px; line-height: 1; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .12)); animation: floaty 3s ease-in-out infinite; }
.world-card.rec { outline: 5px solid #fff; }
.badge { position: absolute; top: -12px; right: -8px; background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 800; padding: 3px 12px; border-radius: 14px; transform: rotate(6deg); box-shadow: 0 3px 0 #d99a00; animation: pulse 2s infinite; }
.home-row { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mini-card { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 24px; background: #fff; box-shadow: var(--shadow); text-align: left; transition: transform .15s; }
.mini-card:active { transform: scale(.96); }
.mini-card > span { font-size: 44px; }
.mini-card strong { display: block; font-size: 22px; }
.mini-card small { font-size: 16px; color: var(--ink-soft); }
.mini-card.mini-adult { background: rgba(255, 255, 255, .75); }

/* ---------- mundo ---------- */
.world { max-width: 1180px; margin: 0 auto; padding-bottom: 100px; }
.world-banner { display: flex; align-items: center; gap: 18px; padding: 18px 26px; border-radius: 32px; background: var(--tint); color: #fff; box-shadow: inset 0 -8px 0 rgba(0, 0, 0, .14), var(--shadow); margin-bottom: 22px; }
.world-banner h2 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1; }
.world-banner p { margin: 4px 0 0; font-size: 20px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.game-card {
  position: relative; display: grid; justify-items: center; gap: 4px; padding: 22px 14px 18px; border-radius: var(--radius); background: #fff;
  border-bottom: 10px solid var(--tint); box-shadow: var(--shadow); text-align: center; animation: popIn .45s backwards; transition: transform .15s;
}
.game-card:active { transform: scale(.94); }
.game-emoji { width: 104px; height: 104px; display: grid; place-items: center; font-size: 60px; border-radius: 50%; background: color-mix(in srgb, var(--tint) 20%, #fff); }
.game-card:nth-child(odd) .game-emoji { animation: floaty 3s ease-in-out infinite; }
.game-card:nth-child(even) .game-emoji { animation: floaty 3.4s ease-in-out infinite -1s; }
.game-card strong { font-size: 24px; line-height: 1.1; margin-top: 6px; }
.game-card small { font-size: 16px; color: var(--ink-soft); line-height: 1.25; }
.played { position: absolute; top: 12px; right: 12px; font-size: 15px; font-weight: 800; background: #fff3c4; padding: 2px 10px; border-radius: 12px; }
.played.new { background: var(--pink); color: #fff; }

/* ---------- tela de jogo ---------- */
.game-screen { min-height: 100%; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; }
.game-head { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 28px; background: var(--c); color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .14); }
.game-head h2 { margin: 0; font-size: clamp(20px, 2.8vw, 28px); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-icon { font-size: 36px; }
.dots { display: flex; gap: 6px; flex-wrap: wrap; max-width: 46%; justify-content: flex-end; }
.dots span { width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: .3s; }
.dots span.done { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255, 255, 255, .6); }
.dots span.now { background: #fff; transform: scale(1.3); }
.game-head .round-btn { width: 52px; height: 52px; font-size: 24px; }
.stage { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 18px 0 110px; }

.prompt-card {
  display: grid; justify-items: center; gap: 2px; padding: 16px 34px; border-radius: 32px; background: #fff; box-shadow: var(--shadow);
  animation: popIn .45s backwards; cursor: pointer;
}
.prompt-card .emoji { font-size: clamp(76px, 12vw, 120px); line-height: 1.1; animation: floaty 3s ease-in-out infinite; }
.prompt-card strong { font-family: var(--read); font-size: clamp(34px, 5vw, 52px); letter-spacing: .06em; }
.prompt-card .sound-wave { font-size: 54px; animation: pulse 1.2s infinite; }
.letter-card { padding: 10px 48px; }
.letter-xl { font-family: var(--read); font-weight: 700; font-size: clamp(110px, 16vw, 170px); line-height: 1; color: var(--purple); }
.letter-card small { font-family: var(--read); font-size: 44px; color: var(--ink-soft); margin-top: -10px; }
.question { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin: 0; text-align: center; color: var(--ink); background: rgba(255, 255, 255, .75); padding: 4px 22px; border-radius: 24px; }
.hl { color: var(--pink); }

.options { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.option {
  min-width: 170px; min-height: 160px; padding: 14px 18px; border-radius: 30px; background: #fff; box-shadow: var(--shadow);
  display: grid; justify-items: center; align-content: center; gap: 4px; animation: popIn .45s backwards; transition: transform .12s;
}
.option:nth-child(2) { animation-delay: .08s; } .option:nth-child(3) { animation-delay: .16s; } .option:nth-child(4) { animation-delay: .24s; }
.option:active { transform: scale(.93); }
.option.chosen { transform: scale(.96); box-shadow: 0 0 0 6px #ffd23f, 0 8px 0 rgba(0,0,0,.12); }
.option .emoji { font-size: clamp(70px, 10vw, 100px); line-height: 1.1; }
.option strong { font-family: var(--read); font-size: clamp(24px, 3vw, 32px); letter-spacing: .05em; }
.options.big .option { min-width: 210px; min-height: 210px; }
.option.emoji-only span { font-size: clamp(100px, 14vw, 140px); line-height: 1; }
.option.word-only { min-height: 96px; min-width: 200px; padding: 10px 26px; }
.option.word-only strong { font-size: clamp(26px, 3.4vw, 36px); }
.option.correct, .tile.correct { background: #d9ffe3; box-shadow: 0 0 0 6px var(--green), var(--shadow); animation: bump .4s; }
.option.wrong { background: #ffe1e1; }
.wiggle { animation: wiggle .5s; }
@keyframes wiggle { 20% { transform: rotate(-8deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(4deg); } }

/* bolhas */
.bubble-field { position: absolute; inset: 0; overflow: hidden; border-radius: 30px; }
.soap {
  position: absolute; bottom: -180px; left: var(--x); width: var(--size); height: var(--size); border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .95) 0 10%, transparent 12%),
              radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--tint) 18%, transparent) 50%, color-mix(in srgb, var(--tint) 55%, transparent) 100%);
  border: 3px solid rgba(255, 255, 255, .85); box-shadow: inset 0 0 20px rgba(255, 255, 255, .6);
  animation: rise var(--dur) linear forwards; display: grid; place-items: center;
}
.soap span { font-size: calc(var(--size) * .5); }
.soap.popped { animation: burst .3s forwards; }
@keyframes rise { 0% { transform: translate(0, 0); } 25% { transform: translate(18px, -30vh); } 50% { transform: translate(-14px, -60vh); } 75% { transform: translate(14px, -90vh); } 100% { transform: translate(0, -125vh); } }
@keyframes burst { to { transform: scale(1.6); opacity: 0; } }
.reveal { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); pointer-events: none; }
.reveal-card { display: grid; justify-items: center; padding: 14px 40px; border-radius: 36px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow); animation: popIn .4s backwards; }
.reveal-card span { font-size: 120px; line-height: 1.1; }
.reveal-card strong { font-size: 44px; text-transform: uppercase; font-family: var(--read); letter-spacing: .06em; }

/* esconde-esconde */
.peek-grid { display: flex; flex-wrap: wrap; gap: 26px; justify-content: center; }
.peek { position: relative; width: clamp(150px, 22vw, 220px); aspect-ratio: 1; border-radius: 40px; background: #fff; box-shadow: var(--shadow); overflow: hidden; animation: popIn .5s backwards; }
.peek .who { font-size: clamp(90px, 13vw, 130px); position: absolute; inset: 0; display: grid; place-items: center; transform: scale(.3); transition: transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.peek .cover { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(130px, 19vw, 190px); background: #d9f3ff; transition: transform .5s ease-in; animation: floaty 2.6s ease-in-out infinite; }
.peek.open .cover { transform: translateY(-120%) rotate(-20deg); }
.peek.open .who { transform: scale(1); animation: bump .6s .3s; }

/* alfabeto */
.abc-layout { width: 100%; display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; }
.abc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.abc-grid.few { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.abc-grid.few .abc-tile { min-height: 140px; font-size: 70px; }
.abc-tile {
  position: relative; min-height: 84px; border-radius: 22px; background: var(--tint); color: #fff; font-family: var(--read); font-weight: 700; font-size: 44px;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .16), 0 6px 12px rgba(0, 0, 0, .1); animation: popIn .4s backwards; display: grid; place-items: center; line-height: 1;
}
.abc-tile small { position: absolute; right: 8px; bottom: 4px; font-size: 20px; opacity: .85; }
.abc-tile.seen::after { content: '★'; position: absolute; top: 2px; left: 6px; font-size: 16px; color: #fff59a; }
.abc-tile.flip { animation: flip .5s; }
@keyframes flip { 50% { transform: rotateY(90deg) scale(1.1); } }
.abc-show { display: grid; justify-items: center; gap: 14px; min-height: 300px; align-content: center; }
.abc-hint { font-size: 30px; font-weight: 800; color: #fff; text-shadow: 0 3px 0 rgba(0, 0, 0, .15); }
.abc-card { display: grid; justify-items: center; padding: 16px 30px; border-radius: 36px; background: #fff; border: 8px solid var(--tint); box-shadow: var(--shadow); animation: popIn .4s backwards; }
.abc-big { font-family: var(--read); font-weight: 700; font-size: clamp(100px, 13vw, 150px); line-height: 1; color: var(--tint); }
.abc-big span { font-size: .55em; margin-left: 10px; opacity: .7; }
.abc-emoji { font-size: 90px; animation: floaty 2.5s ease-in-out infinite; }
.abc-word { font-family: var(--read); font-size: 38px; letter-spacing: .06em; }
.abc-word b { color: var(--tint); }

/* balões */
.balloon-sky { position: absolute; inset: 0 0 90px; overflow: hidden; }
.target-letter { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-family: var(--read); font-weight: 700; font-size: 34vh; color: rgba(255, 255, 255, .45); pointer-events: none; }
.balloon {
  position: absolute; left: calc(var(--x) - 55px); bottom: -200px; width: 110px; height: 136px; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .7) 0 8%, transparent 9%), var(--tint);
  box-shadow: inset -10px -14px 0 rgba(0, 0, 0, .12); animation: floatUp var(--dur) linear infinite; animation-delay: var(--delay);
  font-family: var(--read); font-weight: 700; color: #fff; font-size: 58px; display: grid; place-items: center;
}
.balloon::after { content: ''; position: absolute; left: 50%; bottom: -54px; width: 2px; height: 54px; background: rgba(42, 27, 92, .35); }
.balloon::before { content: ''; position: absolute; left: calc(50% - 8px); bottom: -8px; border: 8px solid transparent; border-bottom-color: var(--tint); }
.balloon.popped { animation: burst .25s forwards; }
.balloon.wrong span { color: #2a1b5c; }
@keyframes floatUp { 0% { transform: translate(0, 0); } 50% { transform: translate(var(--sway), -55vh); } 100% { transform: translate(0, -115vh); } }

/* tambor */
.claps { display: flex; flex-wrap: wrap; gap: 10px; min-height: 76px; justify-content: center; align-items: center; }
.clap { font-size: 52px; animation: popIn .3s backwards; }
.syl { font-family: var(--read); font-weight: 700; font-size: 46px; padding: 4px 22px; border-radius: 20px; background: var(--tint); color: #fff; animation: popIn .3s backwards; }
.syl.pulse { animation: bump .5s; }
.drum-row { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; justify-content: center; }
.drum { width: 190px; height: 190px; border-radius: 50%; background: radial-gradient(circle, #fff7d6 0 55%, #ffb000 56% 64%, #ff6b6b 65%); box-shadow: 0 10px 0 #c43c3c, var(--shadow); font-size: 90px; transition: transform .08s; }
.drum.hit { animation: drumhit .2s; }
@keyframes drumhit { 50% { transform: scale(.9) translateY(6px); } }

/* sílabas e ditado */
.slots { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.slot { min-width: 110px; height: 96px; border-radius: 22px; border: 5px dashed rgba(255, 255, 255, .95); background: rgba(255, 255, 255, .35); display: grid; place-items: center; font-family: var(--read); font-weight: 700; font-size: 48px; color: #fff; padding: 0 12px; }
.slot.filled { border-style: solid; background: var(--tint, var(--purple)); border-color: #fff; animation: bump .35s; }
.slots.letters .slot { min-width: 70px; height: 84px; font-size: 44px; }
.slots.correct { animation: bump .5s; }
.tiles { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.tile { min-width: 120px; height: 100px; padding: 0 18px; border-radius: 26px; background: var(--tint); color: #fff; font-family: var(--read); font-weight: 700; font-size: 46px; box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .16), 0 8px 14px rgba(0, 0, 0, .12); animation: popIn .4s backwards; transition: transform .12s, opacity .3s; }
.tile:active:not(:disabled) { transform: scale(.9); }
.tile.used { opacity: .18; transform: scale(.85); }
.tile.letter { min-width: 78px; height: 84px; font-size: 42px; }
.tile.wrong { filter: grayscale(.5); }
.dictation-top { display: flex; justify-content: center; }
.listen-big { flex-direction: row; display: flex; align-items: center; gap: 18px; font-size: 64px; }
.listen-big .emoji.small { font-size: 90px; }

/* memória */
.memory-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(90px, 170px)); perspective: 1000px; }
.memory-grid.n8 { grid-template-columns: repeat(4, minmax(90px, 160px)); }
.memory-grid.n12 { grid-template-columns: repeat(6, minmax(80px, 150px)); }
.mem-card { position: relative; aspect-ratio: 4 / 5; animation: popIn .4s backwards; }
/* O giro fica num elemento interno (e não no <button>), o que funciona melhor no Safari/iPad. */
.mem-inner { position: absolute; inset: 0; display: block; transform-style: preserve-3d; -webkit-transform-style: preserve-3d; transition: transform .45s; }
.mem-card.up .mem-inner { transform: rotateY(180deg); }
.mem-card .back, .mem-card .front { position: absolute; inset: 0; border-radius: 22px; display: grid; place-items: center; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow); }
.mem-card .back { background: repeating-linear-gradient(45deg, #8f73ff 0 14px, #7a5cff 14px 28px); color: #ffe36e; font-size: 52px; border: 5px solid #fff; }
.mem-card .front { background: #fff; transform: rotateY(180deg); border: 6px solid var(--tint); }
.mem-card .front b { font-family: var(--read); font-size: 74px; color: var(--tint); }
.mem-card .front i { font-style: normal; font-size: 70px; }
.mem-card.matched .front { background: #e7ffef; }
.mem-card.matched .mem-inner { animation: matchPop .5s; }
@keyframes matchPop { 50% { transform: rotateY(180deg) scale(1.08); } to { transform: rotateY(180deg); } }

/* traçar */
.trace-layout { width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; justify-items: center; }
.trace-side { display: grid; gap: 16px; justify-items: center; }
.trace-side.buttons .big-btn { width: 210px; }
.trace-pad { position: relative; width: min(58vh, 62vw, 520px); aspect-ratio: 1; border-radius: 36px; background: #fff; box-shadow: var(--shadow); overflow: hidden; touch-action: none; }
.trace-pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.trace-pad.glow { box-shadow: 0 0 0 10px var(--yellow), var(--shadow); }
.palette { display: grid; grid-template-columns: repeat(3, 56px); gap: 10px; }
.swatch { width: 56px; height: 56px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18); transition: transform .12s; }
.swatch.on { transform: scale(1.18); outline: 5px solid #fff; }

/* frases e histórias */
.sentence { font-family: var(--read); font-size: clamp(30px, 4.4vw, 46px); text-align: center; background: #fff; padding: 18px 30px; border-radius: 28px; box-shadow: var(--shadow); margin: 0; line-height: 1.4; }
.blank { display: inline-block; min-width: 140px; margin: 0 8px; border-bottom: 6px dashed var(--orange); color: var(--orange); }
.blank.filled { border-bottom-style: solid; border-color: var(--green); color: var(--green); animation: bump .4s; }
.hint-emoji { padding: 10px 30px; }
.library { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; width: 100%; }
.book { position: relative; aspect-ratio: 4 / 5; border-radius: 10px 28px 28px 10px; background: var(--tint); color: #fff; display: grid; justify-items: center; align-content: center; gap: 10px; padding: 14px; box-shadow: inset 14px 0 0 rgba(0, 0, 0, .14), var(--shadow); animation: popIn .45s backwards; transition: transform .15s; }
.book:active { transform: scale(.94) rotate(-2deg); }
.book .cover { font-size: 84px; animation: floaty 3s ease-in-out infinite; }
.book strong { font-size: 22px; line-height: 1.15; text-align: center; }
.story { width: 100%; max-width: 900px; display: grid; justify-items: center; gap: 16px; background: #fff; border-radius: 40px; padding: 22px; box-shadow: var(--shadow); border-top: 14px solid var(--tint); animation: popIn .4s backwards; }
.story-title { margin: 0; font-size: 22px; font-weight: 800; color: var(--tint); }
.story-art { font-size: clamp(70px, 11vw, 110px); line-height: 1.15; text-align: center; animation: floaty 3s ease-in-out infinite; }
.story-art.small { font-size: 80px; }
.story-text { margin: 0; font-family: var(--read); font-size: clamp(30px, 4.4vw, 46px); text-align: center; line-height: 1.5; }
.story-text .w { font-family: inherit; padding: 0 6px; border-radius: 12px; transition: background .15s, transform .15s; }
.story-text .w.lit { background: var(--yellow); transform: scale(1.1); }
.story-nav { display: flex; gap: 18px; align-items: center; }
.story-nav .round-btn { width: 72px; height: 72px; font-size: 30px; background: #f3efff; }
.story-q { display: grid; justify-items: center; gap: 16px; }

/* ---------- aventura ---------- */
.adventure { max-width: 1180px; margin: 0 auto; padding-bottom: 100px; }
.week-strip { display: flex; gap: 10px; overflow-x: auto; padding: 8px 4px 16px; scrollbar-width: none; }
.week-strip::-webkit-scrollbar { display: none; }
.week-chip { flex: none; width: 60px; height: 60px; border-radius: 50%; background: #fff; font-size: 24px; font-weight: 800; color: var(--tint); box-shadow: 0 5px 0 rgba(42, 27, 92, .15); }
.week-chip.on { background: var(--tint); color: #fff; transform: scale(1.15); }
.week-chip.done { background: #fff6cc; }
.island { position: relative; border-radius: 44px; padding: 22px 26px; background: linear-gradient(170deg, var(--tint), color-mix(in srgb, var(--tint) 60%, #1b0f4a)); color: #fff; box-shadow: var(--shadow); overflow: hidden; animation: popIn .45s backwards; }
.island-head h2 { margin: 6px 0 0; font-size: clamp(30px, 4.4vw, 46px); line-height: 1.05; }
.island-head p { margin: 4px 0 0; font-size: 20px; opacity: .95; }
.path { position: relative; height: clamp(300px, 46vh, 420px); }
.path svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.day-stone {
  position: absolute; transform: translate(-50%, -50%); width: clamp(92px, 12vw, 120px); aspect-ratio: 1; border-radius: 50%;
  background: #fff; color: var(--tint); display: grid; place-items: center; align-content: center; box-shadow: 0 9px 0 rgba(0, 0, 0, .2); transition: transform .15s;
}
.day-stone span { font-size: clamp(40px, 5vw, 52px); font-weight: 800; line-height: 1; }
.day-stone small { font-size: 14px; font-weight: 800; color: var(--ink-soft); }
.day-stone:active { transform: translate(-50%, -50%) scale(.9); }
.day-stone.done { background: #fff6cc; }
.day-stone.now { animation: stonePulse 1.4s ease-in-out infinite; box-shadow: 0 0 0 8px rgba(255, 255, 255, .5), 0 9px 0 rgba(0, 0, 0, .2); }
@keyframes stonePulse { 50% { transform: translate(-50%, -50%) scale(1.1); } }
.treasure { position: absolute; right: 2%; top: 4%; font-size: 64px; animation: floaty 2.5s ease-in-out infinite; }
.lesson-intro { width: min(760px, 100%); border-radius: 40px; padding: 30px; background: #fff; box-shadow: var(--shadow); border-top: 16px solid var(--tint); text-align: center; animation: popIn .45s backwards; }
.lesson-intro .tag { background: color-mix(in srgb, var(--tint) 20%, #fff); color: var(--ink); }
.lesson-intro h2 { font-size: clamp(32px, 5vw, 48px); margin: 10px 0 0; line-height: 1.05; }
.lesson-intro p { font-size: 21px; color: var(--ink-soft); margin: 6px 0 14px; }
.steps { list-style: none; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 0 0 22px; }
.steps li { display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 20px; background: #f3efff; font-size: 19px; font-weight: 700; animation: popIn .4s backwards; }
.steps li span { font-size: 28px; }
.adult-tip { font-size: 16px !important; margin-top: 18px !important; }
.step-toast { position: fixed; z-index: 60; left: 50%; top: 40%; transform: translate(-50%, -50%); padding: 22px 44px; border-radius: 40px; background: var(--yellow); color: var(--ink); font-size: 36px; font-weight: 800; box-shadow: 0 8px 0 #d99a00, 0 20px 40px rgba(0, 0, 0, .2); animation: toastIn .4s backwards; }

/* ---------- álbum ---------- */
.album { max-width: 1100px; margin: 0 auto; padding-bottom: 100px; }
.album-head { background: #fff; border-radius: 32px; padding: 20px 26px; box-shadow: var(--shadow); margin-bottom: 20px; }
.album-head h2 { margin: 0; font-size: 34px; color: var(--purple); }
.album-head p { margin: 4px 0 12px; font-size: 20px; }
.meter { height: 18px; border-radius: 10px; background: #efeaff; overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 10px; min-width: 10px; }
.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 16px; }
.sticker { aspect-ratio: 1; border-radius: 28px; background: #fff; border: 6px solid var(--tint); font-size: 64px; display: grid; place-items: center; box-shadow: var(--shadow); transform: rotate(var(--r)); animation: popIn .4s backwards; }
.sticker.jiggle { animation: wiggle .6s; }
.sticker.locked { background: rgba(255, 255, 255, .45); border: 5px dashed rgba(255, 255, 255, .9); color: rgba(255, 255, 255, .95); font-size: 46px; font-weight: 800; box-shadow: none; }

/* ---------- adulto ---------- */
.adult { max-width: 980px; margin: 0 auto; display: grid; gap: 18px; padding-bottom: 120px; -webkit-user-select: text; user-select: text; }
.panel { background: #fff; border-radius: 28px; padding: 22px 26px; box-shadow: var(--shadow); font-size: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 30px; }
.panel h3 { margin: 6px 0 10px; font-size: 24px; color: var(--purple); }
.muted { color: var(--ink-soft); font-size: 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; }
.stats div { background: #f6f3ff; border-radius: 20px; padding: 12px; text-align: center; }
.stats strong { display: block; font-size: 34px; color: var(--purple); }
.plays, .kids, .tips { padding: 0; list-style: none; margin: 0; display: grid; gap: 8px; }
.plays li, .kids li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #faf8ff; border-radius: 14px; }
.plays li span, .kids li span { font-size: 26px; }
.plays b { margin-left: auto; }
.kids small { color: var(--ink-soft); }
.tips li { line-height: 1.45; padding-left: 26px; position: relative; }
.tips li::before { content: '✦'; position: absolute; left: 4px; color: var(--pink); }
.checks { display: grid; gap: 8px; margin-bottom: 14px; }
.checks label, .switch { display: flex; gap: 12px; align-items: center; font-size: 18px; padding: 6px 0; }
.checks input, .switch input { width: 26px; height: 26px; accent-color: var(--purple); }
.range { display: grid; gap: 6px; padding: 8px 0; }
.range input { accent-color: var(--purple); width: 100%; }
textarea { width: 100%; min-height: 120px; border: 3px solid #e4dcff; border-radius: 18px; padding: 12px 14px; font-size: 18px; resize: vertical; margin-bottom: 10px; color: var(--ink); }
.materials { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.material { display: flex; gap: 12px; align-items: center; padding: 12px 16px; background: #faf8ff; border-radius: 18px; text-decoration: none; color: var(--ink); border: 3px solid #efeaff; }
.material span { font-size: 34px; }
.material strong { display: block; }
.material small { color: var(--ink-soft); }
.link { text-decoration: underline; font-size: 16px; margin-left: auto; }
.link.danger { color: #d33; }
.gate { text-align: center; }
.gate-opts { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.gate-opts .chip { min-width: 96px; }

/* ---------- mascote ---------- */
.mascot { position: fixed; z-index: 30; left: max(10px, env(safe-area-inset-left)); bottom: calc(6px + env(safe-area-inset-bottom)); width: 104px; cursor: pointer; animation: floaty 3s ease-in-out infinite; }
.piscale { width: 104px; height: 104px; overflow: visible; filter: drop-shadow(0 8px 10px rgba(76, 49, 201, .3)); }
.piscale .halo { animation: halo 2.4s ease-in-out infinite; transform-origin: 60px 66px; }
@keyframes halo { 50% { opacity: .5; transform: scale(.9); } }
.piscale .wl { transform-origin: 46px 52px; animation: flap .35s ease-in-out infinite alternate; }
.piscale .wr { transform-origin: 74px 52px; animation: flap .35s ease-in-out infinite alternate-reverse; }
@keyframes flap { to { transform: rotate(-18deg) scaleY(.75); } }
.piscale .lamp { animation: lamp 1.6s ease-in-out infinite; }
@keyframes lamp { 0%, 100% { fill: #ffd23f; filter: drop-shadow(0 0 6px #fff36b); } 50% { fill: #fff8c4; filter: drop-shadow(0 0 16px #ffe600); } }
.piscale .eyes { animation: blink 4.5s infinite; transform-origin: 60px 57px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
.mascot.talking .mouth { animation: talk .22s ease-in-out infinite alternate; transform-origin: 60px 74px; }
@keyframes talk { to { transform: scaleY(1.9); } }
.mascot.jump { animation: jump .7s; }
@keyframes jump { 30% { transform: translateY(-50px) rotate(-12deg); } 60% { transform: translateY(0) rotate(8deg); } }
.bubble#bubble {
  position: absolute; left: 92px; bottom: 64px; width: max-content; max-width: min(440px, 70vw); padding: 12px 20px; border-radius: 24px 24px 24px 6px;
  background: #fff; font-size: clamp(18px, 2.4vw, 24px); font-weight: 700; line-height: 1.2; box-shadow: 0 6px 18px rgba(42, 27, 92, .2);
  opacity: 0; transform: scale(.6) translateY(10px); transform-origin: left bottom; transition: .25s; pointer-events: none;
}
.mascot.show-bubble .bubble#bubble { opacity: 1; transform: none; }

/* ---------- celebração ---------- */
#confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 80; pointer-events: none; display: none; }
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(42, 27, 92, .45); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.celebrate-card { position: relative; width: min(560px, 100%); text-align: center; background: #fff; border-radius: 44px; padding: 34px 24px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); animation: popIn .5s backwards; overflow: hidden; }
.burst { position: absolute; inset: -50%; background: repeating-conic-gradient(from 0deg, #fff6cc 0 10deg, #fff 10deg 20deg); animation: spin 20s linear infinite; z-index: 0; }
.celebrate-card > *:not(.burst) { position: relative; z-index: 1; }
.celebrate-card h2 { margin: 0; font-size: clamp(38px, 6vw, 54px); color: var(--purple); }
.big-stars { display: flex; justify-content: center; gap: 8px; margin: 6px 0; }
.big-stars span { font-size: clamp(64px, 10vw, 90px); filter: grayscale(1) opacity(.25); animation: starIn .5s backwards; }
.big-stars span.on { filter: drop-shadow(0 6px 0 rgba(217, 154, 0, .6)); }
@keyframes starIn { from { transform: scale(0) rotate(-120deg); } 70% { transform: scale(1.3) rotate(10deg); } to { transform: none; } }
.new-sticker { display: grid; justify-items: center; }
.sticker-pop { font-size: 96px; animation: popIn .6s 1.2s backwards, floaty 2s 2s ease-in-out infinite; }
.new-sticker p, .hint { font-size: 22px; font-weight: 700; margin: 4px 0; }
.sparkle { position: fixed; z-index: 90; pointer-events: none; font-size: 26px; transform: translate(-50%, -50%); animation: sparkle .9s ease-out forwards; }
@keyframes sparkle { to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3); opacity: 0; } }
.flying-star { position: fixed; z-index: 95; font-size: 54px; transform-origin: center; margin: -27px 0 0 -27px; transition: transform .7s cubic-bezier(.5, -0.3, .7, 1), opacity .7s; pointer-events: none; }

/* ---------- telas menores (tablet em pé, celular) ---------- */
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .adventure-card { grid-row: auto; min-height: 260px; }
  .abc-layout { grid-template-columns: 1fr; }
  .memory-grid.n12 { grid-template-columns: repeat(4, minmax(70px, 130px)); }
  .abc-show { min-height: 0; order: -1; }
  .trace-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .trace-side { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
  .trace-side.buttons .big-btn { width: auto; }
  .trace-pad { width: min(78vw, 46vh); }
  .palette { grid-template-columns: repeat(6, 44px); }
  .swatch { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  :root { --top: 66px; --radius: 22px; }
  .round-btn { width: 46px; height: 46px; font-size: 22px; }
  .avatar-btn { width: 50px; height: 50px; font-size: 28px; }
  .star-pill { height: 44px; font-size: 21px; padding: 0 12px 0 8px; }
  .topbar { gap: 8px; }
  .home-row { grid-template-columns: 1fr; }
  .worlds { gap: 12px; }
  .world-card { min-height: 130px; }
  .option { min-width: 130px; min-height: 130px; }
  .options.big .option { min-width: 150px; min-height: 150px; }
  .game-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-emoji { width: 80px; height: 80px; font-size: 46px; }
  .game-card strong { font-size: 19px; }
  .game-card small { display: none; }
  .tile { min-width: 92px; height: 84px; font-size: 38px; }
  .tile.letter { min-width: 58px; height: 68px; font-size: 32px; }
  .slot { min-width: 84px; height: 78px; font-size: 38px; }
  .slots.letters .slot { min-width: 48px; height: 64px; font-size: 32px; }
  .memory-grid, .memory-grid.n8, .memory-grid.n12 { grid-template-columns: repeat(3, 1fr); width: 100%; }
  .mascot, .piscale { width: 80px; height: 80px; }
  .bubble#bubble { left: 70px; bottom: 50px; }
  .stats strong { font-size: 26px; }
  .drum { width: 150px; height: 150px; font-size: 70px; }
  .trace-side .prompt-card { padding: 6px 18px; grid-auto-flow: column; align-items: center; gap: 10px; }
  .trace-side .prompt-card .emoji { font-size: 44px; }
  .trace-side .prompt-card strong { font-size: 26px; }
  .palette { grid-template-columns: repeat(6, 38px); gap: 8px; }
  .swatch { width: 38px; height: 38px; }
  .trace-pad { width: min(86vw, 44vh); }
  .trace-side.buttons .big-btn { min-height: 56px; font-size: 20px; padding: 0 20px; }
}
@media (max-height: 640px) and (orientation: landscape) {
  .stage { padding-bottom: 20px; gap: 10px; }
  .prompt-card .emoji, .option .emoji { font-size: 64px; }
  .option { min-height: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .soap { animation: none; bottom: auto; top: calc(10% + var(--size)); }
  .balloon { animation: none; bottom: 30%; }
}
.abc-done { grid-column: 1 / -1; display: flex; justify-content: center; min-height: 0; }
.abc-done .big-btn { animation: popIn .4s backwards, pulse 1.8s .4s ease-in-out infinite; }

/* ---------- login e escolha da criança ---------- */
.login-card { text-align: center; display: grid; justify-items: center; gap: 6px; }
.login-logo { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 60px; background: linear-gradient(135deg, #8f73ff, #4b9dff); box-shadow: var(--shadow); animation: floaty 3s ease-in-out infinite; }
.google-btn { min-height: 44px; margin: 10px 0 4px; display: flex; justify-content: center; }
.setup-note code { background: #f3efff; padding: 2px 6px; border-radius: 6px; }
.profile-card.last { outline: 5px solid var(--yellow); }
.profile-card.last::after { content: 'Última vez'; position: absolute; top: -12px; background: var(--yellow); color: var(--ink); font-size: 14px; font-weight: 800; padding: 2px 10px; border-radius: 12px; }
.profile-card { position: relative; }
.account-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 30px; background: rgba(255, 255, 255, .75); font-size: 16px; color: var(--ink-soft); }
.account-chip img, .account-chip > span:first-child { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.row.left { justify-content: space-between; align-items: center; }
.google-btn:empty, .login-msg:empty { display: none; }

/* ---------- PIN do adulto ---------- */
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 10px 0 4px; }
.pin-dots span { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--purple); transition: background .15s; }
.pin-dots span.on { background: var(--purple); }
.pin-msg { min-height: 24px; color: #d33; font-weight: 700; margin: 4px 0; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 76px); gap: 12px; justify-content: center; }
.pin-pad .chip { width: 76px; height: 68px; font-size: 30px; }
.gate .forgot, .gate .link { display: block; margin: 14px auto 0; }
.gate-input { display: block; margin: 14px auto; width: 170px; text-align: center; font-size: 34px; padding: 10px; border-radius: 18px; border: 4px solid #e4dcff; color: var(--ink); }
.gate-input:focus { border-color: var(--purple); outline: none; }

/* ---------- painel do adulto: novidades ---------- */
.stats { grid-template-columns: repeat(4, 1fr); }
.week-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 140px; align-items: end; margin-bottom: 10px; }
.week-bars > div { display: grid; grid-template-rows: 1fr auto auto; height: 100%; justify-items: center; font-size: 14px; }
.week-bars .bar { align-self: end; width: 70%; min-height: 4px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--purple), #9b7bff); }
.week-bars small { color: var(--ink-soft); }
.play-info { flex: 1; display: grid; gap: 2px; }
.play-info small { color: var(--ink-soft); }
.meter.thin { height: 10px; }
.meter.low span { background: linear-gradient(90deg, #ff9f6b, #ff6b6b); }
.panel select { font: inherit; font-size: 18px; padding: 8px 12px; border-radius: 14px; border: 3px solid #e4dcff; color: var(--ink); background: #fff; max-width: 100%; }
.row.left-wrap { justify-content: flex-start; }
.import-label { cursor: pointer; }
.backup-msg { min-height: 22px; }

/* ---------- sequência de dias e pausa ---------- */
.streak { display: inline-block; margin-left: 12px; vertical-align: middle; font-size: clamp(16px, 2.2vw, 22px); padding: 4px 14px; border-radius: 20px; background: var(--yellow); color: var(--ink); text-shadow: none; box-shadow: 0 4px 0 #d99a00; animation: pulse 2s ease-in-out infinite; }
.break-card .moon { font-size: 110px; animation: floaty 3s ease-in-out infinite; }
.break-card .burst { display: none; }
.break-gate:not(:empty) { margin-top: 16px; }
.break-gate .form-card { box-shadow: none; padding: 10px 0 0; animation: none; }

@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .pin-pad { grid-template-columns: repeat(3, 64px); }
  .pin-pad .chip { width: 64px; height: 58px; }
}
.plays .play-info b { margin-left: 0; }

/* ---------- links legais ---------- */
.legal-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: 16px; margin-top: 6px; }
.legal-links a { color: var(--purple); font-weight: 700; }
.legal-links.on-sky a { color: #fff; text-shadow: 0 2px 0 rgba(42, 27, 92, .25); }
.legal-links.on-sky span { color: #fff; }
.panel .legal-links { justify-content: flex-start; }
.consent { font-size: 15px; }
.consent a { color: var(--purple); font-weight: 700; }
