:root{--deep:#3d0712;--maroon:#660b1d;--red:#98152f;--red2:#b92745;--gold:#e3b84d;--cream:#fff8f5;--white:#fff;--ink:#21181b;--muted:#98858a;--line:rgba(255,255,255,.12);--shadow:0 22px 70px rgba(28,0,7,.24)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,"Segoe UI",Arial,sans-serif;background:#f5f1ef;color:var(--ink)}button,input,select{font:inherit}.svg-library{position:absolute;width:0;height:0;overflow:hidden}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.app{min-height:100vh;display:grid;grid-template-columns:270px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;padding:28px 20px 22px;background:linear-gradient(160deg,#3a0611,#620a1c 58%,#430713);color:#fff;display:flex;flex-direction:column;box-shadow:18px 0 55px rgba(44,0,10,.16);z-index:20}.brand{display:flex;align-items:center;gap:12px;padding:0 8px 28px;border-bottom:1px solid var(--line)}.brand img:first-child{width:132px;height:auto}.brand img:last-child{width:82px;height:44px;object-fit:contain}.sidebar nav{display:grid;gap:8px;margin-top:26px}.sidebar nav button,.admin-entry{border:0;color:#ead9dd;background:transparent;border-radius:14px;min-height:53px;padding:0 15px;display:flex;align-items:center;gap:13px;font-size:14px;cursor:pointer;transition:.25s}.sidebar nav button:hover,.sidebar nav button.active{background:rgba(255,255,255,.12);color:#fff;transform:translateX(3px)}.sidebar nav button.active:after{content:"";margin-left:auto;width:5px;height:22px;border-radius:5px;background:var(--gold)}.sidebar-foot{margin-top:auto}.sync-dot{display:flex;align-items:center;gap:9px;padding:14px;color:#d4bfc4;font-size:11px}.sync-dot i{width:8px;height:8px;border-radius:50%;background:#f0be4c;box-shadow:0 0 0 5px rgba(240,190,76,.12)}.sync-dot i.ok{background:#6dd69c}.sync-dot i.err{background:#ff7286}.admin-entry{width:100%;background:#fff;color:var(--maroon);font-weight:650;box-shadow:0 12px 28px rgba(0,0,0,.18)}.main{min-width:0;padding:0 36px 46px}.topbar{height:112px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e8dfdc}.breadcrumb{margin:0 0 7px;color:#9a888d;font-size:12px}.breadcrumb span{color:var(--red)}.topbar h2{margin:0;font-size:27px;font-weight:600;letter-spacing:-.02em}.top-actions{display:flex;align-items:center;gap:10px}.updated{padding:10px 14px;border:1px solid #e4dad7;border-radius:12px;background:#fff}.updated span{display:block;color:#a18d92;font-size:9px;text-transform:uppercase}.updated strong{font-size:11px;font-weight:600}.icon-btn{width:45px;height:45px;border:0;border-radius:12px;background:var(--maroon);color:#fff;display:grid;place-items:center;cursor:pointer}.page{display:none;padding-top:30px}.page.active{display:block}.event-hero{min-height:139px;padding:25px 28px;border-radius:24px;background:linear-gradient(125deg,#4a0715,#82102a 65%,#a91c39);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:var(--shadow);position:relative;overflow:hidden}.event-hero:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;right:-70px;top:-120px;background:rgba(255,255,255,.08)}.section-kicker{color:#d6a73e;font-size:10px;font-weight:750;letter-spacing:.15em}.event-hero h3,.page-intro h3{font-size:31px;margin:8px 0 7px;letter-spacing:-.025em}.event-hero p,.page-intro p{margin:0;color:#e8cfd5;font-size:12px}.event-picker{position:relative;z-index:1;min-width:270px;padding:10px 13px;background:#fff;border-radius:15px;color:#332428}.event-picker span{display:block;font-size:9px;color:#9b878c;margin-bottom:5px}.event-picker select{width:100%;border:0;outline:none;background:#fff;font-size:14px;font-weight:600;color:#3c282d}.summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:17px 0}.summary-card{padding:16px 18px;background:#fff;border:1px solid #eadfdd;border-radius:16px;display:flex;align-items:center;gap:13px}.summary-card .metric-icon{width:42px;height:42px;border-radius:12px;background:#fff0f3;color:var(--red);display:grid;place-items:center}.summary-card span{display:block;font-size:9px;color:#9a858a;text-transform:uppercase}.summary-card b{display:block;margin-top:4px;font-size:18px}.panel{background:#fff;border:1px solid #e8ddda;border-radius:24px;box-shadow:0 18px 48px rgba(45,13,20,.08);overflow:hidden}.panel-head{height:82px;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee5e2}.panel-head span{font-size:9px;color:#9d898e;letter-spacing:.13em}.panel-head h3{font-size:18px;margin:5px 0 0}.legend{font-size:10px;color:#958287}.legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--red);margin-right:5px}.bracket-scroll{overflow-x:auto;padding:22px}.bracket{min-width:1080px;display:grid;grid-template-columns:1.28fr 1fr .9fr 1fr;gap:38px}.round-name{display:flex;align-items:center;gap:10px;margin-bottom:16px}.round-name b{width:31px;height:31px;border-radius:10px;background:#f5e8eb;color:var(--red);display:grid;place-items:center;font-size:10px}.round-name span{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.08em}.matches{height:560px;display:flex;flex-direction:column;justify-content:space-around;gap:15px}.semi .matches{padding:76px 0}.final .matches{padding:178px 0}.places .matches{padding:77px 0}.match{position:relative;padding:6px;background:#faf7f6;border:1px solid #eadfdd;border-radius:16px}.match:after{content:"";position:absolute;left:100%;top:50%;width:38px;height:2px;background:#ddcfcc}.places .match:after{display:none}.team{min-height:58px;padding:10px 12px;border-radius:11px;display:grid;grid-template-columns:1fr auto;align-items:center;cursor:pointer;transition:.2s}.team:hover{background:#fff}.team.winner{background:linear-gradient(135deg,#7f0d25,#a91b38);color:#fff;box-shadow:0 9px 20px rgba(125,12,36,.22)}.team b{display:block;font-size:12px}.team small{display:block;margin-top:4px;font-size:9px;color:#9e898e}.team.winner small{color:#edd6dc}.team strong{font-size:17px;color:var(--red)}.team.winner strong{color:var(--gold)}.empty{padding:18px;color:#99868b;font-size:10px}.page-intro{padding:16px 2px 23px}.page-intro h3{color:#43232b}.page-intro p{color:#8d777d}.podium{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.podium-card{min-height:135px;padding:20px;border-radius:20px;color:#fff;background:linear-gradient(145deg,#4c0715,#831129);display:flex;align-items:end;justify-content:space-between}.podium-card:nth-child(1){background:linear-gradient(145deg,#8a6316,#c7962c)}.podium-card b{font-size:18px}.podium-card span{font-size:11px}.table-panel{overflow:auto}.table-panel table{width:100%;border-collapse:collapse}.table-panel th,.table-panel td{padding:17px 19px;border-bottom:1px solid #eee5e2;text-align:left;font-size:12px}.table-panel th{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#99858a}.event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:15px}.event-card{min-height:165px;padding:20px;border-radius:20px;background:#fff;border:1px solid #e7dcda;box-shadow:0 14px 34px rgba(41,9,15,.06);cursor:pointer;transition:.25s}.event-card:hover{transform:translateY(-4px);box-shadow:0 22px 44px rgba(41,9,15,.12)}.event-card .event-icon{width:44px;height:44px;border-radius:13px;background:#f5e7ea;color:var(--red);display:grid;place-items:center}.event-card h4{font-size:17px;margin:18px 0 7px}.event-card p{font-size:11px;color:#948087;margin:0}.overlay,.drawer-wrap{position:fixed;inset:0;z-index:100;background:rgba(30,1,8,.72);backdrop-filter:blur(9px);display:none;align-items:center;justify-content:center;padding:18px}.overlay.open,.drawer-wrap.open{display:flex}.login-card,.score-card{position:relative;width:min(500px,100%);padding:31px;background:#fff;border-radius:24px;box-shadow:0 32px 90px rgba(18,0,4,.4)}.login-icon{width:58px;height:58px;border-radius:17px;background:#f5e6e9;color:var(--red);display:grid;place-items:center}.login-card h3{font-size:25px;margin:20px 0 7px}.login-card p{color:#8f7b81;font-size:12px;margin-bottom:24px}.login-card label,.drawer label,.score-body label{display:block;font-size:10px;font-weight:650;color:#76636a;margin:13px 0}.login-card input,.drawer input,.score-body input,.score-body select{display:block;width:100%;margin-top:7px;padding:13px;border:1px solid #ddcfcc;border-radius:11px;outline:none}.primary,.secondary{border:0;border-radius:11px;padding:13px 17px;cursor:pointer;font-weight:650}.primary{background:linear-gradient(135deg,var(--maroon),var(--red2));color:#fff}.secondary{background:#f1e7e9;color:var(--red)}.wide{width:100%;margin-top:13px}.close{border:0;background:#f4ecee;color:#6d4d55;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;cursor:pointer}.login-card>.close{position:absolute;right:20px;top:20px}.drawer-wrap{justify-content:flex-end;padding:0}.drawer{width:min(700px,100%);height:100%;background:#fff;box-shadow:-25px 0 80px rgba(30,0,7,.32);animation:slide .35s ease}.drawer header,.score-card header{min-height:92px;padding:22px 26px;background:linear-gradient(135deg,#480714,#780e25);color:#fff;display:flex;align-items:center;justify-content:space-between}.drawer header span,.score-card header span{font-size:9px;color:#ddb6bf;letter-spacing:.14em}.drawer header h3,.score-card header h3{margin:5px 0 0;font-size:23px}.drawer .close,.score-card .close{background:rgba(255,255,255,.12);color:#fff}.admin-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;padding:14px 22px;border-bottom:1px solid #eee4e2}.admin-tabs button{min-height:50px;border:0;border-radius:12px;background:#f7f3f2;color:#7e6970;display:flex;justify-content:center;align-items:center;gap:8px;cursor:pointer;font-weight:650}.admin-tabs button.active{background:#f2e1e5;color:var(--red)}.drawer-body{padding:26px}.drawer-body h4{font-size:22px;margin:0 0 6px}.drawer-body>section>p{font-size:12px;color:#8e7a80;margin:0 0 22px}.control-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.control-grid button{min-height:145px;padding:17px;border:1px solid #e7d9d7;border-radius:16px;background:#fff;text-align:left;cursor:pointer}.control-grid button:hover{border-color:#c07a89;background:#fff8f9}.control-grid svg{color:var(--red);width:28px;height:28px}.control-grid b,.control-grid span{display:block}.control-grid b{margin-top:22px;font-size:14px}.control-grid span{margin-top:6px;font-size:10px;color:#917c82}.admin-card{padding:18px;border:1px solid #eadfdd;border-radius:15px;display:flex;align-items:center;justify-content:space-between}.admin-card b,.admin-card span{display:block}.admin-card span{margin-top:5px;font-size:10px;color:#99848a}.score-card{padding:0;overflow:hidden}.score-body{padding:24px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sets{display:grid;gap:8px;padding:14px 0}.set-row{display:grid;grid-template-columns:65px 1fr 20px 1fr;gap:8px;align-items:center}.set-row input{text-align:center;margin:0}.toast{position:fixed;z-index:150;right:20px;bottom:20px;padding:13px 16px;border-radius:12px;background:#24161a;color:#fff;font-size:11px;opacity:0;transform:translateY(15px);transition:.25s}.toast.show{opacity:1;transform:none}.splash{position:fixed;inset:0;z-index:90;background:#24050d;visibility:hidden;opacity:0;transition:.8s}.splash.show{visibility:visible;opacity:1}.splash video{width:100%;height:100%;object-fit:cover}.splash-gradient{position:absolute;inset:0;background:linear-gradient(180deg,rgba(20,0,5,.06),rgba(27,1,8,.7))}.splash-brand{position:absolute;left:5vw;top:5vh;display:flex;align-items:center;gap:18px}.splash-brand img:first-child{width:190px}.splash-brand img:last-child{width:120px}.splash-brand span{width:1px;height:35px;background:rgba(255,255,255,.4)}.splash-caption{position:absolute;left:5vw;bottom:7vh;color:#fff}.splash-caption p{font-size:11px;letter-spacing:.2em}.splash-caption h1{font-size:clamp(45px,7vw,100px);margin:8px 0;font-weight:500}.splash-progress{width:min(420px,70vw);height:3px;background:rgba(255,255,255,.25);overflow:hidden}.splash-progress i{display:block;width:0;height:100%;background:var(--gold)}.splash.show .splash-progress i{animation:progress 15s linear forwards}@keyframes progress{to{width:100%}}@keyframes slide{from{transform:translateX(100%)}to{transform:none}}@media(max-width:1100px){.app{grid-template-columns:92px minmax(0,1fr)}.sidebar{padding:25px 13px}.brand{display:grid;justify-items:center;padding:0 0 21px}.brand img:first-child{width:70px}.brand img:last-child{width:58px}.sidebar nav button span,.admin-entry span,.sync-dot span{display:none}.sidebar nav button,.admin-entry{justify-content:center;padding:0}.main{padding:0 20px 35px}.summary{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.app{display:block}.sidebar{position:fixed;left:0;right:0;top:auto;bottom:0;width:auto;height:72px;padding:8px 12px;display:block;z-index:70}.brand,.sidebar-foot .sync-dot{display:none}.sidebar nav{display:grid;grid-template-columns:repeat(3,1fr);margin:0;gap:5px}.sidebar nav button{min-height:56px;display:flex;flex-direction:column;gap:2px;font-size:9px}.sidebar nav button span{display:block}.sidebar nav button.active:after{display:none}.sidebar-foot{position:absolute;right:12px;top:8px}.admin-entry{width:54px;height:54px}.main{padding:0 12px 95px}.topbar{height:86px}.topbar h2{font-size:21px}.updated{display:none}.event-hero{display:block;padding:22px}.event-picker{margin-top:20px;min-width:0}.summary{grid-template-columns:1fr 1fr}.summary-card{padding:13px}.control-grid{grid-template-columns:1fr}.drawer{width:100%}.form-row{grid-template-columns:1fr}.splash-brand img:first-child{width:130px}.splash-brand img:last-child{width:80px}}
