:root{--bg: #16181c;--surface: #1f2228;--surface-active: #282c35;--border: #2e333d;--text: #d6dae2;--muted: #8b93a1}*{box-sizing:border-box}html,body,#app{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.35}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1.25rem;border-bottom:1px solid var(--border);background:var(--surface)}.brand{margin:0;font-size:1.1rem;font-weight:600}.nav{display:flex;align-items:center;gap:.5rem}.btn{padding:.45rem .9rem;border:1px solid var(--border);border-radius:4px;background:var(--bg);color:var(--text);font:inherit;font-size:.9rem;cursor:pointer}.btn:hover{background:var(--surface-active)}.btn.is-active{background:var(--surface-active);border-color:var(--muted)}.btn-subtle{color:var(--muted)}.content{flex:1;padding:1rem 1.25rem}.muted{color:var(--muted);font-size:.85rem}.live-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:1.25rem;min-height:calc(100vh - 5.25rem)}.bracket-panel{display:flex;flex-direction:column}.bracket-grid{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(150px,.75fr);gap:1rem}.round-col{display:flex;flex-direction:column}.round-title{margin:0 0 .75rem;font-size:.9rem;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}.round-matches{flex:1;display:flex;flex-direction:column;justify-content:space-around;gap:.75rem}.match-card{border:1px solid var(--border);border-radius:4px;background:var(--surface);padding:.5rem}.match-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:.4rem;min-height:1.35rem}.match-label{font-size:.75rem;color:var(--muted)}.reset-btn{padding:.15rem .45rem;border:1px solid var(--border);border-radius:3px;background:var(--bg);color:var(--muted);font:inherit;font-size:.72rem;cursor:pointer}.reset-btn:hover{color:var(--text);border-color:var(--muted)}.match-teams{display:flex;flex-direction:column;gap:.35rem}.team-slot{width:100%;text-align:left;padding:.5rem .65rem;border:1px solid var(--border);border-left:4px solid var(--border);border-radius:3px;background:var(--bg);color:var(--text);font:inherit;display:flex;flex-direction:column;gap:.15rem}.team-slot.is-playable{cursor:pointer}.team-slot.is-playable:hover{background:var(--surface-active)}.team-slot:disabled{cursor:default}.team-slot.is-empty{color:var(--muted)}.team-slot.is-winner{background:var(--surface-active);border-color:var(--muted)}.team-slot.is-loser{opacity:.45}.slot-name{font-size:.95rem;font-weight:600}.slot-players{font-size:.78rem;color:var(--muted)}.champion-card{border:1px solid var(--border);border-left:4px solid var(--border);border-radius:4px;background:var(--surface);padding:.9rem}.champion-name{font-size:1.15rem;font-weight:600;margin-bottom:.25rem}.rules-panel{border:1px solid var(--border);border-radius:4px;background:var(--surface);padding:.85rem 1rem;overflow-y:auto;max-height:calc(100vh - 5.25rem)}.rules-list{display:flex;flex-direction:column;gap:.6rem}.rule-title{margin:0 0 .15rem;font-size:.88rem;font-weight:600}.rule-line{margin:0;font-size:.8rem;color:var(--muted)}.rule-details{margin:.2rem 0 0;padding-left:1.1rem;font-size:.78rem;color:var(--muted)}.teams-section{max-width:1120px;margin:0 auto}.section-bar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.section-bar h2{margin:0 0 .2rem;font-size:1.1rem}.section-bar p{margin:0}.teams-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:.85rem}.team-card{border:1px solid var(--border);border-left:4px solid var(--border);border-radius:4px;background:var(--surface);padding:.8rem;display:flex;flex-direction:column;gap:.5rem}.team-card-head{display:flex;align-items:center;justify-content:space-between}.team-meta{font-size:.8rem;color:var(--muted)}.color-picker{display:flex;align-items:center;gap:.35rem;cursor:pointer}.color-picker input{width:26px;height:22px;padding:0;border:1px solid var(--border);background:transparent;cursor:pointer}.input{width:100%;padding:.4rem .55rem;border:1px solid var(--border);border-radius:3px;background:var(--bg);color:var(--text);font:inherit;font-size:.88rem}.input-name{font-weight:600}.players-inputs{display:flex;flex-direction:column;gap:.35rem}@media(max-width:1024px){.live-layout{grid-template-columns:1fr}.rules-panel{max-height:none}}@media(max-width:720px){.bracket-grid{grid-template-columns:1fr}}
