/* Real staging CUP V2 signup mode; uses the approved B-Gjengen CUP visual system.
   Activated only at /cup-preview/index.html?mode=real. */
.cup-v2-mode .demo-toolbar{display:none!important}
.cup-v2-mode #mainNav,.cup-v2-mode .profile-dot{display:none!important}
.cup-v2-mode .app-shell{min-height:570px}
.cup-v2-live-tag{border:1px solid #295e3e;background:#0e1d13;color:#b3e7c0;font-size:10px;letter-spacing:.075em;text-align:center;border-radius:8px;padding:9px 12px;font-weight:900;margin-bottom:18px}
.cup-v2-title-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 14px;flex-wrap:wrap}
.cup-v2-title-row .section-head{margin:0;font-size:23px}
.cup-v2-create{margin:0 0 20px;display:grid;gap:13px;max-width:720px}
.cup-v2-create label{display:grid;gap:6px;font-size:12px;font-weight:850;color:#c5e2cc}
.cup-v2-create input,.cup-v2-create select{min-height:41px;width:100%;box-sizing:border-box;border:1px solid #426d4d;background:#0d1c13;color:#e5ffea;padding:10px 12px;border-radius:7px;font:inherit}
.cup-v2-create input:focus-visible,.cup-v2-create select:focus-visible{outline:2px solid #76e7a0;outline-offset:2px}
.cup-v2-buttons{display:flex;gap:10px;flex-wrap:wrap;margin-top:7px}
.cup-v2-empty{text-align:center}
.cup-v2-detail{padding-top:5px}
.cup-v2-back{margin-bottom:15px}
.cup-v2-detail-actions{display:flex;align-items:center;justify-content:flex-end}
.cup-v2-detail-actions .primary-button,.cup-v2-detail-actions .quiet-button{min-width:175px}
.cup-v2-login{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.cup-v2-player{display:flex;align-items:center;gap:11px;border-top:1px solid #253c2c;padding:8px 4px;color:#e6f6e8;font-size:13px}
.cup-v2-avatar{width:35px;height:35px;display:grid;place-items:center;border:1px solid #4c9564;border-radius:50%;background:#142f1c;overflow:hidden;font-size:10px;font-weight:900;flex:0 0 auto}
.cup-v2-avatar img{width:100%;height:100%;object-fit:cover}
.cup-v2-notice{background:#122819;border:1px solid #3d7950;padding:13px;border-radius:8px;font-size:12px;color:#c9e6cf;line-height:1.5;margin:15px 0}
.cup-v2-error{border:1px solid #b96969;color:#ffe1e1;background:#361b1b;padding:12px 16px;border-radius:8px;margin:0 0 15px;font-size:13px}
.cup-v2-success{border:1px solid #559566;color:#d7ffe0;background:#173420;padding:12px 16px;border-radius:8px;margin:0 0 15px;font-size:13px}
.cup-v2-about .quiet-button{font-size:11px}
.cup-v2-real-root .meta{gap:18px}
.cup-v2-real-root .cup-list-card{min-height:120px}
.cup-v2-real-root .cup-card-actions{display:flex}
@media(max-width:850px){.cup-v2-real-root .cup-detail-head{grid-template-columns:140px minmax(0,1fr)}.cup-v2-detail-actions{grid-column:1/-1;justify-content:flex-start}.cup-v2-detail .two-cols{grid-template-columns:1fr}}
@media(max-width:700px){.cup-v2-real-root .cup-list-card{grid-template-columns:100px minmax(0,1fr);gap:9px;padding:11px}.cup-v2-real-root .cup-card-actions{grid-column:2}.cup-v2-real-root .cup-title{font-size:15px}.cup-v2-title-row .section-head{font-size:19px}.cup-v2-real-root .cup-detail-head{grid-template-columns:100px minmax(0,1fr);gap:12px}.cup-v2-real-root .cup-detail-head .cup-poster{height:102px}.cup-v2-real-root .detail-title{font-size:19px}.cup-v2-live-tag{font-size:9px}.cup-v2-real-root .meta{gap:8px}}


/* Phase 4B1 — real owner-only team preparation. The approved Phase 3L mock stays untouched. */
.cup-v2-team-section{margin-top:25px}
.cup-v2-team-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #31543a;margin-bottom:14px}
.cup-v2-team-section-head h2{font-size:22px;letter-spacing:.05em}
.cup-v2-team-section-head span{font-size:10px;font-weight:900;color:#8bd5a5;letter-spacing:.1em}
.cup-v2-team-controls{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.cup-v2-team-controls button:disabled{opacity:.35;cursor:not-allowed}
.cup-v2-team-help{max-width:870px;color:#9aada0;font-size:12px;line-height:1.6;margin-bottom:16px}
.cup-v2-draft-status{font-size:12px;font-weight:800;color:#e8c977}
.cup-v2-team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cup-v2-team-card{padding:17px 13px;background:linear-gradient(160deg,#17301d,#101c14 65%);border:1px solid #315941;border-radius:10px;min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:10px}
.cup-v2-team-logo{width:94px;height:94px;margin:2px auto 3px;border-radius:50%;display:grid;place-items:center;filter:drop-shadow(0 0 14px rgba(95,210,123,.22))}
.cup-v2-team-image{width:100%;height:100%;object-fit:cover;border-radius:50%;border:2px solid #56946a}
.cup-v2-team-placeholder{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;border:2px solid #467a53;background:radial-gradient(circle at 30% 20%,#396b42,#15261a 70%);font-size:30px;color:#d9ffe2;font-weight:950;letter-spacing:-.1em;padding-right:7px;box-sizing:border-box}
.cup-v2-team-card:nth-child(2n) .cup-v2-team-placeholder{background:radial-gradient(circle at 30% 20%,#526039,#192519 75%)}
.cup-v2-team-card:nth-child(3n) .cup-v2-team-placeholder{background:radial-gradient(circle at 30% 20%,#395a63,#142126 75%)}
.cup-v2-team-card:nth-child(4n) .cup-v2-team-placeholder{background:radial-gradient(circle at 30% 20%,#644840,#251c1a 75%)}
.cup-v2-team-heading{text-align:center}
.cup-v2-team-heading h3{font-size:17px;margin:0 0 6px;overflow-wrap:anywhere}
.cup-v2-team-heading>span{display:block;color:#92b49c;font-size:10px;font-weight:900}
.cup-v2-team-name{box-sizing:border-box;width:100%;max-width:100%;background:#101d14;border:1px solid #4b855c;border-radius:5px;padding:8px;color:#e8ffeb;text-align:center;font-weight:900;font-size:14px}
.cup-v2-team-card ul{margin:0;padding:0;list-style:none;flex:1}
.cup-v2-team-card li{font-size:12px;padding:7px 4px;border-top:1px solid #314236;overflow-wrap:anywhere;color:#d2eed8}
.cup-v2-captain{font-size:9px;color:#f4dc7f;font-weight:900}
.cup-v2-captain-select{display:grid;gap:5px;color:#93c7a1;font-size:10px;font-weight:900}
.cup-v2-captain-select select,.cup-v2-assignment-list select{width:100%;min-width:0;padding:8px;border-radius:5px;border:1px solid #497257;background:#101d14;color:#e6ffeb;font-size:12px}
.cup-v2-image-buttons{display:flex;flex-wrap:wrap;gap:7px;justify-content:center}
.cup-v2-image-picker{display:inline-flex;align-items:center;padding:7px 9px;border-radius:5px;border:1px solid #3b7751;color:#9ce3b5;font-size:10px;font-weight:900;cursor:pointer}
.cup-v2-image-picker input{display:none}
.cup-v2-image-remove{font-size:10px!important}
.cup-v2-assign-panel{margin-top:16px}
.cup-v2-assign-panel h3{margin-bottom:5px}
.cup-v2-assign-panel>p{font-size:12px;color:#9dbbaa}
.cup-v2-assignment-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cup-v2-assignment-list label{display:grid;gap:6px;font-size:12px;color:#d7efdc;overflow-wrap:anywhere}
.cup-v2-teams-empty{color:#adbaae;font-size:13px;padding:18px}
@media(max-width:1100px){.cup-v2-team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.cup-v2-team-grid,.cup-v2-assignment-list{grid-template-columns:1fr}.cup-v2-team-logo{width:82px;height:82px}}

.cup-v2-simulated{font-size:9px;font-weight:900;color:#dec582;letter-spacing:.04em;margin-left:5px}

/* Phase 4B2 — approved CUP tabs and Supreme Leader management near the header. */
.cup-v2-detail-tabs{display:inline-flex;width:max-content;max-width:100%;margin:12px 0 18px;white-space:nowrap}
.cup-v2-detail-tabs button{flex:0 0 auto}
.cup-v2-tab-panel{min-height:200px}
.cup-v2-player-tab{max-width:950px}
.cup-v2-player-tab .cup-v2-players{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px}
.cup-v2-supreme-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:15px 0 0}
.cup-v2-leader-label{font-size:11px;letter-spacing:.04em;font-weight:950;color:#e0df98;border:1px solid #7d7735;background:#29291b;padding:10px 12px;border-radius:7px}
.cup-v2-supreme-controls .outline-button,.cup-v2-supreme-controls .quiet-button{min-height:38px}
.cup-v2-edit-form{margin:17px 0 4px;max-width:700px}
.cup-v2-edit-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.cup-v2-edit-heading h2{font-size:15px;margin:0;letter-spacing:.04em}
.cup-v2-edit-heading .quiet-button{min-height:34px}
.cup-v2-mode .cup-card-actions{gap:8px;flex-wrap:wrap;justify-content:flex-end}
.cup-v2-supreme-label{display:inline-flex;font-weight:900;color:#eedf8c}
@media(max-width:700px){
 .cup-v2-player-tab .cup-v2-players{grid-template-columns:1fr}
 .cup-v2-detail-tabs{margin-top:15px;display:flex;width:max-content;max-width:100%}
 .cup-v2-detail-tabs button{min-width:0;padding:13px 10px}
 .cup-v2-mode .cup-card-actions{justify-content:flex-start}
 .cup-v2-supreme-controls{align-items:stretch}
 .cup-v2-supreme-controls .outline-button,.cup-v2-supreme-controls .quiet-button{flex:1}
}


/* Phase 4C — staged group allocation, private fixture preview and publication. */
.cup-v2-fixture-tab{display:grid;gap:16px;min-width:0}
.cup-v2-group-edit{display:grid;gap:11px}
.cup-v2-group-edit h2{font-size:18px;letter-spacing:.04em;margin:0}
.cup-v2-group-edit>p{margin:0;color:#abc8b2;font-size:12px;line-height:1.5}
.cup-v2-group-assign-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}
.cup-v2-group-assign-list label{display:flex;justify-content:space-between;align-items:center;gap:13px;color:#e6f6e8;border-bottom:1px solid #2e4635;padding:9px 2px;font-size:13px;font-weight:850;min-width:0}
.cup-v2-group-assign-list label>span{min-width:0;overflow-wrap:anywhere}
.cup-v2-group-assign-list select{background:#0d1c13;color:#dffce5;border:1px solid #467357;border-radius:6px;padding:9px;min-width:128px}
.cup-v2-group-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding-top:6px}
.cup-v2-group-buttons button:disabled{opacity:.4;cursor:not-allowed}
.cup-v2-groups-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.cup-v2-group-card{background:linear-gradient(135deg,#17291c,#101b15);border:1px solid #36553e;border-radius:10px;padding:16px;min-width:0}
.cup-v2-group-card h3{margin:0 0 13px;font-size:18px;letter-spacing:.05em;color:#e9ffee;display:flex;justify-content:space-between;gap:9px}
.cup-v2-group-card h3 span{font-size:13px;color:#84d6a1}
.cup-v2-group-card ol{list-style-position:inside;margin:0;padding:0}
.cup-v2-group-card li{padding:10px 4px;border-top:1px solid #294834;color:#cce9d4;font-size:13px;font-weight:800;overflow-wrap:anywhere}
.cup-v2-group-card p{color:#95af9e;font-size:12px}
.cup-v2-fixtures-empty{color:#acbdaf;font-size:13px}
.cup-v2-fixture-rounds{margin:6px 0 28px}
.cup-v2-fixture-rounds>h2{font-size:22px;letter-spacing:.05em;margin-bottom:16px}
.cup-v2-round{margin:0 0 20px}
.cup-v2-round>h3{font-size:16px;color:#aee4bb;letter-spacing:.07em;margin-bottom:12px}
.cup-v2-fixture-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cup-v2-fixture{border:1px solid #355942;background:#102016;border-radius:9px;padding:17px;display:grid;gap:8px;text-align:center;min-width:0}
.cup-v2-fixture-tag{font-size:10px;letter-spacing:.09em;color:#8cce9f;font-weight:850}
.cup-v2-fixture strong{font-size:15px;color:#eaf6ed;overflow-wrap:anywhere}
.cup-v2-fixture strong span{color:#77ab85;font-size:11px;padding:0 5px}
.cup-v2-fixture small{color:#a1b6a7;font-size:10px;font-weight:800}
@media(max-width:700px){
 .cup-v2-group-assign-list,.cup-v2-groups-grid,.cup-v2-fixture-grid{grid-template-columns:1fr}
 .cup-v2-group-assign-list label{font-size:12px}
 .cup-v2-group-assign-list select{min-width:117px}
 .cup-v2-group-buttons>*{flex:1 1 100%}
}


/* Phase 4D — individual Steam check-in and Supreme Leader attendance controls. */
.cup-v2-checkin-panel{display:grid;gap:17px;margin-bottom:30px}
.cup-v2-checkin-panel>p{font-size:13px;color:#b5cfbc}
.cup-v2-checkin-panel>h2{margin:0}
.cup-v2-checkin-overview{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.cup-v2-checkin-overview h2{font-size:22px;margin:0 0 8px;letter-spacing:.04em}
.cup-v2-checkin-overview p{font-size:17px;font-weight:900;color:#9beab0;margin:0}
.cup-v2-checkin-overview p.cup-v2-team-help{font-size:12px;color:#aec7b3;font-weight:500;line-height:1.5;margin:9px 0 0}
.cup-v2-checkin-overview button:disabled{opacity:.4;cursor:not-allowed}
.cup-v2-checkin-self{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;background:#13291a;border:1px solid #4b9163;padding:15px;border-radius:8px}
.cup-v2-checkin-self strong{color:#d7f8dd;letter-spacing:.05em;font-size:13px}
.cup-v2-checkin-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.cup-v2-checkin-team{border:1px solid #36543f;border-radius:9px;background:#111d15;padding:13px;min-width:0}
.cup-v2-checkin-team header{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid #36543f;padding:0 0 11px}
.cup-v2-checkin-team h3{font-size:17px;margin:0;color:#def5e3;overflow-wrap:anywhere}
.cup-v2-checkin-team header span{color:#a5dcb2;font-weight:900;font-size:11px;white-space:nowrap}
.cup-v2-checkin-player{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:9px 0;border-bottom:1px solid #293b30;min-width:0}
.cup-v2-checkin-player:last-child{border-bottom:0}
.cup-v2-checkin-player>span:first-child{color:#d3ead8;font-weight:750;font-size:12px;min-width:0;overflow-wrap:anywhere;flex:1}
.cup-v2-checkin-player small{font-size:9px;color:#b7a777}
.cup-v2-checkin-state{color:#acada7;font-size:10px;font-weight:900;white-space:nowrap}
.cup-v2-checkin-state.ready{color:#80e3a2}
.cup-v2-checkin-player button{font-size:10px;padding:6px 8px;flex-shrink:0}
@media(max-width:850px){.cup-v2-checkin-teams{grid-template-columns:1fr}}
@media(max-width:520px){.cup-v2-checkin-player{flex-wrap:wrap}.cup-v2-checkin-player button{margin-left:auto}}

.cup-v2-checkin-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;flex-wrap:wrap}
@media(max-width:640px){.cup-v2-checkin-actions{width:100%;justify-content:stretch}.cup-v2-checkin-actions button{flex:1 1 100%}}


/* Phase 4E1 — read-only CUP -> MatchZy config preview on staging. */
.cup-v2-matchzy-panel{display:grid;gap:12px;min-width:0}
.cup-v2-matchzy-panel h2{font-size:18px;letter-spacing:.04em;margin:0}
.cup-v2-matchzy-panel>p{color:#a8c7b1;font-size:12px;line-height:1.6;margin:0}
.cup-v2-matchzy-form{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap}
.cup-v2-matchzy-form label{display:grid;gap:7px;flex:1 1 230px;color:#9bc9aa;font-size:11px;font-weight:850}
.cup-v2-matchzy-form select{min-width:0;width:100%;background:#0d1c13;color:#e3fbe8;border:1px solid #426d4d;padding:10px 12px;border-radius:6px;font:inherit;font-size:12px}
.cup-v2-matchzy-form button{min-height:41px}
.cup-v2-matchzy-form button:disabled{opacity:.4;cursor:not-allowed}
.cup-v2-preview-output{min-width:0}
.cup-v2-matchzy-warning{color:#efdf99;border-left:3px solid #aa914e;background:#27251c;padding:10px 13px;border-radius:4px;font-size:12px;line-height:1.5}
.cup-v2-preview-output pre{background:#0a130e;border:1px solid #34503b;border-radius:7px;padding:14px;max-height:460px;overflow:auto;color:#c8ebd1;font-size:12px;line-height:1.45;white-space:pre;tab-size:2}
@media(max-width:700px){.cup-v2-matchzy-form{display:grid;grid-template-columns:1fr}.cup-v2-matchzy-form label,.cup-v2-matchzy-form button{width:100%;min-width:0}}


/* Phase 4E2A: manual-only MatchZy smoke config controls. */
.cup-v2-smoke-panel{border-color:#587747}
.cup-v2-smoke-panel .cup-v2-matchzy-warning{margin:0}
.cup-v2-smoke-panel .cup-v2-preview-output>p{font-size:12px;line-height:1.5}
.cup-v2-smoke-panel .cup-v2-preview-output pre{white-space:pre-wrap;overflow-wrap:anywhere;user-select:text}
.cup-v2-smoke-panel .cup-v2-matchzy-form button{align-self:end;white-space:nowrap}

/* Phase 4E2B: per-fixture, no-host READY lobby. */
.cup-v2-match-lobby{display:grid;gap:16px}
.cup-v2-match-lobby>.panel{display:grid;gap:10px}
.cup-v2-match-lobby>.panel h2{margin:0;font-size:19px}
.cup-v2-match-lobby>.panel>strong{font-size:19px;color:#89edaa}
.cup-v2-ready-teams{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.cup-v2-ready-team{padding:16px;border:1px solid #31563c;border-radius:9px;background:#101d15}
.cup-v2-ready-team h3{margin:0 0 12px;font-size:16px;color:#dcffe5}
.cup-v2-ready-team h3 small{color:#9ab6a3;font-size:11px;margin-left:8px}
.cup-v2-ready-player{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:10px 0;border-top:1px solid #294334;font-size:12px;color:#d5e7d8}
.cup-v2-ready-player span:first-child{min-width:0;overflow-wrap:anywhere}
.cup-v2-ready-player span:last-child{white-space:nowrap;color:#a2aca4;font-weight:800;font-size:10px}
.cup-v2-ready-player span.ready{color:#83e8a4}
@media(max-width:720px){.cup-v2-ready-teams{grid-template-columns:1fr}}

/* Phase 4E2B: captain-only alternating BO1 map veto. */
.cup-v2-veto-panel{display:grid;gap:12px}
.cup-v2-veto-panel h2{margin:0;font-size:18px;letter-spacing:.04em}
.cup-v2-veto-panel>p{margin:0;color:#aed1b8;font-size:12px;line-height:1.55}
.cup-v2-veto-turn{font-weight:900;color:#8feeab!important;letter-spacing:.04em}
.cup-v2-veto-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.cup-v2-veto-map{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:16px 10px;border:1px solid #43624b;border-radius:8px;background:#102019;min-height:95px}
.cup-v2-veto-map strong{font-size:13px;color:#e7ffee;letter-spacing:.08em}
.cup-v2-veto-map small{font-size:10px;letter-spacing:.06em;color:#a9b9aa;font-weight:900}
.cup-v2-veto-map button{font-size:11px;padding:8px 14px}
.cup-v2-veto-map.banned{opacity:.48;border-color:#3c4140;background:#1c2020}
.cup-v2-veto-map.banned strong{text-decoration:line-through}
.cup-v2-veto-map.selected{border:2px solid #70e59b;box-shadow:0 0 18px #29b86c33;background:#153923}
.cup-v2-veto-map.selected strong{color:#a3ffbc}
.cup-v2-selected-map{color:#9efaad;letter-spacing:.04em;font-size:20px;margin:4px 0}
.cup-v2-veto-history{display:flex;flex-direction:column;gap:6px;font-size:11px;color:#b4cdbc}
.cup-v2-veto-history strong{font-size:12px;color:#e4f9e9}
@media(max-width:550px){.cup-v2-veto-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* CUP MODE: use the ORIGINAL approved Phase 3J/3K/3L card visuals,
 * preserving every component, spacing and team glow. No improvised
 * homepage layout or box surrounding the team emblem + team name. */
.cup-v2-mode-home .cup-live-matches{margin-top:18px}
.cup-v2-mode-home .cup-live-matches .live-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
/* Honor the *original* Phase 3J content-height cards: never stretch a
   one-button real match card to 230px with a large empty middle. */
.cup-v2-mode-home .cup-live-matches .match-card{
  width:100%;height:auto;min-height:0;display:flex;flex:0 0 auto;
  flex-direction:column;align-self:start;padding:11px 9px 9px;gap:7px
}
.cup-v2-mode-home .cup-live-matches .match-middle{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(62px,auto) minmax(0,1fr);
  flex:0 0 105px;height:105px;min-height:0;gap:5px;align-items:start;margin:0;padding:0
}
.cup-v2-mode-home .cup-live-matches .match-team,
.cup-v2-mode-home .cup-live-matches .match-card.upcoming .match-team,
.cup-v2-mode-home .cup-live-matches .match-card.ingame .match-team,
.cup-v2-mode-home .cup-live-matches .match-card.finished .match-team{
  border:0!important;background:transparent!important;box-shadow:none!important;
  padding:0;max-width:none;min-width:0;display:grid;justify-items:center;gap:7px
}
.cup-v2-mode-home .cup-live-matches .match-team>strong{font-size:12px;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.cup-v2-mode-home .cup-live-matches .match-center{
  height:83px;align-self:start;justify-content:center;align-content:center;
  margin:0;padding:0;gap:3px
}
/* Original Phase 3L: 'SERVER 1 — INGAME' on ONE line. */
.cup-v2-mode-home .cup-live-matches .match-slot-heading{
  flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:center;
  min-height:22px;gap:8px;padding:0
}
.cup-v2-mode-home .cup-live-matches .server-status-divider{
  display:inline-flex;align-items:center;color:#81a08a;
  font-size:12px;line-height:16px;font-weight:850
}

.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest{
  width:min(100%,73px);height:auto;aspect-ratio:1;display:grid;place-items:center;
  border:1px solid #426b50;border-radius:16px;background:#091710;
  box-shadow:0 0 16px #68dc8033,inset 0 0 10px #315f3c40;
  overflow:hidden;padding:0
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-team-image{
  width:100%;height:100%;object-fit:cover;border:0;border-radius:15px
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-team-placeholder{
  width:100%;height:100%;border:0;border-radius:15px;font-size:23px
}
.cup-v2-mode-home .cup-live-matches .match-center{min-width:0}
.cup-v2-mode-home .cup-live-matches .match-result{font-size:24px}
.cup-v2-mode-home .cup-live-matches .match-map{font-size:10px;line-height:1.45;min-height:16px}
.cup-v2-mode-home .cup-live-matches .match-footer{
  display:flex;flex-direction:column;justify-content:center;align-items:center;
  flex:0 0 auto;margin:0;padding:0;gap:5px
}
.cup-v2-mode-home .cup-live-matches .match-footer .match-lobby{
  width:min(100%,205px);min-height:29px;padding:6px 10px;
  font-size:10px;font-weight:950;text-align:center;color:#d8f5e1;
  border:1px solid #4f905e;background:#143b22;border-radius:6px
}
.cup-v2-mode-home .cup-live-matches .match-footer .match-lobby.your-lobby{
  background:linear-gradient(180deg,#fff06a,#ffd326 65%,#f6b900);
  border-color:#fff191;color:#171508;
  box-shadow:0 0 0 1px #6b500b66,0 0 12px #ffd7358c
}
.cup-v2-mode-home .cup-live-matches .match-slot-heading .pill{font-size:9px;padding:4px 7px;white-space:nowrap}
.cup-v2-mode-home .cup-live-teams{margin-top:16px}
.cup-v2-mode-home .cup-live-teams .team-page-top{margin-bottom:16px}
.cup-v2-mode-home .cup-live-teams .team-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.cup-v2-mode-home .cup-live-teams .team-card{min-width:0;min-height:210px}
.cup-v2-mode-home .cup-v2-mode-team-emblem{display:grid;place-items:center;overflow:hidden;flex:0 0 43px}
.cup-v2-mode-home .cup-v2-mode-team-emblem .cup-v2-team-image,
.cup-v2-mode-home .cup-v2-mode-team-emblem .cup-v2-team-placeholder{
  width:100%;height:100%;object-fit:cover;border-radius:8px
}
.cup-v2-mode-home .cup-v2-mode-team-emblem .cup-v2-team-placeholder{font-size:14px}
.cup-v2-mode-home .cup-v2-mode-avatar{overflow:hidden;padding:0}
.cup-v2-mode-home .cup-v2-mode-avatar img{width:100%;height:100%;object-fit:cover}
.cup-v2-mode-home .cup-v2-mode-team-card .team-title{gap:11px}
.cup-v2-mode-home .cup-v2-mode-team-card .team-members{display:grid;gap:7px}
.cup-v2-mode-home .live-schedule{margin-top:17px}
.cup-v2-mode-home .group-standings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.cup-v2-mode-home .cup-v2-upcoming-playoffs{margin-top:16px}
.cup-v2-playoff-future{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.cup-v2-playoff-future>div{display:grid;gap:7px;border:1px solid #35593e;border-radius:8px;padding:15px;background:#101c14}
.cup-v2-playoff-future strong{font-size:13px;color:#e6f9e9}
.cup-v2-playoff-future span{font-size:11px;color:#9bbcaa}
.cup-v2-fixture-open{margin-top:8px;min-height:26px;font-size:10px;padding:5px 9px}
.cup-v2-mode-footer{display:flex;justify-content:flex-end;margin:19px 0 8px}
.cup-v2-mode-footer button{min-height:35px;font-size:10px}
.cup-v2-mode-back{margin-bottom:15px}
@media(max-width:1100px){
  .cup-v2-mode-home .cup-live-matches .live-row,
  .cup-v2-mode-home .cup-live-teams .team-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:720px){
  .cup-v2-mode-home .cup-live-matches .live-row,
  .cup-v2-mode-home .cup-live-teams .team-grid,
  .cup-v2-mode-home .group-standings-grid,
  .cup-v2-playoff-future{grid-template-columns:1fr}
}
/* Match lobby uses the same black/green visual language and team emblem glow. */
.cup-v2-lobby-top{display:grid;gap:11px;background:linear-gradient(155deg,#14281a,#0c1610)}
.cup-v2-lobby-kicker{font-size:11px;font-weight:950;letter-spacing:.09em;color:#8bdd9f}
.cup-v2-lobby-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.cup-v2-lobby-title h2{font-size:23px;margin:0;color:#eafcef;overflow-wrap:anywhere}
.cup-v2-lobby-title h2 span{color:#8bd29c;font-size:14px;padding:0 8px}
.cup-v2-lobby-title>strong{font-size:18px;font-weight:950;color:#95eaae}
.cup-v2-ready-progress{height:7px;border-radius:8px;border:1px solid #2c4932;background:#101a13;overflow:hidden}
.cup-v2-ready-progress span{display:block;height:100%;border-radius:7px;background:linear-gradient(90deg,#267f43,#7df5a0);transition:width .25s}
.cup-v2-lobby-top>.primary-button,.cup-v2-lobby-top>.outline-button{width:100%;min-height:45px;font-weight:950}
.cup-v2-lobby-info{font-size:10px;font-weight:800;letter-spacing:.04em;line-height:1.5;color:#8caa94;margin:0}
.cup-v2-ready-team{padding:15px;background:linear-gradient(155deg,#14281a,#0f1812);border:1px solid #34583b}
.cup-v2-lobby-team-head{display:flex;align-items:center;gap:13px;margin:0 0 12px;padding:0 0 12px;border-bottom:1px solid #35533c}
.cup-v2-lobby-team-head h3{margin:4px 0 5px;font-size:18px;color:#edfff0}
.cup-v2-lobby-team-head small{font-size:10px;letter-spacing:.06em;font-weight:850;color:#8de1a6}
.cup-v2-lobby-team-head p{margin:0;font-size:10px;color:#b5c9b8}
.cup-v2-lobby-crest{width:68px;height:68px;display:grid;place-items:center;flex:0 0 68px;filter:drop-shadow(0 0 10px rgba(89,219,118,.35))}
.cup-v2-lobby-crest .cup-v2-team-image,.cup-v2-lobby-crest .cup-v2-team-placeholder{width:100%;height:100%}
.cup-v2-ready-player{padding:7px 0;min-height:36px}
.cup-v2-ready-player-name{display:flex;align-items:center;gap:11px;min-width:0;flex:1}
.cup-v2-ready-player-name>span:last-child{overflow-wrap:anywhere;color:#e1f7e6}
.cup-v2-lobby-avatar{width:32px;height:32px;flex:0 0 32px;display:grid;place-items:center;overflow:hidden;border-radius:50%;border:1px solid #437a53;background:#19301f;color:#bdf0c7;font-size:10px;font-weight:950}
.cup-v2-lobby-avatar img{width:100%;height:100%;object-fit:cover}
.cup-v2-lobby-captain{color:#eede89;font-size:9px;font-weight:900;white-space:nowrap}
.cup-v2-player-ready-state{font-size:10px;font-weight:950;white-space:nowrap;color:#9ba99f}
.cup-v2-player-ready-state.ready{color:#84edac}
@media(max-width:1100px){.cup-v2-real-root .cup-v2-live-matches .live-row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cup-v2-real-root .cup-v2-live-matches .live-row{grid-template-columns:1fr}.cup-v2-lobby-title h2{font-size:18px}.cup-v2-ready-player-name{gap:7px}.cup-v2-lobby-crest{width:54px;height:54px;flex-basis:54px}}

/* Standalone CUP LOBBY, not buried inside Match Schedule management. */
.cup-v2-lobby-page{display:grid;gap:16px;max-width:100%}
.cup-v2-lobby-page-heading{
  padding:21px 24px;border:1px solid #35553c;border-radius:11px;
  background:linear-gradient(115deg,#122b1c,#0d1610);
}
.cup-v2-lobby-page-kicker{
  display:block;font-size:10px;letter-spacing:.12em;color:#95e0aa;
  font-weight:950;margin-bottom:8px
}
.cup-v2-lobby-page-heading h1{
  margin:0 0 6px;font-size:clamp(24px,3vw,34px);font-weight:950;letter-spacing:.035em
}
.cup-v2-lobby-page-heading h1 span{
  font-size:clamp(11px,1.3vw,15px);color:#9bc7aa;white-space:nowrap
}
.cup-v2-lobby-page-heading p{margin:0;color:#b2ceb9;font-size:12px;line-height:1.5}
.cup-v2-lobby-page .cup-v2-match-lobby{margin:0}
.cup-v2-lobby-page .cup-v2-lobby-top{border-color:#4d8c5b}
@media(max-width:700px){.cup-v2-lobby-page-heading{padding:16px}}

/* Restore the approved 3J/3L live score alignment and match-status glow.
   Actual numeric scores appear only after verified MatchZy data is provided. */
.cup-v2-mode-home .cup-live-matches .match-card.ingame{
  border-color:#72b68a;
  background:radial-gradient(ellipse 90% 95% at 50% -18%,#28372d,#1e2922 55%,#19231d);
  box-shadow:0 0 0 1px #62c67d22,0 0 15px #6bdb8a46,0 8px 20px #0007
}
.cup-v2-mode-home .cup-live-matches .match-card.finished{
  border-color:#78c38d;
  background:radial-gradient(ellipse 90% 115% at 50% -10%,#315741,#203d2c 48%,#19261e);
  box-shadow:0 0 0 1px #88d69c26,0 0 20px #62dd884c,0 8px 24px #0007
}
.cup-v2-mode-home .cup-live-matches .match-center{
  height:83px;align-self:start;justify-content:center;
  align-content:center;gap:3px;padding:0;margin:0
}
.cup-v2-mode-home .cup-live-matches .match-result{
  font-size:clamp(18px,1.6vw,26px);line-height:1.15
}
.cup-v2-mode-home .cup-live-matches .match-map{
  font-size:clamp(10px,.76vw,12px);line-height:15px;min-height:0
}
/* The read-only spectator panel is intentionally inside LIVE MATCHES,
   spanning all four cards and above TEAMS, as in Phase 3K. */
.cup-v2-mode-home .cup-live-matches .cup-spectator-panel{
  grid-column:1/-1;margin-top:15px
}

/* Exact approved Gather-shaped CUP lobby styling; scoped to real CUP only. */
.cup-v2-real-root .cup-approved-lobby{padding:16px 19px 19px;border-color:#3a6045}
.cup-v2-real-root .cup-approved-lobby .lobbytop{display:flex;align-items:center;gap:14px;justify-content:space-between;padding:0 0 16px;border-bottom:1px solid #203826;margin-bottom:17px}
.cup-v2-real-root .cup-approved-lobby .lobbytitle{display:flex;align-items:center;gap:12px}
.cup-v2-real-root .cup-approved-lobby .lobbytitle:before{content:'';height:23px;width:4px;background:#80f2a1}
.cup-v2-real-root .cup-approved-lobby .lobbytitle h2{font-size:20px;margin:0;letter-spacing:.05em;font-weight:1000}
.cup-v2-real-root .cup-approved-lobby .lobbytitle h2 small{color:#b3c4b7;font-size:11px;margin-left:9px;letter-spacing:.04em}
.cup-v2-real-root .cup-approved-lobby .label{font-size:10px;border:1px solid #477956;padding:6px 10px;border-radius:5px;font-weight:1000;color:#a8ebbc;background:#14301e;white-space:nowrap}
.cup-v2-real-root .cup-approved-lobby .lobby-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(305px,.73fr) minmax(0,1fr);gap:15px;align-items:start}
.cup-v2-real-root .cup-approved-lobby .team-head{height:60px;display:flex;justify-content:space-between;align-items:center;padding:11px 14px;margin-bottom:9px;border-radius:9px;font-size:17px;font-weight:1000;letter-spacing:.03em}
.cup-v2-real-root .cup-approved-lobby .cup-lobby-right .team-head{border:1px solid #7a6325;background:linear-gradient(180deg,#423615a6,#221c0c)}
.cup-v2-real-root .cup-approved-lobby .cup-lobby-left .team-head{border:1px solid #2b5785;background:linear-gradient(180deg,#203e63b5,#111b2c)}
.cup-v2-real-root .cup-approved-lobby .team-tag{font-size:10px;font-weight:900;letter-spacing:.07em;color:#b6caba;display:block;margin-bottom:4px}
.cup-v2-real-root .cup-approved-lobby .head-teamname{display:flex;align-items:center;gap:9px}
.cup-v2-real-root .cup-approved-lobby .team-mark{font-size:14px;display:grid;place-items:center;flex:0 0 39px;height:39px;border-radius:9px;color:#b8f6ce;border:1px solid #4b855b;background:linear-gradient(140deg,#315c3d,#15281a);box-shadow:0 0 13px #5ae47f3d}
.cup-v2-real-root .cup-approved-lobby .team-head .count{font-size:13px;color:#b9d2c2;white-space:nowrap}
.cup-v2-real-root .cup-approved-lobby .slots{display:grid;gap:8px}
.cup-v2-real-root .cup-approved-lobby .slot{height:60px;min-height:60px;display:flex;align-items:center;padding:9px 11px;gap:12px;background:#101712;border:1px solid #25382a;border-radius:9px;min-width:0}
.cup-v2-real-root .cup-approved-lobby .slot.isready{background:linear-gradient(90deg,#142719,#111912);border-color:#355d40}
.cup-v2-real-root .cup-approved-lobby .slot .avatar{width:33px;height:33px;flex:0 0 33px;display:grid;place-items:center;background:#203827;border:1px solid #42684c;color:#b5e7c1;border-radius:50%;font-size:10px;font-weight:1000}
.cup-v2-real-root .cup-approved-lobby .slot .player{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:950}
.cup-v2-real-root .cup-approved-lobby .slot .player .captain{font-size:8px;color:#f0ce6e;border:1px solid #ac903d44;margin-left:4px;letter-spacing:.04em;padding:2px 4px;border-radius:3px}
.cup-v2-real-root .cup-approved-lobby .slot .status{margin-left:auto;font-size:10px;letter-spacing:.05em;font-weight:950;color:#7d8b80;white-space:nowrap}
.cup-v2-real-root .cup-approved-lobby .slot .status.yes{color:#91f7aa}
.cup-v2-real-root .cup-approved-lobby .slot .status.no{color:#8e9b91}
.cup-v2-real-root .cup-approved-lobby .center{display:grid;gap:11px}
.cup-v2-real-root .cup-approved-lobby .action-wrap{display:grid;gap:5px}
.cup-v2-real-root .cup-approved-lobby .cta{min-height:60px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:9px;border:1px solid #5eae70;background:linear-gradient(180deg,#3d904f,#2c6d3b);color:white;font-size:14px;font-weight:1000;letter-spacing:.065em;box-shadow:0 0 15px #3af06d18}
.cup-v2-real-root .cup-approved-lobby .cta:hover:not(:disabled){filter:brightness(1.2)}
.cup-v2-real-root .cup-approved-lobby .cta:disabled{cursor:default;opacity:1}
.cup-v2-real-root .cup-approved-lobby .cta.busy{background:#1c2f20;border-color:#416a4a;color:#bce8c3}
.cup-v2-real-root .cup-approved-lobby .cta.copy{background:linear-gradient(180deg,#76cc74,#339b4a);border-color:#9eec9d;box-shadow:0 0 20px #4be67440}
.cup-v2-real-root .cup-approved-lobby .action-sub{text-align:center;font-weight:900;color:#9eb4a4;font-size:10px;letter-spacing:.025em;min-height:16px}
.cup-v2-real-root .cup-approved-lobby .progress{width:100%;height:5px;border:1px solid #35583b;background:#142016;border-radius:5px;overflow:hidden}
.cup-v2-real-root .cup-approved-lobby .progress>div{height:100%;width:0;background:linear-gradient(90deg,#3ca858,#a6ffa5);transition:width .25s}
.cup-v2-real-root .cup-approved-lobby .mapboard{border:1px solid #35503b;background:#0b130e;border-radius:10px;padding:10px;display:grid;gap:5px}
.cup-v2-real-root .cup-approved-lobby .map-title{font-size:11px;font-weight:1000;letter-spacing:.09em;color:#bcd2c1;text-align:center;padding:5px 0 8px;border-bottom:1px solid #23382a;margin-bottom:3px}
.cup-v2-real-root .cup-approved-lobby .map-row{height:35px;display:flex;align-items:center;justify-content:space-between;gap:9px;padding:0 8px 0 12px;border:1px solid #365640;border-radius:6px;background:linear-gradient(90deg,#203a27,#15241b);transition:background .2s}
.cup-v2-real-root .cup-approved-lobby .mapname{font-weight:1000;font-size:11px;letter-spacing:.07em;color:#e2f5e8}
.cup-v2-real-root .cup-approved-lobby .map-row .btn-ban{border:1px solid #6cba83;background:#274e30;color:#c8fbd3;border-radius:4px;font-weight:1000;font-size:10px;min-width:59px;height:25px;letter-spacing:.05em}
.cup-v2-real-root .cup-approved-lobby .map-row .btn-ban:hover{background:#3f9357;color:#fff}
.cup-v2-real-root .cup-approved-lobby .map-row .waittag{color:#84978a;font-size:9px;font-weight:900}
.cup-v2-real-root .cup-approved-lobby .map-row.banned{background:#141a15;border-color:#222d25;opacity:.76}
.cup-v2-real-root .cup-approved-lobby .map-row.banned .mapname{text-decoration:line-through;color:#5e7064}
.cup-v2-real-root .cup-approved-lobby .map-row .banlabel{color:#f07373;font-size:10px;font-weight:1000;letter-spacing:.06em}
.cup-v2-real-root .cup-approved-lobby .map-row.selected{background:linear-gradient(90deg,#225b34,#1b3c25);border-color:#8ff4a0;box-shadow:0 0 0 1px #74f9a741,0 0 13px #53d67d32}
.cup-v2-real-root .cup-approved-lobby .map-row.selected .mapname{color:#c9ffd1}
.cup-v2-real-root .cup-approved-lobby .map-row .selectedtag{font-weight:1000;color:#97ffae;font-size:10px;letter-spacing:.05em}
.cup-v2-real-root .cup-approved-lobby .turn{display:flex;align-items:center;justify-content:center;gap:6px;min-height:26px;font-size:10px;font-weight:950;color:#b2c5b6;letter-spacing:.04em}
.cup-v2-real-root .cup-approved-lobby .turn b{color:#a3ffb8}
.cup-v2-real-root .cup-approved-lobby .infofoot{margin:17px 4px 0;padding-top:13px;border-top:1px solid #203523;display:flex;justify-content:space-between;align-items:center;color:#8aaf91;font-size:10px;font-weight:900;letter-spacing:.06em}
.cup-v2-real-root .cup-approved-lobby .note{color:#8aaf91}

.cup-v2-real-root .cup-approved-lobby{
  margin:0 0 16px;padding:16px 19px 19px;box-sizing:border-box;min-width:0;
  background:linear-gradient(180deg,#0d160f,#09110d);border:1px solid #3a6045;
  border-radius:10px;color:#f1faf3
}
.cup-v2-real-root .cup-approved-lobby *{box-sizing:border-box}
.cup-v2-real-root .cup-approved-lobby .team-mark{
  overflow:hidden;padding:0;flex-shrink:0
}
.cup-v2-real-root .cup-approved-lobby .team-mark .cup-v2-team-image,
.cup-v2-real-root .cup-approved-lobby .team-mark .cup-v2-team-placeholder{
  width:100%;height:100%;object-fit:cover;font-size:14px;border-radius:7px;
  display:grid;place-items:center
}
.cup-v2-real-root .cup-approved-lobby .team-name{display:block}
.cup-v2-real-root .cup-approved-lobby .slot .avatar{overflow:hidden}
.cup-v2-real-root .cup-approved-lobby .slot .avatar img{
  width:100%;height:100%;object-fit:cover;border-radius:50%
}
.cup-v2-real-root .cup-approved-lobby .center{min-width:0}
.cup-v2-real-root .cup-approved-lobby .map-row .btn-ban{
  width:auto!important;min-height:25px!important;padding:2px 11px!important
}
.cup-v2-real-root .cup-approved-lobby .map-row.selected .selectedtag{color:#9afeaa}
.cup-v2-real-root .cup-approved-lobby .turn{text-align:center}
.cup-v2-real-root .cup-approved-lobby .action-wrap .cta{
  width:100%;margin:0;cursor:pointer;line-height:1.4;text-align:center
}
@media(max-width:1220px){
  .cup-v2-real-root .cup-approved-lobby .lobby-body{
    grid-template-columns:minmax(0,1fr) minmax(260px,.82fr) minmax(0,1fr);gap:9px
  }
}
@media(max-width:970px){
  .cup-v2-real-root .cup-approved-lobby .lobby-body{grid-template-columns:1fr 1fr;gap:12px}
  .cup-v2-real-root .cup-approved-lobby .center{grid-column:1/-1;grid-row:2}
  .cup-v2-real-root .cup-approved-lobby .cup-lobby-left{grid-column:1;grid-row:1}
  .cup-v2-real-root .cup-approved-lobby .cup-lobby-right{grid-column:2;grid-row:1}
  .cup-v2-real-root .cup-approved-lobby .mapboard{grid-template-columns:repeat(3,minmax(0,1fr))}
  .cup-v2-real-root .cup-approved-lobby .map-title,
  .cup-v2-real-root .cup-approved-lobby .turn{grid-column:1/-1}
}
@media(max-width:650px){
  .cup-v2-real-root .cup-approved-lobby{padding:10px}
  .cup-v2-real-root .cup-approved-lobby .lobby-body{grid-template-columns:1fr}
  .cup-v2-real-root .cup-approved-lobby .cup-lobby-left{grid-column:1;grid-row:1}
  .cup-v2-real-root .cup-approved-lobby .center{grid-column:1;grid-row:2}
  .cup-v2-real-root .cup-approved-lobby .cup-lobby-right{grid-column:1;grid-row:3}
  .cup-v2-real-root .cup-approved-lobby .mapboard{grid-template-columns:repeat(2,minmax(0,1fr))}
  .cup-v2-real-root .cup-approved-lobby .lobbytitle h2{font-size:14px}
  .cup-v2-real-root .cup-approved-lobby .lobbytitle h2 small{display:block;margin:4px 0 0}
}

/* Approved CUP lobby final polish — original Gather visual proportions.
   The back link belongs BETWEEN the CUP hero and match panel, with space
   on BOTH sides, while TEAMS begins immediately after the match panel. */
.cup-v2-mode-home .cup-v2-mode-lobby{margin:18px 0 0;min-width:0}
.cup-v2-mode-home .cup-v2-mode-lobby-back{
  display:flex;align-items:center;min-height:36px;margin:0 0 17px;
}
.cup-v2-mode-home .cup-v2-mode-lobby-back .quiet-button{
  min-height:35px;padding:8px 14px;border-radius:7px;
  border:1px solid #426d4a;background:#14251a;color:#b6e4bf;
  font-size:11px;font-weight:950;letter-spacing:.04em;
  transition:background .15s,border-color .15s;
}
.cup-v2-mode-home .cup-v2-mode-lobby-back .quiet-button:hover{
  background:#21442b;border-color:#78d891;color:#f0fff2
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby{
  margin:0 0 22px;
  background:linear-gradient(180deg,#0e1711 0%,#0a100d 100%);
  border:1px solid #365c41;border-radius:10px;
  box-shadow:0 0 0 1px #112b185c,0 10px 22px #00000020
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .lobbytop{
  padding:1px 1px 16px;margin-bottom:17px
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .team-head{
  box-shadow:inset 0 1px 0 #ffffff0a
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .slot.isready{
  box-shadow:inset 3px 0 0 #57bb75a6
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .mapboard{
  box-shadow:inset 0 1px 0 #60926720
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .action-wrap .cta:not(:disabled):focus-visible,
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .btn-ban:focus-visible,
.cup-v2-mode-home .cup-v2-mode-lobby-back button:focus-visible{
  outline:2px solid #8bffad;outline-offset:3px
}
@media(max-width:700px){
  .cup-v2-mode-home .cup-v2-mode-lobby{margin-top:13px}
  .cup-v2-mode-home .cup-v2-mode-lobby-back{margin-bottom:13px}
  .cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby{margin-bottom:17px}
}

/* Approved Phase 3L Supreme Leader private CUP Control Center. */
.cup-v2-mode-home .cup-v2-admin-entry{display:flex;justify-content:flex-end;margin:12px 0 6px}
.cup-v2-mode-home .cup-v2-admin-entry button{
  color:#ffe7a0;border:1px solid #856e2c;background:linear-gradient(135deg,#29230e,#17190f);
  border-radius:7px;min-height:34px;padding:7px 15px;font-size:11px;font-weight:950
}
.cup-v2-mode-home .cup-v2-admin-entry button:hover{border-color:#e6c66a;background:#2c2917}
.cup-v2-admin-center{display:grid;gap:16px}
.cup-v2-admin-back{margin-bottom:2px}
.cup-v2-admin-header{
  background:linear-gradient(120deg,#152619,#101810);border:1px solid #3d6447;
  border-radius:10px;padding:23px 24px;color:#eaf7eb
}
.cup-v2-admin-header>span{display:block;color:#e3ce82;font-size:10px;letter-spacing:.14em;font-weight:950}
.cup-v2-admin-header h1{margin:8px 0;font-size:clamp(23px,3vw,33px);font-weight:950}
.cup-v2-admin-header p{font-size:12px;color:#bed2c0;margin:0;line-height:1.6}
.cup-v2-admin-card,.cup-v2-admin-summary{background:#0b1510;border:1px solid #35593d;border-radius:9px;padding:18px}
.cup-v2-admin-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.cup-v2-admin-heading h2,.cup-v2-admin-summary h2{font-size:17px;margin:0;color:#eaf9ec}
.cup-v2-admin-heading span{font-size:10px;color:#acc1b0}
.cup-v2-admin-team-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:18px}
.cup-v2-admin-team-tabs button{
  font-size:11px;padding:9px 7px;white-space:normal;min-width:0;border-color:#396443;color:#def9e3
}
.cup-v2-admin-team-tabs button.active{border-color:#78db93;background:#1b422a;box-shadow:0 0 10px #2dc45e33}
.cup-v2-admin-editor{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:16px}
.cup-v2-admin-team-preview,.cup-v2-admin-actions{
  border:1px solid #31533b;border-radius:9px;padding:16px;background:linear-gradient(170deg,#15261a,#101a13)
}
.cup-v2-admin-team-title{display:flex;align-items:center;gap:12px;padding-bottom:13px;border-bottom:1px solid #324e38;margin-bottom:10px}
.cup-v2-admin-team-title>.cup-v2-team-image,.cup-v2-admin-team-title>.cup-v2-team-placeholder{
  display:grid;place-items:center;width:54px;height:54px;border-radius:9px;border:1px solid #5a9a6d;
  object-fit:cover;box-shadow:0 0 14px #54d37c44
}
.cup-v2-admin-team-title h3{margin:0 0 5px;color:#ecffef;font-size:17px}
.cup-v2-admin-team-title small{font-size:9px;color:#a4ddaf}
.cup-v2-admin-roster{display:grid;gap:7px}
.cup-v2-admin-player{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border:1px solid #2f5038;background:#101c13;border-radius:6px;font-size:11px}
.cup-v2-admin-player strong{font-size:9px;color:#e7d483}
.cup-v2-admin-actions{display:grid;align-content:start;gap:12px}
.cup-v2-admin-actions h3{margin:2px 0;color:#e3f5e8;font-size:12px;letter-spacing:.04em}
.cup-v2-admin-actions>p,.cup-v2-admin-summary p{margin:0;color:#a9c0af;font-size:11px;line-height:1.6}
.cup-v2-admin-actions label,.cup-v2-admin-form label{display:grid;gap:5px;font-size:10px;color:#b5c9b9;font-weight:900}
.cup-v2-admin-actions select,.cup-v2-admin-form input,.cup-v2-admin-form select{
  display:block;width:100%;min-width:0;border-radius:6px;background:#09150c;border:1px solid #436a4b;
  color:#edf9ee;padding:10px;font-size:12px
}
.cup-v2-admin-form{display:grid;gap:12px}
.cup-v2-admin-form button{min-height:34px;font-size:11px}
.cup-v2-admin-actions>.outline-button{min-height:35px;font-size:11px;font-weight:950}
.cup-v2-admin-divider{height:1px;background:#31513a;margin:5px 0}
.cup-v2-admin-summary{display:grid;justify-items:start;gap:12px}
@media(max-width:850px){.cup-v2-admin-editor{grid-template-columns:1fr}}
@media(max-width:600px){.cup-v2-admin-team-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.cup-v2-admin-card{padding:11px}}


/* Phase 3L emblem identity and match-state finishing styles.
   The colours are visual accents, not team attributes or game status.
   Keep the original team emblem frame/glow with NO extra plate behind
   the team name. */
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-0{--cup-emblem:#f19a50}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-1{--cup-emblem:#82b6ff}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-2{--cup-emblem:#71e4a0}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-3{--cup-emblem:#fb7e93}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-4{--cup-emblem:#b698ff}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-5{--cup-emblem:#64dfef}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-6{--cup-emblem:#ebc665}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest.cup-v2-crest-tone-7{--cup-emblem:#b9e65a}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest{
  border:2px solid var(--cup-emblem,#67ca84);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--cup-emblem,#67ca84) 30%,transparent),
    0 0 17px color-mix(in srgb,var(--cup-emblem,#67ca84) 54%,transparent),
    inset 0 0 13px color-mix(in srgb,var(--cup-emblem,#67ca84) 22%,transparent);
  background:linear-gradient(135deg,color-mix(in srgb,var(--cup-emblem,#67ca84) 20%,#08140d),#07110a);
  transition:box-shadow .2s ease,border-color .2s ease
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-team-placeholder{
  color:var(--cup-emblem,#b1f5c2);background:transparent;
  font-size:24px;font-weight:1000;letter-spacing:-.03em
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-team-image{
  border:0;border-radius:13px;object-fit:cover
}
.cup-v2-mode-home .cup-live-matches .match-card.upcoming{
  border-color:#455b4c;
  background:radial-gradient(ellipse 95% 95% at 50% -18%,#29382e,#1c2821 56%,#152019);
  box-shadow:0 7px 20px #0005,inset 0 1px 0 #ffffff09
}
.cup-v2-mode-home .cup-live-matches .match-card.starting{
  border-color:#8c814b;
  background:radial-gradient(ellipse 95% 90% at 50% -12%,#373424,#24271e 58%,#1b2119);
  box-shadow:0 0 15px #ddb65028,inset 0 1px 0 #e8cc8333
}
.cup-v2-mode-home .cup-live-matches .match-slot-status .pill.starting{
  color:#fce3a5;border-color:#928047;background:#40371b
}
.cup-v2-mode-home .cup-live-matches .match-slot-status .pill.ingame{
  background:#883c30;border-color:#e76c4c;color:#ffeadf;
  box-shadow:0 0 10px #ea5d3544
}
.cup-v2-mode-home .cup-live-matches .match-slot-status .pill.finished{
  background:#1e5935;border-color:#6aca8b;color:#dcffe5
}
.cup-v2-mode-home .cup-live-matches .match-card.ingame{
  border-color:#80d69b;
  box-shadow:inset 0 1px 0 #ccffd81c,inset 0 0 25px #38b7661c,
    0 0 0 1px #62c67d30,0 0 20px #50d7805a,0 10px 24px #0008
}
.cup-v2-mode-home .cup-live-matches .match-card.ingame .match-result{
  color:#f2fff3;text-shadow:0 0 12px #62fa9b52
}
.cup-v2-mode-home .cup-live-matches .match-card.finished{
  border-color:#85d5a0;
  box-shadow:inset 0 0 26px #29915f21,0 0 0 1px #88d69c35,
    0 0 20px #62dd8873,0 8px 24px #0008
}
.cup-v2-mode-home .cup-live-matches .match-card.finished .match-team.winner-team .cup-v2-live-crest{
  --cup-emblem:#7dffab;border-color:#7dffab;
  background:linear-gradient(145deg,#204a2e,#0b2615);
  box-shadow:0 0 0 1px #71fb9b50,0 0 24px #58ff8e99,inset 0 0 15px #328b4475
}
.cup-v2-mode-home .cup-live-matches .match-card.finished .match-team.winner-team strong{
  color:#a4ffbb
}
.cup-v2-mode-home .cup-live-matches .match-card.finished .match-team.loser-team .cup-v2-live-crest{
  --cup-emblem:#ff817e;border-color:#ff817e;
  background:linear-gradient(145deg,#462121,#220e0e);
  box-shadow:0 0 0 1px #ff747740,0 0 20px #f6474770,inset 0 0 14px #8524246b
}
.cup-v2-mode-home .cup-live-matches .match-card.finished .match-team.loser-team strong{color:#ecafad}
.cup-v2-mode-home .cup-live-matches .match-map{
  text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
@media(max-width:700px){
 .cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-team-placeholder{font-size:20px}
}

/* Private, explicitly simulated INGAME/FINISHED appearance review link. */
.cup-v2-admin-summary .cup-v2-card-preview-link{
  display:inline-flex;align-items:center;justify-content:center;min-height:35px;
  padding:8px 14px;border-radius:7px;font-size:11px;font-weight:950;
  color:#f5dc9d;border:1px solid #887340;background:#282210;
  text-decoration:none;max-width:100%;text-align:center
}
.cup-v2-admin-summary .cup-v2-card-preview-link:hover{
  color:#fff1c3;border-color:#ddba60;background:#322a15
}

/* EXACT PHASE 3L real CUP: team-identity styling, not generic TE icons.
   Mirrors the original cup.js teamCard palette/tint and match icon design. */
.cup-v2-mode-home .cup-live-teams .cup-v2-mode-team-card{
  background:linear-gradient(128deg,var(--team-tint,#12241a),#0a110dcf 75%);
  border-color:#304a38;
  box-shadow:0 8px 25px #0005
}
.cup-v2-mode-home .cup-live-teams .cup-v2-mode-team-card::after{
  background:var(--team-accent,#2b9d4b);opacity:.1
}
.cup-v2-mode-home .cup-live-teams .cup-v2-mode-team-emblem{
  border:1px solid var(--team-accent,#5fe68b);
  color:var(--team-accent,#5fe68b);
  background:#09140dbb;
  box-shadow:0 0 12px color-mix(in srgb,var(--team-accent,#5fe68b) 28%,transparent);
  border-radius:11px;
}
.cup-v2-mode-home .cup-live-teams .cup-v2-mode-team-emblem .cup-v2-symbolic-crest{
  color:var(--team-accent,#5fe68b);font-size:23px;line-height:1;
  display:grid;place-items:center;background:transparent
}
/* Keep the authentic team picture untouched when Supreme Leader uploaded one. */
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest{
  --cup-emblem:var(--team-accent,#71db85);
  border-radius:15px;
  border-color:var(--cup-emblem);
  color:var(--cup-emblem);
  background:linear-gradient(145deg,var(--team-tint,#12241a),#07110a 84%);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--cup-emblem) 35%,transparent),
    0 0 16px color-mix(in srgb,var(--cup-emblem) 62%,transparent),
    inset 0 0 12px color-mix(in srgb,var(--cup-emblem) 26%,transparent)
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-symbolic-crest{
  font-size:32px;line-height:1;
  color:var(--cup-emblem);background:transparent;
  width:100%;height:100%;display:grid;place-items:center
}
.cup-v2-mode-home .cup-live-matches .match-team{
  border:none!important;background:transparent!important;box-shadow:none!important
}
.cup-v2-mode-home .cup-live-matches .match-middle{
  flex-basis:88px;height:88px;align-items:start
}
.cup-v2-mode-home .cup-live-matches .match-center{height:72px}
.cup-v2-mode-home .cup-live-matches .match-card{
  min-height:0;padding:9px 9px 8px;gap:4px
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest{
  width:min(100%,63px)
}
.cup-v2-mode-home .cup-live-matches .match-team{gap:4px}
.cup-v2-mode-home .cup-live-matches .match-footer .match-lobby{
  min-height:27px;padding:4px 10px
}
.cup-v2-mode-home .cup-live-matches .match-slot-heading{min-height:18px}
@media (max-width:700px){
  .cup-v2-mode-home .cup-live-matches .match-middle{flex-basis:94px;height:94px}
  .cup-v2-mode-home .cup-live-matches .cup-v2-live-crest{width:min(100%,65px)}
}


/* Phase 3L precision pass — crest/image and team name use IDENTICAL fixed
   rows. This prevents the left and right names from drifting vertically
   because of glyph metrics, photo dimensions or different team-name lengths.
   Shared by real CUP MODE and the design-only card-state preview. */
.cup-v2-mode-home .cup-live-matches .match-middle{
  grid-template-columns:minmax(0,1fr) minmax(60px,auto) minmax(0,1fr);
  align-items:start;
  flex:0 0 98px;
  height:98px;
  min-height:98px;
  gap:4px
}
.cup-v2-mode-home .cup-live-matches .match-team,
.cup-v2-mode-home .cup-live-matches .match-card.upcoming .match-team,
.cup-v2-mode-home .cup-live-matches .match-card.ingame .match-team,
.cup-v2-mode-home .cup-live-matches .match-card.finished .match-team,
.cup-v2-mode-home .cup-live-matches .match-card.starting .match-team{
  width:100%;
  min-width:0;
  max-width:none;
  height:98px;
  display:grid;
  grid-template-rows:65px 26px;
  row-gap:3px;
  justify-items:center;
  align-content:start;
  align-self:start;
  margin:0;
  padding:0
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest,
.cup-v2-mode-home .cup-live-matches .match-ico.cup-v2-live-crest{
  box-sizing:border-box;
  display:grid;
  place-items:center;
  justify-self:center;
  align-self:start;
  width:64px;
  height:64px;
  min-width:64px;
  max-width:64px;
  min-height:64px;
  max-height:64px;
  aspect-ratio:1;
  margin:0;
  padding:0;
  overflow:hidden;
  line-height:1
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-symbolic-crest{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  padding:0;
  margin:0;
  line-height:1;
  font-size:32px;
  letter-spacing:0;
  text-align:center
}
.cup-v2-mode-home .cup-live-matches .cup-v2-live-crest .cup-v2-team-image{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border:0;
  border-radius:13px
}
.cup-v2-mode-home .cup-live-matches .match-team>strong{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:26px;
  min-height:26px;
  max-height:26px;
  margin:0;
  padding:0;
  font-size:12px;
  line-height:13px;
  text-align:center;
  overflow-wrap:anywhere;
  overflow:hidden
}
.cup-v2-mode-home .cup-live-matches .match-center{
  display:grid;
  align-content:start;
  align-self:start;
  justify-items:center;
  height:94px;
  min-height:94px;
  padding:15px 0 0;
  margin:0;
  gap:4px
}
.cup-v2-mode-home .cup-live-matches .match-result{
  line-height:30px;
  min-height:30px;
  white-space:nowrap
}
.cup-v2-mode-home .cup-live-matches .match-map{
  line-height:16px;
  min-height:16px;
  text-align:center
}
@media(max-width:700px){
  .cup-v2-mode-home .cup-live-matches .match-middle{
    flex-basis:98px;
    height:98px;
    min-height:98px
  }
  .cup-v2-mode-home .cup-live-matches .cup-v2-live-crest,
  .cup-v2-mode-home .cup-live-matches .match-ico.cup-v2-live-crest{
    width:60px;
    height:60px;
    min-width:60px;
    max-width:60px;
    min-height:60px;
    max-height:60px
  }
}

/* Phase 3L final approved uniform GREEN team cards.
   The original team logos/icons keep their eight unique accent colours.
   Never tint the background by --team-tint: that field is emblem-only.
   Team 2's established dark-green card is the reference for ALL eight. */
.cup-v2-mode-home .cup-live-teams .team-card.cup-v2-mode-team-card{
  background:linear-gradient(128deg,#122b1b 0%,#101f15 50%,#09130e 100%);
  border-color:#30513a;
  box-shadow:inset 0 1px 0 #8ceba311,0 8px 25px #0005
}
.cup-v2-mode-home .cup-live-teams .team-card.cup-v2-mode-team-card::after{
  background:#41965c;
  opacity:.095
}
/* Exact same physical crest box / baseline for both sides at every state.
   The team-name label never affects the icon position. */
.cup-v2-mode-home .cup-live-matches .match-card .match-team{
  min-height:98px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}


/* CUP fixed spawn sides: left=CT BLUE, right=T GOLD. Team side labels
   deliberately omitted from markup — show the real CUP team name only.
   Keep names within their slots even for legacy >20-character CUPs. */
.cup-v2-real-root .cup-approved-lobby .head-teamname{
  flex:1 1 auto;min-width:0
}
.cup-v2-real-root .cup-approved-lobby .cup-lobby-team-label{
  min-width:0;flex:1 1 auto;max-width:100%
}
.cup-v2-real-root .cup-approved-lobby .team-name{
  display:block;min-width:0;max-width:100%;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;line-height:1.3
}
.cup-v2-real-root .cup-approved-lobby .team-head .count{
  flex:0 0 auto;margin-left:8px
}
.cup-v2-mode-home .cup-v2-mode-team-card .team-title{
  min-width:0;display:flex;align-items:center
}
.cup-v2-mode-home .cup-v2-mode-team-card .team-heading{
  display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;
  white-space:nowrap;max-width:100%
}
.cup-v2-mode-home .cup-group-stage-panel .fixture-bottom > span:not(.vs),
.cup-v2-mode-home .group-standings-grid .standing-team{
  min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap
}


/* GATHER-SIZED CUP MATCH LOBBY — 2026-10-22
   Source of truth: frontend/css/site.css .live-lobby-shell
   (team header 42px, slot 47px, desktop centre 270px).
   Use the ACTUAL CUP classes from matchLobbyPanel(), NOT the unrelated
   .lobby-grid / .team-slot / .lobby-center selectors.
   This affects only the real CUP match lobby. LIVE MATCHES cards and
   the regular Gather lobby are intentionally untouched. */
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby {
  padding: 13px 16px 15px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .lobbytop {
  padding: 0 1px 11px;
  margin-bottom: 13px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .lobbytitle h2 {
  font-size: 18px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .lobbytitle h2 small {
  font-size: 10px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .lobby-body {
  gap: 14px;
  align-items: start;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .team-head {
  box-sizing: border-box;
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  margin-bottom: 9px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.3;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .team-name {
  font-size: 13px;
  line-height: 1.3;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .team-head .count {
  font-size: 12px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .team-mark {
  height: 31px;
  width: 31px;
  flex-basis: 31px;
  border-radius: 7px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .slots {
  gap: 9px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .slot {
  box-sizing: border-box;
  height: 47px;
  min-height: 47px;
  padding: 7px 10px;
  gap: 9px;
  border-radius: 7px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .slot .avatar {
  height: 29px;
  width: 29px;
  flex-basis: 29px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .slot .player {
  font-size: 12px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .slot .status {
  font-size: 9px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .center {
  gap: 8px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .action-wrap {
  gap: 4px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .action-wrap .cta {
  box-sizing: border-box;
  min-height: 47px;
  height: 47px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .action-sub {
  font-size: 9px;
  min-height: 13px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .mapboard {
  gap: 4px;
  padding: 8px;
  border-radius: 8px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .map-title {
  padding: 4px 0 7px;
  margin-bottom: 2px;
  font-size: 10px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .map-row {
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 7px 0 10px;
  border-radius: 5px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .mapname {
  font-size: 10px;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .map-row .btn-ban {
  box-sizing: border-box;
  height: 24px;
  min-height: 24px!important;
  padding: 2px 8px!important;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .turn {
  min-height: 20px;
  font-size: 9px;
}
@media (min-width: 1221px) {
  .cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .lobby-body {
    grid-template-columns: minmax(0,1fr) 270px minmax(0,1fr);
  }
}
@media (min-width: 971px) and (max-width: 1220px) {
  .cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .lobby-body {
    grid-template-columns: minmax(0,1fr) 250px minmax(0,1fr);
  }
}
/* Below 970px, retain the existing two-column/tablet and one-column/mobile
   layouts, including the map board's responsive grid. */
@media (max-width: 650px) {
  .cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby {
    padding: 10px;
  }
  .cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .team-head {
    padding: 0 9px;
  }
  .cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .team-name {
    font-size: 12px;
  }
}


/* CUP READY JOINBOX — match original Gather JOIN GATHER container.
   The bordered outer box mirrors LOBBY LOG / CAPTAIN MAP VETO; only the
   action button lives inside it. READY progress stays immediately below.
   Applies equally to READY, ALL READY, SERVER STARTING and COPY IP. */
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .cup-ready-joinbox {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  display: grid;
  align-items: stretch;
  padding: 10px;
  border: 1px solid #35503b;
  border-radius: 8px;
  background: #0b130e;
  box-shadow: inset 0 1px 0 #60926720;
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby .cup-ready-joinbox > .cta {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  min-width: 0;
  min-height: 47px;
  height: 47px;
  border-radius: 7px;
}

/* Isolated staging-only visual Round 1 result rehearsal.
   Clearly distinguish synthetic scores from the normal green live cards. */
.cup-v2-mode-home .cup-v2-stage-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px dashed #987b37;
  border-radius: 7px;
  background: #241c0d;
  color: #efd69a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}
.cup-v2-mode-home .cup-v2-stage-stepper .outline-button {
  flex: 0 0 auto;
  margin: 0;
}


/* CUP V2 playoffs: group rounds have FOUR equally sized server cards,
   semifinals deliberately have TWO generous, equally sized cards.
   Preserve approved black/green team art and individual crests. */
.cup-v2-mode-home .cup-live-matches.cup-v2-semifinal-stage .live-row{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.cup-v2-mode-home .cup-live-matches.cup-v2-semifinal-stage .live-match-slot{
  min-width:0
}
.cup-v2-mode-home .cup-live-matches.cup-v2-semifinal-stage .match-card{
  padding:16px 20px 14px;
  gap:9px;
  border-color:#4a6f51
}
.cup-v2-mode-home .cup-live-matches.cup-v2-semifinal-stage .match-middle{
  width:100%;
  max-width:390px;
  margin:0 auto
}
.cup-v2-mode-home .cup-live-matches.cup-v2-semifinal-stage .match-footer .match-lobby{
  width:min(100%,240px)
}
@media(max-width:720px){
  .cup-v2-mode-home .cup-live-matches.cup-v2-semifinal-stage .live-row{
    grid-template-columns:minmax(0,1fr);
    gap:13px
  }
  .cup-v2-mode-home .cup-live-matches.cup-v2-semifinal-stage .match-card{
    padding:13px 12px 12px
  }
}


/* 4F3A GRAND FINAL: single full-width SERVER 1, gold accents, existing
   team emblems. This is a READ-ONLY bracket parent until BO3 rules exist. */
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .live-row{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:0
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .live-match-slot{
  min-width:0;
  width:100%
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-slot-heading{
  color:#f7de92;
  font-size:12px;
  letter-spacing:.075em;
  margin-bottom:8px
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .cup-v2-grand-final-card{
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  align-items:center;
  min-width:0;
  gap:13px;
  padding:23px 22px 22px;
  border:1px solid #ba9651;
  border-radius:12px;
  background:
    radial-gradient(ellipse 48% 140% at 50% -50%,#a37d3238,transparent 85%),
    linear-gradient(138deg,#19231a 0%,#272518 50%,#17221a 100%);
  box-shadow:inset 0 1px 0 #f6d78f29,0 0 26px #d4a53d28,0 10px 26px #0008
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .cup-v2-grand-final-trophy{
  color:#ffe4a1;
  font-weight:1000;
  font-size:17px;
  letter-spacing:.16em;
  text-shadow:0 0 18px #eab33e45
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-middle{
  width:min(100%,650px);
  max-width:650px;
  min-height:112px;
  height:auto;
  margin:0 auto;
  grid-template-columns:minmax(0,1fr) minmax(130px,auto) minmax(0,1fr);
  gap:16px;
  align-items:start
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-center{
  min-width:0;
  justify-content:center;
  padding-top:13px
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-result{
  color:#ffe9b3;
  font-size:clamp(28px,3vw,37px);
  text-shadow:0 0 19px #c9a24b3a
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-map{
  color:#d4c18c;
  letter-spacing:.05em
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .cup-v2-grand-final-pending{
  color:#ddc692;
  font-size:11px;
  font-weight:850;
  text-align:center;
  letter-spacing:.045em
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-footer{
  width:min(100%,350px);
  margin:0 auto
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-footer .match-lobby{
  width:100%;
  min-height:35px;
  border-color:#ab8b4a;
  background:#352b16;
  color:#f6df9d
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-footer .match-lobby.your-lobby{
  background:linear-gradient(180deg,#ffe87c,#eabb46 80%,#e4a62d);
  border-color:#ffe79e;
  color:#21180a;
  box-shadow:0 0 16px #efbc4166
}
.cup-v2-final-schedule{
  border-color:#a78a4d!important;
  background:linear-gradient(115deg,#241f12,#131b14)!important
}
.cup-v2-final-schedule strong{color:#f5d78c!important}

/* BO3 Grand Final lobby — reuse the approved BO1 grid and roster slots.
   All overrides are scoped to the final; normal BO1 remains unchanged. */
.cup-v2-mode-home .cup-v2-mode-lobby .cup-approved-lobby.cup-v2-final-lobby{
  border:1px solid #b99b5c;
  background:radial-gradient(ellipse 65% 120% at 50% -40%,#9c79282b,transparent 85%),
    linear-gradient(135deg,#1c261b,#242115 52%,#18221a);
  box-shadow:inset 0 1px 0 #f5d88836,0 0 22px #cf9f4522
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .lobbytop{
  border-bottom-color:#574a2d
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .lobbytitle:before{
  background:#e8bc60
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .lobbytitle h2,
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .lobbytitle h2 small{
  color:#f5d99d
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .label{
  color:#ffe0a4;border-color:#9c7c40;background:#352914
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .team-mark{
  box-shadow:0 0 11px #b99b5c33
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-ready-joinbox{
  border-color:#79633b;background:#1b1c13
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cta:not(.busy){
  color:#221809;background:linear-gradient(180deg,#f4d57e,#cc9941);
  border-color:#ffdf9d
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .progress{
  border-color:#786236;background:#241f13
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .progress>div{
  background:linear-gradient(90deg,#bd8734,#f8da84)
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-mapboard{
  min-width:0;grid-template-columns:minmax(0,1fr);
  border-color:#77603a;background:#171a12
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-mapboard .map-title{
  color:#f7db9e;border-bottom-color:#524327
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-map{
  min-width:0;border-color:#645637;background:#20251b
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-map.selected{
  border-color:#d8ac56;background:#3a3019;
  box-shadow:inset 0 0 0 1px #e6ba5333
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-map.selected .mapname,
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-map .selectedtag{
  color:#ffe3a4
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-map.banned{
  opacity:.68;background:#1a1a17
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-map .cup-v2-bo3-action{
  width:auto;min-width:59px;color:#ffe3ac;
  background:#4b371b;border-color:#b88b43
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-map .cup-v2-bo3-action:hover{
  background:#674b23
}
.cup-v2-final-lobby .cup-v2-bo3-preflight,
.cup-v2-final-lobby .cup-v2-bo3-turn{
  min-width:0;display:grid;gap:5px;margin:0;
  padding:10px;border:1px solid #725d37;border-radius:8px;
  background:#262417;text-align:center
}
.cup-v2-final-lobby .cup-v2-bo3-preflight strong,
.cup-v2-final-lobby .cup-v2-bo3-turn strong{color:#ffe3a8;font-size:12px}
.cup-v2-final-lobby .cup-v2-bo3-preflight p,
.cup-v2-final-lobby .cup-v2-bo3-turn p{
  color:#d7c6a0;font-size:10px;line-height:1.4;margin:0
}
.cup-v2-final-lobby .cup-v2-bo3-preflight button{
  min-height:30px;white-space:normal
}
.cup-v2-final-lobby .cup-v2-bo3-turn.completed{
  border-color:#688d5e;background:#14241a
}
.cup-v2-final-lobby .cup-v2-bo3-side{
  min-width:0;display:flex;justify-content:center;flex-wrap:wrap;
  gap:7px;padding:10px;border:1px solid #846a39;border-radius:8px;
  background:#332b19
}
.cup-v2-final-lobby .cup-v2-bo3-side p{
  flex:1 0 100%;margin:0;font-size:11px;line-height:1.45;
  text-align:center;color:#ffdfa5
}
.cup-v2-final-lobby .cup-v2-bo3-side .cup-v2-bo3-action{
  min-height:31px;min-width:72px;padding:5px 12px;
  border:1px solid #bb924e;border-radius:5px;
  background:#4a361b;color:#ffdfa4;font-weight:900
}
.cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .turn{
  color:#d8c396;line-height:1.5
}
.cup-v2-bo3-details{
  min-width:0;margin-top:14px;padding:13px;
  border:1px solid #746039;border-radius:8px;background:#191e16
}
.cup-v2-bo3-details h3{
  margin:0 0 9px;color:#f9dc9c;font-size:12px;letter-spacing:.07em
}
.cup-v2-bo3-details p{
  color:#bdb397;font-size:10px;margin:9px 0 0;line-height:1.45
}
.cup-v2-bo3-selected-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.cup-v2-bo3-selected{
  min-width:0;display:grid;align-content:center;justify-items:center;
  gap:5px;padding:11px 8px;
  border:1px solid #867046;border-radius:7px;background:#302b1e
}
.cup-v2-bo3-selected span{
  color:#d4be85;font-size:9px;font-weight:950;letter-spacing:.09em
}
.cup-v2-bo3-selected strong{
  color:#ffe6ac;font-size:15px;overflow-wrap:anywhere;text-align:center
}
.cup-v2-bo3-selected small{
  color:#d3c4a2;font-size:10px;text-align:center;line-height:1.45
}
.cup-v2-bo3-history{
  margin-top:10px;border:1px solid #605032;border-radius:8px;
  background:#171d16;color:#e9d29a
}
.cup-v2-bo3-history summary{
  cursor:pointer;padding:10px 13px;font-size:11px;font-weight:900;
  letter-spacing:.05em
}
.cup-v2-bo3-history summary:focus-visible{
  outline:2px solid #f4cf77;outline-offset:2px
}
.cup-v2-bo3-history-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px 17px;padding:3px 13px 12px
}
.cup-v2-bo3-history-item{
  min-width:0;display:flex;justify-content:space-between;gap:8px;
  font-size:10px;color:#d2c2a0
}
.cup-v2-bo3-history-item span{min-width:0;overflow-wrap:anywhere}
.cup-v2-bo3-history-item strong{
  color:#f3d99f;text-align:right;overflow-wrap:anywhere
}
.cup-v2-final-lobby-action{
  margin-top:10px;padding:10px;border:1px dashed #927741;
  border-radius:7px;color:#f0d89c;background:#34291466;
  text-align:center;font-size:10px;font-weight:900
}
.cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .cup-v2-grand-final-maplist{
  display:flex;justify-content:center;flex-wrap:wrap;gap:8px
}
.cup-v2-grand-final-maplist span{
  padding:7px 11px;border:1px solid #947742;border-radius:6px;
  background:#322b1b;color:#f0dca6;font-size:10px;font-weight:900
}
@media(max-width:720px){
  .cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .cup-v2-grand-final-card{
    padding:17px 12px
  }
  .cup-v2-mode-home .cup-live-matches.cup-v2-final-stage .match-middle{
    grid-template-columns:minmax(0,1fr) minmax(85px,auto) minmax(0,1fr);
    gap:5px
  }
}
@media(max-width:970px){
  .cup-v2-mode-home .cup-v2-mode-lobby .cup-v2-final-lobby .cup-v2-bo3-mapboard{
    grid-template-columns:minmax(0,1fr)
  }
}
@media(max-width:650px){
  .cup-v2-bo3-selected-grid{grid-template-columns:1fr}
  .cup-v2-bo3-history-grid{grid-template-columns:1fr}
  .cup-v2-bo3-details{padding:10px}
}

/* B23E: map-two opposing captain popup, after fresh 10/10 READY.
   This UI is strictly CUP BO3; ordinary Gather visuals are unchanged. */
.cup-v2-bo3-side-popup{position:fixed;inset:0;z-index:10000;
  display:flex;align-items:center;justify-content:center;
  background:rgba(4,11,20,.85);padding:20px}
.cup-v2-bo3-side-popup-content{width:min(100%,480px);
  background:#101c2c;border:1px solid #d4ae4c;border-radius:12px;
  padding:28px;text-align:center;box-shadow:0 20px 70px rgba(0,0,0,.6)}
.cup-v2-bo3-side-popup-content strong{color:#e9c967;font-size:1.15rem}
.cup-v2-bo3-side-popup-content p{color:#e5eaf0;line-height:1.6;margin:14px 0}
.cup-v2-bo3-side-popup-content .cup-v2-bo3-side{
  display:flex;justify-content:center;gap:12px;flex-wrap:wrap}
