:root{color-scheme:dark;--bg:#0b0e14;--panel:#151922;--panel2:#1b202b;--line:#2b3240;--ink:#eef0f5;--muted:#8d96a6;--red:#f1163e;--red2:#c60d31;--green:#5ae1a1;--round:10px;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif}
*{box-sizing:border-box}html,body,#app{margin:0;min-width:0;min-height:100%;height:100%}body{background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}input,select{color:var(--ink);background:#10151e;border:1px solid #373f4e;border-radius:7px;min-width:0;outline:none}input:focus,select:focus{border-color:#fa3158;box-shadow:0 0 0 2px #ed174022}input[type=text],input[type=number],select{height:35px;padding:0 10px}input[type=checkbox]{accent-color:var(--red)}input[type=file]{display:none}.app-shell{height:100vh;display:grid;grid-template-rows:62px minmax(0,1fr);overflow:hidden}.topbar{height:62px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 20px;background:#11151d;gap:14px}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-mark{width:34px;height:34px;border:1px solid #b80c32;background:linear-gradient(145deg,#f11a42,#950e2b);clip-path:polygon(0 0,100% 0,100% 72%,76% 100%,0 100%);font:900 13px Impact,'Arial Narrow',sans-serif;display:flex;align-items:center;justify-content:center;letter-spacing:1px}.brand-copy{min-width:0}.brand-title{font-weight:800;font-size:14px;letter-spacing:.06em;white-space:nowrap}.brand-sub{color:var(--muted);font-size:10px;letter-spacing:.095em;white-space:nowrap;margin-top:3px}.top-actions{display:flex;align-items:center;gap:8px}.live-pill{display:inline-flex;gap:7px;align-items:center;padding:7px 10px;border:1px solid #35433b;border-radius:6px;color:#a0d2bb;font-size:11px;font-weight:700;white-space:nowrap}.live-dot{background:var(--green);height:7px;width:7px;border-radius:50%;box-shadow:0 0 10px #5ae1a1aa}.top-action{background:#222835;border:1px solid #383e4b;color:#f2f3f7;border-radius:7px;padding:9px 12px;font-weight:750;font-size:12px;white-space:nowrap}.top-action:hover,.ghost:hover,.mini-btn:hover{filter:brightness(1.25)}.top-action.primary{background:var(--red);border-color:#f1365a;color:white}.workspace{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:0}.sidebar{background:#151a23;border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0;overflow:hidden}.tabbar{display:grid;grid-template-columns:repeat(4,1fr);border-bottom:1px solid var(--line);flex:none}.tab{padding:15px 2px 13px;background:transparent;border:0;border-bottom:2px solid transparent;color:#9ea7b5;font-size:11px;font-weight:800;letter-spacing:.035em}.tab.active{color:#fff;border-bottom-color:var(--red);background:#20232d}.pane{overflow-y:auto;min-height:0;padding:15px 16px 30px;scrollbar-width:thin;scrollbar-color:#3a4350 transparent}.panel-section{margin:0 0 18px}.section-kicker{color:#f5f5f8;font-size:11px;letter-spacing:.095em;font-weight:850;text-transform:uppercase;margin:0 0 11px;display:flex;justify-content:space-between;align-items:center}.section-hint{font-size:11px;color:var(--muted);line-height:1.5;margin:7px 0 13px}.control-row{margin:0 0 12px}.field-label{font-size:10px;letter-spacing:.065em;color:#a1acbd;font-weight:800;text-transform:uppercase;display:block;margin-bottom:6px}.field-full{width:100%}.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.three-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.rule{height:1px;background:#343c48;margin:17px 0}.rounded-panel{border:1px solid #303843;border-radius:9px;background:#1b202b;padding:12px;margin-bottom:13px}.teams-editor{display:grid;gap:12px}.team-edit{padding:11px;border:1px solid #323a46;background:#141922;border-radius:8px}.team-edit-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;color:#c5ceda;font-size:11px;font-weight:800}.team-edit-grid{display:grid;grid-template-columns:minmax(0,1fr) 68px;gap:8px}.team-edit .score-field{text-align:center;font-weight:800;font-size:16px}.team-logo-row{margin-top:9px;display:flex;gap:8px;align-items:center}.team-logo-thumb{width:30px;height:30px;border:1px solid #455061;background:#2f3846;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:4px}.team-logo-thumb img{width:100%;height:100%;object-fit:contain;padding:3px}.team-logo-thumb b{font-size:10px;color:#fff}.mini-btn{padding:7px 9px;border:1px solid #374253;color:#d3dbe6;background:#252d39;border-radius:6px;font-size:11px;font-weight:750}.muted-small{font-size:10px;color:var(--muted);line-height:1.5}.ghost{border:1px solid #394454;background:#252c37;border-radius:7px;color:#e4ebf2;padding:9px 12px;font-size:11px;font-weight:750}.ghost.fill{width:100%}.ghost.danger{color:#ffa4b3;border-color:#74344a}.toggle{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid #292f39;gap:10px;color:#d6dce5;font-size:12px}.toggle:last-child{border-bottom:0}.toggle input{width:17px;height:17px;flex:none}.preview-region{min-width:0;min-height:0;display:flex;flex-direction:column;padding:16px 19px 14px;gap:11px;background:radial-gradient(ellipse at 50% 30%,#16191f,#0b0e14 70%)}.preview-header{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px}.preview-label{display:flex;flex-direction:column;gap:4px}.preview-label strong{font-size:12px;text-transform:uppercase;letter-spacing:.11em}.preview-label span{font-size:11px;color:var(--muted)}.preview-tags{display:flex;gap:7px}.preview-tag{font-size:10px;font-weight:700;color:#aeb9c9;border:1px solid #363d48;border-radius:5px;padding:6px 8px}.preview-frame{flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.preview-viewport{position:relative;aspect-ratio:16/9;width:min(100%,calc((100vh - 190px)*16/9));max-height:calc(100vh - 190px);background:#000;overflow:hidden;border:1px solid #323a44;box-shadow:0 18px 40px #0008;border-radius:3px}.stage{position:absolute;left:50%;top:50%;height:1080px;width:1920px;transform-origin:center center;overflow:hidden;background:#000;color:white;will-change:transform;pointer-events:none}.stage video{position:absolute;width:100%;height:100%;inset:0;object-fit:fill;transition:opacity .38s ease}.stage .atmosphere{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse at 51% 36%,#be001511,transparent 27%),radial-gradient(ellipse at 44% 82%,#8804110b,transparent 25%)}.stage .bracket-art{position:absolute;inset:0;overflow:hidden;transition:opacity .38s ease,transform .5s ease}.stage.scene-hidden .bracket-art{opacity:0;transform:translateY(28px)}.stage .heading-main{position:absolute;left:200px;top:40px;width:1520px;text-align:center;color:#ef163b;text-transform:uppercase;font-size:150px;line-height:1.04;font-family:Impact,'Arial Narrow','Helvetica Neue Condensed',sans-serif;font-stretch:condensed;font-weight:900;letter-spacing:-2.8px;white-space:nowrap;transform:scaleX(.45);text-shadow:0 1px 0 #a10d28}.stage .heading-sub{position:absolute;left:50%;top:176px;transform:translateX(-50%);padding:1px 12px 2px;color:#141414;background:#e3e0dc;font-family:'Arial Narrow',Arial,sans-serif;font-weight:800;font-size:24px;line-height:28px;white-space:nowrap;text-transform:uppercase}.stage .round-head{position:absolute;height:34px;border:2px solid #890a22;background:#080307d6;color:#ee123d;display:flex;align-items:center;justify-content:space-between;padding:0 6px;text-transform:uppercase;font:800 18px 'Arial Narrow',Arial,sans-serif;letter-spacing:-.4px;white-space:nowrap;overflow:hidden}.stage .round-head span:last-child{font-size:18px}.stage .bracket-svg{position:absolute;inset:0;width:1920px;height:1080px;overflow:visible}.stage .match-info{position:absolute;width:293px;height:24px;color:#dad9d4;display:flex;align-items:center;justify-content:space-between;font:700 15px 'Arial Narrow',Arial,sans-serif;text-transform:uppercase;white-space:nowrap}.stage .match-row{position:absolute;display:flex;align-items:stretch;background:#d9d9d9;color:#0a0a0a;width:293px;height:42px;overflow:hidden;transition:opacity .18s}.stage .match-row.is-loser{opacity:.53}.stage .match-row .icon-cell{width:42px;flex:none;background:#ee1640;display:flex;justify-content:center;align-items:center;overflow:hidden}.stage .match-row .icon-cell img{width:32px;height:32px;object-fit:contain;filter:brightness(0)}.stage .match-row .icon-cell .default-icon{color:#111;font:900 24px Impact,'Arial Narrow',sans-serif}.stage .match-row.is-loser .icon-cell{background:#343941}.stage .match-row.is-loser .icon-cell img{filter:grayscale(1) brightness(2)}.stage .match-row .team-name{min-width:0;padding:0 5px 0 6px;display:flex;align-items:center;flex:1;font:900 23px Impact,'Arial Narrow',sans-serif;letter-spacing:-.55px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:clip}.stage .match-row .seed-label{font:bold 12px 'Arial Narrow',Arial,sans-serif;color:#272626;align-self:center;flex:none;margin:0 5px 0 0;text-transform:uppercase}.stage .match-row .score-cell{width:42px;flex:none;background:#df113b;color:white;display:flex;align-items:center;justify-content:center;font:900 28px Impact,'Arial Narrow',sans-serif}.stage .match-row.is-loser .score-cell{background:#39393e}.stage .champion-card{position:absolute;display:flex;align-items:stretch;height:50px;width:293px;overflow:hidden;background:#e1e1e1;color:#090909}.stage .champion-icon{width:50px;background:#ed163e;flex:none;display:flex;align-items:center;justify-content:center}.stage .champion-icon img{width:38px;height:38px;object-fit:contain;filter:brightness(0)}.stage .champion-icon b{font:900 29px Impact,sans-serif}.stage .champion-name{font:900 29px Impact,'Arial Narrow',sans-serif;letter-spacing:-.8px;align-self:center;text-transform:uppercase;padding-left:12px;white-space:nowrap;overflow:hidden}.stage .scene-fade{animation:scene-in .55s both}.stage.intro-play .round-head{animation:enter-item .4s .17s both}.stage.intro-play .match-info{animation:enter-item .42s .26s both}.stage.intro-play .match-row{animation:enter-item .43s .38s both}.stage.intro-play .champion-card{animation:enter-item .5s .55s both}.stage.intro-play .heading-main{animation:enter-title .5s both}.stage.intro-play .heading-sub{animation:enter-sub .5s .2s both}@keyframes enter-title{from{opacity:0;transform:translateY(-38px) scaleX(.45)}to{opacity:1;transform:translateY(0) scaleX(.45)}}@keyframes enter-sub{from{opacity:0;transform:translate(-50%,-20px)}to{opacity:1;transform:translate(-50%,0)}}@keyframes enter-item{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:translateX(0)}}.preview-footer{display:flex;justify-content:space-between;gap:8px;color:#8f99a7;font-size:11px;flex:none}.kbd{display:inline-block;padding:3px 5px;border:1px solid #394252;border-radius:3px;font-size:10px;color:#bcc6d7;background:#1e232d}.copy-url{display:flex;gap:6px}.copy-url input{flex:1;width:100%;font-size:10px}.notice{border:1px solid #4d393b;background:#281b24;color:#f0b7c0;font-size:11px;line-height:1.5;padding:10px;border-radius:7px}.statusline{font-size:10px;color:#9da7b6;min-height:14px}.file-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #313a44;font-size:11px}.file-name{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.small-green{color:var(--green)}.import-inline{display:flex;gap:7px}.import-inline input{flex:1}.overlay-mode,#app{background:transparent}.overlay-mode .stage{background:transparent}.overlay-mode .overlay-frame{position:fixed;inset:0;overflow:hidden}.overlay-mode .stage .atmosphere{display:none}.overlay-mode .stage.transparent-scene{background:transparent}.overlay-mode .stage.transparent-scene .bracket-art{background:transparent}@media(max-width:950px){.workspace{grid-template-columns:315px minmax(0,1fr)}.preview-region{padding:12px}.topbar{padding:0 12px}.brand-sub{display:none}.preview-tag{display:none}}@media(max-width:730px){.workspace{grid-template-columns:1fr;grid-template-rows:minmax(300px,45vh) minmax(0,1fr)}.sidebar{grid-row:2;border-right:0;border-top:1px solid var(--line)}.preview-region{grid-row:1}.app-shell{grid-template-rows:55px 1fr}.topbar{height:55px}.top-actions{gap:4px}.top-action{padding:7px 8px;font-size:10px}.live-pill{display:none}.preview-header,.preview-footer{display:none}.preview-viewport{max-height:100%;width:min(100%,70vh*16/9)}.preview-region{padding:4px}}
