/* Giants on the Go — bright, hand-drawn feel. Fits phone → desktop: one column of screen height, only <main> scrolls. */
:root {
  --ink: #3b2a1a; --ink2: #6b5641; --paper: #fff8e7; --paper2: #fff1cc; --card: #ffffff;
  --sun: #ffd23f; --sky: #5ec8f2; --grass: #7bd389; --coral: #ff7a59; --grape: #a78bfa; --pink: #ff8fc7;
  --ok: #2fa84f; --okbg: #e3f8e6; --no: #e5533d; --nobg: #ffe9e4; --hl: #fff09a;
  --wob: 18px 6px 16px 7px / 7px 16px 6px 18px;
  --wob2: 24px 9px 22px 10px / 10px 22px 9px 24px;
  --gut: 16px;
  --read: clamp(19px, 1.1vw + 14px, 28px);
  font-family: 'Fredoka', 'Trebuchet MS', system-ui, sans-serif; color: var(--ink);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper) radial-gradient(circle at 1px 1px, #f4e3b6 1.2px, transparent 1.6px) 0 0 / 22px 22px; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
#app { height: 100%; }
.screen { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 14px var(--gut) 24px; }
.wrap.narrow { max-width: 620px; }
.center { text-align: center; } .center-h { text-align: center; margin: 10px 0 14px; font-size: 1.4rem; display: flex; gap: 10px; align-items: center; justify-content: center; }

/* top bar */
.bar { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px var(--gut); background: var(--sun); border-bottom: 3px solid var(--ink); min-height: 58px; }
.bar-title { flex: 1; min-width: 0; font-size: clamp(1.1rem, 2.2vw + .6rem, 1.6rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.bar-logo, .icon-btn { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border: 3px solid var(--ink); border-radius: var(--wob); background: #fff; font-size: 1.25rem; font-weight: 700; box-shadow: 0 3px 0 var(--ink); }
.icon-btn { cursor: pointer; } .icon-btn:active { transform: translateY(3px); box-shadow: none; }
.check-strip { flex: none; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: center; padding: 6px var(--gut); background: #2b2d42; color: #fff; font-size: .9rem; }
.check-strip form { display: flex; gap: 6px; } .check-strip input { width: 74px; font: inherit; padding: 4px 8px; border-radius: 8px; border: 0; }
.check-strip button { border: 0; border-radius: 8px; padding: 4px 12px; background: var(--sun); color: var(--ink); font-weight: 700; cursor: pointer; }

/* buttons */
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; padding: 10px 18px; border: 3px solid var(--ink); border-radius: var(--wob2);
  background: #fff; font-size: 1.15rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s, background .2s; text-align: center; line-height: 1.25; }
.btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn:disabled { cursor: default; }
.btn.primary { background: var(--grass); }
.btn.primary:disabled { background: #d9d4c7; color: #8b8170; border-color: #8b8170; box-shadow: 0 4px 0 #8b8170; }
.btn.ghost { background: #fffdf6; }
.btn.small { min-height: 46px; font-size: 1rem; padding: 6px 16px; }
.btn.big { min-height: 64px; font-size: 1.35rem; }
.btn.wide { width: 100%; }
.btn.danger { color: var(--no); }
.btn:focus-visible, .w:focus-visible { outline: 4px solid var(--sky); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row2 > :only-child { grid-column: 1 / -1; }
.stack { display: grid; gap: 12px; margin: 10px 0; }

/* cards */
.card { background: var(--card); border: 3px solid var(--ink); border-radius: var(--wob2); padding: 18px; box-shadow: 0 5px 0 rgba(59, 42, 26, .9); margin-bottom: 16px; }
.kicker { font-size: .95rem; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.sub { color: var(--ink2); margin-top: 6px; font-size: 1.05rem; }
.label { font-weight: 600; margin: 12px 0 6px; }
.tiny { font-size: .9rem; color: var(--ink2); margin-top: 8px; }
.hint { margin-top: 14px; display: inline-block; background: var(--paper2); border: 2px dashed var(--ink2); border-radius: 12px; padding: 6px 12px; font-size: 1rem; }
.grown { background: #e8f6fd; border: 2px dashed var(--sky); border-radius: 12px; padding: 8px 12px; margin-bottom: 10px; font-size: 1rem; }

/* home */
.hero-title { text-align: center; margin: 10px 0 18px; }
.logo-word { font-size: clamp(2.2rem, 6vw + 1rem, 3.6rem); font-weight: 700; line-height: 1; color: var(--coral); -webkit-text-stroke: 2px var(--ink); paint-order: stroke fill; text-shadow: 0 4px 0 var(--ink); transform: rotate(-2deg); }
.logo-word span { color: var(--sky); font-size: .6em; }
.hero-title p { margin-top: 10px; color: var(--ink2); font-size: 1.1rem; }
.btn.kid { justify-content: flex-start; text-align: left; min-height: 72px; background: #fff; }
.btn.kid small { display: block; font-weight: 500; color: var(--ink2); font-size: .95rem; }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--ink); display: inline-grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: var(--ink); }
.avatar.big { width: 56px; height: 56px; font-size: 1.6rem; }
.family-note { text-align: center; color: var(--ink2); margin: 10px 0 0; font-size: .95rem; }
.form h2 { font-size: 1.35rem; margin-bottom: 12px; }
.form input:not([type=checkbox]), .type-row input { width: 100%; font: inherit; font-size: 1.4rem; padding: 12px 14px; border: 3px solid var(--ink); border-radius: 14px; background: #fffdf6; margin-bottom: 8px; }
.form .row2 { margin-top: 14px; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 3px solid var(--ink); cursor: pointer; min-height: 44px; }
.swatch.on { outline: 4px solid var(--ink); outline-offset: 3px; }

/* map */
.who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.who > div { flex: 1; min-width: 0; } .who b { font-size: 1.3rem; display: block; } .who small { color: var(--ink2); font-size: 1rem; }
.card.next { background: linear-gradient(135deg, #fff6c2, #ffe3a3); text-align: center; }
.card.next h2 { font-size: clamp(1.4rem, 2vw + 1rem, 2rem); margin: 4px 0 14px; }
.card.next .btn { width: 100%; max-width: 420px; margin: 0 auto; }
.card.opening { width: 100%; display: flex; gap: 14px; align-items: center; text-align: left; cursor: pointer; font: inherit; background: #e8f6fd; }
.card.opening b { display: block; font-size: 1.2rem; } .card.opening small { color: var(--ink2); font-size: 1rem; } .ob-icon { font-size: 2rem; }
.weeks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.week { background: #fff; border: 3px solid var(--ink); border-radius: var(--wob); padding: 10px 12px 12px; }
.week.full { background: var(--okbg); }
.week h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.week h3 small { color: var(--ink2); font-weight: 500; font-size: .85rem; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day { position: relative; aspect-ratio: 1; min-height: 46px; border: 3px solid var(--ink); border-radius: 50%; background: #fff; font-weight: 700; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; padding: 0; box-shadow: 0 3px 0 var(--ink); }
.day i { position: absolute; right: -6px; top: -8px; font-style: normal; font-size: .85rem; }
.day.done { background: var(--grass); } .day.done i { color: #f5b800; font-size: 1.15rem; -webkit-text-stroke: 1px var(--ink); }
.day.now { background: var(--sun); animation: pulse 1.4s ease-in-out infinite; }
.day.open { background: #eef9ff; }
.day.locked { background: #efe9dc; color: #a2967f; border-color: #a2967f; box-shadow: 0 3px 0 #a2967f; }
.day.locked i { filter: grayscale(1); opacity: .8; }
.foot { margin-top: 18px; justify-items: center; }
@keyframes pulse { 50% { transform: scale(1.08); } }

/* day frame */
.steps { flex: none; display: flex; gap: 6px; padding: 8px var(--gut); background: var(--paper2); border-bottom: 2px solid #ead6a0; overflow: hidden; }
.pill { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 6px; border-radius: 999px; border: 2px solid #c9b78f; background: #fff; font-size: .9rem; color: var(--ink2); font-family: inherit; }
.pill i { font-style: normal; } .pill em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.past { background: var(--okbg); border-color: var(--ok); }
.pill.on { background: var(--sun); border-color: var(--ink); color: var(--ink); font-weight: 700; }
button.pill { cursor: pointer; }
@media (max-width: 560px) { .pill em { display: none; } .pill { font-size: 1rem; } .pill.on em { display: inline; } .pill.on { flex: 0 0 auto; padding: 4px 10px; } }
.foot-bar { flex: none; padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); background: var(--paper2); border-top: 3px solid var(--ink); }
.foot-bar > * { max-width: 760px; margin: 0 auto; }
.dots { display: flex; gap: 8px; justify-content: center; align-items: center; margin-top: 8px !important; font-size: .9rem; color: var(--ink2); }
.dots i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; }
.dots i.on { background: var(--coral); }
.dots span { margin-left: 6px; }

/* story page */
.page-wrap { min-height: 100%; display: grid; grid-template-rows: auto minmax(clamp(120px, 27vh, 440px), 1fr); gap: 12px; padding: 12px var(--gut); max-width: 1400px; margin: 0 auto; }
.page-wrap .page-text { order: -1; }   /* owner 11-03: on a tall screen the words come first, the picture below */
.art { margin: 0; border: 3px solid var(--ink); border-radius: var(--wob2); overflow: hidden; min-height: 0; position: relative; background: #fff; }
.art.has img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.art.ph { background: linear-gradient(135deg, hsl(var(--h) var(--s) 88%), hsl(calc(var(--h) + 30) var(--s) 92%)); }
.ph-inner { position: absolute; inset: 10px; border: 3px dashed hsl(var(--h) 45% 55%); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 10px; overflow: hidden; }
.ph-tag { background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 12px; font-size: .85rem; font-weight: 600; }
.ph-id { font-size: 1.05rem; letter-spacing: .02em; }
.ph-desc { font-size: .92rem; color: #5c4a36; max-width: 52ch; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.page-text { min-height: 0; background: #fffdf6; border: 3px solid var(--ink); border-radius: var(--wob2); padding: 14px 18px; }
.day-title { font-size: clamp(1.3rem, 1.2vw + 1rem, 2rem); margin-bottom: 10px; color: var(--coral); }
.story { font-family: 'Andika', 'Trebuchet MS', sans-serif; font-size: var(--read); line-height: 1.6; color: #2a1d10; }
.story.small { font-size: clamp(17px, .6vw + 16px, 22px); }
.w { cursor: pointer; border-radius: 6px; padding: 0 1px; transition: background .15s; }
.w:hover { background: #fff3b8; }
.w.nw { background: linear-gradient(transparent 62%, #ffe27a 62%); }
.w.said { animation: said .7s ease; }
@keyframes said { 0% { background: var(--sky); color: #fff; } 100% { background: transparent; } }
mark.proof { background: var(--hl); border-radius: 6px; padding: 2px 0; box-shadow: 0 0 0 3px var(--hl); }
@media (min-aspect-ratio: 5/4) and (min-width: 700px) {
  .page-wrap { height: 100%; grid-template-rows: 1fr; grid-template-columns: 1.1fr 1fr; padding: 16px var(--gut); }
  .page-wrap .page-text { order: 0; }   /* wide screen: picture left, words right (as before) */
  .page-text { overflow-y: auto; }
}
@media (max-height: 520px) and (min-aspect-ratio: 5/4) { .page-wrap { grid-template-columns: 1fr 1.3fr; } }

/* questions */
.q-wrap { max-width: 760px; }
.q-text { font-size: clamp(1.3rem, 1vw + 1rem, 1.8rem); line-height: 1.3; margin-bottom: 14px; }
.scene { font-size: 1.15rem; font-weight: 600; color: var(--coral); margin-bottom: 6px; }
.opts { display: grid; gap: 12px; }
.btn.opt, .btn.sent { justify-content: flex-start; text-align: left; min-height: 60px; font-size: clamp(1.1rem, .5vw + 1rem, 1.35rem); background: #fffdf6; }
.btn.sent { font-family: 'Andika', sans-serif; font-weight: 400; font-size: clamp(1.05rem, .5vw + .95rem, 1.25rem); }
.btn.yes { background: var(--okbg); border-color: var(--ok); box-shadow: 0 4px 0 var(--ok); }
.btn.yes::after { content: '✓'; margin-left: auto; font-weight: 700; color: var(--ok); font-size: 1.4rem; }
.btn.no { background: var(--nobg); border-color: var(--no); color: #9a3020; box-shadow: 0 4px 0 var(--no); text-decoration: line-through; opacity: .85; }
.btn.key { outline: 3px dashed #2b2d42; outline-offset: 3px; }
.btn.key::before { content: 'ANSWER'; font-size: .7rem; background: #2b2d42; color: #fff; border-radius: 6px; padding: 2px 6px; margin-right: 6px; }
.key-tag { display: inline-block; margin-top: 4px; background: #2b2d42; color: #fff; border-radius: 6px; padding: 2px 8px; font-size: .9rem; }
.fb:empty { display: none; }
.fb { margin-top: 14px; }
.good, .try { border: 3px solid var(--ok); background: var(--okbg); border-radius: var(--wob); padding: 12px 14px; font-size: 1.08rem; line-height: 1.4; }
.good b, .try b { font-size: 1.2rem; display: block; margin-bottom: 4px; }
.try { border-color: var(--coral); background: #fff2ec; }
.excerpt { background: #fffdf6; border: 2px solid #e7cf91; border-radius: 12px; padding: 10px 12px; margin: 8px 0; max-height: 34vh; overflow-y: auto; }
.excerpt small { display: block; color: var(--ink2); font-size: .85rem; margin-bottom: 4px; font-family: 'Fredoka', sans-serif; }
.type-row input { font-size: 1.8rem; text-align: center; letter-spacing: .06em; font-family: 'Andika', sans-serif; }
.type-row input.ok { border-color: var(--ok); background: var(--okbg); }
.peek { font-family: 'Andika', sans-serif; font-size: 2rem; letter-spacing: .08em; }
.react { text-align: center; } .bounce { display: block; font-size: 3rem; animation: bounce .7s ease 2; }
@keyframes bounce { 40% { transform: translateY(-14px) scale(1.15); } }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-7px); } 40%, 80% { transform: translateX(7px); } }

/* bonus */
.bonus { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); align-items: start; }
.bonus-card h2 { font-size: 1.5rem; } .bk { color: var(--ink2); margin: 4px 0 10px; font-weight: 600; }
.bonus-card p { line-height: 1.45; margin-bottom: 8px; font-size: 1.05rem; }
.frame { background: var(--paper2); border: 2px dashed var(--ink2); border-radius: 12px; padding: 10px; font-family: 'Andika', sans-serif; }
.checks { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.checks label { display: flex; gap: 10px; align-items: flex-start; font-size: 1.05rem; cursor: pointer; }
.checks input { width: 24px; height: 24px; flex: none; accent-color: var(--ok); }
details { margin: 10px 0; } summary { cursor: pointer; font-weight: 600; color: #1b7fae; min-height: 32px; }
details p { background: #f4fbff; border-radius: 10px; padding: 10px; margin-top: 6px; font-family: 'Andika', sans-serif; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--paper2); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 1rem; }
.chip b { color: var(--coral); }
.tog.on { background: var(--grass); } .tog.on::after { content: ' ✓'; }
.reads { margin: 10px 0 4px; }

/* end card */
.card.end { text-align: center; background: linear-gradient(180deg, #fff, #fff6d6); }
.burst { font-size: 3.2rem; line-height: 1; animation: bounce .8s ease 2; }
.big-h { font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem); color: var(--coral); margin: 6px 0; }
.stars { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; font-size: 2rem; margin-top: 8px; }
.stars i { font-style: normal; color: #ddd3bd; -webkit-text-stroke: 1.5px var(--ink); } .stars i.on { color: #ffcc00; }
.hook { margin: 18px 0 14px; padding: 16px; background: #fff; border: 3px dashed var(--coral); border-radius: var(--wob2); text-align: left; }
.hook-line { font-style: italic; font-size: clamp(17px, .6vw + 16px, 22px); } .hook-q { font-size: 1.35rem; font-weight: 600; }
.tomorrow { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--sun); border: 3px solid var(--ink); border-radius: var(--wob); padding: 12px 16px; }
.tomorrow small { display: block; font-size: .95rem; color: var(--ink2); } .tomorrow b { font-size: 1.25rem; }
.tomorrow.fin { display: block; text-align: center; background: var(--grass); }
.lock { font-size: 2.2rem; animation: bounce .9s ease 2; }

/* grown-ups */
.tabs { display: grid; gap: 10px; margin-bottom: 12px; } .tabs.t2 { grid-template-columns: 1fr 1fr; } .tabs.t3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 420px) { .tabs.t3 { grid-template-columns: 1fr; } }
.btn.tab { min-height: 48px; font-size: 1.05rem; } .btn.tab.on { background: var(--sun); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { background: #fff; border: 3px solid var(--ink); border-radius: var(--wob); padding: 12px; text-align: center; }
.tile b { display: block; font-size: 1.9rem; color: var(--coral); } .tile small { color: var(--ink2); font-size: .92rem; }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.list { margin: 0; padding-left: 20px; line-height: 1.6; }
.codes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 6px 14px; font-size: .95rem; }
.codes code { background: var(--paper2); border-radius: 6px; padding: 1px 6px; font-weight: 700; }
.msg { text-align: center; max-width: 420px; margin: 40px auto; } .msg p { margin: 10px 0 16px; }
.screen.center { display: grid; place-items: center; padding: var(--gut); }

.screen { position: relative; }
.more-cue { position: absolute; right: 12px; z-index: 5; display: none; border: 3px solid var(--ink); background: var(--sky); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 4px 12px; font-size: .9rem; box-shadow: 0 3px 0 var(--ink); cursor: pointer; animation: nudge 1.4s ease-in-out infinite; }
.more-cue.on { display: block; }
.page-text.overflow { box-shadow: inset 0 -18px 14px -12px rgba(59,42,26,.25); }
@keyframes nudge { 50% { transform: translateY(4px); } }
/* toast + confetti */
#toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 1.05rem; transition: .25s; max-width: calc(100vw - 32px); text-align: center; z-index: 30; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#fx { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 20; }
#fx i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 1.5s ease-in forwards; }
@keyframes fall { to { top: 105vh; transform: rotate(540deg) translateX(40px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.art.ph { container-type: size; }
@container (max-height: 170px) { .ph-tag { display: none; } .ph-desc { -webkit-line-clamp: 2; font-size: .85rem; } .ph-inner { inset: 6px; gap: 2px; padding: 6px; } }

/* ---- book-page quiz (owner 2026-10-29): clean warm page, frameless picture banner, light white answer cards ---- */
.screen.bookq { background: #faf6ee; --qfont: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
.screen.bookq .bar { background: #faf6ee; border-bottom: 0; }
.qprog { flex: none; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; padding: 2px 12px 8px; font: 600 16px/1.2 var(--qfont); color: #9a8d78; }
.qp { padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.qp.past { color: #6d8f6b; }
.qp.on { background: #ffe9a8; color: var(--ink); }
button.qp { border: 1.5px solid #e6d9bd; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.qp-arrow { font-style: normal; color: #c9bba0; }
/* shows the picture from just under its blank text band (top 22%) down to ~92%: every character's head stays in */
.qart { width: min(100%, calc(30dvh * 2.14)); aspect-ratio: 2.14; margin: 0 auto; background-size: 100% auto; background-repeat: no-repeat; background-position: center 73%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 84%, transparent 100%), linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%); mask-composite: intersect; }
.screen.bookq .wrap { padding-top: 6px; }
.screen.bookq .card { background: transparent; border: 0; box-shadow: none; padding: 6px 4px 0; margin: 0; }
.screen.bookq .kicker { font: 600 16px/1.2 var(--qfont); letter-spacing: .06em; color: #9a8d78; }
.screen.bookq .q-text { font: 700 clamp(21px, 1vw + 17px, 28px)/1.3 var(--qfont); color: #2b2620; }
.screen.bookq .sub, .screen.bookq .scene, .screen.bookq .grown { font-family: var(--qfont); }
.screen.bookq .opts { gap: 10px; }
.screen.bookq .btn.opt, .screen.bookq .btn.sent { font: 500 clamp(18px, .5vw + 16px, 22px)/1.35 var(--qfont); min-height: 58px; padding: 12px 18px; border-radius: 16px; }
.screen.bookq .btn.opt:not(.yes):not(.no), .screen.bookq .btn.sent:not(.yes):not(.no) { background: #fff; border: 1.5px solid #ebe0c9; box-shadow: 0 2px 6px rgba(80, 60, 20, .08); }
.screen.bookq .btn.yes, .screen.bookq .btn.no { border-width: 1.5px; box-shadow: none; }
.screen.bookq .good, .screen.bookq .try { font-family: var(--qfont); border-width: 0; border-radius: 14px; padding: 10px 14px; }
.screen.bookq .try { background: #fff4d6; color: #5a4a2a; }
.screen.bookq .good b, .screen.bookq .try b { font-size: 1.05rem; }
.screen.bookq .excerpt { background: #fff; border-radius: 12px; }
.screen.bookq input#typed { font-family: var(--qfont); border-width: 1.5px; border-radius: 14px; }
/* the bottom bar only appears once there is something to do (an answer was picked) */
.screen.bookq .foot-bar { background: transparent; border-top: 0; padding-top: 4px; }
.screen.bookq .foot-bar:has(button[disabled]) { display: none; }
.screen.bookq .foot-bar .btn.primary { max-width: 360px; margin-left: auto; border-width: 0; border-radius: 999px; background: #3e5240; color: #fff; box-shadow: none; font-family: var(--qfont); }
/* read-the-story-again overlay */
.peek-story { position: fixed; inset: 0; z-index: 50; background: rgba(40, 30, 20, .45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.peek-card { width: min(720px, 100%); max-height: 90dvh; overflow: auto; background: #faf6ee; border-radius: 20px; padding: 18px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.peek-card .story { white-space: pre-line; }
.peek-row { display: flex; gap: 8px; justify-content: space-between; margin-top: 12px; }
.peek-row .btn { flex: 1; }
@media (max-width: 560px) { .qprog { flex-wrap: nowrap; gap: 2px; font-size: 16px; padding: 2px 6px 6px; } .qp { padding: 4px 7px; } .qp-arrow { font-size: 16px; } }

/* Grade 4 short written answer */
.short-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 22px; line-height: 1.4; padding: 12px 14px; border: 3px solid #e2c98f; border-radius: 16px; background: #fffdf6; resize: vertical; margin-top: 8px; }
.short-in:focus { outline: none; border-color: #ffb703; }
.short-in[readonly] { background: #f5f1e6; }
.fb .good .try { background: transparent; border: 0; padding: 0; margin: 8px 0 0; }
