/* Shared look for the games on the shelf (big friendly buttons, speech bubble, answer cards, grown-ups panel). */
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { margin:0; height:100%; font-family:"Trebuchet MS","Segoe UI",Verdana,sans-serif; color:var(--ink,#2b2d42);
  -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; touch-action:manipulation; overscroll-behavior:none; }
body.game { overflow:hidden; background:var(--sky1,#9be3ff); }
#app { position:fixed; inset:0; background:linear-gradient(var(--sky1,#9be3ff),var(--sky2,#e8fbff) 60%); overflow:hidden; overflow:clip; }
.layer { position:absolute; inset:0; overflow:hidden; overflow:clip; pointer-events:none; }
#fx { z-index:8; }
button { font:inherit; color:inherit; border:none; background:none; padding:0; margin:0; cursor:pointer; touch-action:manipulation; }
svg { display:block; width:100%; height:100%; overflow:visible; pointer-events:none; }
.m { fill:var(--m,#58b368); } .d { fill:var(--d,#2f7d44); } .b { fill:#fff3c9; } .e { fill:#fff; } .p { fill:#2b2d42; }

/* scenery */
.hill { position:absolute; left:-10%; right:-10%; bottom:-22vmin; height:50vmin; background:var(--grass,#7ed67a); border-radius:50% 50% 0 0; }
.hill.back { bottom:-12vmin; left:30%; right:-40%; height:56vmin; background:var(--grass2,#55b85c); }
.sun { position:absolute; top:4vmin; right:6vmin; width:16vmin; height:16vmin; border-radius:50%; background:#ffd84d; box-shadow:0 0 0 3vmin rgba(255,216,77,.3); }
.cloud { position:absolute; top:10vmin; left:-30vmin; width:26vmin; height:8vmin; background:#fff; border-radius:8vmin; opacity:.85; animation:drift 70s linear infinite; }
.cloud::before { content:""; position:absolute; left:5vmin; top:-4vmin; width:12vmin; height:10vmin; background:#fff; border-radius:50%; }
.cloud.c2 { top:24vmin; animation-duration:100s; animation-delay:-40s; transform:scale(.7); }
@keyframes drift { to { left:110vw; } }

/* screens */
.screen { position:absolute; inset:0; display:none; flex-direction:column; align-items:center; justify-content:center; padding:2vmin; }
.screen.on { display:flex; }
h1 { font-size:9vmin; margin:0 0 1vmin; text-align:center; color:#fff; text-shadow:0 .6vmin 0 var(--title-shadow,#2f7d44), 0 1vmin 2vmin rgba(0,0,0,.25); letter-spacing:.2vmin; }
.sub { font-size:3.2vmin; margin:0 0 2vmin; text-align:center; }
.bigbtn { width:30vmin; height:30vmin; border-radius:50%; background:#ff8a3d; box-shadow:0 1.6vmin 0 #c85a12, 0 3vmin 4vmin rgba(0,0,0,.2); display:flex; align-items:center; justify-content:center; animation:pulse 1.6s ease-in-out infinite; }
.bigbtn:active { animation:none; transform:translateY(.5vmin); box-shadow:0 .7vmin 0 #c85a12, 0 1.5vmin 2vmin rgba(0,0,0,.2); }
.bigbtn .tri { width:0; height:0; border-left:12vmin solid #fff; border-top:8vmin solid transparent; border-bottom:8vmin solid transparent; margin-left:3vmin; }
.bigbtn.go { margin-top:3vmin; width:20vmin; height:20vmin; visibility:hidden; }
.bigbtn.go .tri { border-left-width:8vmin; border-top-width:5.5vmin; border-bottom-width:5.5vmin; margin-left:2vmin; }
.bigbtn.go.show { visibility:visible; }
@keyframes pulse { 50% { transform:scale(1.07); } }
@keyframes bounce { 0%,100% { transform:translateY(0); } 40% { transform:translateY(-5vmin) rotate(-4deg); } 70% { transform:translateY(0) rotate(3deg); } }
@keyframes wobble { 0%,100% { transform:rotate(0); } 25% { transform:rotate(-7deg); } 75% { transform:rotate(7deg); } }
@keyframes pop { 0% { transform:scale(.3); opacity:0; } 70% { transform:scale(1.15); opacity:1; } 100% { transform:scale(1); } }
.bounce { animation:bounce .7s ease; } .wobble { animation:wobble .35s ease 2; } .pop { animation:pop .5s ease both; }

.corner { position:absolute; top:2vmin; width:11vmin; height:11vmin; border-radius:50%; background:rgba(255,255,255,.75); font-size:6vmin; line-height:11vmin; text-align:center; z-index:5; }
.corner.left { left:2vmin; } .corner.right { right:2vmin; background:rgba(255,255,255,.92); box-shadow:0 .4vmin 1.2vmin rgba(0,0,0,.18); font-size:5vmin; } /* a solid backdrop, so it never blends into the sun or a planet */
.corner.holding { background:#ffd84d; opacity:1; transition:background 1.5s; }

/* the map of places */
.places { display:grid; grid-template-columns:repeat(4, auto); gap:2.5vmin; }
.place { width:21vmin; height:24vmin; border-radius:4vmin; background:var(--card,#fffdf5); box-shadow:0 1.2vmin 0 rgba(0,0,0,.18); display:flex; flex-direction:column; align-items:center; justify-content:center; position:relative; border:1vmin solid #fff; }
.place:active { transform:translateY(.5vmin); box-shadow:0 .5vmin 0 rgba(0,0,0,.18); }
.place .pic { width:16vmin; height:13vmin; display:flex; align-items:center; justify-content:center; font-weight:bold; font-size:7vmin; white-space:nowrap; }
.place .name { font-size:2.3vmin; font-weight:bold; margin-top:1vmin; }
.place .badge { position:absolute; top:-2vmin; right:-2vmin; width:8vmin; height:8vmin; font-size:6.5vmin; line-height:8vmin; text-align:center; }
.place.done { background:#eaffd9; border-color:#7ed67a; }

/* a question */
#game { justify-content:space-between; padding-top:3vmin; padding-bottom:4vmin; }
.stars { display:flex; gap:1.5vmin; height:9vmin; align-items:center; }
.star { width:8vmin; height:8vmin; opacity:.3; filter:grayscale(1); transition:all .3s; font-size:7vmin; line-height:8vmin; text-align:center; }
.star.got { opacity:1; filter:none; transform:scale(1.15); }
.ask { display:flex; align-items:center; justify-content:center; gap:2vmin; }
.ask .host { width:26vmin; height:22vmin; }
.ask .host { position:relative; }
.ask .host .hear { position:absolute; right:1vmin; bottom:-1vmin; width:7.4vmin; height:7.4vmin; border-radius:50%; background:#4d9de0; box-shadow:0 .5vmin 0 #2f6fab; display:flex; align-items:center; justify-content:center; } /* a little speaker: tap the host to hear the question again */
.ask .host .hear svg { width:62%; height:62%; }
.ask .host.mute .hear { display:none; }
.bubble { min-width:26vmin; height:26vmin; border-radius:6vmin; background:#fff; box-shadow:0 1vmin 0 rgba(0,0,0,.12); display:flex; align-items:center; justify-content:center; gap:1.5vmin; padding:2vmin 3vmin; position:relative; font-weight:bold; }
.bubble::before { content:""; position:absolute; left:-3.5vmin; top:55%; border:2.2vmin solid transparent; border-right-color:#fff; border-left:none; }
.bubble .emoji { font-size:16vmin; line-height:1.2; }
.bubble .q, .bubble .tile { width:11vmin; height:11vmin; border-radius:2vmin; font-size:7vmin; line-height:9.4vmin; text-align:center; }
.bubble .tile { background:#eef3ff; border:.8vmin solid #c9d6ff; }
.bubble .q { border:.8vmin dashed #ff8a3d; color:#ff8a3d; }
.bubble .col { display:flex; flex-direction:column; align-items:center; gap:.6vmin; }
.bubble .rowx { display:flex; align-items:center; gap:1.5vmin; }
.bubble .cap { font-size:4.5vmin; color:#7a8099; }
.grid5 { display:grid; grid-template-columns:repeat(5, auto); gap:.2vmin .5vmin; line-height:1.15; justify-items:center; }
.gone { opacity:.25; filter:grayscale(1); }
.choices { display:flex; gap:3vmin; justify-content:center; align-items:center; flex-wrap:wrap; width:100%; }
.choice { width:var(--cs,30vmin); height:var(--cs,30vmin); border-radius:5vmin; background:var(--card,#fffdf5); border:1vmin solid #fff; box-shadow:0 1.4vmin 0 rgba(0,0,0,.18); display:flex; align-items:center; justify-content:center; font-size:14vmin; font-weight:bold; flex-direction:column; }
.choice:active { transform:translateY(.5vmin); box-shadow:0 .6vmin 0 rgba(0,0,0,.18); }
.choice.right { background:#d6ffc4; border-color:#55b85c; }
.choice.dim { opacity:.35; }
.choice .emoji { font-size:calc(var(--cs, 30vmin) * .58); line-height:1.25; }

/* extras used by the Grade 1+ story games */
.bubble .emoji.mid { font-size:11vmin; }
.bubble .tile.s, .bubble .q.s { width:auto; min-width:8.5vmin; height:10vmin; padding:0 1.2vmin; font-size:6vmin; line-height:8.4vmin; }
.bubble .tile.xs, .bubble .q.xs { min-width:6.4vmin; height:8.6vmin; padding:0 .7vmin; font-size:4.1vmin; line-height:7vmin; border-width:.6vmin; }
.bubble.quiet { flex-direction:column; gap:1.2vmin; height:auto; min-height:26vmin; } /* talking is off: the question is written under the picture */
.bubble .said { font-size:3.8vmin; line-height:1.3; max-width:56vmin; text-align:center; }
.bubble .sentence { font-size:4.8vmin; line-height:1.35; max-width:52vmin; text-align:center; }
.bubble .sentence u { text-decoration:none; display:inline-block; min-width:9vmin; border-bottom:.8vmin dashed #ff8a3d; }
.choice .art { width:80%; height:80%; }
.choice .word { font-size:8vmin; } .choice .word.long { font-size:5.6vmin; }
.stage { width:46vmin; height:46vmin; font-size:34vmin; line-height:46vmin; text-align:center; }
.stickers { display:flex; gap:.6vmin; margin-top:1.5vmin; height:6vmin; align-items:center; font-size:4.6vmin; }
.stickers small { font-size:2.6vmin; font-weight:bold; margin-right:1vmin; }

/* Dr. Somebody stories: the clock balloon strip on the map, and the big finish */
.host.big { width:34vmin; height:28vmin; }
.progress { display:flex; align-items:center; gap:2vmin; margin-top:2.5vmin; background:var(--strip, rgba(255,255,255,.14)); border-radius:5vmin; padding:1vmin 4vmin; }
.balloon { width:15vmin; height:19vmin; }
.slot { width:11vmin; height:11vmin; border-radius:50%; font-size:7vmin; line-height:11vmin; text-align:center; position:relative; background:rgba(255,255,255,.92); }
.slot.tap { cursor:pointer; }
.slot .from { position:absolute; left:50%; bottom:calc(100% + 1.4vmin); transform:translateX(-50%); background:#2b2d42; color:#fff; font-size:2.6vmin; line-height:1.2; font-weight:bold; white-space:nowrap; padding:.9vmin 1.8vmin; border-radius:2vmin; z-index:6; pointer-events:none; } /* where this friend came from */
.slot .from::after { content:""; position:absolute; left:50%; top:100%; margin-left:-1.2vmin; border:1.2vmin solid transparent; border-top-color:#2b2d42; border-bottom:none; }
.slot.empty { background:none; border:.8vmin dashed var(--strip-line, rgba(255,255,255,.7)); }
.slot i { position:absolute; right:-1.5vmin; bottom:-1.5vmin; font-size:4.4vmin; line-height:1; font-style:normal; }
#finaleArt { display:flex; align-items:flex-end; gap:2vmin; font-size:9vmin; }
#finaleArt .balloon { width:30vmin; height:38vmin; animation:floaty 2.4s ease-in-out infinite; }
@keyframes floaty { 50% { transform:translateY(-4vmin); } }
.sum { font-size:10vmin; white-space:nowrap; } .sum.long { font-size:7.5vmin; } .sum b { color:#ff8a3d; }
.clockbox { width:22vmin; height:22vmin; }
/* a grade with more than 8 places: smaller cards, 6 across on a wide screen or 4 across on a tall one */
.places.many { grid-template-columns:repeat(6, auto); gap:2vmin; }
.places.many .place { width:19vmin; height:21vmin; border-radius:3.5vmin; }
.places.many .place .pic { width:15vmin; height:11vmin; font-size:6vmin; }
.places.many .place .name { font-size:2.1vmin; }
@media (max-aspect-ratio: 13/10) { .places.many { grid-template-columns:repeat(4, auto); } }
/* more than 12 places: smaller still, 7 across on a wide screen or 5 across on a squarer one */
.places.many.lots { display:flex; flex-wrap:wrap; justify-content:center; gap:1.6vmin; max-width:126vmin; } /* rows of 7, and a short last row sits in the middle */
.places.many.lots .place { width:16.5vmin; height:17vmin; border-radius:3vmin; }
.places.many.lots .place .pic { width:13vmin; height:9vmin; font-size:5vmin; }
.places.many.lots .place .name { font-size:1.9vmin; }
@media (max-aspect-ratio: 13/10) { .places.many.lots { max-width:82vmin; margin-top:9vmin; } .places.many.lots .place { width:15vmin; } } /* three rows: leave room for the corner buttons */
.progress.many { gap:1.6vmin; }
.progress.many .balloon { width:12vmin; height:15vmin; }
.progress.many .slot { width:8.6vmin; height:8.6vmin; font-size:5.4vmin; line-height:8.6vmin; }
.progress.many .slot i { font-size:3.4vmin; right:-1.2vmin; bottom:-1.2vmin; }
#finaleArt { flex-wrap:wrap; justify-content:center; max-width:96vw; }
/* a taller speech bubble for a short passage to read */
.bubble.tall { height:auto; min-height:26vmin; max-width:64vmin; }
.bubble .passage { font-size:3.4vmin; line-height:1.35; font-weight:normal; text-align:left; }
.bubble .passage b { display:block; margin-top:1.2vmin; }
.choice .ans { font-size:3.5vmin; line-height:1.25; padding:0 1.6vmin; text-align:center; }

/* hints: the light-bulb button, and what a hint adds to the question */
.corner.hint { background:#fff3b0; opacity:1; font-size:6vmin; }
.corner.hint.used { opacity:.3; filter:grayscale(1); }
/* lessons ("watch me do one"): the 📖 button sits under the 💡, and the lesson draws its own picture in the bubble */
.corner.lesson { top:15vmin; background:#d9ecff; opacity:1; font-size:6vmin; }
.bubble.lessonframe .rowx { flex-direction:column; gap:1.5vmin; }
.bubble.lessonframe .hintbox { max-width:none; }
.choice.myturn { width:auto; min-width:34vmin; padding:0 4vmin; font-size:6vmin; background:#c8f7c5; }
.lessonart { font-size:5.5vmin; line-height:1.25; text-align:center; }
.lessonart .big { font-size:8vmin; font-weight:bold; }
.lessonart b { color:#ff8a3d; }
.lessonart .t { color:#4d9de0; font-weight:bold; } /* tens */
.lessonart .o { color:#2bb673; font-weight:bold; } /* ones */
.lessonart .dim { opacity:.3; }
.choice { position:relative; }
.choice.struck { opacity:.2; }
.glow { outline:1vmin solid #ffd23f; outline-offset:.4vmin; border-radius:2vmin; transform:scale(1.06); transition:transform .15s; }
.choice .hintbadge { position:absolute; top:-2.2vmin; right:-2.2vmin; min-width:7vmin; height:7vmin; padding:0 1vmin; border-radius:4vmin; background:#ff8a3d; color:#fff; font-size:4.4vmin; line-height:7vmin; text-align:center; }
.bubble .hintbox { font-size:4.6vmin; line-height:1.2; text-align:center; max-width:56vmin; }
.bubble .hintbox b { color:#ff8a3d; }
.bubble .hintbox .big { font-size:7vmin; }
.bubble .hintsaid { font-size:3.4vmin; line-height:1.3; max-width:56vmin; text-align:center; color:#5a5f78; }
.bubble .hintbox .dots { letter-spacing:.4vmin; color:#4d9de0; }

/* the fun pack: cheers, golden questions, medals, the friends book, tap-the-picture questions */
.cheer { position:absolute; top:12.5vmin; left:50%; transform:translateX(-50%); background:#ffd84d; color:#7a4a00; font-size:4vmin; font-weight:bold; white-space:nowrap; padding:1vmin 3vmin; border-radius:4vmin; box-shadow:0 .7vmin 0 #e0a800; opacity:0; pointer-events:none; z-index:6; }
.cheer.show { animation:cheer 1.9s ease forwards; }
@keyframes cheer { 0% { opacity:0; transform:translateX(-50%) scale(.4); } 14% { opacity:1; transform:translateX(-50%) scale(1.15); } 24%, 78% { opacity:1; transform:translateX(-50%) scale(1); } 100% { opacity:0; transform:translateX(-50%) translateY(-2vmin) scale(1); } }
.bubble.golden { box-shadow:0 0 0 1vmin #ffd84d, 0 0 5vmin 1.5vmin rgba(255,216,77,.75), 0 1vmin 0 rgba(0,0,0,.12); }
.bubble.golden::after { content:"⭐"; position:absolute; top:-3.6vmin; right:-3vmin; font-size:7vmin; line-height:1; }
.star.gold { filter:drop-shadow(0 0 1.2vmin #ffb300); }
.stars.perfect .star { filter:drop-shadow(0 0 1.4vmin #ffb300); transform:scale(1.3) rotate(8deg); }
.newtag { position:absolute; top:calc(50% - 36vmin); left:50%; transform:translateX(-50%) rotate(-4deg); background:#ff5a5f; color:#fff; font-size:4.4vmin; font-weight:bold; padding:1vmin 3vmin; border-radius:4vmin; box-shadow:0 .7vmin 0 #b93a3e; display:none; }
.newtag.show { display:block; }
.place .medals { position:absolute; left:1.2vmin; top:1vmin; display:flex; gap:.4vmin; }
.place .medals i, .tally i { display:inline-block; width:1.9vmin; height:1.9vmin; border-radius:50%; border:.3vmin solid rgba(0,0,0,.1); background:rgba(0,0,0,.04); }
.place .medals i.m1, .tally i.m1 { background:#cd7f32; border-color:#8f5519; } .place .medals i.m2, .tally i.m2 { background:#c9d1dc; border-color:#8a94a3; } .place .medals i.m3, .tally i.m3 { background:#ffd23f; border-color:#c79400; }
.place .medals.new { animation:pop .7s ease 2; }
.friendsbtn { background:rgba(255,255,255,.9); border-radius:4vmin; padding:.6vmin 2.6vmin; font-size:2.6vmin; font-weight:bold; box-shadow:0 .5vmin 0 rgba(0,0,0,.16); color:#2b2d42; }
.friendsbtn b { color:#d35400; margin-left:.6vmin; }
#book { position:fixed; inset:0; background:rgba(43,45,66,.6); display:none; align-items:center; justify-content:center; z-index:20; }
#book.on { display:flex; }
#book .panel { background:#fffaf0; border:1vmin solid #fff; border-radius:5vmin; padding:3vmin 4vmin; width:min(92vw, 110vmin); max-height:92vh; overflow:auto; text-align:center; }
#book h2 { margin:0 0 2vmin; font-size:5vmin; color:#8a4f1d; }
#book .friends { display:flex; flex-wrap:wrap; gap:1.6vmin; justify-content:center; }
#book .friend { width:15vmin; height:16vmin; border-radius:3vmin; background:#fff; box-shadow:0 .7vmin 0 rgba(0,0,0,.14); display:flex; flex-direction:column; align-items:center; justify-content:center; }
#book .friend span { font-size:8vmin; line-height:1.15; } #book .friend small { font-size:2.3vmin; font-weight:bold; }
#book .friend.unmet { background:#ece6da; box-shadow:none; color:#b5ab99; } #book .friend.unmet span { font-weight:bold; }
#book .tally { display:flex; gap:4vmin; justify-content:center; align-items:center; margin:3vmin 0 2vmin; font-size:3.2vmin; font-weight:bold; }
#book .tally i { width:3.4vmin; height:3.4vmin; vertical-align:-.6vmin; }
#book button.main { background:#58b368; color:#fff; font-size:4vmin; font-weight:bold; padding:1.4vmin 8vmin; border-radius:3vmin; box-shadow:0 .7vmin 0 rgba(0,0,0,.18); }
.taphint { font-size:9vmin; line-height:1; animation:tapbob 1.2s ease-in-out infinite; } @keyframes tapbob { 50% { transform:translateY(-1.6vmin); } }
[data-pick] { pointer-events:all; cursor:pointer; transform-box:fill-box; transform-origin:center; }
[data-pick].dim { opacity:.3; } [data-pick] .ring { fill:transparent; stroke:transparent; stroke-width:1.4; }
[data-pick].right .ring { fill:#d6ffc4; stroke:#55b85c; } [data-pick].glow .ring { stroke:#ffd23f; fill:#fff6cf; }

/* the change: the host's last scene in his first look */
#regen { gap:2vmin; }
.regenwho { width:40vmin; height:46vmin; position:relative; } .regenwho > svg { width:100%; height:100%; }
#regen .regencap { position:static; transform:none; left:auto; top:auto; width:min(88vw, 110vmin); min-height:11vmin; display:flex; align-items:center; justify-content:center; }
.spark { position:absolute; left:50%; top:50%; width:5vmin; height:5vmin; margin:-2.5vmin; font-size:5vmin; line-height:1; pointer-events:none; }

/* confetti */
.confetti { position:absolute; top:-5vmin; width:2.4vmin; height:3.4vmin; border-radius:.5vmin; animation:fall linear forwards; pointer-events:none; z-index:8; }
@keyframes fall { to { transform:translateY(115vh) rotate(720deg); } }

/* grown-ups panel */
#grown { position:fixed; inset:0; background:rgba(43,45,66,.6); display:none; align-items:center; justify-content:center; z-index:20; }
#grown.on { display:flex; }
#grown .panel { background:#fff; border-radius:16px; padding:22px 26px; width:min(560px,92vw); max-height:92vh; overflow:auto; font-size:16px; }
#grown h2 { margin:0 0 6px; } #grown p { margin:6px 0; line-height:1.4; }
#grown .line { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:8px 0; border-top:1px solid #eee; }
#grown .pm { display:flex; align-items:center; gap:8px; }
#grown button { background:#eef3ff; border-radius:10px; padding:10px 16px; font-weight:bold; min-width:44px; }
#grown button.warn { background:#ffe3e0; } #grown button.main { background:#58b368; color:#fff; }
#grown .soon { color:#888; }
#grown select { font:inherit; padding:6px; margin-top:4px; max-width:300px; border-radius:8px; }
#grown .line > div { min-width:0; flex:1 1 auto; } #grown .line > button { flex:0 0 auto; } #grown select { max-width:100%; } /* long voice names never push the buttons off a phone screen */
#grown .foot { display:flex; justify-content:space-between; margin-top:14px; gap:10px; flex-wrap:wrap; }
/* celebration scenes: the clock balloon drifts across, pictures of the place pop up, and the fun fact shows as a caption */
#scene { justify-content:flex-start; padding:0; }
.scenestage { position:absolute; inset:0; overflow:hidden; }
.sballoon { position:absolute; top:6vh; left:-30vmin; width:24vmin; height:30vmin; animation:sdrift 9s linear forwards; }
.sballoon.slow { animation-duration:30s; }
@keyframes sdrift { 0% { left:-30vmin; transform:translateY(0); } 25% { transform:translateY(-2vmin); } 50% { transform:translateY(1.5vmin); } 75% { transform:translateY(-1vmin); } 100% { left:105vw; transform:translateY(0); } }
.sitem { position:absolute; display:flex; align-items:flex-end; justify-content:center; font-size:calc(1em); opacity:0; animation:spop .6s ease forwards; transform-origin:50% 100%; }
.sitem svg { width:100%; height:100%; overflow:visible; }
.sitem .emo { font-size:inherit; line-height:1; }
.sitem.gone { animation:sgone .5s ease forwards; }
@keyframes spop { 0% { opacity:0; transform:scale(.3) translateY(4vmin); } 70% { opacity:1; transform:scale(1.08); } 100% { opacity:1; transform:scale(1); } }
@keyframes sgone { to { opacity:0; transform:scale(.6); } }
.scenecap { position:absolute; left:50%; transform:translateX(-50%); top:40vh; width:min(86vw, 120vmin); background:rgba(255,255,255,.92); border-radius:3vmin; padding:2vmin 3vmin; font-size:4.2vmin; line-height:1.3; font-weight:bold; text-align:center; box-shadow:0 1vmin 0 rgba(0,0,0,.12); z-index:3; }
.bigbtn.sceneskip { position:absolute; right:3vmin; bottom:3vmin; width:15vmin; height:15vmin; z-index:4; }
.bigbtn.sceneskip .tri { border-left-width:6vmin; border-top-width:4vmin; border-bottom-width:4vmin; margin-left:1.4vmin; }

/* Gentle motion and tactile buttons (all off for people who ask for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .place, .choice, .bigbtn { transition:transform 80ms ease-out, box-shadow 80ms ease-out; }
  .sun { animation:sunglow 8s ease-in-out infinite; }
  @keyframes sunglow { 50% { transform:scale(1.04); } }
  .progress .balloon { animation:balloonbob 4.5s ease-in-out infinite; }
  @keyframes balloonbob { 50% { transform:translateY(-1vmin); } }
  svg .blink { animation:owlblink 5.5s infinite; transform-box:fill-box; transform-origin:center; }
  @keyframes owlblink { 0%,96%,100% { transform:scaleY(1); } 98% { transform:scaleY(.1); } }
}

/* Upright phones (much taller than wide): fewer, bigger place cards; the host sits above the bubble; answer cards two by two.
   Tablets are not this narrow, so their layouts stay exactly as they were. */
@media (max-aspect-ratio: 5/8) {
  #places.places { grid-template-columns:repeat(2, auto); gap:3vmin; }
  #places .place { width:42vmin; height:36vmin; }
  #places .place .pic { width:32vmin; height:22vmin; font-size:10vmin; }
  #places .place .name { font-size:4vmin; }
  #places.many { display:grid; grid-template-columns:repeat(3, auto); gap:2.4vmin; max-width:none; margin-top:0; }
  #places.many .place { width:29.5vmin; height:29vmin; }
  #places.many .place .pic { width:24vmin; height:15vmin; font-size:8.4vmin; }
  #places.many .place .name { font-size:3vmin; }
  #places.many.lots { display:flex; max-width:96vmin; }
  #places.many.lots .place { width:29.5vmin; height:25vmin; }
  #places.many.lots .place .pic { height:13vmin; font-size:7.4vmin; }
  #places.many.lots .place .name { font-size:2.9vmin; }
  .ask { flex-direction:column; gap:3vmin; }
  .bubble::before { left:50%; top:-3.4vmin; margin-left:-2.2vmin; border:2.2vmin solid transparent; border-bottom-color:#fff; border-top:none; }
  .bubble.tall, .bubble.quiet { max-width:94vmin; }
  #choices { --cs:42vmin !important; max-width:96vmin; }
}
