:root{--bg: #f6f7f5;--surface: #ffffff;--text: #121614;--muted: #4d5651;--line: #d7ddd9;--accent: #0a6b4f;--accent-ink: #ffffff;--accent-soft: #e3f1eb;--team-a: #0a6b4f;--team-b: #1f4fa8;--danger: #b42318;--danger-ink: #ffffff;--info-bg: #eef3fb;--info-line: #1f4fa8;--block-bg: #fdecea;--block-line: #b42318;--focus: #f0a500;--radius: 14px;--tap: 48px;color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--bg: #0f1311;--surface: #1a201d;--text: #eef2ef;--muted: #b3bdb7;--line: #34403a;--accent: #3fc495;--accent-ink: #06140f;--accent-soft: #163128;--team-a: #3fc495;--team-b: #8fb2ff;--danger: #ff8a80;--danger-ink: #1b0705;--info-bg: #17223a;--info-line: #8fb2ff;--block-bg: #3a1714;--block-line: #ff8a80}}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Hiragino Sans,Noto Sans JP,sans-serif;font-size:17px;line-height:1.5}.app{max-width:560px;margin:0 auto;min-height:100dvh;display:flex;flex-direction:column}.screen{flex:1;padding:20px 16px 0;display:flex;flex-direction:column;gap:14px}.screen-head,.play-head{display:flex;flex-direction:column;gap:2px}.app-title{font-size:28px;line-height:1.25;margin:12px 0 0}.screen-title{font-size:26px;line-height:1.25;margin:0}.eyebrow,.status{margin:0;color:var(--muted);font-size:15px;font-weight:600}.lead{margin:4px 0 0;color:var(--muted)}.section-title{font-size:18px;margin:8px 0 0}.hint{margin:0;color:var(--muted);font-size:15px}.hint.small{font-size:13px}.stack{display:flex;flex-direction:column;gap:12px}.row{display:flex;gap:10px}.grow{flex:1}.btn{min-height:var(--tap);min-width:var(--tap);padding:0 16px;border-radius:12px;border:2px solid transparent;font:inherit;font-weight:700;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.btn:focus-visible,.input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-primary{background:var(--accent);color:var(--accent-ink)}.btn-secondary{background:var(--accent-soft);color:var(--text);border-color:var(--accent)}.btn-ghost{background:transparent;color:var(--text);border-color:var(--line)}.btn-danger{background:var(--danger);color:var(--danger-ink)}.btn-choice{min-height:72px;font-size:20px;background:var(--surface);color:var(--text);border-color:var(--line);text-align:left}.btn-main{width:100%;min-height:64px;font-size:21px}.btn-icon{background:transparent;color:var(--muted);border-color:var(--line);font-size:14px;padding:0 12px}.btn-step{width:64px;height:64px;font-size:28px;background:var(--surface);color:var(--text);border-color:var(--line)}.add-row{display:flex;gap:10px}.input{flex:1;min-width:0;min-height:var(--tap);padding:0 14px;border-radius:12px;border:2px solid var(--line);background:var(--surface);color:var(--text);font:inherit;font-size:17px}.field-error{margin:0;color:var(--danger);font-weight:600}.count{margin:4px 0 0;font-weight:700}.name-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.name-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 6px 6px 14px;background:var(--surface);border:1px solid var(--line);border-radius:12px}.name-text{overflow-wrap:anywhere;font-weight:600}.stepper{display:flex;align-items:center;justify-content:center;gap:24px;padding:16px 0}.stepper-value{font-size:48px;font-weight:800;min-width:3ch;text-align:center}.unit{font-size:20px;margin-left:4px}.step-message{margin:0;padding:6px 12px;border-radius:10px;background:var(--accent-soft);font-size:15px;font-weight:600}.screen-play{gap:10px;padding-top:14px}.courts{display:flex;flex-direction:column;gap:8px}.court-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:8px 12px 10px}.court-name{margin:0 0 4px;font-size:14px;color:var(--muted);letter-spacing:.04em}.teams{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px}.team{margin:0;display:flex;align-items:flex-start;gap:8px;min-width:0}.team-tag{flex:none;width:26px;height:26px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;font-size:14px;font-weight:800;color:var(--surface);background:var(--team-a)}.team:last-child .team-tag{background:var(--team-b)}.team-names{display:flex;flex-direction:column;min-width:0}.pname{font-size:19px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}.vs{margin:0;font-size:13px;font-weight:800;color:var(--muted)}.rest-card{border:2px dashed var(--line);border-radius:var(--radius);padding:10px 14px}.rest-title{margin:0 0 6px;font-size:15px;color:var(--muted)}.rest-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px}.rest-name,.rest-none{margin:0;font-weight:700;font-size:18px}.notices{display:flex;flex-direction:column;gap:8px}.notice{margin:0;padding:10px 14px;border-radius:12px;border-left:5px solid;display:flex;flex-direction:column;gap:2px}.notice-info{background:var(--info-bg);border-color:var(--info-line)}.notice-block{background:var(--block-bg);border-color:var(--block-line)}.notice-label{font-size:14px}.bottom-bar{position:sticky;bottom:0;margin:auto -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--bg);border-top:1px solid var(--line);display:flex;flex-direction:column;gap:10px}.confirm{display:flex;flex-direction:column;gap:10px}.confirm-title{margin:0;font-weight:700}.toast{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:10px;padding:10px 16px;background:var(--info-bg);border-bottom:2px solid var(--info-line);font-size:15px}.summary{width:100%;border-collapse:collapse;background:var(--surface);border-radius:var(--radius);overflow:hidden}.summary th,.summary td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left}.summary td{text-align:right;font-variant-numeric:tabular-nums;width:4.5em}.summary thead th{font-size:14px;color:var(--muted)}.summary thead th:not(:first-child){text-align:right}.credit{padding:16px;text-align:center;font-size:12px;color:var(--muted)}.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}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
