:root{--bg: #f3f5f1;--surface: #ffffff;--surface-2: #eef1ec;--ink: #16201b;--ink-2: #4f5b54;--line: #d9dfd8;--line-strong: #848f88;--surface-raised: #ffffff;--brand: #0c6b4a;--brand-strong: #095238;--on-brand: #ffffff;--brand-soft: #dff0e8;--select: #b45f06;--select-soft: #fdebd2;--select-strong: #8f4a00;--danger: #b3261e;--danger-soft: #fbe6e4;--good: #0c6b4a;--warn: #9a5b00;--shadow: 0 1px 2px rgb(20 30 25 / 8%), 0 4px 14px rgb(20 30 25 / 6%);--radius: 14px;--radius-sm: 10px;--tap: 48px;--tap-min: 44px;--tab-h: 62px;--safe-b: env(safe-area-inset-bottom, 0px);color-scheme:light dark}@media(prefers-color-scheme:dark){:root{--bg: #0f1412;--surface: #19201c;--surface-2: #222b26;--ink: #e8eee9;--ink-2: #a5b2aa;--line: #2e3933;--line-strong: #66756c;--surface-raised: #33413a;--brand: #43b88d;--brand-strong: #63cba3;--on-brand: #04261a;--brand-soft: #173428;--select: #f0a24a;--select-soft: #3a2a14;--select-strong: #f0a24a;--danger: #ff8a80;--danger-soft: #3b1c1a;--good: #43b88d;--warn: #f0a24a;--shadow: 0 1px 2px rgb(0 0 0 / 40%)}}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:Pretendard Variable,Pretendard,-apple-system,BlinkMacSystemFont,Apple SD Gothic Neo,Noto Sans KR,Malgun Gothic,system-ui,sans-serif;font-size:16px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;-webkit-tap-highlight-color:transparent}h1,h2,h3,p,ul,ol,dl,dd{margin:0}ul,ol{padding:0;list-style:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer}:focus-visible{outline:3px solid var(--select);outline-offset:2px}.icon{flex:none}.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.app{display:flex;flex-direction:column;min-height:100dvh;max-width:720px;margin:0 auto}.splash{display:grid;place-items:center;min-height:100dvh;color:var(--ink-2)}.app-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:10px;padding:calc(env(safe-area-inset-top,0px) + 12px) 16px 12px;background:var(--bg);border-bottom:1px solid var(--line)}.app-bar h1{flex:1;min-width:0;font-size:1.25rem;font-weight:700;letter-spacing:-.01em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-pill{flex:none;padding:4px 10px;border-radius:999px;background:var(--brand-soft);color:var(--brand-strong);font-size:.8125rem;font-weight:600}.app-main{flex:1;display:flex;flex-direction:column;gap:12px;padding:14px 16px calc(var(--tab-h) + var(--safe-b) + 96px)}.tab-bar{position:fixed;left:0;right:0;bottom:0;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);max-width:720px;margin:0 auto;padding-bottom:var(--safe-b);background:var(--surface);border-top:1px solid var(--line)}.tab{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:var(--tab-h);border:0;background:none;color:var(--ink-2);font-size:.8125rem;font-weight:600}.tab.is-on{color:var(--brand)}.tab.is-on .icon{stroke-width:2.3}.card{display:flex;flex-direction:column;gap:12px;padding:16px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.card h2,.section-head h2{font-size:1.0625rem;font-weight:700}.card.empty{align-items:flex-start}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px;margin-top:8px}.count{margin-left:4px;color:var(--ink-2);font-size:.9375rem;font-weight:500}.muted,.hint,.foot-note{color:var(--ink-2)}.hint{font-size:.875rem}.foot-note{margin-top:8px;font-size:.8125rem;text-align:center}.banner{margin:0;padding:10px 16px;font-size:.875rem}.banner.is-error{background:var(--danger-soft);color:var(--danger)}.stack{display:flex;flex-direction:column;gap:10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:var(--tap);padding:0 18px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);color:var(--ink);font-weight:600;text-align:center}.btn:active:not(:disabled){transform:translateY(1px)}.btn:disabled{opacity:.45;cursor:default}.btn-primary{border-color:var(--brand);background:var(--brand);color:var(--on-brand)}.btn-danger{border-color:var(--danger);background:var(--danger);color:var(--surface)}.btn-secondary{border-color:var(--brand);color:var(--brand-strong)}.btn-danger-ghost{border-color:transparent;background:none;color:var(--danger)}.btn-quiet{border-color:transparent;background:none;color:var(--ink-2)}.btn-small{min-height:var(--tap-min);padding:0 12px;font-size:.9375rem}.btn-small .icon{width:18px;height:18px}.btn-block{width:100%}.icon-btn{display:grid;place-items:center;width:var(--tap);height:var(--tap);margin:-8px -10px -8px 0;border:0;border-radius:50%;background:none;color:var(--ink-2)}.icon-btn:focus-visible{outline-offset:-3px}.form{display:flex;flex-direction:column;gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field-inline{flex-direction:row;align-items:center;justify-content:space-between}.field-label{font-size:.9375rem;font-weight:600}.field-error{color:var(--danger);font-size:.9375rem;font-weight:600}.input{width:100%;min-height:var(--tap);padding:0 14px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface)}.input::placeholder{color:var(--ink-2);opacity:.8}.segmented{display:flex;gap:4px;padding:4px;border-radius:var(--radius-sm);background:var(--surface-2)}.segment{flex:1 1 0;min-width:0;min-height:44px;padding:0 6px;border:0;border-radius:8px;background:none;color:var(--ink-2);font-size:.9375rem;font-weight:600;white-space:nowrap}.segment.is-on{background:var(--surface-raised);color:var(--ink);font-weight:700;box-shadow:inset 0 0 0 2px var(--brand),var(--shadow)}.stepper{display:inline-flex;align-items:center;gap:4px}.stepper-btn{width:var(--tap);height:var(--tap);border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);font-size:1.5rem;line-height:1}.stepper-btn:disabled{opacity:.4}.stepper-value{min-width:64px;font-size:1.5rem;font-weight:700;font-variant-numeric:tabular-nums;text-align:center}.stepper-value small{margin-left:2px;color:var(--ink-2);font-size:.9375rem;font-weight:500}.switch-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:var(--tap);font-weight:600}.switch-row small{display:block;color:var(--ink-2);font-size:.875rem;font-weight:400}.switch-row input{flex:none;width:26px;height:26px;accent-color:var(--brand)}.list{display:flex;flex-direction:column;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);overflow:hidden}.list>li+li{border-top:1px solid var(--line)}.row{display:flex;align-items:center;gap:10px;width:100%;min-height:56px;padding:8px 16px;border:0;background:none;text-align:left}.row-main{flex:1;min-width:0;font-weight:600}.row-meta{flex:none;color:var(--ink-2);font-size:.875rem;font-variant-numeric:tabular-nums}.row-actions{flex:none;display:flex;gap:6px}.row-check.is-on{background:var(--brand-soft)}.check-box{flex:none;display:grid;place-items:center;width:26px;height:26px;border:2px solid var(--line-strong);border-radius:7px;color:var(--on-brand)}.row-check.is-on .check-box{border-color:var(--brand);background:var(--brand)}.check-box .icon{width:18px;height:18px;stroke-width:3}.pill{display:inline-block;margin-left:8px;padding:2px 8px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);font-size:.8125rem;font-weight:600;vertical-align:1px}.pill.is-live{background:var(--brand-soft);color:var(--brand-strong)}.pill.is-resting{background:var(--select-soft);color:var(--select-strong)}.sticky-action{position:sticky;bottom:calc(var(--tab-h) + var(--safe-b) + 12px);z-index:4;margin-top:4px}.sticky-action .btn{box-shadow:var(--shadow)}.board-actions{display:flex;flex-direction:column;gap:6px}.courts{display:grid;gap:10px}@media(min-width:640px){.courts{grid-template-columns:1fr 1fr}}.court{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.court.is-empty{background:none;border:1.5px dashed var(--line);box-shadow:none}.court-head{display:flex;align-items:center;gap:8px;min-height:var(--tap-min)}.court-title{flex:1;display:flex;align-items:center;flex-wrap:wrap;gap:4px 6px;min-width:0}.court-head h3{margin-right:2px;font-size:1.0625rem;font-weight:700;white-space:nowrap}.court-actions{flex:none;display:flex;gap:6px}.court-actions .btn-quiet{padding:0 8px}.court-gap{color:var(--ink-2);font-size:.8125rem;font-variant-numeric:tabular-nums}.tag{padding:2px 8px;border-radius:6px;background:var(--surface-2);color:var(--ink-2);font-size:.8125rem;font-weight:600;white-space:nowrap}.tag-edit{background:var(--select-soft);color:var(--select-strong)}.match{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px}.team{display:flex;flex-direction:column;gap:4px;min-width:0}.vs{color:var(--ink-2);font-size:.8125rem;font-weight:700}.player{display:flex;flex-direction:column;justify-content:center;min-width:0;min-height:var(--tap);padding:4px 10px;border:1.5px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface);text-align:left}.player-name{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.player-meta{color:var(--ink-2);font-size:.8125rem;line-height:1.3}.player.is-selected{border-color:var(--select);background:var(--select-soft);box-shadow:inset 0 0 0 1.5px var(--select)}.player.is-resting{border-style:dashed}.chips{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}.select-bar{position:fixed;left:12px;right:12px;bottom:calc(var(--tab-h) + var(--safe-b) + 12px);z-index:9;display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:696px;margin:0 auto;padding:10px 10px 10px 16px;border-radius:var(--radius);background:var(--ink);color:var(--bg);box-shadow:var(--shadow)}.select-bar .btn{flex:none}.manual-preview{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:12px;border-radius:var(--radius-sm);background:var(--surface-2);font-weight:600;text-align:center}.pair-form{display:grid;grid-template-columns:1fr 1fr auto;gap:8px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stats>div{padding:10px 8px;border-radius:var(--radius-sm);background:var(--surface);box-shadow:var(--shadow);text-align:center}.stats dt{color:var(--ink-2);font-size:.8125rem;font-weight:600}.stats dd{font-size:1.375rem;font-weight:700;font-variant-numeric:tabular-nums}.stats dd.is-good{color:var(--good)}.stats dd.is-warn{color:var(--warn)}.game-row{display:grid;grid-template-columns:20px minmax(0,1fr) auto minmax(0,1fr);gap:4px 10px;align-items:center;padding:10px 16px}.game-no{color:var(--ink-2);font-size:.8125rem;font-variant-numeric:tabular-nums}.game-team{display:flex;flex-direction:column;min-width:0;color:var(--ink-2);line-height:1.35}.game-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-team-b{text-align:right}.game-team.is-win{color:var(--ink);font-weight:700}.game-score{padding:2px 8px;border-radius:6px;background:var(--surface-2);font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}.game-type{display:none}.records{width:100%;border-collapse:collapse;border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);overflow:hidden;font-variant-numeric:tabular-nums}.records th,.records td{padding:10px 12px;border-top:1px solid var(--line);text-align:right}.records thead th{border-top:0;color:var(--ink-2);font-size:.8125rem;font-weight:600}.records th:first-child{text-align:left}.records tbody th{font-weight:600}.records small{color:var(--ink-2)}.sheet{width:100%;max-width:720px;max-height:88dvh;margin:auto auto 0;padding:0;border:0;border-radius:20px 20px 0 0;background:var(--bg);color:var(--ink);overflow:auto}.sheet::backdrop{background:#0a100d8c}.sheet-body{display:flex;flex-direction:column;gap:14px;padding:18px 16px calc(var(--safe-b) + 20px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sheet-head h2{font-size:1.1875rem;font-weight:700}.sheet-text{color:var(--ink-2)}.sheet-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.sheet-actions .btn-primary,.sheet-actions .btn-danger{flex:1}.result-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.result-side{display:flex;flex-direction:column;gap:8px;min-width:0}.btn-win{flex-direction:column;gap:2px;min-height:96px;padding:12px 8px;border:2px solid var(--brand);background:var(--brand-soft);color:var(--brand-strong)}.btn-win.is-current{background:var(--brand);color:var(--on-brand)}.win-names{font-size:1rem;line-height:1.35}.win-label{font-size:.8125rem;font-weight:700;opacity:.85}.input-score{font-size:1.25rem;font-weight:700;font-variant-numeric:tabular-nums;text-align:center}.toast{position:fixed;inset:auto 12px calc(var(--tab-h) + var(--safe-b) + 12px) 12px;z-index:30;width:auto;height:auto;max-width:696px;margin:0 auto;padding:12px 16px;border:0;border-radius:var(--radius);overflow:visible;background:var(--ink);color:var(--bg);box-shadow:var(--shadow);font-size:.9375rem;font-weight:600}.toast.is-error{background:var(--danger);color:var(--surface)}@media(prefers-reduced-motion:no-preference){.toast,.select-bar{animation:rise .16s ease-out}.sheet[open]{animation:sheet-up .18s ease-out}}@keyframes rise{0%{opacity:0;transform:translateY(8px)}}@keyframes sheet-up{0%{transform:translateY(24px);opacity:.6}}
