:root{color-scheme:dark;--gold:#f1d69f;--glass:rgba(12,25,33,.68)}html,body{width:100%;height:100%;overscroll-behavior:none;touch-action:none}body>canvas{position:fixed;inset:0;width:100%;height:100%;outline:0}footer,#gift-touch-layer{display:none!important}#game-ui{position:fixed;inset:0;pointer-events:none;z-index:10;font-family:system-ui,-apple-system,sans-serif}button{touch-action:manipulation;cursor:pointer}button:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.5}.game-header{position:absolute;top:max(20px,env(safe-area-inset-top));left:28px;right:28px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;gap:11px;align-items:center;color:#fff6e1;font:18px Georgia,serif;letter-spacing:.12em;text-shadow:0 2px 14px #071323}.brand-star{color:var(--gold);font-size:36px}.brand small{display:block;font:9px system-ui;letter-spacing:.18em;margin-top:6px;color:#e5cfaa}nav{display:flex;gap:8px;pointer-events:auto}nav button,#music-slot button{display:grid;place-items:center;width:42px;height:42px;padding:0;border:1px solid #f7deb132;border-radius:50%;background:var(--glass);backdrop-filter:blur(12px);color:var(--gold);font-size:18px}#music-slot button[aria-pressed=true]{background:#8b652b90;border-color:#f1d69f88}#music-slot{display:contents}#crosshair{position:absolute;left:50%;top:50%;width:5px;height:5px;border-radius:50%;background:#fff9df;box-shadow:0 0 0 4px #07132322,0 0 12px #fff5;opacity:0;transition:opacity .4s}body.playing #crosshair{opacity:.8}#location{position:absolute;top:105px;left:50%;transform:translateX(-50%);font-size:13px;letter-spacing:.15em;color:#fff0cccf;text-shadow:0 1px 8px #000}#desktop-tip{position:absolute;bottom:26px;left:50%;transform:translateX(-50%);font-size:12px;color:#f9ecc8b5;white-space:nowrap;text-shadow:0 2px 8px #000}#interaction{position:absolute;left:50%;bottom:100px;transform:translateX(-50%);text-align:center;color:#fff5df;white-space:nowrap}#interaction[hidden]{display:none}#interact-label{display:block;font-size:13px;letter-spacing:.08em;margin-bottom:10px;text-shadow:0 2px 9px #000}#interact-button{pointer-events:auto;min-width:128px;padding:13px 24px;border:1px solid #f1d69f99;border-radius:999px;background:#19322be8;color:#fff1cd;font:15px system-ui;box-shadow:0 8px 35px #0004;backdrop-filter:blur(12px)}#joystick{display:none;position:absolute;bottom:max(35px,env(safe-area-inset-bottom));left:30px;width:120px;height:120px;pointer-events:auto;border:1px solid #fff3;border-radius:50%;background:#ffffff0a;box-shadow:inset 0 0 30px #ffffff08;touch-action:none;user-select:none}#joystick:before{content:'';position:absolute;inset:20px;border:1px solid #fff1;border-radius:50%}#joystick-knob{position:absolute;left:39px;top:39px;width:40px;height:40px;border:1px solid #f2d7a46b;border-radius:50%;background:#e5cfaa35;box-shadow:0 4px 18px #0003;pointer-events:none}#run{display:none;pointer-events:auto;position:absolute;right:24px;bottom:45px;width:61px;height:61px;border:1px solid #f2d7a447;border-radius:50%;background:var(--glass);color:#fff1cf;font-size:13px;user-select:none;touch-action:none}#toast{position:absolute;bottom:190px;left:50%;transform:translateX(-50%);padding:10px 18px;max-width:85vw;text-align:center;border:1px solid #e9cf9a33;border-radius:10px;background:#10282de8;color:#f9e8c6;font-size:13px;opacity:0;transition:opacity .25s}#toast.visible{opacity:1}#welcome{position:fixed;inset:0;z-index:20;display:grid;align-items:center;padding:9vw;background:linear-gradient(90deg,#061320e8 0%,#071323a6 35%,#07132310 77%);transition:opacity .6s,visibility .6s}#welcome.dismissed{opacity:0;visibility:hidden;pointer-events:none}.intro{max-width:470px}.intro-eyebrow{font:10px Georgia,serif;letter-spacing:.3em;color:#efd59f;margin-bottom:28px}h1{margin:0;color:#fff2d3;font:clamp(42px,5.8vw,78px) Georgia,'Songti SC',serif;letter-spacing:.14em;font-weight:400;text-shadow:0 5px 25px #0019}.intro p{font-size:15px;line-height:1.9;color:#d9e1df;margin:22px 0 33px;letter-spacing:.08em}#enter{min-width:207px;border:1px solid #f4d7a8a6;border-radius:5px;padding:17px 26px;background:linear-gradient(110deg,#b3945a,#e8c88c);color:#1b2927;font:16px Georgia,serif;letter-spacing:.1em;box-shadow:0 8px 36px #0003}#enter span{margin-left:38px;font-size:21px}#enter:disabled{opacity:.55;cursor:wait}.intro-controls{color:#b8c8c8;font-size:12px;line-height:1.9;margin-top:24px}#boot-state{color:#ecd4a3b0;font-size:12px;min-height:20px;margin-top:14px}.intro-bottom{position:absolute;bottom:30px;left:9vw;font:12px Georgia,serif;letter-spacing:.12em;color:#ecdfc183}#help-dialog{z-index:100;padding:32px;border:1px solid #c9b27b7a;border-radius:15px;width:min(440px,calc(100vw - 32px));background:#10252cf5;color:#e9e9df;box-shadow:0 20px 100px #0008}#help-dialog::backdrop{background:#041019a6;backdrop-filter:blur(9px)}#help-dialog h2{font:25px Georgia,serif;font-weight:400;color:#ffe9b8}#help-dialog p{font-size:14px;line-height:1.9;color:#cfdbd9}#help-dialog small{display:block;margin-top:13px;color:#a6bcb9;font-size:12px;line-height:1.7}#help-close{position:absolute;right:16px;top:12px;color:#f0d9a9;background:none;border:0;font-size:26px}#lock-look{padding:11px 17px;border:1px solid #e3c99066;background:#e1c38a22;color:#ffe3ac;border-radius:7px;font-size:14px}body:not(.playing) #game-ui{visibility:hidden}body.modal-open #joystick,body.modal-open #run,body.modal-open #interaction,body.modal-open #crosshair{visibility:hidden}#card{z-index:50}#surprise,#star-card{z-index:50}@media(pointer:coarse){body.playing #joystick,body.playing #run{display:block}#desktop-tip{display:none}#interaction{bottom:185px}#location{top:88px}#lock-look{display:none}}@media(max-width:650px){.game-header{left:18px;right:18px;top:max(15px,env(safe-area-inset-top))}.brand{font-size:16px}.brand small{font-size:7px}.brand-star{font-size:29px}nav button,#music-slot button{width:37px;height:37px}#welcome{padding:9vw;align-items:end;padding-bottom:20vh;background:linear-gradient(0deg,#061320fa 0%,#071323b8 38%,#07132300 80%)}.intro-eyebrow{font-size:8px;letter-spacing:.22em;margin-bottom:20px}h1{font-size:44px}.intro p{font-size:13px;margin:17px 0 24px}.intro-controls{font-size:11px;margin-top:18px}#enter{padding:14px 22px;min-width:200px}.intro-bottom{font-size:11px;bottom:28px;right:9vw}#joystick{left:20px;width:110px;height:110px}#joystick-knob{left:34px;top:34px}#interaction{bottom:175px}#location{font-size:12px}}
