:root{color-scheme:dark;--night:#102535;--ink:#f4efe2;--muted:#a9bdc6;--gold:#e4bd7b;--green:#355447;--paper:#fbf4e7;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px}
*{box-sizing:border-box}html{min-width:320px;background:var(--night);scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--ink);background:radial-gradient(ellipse at 50% 30%,#213e4d 0,transparent 52%),linear-gradient(180deg,#0d2030 0%,#173543 74%,#102b38 100%);overflow-x:hidden}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:6px;border-radius:12px}a{color:inherit}button svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.night-sky{position:absolute;inset:0 0 auto;height:700px;overflow:hidden;pointer-events:none}.moon{position:absolute;top:104px;right:max(8%,calc((100vw - 1200px)/2));width:71px;height:71px;border-radius:50%;background:#f8e9be;box-shadow:0 0 34px 14px #f7df9220,0 0 120px 55px #ffdfa60c;opacity:.92}.moon:after{content:"";position:absolute;inset:-9px 13px 10px -8px;background:#102635;border-radius:50%}.stars{position:absolute;inset:0;background-image:radial-gradient(1.2px 1.2px at 12% 16%,#f7e9c2 80%,transparent),radial-gradient(1px 1px at 21% 38%,#e0e8e4 80%,transparent),radial-gradient(1.5px 1.5px at 77% 13%,#f6dfb1 80%,transparent),radial-gradient(1px 1px at 63% 28%,#e4f0e9 80%,transparent),radial-gradient(1px 1px at 90% 51%,#e4f0e9 80%,transparent),radial-gradient(1px 1px at 42% 13%,#e4f0e9 80%,transparent),radial-gradient(1px 1px at 6% 48%,#e4f0e9 80%,transparent),radial-gradient(1.4px 1.4px at 34% 30%,#f6dfb1 80%,transparent),radial-gradient(1.4px 1.4px at 82% 34%,#f6dfb1 80%,transparent),radial-gradient(1px 1px at 55% 8%,#e4f0e9 80%,transparent)}.icon-button{width:42px;height:42px;border:1px solid #d5e7ee2c;border-radius:50%;background:#162e3e55;display:grid;place-items:center;color:#e3e5db;transition:background .2s,border-color .2s}.icon-button:hover{background:#ffffff12;border-color:#e4bd7b80}.introduction{position:relative;z-index:1;text-align:center;padding:35px 20px 24px}.eyebrow{font-size:.875rem;letter-spacing:.24em;text-transform:uppercase;color:#b9c9cc;margin:0 0 19px;font-weight:450}h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.5rem,4.2vw,4.15rem);font-weight:400;line-height:1.13;letter-spacing:-.035em;margin:0;color:#f8f2e3}h1 em{font-weight:400;color:#e9c78e;letter-spacing:-.025em}.title-flourish{display:flex;align-items:center;justify-content:center;gap:17px;margin:25px auto 0;color:#ddc191}.title-flourish span{width:60px;height:1px;background:linear-gradient(90deg,transparent,#c3ab7880)}.title-flourish span:last-child{transform:rotate(180deg)}.title-flourish svg{width:13px;height:13px}.village-wrap{position:relative;max-width:1392px;margin:0 auto;padding:0 35px 15px}.distant-landscape{position:absolute;top:20px;left:-5%;width:110%;height:200px;opacity:.5;pointer-events:none}.village{position:relative;z-index:1;max-width:1280px;margin:auto}.street{position:relative;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-items:end;padding:0 12px 14px;isolation:isolate;gap:6px}.street:last-child{grid-template-columns:repeat(7,minmax(0,1fr));width:87.5%;margin-left:auto;margin-right:auto}.street:before{content:"";position:absolute;z-index:-1;bottom:3px;left:-3%;width:106%;height:50px;border-radius:50% 50% 46% 54%;background:linear-gradient(180deg,#b3c9ce1b,#6b9ba207);border-top:1px solid #c9dedb1b;transform:rotate(-.7deg);pointer-events:none}.street:nth-child(2):before{transform:rotate(.8deg);left:-2%;height:62px;background:linear-gradient(180deg,#b3c9ce1f,#6b9ba209)}.street:nth-child(3):before{transform:rotate(-.3deg);height:57px}.street:nth-child(4):before{height:64px;background:linear-gradient(180deg,#b3c9ce25,#6b9ba209)}.house{position:relative;border:0;background:transparent;padding:0 1px;margin:0;display:block;width:100%;aspect-ratio:180/230;transition:transform .28s,filter .28s;filter:drop-shadow(0 8px 8px #06141c35)}.house>svg{width:100%;height:100%;display:block;overflow:visible;stroke:none}.house:not(:disabled):hover{transform:translateY(-7px);filter:drop-shadow(0 5px 17px #ecc16d30)}.house:not(:disabled):active{transform:translateY(-2px) scale(.97)}.house:focus-visible{outline-offset:1px}.house .warm-window{transition:filter .25s,fill .25s}.house:not(:disabled):hover .warm-window{fill:#fff0b5;filter:drop-shadow(0 0 3px #ffd176)}.house .door-leaf{transform-box:fill-box;transform-origin:left center;transition:transform .25s}.house:not(:disabled):hover .door-leaf{transform:perspective(220px) rotateY(-12deg)}.house.opened:after{content:"✧";color:#eac67e;position:absolute;right:13%;top:12%;font-size:20px;text-shadow:0 0 14px #dca35f80}.house.opening{animation:door-welcome .45s ease both}.village-bottom{display:flex;align-items:center;justify-content:center;gap:20px;color:#c3ab79;opacity:.65;padding:27px 0 10px}.tiny-star:nth-child(2){font-size:10px}.snowfall{position:fixed;inset:0;pointer-events:none;z-index:4;overflow:hidden}.snowflake{position:absolute;top:-16px;border-radius:50%;background:#f7f5ee;opacity:0;animation:snow-fall linear infinite;box-shadow:0 0 2px #e8f0e560}.memory-dialog{padding:0;border:0;color:#344a41;background:var(--paper);box-shadow:0 28px 100px #020d16a1;color-scheme:light}.memory-dialog{width:min(1040px,calc(100vw - 48px));max-width:none;max-height:calc(100dvh - 44px);border-radius:16px;overflow:auto}.memory-dialog[open]{animation:memory-appear .38s cubic-bezier(.16,1,.3,1)}dialog::backdrop{background:#061421d9;backdrop-filter:blur(8px)}.memory-card{position:relative;display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.85fr);min-height:530px;max-height:none}.modal-close{position:absolute;z-index:3;top:14px;right:14px;background:#fff9edeb;color:#395447;border:1px solid #b5b39a6b;width:39px;height:39px}.modal-close:hover{background:#fffaf0;border-color:#56705c}.photo-panel{display:flex;align-items:center;justify-content:center;min-height:0;padding:24px 12px 24px 24px;background:#f4ead8;border-radius:16px 0 0 16px}.photo-mount{width:100%;height:100%;display:flex;align-items:center;justify-content:center;min-height:0;overflow:hidden}.photo-mount img{display:block;max-height:calc(100dvh - 100px);height:auto;max-width:100%;width:auto;object-fit:contain;border-radius:3px;box-shadow:0 4px 19px #3f36251a}.photo-mount.trim-edge img{clip-path:inset(0 2px 0 0)}.memory-copy{display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:64px 32px 38px;position:relative}.sprig{width:105px;height:67px;margin:0 0 27px;flex-shrink:0}.memory-caption{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.45rem,2.25vw,1.9rem);line-height:1.43;letter-spacing:-.015em;margin:0;overflow-wrap:break-word;text-wrap:pretty}.memory-divider{color:#bc9a5e;font-size:17px;margin:26px 0 29px}.music-player{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:40px}.music-control{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #70836f55;border-radius:50%;color:#526a56;background:transparent}.music-control:hover{background:#e8e6d7}.music-control svg{width:19px;height:19px}.track-info{display:flex;align-items:flex-start;text-align:left;flex-direction:column;gap:4px;max-width:190px}.track-info span:first-child{font-size:.875rem;line-height:1.3;color:#526455}.track-info span:last-child{font-size:.875rem;color:#7a8171;line-height:1.25}.equalizer{display:flex;height:17px;gap:3px;align-items:center;color:#9c7946;margin-left:4px}.equalizer i{display:block;width:2px;background:currentColor;height:9px;border-radius:2px;animation:equalize 1s ease-in-out infinite alternate}.equalizer i:nth-child(2){height:16px;animation-delay:-.4s}.equalizer i:nth-child(3){height:11px;animation-delay:-.7s}.equalizer i:nth-child(4){height:6px;animation-delay:-.2s}body:not(.music-playing) .equalizer i{animation-play-state:paused;height:3px}.audio-status{font-size:.875rem;line-height:1.45;color:#8c5947;margin:15px 0 0}.no-script{text-align:center;padding:30px;font-size:1rem}
@keyframes snow-fall{0%{transform:translate3d(0,-20px,0);opacity:0}10%{opacity:var(--opacity,.35)}90%{opacity:var(--opacity,.35)}100%{transform:translate3d(var(--drift,60px),105vh,0);opacity:0}}@keyframes memory-appear{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes equalize{from{transform:scaleY(.5)}to{transform:scaleY(1.1)}}@keyframes door-welcome{50%{filter:drop-shadow(0 0 20px #f2d18e70);transform:translateY(-4px)}}
@media(min-width:1500px){.street{gap:12px;padding-bottom:18px}.introduction{padding-top:42px}.village-wrap{max-width:1450px}.village{max-width:1340px}}
@media(max-width:1000px){.village-wrap{padding:0 20px 15px}.street{gap:2px;padding:0 3px 20px}.introduction{padding-top:32px}.moon{right:7%;width:56px;height:56px;top:115px}.memory-dialog{width:calc(100vw - 32px)}.memory-card{grid-template-columns:minmax(0,1.1fr) minmax(260px,.9fr);min-height:470px}.memory-copy{padding:60px 23px 30px}.sprig{margin-bottom:20px}.memory-caption{font-size:1.55rem}}
@media(max-width:760px){.icon-button{width:38px;height:38px}.eyebrow{font-size:.75rem;letter-spacing:.2em;margin-bottom:16px}.introduction{padding:35px 12px 15px}h1{font-size:clamp(2.1rem,7.2vw,3rem);line-height:1.17}.moon{top:150px;right:4%;width:36px;height:36px;opacity:.7}.moon:after{inset:-5px 8px 5px -5px}.title-flourish{margin-top:22px;gap:14px}.title-flourish span{width:42px}.street{grid-template-columns:repeat(4,minmax(0,1fr));row-gap:0;padding-bottom:4px;gap:0 4px}.street:last-child{grid-template-columns:repeat(8,minmax(0,1fr));width:100%}.street:last-child>.house{grid-column:span 2}.street:last-child>.house:nth-child(5){grid-column:2 / span 2}.village-wrap{padding:0 13px 10px}.distant-landscape{top:0;height:150px}.street:before{height:46px;bottom:0}.house{padding:0 2px}.village-bottom{padding:25px 0 15px}.house.opened:after{font-size:18px}.memory-dialog{width:min(530px,calc(100vw - 24px));max-height:calc(100dvh - 24px);border-radius:13px}.memory-card{display:flex;flex-direction:column;min-height:0;max-height:none}.photo-panel{padding:16px 16px 0;border-radius:13px 13px 0 0;background:var(--paper)}.photo-mount{max-height:57dvh}.photo-mount img{max-height:57dvh;max-width:100%;box-shadow:none}.memory-copy{padding:18px 26px 25px}.sprig{width:71px;height:40px;margin-bottom:8px}.memory-caption{font-size:1.35rem;line-height:1.4}.memory-divider{margin:15px 0 17px;font-size:13px}.music-player{min-height:34px}.music-control{width:32px;height:32px}.music-control svg{width:17px;height:17px}.track-info{max-width:240px;gap:2px}.track-info span:first-child{font-size:.875rem}.track-info span:last-child{font-size:.875rem}.modal-close{top:9px;right:9px;box-shadow:0 2px 12px #20352c15}.audio-status{margin:12px 0 0}}
@media(max-width:380px){.village-wrap{padding:0 7px}.introduction{padding-top:29px}h1{font-size:2rem}.street{gap:0}.memory-caption{font-size:1.2rem}.memory-copy{padding-left:22px;padding-right:22px}.photo-mount,.photo-mount img{max-height:52dvh}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important;transition:none!important}.snowfall{display:none}}

.house.is-today{filter:drop-shadow(0 3px 17px #e3b66b28)}.today-label{position:absolute;left:50%;bottom:-12px;transform:translateX(-50%);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:.875rem;line-height:1;padding:4px 10px 5px;letter-spacing:.015em;color:#eed39d;background:#23414a;border:1px solid #d5b16b55;border-radius:20px;white-space:nowrap;box-shadow:0 2px 6px #0e22303b}.house.is-today:hover{filter:drop-shadow(0 4px 20px #ecc16d40)}

.house:disabled{cursor:default;opacity:.68}
