/* Little Gopal Play (ages 4–6): child shell and activities. Child controls are at least 60 px; main picture targets
   at least 80 px with 12 px gaps (PRD §8). Brand tokens come from app.css. */

:root { --gold: var(--saffron); --soft-green: #5EA58C; }

/* ---------- child shell replaces the site chrome ---------- */
body.play-mode .site-header, body.play-mode .site-footer, body.play-mode .proto-ribbon { display: none !important; }
body.play-mode { background: var(--cream); }
body.play-mode #app { min-height: 100vh; min-height: 100dvh; }
.play-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); padding-bottom: env(safe-area-inset-bottom, 0px); }
.play-bar { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; position: sticky; top: 0; z-index: 30; background: rgba(255, 248, 236, .96); border-bottom: 1px solid rgba(205, 214, 224, .6); }
.pbar-btn { width: 60px; height: 60px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 18px; border: 2px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer; text-decoration: none; }
.pbar-btn .icon { width: 28px; height: 28px; }
.pbar-btn:hover { border-color: var(--krishna-blue); color: var(--krishna-blue); }
.pbar-btn[aria-pressed="false"] { color: var(--muted); }
.pbar-btn.grown { width: 48px; height: 48px; border-radius: 14px; opacity: .8; }
.pbar-btn.grown .icon { width: 20px; height: 20px; }
.pbar-btn.attention { box-shadow: 0 0 0 4px var(--gold); animation: lg-pulse 1.4s ease-in-out infinite; }
.pbar-mid { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; justify-content: center; }
.pbar-pic { width: 44px; height: 44px; flex: 0 0 auto; }
.pbar-pic svg, .pbar-pic img { width: 100%; height: 100%; }
.pbar-title { font: 800 20px/24px var(--font-display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pbar-right { display: flex; align-items: center; gap: 8px; }
.draft-voice { font: 700 11px/14px var(--font-display); color: #8A5A00; background: var(--gold-wash); border: 1px solid #F0D79A; padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.play-main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 16px 16px 8px; display: flex; flex-direction: column; }
.play-caption { position: sticky; bottom: 0; margin: 0; min-height: 52px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 1px solid var(--border); font: 700 22px/28px var(--font-display); color: var(--ink); text-align: center; }
.play-caption:empty::before { content: '\00a0'; }

/* ---------- shared child buttons ---------- */
.pbtn { min-width: 60px; min-height: 60px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; border-radius: 20px; border: 3px solid var(--krishna-blue); background: var(--krishna-blue); color: #fff; font: 800 20px/1 var(--font-display); cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.pbtn .icon { width: 26px; height: 26px; }
.pbtn:hover { background: var(--krishna-blue-dark); color: #fff; }
.pbtn.alt { background: var(--white); color: var(--krishna-blue); }
.pbtn.alt:hover { background: var(--sky-wash); color: var(--krishna-blue); }
.pbtn.done { background: var(--leaf); border-color: var(--leaf); }
.pbtn.big { min-height: 76px; padding: 12px 24px; font-size: 22px; }
.pbtn.huge { min-height: 96px; min-width: 200px; padding: 16px 36px; font-size: 30px; border-radius: 28px; }
.pbtn.huge .icon { width: 40px; height: 40px; }
.pbtn.tool, .pbtn.sound-btn { background: var(--white); color: var(--ink); border-color: var(--border); font-size: 18px; }
.pbtn.tool:hover, .pbtn.sound-btn:hover { border-color: var(--krishna-blue); color: var(--krishna-blue); background: var(--white); }
.pbtn.off { opacity: .35; pointer-events: none; }
.pbtn.nudge { box-shadow: 0 0 0 4px var(--gold); }
.pbtn[aria-pressed="true"] { background: var(--sky-wash); border-color: var(--krishna-blue); color: var(--krishna-blue); }
.icon.flip { transform: scaleX(-1); }
.btn-pair, .btn-row-child { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.tool-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 4px 0 14px; }
.child-line { font: 800 26px/32px var(--font-display); color: var(--ink); text-align: center; margin: 8px 0 16px; }
.adult-note { font: 400 15px/22px var(--font-body); color: var(--ink-soft); background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px; margin: 16px auto 0; max-width: 560px; text-align: left; }
.adult-note summary { cursor: pointer; font-weight: 700; color: var(--krishna-blue); }
.adult-note .icon { width: 16px; height: 16px; vertical-align: -3px; }
.meta-adult { font: 600 14px var(--font-body); color: var(--ink-soft); }
:where(.play-shell) :focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }

/* ---------- guide ---------- */
.guide-svg, .guide-art img { width: 100%; height: auto; display: block; }
.guide-svg.hop { animation: lg-hop .6s ease-out 1; }
.guide-corner { width: 110px; position: fixed; right: 12px; bottom: 76px; pointer-events: none; opacity: .95; }
.guide-sm { width: 110px; margin: 0 auto; }
.intro .guide-svg, .intro .guide-art { width: 150px; margin: 0 auto; display: block; }
.closing-art { width: 220px; margin: 0 auto; }

/* ---------- entry ---------- */
.entry { flex: 1; display: grid; place-items: center; align-content: center; gap: 20px; text-align: center; padding: 20px 0; }
.entry-art { width: min(320px, 70vw); }
.entry-art img { border-radius: 28px; }
.entry-sound { color: var(--ink-soft); font-size: 16px; display: inline-flex; gap: 8px; align-items: center; }
.entry-adult { font-size: 16px; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- world ---------- */
.world { position: relative; padding-bottom: 24px; }
@media (min-width: 901px) { .world { padding-right: 110px; } }
.continue-row, .starters { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }
.ptile { min-height: 72px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px; border-radius: 22px; background: var(--krishna-blue); color: #fff; border: 3px solid var(--krishna-blue); font: 800 22px var(--font-display); text-decoration: none; }
.ptile:hover { color: #fff; background: var(--krishna-blue-dark); }
.ptile.alt { background: var(--white); color: var(--krishna-blue); }
.ptile.mini { background: var(--white); color: var(--ink); border-color: var(--border); font-size: 18px; }
.ptile.mini .obj-svg, .ptile.mini .obj-art { width: 44px; height: 44px; }
.ptile .icon { width: 30px; height: 30px; }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.place-tile { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--tint, var(--white)); border: 3px solid var(--border); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft); transition: transform var(--motion), border-color var(--motion); }
.place-tile:hover { transform: translateY(-2px); border-color: var(--krishna-blue); }
.place-art { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.place-art img, .place-art .art, .place-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-name { font: 800 22px/26px var(--font-display); padding: 12px 14px; text-align: center; min-height: 60px; display: grid; place-items: center; }
.journeys-tile { margin: 18px auto 0; display: flex; width: fit-content; background: var(--white); color: var(--krishna-blue); }
.journeys-tile:hover { color: var(--white); }
@media (max-width: 900px) { .places { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-corner { display: none; } }
@media (max-width: 380px) { .place-name { font-size: 19px; } }

/* ---------- place / activity tiles ---------- */
.place-banner { border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 7; margin-bottom: 16px; background: var(--tint); }
.place-banner img, .place-banner .art, .place-banner svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.acts.n1 { grid-template-columns: minmax(0, 420px); justify-content: center; }
.act-tile { min-height: 150px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: 24px; background: var(--white); border: 3px solid var(--border); text-decoration: none; color: var(--ink); font: 800 21px/26px var(--font-display); text-align: center; }
.act-tile:hover { border-color: var(--krishna-blue); color: var(--krishna-blue); }
.act-tile .obj-svg, .act-tile .obj-art { width: 92px; height: 92px; }
.tile-scene { width: 100%; max-width: 240px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; display: block; }
.tile-scene img, .tile-scene .art, .tile-scene svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.jpics { display: flex; gap: 6px; justify-content: center; }
.jpics > * { width: 64px !important; height: 64px !important; max-width: 64px; aspect-ratio: 1 / 1; }
.journeys.acts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .journeys.acts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 380px) { .acts { grid-template-columns: 1fr; } .journeys.acts { grid-template-columns: 1fr; } }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.pager-dots, .scene-count { display: inline-flex; gap: 8px; }
.pager-dots i, .scene-count i { width: 12px; height: 12px; border-radius: 50%; background: var(--border); }
.pager-dots i.now, .scene-count i.now { background: var(--krishna-blue); }
.scene-count i.done { background: var(--soft-green, #5EA58C); }

/* ---------- activity frame ---------- */
.act { display: flex; flex-direction: column; flex: 1; }
.act-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.act-dots, .jdots { display: flex; gap: 10px; justify-content: center; flex: 1; }
.dot { width: 16px; height: 16px; border-radius: 50%; background: var(--border); }
.dot.done { background: var(--leaf); }
.dot.now { background: var(--krishna-blue); box-shadow: 0 0 0 4px var(--sky-wash); }
.act-stage { flex: 1; position: relative; }
.intro { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 8px 0 16px; }
.intro-pic { width: 160px; }
.intro-pic .obj-svg, .intro-pic .obj-art { width: 100%; height: auto; }

/* ---------- choices ---------- */
.choices { display: grid; gap: 14px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); max-width: 760px; margin: 0 auto; }
.choices.n1 { --cols: 1; max-width: 300px; } .choices.n2 { --cols: 2; max-width: 520px; } .choices.n3 { --cols: 3; } .choices.n4 { --cols: 4; }
@media (max-width: 720px) { .choices.n4 { --cols: 2; } }
@media (max-width: 400px) { .choices.n3 { --cols: 2; } }
.pchoice { min-height: 120px; min-width: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px; border-radius: 22px; border: 3px solid var(--border); background: var(--white); color: var(--ink); cursor: pointer; position: relative; box-shadow: 0 2px 0 rgba(22, 50, 79, .06); -webkit-tap-highlight-color: transparent; }
.pchoice:hover { border-color: var(--krishna-blue); }
.pchoice .obj-svg, .pchoice .obj-art { width: 96px; height: 96px; }
.pchoice .obj-art img { width: 100%; height: 100%; object-fit: contain; }
.pchoice-label { font: 700 16px/20px var(--font-display); color: var(--ink-soft); text-align: center; }
.pchoice[aria-pressed="true"] { border-color: var(--krishna-blue); background: var(--sky-wash); box-shadow: 0 0 0 4px rgba(36, 87, 167, .18); }
.pchoice.right, .slot.right { border-color: var(--leaf); background: #EAF5ED; }
.pchoice.right::after { content: ''; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 18px no-repeat; }
.pchoice.revealed { border-color: var(--gold); box-shadow: 0 0 0 6px rgba(244, 181, 68, .35); }
.pchoice:disabled { opacity: .55; cursor: default; }
.confirm-row { display: flex; justify-content: center; margin-top: 14px; }
.hint-glow { box-shadow: 0 0 0 6px rgba(244, 181, 68, .55) !important; border-color: var(--gold) !important; }
.demo-point { animation: lg-demo 1.1s ease-in-out 2; box-shadow: 0 0 0 6px rgba(244, 181, 68, .7) !important; border-color: var(--gold) !important; position: relative; }
.demo-point::before { content: ''; position: absolute; left: 50%; top: -34px; width: 30px; height: 30px; margin-left: -15px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 22 L4 10 h5 V2 h6 v8 h5z' fill='%232457A7'/%3E%3C/svg%3E") center / contain no-repeat; z-index: 2; }
.nope { animation: lg-nudge .4s ease-in-out 1; }

/* ---------- GAME02 counting ---------- */
.meadow { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 14px; border-radius: 24px; background: linear-gradient(#EAF2FF, #EAF5ED 60%); margin-bottom: 8px; }
.herd { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; padding: 8px; border-radius: 18px; }
.meadow .herd + .herd { border-left: 3px dashed rgba(35, 113, 91, .35); padding-left: 18px; }
.calf-btn { width: 96px; height: 96px; position: relative; border-radius: 20px; border: 3px solid transparent; background: rgba(255, 255, 255, .6); cursor: pointer; padding: 4px; }
.calf-btn .obj-svg, .calf-btn .obj-art { width: 100%; height: 100%; }
.calf-btn.counted { border-color: var(--leaf); background: #fff; }
.count-badge { position: absolute; top: -10px; right: -10px; min-width: 32px; height: 32px; border-radius: 16px; background: var(--leaf); color: #fff; font: 800 18px/32px var(--font-display); display: none; }
.calf-btn.counted .count-badge { display: block; }
.numcard .numeral { font: 800 44px/1 var(--font-display); color: var(--krishna-blue); }
.qdots { display: grid; grid-template-columns: repeat(5, 12px); gap: 6px; justify-content: center; }
.qdots i { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); }

/* ---------- GAME03 garland, order slots ---------- */
.sample-row { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 10px; padding: 8px 14px; border-radius: 18px; background: var(--white); border: 2px dashed var(--border); width: fit-content; margin-inline: auto; }
.sample-tag .icon { width: 26px; height: 26px; color: var(--gold); }
.mini { width: 60px; height: 60px; display: inline-block; }
.mini svg { width: 100%; height: 100%; }
.garland, .order-slots { list-style: none; padding: 16px 10px; margin: 0 auto 16px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; border-radius: 22px; background: var(--white); border: 2px solid var(--border); max-width: 900px; }
.garland { background: radial-gradient(ellipse at top, #EAF5ED, #fff 70%); }
.slot { width: 84px; height: 84px; border-radius: 20px; border: 3px dashed var(--krishna-blue); background: var(--sky-wash); cursor: pointer; padding: 6px; position: relative; display: grid; place-items: center; }
.slot.filled { border-style: solid; border-color: var(--leaf); background: #fff; cursor: default; }
.slot svg, .slot .obj-art { width: 100%; height: 100%; }
.slot-num { position: absolute; top: 4px; left: 8px; font: 800 18px var(--font-display); color: var(--krishna-blue); }
.order-slots .slot { width: 120px; height: 120px; }
.order-slots .slot .scene-thumb { width: 100%; height: 100%; }
.tray .pchoice.used { opacity: .3; }
.scene-thumb { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.scene-thumb img, .scene-thumb .art, .scene-thumb svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-choices .pchoice { padding: 8px; }
@media (max-width: 480px) { .slot { width: 64px; height: 64px; } .order-slots .slot { width: 96px; height: 96px; } }

/* ---------- stories ---------- */
.scene { margin: 0 auto 12px; max-width: 760px; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--sky-wash); }
.scene img, .scene .art, .scene svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.scene-nav { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.q-scene { max-width: 340px; margin: 0 auto 14px; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; }
.q-scene img, .q-scene .art, .q-scene svg { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1000px) and (min-height: 760px) { .scene { max-width: 700px; } }

/* ---------- GAME05, 09, 11, 12 scenes ---------- */
.help-scene, .fest-item { width: 180px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 24px; background: var(--white); border: 3px solid var(--border); padding: 10px; position: relative; }
.help-scene.target { border: 3px dashed var(--krishna-blue); cursor: pointer; min-height: 80px; }
.obj-svg.big, .obj-art.big { width: 150px; height: 150px; }
.placed { position: absolute; right: -10px; bottom: -10px; width: 70px; height: 70px; background: #fff; border-radius: 50%; border: 3px solid var(--leaf); padding: 6px; }
.placed svg { width: 100%; height: 100%; }
.kind-scene { display: flex; justify-content: center; margin-bottom: 10px; }
.kind-friend { width: 130px; height: 130px; display: block; }
.kind-friend svg { width: 100%; height: 100%; }
.share-plate { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 14px; border-radius: 50%; background: radial-gradient(#F4B544 0 55%, #C8902F 56% 60%, transparent 61%); width: min(420px, 100%); margin: 0 auto 14px; min-height: 140px; align-items: center; }
.sweet { width: 72px; height: 72px; border-radius: 50%; border: 3px solid transparent; background: transparent; cursor: pointer; padding: 0; }
.sweet[aria-pressed="true"] { border-color: var(--krishna-blue); background: var(--sky-wash); }
.sweet.given { visibility: hidden; }
.sweet svg { width: 100%; height: 100%; }
.friends { display: grid; gap: 12px; grid-template-columns: repeat(var(--fc, 2), minmax(0, 1fr)); max-width: 720px; margin: 0 auto 14px; }
.friends.n3 { --fc: 3; } .friends.n4 { --fc: 4; }
@media (max-width: 520px) { .friends.n4, .friends.n3 { --fc: 2; } }
.friend { min-height: 150px; border-radius: 22px; border: 3px solid var(--border); background: var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; padding: 8px; }
.friend .obj-svg { width: 90px; height: 90px; }
.has { display: flex; gap: 2px; min-height: 36px; }
.has svg { width: 34px; height: 34px; }

/* ---------- GAME06 memory ---------- */
.memory { display: grid; gap: 12px; grid-template-columns: repeat(var(--mc, 4), minmax(0, 120px)); justify-content: center; }
.memory.n4 { --mc: 2; } .memory.n6 { --mc: 3; } .memory.n8 { --mc: 4; }
@media (max-width: 520px) { .memory.n8 { --mc: 2; } }
.mcard { aspect-ratio: 1 / 1; min-width: 80px; border-radius: 20px; border: 3px solid var(--border); background: var(--krishna-blue); cursor: pointer; position: relative; padding: 0; overflow: hidden; }
.mcard .mface, .mcard .mback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; transition: opacity 200ms; }
.mcard .mface { background: #fff; opacity: 0; }
.mcard .mback { opacity: .35; }
.mcard.up .mface { opacity: 1; }
.mcard.done { border-color: var(--leaf); }
.mcard svg { width: 100%; height: 100%; }

/* ---------- GAME07 music ---------- */
.beat-strip { list-style: none; padding: 10px; margin: 0 auto 16px; display: flex; gap: 10px; justify-content: center; border-radius: 20px; background: var(--white); border: 2px solid var(--border); width: fit-content; }
.beat { width: 64px; height: 64px; border-radius: 16px; border: 3px solid var(--border); padding: 6px; background: #fff; }
.beat svg { width: 100%; height: 100%; }
.beat.now { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(244, 181, 68, .45); }
.beat.ok { border-color: var(--leaf); background: #EAF5ED; }
.free .beat-strip { opacity: .3; }
.pads { display: grid; gap: 14px; grid-template-columns: repeat(var(--pc, 3), minmax(0, 200px)); justify-content: center; }
.pads.n1 { --pc: 1; } .pads.n2 { --pc: 2; } .pads.n3 { --pc: 3; }
@media (max-width: 480px) { .pads.n3 { --pc: 2; } }
.pad { min-height: 150px; border-radius: 26px; border: 3px solid var(--border); background: var(--white); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; }
.pad .obj-svg { width: 100px; height: 100px; }
.pad.lit { border-color: var(--gold); background: var(--gold-wash); transform: scale(.97); }

/* ---------- songs ---------- */
.song { display: grid; gap: 16px; justify-items: center; }
.song-art { width: min(360px, 100%); border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--white); display: grid; place-items: center; }
.song-art img { width: 100%; height: 100%; object-fit: cover; }
.song-actions { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 120px)); }
@media (max-width: 520px) { .song-actions { grid-template-columns: repeat(2, minmax(0, 120px)); } }
.song-act { border-radius: 20px; border: 3px solid var(--border); background: #fff; padding: 8px; text-align: center; }
.song-act svg { width: 80px; height: 80px; }
.song-act.now { border-color: var(--gold); background: var(--gold-wash); }
.audio-note { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--gold-wash); color: var(--ink); font-size: 14px; line-height: 20px; max-width: 560px; }
.lyrics-mini p { margin: 4px 0; }

/* ---------- GAME10 create ---------- */
.create-wrap { display: grid; gap: 16px; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); align-items: start; }
@media (max-width: 860px) { .create-wrap { grid-template-columns: 1fr; } }
.picture { position: relative; border-radius: 20px; overflow: hidden; border: 3px solid var(--border); background: #fff; aspect-ratio: 4 / 3; }
.picture svg { width: 100%; height: 100%; display: block; }
.picture .region.live { cursor: pointer; }
.picture .region.live:focus-visible { outline: none; stroke: var(--focus); stroke-width: 6; }
.stamp { position: absolute; width: 16%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); pointer-events: none; }
.stamp svg, .stamp .obj-art { width: 100%; height: 100%; }
.spot { position: absolute; width: 60px; height: 60px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed var(--krishna-blue); background: rgba(234, 242, 255, .7); cursor: pointer; }
.create-tools { display: grid; gap: 14px; }
.palette, .stamps { display: flex; flex-wrap: wrap; gap: 12px; padding: 12px; border-radius: 20px; background: var(--white); border: 2px solid var(--border); }
.swatch { width: 64px; height: 64px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--border); cursor: pointer; }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 5px var(--krishna-blue); }
.stampbtn { width: 72px; height: 72px; border-radius: 18px; border: 3px solid var(--border); background: #fff; cursor: pointer; padding: 6px; }
.stampbtn[aria-pressed="true"] { border-color: var(--krishna-blue); background: var(--sky-wash); }
.stampbtn svg { width: 100%; height: 100%; }
.shelf { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.shelf.small { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.shelf li { display: grid; gap: 6px; }
.picture.thumb { border-width: 2px; }

/* ---------- pause, completion, closing ---------- */
.pause-overlay { position: fixed; inset: 0; z-index: 50; background: rgba(22, 50, 79, .55); display: grid; place-items: center; padding: 16px; }
.pause-card { background: var(--cream); border-radius: 30px; padding: 24px; width: min(560px, 100%); text-align: center; }
.pause-card .guide-svg { width: 120px; margin: 0 auto; }
.choice-pause, .complete-card, .closing { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 16px 0; }
.overlay-box { position: absolute; inset: 0; background: rgba(255, 248, 236, .97); border-radius: 20px; align-content: center; z-index: 5; }
.bloom { width: 120px; height: 120px; }
.bloom svg { width: 100%; height: 100%; }
.bloom.bloom svg { animation: lg-bloom 1.6s ease-out 1; }
.closing .child-line { font-size: 30px; }
.invite { text-align: left; }
.group-next { display: flex; justify-content: center; margin-top: 16px; }

/* ---------- journeys ---------- */
.jsteps { list-style: none; padding: 0; margin: 0; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.jsteps li { width: 150px; display: grid; justify-items: center; gap: 6px; padding: 10px; border-radius: 20px; background: #fff; border: 2px solid var(--border); position: relative; }
.jsteps li > svg, .jsteps li > .obj-art, .jsteps .tile-scene { width: 100px; height: 100px; }
.jnum { position: absolute; top: 6px; left: 10px; font: 800 20px var(--font-display); color: var(--krishna-blue); }
.journey-run { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.jstage { flex: 1; }
.transition .intro-pic { width: 140px; }

/* ---------- group mode (teacher-launched, shared screen) ---------- */
.play-shell.group .play-main { max-width: 1400px; }
.play-shell.group .pchoice { min-height: 170px; }
.play-shell.group .pchoice .obj-svg, .play-shell.group .pchoice .obj-art { width: 140px; height: 140px; }
.play-shell.group .play-caption { font-size: 30px; line-height: 38px; }
.group-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; margin-bottom: 14px; padding: 8px 12px; border-radius: 14px; background: var(--white); border: 1px solid var(--border); }

/* ---------- Discover hub: two large choices (PRD §6) ---------- */
.play-choice-sec { padding: 8px 0 0 !important; }
.play-choice { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .play-choice { grid-template-columns: 1fr; } }
.play-choice-tile { display: flex; gap: 16px; align-items: center; padding: 18px 22px; border-radius: 26px; text-decoration: none; color: var(--ink); border: 3px solid var(--border); background: var(--white); min-height: 120px; }
.play-choice-tile.play { background: var(--krishna-blue); border-color: var(--krishna-blue); color: #fff; }
.play-choice-tile.play:hover { background: var(--krishna-blue-dark); color: #fff; }
.play-choice-tile.adult:hover { border-color: var(--krishna-blue); }
.play-choice-tile strong { display: block; font: 800 28px/32px var(--font-display); }
.play-choice-tile span span { font-size: 16px; line-height: 22px; display: block; margin-top: 4px; }
.pc-art { width: 84px; height: 84px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 22px; background: rgba(255, 255, 255, .92); }
.pc-art .guide-svg { width: 76px; }
.pc-art .icon { width: 44px; height: 44px; color: var(--krishna-blue); }

/* ---------- grown-up pages ---------- */
.pp-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
@media (max-width: 900px) { .pp-grid { grid-template-columns: minmax(0, 1fr); } }
.pp-grid > * { min-width: 0; }
.pp-grid .select, .pp-grid .input { max-width: 100%; width: 100%; }
.faq { border-top: 1px solid var(--border); padding: 10px 0; }
.faq summary { cursor: pointer; font: 700 17px var(--font-display); }
.faq p { margin: 8px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex: 0 0 auto; }
.seg-radio { position: relative; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 10px; font-weight: 700; }
.seg-radio input:checked + span { background: var(--krishna-blue); color: #fff; }
.seg-radio input:focus-visible + span { outline: 3px solid var(--focus); }
.starter-grid { display: grid; gap: 2px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 520px) { .starter-grid { grid-template-columns: 1fr; } }
.history { padding-left: 1.2em; }
.history li { margin: 6px 0; }
.pp-list { padding-left: 1.2em; }
.pp-list li { margin: 4px 0; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts dt { font: 700 14px var(--font-display); color: var(--muted); }
.facts dd { margin: 2px 0 0; }
.facts ul { margin: 4px 0 0; padding-left: 1.2em; }

/* ---------- companion print sheet ---------- */
.companion .comp-grid { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; margin: 10px 0 14px; }
.companion .comp-art svg { width: 120px; height: 120px; }
.companion h2 { font-size: 18pt; margin: 10px 0 6px; }
.companion .comp-steps li { font-size: 14pt; margin: 6px 0; }

/* ---------- motion ---------- */
@keyframes lg-pulse { 50% { box-shadow: 0 0 0 8px rgba(244, 181, 68, .35); } }
@keyframes lg-hop { 30% { transform: translateY(-8px); } 60% { transform: translateY(0); } }
@keyframes lg-demo { 50% { transform: scale(1.06); } }
@keyframes lg-nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes lg-bloom { 0% { transform: scale(.4) rotate(-20deg); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
body.play-reduced *, body.play-reduced *::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .play-shell *, .play-shell *::before { animation: none !important; transition: none !important; } }
.bloom.static svg { animation: none; }

/* ---------- small phones (PRD §8: 320 px keeps 60 px targets through reflow) ---------- */
@media (max-width: 420px) {
  .play-bar { gap: 6px; padding-inline: 8px; }
  .pbar-title { font-size: 17px; }
  .draft-voice { display: none; }
  .play-main { padding-inline: 10px; }
  .pchoice { min-height: 104px; }
  .pchoice .obj-svg, .pchoice .obj-art { width: 76px; height: 76px; }
  .pbtn.huge { min-width: 160px; font-size: 26px; }
  .guide-corner { width: 84px; }
  .play-caption { font-size: 19px; line-height: 25px; }
}
@media (max-width: 340px) { .pbar-btn.grown { width: 44px; } .pbar-mid { display: none; } }
@media print { .play-bar, .play-caption, .guide-corner { display: none !important; } }
