@font-face {
  font-family: 'Andika';
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/andika-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Andika';
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/andika-700.woff2') format('woff2');
}

/* Night treehouse theme. Reading surfaces (tiles, cards) stay cream with
   dark ink so text is always high-contrast. */
:root {
  --night-1: #140c22;
  --night-2: #221338;
  --night-3: #2f1a4d;
  --lilac: #c9a7ff;
  --purple: #8b5cf6;
  --purple-deep: #6d3fd8;
  --gold: #ffd580;
  --pink: #f4a6c1;
  --leaf: #7ed49a;
  --cream: #fff6ea;
  --card: #fff6ea;
  --ink: #2a1f3d;
  --ink-2: #5a5068;
  --line: #e6dccd;
  --vowel: #ffe7a8;
  --vowel-edge: #d8b35a;
  --accent: #6d3fd8;
  --accent-soft: #ece3ff;
  --good-soft: #e2f4e7;
  --warn-soft: #fff1cf;
  --bad-soft: #fde7e4;
  --radius: 18px;
  --shadow: 0 2px 0 rgba(0, 0, 0, 0.15), 0 8px 22px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: radial-gradient(ellipse at 50% 0%, var(--night-3) 0%, var(--night-2) 45%, var(--night-1) 100%) fixed;
  background-color: var(--night-1);
  color: var(--cream);
  font-family: 'Andika', 'Trebuchet MS', system-ui, sans-serif;
  font-size: 20px;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
input, select, textarea { user-select: text; -webkit-user-select: text; }

#sky { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#sky svg { width: 100%; height: 100%; display: block; }
#sky .tw { animation: twinkle 3.5s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: 0.15; } to { opacity: 0.95; } }

#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}

h1, h2, h3 { margin: 0 0 12px; line-height: 1.2; }
[tabindex="-1"]:focus { outline: none; }
h1 { font-size: 34px; }
h2 { font-size: 26px; }
h3 { font-size: 21px; }
p { margin: 0 0 12px; }
.title { color: var(--gold); text-shadow: 0 0 18px rgba(255, 213, 128, 0.4); }
.muted { color: rgba(255, 246, 234, 0.72); }
.card .muted { color: var(--ink-2); }
.small { font-size: 16px; }
.center { text-align: center; }
.spacer { flex: 1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }

button {
  font: inherit;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 22px;
  min-height: 56px;
  cursor: pointer;
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow);
  touch-action: manipulation;
}
button:active { transform: translateY(1px); }
button:disabled { opacity: 0.45; cursor: default; }
button.primary { background: var(--accent); color: #fff; font-weight: 700; }
button.big { font-size: 30px; padding: 24px 40px; min-height: 96px; border-radius: 28px; }
button.link { background: none; box-shadow: none; color: var(--lilac); padding: 8px 12px; min-height: 44px; }
.card button.link { color: var(--accent); }
button.quiet { background: transparent; box-shadow: none; color: var(--cream); opacity: 0.85; }
.card button.quiet { color: var(--ink-2); }

.btn-play, .btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.btn-play span, .btn-soft span { display: inline-flex; }
.btn-play {
  font-size: 34px; font-weight: 700; padding: 20px 56px; border-radius: 28px; color: #fff;
  background: linear-gradient(180deg, #a57bff, var(--purple-deep));
  box-shadow: 0 6px 0 #4b2a9a, 0 0 30px rgba(165, 123, 255, 0.55);
}
.btn-soft {
  font-size: 24px; font-weight: 700; padding: 14px 28px; color: var(--cream);
  background: rgba(255, 255, 255, 0.12); border: 2px solid rgba(255, 255, 255, 0.24); box-shadow: none;
}
.btn-soft.small { font-size: 18px; padding: 8px 18px; min-height: 48px; }

/* Cards: cream surfaces with dark ink (parent screens, setup) */
.card {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 18px; }
input, select, textarea {
  font: inherit;
  width: 100%;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.field { margin-bottom: 16px; }
.hint { font-size: 15px; color: var(--ink-2); margin-top: 4px; font-weight: 400; }
.hint-light { color: rgba(255, 246, 234, 0.75); font-size: 18px; }

.topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.topbar h2 { margin: 0; flex: 1; color: var(--cream); }

/* Leaves counter */
.leaves-pill {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1); border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px; padding: 6px 16px 6px 10px;
  font-size: 26px; font-weight: 700; color: var(--cream);
}
.leaves-pill span { display: inline-flex; }
.leaves-pill.pop { animation: pop 0.45s ease-out; }

/* Speech bubble */
.bubble {
  position: relative; background: var(--cream); color: var(--ink); font-size: 22px;
  padding: 14px 20px; border-radius: 22px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* Home */
.canopy { position: fixed; left: 0; right: 0; top: 0; height: 130px; z-index: 0; pointer-events: none; }
.canopy svg { width: 100%; height: 100%; display: block; }
.home { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; padding-top: 90px; padding-bottom: 40px; }
.home .title { font-size: 52px; margin: 0; }
.home-slothy { position: relative; display: flex; align-items: center; justify-content: center; background: none; box-shadow: none; padding: 0; min-height: 0; color: inherit; }
.slothy-hang svg { display: block; width: 100%; height: auto; }
.home-slothy .slothy-hang { width: min(290px, 60vw, 30vh); }
.home-slothy .bubble { position: absolute; left: 100%; top: 28%; margin-left: -20px; width: max-content; max-width: min(320px, calc(50vw - 170px)); text-align: left; }
.home-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 8px; }
.grownups { position: absolute; left: 12px; top: 18px; z-index: 3; font-size: 16px; min-height: 44px; padding: 8px 14px;
  background: rgba(20, 12, 34, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 999px; box-shadow: none; color: rgba(255, 246, 234, 0.8); }

/* Game */
.game { flex: 1; display: flex; flex-direction: column; gap: 16px; position: relative; }
.game-top { display: flex; align-items: center; gap: 12px; min-height: 80px; }
.game-top .leaves-pill { position: static; }
.vine-wrap { flex: 1; display: flex; justify-content: center; }
.vine-wrap svg { width: min(560px, 100%); height: auto; }
.hear { width: 76px; height: 76px; min-height: 76px; border-radius: 50%; padding: 0; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.14); border: 2px solid rgba(255, 255, 255, 0.25); box-shadow: none; }
.stop { font-size: 18px; min-height: 52px; padding: 8px 16px; background: none; box-shadow: none; color: rgba(255, 246, 234, 0.6); }
.vine-wrap svg { min-width: 160px; }

.slots { display: flex; justify-content: center; gap: 16px; margin-top: clamp(8px, 6vh, 90px); }
.slot, .tile {
  font-size: clamp(64px, 6.5vw, 88px); font-weight: 700; min-width: clamp(110px, 11vw, 150px); height: clamp(128px, 13vw, 168px); line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 14px;
  border-radius: 22px; background: var(--cream); color: var(--ink); border: 3px solid transparent;
  box-shadow: 0 6px 0 #c9b9a3, 0 10px 24px rgba(0, 0, 0, 0.35);
}
.slot.vowel, .tile.vowel { background: var(--vowel); box-shadow: 0 6px 0 var(--vowel-edge), 0 10px 24px rgba(0, 0, 0, 0.35); }
.slot.armed { border: 4px dashed var(--lilac); }
.slot.picked { outline: 5px solid var(--purple); }
.slot, .tile { position: relative; }
.slot.glow, .tile.glow { outline: 6px solid #fff; box-shadow: 0 0 0 14px rgba(139, 92, 246, 0.7); animation: glow 1s ease-in-out infinite alternate; }
.slot.glow::after { content: ''; position: absolute; left: 50%; top: -46px; margin-left: -16px; border: 16px solid transparent; border-top: 22px solid #fff; animation: bounce 0.8s ease-in-out infinite alternate; }
.slot.sweep { outline: 6px solid var(--lilac); transform: translateY(-8px); transition: transform 0.2s; }
@keyframes bounce { from { transform: translateY(0); } to { transform: translateY(8px); } }
.slot.changed { animation: pop 0.45s ease-out; outline: 5px solid var(--leaf); }
.slot.nudge, .nudge { animation: nudge 0.35s ease-in-out; }
.tile.selected { outline: 5px solid var(--purple); transform: translateY(-12px); }
.tile.used { visibility: hidden; }
.bank { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: auto; padding-bottom: 16px; }
.bank .tile { min-width: 108px; height: 124px; font-size: 64px; }

/* Tricky words: heart-word card, Find cards, Spell boxes */
.tricky-card { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--cream); color: var(--ink);
  border-radius: 26px; padding: 14px 28px 20px; box-shadow: 0 6px 0 #c9b9a3, 0 10px 24px rgba(0, 0, 0, 0.35); min-width: min(360px, 86vw); }
.tricky-tag { font-size: 18px; font-weight: 700; color: var(--ink-2); }
.heart-word { display: flex; gap: 2px; font-size: 56px; font-weight: 700; line-height: 1; padding-top: 30px; }
.heart-word.big { font-size: clamp(64px, 9vw, 104px); padding-top: 38px; }
.heart-word span { position: relative; }
.heart-word .hl { color: #b8246b; }
.heart-word .hl::before { content: '\2665'; position: absolute; left: 50%; top: -0.42em; transform: translateX(-50%); font-size: 0.34em; color: #e0457b; }
.tricky-ok { font-size: 30px; }
.find-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: min(560px, 100%); }
.find-card { font-size: clamp(40px, 6vw, 60px); font-weight: 700; min-height: 104px; padding: 8px 12px; border-radius: 22px;
  background: var(--cream); color: var(--ink); border: 3px solid transparent; box-shadow: 0 6px 0 #c9b9a3, 0 10px 24px rgba(0, 0, 0, 0.35); }
.find-card.dim { opacity: 0.45; }
.find-card.right { outline: 6px solid var(--leaf); animation: pop 0.45s ease-out; }
.find-card.glow { outline: 6px solid #fff; animation: glow 1s ease-in-out infinite alternate; }
.spell-boxes { display: flex; gap: 10px; }
.spell-box { width: clamp(56px, 7vw, 80px); height: clamp(72px, 9vw, 100px); border-radius: 14px; border: 4px dashed var(--line);
  display: inline-flex; align-items: center; justify-content: center; font-size: clamp(44px, 6vw, 64px); font-weight: 700; }
.spell-box.filled { border: 4px solid var(--leaf); background: #fff; animation: pop 0.3s ease-out; }
.tricky-card .peek { margin-top: 4px; background: var(--accent-soft); color: var(--accent); border: 2px solid var(--lilac); box-shadow: none; }
/* b or d */
.bd-word { display: flex; align-items: center; gap: 4px; font-size: clamp(64px, 9vw, 104px); font-weight: 700; line-height: 1; }
.bd-gap { width: clamp(64px, 8vw, 92px); height: clamp(84px, 11vw, 120px); font-size: inherit; }
.find-cards.two { width: min(480px, 100%); }
.bd-tile { min-width: 132px; }
.bed-help { display: flex; align-items: flex-end; font-size: 48px; font-weight: 700; line-height: 1; padding: 4px 10px 8px;
  border-bottom: 8px solid var(--pink); border-radius: 4px; animation: pop 0.4s ease-out; }
.bed-help .bed-b, .bed-help .bed-d { color: var(--purple-deep); font-size: 60px; }

.buddy { display: flex; align-items: flex-end; gap: 8px; min-height: 150px; }
.buddy .slothy-hang { width: 150px; flex: none; }
.game-bubble { max-width: 420px; margin-bottom: 70px; visibility: hidden; }
.game-bubble.show { visibility: visible; animation: pop 0.3s ease-out; }

@keyframes glow { from { box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.35); } to { box-shadow: 0 0 0 16px rgba(139, 92, 246, 0.8); } }
@keyframes pop { 0% { transform: scale(0.85); } 70% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }

/* Done */
.done-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.done-screen .title { font-size: 46px; }
.munch { width: min(300px, 60vw); animation: pop 0.6s ease-out; }
.munch svg { width: 100%; height: auto; display: block; }
.earned { font-size: 28px; margin: 0; }
.earned b { color: var(--leaf); }
.done-actions { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* Treehouse */
.th-top { display: flex; align-items: center; gap: 16px; }
.th-top .title { flex: 1; margin: 0; }
.th-top .leaves-pill { position: static; }
.th-layout { flex: 1; display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; }
.th-scene { flex: 1; min-width: 0; }
.th-scene svg { width: 100%; height: auto; display: block; max-height: calc(100vh - 110px); }
.th-scene .room { cursor: pointer; }
.th-scene .room-target { stroke: var(--gold); stroke-width: 4; stroke-dasharray: 10 8; animation: dash 1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.tray { width: 270px; flex: none; background: #1b1030; border: 2px solid rgba(255, 255, 255, 0.14); border-radius: 22px;
  padding: 12px; display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 110px); overflow-y: auto; }
.tray h3 { color: var(--gold); margin: 2px 4px 4px; }
.tray-hint { color: var(--gold); font-size: 17px; margin: 0 4px 4px; }
.item { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 56px; padding: 6px 10px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.08); color: var(--cream); box-shadow: none; font-size: 18px; }
.item .item-icon { display: inline-flex; flex: none; }
.item .item-name { flex: 1; }
.item .price { display: inline-flex; align-items: center; gap: 4px; color: var(--leaf); font-weight: 700; }
.item.owned .price { color: var(--lilac); font-weight: 400; font-size: 16px; }
.item.moving { outline: 3px solid var(--gold); }
.tray .build-head { margin-top: 10px; }
.item.build:not(.owned) .item-name { font-weight: 700; }
.item.build.owned { opacity: 0.6; }

/* PIN pad */
.pin-dots { display: flex; gap: 14px; justify-content: center; margin: 12px 0 20px; }
.pin-dots span { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--cream); }
.pin-dots span.on { background: var(--cream); }
.pad { display: grid; grid-template-columns: repeat(3, 88px); gap: 12px; justify-content: center; }
.pad button { font-size: 30px; min-height: 76px; }

/* Parent */
.menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.menu button { text-align: left; padding: 20px; min-height: 110px; }
.menu button strong { display: block; font-size: 22px; margin-bottom: 4px; }
.menu button span { font-size: 16px; color: var(--ink-2); }

.timer { font-size: 88px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.errbtn { width: 100%; font-size: 36px; min-height: 160px; background: #fde7e4; color: #8a1f14; font-weight: 700; }
.bigword { font-size: 110px; font-weight: 700; text-align: center; padding: 40px 0; letter-spacing: 2px; }
.score3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.score3 button { min-height: 96px; font-size: 22px; font-weight: 700; }
.score3 .q { background: var(--good-soft); color: #1d5e33; }
.score3 .s { background: var(--warn-soft); color: #6b4a00; }
.score3 .m { background: var(--bad-soft); color: #8a1f14; }

.stat { font-size: 56px; font-weight: 700; line-height: 1; }
.stat-label { font-size: 16px; color: var(--ink-2); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.status.solid { background: var(--good-soft); color: #1d5e33; }
.status.slow { background: var(--warn-soft); color: #6b4a00; }
.status.notYet { background: var(--bad-soft); color: #8a1f14; }
.status.unchecked { background: #eeeeee; color: #545a66; }

table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-2); font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.week { display: flex; gap: 8px; }
.week div { flex: 1; text-align: center; font-size: 14px; color: var(--ink-2); }
.week i { display: block; height: 28px; border-radius: 8px; background: var(--line); margin-bottom: 4px; }
.week i.on { background: #2f8f4e; }

.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; font-size: 16px; }
.bar .track { height: 18px; background: #efe6d8; border-radius: 4px; overflow: hidden; }
.bar .fill { height: 100%; background: #2a78d6; border-radius: 0 4px 4px 0; }

.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--line); stroke-width: 1; }
.chart .gridline { stroke: #efe6d8; stroke-width: 1; }
.chart .series { stroke: #2a78d6; stroke-width: 2; fill: none; }
.chart .pt { fill: #2a78d6; stroke: #fff; stroke-width: 2; }
.chart text { fill: var(--ink-2); font-size: 13px; font-family: inherit; }
.chart .lbl { fill: var(--ink); font-weight: 700; }

.banner { padding: 12px 16px; border-radius: 12px; background: var(--warn-soft); color: #6b4a00; font-size: 16px; }
.banner.bad { background: var(--bad-soft); color: #8a1f14; }
.banner.ok { background: var(--good-soft); color: #1d5e33; }

/* Today's stars */
.day-stars { display: flex; gap: 18px; justify-content: center; }
.day-star { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 110px; text-align: center; color: rgba(255, 246, 234, 0.6);
  background: none; box-shadow: none; padding: 4px; min-height: 64px; font: inherit; border-radius: 14px; }
.day-star:active { background: rgba(255, 255, 255, 0.08); }
.day-star span { display: inline-flex; }
.day-star small { font-size: 14px; line-height: 1.2; }
.day-star.on { color: var(--gold); }
.day-star.on span { animation: pop 0.5s ease-out; }
.munch.small { width: 160px; }

/* Stop confirm */
.overlay { position: fixed; inset: 0; z-index: 10; background: rgba(10, 5, 20, 0.75); display: flex; align-items: center; justify-content: center; }
.overlay-card { background: var(--night-2); border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 28px; padding: 24px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; font-size: 26px; }
.overlay-card .slothy-hang.small { width: 130px; }

/* Shop items she is saving up for */
.item .item-name { display: flex; flex-direction: column; gap: 4px; }
.item.saving { opacity: 0.72; }
.save-bar { display: block; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.save-bar span { display: block; height: 100%; background: var(--leaf); }

/* Word check on her tablet: no red, no X */
.score3.neutral button { background: var(--card); color: var(--ink); }

/* Fluency timer: thumb-friendly on a phone */
.timer-screen { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: calc(100vh - 110px); }
.timer-screen .timer { font-size: 48px; }
.timer-screen .finish { width: 100%; font-size: 26px; min-height: 72px; }
.err-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.err-row .errbtn { min-height: 36vh; }
.err-row .undo { min-width: 110px; }

/* Progress headline */
.headline { display: flex; flex-direction: column; gap: 6px; font-size: 19px; font-weight: 700; }

/* Portrait tablet and phones */
@media (max-width: 900px) {
  .th-layout { flex-direction: column; align-items: stretch; }
  .tray { width: auto; max-height: none; }
  .home-slothy .bubble { position: static; margin: 8px 0 0; white-space: normal; width: auto; max-width: min(90vw, 480px); text-align: center; }
  .home-slothy { flex-direction: column; }
}
@media (max-width: 600px) {
  .slot, .tile { font-size: 48px; min-width: 76px; height: 100px; }
  .bank .tile { min-width: 70px; height: 92px; font-size: 44px; }
  .home .title { font-size: 36px; }
  .bigword { font-size: 72px; }
  .timer { font-size: 64px; }
  .pad { grid-template-columns: repeat(3, 76px); }
  .card { padding: 14px; }
  th, td { padding: 8px 4px; }
  .status { font-size: 14px; }
  .buddy .slothy-hang { width: 100px; }
  .game-bubble { font-size: 18px; margin-bottom: 40px; }
}
@media (max-width: 600px), (max-height: 760px) {
  .home { gap: 10px; padding-top: 84px; padding-bottom: 16px; justify-content: flex-start; }
  /* Center when there's room, stay top-aligned (not clipped) when there isn't. */
  .home > :first-child { margin-top: auto; }
  .home > :last-child { margin-bottom: auto; }
  .home .title { font-size: 30px; }
  .home-slothy .slothy-hang { width: min(220px, 50vw, 24vh); }
  .home-slothy .bubble { font-size: 19px; padding: 10px 16px; }
  .home-actions { gap: 10px; margin-top: 4px; }
  .home-actions .btn-play { font-size: 26px; padding: 14px 36px; }
  .home-actions .btn-soft { font-size: 19px; padding: 10px 22px; }
  .day-star { width: 96px; }
  .day-star span svg { width: 34px; height: 34px; }
  .day-star small { font-size: 13px; }
}
@media (orientation: portrait) {
  .slots { margin-top: 12vh; }
  .bank { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}

/* Slothy's words (parent voice check) */
.voice-list { display: flex; flex-direction: column; margin-top: 10px; }
.voice-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.voice-row .voice-text { flex: 1; font-size: 20px; }
.play-clip { min-width: 52px; min-height: 48px; font-size: 20px; }
.voice-row .mark { font-size: 15px; white-space: nowrap; }
.voice-row .mark.on { color: #8a1f14; font-weight: 700; }
