
:root{color-scheme:dark;--gold:#e7c882;--cream:#f4eddb;--muted:#a2b8b5}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 55% 14%,#224247 0,#132d31 45%,#102427 100%);color:var(--cream);font:15px 'DM Sans',system-ui,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:3px solid var(--gold);outline-offset:5px}main{max-width:1510px;margin:auto;padding:0 52px}.masthead{display:flex;align-items:center;justify-content:space-between;padding:28px 0;border-bottom:1px solid #b1c3ba25}.brand{display:flex;gap:14px;align-items:center;color:var(--cream);text-decoration:none;letter-spacing:2px;font-size:12px;font-weight:700}.brand>b{font:48px Georgia;color:var(--gold);line-height:1}.brand small{display:block;color:var(--muted);font-size:11px;letter-spacing:.5px;font-weight:400;margin-top:7px}.edition{font-size:10px;letter-spacing:2.3px;color:#a7bdb9}.edition em{color:var(--gold);margin-left:12px;font-style:normal}.intro{display:flex;justify-content:space-between;align-items:center;padding:38px 0 29px}.eyebrow{font-size:10px;letter-spacing:2.6px;font-weight:600;color:var(--gold);margin:0 0 12px}h1{font:500 clamp(27px,3.2vw,48px)/1.14 'Fraunces',Georgia,serif;letter-spacing:-1.5px;margin:0 0 12px}.intro p:not(.eyebrow){color:#b2c4bf;font-size:14px;margin:0}.chapter{text-align:right;margin-left:20px}.chapter>span{font-size:9px;letter-spacing:1.8px;color:#b2c4bf}.chapter strong{display:block;font:400 38px 'Fraunces',Georgia;margin-top:6px;color:var(--gold)}.chapter i{font:400 18px 'DM Sans',sans-serif;color:#7f9a96}.game{border:1px solid #86a9a43a;border-radius:18px;overflow:hidden;box-shadow:0 24px 60px #0003}.game-top{display:flex;align-items:center;justify-content:space-between;background:#163135;padding:16px 24px;gap:12px}.place{display:flex;gap:12px;align-items:center}.place>b{color:var(--gold);font-size:27px;font-weight:400}.place div>span{display:block;font-size:9px;letter-spacing:1.8px;color:#a9bdb6;margin-bottom:5px}.place strong{font-size:14px;font-weight:500}.game-actions{display:flex;gap:8px;align-items:center}button.sound,button.icon-btn{border:1px solid #b6cbbb30;border-radius:25px;background:#29444870;color:#d4dfd5;min-height:38px;padding:8px 13px;font-size:13px}.sound span{font-size:10px;margin-left:5px}.icon-btn{width:38px;padding:6px!important}.icon-btn:disabled{opacity:.35;cursor:default}button:hover:not(:disabled){filter:brightness(1.16)}.stage{position:relative;aspect-ratio:16/9;background:#1a3949;overflow:hidden}canvas{display:block;width:100%;height:100%;touch-action:none;outline-offset:-5px!important}.progress{position:absolute;top:24px;left:26px;padding:13px 17px;display:flex;align-items:center;gap:12px;border-radius:12px;background:#122b36d9;border:1px solid #c7d0ae33;pointer-events:none;box-shadow:0 6px 30px #09232c33}.bauble-icon{display:block;position:relative;width:22px;height:25px;border-radius:50%;background:radial-gradient(circle at 32% 26%,#ffb5a1,#bd6050 60%,#733f40)}.bauble-icon:before{content:'';position:absolute;width:7px;height:4px;background:var(--gold);top:-3px;left:8px}.progress strong{font-size:17px;display:block;line-height:1.1}.progress strong span{font-size:12px;color:#b6c2b5}.progress div>span{font-size:9px;color:#b6c2b5;display:block;margin-top:4px}.dots{display:flex;gap:4px;max-width:65px;flex-wrap:wrap}.dots i{height:8px;width:8px;border:1px solid #b5c4ad78;border-radius:50%}.dots i.on{background:var(--gold);box-shadow:0 0 9px #e7c88288;border-color:var(--gold)}.scene-caption{position:absolute;bottom:16px;left:24px;color:#395a61;font-size:10px;letter-spacing:.5px;pointer-events:none}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:linear-gradient(90deg,#10263364,#0e283723,#10263364);backdrop-filter:blur(2px);transition:opacity .4s}.overlay.hidden{opacity:0;pointer-events:none}.welcome{text-align:center;padding:28px 35px;background:radial-gradient(ellipse,#163038ed 18%,#163038c7 65%,#16303800 75%);border-radius:35px;max-width:94%}.little-star{font:58px Georgia;color:var(--gold);display:block;line-height:.9;margin-bottom:18px}.welcome h2{font:400 clamp(27px,3vw,43px)/1.15 'Fraunces',Georgia;margin:10px 0 18px;letter-spacing:-.7px}.welcome>p:not(.eyebrow){font-size:13px;line-height:1.7;color:#d3dfd6;margin:0 0 21px}.primary{background:#e9cb8b;color:#253931;border:1px solid #ffe4a8;border-radius:30px;padding:13px 27px;min-height:48px;font-size:13px;font-weight:700;box-shadow:0 5px 25px #0c212c3a}.primary span{margin-left:25px}.welcome>small{display:block;font-size:10px;color:#bbc9ba;margin-top:17px}.game-bottom{padding:14px 24px;display:flex;gap:10px;align-items:center;justify-content:space-between;background:#183539;color:#a9c0b8;font-size:10px}.game-bottom p{margin:0;display:flex;gap:7px;align-items:center}.game-bottom p>span:first-child{font-size:17px;color:var(--gold);margin-right:3px}kbd{display:inline-block;font-size:10px;min-width:18px;text-align:center;border:1px solid #7d9b914f;border-radius:4px;padding:2px 4px;background:#2c4849}.gentle{color:#d0c79e}.touch-help{display:none}.toast{position:absolute;top:28%;left:50%;transform:translateX(-50%);color:var(--cream);background:#19383ee8;border:1px solid #d6c58a50;padding:13px 22px;border-radius:30px;font-size:14px;opacity:0;transition:opacity .4s;pointer-events:none;text-align:center}.toast.show{opacity:1}.journey{margin:30px 0 28px}.journey-title{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.journey-title .eyebrow{margin:0;font-size:9px}.journey-title>span{font-size:10px;color:#91aaa4}.journey ol{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;padding:0;margin:0;gap:12px}.journey li{display:flex;gap:12px;border:1px solid #78998d2a;border-radius:10px;padding:16px 14px;opacity:.52;position:relative;align-items:center}.journey li.active{opacity:1;background:#2e494534;border-color:#c3b4775c}.journey li>b{font:27px Georgia;color:#d1be86}.journey small{display:block;font-size:8px;letter-spacing:1.2px;color:#b6b794;margin-bottom:6px}.journey strong{display:block;font-size:12px;font-weight:500}.journey li div>span{display:block;font-size:9px;margin-top:6px;color:#9eb7ad}.journey li>em{position:absolute;right:10px;top:10px;font-size:6px;letter-spacing:1px;color:#dcce98;font-style:normal}footer{display:flex;justify-content:space-between;gap:30px;font-size:9px;color:#819e95;padding:0 0 24px;line-height:1.7}footer span:first-child{white-space:nowrap}footer span:last-child{text-align:right;max-width:650px}@media(max-width:900px){main{padding:0 22px}.intro{padding:28px 0}.edition{display:none}.game-top{padding:14px 16px}.game-bottom{padding:12px 16px}.gentle{display:none}.journey ol{grid-template-columns:repeat(2,1fr)}.journey-title>span{display:none}.chapter{display:none}.progress{top:17px;left:17px;padding:11px 13px}.sound span{display:none}}@media(max-width:580px){main{padding:0 12px}.masthead{padding:18px 4px}.brand{font-size:10px}.brand>b{font-size:35px}.intro{padding:25px 4px 21px}.eyebrow{font-size:8px;letter-spacing:1.8px}h1{font-size:29px;letter-spacing:-1px;max-width:320px}.intro p:not(.eyebrow){font-size:11px;max-width:280px;line-height:1.6}.game{border-radius:12px}.stage{aspect-ratio:4/5}.game-top{padding:12px 10px}.place{gap:7px}.place div>span{font-size:7px;letter-spacing:.7px}.place strong{font-size:10px}.place>b{font-size:21px}.game-actions{gap:5px}.sound,.icon-btn{min-width:32px;min-height:34px!important;padding:7px 9px!important}.icon-btn{width:32px}.progress{top:13px;left:13px;gap:9px;padding:10px 12px}.dots{display:none}.welcome{padding:18px 16px}.welcome h2{font-size:31px}.welcome>p:not(.eyebrow){font-size:12px}.welcome .eyebrow{font-size:8px}.little-star{font-size:48px}.scene-caption{font-size:8px;left:12px;bottom:12px}.game-bottom{font-size:8px;padding:10px 11px}.desktop-help,.help-divider,.game-bottom p>span:last-child{display:none}.touch-help{display:inline}.journey{margin:24px 0}.journey-title .eyebrow{font-size:8px}.journey ol{gap:8px}.journey li{padding:15px 9px;gap:8px}.journey strong{font-size:10px}.journey small{font-size:6px;letter-spacing:.5px}.journey li div>span{font-size:8px}.journey li>em{font-size:5px;top:6px;right:6px}.journey li>b{font-size:22px}footer{display:block;padding:0 4px 20px}footer span{display:block;text-align:left!important}footer span:last-child{margin-top:8px}.toast{width:85%;font-size:12px;padding:11px 14px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

[hidden]{display:none!important}
.school-logo{width:52px;height:52px;display:block}.brand{letter-spacing:1.4px}.brand>b{display:none}
.stage{isolation:isolate}.scene-caption{color:#f8eed8;background:#162e43b8;padding:6px 10px;border-radius:8px}
.overlay{z-index:3;backdrop-filter:blur(2px);padding:14px}.overlay.hidden{visibility:hidden}
.welcome{background:#142c39ed;border:1px solid #edd59a55;box-shadow:0 14px 70px #07152266;border-radius:22px;max-width:760px}
.welcome h2{font-family:Georgia,serif;font-size:clamp(24px,3vw,38px);margin:5px 0 12px;max-width:600px}
.welcome>p:not(.eyebrow){margin:0 0 18px}.welcome .eyebrow{font-size:9px}.welcome>small{margin-top:12px}
.selection{padding:24px 32px}.char-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:17px 0 20px;min-width:480px}
.character{position:relative;display:flex;align-items:center;flex-direction:column;gap:8px;background:#f1e8d8;border:2px solid #f1e8d8;border-radius:14px;padding:12px 10px 13px;color:#213e38;transition:transform .18s,background .18s}
.character:hover{transform:translateY(-3px);filter:none!important}.character[aria-pressed=true]{background:#dce6c9;border-color:#bcd37e;box-shadow:0 0 0 3px #a8c77635}
.character img{height:170px;width:100%;object-fit:contain;display:block}.character strong{font:600 15px system-ui}.char-check{visibility:hidden;position:absolute;right:9px;top:6px;background:#39543c;color:#fff;border-radius:50%;height:22px;width:22px;line-height:22px;font-size:13px}.character[aria-pressed=true] .char-check{visibility:visible}
.primary:disabled{opacity:.6;cursor:wait}.text-button{border:0;background:none;color:#e6d4a9;font:inherit;font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:8px;min-height:36px}
.welcome>.text-button{display:block;margin:10px auto 0}.tree-continue{position:absolute;bottom:26px;right:26px;z-index:2}
.journey li.complete{opacity:1;border-color:#8bab5c66;background:#4d64451a}.journey li.complete em{color:#bcd68b}
.progress{z-index:1;max-width:calc(100% - 32px)}.toast{z-index:2;top:20%;font-size:13px}
@media(max-width:900px){.char-grid{min-width:410px}.character img{height:145px}.selection{padding:18px 24px}.intro h1{font-size:34px}.welcome .eyebrow{font-size:8px}}
@media(max-width:580px){.school-logo{width:42px;height:42px}.stage{aspect-ratio:4/5}.intro h1{font-size:28px}.intro{padding:20px 4px}.welcome{width:100%;padding:18px 13px}.welcome h2{font-size:26px}.welcome>p:not(.eyebrow){font-size:11px;margin-bottom:10px}.char-grid{min-width:0;gap:7px;margin:12px 0 15px}.character{padding:8px 4px;gap:4px;border-radius:10px}.character img{height:128px}.character strong{font-size:12px}.char-check{height:17px;width:17px;line-height:17px;font-size:10px;right:4px;top:3px}.welcome>small{font-size:9px;line-height:1.5}.primary{padding:12px 18px;font-size:12px}.little-star{font-size:35px;margin-bottom:10px}.scene-caption{font-size:8px;bottom:9px;left:9px}.tree-continue{right:12px;bottom:40px}.journey li{min-height:94px}.journey li>em{font-size:6px}.game-bottom .text-button{font-size:9px;padding:5px}.toast{top:22%;font-size:11px}.progress{padding:10px 12px;top:10px;left:10px}.progress strong{font-size:15px}}
@media(max-width:355px){.character img{height:104px}.welcome h2{font-size:23px}.selection{padding:12px 8px}.char-grid{gap:5px}}
.school-logo{width:260px;height:auto;background:#f5f2e7;border-radius:7px;padding:7px 10px}.brand-tagline{font-size:11px;letter-spacing:.3px;font-weight:400;color:#b9c8bd}@media(max-width:580px){.school-logo{width:222px;height:auto}.brand-tagline{display:none}}.difficulty-bar{display:flex;align-items:center;gap:14px;padding:10px 24px;background:#1b363a;border-top:1px solid #b7c29f20;font-size:11px;color:#c3d1c4}.difficulty-options{display:flex;gap:5px}.difficulty-options button{border:1px solid #a0b29550;background:#233f43;color:#d5e0d3;border-radius:20px;padding:7px 17px;min-height:34px;font-size:11px}.difficulty-options button[aria-pressed=true]{background:#e7cd92;border-color:#efdba8;color:#233b32}.difficulty-current{margin-left:auto;color:#c2d38f;font-size:10px}@media(max-width:580px){.difficulty-bar{gap:9px;padding:8px 12px}.difficulty-options button{padding:6px 12px}.difficulty-current{display:none}}.story-character{cursor:default;pointer-events:none}.story-character small{font-size:10px;color:#49634c;line-height:1.3;max-width:145px;font-family:system-ui}.story-character:hover{transform:none}.story-character strong{margin:0}@media(max-width:580px){.story-character small{font-size:8px}.story-character img{height:116px}}@font-face {
  font-family: 'Bree Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-0.ttf) format('truetype');
}@font-face {
  font-family: 'Caveat Brush';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-1.ttf) format('truetype');
}@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/font-2.ttf) format('truetype');
}@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/font-3.ttf) format('truetype');
}@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/font-4.ttf) format('truetype');
}
 :root{color-scheme:light;--gold:#b78b43;--cream:#fff4d9;--muted:#60705b}
 body{background:#eee2c6;color:#2c4435;font:16px/1.6 'Nunito',system-ui,sans-serif;background-image:radial-gradient(ellipse at 20% 0,#fff9e7aa,transparent 65%),repeating-linear-gradient(92deg,#85673605 0 1px,transparent 1px 5px)}
 body:before{content:'';position:fixed;inset:0;pointer-events:none;opacity:.12;z-index:0;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%2385683d' filter='url(%23n)' opacity='.5' d='M0 0h180v180H0z'/%3E%3C/svg%3E")}
 main{position:relative;max-width:1400px;padding:0 38px}.masthead{border-bottom:1px solid #af8c4d66;padding:22px 0}.school-logo{background:transparent;padding:0;width:260px}.brand-tagline{color:#52634b}.edition{color:#49604a}.edition em{color:#8b2932}
 .intro{justify-content:center;text-align:center;padding:30px 0 25px}.intro h1{font:400 clamp(34px,4vw,58px)/1.12 'Bree Serif',Georgia,serif;color:#75232b;letter-spacing:-1px}.intro p:not(.eyebrow){font:600 17px/1.5 'Nunito',sans-serif;color:#3d5845;max-width:720px;margin:auto}.eyebrow{color:#88652f}.chapter{display:none}
 button{font-family:'Nunito',sans-serif}.primary{background:linear-gradient(#a33c3e,#7f242e);color:#fff6df;border:1px solid #bb914f;border-radius:12px;box-shadow:0 4px 0 #5e1e26,0 6px 18px #543b2522;font-size:16px;padding:13px 24px}.primary:focus-visible{outline-color:#e8bc66}
 .game{border:3px solid #8e6b3c;border-radius:18px;box-shadow:0 13px 36px #644b3428}.game-top{background:#244b3c;color:#fff3d9;padding:17px 24px}.place strong{font-size:17px;font-weight:700}.place div>span{color:#d8ddc1;font-size:11px}.place>b{color:#ebce86}
 .game-actions .sound,.game-actions .icon-btn{background:#16392e;color:#fff4d4;border-color:#c7b57577}.game-actions .sound span{font-size:12px}
 .difficulty-bar{background:#f6edda;color:#3f5743;border-top-color:#b5996666;font-size:14px}.difficulty-options button{background:#fff8e9;border-color:#b59d71;color:#36533c;font-size:13px}.difficulty-options button[aria-pressed=true]{background:#8b3035;color:#fff5de;border-color:#8b3035}.difficulty-current{color:#496645;font-size:12px}
 .game-bottom{background:#f6ecd5;color:#4a614a;font-size:12px}.game-bottom .text-button{color:#752a30;font-size:12px}.game-bottom kbd,.how-to kbd,.instruction-card kbd{background:#fffaf0;color:#2f513d;border-color:#ac986f;box-shadow:0 2px 0 #d0bb93;font:700 13px 'Nunito',sans-serif;min-width:24px}
 .progress{background:#173b31ee;border-color:#e1c48577;color:#fff5dd}.progress div>span,.progress strong span{color:#d9e2cd}.toast{background:#234839f2;color:#fff5d8}
 .overlay{background:#102b3544}.welcome{background:#fff7e5f5;color:#36533d;border:2px solid #bd9859;border-radius:18px;box-shadow:0 20px 55px #071b2866}.welcome h2{font:400 clamp(27px,3vw,39px)/1.18 'Bree Serif',Georgia,serif;color:#7e2d34}.welcome>p:not(.eyebrow){color:#36533d;font-size:15px}.welcome>small{color:#637151;font-size:12px}.welcome .text-button{color:#7b2930}.little-star{color:#af8139}
 .character{background:#f0e4c9;border-color:#c7b087}.story-character small{font-family:'Nunito',sans-serif}.story-character strong{font-family:'Bree Serif',serif;color:#712e33}
 .journey{margin-top:25px}.journey-title .eyebrow{font-size:12px;color:#805b2e}.journey-title>span{color:#54694d;font-size:12px}.journey li{opacity:.75;background:#fff9e655;border-color:#b29a6d66}.journey li.active,.journey li.complete{opacity:1;background:#fff8e7;border-color:#9e7642}.journey li>b{color:#9d6638}.journey strong{color:#31533b;font-size:14px;font-weight:700}.journey small{color:#7e5033;font-size:9px}.journey li div>span{color:#5b7153;font-size:11px}.journey li>em,.journey li.complete em{color:#8a3334;font-size:8px}
 footer{color:#637052;font-size:11px;padding-bottom:8px}.page-wish{font:30px 'Caveat Brush',cursive;text-align:center;color:#7c2b31;margin:12px 0 28px}
 .instruction-card{background:#fff8e7;border:1px solid #b99d69;border-radius:12px;padding:13px 20px;margin:0 0 22px;box-shadow:0 3px 0 #d0bc9122}.instruction-card summary{cursor:pointer;font:26px 'Caveat Brush',cursive;color:#752b32}.instruction-columns{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.instruction-columns p{font-size:15px;line-height:1.5;margin:12px 0}.instruction-columns b{display:inline-grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#33563e;color:#fff3d3;margin-right:5px}
 .splash{position:fixed;inset:0;z-index:100;background:#102735cc;backdrop-filter:blur(7px);display:grid;place-items:center;padding:22px;overflow:auto}.splash-card{position:relative;width:min(1150px,100%);max-height:94vh;overflow:auto;display:grid;grid-template-columns:1.35fr 1fr;border:2px solid #d0b57a;border-radius:22px;background:#fff4dc;box-shadow:0 30px 90px #061a35aa}.splash-close{position:absolute;right:12px;top:10px;z-index:2;width:36px;height:36px;background:#fff5df;color:#782b31;border:1px solid #b69c6c;border-radius:50%;font-size:26px;line-height:1}
 .splash-art{min-height:560px;background:#15334a}.splash-art img{display:block;width:100%;height:100%;object-fit:cover;object-position:55% center}.splash-paper{padding:40px 30px 25px;background:radial-gradient(ellipse at 30% 0,#fffdf2,#f7e9c9)}.splash-paper .eyebrow{font-size:10px;letter-spacing:1.4px}.splash-paper h2{font:400 clamp(32px,3.2vw,46px)/1.08 'Bree Serif',serif;color:#822a32;letter-spacing:-.8px;margin:16px 0 20px}.splash-paper>p{font-size:16px;line-height:1.55}.how-to{padding:15px 17px;border:1px dashed #b49b66;border-radius:9px;background:#fffaf0;margin:18px 0}.how-to h3{font:26px 'Caveat Brush',cursive;margin:0 0 9px;color:#416347}.how-to p{font-size:14px;line-height:1.5;margin:8px 0}.how-to small{font-size:12px;color:#657157}.splash-start{width:100%;min-height:50px}.christmas-wish{font:25px 'Caveat Brush',cursive!important;color:#8d3b36;text-align:center;margin:20px 0 0!important}
 @media(max-width:900px){.splash-card{grid-template-columns:1fr 1fr}.splash-paper{padding:35px 22px 22px}.splash-paper h2{font-size:35px}.splash-art{min-height:560px}.instruction-columns{gap:13px}.instruction-columns p{font-size:13px}.place strong{font-size:14px}.journey ol{grid-template-columns:repeat(2,1fr)}}
 @media(max-width:580px){main{padding:0 12px}.masthead{padding:17px 3px}.school-logo{width:230px}.intro{padding:22px 3px}.intro h1{font-size:34px}.intro p:not(.eyebrow){font-size:15px}.instruction-card{padding:10px 14px}.instruction-columns{grid-template-columns:1fr;gap:0}.instruction-columns p{margin:6px 0;font-size:14px}.splash{padding:12px}.splash-card{grid-template-columns:1fr;max-height:96vh;border-radius:15px}.splash-art{min-height:0;height:205px}.splash-art img{object-position:center 58%}.splash-paper{padding:19px 20px}.splash-paper h2{font-size:33px;margin:10px 0 12px}.splash-paper>p{font-size:14px;margin:10px 0}.splash-paper .eyebrow{font-size:9px}.how-to{padding:11px 13px;margin:12px 0}.how-to p{font-size:13px;margin:6px 0}.how-to h3{font-size:24px}.christmas-wish{font-size:23px!important;margin-top:16px!important}.place strong{font-size:12px}.place div>span{font-size:8px}.game-top{padding:12px 10px}.journey strong{font-size:12px}.journey small{font-size:8px}.journey li div>span{font-size:10px}.welcome>p:not(.eyebrow){font-size:13px}.welcome h2{font-size:27px}.game-bottom{font-size:10px}.page-wish{font-size:26px}}
 html,body{width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{background:#102b36}body:before{display:none}
main#main-content{position:fixed;inset:0;max-width:none;width:100%;height:100%;padding:0;margin:0}.game{position:absolute;inset:0;border:0;border-radius:0;box-shadow:none}.stage{width:100%;height:100%;aspect-ratio:auto;background:#173747}canvas{position:absolute;inset:0;width:100%;height:100%}
.floating-tools{position:absolute;top:max(16px,env(safe-area-inset-top));right:max(18px,env(safe-area-inset-right));display:flex;gap:7px;z-index:5}.floating-tools button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #e5d29b66;border-radius:50%;background:#173c36d9;backdrop-filter:blur(7px);color:#fff1ca;font:24px/1 'Nunito',sans-serif;box-shadow:0 3px 15px #08242c30}.floating-tools button[aria-pressed=false]:is(#music,#sound){opacity:.65;text-decoration:line-through}.floating-tools button:disabled{opacity:.4;cursor:default}.floating-tools button:focus-visible{outline-offset:2px}
.progress{top:max(16px,env(safe-area-inset-top));left:max(18px,env(safe-area-inset-left));padding:11px 14px;gap:10px}.scene-caption{bottom:max(18px,env(safe-area-inset-bottom));left:max(20px,env(safe-area-inset-left));font:600 14px/1.4 'Nunito',sans-serif;letter-spacing:.2px;padding:7px 13px;max-width:calc(100% - 125px);background:#173b36ce;color:#fff4da;backdrop-filter:blur(5px)}
.imprint-link{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:6;padding:9px 12px;min-height:44px;background:#173b36cc;color:#fff1d6;border:1px solid #ead9ac55;border-radius:8px;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.overlay{padding:22px;z-index:4;overflow:auto}.welcome{max-height:calc(100% - 90px);overflow:auto;width:min(550px,94%);padding:30px}.welcome>p:not(.eyebrow){font-size:16px}.welcome>small{font-size:13px}.tree-continue{bottom:max(72px,calc(env(safe-area-inset-bottom) + 60px));right:24px;z-index:5;max-width:calc(100% - 40px)}
.final-wish{position:absolute;left:6%;top:32%;max-width:34%;z-index:2;pointer-events:none;opacity:0;transform:translateY(12px);transition:opacity 2.8s ease,transform 2.8s ease;color:#fff0c6;text-shadow:0 2px 5px #102b35,0 0 30px #173b36}.final-wish.visible{opacity:1;transform:none}.final-wish p{font:400 clamp(28px,3.5vw,58px)/1.15 'Bree Serif',Georgia,serif;margin:0 0 18px;text-align:left}.final-wish span{font:clamp(20px,2.2vw,32px)/1.3 'Caveat Brush',cursive}
.paper-dialog{color:#2c4435;background:radial-gradient(ellipse at 30% 0,#fffdf2,#f7e9c9);width:min(620px,calc(100% - 28px));max-height:calc(100% - 36px);border:2px solid #bb9857;border-radius:18px;padding:26px 30px;box-shadow:0 25px 90px #051c40aa;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;font:16px/1.6 'Nunito',sans-serif}.paper-dialog::backdrop{background:#092c3eb8;backdrop-filter:blur(6px)}.paper-dialog h2{font:32px/1.15 'Bree Serif',serif;color:#822a32;margin:0}.paper-dialog h3{font:23px/1.3 'Bree Serif',serif;color:#7c2d33;margin:24px 0 10px}.paper-dialog a{color:#7c2d33}.dialog-heading{display:flex;align-items:flex-start;gap:16px;justify-content:space-between}.dialog-close{flex-shrink:0;width:44px;height:44px;border:1px solid #b69c6c;border-radius:50%;background:#fff8e8;color:#782b31;font-size:28px;line-height:1}.paper-dialog .text-button{color:#7c2d33;min-height:44px}.paper-dialog .help-small{font-size:13px;color:#53684c}.paper-dialog .difficulty-options button{min-height:44px;font-size:15px;padding:9px 19px}.dialog-done{margin-top:16px;display:block;width:100%}
.splash{padding:20px}.splash-card{max-height:calc(100% - 12px);grid-template-columns:1.35fr 1fr}.splash-links{grid-column:1/-1;display:flex;justify-content:center;gap:30px;background:#fff4dc;border-top:1px solid #b69c6c44}.splash-links .text-button{color:#7c2b31;min-height:44px}.splash-art{min-height:0}.splash-paper{padding:32px 30px 22px}.splash-paper h2{overflow-wrap:anywhere}.splash-close{width:44px;height:44px}.splash-paper .how-to{margin:14px 0}.splash-paper .christmas-wish{margin-top:16px!important}
@media(max-width:600px){.floating-tools{top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));gap:5px}.floating-tools button{width:44px;height:44px;font-size:23px}.progress{top:max(64px,calc(env(safe-area-inset-top) + 54px));left:max(12px,env(safe-area-inset-left));padding:9px 12px}.progress strong{font-size:16px}.progress div>span{font-size:10px}.scene-caption{bottom:max(14px,env(safe-area-inset-bottom));left:max(12px,env(safe-area-inset-left));font-size:12px;max-width:calc(100% - 110px)}.imprint-link{right:max(10px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom))}.final-wish{left:7%;top:17%;max-width:86%}.final-wish p{font-size:clamp(28px,7.6vw,42px);margin-bottom:10px}.final-wish span{font-size:24px}.paper-dialog{padding:20px;font-size:15px}.paper-dialog h2{font-size:28px}.splash{padding:10px}.splash-card{grid-template-columns:1fr;max-height:100%}.splash-art{height:clamp(140px,24vh,205px)}.splash-paper{padding:18px 20px}.splash-paper h2{font-size:32px;margin:10px 0 12px}.splash-paper>p{font-size:14px}.splash-paper .how-to{padding:10px 13px;margin:10px 0}.splash-paper .how-to p{font-size:13px;margin:5px 0}.splash-paper .how-to h3{font-size:23px;margin:0 0 6px}.welcome{padding:23px 18px}.welcome>p:not(.eyebrow){font-size:14px}.welcome h2{font-size:28px}.toast{max-width:90%;width:max-content;padding:10px 17px;top:25%;font-size:12px}.tree-continue{right:14px;bottom:80px;font-size:14px}}
@media(max-height:530px) and (min-width:601px){.splash{padding:10px}.splash-card{grid-template-columns:1.15fr 1fr}.splash-paper{padding:20px 25px}.splash-paper h2{font-size:30px;margin:7px 0}.splash-paper>p{font-size:13px;margin:7px 0}.how-to{padding:8px 12px;margin:9px 0!important}.how-to h3{font-size:22px;margin:0}.how-to p{margin:3px 0;font-size:12px}.christmas-wish{font-size:22px!important;margin-top:10px!important}.splash-paper .eyebrow{font-size:8px}.welcome{padding:16px 22px}.welcome h2{font-size:27px}.welcome .little-star{display:none}.welcome>p:not(.eyebrow){margin-bottom:12px;font-size:14px}.final-wish p{font-size:32px}.final-wish{top:30%}.progress{padding:8px 12px}}
@media(prefers-reduced-motion:reduce){.final-wish{transition:none;transform:none}}
main#main-content{height:100dvh}
@media(max-width:600px){.stage.is-finale .scene-caption{display:none}.stage.is-finale .tree-continue{left:max(12px,env(safe-area-inset-left));right:auto;bottom:max(12px,env(safe-area-inset-bottom));font-size:13px;padding:10px 14px;max-width:calc(100% - 115px)}}

.splash-art{position:relative;isolation:isolate;overflow:hidden;background:#163449}.splash-art:before{content:"";position:absolute;inset:-18px;z-index:-1;background-image:linear-gradient(#102b3655,#102b3666),var(--splash-image);background-position:center;background-size:cover;filter:blur(12px)}.splash-art img{object-fit:contain;object-position:center;position:relative}.final-wish span{display:block}

.splash-art:before{display:none}.splash-art img{z-index:1}.splash-art img.splash-backdrop{position:absolute;inset:-18px;width:calc(100% + 36px);height:calc(100% + 36px);object-fit:cover;filter:blur(12px) brightness(.7);opacity:.75;z-index:0}

.how-to kbd,.paper-dialog kbd{display:inline-grid;place-items:center;background:#fffaf0;color:#214331;border:1px solid #9b7e43;border-radius:5px;box-shadow:0 2px 0 #cbb98f;font:800 15px/1.2 Nunito,system-ui,sans-serif;min-width:30px;min-height:29px;padding:3px 6px;vertical-align:middle}

/* Clear artwork in portrait: keep the full cover, with a quiet night-blue frame. */
.splash-art{background:radial-gradient(ellipse at 50% 45%,#2b4967,#13283f 80%)}
.splash-art img.splash-backdrop{display:none}
@media(orientation:portrait){
 .final-wish{left:7%;top:max(70px,11%);max-width:86%}
 .final-wish p{font-size:clamp(23px,6vw,36px);line-height:1.08;margin-bottom:9px}
 .final-wish span{font-size:clamp(17px,4.7vw,25px);line-height:1.2}
}

@media(orientation:portrait) and (max-height:650px){.final-wish{top:max(64px,env(safe-area-inset-top))}.final-wish p{font-size:22px;line-height:1.04}.final-wish span{font-size:16px}}

@media(orientation:portrait){.stage.is-finale .scene-caption{display:none}.stage.is-finale .tree-continue{left:max(12px,env(safe-area-inset-left));right:auto;bottom:max(12px,env(safe-area-inset-bottom));font-size:13px;padding:10px 14px;max-width:calc(100% - 115px)}}
