/* w1n.com — tokens: BVRate 07 (krem + czerń + czerwień), light i dark. */
:root {
  color-scheme: light;
  --bg: #f3eee7;
  --surface: #fffdf8;
  --surface-2: #ede6d9;
  --ink: #111111;
  --muted: #5a554f;
  --line: #ded3c2;
  --accent: #d7141a;
  --accent-strong: #d7141a;
  --accent-strong-hover: #b81118;
  --accent-ink: #ffffff;
  --accent-soft: rgba(215, 20, 26, 0.1);
  --accent-text: #a50e13;
  --teal: #0e6f6b;
  --amber: #8a5a12;
  --danger: #a4381f;
  --hero-bg: #111111;
  --hero-ink: #f3eee7;
  --hero-accent: #f04a3c;
  --overlay: rgba(10, 9, 8, 0.5);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --shadow-soft: 0 1px 2px rgba(17, 17, 17, 0.05), 0 12px 28px rgba(17, 17, 17, 0.05);
  --ring: 0 0 0 3px rgba(215, 20, 26, 0.22);
}

/* Dark palette. Not pure black: warm charcoal keeps contrast high without the
   halation that makes text harder to read for ~40% of people on #000. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17140f;
    --surface: #1f1b15;
    --surface-2: #272119;
    --ink: #f3eee7;
    --muted: #bdb6ae;
    --line: #332c24;
    --accent: #f04a3c;
    --accent-strong: #d7141a;
    --accent-strong-hover: #c4121a;
    --accent-ink: #ffffff;
    --accent-soft: rgba(240, 74, 60, 0.14);
    --accent-text: #ffa39a;
    --teal: #46bfad;
    --amber: #e0a34a;
    --danger: #e0603f;
    --hero-bg: #0f0d0a;
    --hero-ink: #f3eee7;
    --hero-accent: #ff6a5b;
    --overlay: rgba(0, 0, 0, 0.65);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 32px rgba(0, 0, 0, 0.35);
    --ring: 0 0 0 3px rgba(240, 74, 60, 0.3);
  }
}

/* Explicit override wins over the system preference. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17140f;
  --surface: #1f1b15;
  --surface-2: #272119;
  --ink: #f3eee7;
  --muted: #b4ac9e;
  --line: #332c24;
  --accent: #f04a3c;
  --accent-strong: #d7141a;
  --accent-strong-hover: #c4121a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(240, 74, 60, 0.14);
  --accent-text: #ffa39a;
  --teal: #46bfad;
  --amber: #e0a34a;
  --danger: #e0603f;
  --hero-bg: #0f0d0a;
  --hero-ink: #f3eee7;
  --hero-accent: #ff6a5b;
  --overlay: rgba(0, 0, 0, 0.65);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.5), 0 14px 32px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 3px rgba(240, 74, 60, 0.3);
}

/* Brand faces from the BVRate package: Poppins (headings) + Instrument Sans (text). */
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-600-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; src: url("/fonts/poppins-700-ext.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-400-ext.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans-600-ext.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Instrument Sans", "Segoe UI", Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.18s ease, color 0.18s ease;
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

.app { min-height: 100vh; display: flex; flex-direction: column; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 26px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-500-ext.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { height: 40px; width: auto; display: block; }
.brand-logo--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo--light { display: none; }
  :root:not([data-theme="light"]) .brand-logo--dark { display: block; }
}
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: 10px; }
.nav a {
  padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--muted);
}
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--bg); }
.auth { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12px; }

.theme-toggle {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-size: 15px; line-height: 1;
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:focus-visible { outline: none; box-shadow: var(--ring); }

.main, main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 28px 20px 60px; }
.foot {
  max-width: 1120px; margin: 0 auto; width: 100%;
  padding: 18px 20px 28px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 10.5px; color: var(--muted);
}

