/* Blaze's Christmas Rescue — same app look as Camping with Blaze (ro-theme.css tokens),
   with a winter/Christmas accent. Placeholder scenes are CSS + emoji until real art lands
   (see art/README.md). */
:root{--bg:var(--ro-sand);--panel:var(--ro-surface);--line:var(--ro-border);--paper:var(--ro-bark);--muted:var(--ro-bark-light);
  --xmas-red:#C8453B;--xmas-red-text:#E0675C;--gold:#E8C26A;--on-photo:#fff4dc;--on-photo-accent:#ffc477;font-family:var(--ro-font-body,Arimo,system-ui,sans-serif)}
*{box-sizing:border-box}
body{margin:0;background:var(--ro-sand);color:var(--paper);min-height:100vh}
button{font:inherit;cursor:pointer;color:inherit;border-radius:8px;min-height:44px}
button:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
button:disabled{cursor:default;opacity:.5}
.top,main,footer{max-width:1100px;margin:auto;padding-inline:20px}
.top{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.brand img{width:42px;height:42px;object-fit:contain}
h1,h2,h3,p{margin:0}
h1,h2{font-family:var(--ro-font-display,Fraunces,serif);font-weight:600}
h1{font-size:clamp(2rem,5.5vw,3.4rem);line-height:1.05;margin-bottom:10px}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--on-photo-accent);margin-bottom:10px}
#intro{font-size:1.08rem;line-height:1.5;max-width:560px}
#hero-actions{margin-top:20px;display:flex;gap:10px;flex-wrap:wrap}
#hero-actions:empty{display:none}
.primary{background:var(--xmas-red);color:#fff;border:1px solid var(--xmas-red);font-weight:700;font-size:15px;padding:12px 24px}
.primary:hover:not(:disabled){filter:brightness(1.08)}
.quiet{padding:8px 14px;border:1px solid var(--ro-border-strong);background:var(--ro-surface);color:var(--ro-pine-dark);font-weight:700}

/* Hero scene: placeholder painted backgrounds; real art replaces via --art */
.scene{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:24px;min-height:330px;display:flex;align-items:flex-end;color:var(--on-photo);
  background:var(--art,none) center/cover,var(--ph);}
.scene::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b1118e6 0%,#0b111880 45%,transparent 80%);pointer-events:none}
.scene-copy{position:relative;z-index:2;padding:34px 38px;max-width:620px}
.scene .props{position:absolute;right:4%;bottom:8%;z-index:1;font-size:clamp(3rem,9vw,6.5rem);letter-spacing:.1em;filter:drop-shadow(0 8px 10px #0008)}
.scene[data-screen="home"]{min-height:470px}
.scene[data-screen="home"],.scene[data-screen="award"]{--ph:radial-gradient(circle at 75% 20%,#2c4a6e 0,#14223a 45%,#0a1222 100%)}
.scene[data-screen="house"],.scene[data-screen="chimney"]{--ph:radial-gradient(circle at 70% 35%,#7a3b22 0,#3a1d16 45%,#1a0f0d 100%)}
.scene[data-screen="elves"]{--ph:linear-gradient(160deg,#1f3a2a,#0f1d16)}
.scene[data-screen="cafeteria"]{--ph:linear-gradient(160deg,#5a3a20,#24170e)}
.scene[data-screen="tracks"]{--ph:linear-gradient(180deg,#2b3d55 0%,#c9d6e3 70%,#eef3f8 100%)}
.scene[data-screen="storeroom"]{--ph:radial-gradient(circle at 70% 40%,#6d5427 0,#2a2013 55%,#120d08 100%)}
/* falling snow */
.snow{position:absolute;inset:0;z-index:1;pointer-events:none;background-image:radial-gradient(2px 2px at 20px 30px,#fff,transparent),radial-gradient(2px 2px at 80px 120px,#fffc,transparent),radial-gradient(3px 3px at 150px 60px,#fff,transparent),radial-gradient(2px 2px at 220px 170px,#fffa,transparent),radial-gradient(2px 2px at 300px 90px,#fff,transparent);background-size:320px 220px;animation:snow 9s linear infinite;opacity:.75}
.scene:is([data-screen="cafeteria"],[data-screen="storeroom"],[data-screen="elves"]) .snow{display:none}
@keyframes snow{to{background-position:40px 220px}}

#progress{margin:16px 0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
#progress:empty{display:none}
.progress-step{border:1px solid var(--line);border-radius:11px;background:var(--ro-surface);padding:10px 6px;font-size:.88rem;font-weight:700;color:var(--muted);text-align:center}
.progress-step[aria-current="step"]{border-color:var(--xmas-red);background:var(--xmas-red);color:#fff}
.progress-step.done{color:var(--ro-pine)}

.game-panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 24px #0000004d;padding:24px;margin:16px 0 28px}
.game-panel h2{font-size:clamp(1.4rem,3vw,2rem);color:var(--ro-pine-dark);margin-bottom:12px}
.guide{display:flex;align-items:center;gap:14px;padding:12px 15px;border:1px solid var(--line);background:var(--ro-surface-muted);border-radius:12px;margin-bottom:18px;line-height:1.45}
.guide strong{color:var(--ro-ember-text);margin-right:4px}
.guide.npc .npc-face{width:62px;height:62px;flex:none;display:grid;place-items:center;font-size:2.4rem;background:#0003;border-radius:50%}
.guide.npc strong{color:var(--xmas-red-text)}

/* Blaze sprite (same layered rig as Camping with Blaze) */
.blaze-actor{position:relative;aspect-ratio:1024/820;flex:none;pointer-events:none;filter:drop-shadow(0 5px 4px #09181185)}
.blaze-actor img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;user-select:none}
.guide-actor{width:70px}
.blaze-actor .sprite-eyes-closed{opacity:0;animation:blink 5.3s linear infinite}
.sprite-left-wing-mid,.sprite-right-wing-mid,.sprite-left-wing-up,.sprite-right-wing-up{opacity:0}
.hat{position:absolute;left:31%;top:-20%;width:40%;height:38%;z-index:3}
.hat::before{content:"";position:absolute;left:8%;right:8%;bottom:18%;top:10%;background:var(--xmas-red);clip-path:polygon(0 100%,55% 0,100% 100%);border-radius:4px}
.hat::after{content:"";position:absolute;left:0;right:0;bottom:4%;height:24%;background:#f7f3ea;border-radius:20px;box-shadow:calc(var(--w,1)*0px) 0 0 #fff}
.hat i{position:absolute;left:48%;top:0;width:22%;aspect-ratio:1;background:#f7f3ea;border-radius:50%}
@keyframes blink{0%,94%,100%{opacity:0}95%,98%{opacity:1}}

.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-top:6px}
.choice{background:var(--ro-surface);border:1.5px solid var(--ro-border-control);color:var(--ro-bark);padding:14px;text-align:left;line-height:1.35;display:grid;gap:4px;min-height:80px;align-content:start}
.choice:hover:not(:disabled){background:var(--ro-surface-muted)}
.choice .big{font-size:2rem}
.choice small{color:var(--muted);font-size:.9rem}
.choice.done{border-color:var(--ro-pine);background:var(--ro-success-soft)}
.choice.wrong{border-color:var(--ro-danger);background:var(--ro-danger-soft)}
.feedback{margin-top:14px;min-height:1.5em;font-weight:700;line-height:1.45}
.feedback.good{color:var(--ro-pine)}.feedback.bad{color:var(--ro-danger-text)}
.actions{margin-top:18px;display:flex;gap:10px;flex-wrap:wrap}

/* cafeteria search room */
.room{position:relative;aspect-ratio:16/9;border-radius:14px;overflow:hidden;border:1px solid var(--line);
  background:var(--art,none) center/cover,linear-gradient(180deg,#6b4a2c 0 55%,#3d2a1a 55% 100%)}
.room .wall-sign{position:absolute;left:4%;top:6%;background:#f4ecd8;color:#3a2a1a;padding:6px 12px;border-radius:6px;font-weight:700;font-size:clamp(.7rem,1.6vw,1rem);transform:rotate(-2deg)}
.spot{position:absolute;transform:translate(-50%,-50%);background:#0000;border:2px dashed #fff6;border-radius:14px;padding:6px 8px;font-size:clamp(1.7rem,5vw,3rem);line-height:1;min-width:64px;transition:transform .15s}
.spot:hover:not(:disabled){transform:translate(-50%,-50%) scale(1.08);border-color:var(--gold)}
.spot.found{border:2px solid var(--gold);background:#e8c26a33}
.spot.empty{opacity:.45}
.spot span{display:block;font-size:.72rem;font-weight:700;color:#fff;margin-top:3px;text-shadow:0 1px 2px #000}

/* footprints */
.tracks-ahead{display:flex;align-items:center;gap:14px;padding:12px;border-radius:12px;background:#dfe8f1;color:#1d2a38;margin-bottom:14px;font-weight:700}
.tracks-ahead .print{font-size:2rem}
.print-svg{width:54px;height:54px;flex:none}
.path-choice{display:grid;justify-items:center;text-align:center;gap:6px;background:linear-gradient(180deg,#e9f0f6,#c6d4e1);color:#1d2a38;border:2px solid #9fb2c4;padding:14px}
.path-choice:hover:not(:disabled){border-color:var(--xmas-red)}
.path-choice.wrong{border-color:var(--ro-danger);opacity:.6}
.snowline{height:10px;border-radius:5px;background:#24384d;overflow:hidden;margin:6px 0 16px}
.snowline i{display:block;height:100%;background:var(--gold);transition:width .4s}

/* storeroom */
.crates{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px}
.crate{display:grid;justify-items:center;gap:4px;padding:12px 6px;background:#4a3720;border:2px solid #7a5a32;color:#fbe9c8;font-weight:700;font-size:.9rem}
.crate .big{font-size:2.2rem}
.crate.loaded{opacity:.35;border-style:dashed}
.sled{margin-top:14px;padding:12px;border-radius:12px;border:2px dashed var(--gold);min-height:64px;font-size:1.8rem;letter-spacing:.15em}

.badge{display:grid;place-items:center;width:170px;aspect-ratio:1;margin:6px auto 14px;border-radius:50%;background:radial-gradient(circle,#2f6d43 0 58%,var(--gold) 59% 64%,#1d3b28 65%);font-size:4rem;box-shadow:0 10px 30px #0008}
.center{text-align:center}
.cliff{margin-top:16px;padding:16px;border-left:4px solid var(--xmas-red);background:var(--ro-surface-muted);border-radius:8px;line-height:1.5}

dialog{border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--paper);max-width:440px;width:92%;padding:0}
dialog::backdrop{background:#000a}
.nb{padding:22px}.nb h2{margin-bottom:12px}
#clue-list{padding-left:20px;line-height:1.6;margin:0 0 16px}
#clue-list li.none{list-style:none;margin-left:-20px;color:var(--muted)}
footer{padding:20px;color:var(--muted);font-size:.9rem;text-align:center}
@media (max-width:640px){
  .scene-copy{padding:22px}
  .scene .props{font-size:2.6rem;top:14px;bottom:auto}
  .game-panel{padding:16px}
  .progress-step{font-size:.72rem;padding:8px 2px}
}
@media (prefers-reduced-motion:reduce){.snow,.blaze-actor img{animation:none}}
/* house: rumbling chimney + soot puff */
.fireplace{position:relative;margin:4px auto 10px;width:min(320px,80%);aspect-ratio:4/3;border-radius:12px 12px 4px 4px;
  background:var(--art,none) center/cover,linear-gradient(#8b3e2a,#6a2c1f);border:6px solid #4a1f16;display:grid;place-items:end center;overflow:hidden}
.fireplace .hearth{width:62%;height:58%;background:#160b08;border-radius:50% 50% 0 0/40% 40% 0 0;display:grid;place-items:center;font-size:3rem}
.fireplace.rumble{animation:rumble .25s linear infinite}
.fireplace .soot{position:absolute;inset:0;display:grid;place-items:center;font-size:5rem;animation:puff 1s ease-out forwards}
@keyframes rumble{25%{transform:translate(2px,-1px)}50%{transform:translate(-2px,1px)}75%{transform:translate(1px,2px)}}
@keyframes puff{from{transform:scale(.3);opacity:1}to{transform:scale(1.6);opacity:0}}
/* chimney flight */
.flight{position:relative;height:300px;border-radius:14px;overflow:hidden;background:var(--art,none) center/cover,linear-gradient(180deg,#0c1424 0%,#1c3150 55%,#6a4a3a 55% 100%)}
.flight .chimney-shaft{position:absolute;left:50%;bottom:0;width:120px;height:45%;transform:translateX(-50%);background:repeating-linear-gradient(0deg,#7b3a2a 0 18px,#5a2a1f 18px 20px)}
.flight .riders{position:absolute;left:50%;bottom:10%;transform:translateX(-50%);font-size:3.2rem;display:flex;align-items:center;gap:4px}
.flight .riders .blaze-actor{width:80px}
.flight.go .riders{animation:fly 2.2s ease-in forwards}
@keyframes fly{0%{bottom:10%}40%{bottom:45%}100%{bottom:120%;left:85%}}
.flight .stars{position:absolute;inset:0 0 45% 0;background-image:radial-gradient(2px 2px at 30px 40px,#fff,transparent),radial-gradient(2px 2px at 140px 90px,#fffb,transparent),radial-gradient(2px 2px at 260px 30px,#fff,transparent);background-size:300px 140px}
.fact{margin-top:14px;padding:14px 16px;border-radius:12px;background:var(--ro-info-soft);border:1px solid var(--ro-dusk);line-height:1.5}
.fact b{color:var(--gold)}

/* ===== North Pole adventure map (matches the Camping with Blaze trail map) ===== */
.top-controls{display:flex;gap:8px}
[hidden]{display:none!important}
body[data-screen="map"] main{padding-inline:0;max-width:760px}
body[data-screen="map"] footer{display:none}
.amap-wrap{margin:0 0 24px}
.amap{position:relative;aspect-ratio:586/426;overflow:hidden;container-type:inline-size;background:#dfe9f5}
.amap-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;user-select:none}
.pin{position:absolute;transform:translate(-50%,calc(-100% + 1.6cqw));display:flex;flex-direction:column;align-items:center;gap:1.2cqw;
  background:none;border:0;padding:0;min-height:0;cursor:pointer}
.pin.down{transform:translate(-50%,-1.6cqw)}
.sign{font-family:var(--ro-font-display,Fraunces,serif);font-weight:600;font-size:clamp(12px,3.4cqw,26px);line-height:1.1;white-space:nowrap;
  color:#2A1806;background:#FFF4DC;border:2px solid #3B2A17;border-radius:1.6cqw;padding:.7cqw 2.2cqw;box-shadow:0 4px 8px rgba(0,0,0,.45)}
.sign.next{background:linear-gradient(#F7D774,#E8B94A)}
.pin:hover .sign{filter:brightness(1.05)}
.pin:focus-visible{outline:none}.pin:focus-visible .sign{outline:3px solid var(--gold);outline-offset:3px}
.dot{display:grid;place-items:center;width:2.6cqw;min-width:12px;aspect-ratio:1;border-radius:50%;background:#1E3A24;border:max(2px,.5cqw) solid #FFF1D6;box-shadow:0 1px 3px rgba(0,0,0,.5)}
.dot.next{background:#F3B33D;animation:amap-pulse 1.6s ease-in-out infinite}
.dot.chk{width:4.2cqw;min-width:20px;background:#3f6b47;border-color:#cfe3c9;color:#fff;font-weight:700;font-size:clamp(11px,2.8cqw,20px)}
@keyframes amap-pulse{50%{box-shadow:0 0 0 1.4cqw rgba(243,179,61,.35)}}
.map-blaze{position:absolute;width:10cqw;transform:translate(-20%,-62%);filter:drop-shadow(0 6px 5px rgba(0,0,0,.45));pointer-events:none;
  transition:left .8s ease,top .8s ease;animation:blaze-bob 2.4s ease-in-out infinite}
@keyframes blaze-bob{50%{translate:0 -4px}}
.amap-wrap .panel{background:#1E2421;border-top:1px solid #39413A;padding:18px 20px}
.panel-row,.trip-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.panel-row b,.trip-row b{display:block;font-family:var(--ro-font-display,Fraunces,serif);font-weight:600;font-size:clamp(1.3rem,5vw,1.9rem);color:#ECE7DB;line-height:1.1}
.panel-row small,.trip-row small{display:block;color:#A8A599;margin-top:6px;font-size:.95rem;line-height:1.35}
.panel-row>div,.trip-row>div{min-width:0}
.go-btn{background:#6FA87A;color:#0D1013;border:1px solid #6FA87A;font-weight:700;font-size:1.15rem;padding:14px 26px;border-radius:10px;white-space:nowrap}
.outline{background:none;border:1.5px solid #6FA87A;color:#ECE7DB;font-weight:700;padding:10px 18px;border-radius:10px;white-space:nowrap}
.notice{margin-top:10px;color:#E8C26A;font-weight:700}
.trip-row{background:#1E2421;border-top:1px solid #39413A;padding:16px 20px}
.trip-row b{font-size:clamp(1.15rem,4.4vw,1.5rem)}
/* stop screens: Map button sits in the header */
#map-btn{border-color:#6FA87A}
@media (prefers-reduced-motion:reduce){.map-blaze,.dot.next{animation:none}}
.top-controls .quiet{white-space:nowrap}

/* ===== Painted art (2026-11-23): stages with character sprites ===== */
.scene.compact{min-height:0;background:var(--ro-surface);border-color:#39413A}
.scene.compact::after,.scene.compact .snow{display:none}
.scene.compact .scene-copy{padding:20px 24px;max-width:none;color:#ECE7DB}
.scene.compact h1{font-size:clamp(1.7rem,6vw,2.6rem)}
.stage{position:relative;aspect-ratio:586/426;border-radius:14px;overflow:hidden;border:1px solid var(--line);margin-bottom:16px;
  background:var(--art) center/cover,#2a1d14;container-type:inline-size}
.sprite{position:absolute;bottom:0;height:50%;aspect-ratio:1;translate:-50% 0;pointer-events:none;user-select:none;
  filter:drop-shadow(0 6px 5px rgba(0,0,0,.45))}
.sprite.flip{scale:-1 1}
.sprite.blaze{aspect-ratio:350/360}
button.actor{position:absolute;bottom:0;height:50%;aspect-ratio:1;translate:-50% 0;background:none;border:0;padding:0;min-height:0;border-radius:50%}
button.actor .sprite{left:50%;height:100%;bottom:0}
button.actor:hover .sprite,button.actor:focus-visible .sprite{filter:drop-shadow(0 0 6px #E8C26A) drop-shadow(0 6px 5px rgba(0,0,0,.45))}
button.actor .bubble{position:absolute;left:50%;top:-4%;translate:-50% 0;font-size:clamp(14px,4.4cqw,30px);background:#fff;border-radius:999px;padding:.4cqw 1.4cqw;
  box-shadow:0 2px 5px #0006;white-space:nowrap}
button.actor .bubble.ok{background:#21301F;color:#cfe3c9;font-size:clamp(11px,2.6cqw,18px);font-weight:700;padding:.6cqw 1.6cqw}
button.actor.talking .sprite{animation:hop .5s ease-out}
@keyframes hop{40%{translate:-50% -6%}}
.stage-label{position:absolute;left:3%;top:4%;background:#000a;color:#fff;font-weight:700;border-radius:999px;padding:6px 12px;font-size:.9rem}
.soot-puff{position:absolute;left:78%;bottom:28%;translate:-50% 0;font-size:16cqw;animation:puff 1.1s ease-out forwards;pointer-events:none}
.stage.rumble{animation:rumble .25s linear infinite}
.riders{position:absolute;left:50%;bottom:0;width:60%;height:55%;translate:-50% 0}
.riders .sprite{height:100%}
.stage.go .riders{animation:rise 2.2s ease-in forwards}
@keyframes rise{0%{transform:translateY(0) scale(1)}25%{transform:translateY(-8%) scale(1)}100%{transform:translateY(-190%) scale(.45)}}
.sparkles{position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(2px 2px at 20% 70%,#ffe9a8,transparent),radial-gradient(3px 3px at 45% 50%,#fff,transparent),radial-gradient(2px 2px at 60% 80%,#ffe9a8,transparent),radial-gradient(2px 2px at 52% 30%,#fff,transparent);opacity:0}
.stage.go .sparkles{animation:sparkle 2.2s ease-in forwards}
@keyframes sparkle{30%{opacity:1}100%{opacity:1;transform:translateY(-30%)}}
/* cafeteria hotspots over the painting */
.room.painted{aspect-ratio:586/426;background:var(--art) center/cover}
.room.painted .wall-sign{display:none}
.room.painted .spot{border:2px solid #fff8;background:#0007;border-radius:999px;font-size:clamp(.95rem,3.2cqw,1.7rem);min-width:0;min-height:0;padding:3px 7px;box-shadow:0 0 0 0 #E8C26A88;animation:spot-pulse 2s ease-in-out infinite}
.room.painted .spot span{font-size:clamp(.5rem,1.6cqw,.78rem);white-space:nowrap}
.room.painted .spot.found{background:#2f4a2acc;border-color:var(--gold);animation:none}
.room.painted .spot.empty{opacity:.55;animation:none}
.room{container-type:inline-size}
@keyframes spot-pulse{50%{box-shadow:0 0 0 6px #E8C26A33}}
.guide.npc .npc-face.has-img{background-repeat:no-repeat;background-size:250%;background-position:52% 14%;background-color:#3a2a20}
.guide.npc .npc-face.has-img.elf{background-size:300%;background-position:49% 26%}
.stage .party .sprite{animation:walk-in 2.4s ease-out both}
@keyframes walk-in{from{translate:var(--from) 0}to{translate:-50% 0}}

html,body{overflow-x:clip}
@media (max-width:560px){.brand span{display:none}.top{min-height:60px;padding-inline:14px}.top-controls .quiet{padding:6px 12px;min-height:40px}}

/* ===== Sleigh ride (2026-11-23) ===== */
.stage.sky{aspect-ratio:1672/941}
.sleigh-ride{position:absolute;left:3%;bottom:8%;width:33%;aspect-ratio:900/551;transform-origin:50% 60%;animation:sleigh-bob 2.6s ease-in-out infinite}
.sleigh-ride .sprite{z-index:1}
.sleigh-img{position:absolute;inset:0;width:100%;height:100%;z-index:2;filter:drop-shadow(0 8px 8px rgba(0,0,0,.5))}
@keyframes sleigh-bob{50%{translate:0 -3%}}
.stage.go .sleigh-ride{animation:sleigh-fly 3.4s cubic-bezier(.45,.05,.4,1) forwards}
@keyframes sleigh-fly{
  0%{transform:translate(0,0) rotate(0) scale(1)}
  20%{transform:translate(10%,-28%) rotate(-8deg) scale(.92)}
  55%{transform:translate(62%,-66%) rotate(-3deg) scale(.58)}
  100%{transform:translate(112%,-44%) rotate(5deg) scale(.2)}}
.stage.sky .trail{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;opacity:0;
  background:radial-gradient(3px 3px at 18% 68%,#fff6c8,transparent),radial-gradient(2px 2px at 30% 50%,#fff,transparent),radial-gradient(3px 3px at 42% 38%,#ffe9a8,transparent),radial-gradient(2px 2px at 54% 30%,#fff,transparent),radial-gradient(3px 3px at 64% 34%,#fff6c8,transparent),radial-gradient(2px 2px at 72% 42%,#fff,transparent)}
.stage.sky.go .trail{animation:trail 3.4s ease-out forwards}
@keyframes trail{0%{opacity:0}40%{opacity:1}100%{opacity:.85}}
@media (prefers-reduced-motion:reduce){.sleigh-ride{animation:none}.stage.go .sleigh-ride{animation:none;transform:translate(112%,-44%) scale(.2)}}

/* reindeer team (2026-11-23) */
.team{position:absolute;left:84%;bottom:22%;width:150%;height:90%;z-index:3;pointer-events:none}
.deer{position:absolute;width:50%;aspect-ratio:520/381;filter:drop-shadow(0 6px 5px rgba(0,0,0,.45))}
.deer.d2{left:2%;bottom:0}
.deer.d1{left:50%;bottom:22%}
.rein{position:absolute;left:0;bottom:30%;width:62%;height:2px;background:linear-gradient(90deg,#c8963a,#f3d27a);transform:rotate(-9deg);transform-origin:0 50%;box-shadow:0 0 3px #ffd98a}

/* no top description card on any screen */
#scene{display:none!important}
#game .game-panel:first-child{margin-top:16px}
.game-panel h2:focus{outline:none}

/* ===== Chapter 2: The Broccoli Trail (2026-11-23) ===== */
.trail-line{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.trail-line path{fill:none;stroke:#fff6dc;stroke-width:3;stroke-dasharray:2 7;stroke-linecap:round;vector-effect:non-scaling-stroke;opacity:.9;filter:drop-shadow(0 0 2px #0008)}
.tabs{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.tabs .outline{padding:8px 12px;min-height:40px}
.tabs .outline.on{background:#6FA87A;color:#0D1013}
.trip-row{flex-wrap:wrap}
.ph-char{position:absolute;translate:-50% 0;aspect-ratio:1;display:grid;justify-items:center;align-content:end;pointer-events:none}
.ph-emoji{font-size:22cqw;line-height:1;filter:drop-shadow(0 6px 5px rgba(0,0,0,.45))}
.ph-char small{background:#000b;color:#fff;font-weight:700;border-radius:999px;padding:2px 10px;font-size:clamp(10px,2.6cqw,15px);white-space:nowrap;margin-top:2px}
.ph-char.tied .ph-emoji{animation:wiggle .6s ease-in-out infinite}
@keyframes wiggle{25%{rotate:-6deg}75%{rotate:6deg}}
.runner{position:absolute;left:78%;bottom:38%;font-size:7cqw;animation:run-off 2.4s linear infinite}
@keyframes run-off{from{left:70%;opacity:1}to{left:96%;opacity:0}}
.ribbons{display:flex;gap:12px;justify-content:center;margin:12px 0}
.ribbon{font-size:2.2rem;background:var(--ro-surface);border:2px dashed var(--gold);border-radius:14px;padding:6px 16px}
.ribbon.off{opacity:.25;border-style:solid}
.tree-spot{position:absolute;translate:-50% 0;font-size:20cqw;line-height:1;background:none;border:0;padding:0;min-height:0;filter:drop-shadow(0 6px 5px #0007)}
.tree-spot:hover{scale:1.05}
.tree-spot.tried{opacity:.55}
.track-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:6px}
.track-card{display:grid;gap:6px;padding:8px;background:var(--ro-surface);border:2px solid var(--ro-border-control);color:var(--paper);border-radius:12px}
.track-card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.track-card.right{border-color:var(--ro-pine);background:var(--ro-success-soft)}
.track-card.wrong{border-color:var(--ro-danger);opacity:.6}
.wrapper{position:absolute;translate:-50% -50%;font-size:7cqw;background:#fff3;border:2px dashed #fff;border-radius:50%;padding:4px;min-height:0;line-height:1;animation:spot-pulse 2s ease-in-out infinite}
.fort{position:absolute;left:66%;bottom:6%;translate:-50% 0;font-size:30cqw;line-height:1;opacity:.95;filter:drop-shadow(0 8px 6px #0006)}
.deer-still{scale:-1 1}
.trails3 .choice{cursor:default}
.trail-skill{border-color:#6FA87A;background:#1f3326}
.trail-skill b{color:#9fd3a8}
/* fly home: sleigh flies right-to-left, growing as it comes */
.home-path{position:absolute;left:40%;bottom:8%;width:33%;aspect-ratio:900/551}
.home-path .sleigh-ride{left:0;bottom:0;width:100%;scale:-1 1}
.stage.homeward .home-path{transform:translate(95%,-95%) scale(.22)}
.stage.homeward.home .home-path{animation:fly-home 3.4s cubic-bezier(.45,.05,.4,1) forwards}
@keyframes fly-home{
  0%{transform:translate(95%,-95%) scale(.22)}
  45%{transform:translate(20%,-120%) scale(.55) rotate(3deg)}
  100%{transform:translate(-40%,-20%) scale(1)}}
.stage.homeward.home .trail{animation:trail 3.4s ease-out forwards}
.stage.descend .riders.down{animation:descend 2.4s ease-out forwards}
@keyframes descend{from{transform:translateY(-190%) scale(.45)}to{transform:translateY(0) scale(1)}}
.sleepy{position:absolute;left:28%;bottom:8%;width:26%}
.sleepy .blaze-actor{width:100%}
.sleepy .blaze-actor .sprite-eyes-closed{opacity:1;animation:none}
.sleepy .hat{display:none}
.zzz{position:absolute;right:-12%;top:-8%;font-size:9cqw;animation:zzz 2.4s ease-in-out infinite}
@keyframes zzz{50%{translate:6px -10px;opacity:.6}}
.gifts{position:absolute;left:66%;bottom:12%;font-size:9cqw;filter:drop-shadow(0 4px 4px #0007)}
.stage.morning::after{content:"";position:absolute;inset:0;background:linear-gradient(#ffe6a033,#0000);pointer-events:none}
@media (prefers-reduced-motion:reduce){.stage.homeward.home .home-path{animation:none;transform:translate(-40%,-20%)}.stage.descend .riders.down{animation:none}}
.choice.done:disabled{opacity:1;cursor:default}

/* ===== Storeroom loading + map walking (2026-11-23) ===== */
.stage.wide{aspect-ratio:1672/941}
.cargo-sled{position:absolute;left:47%;bottom:4%;width:34%;translate:-50% 0;z-index:3;filter:drop-shadow(0 8px 6px rgba(0,0,0,.5));pointer-events:none}
.crate-img{position:absolute;width:7.5%;translate:-50% 0;background:none;border:0;padding:0;min-height:0;border-radius:6px;cursor:pointer}
.crate-img img{width:100%;display:block;filter:drop-shadow(0 4px 3px rgba(0,0,0,.5))}
.crate-img:not(.loaded){animation:crate-glow 2s ease-in-out infinite}
.crate-img:not(.loaded):hover img{filter:drop-shadow(0 0 6px #E8C26A) drop-shadow(0 4px 3px rgba(0,0,0,.5))}
.crate-img.loaded{cursor:default}
.crate-img:disabled{opacity:1}
@keyframes crate-glow{50%{filter:drop-shadow(0 0 5px #ffd98a)}}
.carrier{z-index:10}
.carrier.flying{animation:flap .25s ease-in-out infinite}
@keyframes flap{50%{transform:translateY(-4%) rotate(-3deg)}}
.map-blaze{transform:none;translate:-50% -92%;transition:none;width:9cqw;animation:map-bob 2.4s ease-in-out infinite}
.map-blaze.face-left{scale:-1 1}
.map-blaze.walking{animation:map-hop .32s ease-in-out infinite}
@keyframes map-bob{50%{transform:translateY(-3%)}}
@keyframes map-hop{50%{transform:translateY(-7%)}}

/* ===== Speech bubbles (2026-11-23): compact face + bubble with a tail ===== */
.say{display:flex;align-items:flex-end;gap:10px;margin:0 0 12px}
.say-face{flex:none;width:46px;height:46px;border-radius:50%;background:#3a2a20 no-repeat;border:2px solid #39413A;display:grid;place-items:center;font-size:1.6rem;overflow:hidden}
.say-face.has-img{background-size:250%;background-position:52% 14%}
.say-face.has-img.elf{background-size:300%;background-position:49% 26%}
.say-face.blaze-face{background:#2b3a2a url(character/body.webp) no-repeat;background-size:150%;background-position:50% 22%}
.say-text{position:relative;margin:0;padding:9px 13px;border-radius:16px 16px 16px 4px;background:var(--ro-surface-muted);border:1px solid var(--line);line-height:1.4;font-size:.98rem}
.say-text::before{content:"";position:absolute;left:-7px;bottom:8px;width:12px;height:12px;background:inherit;border-left:1px solid var(--line);border-bottom:1px solid var(--line);transform:rotate(45deg) skew(10deg,10deg)}
.say-text strong{margin-right:4px}
.say.blaze .say-text strong{color:var(--ro-ember-text)}
.say.npc .say-text strong{color:var(--xmas-red-text)}
.say.blaze .say-text{background:#24301f;border-color:#3d5a37}
.replay{min-height:0;padding:0 4px;background:none;border:0;font-size:1rem;vertical-align:middle;cursor:pointer}

/* ===== Chapter 2 art (2026-11-23) ===== */
.stage.w2{aspect-ratio:887/443}
.runner{left:52%;bottom:52%;font-size:4cqw}
@keyframes run-off{from{left:50%;bottom:50%;opacity:1}to{left:56%;bottom:60%;opacity:0}}
.sprite.tied{animation:wiggle .6s ease-in-out infinite}
.look-spot{position:absolute;translate:-50% -50%;width:9cqw;height:9cqw;min-height:0;border-radius:50%;border:3px dashed #fff;background:#0004;font-size:4cqw;padding:0;animation:spot-pulse 2s ease-in-out infinite}
.look-spot.tried{opacity:.4;animation:none}
.sleepy{left:46%;bottom:30%;width:11%}
/* compact answer cards: emoji beside the words */
.choice{display:grid;grid-template-columns:auto 1fr;column-gap:12px;align-items:center;align-content:center;min-height:54px;padding:10px 14px}
.choice .big{grid-row:1 / span 2;font-size:1.7rem;line-height:1}
.choice b,.choice small{grid-column:2}
.choice:not(:has(.big)) b,.choice:not(:has(.big)) small{grid-column:1 / span 2}
.path-choice{justify-items:start;text-align:left}
.path-choice .big{font-size:1.3rem}
.sleepy{left:44%;bottom:38%;width:17%}
.sleepy .zzz{font-size:6cqw;right:-20%;top:-20%}
.narration{font-family:var(--ro-font-display,Fraunces,serif);font-style:italic;font-size:1.1rem;line-height:1.55;margin:6px 0 14px;color:#ECE7DB}

/* ===== Comic bubbles on the picture (2026-11-23) ===== */
.stage .bubbles{position:absolute;inset:2.5% 0 auto 0;z-index:30;pointer-events:none;height:0}
.stage .say{position:absolute;top:0;margin:0;display:block;width:max-content;max-width:62%}
.stage .say.half{max-width:47%}
.stage .say.half:nth-child(2){top:0}
.stage .say-face{display:none}
.stage .say-text{background:#fffdf6;color:#2a1d14;border:2px solid #2a1d14;border-radius:14px;padding:.9cqw 1.8cqw;
  font-size:clamp(11px,2.9cqw,16px);line-height:1.28;box-shadow:0 3px 8px #0007;pointer-events:auto}
.stage .say.blaze .say-text{background:#f3fbe9;border-color:#24411f}
.stage .say-text strong{display:block;font-size:.85em;line-height:1.1;margin:0 0 .3em}
.stage .say.blaze .say-text strong{color:#3d7a35}
.stage .say.npc .say-text strong{color:#b1342b}
.stage .say-text::before{left:var(--tail,50%);bottom:-8px;top:auto;width:12px;height:12px;background:inherit;border:0;border-right:2px solid #2a1d14;border-bottom:2px solid #2a1d14;
  transform:translateX(-50%) rotate(45deg) skew(8deg,8deg)}
.stage .say.no-tail .say-text::before{display:none}
.stage .replay{pointer-events:auto}
/* tighter panels on phones */
@media (max-width:560px){
  .game-panel{padding:14px;margin:10px 0 18px;border-radius:16px}
  .game-panel h2{font-size:1.35rem;margin-bottom:10px}
  .stage{margin-bottom:12px;border-radius:12px}
  #game .game-panel:first-child{margin-top:10px}
}

.pin.right{flex-direction:row;transform:translate(-1.3cqw,-50%)}
.landmark{position:absolute;translate:-50% -50%;font-family:var(--ro-font-display,Fraunces,serif);font-weight:600;font-size:clamp(10px,2.6cqw,18px);
  color:#fff4dc;background:#3b2a17cc;border-radius:999px;padding:.4cqw 1.8cqw;white-space:nowrap;pointer-events:none}
.stage .say{max-width:72%}
.trail-tag{position:absolute;translate:-50% -50%;z-index:5;background:#3b2a17e6;color:#fff4dc;font-weight:700;font-size:clamp(10px,2.4cqw,14px);
  border:2px solid #E8C26A;border-radius:999px;padding:.4cqw 1.6cqw;white-space:nowrap;pointer-events:none}

/* ===== Cafeteria art v2 (2026-11-23) ===== */
.room.painted{aspect-ratio:1474/1067}
.room.painted .spot{background:#0005;padding:3px;border-radius:14px;display:grid;justify-items:center}
.room.painted .spot img{width:clamp(30px,8.5cqw,58px);height:auto;display:block;filter:drop-shadow(0 2px 3px #000a)}
.room.painted .spot span{margin-top:1px}
.reveal{position:absolute;inset:0;z-index:20;display:grid;place-items:center;background:#0009;pointer-events:none;animation:fade-in .25s ease-out}
.reveal img{width:62%;filter:drop-shadow(0 8px 12px #000c)}
.reveal.done{animation:fade-out .5s ease-in forwards}
@keyframes fade-in{from{opacity:0}}
@keyframes fade-out{to{opacity:0}}
.room.painted .spot span{display:none}
.room.painted .spot{padding:2px;border-width:2px;border-radius:12px}
.room.painted .spot img{width:clamp(26px,7cqw,50px)}

.actor.unwrap{aspect-ratio:543/690;border-radius:20px}
.actor.unwrap.tied .sprite{animation:wiggle .6s ease-in-out infinite}
.actor.unwrap:not(.tied) .sprite{animation:none}
.actor.unwrap:disabled{opacity:1}
.ribbon img{width:52px;display:block}
.ribbon{padding:6px 10px}
.look-spot{border:0;background:none;width:10cqw;height:10cqw}
.look-spot img{width:100%;height:100%;display:block;border-radius:50%;filter:drop-shadow(0 3px 5px #000a)}
.wrapper{width:11cqw;height:11cqw;padding:1cqw;display:grid;place-items:center;background:#fff2;border:2px dashed #fff}
.wrapper img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 3px 3px #0008)}

/* Santa hat on Blaze after he reaches the North Pole */
.hatted{position:absolute}
.hatted > img{position:absolute;left:0;top:0;width:100%;height:100%;object-fit:contain}
.hatted > img.hat{left:40%;top:-1%;width:47%;height:auto}
.map-blaze.hatted{aspect-ratio:1}
.sprite.blaze.hatted{aspect-ratio:1}
body.has-hat .say-face.blaze-face{position:relative;overflow:visible}
body.has-hat .say-face.blaze-face::after{content:"";position:absolute;left:18%;top:-30%;width:70%;aspect-ratio:455/318;background:url(sprites/hats/three-quarter-left.webp) center/contain no-repeat}
.dir-icon{width:38px;height:38px;display:block}

/* cafeteria close-ups */
.reveal{border:0;padding:0;min-height:0;border-radius:0;cursor:pointer;pointer-events:auto;align-content:center;justify-items:center;gap:6px;color:#fff}
.reveal small{font-size:clamp(10px,2.4cqw,13px);opacity:.85}
.reveal.cu > div{max-width:88%}
.cu-book{display:grid;grid-template-columns:1fr 1fr;width:min(80cqw,520px);aspect-ratio:2/1.15;background:#7a1b18;padding:2.2cqw;border-radius:10px;gap:3px;box-shadow:0 10px 24px #000c;animation:book-open .5s ease-out}
@keyframes book-open{from{transform:scaleX(.15);opacity:.3}}
.cu-page{background:#fbf3df;color:#3a2a1a;border-radius:4px;padding:2cqw;font-size:clamp(10px,2.5cqw,15px);line-height:1.35;text-align:left;display:grid;align-content:start;gap:.8cqw}
.cu-page b{font-family:var(--ro-font-display,Fraunces,serif);font-size:1.15em}
.cu-page span{font-style:italic;color:#7a5a3a}
.cu-page p{margin:0}
.cu-pantry{position:relative;width:min(60cqw,400px);aspect-ratio:1.1;background:#4a3420;border:6px solid #2e1f12;border-radius:8px;box-shadow:0 10px 24px #000c;perspective:600px}
.cu-shelves{position:absolute;inset:8%;display:grid;grid-template-rows:repeat(3,1fr);place-items:center}
.cu-shelves i{width:100%;height:8px;background:#8a6a40;align-self:end;box-shadow:0 3px 0 #2e1f12}
.cu-shelves span{position:absolute;font-family:var(--ro-font-display,Fraunces,serif);font-weight:600;font-size:clamp(16px,6cqw,40px);color:#ffd98a;rotate:-8deg;text-shadow:0 2px 4px #000}
.cu-door{position:absolute;inset:0;background:url(sprites/clues/pantry-door.webp) center/70% no-repeat,#6b4a2a;transform-origin:left;animation:door-open .8s ease-in forwards;z-index:2}
@keyframes door-open{to{transform:rotateY(-105deg)}}
.cu-pantry .cu-trail{position:absolute;bottom:-18%;left:10%;right:-30%}
.cu-trail{display:flex;gap:2cqw;justify-content:center}
.cu-trail img{width:clamp(36px,11cqw,80px);filter:drop-shadow(0 3px 4px #000a)}
.cu-row{display:flex;align-items:center;gap:4cqw;justify-content:center}
.cu-row > img{width:clamp(80px,28cqw,180px);filter:drop-shadow(0 6px 10px #000c);animation:pop .4s ease-out}
@keyframes pop{from{transform:scale(.4);opacity:0}}
.cu-big{font-size:clamp(40px,14cqw,90px);animation:pop .4s .2s ease-out both}
.cu-boot{width:clamp(80px,24cqw,160px);filter:drop-shadow(0 6px 10px #000c);animation:pop .4s ease-out}
.cu-pantry{width:min(46cqw,300px);margin-bottom:14cqw}
.cu-pantry .cu-trail{bottom:-30%;left:-10%;right:-10%}

/* ===== Rooftop (2026-11-23) ===== */
.nose-santa{aspect-ratio:1;translate:-50% 0}
.stage.rooftop .roof{position:absolute;left:-5%;right:-5%;bottom:0;height:30%;z-index:1;
  background:linear-gradient(#fbfdff 0 16%,transparent 16%),repeating-linear-gradient(90deg,#7c2f22 0 7%,#6a271c 7% 7.4%),#7c2f22;
  clip-path:polygon(0 30%,100% 0,100% 100%,0 100%);box-shadow:inset 0 6px 0 #fff}
.stage.rooftop .roof-chimney{position:absolute;left:6%;bottom:22%;width:9%;height:22%;z-index:1;
  background:linear-gradient(#f4f8fd 0 14%,transparent 14%),repeating-linear-gradient(0deg,#8e3b28 0 12%,#6f2d1f 12% 14%);border-radius:3px}
.stage.rooftop .roof-sleigh{position:absolute;inset:0;z-index:2}
.stage.rooftop .sleigh-ride.parked{left:34%;bottom:20%;width:34%;animation:none}
.stage.rooftop .sprite{z-index:3}
.deer.still{filter:drop-shadow(0 6px 5px rgba(0,0,0,.45))}
.stage.rooftop .roof{position:absolute;left:0;bottom:0;width:100%;height:42%;z-index:1;clip-path:none;background:none;box-shadow:none}
.stage.rooftop .roof-chimney{left:4%;bottom:26%;width:8%;height:20%}
.stage.rooftop .sleigh-ride.parked{left:36%;bottom:13%;width:32%}
.hat-pop .hat{animation:hat-pop .6s cubic-bezier(.3,1.6,.5,1) both}
@keyframes hat-pop{from{transform:translateY(-120%) rotate(-20deg);opacity:0}}
.cu-mitten{font-size:clamp(70px,26cqw,160px)}

/* elf badges: cream + gold = still to do, green = done */
button.actor .bubble{background:#FFF4DC;color:#3B2A17;border:2px solid #E8C26A;font-weight:700;font-size:clamp(11px,2.7cqw,17px);padding:.6cqw 1.8cqw;
  box-shadow:0 2px 6px #0007,0 0 0 0 #E8C26A88;animation:badge-pulse 1.8s ease-in-out infinite}
button.actor .bubble.ok{background:#21301F;color:#cfe3c9;border-color:#6FA87A;animation:none}
button.actor:hover .bubble:not(.ok){background:#FBE3A6}
@keyframes badge-pulse{50%{box-shadow:0 2px 6px #0007,0 0 0 5px #E8C26A33}}
@media (prefers-reduced-motion:reduce){button.actor .bubble{animation:none}}
.cu-row > img.cu-art{width:auto;filter:drop-shadow(0 8px 12px #000c)}
.cu-pantry-art{height:min(62cqw,360px)}
.cu-boot-art{height:min(66cqw,380px)}
.cu-mitten-art{height:min(50cqw,300px)}
.cu-pantry-art{height:min(54cqw,340px)}
.cu-boot-art{height:min(56cqw,340px)}
.cu-mitten-art{height:min(44cqw,280px)}
.trail-sign{position:absolute;bottom:34%;translate:-50% 0;z-index:5;width:19%;display:grid;justify-items:center;gap:2px;pointer-events:none}
.trail-sign:nth-child(n){}
.trail-sign img{width:100%;filter:drop-shadow(0 4px 4px #0008)}
.trail-sign span{background:#3b2a17e6;color:#fff4dc;font-weight:700;font-size:clamp(9px,2.1cqw,13px);border-radius:999px;padding:.2cqw 1.2cqw;white-space:nowrap}
.trail-sign{width:13%;bottom:22%;z-index:1}
.trail-sign span{font-size:clamp(8px,1.9cqw,12px)}
.trail-sign{grid-template-columns:100%}
.trail-sign span{justify-self:center}
.map-wrapper{position:absolute;translate:-50% -50%;z-index:6;width:6cqw;height:6cqw;min-height:0;padding:.6cqw;border-radius:50%;border:2px dashed #fff;background:#0004;animation:spot-pulse 2s ease-in-out infinite}
.map-wrapper img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px #0008)}

.sign.mystery{background:#d9ccb2;color:#5a4a33;letter-spacing:.15em}
.parked-sled{left:31%;bottom:2%;width:20%;z-index:0}
/* pulling the sled out the door */
.stage.store.pulling .cargo-sled,.stage.store.pulling .crate-img.loaded,.stage.store.pulling .carrier{transition:transform 2.3s ease-in;transform:translateX(75cqw)}
.stage.store.pulling .carrier{animation:flap .25s ease-in-out infinite}
.badge-art{display:block;width:min(220px,55%);margin:8px auto 14px;filter:drop-shadow(0 10px 18px #000a);animation:badge-in .7s cubic-bezier(.3,1.5,.5,1) both}
@keyframes badge-in{from{transform:scale(.3) rotate(-20deg);opacity:0}}
.map-sled{position:absolute;width:8cqw;translate:-112% -78%;z-index:4;pointer-events:none;filter:drop-shadow(0 3px 3px #0008)}
.map-sled.face-left{translate:12% -78%;scale:-1 1}
.map-blaze{z-index:5}

/* Randy's icon art (2026-11-23) */
.ans-icon{width:46px;height:46px;display:block;object-fit:contain}
.choice .big:has(.ans-icon){font-size:0}
.print-icon{height:1.9em;width:auto;vertical-align:middle;filter:drop-shadow(0 1px 2px #0006)}
.big.prints{display:flex;gap:4px;font-size:1rem}
.big.prints .print-icon{height:34px}
.tracks-ahead .print .print-icon{height:40px}
.trail-sign span .print-icon{height:1.6em;margin-right:2px}
img.soot-puff{width:20cqw;height:auto;font-size:0}
img.runner{width:5cqw;height:auto;font-size:0}
img.zzz{width:auto;height:6cqw;right:-35%;top:-35%}
.cu-flake{width:clamp(60px,18cqw,120px);animation:pop .4s .2s ease-out both}
.cu-book2{position:relative;width:min(84cqw,560px);animation:book-open .5s ease-out}
.cu-book2 > img{width:100%;display:block;filter:drop-shadow(0 10px 18px #000c)}
.cu-book2 .pg{position:absolute;top:12%;bottom:14%;color:#3a2a1a;text-align:left;font-size:clamp(10px,2.5cqw,16px);line-height:1.35;display:grid;align-content:start;gap:.8cqw}
.cu-book2 .pg.l{left:9%;right:54%}.cu-book2 .pg.r{left:55%;right:9%}
.cu-book2 .pg b{font-family:var(--ro-font-display,Fraunces,serif)}
.cu-book2 .pg span{font-style:italic;color:#7a5a3a}.cu-book2 .pg p{margin:0}
.stage.rooftop .sleigh-ride.parked{left:44%;bottom:22%;width:34%}
.path-choice.wrong{background:linear-gradient(180deg,#f6e3df,#e7c3bb);color:#5a1f17;opacity:1}
.map-sled{aspect-ratio:538/245}
.map-sled .ms-sled{position:absolute;inset:auto 0 0 0;width:100%}
.map-sled .ms-crate{position:absolute;width:24%}
.map-sled .c0{left:20%;bottom:44%}.map-sled .c1{left:41%;bottom:44%}.map-sled .c2{left:62%;bottom:44%}
.map-sled .c3{left:30%;bottom:78%}.map-sled .c4{left:51%;bottom:78%}.map-sled .c5{left:40%;bottom:110%}
.santa-walker{aspect-ratio:1;translate:-50% 0}
.map-santa{position:absolute;width:11cqw;translate:-105% -92%;z-index:4;pointer-events:none;filter:drop-shadow(0 4px 4px #0007)}
.map-santa.face-left{translate:5% -92%;scale:-1 1}
/* footprint cards: dark game style so the snowy prints stand out */
.path-choice,.tracks-ahead{background:var(--ro-surface-muted);color:#ECE7DB;border:1.5px solid var(--ro-border-control)}
.path-choice:hover:not(:disabled){border-color:#E8C26A;background:#2c342e}
.path-choice.wrong{background:var(--ro-danger-soft);color:#f1c9c1;border-color:var(--ro-danger)}
.big.prints .print-icon,.tracks-ahead .print .print-icon{filter:brightness(1.6) drop-shadow(0 0 3px #ffffff55)}
.big.prints .print-icon{height:40px}
.sleigh-ride .sleigh-img.back{z-index:1}
.sleigh-ride .sprite{z-index:2}
.sleigh-ride .sleigh-img.front{z-index:3}
.stage .say-text{pointer-events:none}
.stage .say-text .replay,.stage .say-text .say-next{pointer-events:auto}   /* bubbles ignore taps except their buttons */

/* idle hint */
.hinting{animation:hint-pulse 1.1s ease-in-out infinite !important;outline:3px solid #E8C26A;outline-offset:3px;border-radius:12px}
@keyframes hint-pulse{50%{box-shadow:0 0 0 8px #E8C26A55;transform:scale(1.03)}}
.choices.hinting,.track-grid.hinting{transform:none}
.hint-finger{position:absolute;z-index:999;translate:-50% 0;background:#E8C26A;color:#2A1806;font-weight:800;font-size:15px;
  padding:6px 12px;border-radius:999px;box-shadow:0 4px 10px #0008;pointer-events:none;animation:finger-bob 1s ease-in-out infinite}
@keyframes finger-bob{50%{translate:-50% -6px}}
@media (prefers-reduced-motion:reduce){.hinting,.hint-finger{animation:none !important}}

/* ===== Phone fit (iPhone 17 ≈ 402×750 visible): no scrolling ===== */
@media (max-width:520px){
  .top{min-height:48px;padding-inline:10px}
  .brand img{width:32px;height:32px}
  .top-controls .quiet{min-height:34px;padding:4px 10px;font-size:.85rem}
  main{padding-inline:8px}
  footer{display:none}
  .game-panel{padding:8px 8px 10px;margin:4px 0 8px;border-radius:14px}
  #game .game-panel:first-child{margin-top:4px}
  .game-panel h2{font-size:1.1rem;margin:2px 2px 6px}
  .game-panel h2 small{font-size:.8rem !important}
  .stage,.room{margin-bottom:8px}
  .choices{grid-template-columns:1fr 1fr;gap:6px;margin-top:4px}
  .choice{min-height:44px;padding:6px 8px;column-gap:8px;font-size:.86rem;line-height:1.2}
  .choice .big{font-size:1.3rem}
  .ans-icon{width:32px;height:32px}
  .big.prints .print-icon{height:26px}
  .choice small{font-size:.75rem}
  .feedback{margin-top:6px;font-size:.85rem;line-height:1.3;min-height:0}
  .fact{margin-top:6px;padding:8px 10px;font-size:.82rem;line-height:1.35;border-radius:10px}
  .actions{margin-top:8px}
  .actions .primary,.primary{padding:9px 16px;font-size:.95rem;min-height:40px}
  .say{margin-bottom:6px}.say-face{width:34px;height:34px}.say-text{font-size:.85rem;padding:6px 10px}
  p[style*="font-weight:700"]{margin:6px 0 4px !important;font-size:.9rem}
  .tracks-ahead{padding:6px 10px;margin-bottom:6px;gap:8px;font-size:.85rem}
  .tracks-ahead .print .print-icon{height:28px}
  .snowline{margin:2px 0 6px;height:6px}
  .ribbons{margin:4px 0;gap:8px}.ribbon img{width:36px}
  .track-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}
  .track-card{padding:4px;gap:2px;font-size:.7rem}
  .crates{grid-template-columns:repeat(3,1fr);gap:6px}
  .badge-art{width:min(150px,40%);margin:4px auto 6px}
  .cliff{margin-top:8px;padding:10px;font-size:.85rem}
  .narration{font-size:.92rem;margin:4px 0 8px}
  .amap-wrap .panel{padding:10px 12px}
  .panel-row b,.trip-row b{font-size:1.15rem}
  .panel-row small,.trip-row small{font-size:.8rem;margin-top:2px}
  .go-btn{padding:10px 18px;font-size:1rem}
  .trip-row{padding:8px 12px;gap:8px}
  .tabs .outline{min-height:34px;padding:4px 10px;font-size:.85rem}
  .stage .say-text{font-size:clamp(10px,3.1cqw,14px)}
  .cu-book2,.cu-row > img.cu-art{max-height:70cqw}
}
#sound-btn{min-width:44px;font-size:1.05rem}
body.muted .replay{display:none}
/* bubble moved beside the speaker: tail points sideways at them */
.stage .say.beside .say-text::before{bottom:auto;top:14px;left:auto;right:-8px;transform:rotate(-45deg) skew(8deg,8deg)}
.stage .say.beside.on-right .say-text::before{right:auto;left:-8px;transform:rotate(135deg) skew(8deg,8deg)}

/* Trail Three: Blaze flaps and blows the snow away to reveal the star prints */
.flap-rig{position:absolute;left:17%;bottom:6%;height:44%;aspect-ratio:490/392;translate:-50% 0;pointer-events:none;z-index:3;
  filter:drop-shadow(0 5px 4px #09181185);animation:flap-hover 2.6s ease-in-out forwards}
.flap-rig img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.flap-rig .rig-hat{left:30%;top:-14%;width:40%;height:auto;inset:auto auto auto 30%}
.flap-rig .sprite-right-wing-down,.flap-rig .sprite-left-wing-down{animation:wd .3s steps(1) 8}
.flap-rig .sprite-right-wing-mid,.flap-rig .sprite-left-wing-mid{animation:wm .3s steps(1) 8}
.flap-rig .sprite-right-wing-up,.flap-rig .sprite-left-wing-up{animation:wu .3s steps(1) 8}
@keyframes wd{0%{opacity:1}25%,100%{opacity:0}}
@keyframes wm{0%{opacity:0}25%{opacity:1}50%{opacity:0}75%,100%{opacity:1}}
@keyframes wu{0%,25%{opacity:0}50%{opacity:1}75%,100%{opacity:0}}
@keyframes flap-hover{0%{translate:-50% 0;opacity:1}15%,80%{translate:-50% -10%;opacity:1}92%{translate:-50% 0;opacity:1}100%{translate:-50% 0;opacity:0}}
.sprite.after-flap{opacity:0;animation:fade-in-to .3s 2.4s forwards}
@keyframes fade-in-to{to{opacity:1}}
.gust{position:absolute;left:24%;bottom:14%;width:60%;height:40%;pointer-events:none;z-index:2}
.gust i{position:absolute;left:0;bottom:var(--y);width:18%;aspect-ratio:2/1;border-radius:50%;
  background:radial-gradient(#fff 0 30%,#ffffffb0 50%,#fff0 70%);opacity:0;animation:gust 1s var(--d) ease-out forwards}
@keyframes gust{0%{opacity:0;translate:0 0;scale:.4}20%{opacity:1}100%{opacity:0;translate:300% -60%;scale:1.6}}
.snow-cover{position:absolute;left:48%;bottom:18%;width:36%;height:56%;pointer-events:none;z-index:1;border-radius:50%;
  background:radial-gradient(closest-side,#f4f7ff 0 55%,#f4f7ffcc 70%,#f4f7ff00);filter:blur(2px)}
.stage.blowing .snow-cover{animation:cover-off 1.4s .5s ease-in forwards}
.stage.blown .snow-cover{display:none}
@keyframes cover-off{to{opacity:0;translate:40% -20%;scale:1.3}}
.star-print{position:absolute;width:3.6%;translate:-50% 0;pointer-events:none;z-index:1;opacity:.9;filter:drop-shadow(0 0 3px #fff6cf)}
.stage.blowing .star-print{opacity:0;animation:print-in .5s var(--d) ease-out forwards}
@keyframes print-in{from{opacity:0;scale:.4}60%{scale:1.25}to{opacity:1;scale:1}}
@media (prefers-reduced-motion:reduce){.flap-rig{display:none}.sprite.after-flap{opacity:1;animation:none}}

/* "The boots stopped": show the mystery tracks, then name the animal */
.mystery-track{position:absolute;right:4%;bottom:8%;width:34%;margin:0;padding:5px 5px 3px;background:#f7f1e3;border-radius:10px;rotate:3deg;
  box-shadow:0 6px 14px #0008;z-index:2;text-align:center}
.mystery-track img{display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:6px}
.mystery-track figcaption{font:700 .72rem/1.3 system-ui,sans-serif;color:#3b2a1a;padding-top:2px}
.animal-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
.animal-choices .choice{min-height:0;padding:12px;text-align:center}
.animal-choices .choice.right{border-color:var(--ro-pine);background:var(--ro-success-soft)}
.animal-choices .choice.wrong{border-color:var(--ro-danger);opacity:.6}

/* ---- Fit the picture to the screen's HEIGHT too (2026-11-24) ----
   Randy, on a laptop: "the app expands past my laptop screen, I have to scroll all around."
   Root cause: every scene picture (.stage / .room) was width:100% of the game panel (up to
   ~1010px), so its height came from the width: 734px tall on a 772px-tall laptop window, with
   the title above it and the buttons below it pushed off the bottom.
   Fix: the picture is as wide as the panel OR as wide as fits the window's height, whichever is
   smaller, and centered. 290px = what sits above and below the picture (header 87 + title and
   panel padding ~94 + gap, buttons and panel bottom ~110), measured on the live page.
   --ar must match each stage's own aspect-ratio rule above. If you add a new stage shape, add
   its --ar here too, or it falls back to 586/426 and the cap is a little off for that shape.
   Phones are unaffected: there the width is the smaller of the two, same as before. */
.stage, .room { --ar: 586/426; width: min(100%, calc((100vh - 290px) * var(--ar))); margin-inline: auto; }
@supports (height: 100dvh) {
  .stage, .room { width: min(100%, calc((100dvh - 290px) * var(--ar))); }
}
.room { --ar: 16/9; }
.room.painted { --ar: 1474/1067; }
.stage.sky, .stage.wide { --ar: 1672/941; }
.stage.w2 { --ar: 887/443; }

/* ===== Phone in landscape (2026-11-24) =====
   Randy: the game needs a landscape layout (the rest of the app is fine sideways).
   Root cause: every screen stacks header → title → picture → buttons. A phone on its side is only
   ~390px tall (~260px inside the app), so either the picture ran off the bottom (before) or, with
   the laptop fit rule above reserving 290px, it shrank to a thumbnail.
   This block slims the header and shrinks text for short wide screens. The LAYOUT for them
   (picture full-height, buttons floating over it) is the "one screen" block further down.
   Portrait phones, tablets and laptops never match this query, so they're unchanged. */
@media (orientation:landscape) and (max-height:560px){
  /* ro-theme.css gives the header a 64px minimum; landscape can't spare it. */
  .ro-header{min-height:0;padding-top:4px;padding-bottom:4px}
  .top{min-height:40px;padding-inline:10px}
  .brand img{width:28px;height:28px}
  .brand span{display:none}
  .top-controls .quiet{min-height:32px;padding:3px 10px;font-size:.85rem}
  main{max-width:none;padding-inline:10px}
  footer{display:none}

  .game-panel h2{font-size:1.05rem;margin:0 0 6px}
  .game-panel h2 small{font-size:.75rem !important}
  .choices{grid-template-columns:1fr 1fr;gap:6px;margin-top:4px}
  .choice{min-height:40px;padding:5px 8px;font-size:.84rem;line-height:1.2}
  .feedback,.fact,.narration{font-size:.84rem;line-height:1.35;margin-top:6px}
  .actions{margin-top:8px;justify-content:flex-start !important;flex-wrap:wrap;gap:8px}
  .actions .primary,.primary{padding:8px 14px;font-size:.92rem;min-height:38px}
  .stage .say-text{font-size:clamp(10px,2.6cqw,14px)}
  /* Answer cards and the ending: smaller icons/badge so they fit beside the picture. */
  .ans-icon{width:28px;height:28px}
  .choice{min-height:36px;padding:4px 8px}
  .badge-art{width:84px;height:auto;margin:0 auto 4px}
  .badge{width:84px;font-size:2rem;margin:0 auto 6px}
  .cliff{padding:6px 10px;margin-top:6px;font-size:.84rem}

  body[data-screen="map"] main{max-width:none}
}

/* ---- Bubble under the picture (2026-11-24) ----
   game.js placeBubble() moves a line here when no spot ON the picture keeps every face clear
   (Randy: "the text covers their faces"). Same comic look as the bubbles on the picture, with the
   tail on top pointing up at the speaker (--tail = the speaker's position across the picture). */
.bubble-below{margin:4px 0 6px;position:relative;z-index:2}
.bubble-below .say{display:block;margin:0}
.bubble-below .say-face{display:none}
.bubble-below .say-text{background:#fffdf6;color:#2a1d14;border:2px solid #2a1d14;border-radius:14px;padding:8px 12px;
  font-size:.95rem;line-height:1.3;box-shadow:0 3px 8px #0007}
.bubble-below .say.blaze .say-text{background:#f3fbe9;border-color:#24411f}
.bubble-below .say-text strong{display:block;font-size:.85em;line-height:1.1;margin:0 0 .3em}
.bubble-below .say.blaze .say-text strong{color:#3d7a35}
.bubble-below .say.npc .say-text strong{color:#b1342b}
.bubble-below .say-text::before{left:var(--tail,50%);top:-8px;bottom:auto;width:12px;height:12px;background:inherit;border:0;
  border-left:2px solid #2a1d14;border-top:2px solid #2a1d14;transform:translateX(-50%) rotate(45deg)}
.bubble-below .say.blaze .say-text::before{border-color:#24411f}
.bubble-below .say.no-tail .say-text::before{display:none}
/* Sideways the bubble sits in the column beside the picture, so an "up" tail would point at nothing. */
@media (orientation:landscape) and (max-height:560px){
  .bubble-below{margin:0 0 6px}
  .bubble-below .say-text{font-size:.84rem;padding:6px 10px}
  .bubble-below .say-text::before{display:none}
}

/* App promo on the ending screen (2026-11-24). Browser only: inside the app it's pointless. */
.get-app{margin:10px 0 0}
.get-app-link{display:inline-block;padding:8px 14px;border-radius:999px;border:1px solid var(--line);color:var(--paper);text-decoration:none;font-weight:700;font-size:.92rem}
html.in-app .get-app{display:none}

/* Start-over check (2026-11-24). */
.restart-msg{margin:0 0 14px;line-height:1.4}
.restart-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:0}

/* ===== Sideways phone: ONE SCREEN, no side column (2026-11-24) =====
   Randy: "Can we get everything in one screen? With no side bar" → chose "buttons over the
   picture": the scene keeps playing as it does, and when it's time to tap, the button (or the
   answer cards) appears over the bottom of the picture; the map's chapter / Start over controls
   sit behind an ⓘ button.
   This REPLACES the earlier side-column layout (picture left, column right). Don't bring that
   back: on a 2:1 phone it left a mostly empty column and still needed scrolling.
   How: game.js wrapOverlay() moves everything after the picture into .panel-overlay (on every
   screen size), and only here is that overlay floated over the picture. In portrait and on big
   screens .panel-overlay is display:contents, so nothing moves there.
   The scene title is hidden visually here (still read by screen readers).
   52px = slim header (~44) + a little margin. The pictures are ~4:3 and the phone is ~2:1, so
   there are dark strips left and right; cropping the art to fill them would misplace the
   characters, which are positioned on the picture. */
.panel-overlay{display:contents}
.map-info-btn{display:none}
@media (orientation:landscape) and (max-height:560px){
  #game .game-panel.has-overlay{position:relative;width:fit-content;max-width:100%;margin:4px auto 0;padding:0;border:0;background:none;box-shadow:none}
  .game-panel.has-overlay > h2{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0}
  .game-panel.has-overlay > .stage,.game-panel.has-overlay > .room{margin:0;width:min(calc(100vw - 140px),calc((100dvh - 14px) * var(--ar)))}
  .game-panel.has-overlay > .panel-overlay{display:flex;position:absolute;left:8px;right:8px;bottom:8px;z-index:40;flex-direction:column;
    align-items:flex-end;gap:6px;max-height:calc(100% - 16px);overflow-y:auto;overscroll-behavior:contain;pointer-events:none}
  .panel-overlay > *{pointer-events:auto;margin:0 !important}
  .panel-overlay > :not(.actions):not(.bubble-below):not(.badge-art):not(.choices):not(.ov-tail){align-self:stretch;background:#141a17eb;border:1px solid #39413A;border-radius:12px;padding:6px 10px}
  .panel-overlay > .bubble-below{align-self:stretch}
  .panel-overlay > .choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:6px;padding:6px}
  .panel-overlay > .feedback:empty{display:none}
  .panel-overlay > .actions{flex-wrap:nowrap;justify-content:flex-end !important}
  .panel-overlay .actions button{box-shadow:0 4px 14px #000b}
  /* The ending: badge art floats on its own (no box), next to its title. */
  .panel-overlay > .badge-art{align-self:flex-start;background:none;border:0;padding:0;width:72px;filter:drop-shadow(0 4px 8px #000b)}
  .panel-overlay > h2{font-size:1rem;margin:0;text-align:center}

  /* The map: full height (rules for every size are in the "map overlay" block below). */
  .amap-wrap{width:fit-content;max-width:100%;margin:4px auto 0}
  .amap-wrap > .amap{width:min(calc(100vw - 140px),calc((100dvh - 14px) * var(--ar)))}
  .panel-row b,.trip-row b{font-size:1.05rem}
  .panel-row small,.trip-row small{font-size:.78rem;margin-top:2px}
  .amap-wrap .notice{font-size:.82rem;margin-top:6px}
  .amap-wrap .panel button,.amap-wrap .trip-row button{min-height:34px;padding:5px 12px;font-size:.88rem}
}

/* ===== Map overlay on EVERY screen size (2026-11-24) =====
   Randy: same floating Start box and ⓘ upright as sideways. The next stop + its Start button
   float in the map's bottom corner; the chapter row (Ch 1 / Ch 2 / Start over) opens from ⓘ.
   While Blaze is still walking to the next stop the box is hidden (.blaze-walking, set by
   game.js renderMap) and fades in when he arrives: "Can the start show only once Blaze arrives?" */
.amap-wrap{position:relative}
/* Where the next-stop box goes (2026-11-24, after it covered the Broccoli Trail sign in a corner):
   - UPRIGHT / big screens: just UNDER the map (there is room there), full width.
   - SIDEWAYS PHONE: floating TOP-LEFT over the sky; both maps' signs are all lower down. */
.amap-wrap > .panel{position:static;margin-top:8px;z-index:20;
  background:#141a17ee;border:1px solid #39413A;border-radius:12px;padding:8px 10px;transition:opacity .35s ease,visibility .35s}
@media (orientation:landscape) and (max-height:560px){
  .amap-wrap > .panel{position:absolute;left:8px;top:8px;right:auto;bottom:auto;margin:0;max-width:min(300px,46%)}
  /* Chapter 1's map has the storeroom up top-centre-left and open mountains top-right, so there
     the box goes top-RIGHT and ⓘ (and its chapter row) move to the left. Chapter 2's open sky is
     top-left (Fly Home is top-right). */
  .amap-wrap.ch-ch1 > .panel{left:auto;right:8px}
  .amap-wrap.ch-ch1 > .map-info-btn{right:auto;left:8px}
  .amap-wrap.ch-ch1 > .trip-row{right:auto;left:8px}
}
.amap-wrap.blaze-walking > .panel{opacity:0;visibility:hidden}
.amap-wrap > .trip-row{display:none;position:absolute;right:8px;top:52px;max-width:min(380px,calc(100% - 16px));z-index:21;
  background:#141a17f4;border:1px solid #39413A;border-radius:12px;padding:8px 10px}
.amap-wrap.info-open > .trip-row{display:flex}
.map-info-btn{display:grid;place-items:center;position:absolute;right:8px;top:8px;z-index:22;width:38px;height:38px;border-radius:50%;
  background:#141a17e8;color:#ECE7DB;border:1px solid #6FA87A;font-size:1.15rem;font-weight:700;padding:0;min-height:0}
.amap-wrap .panel-row b{font-size:1.05rem}
.amap-wrap .panel-row small{font-size:.8rem;margin-top:2px}
.amap-wrap .panel button{min-height:36px;padding:6px 14px}

/* ===== Bigger picture (2026-11-24) =====
   Randy: "Can we make it take up more of the screen without distorting it?" The art keeps its
   shape (stretching or cropping it would misplace the characters), so the room comes from the
   chrome around it:
   - SIDEWAYS PHONE: the top bar (🔊, Map, Clues) becomes a slim icon column in the dark strip on
     the left, so the picture gets the full height. 140px = that column (~64) mirrored on the
     right so the picture stays centered.
   - UPRIGHT PHONE: the picture runs edge to edge (no side margins); text and buttons keep theirs.
   - Double-tap zoom is off everywhere (touch-action) so a missed tap can't zoom the game. */
html{touch-action:manipulation}
/* NO LANDSCAPE TEXT INFLATION (2026-11-24). Root cause of the big sideways text in Randy's
   screenshots: iPhone's browser (and the app's WebView) automatically ENLARGES text when the
   phone turns sideways unless the page opts out. Every sideways size in this file was tuned in a
   desktop browser, which doesn't do that, so on the phone the trail-skill box, answers and
   buttons came out ~1/3 bigger and covered the characters. 100% = use the sizes as written. */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media (orientation:landscape) and (max-height:560px){
  .ro-header{position:fixed;left:0;top:0;bottom:0;width:64px;z-index:60;background:none;border:0;padding:6px 0 0;min-height:0}
  .ro-header .top{flex-direction:column;align-items:center;justify-content:flex-start;min-height:0;padding:0;gap:8px}
  .ro-header .brand{display:none}
  .top-controls{flex-direction:column;gap:8px}
  .top-controls .quiet{position:relative;width:48px;height:48px;min-height:0;padding:0;border-radius:50%;font-size:1.25rem;display:grid;place-items:center;
    background:#141a17e8}
  .top-controls .lbl{display:none}
  #clue-count{position:absolute;right:-4px;top:-4px;font-size:0}
  #clue-count:not(:empty)::after{content:attr(data-n);background:#E8C26A;color:#2A1806;border-radius:999px;font-size:.68rem;font-weight:800;padding:1px 5px;line-height:1.3;display:block}
  /* flow-root: keeps the panel's 4px top margin inside main. Without it the margin pushed the
     whole page down and body's min-height:100vh made it 4px taller than the screen (scrolling). */
  main{padding:0 !important;display:flow-root}
  #game .game-panel.has-overlay{margin:4px auto 0}
}
@media (max-width:520px) and (orientation:portrait){
  main{padding-inline:0}
  .game-panel{border-left:0;border-right:0;border-radius:0;padding-left:0;padding-right:0}
  .game-panel > .stage,.game-panel > .room{border-radius:0;border-left:0;border-right:0}
  .game-panel > :not(.stage):not(.room),.panel-overlay > :not(.ov-tail),.ov-text > *,.ov-tail > .actions{margin-left:10px !important;margin-right:10px !important}
}

/* Map signs on the LEFT of their dot (2026-11-24): sign then dot in a row, dot centered on the
   stop. Used where a sign above the dot got covered by Blaze and Santa standing there. */
.pin.left{flex-direction:row;transform:translate(calc(-100% + 1.3cqw),-50%)}
/* ...and at those stops Santa stands to Blaze's RIGHT (away from the sign). */
.map-santa.right-of:not(.face-left){translate:5% -92%}
/* The elves' scene: the candy sled parked in the corner, still loaded (crates stacked on it). */
.map-sled.parked-load{left:31%;bottom:2%;top:auto;width:20%;translate:-50% 0;z-index:0}

/* Answer cards sideways: ONE slim row along the very bottom of the picture (2026-11-24).
   Randy: the cards "still cover up the characters" (2-3 rows of big cards filled the lower half).
   Now every choice sits in a single row of compact cards with a small icon and short text, and
   the dark box behind the row is gone, so only the bottom strip (feet) is covered. Text wraps to
   at most 3 short lines inside its card. */
@media (orientation:landscape) and (max-height:560px){
  .panel-overlay > .choices{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:5px;
    background:none;border:0;padding:0}
  .panel-overlay .choice{grid-template-columns:auto 1fr;column-gap:6px;min-height:0;padding:4px 7px;font-size:.72rem;line-height:1.15;
    border-radius:10px;background:#1b2320f0}
  .panel-overlay .choice .big{font-size:1rem;line-height:1}
  .panel-overlay .choice .ans-icon{width:24px;height:24px}
  .panel-overlay > .feedback,.panel-overlay > .fact{font-size:.78rem;padding:4px 8px}
}

/* Sideways: the question above the answer cards is a small tag on the right (2026-11-24), not a
   full-width bar (it lay across Blaze's face on the thank-you scene). */
@media (orientation:landscape) and (max-height:560px){
  .panel-overlay > .ask{align-self:flex-end !important;font-size:.8rem;padding:3px 10px !important;border-radius:999px !important}
}

/* ===== Sideways: keep the characters clear after a question (2026-11-24) =====
   Randy's screenshots: after answering, the answer cards + "Right!" line + trail-skill box +
   button stacked up over Blaze, Santa and the others. Sideways now:
   - answered questions drop their cards and question tag (game.js markAnswered → .answered);
   - the "Right!" line goes when a trail-skill card is showing (it says the same thing);
   - text cards are smaller, and the button sits BESIDE its text, not under it (.ov-tail);
   - the cafeteria's Elf fact card is hidden: it repeats the Elf Body Book clue word for word,
     and that clue is in the clue notebook. It was covering the things to tap in the room.
   Upright and on big screens nothing here applies (.ov-tail / .ov-text are display:contents). */
.ov-tail,.ov-text{display:contents}
@media (orientation:landscape) and (max-height:560px){
  .game-panel.answered .choices,.game-panel.answered .ask{display:none !important}
  .game-panel.has-tip .feedback.good{display:none}
  .panel-overlay > .ov-tail{display:flex;align-self:stretch;align-items:flex-end;gap:6px}
  .panel-overlay > .ov-tail > .ov-text{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0}
  .panel-overlay > .ov-tail > .ov-text > *{margin:0 !important;background:#141a17eb;border:1px solid #39413A;border-radius:12px;padding:5px 9px}
  .panel-overlay > .ov-tail > .actions{margin:0 !important;flex:none}
  /* Only the NEWEST card beside the button: e.g. after "Check her shoes" the shoes card replaces
     the trail-skill card (which was already shown with the button before it). */
  .panel-overlay > .ov-tail > .ov-text > :is(.fact,.feedback):not(:last-child){display:none}
  /* The chapter-end teaser's blank line (<br><br>) costs two lines over the elves; the next
     chapter's name goes on its own line without it. */
  .panel-overlay .cliff br{display:none}
  .panel-overlay .cliff b{display:block;margin-top:2px}
  .panel-overlay .fact,.panel-overlay .feedback,.panel-overlay .cliff,.panel-overlay .narration{font-size:.72rem !important;line-height:1.3}
  .panel-overlay .actions .primary{padding:7px 12px;font-size:.86rem;min-height:34px}
  .panel-overlay > .say .say-text{font-size:.76rem;line-height:1.3}
  .panel-overlay > .say .say-face{width:34px;height:34px}
  body[data-screen="cafeteria"] .panel-overlay .fact{display:none}
  /* The cafeteria's search spots sit all over the room, including the kitchen floor at the
     bottom middle. Its text box takes only the bottom-RIGHT corner (counter area, whose spots are
     higher up), and while searching only the newest clue line shows. */
  body[data-screen="cafeteria"] .game-panel.has-overlay > .panel-overlay{left:auto;width:min(380px,48%)}
  body[data-screen="cafeteria"] .game-panel.has-fb .panel-overlay > .say{display:none}

  /* Screens with no picture (the North Star question): clear the icon column on the left and
     use the same small text, so the question, answers and button fit without scrolling. */
  #game .game-panel:not(.has-overlay){margin:4px 8px 0 70px;padding:8px 12px}
  #game .game-panel:not(.has-overlay) .say-text{font-size:.8rem;line-height:1.3}
  #game .game-panel:not(.has-overlay) .say-face{width:34px;height:34px}
  #game .game-panel:not(.has-overlay) .choices{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr)}
  #game .game-panel:not(.has-overlay) .fact{font-size:.76rem}
}

/* ===== Sideways, round 2 (2026-11-24, Randy: "still some times we can't see") =====
   - Chapter-end / ending: title + badge become a small card pinned top-left (window/sky area),
     not full-width bars across the elves and Blaze in bed (game.js keeps them out of the overlay).
   - Trail Three forks: the progress bar is a thin line, "Follow the big boots…" is a small tag,
     and the footprint cards are slim (they were three tall rows over Blaze and Santa).
   - Pepperwick's ribbons: no dark box behind them, smaller; gone once he's untied (.answered).
   - The ending's two buttons stack beside the story text. */
@media (orientation:landscape) and (max-height:560px){
  .game-panel.center.has-overlay > h2{position:absolute;left:8px;top:8px;z-index:41;width:auto;height:auto;max-width:30%;clip-path:none;
    overflow:visible;white-space:normal;margin:0;padding:5px 9px;font-size:.78rem;line-height:1.25;text-align:left;
    background:#141a17eb;border:1px solid #39413A;border-radius:12px}
  .game-panel.center.has-overlay > .badge-art{position:absolute;left:8px;top:calc(8px + 4.2em);z-index:41;width:64px;margin:0;
    filter:drop-shadow(0 4px 8px #000b)}
  .game-panel.center .panel-overlay > .ov-tail > .actions{flex-direction:column;align-items:stretch}

  /* Progress line: short, on the right (Blaze and Santa stand on the left of these scenes). */
  .panel-overlay > .snowline{height:5px;padding:0 !important;border:0 !important;border-radius:3px !important;align-self:flex-end !important;width:38%}
  .panel-overlay > .tracks-ahead{align-self:flex-end !important;gap:6px;font-size:.74rem;padding:3px 10px !important;border-radius:999px !important}
  .panel-overlay > .tracks-ahead .print .print-icon{height:18px}
  .panel-overlay .big.prints .print-icon{height:20px}

  .panel-overlay > .ribbons{background:none !important;border:0 !important;padding:0 !important;gap:8px}
  .panel-overlay .ribbon{padding:2px 8px}
  .panel-overlay .ribbon img{height:30px;width:auto}
  .game-panel.answered .ribbons{display:none !important}
}

/* Cafeteria close-ups sideways (2026-11-24): while a clue close-up is open over the room, the
   text box steps aside (only the button stays) so it doesn't cover the picture. game.js adds
   .cu-open when a close-up opens and removes it when tapped closed. */
@media (orientation:landscape) and (max-height:560px){
  .game-panel.cu-open .panel-overlay > :not(.ov-tail),.game-panel.cu-open .ov-text{visibility:hidden}
}

/* Trail skill behind a tap, sideways (2026-11-24, Randy: "the trail skills keep covering things up
   maybe there should be a button to view the trail skill so it only covers after it's clicked").
   Folded: a one-line tag "🌲 Trail skill: … [Read]". Tapped (.open, game.js "tip" action): the full
   card. Tap again to fold. Upright and on big screens .tip-more is hidden and the card is always open. */
.tip-more{display:none}
@media (orientation:landscape) and (max-height:560px){
  .trail-skill{cursor:pointer}
  .trail-skill:not(.open){align-self:flex-start !important;border-radius:999px !important;padding:4px 6px 4px 10px !important}
  .trail-skill:not(.open) > br,.trail-skill:not(.open) > .tip-body{display:none}
  .trail-skill .tip-more{display:inline-block;margin-left:8px;padding:1px 9px;border-radius:999px;background:#E8C26A;color:#2A1806;font-weight:800;font-size:.68rem;vertical-align:1px}
  .trail-skill.open .tip-more{display:none}
}

/* "Next ›" tag at the end of a speech bubble when another line follows (2026-11-24: lines now
   play one at a time instead of only the last one showing). All sizes. */
.say-next{display:inline-block;margin-left:6px;padding:2px 10px;min-height:0;border-radius:999px;border:0;background:#E8C26A;color:#2A1806;
  font-weight:800;font-size:.78em;line-height:1.5;cursor:pointer;vertical-align:1px;animation:next-pulse 1.6s ease-in-out infinite}
@keyframes next-pulse{50%{box-shadow:0 0 0 4px #E8C26A55}}
@media (prefers-reduced-motion:reduce){.say-next{animation:none}}
