:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #0b1c32; color: #f5f6fb; }
body { margin: 0; }
main { max-width: 1200px; margin: auto; padding: 16px; }
h1 { font-size: clamp(1.4rem, 4vw, 2rem); }
p { line-height: 1.5; }
.landscape { display: block; width: 100%; height: auto; }
.calendar-scene { position: relative; }
.calendar-scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.calendar-scene .snow-cover { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.scene-doors { position:absolute; inset:0; pointer-events:none; }
.scene-door { position:absolute; width:5%; height:7%; min-height:0; padding:0; transform:translate(-50%,-50%); border:0; border-radius:3px; color:#fff0c5; background:transparent; pointer-events:auto; perspective:180px; font-size:clamp(10px,1.5vw,20px); }
.door-flap { position:absolute; inset:0; display:grid; place-items:center; border:1px solid rgb(255 223 156 / .8); border-radius:3px; background:rgb(24 49 68 / .35); text-shadow:0 1px 3px #001; transform-origin:left center; }
.scene-door.past { background:rgb(255 199 91 / .22); }
.scene-door.past .door-flap { transform:rotateY(-18deg); background:rgb(26 55 66 / .3); border-color:rgb(255 223 156 / .45); }
.scene-door:focus-visible { opacity:1 !important; outline:3px solid #ffce64; outline-offset:3px; }
.scene-door:disabled { cursor:default; pointer-events:none; }
.search-light { position:absolute; width:200px; height:200px; border-radius:50%; transform:translate(-50%,-50%); border:1px solid rgb(255 240 195 / .3); background:radial-gradient(circle, rgb(255 244 203 / .07), transparent 70%); pointer-events:none; }
@media (prefers-reduced-motion:no-preference) { .scene-door { transition:opacity .12s; } }
.snow-settings { display:flex; flex-wrap:wrap; gap:12px 20px; margin:12px 0; border:1px solid #6e859e; }
.snow-settings label { display:flex; align-items:center; gap:8px; min-height:44px; flex-wrap:wrap; }
.snow-settings input[type="checkbox"] { min-height:22px; width:22px; height:22px; }
.snow-settings input[type="range"] { padding:0; max-width:160px; }
.snow-settings select { font:inherit; min-height:44px; max-width:100%; }
button, input { font: inherit; min-height: 44px; box-sizing: border-box; padding: 8px 12px; }
button { border: 2px solid #b9d4f0; border-radius: 6px; background: #fff; color: #14223a; cursor: pointer; }
:focus-visible { outline: 3px solid #ffce64; outline-offset: 4px; }
.doors { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; }
.future li { border: 1px dashed #6e859e; border-radius: 6px; padding: 10px 12px; color: #cfdae8; background: #12253c; }
dialog { max-width: min(540px, calc(100% - 64px)); border: 2px solid #c3d7f4; border-radius: 12px; padding: 24px; }
dialog::backdrop { background: rgb(0 0 0 / .65); }
dialog.with-game { width:min(1100px,calc(100% - 32px)); max-width:1100px; max-height:94vh; padding:12px; box-sizing:border-box; }
.game-frame { display:block; width:100%; height:68vh; border:0; margin-bottom:12px; background:#0b1c32; }
dialog.with-game[open] { display:flex; flex-direction:column; height:min(960px,calc(100dvh - 24px)); max-height:calc(100dvh - 24px); margin:auto; }
dialog.with-game h2 { margin:0 0 4px; font-size:1.2rem; }
dialog.with-game > p { margin:4px 0 10px; }
dialog.with-game > button { flex-shrink:0; align-self:flex-start; }
dialog.with-game .game-frame { flex:1; min-height:0; height:auto; }
.scene-door::after { content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:max(100%,44px); height:max(100%,44px); }
.scene-doors { overflow:hidden; }
details > summary { cursor:pointer; padding:12px 0; min-height:24px; }
@media(max-width:600px) { main { padding:8px; } dialog.with-game { width:calc(100% - 12px); padding:8px; } }
[hidden] { display: none !important; }
.simulator { border: 2px dashed #ffce64; padding: 12px; margin-bottom: 16px; }
.simulator label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.launch-image{display:block;position:relative;overflow:hidden;border-radius:12px;box-shadow:0 0 24px #bde8ff55}.launch-image span{position:absolute;bottom:6%;left:50%;transform:translateX(-50%);background:#102238ee;color:white;border:2px solid #fff4bf;border-radius:30px;padding:14px 24px;text-align:center;font-weight:700}@media(prefers-reduced-motion:no-preference){.launch-image span{animation:invite 2s ease-in-out infinite}@keyframes invite{50%{box-shadow:0 0 28px #fff3a7;transform:translateX(-50%) scale(1.04)}}}
.search-page{height:100dvh;overflow:hidden;overscroll-behavior:none}.search-page main{height:100dvh;box-sizing:border-box;max-width:none;padding:8px;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:6px}.search-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.search-toolbar h1{font-size:1rem;margin:0}.search-page a{color:#fff3ba}.search-page .calendar-scene{align-self:center;justify-self:center;width:min(100%,calc((100dvh - 180px)*1.7747));touch-action:none;user-select:none;overscroll-behavior:none}.search-page footer p{margin:2px 0;font-size:.85rem}.door-menu>div{position:fixed;inset:65px 12px 50px;overflow:auto;background:#102238;padding:16px;z-index:10}.door-menu[open] summary{position:relative;z-index:11;background:#102238}.search-page .scene-door{touch-action:none}.back-calendar{display:inline-block;padding:10px;color:#ffe1a0;min-height:24px}


.launch-image,.calendar-scene{border-radius:20px;overflow:hidden;isolation:isolate}.calendar-scene .landscape{border-radius:inherit}

.lantern-handle{touch-action:none;user-select:none;background:#fff0bc;cursor:grab}.lantern-handle.held{opacity:.5;cursor:grabbing}.search-light svg{position:absolute;width:34px;height:48px;left:calc(50% - 17px);top:calc(50% - 24px);filter:drop-shadow(0 0 14px #ffe2a0)}.search-page .search-light{background:radial-gradient(circle,#fff0b126,transparent 70%)}
.search-page [data-future-section]{display:none!important}.search-page .search-toolbar [data-today]{display:none!important}