h1 { font-size: 34px; letter-spacing: -0.035em; margin: 0 0 6px; font-weight: 650; }
h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 12px; }
h3 { font-size: 14px; margin: 0 0 8px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 10.5px; }
.mono { font-family: var(--font-mono); }
.kicker { font-family: Consolas, monospace; font-size: 9.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-text); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .g4, .g3 { grid-template-columns: repeat(2, 1fr); } .g2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } h1 { font-size: 28px; } .top { padding: 12px 16px; gap: 10px; } .top .brand { order: 1; } .brand-logo { height: 34px; } .top .auth { order: 2; margin-left: auto; } .top .theme-toggle { order: 3; } .top .nav { order: 4; width: 100%; margin-left: 0; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-soft); }
.stat .label { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat .value { font-family: var(--font-mono); font-weight: 600; font-size: 33px; line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.stat .hint { font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-size: 12.5px;
}
.btn:hover { background: var(--surface-2); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-clay { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-clay:hover { background: var(--accent-strong-hover); border-color: var(--accent-strong-hover); }
.btn-soft { background: var(--surface-2); border-color: transparent; }
.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.field {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 9px 11px; font-size: 12.5px; color: var(--ink);
}
.field:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.label { display: block; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }

.pill {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 999px; padding: 3px 9px; font-size: 10px;
  background: var(--surface-2); color: var(--muted);
}
.pill.live { background: var(--accent-soft); color: var(--accent-text); }
.pill.ok { background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal); }
.pill.warn { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 16px; }
.tab {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 6px 12px; font-size: 11.5px; color: var(--muted);
}
.tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tab.active .tiny, .tab.active .muted { color: inherit; opacity: 0.72; }

.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom: 1px solid var(--ink); padding: 9px 8px; }
.table td { border-bottom: 1px solid var(--line); padding: 10px 8px; font-size: 12.5px; vertical-align: middle; font-variant-numeric: tabular-nums; }
.table tr { cursor: pointer; }
.table tr:hover td { background: var(--surface-2); }
.rank { font-family: var(--font-mono); color: var(--muted); width: 34px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10px; font-weight: 650; margin-right: 8px; color: #111; }
.name { font-weight: 600; }
.sub { font-size: 10px; color: var(--muted); }
.bar { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; width: 80px; }
.bar > i { display: block; height: 100%; background: var(--teal); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.modal-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: var(--overlay); backdrop-filter: blur(3px); }
.modal { width: 100%; max-width: 460px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-height: 90vh; overflow: auto; }
.modal h2 { margin-bottom: 4px; }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--bg); padding: 10px 16px;
  border-radius: 999px; font-size: 12px; z-index: 60;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}
.toast.err { background: var(--danger); color: #fff; }

.empty { padding: 36px 18px; text-align: center; color: var(--muted); font-size: 12.5px; }
.hero { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius); padding: 26px; margin-bottom: 18px; }
.hero h1 {
  color: var(--hero-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero p { color: color-mix(in srgb, var(--hero-ink) 68%, transparent); max-width: 640px; }
.hero .kicker { color: var(--hero-accent); }

@media (max-width: 520px) {
  .hero { padding: 20px; }
  .hero h1 { font-size: 34px; }
  .hero .kicker { font-size: 8px; letter-spacing: 0.14em; }
}

/* --- Gate 2: drabinki, kort na żywo --- */
.bracket { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; align-items: stretch; }
.bracket-col { min-width: 230px; display: flex; flex-direction: column; gap: 10px; justify-content: space-around; }
.bracket-match { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: grid; gap: 4px; }
.bracket-match.done { border-color: var(--teal); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--teal) 20%, transparent); }
.bracket-match .win { font-weight: 700; color: var(--teal); }

.score-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 12px; }
.score-grid .side { display: grid; justify-items: center; gap: 8px; }
.score-grid .big { font-size: 56px; line-height: 1; font-variant-numeric: tabular-nums; }
.score-grid .mid { font-size: 36px; color: var(--muted); }
.challenge-box { margin-top: 14px; padding: 12px 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--accent-soft); }

@media (max-width: 720px) {
  .score-grid .big { font-size: 44px; }
  .bracket { flex-direction: column; }
  .bracket-col { min-width: 0; }
}

/* --- Gate 3: sloty i rezerwacje --- */
.slot-table td { padding: 4px; }
.slot { width: 100%; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); padding: 6px 8px; font-size: 12px; color: var(--ink); }
.slot.free { border-color: var(--teal); color: var(--teal); }
.slot.free:hover { background: color-mix(in srgb, var(--teal) 10%, transparent); }
.slot.held { border-color: var(--amber); color: var(--amber); }
.slot.booked { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }

