.ball-host{--paper:#fffdf8;--ink:#294338;--muted:#809184;--line:#e3e7da;--orange:#f47745;--bg:#f9f7ef;font-family:system-ui,-apple-system,'Noto Sans KR',sans-serif;color:var(--ink);background:var(--bg)}:where(.ball-host) *{box-sizing:border-box}:where(.ball-host) .ball-page{margin:0}:where(.ball-host) button,:where(.ball-host) input,:where(.ball-host) select{font:inherit;color:inherit}:where(.ball-host) button{cursor:pointer}:where(.ball-host) button:disabled{cursor:default;opacity:.45}:where(.ball-host) button:focus-visible,:where(.ball-host) a:focus-visible,:where(.ball-host) input:focus-visible,:where(.ball-host) select:focus-visible{outline:3px solid #f4774599;outline-offset:3px}:where(.ball-host) a{color:inherit;text-decoration:none}:where(.ball-host) .site-header{display:flex;align-items:center;gap:14px;border-bottom:1px solid var(--line);height:62px;max-width:1440px;margin:auto;padding:0 24px}:where(.ball-host) .brand{font-size:20px;font-weight:900;letter-spacing:-.7px}:where(.ball-host) .brand span{font-size:9px;letter-spacing:1.8px;vertical-align:middle;margin-left:8px;padding:4px 6px;border-radius:4px;background:#e8eedf;color:#6d896b}:where(.ball-host) .test-badge{font-size:10px;color:#bc7346}:where(.ball-host) .back-link{font-size:11px;margin-left:auto;color:#648167}:where(.ball-host) .ball-page{max-width:1440px;margin:auto;padding:0 24px}:where(.ball-host) .intro{display:flex;justify-content:space-between;align-items:center;padding:20px 0 18px}:where(.ball-host) .eyebrow{font-size:10px;font-weight:700;color:#749071;letter-spacing:.8px;margin:0 0 5px}:where(.ball-host) .ball-title{margin:0;font-size:36px;letter-spacing:-1.8px;line-height:1.2}:where(.ball-host) .ball-title span{color:var(--orange)}:where(.ball-host) .ball-title i{display:inline-block;width:11px;height:11px;border-radius:50%;background:var(--orange);margin:0 0 2px 7px}:where(.ball-host) .intro p:last-child{margin:8px 0 0;font-size:12px;color:#839080}:where(.ball-host) .intro-number{text-align:right}:where(.ball-host) .intro-number b{display:block;font-size:38px;line-height:1;letter-spacing:-2px;color:#527a5c}:where(.ball-host) .intro-number span{font-size:10px;color:#889680}:where(.ball-host) .game-layout{display:grid;grid-template-columns:232px minmax(0,1fr);gap:16px;align-items:start}:where(.ball-host) .setup{background:var(--paper);border:1px solid var(--line);padding:16px;border-radius:12px}:where(.ball-host) .section-heading{display:flex;justify-content:space-between;align-items:center}:where(.ball-host) .section-heading h2,:where(.ball-host) .live-heading h2{font-size:13px;margin:0}:where(.ball-host) .section-heading>span{font-size:10px;background:#edf1e5;padding:3px 6px;border-radius:4px}:where(.ball-host) .hint{font-size:10px;line-height:1.6;color:var(--muted);margin:7px 0 10px}:where(.ball-host) .person-row{display:flex;gap:7px;align-items:center;margin-bottom:6px}:where(.ball-host) .person-color{width:9px;height:9px;border-radius:50%;flex:none}:where(.ball-host) .person-row input{width:100%;min-width:0;border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 9px;font-size:12px;height:34px}:where(.ball-host) .remove-person{width:28px;height:30px;border:0;background:transparent;color:#94a08e}:where(.ball-host) .add-button{width:100%;border:1px dashed #ced8c2;border-radius:6px;padding:8px;font-size:11px;background:#f8faf2;color:#6d876a}:where(.ball-host) .ball-setting{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}:where(.ball-host) .ball-setting>label{display:block;font-size:11px;font-weight:700}:where(.ball-host) .number-row{display:flex;align-items:baseline;gap:7px;margin:8px 0}:where(.ball-host) .number-row input{font-size:24px;font-weight:800;width:105px;min-width:0;padding:4px 8px;border:1px solid var(--line);border-radius:7px;background:white}:where(.ball-host) .number-row>span{font-size:11px;color:var(--muted)}:where(.ball-host) input[type=range]{width:100%;accent-color:var(--orange)}:where(.ball-host) .range-labels{display:flex;justify-content:space-between;font-size:9px;color:var(--muted)}:where(.ball-host) .total-box{display:grid;grid-template-columns:1fr auto;align-items:center;gap:5px;margin:15px 0 0;padding:11px;background:#eef3e7;border-radius:7px}:where(.ball-host) .total-box>span{font-size:10px;color:#6c8468}:where(.ball-host) .total-box b{font-size:24px;line-height:1;letter-spacing:-.5px}:where(.ball-host) .total-box small{grid-column:1/-1;font-size:10px;color:#809273}:where(.ball-host) .validation{color:#b14d31;font-size:11px;line-height:1.5;min-height:0;margin:8px 0}:where(.ball-host) .validation:empty{display:none}:where(.ball-host) .rules{border-top:1px solid var(--line);padding-top:10px;margin-top:12px;font-size:10px;line-height:1.8;color:#809174}:where(.ball-host) .rules summary{cursor:pointer;font-weight:700}:where(.ball-host) .rules ol{padding-left:17px;margin:8px 0}:where(.ball-host) .rules li{margin:5px 0}:where(.ball-host) .game-column{min-width:0}:where(.ball-host) .game-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:7px;gap:8px}:where(.ball-host) .toolbar-status{display:flex;align-items:center;gap:7px;font-size:11px}:where(.ball-host) .toolbar-status b{font-size:11px}:where(.ball-host) #ball-game-time{font-variant-numeric:tabular-nums;font-size:10px;color:#8b9984}:where(.ball-host) #ball-state-dot{width:7px;height:7px;border-radius:50%;background:#9ebc8e}:where(.ball-host) .tools{display:flex;align-items:center;gap:7px}:where(.ball-host) .speed-label{display:flex;align-items:center;gap:5px;font-size:10px}:where(.ball-host) .speed-label select{padding:5px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:10px;min-height:30px}:where(.ball-host) .icon-button{width:32px;height:30px;font-size:18px;border:1px solid var(--line);background:#fff;border-radius:5px}:where(.ball-host) .arena-wrap{position:relative;width:100%;aspect-ratio:8/5;background:#132e28;border:1px solid #274c3d;border-radius:12px;overflow:hidden;touch-action:none}:where(.ball-host) .arena-wrap canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}:where(.ball-host) .arena-wrap canvas:active{cursor:grabbing}:where(.ball-host) .arena-topline{position:absolute;top:10px;left:12px;right:12px;display:flex;justify-content:space-between;pointer-events:none;font-size:8px;letter-spacing:1.6px;color:#779381}:where(.ball-host) .arena-zoom{position:absolute;right:8px;bottom:8px;display:flex;gap:3px}:where(.ball-host) .arena-zoom button{height:28px;min-width:28px;border:1px solid #4e6b54;border-radius:5px;background:#17382ce8;color:#dce7d0;font-size:11px;padding:2px 7px}:where(.ball-host) .arena-hint{position:absolute;left:12px;bottom:5px;font-size:8px;color:#789582;margin:0;pointer-events:none;max-width:55%;line-height:1.5}:where(.ball-host) #ball-tooltip{position:absolute;left:12px;top:30px;max-width:80%;background:#f1f2ddeb;color:#345040;border-radius:5px;padding:6px 9px;font-size:11px;pointer-events:none}:where(.ball-host) .game-actions{display:flex;gap:8px;margin:8px 0 14px}:where(.ball-host) .primary,:where(.ball-host) .secondary{display:flex;align-items:center;justify-content:center;gap:8px;border-radius:7px;min-height:39px;padding:9px 14px;font-size:12px;font-weight:700}:where(.ball-host) .primary{background:var(--orange);border:1px solid var(--orange);color:white;flex:1}:where(.ball-host) .primary span{margin-left:auto;font-size:18px}:where(.ball-host) .secondary{background:#fff;border:1px solid var(--line);color:#7d9177}:where(.ball-host) .live-heading{display:flex;justify-content:space-between;gap:10px;margin-bottom:7px}:where(.ball-host) .live-heading h2{font-size:11px}:where(.ball-host) .live-heading>span{font-size:9px;color:#91a087}:where(.ball-host) .ownership-bar{display:flex;height:9px;gap:2px;border-radius:4px;overflow:hidden;background:#e3e9d9}:where(.ball-host) .ownership-bar>span{height:100%;transition:width .15s}:where(.ball-host) .scoreboard{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:8px}:where(.ball-host) .score-row{min-width:0;display:grid;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:5px;padding:6px 7px;border:1px solid var(--line);border-radius:6px;background:#fff}:where(.ball-host) .score-row .dot{width:7px;height:7px;border-radius:50%}:where(.ball-host) .score-row .name{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ball-host) .score-row b{font-size:11px;font-variant-numeric:tabular-nums}:where(.ball-host) .score-row small{grid-column:2/-1;font-size:8px;color:#91a085}:where(.ball-host) .score-row.eliminated{opacity:.4}:where(.ball-host) footer{display:flex;justify-content:space-between;gap:12px;padding:16px 0;margin-top:12px;border-top:1px solid var(--line);font-size:9px;color:#98a28f}:where(.ball-host) dialog{width:min(390px,calc(100vw - 24px));max-height:90dvh;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:28px;text-align:center;color:var(--ink)}:where(.ball-host) dialog::backdrop{background:#102a2880;backdrop-filter:blur(3px)}:where(.ball-host) dialog h2{font-size:20px;margin:0 0 18px}:where(.ball-host) .close{position:absolute;right:9px;top:7px;width:30px;height:30px;font-size:22px;background:transparent;border:0;color:#98a48d}:where(.ball-host) .winner-circle{width:78px;height:78px;border-radius:50%;margin:auto;box-shadow:inset 0 0 0 5px #fff4}:where(.ball-host) #ball-winner-name{font-size:27px;font-weight:900;overflow-wrap:anywhere;margin:15px 0 7px}:where(.ball-host) #ball-result-detail{font-size:11px;color:#8a9a81;margin:0 0 21px;line-height:1.8}:where(.ball-host) dialog .primary{width:100%}:where(.ball-host) .game-column.expanded{position:fixed;inset:0;z-index:50;background:var(--bg);padding:8px;overflow:auto;display:flex;flex-direction:column}:where(.ball-host) .game-column.expanded .arena-wrap{flex:1;min-height:180px;aspect-ratio:auto}:where(.ball-host) .game-column.expanded .game-actions{flex:none;margin:6px 0}:where(.ball-host) .game-column.expanded .scoreboard{grid-template-columns:repeat(5,minmax(0,1fr))}:where(.ball-host) .game-column.expanded .arena-hint{bottom:7px}:where(.ball-host) .game-column.expanded .score-row{padding:3px 5px}:where(.ball-host) .game-column.expanded .live-heading{margin:3px 0}:where(.ball-host) .game-column.expanded .scoreboard{margin-top:4px}:where(.ball-host) .game-column.expanded .score-row small{display:none}:where(.ball-host) .game-column.expanded .ownership-bar{height:6px}
@media(max-width:850px){:where(.ball-host) .game-layout{grid-template-columns:190px minmax(0,1fr);gap:10px}:where(.ball-host) .setup{padding:12px}:where(.ball-host) .scoreboard{grid-template-columns:repeat(2,minmax(0,1fr))}:where(.ball-host) .intro-number{display:none}}
@media(max-width:600px){:where(.ball-host) .site-header{height:48px;padding:0 10px;gap:8px}:where(.ball-host) .brand{font-size:17px}:where(.ball-host) .test-badge{font-size:9px}:where(.ball-host) .ball-page{padding:0 8px}:where(.ball-host) .intro{padding:12px 2px}:where(.ball-host) .ball-title{font-size:28px}:where(.ball-host) .intro p:last-child{font-size:11px}:where(.ball-host) .game-layout{display:flex;flex-direction:column;gap:12px}:where(.ball-host) .setup{width:100%;padding:10px}:where(.ball-host) .setup #ball-participant-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin-top:8px}:where(.ball-host) .person-row{gap:4px;margin:0}:where(.ball-host) .person-row input{font-size:12px;padding:6px;height:34px}:where(.ball-host) .remove-person{width:24px;flex:none}:where(.ball-host) .add-button{margin-top:8px;min-height:32px}:where(.ball-host) .ball-setting{position:relative;margin-top:9px;padding-top:9px}:where(.ball-host) .number-row{margin:5px 0}:where(.ball-host) .number-row input{font-size:20px;width:90px}:where(.ball-host) .ball-setting>input[type=range]{position:absolute;right:0;top:28px;width:calc(100% - 130px)}:where(.ball-host) .range-labels{position:absolute;right:0;bottom:0;width:calc(100% - 130px)}:where(.ball-host) .total-box{margin-top:8px;padding:8px 10px;grid-template-columns:1fr auto auto;gap:8px}:where(.ball-host) .total-box small{grid-column:auto}:where(.ball-host) .total-box b{font-size:21px}:where(.ball-host) #ball-limit-note{margin:5px 0 0}:where(.ball-host) .rules{margin-top:8px;padding-top:7px}:where(.ball-host) .game-column{width:100%}:where(.ball-host) .arena-wrap{aspect-ratio:6/5;border-radius:8px}:where(.ball-host) .game-actions{margin-bottom:11px}:where(.ball-host) .scoreboard{grid-template-columns:repeat(3,minmax(0,1fr))}:where(.ball-host) .score-row{padding:5px}:where(.ball-host) .game-column.expanded .scoreboard{grid-template-columns:repeat(3,minmax(0,1fr))}:where(.ball-host) footer{flex-direction:column;gap:5px;margin-top:10px;padding:10px 2px}:where(.ball-host) .arena-hint{font-size:7px}}
@media(prefers-reduced-motion:reduce){:where(.ball-host) *{transition:none!important}}
.ball-host .ball-page{padding:0;max-width:none}
@media(max-width:600px){.ball-host .toolbar-status{flex-wrap:wrap}.ball-host .game-toolbar{align-items:flex-start}.ball-host .tools{flex:none}}

.ball-host #ball-countdown{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;user-select:none;font-size:clamp(150px,28vw,360px);font-weight:900;color:#ffffff29;line-height:1;font-variant-numeric:tabular-nums}
.ball-host #ball-countdown[hidden]{display:none}
.ball-host .ball-replay-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
.ball-host .ball-replay-actions button{min-width:0;padding:10px 6px;font-size:11px;white-space:normal}
.ball-host #ball-replay-status{font-size:11px;line-height:1.6;color:#7d9177;margin:10px 0 16px}
@media(max-width:600px){.ball-host dialog{padding:24px 18px}.ball-host #ball-winner-name{font-size:22px}.ball-host #ball-result-detail{margin-bottom:14px}}

.ball-host .duration-setting{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0}
.ball-host .duration-setting label{font-size:12px;font-weight:700}
.ball-host .duration-setting select{min-height:36px;min-width:108px;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}
