@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#edf0e8;background:#19221e;font-synthesis:none;--lime:#c4f47b;--dim:#9ca99f;--panel:#1c2621;--line:#ffffff16}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{touch-action:manipulation}button{cursor:pointer}button{border:0;color:inherit;background:transparent}button:disabled{cursor:default;opacity:.36}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:2px solid var(--lime);outline-offset:4px}input:focus,textarea:focus{outline:1px solid var(--lime);border-color:var(--lime)}[hidden]{display:none!important}.eyebrow{font-size:.68rem;font-weight:700;letter-spacing:.16em}.wordmark{font-family:'Space Grotesk',sans-serif;font-size:2rem;letter-spacing:-.1em;font-weight:700;display:flex;align-items:center;gap:12px}.wordmark span{color:var(--lime);font-size:2.2rem;letter-spacing:0}.primary{background:var(--lime);color:#18251a;border-radius:9px;padding:13px 20px;font-weight:700;font-size:.9rem;transition:background .2s,transform .2s}.primary:hover{background:#d9ffa8;transform:translateY(-1px)}.full{width:100%}.glass{background:#1b2923e8;border:1px solid #ffffff20;box-shadow:0 8px 32px #00000012;backdrop-filter:blur(18px);border-radius:12px}.icon-btn{width:38px;height:38px;font-size:1.2rem;border-radius:50%;display:grid;place-items:center}input,textarea{width:100%;border-radius:8px;border:1px solid #ffffff26;background:#111c17;color:#f5f6ef;padding:12px 13px;font-size:.9rem;resize:vertical}label{display:block;font-size:.85rem;color:#c9d3cb;margin:14px 0 8px}input::placeholder,textarea::placeholder{color:#788a7e}.muted{color:var(--dim)}.small{font-size:.75rem;line-height:1.6}.error{color:#ffc5b8;font-size:.9rem;min-height:22px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Entrance */
.entrance{min-height:100dvh;position:relative;overflow:hidden;padding:35px 5vw;background:linear-gradient(120deg,#172b28 10%,#35594d 70%,#627b58);display:flex;flex-direction:column}.entrance>.wordmark{position:relative;z-index:2}.entry-copy{position:relative;z-index:2;margin:auto 0;max-width:580px;padding:50px 0}.entry-copy h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(3rem,6.6vw,6.2rem);font-weight:500;line-height:1.01;letter-spacing:-.065em;margin:25px 0}.entry-copy>p:not(.eyebrow){color:#d4dfd5;font-size:1.1rem;line-height:1.7}.entry-copy form{margin-top:36px;max-width:430px}.password-field{display:flex;gap:8px}.password-field input{background:#162b25b3}.entrance footer{position:relative;z-index:2;font-size:.64rem;letter-spacing:.15em;color:#bdcfbf;display:flex;justify-content:space-between;gap:20px}.login-landscape{position:absolute;inset:0;overflow:hidden}.sun{position:absolute;width:220px;height:220px;background:#d5efac;border-radius:50%;right:18%;top:18%;box-shadow:0 0 120px #ceef9b24}.hill{position:absolute;width:110%;height:65%;border-radius:50%;bottom:-35%;right:-50%;background:#21382d;transform:rotate(-15deg)}.hill-two{bottom:-23%;right:-55%;background:#172c22}.pergola-silhouette{position:absolute;right:12%;bottom:20%;font-size:5vw;letter-spacing:-.23em;transform:skewY(-8deg);color:#14261d;line-height:2;border-bottom:9px solid #14261d}.pergola-silhouette:after{content:'';display:block;width:94%;height:120px;border-left:14px solid #14261d;border-right:14px solid #14261d;margin-top:-45px}
/* Scene */
#game-shell{display:grid;grid-template-columns:minmax(0,1fr) 326px;height:100dvh;overflow:hidden}#world{position:relative;min-width:0;overflow:hidden;background:#a6cbd3}#scene{display:block;width:100%;height:100%;outline:none;touch-action:none}.game-header{position:absolute;left:30px;right:25px;top:23px;display:flex;align-items:center;gap:12px;z-index:2}.game-header .wordmark{color:#f8fff3;text-shadow:0 2px 15px #17332266}.place{font-size:.62rem;font-weight:700;letter-spacing:.13em;margin-left:auto;color:#21352b}.place i{display:inline-block;width:3px;height:3px;background:#2d4435;border-radius:50%;vertical-align:middle;margin:0 9px}#music-toggle{display:none;padding:10px 14px}.scene-caption{position:absolute;top:112px;left:34px;color:#22372b;pointer-events:none}.scene-caption h1{font-family:'Space Grotesk',sans-serif;font-size:clamp(2rem,3.5vw,3.7rem);font-weight:500;letter-spacing:-.065em;line-height:1.05;margin:15px 0 13px}.scene-caption p{font-size:.85rem;margin:0;color:#395242}.locations{position:absolute;top:103px;right:24px;padding:5px;display:flex;flex-direction:column;gap:2px}.locations button{padding:9px 16px;text-align:left;font-size:.8rem;border-radius:7px;color:#bdcec1}.locations button.active{color:#eaf6df;background:#ffffff13}.locations button:hover{background:#ffffff20}.bottom-hud{position:absolute;bottom:55px;left:28px;right:25px;display:flex;gap:14px;align-items:flex-end;pointer-events:none}.bottom-hud>*{pointer-events:auto}.mission{padding:19px 21px;width:360px;max-width:calc(100% - 160px)}.mission-heading{display:flex;justify-content:space-between;align-items:center;color:var(--lime)}#step-number{font-size:.7rem;color:#a3b8a9}.mission h2{font-size:1.15rem;font-weight:500;letter-spacing:-.02em;margin:10px 0 7px}.mission p{font-size:.8rem;line-height:1.55;color:#bdcbbf;margin:0}.progress{height:3px;background:#ffffff13;border-radius:3px;margin-top:15px;overflow:hidden}.progress i{display:block;width:3%;height:100%;background:var(--lime);transition:width .6s}.puzzle-controls{display:flex;gap:6px;flex-wrap:wrap;margin-top:12px}.puzzle-controls:empty{display:none}.puzzle-controls button{border:1px solid #ffffff2b;padding:8px 10px;border-radius:6px;font-size:.75rem;background:#ffffff08}.puzzle-controls button:hover{background:#c4f47b24}.inventory{padding:15px;margin-left:auto;min-width:156px}.inventory>.eyebrow{font-size:.6rem;color:#b2c2b4}.inventory>div{display:flex;gap:9px;margin-top:10px}.inventory button{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#ffffff09;border:1px solid #ffffff14;border-radius:7px;width:56px;height:61px;font-size:1.7rem;line-height:1}.inventory small{font-size:.6rem;margin-top:8px}.inventory button.acquired{color:var(--lime);background:#a4e65b13;border-color:#a4e65b44}.inventory button.selected{box-shadow:0 0 0 2px var(--lime)}.world-footer{position:absolute;left:30px;right:25px;bottom:19px;display:flex;justify-content:space-between;gap:10px;align-items:center;color:#e8f0e3;font-size:.57rem;letter-spacing:.06em;text-shadow:0 1px 4px #000}.world-footer a{font-size:.7rem}.interaction{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#17271fea;border:1px solid #c4f47b70;border-radius:10px;padding:12px;display:flex;align-items:center;gap:12px;font-size:.85rem;box-shadow:0 8px 40px #0005}#loading{position:absolute;inset:0;display:grid;place-items:center;background:#1c2d24;color:var(--lime);z-index:3;font-size:1rem}#touch-move{display:none}
/* Music + community */
#sidebar{background:#1b2520;border-left:1px solid #ffffff10;padding:27px 23px 0;display:flex;flex-direction:column;min-height:0;z-index:4}.sidebar-heading .eyebrow{color:#b1c6b4;font-size:.59rem}.sidebar-heading h2{font-family:'Space Grotesk',sans-serif;font-size:1.4rem;font-weight:500;letter-spacing:-.055em;margin:10px 0 25px}.sidebar-heading h2 span{color:var(--lime);margin-left:20px}.sidebar-heading{display:flex;align-items:flex-start;justify-content:space-between}#close-music{display:none}.sidebar-tabs{display:flex;border-bottom:1px solid var(--line);margin-bottom:14px}.sidebar-tabs button{padding:0 7px 13px;font-size:.85rem;flex:1;color:#93a697;border-bottom:2px solid transparent}.sidebar-tabs button.active{border-color:var(--lime);color:#e7efdf}.sidebar-tabs button span{font-size:.63rem;padding:2px 6px;background:#ffffff10;border-radius:5px;margin-left:6px}.aside-intro{font-size:.85rem;line-height:1.6;color:#b1c0b3;margin:5px 0 17px}#music-panel,#notes-panel{overflow-y:auto;flex:1;scrollbar-width:thin;scrollbar-color:#445d49 transparent;padding-bottom:15px}#track-form label{font-size:.7rem;margin-top:0;color:#94aa99}#track-form input{font-size:.8rem;padding:11px;margin-bottom:8px}#track-form .primary{font-size:.78rem;padding:12px 8px}.playlist{margin-top:22px}.empty-state{border:1px dashed #ffffff20;border-radius:9px;padding:24px 17px;text-align:center;color:#a4b5a7;font-size:.8rem;line-height:1.7}.empty-state .disc{display:block;font-size:2.5rem;color:#627c66;margin-bottom:10px}.track{display:flex;align-items:center;border-bottom:1px solid var(--line);padding:12px 0;gap:10px}.track-play{display:flex;gap:11px;align-items:center;text-align:left;flex:1;min-width:0;padding:0}.track-index{font-size:.65rem;color:#789680;min-width:17px}.track-label{font-size:.8rem;line-height:1.4;overflow-wrap:anywhere}.track.playing .track-label{color:var(--lime)}.track a{font-size:.8rem;color:#94aa99;padding:8px}.sidebar-footer{border-top:1px solid var(--line);display:flex;gap:13px;align-items:center;padding:19px 0;flex-shrink:0}.sidebar-footer .mini-mark{color:var(--lime);font-size:2rem}.sidebar-footer p{font-size:.67rem;line-height:1.6;color:#8da291;margin:0}.sidebar-footer button{margin-left:auto;color:#a7b5a9}#player-wrap{margin-top:18px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#101b15}#youtube-player{aspect-ratio:16/9;width:100%;display:block}.player-controls{display:flex;align-items:center;gap:8px;padding:9px}.player-controls span{font-size:.65rem;flex:1;text-align:center}.player-controls button{font-size:1.1rem}.paper-note{background:#e5d6a5;color:#354030;transform:rotate(-1deg);padding:20px 17px;margin:24px 3px;position:relative;box-shadow:0 5px 8px #0002;overflow-wrap:anywhere}.paper-note:before{content:'';position:absolute;width:54px;height:16px;background:#ddd7b8b3;left:calc(50% - 27px);top:-8px;transform:rotate(5deg)}.paper-note.pink{background:#e5bdc7;transform:rotate(1deg)}.paper-note.mint{background:#c7dfbc}.paper-note p{white-space:pre-wrap;font-size:.95rem;line-height:1.5;margin:0 0 14px}.paper-note footer{display:flex;justify-content:space-between;gap:10px;font-size:.73rem}.paper-note button{text-decoration:underline;font-size:.7rem}
/* Dialogs */
dialog{border:1px solid #ffffff25;color:#eaf1e5;background:#1d2c23;border-radius:18px;width:min(470px,calc(100vw - 30px));padding:32px;box-shadow:0 24px 100px #0007;max-height:90dvh;overflow:auto}dialog::backdrop{background:#101c16b0;backdrop-filter:blur(8px)}dialog h2{font-family:'Space Grotesk',sans-serif;font-size:2.2rem;line-height:1.1;letter-spacing:-.055em;font-weight:500;margin:18px 0}dialog p,dialog li{font-size:.9rem;line-height:1.7;color:#b9cabb}.dialog-close{position:absolute;right:13px;top:10px;font-size:1.7rem;color:#afc6b5}dialog fieldset{display:flex;gap:10px;border:0;padding:0;margin:20px 0}dialog legend{font-size:.8rem;color:#bacbbe}dialog fieldset label{font-size:.75rem;display:flex;align-items:center;gap:5px;margin:12px 0}dialog fieldset input{width:auto;accent-color:var(--lime)}.text-button{padding:15px 0;color:var(--lime);font-size:.8rem}.reveal-star{font-size:4rem;color:var(--lime);margin-top:20px}#reveal-dialog{text-align:center}#reveal-dialog h2{font-size:3.1rem}#reveal-date{color:var(--lime);font-size:1.25rem;line-height:1.5;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}#toast{position:fixed;left:50%;top:25px;transform:translateX(-50%);background:#172b21;border:1px solid #b6ea7366;padding:14px 22px;border-radius:10px;box-shadow:0 8px 30px #0005;z-index:30;max-width:calc(100vw - 30px);font-size:.9rem}
@media(min-width:1600px){#game-shell{grid-template-columns:minmax(0,1fr) 360px}.scene-caption{top:135px}.mission{width:400px}}@media(max-width:1100px){#game-shell{grid-template-columns:minmax(0,1fr) 290px}#sidebar{padding:23px 18px 0}.place{display:none}.game-header .wordmark{margin-right:auto}.scene-caption{top:100px;left:25px}.scene-caption h1{font-size:2.5rem}.scene-caption p{max-width:220px;line-height:1.5}.locations{top:96px;right:18px}.bottom-hud{left:18px;right:18px;gap:9px}.mission{padding:16px;max-width:calc(100% - 125px)}.inventory{min-width:118px;padding:12px}.inventory button{width:43px}.inventory>div{gap:6px}.world-footer span{max-width:245px;line-height:1.7}}@media(max-width:800px){#game-shell{display:block}#world{height:100dvh}#sidebar{position:fixed;right:0;top:0;bottom:0;width:min(360px,100%);transform:translateX(100%);transition:transform .25s;box-shadow:-20px 0 60px #0005}body.music-open #sidebar{transform:translateX(0)}#music-toggle,#close-music{display:block}.game-header{left:20px;right:18px;top:17px}.game-header .wordmark{font-size:1.65rem;gap:7px}.game-header .wordmark span{font-size:1.9rem}.scene-caption{top:87px;left:22px}.scene-caption .eyebrow{font-size:.54rem}.scene-caption h1{font-size:2.2rem}.scene-caption p{font-size:.75rem;width:180px}.locations{top:84px;right:17px}.locations button{font-size:.7rem;padding:8px 11px}.bottom-hud{bottom:46px}.mission{width:350px}.mission .eyebrow{font-size:.57rem}.mission h2{font-size:1rem}.mission p{font-size:.72rem}.world-footer{left:18px;right:18px;bottom:12px}.world-footer span{font-size:.48rem;max-width:220px}#touch-move{position:absolute;right:20px;bottom:240px;display:grid;grid-template-columns:repeat(3,30px);gap:3px;opacity:.85}#touch-move button{background:#1c3028c9;border-radius:6px;height:30px;font-size:1rem}#touch-move button:first-child{grid-column:2}#touch-move button:nth-child(2){grid-column:1}.sun{width:150px;height:150px;right:-30px;top:18%}.entry-copy h1{font-size:3.7rem}.entrance footer{flex-direction:column;font-size:.55rem}.pergola-silhouette{right:-7%;bottom:10%;font-size:10vw;opacity:.4}.entry-copy{padding:65px 0}.scene-caption{transition:opacity .2s}body.focused .scene-caption{opacity:0;pointer-events:none}}@media(max-width:420px){.inventory{min-width:100px;padding:10px}.inventory button{width:36px}.inventory small{font-size:.52rem}.mission{max-width:calc(100% - 108px)}.puzzle-controls button{font-size:.65rem;padding:7px}.bottom-hud{left:12px;right:12px}.mission{padding:13px}.scene-caption h1{font-size:1.9rem}.game-header{gap:7px}.icon-btn{width:31px;height:31px}#music-toggle{font-size:.72rem;padding:9px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* First-person illustrated world */
.walk-controls{position:absolute;left:28px;bottom:285px;display:flex;gap:8px;flex-wrap:wrap;max-width:360px}.walk-controls button{padding:10px 14px;font-size:.75rem}.walk-controls button.active{background:#eacb6f;color:#25372d}.crosshair{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);color:#fff9;font:20px monospace;pointer-events:none;text-shadow:0 1px 3px #000}.interaction{top:59%;font-size:.75rem;padding:8px 12px;white-space:nowrap}.interaction .primary{font-size:.7rem;padding:8px 12px}.seated .bottom-hud,.seated .scene-caption,.seated .crosshair{display:none}.seated .walk-controls{bottom:65px}.scene-caption{background:#f9e7a9e8;padding:18px 22px;border:2px solid #283c2f;border-radius:3px;box-shadow:6px 6px 0 #283c2f24;max-width:360px}.scene-caption h1{font-size:clamp(2rem,3vw,3.1rem)}.scene-caption p{line-height:1.5;max-width:270px}.scene-caption .eyebrow{font-size:.6rem}.glass{border:1.5px solid #273c32}.game-header .wordmark{text-shadow:2px 2px 0 #283d34}.playing .primary{background:#edce71}.playing{--lime:#edce71}body.focused .scene-caption{opacity:0;pointer-events:none}.locations button.active{color:#f9df8b}.scene-caption{pointer-events:none}
@media(max-width:800px){.walk-controls{left:17px;bottom:285px;max-width:210px;gap:5px}.walk-controls button{font-size:.66rem;padding:8px 11px}.scene-caption{padding:14px;max-width:225px}.scene-caption h1{font-size:1.85rem}.scene-caption p{width:190px}.scene-caption .eyebrow{font-size:.48rem}.seated #touch-move{display:none}.interaction{top:50%;max-width:90%;white-space:normal}.seated .walk-controls{bottom:60px}}
/* Keep interactive copy readable at every viewport size. */
.mission p,.puzzle-controls button,.walk-controls button,.locations button,.aside-intro,.track-label,#track-form input,#track-form label,#track-form .primary,.player-controls span,.paper-note footer,.paper-note button,.inventory small,.text-button{font-size:.875rem}.inventory button{width:64px;height:70px}.inventory{min-width:170px}.mission{max-width:calc(100% - 185px)}.world-footer span{background:#20372bb3;border-radius:4px;padding:4px 6px}.world-footer a{font-size:.8rem}.scene-caption p{font-size:.875rem}
@media(max-width:1100px){.inventory{min-width:140px}.inventory button{width:51px}.inventory small{font-size:.7rem}.mission{max-width:calc(100% - 150px)}}
@media(max-width:800px){.mission{max-width:100%;width:calc(100% - 83px)}.inventory{min-width:70px;padding:8px;width:70px}.inventory>.eyebrow{font-size:.48rem}.inventory>div{flex-direction:column;gap:5px}.inventory button{height:48px;width:52px;font-size:1.4rem}.inventory small{font-size:.58rem;margin-top:5px}.mission h2{font-size:1rem}.mission p,.puzzle-controls button,.walk-controls button,.locations button{font-size:.875rem}.puzzle-controls{gap:4px}.puzzle-controls button{padding:6px 7px}.walk-controls{bottom:300px}.locations button{padding:8px}.scene-caption{max-width:215px}.scene-caption p{width:auto;font-size:.8rem}.world-footer span{font-size:.5rem}.world-footer a{font-size:.7rem}.bottom-hud{gap:8px}.interaction .primary,.interaction{font-size:.875rem}}
