.cta-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

/* Tabs */
.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); padding: 5px; border-radius: 14px; width: fit-content; margin: 8px auto 22px; }
.tab { border: none; background: transparent; color: var(--text-dim); font-family: inherit; font-weight: 600; font-size: 14px; padding: 9px 18px; border-radius: 10px; cursor: pointer; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--surface-2); color: var(--text); }

.tab-panel { display: none; animation: reveal .4s ease; }
.tab-panel.active { display: block; }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .overview-grid { grid-template-columns: 1fr; } }

.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }

/* Participating servers strip under the hero description */
.servers-hero { margin-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.servers-hero .servers { justify-content: center; }
.servers-hero .server { width: auto; }
.servers-hero .server img, .servers-hero .server .mono { width: 46px; height: 46px; }
.servers-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); }

/* Server icons */
.servers { display: flex; gap: 14px; flex-wrap: wrap; }
.server { display: flex; align-items: center; }
.server img, .server .mono { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); background: var(--surface-2); transition: transform .15s ease; }
.server img:hover, .server .mono:hover { transform: scale(1.08); }
.server .mono { display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--text-dim); }

/* Groups grid */
.groups-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.group-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.group-card h4 { margin: 0 0 12px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.group-card h4 .gtag { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 2px 9px; font-size: 12px; color: var(--text-dim); }
.team-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 10px; transition: background .12s; }
.team-row:hover { background: var(--surface); }
.team-name { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; }
.team-name .flag { font-size: 19px; line-height: 1; width: 24px; text-align: center; }
.flag-img { width: 26px; height: 19px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.25); display: block; flex-shrink: 0; background: var(--surface-2); }
.flag-img.sm { width: 22px; height: 16px; }
.pos-btn { width: 32px; height: 30px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--bg-2); color: var(--text-faint); font-weight: 800; font-size: 13px; cursor: pointer; transition: all .12s; font-family: inherit; }
.pos-btn:hover { border-color: var(--accent); color: var(--text); }
.pos-btn.active-1 { background: linear-gradient(135deg, #fcd34d, #f59e0b); color: #1a1205; border-color: transparent; }
.pos-btn.active-2 { background: linear-gradient(135deg, #cbd5e1, #94a3b8); color: #0c1018; border-color: transparent; }
.group-locked .pos-btn { pointer-events: none; opacity: .9; }

/* Save bar */
.save-bar { position: sticky; bottom: 0; margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: rgba(15,19,28,.85); backdrop-filter: blur(12px); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: var(--shadow); flex-wrap: wrap; }
.save-bar.hidden { display: none; }

/* Leaderboard rows */
.lb-row { display: grid; grid-template-columns: 34px auto 1fr auto; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.lb-row + .lb-row { border-top: 1px solid var(--border); }
.lb-rank { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text-faint); text-align: center; }
.lb-row.top1 .lb-rank { color: var(--gold); } .lb-row.top2 .lb-rank { color: var(--silver); } .lb-row.top3 .lb-rank { color: var(--bronze); }
.lb-name { font-weight: 600; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lb-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-points { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.lb-points small { display: block; font-weight: 600; font-size: 11px; color: var(--text-faint); }

/* Bracket */
.bracket { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 18px; }
.round-col { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
.round-col h5 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-faint); position: sticky; top: 0; }
.round-col.justify { justify-content: space-around; }
.match { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.match .slot { display: flex; align-items: center; gap: 8px; padding: 9px 11px; cursor: pointer; font-size: 13px; font-weight: 500; transition: background .12s; border: none; background: transparent; color: var(--text); width: 100%; text-align: left; font-family: inherit; }
.match .slot:hover { background: var(--surface-hover); }
.match .slot + .slot { border-top: 1px solid var(--border); }
.match .slot.picked { background: linear-gradient(90deg, rgba(91,140,255,.22), transparent); font-weight: 700; }
.match .slot.picked::before { content: '✓'; color: var(--accent); font-weight: 900; }
.match .slot .flag { font-size: 16px; width: 20px; }
.match .slot.empty { color: var(--text-faint); font-style: italic; cursor: default; }
.match .slot.empty:hover { background: transparent; }
.ko-locked .match .slot { pointer-events: none; }
.mnum { font-size: 10px; color: var(--text-faint); padding: 3px 11px 0; font-weight: 700; }

.empty-state { text-align: center; padding: 30px; color: var(--text-dim); }

iframe.results-frame { width: 100%; height: 70vh; border: none; border-radius: 10px; background: white; }
