/* Sticker Safari: Powell Play Kids look (kids-brand.md). Light and bright, big rounded tiles, 64px+ targets. */
:root {
  --lime: #C7F000; --lime-d: #8FAE00;
  --sky: #4FC3FF; --sky-d: #1E8FCC;
  --sunny: #FFD23F; --sunny-d: #D9A600;
  --berry: #FF5FA2; --berry-d: #D02F73;
  --grape: #8B6CFF; --grape-d: #5B3FD6;
  --night: #1B1A3A; --cloud: #FFFDF6;
  --ink: #1B1A3A; --soft: rgba(27, 26, 58, .65);
  --r: 28px;
  --shadow: 0 6px 0 rgba(27, 26, 58, .12), 0 14px 30px rgba(27, 26, 58, .12);
  --font: 'Fredoka', 'Nunito', ui-rounded, system-ui, sans-serif;
  --track: 0;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font); color: var(--ink); letter-spacing: var(--track);
  background: radial-gradient(120% 90% at 50% 0%, #D9F2FF 0%, var(--cloud) 60%) fixed, var(--cloud);
  overscroll-behavior: none; -webkit-user-select: none; user-select: none; touch-action: manipulation;
}
body.wide { --track: .08em; word-spacing: .2em; }
#app { min-height: 100dvh; }
button { font: inherit; color: inherit; letter-spacing: inherit; }
img { -webkit-user-drag: none; }

.screen { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: max(12px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom)); position: relative; overflow: hidden; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font-size: clamp(24px, 4.2vw, 36px); font-weight: 700; text-align: center; }
.row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }

/* buttons */
.btn { min-height: 64px; min-width: 64px; padding: 0 26px; border-radius: 999px; border: 4px solid var(--night); background: #fff; font-size: 22px; font-weight: 600; cursor: pointer; box-shadow: 0 5px 0 var(--night); transition: transform .12s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn:active, .card:active, .pickcard:active, .scenecard:active, .chip:active { transform: scale(.94); }
.btn:disabled { opacity: .45; cursor: default; box-shadow: none; }
.btn.primary { background: var(--lime); }
.btn.secondary { background: var(--sky); }
.btn.ghost { background: rgba(255, 255, 255, .85); border-width: 3px; box-shadow: none; font-size: 18px; padding: 0 18px; }
.btn.round { padding: 0; width: 64px; border-radius: 50%; font-size: 26px; }
.btn.huge { min-height: 88px; font-size: 32px; padding: 0 40px; border-radius: 32px; }
.btn .ico { font-size: .8em; }
.btn.grownups { min-height: 48px; min-width: 48px; font-size: 16px; padding: 0 16px; border-width: 3px; box-shadow: none; background: rgba(255, 255, 255, .9); }
.btn.easier { background: var(--sunny); font-size: 18px; padding: 0 18px; }
.btn:focus-visible, .card:focus-visible, .pickcard:focus-visible, .chip:focus-visible, .scenecard:focus-visible { outline: 4px solid var(--grape); outline-offset: 3px; }

.topbar { width: 100%; max-width: 1200px; display: flex; justify-content: space-between; align-items: center; gap: 10px; z-index: 2; }
.pill { background: #fff; border: 3px solid var(--night); border-radius: 999px; padding: 6px 14px; font-weight: 600; }

/* home */
.home { justify-content: center; }
.home .topbar { position: absolute; top: max(12px, env(safe-area-inset-top)); left: 16px; right: 16px; width: auto; }
.hero { display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 1; }
.pip-hero { width: clamp(150px, 28vh, 260px); filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .15)); animation: bob 4s ease-in-out infinite; }
.logo { font-size: clamp(48px, 10vw, 96px); font-weight: 700; display: flex; gap: .25em; flex-wrap: wrap; justify-content: center; line-height: 1; }
.logo span { color: #fff; -webkit-text-stroke: 4px var(--night); paint-order: stroke fill; text-shadow: 0 6px 0 var(--night); }
.logo span:first-child { color: var(--sunny); }
.logo span:last-child { color: var(--lime); }
.who { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 600; z-index: 1; }
.who img { width: 52px; }
.profiles { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; z-index: 1; }
.chip-avatar { min-height: 64px; display: flex; align-items: center; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px; border: 3px solid var(--night); background: #fff; cursor: pointer; font-size: 18px; }
.chip-avatar img { width: 46px; }
.chip-avatar.add b { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 28px; }
/* Studio marks (studio-mark.md sections 2 to 4, Kids lockup) */
.pp-home-studio { display: block; width: 104px; margin: 24px auto calc(16px + env(safe-area-inset-bottom, 0px)); padding: 6px; z-index: 1; }
.pp-home-mark { display: block; width: 104px; height: auto; opacity: .55; transition: opacity .15s; }
.pp-home-studio:hover .pp-home-mark { opacity: .9; }
.pp-loading { position: fixed; inset: 0; z-index: 100; background: radial-gradient(120% 90% at 50% 0%, #D9F2FF 0%, var(--cloud) 60%); display: grid; place-items: center; transition: opacity .3s; }
.pp-loading.gone { opacity: 0; pointer-events: none; }
.pp-loading .pp-logo { width: min(320px, 60vw); }
.pp-fade { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(to bottom, transparent, rgba(79, 195, 255, .69)); }
.pp-studio { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(3.5vh + env(safe-area-inset-bottom, 0px)); width: clamp(140px, 34vmin, 280px); height: auto; opacity: .92; animation: pp-in .25s ease-out both; }
@keyframes pp-in { from { opacity: 0; } }
.gcredit { text-align: center; padding: 16px 16px 32px; font-size: 13px; color: rgba(244, 242, 255, .7); }
.gcredit img { width: 120px; opacity: .7; display: block; margin: 0 auto 8px; }
.gcredit p { margin: 2px 0; }
.gcredit a { color: var(--lime); }
.floaties i { position: absolute; bottom: -80px; width: 70px; height: 70px; border-radius: 26px; opacity: .22; animation: floatup 18s linear infinite; }
@keyframes floatup { to { transform: translateY(-120vh) rotate(200deg); } }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* setup and pickers */
.pickgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px; width: 100%; max-width: 820px; }
.pickgrid.two { grid-template-columns: repeat(2, minmax(0, 260px)); justify-content: center; }
.pickgrid.three { grid-template-columns: repeat(3, minmax(0, 220px)); justify-content: center; }
.pickcard { min-height: 96px; border-radius: var(--r); border: 4px solid rgba(27, 26, 58, .18); background: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; padding: 10px; font-size: 22px; font-weight: 600; transition: transform .12s; }
.pickcard img { width: 76px; }
.pickcard.picked { border-color: var(--night); background: #F4FFD0; transform: translateY(-3px); }
.pickcard.name { min-height: 72px; }
.pickcard.step { gap: 2px; font-size: 24px; }
.pickcard.step em { font-style: normal; font-size: 40px; }
.pickcard small { font-size: 15px; color: var(--soft); font-weight: 500; }
.pickcard.pages { min-height: 200px; gap: 6px; font-size: 22px; }
.pickcard.pages b { font-size: 56px; line-height: 1; }
.pagestack { display: flex; gap: 6px; }
.pagestack i { width: 32px; height: 42px; border-radius: 8px; background: var(--sky); border: 3px solid var(--sky-d); }
.pip-small { width: 140px; }

/* scenes */
.scenegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 920px; }
.scenecard { position: relative; border: 4px solid var(--night); border-radius: var(--r); overflow: hidden; padding: 0; cursor: pointer; background: var(--tint); box-shadow: 0 6px 0 var(--night); aspect-ratio: 3/2; transition: transform .12s; }
.scenecard > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scenecard b { position: absolute; left: 12px; bottom: 10px; background: #fff; border: 3px solid var(--night); border-radius: 999px; padding: 4px 16px; font-size: clamp(16px, 2.4vw, 24px); }
.peek { position: absolute; right: 8px; top: 8px; display: flex; }
.peek img { width: clamp(40px, 8vw, 72px); margin-left: -12px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .2)); }

/* play */
.play { gap: 8px; padding-top: max(8px, env(safe-area-inset-top)); }
.topbar.play { max-width: 1280px; }
.ask { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border: 4px solid var(--night); border-radius: 24px; padding: 6px 8px 6px 6px; min-height: 72px; box-shadow: 0 4px 0 var(--night); }
.ask > img { width: 56px; flex: none; }
.ask > div { flex: 1; display: flex; flex-direction: column; }
.ask-text { font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; }
.say-text { font-size: clamp(14px, 1.7vw, 18px); color: var(--soft); }
.ask .btn.round { width: 56px; min-width: 56px; min-height: 56px; box-shadow: none; border-width: 3px; }
.stagewrap { width: 100%; flex: 1; display: grid; place-items: center; }
.stage { position: relative; width: min(100%, calc((100dvh - 210px) * 1.5)); aspect-ratio: 3/2; border-radius: var(--r); border: 4px solid var(--night); box-shadow: 0 6px 0 var(--night); background: #cfe; }
.stage > .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--r) - 4px); }
.scene, .layer { position: absolute; inset: 0; }
.scene .stk { transition: opacity .3s; }
.scene.dim .stk { opacity: .3; }
.stk { position: absolute; width: 15%; transform: translate(-50%, -50%); filter: drop-shadow(0 6px 6px rgba(27, 26, 58, .25)); pointer-events: none; }
.stk.big { width: 22%; }
.stk.drag, .stk.movable { pointer-events: auto; cursor: grab; touch-action: none; }
.stk.drag { animation: wiggle 2.6s ease-in-out infinite; }
.stk.lifted { cursor: grabbing; filter: drop-shadow(0 14px 12px rgba(27, 26, 58, .3)); animation: none; z-index: 5; }
.stk.ghost { filter: brightness(0) opacity(.42) drop-shadow(0 0 3px #fff); width: 15%; }
.stage.dark .stk.ghost { filter: brightness(0) invert(1) opacity(.55) drop-shadow(0 0 6px #fff); }
.stk.glow, .card.glow, .tick.glow > span { animation: glow 1.2s ease-in-out infinite; }
.stk.sel { outline: 4px dashed var(--grape); outline-offset: 4px; border-radius: 12px; }
@keyframes wiggle { 0%, 100% { rotate: 0deg; } 50% { rotate: -3deg; } }
@keyframes glow { 50% { filter: drop-shadow(0 0 12px var(--sunny)) drop-shadow(0 0 4px #fff); } }

.tray { display: flex; gap: 6px; justify-content: center; }
.tray img { width: 54px; height: 54px; object-fit: contain; transition: .3s; }
.tray img.todo { filter: brightness(0) opacity(.18); }
.tray img.got { filter: none; transform: scale(1.06); }

/* activity UI inside the stage */
.panel { position: absolute; left: 1%; right: 1%; bottom: 3%; display: flex; gap: 12px; z-index: 4; flex-wrap: nowrap; justify-content: center; }
.card { min-width: 88px; min-height: 88px; border-radius: 24px; border: 4px solid var(--night); background: #fff; box-shadow: 0 5px 0 var(--night); cursor: pointer; display: grid; place-items: center; padding: 6px; transition: transform .12s; }
.card img.stk { position: static; transform: none; width: clamp(70px, 9vw, 110px); }
.card:disabled { opacity: .35; box-shadow: none; }
.card.tile { font-size: 34px; font-weight: 700; min-width: 72px; min-height: 72px; text-transform: lowercase; }
.card.tile.used { background: var(--lime); }
.card.tile.wide { min-width: 80px; flex-direction: column; font-size: 16px; }
.card.tile.wide b { font-size: 30px; }
.card.tile.go { background: var(--lime); font-size: 22px; padding: 0 20px; text-transform: none; }
.plan, .showme, .name { justify-content: center; }
.showme { gap: 10px; }
.showme .pip-small { width: 84px; }
.showme .thumb.big, .name .thumb.big { width: min(100%, 560px, max(280px, calc((100dvh - 380px) * 1.5))); }
.card .ico { font-size: 36px; }
.card.feelcard { font-size: 20px; min-width: 120px; text-transform: none; }
.feel { display: flex; flex-direction: column; align-items: center; }
.feel em { font-style: normal; font-size: 40px; }
.shake { animation: shake .4s; }
@keyframes shake { 25% { translate: -8px; } 75% { translate: 8px; } }

.target { position: absolute; left: 50%; top: 6%; transform: translateX(-50%); background: #fff; border: 4px solid var(--night); border-radius: 22px; padding: 4px 22px; font-size: clamp(34px, 5vw, 56px); font-weight: 700; box-shadow: 0 5px 0 var(--night); z-index: 3; }
.target .dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 150px; margin: 4px auto 6px; }
.target .dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--berry); border: 2px solid var(--night); }
.target.letter small { font-size: .6em; margin-left: .2em; color: var(--soft); }
.frac { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; font-size: .8em; }
.frac i { width: 1.1em; height: 4px; background: var(--ink); border-radius: 2px; margin: 3px 0; }
.nline { position: absolute; height: 8px; background: var(--night); border-radius: 4px; transform: translateY(-50%); z-index: 2; }
.tick { position: absolute; top: 50%; width: 4px; height: 20px; background: var(--night); border-radius: 2px; transform: translate(-50%, -50%); }
.tick.major { height: 32px; width: 5px; }
.tick > span { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); background: #fff; border: 3px solid var(--night); border-radius: 12px; padding: 0 6px; font-size: clamp(12px, 1.8vw, 20px); font-weight: 700; }
.tick.glow { background: var(--berry); }
.word { position: absolute; left: 50%; top: 55%; transform: translateX(-50%); background: #fff; border: 4px solid var(--night); border-radius: 20px; padding: 2px 20px; font-size: clamp(28px, 4.5vw, 48px); font-weight: 700; z-index: 3; white-space: nowrap; }
.word.beats { letter-spacing: .04em; }
.word .gap { display: inline-block; min-width: .8em; color: var(--berry); }
.word.spell { display: flex; gap: 6px; padding: 8px 12px; }
.slot { width: 1.1em; height: 1.3em; border-bottom: 5px solid var(--night); display: grid; place-items: center; text-transform: lowercase; }
.lr { position: absolute; left: 2%; right: 2%; top: 46%; display: flex; justify-content: space-between; pointer-events: none; z-index: 3; }
.lr span { background: var(--sunny); border: 3px solid var(--night); border-radius: 999px; padding: 2px 12px; font-size: 18px; font-weight: 700; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: var(--r); z-index: 6; }
.confetti i { position: absolute; top: -20px; width: 12px; height: 18px; border-radius: 4px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* decorate, name, show me */
.decotools { display: flex; gap: 12px; justify-content: center; }
.thumb { border: 0; padding: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 18px; }
.thumb .stage.mini { width: 100%; box-shadow: 0 4px 0 var(--night); border-width: 3px; }
.thumb.big { width: min(100%, 720px, calc((100dvh - 330px) * 1.5)); }
.pagename { font-size: clamp(26px, 4vw, 40px); font-weight: 700; background: var(--sunny); border: 4px solid var(--night); border-radius: 999px; padding: 4px 24px; box-shadow: 0 4px 0 var(--night); }
.chips { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.chip { min-height: 64px; padding: 0 20px; border-radius: 999px; border: 4px solid rgba(27, 26, 58, .2); background: #fff; font-size: 22px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; transition: transform .12s; }
.chip.picked { border-color: var(--night); background: var(--lime); }
.pagename.two { display: flex; gap: 12px; background: none; border: 0; box-shadow: none; padding: 0; }
.nameslot { min-width: 140px; text-align: center; border: 4px dashed rgba(27, 26, 58, .35); border-radius: 999px; padding: 4px 18px; color: rgba(27, 26, 58, .35); background: #fff; }
.nameslot.filled { border: 4px solid var(--night); color: var(--ink); background: var(--sunny); box-shadow: 0 4px 0 var(--night); }
.namestep { margin: 4px 0 -4px; font-size: 20px; font-weight: 600; }
.namestep b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grape); color: #fff; margin-right: 6px; }
.chips.waiting { opacity: .4; pointer-events: none; }
/* Goodnight summary: plain text, never button-shaped, so the only thing to tap is the buttons below. */
.practised { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 20px; color: rgba(255, 255, 255, .9); }
.chips.static .chip { cursor: default; background: var(--c); border-color: var(--night); font-size: 18px; min-height: 48px; }
.talk { background: #fff; border: 4px solid var(--night); border-radius: var(--r); padding: 12px 20px; max-width: 620px; text-align: center; }
.talk b { color: var(--grape-d); }
.talk p { margin: 6px 0 0; font-size: 20px; }

/* goodnight */
.night { background: linear-gradient(180deg, #2B2668 0%, #4B3C9E 60%, #7D69D9 100%); color: #fff; justify-content: center; }
.night .pip-sleep { width: min(360px, 70vw); animation: bob 6s ease-in-out infinite; }
.night .sum { font-size: 22px; text-align: center; margin: 0; }
.night .btn.ghost { color: var(--ink); }
.btn.link { background: none; border: 0; box-shadow: none; min-width: 64px; font-size: 18px; text-decoration: underline; }
.night .btn.link { color: #fff; }
.night .row { flex-direction: column; }

/* book */
.collection { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 6px; width: 100%; max-width: 900px; background: #fff; border: 4px solid var(--night); border-radius: var(--r); padding: 10px; }
.collection img { width: 100%; }
.collection img.missing { filter: brightness(0) opacity(.15); }
.bookgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); justify-content: center; gap: 16px; width: 100%; max-width: 1000px; }

/* modal */
.modal { position: fixed; inset: 0; background: rgba(27, 26, 58, .55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--cloud); border: 4px solid var(--night); border-radius: var(--r); padding: 20px; text-align: center; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.modal-card img { width: 110px; }
.modal-card p { margin: 0; font-size: 20px; }

/* grown-ups: calm Night, readable text (kids-brand.md section 5) */
.grown { background: var(--night); color: #F4F2FF; align-items: stretch; font-family: 'Nunito', ui-rounded, system-ui, sans-serif; -webkit-user-select: text; user-select: text; overflow: auto; }
.grown h2, .grown h3 { font-family: var(--font); text-align: left; }
.grown h2 { font-size: 26px; margin-top: 10px; }
.gtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 900px; width: 100%; margin: 0 auto; }
.gtop .lockup { height: 34px; }
.gbtn { min-height: 48px; border-radius: 999px; border: 2px solid #F4F2FF; background: transparent; color: #F4F2FF; padding: 0 18px; font-weight: 700; cursor: pointer; }
.gbtn.danger { border-color: #FF8FB9; color: #FF8FB9; }
.gtabs { display: flex; gap: 6px; flex-wrap: wrap; max-width: 900px; width: 100%; margin: 0 auto; }
.gtabs button { min-height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .1); color: #F4F2FF; padding: 0 16px; font-weight: 700; cursor: pointer; }
.gtabs button.on { background: var(--lime); color: var(--night); }
.gbody { max-width: 900px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; font-size: 17px; line-height: 1.5; }
.gbody p { margin: 0; }
.gmuted { color: rgba(244, 242, 255, .7); font-size: 15px; }
.gskills { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.gskill { background: rgba(255, 255, 255, .06); border-left: 6px solid var(--c); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.gbar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.gbar i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.gskill details summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.gnote { background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gpick { display: flex; gap: 8px; flex-wrap: wrap; }
.gpick button { display: flex; align-items: center; gap: 6px; min-height: 48px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .3); background: transparent; color: #F4F2FF; padding: 2px 14px 2px 4px; cursor: pointer; font-weight: 700; }
.gpick button.on { border-color: var(--lime); }
.gpick img, .gplayer img { width: 40px; }
.gtoggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 10px 14px; min-height: 56px; cursor: pointer; }
.gtoggle span { display: flex; flex-direction: column; }
.gtoggle small { color: rgba(244, 242, 255, .65); font-size: 14px; }
.gtoggle input[type=checkbox] { width: 28px; height: 28px; accent-color: var(--lime); flex: none; }
.gtoggle select { min-height: 44px; border-radius: 10px; font: inherit; padding: 0 8px; }
.gplayers { display: flex; flex-direction: column; gap: 8px; }
.gplayer { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 8px 12px; }
.gplayer .gbtn { margin-left: auto; }
.promises { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.code { font-family: ui-monospace, monospace; font-size: 22px; letter-spacing: .1em; background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 6px 12px; align-self: flex-start; }
.glink { color: var(--lime); font-weight: 700; }

/* portrait phones: the activity panel moves under the stage so it never covers the scene */
@media (orientation: portrait) {
  .stage { width: 100%; margin-bottom: 150px; }
  .panel { top: calc(100% + 14px); bottom: auto; flex-wrap: wrap; }
  .topbar.play { flex-wrap: wrap; }
  .topbar.play .ask { order: 3; flex-basis: 100%; }
  .scenegrid { grid-template-columns: 1fr; max-width: 520px; }
  .pickgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pickcard.pages { min-height: 150px; }
  .stk { width: 17%; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .stage { width: min(100%, calc((100dvh - 150px) * 1.5)); }
  .tray img { width: 40px; height: 40px; }
  .ask { min-height: 56px; }
}
body.quiet *, body.quiet *::before { animation-duration: 0s !important; animation-iteration-count: 1 !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
  .glow, .tick.glow > span { filter: drop-shadow(0 0 10px var(--sunny)) drop-shadow(0 0 4px #fff); }
}
body.quiet .glow, body.quiet .tick.glow > span { filter: drop-shadow(0 0 10px var(--sunny)) drop-shadow(0 0 4px #fff); }
@media print {
  .grown { background: #fff; color: #000; }
  .gtop, .gtabs, .gbtn { display: none; }
  .gskill, .gnote, .gtoggle { background: #fff; border: 1px solid #ccc; }
  .gmuted { color: #444; }
}
