:root {
  --ink: #3a2a14;
  --ink-soft: #7b6648;
  --honey: #ffc93c;
  --honey-2: #ffb703;
  --honey-deep: #e89a00;
  --honey-edge: #c27c00;
  --white: #ffffff;
  --ok: #34c37a;
  --ok-edge: #1f9a5a;
  --blue: #3aa8ff;
  --blue-edge: #1b7fd0;
  --sky: #9fd8ff;
  --sky-edge: #63b5ec;
  --focus: #2f6fed;
  --radius: 28px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --soft: cubic-bezier(.22, 1, .36, 1);
  --z: 1;
  --ui: "Fredoka", "Andika", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --letters: "Andika", "Fredoka", system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body {
  background: #bfe6ff;
  color: var(--ink);
  font-family: var(--ui);
  font-weight: 600;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior: none;
  touch-action: manipulation;
  overflow-x: hidden;
}
button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; max-width: 100%; height: auto; -webkit-user-drag: none; pointer-events: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 5px solid var(--focus); outline-offset: 4px; }

/* ---------- Painted scenes (crossfade between screens) ---------- */
#scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
#scene .layer {
  position: absolute; inset: -3%;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity .7s var(--soft), transform 1.6s var(--soft);
}
#scene .layer.on { opacity: 1; transform: scale(1); }
#scene [data-scene="sky"] { background-image: url(img/scene-sky.webp); background-color: #bfe6ff; }
#scene [data-scene="meadow"] { background-image: url(img/scene-meadow.webp); background-color: #bfe6ff; }
#scene [data-scene="hive"] { background-image: url(img/scene-hive.webp); background-color: #ffd877; }
#scene::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(80, 50, 0, .18));
}
#fx { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }

#app { max-width: 560px; margin: 0 auto; position: relative; }

