:root{--red:#c81428;--ink:#101319;--muted:#667085;--line:#e5e7eb;--cream:#f6f3ee}*{box-sizing:border-box}[hidden]{display:none!important}.auth-locked .nav,.auth-locked .tournament-switcher,.auth-locked #eventTop,.auth-locked #dashboard>.hero,.auth-locked #dashboard>.metrics,.auth-locked #dashboard>.two{display:none!important}.auth-locked main{max-width:480px;padding-top:56px}.auth-locked #loginCard{display:block!important}body{margin:0;font-family:Inter,Arial,sans-serif;background:#f4f5f7;color:var(--ink)}button,input,select{font:inherit}.top{height:68px;background:#111318;color:white;display:flex;align-items:center;padding:0 24px;gap:18px}.brand{font-weight:900;font-size:21px;display:flex;align-items:center;gap:11px}.brand img{width:48px;height:48px;object-fit:contain;background:white;border-radius:8px;padding:2px}.brand span{white-space:nowrap}.brand b{color:#f13849}.top small{color:#aeb4bf}.tournament-switcher{margin-left:auto;font-size:11px;font-weight:800;color:#aeb4bf;text-transform:uppercase}.tournament-switcher select{display:block;margin-top:3px;min-width:230px;padding:7px 10px;border:1px solid #3c424c;border-radius:7px;background:#20242c;color:white}.nav{display:flex;background:white;border-bottom:1px solid var(--line);padding:0 20px;overflow:auto}.nav button{border:0;background:none;padding:16px 14px;font-weight:700;color:#667085;white-space:nowrap}.nav button.active{color:var(--red);box-shadow:inset 0 -3px var(--red)}main{padding:22px;max-width:1480px;margin:auto}.page{display:none}.page.active{display:block}.hero{display:flex;justify-content:space-between;align-items:end;margin-bottom:18px}.hero h1{margin:0;font-size:30px}.hero p{color:var(--muted);margin:6px 0 0}.btn{border:0;border-radius:8px;padding:11px 15px;font-weight:800;cursor:pointer}.danger{background:#fee2e2;color:#b42318}.primary{background:var(--red);color:white}.dark{background:#17191f;color:white}.ghost{background:white;border:1px solid var(--line)}.grid{display:grid;gap:16px}.metrics{grid-template-columns:repeat(4,1fr)}.metric,.card{background:white;border:1px solid var(--line);border-radius:12px;padding:18px;box-shadow:0 2px 7px #00000008}.metric small{color:var(--muted);text-transform:uppercase;font-weight:800}.metric strong{display:block;font-size:30px;margin-top:7px}.two{grid-template-columns:1.3fr .7fr}.card h2{font-size:18px;margin:0 0 14px}table{width:100%;border-collapse:collapse}th{text-align:left;color:#667085;font-size:12px;text-transform:uppercase}th,td{padding:11px 9px;border-bottom:1px solid var(--line)}.tag{border-radius:99px;padding:4px 8px;font-size:12px;font-weight:800;background:#eaf8ef;color:#15713c}.tag.wait{background:#fff1e7;color:#a94f00}.form{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.form-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px}.category-options{grid-column:1/-1;border:1px solid #d6d9de;border-radius:8px;padding:12px;display:flex;flex-wrap:wrap;gap:10px 18px}.category-options legend{font-size:12px;font-weight:800;color:#555;padding:0 5px}.category-options label{display:flex;align-items:center;gap:6px}.category-options input{width:auto;margin:0}.form-heading h2{margin:0}.form label{font-size:12px;font-weight:800;color:#555}.form input,.form select{width:100%;padding:10px;border:1px solid #d6d9de;border-radius:7px;margin-top:5px}.courts{grid-template-columns:repeat(2,1fr)}.court{background:#11151b;color:white;border-radius:14px;padding:18px;border:3px solid var(--court)}.court-head{display:flex;justify-content:space-between;align-items:center;font-size:18px}.court-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,.35fr) minmax(0,1fr);align-items:center;text-align:center;gap:12px;flex:1}.team{font-size:clamp(18px,2vw,34px);font-weight:900;line-height:1.05;min-height:2.1em;display:flex;align-items:end;justify-content:center}.score{font-size:clamp(64px,7vw,120px);font-weight:900;line-height:1}.vs{color:#f5c24b;font-weight:900;font-size:clamp(18px,2.2vw,34px)}.controls{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}.controls button{min-width:55px;min-height:44px;border:0;border-radius:8px;font-weight:900}.led-body{background:#080b10;color:white;min-height:100vh;overflow:hidden}.led-body #ledViewport{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#000}.led-body #ledStage{transform-origin:center center;flex:0 0 auto;background:#080b10}.led-body #ledStage .led{width:100%;height:100%}.led{padding:22px;display:grid;gap:16px;height:100vh}.led .court{display:flex;flex-direction:column;justify-content:space-between;padding:26px}.led .court-head{font-size:clamp(24px,2vw,38px)}.led .score{font-size:clamp(74px,8vw,132px)}.led .team{font-size:clamp(25px,2.4vw,44px)}.led .vs{font-size:clamp(24px,2.1vw,40px)}.led-1{grid-template-columns:1fr}.led-2{grid-template-columns:repeat(2,1fr)}.led-3,.led-4{grid-template-columns:repeat(2,1fr)}.led-5,.led-6{grid-template-columns:repeat(3,1fr)}.led-7,.led-8{grid-template-columns:repeat(4,1fr)}.phone{max-width:440px;margin:auto}.phone .court{min-height:610px;display:flex;flex-direction:column}.phone .court-body{grid-template-columns:minmax(0,1fr) 82px minmax(0,1fr)}.phone .team{font-size:20px;min-height:3em}.phone .score{font-size:78px}.phone .vs{font-size:18px}.phone .controls{gap:10px;margin-top:16px}.phone .controls button{min-height:54px;flex:1}.phone input[type=color]{width:54px;height:44px}.big-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.big-controls button{height:86px;font-size:22px}.schedule-layout{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(480px,1.2fr);gap:18px;align-items:start}.assignment-pane,.groups-pane,.schedule-section{background:white;border:1px solid var(--line);border-radius:12px;padding:18px}.schedule-section{margin-top:18px}.section-head{display:flex;align-items:start;justify-content:space-between;gap:12px;margin-bottom:14px}.section-head h2{margin:0;font-size:19px}.section-head p{margin:4px 0 0}.setup-actions{display:flex;gap:8px;align-items:center}.setup-actions .btn{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;text-decoration:none}.count{display:inline-grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:99px;background:#fbeaec;color:var(--red);font-size:13px}.group-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.group-title{display:flex;justify-content:space-between;align-items:center}.group-title h3{margin:0;font-size:16px}.group-title span{font-size:12px;font-weight:800;color:#667085;background:#eef1f4;padding:4px 8px;border-radius:99px}.group-members{display:grid;gap:8px;margin-top:10px}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px;padding:36px 18px;border:1px dashed #cfd4dc;border-radius:10px;color:#667085}.empty-state b{color:#101319;font-size:17px}.empty-mini{padding:18px;text-align:center;color:#15713c;background:#eaf8ef;border-radius:8px}.schedule-table[hidden],.empty-state[hidden]{display:none}.team-pool{display:flex;flex-wrap:wrap;gap:10px;min-height:65px}.team-chip{display:flex;flex-direction:column;gap:8px;background:#fff;border:1px solid #cfd4dc;border-radius:8px;padding:9px 12px;cursor:grab;min-width:155px}.team-chip>div{display:flex;flex-direction:column;gap:2px}.team-chip select{min-height:36px;border:1px solid #d6d9de;border-radius:6px;background:white;padding:4px}.team-chip small{color:#667085}.group-drop{min-height:150px;border:2px dashed #cfd4dc}.group-drop:hover{border-color:var(--red);background:#fffafb}.tournament-card{position:relative}.delete-tournament{position:absolute;right:10px;top:10px;border:0;background:#fee2e2;color:#b42318;width:28px;height:28px;border-radius:50%;font-size:20px;font-weight:900;cursor:pointer}dialog{border:0;border-radius:14px;box-shadow:0 24px 80px #0006;max-width:480px;width:calc(100% - 28px)}dialog::backdrop{background:#101319aa}dialog .form{grid-template-columns:1fr}.bracket{display:flex;gap:42px;overflow:auto}.bracket-tree{position:relative;align-items:stretch;padding:8px 16px 24px;min-height:420px}.bracket-lines{position:absolute;inset:0;z-index:0;pointer-events:none;overflow:visible}.bracket-lines .connector{fill:none;stroke:#667085;stroke-width:2.25;stroke-linejoin:round;vector-effect:non-scaling-stroke}.bracket-tree .round{position:relative;z-index:1;min-width:230px;display:flex;flex-direction:column}.bracket-tree .round h3{text-align:center}.round-matches{display:grid;grid-template-rows:repeat(var(--matches),1fr);flex:1;gap:12px}.bracket-tree .match{position:relative;align-self:center;width:100%;margin:0}.group-grid{grid-template-columns:repeat(auto-fit,minmax(360px,1fr));margin-bottom:24px}.round{min-width:250px}.match{background:white;border-left:4px solid var(--red);margin:12px 0;padding:11px;box-shadow:0 2px 7px #0001}.slot{padding:9px;border-radius:6px;background:#f8fafc;cursor:grab;min-height:36px;display:flex;align-items:center;justify-content:space-between;gap:8px}.remove-slot{border:0;background:#fee2e2;color:#b42318;width:23px;height:23px;border-radius:50%;font-size:18px;line-height:20px;font-weight:900;cursor:pointer;flex:0 0 auto}.slot:empty,.slot[data-team=""]{border:1px dashed #98a2b3;color:#667085}.slot:hover{background:#fff0f2}.muted{color:var(--muted)}.public-share-card{display:grid;grid-template-columns:1fr 220px;gap:20px;align-items:center;margin-bottom:16px}.public-share-card img{width:220px;height:220px;border:1px solid var(--line);border-radius:10px}.public-link-row{display:flex;gap:8px;align-items:center}.public-link-row input{flex:1;min-width:0;padding:11px;border:1px solid var(--line);border-radius:8px}.public-top{background:#111318;color:white;padding:14px 20px}.public-top .brand img{width:42px;height:42px}.spectator{max-width:1100px}.public-hero{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:16px}.public-hero h1{margin:0;font-size:30px}.public-hero p{margin:5px 0;color:var(--muted)}.public-tabs{display:grid;grid-template-columns:repeat(4,1fr);position:sticky;top:0;z-index:5;background:white;border:1px solid var(--line);border-radius:10px;margin-bottom:16px;overflow:hidden}.public-tabs button{border:0;background:white;padding:14px 5px;font-weight:800;color:#667085}.public-tabs button.active{background:var(--red);color:white}.public-panel{display:none}.public-panel.active{display:block}.public-court{background:#11151b;color:white;border-radius:13px;padding:16px}.public-court>div:first-child{display:flex;justify-content:space-between}.public-score{display:grid;grid-template-columns:1fr auto 1fr;gap:10px;align-items:center;text-align:center;margin-top:16px}.public-score span{display:grid;gap:5px;font-weight:800}.public-score strong{font-size:58px}.public-score em{color:#f5c24b;font-style:normal}.public-list{display:grid;gap:10px}.public-match{display:grid;grid-template-columns:1fr 1.5fr auto;gap:12px;align-items:center;background:white;border:1px solid var(--line);border-radius:10px;padding:14px}.public-match div{display:grid;gap:4px}.public-match small{color:var(--muted);text-transform:capitalize}.public-match i{font-style:normal;color:var(--muted);font-weight:400}.public-bracket{padding-bottom:20px}.table-scroll{overflow:auto}@media(max-width:850px){.metrics,.two,.courts{grid-template-columns:1fr}.top{height:auto;min-height:0;align-items:center;flex-wrap:wrap;padding:8px 12px;gap:8px}.brand{font-size:15px}.brand img{width:36px;height:36px}.tournament-switcher{order:3;width:100%;margin:0;font-size:10px}.tournament-switcher select{width:100%;min-width:0;min-height:42px;margin-top:2px}.top small{display:none}.hero{align-items:start;gap:8px;flex-wrap:wrap;margin-bottom:14px}.hero h1{font-size:27px}.hero p{font-size:14px}.hero .btn{white-space:nowrap}.form{grid-template-columns:1fr}.category-options{display:grid;grid-template-columns:1fr;gap:4px;padding:12px}.category-options label{display:grid;grid-template-columns:26px minmax(0,1fr);align-items:center;gap:10px;min-height:44px;padding:5px 2px;line-height:1.25}.category-options input{width:24px!important;height:24px;margin:0!important}.form>.primary{width:100%;min-height:48px}main{width:100%;padding:14px 12px calc(100px + env(safe-area-inset-bottom));padding-bottom:calc(100px + env(safe-area-inset-bottom))}.nav{position:fixed;left:0;right:0;bottom:0;top:auto;z-index:50;padding:4px 4px calc(4px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(7,1fr);overflow:visible;box-shadow:0 -5px 20px #0002}.nav button{display:none;min-height:56px;padding:5px 2px;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:10px}.nav button[data-page="dashboard"],.nav button[data-page="tournaments"],.nav button[data-page="registration"],.nav button[data-page="schedule"],.nav button[data-page="courts"],.nav button[data-page="standings"],.nav button[data-page="public"]{display:flex}.nav-icon{display:block;font-size:17px;line-height:1}.schedule-layout{grid-template-columns:1fr;gap:12px}.assignment-pane,.groups-pane,.schedule-section{padding:14px;border-radius:10px}.section-head{margin-bottom:10px}.setup-card-head{display:grid;grid-template-columns:1fr;gap:12px}.setup-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;gap:8px}.setup-actions .btn{width:100%;min-height:44px;white-space:nowrap}.section-head h2{font-size:17px}.section-head p{font-size:13px}.team-pool{display:grid;grid-template-columns:1fr;gap:7px}.team-chip{width:100%;min-width:0;cursor:default;display:grid;grid-template-columns:minmax(0,1fr) 145px;align-items:center;padding:9px}.team-chip select{display:block;width:100%;min-width:0;min-height:42px;font-size:13px}.team-chip b{font-size:14px;overflow-wrap:anywhere}.team-chip small{font-size:12px}.group-list{grid-template-columns:1fr;gap:8px}.group-drop{min-height:0;padding:12px;border:1px solid #d8dce2;border-radius:9px}.group-members{margin-top:8px}.group-drop>.group-members>.team-chip{grid-template-columns:minmax(0,1fr) 150px}.schedule-section{margin-top:12px}.empty-state{padding:26px 12px}.group-grid{grid-template-columns:1fr}.public-share-card{grid-template-columns:1fr}.public-share-card img{width:min(220px,100%);height:auto;justify-self:center}.public-link-row{display:grid;grid-template-columns:1fr 1fr}.public-link-row input{grid-column:1/-1;width:100%}.public-hero{align-items:start}.public-hero h1{font-size:25px}.public-tabs button{font-size:13px}.public-match{grid-template-columns:1fr;gap:7px}.spectator-body main{padding-bottom:24px}.spectator-body table{min-width:600px}.public-score strong{font-size:48px}.schedule-table{overflow-x:auto;padding:8px}table{min-width:720px}.card:has(table){overflow-x:auto}}
