:root{color-scheme:dark;--ivory:#fff0cd;--gold:#f7d48a;--muted:#e5d9d1;--serif:'Songti SC','STSong','Noto Serif CJK SC',Georgia,serif;--sans:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#39364b}body{font-family:var(--sans);color:var(--ivory)}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid var(--gold);outline-offset:5px}a{color:inherit;text-decoration:none}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}button{border:0;background:none}button:hover,a:hover{color:#fff9e9}button:disabled{opacity:.45;cursor:wait}.game{position:relative;width:100%;height:100%;height:100dvh;isolation:isolate;overflow:hidden}.backdrop{position:absolute;inset:-20px;background:url('art/wind-archer/valley.webp') center/cover no-repeat;filter:blur(16px) saturate(.5) brightness(.65);transform:scale(1.04)}.world{position:absolute;inset:auto;left:50%;top:50%;width:min(100%,177.777778dvh);height:auto;aspect-ratio:16/9;transform:translate(-50%,-50%);background:#595665;isolation:isolate}.world::before{content:'';position:absolute;inset:0;z-index:-1;background:url('art/wind-archer/valley.webp') center/cover no-repeat;filter:saturate(.5) contrast(.68) brightness(.86) blur(1.8px);pointer-events:none}canvas{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair;outline:none}.edge-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#29243618,transparent 24%,transparent 68%,#19172768)}.brand-area{position:absolute;top:3%;left:3.3%;pointer-events:none;text-shadow:0 2px 18px #28233665}.home-link{display:inline-flex;align-items:center;gap:12px;font-size:clamp(12px,1.1vw,18px);letter-spacing:.08em;pointer-events:auto}.home-link svg{width:22px;height:22px;stroke-width:2}.brand-area h1{font:400 clamp(30px,3.15vw,54px)/1.2 var(--serif);letter-spacing:.12em;margin:22px 0 6px}.flourish{display:inline-block;font-size:.7em;transform:rotate(-20deg);margin-left:6px;color:var(--gold)}.wordmark{display:flex;align-items:center;gap:12px;font-family:Georgia,serif;font-size:clamp(9px,.8vw,14px);letter-spacing:.4em;margin:0}.wordmark span{width:26px;height:1px;background:#f6dfad8c}.conditions{position:absolute;top:3.2%;left:50%;transform:translateX(-50%);text-align:center;white-space:nowrap}.chapter{display:flex;align-items:center;justify-content:center;gap:20px;padding:11px 26px;border:1px solid #eee1da6b;border-radius:30px;background:#36334b3d;box-shadow:inset 0 0 2px #fff4;font:400 clamp(13px,1.2vw,20px)/1.25 var(--serif);letter-spacing:.12em}.chapter i,.best i{width:1px;height:17px;background:#efdfc267}.wind{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:18px;font:italic clamp(20px,1.9vw,32px) Georgia,serif;color:var(--gold);text-shadow:0 2px 12px #2e2448}.wind svg{width:60px;height:24px;stroke-width:2}.wind small{font-size:.72em}.score-area{position:absolute;top:3.5%;right:2.5%;display:flex;gap:38px;align-items:flex-start}.score{text-align:center;min-width:80px}.score>span{font:clamp(13px,1.25vw,20px) var(--serif);color:var(--muted)}.score strong{display:block;font:400 clamp(38px,3.6vw,62px)/1.1 Georgia,serif;color:var(--gold);font-variant-numeric:tabular-nums}.circle-button{width:58px;height:58px;border-radius:50%;border:1px solid #f2e7d17a;background:#50475b42;display:grid;place-items:center;transition:background .2s}.circle-button:hover{background:#76637670}.circle-button svg{width:25px;height:25px;stroke-width:2.5}.game-footer{position:absolute;bottom:4.5%;left:3.4%;right:3%;display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:25px;align-items:end;pointer-events:none;text-shadow:0 2px 10px #171420}.quiver #arrow-icons{display:flex;gap:5px;margin-bottom:12px}.arrow-icon{width:21px;height:26px;fill:var(--gold);filter:drop-shadow(0 0 4px #fad26b77)}.arrow-icon.spent{opacity:.23;filter:none}.quiver p{display:flex;align-items:baseline;gap:10px;margin:0;font-size:clamp(11px,1.1vw,18px);letter-spacing:.05em}.quiver strong{margin-left:10px;font:400 clamp(25px,2.1vw,36px) Georgia,serif}.quiver p>span{font:clamp(17px,1.6vw,27px) Georgia,serif}.aim-controls{text-align:center;max-width:380px;width:100%;justify-self:center}.aim-controls>p:first-child{font:clamp(14px,1.35vw,22px) var(--serif);margin:0 0 11px;color:var(--gold)}.aim-controls>p:first-child span{font:italic 1.15em Georgia,serif;margin-left:8px}.aim-controls small{font:italic 1em Georgia,serif;margin-left:2px}.power-track{height:12px;border:1px solid #f3e6cf77;border-radius:20px;background:#322c3e55;box-shadow:0 2px 8px #231f3c33;overflow:hidden}.power-track>div{height:100%;width:0;background:linear-gradient(90deg,#e8b96c,#ffe6a7);box-shadow:0 0 16px #eabe81;border-radius:20px}.instruction{font-size:clamp(11px,1.05vw,17px);letter-spacing:.1em;color:#f5e9d9;margin:14px -30px 0}.records-area{justify-self:end;pointer-events:auto}.best{display:flex;align-items:center;gap:13px;font-size:clamp(12px,1.1vw,18px);white-space:nowrap}.best>svg{width:27px;height:27px;color:var(--gold)}.best b{font:400 1.4em Georgia,serif;margin-left:5px}.best button{display:flex;align-items:center;gap:8px;padding:7px 0;color:#f4dfb0;font-size:inherit}.best button svg{width:15px;height:15px}.utilities{display:flex;justify-content:flex-end;gap:12px;margin-top:15px;font-size:11px;color:#e2d5c4}.utilities button{font-size:11px;padding:3px 0}.feedback{position:absolute;top:28%;left:50%;transform:translateX(-50%) translateY(8px);text-align:center;pointer-events:none;opacity:0;transition:opacity .2s,transform .25s;color:#ffebba;font:400 clamp(24px,2.8vw,46px) var(--serif);text-shadow:0 2px 22px #45334c,0 2px 4px #292135;white-space:nowrap}.feedback.show{opacity:1;transform:translateX(-50%) translateY(0)}.feedback small{display:block;font:13px var(--sans);letter-spacing:.12em;margin-top:9px;color:#fff3dc}.loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#383247a8;backdrop-filter:blur(10px);font:30px var(--serif);letter-spacing:.14em;z-index:10}.loading span{margin-top:18px;font:14px var(--sans);letter-spacing:.05em}.loading button{margin-top:24px;border:1px solid #e7c991;padding:10px 20px;border-radius:30px}.storage-note{position:absolute;bottom:3px;left:0;right:0;text-align:center;font-size:11px;color:#f4d797}.loading[hidden]{display:none}
dialog{color:var(--ivory);background:linear-gradient(145deg,#464154f5,#272535fa);border:1px solid #e7cfa67a;border-radius:22px;box-shadow:0 25px 100px #15111a88;max-width:min(460px,calc(100vw - 36px));width:460px;padding:0;max-height:90dvh}dialog::backdrop{background:#15121e6b;backdrop-filter:blur(7px)}.modal-inner{padding:36px;text-align:center}.modal-eyebrow{font:10px Georgia,serif;letter-spacing:.35em;color:var(--gold);margin:0 0 16px}dialog h2{font:32px var(--serif);letter-spacing:.08em;font-weight:400;margin:0 0 20px}#modal-content{color:#e7dcd7;font-size:14px;line-height:1.9}#modal-content p{margin:10px 0}#modal-content .result-score{font:64px Georgia,serif;color:var(--gold);line-height:1.2;margin:8px 0 16px}.modal-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:26px}.modal-actions button{border:1px solid #ddc59c77;border-radius:30px;padding:12px 25px;min-height:44px;font-size:14px}.modal-actions button.primary{background:#f2d298;color:#302737;border-color:#f2d298}.record-list{margin:0;padding:0;list-style:none;text-align:left}.record-list li{display:flex;justify-content:space-between;align-items:center;padding:9px 0;border-bottom:1px solid #f1dfb71e}.record-list strong{font:24px Georgia,serif;color:var(--gold)}.help-line{text-align:left}.help-line b{color:var(--gold);font-weight:500}.key-help{font-size:12px;color:#bfb4c6}
@media(min-aspect-ratio:2/1){.brand-area h1{font-size:38px;margin-top:14px}.game-footer{bottom:4%}.quiver #arrow-icons{margin-bottom:5px}.conditions{top:3%}.wind{margin-top:9px}}
@media(max-width:900px){.circle-button{width:42px;height:42px}.score-area{gap:15px}.score{min-width:50px}.chapter{gap:13px;padding:9px 18px}.brand-area h1{margin-top:16px}.game-footer{gap:15px}.best{gap:7px}.best>svg{width:20px}.arrow-icon{width:15px;height:22px}.quiver #arrow-icons{gap:2px}.utilities{margin-top:8px}.wind{margin-top:12px}.wind svg{width:45px}.power-track{height:9px}}
@media(max-aspect-ratio:1/1){.backdrop{filter:blur(14px) saturate(.5) brightness(.65)}.edge-shade{background:linear-gradient(#302b4240,transparent 30%,transparent 62%,#25203388)}.brand-area{top:max(25px,env(safe-area-inset-top));left:6%}.home-link{font-size:12px;gap:5px}.home-link svg{width:17px;height:17px}.brand-area h1{font-size:34px;margin-top:22px}.wordmark{font-size:9px;gap:8px}.wordmark span{width:18px}.score-area{top:max(26px,env(safe-area-inset-top));right:6%;gap:15px;flex-direction:row-reverse}.score strong{font-size:40px}.score>span{font-size:13px}.circle-button{width:36px;height:36px}.circle-button svg{width:18px;height:18px}.conditions{top:19%;width:100%;display:flex;align-items:center;justify-content:center;gap:16px}.chapter{font-size:12px;padding:8px 13px;gap:10px;letter-spacing:.03em}.wind{font-size:20px;margin:0;gap:5px}.wind svg{width:31px}.game-footer{bottom:max(28px,env(safe-area-inset-bottom));left:6%;right:6%;grid-template-columns:1fr 1fr;gap:27px 15px}.aim-controls{grid-column:1/-1;grid-row:1;max-width:340px}.aim-controls>p:first-child{font-size:17px}.instruction{font-size:12px;margin:12px 0 0;letter-spacing:.03em}.power-track{height:10px}.quiver #arrow-icons{margin-bottom:5px;gap:2px}.arrow-icon{width:13px;height:20px}.quiver p{font-size:11px;gap:4px}.quiver strong{font-size:24px;margin-left:4px}.quiver p>span{font-size:17px}.best{font-size:11px;gap:5px;flex-wrap:wrap;justify-content:flex-end}.best b{font-size:20px}.best>svg{width:17px}.best i{display:none}.best button{font-size:11px}.utilities{margin-top:8px}.feedback{top:30%;font-size:26px}.feedback small{font-size:11px}.modal-inner{padding:28px}}
@media(max-height:500px) and (min-aspect-ratio:1/1){.brand-area h1{font-size:27px;margin-top:9px}.wordmark{font-size:8px}.home-link{font-size:11px}.conditions .chapter{font-size:11px;padding:7px 14px}.wind{font-size:20px;margin-top:7px}.score strong{font-size:34px}.circle-button{width:35px;height:35px}.game-footer{bottom:5%;left:3%;right:3%}.aim-controls{max-width:250px}.aim-controls>p:first-child{font-size:13px;margin-bottom:6px}.instruction{font-size:10px;margin-top:7px}.quiver #arrow-icons{margin-bottom:3px}.arrow-icon{width:13px;height:18px}.quiver p{font-size:10px}.quiver strong{font-size:23px}.best{font-size:11px}.utilities{margin-top:4px}.feedback{top:30%;font-size:27px}.modal-inner{padding:22px}dialog h2{font-size:25px;margin-bottom:10px}.modal-actions{margin-top:15px}}
.flourish{width:.68em;height:.68em;fill:none;stroke:var(--gold);stroke-width:1.1;transform:none;margin-left:7px}.arrow-icon{color:var(--gold)}
canvas:focus-visible{outline:1px solid #f7d48a33;outline-offset:-2px}
@media(max-aspect-ratio:1/1){
 .world{top:46%}
 canvas:focus-visible{outline-offset:-3px;outline:1px solid #f7d48a33}
 .game-footer{gap:24px 15px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