/* ---------- Screens ---------- */
.screen {
  display: none;
  flex-direction: column;
  min-height: calc(100dvh / var(--z));
  padding: max(14px, env(safe-area-inset-top)) 16px max(18px, env(safe-area-inset-bottom));
  gap: 14px;
}
.screen.active { display: flex; }
.screen.enter > * { animation: rise .55s var(--spring) backwards; }
.screen.enter > *:nth-child(2) { animation-delay: .07s; }
.screen.enter > *:nth-child(3) { animation-delay: .14s; }
.screen.enter > *:nth-child(4) { animation-delay: .21s; }
.screen.enter > *:nth-child(5) { animation-delay: .28s; }
.screen.leave { display: flex; position: absolute; inset: 0; pointer-events: none; animation: leave .26s var(--soft) forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes leave { to { opacity: 0; transform: scale(.97); } }
.center-stack { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.dock { display: flex; flex-direction: column; gap: 14px; margin-top: auto; align-items: stretch; }
.dock.row, .dock .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Chunky 3D buttons with springy press ---------- */
.chunky {
  --face: var(--white); --edge: #e7d7b0; --ink-c: var(--ink);
  position: relative;
  min-height: 76px; padding: 12px 22px; border-radius: 26px;
  font-size: 1.3rem; font-weight: 700; color: var(--ink-c);
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0) 45%), var(--face);
  box-shadow: 0 8px 0 var(--edge), 0 14px 24px rgba(60, 35, 0, .18);
  transition: transform .18s var(--spring), box-shadow .18s var(--spring);
}
.chunky::before {
  content: ""; position: absolute; left: 16px; right: 16px; top: 7px; height: 10px; border-radius: 99px;
  background: rgba(255,255,255,.5); pointer-events: none;
}
.chunky:active { transform: translateY(6px) scale(.98); box-shadow: 0 2px 0 var(--edge), 0 6px 10px rgba(60,35,0,.15); }
.chunky.icon { display: grid; place-items: center; font-size: 2.1rem; }
.chunky.icon svg { width: 44px; height: 44px; fill: currentColor; }
.chunky.small { min-height: 62px; font-size: 1.7rem; }
.chunky.wide { width: 100%; }
.chunky.primary { --face: var(--honey); --edge: var(--honey-edge); }
.chunky.ok { --face: var(--ok); --edge: var(--ok-edge); --ink-c: #fff; }
.chunky.blue { --face: var(--blue); --edge: var(--blue-edge); --ink-c: #fff; }
.chunky.skyblue { --face: var(--sky); --edge: var(--sky-edge); }
.chunky.white { --face: var(--white); --edge: #e7d7b0; }
.chunky.danger { --face: #fff; --edge: #f3c1b0; --ink-c: #b84a2a; margin-top: 12px; }
.chunky.pop { animation: btnpop .5s var(--spring); }
@keyframes btnpop { 0% { transform: scale(.6); opacity: 0; } }

.round-btn {
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 1.45rem;
  background: rgba(255,255,255,.92); box-shadow: 0 5px 0 rgba(150,110,40,.25), 0 8px 16px rgba(60,35,0,.15);
  transition: transform .18s var(--spring);
}
.round-btn:active { transform: translateY(3px) scale(.94); }

.play-btn {
  width: 132px; height: 132px; border-radius: 50%; margin: 0 auto 8px; flex: none;
  display: grid; place-items: center; color: var(--ink); position: relative;
  background: radial-gradient(circle at 35% 30%, #fff3b8, var(--honey) 45%, var(--honey-2));
  box-shadow: 0 10px 0 var(--honey-edge), 0 22px 40px rgba(120, 70, 0, .35);
  animation: breathe 2.2s ease-in-out infinite;
}
.play-btn svg { width: 64px; height: 64px; fill: currentColor; margin-left: 8px; }
.play-btn::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 6px solid rgba(255,255,255,.75); animation: ripple 2.2s ease-out infinite; }
.play-btn:active { transform: translateY(6px) scale(.96); box-shadow: 0 3px 0 var(--honey-edge); }
@keyframes breathe { 50% { transform: scale(1.05); } }
@keyframes ripple { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }

/* ---------- Buzz the character ---------- */
.buzz-wrap { position: relative; width: min(46vw, 210px); }
.buzz-wrap.hero { width: min(66vw, 290px); }
.buzz-wrap.small { width: 92px; }
.buzz-wrap.avatar { width: 64px; flex: none; }
.buzz-wrap .buzz { width: 100%; filter: drop-shadow(0 10px 14px rgba(70, 40, 0, .2)); }

.logo { margin: 0; font-size: clamp(4rem, 22vw, 6rem); font-weight: 700; letter-spacing: .02em; line-height: 1; }
.logo span {
  display: inline-block; color: var(--honey);
  -webkit-text-stroke: 3px #8a4b00; paint-order: stroke fill;
  text-shadow: 0 6px 0 #8a4b00, 0 12px 20px rgba(80, 40, 0, .35);
  animation: letterhop 2.4s var(--spring) infinite;
}
.logo span:nth-child(2) { animation-delay: .12s; color: #ff9fce; }
.logo span:nth-child(3) { animation-delay: .24s; color: #8fd3ff; }
.logo span:nth-child(4) { animation-delay: .36s; color: #8be0a8; }
@keyframes letterhop { 0%, 70%, 100% { transform: translateY(0); } 80% { transform: translateY(-14px) rotate(-4deg); } }

/* Speech bubble: shows Buzz talking (dots) or the name it heard */
.bubble {
  position: relative; min-width: 110px; min-height: 66px; padding: 10px 26px;
  border-radius: 26px; background: #fff; box-shadow: 0 8px 22px rgba(60,35,0,.16);
  display: grid; place-items: center; font-size: 2.6rem; font-weight: 700;
  transition: opacity .3s, transform .35s var(--spring);
}
.bubble::after { content: ""; position: absolute; bottom: -12px; left: 50%; margin-left: -12px; border: 12px solid transparent; border-top-color: #fff; border-bottom: 0; }
.bubble.quiet { opacity: 0; transform: scale(.7); }
.bubble.name { animation: namepop .6s var(--spring); }
@keyframes namepop { 0% { transform: scale(.4) rotate(-8deg); } }
.talk-dots { display: flex; gap: 7px; }
.talk-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--honey-deep); animation: dot 1s ease-in-out infinite; }
.talk-dots i:nth-child(2) { animation-delay: .15s; } .talk-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-8px); opacity: .5; } }

/* Mic button with rings that follow the child's voice in real time */
.mic {
  --lvl: 0;
  position: relative; width: 132px; height: 132px; border-radius: 50%; margin: 0 auto; flex: none;
  font-size: 3.2rem; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #ffb3b3, #ff6b6b 55%, #f04d5c);
  box-shadow: 0 9px 0 #c63a48, 0 18px 30px rgba(160, 30, 40, .3);
  transition: transform .15s var(--spring);
}
.mic::before, .mic::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 6px solid rgba(255, 107, 107, .45);
  transform: scale(calc(1 + var(--lvl) * .5)); transition: transform .08s linear;
}
.mic::after { border-color: rgba(255, 201, 60, .7); transform: scale(calc(1 + var(--lvl) * .9)); }
.mic.idle { animation: breathe 1.8s ease-in-out infinite; }
.mic.on { background: radial-gradient(circle at 35% 30%, #c9f7da, #34c37a 55%, #1f9a5a); box-shadow: 0 9px 0 #17804a, 0 18px 30px rgba(20, 120, 60, .3); }
.mic.on::before { border-color: rgba(52, 195, 122, .5); }
.mic.muted { filter: saturate(.3) brightness(1.05); }
.mic:active { transform: translateY(5px) scale(.97); }
.mic.small { width: 96px; height: 96px; font-size: 2.3rem; }

/* ---------- Name ---------- */
.name-form { display: flex; gap: 10px; width: 100%; margin-top: 8px; }
.name-form input {
  flex: 1; min-width: 0; font-size: 1.9rem; padding: 12px 18px; border-radius: 22px; font-weight: 700;
  border: 4px solid #fff; background: rgba(255,255,255,.95); box-shadow: 0 6px 16px rgba(60,35,0,.15);
  user-select: text; -webkit-user-select: text;
}
.name-form .chunky { width: 78px; min-height: 66px; }
.dock .round-btn { margin: 0 auto; }

/* ---------- Likes ---------- */
.likes-head { display: flex; align-items: center; justify-content: space-between; }
.likes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.like {
  aspect-ratio: 1; border-radius: 26px; position: relative;
  background: rgba(255,255,255,.95); box-shadow: 0 7px 0 rgba(170,130,60,.3), 0 12px 20px rgba(60,35,0,.12);
  display: grid; place-items: center; font-size: 3rem;
  transition: transform .25s var(--spring), box-shadow .25s;
  animation: rise .5s var(--spring) backwards;
}
.like img { width: 84%; height: 84%; object-fit: contain; transition: transform .3s var(--spring); }
.like[aria-pressed="true"] { background: #fff3c4; box-shadow: 0 7px 0 var(--honey-edge), 0 0 0 5px var(--honey) inset, 0 14px 24px rgba(200,140,0,.3); transform: translateY(-4px); }
.like[aria-pressed="true"] img { transform: scale(1.1) rotate(-4deg); }
.like[aria-pressed="true"]::after {
  content: "✓"; position: absolute; top: -8px; right: -8px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ok); color: #fff; font-size: 1.2rem;
  box-shadow: 0 3px 0 var(--ok-edge); animation: namepop .4s var(--spring);
}
.like:active { transform: scale(.94); }

/* ---------- HUD ---------- */
.hud { display: flex; align-items: center; gap: 10px; }
.pill {
  display: flex; align-items: center; gap: 8px; height: 54px; padding: 0 16px 0 7px; border-radius: 99px;
  background: rgba(255,255,255,.92); box-shadow: 0 5px 0 rgba(150,110,40,.25), 0 8px 16px rgba(60,35,0,.12);
  font-size: 1.35rem; font-weight: 700; min-width: 0;
}
.pill img { width: 40px; height: 40px; }
.pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill.honey { margin-left: auto; padding: 0 16px; }
.pill.honey .jar { font-size: 1.6rem; display: inline-block; }
.pill.honey b { display: inline-block; }
.pill.honey.bump .jar, .pill.honey.bump b { animation: jar .6s var(--spring); }
@keyframes jar { 30% { transform: scale(1.45) rotate(-10deg); } }
.title { font-size: 1.4rem; font-weight: 700; flex: 1; text-align: center; }

/* ---------- Home ---------- */
.hive-card {
  border-radius: var(--radius); padding: 12px 10px 14px;
  background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 28px rgba(60,35,0,.15);
}
.hive { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 4px; }
.cell {
  width: 28px; height: 32px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: #f1e2bd; animation: rise .4s var(--spring) backwards;
}
.cell.new.b0 { background: #e9d29a; }
.cell.b1 { background: #ffe9a8; } .cell.b2 { background: #ffdc73; } .cell.b3 { background: #ffcd45; }
.cell.b4 { background: #f5b800; } .cell.b5 { background: linear-gradient(160deg, #ffd65a, #e09b00); }
.hive-meter { height: 12px; margin: 10px 8px 0; border-radius: 99px; background: #f1e2bd; overflow: hidden; }
#hive-fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--honey), var(--honey-deep)); transition: width 1s var(--soft); }

.modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#screen-home .buzz-wrap.hero { width: min(52vw, 230px); }
.mode-card {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 9px 0 var(--edge), 0 18px 30px rgba(60,35,0,.2);
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 50%), var(--face);
  transition: transform .2s var(--spring), box-shadow .2s var(--spring);
}
.mode-card img { width: 82%; filter: drop-shadow(0 8px 10px rgba(60,35,0,.2)); transition: transform .35s var(--spring); }
.mode-card:hover img, .mode-card:focus-visible img { transform: translateY(-6px) rotate(-3deg) scale(1.05); }
.mode-card:active { transform: translateY(7px) scale(.97); box-shadow: 0 2px 0 var(--edge), 0 6px 12px rgba(60,35,0,.15); }
.m-learn { --face: #bfe6ff; --edge: #6fb8ea; }
.m-build { --face: #d9cfff; --edge: #9f8ae8; }
.m-bee { --face: #ffe28a; --edge: var(--honey-edge); }
.dots { display: flex; gap: 5px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(58,42,20,.35); }
.mic-badge { position: absolute; top: -10px; right: -8px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 1.3rem; background: #ff6b6b; box-shadow: 0 4px 0 #c63a48; animation: breathe 1.8s ease-in-out infinite; }

/* ---------- Game ---------- */
.progress { flex: 1; height: 22px; border-radius: 99px; background: rgba(255,255,255,.75); box-shadow: inset 0 2px 4px rgba(120,80,0,.18); overflow: hidden; }
#progress-bar { position: relative; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(180deg, #ffd96b, var(--honey-2)); transition: width .6s var(--spring); }
#progress-bar i { position: absolute; left: 8px; right: 8px; top: 4px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.6); }

.stage {
  position: relative; border-radius: var(--radius); padding: 12px 14px 16px;
  background: rgba(255,255,255,.9); box-shadow: 0 12px 30px rgba(90,55,0,.2);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.pic { width: min(52vw, 230px); aspect-ratio: 1; display: grid; place-items: center; font-size: 6rem; }
.pic img { width: 100%; height: 100%; object-fit: contain; animation: picfloat 3.2s ease-in-out infinite; filter: drop-shadow(0 12px 14px rgba(70,40,0,.2)); }
.pic.enter > * { animation: picin .6s var(--spring) backwards, picfloat 3.2s ease-in-out .6s infinite; }
@keyframes picin { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } }
@keyframes picfloat { 50% { transform: translateY(-7px); } }
.pt-hint { font-size: 1.15rem; color: var(--ink-soft); }
.pt-hint.hidden { display: none; }
.audio-row { display: flex; gap: 14px; align-items: center; }
.audio-row .chunky { width: 96px; min-height: 68px; }
.audio-row .chunky.small { width: 72px; min-height: 60px; }

.slots { display: flex; justify-content: center; gap: 7px; min-height: 80px; flex-wrap: nowrap; }
.slot {
  width: min(58px, calc((min(100vw, 560px) - 32px) / var(--n, 1) - 7px));
  height: 74px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: var(--letters); font-size: 2.6rem; font-weight: 700;
  background: rgba(255,255,255,.65); border: 3px dashed rgba(200,140,40,.55);
  transition: transform .3s var(--spring), background .2s;
  animation: rise .45s var(--spring) backwards;
}
.slot .ghost { color: rgba(170,120,40,.35); }
.slot.next { border: 4px solid var(--honey-deep); background: rgba(255,255,255,.92); animation: nextpulse 1.2s ease-in-out infinite; }
@keyframes nextpulse { 50% { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(230,150,0,.3); } }
.slot.hearing { background: #fff; }
.slot.hearing::after { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 4px solid var(--honey); border-top-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.slot.filled {
  border: 0; color: var(--ink);
  background: linear-gradient(180deg, #fff6cf, #ffd75e);
  box-shadow: 0 6px 0 var(--honey-edge), 0 10px 16px rgba(160,100,0,.25);
  animation: land .55s var(--spring);
}
@keyframes land { 0% { transform: translateY(-46px) scale(1.4); opacity: .2; } 60% { transform: translateY(4px) scale(.94, 1.06); } }
.slot.lit { transform: translateY(-9px) scale(1.08); background: linear-gradient(180deg, #fff, #ffe48f); }
.slot.miss { animation: shake .45s ease; background: #ffe1d6; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }
.slots.done .slot { background: linear-gradient(180deg, #e0ffe9, #8fe4b0); box-shadow: 0 6px 0 var(--ok-edge); animation: wave .7s var(--spring) backwards; }
.slots.done .slot:nth-child(2) { animation-delay: .05s; } .slots.done .slot:nth-child(3) { animation-delay: .1s; }
.slots.done .slot:nth-child(4) { animation-delay: .15s; } .slots.done .slot:nth-child(5) { animation-delay: .2s; }
.slots.done .slot:nth-child(6) { animation-delay: .25s; } .slots.done .slot:nth-child(7) { animation-delay: .3s; }
@keyframes wave { 40% { transform: translateY(-16px) rotate(-4deg); } }

.word-big { font-family: var(--letters); font-size: clamp(2.6rem, 13vw, 3.6rem); font-weight: 700; letter-spacing: .06em; text-align: center; color: #fff; -webkit-text-stroke: 2px #8a4b00; paint-order: stroke fill; text-shadow: 0 5px 0 #8a4b00; }
.word-big span { display: inline-block; padding: 0 2px; transition: transform .25s var(--spring), color .2s; animation: rise .5s var(--spring) backwards; }
.word-big span.lit { transform: translateY(-12px) scale(1.2); color: var(--honey); }

.sentence { margin: 0; text-align: center; font-size: 1.45rem; line-height: 1.35; background: rgba(255,255,255,.9); border-radius: 20px; padding: 10px 14px; box-shadow: 0 6px 16px rgba(60,35,0,.12); animation: rise .5s var(--spring); }
.sentence:empty { display: none; }
.sentence b { background: var(--honey); border-radius: 8px; padding: 0 6px; }

.tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.tile {
  width: 64px; height: 70px; border-radius: 18px; position: relative;
  font-family: var(--letters); font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(180deg, #fff, #fff6dc); box-shadow: 0 7px 0 #e2c98b, 0 12px 18px rgba(80,50,0,.18);
  transition: transform .2s var(--spring), box-shadow .2s;
  animation: rise .45s var(--spring) backwards; touch-action: none;
}
.tile:active { transform: translateY(5px) scale(.96); box-shadow: 0 2px 0 #e2c98b; }
.tile.used { visibility: hidden; }
.tile.dragging { z-index: 40; box-shadow: 0 18px 30px rgba(80,50,0,.3); transition: none; }
.tile.nope { animation: shake .45s ease; background: #ffe1d6; }
.tile.hint { box-shadow: 0 7px 0 var(--honey-edge), 0 0 0 5px var(--honey), 0 12px 20px rgba(230,150,0,.4); animation: nextpulse 1s ease-in-out infinite; }

.listen-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; }

/* ---------- Done ---------- */
.stars { display: flex; gap: 6px; justify-content: center; min-height: 86px; }
.star { width: 78px; height: 78px; display: grid; place-items: center; font-size: 4.2rem; filter: drop-shadow(0 6px 8px rgba(160,100,0,.35)); }
.star.on { animation: starin .8s var(--spring) backwards; }
.star.off { opacity: .35; filter: grayscale(1); }
.star:nth-child(2) { margin-top: -18px; }
@keyframes starin { 0% { transform: scale(0) rotate(-180deg); } }
.done-words { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font-family: var(--letters); background: rgba(255,255,255,.95); border-radius: 99px; padding: 6px 15px; font-size: 1.25rem; font-weight: 700; box-shadow: 0 4px 0 #e7d7b0; animation: rise .45s var(--spring) backwards; }
.chip.ok { background: #dcf7e7; box-shadow: 0 4px 0 #9fdcb8; }

/* ---------- Parent ---------- */
.parent-body { display: flex; flex-direction: column; gap: 12px; }
.note { background: rgba(255,255,255,.95); border-radius: 18px; padding: 14px; margin: 0; line-height: 1.45; font-weight: 500; }
.parent-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.parent-row .chunky { min-height: 60px; font-size: 1.1rem; }
.toggle { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; background: rgba(255,255,255,.95); border-radius: 16px; padding: 10px 14px; }
.toggle input { width: 24px; height: 24px; accent-color: var(--honey-deep); }
.parent-body h3 { margin: 8px 0 0; font-size: 1.4rem; }
.legend { margin: 0; font-weight: 500; }
.word-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.word-list li { background: rgba(255,255,255,.95); border: 2px solid transparent; border-radius: 12px; padding: 8px 10px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.word-list .dots2 { color: var(--honey-deep); letter-spacing: 1px; font-size: .8rem; white-space: nowrap; }
.word-list .dots2 i { color: #eadfc4; font-style: normal; }
.word-list li.new { border-color: var(--honey); }

/* ---------- Responsive ---------- */
@media (max-width: 360px) {
  .slot { height: 60px; font-size: 2rem; }
  .tile { width: 54px; height: 60px; font-size: 2rem; }
  .mic { width: 112px; height: 112px; }
}
@media (max-height: 700px) {
  .pic { width: min(36vw, 150px); }
  .buzz-wrap.hero { width: min(44vw, 200px); }
  .chunky { min-height: 64px; }
  .mic { width: 104px; height: 104px; font-size: 2.6rem; }
}
@media (min-width: 760px) and (min-height: 760px) { :root { --z: 1.25; } #app { zoom: 1.25; } }
@media (min-width: 1280px) and (min-height: 860px) { :root { --z: 1.5; } #app { zoom: 1.5; } }

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