/* SLEAGUE.pl – style strony */

@font-face { font-family: Inter; src: url(../fonts/inter-regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-semibold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-extrabold.woff) format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: Inter; src: url(../fonts/inter-blackitalic.woff) format("woff"); font-weight: 900; font-style: italic; font-display: swap; }

:root {
  --bg: #071126;
  --bg-alt: #0D1E42;
  --bg-deep: #050C1C;
  --surface: #0C1A36;
  --surface-2: #10224A;
  --surface-hi: #0F2550;
  --line: #1E3364;
  --line-strong: #2A4580;
  --blue: #298CFF;
  --blue-btn: #1B6BDB;
  --blue-btn-hover: #2478EE;
  --blue-soft: #12305F;
  --blue-text: #7CB8FF;
  --blue-pale: #B9D9FF;
  --text: #EEF3FC;
  --text-2: #D6DFF0;
  --muted: #A3B1CF;
  --danger: #FF8A8A;
  --warn: #FFC36B;
  --radius: 16px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body { overflow-wrap: break-word; }
.prose, .stat, .review blockquote, .notif, .answer, .t-name, .flash, .player-list, .b-champ b { overflow-wrap: anywhere; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--blue-text); text-decoration: none; }
a:hover { color: var(--blue-pale); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1360px; margin: 0 auto; padding: 0 24px; }

/* ---------- typografia ---------- */
.display { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1.05; }
h1.display { font-size: clamp(40px, 6vw, 64px); }
h2.display { font-size: clamp(30px, 4vw, 44px); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }
.lead { font-size: 19px; line-height: 1.6; color: var(--muted); margin: 0; max-width: 560px; }
.accent { color: var(--blue); }
.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.section-head.center { align-items: center; text-align: center; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }

/* ---------- przyciski ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--blue-btn); background: var(--blue-btn); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--blue-btn-hover); border-color: var(--blue-btn-hover); color: #fff; }
.btn-lg { min-height: 52px; padding: 0 28px; border-radius: 12px; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text); font-weight: 600; }
.btn-outline:hover { background: var(--surface-2); border-color: var(--blue); color: var(--text); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: transparent; border-color: #6B2A3A; color: var(--danger); }
.btn-danger:hover { background: #2A1020; border-color: var(--danger); color: var(--danger); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 17, 38, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 40px; width: auto; display: block; }
.main-nav { display: flex; gap: 28px; font-size: 15px; font-weight: 600; }
.main-nav a { color: var(--text); }
.main-nav a:hover { color: var(--blue-text); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 14px; }
.user-chip img { width: 36px; height: 36px; border-radius: 50%; background: var(--blue-soft); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.dot-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--blue-btn); color: #fff; font-size: 12px; font-weight: 700; align-items: center; justify-content: center; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .header-actions .btn span.long { display: none; }
}


/* ---------- komunikaty ---------- */
.flash-wrap { display: flex; flex-direction: column; gap: 8px; margin: 20px auto 0; }
.flash { padding: 14px 18px; border-radius: 12px; border: 1px solid var(--blue-btn); background: var(--surface-hi); font-weight: 600; font-size: 15px; }
.flash.error { border-color: #8A3045; background: #2A1020; color: #FFD0D8; }
.flash.warn { border-color: #8A6A30; background: #2A2010; color: #FFE6BF; }

/* powiadomienia w rogu ekranu (toast) */
.toasts { position: fixed; top: 88px; right: 16px; z-index: 60; display: flex; flex-direction: column; gap: 10px; width: min(400px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; gap: 12px; align-items: flex-start; padding: 14px 44px 16px 14px; border-radius: 14px; background: #0E1E40; border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, .45); animation: toast-in .28s ease-out both; }
.toast.leaving { animation: toast-out .22s ease-in both; }
.toast-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.toast-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--text-2); overflow-wrap: anywhere; }
.toast-body b { color: #fff; font-size: 15px; }
.toast-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.toast-close:hover, .toast-close:focus-visible { background: rgba(255, 255, 255, .08); color: #fff; }
.toast-timer { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; }
.toast-ok .toast-icon { background: rgba(41, 140, 255, .18); color: var(--blue); }
.toast-ok { border-color: #2A5BB0; }
.toast-ok .toast-timer { background: var(--blue); }
.toast-warn .toast-icon { background: rgba(255, 195, 107, .16); color: var(--warn); }
.toast-warn { border-color: #6E5528; }
.toast-warn .toast-timer { background: var(--warn); }
.toast-error .toast-icon { background: rgba(255, 138, 138, .16); color: var(--danger); }
.toast-error { border-color: #7A3045; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(16px); } }
@keyframes toast-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .toasts { top: auto; bottom: 16px; right: 16px; left: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { animation: none; } .toast-timer { display: none; } }

/* ---------- sekcje ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt .card, .section-alt .t-row, .section-alt .partner { background: #091731; }
.section-plain { border-top: 1px solid var(--line); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }

/* hero */
.hero { border-bottom: 1px solid var(--line); background: radial-gradient(760px 520px at 82% 40%, rgba(41,140,255,.30) 0%, rgba(41,140,255,0) 70%), radial-gradient(620px 420px at 8% 0%, rgba(27,107,219,.22) 0%, rgba(27,107,219,0) 70%), linear-gradient(180deg, #081430 0%, #071126 100%); }
.hero-inner { padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.next-card { flex: 1 1 380px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.next-card .title { font-size: 30px; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.1; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.countdown div { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 6px; text-align: center; }
.countdown b { display: block; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.countdown div:last-child b { color: var(--blue); }
.countdown span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.progress { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.progress > div { height: 100%; background: var(--blue); border-radius: 99px; }

/* badge */
.badge { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; background: var(--blue-soft); color: var(--blue-pale); white-space: nowrap; }
.badge-paid, .badge-accepted { background: var(--blue-btn); color: #fff; }
.badge-rejected { background: #3A1A28; color: #FFC4CF; }
.badge-pending { background: var(--blue-soft); color: var(--blue-pale); }
.badge-muted { background: #1A2440; color: var(--muted); }

/* kroki */
.step-no { font-size: 44px; font-weight: 900; font-style: italic; color: var(--blue); line-height: 1; }
.step h3 { margin: 12px 0 8px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 15px; }

/* turnieje */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button[aria-pressed="true"] { background: var(--blue-btn); border-color: var(--blue-btn); color: #fff; }
.t-list { display: flex; flex-direction: column; gap: 12px; }
.t-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 28px; }
.t-row .t-main { flex: 2 1 260px; min-width: 0; }
.t-row .t-name { font-size: 20px; font-weight: 800; font-style: italic; text-transform: uppercase; color: var(--text); }
.t-row .t-col { flex: 1 1 120px; display: flex; flex-direction: column; gap: 4px; }
.t-row .t-cta { flex: 1 1 160px; display: flex; justify-content: flex-end; }
.label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* opinie */
.review { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-2); flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; }
.initials { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--blue-pale); flex: none; }

/* partnerzy */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; width: 100%; }
.partner { height: 96px; border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--muted); font-weight: 700; background: var(--surface); }
.partner img { max-height: 60px; width: auto; object-fit: contain; }

/* FAQ */
.faq { max-width: 920px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; min-height: 64px; padding: 18px 24px; font-size: 17px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--blue); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 24px 22px; color: var(--muted); line-height: 1.65; font-size: 15px; }

/* kontakt i formularze */
.contact { border-top: 1px solid var(--line); background: radial-gradient(700px 360px at 15% 20%, #10295A 0%, rgba(7,17,38,0) 70%); }
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 380px; min-width: 0; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label-text { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=number], input[type=url], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 46px; padding: 0 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; color: var(--text); font: inherit; font-size: 15px; color-scheme: dark;
}
textarea { padding: 12px 14px; resize: vertical; min-height: 120px; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(41, 140, 255, .25); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: none; }
.hp { position: absolute; left: -9999px; }

/* stopka */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding: 56px 0 40px; }
.footer-cols nav { display: flex; flex-direction: column; gap: 10px; font-size: 14px; flex: 0 1 180px; }
.footer-bottom { border-top: 1px solid var(--line); padding: 24px 0 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }

/* ---------- strony treści ---------- */
.prose { max-width: 820px; line-height: 1.7; color: var(--text-2); }
.prose h2 { font-size: 22px; margin: 32px 0 8px; color: var(--text); }
.prose ul { padding-left: 22px; }

/* ---------- panele (kapitan i admin) ---------- */
.panel-wrap { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding: 32px 0 64px; }
.side-nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: 96px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 14px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); }
.side-nav a.active { background: var(--blue-soft); color: #fff; font-weight: 700; }
.panel-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.panel-aside { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 20px; }
.panel-title { margin: 0; font-size: 34px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.card h2 { margin: 0 0 18px; font-size: 18px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.card h2 .accent { margin-right: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.card-head h2 { margin: 0; }
.status-ok { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; flex: 1 1 240px; }
.status-ok svg { color: var(--blue); }
.status-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 900px) {
  .side-nav { position: static; max-width: none; flex-direction: row; flex-wrap: wrap; }
  .panel-aside { max-width: none; }
}

/* wybór turnieju */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.choice { display: flex; gap: 14px; padding: 20px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; }
.choice:has(input:checked) { border-color: var(--blue); background: var(--surface-hi); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.choice .c-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.choice .c-name { font-weight: 800; font-style: italic; text-transform: uppercase; }

/* tabele */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { background: #0A1630; text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 12px 14px; font-weight: 700; white-space: nowrap; }
.table td { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table td input[type=text] { min-height: 40px; }
.table .actions-cell { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.players-table { min-width: 560px; }

/* oś statusu */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 14px; }
.tl-mark { display: flex; flex-direction: column; align-items: center; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.tl-item.done .tl-dot { background: var(--blue); border-color: var(--blue); }
.tl-item.current .tl-dot { border: 3px solid var(--blue); background: var(--bg); }
.tl-line { width: 2px; flex: 1; min-height: 28px; background: var(--line); }
.tl-item.done .tl-line { background: var(--blue); }
.tl-body { padding-bottom: 16px; }
.tl-body b { display: block; }
.tl-body span { font-size: 13px; color: var(--muted); }

.notif { padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.notif.unread { background: var(--surface-hi); border-color: var(--blue-btn); }
.notif b { font-size: 14px; padding-right: 30px; }
.notif { position: relative; }
.notif-del { position: absolute; top: 6px; right: 6px; margin: 0; }
.notif-del button { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.notif-del button:hover, .notif-del button:focus-visible { background: var(--surface-2); color: var(--text); }
.notif span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* mecz i mapy */
.versus { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; text-align: center; }
.versus .team { font-size: clamp(20px, 3vw, 30px); font-weight: 900; font-style: italic; text-transform: uppercase; }
.versus .vs { color: var(--muted); font-weight: 800; }
.versus .score { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; }
.turn-box { padding: 14px 16px; border-radius: 12px; background: var(--surface-hi); border: 1px solid var(--blue-btn); font-weight: 600; }
.maps { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.map-btn { min-height: 84px; padding: 14px; border-radius: 12px; font: inherit; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; text-align: left; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); width: 100%; }
button.map-btn { cursor: pointer; }
button.map-btn:hover { border-color: var(--blue); background: var(--surface-hi); }
.map-btn .m-name { font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 16px; }
.map-btn .m-sub { font-size: 12px; color: var(--muted); }
.map-btn.banned { background: var(--bg); border-color: var(--line); color: #6E7B99; }
.map-btn.banned .m-name { text-decoration: line-through; }
.map-btn.picked { background: var(--blue-btn); border: 2px solid var(--blue-text); color: #fff; }
.map-btn.picked .m-sub { color: #DCEBFF; }
.map-btn.decider { background: var(--surface-hi); border: 2px solid var(--blue); }
.veto-log { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.server-card { border-color: var(--blue-btn); background: linear-gradient(135deg, #0F2550, var(--surface) 60%); }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
.srv-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.srv-item .label { flex-basis: 100%; }
.srv-item code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; color: #fff; word-break: break-all; flex: 1 1 auto; min-width: 0; }
.srv-cmd code { font-size: 14px; color: var(--blue-pale); }
.btn.copied { background: var(--blue-btn); border-color: var(--blue-btn); color: #fff; }
.srv-reveal-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.srv-reveal-row .muted { flex: 1 1 280px; }
.srv-mask { color: var(--muted) !important; letter-spacing: .12em; user-select: none; }

/* drabinka */
.bracket-wrap { position: relative; --col: 240px; --gap: 56px; --half: calc(var(--gap) / 2); --line-c: #2E4A86; }
.bracket-scroll { overflow-x: auto; padding: 4px 2px 12px; scrollbar-color: var(--line-strong) transparent; }
.bracket { min-width: max-content; }
.b-heads { display: flex; gap: var(--gap); padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.b-head { width: var(--col); flex: none; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.b-head-champ { color: var(--blue-text); width: 220px; }
.b-body { display: flex; gap: var(--gap); min-height: calc(var(--slots) * 116px); }
.b-round { width: var(--col); flex: none; display: flex; flex-direction: column; }
.b-slot { flex: 1; display: flex; align-items: center; position: relative; }
.b-match { position: relative; display: block; width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; font-size: 14px; color: var(--text); background: var(--bg); transition: border-color .15s, transform .15s; }
a.b-match:hover { border-color: var(--blue); color: var(--text); }
.b-match.live { border-color: var(--blue-btn); box-shadow: 0 0 0 3px rgba(41,140,255,.12); }
.b-team { display: flex; justify-content: space-between; align-items: center; gap: 8px; height: 40px; padding: 0 12px; }
.b-team:first-child { border-radius: 9px 9px 0 0; }
.b-team:nth-child(2) { border-top: 1px solid var(--line); border-radius: 0 0 9px 9px; }
.b-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-score { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 22px; text-align: right; }
.b-team.win { background: var(--surface-hi); font-weight: 700; box-shadow: inset 3px 0 0 var(--blue); }
.b-team.win .b-score { color: var(--blue); }
.b-team.lose { color: var(--muted); }
.b-team.lose .b-score { font-weight: 600; }
.b-team.tbd { color: #6E7B99; font-style: italic; }
.b-meta { position: absolute; left: 2px; right: 2px; top: calc(100% + 5px); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-match.live .b-meta { color: var(--blue-text); font-weight: 600; }

/* linie łączące */
.is-tree .b-round:not(.last):not(.b-champ-col) .b-slot::after,
.is-tree .b-round.to-champ .b-slot::after { content: ""; position: absolute; left: 100%; width: var(--half); top: 50%; margin-top: -1px; border-top: 2px solid var(--line-c); }
.is-tree .b-round.to-champ .b-slot::after { width: var(--gap); }
.is-tree .b-round:not(.last):not(.b-champ-col) .b-slot::before { content: ""; position: absolute; left: calc(100% + var(--half) - 2px); border-right: 2px solid var(--line-c); }
.is-tree .b-round:not(.last):not(.b-champ-col) .b-slot:nth-child(odd)::before { top: calc(50% - 1px); bottom: 0; }
.is-tree .b-round:not(.last):not(.b-champ-col) .b-slot:nth-child(even)::before { top: 0; bottom: calc(50% - 1px); }
.is-tree .b-round:not(.first):not(.b-champ-col) .b-match::before { content: ""; position: absolute; right: 100%; width: calc(var(--half) + 1px); top: 50%; margin-top: -1px; border-top: 2px solid var(--line-c); }

/* zwycięzca turnieju */
.b-champ-col { width: 220px; }
.b-champ { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; border: 2px solid var(--blue); background: linear-gradient(135deg, #12306A, #0C1A36); color: var(--blue-pale); }
.b-champ b { display: block; color: #fff; font-size: 16px; font-style: italic; text-transform: uppercase; }
.b-champ-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--blue-text); font-weight: 700; }

/* podpowiedź przewijania */
.bracket-hint { display: none; margin-top: 6px; font-size: 13px; color: var(--muted); }
.bracket-hint span { color: var(--blue); }
.bracket-wrap.overflows .bracket-hint { display: block; }
.bracket-wrap.overflows::after { content: ""; position: absolute; top: 0; right: 0; bottom: 30px; width: 48px; pointer-events: none; background: linear-gradient(90deg, rgba(7,17,38,0), var(--bg)); transition: opacity .2s; }
.bracket-wrap.overflows.at-end::after { opacity: 0; }
@media (max-width: 640px) {
  .bracket-wrap { --col: 196px; --gap: 36px; }
  .b-team { height: 38px; padding: 0 10px; font-size: 13px; }
  .b-champ-col, .b-head-champ { width: 180px; }
}

/* admin */
.admin-badge { padding: 4px 10px; border-radius: 6px; background: var(--blue-btn); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.stat b { display: block; font-size: 30px; font-weight: 800; }
.stat span { font-size: 13px; color: var(--muted); }
.inline-form { display: inline; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.player-list { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--text-2); }
.player-list li { padding: 2px 0; }
.player-list code { color: var(--muted); font-size: 12px; }
details.more summary { cursor: pointer; color: var(--blue-text); font-weight: 600; font-size: 13px; }
.thumb { height: 36px; width: auto; background: var(--bg); border-radius: 6px; padding: 4px; }

/* ---------- telefon ---------- */
@media (max-width: 640px) {
  .container, .container-wide { padding-left: 16px; padding-right: 16px; }
  .site-header .bar { min-height: 64px; gap: 10px; }
  .main-nav { top: 64px; padding-left: 16px; padding-right: 16px; }
  .brand img { height: 30px; }
  .header-actions { gap: 8px; }
  .header-actions .btn { padding: 0 12px; }
  .user-chip .long { display: none; }
  .section { padding: 64px 0; }

  .hero-inner { padding-top: 40px; padding-bottom: 56px; gap: 32px; }
  .hero-copy { flex-basis: 100%; gap: 20px; }
  .pill { font-size: 11px; letter-spacing: .04em; max-width: 100%; }
  .lead { font-size: 17px; }
  .actions .btn { flex: 1 1 100%; }
  .next-card { flex-basis: 100%; padding: 20px; border-radius: 16px; gap: 18px; }
  .next-card .title { font-size: 24px; }
  .countdown { gap: 6px; }
  .countdown div { padding: 10px 2px; border-radius: 10px; }
  .countdown b { font-size: 24px; }
  .countdown span { font-size: 10px; letter-spacing: .03em; }

  .t-row { padding: 18px; gap: 12px 20px; }
  .t-row .t-cta { flex-basis: 100%; justify-content: stretch; }
  .t-row .t-cta .btn { width: 100%; }
  .filters .btn { flex: 1 1 calc(50% - 8px); }
  .card { padding: 20px; }
  .split { gap: 32px; }
}
