@font-face{font-family:Cinzel;font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/cinzel-regular.ttf)format("truetype")}:root{color:#f8edcf;font-synthesis:none;--gold:#e7c475;--gold-bright:#ffe7a3;--gold-dim:#e7c4756b;--line:#e7c47538;--rose:#efa2bd;background:#090b20;font-family:Inter,PingFang SC,Microsoft YaHei,sans-serif}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;height:100dvh;margin:0;overflow:hidden}body{min-width:320px}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible{outline:2px solid var(--gold-bright);outline-offset:4px}a:focus-visible{outline:2px solid var(--gold-bright);outline-offset:4px}button{border:0}svg{fill:none;stroke:currentColor;stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round;width:20px;height:20px}[hidden]{display:none!important}#scene{z-index:0;content-visibility:auto;contain-intrinsic-size:auto none auto 100vh;background:radial-gradient(at 50% 48%,#38213f 0%,#19152f 42%,#090b20 78%);position:fixed;top:0;bottom:0;left:0;right:0}#scene canvas{touch-action:none;width:100%;height:100%;display:block}.webgl-fallback{text-align:center;color:var(--gold);position:absolute;top:45%;bottom:45%;left:20%;right:20%}.vignette{z-index:1;pointer-events:none;background:radial-gradient(#0000 42%,#00051140 75%,#00040da6 100%);position:fixed;top:0;bottom:0;left:0;right:0}.grain{z-index:2;opacity:.035;pointer-events:none;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");position:fixed;top:0;bottom:0;left:0;right:0}.topbar{z-index:10;background:linear-gradient(#020917a6,#0000);border-bottom:1px solid #e7c4751f;justify-content:space-between;align-items:center;gap:28px;height:92px;padding:0 42px;display:flex;position:fixed;top:0;left:0;right:0}.brand{color:var(--gold-bright);flex-shrink:0;align-items:center;gap:12px;text-decoration:none;display:flex}.brand>svg{width:29px;height:29px;fill:var(--gold);stroke:none;filter:drop-shadow(0 0 8px #eec36359)}.brand>span{letter-spacing:2.7px;font-family:Cinzel,serif;font-size:15px;line-height:1.15}.brand small{letter-spacing:6.5px;color:#f8edcf8c;margin-top:5px;font-family:Inter,sans-serif;font-size:8px;display:block}.mode-switch{border:1px solid var(--line);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);background:#030f2275;align-items:center;padding:4px;display:flex}.mode-button{color:#f8edcf8c;letter-spacing:1.5px;white-space:nowrap;background:0 0;justify-content:center;align-items:center;gap:8px;min-width:104px;height:38px;padding:0 18px;font-size:11px;transition:color .25s,background .25s;display:flex;position:relative}.mode-button svg{width:15px;height:15px}.mode-button:first-child svg{fill:currentColor;stroke:none}.mode-button:hover{color:var(--gold-bright)}.mode-button.active{color:#172033;background:linear-gradient(135deg,#f6df9e,#caa353);box-shadow:0 0 25px #e0b86024}.top-actions{flex-shrink:0;align-items:center;gap:12px;display:flex}.text-button,.gesture-button{letter-spacing:1px;justify-content:center;align-items:center;gap:9px;height:42px;font-size:11px;transition:border-color .25s,background .25s,color .25s;display:flex}.text-button{color:#f8edcfb8;background:0 0;padding:0 8px}.text-button:hover{color:var(--gold-bright)}.text-button svg{width:16px;height:16px}.music-button.playing{color:var(--gold-bright)}.music-button.playing svg{filter:drop-shadow(0 0 6px #e7c4758c);animation:1.6s ease-in-out infinite pulse}.gesture-button{border:1px solid var(--gold-dim);min-width:126px;color:var(--gold-bright);background:#0b1e3180;padding:0 16px}.gesture-button:hover,.gesture-button.active{border-color:var(--gold);background:#e7c4751a}.gesture-button svg{width:16px;height:16px}.status-dot{background:#8d8b80;border-radius:50%;width:5px;height:5px;box-shadow:0 0 0 3px #8d8b8014}.gesture-button.active .status-dot{background:#aee6bd;box-shadow:0 0 9px #83d49b}.gesture-button.loading .status-dot{background:var(--gold);animation:1s infinite pulse}.hero-copy{z-index:3;text-align:center;pointer-events:none;width:100%;transition:opacity .6s,transform .6s;position:fixed;top:116px;left:50%;transform:translate(-50%)}.hero-copy p{color:#e7c4759e;letter-spacing:3.5px;justify-content:center;align-items:center;gap:13px;margin:0 0 12px;font-size:8px;display:flex}.hero-copy p span{background:#e7c47552;width:32px;height:1px;display:block}.hero-copy h1{letter-spacing:max(4px,min(.65vw,10px));color:#f8e8b6;text-shadow:0 0 35px #efc6692e;margin:0;font-family:Cinzel,Times New Roman,serif;font-size:max(28px,min(3.1vw,49px));font-weight:400;line-height:1.1}.hero-subtitle{letter-spacing:6px;color:#efa2bdb8;margin-top:13px;font-family:Noto Serif SC,serif;font-size:11px}body.focus-mode .hero-copy{opacity:.12;transform:translate(-50%)translateY(-8px)}.edition{z-index:3;color:#e7c4754d;letter-spacing:3px;pointer-events:none;align-items:center;gap:14px;font-family:Cinzel,serif;font-size:8px;display:flex;position:fixed;top:50%;left:41px;transform:translate(-45%,-50%)rotate(-90deg)}.edition i{background:#e7c47533;width:60px;height:1px}.camera-card{z-index:5;background:#041223bd;border:1px solid #e7c47540;width:196px;height:147px;position:fixed;bottom:48px;left:40px;overflow:hidden;box-shadow:0 14px 50px #00000038}.camera-card:after{content:"";pointer-events:none;border:1px solid #ffffff09;position:absolute;top:5px;bottom:5px;left:5px;right:5px}#webcam{object-fit:cover;opacity:.01;pointer-events:none;width:100%;height:100%;position:absolute;top:0;bottom:0;left:0;right:0}#hand-canvas{z-index:1;object-fit:cover;opacity:0;width:100%;height:100%;transition:opacity .4s;display:block;position:relative}.camera-card.active #hand-canvas{opacity:.82}.camera-placeholder{background:radial-gradient(circle at 50% 60%,#193d5061,#0000 75%);flex-direction:column;justify-content:center;align-items:center;padding-top:20px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.camera-placeholder svg{color:#e7c4757a;width:27px;height:27px;margin-bottom:10px}.camera-placeholder>span{letter-spacing:2px;color:#f8edcfa8;font-family:Noto Serif SC,serif;font-size:11px}.camera-placeholder small{letter-spacing:.5px;color:#f8edcf4d;margin-top:7px;font-size:8px}.camera-card.active .camera-placeholder{display:none}.camera-header{z-index:2;color:#f8edcf80;letter-spacing:1.3px;justify-content:space-between;font-size:6px;display:flex;position:absolute;top:8px;left:10px;right:10px}.camera-header span{align-items:center;gap:5px;display:flex}.camera-header i{background:#817c6c;border-radius:50%;width:4px;height:4px}.camera-card.active .camera-header i{background:#f18372;box-shadow:0 0 6px #f18372}.camera-header b{color:var(--gold);font-weight:400}.gesture-name{z-index:2;white-space:nowrap;color:var(--gold-bright);letter-spacing:1px;background:#020c19b8;border:1px solid #e7c4754d;padding:5px 10px;font-size:9px;position:absolute;bottom:8px;left:50%;transform:translate(-50%)}.memory-panel{z-index:5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#041020ab;border:1px solid #e7c47540;width:288px;padding:13px 14px 11px;position:fixed;bottom:48px;right:40px}.panel-heading{justify-content:space-between;align-items:center;margin-bottom:10px;display:flex}.panel-heading>span{letter-spacing:2.5px;color:var(--gold-bright);font-family:Cinzel,serif;font-size:10px}.panel-heading small{letter-spacing:1.2px;color:#f8edcf59;font-size:6px}.panel-heading small b{color:var(--gold);font-weight:400}.memory-list{grid-template-columns:repeat(8,1fr);gap:4px;height:97px;display:grid;overflow:hidden}.memory-thumb{min-width:0;height:97px;transform:rotate(var(--tilt));background:#d8c49a;border:1px solid #e7c4753d;padding:2px 2px 12px;transition:transform .25s,border-color .25s;position:relative}.memory-thumb:hover,.memory-thumb.active{border-color:var(--gold-bright);transform:rotate(0)translateY(-4px)}.memory-thumb img{object-fit:cover;filter:saturate(.82)sepia(.08);width:100%;height:100%;display:block}.memory-thumb:after{content:"";background:#402e1973;width:10px;height:1px;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}.add-photo{display:none}.memory-panel>p{text-align:center;letter-spacing:2px;color:#f8edcf59;margin:9px 0 0;font-family:Noto Serif SC,serif;font-size:8px}.interaction-hint{z-index:4;white-space:nowrap;color:#f8edcf47;letter-spacing:1px;pointer-events:none;align-items:center;gap:8px;font-size:8px;display:flex;position:fixed;bottom:24px;left:50%;transform:translate(-50%)}.interaction-hint b{color:#e7c4754d;font-weight:400}.interaction-hint kbd{color:#e7c4757a;border:1px solid #e7c4752e;border-radius:2px;padding:2px 4px;font-family:inherit;font-size:6px}.mouse-icon{border:1px solid #e7c4754d;border-radius:6px;width:10px;height:14px;position:relative}.mouse-icon i{background:#e7c47580;width:1px;height:3px;position:absolute;top:2px;left:4px}.close-focus{z-index:8;border:1px solid var(--line);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:#f8edcfb3;letter-spacing:1px;background:#030e1ea6;align-items:center;gap:8px;padding:10px 16px;font-size:10px;display:flex;position:fixed;bottom:85px;left:50%;transform:translate(-50%)}.close-focus:hover{color:var(--gold-bright);border-color:var(--gold)}.close-focus svg{width:13px;height:13px}.focus-caption{z-index:4;text-align:center;pointer-events:none;position:fixed;bottom:140px;left:50%;transform:translate(-50%)}.focus-caption span{letter-spacing:4px;color:#e7c4758c;margin-bottom:5px;font-family:Cinzel,serif;font-size:8px;display:block}.focus-caption b{letter-spacing:3px;color:var(--gold-bright);font-family:Cinzel,serif;font-size:12px;font-weight:400}.toast{z-index:30;border:1px solid var(--line);max-width:min(90vw,480px);color:var(--gold-bright);letter-spacing:.5px;text-align:center;opacity:0;pointer-events:none;background:#041122eb;padding:11px 18px;font-size:11px;transition:opacity .25s,transform .25s;position:fixed;top:105px;left:50%;transform:translate(-50%,-12px);box-shadow:0 10px 40px #0000004d}.toast.show{opacity:1;transform:translate(-50%)}.opening{z-index:110;opacity:1;background:radial-gradient(at 50% 46%,#111735 0%,#070b20 52%,#030612 100%);transition:opacity 2s,visibility 2s;position:fixed;top:0;bottom:0;left:0;right:0;overflow:hidden}.opening.revealing{opacity:0;visibility:hidden;pointer-events:none}#opening-canvas{width:100%;height:100%;display:block;position:absolute;top:0;bottom:0;left:0;right:0}.gesture-intro{display:none}.opening.awaiting-gesture .gesture-intro{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:0 24px 230px;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.opening.awaiting-gesture #opening-canvas,.opening.awaiting-gesture .opening-kicker,.opening.awaiting-gesture .opening-footer{display:none}.intro-emblem{width:62px;height:62px;color:var(--gold-bright);filter:drop-shadow(0 0 18px #e7c47552);margin-bottom:22px}.intro-emblem svg{width:100%;height:100%}.intro-eyebrow{color:#e7c47585;letter-spacing:4px;margin:0 0 14px;font-family:Cinzel,serif;font-size:8px}.gesture-intro h2{color:#f8e8b6;letter-spacing:5px;margin:0;font-family:Cinzel,Times New Roman,serif;font-size:max(26px,min(4vw,48px));font-weight:400}#intro-status{color:#f8edcf94;letter-spacing:2px;margin:18px 0 24px;font-size:11px}#intro-start{border:1px solid var(--gold-dim);min-width:112px;min-height:42px;color:var(--gold-bright);letter-spacing:2px;background:#e7c47514;padding:0 20px;font-size:11px}#intro-start:hover{border-color:var(--gold);background:#e7c47529}.gesture-intro small{color:#f8edcf57;letter-spacing:1px;margin-top:18px;font-size:9px}body.gesture-intro-active #camera-card{z-index:120;border-color:#e7c47580;width:236px;height:177px;bottom:58px;left:50%;transform:translate(-50%)}body.gesture-intro-active #camera-card:not(.active){pointer-events:none;display:block}.opening-kicker{color:#e7c4757a;letter-spacing:3.4px;justify-content:center;align-items:center;gap:14px;width:max-content;font-family:Cinzel,serif;font-size:8px;display:flex;position:absolute;top:52px;left:50%;transform:translate(-50%)}.opening-kicker span{background:#e7c47542;width:42px;height:1px}.opening-footer{color:#f8edcf61;letter-spacing:2px;justify-content:space-between;align-items:center;gap:20px;font-size:9px;display:flex;position:absolute;bottom:32px;left:36px;right:36px}#skip-opening{color:#ffe7a3c7;letter-spacing:1.5px;background:#070d2073;border:1px solid #e7c47540;min-width:92px;min-height:40px;padding:0 15px;font-size:10px;transition:color .2s,border-color .2s,background .2s}#skip-opening:hover{color:var(--gold-bright);border-color:var(--gold);background:#e7c47514}.loader{z-index:100;background:#090b20;flex-direction:column;justify-content:center;align-items:center;transition:opacity .8s,visibility .8s;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}.loader.done{opacity:0;visibility:hidden;pointer-events:none}.loader-star{color:var(--gold);filter:drop-shadow(0 0 18px #e7c47580);font-size:42px;animation:1.8s ease-in-out infinite pulse}.loader>span{letter-spacing:5px;color:#f8edcf8c;margin:20px 0;font-family:Noto Serif SC,serif;font-size:11px}.loader-line{background:#e7c4751f;width:120px;height:1px;overflow:hidden}.loader-line i{background:var(--gold);width:50%;height:100%;animation:1.4s ease-in-out infinite loading;display:block}.loader.error>span{letter-spacing:0;text-align:center;white-space:pre-line;color:#f8edcfd1;max-width:min(84vw,420px);margin:18px 0 0;font-size:13px;line-height:2}.loader.error .loader-star{opacity:.9;animation:none}@keyframes pulse{0%,to{opacity:.35}50%{opacity:1}}@keyframes loading{0%{transform:translate(-100%)}to{transform:translate(200%)}}@media (max-width:1100px){.topbar{gap:16px;padding:0 24px}.brand>span{font-size:12px}.brand small{letter-spacing:4.7px}.mode-button{min-width:80px;padding:0 12px}.top-actions{gap:6px}.text-button span{display:none}.text-button{width:36px}.camera-card{left:24px}.memory-panel{right:24px}}@media (max-width:760px){.opening.awaiting-gesture .gesture-intro{padding-bottom:220px}.gesture-intro h2{letter-spacing:3px;font-size:26px}.intro-eyebrow{letter-spacing:2px;font-size:6px}#intro-status{max-width:280px;font-size:10px;line-height:1.8}body.gesture-intro-active #camera-card{width:190px;height:142px;bottom:72px}body.gesture-intro-active #camera-card:not(.active){pointer-events:none;display:block}.opening-kicker{letter-spacing:2px;gap:9px;font-size:6px;top:34px}.opening-kicker span{width:22px}.opening-footer{left:18px;right:18px;bottom:max(22px, env(safe-area-inset-bottom));letter-spacing:1px;font-size:8px}#skip-opening{min-width:82px;min-height:38px;padding:0 11px;font-size:9px}.topbar{height:calc(72px + env(safe-area-inset-top));padding:env(safe-area-inset-top) 16px 0}.brand>svg{width:24px;height:24px}.brand>span{letter-spacing:1.6px;font-size:10px}.brand small{letter-spacing:3.7px;font-size:6px}.mode-switch{z-index:12;left:50%;bottom:max(16px, env(safe-area-inset-bottom));position:fixed;transform:translate(-50%)}.mode-button{min-width:86px;height:44px;padding:0 11px;font-size:10px}.gesture-button{width:44px;min-width:44px;height:44px;padding:0}.gesture-button #gesture-button-label,.gesture-button .status-dot{display:none}.hero-copy{top:calc(95px + env(safe-area-inset-top))}.hero-copy h1{letter-spacing:3px;font-size:max(22px,min(7vw,34px))}.hero-copy p{letter-spacing:2px;font-size:6px}.hero-subtitle{letter-spacing:4px;font-size:9px}.edition,.interaction-hint{display:none}.camera-card{left:14px;bottom:calc(96px + env(safe-area-inset-bottom));width:156px;height:117px}.camera-card:not(.active),.camera-placeholder small{display:none}.camera-header{font-size:5px}.gesture-name{max-width:calc(100% - 12px);padding:5px 7px;font-size:8px}.memory-panel{right:14px;bottom:calc(96px + env(safe-area-inset-bottom));width:168px;padding:9px}.memory-list{height:58px}.memory-thumb{height:58px;padding-bottom:8px}.panel-heading>span{font-size:8px}.panel-heading small{display:none}.memory-panel>p{letter-spacing:1px;font-size:6px}.close-focus{bottom:calc(88px + env(safe-area-inset-bottom))}.focus-caption{bottom:calc(142px + env(safe-area-inset-bottom))}}@media (max-height:690px) and (min-width:761px){.topbar{height:70px}.hero-copy{top:84px}.hero-copy h1{font-size:32px}.hero-subtitle{margin-top:8px}.camera-card{width:150px;height:112px;bottom:38px}.memory-panel{width:218px;bottom:38px}.memory-list,.memory-thumb{height:72px}}@media (prefers-reduced-motion:reduce){.opening{transition:none}.loader-star,.loader-line i,.music-button.playing svg,.gesture-button.loading .status-dot{animation:none}.hero-copy,.toast,#hand-canvas,.loader,.memory-thumb,.mode-button{transition:none}}@media (max-height:520px){body.gesture-intro-active #camera-card,body.gesture-intro-active #camera-card:not(.active){display:none}.opening.awaiting-gesture .gesture-intro{padding:0 20px}.intro-emblem{width:42px;height:42px;margin-bottom:10px}.intro-eyebrow{letter-spacing:2px;margin-bottom:8px;font-size:6px}.gesture-intro h2{letter-spacing:3px;font-size:max(20px,min(4.4vw,28px))}#intro-status{letter-spacing:1px;margin:10px 0 14px;font-size:9px}#intro-start{min-height:38px;padding:0 16px}.gesture-intro small{margin-top:10px;font-size:8px}.hero-copy{top:calc(58px + env(safe-area-inset-top))}.hero-copy h1{letter-spacing:2px;font-size:max(20px,min(3.6vw,27px))}.hero-subtitle{letter-spacing:2px;margin-top:3px;font-size:8px}.edition{display:none}}
