/* Look C, "Bold app": a sunny yellow stage with the page held up big, Wren and the choices on a white sheet below, chunky 3D buttons. */
:root { --sun: #ffcf4a; --sun2: #ffb83a; --sun3: #ffe07d; --ink: #1d2340; --coral: #ff5a4e; --coral2: #c63b31; --paper: #fffaf0; --line: #efe3cc; --muted: #8a8170; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Nunito, system-ui, sans-serif; color: var(--ink); background: var(--sun); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
button { font: inherit; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }

/* the sunny backdrop */
.sun { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.sun i { position: absolute; border-radius: 50%; }
.sun::after { content: ''; position: absolute; inset: 0; background: url(img/doodles.png) center top / 720px auto repeat; opacity: .55; }
.sun i:nth-child(1) { width: 300px; height: 300px; left: -100px; top: 110px; background: var(--sun2); animation: drift 14s ease-in-out infinite; }
.sun i:nth-child(2) { width: 240px; height: 240px; right: -70px; top: 30px; background: var(--sun3); animation: drift 18s ease-in-out infinite reverse; }
.sun i:nth-child(3) { width: 120px; height: 120px; right: 22%; top: 380px; background: #ffd862; animation: drift 11s ease-in-out infinite; }
@keyframes drift { 50% { transform: translate(14px, -10px) scale(1.04); } }

.bar { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: calc(14px + env(safe-area-inset-top)) 20px 0; max-width: 1180px; margin: 0 auto; }
.logo { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.count { font-family: Fredoka, sans-serif; font-weight: 600; background: var(--ink); color: var(--sun); border-radius: 999px; padding: 6px 13px; font-size: 14px; white-space: nowrap; }
.count.bump { animation: bump .6s cubic-bezier(.3,1.8,.5,1); }
@keyframes bump { 30% { transform: scale(1.25) rotate(-4deg); } }

.app { position: relative; z-index: 1; }

/* ---------- the stage: the page held up big ---------- */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; padding: 14px 0 0; }
.book { --h: min(276px, 33vh); position: relative; height: var(--h); width: calc(var(--h) * .773); perspective: 1300px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.early .book { --h: min(200px, 26vh); }
@media (min-width: 900px) { .early .book { --h: min(440px, 56vh); } }
.book { transition: height .5s ease, width .5s ease; }
.leaves { position: absolute; inset: 0; transform: rotate(-3deg); transform-style: preserve-3d; z-index: 2; }
.leaf { position: absolute; inset: 0; transform-origin: left center; transform-style: preserve-3d; transition: transform .2s ease-out; cursor: grab; }
.face { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #fff; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 0 0 6px #fff, 0 30px 40px -20px rgba(80,40,0,.55); }
.face svg { width: 100%; height: 100%; display: block; }
.face.back { transform: rotateY(180deg); background: linear-gradient(90deg, #efe8da, #fbf7ef 30%, #f6f0e4); box-shadow: 0 0 0 6px #f6f0e4, 0 30px 40px -20px rgba(80,40,0,.55); }
.thru { position: absolute; inset: 0; transform: scaleX(-1); opacity: .09; filter: blur(.4px); }
/* shading that sweeps across a turning page */
.face::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 60%); }
.leaf.turning .face::after { animation: shade .8s ease both; }
@keyframes shade { 50% { opacity: 1; } }
.leaf.turning.fwd { z-index: 3; animation: turnFwd .8s cubic-bezier(.45,.05,.35,1) forwards; }
.leaf.turning.back { z-index: 3; animation: turnBack .8s cubic-bezier(.45,.05,.35,1) both; }
@keyframes turnFwd { 70% { opacity: 1; } to { transform: rotateY(-180deg) translateZ(1px); opacity: 0; } }
@keyframes turnBack { from { transform: rotateY(-180deg); opacity: 0; } 30% { opacity: 1; } to { transform: none; } }
.leaf.cur:not(.turning) { animation: land .5s ease both; }
@keyframes land { from { transform: translateY(-4px) scale(1.01); } }
/* Wren's pencil skating over a page while it draws itself */
.pen { position: absolute; left: 0; top: 0; font-size: 34px; z-index: 5; pointer-events: none; filter: drop-shadow(0 4px 3px rgba(0,0,0,.25)); animation: pen var(--t) linear forwards; }
@keyframes pen { 0% { transform: translate(30%, 30%) rotate(-10deg); opacity: 0; } 5% { opacity: 1; } 18% { transform: translate(200%, 60%); } 32% { transform: translate(60%, 260%); } 48% { transform: translate(380%, 340%); } 64% { transform: translate(80%, 520%); } 80% { transform: translate(340%, 600%); } 95% { opacity: 1; } 100% { transform: translate(420%, 680%) rotate(10deg); opacity: 0; } }

/* the pile behind: the next page, or the one Wren is drawing right now */
.pile { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.pile .pc { position: absolute; inset: 0; border-radius: 14px; overflow: hidden; background: #fff; transform: translate(18%, 4%) rotate(7deg); box-shadow: 0 0 0 5px #fff, 0 20px 30px -20px rgba(80,40,0,.5); transition: transform .4s cubic-bezier(.3,1.5,.5,1); }
.pile .pc svg { width: 100%; height: 100%; display: block; opacity: .9; }
.pile .blankcard { opacity: .7; }
.pile .sketchcard { transform: translate(30%, 3%) rotate(9deg); background: #fffdf6; display: grid; place-items: center; }
.sketchcard svg { width: 78%; height: auto; }
.sketchcard path { fill: none; stroke: #b9ab8f; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: sk 3.2s ease-in-out infinite; }
.sketchcard path:nth-child(2) { animation-delay: .3s; } .sketchcard path:nth-child(3) { animation-delay: .6s; } .sketchcard path:nth-child(4) { animation-delay: 1.1s; } .sketchcard path:nth-child(5) { animation-delay: 1.5s; }
@keyframes sk { 0% { stroke-dashoffset: 300; } 55%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.drawtag { position: absolute; z-index: 5; right: -40%; top: 4%; background: #fff; border-radius: 999px; padding: 5px 10px; box-shadow: 0 3px 0 #e9cf8a; white-space: nowrap; pointer-events: none; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 12px; color: var(--muted); animation: breathe 1.4s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* the "new!" sticker: tap it to turn to the new page */
.sticker { position: absolute; z-index: 6; right: -36%; bottom: 6%; border: 0; background: var(--coral); color: #fff; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 14px; line-height: 1.15; padding: 9px 13px 10px; border-radius: 18px; text-align: left; transform: rotate(6deg); box-shadow: 0 6px 0 var(--coral2), 0 14px 20px -10px rgba(120,30,20,.5); max-width: 150px; }
.sticker b { display: block; font-size: 15px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sticker small { display: block; font-size: 12px; opacity: .85; }
.sticker:active { transform: rotate(6deg) translateY(4px); box-shadow: 0 2px 0 var(--coral2); }
.sticker.pop { animation: stick .55s cubic-bezier(.3,1.7,.5,1) both; }
@keyframes stick { from { transform: rotate(-20deg) scale(.2); opacity: 0; } }
.sticker[hidden] { display: none; }

.turn { position: absolute; top: 50%; z-index: 4; width: 40px; height: 40px; margin-top: -20px; border-radius: 14px; border: 0; background: #fff; box-shadow: 0 4px 0 #e9cf8a; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 26px; line-height: 1; color: var(--ink); }
.turn.prev { left: -58px; } .turn.next { right: -58px; }
.turn:active { transform: translateY(3px); box-shadow: 0 1px 0 #e9cf8a; }
.turn:disabled { opacity: 0; pointer-events: none; }

.cap { position: relative; z-index: 2; margin: 16px 20px 0; width: calc(100% - 40px); display: flex; gap: 8px; align-items: baseline; justify-content: center; max-width: 520px; font-size: 13px; line-height: 1.3; min-height: 17px; }
.cap b { font-family: Fredoka, sans-serif; font-weight: 600; white-space: nowrap; }
.cap span { color: #5d4a1c; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.nq { border: 0; background: none; padding: 0; font-weight: 800; font-size: 13px; color: var(--ink); text-decoration: underline; white-space: nowrap; }
.strip { display: none; }

/* ---------- the white sheet: Wren and the choices ---------- */
.sheet { position: relative; z-index: 3; margin-top: 16px; background: var(--paper); border-radius: 34px 34px 0 0; padding: 24px 20px calc(40px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -12px rgba(80,40,0,.35); min-height: 50vh; }
.frame { position: relative; }
.fin { display: flex; flex-direction: column; gap: 18px; animation: frameIn .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes frameIn { from { opacity: 0; transform: translateY(16px); } }
.hostline { display: flex; gap: 14px; align-items: center; }
.avatar { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 22px; overflow: hidden; box-shadow: 0 4px 0 #e9d9b8; background: #ffe9b0; }
.avatar.hop { animation: hop .7s cubic-bezier(.3,1.6,.5,1); }
@keyframes hop { 30% { transform: translateY(-10px) rotate(-6deg) scale(1.08); } 60% { transform: translateY(0) rotate(3deg); } }
.hostface { width: 100%; height: 100%; display: block; }
.hostface.pix { object-fit: cover; transform: scale(1.08) translateY(4%); }
.hostface.pix.m-thinking { animation: muse 2.4s ease-in-out infinite; }
@keyframes muse { 50% { transform: scale(1.08) translateY(4%) rotate(-3deg); } }
.hostface.pix:not(.m-thinking) { transform-origin: 50% 100%; animation: breathe-w 3.6s ease-in-out infinite; }
@keyframes breathe-w { 50% { transform: scale(1.095) translateY(3%); } }
.hostface.pix.talking { transform-origin: 50% 100%; animation: talkbob .9s ease-in-out infinite alternate; }
@keyframes talkbob { from { transform: scale(1.08) translateY(4%) rotate(-.6deg); } to { transform: scale(1.085) translateY(3%) rotate(.8deg); } }
@media (prefers-reduced-motion: reduce) { .hostface.pix, .hostface.pix.talking { animation: none; } }
.hostface .eyes { animation: blink 5s infinite; transform-origin: 60px 56px; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.hostface.m-thinking .pupils { animation: look 2.4s ease-in-out infinite; }
@keyframes look { 0%, 100% { transform: translate(0, 0); } 30%, 60% { transform: translate(1.6px, -1.6px); } }
.hostface.m-thinking .pencil { animation: wiggle .5s ease-in-out infinite; transform-origin: 60px 13px; }
@keyframes wiggle { 50% { transform: rotate(8deg); } }
.say { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 25px; line-height: 1.14; margin: 0; letter-spacing: -.005em; }
.say em { font-style: normal; color: var(--coral); }
.prompt { font-family: Nunito, sans-serif; font-weight: 800; font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.blocks { display: flex; flex-direction: column; gap: 18px; }
.note { font-weight: 700; font-size: 15px; padding: 12px 16px; border-radius: 18px; background: #fff3c4; box-shadow: 0 4px 0 #f0dc94; width: fit-content; max-width: 100%; }

/* chunky 3D buttons in soft colours */
.tile, .card, .stop, .chip { --bg: #fff; --sh: var(--line); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.grid.n2, .grid.n4 { grid-template-columns: repeat(2, 1fr); }
.tile:nth-child(6n+1) { --bg: #ffd9c7; --sh: #f0b79c; } .tile:nth-child(6n+2) { --bg: #c9f0dd; --sh: #97d7b8; } .tile:nth-child(6n+3) { --bg: #dcdaff; --sh: #b3afef; }
.tile:nth-child(6n+4) { --bg: #cdeaff; --sh: #9fcdf0; } .tile:nth-child(6n+5) { --bg: #fff0b3; --sh: #efd77a; } .tile:nth-child(6n+6) { --bg: #ffd6e7; --sh: #f0a9c6; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 6px 10px; min-height: 100px; border: 0; border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: 0 6px 0 var(--sh); transition: transform .12s, box-shadow .12s; animation: pop .45s var(--d) cubic-bezier(.3,1.5,.5,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.9); } }
.tile .em { font-size: 36px; line-height: 1.15; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.tile .lb, .card .lb { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 17px; line-height: 1.1; text-align: center; }
.tile .ht, .card .ht { font-weight: 800; font-size: 11px; opacity: .6; text-align: center; line-height: 1.2; margin-top: 2px; }
.tile:hover .em { transform: scale(1.12) rotate(-6deg); }
.tile:active, .card:active, .chip:active, .go:active:not(:disabled) { transform: translateY(5px); box-shadow: 0 1px 0 var(--sh); }
.tile.on, .card.on, .chip.on { outline: 4px solid var(--ink); outline-offset: 2px; transform: translateY(-3px); }
.tile.on::after { content: '✓'; position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 900; font-size: 14px; display: grid; place-items: center; animation: pop .3s both; }
.chosen .on { animation: chosen .45s cubic-bezier(.3,1.6,.5,1) forwards; }
.chosen .tile:not(.on), .chosen .card:not(.on), .chosen .chip:not(.on) { opacity: .35; transform: scale(.94); transition: opacity .3s, transform .3s; }
@keyframes chosen { 40% { transform: translateY(-8px) scale(1.08) rotate(-2deg); } 100% { transform: translateY(-3px); } }

/* kinds: every activity the studio makes, Wren's picks ticked */
.klist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kind { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: #fff; border-radius: 18px; padding: 8px 6px 10px; box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--line) inset; color: var(--ink); transition: transform .12s, box-shadow .12s, background .15s; animation: pop .4s var(--d) both; }
.kind .kt { width: 100%; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.5px var(--line), 0 6px 10px -8px rgba(0,0,0,.4); transition: transform .2s; }
.kind .kt svg, .kind .kt img { width: 100%; height: 100%; display: block; object-fit: cover; }
.kind .kx { display: flex; flex-direction: column; align-items: center; text-align: center; }
.kind b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 14.5px; line-height: 1.1; }
.kind small { font-weight: 700; font-size: 11px; line-height: 1.2; color: var(--muted); margin-top: 2px; }
.kind .tick { position: absolute; top: -7px; right: -7px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px #d9ccb0 inset; display: grid; place-items: center; font-weight: 900; color: #fff; transition: background .15s, transform .2s cubic-bezier(.3,1.7,.5,1); }
.kind.on { background: #e6f7ee; box-shadow: 0 4px 0 #97d7b8, 0 0 0 3px #4fb88a inset; }
.kind.on .kt { transform: rotate(-2deg); }
.kind:not(.on) .kt { opacity: .7; }
.kind.on .tick { background: var(--ink); box-shadow: none; transform: scale(1.08); }
.kind.on .tick::after { content: '✓'; font-size: 15px; }
.kind:active { transform: translateY(3px); }
.kinds .go { align-self: stretch; width: 100%; margin-top: 14px; position: sticky; bottom: 12px; z-index: 2; }
.busy .kinds { opacity: .45; }

/* layouts the model can choose */
.l-spotlight .hostline { flex-direction: column; text-align: center; }
.l-spotlight .avatar { flex-basis: 84px; width: 84px; height: 84px; border-radius: 28px; }
.l-spotlight .grid { display: flex; flex-wrap: wrap; justify-content: center; }
.l-spotlight .tile { flex-direction: row; min-height: 0; padding: 12px 18px; gap: 8px; border-radius: 999px; }
.l-spotlight .tile .em { font-size: 26px; } .l-spotlight .tile .ht { display: none; }
.l-spotlight .prompt, .l-spotlight .note { text-align: center; margin-left: auto; margin-right: auto; }
.l-split .grid { grid-template-columns: 1fr; }
.l-split .tile { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 12px 16px; gap: 14px; }
.l-split .tile .em { font-size: 32px; } .l-split .tile .lb, .l-split .tile .ht { text-align: left; }
.l-split .tile .ht { margin-left: auto; max-width: 45%; }

/* duel: two pages to choose between */
.pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.or { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 16px; color: var(--muted); }
.card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 10px 14px; border-radius: 22px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 6px 0 var(--line), 0 0 0 2px var(--line) inset; transition: transform .12s, box-shadow .12s; animation: pop .5s var(--d) cubic-bezier(.3,1.5,.5,1) both; }
.card .em { font-size: 60px; }
.card .mini { width: 100%; max-width: 200px; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 16px -8px rgba(0,0,0,.35); transform: rotate(-2deg); }
.card:nth-of-type(2) .mini { transform: rotate(2deg); }
.card .mini svg { display: block; width: 100%; height: auto; }

/* scale */
.track { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); padding: 6px 0 4px; }
.rail { position: absolute; left: 10%; right: 10%; top: 34px; height: 8px; border-radius: 8px; background: var(--line); z-index: 0; }
.stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--ink); box-shadow: none; }
.stop .em { width: 58px; height: 58px; display: grid; place-items: center; font-size: 30px; border-radius: 20px; background: #fff; box-shadow: 0 5px 0 var(--line), 0 0 0 2px var(--line) inset; transition: transform .2s cubic-bezier(.3,1.6,.5,1); }
.stop .lb { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 14px; text-align: center; }
.stop.on .em { transform: translateY(-4px) scale(1.12); background: #c9f0dd; box-shadow: 0 5px 0 #97d7b8, 0 0 0 4px var(--ink); }

/* chips and buttons */
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 0; background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 18px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 16px; box-shadow: 0 5px 0 var(--line), 0 0 0 2px var(--line) inset; animation: pop .4s var(--d, 0ms) both; transition: transform .12s, box-shadow .12s; }
.go { --sh: var(--coral2); align-self: flex-start; margin-top: 8px; border: 0; border-radius: 18px; padding: 14px 24px; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 17px; background: var(--coral); color: #fff; box-shadow: 0 6px 0 var(--coral2); transition: transform .12s, box-shadow .12s, opacity .2s; }
.go:disabled { opacity: .35; cursor: default; }
.go.big { font-size: 19px; padding: 16px 30px; }
.l-spotlight .go { align-self: center; }

/* name */
.namebox { display: flex; gap: 10px; align-items: center; background: #fff; border-radius: 22px; padding: 8px 8px 8px 18px; box-shadow: 0 5px 0 var(--line), 0 0 0 2px var(--line) inset; }
.namebox input { flex: 1; min-width: 0; font-family: Fredoka, sans-serif; font-weight: 600; font-size: 28px; padding: 6px 0; border: 0; background: transparent; color: var(--ink); outline: none; }
.namebox .go { margin: 0; width: 54px; height: 54px; padding: 0; font-size: 24px; }
.skip { border: 0; background: none; color: var(--muted); font-weight: 800; text-decoration: underline; padding: 6px 0 0; font-size: 14px; }

/* or just tell me */
.tellbtn { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: #fff; border-radius: 20px; padding: 10px 10px 10px 18px; box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--line) inset; color: var(--muted); font-weight: 800; font-size: 16px; text-align: left; }
.tellbtn i { margin-left: auto; width: 42px; height: 42px; border-radius: 14px; background: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 19px; }
.tellbtn[hidden], .tellform[hidden] { display: none; }
.tellform { display: flex; flex-direction: column; gap: 10px; }
.tellform textarea { font: 17px/1.4 Nunito, sans-serif; font-weight: 700; padding: 14px 16px; border-radius: 20px; border: 0; box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--line) inset; background: #fff; color: var(--ink); resize: vertical; outline: none; }
.tellform textarea:focus { box-shadow: 0 4px 0 var(--line), 0 0 0 3px var(--ink) inset; }
.tellrow { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.tellrow .go { margin: 0; }
.mic { border: 0; background: var(--ink); width: 50px; height: 50px; border-radius: 16px; font-size: 20px; box-shadow: 0 5px 0 #0b0f22; }
.mic.live { background: var(--coral); animation: pulse 1s infinite; }
@keyframes pulse { 50% { transform: scale(1.1); } }
.quick b { font-size: 14px; display: block; margin-bottom: 8px; }
.quick .chip { padding: 9px 14px; font-size: 14px; }
.progress { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--sun); border-radius: 8px; transition: width .8s ease; }

/* waiting: Wren's reaction stays up while she thinks; the page on the stage is being drawn */
.busy .blocks, .busy .tell { opacity: .45; pointer-events: none; transition: opacity .3s; }
.busy .chosen { opacity: 1; }
.waiting { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 800; animation: frameIn .4s both; }
.waiting p { margin: 0; }
.dots { display: flex; gap: 5px; background: #fff; padding: 12px 14px; border-radius: 16px 16px 16px 4px; box-shadow: 0 3px 0 var(--line), 0 0 0 2px var(--line) inset; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: dot 1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { transform: translateY(-5px); opacity: .5; } }
.err { font-size: 12px; opacity: .5; }
.keyform { display: flex; gap: 10px; flex-wrap: wrap; }
.keyform input { flex: 1 1 240px; font: 18px/1.3 Nunito, sans-serif; padding: 12px 14px; border-radius: 16px; border: 0; box-shadow: 0 0 0 2px var(--line) inset; background: #fff; color: var(--ink); }
.keyform .go { margin: 0; }
.keynote { margin: 0; font-size: 14px; opacity: .7; }
.keynote.or { margin-top: 18px; }
.keynote .gpt { display: inline-block; margin: 8px 0 0; text-decoration: none; background: #10a37f; box-shadow: 0 5px 0 #0b7a5e; }
.keyform ~ .err { font-size: 15px; opacity: 1; color: #b3261e; }
.shelf { margin-top: 22px; }
.shelf .books { isolation: isolate; display: flex; gap: 14px; overflow-x: auto; padding: 6px 4px 0; scroll-snap-type: x mandatory; }
.shelf .sb { flex: 0 0 96px; scroll-snap-align: start; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--ink); text-align: center; animation: pop .4s var(--d, 0ms) both; }
.shelf .sc { display: block; aspect-ratio: 3/4; border-radius: 4px 8px 8px 4px; overflow: hidden; background: #fff; box-shadow: inset 6px 0 0 rgba(0,0,0,.12), 0 8px 14px -8px rgba(0,0,0,.45); transition: transform .2s; }
.shelf .sb:nth-child(odd) .sc { transform: rotate(-2deg); } .shelf .sb:nth-child(even) .sc { transform: rotate(1.5deg); }
.shelf .sb:hover .sc, .shelf .sb:focus-visible .sc { transform: translateY(-6px) rotate(0); }
.shelf .sc svg { display: block; width: 100%; height: 100%; }
.shelf .st { display: block; margin-top: 8px; font: 700 13px/1.2 Nunito, sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shelf .sb { position: relative; }
.shelf .sb::before { content: ''; position: absolute; z-index: -1; left: -8px; right: -8px; top: 118px; height: 12px; border-radius: 3px; background: #e9b96e; box-shadow: 0 5px 0 #c98f45; }

/* notes */
.notes { margin-top: 26px; background: #fff; border-radius: 18px; padding: 12px 16px; font-size: 14px; box-shadow: 0 0 0 2px var(--line) inset; }
.notes summary { font-family: Fredoka, sans-serif; font-weight: 600; cursor: pointer; }
.notes ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.notes li { display: flex; gap: 8px; align-items: baseline; }
.notes em { margin-left: auto; font-size: 11px; color: var(--muted); white-space: nowrap; }

/* finale */
.finale h2 { font-family: Fredoka, sans-serif; font-weight: 700; font-size: 30px; margin: 0 0 14px; line-height: 1.1; }
.hand { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
.hand div { border-radius: 20px; padding: 12px 16px; }
.hand div:nth-child(1) { background: #ffd9c7; box-shadow: 0 5px 0 #f0b79c; } .hand div:nth-child(2) { background: #c9f0dd; box-shadow: 0 5px 0 #97d7b8; } .hand div:nth-child(3) { background: #dcdaff; box-shadow: 0 5px 0 #b3afef; }
.hand b { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.hand p { margin: 4px 0 0; font-size: 15px; line-height: 1.35; font-weight: 700; }
.finale .ht { font-size: 12px; opacity: .65; margin-top: 4px; }
.finale .chip { margin-top: 8px; }

.printArea { display: none; }
@media print {
  body > *:not(.printArea) { display: none !important; }
  .printArea { display: block; }
  .pp { page-break-after: always; width: 100%; height: 100vh; display: flex; align-items: center; justify-content: center; }
  .pp svg { height: 100%; width: auto; }
  .pp:last-child { page-break-after: auto; }
  body { padding: 0 !important; min-height: 0 !important; background: #fff !important; }
  .pp.loosepdf { height: auto; display: block; }
  .pp.loosepdf img { display: block; width: 100%; height: auto; max-height: 262mm; object-fit: contain; margin: 0 auto; }
  @page { margin: 8mm; }
}

/* small phones: keep the choices on the first screen */
@media (max-width: 380px) { .say { font-size: 22px; } .tile { min-height: 100px; } .tile .em { font-size: 34px; } .grid { gap: 9px; } }
@media (max-width: 520px) { .turn.prev { left: -50px; } .turn.next { right: -50px; } .sticker { right: -40%; } .card .mini { max-width: 120px; } .card .em { font-size: 44px; } }

/* ---------- wide screens: the stage on the left, the sheet as a card on the right ---------- */
@media (min-width: 900px) {
  .klist { grid-template-columns: repeat(5, 1fr); }
  .app { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; max-width: 1180px; margin: 0 auto; padding: 10px 24px 60px; align-items: start; }
  .stage { position: sticky; top: 10px; padding-top: 40px; }
  .book { --h: min(560px, 68vh); }
  .face { border-radius: 18px; box-shadow: 0 0 0 8px #fff, 0 40px 60px -26px rgba(80,40,0,.55); }
  .cap { font-size: 15px; margin-top: 30px; } .nq { font-size: 15px; } .turn.next { right: -44%; } .turn.prev { left: -64px; }
  .sticker { right: -26%; font-size: 16px; max-width: 200px; } .sticker b { font-size: 19px; }
  .strip { display: flex; gap: 10px; margin-top: 16px; padding: 4px; overflow-x: auto; max-width: 100%; }
  .thumb { position: relative; flex: 0 0 46px; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 0 0 3px #fff, 0 4px 0 3px #e9b93a; transition: transform .2s; }
  .thumb svg { width: 100%; height: auto; display: block; }
  .thumb.on { transform: translateY(-5px); box-shadow: 0 0 0 3px var(--ink), 0 4px 0 3px #e9b93a; }
  .thumb.fresh::after { content: ''; position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
  .sheet { margin-top: 40px; border-radius: 34px; padding: 30px 30px 26px; min-height: 0; box-shadow: 0 30px 60px -30px rgba(80,40,0,.5); }
  .say { font-size: 30px; }
  .avatar { flex-basis: 78px; width: 78px; height: 78px; border-radius: 26px; }
  .tile { min-height: 130px; } .tile .em { font-size: 46px; }
  .hand { grid-template-columns: repeat(3, 1fr); }
}

/* What Wren decided from the last answer. Accepted by default; tap one only to correct it. */
.decided { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -4px; }
.decided .dk { margin: 0 4px 0 0; font-weight: 800; font-size: 13px; color: var(--muted); }
.dec { display: inline-flex; align-items: baseline; gap: 8px; border: 0; background: #e6f7ee; border-radius: 12px; padding: 6px 10px; font-weight: 800; font-size: 14px; line-height: 1.2; color: var(--ink); box-shadow: 0 3px 0 #97d7b8; text-align: left; animation: pop .4s .15s both; }
.dec i { font-style: normal; font-size: 12px; font-weight: 800; color: var(--coral); text-decoration: underline; }
.dec.on { box-shadow: 0 3px 0 #97d7b8, 0 0 0 2px var(--ink); }
.decfix { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; background: #fff; border-radius: 18px; padding: 12px; box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--line) inset; }
.decfix[hidden] { display: none; }
.decfix b { font-size: 13px; color: var(--muted); }
.decfix textarea { font: 16px/1.35 Nunito, sans-serif; font-weight: 700; padding: 10px 12px; border-radius: 14px; border: 0; box-shadow: 0 0 0 2px var(--line) inset; resize: vertical; outline: none; }
.decfix .skip { padding: 0; margin-right: auto; }
.decfix .go { margin: 0; padding: 10px 18px; font-size: 15px; }
.busy .decided { opacity: .5; pointer-events: none; }

/* the read-through at the end: the book takes the stage and the parent turns it */
.readbar { display: none; }
.reading .sheet { display: none; }
.reading .book { --h: min(520px, 62vh, 112vw); }
.reading .cap, .reading .sticker, .reading .turn { display: none; }
.reading .readbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 22px 16px 30px; }
.readbar #rbAt { font-family: Fredoka, sans-serif; font-weight: 600; font-size: 16px; min-width: 88px; text-align: center; }
.readbar .rb { width: 52px; height: 52px; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 5px 0 #e9cf8a; font-family: Fredoka, sans-serif; font-weight: 700; font-size: 28px; }
.readbar .rb:disabled { opacity: .35; }
.readbar .go { margin: 0; font-size: 18px; padding: 15px 26px; }
.readbar .go.print { background: var(--ink); box-shadow: 0 6px 0 #0b0f22; }
.readbar .rbdone { flex-basis: 100%; border: 0; background: none; font-weight: 800; text-decoration: underline; color: #5d4a1c; }

/* ---------- Modes: Home, Make (building), Shelf ---------- */
body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.home, .shelfv { display: none; position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: 8px 18px 24px; }
.mode-home .home, .mode-shelf .shelfv { display: block; }
.mode-home .app, .mode-shelf .app, .mode-home .count, .mode-shelf .count { display: none; }
.mpill:empty { display: none; }
.mpill { margin-left: auto; margin-right: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 999px; background: #fff; color: var(--coral); font: 800 12px Nunito, sans-serif; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 4px 0 rgba(0,0,0,.1); }
.mpill i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #ffe0dc; font-size: 13px; }
.mode-shelf .mpill { color: #fff; background: var(--ink); } .mode-shelf .mpill i { background: var(--sun); }
.reading .mpill { display: none; }
.dock { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px -12px rgba(80,40,0,.35); }
.dock a { max-width: 150px; justify-self: center; width: 100%; text-align: center; text-decoration: none; color: var(--ink); padding: 7px 0 6px; border-radius: 18px; font: 800 13px Nunito, sans-serif; transition: transform .15s; }
.dock a span { display: block; font-size: 24px; line-height: 1.15; }
.dock a.on { background: var(--coral); color: #fff; box-shadow: 0 4px 0 var(--coral2); }
.mode-home .dock a.on, .mode-shelf .dock a.on { background: var(--ink); box-shadow: 0 4px 0 #000; }
.dock a:active { transform: translateY(3px); }
.reading .dock { display: none; } .reading { padding-bottom: 0; }
.mface { display: block; flex: none; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 0 rgba(0,0,0,.08); }
.mface img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mface.big { width: 120px; height: 120px; border-width: 5px; margin: 0 auto 10px; box-shadow: 0 8px 0 rgba(0,0,0,.08); animation: pop .5s both; }
/* home */
.hero { text-align: center; padding: 4px 6px 6px; }
.hero h1 { font: 700 32px/1.1 Fredoka, sans-serif; margin: 0; }
.hero p { margin: 8px 0 0; font-weight: 700; font-size: 17px; opacity: .78; }
.doors { display: grid; gap: 14px; padding: 16px 0 18px; }
.door { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 24px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; box-shadow: 0 6px 0 #e3b62c; animation: pop .45s both; transition: transform .12s; }
.door:nth-child(2) { animation-delay: .06s; }
.door:active { transform: translateY(4px); box-shadow: 0 2px 0 #e3b62c; }
.door .ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; font-size: 31px; flex: none; background: #ffe0dc; }
.door.shelfd .ic { background: #d4ecff; }
.door b { display: block; font: 700 21px Fredoka, sans-serif; }
.door small { display: block; font-weight: 700; opacity: .65; font-size: 14px; margin-top: 2px; }
.door .ar { margin-left: auto; font-size: 26px; opacity: .35; }
.ask { background: #fff; border-radius: 24px; padding: 12px; box-shadow: 0 6px 0 #e3b62c; animation: pop .45s .12s both; }
.qa:empty { display: none; }
.qa { margin-bottom: 10px; }
.qa .q { display: inline-block; background: #f1f2f7; padding: 8px 13px; border-radius: 16px 16px 16px 4px; font: 800 15px Nunito, sans-serif; }
.qa .a { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; }
.qa .a .mface { width: 40px; height: 40px; border: 2px solid #ffe7a3; box-shadow: none; }
.qa .a p { margin: 2px 0 0; font: 600 17px/1.35 Fredoka, sans-serif; }
.qa .dots { display: inline-flex; box-shadow: none; padding: 8px 0; background: none; }
.askin { display: flex; gap: 8px; align-items: center; border-radius: 999px; padding: 5px 5px 5px 16px; box-shadow: inset 0 0 0 2px var(--line); }
.askin input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 700 16px Nunito, sans-serif; color: var(--ink); padding: 8px 0; }
.askin .go { margin: 0; padding: 8px 15px; border-radius: 999px; font-size: 18px; box-shadow: 0 3px 0 var(--coral2); }
.qchips:empty { display: none; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.qc { border: 0; background: #fff4d6; color: var(--ink); border-radius: 999px; padding: 7px 12px; font: 800 13px Nunito, sans-serif; cursor: pointer; box-shadow: 0 3px 0 #f0d98f; }
/* shelf */
.shead { display: flex; gap: 12px; align-items: center; padding: 4px 0 8px; }
.shead p { margin: 0; font: 600 20px/1.25 Fredoka, sans-serif; }
.srow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 12px 8px 0; margin-bottom: 30px; }
.srow::after { content: ''; position: absolute; left: -4px; right: -4px; bottom: -12px; height: 16px; border-radius: 6px; background: #fff; box-shadow: 0 6px 0 #e3b62c, 0 16px 18px -8px rgba(80,40,0,.35); }
.sk { position: relative; z-index: 1; border: 0; background: none; padding: 0; cursor: pointer; animation: pop .45s both; }
.sk .sc { display: block; aspect-ratio: 3/4; border-radius: 5px 10px 10px 5px; overflow: hidden; background: #fff; box-shadow: inset 7px 0 0 rgba(0,0,0,.12), 0 10px 14px -8px rgba(80,40,0,.55); transition: transform .2s; }
.sk .sc svg { display: block; width: 100%; height: 100%; }
.sk:nth-child(3n+1) .sc { transform: rotate(-2deg); } .sk:nth-child(3n+2) .sc { transform: rotate(1.5deg); }
.sk.on .sc { transform: translateY(-8px) rotate(0); box-shadow: 0 0 0 4px var(--coral), 0 14px 18px -8px rgba(80,40,0,.55); }
.sk.add .sc { background: rgba(255,255,255,.45); border: 3px dashed rgba(29,35,64,.3); box-shadow: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--ink); }
.sk.add b { font-size: 34px; line-height: 1; } .sk.add small { font: 800 12px Nunito, sans-serif; margin-top: 4px; }
.picked { display: flex; gap: 14px; align-items: center; background: #fff; border-radius: 24px; padding: 14px; box-shadow: 0 6px 0 #e3b62c; }
.picked .pm { width: 64px; flex: none; border-radius: 4px 8px 8px 4px; overflow: hidden; box-shadow: inset 5px 0 0 rgba(0,0,0,.12), 0 6px 10px -6px rgba(0,0,0,.4); }
.picked .pm svg { display: block; width: 100%; height: auto; }
.picked b { display: block; font: 700 20px/1.15 Fredoka, sans-serif; }
.picked small { font-weight: 700; opacity: .6; font-size: 14px; }
.acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.acts button { border: 0; cursor: pointer; background: #fff; color: var(--ink); border-radius: 18px; padding: 10px 4px; font: 800 13px Nunito, sans-serif; box-shadow: 0 5px 0 #e3b62c; }
.acts button span { display: block; font-size: 24px; }
.acts .a1 { background: var(--coral); color: #fff; box-shadow: 0 5px 0 var(--coral2); }
.acts button:active { transform: translateY(3px); }
@media (max-width: 440px) { .mode-build .bar .logo, .mode-shelf .bar .logo { display: none; } .mode-build .mpill, .mode-shelf .mpill { margin-left: 0; } }

/* Who is it for */
.kidgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 6px; }
.kid { position: relative; animation: pop .45s var(--d, 0ms) both; }
.kid .kpick { width: 100%; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff; border-radius: 22px; padding: 10px 6px 10px; color: var(--ink); box-shadow: 0 5px 0 var(--line), 0 0 0 2px var(--line) inset; transition: transform .12s; }
.kid .kidsvg, .kprev svg { border-radius: 50%; overflow: hidden; }
.kid .kidsvg { width: 84%; height: auto; display: block; margin-bottom: 4px; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.kid b { font: 600 17px/1.1 Fredoka, sans-serif; }
.kid small { font-weight: 800; font-size: 12px; color: var(--muted); }
.kid .tick { position: absolute; top: -7px; right: -7px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2.5px #d9ccb0 inset; display: grid; place-items: center; color: #fff; font-weight: 900; }
.kid.on .kpick { background: #e6f7ee; box-shadow: 0 5px 0 #97d7b8, 0 0 0 3px #4fb88a inset; }
.kid.on .kidsvg { transform: scale(1.06) rotate(-3deg); }
.kid.on .tick { background: var(--ink); box-shadow: none; }
.kid.on .tick::after { content: '✓'; font-size: 15px; }
.kid .kpick:active { transform: translateY(3px); }
.kid .kedit { position: absolute; top: -7px; left: -7px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; cursor: pointer; font-size: 14px; box-shadow: 0 3px 0 var(--line), 0 0 0 2px var(--line) inset; }
.kid.add .kpick { background: rgba(255,255,255,.5); box-shadow: none; border: 3px dashed #e0cfa8; min-height: 100%; justify-content: center; }
.kid.add .plus { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--coral); color: #fff; font-size: 34px; box-shadow: 0 5px 0 var(--coral2); margin-bottom: 8px; }
.who .go { margin-top: 18px; }
.kidform { display: flex; flex-direction: column; gap: 14px; }
.kprev.boing { animation: boing .35s cubic-bezier(.3,1.8,.5,1); }
@keyframes boing { 40% { transform: scale(1.08) rotate(-3deg); } }
.kprev { position: sticky; top: 8px; z-index: 2; width: 150px; margin: 0 auto 2px; filter: drop-shadow(0 8px 0 rgba(0,0,0,.06)); animation: pop .4s both; }
.kprev svg { width: 100%; display: block; }
.kname { display: flex; flex-direction: column; gap: 6px; }
.kname span, .krow > span { font-weight: 800; font-size: 14px; color: var(--muted); }
.kname input { font: 600 20px Fredoka, sans-serif; padding: 12px 16px; border-radius: 16px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 0 0 2px var(--line) inset; }
.kname input.need { box-shadow: 0 0 0 3px var(--coral) inset; }
.krow { display: flex; flex-direction: column; gap: 6px; }
.krow .opts { display: flex; flex-wrap: wrap; gap: 8px; }
.krow.end { flex-direction: row; align-items: center; gap: 16px; }
.krow.end .go { margin: 0; }
.sw { width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); box-shadow: 0 3px 0 rgba(0,0,0,.12), 0 0 0 2px rgba(0,0,0,.06) inset; transition: transform .15s; }
.sw.on { transform: scale(1.12); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ink); }
.chipb { border: 0; cursor: pointer; background: #fff; color: var(--ink); border-radius: 14px; padding: 9px 13px; font: 600 15px Fredoka, sans-serif; box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--line) inset; }
.chipb.on { background: var(--ink); color: #fff; box-shadow: 0 4px 0 #000; }

.kidface { position: relative; display: block; width: 84%; aspect-ratio: 1; margin-bottom: 4px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff7dc, #ffe6a6); overflow: hidden; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.kidface img { position: absolute; inset: 4% 0 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; }
.kidface .gl { inset: auto; left: 30%; width: 40%; height: auto; top: 23%; }
.kidface.b-a .gl { top: 26%; left: 29%; width: 42%; } .kidface.b-c .gl { top: 20.5%; }
.kid.on .kidface { transform: scale(1.06) rotate(-3deg); }
.kprev .kidface { width: 100%; box-shadow: 0 8px 0 rgba(0,0,0,.06); }

/* ================= The booklet as a real hardcover book =================
   body.real turns it on (?look=0 shows the old card). The book is closed on the cover, seen a little
   from the side so the spine and board thickness show; any other page opens it flat, with the pages
   already read on the left, the pages still to come stacked on the right, and a gutter shadow at the spine.
   --T is the book's thickness and grows as Wren adds pages. */
.real .book { perspective: 900px; --board: #ff5a4e; --board2: #c63b31; --paperc: #fffdf7; }
.real .obj { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3,.9,.3,1); }
.real .book.closed .obj { transform: rotateY(24deg) rotateX(6deg) rotateZ(-2deg) translateX(6%); }
.real .book.open .obj { transform: none; }
.real .leaves { transform: none; }

/* the back board and the page block */
.real .case { position: absolute; inset: 0; transform: translateZ(calc(var(--T) * -1)); transition: transform .7s; }
.real .case::before { content: ''; position: absolute; inset: -5px -7px -7px -3px; border-radius: 4px 10px 10px 4px; background: linear-gradient(90deg, var(--board2), var(--board) 8%); box-shadow: 0 26px 34px -14px rgba(90,40,0,.6), 0 6px 10px -4px rgba(90,40,0,.35); }
.real .book.open .case { transform: translateZ(-3px); }
/* pages still to come: a stack of paper edges down the right and bottom */
.real .case::after { content: ''; position: absolute; inset: 0; border-radius: 2px 5px 5px 2px; background: var(--paperc); box-shadow: 1px 1px 0 #efe6d3, 2px 2px 0 #fffaf0, 3px 3px 0 #ebe0ca, 4px 3px 0 #fffaf0, 5px 4px 0 #e6dac2, var(--right) calc(var(--right) * .6) 0 #efe6d3; transition: box-shadow .5s; }
.real .book.closed .case::after { box-shadow: none; }
/* pages already read: a sliver of the left-hand page at the spine */
.real .lefty { position: absolute; top: 2px; bottom: 2px; right: 100%; width: calc(10px + var(--left)); border-radius: 5px 0 0 5px; background: linear-gradient(90deg, #efe6d3, #fffaf0 30%, #f7efdf 70%, #d9cdb3); opacity: 0; transition: opacity .4s; box-shadow: -1px 1px 0 #e6dac2, -2px 2px 0 #fffaf0, -3px 3px 0 #e6dac2; }
.real .book.open .lefty { opacity: 1; }

/* the spine, seen when the book is closed and turned a little */
.real .spine { position: absolute; left: 0; top: 0; bottom: 0; width: var(--T); transform-origin: left center; transform: translateZ(calc(var(--T) * -1)) rotateY(-90deg); border-radius: 3px; background: linear-gradient(90deg, var(--board2), var(--board) 35%, #ff7a6c 55%, var(--board) 75%, var(--board2)); display: grid; place-items: center; overflow: hidden; backface-visibility: hidden; }
.real .spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 calc(var(--T) * .55)/1 Fredoka, sans-serif; color: #fff; letter-spacing: .04em; white-space: nowrap; opacity: .95; }
.real .book.open .spine { opacity: 0; }

/* pages: printed paper, no white ring; a soft gutter shadow on the spine side */
.real .face { border-radius: 2px 6px 6px 2px; box-shadow: 0 1px 2px rgba(80,40,0,.18); }
.real .face.front::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 16%; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgba(70,40,0,.22), rgba(70,40,0,.06) 40%, rgba(70,40,0,0)); }
.real .face.back { box-shadow: 0 1px 2px rgba(80,40,0,.18); }
.real .pile .pc, .real .pile .sketchcard { transform: none; box-shadow: none; border-radius: 2px 6px 6px 2px; }
.real .pile .pc svg { opacity: 1; }
.real .book.closed .pile { visibility: hidden; }
.real .pile .drawtag { z-index: 4; }

/* the cover is a laminated board: rounded fore-edge, hinge groove near the spine, a sheen across it */
.real .coverleaf .face.front { border-radius: 3px 9px 9px 3px; box-shadow: 0 0 0 1px rgba(120,40,20,.25); }
.real .coverleaf .face.front::before { width: 100%; background:
  linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,0) 3%, rgba(255,255,255,.35) 5.2%, rgba(0,0,0,.18) 6.6%, rgba(0,0,0,0) 9%),
  linear-gradient(118deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,0) 26%, rgba(255,255,255,0) 64%, rgba(255,255,255,.16) 78%, rgba(255,255,255,0) 92%); }
.real .coverleaf .face.back { border-radius: 3px 9px 9px 3px; background: linear-gradient(90deg, #f4ecda, #fffaf0); }

/* the turn: the page bends a little as it goes, and throws a shadow on the page below */
.real .leaf.turning.fwd { animation: realFwd .9s cubic-bezier(.45,.05,.3,1) forwards; }
.real .leaf.turning.back { animation: realBack .9s cubic-bezier(.45,.05,.3,1) both; }
@keyframes realFwd { 0% { transform: translateZ(1px); } 50% { transform: rotateY(-90deg) translateZ(2px); opacity: 1; } 80%, 100% { opacity: 0; } 100% { transform: rotateY(-178deg) translateZ(2px); } }
/* Safari doesn't reliably hide a page's back side in 3D, so each side is switched off by hand at the halfway point (edge-on, where nobody can see it). */
.real .leaf.turning.fwd .face.front, .real .leaf.turning.back .face.back { animation: sideOut .9s linear both; }
.real .leaf.turning.fwd .face.back, .real .leaf.turning.back .face.front { animation: sideIn .9s linear both; }
@keyframes sideOut { 0%, 49.9% { visibility: visible; } 50%, 100% { visibility: hidden; } }
@keyframes sideIn { 0%, 49.9% { visibility: hidden; } 50%, 100% { visibility: visible; } }
.real .leaf.past .face.front { visibility: hidden; } .real .leaf.past .face.back { visibility: visible; }
.real .leaf:not(.turning):not(.past) .face.back { visibility: hidden; }
.real .pile { transform: translateZ(-1px); }
.real .leaves { transform: translateZ(0); }
.real .book { perspective: 1500px; }
.real .thru { opacity: .05; }
@keyframes realBack { 0%, 20% { opacity: 0; } 0% { transform: rotateY(-178deg) translateZ(2px); } 50% { opacity: 1; } 50% { transform: rotateY(-90deg) translateZ(2px); } 100% { transform: translateZ(1px); } }
.real .leaf.cur:not(.turning) { animation: none; }
.cloth { display: none; }

/* ---------- Look B, "Storybook": a cloth-bound hardcover in deep navy, matte paper with a little grain ---------- */
.look-b .book { --board: #263063; --board2: #161c40; --paperc: #fffaf0; }
.look-b .face, .look-b .pile .pc { background-color: #fffaf0; }
.look-b .face.front::after, .look-b .pile .pc::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .35; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .45 0 0 0 0 .3 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }
.look-b .leaf.turning .face::after { animation: none; }
.look-b .pile .pc { position: absolute; }
/* the cover: cloth spine wrapping onto the front, a printed paper cover, no gloss */
.look-b .coverleaf .cloth { display: block; position: absolute; left: 0; top: 0; bottom: 0; width: 15%; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 1px, transparent 1px 3px), linear-gradient(90deg, #161c40, #263063 30%, #2e3a75 60%, #263063);
  box-shadow: 2px 0 0 #f2c14e, 3px 0 3px rgba(0,0,0,.3); }
.look-b .coverleaf .face.front::before { background: linear-gradient(90deg, rgba(0,0,0,0) 15%, rgba(0,0,0,.18) 16%, rgba(0,0,0,0) 22%), linear-gradient(118deg, rgba(255,255,255,.12), rgba(255,255,255,0) 30%); }
.look-b .coverleaf .face.front { box-shadow: 0 0 0 1px rgba(20,25,60,.35); }
.look-b .spine { background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px), linear-gradient(90deg, #161c40, #2e3a75 50%, #161c40); }
.look-b .spine span { color: #f2c14e; font-family: Fredoka, sans-serif; }
.look-b .case::before { background: repeating-linear-gradient(90deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px), linear-gradient(90deg, var(--board2), var(--board) 8%); }

/* Make starts with a choice: a single activity or an activity book */
.whats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wcard { display: flex; flex-direction: column; align-items: center; gap: 12px; border: 0; padding: 18px 12px 16px; border-radius: 26px; background: #fff; color: var(--ink); text-align: center; cursor: pointer; box-shadow: 0 7px 0 #e3b62c, 0 0 0 2px var(--line) inset; animation: pop .45s both; transition: transform .12s, box-shadow .12s; }
.wcard:nth-child(2) { animation-delay: .07s; }
.wcard:active { transform: translateY(5px); box-shadow: 0 2px 0 #e3b62c, 0 0 0 2px var(--line) inset; }
.wcard b { display: block; font: 700 20px/1.1 Fredoka, sans-serif; }
.wcard small { display: block; font-weight: 800; font-size: 13px; color: var(--muted); margin-top: 4px; }
.wpics { position: relative; width: 100%; height: 132px; display: block; border-radius: 18px; background: #ffe0dc; }
.wpics.book { background: #d4ecff; }
.wpics .slot { position: absolute; left: 50%; top: 50%; width: 72px; aspect-ratio: 3 / 4; border-radius: 6px; background: #fff; box-shadow: 0 0 0 2px #fff, 0 8px 14px -6px rgba(0,0,0,.35); transform: translate(-50%, -50%) rotate(-4deg); overflow: hidden; }
.wpics .slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s cubic-bezier(.45,0,.55,1); will-change: opacity; transform: translateZ(0); backface-visibility: hidden; }
.wpics .slot img.on { opacity: 1; }
.wpics.one .slot { width: 84px; }
.wpics.book .s1 { transform: translate(-95%, -48%) rotate(-12deg); }
.wpics.book .s2 { transform: translate(-5%, -48%) rotate(10deg); }
.wpics.book .s3 { transform: translate(-50%, -54%) rotate(-1deg); }
.wcard:hover .wpics .slot { animation: wig .5s; }
@keyframes wig { 40% { rotate: 4deg; } 70% { rotate: -2deg; } }
.about { display: flex; flex-direction: column; }
.about input, .about textarea { font: 700 17px Nunito, sans-serif; padding: 14px 16px; border-radius: 18px; border: 0; background: #fff; color: var(--ink); box-shadow: 0 4px 0 var(--line), 0 0 0 2px var(--line) inset; outline: none; }
.about input:focus, .about textarea:focus { box-shadow: 0 4px 0 var(--line), 0 0 0 3px var(--ink) inset; }
.about .qc.on { background: var(--ink); color: #fff; box-shadow: 0 3px 0 #000; }
.about .go { align-self: stretch; margin-top: 16px; }
.about .go:disabled { opacity: .5; }
.onedone .go.big { align-self: stretch; }
.oneacts { display: grid; gap: 10px; }
.oneacts button { border: 0; text-align: left; padding: 14px 16px; border-radius: 18px; background: #fff; color: var(--ink); font: 600 17px Fredoka, sans-serif; box-shadow: 0 5px 0 var(--line), 0 0 0 2px var(--line) inset; cursor: pointer; }
.oneacts button:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--line), 0 0 0 2px var(--line) inset; }

/* A tapped child card gives a small springy press (transform only, so it stays smooth on iPhone) */
.kid.tap { animation: kidTap .32s cubic-bezier(.3,1.6,.5,1); }
@keyframes kidTap { 0% { transform: scale(1); } 40% { transform: scale(.94); } 100% { transform: scale(1); } }

/* Activity cards: painted samples cross-fade on their own layer (opacity only, so it stays smooth on iPhone) */
.kind .kt .slot { position: relative; display: block; width: 100%; height: 100%; }
.kind .kt .slot img { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s cubic-bezier(.45,0,.55,1); transform: translateZ(0); backface-visibility: hidden; will-change: opacity; }
.kind .kt .slot img.on { opacity: 1; }

/* ---------- Motion polish: buttery on iPhone, calm with Reduce Motion ---------- */
/* Pop-ins only hold their first frame during their delay. Holding the last frame too ("both") froze transform, so presses and the fade of unchosen tiles snapped. */
.tile, .kind, .card, .chip, .shelf .sb, .door, .ask, .sk, .kid, .wcard, .dec, .mface.big { animation-fill-mode: backwards; }
/* Sample cross-fades: the new picture fades in over the old one, which stays fully shown underneath, so the white card never shows through mid-fade. */
.slot img.was, .kind .kt .slot img.was { opacity: 1; z-index: 1; transition: none; }
.slot img.on, .kind .kt .slot img.on { z-index: 2; }
/* The book opening: the spine fades away and the pages behind fade in after the cover swings, instead of popping. */
.real .spine { transition: opacity .3s; }
.real .pile { transition: opacity .45s .3s, visibility 0s .3s; }
.real .book.closed .pile { opacity: 0; transition: opacity .15s, visibility 0s .15s; }
/* A newly picked book on the shelf slides its details in softly. */
.picked.swap { animation: pickIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes pickIn { from { opacity: .4; transform: translateY(6px); } }
@keyframes fadeIn { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  /* No pops, slides, bounces, drifting or page turns. Things simply appear, with a short fade where a whole screen changes. */
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .fin, .waiting, .picked.swap { animation-name: fadeIn !important; animation-duration: .2s !important; }
  .book, .real .obj, .real .case, .leaf, .pile .pc, .tile, .kind, .kind .kt, .kid .kpick, .kidface, .kid .kidsvg, .stop .em, .sk .sc, .shelf .sc, .sw, .thumb { transition: none !important; }
  .sketchcard path { stroke-dashoffset: 0; }
  .tile:hover .em { transform: none; }
}

/* Single activities sit on the shelf as loose sheets: no spine, a little tilt and a strip of tape */
.sk.loose .sc { position: relative; border-radius: 4px; transform: rotate(var(--r, 0deg)); box-shadow: 0 6px 12px -6px rgba(0,0,0,.35), 0 0 0 1.5px #eadfc8; overflow: visible; }
.sk.loose .sc::before { content: ''; position: absolute; top: -7px; left: 50%; width: 38%; height: 14px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 207, 74, .75); border-radius: 2px; z-index: 2; }
.sk.loose .sc::after { display: none; }
.sk.loose.on .sc { transform: translateY(-8px) rotate(0); box-shadow: 0 0 0 4px var(--coral), 0 14px 18px -8px rgba(80,40,0,.55); }

/* Wren's round portraits (Home, Shelf, answers) breathe gently; on Home she gives a small hello nod first. Blinks come from app.js. Reduce Motion stops all of it. */
.mface img { transform-origin: 50% 100%; animation: mbreathe 4.2s ease-in-out infinite; }
.mface.big img { animation: hello 1.1s .45s ease-in-out backwards, mbreathe 4.2s 1.6s ease-in-out infinite; }
@keyframes mbreathe { 50% { transform: scale(1.035) translateY(1.5%); } }
@keyframes hello { 30% { transform: rotate(-5deg) translateY(2.5%); } 65% { transform: rotate(2.5deg) translateY(-1%); } }
@media (prefers-reduced-motion: reduce) { .mface img { animation: none !important; } }

/* Make's first screen: books in progress sit above the fresh choice, as small white cards in a sideways row. */
.resume { margin: 4px 0 14px; }
.rrow { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rrow::-webkit-scrollbar { display: none; }
.rcard { position: relative; flex: 0 0 min(250px, 78%); scroll-snap-align: start; animation: pop .45s both; transition: opacity .25s, transform .25s; }
.rcard:nth-child(2) { animation-delay: .06s; } .rcard:nth-child(3) { animation-delay: .12s; }
.rcard.gone { opacity: 0; transform: scale(.85); }
.rgo { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; padding: 10px 34px 10px 10px; border-radius: 22px; background: #fff; text-align: left; box-shadow: 0 6px 0 #e3b62c, 0 0 0 2px var(--line) inset; transition: transform .12s, box-shadow .12s; }
.rgo:active { transform: translateY(4px); box-shadow: 0 2px 0 #e3b62c, 0 0 0 2px var(--line) inset; }
.rpic { flex: 0 0 54px; height: 72px; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 12px -6px rgba(0,0,0,.35); transform: rotate(-3deg); }
.rpic svg, .rpic img { display: block; width: 100%; height: 100%; }
.rtx { min-width: 0; }
.rtx b { display: block; font: 700 17px/1.15 Fredoka, sans-serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rtx small { display: block; font-weight: 800; font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.rdel { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #f3ead8; color: var(--muted); font: 800 16px/1 Nunito, sans-serif; display: grid; place-items: center; }
.rdel:hover { background: var(--coral); color: #fff; }
.prompt.new { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .rcard { animation: none; transition: none; } }
/* Shelf: a chip per child, versions stacked in one spot, titles under each, versions side by side when picked. */
.skids { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.skids button { border: 0; cursor: pointer; background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 800 14px Nunito, sans-serif; box-shadow: 0 3px 0 #e3b62c; }
.skids button.on { background: var(--ink); color: #fff; box-shadow: 0 3px 0 rgba(0,0,0,.35); }
.sk .sl { display: block; margin-top: 7px; font: 800 11px/1.2 Nunito, sans-serif; color: var(--ink); text-align: center; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sk.stack .sc { box-shadow: 4px 4px 0 -1px #fff, 4px 4px 0 0 #e7dcc4, 8px 8px 0 -1px #fff, 8px 8px 0 0 #e7dcc4, 0 10px 14px -8px rgba(80,40,0,.55); }
.sk.stack.on .sc { box-shadow: 0 0 0 4px var(--coral), 4px 4px 0 3px #fff, 0 14px 18px -8px rgba(80,40,0,.55); }
.sk .vn { position: absolute; top: -8px; right: -6px; z-index: 3; min-width: 24px; height: 24px; border-radius: 12px; background: var(--coral); color: #fff; font: 800 13px/24px Nunito, sans-serif; font-style: normal; text-align: center; box-shadow: 0 2px 0 var(--coral2); }
.shbar { position: sticky; z-index: 15; bottom: calc(86px + env(safe-area-inset-bottom)); margin-top: 10px; background: #fff; border-radius: 18px; padding: 8px 10px 10px; box-shadow: 0 4px 0 #e3b62c, 0 10px 30px -8px rgba(80,40,0,.45); }
.shbar[hidden] { display: none; }
.shbar.swap { animation: pickIn .28s cubic-bezier(.2,.8,.2,1); }
.shbar .picked { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; background: none; box-shadow: none; padding: 0; border-radius: 0; }
.shbar .pt { flex: 1; min-width: 0; }
.shbar .pt b { display: block; font: 700 16px/1.2 Fredoka, sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shbar .pt small { display: block; font: 700 12px Nunito, sans-serif; opacity: .6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shx { flex: none; border: 0; background: #f3ead6; color: var(--ink); width: 28px; height: 28px; border-radius: 50%; font: 800 13px Nunito, sans-serif; cursor: pointer; }
.vstrip { flex: 1 0 100%; display: flex; gap: 6px; overflow-x: auto; padding: 6px 2px 4px; scrollbar-width: none; }
.vstrip::-webkit-scrollbar { display: none; }
.vth { position: relative; flex: none; width: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.vth .sc { display: block; aspect-ratio: 3/4; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1.5px #e3d6b6; }
.vth .sc svg { display: block; width: 100%; height: 100%; }
.vth.on .sc { box-shadow: 0 0 0 2.5px var(--coral); }
.vth i { position: absolute; right: -3px; bottom: -3px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--ink); color: #fff; font: 800 9px/15px Nunito, sans-serif; font-style: normal; text-align: center; padding: 0 2px; }
.vth.on i { background: var(--coral); }
.vth.hid { opacity: .4; }
.shbar .acts { position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1.5fr auto; gap: 6px; margin-top: 6px; }
.shbar .acts > button { padding: 8px 4px; font: 800 13px Nunito, sans-serif; border-radius: 12px; white-space: nowrap; box-shadow: 0 3px 0 #e3b62c, 0 0 0 1.5px #f0e2bd inset; }
.shbar .acts .a1 { box-shadow: 0 3px 0 var(--coral2); }
.shbar #shMore { width: 38px; font-size: 18px; line-height: 1; }
.shmenu { position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 2; min-width: 210px; background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 10px 28px -6px rgba(0,0,0,.35), 0 0 0 1.5px #f0e2bd; }
.shmenu[hidden] { display: none; }
.shmenu button { display: block; width: 100%; text-align: left; border: 0; background: none; box-shadow: none !important; padding: 10px; border-radius: 10px; font: 800 14px Nunito, sans-serif; color: var(--ink); cursor: pointer; }
.shmenu button:hover { background: #f8f1e0; } .shmenu button:disabled { opacity: .4; }
.shmenu p { margin: 8px 10px; font: 700 13px Nunito, sans-serif; opacity: .6; }
.acts.four { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.acts button:disabled { opacity: .5; }
.about textarea { resize: vertical; line-height: 1.35; }
.fin.one #scanGo { margin-top: 16px; }

/* Another version: the pictures it should look like; tap to leave one out. */
.refpick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 4px 0 6px; }
.refpick .rp { position: relative; border: 0; padding: 4px; background: #fff; border-radius: 12px; cursor: pointer; color: var(--ink); opacity: .4; box-shadow: 0 0 0 2px var(--line) inset; transition: opacity .15s; }
.refpick .rp.on { opacity: 1; box-shadow: 0 0 0 3px var(--coral) inset; }
.refpick .rp img { display: block; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; background: #fff; }
.refpick .rp small { display: block; font: 800 10px/1.2 Nunito, sans-serif; margin-top: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.refpick .rp .tick { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--line); }
.refpick .rp.on .tick { background: var(--coral); box-shadow: none; }
.refpick .rp.on .tick::after { content: '✓'; color: #fff; font: 800 12px/18px Nunito, sans-serif; display: block; text-align: center; }
.about .prompt small { font-weight: 600; opacity: .6; }

.vchips button.hid { opacity: .55; text-decoration: line-through; }
.vchips .showhid { background: none; box-shadow: 0 0 0 1.5px #e3d6b6 inset; }