/* ===================== public site (landing) ===================== */
.landing main { max-width: 1180px; margin: 0 auto; padding: 0 22px 40px; }
.site-header {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  padding: 14px 26px;
  max-width: 1180px; margin: 0 auto;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
}
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.btn-ghost { background: transparent; }
.btn-lg { padding: 12px 20px; font-size: 13.5px; }

.hero2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: center; padding: 54px 0 40px; }
.hero2 h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4.8vw, 58px); line-height: 1.04; letter-spacing: -0.025em; margin: 10px 0 16px; }
.lead { font-size: 16px; color: var(--muted); max-width: 560px; }
.rating-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-soft); }
.rating-card-top { display: flex; align-items: center; gap: 10px; }
.rating-card-top .pill { margin-left: auto; }
.avatar-lg { width: 40px; height: 40px; font-size: 12px; background: var(--surface-2); color: var(--ink); }
.rating-value { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 4px; }
.rating-number { font-family: var(--font-mono); font-weight: 600; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.rating-delta { color: var(--accent); font-size: 12px; font-weight: 600; font-family: var(--font-mono); }
.spark { width: 100%; height: 48px; display: block; margin: 8px 0 12px; }
.rating-split { display: flex; gap: 26px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rating-split div { display: grid; gap: 2px; }
.rating-split strong { font-family: var(--font-mono); font-weight: 600; font-size: 20px; font-variant-numeric: tabular-nums; }
.rating-last { display: grid; gap: 2px; margin-top: 12px; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 10px; }
.strip div { display: grid; gap: 2px; }
.strip strong { font-family: var(--font-mono); font-weight: 600; font-size: 26px; letter-spacing: 0.01em; }
.strip span { font-size: 11px; color: var(--muted); }

.block { padding: 46px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.1vw, 36px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 10px; }
.section-lead { color: var(--muted); max-width: 720px; font-size: 15px; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.feature h3 { font-size: 15px; margin: 10px 0 6px; }
.feature p { font-size: 12.5px; color: var(--muted); margin: 0; }
.feature-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 14px; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; margin: 24px 0 0; counter-reset: step; }
.steps li { border-top: 2px solid var(--ink); padding-top: 12px; }
.step-no { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--accent); letter-spacing: 0.12em; }
.steps h3 { font-size: 15px; margin: 6px 0 4px; }
.steps p { font-size: 12.5px; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: start; }
.check-list { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.check-list li { position: relative; padding-left: 22px; font-size: 13px; color: var(--muted); }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); border-radius: 1px; }
.check-list li strong { color: var(--ink); }
.check-list.compact li { font-size: 12.5px; }
.scale-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; box-shadow: var(--shadow-soft); }
.scale-title { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.scale-bar { position: relative; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--surface-2), var(--accent)); }
.scale-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); transform: translate(-50%, -50%); }
.scale-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; font-size: 11px; font-variant-numeric: tabular-nums; }
.scale-labels span { display: grid; gap: 2px; }
.scale-labels em { font-style: normal; color: var(--muted); font-size: 10px; }

.callout { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 30px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 46px 0; }
.card-lg { padding: 24px; border-radius: 20px; }
.card-lg h3 { font-size: 19px; margin: 6px 0 8px; }
.card-lg .btn { margin-top: 16px; }
.plus { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }

.app-dl { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 36px; align-items: center; }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.store { display: grid; gap: 1px; padding: 9px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); min-width: 150px; }
.store-small { font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.7; }
.store-big { font-family: var(--font-display); font-weight: 600; font-size: 16px; }
.qr-card { display: grid; place-items: center; gap: 8px; background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; padding: 26px; }
.qr-placeholder { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-family: var(--font-display); font-size: 26px; letter-spacing: 0.1em; }

.heritage { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: var(--hero-bg); color: var(--hero-ink); border-radius: 24px; padding: 34px; margin: 46px 0; border-bottom: 0; }
.heritage .display { color: var(--hero-ink); }
.heritage .section-lead { color: color-mix(in srgb, var(--hero-ink) 68%, transparent); }
.heritage .kicker { color: var(--hero-accent); }
.heritage-year { font-family: var(--font-mono); font-weight: 600; font-size: clamp(64px, 10vw, 128px); line-height: 0.85; color: var(--hero-accent); letter-spacing: 0.01em; }

