:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color-scheme:dark;background:#10191d;color:#f8f1df;font-synthesis:none}*{box-sizing:border-box}body{margin:0;padding:10px}main{max-width:580px;margin:auto;border:1px solid #3b4d51;background:#172328;border-radius:22px;padding:clamp(12px,3vw,24px)}header{display:flex;align-items:center;justify-content:space-between;gap:8px}.brand{font-size:.61rem;letter-spacing:.13em;color:#acc6bc;font-weight:800;margin:0}#badge{font-size:.66rem;padding:5px 8px;background:#303c33;border:1px solid #697555;border-radius:99px;color:#dfedb3;white-space:nowrap}.heading{margin:12px 0}h1{font-size:clamp(1.8rem,7vw,2.7rem);letter-spacing:-.06em;margin:0 0 5px;line-height:1.1}#intro{font-size:.82rem;color:#bacbc7;margin:0}.setup{display:flex;gap:8px;align-items:center;font-size:.75rem}.setup label{color:#b3c4c1}select,#reset{font:inherit;border:1px solid #52665e;background:#23342f;color:#f8f1df;padding:5px 9px;border-radius:8px;min-height:36px}#reset{margin-left:auto;background:transparent;cursor:pointer}select:disabled{opacity:.65}.hud{display:flex;justify-content:space-between;padding:12px 3px 10px;gap:6px}.hud div{display:flex;flex-direction:column;gap:2px}.hud span{font-size:.65rem;color:#aec4bf}.hud strong{font-size:1.25rem;line-height:1.2;font-variant-numeric:tabular-nums}.hud #score{color:#ffb875}.hud #time span{font-size:.7rem;margin-left:3px}.hud div:last-child{text-align:right}.court{position:relative;overflow:hidden;border:1px solid #526357;border-radius:13px;background:#1e3538;width:100%;height:clamp(180px,43dvh,370px);touch-action:manipulation;user-select:none;-webkit-user-select:none}canvas{display:block;width:100%;height:100%;object-fit:contain}#overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;padding:16px;background:#102026db;pointer-events:none}#overlay[hidden]{display:none}#overlay-label{font-size:.63rem;letter-spacing:.15em;color:#e5bf80;margin:0}#overlay-title{font-size:clamp(1.8rem,7vw,2.6rem);letter-spacing:-.06em;line-height:1.15}#overlay-copy{font-size:.8rem;line-height:1.6;margin:0;color:#d0dcd2;white-space:pre-line}#action{margin-top:10px;width:100%;min-height:52px;border:0;border-radius:10px;background:#e7f2b1;color:#17251e;font:800 1rem system-ui,sans-serif;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}#action[data-phase=running]{background:#ffa967;color:#302015}#action:active{filter:brightness(.92)}button:focus-visible,select:focus-visible{outline:3px solid #fff3b0;outline-offset:3px}#status{min-height:2.8em;font-size:.76rem;line-height:1.4;text-align:center;color:#d6dfcd;margin:9px 0 0}.rule{font-size:.68rem;line-height:1.65;color:#a8bbb2;white-space:pre-line;margin:5px 0 0}#results{border-top:1px solid #3f5550;margin:12px 0;padding-top:10px}#results-label{font-size:.66rem;color:#e0c28e}h2{font-size:1.3rem;margin:8px 0}#ranking{list-style:none;padding:0;display:grid;gap:6px}#ranking li{display:flex;justify-content:space-between;background:#243a32;border:1px solid #415c4c;border-radius:8px;padding:11px;font-size:.82rem}#ranking li:first-child{border-color:#bfcf83}#ranking strong{color:#ffbf87}
@media(max-width:360px){body{padding:5px}main{padding:12px}.brand{font-size:.53rem}#badge{font-size:.58rem}.setup{gap:6px}.heading{margin:10px 0}.hud{padding-top:9px}}
@media(max-height:600px){body{padding:5px}main{padding:10px}.heading{margin:8px 0}h1{font-size:1.8rem}#intro{font-size:.74rem}.hud{padding:8px 2px}.hud strong{font-size:1.05rem}#action{min-height:45px;margin-top:7px}#status{margin-top:6px}.rule{margin-top:2px}.court{height:clamp(170px,36dvh,250px)}}
@media(max-height:420px) and (min-width:460px){main{display:grid;grid-template-columns:1fr 1.1fr;gap:6px 16px;max-width:800px}header,.heading,.setup,.hud{grid-column:1}.court{grid-column:2;grid-row:1/6;height:224px}#action{grid-column:1;margin:0}#status,.rule,#results{grid-column:1/-1}.heading{margin:0}.hud{padding:4px 2px}.brand{font-size:.5rem}#badge{font-size:.55rem}}
#jump-meter{position:absolute;top:8px;left:8px;z-index:1;margin:0;padding:4px 8px;border:1px solid #829a7a;border-radius:7px;background:#12252bf0;color:#f4eabc;font-size:.72rem;font-weight:850;pointer-events:none;font-variant-numeric:tabular-nums}
