:root{color-scheme:light;--paper:#f7f4ea;--ink:#233e37;--muted:#687970;--green:#12695e;--orange:#e36b3e;--line:#dbded1;--sand:#ecdbb3;font-family:'Segoe UI','Yu Gothic UI','Meiryo',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink)}button,input{font:inherit}button,a,input{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #e36b3e;outline-offset:5px}a{color:inherit}[hidden]{display:none!important}.app{max-width:1440px;padding:0 52px;margin:auto}.masthead{height:102px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;font-weight:800;letter-spacing:.03em;font-size:23px}.brand-mark{display:grid;place-items:center;background:var(--green);color:#fff;width:44px;height:44px;border-radius:50%;font-size:35px;font-weight:400}.brand small{display:block;font-size:10px;letter-spacing:.14em;margin-top:4px;font-weight:600}.header-actions{display:flex;gap:13px;align-items:center}.prototype{font-size:11px;letter-spacing:.1em;background:#e9ecdf;border-radius:3px;padding:6px 9px}.icon-button{background:transparent;border:0;padding:12px 5px;font-size:14px}.icon-button span{margin-left:7px}.page-title{display:flex;justify-content:space-between;align-items:center;padding:34px 0 29px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.17em;margin:0 0 13px;color:var(--green)}h1{font-size:clamp(29px,3.2vw,44px);letter-spacing:.03em;margin:0 0 11px;line-height:1.2}.intro{margin:0;color:var(--muted);font-size:15px}.edition{border-left:1px solid var(--line);padding-left:24px;display:flex;flex-direction:column;gap:9px}.edition>span{font-size:12px;letter-spacing:.13em;color:var(--muted)}.edition strong{font-size:17px;font-weight:700;letter-spacing:.035em}.edition strong span{font-weight:400;font-size:12px}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:30px}.mode-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;gap:8px}.mode-tabs{display:flex;border:1px solid var(--line);padding:4px;gap:3px;border-radius:7px}.mode-tabs button{border:0;background:transparent;padding:10px 18px;border-radius:4px;color:var(--muted);font-size:14px;font-weight:600}.mode-tabs button.selected{background:var(--green);color:#fff}.weather{font-size:12px;color:var(--muted)}.arena{border:1px solid #c9d4c1;background:#d8ead8;border-radius:10px;position:relative;overflow:hidden;isolation:isolate}#court{display:block;width:100%;height:410px}.arena-top{position:absolute;inset:20px 23px auto;display:flex;justify-content:space-between;align-items:center;pointer-events:none;font-size:12px;letter-spacing:.08em}.court-label{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:700}.court-label i{height:6px;width:6px;background:var(--green);border-radius:50%}#round-label{background:#f9f6e6d9;padding:6px 12px;border-radius:30px;font-size:12px}.callout{position:absolute;left:0;right:0;top:66px;text-align:center;pointer-events:none}.callout>span{display:block;font-size:23px;font-weight:800;letter-spacing:.05em}.callout small{display:block;margin-top:7px;color:#567063;font-size:12px}.callout.scored>span{color:var(--green);font-size:34px}.arena-caption{position:absolute;bottom:14px;left:20px;right:20px;display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#6c6a4b;pointer-events:none}.arena-caption span:last-child{letter-spacing:.1em;font-size:9px}.replay{position:absolute;bottom:46px;right:18px;border:1px solid #baba97;background:#fff9e9dc;border-radius:5px;padding:9px 12px;color:var(--ink);font-size:13px}.controls{display:grid;grid-template-columns:1fr 1fr 1.13fr;gap:24px;align-items:center;background:#fffdf5;border:1px solid var(--line);border-radius:8px;padding:24px;margin-top:12px}.slider-control{display:block;min-width:0}.slider-control>span{display:flex;justify-content:space-between;font-size:13px;align-items:center}.slider-control output{font-family:'Segoe UI',sans-serif;font-size:23px;font-weight:700;color:var(--green);font-variant-numeric:tabular-nums}.slider-control input{width:100%;display:block;accent-color:var(--green);height:30px;margin:5px 0 0;cursor:pointer;touch-action:pan-y}.slider-control small{display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}.throw-button{display:flex;justify-content:space-between;align-items:center;border:0;background:var(--orange);color:white;border-radius:6px;min-height:55px;padding:14px 17px;gap:12px;font-size:15px;font-weight:700;box-shadow:0 3px 0 #b74d29}.throw-button:hover:not(:disabled){background:#d75d30}.throw-button>span:last-child{font-size:25px;font-weight:400}.control-hint{font-size:11px;color:var(--muted);margin:12px 0 0}.sidebar{padding-top:0}.score-panel{padding:24px;background:#e9eddf;border-radius:8px}.score-panel .eyebrow{margin-bottom:9px}.score-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.score-heading h2,.board-heading h2{font-size:17px;margin:0;font-weight:700}.score-heading strong{font-size:39px;line-height:1}.score-heading small{font-size:15px;color:var(--muted)}.shot-list{padding:0;margin:21px 0 16px;list-style:none}.shot-list li{display:grid;grid-template-columns:29px 1fr 45px;gap:8px;align-items:center;min-height:48px;border-bottom:1px solid #d0d8c5;font-size:13px}.shot-list li>span:first-child{font-family:monospace;color:#708b73;font-size:11px}.shot-list strong{text-align:right;font-size:17px}.shot-list li.current>span:nth-child(2){color:var(--green);font-weight:700}.personal-best{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.personal-best strong{color:var(--green);font-size:16px}.leaderboard{border-bottom:1px solid var(--line);padding:26px 3px 19px}.board-heading{display:flex;justify-content:space-between;align-items:center}.board-heading .eyebrow{font-size:10px;margin-bottom:8px}.board-heading button{background:transparent;border:1px solid var(--line);border-radius:50%;width:36px;height:36px;font-size:22px;color:var(--green)}.board-scope{font-size:11px;color:var(--muted);margin:13px 0}.rank-list{list-style:none;padding:0;margin:0}.rank-list li{display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:8px;align-items:center;padding:12px 0;border-top:1px solid var(--line);font-size:13px}.rank-list li>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-list li>span:first-child{color:var(--muted);font-family:monospace}.rank-list strong{font-size:16px}.rank-list small{font-size:10px;color:var(--muted)}.empty-state{padding:18px 0 22px;font-size:14px;line-height:1.9;color:var(--muted)}.board-note{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0 0}.field-note{padding:21px 3px;position:relative}.note-symbol{position:absolute;right:7px;top:21px;font-size:48px;color:#de9d5c}.field-note p{font-size:15px;line-height:1.8;margin:0 0 10px}.field-note>span:last-child{font-size:9px;letter-spacing:.16em;color:var(--muted)}footer{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);margin:32px 0 20px;padding-top:20px;font-size:12px}footer>span{font-weight:700}footer small{font-weight:400;font-size:10px;margin-left:7px;color:var(--muted)}footer p{font-size:10px;color:var(--muted)}.text-button{border:0;background:transparent;color:var(--green);padding:10px 0;font-size:12px;text-decoration:underline;text-underline-offset:4px}.result{border:1px solid #c2d2b8;padding:24px;background:#edf1e4;border-radius:8px;margin-top:22px}.result-heading{display:flex;align-items:center;justify-content:space-between}.result h2{margin:0;font-size:23px}.result-score{font-size:20px;margin:0;color:var(--muted)}.result-score strong{font-size:52px;color:var(--green);line-height:1}.result-score>span{font-size:13px}.result>p{font-size:14px;color:var(--muted);line-height:1.7}.result-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.secondary-button{background:var(--green);color:#fff;border:0;border-radius:5px;padding:13px 16px;font-size:13px;font-weight:600;min-height:44px}#entry-form{margin-top:20px;padding-top:17px;border-top:1px solid #ccd8c4}#entry-form>label{display:block;font-size:12px;margin-bottom:9px}.entry-row{display:flex;gap:9px}.entry-row input{border:1px solid #bbcdb3;background:#fffef8;border-radius:5px;padding:11px 12px;width:100%;min-width:0;color:var(--ink);font-size:16px}.entry-row button{flex-shrink:0}#submit-status{font-size:12px;line-height:1.7;margin:9px 0 0}dialog{border:1px solid var(--line);border-radius:12px;padding:35px;background:var(--paper);color:var(--ink);max-width:520px;width:calc(100% - 30px);box-shadow:0 20px 80px #173d3440}dialog::backdrop{background:#153c3480;backdrop-filter:blur(3px)}dialog h2{font-size:26px;margin:0 0 22px}dialog p{font-size:14px;line-height:1.9}dialog a{color:var(--green)}.dialog-close{position:absolute;top:10px;right:12px;font-size:28px;width:40px;height:40px;border:0;background:transparent;color:var(--ink)}.help-steps{padding-left:23px}.help-steps li{padding:7px 0;font-size:16px}.help-steps p{margin:6px 0}.help-steps li::marker{color:var(--orange);font-weight:bold}dialog .throw-button{width:100%;margin-top:20px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;border-radius:7px;padding:14px 22px;z-index:10;max-width:90vw;font-size:14px;box-shadow:0 5px 30px #0002}
@media(min-width:1500px){#court{height:455px}}@media(max-width:1100px){.app{padding:0 28px}.game-layout{grid-template-columns:minmax(0,1fr) 255px;gap:20px}.controls{gap:16px;padding:18px}.throw-button{font-size:13px;padding:12px}.edition{display:none}.arena-caption span:last-child{display:none}.score-panel{padding:20px}.header-actions{gap:8px}}
@media(max-width:820px){.app{padding:0 20px}.masthead{height:82px}.game-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field-note{display:none}.leaderboard{padding:18px 3px 0}.page-title{padding:26px 0 22px}.controls{grid-template-columns:1fr 1fr 1fr}#court{height:400px}footer{flex-wrap:wrap}.prototype{display:none}}
@media(max-width:520px){.app{padding:0 14px}.masthead{height:74px;gap:8px}.brand{font-size:18px;gap:9px}.brand-mark{width:34px;height:34px;font-size:28px}.brand small{font-size:7px;letter-spacing:.13em}.header-actions{gap:8px}.icon-button{font-size:12px;padding:12px 0}.icon-button span{display:none}.page-title{padding:24px 0 20px}.eyebrow{font-size:9px;letter-spacing:.14em;margin-bottom:11px}h1{font-size:32px;margin-bottom:9px}.intro{font-size:12px;line-height:1.7}.mode-tabs button{padding:9px 12px;font-size:12px}.weather{font-size:10px}.arena-top{inset:15px 14px auto}.court-label{font-size:8px}#round-label{font-size:10px;padding:5px 9px}.callout{top:57px}.callout>span{font-size:18px}.callout small{font-size:10px}.callout.scored>span{font-size:28px}#court{height:345px}.arena-caption{left:12px;bottom:11px;font-size:8px}.controls{grid-template-columns:1fr 1fr;gap:16px;padding:17px}.controls>.throw-button{grid-column:1/-1;min-height:48px;font-size:16px;justify-content:center;gap:20px}.slider-control>span{font-size:12px}.slider-control output{font-size:23px}.control-hint{font-size:10px;line-height:1.6}.sidebar{grid-template-columns:1fr;gap:0}.score-panel{margin-top:2px}.score-heading strong{font-size:32px}.shot-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:17px 0}.shot-list li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px;padding-bottom:10px;font-size:11px}.shot-list li>span:first-child{display:none}.shot-list strong{font-size:17px}.leaderboard{padding:24px 5px 16px}.empty-state{padding:10px 0}.result{padding:20px 17px}.result h2{font-size:21px}.result-score strong{font-size:44px}.result-actions{gap:9px}.secondary-button{font-size:12px;padding:12px}.entry-row{flex-wrap:wrap}.entry-row input{flex:1 1 150px}footer{margin-top:25px;gap:6px}footer p{margin:7px 0;width:100%}dialog{padding:28px 23px}.replay{bottom:36px;font-size:11px;padding:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Direct interaction with the court; no separate input panel. */
#court{touch-action:none;user-select:none;cursor:grab}#court.dragging{cursor:grabbing}#court[aria-disabled="true"]{cursor:default}#court:focus-visible{outline:3px solid var(--orange);outline-offset:-4px}
@media(max-width:520px){#court{height:360px}}
.portal-return{padding:10px 14px;text-align:center;font-size:12px;background:#e4eadc}.portal-return a{color:#12695e}