.faq { display: grid; gap: 10px; margin-top: 18px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.faq details[open] summary { margin-bottom: 8px; }
.faq p { margin: 0; color: var(--muted); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); margin-top: 20px; padding: 34px 26px 26px; }
.footer-cols { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 26px; }
.footer-cols h4 { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.footer-cols a { display: block; font-size: 12.5px; color: var(--ink); padding: 3px 0; opacity: 0.85; }
.footer-cols a:hover { opacity: 1; color: var(--accent); }
.footer-bottom { max-width: 1180px; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; color: var(--muted); flex-wrap: wrap; }

@media (max-width: 980px) {
  .hero2, .split, .callout, .app-dl, .plus, .heritage { grid-template-columns: 1fr; }
  .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .feature-grid, .steps, .two-col { grid-template-columns: 1fr; }
  .hero2 { padding-top: 34px; }
  .site-header { padding: 12px 16px; gap: 12px; }
  .site-actions .btn-ghost { display: none; }
}
.legal-doc { max-width: 780px; }
.legal-doc h2 { font-size: 17px; margin: 26px 0 8px; }
.legal-doc p { font-size: 13.5px; color: var(--muted); }
.legal-doc p a, .legal-doc li a { color: var(--accent); text-decoration: underline; }
.legal-doc code { font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }

/* ===================== knowledge base ===================== */
.kb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kb-card { display: grid; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: border-color 0.15s ease, transform 0.15s ease; }
.kb-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.kb-card h3 { font-size: 16px; margin: 2px 0 4px; line-height: 1.25; }
.kb-card p { margin: 0; font-size: 12.5px; color: var(--muted); }
.article { max-width: 780px; }
.article-lead { font-size: 16px; color: var(--muted); max-width: 700px; }
.article-body h2 { font-size: 19px; margin: 28px 0 8px; letter-spacing: -0.01em; }
.article-body p { font-size: 14px; color: var(--muted); }
.article-body ul { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.article-body li { font-size: 13.5px; color: var(--muted); }
.article-body strong { color: var(--ink); }
.article-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.breadcrumbs { display: flex; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--accent); }
.kb-more { border-bottom: 0; }
@media (max-width: 900px) { .kb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kb-grid { grid-template-columns: 1fr; } .article-cta { flex-direction: column; align-items: flex-start; } }

/* ===================== newsletter ===================== */
.newsletter { margin-top: 18px; max-width: 420px; }
.newsletter .field { flex: 1; min-width: 0; }
.newsletter .row { align-items: stretch; }

.kb-card, .kb-card:hover { color: inherit; text-decoration: none; }
.kb-card h3 { color: var(--ink); }
.kb-card:hover h3 { color: var(--accent); }
.kb-card .kicker { text-decoration: none; }

/* ===================== accessibility ===================== */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus { left: 12px; top: 12px; padding: 8px 14px; border-radius: 999px; background: var(--accent-strong); color: var(--accent-ink); font-weight: 600; box-shadow: var(--ring); }


/* Toggle used by the module settings. */
.switch { position: relative; display: inline-block; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transition: background 0.15s ease, border-color 0.15s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); transition: transform 0.15s ease; }
.switch input:checked + span { background: var(--teal); border-color: var(--teal); }
.switch input:checked + span::after { transform: translateX(18px); background: #fff; border-color: transparent; }
.switch input:focus-visible + span { box-shadow: var(--ring); }


/* Small counter next to a navigation item (pending confirmations). */
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--accent-strong); color: #fff; font-size: 10px; font-weight: 600; line-height: 1; }
.nav-count[hidden] { display: none; }


