:root { color-scheme:dark;--bg:#080c09;--surface:#101713;--surface2:#0e1511;--edge:#254932;--edge-muted:#202f26;--green:#5fe68b;--green-soft:#a3f5b5;--muted:#98aca0;--white:#f2f7f3;--red:#ff7363;--gold:#d9b66c;--font:system-ui,-apple-system,"Segoe UI",Arial,sans-serif }
*{box-sizing:border-box} html{scroll-behavior:smooth} body{margin:0;font-family:var(--font);color:var(--white);background:radial-gradient(ellipse at 10% 20%,#10331d75 0,transparent 30%),radial-gradient(ellipse at 92% 80%,#1338214e,transparent 36%),#070b08;min-height:100vh}button,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}a{color:inherit;text-decoration:none} [hidden]{display:none!important}
.site-header{background:#070b09f7;position:sticky;top:0;z-index:20;border-bottom:1px solid #265639}.header-shell{max-width:1480px;margin:auto;min-height:70px;padding:0 24px;display:flex;align-items:center;gap:34px}.brand{display:flex;align-items:baseline;gap:9px;white-space:nowrap}.brand strong{font-size:25px;letter-spacing:.015em;line-height:1}.brand em{font-style:normal;color:var(--green)}.brand small{font-size:9px;color:#97a99b;letter-spacing:.1em;font-weight:800}.brand small b{color:var(--green)}.main-nav{display:flex;gap:4px;align-items:center;flex:1;justify-content:center}.main-nav button{border:0;border-bottom:3px solid transparent;background:transparent;color:#cbd4cc;font-size:12px;font-weight:850;letter-spacing:.08em;padding:23px 16px}.main-nav button.active{background:linear-gradient(#0d2317,#112c1b);color:#effff4;border-bottom-color:var(--green)}.main-nav button:hover{color:var(--green-soft)}.profile-dot{width:37px;height:37px;border-radius:50%;display:grid;place-items:center;color:var(--green-soft);background:linear-gradient(130deg,#284b36,#09130e);border:1px solid #488c57;font-weight:900}
.demo-toolbar{max-width:1480px;margin:0 auto;display:flex;align-items:center;gap:13px;padding:10px 24px;border-bottom:1px solid #203429;color:var(--muted);font-size:12px;flex-wrap:wrap}.demo-tag{font-size:10px;font-weight:900;letter-spacing:.09em;background:#1d2b21;border:1px solid #385c41;color:#98edab;border-radius:5px;padding:6px 8px}.demo-toolbar select{background:#14251a;color:#d7fce0;border:1px solid #39784b;border-radius:7px;padding:7px 10px;font-size:12px;font-weight:750}.demo-disclaimer{margin-left:auto;color:#809988}
.app-shell{max-width:1480px;margin:0 auto;padding:27px 24px 60px;min-height:75vh}.site-footer{border-top:1px solid #193124;text-align:center;color:#64796a;font-size:10px;font-weight:800;letter-spacing:.15em;padding:24px 12px}.site-footer span{margin:0 10px;color:#3fa15b}
.hero{position:relative;overflow:hidden;border:1px solid #285037;border-radius:15px;min-height:234px;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:36px 26px;background:linear-gradient(180deg,#07100bb3,#060c08db),linear-gradient(110deg,#0a4e2499 0%,transparent 44%,#0e4c2a99 100%),url('assets/aim_thumb.png') center 37%/cover}.hero::before{content:"";pointer-events:none;position:absolute;inset:0;background:radial-gradient(ellipse at 50% 35%,#246b3240,transparent 55%)}.hero>*{position:relative}.hero-kicker{display:flex;gap:14px;align-items:center;font-weight:900;letter-spacing:.38em;color:var(--green);font-size:11px}.hero-kicker:before,.hero-kicker:after{content:"";height:1px;width:46px;background:var(--green)}.hero h1{font-size:clamp(38px,5vw,62px);font-weight:1000;letter-spacing:.035em;line-height:1.1;margin:8px 0 13px;text-shadow:0 2px 30px #2bb95a44}.hero p{margin:0;max-width:740px;font-size:15px;color:#d5e0d7;line-height:1.6}.hero.live-hero{min-height:215px}.hero.live-hero h1{font-size:clamp(34px,4.5vw,56px)}.hero .hero-cup-name{font-size:20px;color:#e4f8e9;font-weight:900;letter-spacing:.05em}
.section-head{display:flex;align-items:center;gap:12px;margin:28px 4px 13px;font-size:22px;font-weight:900}.section-head:before{content:"";height:28px;width:4px;background:var(--green);border-radius:2px}.section-note{font-size:12px;font-weight:500;color:var(--muted);margin-left:auto}.cup-list{display:grid;gap:11px}.cup-list-card,.panel,.fixture-wrap,.match-card,.team-card{border:1px solid var(--edge);background:linear-gradient(145deg,#111b15fa,#0b100deb);border-radius:12px;box-shadow:0 8px 25px #0005}.cup-list-card{display:grid;grid-template-columns:155px minmax(0,1fr) auto;align-items:center;gap:19px;min-height:115px;padding:12px 17px}.cup-poster{width:100%;height:91px;object-fit:cover;border-radius:8px;border:1px solid #456d4b}.cup-main{min-width:0}.cup-title-line{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:14px}.cup-title{font-size:20px;font-weight:950;letter-spacing:.02em}.pill{display:inline-flex;align-items:center;gap:6px;border:1px solid #387d52;color:#71ef9c;background:#12361f;padding:5px 9px;border-radius:7px;font-weight:850;letter-spacing:.02em;font-size:10px;white-space:nowrap}.pill.finished{color:#c5d4ca;background:#1b2520;border-color:#506457}.pill.upcoming{color:#e1e7e3;background:#242e29;border-color:#5c7062}.pill.ingame{color:#fff;background:#963424;border-color:#db6650}.pill.published{color:#b6f9c5}.meta{display:flex;gap:28px;flex-wrap:wrap;color:#c6d2ca;font-size:13px}.meta span{display:flex;gap:8px;align-items:center}.meta b{font-size:16px;color:#9abfa5}.outline-button,.primary-button,.quiet-button{min-height:41px;border-radius:8px;padding:10px 18px;font-size:12px;font-weight:900;letter-spacing:.04em;border:1px solid var(--green);color:#e7fff0;background:linear-gradient(90deg,#153e25,#0c2014)}.outline-button:hover,.primary-button:hover{background:#1d5932}.primary-button{min-width:175px;box-shadow:inset 0 0 0 1px #75de9840}.quiet-button{border-color:#415548;background:#141f19;color:#b0c8b7}.text-link{color:#70e89b;font-size:12px;font-weight:850;background:none;border:0;padding:5px}.back-link{display:inline-flex;gap:8px;color:#a8daba;margin:0 0 18px;font-size:13px;font-weight:650}.back-link:hover{color:#fff}.cup-detail-head{display:grid;grid-template-columns:250px minmax(0,1fr) auto;gap:22px;align-items:center;margin:0 0 20px}.cup-detail-head .cup-poster{height:146px}.detail-title{font-size:30px;font-weight:950;letter-spacing:.025em;margin:0 0 17px}.detail-badge{margin-top:13px}.cup-detail-head .primary-button{padding:17px 26px;font-size:15px}.tabs{display:flex;align-items:stretch;border:1px solid var(--edge);border-radius:10px;overflow:hidden;margin-bottom:19px;background:#0a100c}.tabs button{border:0;border-bottom:3px solid transparent;min-width:145px;background:transparent;color:#bbcbbc;padding:15px 18px;font-size:12px;font-weight:900}.tabs button.selected{color:#fff;border-bottom-color:var(--green);background:linear-gradient(180deg,#153222,#0b1d13)}.tabs button:hover{color:var(--green-soft)}.two-cols{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,1fr);gap:17px}.panel{padding:23px}.panel h2{font-size:22px;margin:0 0 17px}.panel p{color:#c8d4cb;font-size:13px;line-height:1.75}.feature{display:flex;align-items:flex-start;gap:14px;padding:12px 0;border-top:1px solid #20392b}.feature .feature-icon{display:grid;place-items:center;min-width:43px;height:43px;border:1px solid #316f47;background:#12321f;border-radius:9px;color:#65ed91;font-size:21px}.feature b{display:block;font-size:13px}.feature p{margin:4px 0 0;font-size:12px;line-height:1.5}.players-list{display:grid;gap:0}.player{display:flex;gap:11px;align-items:center;border-bottom:1px solid #213126;padding:8px 4px;font-size:13px}.avatar{display:grid;place-items:center;min-width:33px;width:33px;height:33px;border-radius:50%;border:1px solid #6bb789;background:linear-gradient(135deg,#2b6840,#16281b);font-size:11px;font-weight:900;color:#e7fff0}.muted{color:var(--muted)}.panel-topline{display:flex;justify-content:space-between;align-items:center;gap:12px}.panel-topline h2{margin:0}.intro-note{padding:11px 14px;border-radius:9px;background:#101f16;border:1px solid #2d6040;color:#addcbc;font-size:12px;line-height:1.6;margin-bottom:16px}
.team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.team-card{padding:15px;min-height:226px;position:relative;overflow:hidden;background:linear-gradient(128deg,var(--team-tint,#12241a),#0a110dcf 75%)}.team-card:after{content:"";position:absolute;right:-24px;top:-50px;width:130px;height:130px;border-radius:50%;background:var(--team-accent,#2b9d4b);opacity:.10;filter:blur(4px)}.team-title{display:flex;align-items:center;gap:11px;font-size:17px;font-weight:950;margin-bottom:13px}.team-emblem{display:grid;place-items:center;width:43px;height:43px;border:1px solid var(--team-accent,#5fe68b);border-radius:11px;color:var(--team-accent,#5fe68b);background:#09140dbb;font-size:23px}.team-members{position:relative;z-index:1;display:grid;gap:7px}.team-members .player{border:0;padding:0;font-size:12px}.team-members .avatar{width:25px;min-width:25px;height:25px;font-size:9px}
.fixture-wrap{padding:18px}.fixtures-head{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;margin-bottom:15px}.fixtures-head h2{font-size:19px;margin:0}.fixtures-head p{color:var(--muted);font-size:11px;margin:0}.round{margin-bottom:12px}.round h3{color:#86dba2;font-size:12px;margin:0 0 8px;letter-spacing:.06em}.round-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.fixture{border:1px solid #2c5136;background:#0d1810;padding:9px 10px;border-radius:8px;min-width:0}.fixture .fixture-top{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:8px}.fixture .pill{padding:3px 6px;font-size:9px}.fixture .fixture-index{font-size:10px;color:#8ca498}.fixture .fixture-bottom{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:7px;align-items:center;text-align:center;font-weight:900;font-size:11px}.fixture .fixture-bottom span{min-width:0;overflow-wrap:anywhere}.fixture .vs{color:#a3b7a7;font-weight:750}.fixture .winner{color:#71ec96;background:#144027;border-radius:4px;padding:4px 2px}.fixture-map{font-size:10px;color:#8bb49b;text-align:center;margin-top:7px}.playoff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}.playoff-column h3{font-size:14px;color:#82eea7;margin:0 0 10px}.playoff-column .fixture{margin-bottom:9px;min-height:70px;display:flex;flex-direction:column;justify-content:center}.empty-message{text-align:center;padding:30px;border:1px dashed #40664a;border-radius:10px;color:#a7bead;font-size:13px}
.live-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:15px}.match-card{padding:14px 12px;min-height:195px;display:flex;flex-direction:column}.match-head{display:flex;justify-content:space-between;gap:8px;align-items:center}.match-head small{font-size:10px;color:#a3b4a7;text-align:right}.match-middle{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:7px;margin-top:18px;text-align:center}.match-team{display:grid;justify-items:center;gap:6px;min-width:0;font-weight:900;font-size:11px}.match-team strong{overflow-wrap:anywhere}.match-ico{border:1px solid #466b4f;background:#13231a;display:grid;place-items:center;border-radius:12px;width:53px;height:53px;font-size:27px;color:var(--green)}.match-result{font-size:23px;font-weight:1000;white-space:nowrap}.match-map{color:#b2d5bb;text-align:center;font-size:11px;margin-top:9px}.match-card .match-cta{font-size:10px;color:#71d992;text-align:center;border-top:1px solid #20382a;margin-top:auto;padding:10px 0 0;background:none;border-left:0;border-right:0;border-bottom:0}.match-card .match-cta:disabled{color:#829185;opacity:1;cursor:default}.match-card.clickable{border-color:#5abc78}.match-card .winner{color:#78f29b}
.live-schedule{margin-top:22px}.live-schedule .round-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.live-controls{display:flex;gap:10px;align-items:center;margin:14px 0 0;flex-wrap:wrap}.live-controls .intro-note{margin:0}.standings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.standing{display:grid;grid-template-columns:32px 1fr 58px 55px;gap:8px;align-items:center;background:#101b14;border:1px solid #274632;padding:9px;border-radius:7px;font-size:11px}.standing b{color:var(--green-soft)}
.modal-backdrop{position:fixed;inset:0;z-index:50;display:grid;place-items:center;background:#020804dd;padding:20px}.modal{border:1px solid #458c5a;background:#0d1710;border-radius:14px;max-width:560px;width:100%;padding:25px;box-shadow:0 22px 90px #000c}.modal h2{font-size:23px;margin:0 0 10px}.modal p{color:#bed1c2;line-height:1.65;font-size:13px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.lobby-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lobby-team{border:1px solid #2c5638;border-radius:10px;padding:15px;background:#0c1710}.lobby-team h3{margin:0 0 14px}.lobby-player{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:9px 2px;border-top:1px solid #27402d;font-size:12px}.ready{font-weight:850;color:var(--green)}.waiting{font-weight:800;color:#93a59b}.vote-grid{display:flex;gap:9px;flex-wrap:wrap}.vote-grid button{padding:12px;border-radius:8px;border:1px solid #45965b;background:#183522;color:#c8f5d3;font-weight:850}.vote-grid button.selected{background:#287a41;color:white}.callout{margin-top:15px;padding:12px;border-left:3px solid var(--green);background:#102517;color:#bde3c5;font-size:13px}
@media(max-width:1100px){.team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.live-row,.round-grid,.live-schedule .round-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cup-detail-head{grid-template-columns:180px minmax(0,1fr)}.cup-detail-head .primary-button{grid-column:2}.brand small{display:none}.meta{gap:15px}}
@media(max-width:700px){.header-shell{padding:0 12px;min-height:56px;gap:7px}.brand strong{font-size:19px}.main-nav{overflow:auto;justify-content:flex-start}.main-nav button{font-size:10px;padding:17px 9px}.profile-dot{display:none}.demo-toolbar{padding:9px 12px}.demo-disclaimer{margin:0}.app-shell{padding:18px 12px 40px}.hero{min-height:205px}.hero h1{font-size:37px}.hero p{font-size:12px}.cup-list-card{grid-template-columns:95px minmax(0,1fr);padding:10px;gap:10px}.cup-list-card .cup-poster{height:100px}.cup-title{font-size:14px}.cup-title-line{margin-bottom:8px}.cup-list-card .outline-button{grid-column:2;justify-self:start;min-height:31px;padding:6px 12px}.meta{font-size:11px;gap:7px}.cup-detail-head{grid-template-columns:115px minmax(0,1fr);gap:11px}.cup-detail-head .cup-poster{height:104px}.detail-title{font-size:19px;margin-bottom:10px}.cup-detail-head .primary-button{grid-column:1 / -1;width:100%}.two-cols,.lobby-grid,.playoff-grid{grid-template-columns:1fr}.panel{padding:15px}.tabs{overflow-x:auto}.tabs button{min-width:120px;padding:13px 10px;font-size:10px}.team-grid,.live-row,.round-grid,.live-schedule .round-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.team-card{padding:10px}.team-title{font-size:12px}.team-emblem{width:35px;height:35px}.team-members .player{font-size:10px}.match-card{padding:10px 6px;min-height:180px}.match-ico{width:39px;height:39px;font-size:22px}.match-result{font-size:15px}.match-team{font-size:9px}.standing{grid-template-columns:25px 1fr 42px 38px}}
@media(max-width:390px){.team-grid,.round-grid,.live-row,.live-schedule .round-grid{grid-template-columns:1fr}.cup-list-card{grid-template-columns:82px 1fr}.cup-list-card .meta span{font-size:10px}}

/* ========================================================================
   PHASE 2 — MONTHLY GROUP CUP / SEPARATE SUPREME LEADER EDITOR
   The Phase 1 visual language, particularly the team cards, is preserved.
   ======================================================================== */
.leader-toggle{display:inline-flex;align-items:center;gap:7px;color:#c5dfce;font-size:11px;white-space:nowrap}
.leader-toggle input{accent-color:var(--green);width:14px;height:14px}
.cup-list-card{grid-template-columns:155px minmax(0,1fr) auto auto;gap:15px}
.cup-card-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.cup-card-actions .outline-button{white-space:nowrap}
.admin-edit{color:#b7eec7;border-color:#3a6948;background:#102015;min-width:0;padding:9px 14px}
.cup-list-card:not(.finished-cup-card) .winner-ribbon{display:none}
.winner-ribbon{display:flex;flex-direction:column;gap:6px;align-items:center;justify-content:center;text-align:center;max-width:320px;padding:8px 10px;color:#ffdc68;text-shadow:0 0 16px #ffce4477}
.winner-ribbon>span{font-size:15px;font-weight:950;letter-spacing:.09em}
.winner-ribbon strong{font-size:12px;line-height:1.45;font-weight:900}
.cup-list-card.finished-cup-card:has(.winner-ribbon){grid-template-columns:155px minmax(0,1fr) minmax(210px,.75fr) auto}
.detail-actions{display:flex;flex-direction:column;gap:8px;align-items:stretch}
.detail-actions .admin-edit-inline{font-size:11px;padding:8px 10px;min-height:32px}
.signup-sidebar{min-width:0}
.signup-player-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:13px}
.signup-player-columns .player{min-width:0;gap:7px;white-space:nowrap;overflow:hidden}
.signup-player-columns .player span:last-child{overflow:hidden;text-overflow:ellipsis}
.team-page-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.team-page-top .section-head{flex:1}
.team-card.champion{border:1px solid #edca57;box-shadow:inset 0 0 0 1px #b3883666,0 0 25px #efc63c50,0 12px 28px #0007}
.team-card.champion:after{background:#f4c75d;opacity:.15}
.team-heading{display:flex;flex-direction:column;gap:4px}
.champion-label{font-size:11px;letter-spacing:.065em;color:#ffe36b;text-shadow:0 0 13px #ffcb45be}
.schedule-shell{display:grid;gap:16px}
.schedule-head{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid #284d35;padding:0 3px 15px}
.schedule-head h2{font-size:24px;margin:0 0 5px;font-weight:900;letter-spacing:.035em}
.schedule-head p{font-size:12px;color:#9bb7a5;margin:0}
.rounds-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:6px}
.rounds-heading h3{color:#eefaf0;font-size:17px;margin:0;letter-spacing:.035em}
.rounds-heading>span{color:#819e89;font-size:11px}
.round-accordion{display:grid;gap:8px}
.round-accordion-item{border:1px solid #344a3b;background:linear-gradient(90deg,#151c17,#111713);border-radius:10px;overflow:hidden}
.round-accordion-item>summary{display:flex;gap:12px;align-items:center;padding:12px 17px;cursor:pointer;list-style:none;user-select:none}
.round-accordion-item>summary::-webkit-details-marker{display:none}
.round-label{flex:1;display:flex;flex-direction:column;gap:2px;color:#e8f6ec;font-size:13px;font-weight:900}
.round-label small{font-size:11px;color:#97afa0;font-weight:500}
.round-chevron{color:#8ce0a5;font-size:22px;line-height:1}
.round-accordion-item[open] .round-chevron{transform:rotate(180deg)}
.round-accordion-item .round-grid{padding:5px 13px 13px;grid-template-columns:repeat(4,minmax(0,1fr))}
.round-accordion-item.finished{background:linear-gradient(90deg,#101b15,#0d150f);border-color:#2e6e40}
.round-accordion-item.ingame{border-color:#4e9b66;box-shadow:0 0 14px #25824227;background:linear-gradient(90deg,#123520,#13241a)}
.round-accordion-item.upcoming{background:#171b19;border-color:#3a423c}
.fixture.upcoming{background:#222825;border-color:#49534d;color:#c0cbc3}
.fixture.ingame{background:linear-gradient(130deg,#143d26,#0d2517);border-color:#469b5f;box-shadow:inset 0 0 25px #1d8a3d28,0 0 12px #149c4e20}
.fixture.finished{background:#0f2518;border-color:#385d44}
.fixture .winner{background:#1b5c30;color:#96ffb4}
.knockout-section{display:grid;grid-template-columns:1fr 1.08fr;gap:17px;padding-top:8px}
.semi-panel,.final-panel{background:linear-gradient(145deg,#101914,#0b120d);border:1px solid #325840;border-radius:12px;padding:17px}
.semi-panel h3,.final-panel h3{margin:0 0 14px;font-size:17px;color:#e4f9e9;display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.semi-panel h3 span,.final-panel h3 span{font-size:11px;font-weight:550;color:#90a99b}
.semifinal-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.playoff-match{min-height:119px;display:flex;flex-direction:column;justify-content:center}
.playoff-match .fixture-bottom{font-size:13px;margin-top:9px}
.final-big{min-height:155px;display:flex;flex-direction:column;justify-content:center;padding:14px 19px;border-color:#a58a44;background:radial-gradient(ellipse at 50% 120%,#53431970,transparent 65%),linear-gradient(135deg,#151b12,#15140d)}
.final-big-kicker{text-align:center;font-size:22px;font-weight:1000;letter-spacing:.1em;color:#ffe9a2;text-shadow:0 0 20px #ffc94a33;margin-bottom:7px}
.final-big .fixture-top{border-top:1px solid #55503966;padding-top:9px}
.final-big-match{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;text-align:center;gap:7px;margin-top:6px}
.final-big-match strong{font-size:15px;color:#f3faf1;overflow-wrap:anywhere}
.final-big-match b{font-size:21px;color:#c8d9cc}
.final-big-match .winner{color:#ffe37d;background:transparent}
.group-standings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.group-standings{padding:15px 16px}
.group-standings h3{font-size:15px;margin:0 0 11px;letter-spacing:.07em;color:#dbffe3}
.standings-area .section-head{margin-top:5px}
.standings-table{display:grid;gap:5px}
.standings-table-head,.standings-row{display:grid;grid-template-columns:34px minmax(0,1fr) 36px 36px 38px;gap:8px;align-items:center;padding:8px 9px;font-size:11px}
.standings-table-head{font-weight:900;color:#8cbd99;font-size:10px;border-bottom:1px solid #294a33}
.standings-row{border:1px solid #35433a;border-radius:6px;color:#b4c4b8;background:#161f19}
.standings-row.qualifies{background:#153521;border-color:#396d47;color:#e3fce9}
.standings-row strong{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.standings-caption{color:#879a8d;font-size:10px;margin-top:11px}
.live-row{margin-top:19px}
.match-card.ingame{background:linear-gradient(150deg,#163f29,#0e281a);border-color:#398b51;box-shadow:inset 0 0 29px #2bb45722,0 0 14px #3dda5b1a}
.match-card.upcoming{background:#1c2420;border-color:#4b5a4d}
.match-card.finished{background:linear-gradient(140deg,#151e18,#0d170f)}
.match-card.finished .match-team.winner-team .match-ico{border-color:#6ff19b;box-shadow:0 0 17px #58ff8e99,inset 0 0 13px #328b4475;background:#154c29}
.match-card.finished .match-team.loser-team .match-ico{border-color:#ee6b67;box-shadow:0 0 15px #f647476b,inset 0 0 11px #8524246b;background:#361919}
.match-card.finished .match-team.winner-team strong{color:#8cffa6}
.match-card .pill.upcoming{background:#303833;color:#d0d5d0;border-color:#68716b}
.stream-section{margin-top:23px}
.stream-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.stream-live-indicator{color:#ff8c93;background:#401b1f;border:1px solid #a3424c;font-size:10px;font-weight:1000;letter-spacing:.09em;padding:7px 10px;border-radius:6px}
.stream-frame{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(220px,.75fr);gap:0;border:1px solid #335a3e;background:#0b130e;border-radius:12px;overflow:hidden;min-height:320px;box-shadow:0 8px 35px #0008}
.stream-player{aspect-ratio:16/9;background:radial-gradient(circle at 50% 45%,#21644290,#08100b 57%),linear-gradient(145deg,#111c18,#050b08);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:11px;padding:20px;border-right:1px solid #2c4d37}
.stream-play-icon{display:grid;place-items:center;width:74px;height:74px;border-radius:50%;border:1px solid #75d894;color:#85ffa5;background:#113b24;font-size:26px;padding-left:5px;box-shadow:0 0 26px #43b55d4b}
.stream-player strong{font-size:22px;font-weight:950;letter-spacing:.08em}
.stream-player span{color:#9cccab;font-size:13px}
.stream-player small{color:#6e8f7c;font-size:10px}
.stream-info{padding:28px 24px;display:flex;flex-direction:column;gap:10px;justify-content:center}
.stream-small-tag,.stream-schedule{font-size:10px;color:#74db93;font-weight:1000;letter-spacing:.11em}
.stream-info h3{font-size:24px;line-height:1.15;margin:3px 0 0}
.stream-info p{font-size:13px;color:#adc6b5;line-height:1.65;margin:0}
.stream-info-divider{height:1px;background:#294932;margin:9px 0}
.stream-info strong{font-size:15px}
.stream-info small{font-size:10px;color:#678a72}
.admin-header{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:23px;border-bottom:1px solid #2a5737;padding-bottom:18px}
.admin-kicker{color:#90eeaa;letter-spacing:.13em;font-weight:900;font-size:11px}
.admin-header h1{font-size:32px;margin:8px 0 3px}
.admin-header p{color:#a6c4ae;font-size:13px;margin:0}
.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-bottom:16px}
.admin-form{display:grid;gap:11px}
.admin-form label,.admin-inline-label{display:grid;gap:6px;color:#aed2b7;font-weight:750;font-size:12px}
.admin-form input,.admin-form select,.admin-inline-label input,.admin-inline-label select{width:100%;min-width:0;color:#e5ffeb;background:#0a140e;border:1px solid #345841;border-radius:7px;padding:11px;font-size:12px}
.admin-form input[readonly]{color:#98b09c}
.admin-form button{justify-self:start}
.admin-control-stack{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.admin-info,.admin-footnote{font-size:11px;color:#8cab96;line-height:1.6;margin-top:16px}
.editor-feedback{border:1px solid #66bb7e;background:#143822;color:#d2ffda;padding:12px 16px;border-radius:9px;font-size:13px;margin-bottom:18px}
.roster-manager .panel-topline{margin-bottom:15px}
.roster-manager .panel-topline h2{margin:0}
.roster-selector{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.roster-select{background:#17261b;border:1px solid #325c3c;border-radius:7px;color:#bde4c6;padding:9px 12px;font-size:11px;font-weight:900}
.roster-select.active{background:#245136;border-color:#86e59d;color:white}
.roster-editor-grid{display:grid;grid-template-columns:minmax(230px,1fr) minmax(280px,1.8fr);gap:23px;align-items:start}
.roster-preview .team-card{max-width:350px;min-height:245px}
.roster-edit-controls{display:grid;gap:11px;max-width:580px}
.roster-edit-controls h3{font-size:14px;margin:3px 0 0}
.roster-edit-controls>button{justify-self:start}
.admin-divider{height:1px;background:#294b34;margin:8px 0}
@media(max-width:1250px){.cup-list-card.finished-cup-card:has(.winner-ribbon){grid-template-columns:125px minmax(0,1fr) minmax(170px,.7fr) auto}.cup-list-card{grid-template-columns:125px minmax(0,1fr) auto}.cup-list-card .cup-poster{height:95px}.cup-card-actions{flex-direction:column}}
@media(max-width:1000px){.knockout-section{grid-template-columns:1fr}.group-standings-grid{grid-template-columns:1fr 1fr}.round-accordion-item .round-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stream-frame{grid-template-columns:1fr}.stream-player{border-right:0;border-bottom:1px solid #2c4d37}.stream-info{padding:18px 20px}.admin-grid{grid-template-columns:1fr}}
@media(max-width:700px){.cup-list-card,.cup-list-card.finished-cup-card:has(.winner-ribbon){grid-template-columns:95px minmax(0,1fr)}.cup-card-actions{grid-column:2;align-items:flex-start;flex-direction:row}.winner-ribbon{grid-column:1 / -1;max-width:100%;border-top:1px solid #3f4a2c}.cup-detail-head{grid-template-columns:115px minmax(0,1fr)}.detail-actions{grid-column:1 / -1;flex-direction:row}.signup-player-columns{grid-template-columns:repeat(2,minmax(0,1fr))}.team-page-top{flex-direction:column;align-items:stretch}.group-standings-grid,.semifinal-grid,.roster-editor-grid{grid-template-columns:1fr}.round-accordion-item .round-grid{grid-template-columns:1fr}.rounds-heading{align-items:start}.final-big-match strong{font-size:12px}.stream-player{min-height:210px}.stream-info h3{font-size:19px}.admin-header h1{font-size:24px}.roster-manager .panel-topline{align-items:flex-start;flex-direction:column}}

/* Example captain badge: real captain selected and approved by Supreme Leader later. */
.team-card .captain-chip{font-size:8px;letter-spacing:.06em;font-weight:950;color:#89f7b0;border:1px solid #265d3e;background:#0e2b1b;padding:2px 4px;border-radius:4px;margin-left:auto;white-space:nowrap}

/* ========================================================================
   PHASE 3D — CUP MODE presentation (mock-only, no gameplay/API changes)
   ======================================================================== */

/* All four top lobby cards share a calm, neutral surface. Status badges —
   and only the winning/losing emblems — carry result colors. */
.match-card.ingame,
.match-card.upcoming,
.match-card.finished {
  background: #1c2420;
  border-color: #4b5a4d;
  box-shadow: none;
}
.match-card.finished .pill.finished {
  color: #baffd0;
  background: #18552d;
  border-color: #4cbb6d;
}
/* The default .pill.ingame stays red; .pill.upcoming stays grey. */

/* Both waiting and completed rounds are grey; current round is gently
   green-tinted, rather than a luminous slab. The round's own badge remains. */
.round-accordion-item.finished,
.round-accordion-item.upcoming {
  background: #1c221e;
  border-color: #445047;
  box-shadow: none;
}
.round-accordion-item.ingame {
  background: #1a2920;
  border-color: #466d50;
  box-shadow: none;
}
/* The stream begins directly after the four lobby cards. */
.stream-section { margin-top: 14px; }
/* The home schedule begins with GROUP STANDINGS rather than an extra heading. */
.live-schedule { margin-top: 22px; }
.home-cup-schedule .standings-area .section-head { margin-top: 0; }

/* ========================================================================
   PHASE 3F — CUP UI harmonized with the existing GATHER panels
   Only local CUP preview presentation: no backend or game logic changes.
   Reuse the Gather overview's subtle green-grey rim, radius and soft shadow.
   Distinctive team artwork, result glows and status-colored round interiors
   intentionally remain unchanged.
   ======================================================================== */

/* Main rectangular Cup surfaces visually match .gather-overview-card. */
.cup-list-card,
.panel,
.fixture-wrap,
.semi-panel,
.final-panel,
.stream-frame,
.lobby-team {
  border: 1px solid #28452f;
  border-radius: 11px;
  background: linear-gradient(145deg, #0c130f, #090e0b);
  box-shadow: 0 12px 28px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.018);
}
/* Preserve special player/team art and live/waiting/finished backgrounds. */
.team-card,
.match-card,
.round-accordion-item,
.fixture {
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.018);
}
/* Status color overrides (defined in Phase 3D) must still win. */
.match-card.ingame,
.match-card.upcoming,
.match-card.finished,
.round-accordion-item.finished,
.round-accordion-item.upcoming,
.round-accordion-item.ingame { box-shadow: none; }
/* Repeat the original Gather cards' gentle pointer hover only where useful. */
@media (hover:hover) {
  .cup-list-card:hover {
    border-color: #356740;
    box-shadow: 0 16px 32px rgba(0,0,0,.20), 0 0 18px rgba(57,224,95,.035);
  }
}

/* The detail tabs shrink to the actual buttons rather than stretching right. */
.tabs {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  vertical-align: top;
}
.tabs button { flex: 0 0 auto; }

/* GROUP STAGE now uses exactly the GROUP STANDINGS heading treatment. */
.rounds-heading { margin-top: 6px; }
.rounds-heading .section-head {
  margin: 0;
  font-size: 22px;
  color: #f2f7f3;
  font-weight: 900;
  letter-spacing: normal;
}
/* Schedule title remains, but its redundant match-count subtitle is gone. */
.schedule-head h2 { margin-bottom: 0; }
@media (max-width: 700px) {
  .tabs { display: flex; width: max-content; }
  .rounds-heading { align-items: flex-start; }
  .rounds-heading .section-head { font-size: 20px; }
}


/* ========================================================================
   PHASE 3G — Gather-style round shells and stronger Cup fixture hierarchy.
   All round containers use the same base palette as .gather-overview-card.
   Only the currently INGAME round gets an outer GREEN glow. No styling
   changes to Cup lifecycle, server allocation or the real Gather pages.
   ======================================================================== */

/* Closed, finished, future, and open round containers stay dark-neutral. */
.round-accordion-item,
.round-accordion-item.finished,
.round-accordion-item.upcoming,
.round-accordion-item.ingame {
  background: linear-gradient(145deg, #0c130f, #090e0b);
  border: 1px solid #28452f;
  border-radius: 11px;
  box-shadow: 0 12px 28px rgba(0,0,0,.16),
              inset 0 1px 0 rgba(255,255,255,.018);
}
/* One green halo, only around the live ROUND box (not the other rounds). */
.round-accordion-item.ingame {
  border-color: #448f58;
  box-shadow: 0 0 0 1px rgba(57,224,95,.10),
              0 0 21px rgba(57,224,95,.20),
              0 12px 28px rgba(0,0,0,.18),
              inset 0 1px 0 rgba(255,255,255,.02);
}

/* Four compact match cards inside each round: status communicates progress. */
.round-accordion-item .fixture {
  min-width: 0;
  min-height: 132px;
  padding: 12px 13px 13px;
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  box-shadow: none;
}
.round-accordion-item .fixture.upcoming {
  background: #252b28;
  color: #d2d9d3;
  border-color: #49534d;
}
/* Matches in progress use the same neutral rows as nonqualifiers, with a
   restrained green edge/glow. The bright halo belongs to the ROUND shell. */
.round-accordion-item .fixture.ingame {
  background: #161f19;
  color: #e3f3e6;
  border-color: #4b8059;
  box-shadow: 0 0 9px rgba(57,224,95,.07);
}
/* Finished match cards match qualified standings rows. */
.round-accordion-item .fixture.finished {
  background: #153521;
  color: #e3fce9;
  border-color: #396d47;
}

/* Remove the GROUP A · MATCH 1 label; the badge sits by itself at right. */
.round-accordion-item .fixture-top {
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0;
}
.round-accordion-item .fixture-bottom {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 7px;
  align-items: center;
  font-size: 18px;
  font-weight: 950;
  line-height: 1.2;
}
.round-accordion-item .fixture-bottom span:first-child,
.round-accordion-item .fixture-bottom span:last-child {
  overflow-wrap: anywhere;
  word-break: normal;
}
.round-accordion-item .fixture .vs {
  font-size: 26px;
  font-weight: 1000;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #e4f2e7;
}
.round-accordion-item .fixture.upcoming .vs {
  font-size: 20px;
  color: #abbdb0;
}
.round-accordion-item .fixture .winner {
  color: #adffbd;
  background: #236238;
  border-radius: 5px;
  padding: 4px 2px;
}
.round-accordion-item .fixture-map {
  margin-top: 0;
  min-height: 18px; /* empty upcoming map slot maintains card alignment */
  font-size: 15px;
  line-height: 18px;
  font-weight: 850;
  letter-spacing: .065em;
  text-transform: uppercase;
  color: #a8cbb2;
}

/* The four CUP MODE lobby cards follow the same map-vote rule. */
.match-card .match-map {
  min-height: 16px;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .065em;
}

@media (max-width: 1250px) {
  .round-accordion-item .fixture-bottom { font-size: 16px; }
  .round-accordion-item .fixture .vs { font-size: 23px; }
  .round-accordion-item .fixture-map { font-size: 13px; }
}
@media (max-width: 700px) {
  .round-accordion-item .fixture { min-height: 122px; }
  .round-accordion-item .fixture-bottom { font-size: 18px; }
  .round-accordion-item .fixture .vs { font-size: 26px; }
  .round-accordion-item .fixture-map { font-size: 14px; }
}
