@font-face{font-family:DM Sans;src:url('../grid-rush/assets/fonts/DMSans.woff2') format('woff2');font-weight:100 1000;font-display:swap}@font-face{font-family:Fredoka;src:url('../grid-rush/assets/fonts/Fredoka.woff2') format('woff2');font-weight:300 700;font-display:swap}
:root{color-scheme:light;--paper:#f8f4ed;--ink:#50485c;--muted:#928797;--line:#e5dfe3;--plum:#997da5;--clay:#b87e65;--spring:cubic-bezier(.22,1.3,.42,1)}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,a,input{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ab7c52;outline-offset:4px}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-80px;left:16px;padding:12px;background:var(--ink);color:white;z-index:90}.skip-link:focus{top:10px}.site-top{max-width:1260px;margin:auto;display:flex;align-items:center;gap:26px;padding:29px 24px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px;color:var(--ink);text-decoration:none;font-size:25px;letter-spacing:-.8px;white-space:nowrap}.brand b{font-weight:650}.brand i{color:var(--clay);font-style:normal}.brand svg{fill:none;stroke:#9578a0;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.header-note{margin-left:auto;font-size:10px;letter-spacing:1.3px;color:var(--muted)}main{max-width:1260px;margin:auto;padding:0 24px}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:43px 0 34px}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:650;line-height:1.7;color:var(--muted);margin:0}.intro .eyebrow>span{font-size:15px;color:#a38ab0;vertical-align:middle;padding-right:5px}h1{font-family:Fredoka,'DM Sans',sans-serif;font-weight:430;font-size:clamp(45px,5vw,68px);line-height:1.06;letter-spacing:-1.7px;margin:16px 0 0}h1 em{font-style:normal;color:var(--plum)}.intro>p{font-size:13px;line-height:1.85;color:var(--muted);margin:0 4px 6px 0}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;align-items:start}.play-panel{background:#fffdf8;border:1px solid var(--line);border-radius:25px;overflow:hidden;position:relative}.hud{display:flex;align-items:center;gap:28px;padding:21px 25px 18px}.hud>div{display:grid;gap:5px}.hud strong{font-size:35px;font-weight:550;letter-spacing:-1.1px;line-height:1.2;font-variant-numeric:tabular-nums}.score-block{padding-left:28px;border-left:1px solid var(--line)}.hud-best{margin-left:auto;text-align:right}.hud-best>span:last-child{font-size:23px;font-weight:500;font-variant-numeric:tabular-nums}.hud .text-button{font-size:12.1px;min-height:40px;padding:6px}.court{height:540px;position:relative;isolation:isolate;background:#eaded7;overflow:hidden}.court canvas{width:100%;height:100%;display:block}.court-tag{position:absolute;left:23px;bottom:16px;display:flex;gap:7px;align-items:center;font-size:10px;letter-spacing:1.3px;color:#9c8377;pointer-events:none}.court-tag>span:first-child{font-size:18px}.movement-pill{position:absolute;right:19px;top:19px;display:flex;gap:6px;align-items:center;padding:7px 10px;border-radius:30px;background:#fff9edc9;color:#917e85;font-size:10px;border:1px solid #f1e3d6}.movement-dot{width:5px;height:5px;border-radius:50%;background:#a0ad83}.movement-pill.is-moving .movement-dot{background:#b08eaa;animation:drift-dot 2s ease-in-out infinite}.idle-caption{position:absolute;top:30px;left:28px;pointer-events:none}.idle-caption .eyebrow{font-size:10px;letter-spacing:1.1px}.idle-caption h2{font-family:Fredoka,sans-serif;font-size:29px;font-weight:400;line-height:1.13;letter-spacing:-.7px;margin:10px 0;color:#a98176}.arrow-badge{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:7px 11px;background:#fffaf0dc;border:1px solid #e9dbd0;border-radius:30px;font-size:10px;white-space:nowrap;color:#997c65;pointer-events:none}.arrow-badge strong{font-size:12.1px;font-weight:600}.arrow-badge-dot{height:6px;width:6px;border-radius:50%;background:#c5a172}.arrow-badge.is-color{color:#8c729f;border-color:#d8c7df;background:#faf3ffe0}.arrow-badge.is-color .arrow-badge-dot{background:linear-gradient(45deg,#d9988f,#e7c980,#9cbda5,#a59bc6)}.throw-arrow{position:absolute;left:50%;top:65%;width:82px;height:106px;background:transparent;border:0;padding:0;touch-action:none;user-select:none;-webkit-user-select:none;overflow:visible;outline-offset:0!important;transform:translate(-50%,-25%);transition:opacity 140ms;z-index:2}.throw-arrow svg{position:absolute;top:25%;left:50%;width:52px;height:88px;overflow:visible;transform:translate(-50%,0) translate(var(--drag-x,0px),var(--drag-y,0px)) rotate(var(--drag-angle,0deg));transform-origin:50% 16%;filter:drop-shadow(0 6px 4px #8c6d4b18)}.arrow-shaft{stroke:#c49a6c;stroke-width:5;stroke-linecap:round}.arrow-feather{fill:#b29a75;stroke:#a48866;stroke-width:1.4;stroke-linejoin:round}.arrow-tip{fill:#c4ad86;stroke:#a88f69;stroke-width:1}.arrow-bind{stroke:#f7deb1;stroke-width:1.2}.is-color .arrow-shaft{stroke:url(#rainbow)}.is-color .arrow-feather{fill:#b2a5cf;stroke:#9a89b7}.is-color .arrow-tip{fill:#d59693;stroke:#bd8382}.throw-ring{position:absolute;left:50%;top:73%;width:76px;height:24px;border:1px dashed #b69b7c66;border-radius:50%;transform:translateX(-50%);z-index:-1;transition:scale 180ms var(--spring),opacity 180ms}.throw-arrow.is-held .throw-ring{scale:1.2;opacity:.3}.throw-arrow:disabled{opacity:0}.shot-feedback{position:absolute;left:50%;top:15%;transform:translateX(-50%);display:grid;justify-items:center;gap:3px;pointer-events:none;animation:feedback-in 400ms var(--spring);width:max-content;max-width:calc(100% - 30px);text-align:center}.shot-feedback strong{font-family:Fredoka,sans-serif;font-weight:450;font-size:43px;line-height:1;color:#9a79a4;text-shadow:0 2px 0 #fff5e5}.shot-feedback span{background:#fffaf1e6;border:1px solid #ecddd0;border-radius:30px;padding:6px 11px;color:#a17d65;font-size:12.1px;line-height:1.5}.shot-feedback.is-miss strong{font-size:22px;color:#b39377}.throw-controls{padding:18px 25px 17px}.strength-head{display:flex;justify-content:space-between;gap:15px;font-size:12.1px;color:#8e8190;margin-bottom:9px}.strength-head output{font-variant-numeric:tabular-nums}.power-track{height:7px;position:relative;border-radius:9px;background:#ede5dd;overflow:visible}.power-fill{display:block;height:100%;width:0;background:linear-gradient(90deg,#ceb48e,#a48fb5);border-radius:9px}.power-guide{position:absolute;top:-3px;left:40%;height:13px;width:14%;border:1px solid #baa8b8;border-radius:6px}.throw-controls>p{font-size:12.1px;line-height:1.75;color:#8b7f8b;margin:11px 0 12px}.fine-controls{display:flex;align-items:center;gap:12px;font-size:10px;color:#928491}.fine-controls label{display:flex;align-items:center;gap:7px;white-space:nowrap}.fine-controls label span{min-width:24px;font-variant-numeric:tabular-nums}.fine-controls input{min-width:0;width:110px;max-width:150px;height:30px;accent-color:#a48bac;touch-action:none}.key-hint{margin-left:auto;font-size:10px}.sidebar{display:grid;gap:24px}.setup-card{border:1px solid var(--line);border-radius:24px;background:#fffdf8;padding:26px 24px}.setup-card h2,.records h2,.how-to h2{font-family:Fredoka,sans-serif;font-size:32px;line-height:1.12;font-weight:420;letter-spacing:-.8px;margin:17px 0}.setup-card h2 em{font-style:normal;color:var(--plum)}.setup-lead{font-size:12.1px;line-height:1.8;color:var(--muted);margin:0 0 22px}.duration-options{border:0;padding:0;margin:0 0 22px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.duration-options legend{padding:0;font-size:12.1px;margin-bottom:10px}.duration-options label{display:block;position:relative;cursor:pointer}.duration-options input{position:absolute;opacity:0;height:1px;width:1px;top:15px;left:15px}.duration-options label>span{display:grid;gap:7px;border:1px solid var(--line);border-radius:14px;padding:15px 12px;min-height:82px;background:#fcfaf5;transition:background 180ms,border-color 180ms,box-shadow 180ms}.duration-options b{font-size:12px;font-weight:550;line-height:1.4}.duration-options small{font-size:10px;color:var(--muted);line-height:1.5}.duration-options input:checked+span{background:#eee7ef;border-color:#ab92b2;box-shadow:inset 0 0 0 1px #ab92b2}.duration-options input:focus-visible+span{outline:3px solid #ba9267;outline-offset:3px}.primary-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:13px;background:var(--ink);color:#fffaf0;font-size:12px;font-weight:550;min-height:49px;padding:14px 17px}.primary-button span{font-size:20px;line-height:1}.text-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px;border:0;background:transparent;font-size:12.1px;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#c4b5c7}.setup-note{font-size:12.1px;color:var(--muted);line-height:1.8;margin:16px 0 0}.records{padding:0 10px}.records h2{font-size:28px;margin:12px 0 18px}.records h2 span{color:var(--clay)}.record-mode h3{font-size:12.1px;font-weight:500;color:#91808f;margin:18px 0 9px}.records ol{list-style:none;padding:0;margin:0}.record-row{display:flex;align-items:baseline;gap:10px;padding:12px 0;border-top:1px solid var(--line);animation:feedback-in 300ms ease}.record-row .rank{font-size:10px;width:16px;color:#af929e}.record-row strong{font-size:25px;line-height:1.2;font-weight:500;font-variant-numeric:tabular-nums}.record-row small{font-size:10px;color:var(--muted)}.record-row time{font-size:10px;margin-left:auto;color:#a697a2}.empty-record{font-size:12.1px;line-height:1.7;color:var(--muted);padding:14px 0;border-top:1px solid var(--line)}#storage-note{font-size:10px;line-height:1.7;color:var(--muted);margin-top:17px}.arrow-guide{padding:3px 10px}.arrow-guide>div{display:flex;align-items:center;gap:12px;padding:16px 0;border-top:1px solid var(--line)}.arrow-guide svg{width:25px;height:50px;fill:#c5ac85;stroke:#ae9269;stroke-width:2;stroke-linecap:round;flex:none}.arrow-guide .rainbow-guide{fill:#b9a4ce;stroke:#ab91bf}.arrow-guide h3{font-size:12.1px;font-weight:550;margin:0 0 7px}.arrow-guide h3 b{font-size:12.1px;color:#ad8b6b;margin-left:7px}.arrow-guide p{font-size:10px;color:var(--muted);line-height:1.7;margin:0}.arrow-guide .bag-note{font-size:10px;margin-top:4px;color:#a18c9c}.result{position:absolute;inset:0;display:grid;place-items:center;padding:17px;background:#ede4e1bd;backdrop-filter:blur(5px);z-index:5}.result-card{background:#fffaf3f5;border:1px solid #e8dfe6;border-radius:26px;padding:25px 28px;width:min(100%,340px);text-align:center;max-height:100%;overflow:auto;box-shadow:0 15px 30px #7b55760d;animation:feedback-in 380ms var(--spring)}.result-flower{display:inline-grid;place-items:center;width:47px;height:47px;font-size:32px;color:#b295bb;background:#eee3ef;border-radius:50%}.result-card .eyebrow{font-size:10px;letter-spacing:1.1px;margin-top:15px}.result-card h2{font-family:Fredoka,sans-serif;font-size:32px;letter-spacing:-.5px;font-weight:420;margin:12px 0}.final-score{display:flex;justify-content:center;gap:8px;align-items:baseline}.final-score strong{font-size:58px;line-height:1.1;font-weight:500;letter-spacing:-2px}.final-score span{font-size:12.1px;color:var(--muted)}#result-note{font-size:12.1px;line-height:1.8;color:var(--muted);margin:12px 0 18px}.result-stats{display:grid;grid-template-columns:repeat(3,1fr);padding:16px 0;margin-bottom:18px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);gap:8px}.result-stats>span{display:grid;gap:6px}.result-stats b{font-size:19px;font-weight:500}.result-stats small{font-size:10px;color:var(--muted);line-height:1.5}.how-to{display:grid;grid-template-columns:230px repeat(3,1fr);gap:36px;border-top:1px solid var(--line);padding:33px 0 25px;margin-top:51px}.how-to h2{font-size:32px;margin:15px 0 0}.how-to article{padding-top:7px}.how-to article>span{font-size:12.1px;color:#b99f8a}.how-to h3{font-size:13px;font-weight:550;margin:15px 0 10px}.how-to article p{font-size:12.1px;line-height:1.9;color:var(--muted);margin:0}.keyboard-help{font-size:12.1px;line-height:1.8;color:var(--muted);margin:20px 0 35px}footer{border-top:1px solid var(--line);padding:24px 0 30px;display:flex;justify-content:space-between;gap:16px;font-size:10px;color:#a1959d;line-height:1.8}@keyframes feedback-in{from{opacity:0;translate:0 9px;scale:.95}to{opacity:1;translate:0 0;scale:1}}@keyframes drift-dot{50%{translate:3px 0}}
@media(max-width:1000px){.game-layout{grid-template-columns:minmax(0,1fr) 275px;gap:20px}.setup-card{padding:24px 20px}.hud{gap:18px;padding:20px}.score-block{padding-left:18px}.how-to{grid-template-columns:190px repeat(3,1fr);gap:22px}.hud .eyebrow{font-size:10px}.key-hint{font-size:10px}}
@media(max-width:760px){main{padding:0 17px}.site-top{padding:22px 18px;gap:18px}.brand{font-size:23px}.brand svg{width:31px}.header-note{display:none}.intro{padding:30px 0 25px}.intro h1{font-size:45px}.intro>p{font-size:12.1px;max-width:150px;line-height:1.9}.intro .eyebrow{font-size:10px;letter-spacing:1px}.game-layout{grid-template-columns:1fr}.play-panel{border-radius:22px}.court{height:430px}.hud{padding:18px 20px;gap:21px}.hud strong{font-size:30px}.hud .eyebrow{font-size:10px}.score-block{padding-left:21px}.hud-best>span:last-child{font-size:21px}.sidebar{grid-template-columns:1fr 1fr;gap:25px}.records{padding:10px}.arrow-guide{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:0 25px}.arrow-guide .bag-note{grid-column:1/-1}.how-to{grid-template-columns:repeat(3,1fr);margin-top:35px;gap:22px}.how-intro{grid-column:1/-1}.how-intro h2 br{display:none}.how-to h3{font-size:12px}.how-to article p{font-size:12.1px}footer{flex-direction:column;gap:8px}.throw-controls{padding:16px 20px}.fine-controls{gap:8px}.fine-controls input{width:85px}.key-hint{font-size:10px}}
@media(max-width:480px){.intro>p{display:none}.intro h1{font-size:46px}.sidebar{grid-template-columns:1fr}.setup-card{padding:24px}.records{padding:0 8px}.setup-card h2{font-size:30px}.arrow-guide{grid-column:auto}.court{height:390px}.idle-caption{top:28px;left:22px}.idle-caption h2{font-size:24px}.idle-caption .eyebrow{font-size:10px}.movement-pill{top:16px;right:14px;font-size:10px;padding:6px 8px}.court-tag{font-size:10px;left:16px;bottom:13px}.how-to{grid-template-columns:1fr 1fr;gap:25px}.how-to article:last-child{grid-column:1/-1;max-width:250px}.how-to article p{font-size:12.1px}.how-to h3{font-size:13px}.hud{gap:16px}.score-block{padding-left:16px}.hud .text-button{font-size:10px;padding:3px}.hud strong{font-size:28px}}
html.play-locked,body.play-locked{overflow:hidden;overscroll-behavior:none}body.play-locked{position:fixed;inset:0;width:100%;height:100dvh}body.play-locked .play-panel{position:fixed;inset:0;z-index:50;border:0;border-radius:0;width:100%;height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}body.play-locked .hud{flex:none;padding:12px 15px 11px;gap:15px}body.play-locked .hud strong{font-size:28px}body.play-locked .hud .eyebrow{font-size:10px;letter-spacing:.8px}body.play-locked .score-block{padding-left:15px}body.play-locked .hud-best>span:last-child{font-size:18px}body.play-locked .court{flex:1;height:auto;min-height:0}body.play-locked .throw-controls{flex:none;padding:12px 18px 9px}body.play-locked .throw-controls>p{font-size:12.1px;line-height:1.7;margin:9px 0 5px}body.play-locked .fine-controls{min-height:30px}body.play-locked .court-tag{display:none}body.play-locked .arrow-badge{bottom:11px;font-size:10px}body.play-locked .throw-arrow{height:94px;width:78px}body.play-locked .throw-arrow svg{width:46px;height:78px}body.play-locked.is-results .throw-controls{display:none}body.play-locked .result-card{padding:23px}body.play-locked .result-card h2{font-size:29px}body.play-locked .result-flower{width:38px;height:38px;font-size:27px}
@media(max-height:500px) and (orientation:landscape){body.play-locked .hud{padding:8px 18px;gap:20px}body.play-locked .hud strong{font-size:22px}body.play-locked .hud .eyebrow{font-size:10px}body.play-locked .hud>div{gap:2px}body.play-locked .hud #end{min-height:30px;margin-left:6px}body.play-locked .throw-controls{position:absolute;left:17px;bottom:14px;width:24%;padding:9px;border-radius:12px;background:#fffaf0b8;pointer-events:none}body.play-locked .fine-controls{display:none}body.play-locked .throw-controls>p{font-size:10px;line-height:1.6;margin-bottom:0}body.play-locked .strength-head{font-size:10px}body.play-locked .arrow-badge{left:auto;right:17px;bottom:17px;transform:none}body.play-locked .throw-arrow{height:74px;width:70px}body.play-locked .throw-arrow svg{height:65px;width:38px}body.play-locked .movement-pill{top:10px;font-size:10px}body.play-locked .result{padding:10px}body.play-locked .result-card{max-width:490px;padding:15px 23px;display:grid;grid-template-columns:1fr 1fr;gap:3px 20px;align-items:center}body.play-locked .result-flower{display:none}body.play-locked .result-card .eyebrow{margin:0;font-size:10px;grid-column:1/-1}body.play-locked .result-card h2{font-size:25px;margin:5px 0}body.play-locked .final-score{grid-column:2;grid-row:2/4}body.play-locked .final-score strong{font-size:48px}body.play-locked #result-note{margin:2px 0;font-size:12.1px}body.play-locked .result-stats{grid-column:1/-1;margin:8px 0;padding:9px 0}body.play-locked .result-stats b{font-size:17px}body.play-locked .result-stats small{font-size:10px}body.play-locked .result-card .primary-button{font-size:12.1px;min-height:44px;padding:10px 13px}body.play-locked .result-card .text-button{font-size:12.1px}.shot-feedback{top:9%}.shot-feedback strong{font-size:32px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
