:root { --fourth-ink:#eef6f8; --fourth-muted:#9db3bd; --fourth-line:rgba(255,255,255,.15); --fourth-bg:#071524; --fourth-card:#0d2234; --fourth-teal:#61d8d3; --fourth-pink:#ec1f83; --fourth-gold:#f3ca58; }
* { box-sizing:border-box; }
body { margin:0; color:var(--fourth-ink); background:radial-gradient(circle at 85% 0%,#145262 0,transparent 32%),linear-gradient(145deg,#061321,#0a1c31 55%,#081c2c); font:15px/1.45 "Pretendard","Noto Sans KR",system-ui,sans-serif; }
button,input { font:inherit; }
.fourth-topbar { display:grid; grid-template-columns:150px 1fr auto; gap:28px; align-items:center; padding:22px clamp(18px,5vw,72px); border-bottom:1px solid var(--fourth-line); background:rgba(4,13,25,.75); }
.fourth-brand { display:flex; align-items:center; gap:7px; color:var(--fourth-teal); line-height:.76; letter-spacing:-1px; }.fourth-brand span { font-size:11px; font-weight:900; writing-mode:vertical-rl; }.fourth-brand strong { color:#fff; font-size:21px; }.fourth-topbar h1,.fourth-intro h2 { margin:0; letter-spacing:-.04em; }.fourth-topbar h1 { font-size:clamp(18px,2vw,28px); }.fourth-eyebrow { margin:0 0 4px; color:var(--fourth-teal); font-size:11px; font-weight:900; letter-spacing:.11em; }.fourth-date { margin:0; color:var(--fourth-muted); font-size:12px; font-weight:800; text-align:right; }
.fourth-shell { max-width:1500px; margin:auto; padding:28px clamp(16px,4vw,54px) 70px; }.fourth-intro { display:flex; justify-content:space-between; gap:24px; align-items:end; margin-bottom:24px; }.fourth-intro h2 { font-size:clamp(32px,5vw,54px); }.fourth-intro p:not(.fourth-eyebrow) { margin:4px 0 0; color:var(--fourth-muted); }
.fourth-grade-tabs { display:grid; grid-template-columns:repeat(5,minmax(54px,1fr)); gap:6px; width:min(540px,100%); }.fourth-grade-tab { min-height:52px; border:1px solid var(--fourth-line); border-radius:10px; color:var(--fourth-ink); background:rgba(255,255,255,.05); cursor:pointer; font-weight:800; }.fourth-grade-tab span { display:block; color:var(--fourth-muted); font-size:11px; }.fourth-grade-tab.is-active { border-color:var(--fourth-teal); background:rgba(97,216,211,.15); color:#fff; }
.fourth-hero { display:grid; grid-template-columns:1.3fr .7fr; gap:14px; margin-bottom:18px; }.fourth-hero-card,.fourth-panel,.fourth-group,.fourth-final { border:1px solid var(--fourth-line); border-radius:14px; background:linear-gradient(145deg,rgba(18,53,70,.93),rgba(7,22,38,.93)); box-shadow:0 12px 28px rgba(0,0,0,.18); }.fourth-hero-card { padding:20px; }.fourth-hero-card h3 { margin:0; font-size:20px; }.fourth-progress { height:8px; margin:15px 0 7px; overflow:hidden; border-radius:99px; background:rgba(255,255,255,.13); }.fourth-progress span { display:block; height:100%; background:linear-gradient(90deg,var(--fourth-teal),var(--fourth-gold)); }.fourth-next { display:grid; gap:3px; padding:20px; }.fourth-next strong { font-size:16px; }.fourth-next small { color:var(--fourth-muted); }
.fourth-panel { margin-top:16px; overflow:hidden; }.fourth-panel > header { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:15px 18px; border-bottom:1px solid var(--fourth-line); background:rgba(255,255,255,.04); }.fourth-panel h3 { margin:0; font-size:16px; }.fourth-panel header span { color:var(--fourth-muted); font-size:12px; }.fourth-source-button { min-height:36px; border:1px solid rgba(97,216,211,.5); border-radius:8px; color:var(--fourth-teal); background:transparent; cursor:pointer; font-weight:800; }
.fourth-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(285px,1fr)); gap:12px; padding:14px; }.fourth-group { overflow:hidden; }.fourth-group header { display:flex; justify-content:space-between; padding:12px 14px; background:rgba(255,255,255,.05); }.fourth-group header strong { color:var(--fourth-teal); }.fourth-group header span { color:var(--fourth-muted); font-size:12px; }.fourth-standings { width:100%; border-collapse:collapse; font-size:12px; }.fourth-standings th,.fourth-standings td { padding:7px 5px; border-bottom:1px solid rgba(255,255,255,.08); text-align:center; }.fourth-standings th { color:var(--fourth-muted); font-weight:600; }.fourth-standings td:nth-child(2) { text-align:left; font-weight:700; }.fourth-team { display:flex; align-items:center; gap:7px; min-width:0; }.fourth-team img,.team-initial { flex:0 0 28px; width:28px; height:28px; object-fit:contain; border-radius:50%; background:rgba(255,255,255,.94); }.team-initial { display:grid; place-items:center; color:#10273a; font-size:11px; font-weight:900; }.fourth-team span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fourth-match-list { display:grid; gap:1px; background:var(--fourth-line); }.fourth-match { display:grid; grid-template-columns:74px minmax(0,1fr) 52px minmax(0,1fr); align-items:center; gap:8px; padding:10px 14px; background:rgba(4,18,33,.91); }.fourth-match-meta { color:var(--fourth-muted); font-size:11px; }.fourth-match .fourth-team { justify-content:flex-end; }.fourth-match .fourth-team:last-child { justify-content:flex-start; }.fourth-score { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:3px; text-align:center; }.fourth-score strong { padding:4px; border-radius:6px; color:#0b2333; background:#eaf6f7; }.fourth-score-input,.fourth-winner-select { width:100%; min-height:36px; border:1px solid var(--fourth-teal); border-radius:6px; color:#082333; background:#f5fbfb; text-align:center; font-weight:900; }.fourth-winner-select { grid-column:1 / -1; min-height:30px; font-size:11px; }
.fourth-finals { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:14px; padding:14px; }.fourth-final { padding:14px; }.fourth-final h4 { margin:0 0 10px; color:var(--fourth-pink); font-size:17px; }.fourth-final.bracket h4 { color:var(--fourth-gold); }.fourth-bracket-rounds { display:grid; grid-template-columns:repeat(3,minmax(180px,1fr)); gap:10px; overflow-x:auto; padding-bottom:2px; }.fourth-bracket-round { min-width:180px; padding:0 10px; border-left:1px solid rgba(243,202,88,.34); }.fourth-bracket-round:first-child { border-left:0; padding-left:0; }.fourth-bracket-round h5 { margin:0; color:var(--fourth-gold); font-size:12px; letter-spacing:.08em; }.fourth-final-match { display:grid; gap:7px; padding:10px 0; border-top:1px solid rgba(255,255,255,.1); }.fourth-final-match:first-of-type { border-top:0; }.fourth-final-meta { display:flex; justify-content:space-between; color:var(--fourth-muted); font-size:11px; }.fourth-final-sides { display:grid; grid-template-columns:1fr 46px 1fr; align-items:center; gap:6px; font-size:13px; }.fourth-final-sides > span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.fourth-final-sides > span:last-child { text-align:right; }.fourth-final-sides .fourth-score { font-size:11px; }
.fourth-dialog { width:min(96vw,1300px); padding:0; border:1px solid var(--fourth-line); background:#061321; }.fourth-dialog::backdrop { background:rgba(0,0,0,.8); }.fourth-dialog button { position:fixed; top:18px; right:22px; width:44px; height:44px; border:0; border-radius:50%; color:#041624; background:#fff; font-size:28px; cursor:pointer; }.fourth-dialog img { display:block; width:100%; max-height:90vh; object-fit:contain; }
/* Operator touch controls: two 48px targets, full-width penalty selector. */
body[data-page="fourth-input"] .fourth-score-input { min-width:0; min-height:48px; font-size:16px; }
body[data-page="fourth-input"] .fourth-score { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
body[data-page="fourth-input"] .fourth-winner-select { min-height:48px; font-size:12px; }
body[data-page="fourth-input"] .fourth-final-sides { grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr); }
body[data-page="fourth-input"] .fourth-final-sides > .fourth-score { overflow:visible; }
body[data-page="fourth-input"] .fourth-bracket-rounds { grid-template-columns:repeat(3,minmax(260px,1fr)); }
body[data-page="fourth-input"] .fourth-final { min-width:0; }
body[data-page="fourth-input"] .fourth-bracket-round { min-width:260px; }
body[data-page="fourth-input"] .fourth-match { grid-template-columns:58px minmax(0,1fr) 104px minmax(0,1fr); }
@media (max-width:720px) { .fourth-topbar { grid-template-columns:1fr auto; gap:14px; padding:18px; }.fourth-brand { grid-row:1 / span 2; }.fourth-date { grid-column:2; grid-row:1; }.fourth-topbar h1 { font-size:17px; }.fourth-intro { display:grid; }.fourth-grade-tabs { width:100%; }.fourth-hero { grid-template-columns:1fr; }.fourth-match { grid-template-columns:58px minmax(0,1fr) 45px minmax(0,1fr); padding:9px; gap:4px; }.fourth-match .fourth-team { font-size:12px; }.fourth-match .fourth-team img,.team-initial { display:none; }.fourth-finals { grid-template-columns:1fr; }.fourth-bracket-rounds { grid-template-columns:repeat(3,minmax(150px,1fr)); }.fourth-bracket-round { min-width:150px; }.fourth-panel > header { align-items:flex-start; }.fourth-panel > header h3 { max-width:58%; } }
