
:root{color-scheme:dark;--ink:#ede5f2;--muted:#aaa0b6;--line:#d5b9e82a;--pink:#ecd0ed}
*{box-sizing:border-box}body{margin:0;overflow:hidden;background:#090710;color:var(--ink);font:14px/1.6 Arial,"Microsoft YaHei",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid #f2d5fb;outline-offset:5px}button{border:0;background:none}#universe,.vignette{position:fixed;inset:0;width:100%;height:100%}#universe{touch-action:none}.vignette{pointer-events:none;background:radial-gradient(ellipse at 56% 48%,transparent 30%,#06050c70 100%)}header{position:fixed;left:4%;right:4%;top:30px;display:flex;align-items:center;justify-content:space-between;z-index:3}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;letter-spacing:3px;font-size:12px}.brand-star{font-size:30px;color:#e9c9df}.edition{font-size:10px;letter-spacing:2px;color:#b3a5ba}.edition span{margin-left:30px;border:1px solid var(--line);padding:5px 11px;border-radius:20px}main{position:fixed;inset:0;pointer-events:none}.intro{position:absolute;left:6.5%;top:37%;width:340px;z-index:2;transition:opacity .6s}.eyebrow{font-size:12px;letter-spacing:3px;color:#bcafc8;margin-bottom:22px}h1{position:relative;font-family:'Bodoni MT',Didot,'Times New Roman',serif;font-size:clamp(60px,6.7vw,108px);font-weight:400;line-height:.96;margin:0;color:#fff2f7;text-shadow:0 0 35px #ffc7ed30}h1 span{margin-left:34px}h1 i{font:22px Georgia;position:absolute;left:272px;top:0;color:#dcc29a}.intro-copy{font-family:'Songti SC',SimSun,serif;font-size:13px;line-height:2.1;letter-spacing:2px;color:#b5a8bf;margin-top:30px}.fine-line{height:1px;width:42px;background:#b6a1ba70;margin:25px 0 17px}.dedication{font-size:9px;letter-spacing:2.2px;color:#82758d}.gesture-panel{pointer-events:auto;position:absolute;right:4%;top:19%;width:190px;padding:16px;background:linear-gradient(140deg,#ffffff06,#ffffff01);border:1px solid #d6c2e31c;border-radius:12px;backdrop-filter:blur(8px);z-index:3}.panel-title{display:flex;justify-content:space-between;font-size:11px;color:#c9bace}.panel-title span:last-child{font-size:10px;color:#94839e}.hand-preview{height:96px;position:relative;margin:13px 0 16px;border:1px solid #d6c2e31c;border-radius:6px;display:grid;place-items:center;background:#120c1a}#hand-placeholder{font-size:37px;filter:grayscale(1);opacity:.4}#webcam{display:none}#hand-map{position:absolute;width:100%;height:100%}.gesture-legend{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#97869f}.gesture-legend span{display:flex;justify-content:space-between}.gesture-legend b{font-weight:400;color:#d2bfd9}.camera-button{border:1px solid #e4cbe83a;border-radius:5px;width:100%;font-size:12px;padding:7px 0;margin-top:17px;background:#ffffff06}.camera-button:hover{background:#ffffff14}.privacy{font-size:9px;color:#7d7087;text-align:center;margin:9px 0 0}.scene-label{position:absolute;bottom:123px;left:56%;transform:translateX(-50%);text-align:center;display:flex;flex-direction:column;gap:4px}.scene-label span:first-child{font-size:9px;letter-spacing:3px;color:#c7afd3}.scene-label span:last-child{font-size:11px;letter-spacing:2px;color:#8c7a99}footer{position:fixed;left:4%;right:4%;bottom:30px;display:flex;align-items:center;justify-content:space-between;z-index:5}.hint{display:flex;align-items:center;gap:10px;font-size:11px;color:#998aa5}.hint-star{font-size:25px;color:#c5a5d4}.toolbar{display:flex;align-items:center;gap:7px;padding:7px;border:1px solid var(--line);border-radius:36px;background:#16101ed9;backdrop-filter:blur(18px);box-shadow:0 10px 35px #0004}.toolbar button{padding:8px 14px;border-radius:24px;font-size:13px;white-space:nowrap;transition:background .25s}.toolbar button:hover{background:#ffffff12}.toolbar button.active{color:#271c2e;background:#eadced;box-shadow:0 0 17px #e4bed51a}.mode-group{display:flex;gap:3px}.separator{width:1px;height:20px;background:var(--line);margin:0 3px}.footer-note{font-size:9px;letter-spacing:2px;color:#7f718b}#photos{position:absolute;inset:0;perspective:1000px;pointer-events:none}.polaroid{position:absolute;left:0;top:0;width:66px;background:#f0e9e9;padding:5px 5px 14px;box-shadow:0 0 14px #edd2f733,0 5px 15px #0007;pointer-events:auto;will-change:transform;transition:box-shadow .2s;cursor:pointer}.polaroid:hover,.polaroid:focus-visible{box-shadow:0 0 26px #e8c4ff99;}.polaroid img{display:block;width:100%;aspect-ratio:1;object-fit:cover}.polaroid span{display:block;position:absolute;bottom:2px;left:0;right:0;text-align:center;color:#6a5368;font-size:6px;letter-spacing:1px}#toast{position:fixed;bottom:110px;left:50%;transform:translate(-50%,10px);opacity:0;transition:.3s;padding:10px 20px;border:1px solid var(--line);background:#25182eee;border-radius:25px;z-index:20;font-size:13px;pointer-events:none;max-width:90vw;text-align:center}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:0;padding:36px 50px 20px;background:transparent;overflow:visible;color:var(--ink);max-width:95vw}dialog::backdrop{background:#090610bb;backdrop-filter:blur(7px)}#close-photo{position:absolute;right:0;top:0;font-size:30px;width:38px;height:38px;line-height:1;border:1px solid #eee4;border-radius:50%}.large-polaroid{width:min(340px,70vw);background:#f3eeed;padding:13px 13px 20px;transform:rotate(-4deg);box-shadow:0 0 70px #e6b0f422,0 25px 65px #0006;text-align:center;color:#6e576b}.large-polaroid img{width:100%;aspect-ratio:1;object-fit:cover;display:block}.large-polaroid p{font-family:'Songti SC',SimSun,serif;margin:14px 0 3px;font-size:16px}.large-polaroid span{font-family:Georgia,serif;font-size:19px}.photo-navigation{display:flex;justify-content:space-between;align-items:center;margin-top:36px;font-size:12px}.photo-navigation button{padding:8px 12px;border:1px solid #e9c6ee30;border-radius:20px}.photo-navigation span{color:#b7a4bf}body.galaxy .intro{opacity:.7}
@media(min-width:1700px){.intro{left:10%}.gesture-panel{right:7%}}
@media(max-width:1000px){.gesture-panel{right:3%;width:164px;padding:12px}.intro{left:4%;width:270px}h1{font-size:76px}h1 i{left:210px}.edition{display:none}.footer-note{display:none}.hint{font-size:10px}.toolbar button{padding:8px 10px}}
@media(max-width:650px){header{top:20px;left:22px}.brand{font-size:10px;letter-spacing:2px}.intro{top:99px;left:26px;width:240px}.eyebrow{font-size:10px;margin:0 0 14px;letter-spacing:2px}h1{font-size:58px}h1 span{margin-left:24px}h1 i{left:177px;font-size:16px}.intro-copy{font-size:10px;line-height:1.9;margin-top:17px;letter-spacing:1px}.fine-line,.dedication{display:none}.gesture-panel{top:85px;right:16px;width:115px;padding:9px}.panel-title{font-size:9px;display:block}.panel-title span:last-child{display:block;font-size:9px}.hand-preview{height:56px;margin:7px 0}#hand-placeholder{font-size:25px}.gesture-legend{font-size:8px;gap:4px}.camera-button{font-size:10px;margin-top:9px}.privacy{font-size:7px;line-height:1.6}.scene-label{left:50%;bottom:134px;width:100%}.scene-label span:first-child{font-size:8px}.scene-label span:last-child{font-size:10px}footer{bottom:max(22px,env(safe-area-inset-bottom));left:12px;right:12px;justify-content:center;flex-direction:column;gap:12px}.hint{font-size:10px}.hint-star{font-size:16px}.toolbar{gap:2px;padding:5px}.toolbar button{font-size:11px;padding:8px 10px}.separator{margin:0 1px}.polaroid{width:53px;padding:4px 4px 12px}.polaroid span{font-size:5px}#toast{bottom:140px;width:max-content;font-size:11px}dialog{padding:30px 28px 15px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Winter editorial: typography and controls only; the original universe stays intact. */
:root{--ink:#f3eee8;--muted:#b5a9b8;--line:#e6d7c82e}
body{font-family:Inter,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;font-size:16px}
header{top:26px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.brand{font-size:18px;letter-spacing:3px;gap:12px}.brand small{font-size:10px;font-weight:400;letter-spacing:2px;color:#b4a4b7;border-left:1px solid var(--line);padding-left:16px;margin-left:5px}.brand-star{color:#e6c6a4}.edition{font-size:11px}.edition span{border:0;border-left:1px solid var(--line);border-radius:0;padding-left:20px}
.intro{left:5%;top:32%;width:350px}.eyebrow{font-size:11px;letter-spacing:2.3px;margin-bottom:24px;color:#c2aa92}h1{font-size:clamp(54px,5.7vw,98px);font-family:'Bodoni MT',Didot,'Times New Roman',serif;line-height:1.02;letter-spacing:-3px;font-weight:400;text-shadow:none}h1 span{margin-left:0;font-style:italic;color:#e6c5a8}.intro-copy{font-family:inherit;font-size:16px;line-height:1.9;letter-spacing:3px;margin-top:26px;color:#cbbdcd}.fine-line{width:56px;background:#bc9876;margin:24px 0 16px}.dedication{font-size:12px;letter-spacing:2px;color:#a495aa}
.gesture-panel{right:4%;top:19%;width:220px;border:0;border-top:1px solid #e1c5a766;border-radius:0;padding:18px 0 0;background:none;backdrop-filter:none}.panel-title{font-size:15px;color:#ead9c8}.panel-title span:last-child{font-size:12px;color:#a799b1}.hand-preview{height:78px;border-radius:3px;margin:12px 0;background:#110c1899}#hand-placeholder{font-family:Georgia,serif;font-size:40px;color:#dcc3a9;filter:none;opacity:.6}.gesture-legend{font-size:13px;gap:9px;color:#b5a7bd}.gesture-legend b{color:#e3d4e9}.camera-button{border-radius:3px;font-size:14px;padding:10px;background:#efe4dc;color:#2b242e;border:0;margin-top:14px}.camera-button:hover{background:#fff4e7}.camera-button:disabled{opacity:.6;cursor:wait}.privacy{font-size:11px;color:#afa1b5}.touch-note{font-size:11px;line-height:1.6;color:#ab9bb6;margin:8px 0 12px}
[hidden]{display:none!important}#panel-toggle,#panel-close{display:none}.scene-label span:first-child{font-size:10px;color:#d8bca5}.scene-label span:last-child{font-size:12px}.toolbar{border-radius:5px;padding:6px;background:#140f1cde;gap:4px}.toolbar button{border-radius:3px;font-size:14px;padding:9px 13px;min-height:42px}.toolbar button.active{background:#e5c8ac;color:#2a222b;box-shadow:none}.hint{font-size:12px}.hint-star{color:#e2c09e}.footer-note{font-size:10px}.large-polaroid span{font-family:Georgia,serif;font-size:16px;font-style:italic}.photo-navigation{font-size:14px}.photo-navigation button{border-radius:3px;min-height:42px}#toast{border-radius:5px;font-size:14px}
#firework-canvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;touch-action:none}#firework-canvas.grabbing{cursor:grabbing}main{z-index:2}header,footer{z-index:5}#effect-status{position:fixed;left:50%;transform:translateX(-50%);bottom:92px;font-size:13px;text-align:center;z-index:4;color:#f3d1b0;pointer-events:none;max-width:90vw}
@media(max-width:1100px) and (min-width:651px){.gesture-panel{right:3%;width:185px;top:17%}.intro{left:4%;width:265px}h1{font-size:60px}.intro-copy{font-size:14px;letter-spacing:2px}.hint{max-width:180px}.toolbar button{padding:9px 10px}}
@media(max-height:760px) and (min-width:651px){.gesture-panel{top:110px;max-height:calc(100dvh - 205px);overflow-y:auto;padding-right:8px;scrollbar-width:thin}}
@media(max-width:650px){header{left:22px;right:22px;top:17px;padding-bottom:12px}.brand{font-size:16px;gap:7px;letter-spacing:2px}.brand small{display:none}.brand-star{font-size:25px}#panel-toggle{display:block;font-size:12px;padding:7px 10px;border:1px solid var(--line);border-radius:3px;background:#1b1224}.intro{top:99px;left:26px;width:calc(100% - 52px)}.eyebrow{font-size:10px;margin-bottom:13px;letter-spacing:1.7px}h1{font-size:51px;line-height:.98;letter-spacing:-1.5px}h1 span{margin-left:0}.intro-copy{font-size:14px;line-height:1.7;letter-spacing:2px;margin-top:16px}.fine-line,.dedication{display:none}.gesture-panel{display:none;position:fixed;left:20px;right:20px;top:82px;bottom:auto;width:auto;max-height:calc(100dvh - 110px);overflow:auto;background:#160e21f5;backdrop-filter:blur(20px);border:1px solid #b99ab355;border-radius:7px;padding:20px;box-shadow:0 20px 80px #000b;pointer-events:auto}.panel-open .gesture-panel{display:block}.panel-title{font-size:16px;display:flex}.panel-title span:last-child{font-size:12px}.hand-preview{height:76px;margin:12px 0}.gesture-legend{font-size:14px;gap:8px}.camera-button{font-size:14px;min-height:44px;margin-top:14px}.privacy{font-size:12px}.touch-note{font-size:12px}#panel-close{display:block;width:100%;font-size:14px;min-height:40px;color:#c6b4ce;margin-top:4px}.scene-label{bottom:140px}.scene-label span:first-child{font-size:10px}.scene-label span:last-child{font-size:12px}footer{bottom:max(20px,env(safe-area-inset-bottom));gap:11px;left:10px;right:10px}.hint{font-size:11px}.toolbar{gap:0;padding:4px}.toolbar button{font-size:12px;padding:8px 9px;min-height:42px}.separator{margin:0 2px}.hint-star{font-size:18px}#effect-status{bottom:118px;font-size:12px;width:90vw}#toast{bottom:140px;font-size:13px}.photo-navigation{font-size:14px}}
@media(max-width:360px){.toolbar button{padding:8px 6px;font-size:12px}h1{font-size:45px}}

.firework-button{width:100%;border:1px solid var(--line);border-radius:3px;padding:9px 4px;font-size:14px;touch-action:none;user-select:none}.firework-button:hover,.firework-button:active{background:#d6b6d522}.photo-hint{font-size:12px;color:#cbb9cd;text-align:center;margin:16px 0 0}dialog::backdrop{animation:photo-backdrop-in .35s ease both}dialog.photo-closing::backdrop{animation:photo-backdrop-out .34s ease both}.photo-closing .photo-navigation,.photo-closing .photo-hint,.photo-closing #close-photo{opacity:0;transition:opacity .15s}.large-polaroid{will-change:transform,opacity}@keyframes photo-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes photo-backdrop-out{from{opacity:1}to{opacity:0}}@media(prefers-reduced-motion:reduce){dialog::backdrop{animation:none!important}}

.intro-copy strong{display:inline-block;font-weight:400;font-size:1.2em;color:#f0d7c0;margin-bottom:5px}

/* Keep the full portrait visible when a memory is opened. */
.large-polaroid img{aspect-ratio:auto;height:auto;max-height:min(52dvh,440px);object-fit:contain;background:#e9e3e1}

/* English copy keeps the same editorial layout. */
.intro-copy,.dedication{letter-spacing:.4px}.gesture-legend span{gap:12px}.gesture-legend b{flex-shrink:0}.panel-title{gap:8px}.panel-title span:last-child{text-align:right}.large-polaroid p{font-family:Georgia,serif;font-size:15px}.photo-hint{max-width:310px;margin-left:auto;margin-right:auto}@media(min-width:651px){.gesture-legend{font-size:12px}.gesture-panel{width:235px}.panel-title{font-size:14px}}@media(max-width:650px){.toolbar button{padding:8px}.intro-copy{letter-spacing:.4px}.scene-label span:last-child{letter-spacing:.8px}.gesture-legend{font-size:13px}.brand{letter-spacing:1px}}

/* Keep controls readable against the moonlit mountain range. */
@media(min-width:651px){.gesture-panel{background:linear-gradient(180deg,#0a0e20dd,#121326b8);backdrop-filter:blur(12px);padding:18px 14px;border:1px solid #d6d6f026;border-top:1px solid #e1c5a766;border-radius:5px}}

/* The letter and controls stay legible over bright, three-dimensional snow. */
.vignette{background:linear-gradient(90deg,#091420b8 0%,#09142030 28%,transparent 47%),linear-gradient(0deg,#091420b8,transparent 22%,transparent 80%,#09142045);pointer-events:none}
.scene-label,.hint{color:#f1e7d7;text-shadow:0 1px 6px #102030}
.scene-label span:last-child{color:#e6d9c8}
@media(max-width:650px){.vignette{background:linear-gradient(0deg,#091420bc,transparent 27%,transparent 67%,#09142088)}.intro{pointer-events:none}}

@media(min-width:361px) and (max-width:650px){.toolbar button{font-size:12px}}
#particle-universe{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:1}
/* Snow is scenery; the original pink and gold lights remain the focal point. */
#universe{filter:brightness(.53) saturate(.72)}.galaxy #universe{filter:none}

/* Memories orbit through the foreground particles instead of floating above every layer. */
#universe{z-index:0}#rear-photos{position:fixed;inset:0;z-index:1;pointer-events:none;mask-repeat:no-repeat;mask-size:100% 100%}#particle-universe,#firework-canvas{z-index:2}main{z-index:3}.polaroid{transition:box-shadow .2s}

.firework-button:disabled{opacity:.45;cursor:not-allowed;background:transparent}
/* Small keepsake ornaments stay attached to each photo's depth and rotation. */
.large-polaroid{position:relative}
.polaroid .photo-ornament,.large-polaroid .photo-ornament{position:absolute;z-index:1;width:42%;height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;background:none;top:-22%;right:-10%;pointer-events:none;user-select:none;filter:drop-shadow(0 2px 2px #32132840);transform:rotate(15deg)}
.polaroid .ornament-crown,.large-polaroid .ornament-crown{width:38%;top:-22%;right:30%;transform:rotate(-8deg)}
.polaroid .ornament-antlers,.large-polaroid .ornament-antlers{width:56%;top:-32%;right:22%;transform:rotate(0)}
.large-polaroid .photo-ornament{width:23%;top:-7%;right:-4%}
.large-polaroid .ornament-crown{width:22%;top:-10%;right:38%}
.large-polaroid .ornament-antlers{width:30%;top:-15%;right:35%}

/* Cinematic winter invitation: the scene is the hero, the guide opens on request. */
#universe{filter:none}
header{border:0;top:28px;align-items:center;gap:28px}
header::after{content:'';height:1px;flex:1;order:1;background:linear-gradient(90deg,#d0ad7766,#d0ad7733)}
.brand{font-family:Georgia,'Times New Roman',serif;font-size:20px;letter-spacing:1px;color:#f0d1a5;white-space:nowrap}
.brand small,.brand-star,.edition span{display:none}
.edition{order:2;color:#d9c0a2;font-family:Georgia,serif;letter-spacing:4px;font-size:12px}
#panel-toggle{display:block;position:fixed;bottom:31px;right:4%;font:italic 16px Georgia,serif;color:#e6d4bf;padding:12px 0;min-height:44px;background:none;border:0}
#panel-toggle:hover{color:#fff3dc}
.gesture-panel{display:none;position:fixed;right:4%;top:auto;bottom:100px;width:260px;max-height:calc(100dvh - 150px);overflow:auto;padding:20px;background:#0b1724ed;backdrop-filter:blur(18px);border:1px solid #dcc39d42;border-radius:4px;box-shadow:0 16px 60px #0006}
.panel-open .gesture-panel{display:block}
#panel-close{display:block;width:100%;min-height:40px;margin-top:10px;font-size:13px;color:#cdb899}
.intro{top:28%;left:4.5%;width:29%}
.eyebrow,.dedication{display:none}
h1{font-size:clamp(64px,6.8vw,116px);line-height:1.02;letter-spacing:-2.5px}
.intro-copy{font:18px/1.8 Georgia,'Times New Roman',serif;letter-spacing:1px;color:#eee4d8;margin-top:30px}
.intro-copy strong{font-style:italic;font-size:1.05em;color:#f0dec9;margin-bottom:8px}
.fine-line{background:#d2b489;width:52px;margin-top:25px}
.vignette{background:linear-gradient(90deg,#06111bd6, #06111b63 25%,transparent 46%),linear-gradient(0deg,#07132188,transparent 23%,transparent 78%,#07132155)}
.toolbar{border:0;background:linear-gradient(0deg,#08132077,transparent);backdrop-filter:blur(5px);box-shadow:none;gap:10px;border-radius:0;padding:6px 10px}
.toolbar button{font:16px Georgia,'Times New Roman',serif;min-height:44px;padding:10px 16px;border-radius:0;color:#e8d8c4;border-bottom:1px solid transparent}
.toolbar button.active{background:none;color:#ffdfb4;border-bottom:1px solid #d9b37d;box-shadow:0 8px 12px -10px #f5cd97}
.toolbar button:hover{background:#ffe2b60c}.separator{background:#cba77655}
footer{justify-content:center;bottom:26px}.hint{position:absolute;left:0;max-width:240px;color:#c7c7ce;font-size:11px}.footer-note{display:none}
.scene-label{bottom:110px;opacity:.68}.scene-label span:first-child{font-size:9px}.scene-label span:last-child{font-size:11px}
body.galaxy .intro{opacity:.7}
@media(max-width:1100px) and (min-width:651px){h1{font-size:clamp(60px,6.7vw,85px)}.intro-copy{font-size:15px}.hint{max-width:160px}.toolbar button{font-size:14px;padding:10px}.toolbar{gap:3px}#panel-toggle{font-size:14px}}
@media(max-width:650px){header{top:18px;gap:18px}.brand{font-size:17px}.edition{display:none}.intro{top:105px;left:26px;width:calc(100% - 52px)}h1{font-size:51px;letter-spacing:-1.5px}.intro-copy{font:14px/1.7 Georgia,serif;margin-top:18px}.fine-line{display:none}#panel-toggle{position:static;font-size:12px;padding:6px;min-height:34px;white-space:nowrap;order:2}header::after{display:none}.gesture-panel{left:20px;right:20px;top:78px;bottom:auto;width:auto;max-height:calc(100dvh - 110px)}.hint{position:static;max-width:none}.toolbar{gap:0;padding:5px}.toolbar button{font-size:13px;padding:9px}.vignette{background:linear-gradient(0deg,#071321ba,transparent 28%,transparent 58%,#07132199)}footer{bottom:max(18px,env(safe-area-inset-bottom))}.scene-label{bottom:135px}}
/* Keep the bottom-corner guide reachable above the full-width footer. */
header{z-index:6}
/* Reference composition: preserve the artwork's proportions and quiet controls. */
@media(min-width:651px){header{top:42px;left:4.4%}.brand{font-style:italic}.intro{top:28%;left:4.4%}h1{font-size:clamp(58px,5.45vw,96px);line-height:.95;letter-spacing:-1.8px}.intro-copy{margin-top:20px}.toolbar{gap:25px;background:none;backdrop-filter:none;padding:0}.toolbar button{font-size:18px;padding:12px 18px}.toolbar .separator{margin:0 4px}footer{bottom:48px}.hint,.scene-label{display:none}#panel-toggle{bottom:49px;right:3.5%;font-size:17px}.vignette{background:linear-gradient(90deg,#06111bd9 0%,#06111b99 18%,#06111b22 32%,transparent 44%)}.fine-line{margin-top:25px}}
.extra-controls{display:flex;gap:10px;margin-top:12px}.extra-controls button{flex:1;border:1px solid var(--line);padding:8px;font-size:13px;min-height:40px}
@media(max-width:650px){.toolbar{gap:14px}.toolbar button{font-size:14px}.scene-label{display:none}}
/* The gesture guide stays immediately available in the upper-right corner. */
.gesture-panel{display:grid;grid-template-columns:72px minmax(0,1fr);gap:8px 12px;left:auto;right:4%;top:100px;bottom:auto;width:306px;max-height:calc(100dvh - 190px);padding:14px;background:#0b1724dc;backdrop-filter:none;overflow:auto}
.gesture-panel>*{grid-column:1/-1;margin:0}
.gesture-panel .panel-title{font-size:14px;align-items:center}
.gesture-panel .panel-title span:last-child{font-size:11px}
.gesture-panel .hand-preview{grid-column:1;width:72px;height:88px;margin:0;align-self:center}
.gesture-panel .gesture-legend{grid-column:2;gap:5px;font-size:12px}
.gesture-panel .touch-note{display:none}
.gesture-panel .firework-button,.gesture-panel .camera-button{font-size:13px;min-height:32px;padding:5px;margin:0}
.gesture-panel .privacy{font-size:10px;line-height:1.3;margin:0}
.gesture-panel .extra-controls{margin:0;gap:8px}
.gesture-panel .extra-controls button{font-size:12px;min-height:30px;padding:4px}
@media(max-width:650px){.gesture-panel{left:auto;right:14px;top:78px;bottom:auto;width:min(286px,calc(100vw - 28px));max-height:36dvh;padding:12px}.hint{display:none}}

.quality-control{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;color:#e4d1bb}.quality-control select{min-width:0;padding:5px 8px;border:1px solid #aa906555;border-radius:3px;background:#101925;color:#f0dfca;font:inherit}.quality-control select:focus-visible{outline:2px solid #e5c397;outline-offset:2px}

/* A phone keeps the scene visible; optional controls open as a small sheet. */
#mobile-guide,#mobile-guide-close,#mobile-firework{display:none}
@media(max-width:650px){
 header{top:max(16px,env(safe-area-inset-top));left:20px;right:20px;justify-content:space-between;padding:0}
 #mobile-guide{display:block;min-height:44px;padding:8px 10px;border:1px solid #d6bd8d40;border-radius:20px;background:#08142099;color:#ead5b8;font-size:12px;white-space:nowrap}
 .intro{top:82px;left:22px;width:calc(100% - 44px)}
 h1{font-size:39px;line-height:1;letter-spacing:-1px}
 .intro-copy{font-size:0;line-height:0;margin-top:12px}
 .intro-copy strong{font-size:13px;line-height:1.5;margin:0}
 .gesture-panel{display:none;left:14px;right:14px;top:auto;bottom:calc(88px + env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 180px - env(safe-area-inset-top) - env(safe-area-inset-bottom));padding:14px;grid-template-columns:64px minmax(0,1fr);gap:10px 12px;background:#091723f5;box-shadow:0 12px 44px #0008;overscroll-behavior:contain}
 .mobile-guide-open .gesture-panel{display:grid}
 #mobile-guide-close{display:block;margin-left:auto;min-width:40px;min-height:36px;font-size:25px;line-height:1}
 .gesture-panel .panel-title{font-size:15px;gap:8px}
 .gesture-panel .panel-title span:last-of-type{font-size:11px;margin-left:auto}
 .gesture-panel .hand-preview{width:64px;height:80px}
 .gesture-panel .gesture-legend{font-size:13px;gap:9px}
 .gesture-panel .camera-button,.gesture-panel .extra-controls button{min-height:44px;font-size:14px}
 .gesture-panel .firework-button{display:none}
 .gesture-panel .privacy{font-size:11px}
 .quality-control{font-size:13px}.quality-control select{min-height:40px}
 footer{left:10px;right:10px;bottom:calc(12px + env(safe-area-inset-bottom));gap:0}
 .toolbar{width:max-content;max-width:100%;gap:2px;padding:4px 8px;background:#081420dc;border:1px solid #ddc39828;border-radius:28px;backdrop-filter:none}
 .toolbar button{min-height:44px;font-size:13px;padding:8px 10px;white-space:nowrap}
 .toolbar .separator{margin:0 2px;height:18px}
 #mobile-firework{display:block;font-family:inherit;font-size:13px;touch-action:none;user-select:none}
 #mobile-firework:disabled{opacity:.35;cursor:not-allowed}
 #music-button{min-width:76px}
 #toast{bottom:calc(84px + env(safe-area-inset-bottom));max-width:calc(100vw - 32px);font-size:12px;padding:9px 12px}
 #effect-status{bottom:calc(82px + env(safe-area-inset-bottom));font-size:12px}
 dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 40px);padding:28px 16px 12px}
 .large-polaroid{width:min(300px,calc(100vw - 70px))}.large-polaroid img{max-height:53dvh}
 .photo-navigation{margin-top:22px}.photo-hint{font-size:12px}
}
@media(max-width:360px){.toolbar{padding:3px 5px}.toolbar button{padding:8px 6px;font-size:12px}#music-button{min-width:70px}h1{font-size:35px}}
@media(max-height:500px) and (max-width:950px){.intro{top:70px}h1{font-size:36px}.intro-copy{display:none}.gesture-panel{max-height:calc(100dvh - 150px)}}

/* Chibi keepsakes dissolve into original photographs with the scene transition. */
.photo-picture{position:relative;aspect-ratio:1;overflow:hidden}.polaroid .photo-chibi{position:absolute;inset:0;object-position:50% 50%;pointer-events:none}

