*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:#102b31;color:#f0f4d7;font-family:system-ui,-apple-system,"Yu Gothic",sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #fff5ab;outline-offset:4px}[hidden]{display:none!important}#game{position:relative;width:100%;height:100svh;min-height:460px;overflow:hidden}#forest{position:relative;margin:auto;height:100%;width:min(100%,900px);isolation:isolate;overflow:hidden}#scene{position:absolute;inset:0;width:100%;height:100%}.vignette{position:absolute;inset:0;pointer-events:none;background:linear-gradient(#08232eaa,transparent 22%,transparent 78%,#092b36cc)}header{position:absolute;z-index:3;top:max(12px,env(safe-area-inset-top));left:18px;right:18px;display:flex;align-items:center;justify-content:space-between;height:44px}.home,#pause{display:grid;place-items:center;width:44px;height:44px;border:1px solid #d9e5c42d;background:#133b4299;border-radius:50%;font-size:22px;text-decoration:none;color:#dce8c9}#rounds{display:flex;gap:14px}#rounds i{width:14px;height:14px;border:1px solid #b6d3a0;border-radius:50%;display:block}#rounds i.done{background:#e6f4a2;box-shadow:0 0 18px #d6f891}#rounds i.now{border-width:3px;box-shadow:0 0 9px #adc87199}.clock{position:absolute;left:20px;top:75px;width:48px;height:48px;color:#d5e8c1;display:grid;place-items:center}.clock svg{position:absolute;inset:0;transform:rotate(-90deg)}.clock circle{fill:none;stroke-width:2}.clock-base{stroke:#b0d7bd22}#clock-ring{stroke:#ddebaf;stroke-dasharray:125.664;transition:stroke-dashoffset .1s linear}.clock span{font-size:13px;font-variant-numeric:tabular-nums}#cue{position:absolute;top:13%;left:50%;transform:translateX(-50%);font-size:16px;font-weight:600;letter-spacing:.18em;white-space:nowrap;color:#e6f0ce}#fireflies{position:absolute;inset:20% 7% 22%}button.firefly{position:absolute;width:102px;height:102px;border:0;background:none;padding:0;transform:translate(-50%,-50%);touch-action:manipulation;user-select:none;display:grid;place-items:center}button.firefly:disabled{cursor:default;opacity:1}.firefly svg{width:84px;height:84px;overflow:visible;transition:transform .15s}.firefly .halo{fill:var(--glow);opacity:.06;transition:opacity .08s}.firefly .tail{fill:var(--glow);opacity:.35;transition:opacity .08s}.firefly .wings{fill:#d9e7de55;stroke:#bfd3cb;stroke-width:1.1}.firefly .bug{fill:#506552;stroke:#abc3a5;stroke-width:1}.firefly .mark{fill:#e1edd6;font-size:11px;font-weight:bold}.firefly.lit .halo,.firefly.good .halo{opacity:.65;filter:blur(5px)}.firefly.lit .tail,.firefly.good .tail{opacity:1;filter:drop-shadow(0 0 12px var(--glow))}.firefly.lit svg,.firefly.good svg{transform:scale(1.15)}.firefly.wrong svg{transform:rotate(-12deg)}.firefly.wrong .tail{fill:#e98075;opacity:1}.firefly.wrong .halo{fill:#e98075;opacity:.6;filter:blur(5px)}#answer-dots{position:absolute;top:78%;left:50%;transform:translateX(-50%);display:flex;gap:12px}#answer-dots i{width:9px;height:9px;border-radius:50%;background:#acc4aa36}#answer-dots i.done{background:#e7f5b3;box-shadow:0 0 10px #d3e8a7}#witness{position:absolute;bottom:3%;right:14%;height:15%;width:120px;pointer-events:none;display:flex;align-items:flex-end;justify-content:center}#folk{height:100%;width:auto;max-width:100%;object-fit:contain;filter:drop-shadow(0 6px 7px #06191d)}.lantern{position:absolute;width:15px;height:22px;bottom:12%;left:8%;border:2px solid #998960;background:#ffe49a66;border-radius:4px;box-shadow:0 0 26px #efc96555}#mistakes{position:absolute;left:23%;bottom:8%;display:flex;gap:9px}#mistakes i{display:block;width:12px;height:17px;background:#d1e8a8;border-radius:50% 50% 40% 40%;box-shadow:0 0 10px #c7ee9b55}#mistakes i.off{background:#435e59;box-shadow:none}.veil{position:absolute;inset:0;z-index:6;display:flex;align-items:center;justify-content:center;background:#08242b9c;backdrop-filter:blur(5px);padding:24px}.title{text-align:center;max-width:450px}.title>span,.eyebrow{font-size:10px;color:#acc1ad;letter-spacing:.12em}h1{font-size:clamp(30px,5vw,50px);font-weight:500;letter-spacing:.1em;margin:15px 0 12px}h2{font-size:25px;font-weight:500;letter-spacing:.06em}p{font-size:14px;color:#d0dec4}.title button,#retry{margin-top:18px;border:1px solid #e1eeb659;border-radius:30px;background:#dcecad;color:#233e39;min-height:52px;padding:12px 32px;font-weight:650;box-shadow:0 6px 30px #010e1530}button:disabled{opacity:.5}.result-sheet{width:min(100%,420px);padding:24px 8px;text-align:center}#result-title{margin:12px 0}#score{font-size:38px;color:#f0f5bd;margin:12px 0 4px;font-variant-numeric:tabular-nums}#record{margin:0}#result .result-lights{color:#eaf5ae;letter-spacing:.55em;font-size:24px;margin:18px}#sharing{display:flex;gap:9px;justify-content:center;margin-top:20px}#sharing button,#sharing a{display:grid;align-items:center;border:1px solid #bbd7a744;background:#193d40;color:#dcead0;padding:10px 13px;border-radius:12px;font-size:12px;text-decoration:none;min-height:44px}#image-note{font-size:10px;margin:8px 0 18px;color:#a9bfad}.deskfolk{font-size:11px;color:#bcceab;text-underline-offset:4px}#game.paused #forest{filter:saturate(.6)}
@media(min-width:700px){#fireflies{inset:19% 14% 22%}.firefly svg{width:110px;height:110px}button.firefly{width:124px;height:124px}#cue{top:12%}#witness{right:20%;height:17%}}
@media(max-width:360px){button.firefly{width:84px;height:84px}.firefly svg{width:70px;height:70px}#fireflies{inset:23% 5% 23%}#cue{top:16%;font-size:14px}#witness{right:11%;width:90px}#rounds{gap:11px}.veil{padding:12px}.result-sheet{padding:10px}#score{font-size:32px}#sharing{margin-top:12px}#image-note{margin:6px 0 12px}#retry{margin-top:6px}}
@media(max-height:500px) and (min-width:600px){#game{min-height:320px}#fireflies{inset:16% 24% 14%}button.firefly{width:80px;height:80px}.firefly svg{width:68px;height:68px}#cue{top:19%;left:14%;font-size:13px}#answer-dots{top:77%}#witness{right:7%;bottom:8%;height:35%;width:100px}#mistakes{left:10%;bottom:18%}.clock{top:110px}header{left:18px;right:18px}#rounds{margin:auto}#sharing{margin-top:8px}.result-sheet{padding:5px}#score{margin:4px;font-size:28px}#result-title{margin:4px;font-size:20px}#result .result-lights{display:none}#retry{margin-top:8px;min-height:44px}#image-note{margin:4px 0 10px}}
@media(prefers-reduced-motion:reduce){.firefly svg,.firefly .tail,.firefly .halo,#clock-ring{transition:none}}