/* Print: drabinka i profil bez nawigacji, na białym tle. */
@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #111; --muted: #444; --line: #bbb; }
  .top, .nav, .auth, .theme-toggle, .site-header, .site-footer, .site-nav, .site-actions, .btn, button { display: none !important; }
  body { background: #fff; }
  main, .wrap { padding: 0; }
  .bracket { gap: 10px; }
  .bracket-match { break-inside: avoid; border-color: #999; }
  .card { border-color: #bbb; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}

/* BVRate unified skin */
/* One look for landing and app: tokens from design.css, applied to the existing
   markup so every page follows the same palette, type scale and spacing. */
html { background: var(--paper); }
body {
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: var(--font-body) !important;
}
.header, header, .site-header, .topbar, .nav-bar {
  background: color-mix(in srgb, var(--card) 92%, transparent) !important;
  border-bottom: 1px solid var(--line) !important;
  backdrop-filter: blur(10px);
}
.header a, header a, nav a {
  color: var(--ink-2) !important;
  text-decoration: none;
}
.header a:hover, header a:hover, nav a:hover, nav a[aria-current="page"] {
  color: var(--red) !important;
}
h1, h2, h3, .display, .hero h1 {
  font-family: var(--font-display) !important;
  letter-spacing: -0.02em;
  color: var(--ink);
}
p, li, label, .lead, .muted, .small {
  color: var(--ink-2);
}
a { color: var(--red); }

/* Cards and panels */
.card, .panel, .box, .surface, .tile, .stat, .karta, article {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
}

/* Buttons: red pill for the main action, quiet outline for the rest */
button, .btn, .button {
  font-family: var(--font-body);
  border-radius: 999px !important;
}
button.primary, .btn-primary, .btn.primary, .cta, a.cta {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}
button:not(.primary):not(.btn-primary):not(.theme-toggle):not(.icon-btn) {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

/* Inputs */
input, select, textarea {
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  min-height: 48px;
}
input::placeholder, textarea::placeholder { color: var(--ink-3) !important; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

/* Tables */
table { border-color: var(--line) !important; }
th { color: var(--ink-3) !important; text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
td, th { border-color: var(--line) !important; }

/* Hero: dark stage even in the light theme, so the rating card pops */
.hero, .hero-section, .masthead {
  background:
    radial-gradient(120% 140% at 15% 0%, #1b3a49 0%, var(--stage) 62%) !important;
  color: #fff !important;
  border-radius: 24px;
}
.hero h1, .hero p, .hero .lead { color: #fff !important; }
.hero .muted, .hero small { color: rgba(255, 255, 255, 0.72) !important; }

/* Images and media */
img { border-radius: 12px; }
::selection { background: var(--red); color: #fff; }

/* Dark theme keeps the same rules; tokens flip automatically. */
:root[data-theme="dark"] .hero { border-color: #1d3542 !important; }

/* link contrast fix */
.header a.btn-primary, .header a.cta, header a.btn-primary, header a.cta, a.btn-primary, a.cta { color:#fff !important; }

/* DUPR-style hero */
/* The reference site leads with one strong blue field, centred condensed
   uppercase type, a pill call to action and the product card overlapping the
   fold. Same composition, BVRate copy. */
.site-header {
  background: #fff !important;
  border-bottom: 1px solid #e6ecf5 !important;
  color: #05155e !important;
}
.site-header .site-nav a,
.site-header .btn-ghost {
  color: #05155e !important;
}
.site-header .btn-clay,
.site-header .btn-primary {
  background: #3a79e0 !important;
  border-color: #3a79e0 !important;
  color: #fff !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.hero2 {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center;
  background: linear-gradient(180deg, #3a79e0 0%, #1b4fb0 45%, #05155e 100%) !important;
  color: #fff !important;
  border-radius: 0 !important;
  padding: 104px 24px 170px !important;
  gap: 36px;
}
.hero2 .hero2-copy { max-width: 1040px; }
.hero2 .kicker {
  color: #c2d9ff !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  font-size: 13px !important;
}
.hero2 h1 {
  font-family: "Barlow Condensed", "Archivo", sans-serif !important;
  text-transform: uppercase;
  font-size: clamp(52px, 7.4vw, 112px) !important;
  line-height: 0.94 !important;
  letter-spacing: -0.01em !important;
  color: #fff !important;
  margin: 12px 0 22px !important;
  font-weight: 800;
}
.hero2 .lead {
  color: rgba(255, 255, 255, 0.86) !important;
  max-width: 760px;
  margin: 0 auto 30px !important;
  font-size: 19px !important;
}
.hero2 .row { justify-content: center; gap: 14px; }
.hero2 .btn-clay {
  background: #fff !important;
  border-color: #fff !important;
  color: #05155e !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.hero2 .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  border-radius: 999px !important;
}
.hero2 .tiny.muted { color: rgba(255, 255, 255, 0.7) !important; }

/* Product card overlaps the blue field, like the reference photo collage. */
.hero2 .rating-card {
  background: #fff !important;
  color: #05155e !important;
  border: none !important;
  border-radius: 20px !important;
  box-shadow: 0 34px 70px rgba(3, 12, 45, 0.38) !important;
  margin-top: -120px;
  width: min(560px, 100%);
  text-align: left;
}
.hero2 .rating-card .sub,
.hero2 .rating-card .name { color: #05155e !important; }

:root[data-theme="dark"] .site-header { background: #071219 !important; border-color: #1d3542 !important; color: #f3eee7 !important; }
:root[data-theme="dark"] .site-header .site-nav a { color: #c9d3d8 !important; }

/* DUPR rebuild v2 */
/* Composition fixes after comparing with dupr.com:
   one narrow two-line headline, a visible white pill above the card, and a photo
   strip that closes the hero the way the reference does. */

.site-header .site-nav a {
  font-size: 14px !important;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.hero2 h1 {
  max-width: 900px !important;
  margin: 10px auto 18px !important;
  font-size: clamp(46px, 6.2vw, 92px) !important;
  line-height: 0.95 !important;
  text-align: center;
}
.hero2 .lead {
  font-size: 18px !important;
  max-width: 720px !important;
  margin: 0 auto 26px !important;
}

/* The call to action must sit between the copy and the product card. */
.hero2 .row {
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 14px !important;
  position: relative;
  z-index: 6;
  margin: 0 0 26px !important;
}
.hero2 .row .btn-clay {
  min-height: 54px;
  padding: 0 30px;
  font-size: 15px;
}
.hero2 .row .btn-ghost {
  min-height: 54px;
  padding: 0 24px;
  font-size: 15px;
}

.hero2 {
  padding-bottom: 60px !important;
}
.hero2 .rating-card {
  margin-top: 0 !important;
  position: relative;
  z-index: 4;
}

/* Photo strip under the card, overlapping the blue field. */
.hero2 .hero-photos {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1.1fr;
  gap: 14px;
  width: min(1040px, 100%);
  margin: 26px auto -140px;
  position: relative;
  z-index: 3;
}
.hero2 .hero-photos figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(3, 12, 45, 0.35);
  aspect-ratio: 4 / 3;
  background: #0b1a22 center/cover no-repeat;
}
.hero2 .hero-photos figure:nth-child(2) {
  margin-top: 28px;
  aspect-ratio: 3 / 4;
}
.hero2 .hero-photos figure:nth-child(3) {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .hero2 .hero-photos { grid-template-columns: 1fr 1fr; }
  .hero2 .hero-photos figure:nth-child(3) { display: none; }
}

/* brand palette over the reference layout */
/* Keep the DUPR composition but render it in BVRate colours: ink and paper
   with the red accent. No blue anywhere. */

.site-header .btn-clay,
.site-header .btn-primary {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
}

.hero2 {
  background:
    radial-gradient(120% 120% at 50% 0%, #241a16 0%, #12100e 55%, #0a0908 100%) !important;
  color: #f3eee7 !important;
}
.hero2 .kicker {
  color: rgba(243, 238, 231, 0.62) !important;
}
.hero2 .kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 2px;
  background: var(--red);
  vertical-align: middle;
  margin-right: 10px;
}
.hero2 h1 {
  color: #f3eee7 !important;
}
.hero2 h1::after {
  content: ".";
  color: var(--red);
}
.hero2 .lead {
  color: rgba(243, 238, 231, 0.78) !important;
}
.hero2 .row .btn-clay {
  background: var(--red) !important;
  border-color: var(--red) !important;
  color: #fff !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.hero2 .row .btn-ghost {
  color: #f3eee7 !important;
  border-color: rgba(243, 238, 231, 0.45) !important;
  border-radius: 999px !important;
}
.hero2 .tiny.muted {
  color: rgba(243, 238, 231, 0.6) !important;
}
.hero2 .rating-card {
  background: #fffdf9 !important;
  color: #12100e !important;
  border: 1px solid rgba(243, 238, 231, 0.12) !important;
}
.hero2 .rating-card .name { color: #12100e !important; }
.hero2 .rating-card .sub { color: #6b6157 !important; }
.hero2 .hero-photos figure {
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(243, 238, 231, 0.14);
}
.hero2 .hero-photos figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(215, 20, 26, 0) 55%, rgba(215, 20, 26, 0.22) 100%);
}

/* Light theme keeps the same ink stage but lifts the surrounding page. */
:root[data-theme="light"] .hero2 {
  background:
    radial-gradient(120% 120% at 50% 0%, #2b1d18 0%, #17110f 60%, #0d0a09 100%) !important;
}

/* header contrast v3 */
:root[data-theme=dark] .site-header .btn-ghost, :root[data-theme=dark] .site-header .site-nav a { color:#f3eee7 !important; }
:root[data-theme=dark] body, :root[data-theme=dark] html { background:#071219 !important; }
:root[data-theme=dark] main { background:#071219; }

/* profile hero */
/* Player profile opens like the reference dashboard: one dark field, the rating
   number as the hero, quiet metrics underneath. */
.profile-hero {
  background: radial-gradient(120% 130% at 15% 0%, #241a16 0%, #12100e 60%, #0a0908 100%) !important;
  color: #f3eee7 !important;
  border: 1px solid rgba(243, 238, 231, 0.12) !important;
  border-radius: 20px !important;
  padding: 28px 26px !important;
}
.profile-hero h1 { color: #f3eee7 !important; }
.profile-hero .kicker { color: rgba(243, 238, 231, 0.6) !important; letter-spacing: 0.2em; text-transform: uppercase; }
.profile-hero .muted, .profile-hero .small, .profile-hero .label { color: rgba(243, 238, 231, 0.62) !important; }
.profile-hero .mono[style*="font-size:32px"] {
  font-family: "Barlow Condensed", "Archivo", sans-serif !important;
  font-size: clamp(64px, 9vw, 104px) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.03em;
  color: #f3eee7;
}
.profile-hero .stat {
  background: rgba(243, 238, 231, 0.06) !important;
  border: 1px solid rgba(243, 238, 231, 0.12) !important;
  border-radius: 14px !important;
}
.profile-hero .stat .value { color: #f3eee7; font-family: "Barlow Condensed", sans-serif; font-size: 26px; }
.profile-hero .pill { background: rgba(243, 238, 231, 0.1); color: #f3eee7; }
.profile-hero .pill.ok { background: rgba(215, 20, 26, 0.2); color: #ffb3b6; }
.profile-hero .btn { border-color: rgba(243, 238, 231, 0.35); color: #f3eee7; background: transparent; }

/* team rating card */
.team-rating {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(243, 238, 231, 0.16);
  border-radius: 12px;
  background: rgba(243, 238, 231, 0.05);
}
.team-rating .mono {
  font-family: "Barlow Condensed", "Archivo", sans-serif;
  font-size: 30px;
  line-height: 1;
  margin-top: 2px;
}

/* profile form */
.profile-form {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.profile-form .label { margin-right: 6px; }
.form-dot {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  font-family: "Barlow Condensed", sans-serif;
}
.form-dot.is-win { background: rgba(111, 224, 164, 0.18); color: #9ff0c4; }
.form-dot.is-loss { background: rgba(215, 20, 26, 0.22); color: #ffb3b6; }

/* profile matches */
.profile-matches .match-card { padding: 14px 16px; }
.profile-matches .match-result { min-width: 82px; font-size: 18px; color: var(--ink); }
.profile-matches .match-result.is-win { color: #1f7a4d; }
.profile-matches .match-result.is-loss { color: #a80f14; }
.profile-matches .match-meta .who { color: var(--ink); font-weight: 600; }
.profile-matches .match-meta .when { color: var(--ink-3); }
.profile-matches .match-delta.is-up { color: #1f7a4d; }
.profile-matches .match-delta.is-down { color: #a80f14; }

/* rating scale */
.scale { margin-top: 10px; min-width: 190px; }
.scale-line {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7a1d1f 0%, #d7141a 45%, #c9a24a 78%, #f3eee7 100%);
}
.scale-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #111;
  box-shadow: 0 0 0 2px rgba(243, 238, 231, 0.35);
}
.scale-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(243, 238, 231, 0.55);
  margin-top: 6px;
}
.scale-empty { font-size: 12px; color: rgba(243, 238, 231, 0.5); }

/* rating card component */
.rating-card {
  border: 1px solid rgba(243, 238, 231, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(243, 238, 231, 0.04);
  min-width: 220px;
  text-align: left;
}
.rating-card-cat {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 238, 231, 0.55);
}
.rating-card-main { display: flex; align-items: flex-end; gap: 14px; margin-top: 6px; }
.rating-card-rating { flex: 3 1 0; }
.rating-card-team { flex: 1 1 0; opacity: 0.85; }
.rating-card-value {
  font-family: "Barlow Condensed", "Archivo", sans-serif;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.rating-card-delta { font-size: 13px; font-weight: 700; margin-top: 2px; }
.rating-card-delta.is-up { color: #6fe0a4; }
.rating-card-delta.is-down { color: #ff9a9d; }
.rating-card-team-label { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(243, 238, 231, 0.55); }
.rating-card-team-value { font-family: "Barlow Condensed", sans-serif; font-size: 26px; line-height: 1; margin-top: 2px; }
.rating-card-foot {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(243, 238, 231, 0.55);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* club panel */
.club-shell { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.club-side { background: #0d0d0d; border: 1px solid #242424; border-radius: 16px; padding: 14px; position: sticky; top: 12px; }
.club-brand { font-family: "Barlow Condensed", sans-serif; font-size: 22px; text-transform: uppercase; display: grid; gap: 2px; margin-bottom: 12px; }
.club-nav { display: grid; gap: 4px; }
.club-nav-item { display: block; padding: 10px 12px; border-radius: 999px; color: #f3eee7; text-decoration: none; font-weight: 600; }
.club-nav-item:hover { background: #1a1a1a; color: #fff; }
.club-nav-item.is-active { background: var(--red); color: #fff; }
.club-main h1 { margin: 2px 0 14px; }
.club-money { font-family: "Barlow Condensed", sans-serif; font-size: 40px; line-height: 1; }
.tiny.is-up { color: #6fe0a4; }
.tiny.is-down { color: #ff9a9d; }
.occ { overflow-x: auto; }
.occ-row { display: grid; grid-template-columns: 44px repeat(auto-fit, minmax(48px, 1fr)); gap: 6px; align-items: center; margin-top: 6px; }
.occ-head .occ-court { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #9a938a; text-align: center; }
.occ-hour { font-size: 12px; color: #9a938a; }
.occ-cell { display: block; height: 30px; border-radius: 8px; }
.occ-cell.is-paid { background: #d7141a; }
.occ-cell.is-pending { background: #e9a3a5; }
.occ-cell.is-free { background: #1d1d1d; border: 1px solid #2a2a2a; }
.occ-legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12px; color: #9a938a; }
.occ-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.occ-legend .is-paid { background: #d7141a; }
.occ-legend .is-pending { background: #e9a3a5; }
.occ-legend .is-free { background: #1d1d1d; border: 1px solid #2a2a2a; }
@media (max-width: 860px) { .club-shell { grid-template-columns: 1fr; } .club-side { position: static; } }

/* accessibility contrast pass (light pages built on the old palette) */
.skip,
.skip-link,
a.skip {
  background: #111111 !important;
  color: #ffffff !important;
  padding: 8px 12px;
}
.btn-clay,
a.btn-clay,
button.btn-clay {
  background: #d7141a !important;
  border-color: #d7141a !important;
  color: #ffffff !important;
}
.eyebrow,
.kicker {
  color: #5a4a3a !important;
}
.muted,
.small.muted,
.tiny.muted,
.note,
small {
  color: #4a443c !important;
}
a {
  color: #a80f14;
}

/* footer link contrast */
[data-theme="light"] footer a,
[data-theme="light"] .footer a,
[data-theme="light"] .foot a,
[data-theme="light"] .legal a,
[data-theme="light"] .breadcrumbs a,
[data-theme="light"] .meta a,
[data-theme="light"] a.tiny {
  color: #4a3a2a !important;
}
[data-theme="dark"] footer a,
[data-theme="dark"] .footer a,
[data-theme="dark"] .foot a,
[data-theme="dark"] .legal a,
[data-theme="dark"] .breadcrumbs a,
[data-theme="dark"] .meta a,
[data-theme="dark"] a.tiny {
  color: #d8d0c4 !important;
}
