/* ─────────────────────────────────────────────────────────────
   Przegląd Sportowy Żużel — modern brand-aligned theme
   Palette pulled from logo: amber gold + black + helmet red/blue
   ───────────────────────────────────────────────────────────── */

:root {
  /* Brand */
  --brand-amber:   #FFB800;
  --brand-amber-2: #FFC940;
  --brand-amber-d: #E59E00;
  --brand-red:     #E63946;
  --brand-blue:    #1E88E5;
  --brand-green:   #22C55E;

  /* Surfaces */
  --bg:         #0A0A0E;
  --bg-grad-a:  #14141C;
  --bg-grad-b:  #0A0A0E;
  --surface-1:  #15151D;
  --surface-2:  #1C1C26;
  --surface-3:  #232330;
  --surface-hi: #2A2A38;
  --border:     rgba(255, 255, 255, 0.07);
  --border-hi:  rgba(255, 184, 0, 0.25);

  /* Text */
  --text-1: #F5F5F7;
  --text-2: #B6B6C2;
  --text-3: #8C8C9B;   /* lightened from #767685 to meet WCAG AA (4.5:1) on dark surfaces */

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow:    0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 64px -16px rgba(0,0,0,0.6);
  --glow-amber: 0 0 40px rgba(255, 184, 0, 0.25);
  --ring: 0 0 0 3px rgba(255, 184, 0, 0.35);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --sidebar-w: 248px;
  --topbar-h: 64px;
  --content-max: 1560px;   /* comfortable default; widened on ultrawide below */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 200ms;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text-1);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  min-height: 100dvh;   /* iOS Safari: 100vh wrongly includes the URL bar and
                           pushes the layout, causing the "rozjechany" look.
                           dvh tracks the real visible viewport. */
}

/* Transparent so the animated #bgFx canvas (behind, z-index:-1) shows through.
   html keeps the solid --bg base colour as the backstop behind the canvas. */
body { background: transparent; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--brand-amber); color: #000; }

/* Scrollbar */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 8px;
}
*::-webkit-scrollbar-thumb:hover { background: var(--surface-hi); }

.hidden { display: none !important; }

/* ─── SIDEBAR ──────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #0F0F16 0%, #08080C 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  /* Clear the status bar / Dynamic Island (top) and a landscape left notch when
     this is shown as the mobile drawer in standalone PWA mode. */
  padding: max(22px, env(safe-area-inset-top, 0px)) 14px 18px max(14px, env(safe-area-inset-left, 0px));
  z-index: 100;
  overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  border-radius: 10px;
  padding: 4px;
  transition: background var(--dur);
  cursor: pointer;
}
.brand-link:hover { background: var(--surface-1); }
.sidebar-collapse-btn {
  width: 32px; height: 32px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--dur);
}
.sidebar-collapse-btn:hover {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-hi);
}

/* Collapsed sidebar — narrow icons-only mode (desktop) */
@media (min-width: 821px) {
  body.sidebar-collapsed {
    --sidebar-w: 72px;
  }
  body.sidebar-collapsed .sidebar { padding: 22px 10px 18px; }
  body.sidebar-collapsed .brand-link { gap: 0; justify-content: center; }
  body.sidebar-collapsed .brand-text,
  body.sidebar-collapsed .nav-label,
  body.sidebar-collapsed .nav-badge,
  body.sidebar-collapsed .sidebar-footer .btn-sm:not(.btn-icon-only) {
    display: none;
  }
  body.sidebar-collapsed .nav-item {
    justify-content: center;
    padding: 12px 8px;
    position: relative;
  }
  body.sidebar-collapsed .nav-item .nav-icon { width: auto; font-size: 1.2rem; }
  body.sidebar-collapsed .nav-item.active::before { left: -10px; }
  /* Tooltip on hover */
  body.sidebar-collapsed .nav-item:hover::after {
    content: attr(data-label);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translate(8px, -50%);
    background: var(--surface-3);
    color: var(--text-1);
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    z-index: 200;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  body.sidebar-collapsed .sidebar-collapse-btn svg {
    transform: rotate(180deg);
  }
  body.sidebar-collapsed .sidebar-brand {
    flex-direction: column;
    gap: 14px;
  }
  body.sidebar-collapsed .sidebar-footer { gap: 8px; align-items: center; }
  body.sidebar-collapsed .sidebar-footer .btn-sm {
    width: 40px; height: 40px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    overflow: hidden;
  }
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 184, 0, 0.4);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 1rem; letter-spacing: -0.01em; color: var(--text-1); }
.brand-sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-amber);
  font-weight: 700;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  position: relative;
}
.nav-item:hover { background: var(--surface-1); color: var(--text-1); }
.nav-item.active {
  background: linear-gradient(90deg, rgba(255, 184, 0, 0.16), rgba(255, 184, 0, 0.02));
  color: var(--text-1);
}
.nav-item.active::before {
  content: ''; position: absolute;
  left: -14px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 2px;
  background: var(--brand-amber);
  box-shadow: 0 0 12px var(--brand-amber);
}
.nav-icon {
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.nav-badge {
  margin-left: auto;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  background: var(--brand-red); color: white;
  padding: 2px 6px; border-radius: 6px; letter-spacing: 0.05em;
}
.nav-divider { height: 1px; background: var(--border); margin: 10px 4px; }
.live-pip {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-red);
  display: inline-block;
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}
.sidebar-footer {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 8px; padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn-accent, .btn-ghost, .btn-danger, .btn-outline {
  border: 0;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn-accent {
  background: linear-gradient(135deg, var(--brand-amber) 0%, var(--brand-amber-d) 100%);
  color: #1A1300;
  box-shadow: 0 4px 14px rgba(255, 184, 0, 0.35);
}
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 184, 0, 0.45); }
.btn-accent:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface-1);
  color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-hi); }
.btn-outline {
  background: transparent;
  color: var(--brand-amber);
  border: 1px solid var(--brand-amber);
}
.btn-outline:hover { background: rgba(255, 184, 0, 0.1); }
.btn-danger {
  background: rgba(230, 57, 70, 0.15);
  color: #FF8B95;
  border: 1px solid rgba(230, 57, 70, 0.3);
}
.btn-danger:hover { background: rgba(230, 57, 70, 0.25); }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; border-radius: 8px; }

/* ─── NEW TOP NAV (primary navigation) ────────────────────── */
.topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  /* Reserve space for the iOS/Android status bar, Dynamic Island, notch and
     side camera cut-outs in standalone PWA mode (viewport-fit=cover). Without
     this the top buttons sit UNDER the island and become un-tappable. env() is
     0 on devices without insets, so this is a no-op on desktop. */
  height: calc(64px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
  /* Solid (no backdrop-filter): a blur filter on this sticky header made its
     absolutely-positioned dropdowns (🔔 notifications, user menu, ⋯ Więcej)
     leave ghost paint artifacts over the page on some GPUs. A near-opaque
     background keeps the look, kills the artifacts, and is cheaper to paint. */
  background: rgba(10, 10, 14, 0.94);
  border-bottom: 1px solid var(--border);
}
.topnav-hamburger {
  display: none;
  width: 36px; height: 36px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 9px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.topnav-hamburger span { width: 16px; height: 2px; background: var(--text-1); border-radius: 1px; }

.topnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-1);
  flex-shrink: 0;
}
.brand-logo-top {
  width: 36px; height: 36px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.4);
}
.topnav-brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.topnav-brand-name {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}
.topnav-brand-sub {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-amber);
  font-weight: 700;
}

.topnav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  flex: 1;
  min-width: 0;          /* allow the bar to shrink below content so overflow
                            never pushes the search box / actions off-screen;
                            JS (reflowTopnav) decides what collapses into ⋯ */
  margin: 0 12px;
  align-items: center;
}
/* Bar items keep their natural width (so JS can measure them); collapsed
   items inside the ⋯ dropdown are free to fill the menu instead. */
.topnav-links > .tn-link,
.topnav-links > .tn-more { flex-shrink: 0; }
.tn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--dur), color var(--dur);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
  white-space: nowrap;
}
.tn-link:hover { background: var(--surface-2); color: var(--text-1); }
.tn-link.active {
  background: rgba(255, 184, 0, 0.16);
  color: var(--brand-amber);
}
.tn-more { position: relative; }
.tn-more-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.tn-more.open .tn-more-menu { display: flex; }
/* Invisible bridge to absorb hover gap */
.tn-more-menu::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0; height: 8px;
}
.tn-more-menu .tn-link { padding: 8px 10px; }

.topnav-search {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 264px;
  padding: 8px 10px 8px 12px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-3);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur), color var(--dur);
}
.topnav-search:hover {
  border-color: var(--border-hi);
  background: var(--surface-2);
  color: var(--text-2);
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.06);
}
.topnav-search:focus-visible { outline: none; border-color: var(--brand-amber); box-shadow: var(--ring); }
.topnav-search:active { transform: translateY(1px); }
.topnav-search .search-icon {
  display: inline-flex; align-items: center;
  color: var(--text-3);
  transition: color var(--dur), transform var(--dur);
}
.topnav-search:hover .search-icon { color: var(--brand-amber); transform: scale(1.08); }
.topnav-search .search-text {
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-kbd { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.search-kbd span {
  font-size: 0.64rem; font-weight: 700; line-height: 1;
  padding: 3px 5px; border-radius: 5px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.topnav-search:hover .search-kbd span { border-color: var(--border-hi); color: var(--brand-amber); }

.topnav-actions {
  display: flex; gap: 6px; align-items: center; flex-shrink: 0;
}
.tn-icon-btn {
  width: 36px; height: 36px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-1);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--dur);
}
.tn-icon-btn:hover { background: var(--surface-2); }
.tn-profile {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  border: 0;
  color: #0A0A0E;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── INSTALL MODAL (PWA) ──────────────────────────────────── */
.install-modal {
  text-align: center;
  max-width: 460px;
}
.install-modal-icon {
  font-size: 3rem;
  margin: 8px 0 16px;
}
.install-modal h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}
.install-benefits {
  color: var(--text-2);
  font-size: 0.88rem;
  background: var(--surface-2);
  padding: 12px 14px;
  border-radius: 10px;
  margin: 14px 0 20px;
}
.ins-steps {
  text-align: left;
  padding-left: 18px;
  margin: 16px 0;
}
.ins-steps li {
  padding: 12px 8px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 8px;
  list-style: decimal;
  color: var(--text-1);
  font-size: 0.92rem;
  line-height: 1.5;
}
.ins-steps strong { color: var(--brand-amber); }
.ins-icon {
  display: inline-block;
  background: var(--surface-3);
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 6px;
  font-size: 1.1rem;
}
.ins-note {
  color: var(--text-3);
  font-size: 0.82rem;
  font-style: italic;
  margin: 14px 0 0;
  padding: 10px;
  background: rgba(255, 184, 0, 0.06);
  border-radius: 8px;
}

/* ─── CARBON THEME (unlocked via Konami code / 5x logo click) ──── */
body.theme-carbon {
  --bg:          #0E0712;
  --bg-grad-a:   #18101F;
  --bg-grad-b:   #0E0712;
  --surface-1:   #1A1424;
  --surface-2:   #20182C;
  --surface-3:   #2A2138;
  --brand-amber: #BE2C5C;   /* deep magenta accent */
  --brand-amber-d: #8A1F40;
  --brand-amber-2: #D14B7B;
}
body.theme-carbon::after {
  content: '🏎️ Carbon Black';
  position: fixed;
  bottom: 8px;
  left: 8px;
  background: linear-gradient(135deg, var(--brand-amber), #8A1F40);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 9000;
  opacity: 0.6;
  pointer-events: none;
}

/* ─── ONBOARDING WIZARD ──────────────────────────────────── */
.onboard-modal {
  max-width: 540px;
  padding: 28px 32px;
  text-align: center;
}
.onb-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 22px;
}
.onb-dot {
  width: 36px; height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  transition: background 300ms;
}
.onb-dot.active { background: var(--brand-amber); width: 48px; }
.onb-dot.done { background: var(--brand-amber-d); }

.onb-step h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.onb-icon {
  font-size: 3.5rem;
  margin: 6px 0 12px;
}
.onb-sub {
  color: var(--text-2);
  font-size: 0.95rem;
  margin: 0 0 18px;
  line-height: 1.5;
}
.onb-sub strong { color: var(--brand-amber); }

.onb-team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 14px 0;
}
.onb-team {
  background: var(--surface-2);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 10px 6px;
  cursor: pointer;
  transition: all var(--dur);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.onb-team:hover { background: var(--surface-3); transform: translateY(-2px); }
.onb-team.selected {
  border-color: var(--brand-amber);
  background: rgba(255, 184, 0, 0.12);
}
.onb-team img {
  width: 44px; height: 44px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 4px;
}
.onb-team span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.2;
  text-align: center;
}

.onb-benefits {
  display: flex; flex-direction: column; gap: 6px;
  margin: 14px 0;
}
.onb-benefit {
  background: var(--surface-2);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: left;
}
.onb-tip {
  color: var(--text-3);
  font-size: 0.78rem;
  font-style: italic;
  margin: 12px 0 0;
}
.onb-actions {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.onb-actions .btn-accent { margin-left: auto; }

@media (max-width: 600px) {
  .onb-team-grid { grid-template-columns: repeat(3, 1fr); }
  .onb-team span { font-size: 0.65rem; }
}

/* ─── FOOTER PARTNERSHIPS ────────────────────────────────── */
.footer-partnerships {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.footer-partner {
  text-align: center;
}
.footer-link {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  transition: background var(--dur), border-color var(--dur);
}
.footer-link:hover { background: var(--surface-2); border-color: var(--border-hi); }
.footer-link strong { color: var(--brand-amber); font-size: 0.95rem; }
.footer-link span { color: var(--text-3); font-size: 0.78rem; }
.footer-copy { margin: 0; text-align: center; color: var(--text-3); font-size: 0.85rem; }

/* Fixture row with ticket button */
.fixture-row { display: flex !important; align-items: center; gap: 10px; }
.fr-info { flex: 1; min-width: 0; }
.fr-ticket {
  flex-shrink: 0;
  text-decoration: none;
  background: rgba(255, 0, 0, 0.08);
  border-color: rgba(255, 0, 0, 0.3);
  color: #FF6B6B !important;
}
.fr-ticket:hover { background: rgba(255, 0, 0, 0.15); }

/* ─── YOUTUBE EMBED ──────────────────────────────────────── */
.yt-embed-wrap {
  margin: 20px 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 16 / 9;
  position: relative;
}
.yt-embed {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-color: #1a1a22;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: opacity var(--dur);
}
.yt-embed::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  transition: background var(--dur);
}
.yt-embed:hover::before { background: rgba(0, 0, 0, 0.1); }
.yt-play-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: transform 200ms var(--ease);
}
.yt-embed:hover .yt-play-btn { transform: scale(1.1); }
.yt-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  z-index: 1;
  backdrop-filter: blur(4px);
}
.yt-iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

/* Match YouTube banner */
.match-yt-banner {
  display: flex; align-items: center; gap: 16px;
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.12), rgba(230, 57, 70, 0.06));
  border: 1px solid rgba(255, 0, 0, 0.3);
  padding: 16px 20px;
  border-radius: 12px;
  margin-top: 18px;
  text-decoration: none;
  color: var(--text-1);
  transition: transform var(--dur), border-color var(--dur);
}
.match-yt-banner:hover { transform: translateY(-2px); border-color: rgba(255, 0, 0, 0.6); }
.myb-icon {
  width: 48px; height: 48px;
  background: #ff0000;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.4);
}
.myb-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.myb-body strong { font-size: 1rem; }
.myb-body span { color: var(--text-3); font-size: 0.85rem; }
.myb-arrow { font-size: 1.4rem; color: var(--text-3); }

/* ─── GAMIFICATION: XP CARD ──────────────────────────────── */
.xp-card {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(30, 136, 229, 0.06));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 20px 24px;
  position: relative;
  overflow: hidden;
}
.xp-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 200px at 100% 0%, rgba(255, 184, 0, 0.15), transparent 60%);
  pointer-events: none;
}
.xp-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
  position: relative; z-index: 1;
}
.xp-level-badge {
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  color: #0A0A0E;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}
.xp-total {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
}
.xp-progress {
  height: 10px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.xp-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-amber), var(--brand-amber-2));
  border-radius: 999px;
  transition: width 800ms var(--ease);
  box-shadow: 0 0 12px rgba(255, 184, 0, 0.5);
}
.xp-footer {
  display: flex; justify-content: space-between;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--text-2);
  position: relative; z-index: 1;
}
.xp-footer strong { color: var(--brand-amber); }
.xp-streak {
  margin-top: 12px;
  padding: 8px 12px;
  background: rgba(230, 57, 70, 0.12);
  border-left: 3px solid var(--brand-red);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text-1);
}
.xp-streak strong { color: var(--brand-red); }

/* ─── LIVE COMMENTARY PANEL ─────────────────────────────── */
.commentary-panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-top: 28px;
}
.commentary-panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  display: flex; align-items: center; gap: 8px;
}
.commentary-feed {
  max-height: 380px;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding: 8px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 12px;
}
.commentary-entry {
  padding: 10px 12px;
  background: var(--surface-1);
  border-radius: 8px;
  border-left: 3px solid var(--text-3);
}
.commentary-entry.commentary-ai { border-left-color: var(--brand-blue); }
.commentary-entry.commentary-admin { border-left-color: var(--brand-amber); }
.commentary-entry.commentary-system { border-left-color: var(--brand-green); }
.ce-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-bottom: 4px;
}
.ce-meta strong { color: var(--text-1); font-size: 0.85rem; }
.ce-icon { font-size: 0.95rem; }
.ce-heat {
  background: var(--brand-amber);
  color: #0A0A0E;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}
.ce-time { margin-left: auto; }
.ce-body {
  color: var(--text-1);
  font-size: 0.92rem;
  line-height: 1.5;
}
.commentary-compose {
  display: flex; gap: 8px;
}
.commentary-compose input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-1);
  outline: none;
}
.commentary-compose input:focus { border-color: var(--brand-amber); }

/* ─── DASHBOARD EDITOR ──────────────────────────────────── */
.dbe-open-btn {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-2);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background var(--dur), color var(--dur);
}
.dbe-open-btn:hover { background: var(--surface-2); color: var(--text-1); border-color: var(--border-hi); }

.dbe-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.dbe-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: move;
  transition: background var(--dur), border-color var(--dur);
}
.dbe-item.dragging {
  opacity: 0.5;
  border-color: var(--brand-amber);
}
.dbe-handle {
  color: var(--text-3);
  font-size: 1.1rem;
  cursor: grab;
}
.dbe-name {
  display: flex; align-items: center; gap: 8px;
  flex: 1;
  font-size: 0.9rem;
  cursor: pointer;
}
.dbe-name input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--brand-amber);
}

/* ─── PUBLIC PROFILE + FEED ─────────────────────────────── */
.pub-profile-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), rgba(30, 136, 229, 0.05));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 28px;
  align-items: center;
  margin-bottom: 22px;
}
.pub-profile-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0A0A0E;
  overflow: hidden;
  flex-shrink: 0;
}
.pub-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pub-profile-info h1 {
  margin: 0 0 6px;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
}
.pub-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  background: var(--brand-amber);
  color: #0A0A0E;
  margin-bottom: 6px;
}
.pub-team {
  color: var(--text-2);
  margin: 6px 0;
}
.pub-team strong { color: var(--brand-amber); }
.pub-level {
  display: flex; gap: 10px; align-items: center;
  margin-top: 8px;
}
.pub-level-badge {
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  color: #0A0A0E;
  padding: 4px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
}
.pub-xp {
  color: var(--text-1);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.pub-self-badge {
  color: var(--text-3);
  font-size: 0.85rem;
  font-style: italic;
}

.pub-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.pub-stat {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.pub-stat-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pub-stat-label {
  margin-top: 6px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  font-weight: 700;
}

/* Feed */
.feed-empty {
  text-align: center;
  padding: 60px 20px;
}
.feed-empty h2 { margin: 0 0 10px; }
.feed-list { display: flex; flex-direction: column; gap: 10px; }
.feed-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.feed-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  display: flex; align-items: center; justify-content: center;
  color: #0A0A0E;
  font-weight: 800;
  overflow: hidden;
}
.feed-avatar img { width: 100%; height: 100%; object-fit: cover; }
.feed-body { font-size: 0.92rem; line-height: 1.5; }
.feed-body strong:hover { color: var(--brand-amber); }
.feed-time { color: var(--text-3); font-size: 0.78rem; margin-top: 4px; }

@media (max-width: 700px) {
  .pub-profile-hero { grid-template-columns: 1fr; text-align: center; }
  .pub-profile-avatar { margin: 0 auto; }
  .pub-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ─── TEAM DETAIL PAGE ──────────────────────────────────── */
.team-hero {
  position: relative;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-color: #1a1a22;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
  overflow: hidden;
}
.team-hero-logo {
  width: 120px; height: 120px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  object-fit: contain;
}
.team-hero-info { flex: 1; color: #fff; }
.team-hero-name {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.team-hero-meta {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
  font-size: 0.95rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.team-hero-stats {
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 14px;
  font-size: 0.98rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.team-hero-stats strong { color: var(--brand-amber); }
.team-hero-actions { display: flex; gap: 14px; align-items: center; }
.team-followers {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
}

.team-tabs {
  display: flex; gap: 4px;
  margin-bottom: 18px;
  padding: 4px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}
.team-tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
}
.team-tab:hover { background: var(--surface-2); color: var(--text-1); }
.team-tab.active {
  background: var(--brand-amber);
  color: #0A0A0E;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}
.team-tab-content { animation: fade-in 200ms var(--ease); }

.team-matches { display: flex; flex-direction: column; gap: 8px; }
.team-match {
  display: grid;
  grid-template-columns: 130px 1fr 140px;
  gap: 14px;
  align-items: center;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  transition: background var(--dur);
}
.team-match[data-match-id] { cursor: pointer; }
.team-match[data-match-id]:hover { background: var(--surface-2); border-color: var(--border-hi); }
.tm-date { font-size: 0.85rem; color: var(--text-2); display: flex; flex-direction: column; gap: 2px; }
.tm-date strong { color: var(--text-1); font-size: 0.92rem; }
.tm-round { display: inline-block; background: var(--brand-amber); color: #0A0A0E; padding: 1px 6px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; width: fit-content; }
.tm-time { color: var(--text-3); font-size: 0.78rem; }
.tm-teams { font-weight: 600; font-size: 0.95rem; }
.tm-vs { color: var(--brand-amber); font-weight: 700; margin: 0 6px; font-size: 0.85rem; }
.tm-status { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.tm-status-pill { background: var(--surface-3); color: var(--text-2); padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; }
.tm-arrow { color: var(--text-3); font-size: 1.1rem; }

.stadium-info {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.stadium-img {
  width: 100%; max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
}
.stadium-meta h3 { margin: 0 0 14px; font-size: 1.2rem; }
.stadium-meta p { margin: 6px 0; color: var(--text-2); }

.clickable-row { cursor: pointer; transition: background var(--dur); }
.clickable-row:hover { background: var(--surface-2) !important; }

@media (max-width: 700px) {
  .team-hero { flex-direction: column; align-items: center; text-align: center; }
  .team-hero-logo { width: 90px; height: 90px; }
  .team-match { grid-template-columns: 1fr; gap: 8px; }
  .tm-status { justify-content: flex-start; }
  .stadium-info { grid-template-columns: 1fr; }
}

/* User menu dropdown — click-toggle (no hover so gap doesn't kill it) */
.user-menu {
  position: relative;
}
.user-menu-drop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
.user-menu.open .user-menu-drop { display: flex; }
/* Bridge — invisible padding that absorbs hover gap between trigger & menu */
.user-menu-drop::before {
  content: '';
  position: absolute;
  top: -10px; left: 0; right: 0; height: 10px;
}
.um-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}
.um-item:hover { background: var(--surface-2); color: var(--text-1); }
.um-logout { color: #FF8B95; }
.um-logout:hover { background: rgba(230, 57, 70, 0.1); color: #FF8B95; }

/* Universal back button on view headers */
.view-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 12px;
  margin-bottom: 14px;
  cursor: pointer;
  transition: background var(--dur), color var(--dur), border-color var(--dur);
  font-family: inherit;
}
.view-back:hover {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-hi);
}
.view-back::before { content: '←'; font-size: 1rem; }

/* Hide the OLD sidebar — it now only shows on mobile drawer */
.sidebar { display: none; }
/* Nav item overflow is handled dynamically in JS (reflowTopnav) — it collapses
   the tail into ⋯ Więcej only when the bar is actually full, so wide / ultrawide
   screens keep every item inline. We just reclaim the search box + brand subtitle
   on tighter screens to give the links more room before anything collapses. */
@media (max-width: 900px) {
  .topnav-brand-sub { display: none; }
  .topnav-search { display: none; }
}
/* Collapse the nav at the SAME breakpoint the bottom-nav appears (820px) so
   there's no cramped zone (700–820px) where the desktop links and the mobile
   bottom-nav both showed at once. */
@media (max-width: 820px) {
  .topnav-hamburger { display: inline-flex; }
  .topnav-links { display: none; }
  .sidebar { display: flex; }   /* re-enable as mobile drawer */
  .topnav-brand-text { display: none; }
  .topnav-brand { gap: 0; }
}

/* Sidebar is gone — center the capped content column so wide / ultrawide
   monitors don't strand everything against the left edge. */
.main, .site-footer { margin-left: auto !important; margin-right: auto !important; padding-left: 28px; padding-right: 28px; }

/* Ultrawide: progressively widen the content column so large monitors actually
   get used instead of showing a narrow column with huge empty margins. Grids
   inside (news, riders, bento…) use auto-fill/minmax, so they simply gain
   columns as the column grows. */
@media (min-width: 1700px) { :root { --content-max: 1740px; } }
@media (min-width: 2200px) { :root { --content-max: 2000px; } }
@media (min-width: 2900px) { :root { --content-max: 2280px; } }
@media (max-width: 700px) {
  .main { padding-left: 16px; padding-right: 16px; }
}

/* ─── TOPBAR ───────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--topbar-h);
  margin-left: var(--sidebar-w);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  background: rgba(10, 10, 14, 0.65);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-hamburger {
  display: none;
  width: 38px; height: 38px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.topbar-hamburger span { width: 16px; height: 2px; background: var(--text-1); border-radius: 1px; }
.topbar-brand { display: none; font-weight: 700; align-items: center; gap: 8px; }
.topbar-brand .brand-logo { width: 28px; height: 28px; border-radius: 8px; }
.topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}
.topbar-search input {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px 10px 38px;
  color: var(--text-1);
  outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.topbar-search input::placeholder { color: var(--text-3); }
.topbar-search input:focus { border-color: var(--brand-amber); box-shadow: var(--ring); }
.topbar-search .search-icon {
  position: absolute; left: 12px; color: var(--text-3); pointer-events: none;
}
.topbar-search .kbd-hint {
  position: absolute; right: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--surface-3);
  color: var(--text-2);
  pointer-events: none;
}
.topbar-actions { display: flex; gap: 8px; margin-left: auto; }
.topbar-profile {
  display: none;
  width: 38px; height: 38px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-1);
}

/* ─── MAIN ─────────────────────────────────────────────────── */
.main {
  margin-left: var(--sidebar-w);
  padding: 28px 28px 80px;
  max-width: var(--content-max);
}
.view { display: none; }
.view--active { display: block; animation: fade-in 280ms var(--ease); }
@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.view-header { margin-bottom: 24px; }
.view-title {
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.view-sub { color: var(--text-2); margin: 0; }

/* ─── BENTO GRID ───────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(160px, auto);
  gap: 18px;
}
.bento-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.bento-card:hover { transform: translateY(-2px); border-color: var(--border-hi); box-shadow: var(--shadow); }
.bento-card[role='button'] { cursor: pointer; }

.bento-hero {
  grid-column: span 7;
  grid-row: span 2;
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(255, 184, 0, 0.18), transparent 60%),
    linear-gradient(135deg, #1A1A24 0%, #0D0D14 100%);
  border: 1px solid rgba(255, 184, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 28px;
}
.bento-hero-art {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--glow-amber);
}
.bento-hero-art::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent, rgba(255, 184, 0, 0.5), transparent);
  filter: blur(20px);
  opacity: 0.5;
  z-index: -1;
}
.bento-hero-art img {
  width: 92%; height: 92%; border-radius: 50%;
  border: 4px solid #0A0A0E;
  object-fit: cover;
}
.bento-hero-body { flex: 1; min-width: 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 10px;
  background: rgba(255, 184, 0, 0.12);
  color: var(--brand-amber);
  border: 1px solid rgba(255, 184, 0, 0.3);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 14px;
}
.hero-heading {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.hero-heading .accent { color: var(--brand-amber); }
.hero-desc { color: var(--text-2); margin: 0 0 18px; font-size: 0.98rem; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

.bento-label {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--text-3); margin-bottom: 12px;
}

.bento-match { grid-column: span 5; display: flex; flex-direction: column; }
.match-teams { display: flex; flex-direction: column; gap: 4px; font-weight: 700; }
.match-teams .team { font-size: 1.15rem; }
.match-teams .vs {
  color: var(--brand-amber);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.match-meta { color: var(--text-2); margin-top: auto; font-size: 0.9rem; }

.bento-live-card { grid-column: span 3; display: flex; flex-direction: column; }
.live-count strong { color: var(--brand-red); font-size: 1.6rem; display: block; }
.pulse-wrap { position: relative; width: 56px; height: 56px; margin-bottom: 14px; }
.pulse-ring, .pulse-core { position: absolute; inset: 0; border-radius: 50%; }
.pulse-core { background: var(--brand-red); inset: 20px; }
.pulse-ring {
  background: rgba(230, 57, 70, 0.3);
  animation: pulse-grow 1.8s ease-out infinite;
}
@keyframes pulse-grow {
  0%   { transform: scale(0.4); opacity: 1; }
  100% { transform: scale(1.2); opacity: 0; }
}

.bento-gp { grid-column: span 2; }
.gp-name {
  font-size: 1.1rem; font-weight: 700;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.gp-pts { font-size: 2rem; font-weight: 800; margin-top: 4px; }
.gp-pts small { font-size: 0.75rem; font-weight: 600; color: var(--text-2); }

.bento-standings { grid-column: span 4; }
.mini-table {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.mini-table li {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
}
.mt-pos {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--brand-amber);
  color: #000;
  font-size: 0.75rem; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.mt-team { font-weight: 600; flex: 1; }
.mt-pts { color: var(--brand-amber); font-weight: 700; }

.bento-news-card { grid-column: span 4; }
.mini-news {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.mini-news li {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 0.9rem;
  border-left: 3px solid var(--brand-amber);
}

.bento-ai {
  grid-column: span 4;
  background: linear-gradient(135deg, rgba(30, 136, 229, 0.12), rgba(255, 184, 0, 0.05));
  border-color: rgba(30, 136, 229, 0.3);
}
.bento-ai .ai-spark { font-size: 1.7rem; margin-bottom: 6px; }
.bento-ai h3 { margin: 0 0 6px; font-size: 1.05rem; }
.bento-ai p { color: var(--text-2); margin: 0; font-size: 0.9rem; }

.bento-stadium {
  grid-column: span 4;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(0, 0, 0, 0.3));
  border-color: rgba(230, 57, 70, 0.25);
}
.bento-stadium .stadium-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.bento-stadium h3 { margin: 0 0 4px; }
.bento-stadium p { color: var(--text-2); margin: 0; font-size: 0.9rem; }

.bento-arrow {
  position: absolute;
  bottom: 18px; right: 18px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--text-2);
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.bento-card:hover .bento-arrow {
  background: var(--brand-amber);
  color: #000;
  transform: translateX(2px);
}

/* ─── CARDS / PANELS ───────────────────────────────────────── */
.card, .glass-panel {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
  transition: border-color var(--dur) var(--ease);
}
.card:hover { border-color: var(--border-hi); }
.card h3, .glass-panel h3 { margin: 0 0 12px; font-size: 1.05rem; }
.card p { color: var(--text-2); margin: 0 0 8px; line-height: 1.55; }
.card.highlighted {
  border-color: var(--brand-amber);
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.08), var(--surface-1));
  box-shadow: 0 0 0 1px rgba(255, 184, 0, 0.2);
}
.trend-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 184, 0, 0.15);
  color: var(--brand-amber);
  margin-bottom: 8px;
}
.card.highlighted .trend-badge { background: var(--brand-amber); color: #000; }

/* Live results — status badges */
.live-card-header { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.live-badge {
  display: inline-block;
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-3); color: var(--text-2);
}
.live-badge.status-live {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
  color: #fff;
  animation: pulseLive 1.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.5);
}
.live-badge.status-scheduled { background: var(--surface-3); color: var(--text-2); }
.live-badge.status-finished { background: rgba(100, 200, 100, 0.18); color: #6bcf6b; }
.live-badge.status-favorite { background: var(--brand-amber); color: #000; }
@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}
.live-match-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.live-match-card[data-match-id]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.section-gap { margin-bottom: 28px; }
.view-section { margin-top: 32px; }
.view-section-header h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 6px; }
.view-section-header p { color: var(--text-2); margin: 0 0 16px; }

/* ─── LIVE STATUS BAR (public-facing live view) ──────────────── */
.live-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(230, 57, 70, 0.1), rgba(230, 57, 70, 0.02));
  border: 1px solid rgba(230, 57, 70, 0.25);
  border-radius: 10px;
}
.live-indicator { display: flex; align-items: center; gap: 10px; }
.live-indicator .live-pip {
  width: 10px; height: 10px;
  background: var(--brand-red);
  box-shadow: 0 0 12px var(--brand-red);
}
.live-indicator .live-label {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-1);
}

/* ─── LIVE / DATA SOURCE ───────────────────────────────────── */
.data-source-panel {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px; padding: 14px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}
.ds-label { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ds-label select {
  background: var(--surface-3); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 8px; color: var(--text-1); outline: none;
}
.ds-label select:focus { border-color: var(--brand-amber); }
.data-source-note { color: var(--text-2); margin: 0; font-size: 0.88rem; }

/* ─── TABLES ───────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
th {
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-3); font-weight: 700;
}
tbody tr { transition: background var(--dur); }
tbody tr:hover { background: var(--surface-2); }
tbody tr td:first-child { font-weight: 700; color: var(--brand-amber); }
.form-pill {
  display: inline-block;
  width: 18px; height: 18px;
  margin-right: 3px;
  border-radius: 4px;
  font-size: 0.65rem; font-weight: 800;
  text-align: center; line-height: 18px;
}
.form-pill.W { background: var(--brand-green); color: #002500; }
.form-pill.L { background: var(--brand-red); color: white; }
.form-pill.D { background: var(--text-3); color: white; }

/* ─── TYPOWANIA (dedykowana zakładka) ──────────────────────── */
.typy-rules-bar { display: flex; flex-wrap: wrap; gap: 12px; }
.typy-rule {
  flex: 1 1 180px;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px;
  color: var(--text-2); font-size: 0.9rem; font-weight: 600;
}
.typy-rule-pts {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 8px;
  background: var(--brand-amber); color: #000;
  border-radius: 10px; font-weight: 800; font-size: 1rem;
}
.typy-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), var(--surface-1));
  border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px;
  text-decoration: none; color: var(--text-1);
  transition: border-color .15s, transform .15s;
}
.typy-cta:hover { border-color: var(--brand-amber); transform: translateY(-1px); }
.typy-cta-text { display: flex; flex-direction: column; gap: 4px; }
.typy-cta-text strong { font-size: 1.05rem; }
.typy-cta-text span { color: var(--text-3); font-size: 0.88rem; }
.typy-cta-arrow { color: var(--brand-amber); font-weight: 700; white-space: nowrap; }

/* ─── PREDICTIONS ──────────────────────────────────────────── */
.prediction-panel form {
  display: grid; gap: 12px;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}
.prediction-panel label, .modal label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; color: var(--text-2); font-weight: 600;
}
.prediction-panel select, .prediction-panel input,
.modal input, .modal textarea, .modal select {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 12px;
  color: var(--text-1); outline: none;
  transition: border-color var(--dur), box-shadow var(--dur);
}
.prediction-panel select:focus, .prediction-panel input:focus,
.modal input:focus, .modal textarea:focus, .modal select:focus {
  border-color: var(--brand-amber); box-shadow: var(--ring);
}
.prediction-list {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.prediction-list li {
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; font-size: 0.92rem;
}
.prediction-list .pick-pill {
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  background: var(--brand-amber); color: #000;
  text-transform: uppercase;
}

/* ─── NEWS ─────────────────────────────────────────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.news-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur), border-color var(--dur);
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.news-thumb {
  height: 160px;
  background:
    linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7)),
    linear-gradient(135deg, var(--brand-amber-d), #6F4800);
  position: relative;
  display: flex; align-items: flex-end;
  padding: 16px;
}
.news-thumb .category-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 0.7rem; font-weight: 700;
  background: rgba(0, 0, 0, 0.6);
  color: var(--brand-amber);
  padding: 4px 10px; border-radius: 6px;
  text-transform: uppercase; letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}
.news-body { padding: 18px; flex: 1; }
.news-body h3 { margin: 0 0 8px; font-size: 1.05rem; line-height: 1.3; }
.news-body p { color: var(--text-2); margin: 0; font-size: 0.9rem; }

/* ─── STADIUM 3D ───────────────────────────────────────────── */
.stadium-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #050508;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  max-height: 600px;
}
/* Ultrawide: let the 3D stadium grow taller so it fills the extra width
   immersively instead of staying a short letterbox strip. */
@media (min-width: 1700px) { .stadium-wrap { max-height: 70vh; } }
@media (min-width: 2400px) { .stadium-wrap { max-height: 76vh; } }
.stadium-canvas { width: 100%; height: 100%; display: block; }
.stadium-overlay {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; flex-direction: column;
  padding: 18px; gap: 12px;
}
.stadium-hud-top {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
}
.stadium-meeting {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}
.stadium-meeting strong { color: var(--brand-amber); }
.stadium-heat {
  background: #c41e2a; color: white;   /* deeper red so white text meets WCAG AA */
  padding: 8px 12px; border-radius: 10px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.4);
}
.stadium-heat::before {
  content: ''; width: 8px; height: 8px; background: white; border-radius: 50%;
  animation: pulse-dot 1.2s ease-in-out infinite;
}
@keyframes pulse-dot { 50% { opacity: 0.3; } }
.stadium-riders {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.stadium-rider {
  background: rgba(15, 15, 22, 0.85);
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--rider-color, var(--brand-amber));
  padding: 10px 14px;
  border-radius: 10px;
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stadium-rider .rider-pos {
  font-size: 0.7rem; color: var(--text-3); font-weight: 700; text-transform: uppercase;
}
.stadium-rider .rider-name { font-weight: 700; font-size: 0.95rem; margin: 2px 0; }
.stadium-rider .rider-stat { font-size: 0.78rem; color: var(--text-2); }
.stadium-rider .rider-stat strong { color: var(--brand-amber); }
.stadium-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ─── AI VIEW ──────────────────────────────────────────────── */
.ai-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 820px) {
  /* AI Trener on phones: force ONE full-width column and let cards shrink. The
     cards hold wide content (charts, long analysis text) that otherwise forces a
     2-col-wide layout clipped off the right edge — the reported broken layout. */
  .ai-grid { grid-template-columns: 1fr !important; }
  .ai-grid > * { min-width: 0 !important; grid-column: auto !important; }
  .ai-card, .ai-content, .ai-content * { overflow-wrap: anywhere; }
  .ai-content { overflow-x: auto; }
}
.ai-card {
  background:
    linear-gradient(180deg, rgba(30, 136, 229, 0.06), transparent 60%),
    var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.ai-card-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.ai-spark-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand-blue), #00B0FF);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(30, 136, 229, 0.4);
}
.ai-card h3 { margin: 0; font-size: 1.05rem; }
.ai-source-pill {
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase;
  padding: 3px 7px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-2);
  margin-left: auto;
}
.ai-source-pill.claude { background: var(--brand-blue); color: white; }
.ai-content { color: var(--text-1); line-height: 1.6; }
.ai-content .placeholder { color: var(--text-3); font-style: italic; }
.ai-advice-list { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); }
.ai-advice-list li { margin-bottom: 6px; }
.ai-team-picker {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; margin-bottom: 14px;
}
.ai-team-picker select {
  flex: 1;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 8px 12px; border-radius: 8px; color: var(--text-1); outline: none;
}
.ai-suggestions { display: flex; flex-direction: column; gap: 10px; }
.ai-suggestion {
  background: var(--surface-2);
  padding: 12px 14px;
  border-radius: 10px;
  border-left: 3px solid var(--brand-amber);
}
.ai-sug-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 6px;
}
.ai-sug-match { font-weight: 700; font-size: 0.95rem; }
.ai-sug-conf {
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
  background: var(--brand-amber); color: #000;
}
.ai-sug-pick {
  font-size: 0.8rem; color: var(--brand-amber); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.ai-sug-reason { font-size: 0.85rem; color: var(--text-2); margin: 6px 0 0; }

/* ─── COMMAND PALETTE ──────────────────────────────────────── */
.cmdk {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 16px 16px;
}
.cmdk-panel {
  width: 100%; max-width: 560px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: fade-in 200ms var(--ease);
}
.cmdk-input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 18px 20px;
  font-size: 1rem;
  color: var(--text-1);
  outline: none;
  border-bottom: 1px solid var(--border);
}
.cmdk-list {
  max-height: 50vh; overflow-y: auto;
  list-style: none; margin: 0; padding: 8px;
}
.cmdk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.92rem;
}
.cmdk-item.selected { background: var(--surface-3); }
.cmdk-item .cmdk-icon { width: 18px; }
.cmdk-item .cmdk-shortcut {
  margin-left: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-3);
}

/* ─── TOASTS ───────────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 18px; right: 18px;
  display: flex; flex-direction: column; gap: 10px;
  z-index: 2000;
  max-width: 340px;
}
.toast {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-amber);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  animation: toast-in 240ms var(--ease);
}
.toast.success { border-left-color: var(--brand-green); }
.toast.error { border-left-color: var(--brand-red); }
.toast.info { border-left-color: var(--brand-blue); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── MODALS ───────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  z-index: 900;
  display: flex;
  /* Top-align + scroll the overlay so a tall form (signup + consents) is never
     clipped and is always reachable on small screens. */
  align-items: flex-start; justify-content: center;
  padding: 20px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal.hidden { display: none; }
.modal-content {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  margin: auto;            /* centers vertically when it fits; scrolls when taller */
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: fade-in 240ms var(--ease);
}
@media (max-width: 600px) {
  .modal { padding: 12px; }
  .modal-content { padding: 20px 18px; }
}
.close-modal {
  position: absolute;
  top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  border: 0;
  color: var(--text-1);
  font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.close-modal:hover { background: var(--surface-hi); }
.modal-tabs {
  display: flex; gap: 4px; margin-bottom: 18px;
  background: var(--surface-2); border-radius: 10px; padding: 4px;
}
.modal-tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 600; font-size: 0.85rem;
}
.modal-tab.active { background: var(--surface-hi); color: var(--text-1); }
.modal-tab-panel { display: flex; flex-direction: column; gap: 12px; }
.modal label { display: flex; flex-direction: column; gap: 6px; }
.toggle-row {
  flex-direction: row !important;
  align-items: center; justify-content: space-between;
  padding: 12px 14px; background: var(--surface-2); border-radius: 10px;
}

/* ─── EKSTRALIGA / PROFILE / GOALS ─────────────────────────── */
.ekstraliga-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
/* History tab hides the schedule column — collapse to one column so the
   "Statystyki liderów" widget spans the full width instead of staying boxed. */
.ekstraliga-grid.history-mode { grid-template-columns: 1fr; }
.league-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.league-list li {
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  border-left: 3px solid var(--brand-amber);
}
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.goals-list, .stories-list { padding-left: 18px; color: var(--text-2); }
.goals-list li, .stories-list li { margin-bottom: 8px; }
.user-summary p, .saved-activity p { color: var(--text-2); margin: 4px 0; }

/* ─── ADMIN ────────────────────────────────────────────────── */
.admin-user {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}

/* ─── INSTALL PROMPT ───────────────────────────────────────── */
.install-banner {
  position: fixed;
  bottom: 18px; left: 18px;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  color: #000;
  padding: 12px 16px;
  border-radius: 12px;
  display: none;
  align-items: center; gap: 12px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 800;
  max-width: 320px;
}
.install-banner.show { display: flex; }
.install-banner button {
  background: #000; color: var(--brand-amber);
  border: 0; padding: 6px 12px; border-radius: 8px; font-weight: 700;
}
.install-banner .dismiss { background: transparent; color: #000; padding: 4px 8px; }

/* ─── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  margin-left: var(--sidebar-w);
  padding: 28px;
  color: var(--text-3);
  text-align: center;
  font-size: 0.85rem;
}

/* ─── MOBILE BOTTOM NAV ────────────────────────────────────── */
.bottom-nav { display: none; }
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 90;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bento-hero { grid-column: span 12; }
  .bento-match { grid-column: span 6; }
  .bento-live-card { grid-column: span 3; }
  .bento-gp { grid-column: span 3; }
  .bento-standings, .bento-news-card, .bento-ai, .bento-stadium { grid-column: span 6; }
  .ai-grid { grid-template-columns: 1fr; }
  .ekstraliga-grid, .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  :root { --sidebar-w: 0px; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 240ms var(--ease);
    width: 280px;
  }
  .sidebar.open { transform: translateX(0); }
  .topbar { margin-left: 0; padding: 0 16px; }
  .topbar-hamburger { display: inline-flex; }
  .topbar-brand { display: inline-flex; }
  .topbar-search { display: none; }
  .topbar-profile { display: inline-flex; }
  .main { margin-left: 0; padding: 18px 16px 100px; }
  .site-footer { margin-left: 0; }

  /* One full-width column on phones. !important defeats the desktop 12-col
     template + every per-card span, so cards never squish into a 60px strip
     (the real cause of the "rozjechany dashboard" on mobile). */
  .bento-grid { grid-template-columns: 1fr !important; gap: 12px; }
  .bento-grid > * { grid-column: 1 / -1 !important; }
  .bento-hero { flex-direction: column; align-items: flex-start; padding: 18px; gap: 10px; }
  .bento-hero-art { width: 88px; height: 88px; }        /* was 130 — half the screen */
  .hero-heading { font-size: 1.5rem; line-height: 1.15; }
  .hero-heading br { display: none; }
  /* Hide desktop-only affordances that are meaningless / clutter on a phone */
  .dbe-open-btn { display: none !important; }            /* drag-drop dashboard editor */
  /* Comfortable tap targets for the hero CTAs */
  .bento-hero .btn-accent, .bento-hero .btn-ghost,
  .bento-hero a[class*="btn"] { min-height: 44px; display: inline-flex; align-items: center; }

  .prediction-panel form { grid-template-columns: 1fr; }
  .stadium-wrap { aspect-ratio: 4/3; }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--border);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    z-index: 80;
  }
  .bnav-item {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; gap: 4px;
    padding: 6px 4px;
    color: var(--text-3);
    font-size: 0.7rem; font-weight: 600;
    border-radius: 8px;
  }
  .bnav-item.active { color: var(--brand-amber); }
  .bnav-icon { font-size: 1.1rem; line-height: 1; }
}

@media (max-width: 480px) {
  .view-title { font-size: 1.4rem; }
  .bento-card { padding: 16px; border-radius: 16px; }
  .bento-hero { padding: 20px; }
  .hero-heading { font-size: 1.5rem; }
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2));
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--surface-3);
  border-top-color: var(--brand-amber);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────────────────
   ARTICLES — Przegląd Sportowy-style news section
   ───────────────────────────────────────────────────────────── */
.articles-toolbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
  position: sticky; top: var(--topbar-h);
  z-index: 30;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.cat-chip {
  background: var(--surface-1);
  color: var(--text-2);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--dur) var(--ease);
}
.cat-chip:hover { background: var(--surface-2); color: var(--text-1); }
.cat-chip.active {
  background: var(--brand-amber);
  color: #000;
  border-color: var(--brand-amber);
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}
.articles-toolbar-right { display: flex; gap: 8px; align-items: center; }
.articles-toolbar-right input,
.articles-toolbar-right select {
  background: var(--surface-1);
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--text-1);
  outline: none;
}
.articles-toolbar-right input { width: 220px; }
.articles-toolbar-right input:focus,
.articles-toolbar-right select:focus { border-color: var(--brand-amber); }
@media (max-width: 700px) {
  /* Filter/search bar (news + riders) was a fixed-width flex row that ran off
     the right edge on phones. Make it full-width and wrap. */
  .articles-toolbar-right { width: 100%; flex-wrap: wrap; }
  .articles-toolbar-right input { width: 100% !important; }
  .articles-toolbar-right select { flex: 1 1 0; min-width: 0; }
}

.articles-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  align-items: start;
}

/* Hero card — premium magazine style */
.article-hero {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur), border-color var(--dur), box-shadow var(--dur);
  margin-bottom: 28px;
  contain: layout style;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.article-hero .article-hero-img {
  position: absolute;
  inset: 0;
  min-height: 0;
  z-index: 0;
}
.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10, 10, 14, 0.9) 100%);
  pointer-events: none;
  z-index: 1;
}
.article-hero .article-hero-body {
  position: relative;
  z-index: 2;
  padding: 36px;
  max-width: 720px;
}
.article-hero .article-hero-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
  color: white;
}
.article-hero .article-hero-sub { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; }
.article-hero .article-byline { color: rgba(255, 255, 255, 0.75); }
.article-hero:hover { border-color: var(--border-hi); box-shadow: var(--shadow); transform: translateY(-2px); }
.article-hero-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  background: #222;
}
.article-hero-body { padding: 28px; display: flex; flex-direction: column; }
.article-hero-title {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 10px 0;
}
.article-hero-sub { color: var(--text-2); font-size: 1rem; line-height: 1.5; margin: 0 0 16px; }
.article-byline {
  margin-top: auto;
  display: flex; gap: 16px;
  color: var(--text-3);
  font-size: 0.85rem;
}

.article-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.78rem;
}
.article-meta--big { font-size: 0.9rem; gap: 14px; }
.article-cat {
  background: var(--brand-amber);
  color: #000;
  padding: 3px 10px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.article-time, .article-views { color: var(--text-3); }

/* Card grid */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.article-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur), border-color var(--dur);
  display: flex; flex-direction: column;
  contain: layout style;
}
.article-card:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.article-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #1a1a22;
  transition: transform 400ms var(--ease);
}
.article-card:hover .article-card-img { transform: scale(1.04); }
.article-card-img--placeholder {
  background: linear-gradient(135deg, var(--brand-amber-d), #4a3000);
}
.article-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.article-card-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 4px 0;
}
.article-card-sum { color: var(--text-2); margin: 0; font-size: 0.88rem; line-height: 1.4; }

/* Aside */
.articles-aside {
  position: sticky;
  top: calc(var(--topbar-h) + 64px);
  display: flex; flex-direction: column; gap: 18px;
}
.aside-block {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.aside-block h3 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  color: var(--brand-amber);
}
.popular-list { list-style: none; padding: 0; margin: 0; counter-reset: pop; }
.popular-list li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.popular-list li:last-child { border: 0; padding-bottom: 0; }
.popular-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  align-items: start;
  cursor: pointer;
}
.popular-list a:hover .pop-title { color: var(--brand-amber); }
.pop-rank {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-amber);
  grid-row: span 2;
  line-height: 1;
}
.pop-title { font-weight: 600; font-size: 0.9rem; line-height: 1.3; transition: color var(--dur); }
.pop-views { font-size: 0.72rem; color: var(--text-3); }
.aside-cta {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(30, 136, 229, 0.05));
  border-color: rgba(255, 184, 0, 0.3);
}
.aside-cta p { color: var(--text-2); margin: 0 0 12px; font-size: 0.88rem; }

/* Article detail */
.article-loading {
  text-align: center; padding: 60px 20px; color: var(--text-2);
}
.article-full {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}
.article-back {
  margin: 18px 0 0 18px;
}
.article-full-img-wrap {
  margin: 18px 0 0;
  position: relative;
  overflow: hidden;
}
.article-full-img-wrap::after {
  /* subtle gradient overlay for premium feel */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,14,0.45) 100%);
  pointer-events: none;
}
.article-full-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  background: #1a1a22;
}
.article-card:hover .article-card-img { transform: scale(1.04); }
.article-readtime { color: var(--brand-amber); }
.article-full-body { padding: 32px; }
.article-full-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 12px 0 14px;
}
.article-full-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  margin: 0 0 20px;
  font-weight: 500;
}
.article-full-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-1);
  padding: 16px 18px;
  border-left: 4px solid var(--brand-amber);
  background: var(--surface-2);
  border-radius: 0 10px 10px 0;
  margin: 0 0 24px;
}
.article-full-byline {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 0 0 24px;
}
/* Reading progress bar — fixed across top, fills as user scrolls */
.reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-amber), var(--brand-red));
  width: 0%;
  z-index: 2000;
  transition: width 60ms linear;
  box-shadow: 0 0 8px rgba(255, 184, 0, 0.6);
}

.article-full-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-1);
}
/* Drop cap on first letter of first paragraph */
.article-full-content > p:first-of-type::first-letter {
  font-size: 4.2rem;
  font-weight: 800;
  float: left;
  line-height: 0.9;
  padding: 6px 12px 0 0;
  color: var(--brand-amber);
  font-family: 'Inter', sans-serif;
}
/* Pull quote — auto-applied to blockquotes via JS class */
.article-full-content blockquote.pull-quote {
  font-size: 1.4rem;
  font-style: italic;
  text-align: center;
  margin: 32px -20px;
  padding: 28px 40px;
  border-left: 0;
  border-top: 2px solid var(--brand-amber);
  border-bottom: 2px solid var(--brand-amber);
  background: linear-gradient(180deg, rgba(255, 184, 0, 0.05), transparent);
  color: var(--text-1);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  position: relative;
}
.article-full-content blockquote.pull-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-amber);
  color: #0A0A0E;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  font-family: serif;
}

/* Info boxes — auto-applied via marker [!info] / [!tip] / [!warning] */
.article-info-box {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 4px solid;
}
.article-info-box .ib-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; }
.article-info-box .ib-body { color: var(--text-1); flex: 1; }
.article-info-box .ib-body p { margin: 0; }
.article-info-box.info { background: rgba(30, 136, 229, 0.1); border-color: var(--brand-blue); }
.article-info-box.tip { background: rgba(34, 197, 94, 0.1); border-color: var(--brand-green); }
.article-info-box.warning { background: rgba(230, 57, 70, 0.1); border-color: var(--brand-red); }
.article-full-content h1,
.article-full-content h2,
.article-full-content h3 {
  margin: 28px 0 12px;
  font-weight: 800;
  letter-spacing: -0.015em;
}
.article-full-content h1 { font-size: 1.7rem; }
.article-full-content h2 { font-size: 1.35rem; color: var(--brand-amber); }
.article-full-content h3 { font-size: 1.1rem; }
.article-full-content p { margin: 0 0 16px; color: var(--text-1); }
.article-full-content ul { padding-left: 22px; }
.article-full-content li { margin-bottom: 6px; color: var(--text-2); }
.article-full-content blockquote {
  border-left: 4px solid var(--brand-amber);
  padding: 4px 18px;
  margin: 18px 0;
  color: var(--text-2);
  font-style: italic;
  font-size: 1.1rem;
}
.article-full-content a {
  color: var(--brand-amber);
  border-bottom: 1px dashed var(--brand-amber);
}
.article-full-content img {
  border-radius: 10px;
  margin: 16px 0;
  max-width: 100%;
}
.article-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 28px 0;
}
.article-tag {
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}
.article-related {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.article-related h3 {
  font-size: 1.05rem;
  margin: 0 0 16px;
}

/* ─── ADMIN EDITOR ──────────────────────────────────────────── */
.admin-articles-section {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.admin-articles-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px;
}
.admin-article-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 8px;
}
.admin-article-main { flex: 1; min-width: 0; }
.admin-article-main strong { font-size: 0.95rem; margin-right: 8px; }
.admin-article-meta { font-size: 0.78rem; color: var(--text-3); margin-top: 4px; }
.admin-article-actions { display: flex; gap: 6px; }

#articleEditor:empty { display: none; }
.editor-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid var(--border);
}
.editor-toolbar h3 { margin: 0; }
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.editor-left, .editor-right {
  padding: 18px;
  max-height: 80vh;
  overflow-y: auto;
}
.editor-left { border-right: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; }
.editor-left label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--text-2); }
.editor-left input, .editor-left textarea, .editor-left select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-1);
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.editor-left input:focus, .editor-left textarea:focus, .editor-left select:focus { border-color: var(--brand-amber); }
.editor-left textarea { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.88rem; line-height: 1.55; }
.editor-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.editor-right h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
}
.editor-preview {
  background: var(--surface-2);
  border-radius: 10px;
  overflow: hidden;
}
.editor-preview .article-full-img { height: 200px; margin: 0; }
.editor-preview .article-full-body { padding: 18px; }
.editor-preview .article-full-title { font-size: 1.4rem; margin: 8px 0; }

/* ─── RESPONSIVE for articles ────────────────────────────────── */
@media (max-width: 1100px) {
  .articles-layout { grid-template-columns: 1fr; }
  .articles-aside { position: relative; top: auto; }
  .article-hero { grid-template-columns: 1fr; }
  .article-hero-img { min-height: 220px; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-left { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ─── SMOOTHNESS / CONTAINMENT ──────────────────────────────── */
.bento-card, .news-card, .card { contain: layout style; }
img { content-visibility: auto; contain-intrinsic-size: 1px 200px; }
.view { contain: layout style; }

/* View transitions API */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 220ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .pulse-ring, .live-pip { animation: none !important; }
}

/* ─── FACEBOOK BUTTON + IMPORT PANEL ──────────────────────── */
.btn-fb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #1877F2;
  color: white;
  border: 0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--dur), transform var(--dur);
}
.btn-fb:hover { background: #1565D8; transform: translateY(-1px); }
.btn-fb svg { flex-shrink: 0; }

.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--dur), transform var(--dur), box-shadow var(--dur);
  margin-bottom: 8px;
  cursor: pointer;
}
.btn-google:hover { background: #f8f9fa; transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.btn-google svg { flex-shrink: 0; }

.auth-divider {
  position: relative;
  text-align: center;
  margin: 12px 0 8px;
  color: var(--text-3);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.auth-divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.auth-divider span {
  position: relative;
  background: var(--surface-1);
  padding: 0 12px;
  z-index: 1;
}

.fb-import-card {
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(24, 119, 242, 0.02));
  border: 1px solid rgba(24, 119, 242, 0.3);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 24px;
}
.fb-import-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.fb-import-header h3 { margin: 0; font-size: 1.1rem; }
.fb-import-help {
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 14px;
}
.fb-import-help code {
  background: var(--surface-2);
  padding: 2px 6px; border-radius: 4px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--brand-amber);
}
.fb-import-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 16px;
}
.fb-import-row input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-1);
  outline: none;
}
.fb-import-row input:focus { border-color: #1877F2; }
.fb-import-thumb {
  height: 180px;
  background: #222 center/cover no-repeat;
  border-radius: 10px;
  margin-bottom: 14px;
}
.fb-import-form {
  display: flex; flex-direction: column; gap: 12px;
}
.fb-import-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; color: var(--text-2); font-weight: 600;
}
.fb-import-form input, .fb-import-form textarea, .fb-import-form select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text-1);
  outline: none;
  font-family: inherit;
}
.fb-import-form input:focus, .fb-import-form textarea:focus, .fb-import-form select:focus {
  border-color: #1877F2;
}
.fb-import-form textarea { resize: vertical; }
.fb-import-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; gap: 10px; flex-wrap: wrap;
}
.fb-source { color: var(--text-3); font-size: 0.85rem; }
.fb-source code {
  background: var(--surface-2);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.78rem;
  max-width: 360px;
  overflow: hidden; text-overflow: ellipsis;
  display: inline-block; vertical-align: middle;
}

/* User chip in topbar/profile to show display_name + avatar */
.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 12px 3px 3px;
  font-size: 0.85rem;
}
.user-chip img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ─── PREMIUM POLISH: stagger entry, count-up, floating widget ─── */
.stagger-in {
  opacity: 0;
  transform: translateY(12px);
  animation: stagger-rise 600ms var(--ease) forwards;
  animation-delay: calc(var(--stagger, 0) * 50ms);
}
@keyframes stagger-rise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .stagger-in { animation: none; opacity: 1; transform: none; }
}

/* Animated number counter — used by count-up.js */
.count-up { font-variant-numeric: tabular-nums; transition: color 200ms; }
.count-up.bumping { color: var(--brand-amber); }

/* Floating live mini-widget — appears when there's at least one live match */
.floating-live {
  position: fixed;
  bottom: 90px; right: 18px;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(20, 20, 28, 0.95), rgba(10, 10, 14, 0.95));
  border: 1px solid rgba(230, 57, 70, 0.4);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(230, 57, 70, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
  z-index: 70;
  max-width: 320px;
  cursor: pointer;
  animation: float-in 320ms var(--ease);
  transition: transform var(--dur), box-shadow var(--dur);
}
.floating-live:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(230, 57, 70, 0.25), 0 0 0 1px rgba(255, 184, 0, 0.3);
}
.floating-live.show { display: flex; }
.fl-pulse {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 12px var(--brand-red);
  animation: pulse 1.4s ease-out infinite;
  flex-shrink: 0;
}
.fl-content { flex: 1; min-width: 0; }
.fl-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-red);
  margin-bottom: 2px;
}
.fl-match {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fl-score {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.fl-close {
  background: transparent; border: 0;
  color: var(--text-3);
  font-size: 1.1rem;
  padding: 0 4px;
}
.fl-close:hover { color: var(--text-1); }
@keyframes float-in {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 820px) {
  .floating-live { bottom: 100px; right: 12px; left: 12px; max-width: none; }
}

/* ─── PREMIUM PROFILE HERO ──────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.12), rgba(230, 57, 70, 0.06)),
              linear-gradient(135deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 184, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.profile-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 200px at 100% 0%, rgba(255, 184, 0, 0.15), transparent 70%);
  pointer-events: none;
}
.profile-hero > * { position: relative; }
.profile-hero-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  color: #0A0A0E;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; font-weight: 900;
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.35), 0 0 0 4px rgba(255, 184, 0, 0.15);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.profile-hero-avatar img {
  width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.profile-hero-info { min-width: 0; }
.profile-hero-greeting {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 4px;
}
.profile-hero-name {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff, var(--brand-amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.profile-hero-team {
  font-size: 0.95rem;
  color: var(--text-2);
  font-weight: 500;
}
.profile-hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  min-width: 360px;
}
.ps-stat {
  text-align: center;
  padding: 12px 8px;
  background: rgba(10, 10, 14, 0.4);
  border-radius: 12px;
  border: 1px solid var(--border);
  min-width: 80px;
}
.ps-stat-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ps-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-top: 6px;
  font-weight: 700;
}

/* Achievements grid */
.profile-achievements { padding-top: 8px; }
.ph-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 14px;
  color: var(--text-1);
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.achievement-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  transition: transform var(--dur), border-color var(--dur), background var(--dur);
  cursor: default;
}
.achievement-card.unlocked {
  background: linear-gradient(135deg, rgba(255, 184, 0, 0.1), var(--surface-1));
  border-color: var(--brand-amber);
}
/* Locked: convey "locked" via grayscale + a dimmed icon, but keep the TEXT at
   full opacity so the name/description stay readable (WCAG AA contrast). */
.achievement-card.locked { filter: grayscale(0.85); }
.achievement-card.locked .ach-icon { opacity: 0.4; }
.achievement-card.locked .ach-name { color: var(--text-2); }
.achievement-card:hover { transform: translateY(-2px); }
.ach-icon {
  font-size: 1.8rem;
  margin-bottom: 6px;
  line-height: 1;
}
.ach-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
}
.ach-desc {
  font-size: 0.7rem;
  color: var(--text-3);
  line-height: 1.3;
}
.ach-progress {
  margin-top: 8px;
  height: 4px;
  background: var(--surface-3);
  border-radius: 2px;
  overflow: hidden;
}
.ach-progress-bar {
  height: 100%;
  background: var(--brand-amber);
  border-radius: 2px;
  transition: width 600ms var(--ease);
}

@media (max-width: 820px) {
  .profile-hero { grid-template-columns: 1fr; gap: 20px; text-align: center; padding: 24px; }
  .profile-hero-avatar { margin: 0 auto; width: 90px; height: 90px; font-size: 2.4rem; }
  .profile-hero-stats { min-width: 0; grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ps-stat { padding: 10px 4px; }
  .ps-stat-val { font-size: 1.3rem; }
  .ps-stat-label { font-size: 0.62rem; }
}

/* ─── ADMIN PREMIUM DASHBOARD ───────────────────────────────── */
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.admin-tile {
  background: linear-gradient(135deg, var(--surface-1), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur), border-color var(--dur);
}
.admin-tile:hover { transform: translateY(-2px); border-color: var(--border-hi); }
.admin-tile-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.admin-tile-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-1);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.admin-tile-label {
  color: var(--text-2);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  margin-top: 6px;
}
.admin-tile-foot {
  color: var(--text-3);
  font-size: 0.75rem;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin: 24px 0 18px;
  padding: 4px;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow-x: auto;
}
.admin-tab {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.88rem;
  white-space: nowrap;
  transition: all var(--dur);
}
.admin-tab:hover { background: var(--surface-2); color: var(--text-1); }
.admin-tab.active {
  background: var(--brand-amber);
  color: #0A0A0E;
  box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
}
.admin-tab-panel { animation: fade-in 200ms var(--ease); }

/* ─── RIDERS view ───────────────────────────────────────────── */
.riders-toolbar {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 22px; flex-wrap: wrap;
  position: sticky; top: var(--topbar-h);
  z-index: 20; padding: 12px 0;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
}
.riders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.rider-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--dur), border-color var(--dur);
  contain: layout style;
}
.rider-card:hover { transform: translateY(-3px); border-color: var(--border-hi); }
.rider-photo {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1a1a22, #0a0a0e);
  overflow: hidden;
}
.rider-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rider-flag {
  position: absolute; top: 8px; right: 8px;
  background: rgba(0, 0, 0, 0.65);
  padding: 3px 8px; border-radius: 6px;
  font-size: 1rem;
  backdrop-filter: blur(6px);
}
.rider-badge {
  position: absolute; bottom: 8px; left: 8px;
  font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 4px;
}
.rider-badge.guest { background: var(--brand-amber); color: #0A0A0E; }
.rider-body { padding: 12px 14px; }
.rider-name {
  font-weight: 700;
  font-size: 0.98rem;
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}
.rider-team { color: var(--brand-amber); font-size: 0.78rem; font-weight: 600; margin-bottom: 6px; }
.rider-meta {
  display: flex; gap: 6px;
  font-size: 0.75rem;
  color: var(--text-3);
  flex-wrap: wrap;
  align-items: center;
}
.rider-avg {
  background: rgba(255, 184, 0, 0.16);
  color: var(--brand-amber);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  margin-left: auto;
}
.rider-season-stats { margin-top: 10px; }

.rider-detail-hero {
  display: flex; gap: 16px; align-items: center;
  margin-bottom: 18px;
}
.rider-detail-hero img {
  width: 100px; height: 100px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--surface-2);
}
.rider-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: var(--surface-2);
  padding: 14px;
  border-radius: 12px;
}
.rds-cell { text-align: center; }
.rds-val {
  font-size: 1.1rem; font-weight: 700; color: var(--brand-amber);
  line-height: 1; margin-bottom: 4px;
}
.rds-label {
  font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-3);
}

/* ─── MATCH DETAIL — heat-by-heat ────────────────────────────── */
.match-detail-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(230, 57, 70, 0.12), rgba(255, 184, 0, 0.06));
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin-bottom: 24px;
  text-align: center;
}
.md-team h2 { margin: 0 0 8px; font-size: 1.3rem; letter-spacing: -0.02em; }
.md-home h2 { color: var(--brand-amber); }
.md-away h2 { color: var(--brand-blue); }
.md-score {
  font-size: 3.5rem; font-weight: 900;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff, var(--brand-amber));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
}
.md-center { text-align: center; }
.md-badge {
  background: var(--brand-red);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  display: inline-block;
}
.md-round { font-size: 1.1rem; font-weight: 700; margin-top: 6px; }
.md-status { color: var(--text-2); font-size: 0.85rem; margin-top: 2px; }
.md-date { color: var(--text-3); font-size: 0.78rem; margin-top: 4px; }

.heat-timeline {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.heat-timeline-header,
.heat-row {
  display: grid;
  grid-template-columns: 50px 1fr 100px;
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.heat-timeline-header {
  background: var(--surface-2);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 700;
  padding: 10px 0;
  display: none;   /* header hidden on mobile-first; only here for desktop reference */
}
.heat-row:last-child { border-bottom: 0; }
.heat-row:hover { background: var(--surface-2); }
.heat-num {
  background: var(--surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 900;
  color: var(--brand-amber);
}
.heat-riders {
  padding: 8px 0;
  display: flex; flex-direction: column;
}
.heat-rider {
  display: grid;
  grid-template-columns: 40px 1fr 50px 80px 90px;
  gap: 10px;
  padding: 6px 14px;
  align-items: center;
  font-size: 0.88rem;
  border-bottom: 1px dashed var(--border);
}
.heat-rider:last-child { border-bottom: 0; }
.hr-place { font-size: 1.1rem; text-align: center; }
.hr-name { font-weight: 600; }
.hr-score {
  background: var(--brand-amber);
  color: #0A0A0E;
  font-weight: 800;
  text-align: center;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.hr-time, .hr-speed {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  text-align: right;
}
.heat-tally {
  background: var(--surface-2);
  padding: 14px 16px;
  text-align: center;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
}
.ht-h { color: var(--brand-amber); font-weight: 800; font-size: 1.2rem; }
.ht-a { color: var(--brand-blue); font-weight: 800; font-size: 1.2rem; }
.ht-sep { color: var(--text-3); margin: 0 4px; }
.ht-cum {
  color: var(--text-3);
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
  font-weight: 600;
}

@media (max-width: 700px) {
  .match-detail-hero { grid-template-columns: 1fr; padding: 20px; }
  .md-score { font-size: 2.4rem; }
  .heat-rider { grid-template-columns: 30px 1fr 40px; font-size: 0.78rem; }
  .heat-rider .hr-time, .heat-rider .hr-speed { display: none; }
}

/* ─── MATCH ANALYTICS ─────────────────────────────────────────── */
.match-analytics {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}
.ma-title { margin: 0 0 18px; font-size: 1.1rem; font-weight: 700; }
.ma-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.ma-fact {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 10px;
  padding: 14px;
}
.ma-fact-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.ma-fact-value { font-size: 1.5rem; font-weight: 800; color: var(--brand-amber); margin: 4px 0; font-variant-numeric: tabular-nums; }
.ma-fact-sub { font-size: 0.78rem; color: var(--text-2); }

.ma-chart-card {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.ma-chart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ma-chart-header h4 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.ma-legend { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-2); }
.ma-legend span { display: flex; align-items: center; gap: 5px; }
.ma-legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 999px; }
.ma-legend .dot.home { background: #ffb800; }
.ma-legend .dot.away { background: #3b8eff; }
.ma-chart-wrap { position: relative; height: 200px; }

.ma-topscorers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ma-team-block {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 10px;
  padding: 14px;
}
.ma-team-block h4 { margin: 0 0 10px; font-size: 0.92rem; font-weight: 700; }
.ma-team-block.ma-home h4 { color: #ffb800; }
.ma-team-block.ma-away h4 { color: #3b8eff; }
.ma-rider-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.ma-rider-list li {
  display: grid;
  grid-template-columns: 24px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--surface-1);
  font-size: 0.85rem;
}
.ma-rank { color: var(--text-3); font-weight: 700; }
.ma-rname { color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-rstarts { color: var(--text-3); font-size: 0.72rem; }
.ma-rpts { color: var(--brand-amber); font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 700px) {
  .ma-topscorers { grid-template-columns: 1fr; }
  .ma-chart-wrap { height: 160px; }
}

/* ─── COMMENTS ───────────────────────────────────────────────── */
.comments-section {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
}
.comments-title {
  margin: 0 0 18px;
  font-size: 1.1rem;
}
.cmt-count {
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  color: var(--text-2);
  margin-left: 6px;
}
.cmt-compose {
  display: flex; gap: 10px;
  margin-bottom: 18px;
}
.cmt-compose textarea {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text-1);
  font: inherit;
  resize: vertical;
  min-height: 60px;
  outline: none;
}
.cmt-compose textarea:focus { border-color: var(--brand-amber); }

.cmt-list { display: flex; flex-direction: column; gap: 8px; }
.cmt {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-left: calc(var(--depth, 0) * 28px);
  border-left: 3px solid transparent;
  transition: background var(--dur);
}
.cmt:hover { background: var(--surface-3); }
.cmt-hidden { opacity: 0.4; border-left-color: var(--brand-red); }
.cmt-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  color: #0A0A0E;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem;
}
.cmt-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cmt-head {
  display: flex; gap: 10px; align-items: center;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.cmt-head strong { font-size: 0.92rem; }
.cmt-time { color: var(--text-3); font-size: 0.78rem; }
.cmt-pill {
  background: var(--brand-red);
  color: white;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
}
.cmt-text {
  color: var(--text-1);
  line-height: 1.55;
  font-size: 0.92rem;
  margin-bottom: 8px;
  word-wrap: break-word;
}
.cmt-actions {
  display: flex; gap: 6px; flex-wrap: wrap;
  align-items: center;
  font-size: 0.78rem;
}
.cmt-reactions { display: flex; gap: 4px; flex-wrap: wrap; }
.cmt-rx, .cmt-reply, .cmt-del, .cmt-hide {
  background: var(--surface-1);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all var(--dur);
  font-family: inherit;
}
.cmt-rx:hover, .cmt-reply:hover { background: var(--surface-3); color: var(--text-1); }
.cmt-rx.active {
  background: rgba(255, 184, 0, 0.18);
  border-color: var(--brand-amber);
  color: var(--brand-amber);
}
.cmt-rx-count { font-weight: 700; margin-left: 2px; }
.cmt-del:hover { background: rgba(230, 57, 70, 0.15); color: #FF8B95; border-color: var(--brand-red); }
.cmt-reply-box {
  margin-top: 8px;
}
.cmt-reply-box textarea {
  width: 100%;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text-1);
  font: inherit;
  resize: vertical;
  outline: none;
}
.cmt-children { margin-top: 6px; }

/* ─── PERSONALIZATION — favorite team color accent + a11y ───── */
/* Per-team accent shows on profile hero, achievements, sidebar active marker */
body[data-favorite-team] .profile-hero {
  border-color: var(--brand-team, var(--border-hi));
}
body[data-favorite-team] .profile-hero-avatar {
  background: linear-gradient(135deg, var(--brand-team, var(--brand-amber)), var(--brand-amber-d));
}
body[data-favorite-team] .nav-item.active::before {
  background: var(--brand-team, var(--brand-amber));
  box-shadow: 0 0 12px var(--brand-team, var(--brand-amber));
}

/* High contrast mode (a11y) */
body.a11y-high-contrast {
  --text-1: #FFFFFF;
  --text-2: #FFFFFF;
  --text-3: #DDDDDD;
  --border: rgba(255, 255, 255, 0.4);
  --surface-1: #000000;
  --surface-2: #1a1a1a;
  --surface-3: #2a2a2a;
}
body.a11y-high-contrast .card,
body.a11y-high-contrast .bento-card { border-width: 2px; }

/* ─── TEAM LOGOS / RIDER PHOTOS ──────────────────────────────── */
.team-logo-inline {
  width: 24px; height: 24px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}
.team-logo-mini {
  width: 20px; height: 20px;
  display: inline-block;
  vertical-align: middle;
  margin: 0 6px;
  object-fit: contain;
}
.team-cell {
  display: flex; align-items: center; gap: 8px;
}

/* Rider card: show real photo from PGE instead of initials fallback */
.rider-photo img { background: #1a1a22; }
.rider-photo img[src*="users/"] {
  /* successful PGE photo loads cleanly */
  filter: contrast(1.05);
}

/* Update prompt banner */
.update-banner {
  position: fixed;
  top: 18px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-blue), #00B0FF);
  color: white;
  padding: 12px 18px;
  border-radius: 12px;
  display: flex; gap: 12px; align-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 1500;
  font-weight: 600;
  animation: slide-down 240ms var(--ease);
}
.update-banner button {
  background: white; color: var(--brand-blue);
  border: 0; padding: 6px 14px; border-radius: 8px; font-weight: 700;
}
.update-banner .dismiss {
  background: transparent; color: white; padding: 4px 8px;
}
@keyframes slide-down {
  from { opacity: 0; transform: translate(-50%, -20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ─── HEAD-TO-HEAD ───────────────────────────────────────── */
.h2h-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 12px;
}
.h2h-team {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.h2h-team-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.h2h-team-stat { font-size: 0.82rem; color: var(--text-2); margin: 4px 0; }
.h2h-team-stat strong { color: var(--brand-amber); }
.h2h-prob {
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
  position: relative;
}
.h2h-prob::after {
  content: '';
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--brand-amber) 0%, var(--brand-amber) var(--prob, 50%), var(--surface-3) var(--prob, 50%));
  border-radius: 3px;
  margin-top: 6px;
}
.h2h-vs {
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: var(--brand-red); font-size: 1.4rem;
}
.h2h-insight {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 3px solid var(--brand-amber);
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-1);
}

/* ─── SIMULATOR ──────────────────────────────────────────── */
.sim-result {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 18px;
  text-align: center;
  margin-top: 10px;
}
.sim-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.sim-team-name { font-weight: 700; font-size: 1rem; }
.sim-score {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.sim-winner {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.sim-winner strong { color: var(--brand-amber); }
.sim-reason {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
}

/* ─── CHAT ───────────────────────────────────────────────── */
.chat-log {
  background: var(--surface-2);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 200px;
}
.chat-msg { display: flex; }
.chat-msg--user { justify-content: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.chat-msg--assistant .chat-bubble {
  background: var(--surface-3);
  color: var(--text-1);
  border-bottom-left-radius: 4px;
}
.chat-msg--user .chat-bubble {
  background: linear-gradient(135deg, var(--brand-amber), var(--brand-amber-d));
  color: #1A1300;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.chat-input-row input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--text-1);
  outline: none;
}
.chat-input-row input:focus { border-color: var(--brand-amber); }

/* ─── PREDICTIONS PREMIUM ────────────────────────────────── */
.prediction-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 18px;
}
@media (max-width: 1100px) {
  .prediction-layout { grid-template-columns: 1fr; }
}
.prediction-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: 10px;
  margin-bottom: 8px;
  list-style: none;
}
.pred-main {
  display: flex; align-items: center; gap: 10px;
  flex: 1; min-width: 0; flex-wrap: wrap;
}
.pred-match { font-weight: 600; font-size: 0.92rem; }
.pred-conf {
  font-size: 0.78rem;
  background: var(--surface-3);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--brand-amber);
  font-weight: 700;
}
.pred-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Leaderboard */
.leaderboard-list { list-style: none; padding: 0; margin: 0; }
.leaderboard-row {
  display: grid;
  grid-template-columns: 28px 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row.top-1 { background: linear-gradient(90deg, rgba(255,184,0,0.12), transparent); }
.leaderboard-row.top-2 { background: linear-gradient(90deg, rgba(200,200,200,0.08), transparent); }
.leaderboard-row.top-3 { background: linear-gradient(90deg, rgba(205,127,50,0.08), transparent); }
.lb-rank {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-amber);
  text-align: center;
}
.lb-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.lb-avatar--initial {
  background: var(--brand-amber);
  color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.lb-name { font-weight: 600; }
.lb-stats { font-size: 0.78rem; color: var(--text-3); }
.lb-points {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
}
.lb-points small { font-size: 0.7rem; color: var(--text-3); font-weight: 600; }

/* ─── SETTINGS PANEL ─────────────────────────────────────── */
.settings-section { margin-top: 32px; }
.settings-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 18px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}
.settings-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.settings-card.admin-only {
  background: linear-gradient(135deg, rgba(255,184,0,0.06), var(--surface-1));
  border-color: rgba(255,184,0,0.3);
}
.settings-card h4 {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: var(--brand-amber);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.settings-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.settings-row.toggle {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: 8px;
  color: var(--text-1);
  font-weight: 500;
}
.settings-row input[type='text'], .settings-row input[type='number'],
.settings-row select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text-1);
  outline: none;
  font-size: 0.9rem;
}
.settings-row select:focus, .settings-row input:focus { border-color: var(--brand-amber); }
.settings-row input[type='checkbox'] {
  width: 40px; height: 22px;
  appearance: none;
  background: var(--surface-3);
  border-radius: 999px;
  position: relative;
  cursor: pointer;
  transition: background var(--dur);
}
.settings-row input[type='checkbox']::before {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--text-2);
  border-radius: 50%;
  transition: transform var(--dur), background var(--dur);
}
.settings-row input[type='checkbox']:checked {
  background: var(--brand-amber);
}
.settings-row input[type='checkbox']:checked::before {
  transform: translateX(18px);
  background: #000;
}
.settings-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Forced reduced motion via settings */
html.force-reduced-motion *,
html.force-reduced-motion *::before,
html.force-reduced-motion *::after {
  animation-duration: 0.01ms !important;
  transition-duration: 0.01ms !important;
}

/* ─── IMAGE PICKER ───────────────────────────────────────── */
.image-picker-modal .modal-content { max-width: 840px; }
.ip-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 4px;
}
.ip-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--dur), transform var(--dur);
  aspect-ratio: 4/3;
  background: var(--surface-3);
}
.ip-thumb:hover {
  border-color: var(--brand-amber);
  transform: translateY(-2px);
}
.ip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-thumb-tags {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px;
  background: linear-gradient(0deg, rgba(0,0,0,0.8), transparent);
  color: white;
  font-size: 0.7rem;
}

.admin-article-thumb {
  width: 60px; height: 45px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--surface-3);
}

/* ─── STADIUM STATS DASHBOARD ────────────────────────────── */
.stadium-container { contain: layout; }
.stadium-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.stadium-stats-grid h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--brand-amber);
}
.positions-table { display: flex; flex-direction: column; gap: 6px; }
.pos-row {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 0.85rem;
}
.pos-rank {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #000; font-weight: 800; font-size: 0.75rem;
}
.pos-name { font-weight: 600; }
.pos-meta { color: var(--text-3); font-size: 0.78rem; }
.pos-speed { color: var(--brand-amber); font-weight: 700; font-variant-numeric: tabular-nums; }
.heat-history { padding: 6px 0; }
.avg-stats { display: flex; flex-direction: column; gap: 6px; }
.avg-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 10px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 0.85rem;
}
.avg-row span { color: var(--text-2); }
.avg-row strong { color: var(--text-1); }

/* Fullscreen 3D wrap fills viewport, canvas grows, overlay HUD scales up */
.stadium-wrap:fullscreen,
.stadium-wrap:-webkit-full-screen {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0;
  background: #000;
}
.stadium-wrap:fullscreen .stadium-canvas,
.stadium-wrap:-webkit-full-screen .stadium-canvas {
  width: 100vw !important;
  height: 100vh !important;
  display: block;
}
.stadium-wrap:fullscreen .stadium-overlay,
.stadium-wrap:-webkit-full-screen .stadium-overlay {
  padding: 28px;
}
.stadium-wrap:fullscreen .stadium-meeting,
.stadium-wrap:fullscreen .stadium-heat {
  font-size: 1.05rem;
}
.stadium-wrap:fullscreen .stadium-rider {
  font-size: 1rem;
}
.stadium-wrap:fullscreen .stadium-rider .rider-name { font-size: 1.1rem; }
.stadium-wrap:fullscreen .stadium-rider .rider-stat { font-size: 0.92rem; }

/* Disable floating live widget via settings */
.floating-live.disabled-by-settings { display: none !important; }

/* ─── Cookie consent banner ────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px;
  max-width: 760px; margin: 0 auto;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: 14px;
  padding: 22px 24px;
  z-index: 99999;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.cb-show { opacity: 1; transform: translateY(0); }
.cb-inner { display: flex; flex-direction: column; gap: 14px; }
.cb-head { display: flex; align-items: center; gap: 10px; }
.cb-icon { font-size: 1.6rem; }
.cb-head h3 { margin: 0; font-size: 1.1rem; color: var(--text-1); }
.cb-body { color: var(--text-2); font-size: 0.88rem; line-height: 1.5; margin: 0; }
.cb-body a { color: var(--brand-amber); text-decoration: underline; }

.cb-categories { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px solid var(--surface-3); border-bottom: 1px solid var(--surface-3); }
.cb-cat {
  display: grid; grid-template-columns: 24px 1fr; gap: 12px;
  padding: 8px 4px; cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.cb-cat:hover { background: var(--surface-2); }
.cb-cat input[type="checkbox"] { margin-top: 4px; cursor: pointer; }
.cb-cat input[disabled] { cursor: not-allowed; opacity: 0.5; }
.cb-cat strong { color: var(--text-1); font-size: 0.92rem; }
.cb-cat small { display: block; color: var(--text-3); font-size: 0.78rem; line-height: 1.4; margin-top: 2px; }
.cb-required { color: var(--text-3); font-size: 0.78rem; font-weight: 400; }

.cb-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cb-btn {
  padding: 9px 18px; border-radius: 8px;
  border: 1px solid var(--surface-3);
  background: var(--surface-2); color: var(--text-1);
  font-size: 0.88rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.cb-btn:hover { background: var(--surface-3); }
.cb-btn-primary {
  background: var(--brand-amber); color: #000; border-color: var(--brand-amber);
}
.cb-btn-primary:hover { background: #e0a200; }
.cb-btn-secondary { /* default styling */ }

@media (max-width: 600px) {
  .cookie-banner { left: 8px; right: 8px; bottom: 8px; padding: 16px; }
  .cb-actions { flex-direction: column-reverse; }
  .cb-btn { width: 100%; }
}

/* ─── Notification center (dzwoneczek) ───────────────────────── */
.notify-wrap { position: relative; }
.notify-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px;
  background: var(--brand-red, #e63946);
  color: #fff;
  font-size: 0.68rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--surface-1);
  animation: notifyPulse 2s ease-in-out infinite;
}
@keyframes notifyPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.notify-drop {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  width: min(360px, 90vw);
  max-height: min(480px, 70vh);
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}
.notify-wrap.open .notify-drop { display: flex; }
/* On phones the bell isn't at the screen edge, so an absolutely-positioned
   dropdown runs off-screen to the left. Pin it as a fixed, full-width sheet
   just under the topnav, scrollable, so all content stays reachable. */
@media (max-width: 820px) {
  .notify-wrap.open .notify-drop {
    position: fixed;
    top: 60px;
    left: 8px; right: 8px;
    width: auto;
    max-height: calc(100dvh - 76px);
  }
}
.notify-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--surface-3);
}
.notify-head h4 { margin: 0; font-size: 1rem; color: var(--text-1); }
.notify-list { overflow-y: auto; flex: 1; }
.notify-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-3);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: var(--text-1);
}
.notify-item:hover { background: var(--surface-2); }
.notify-item.unread { background: rgba(255, 184, 0, 0.04); }
.notify-item.priority-high { border-left: 3px solid var(--brand-amber); padding-left: 13px; }
.notify-icon { font-size: 1.4rem; line-height: 1; }
.notify-body strong { display: block; font-size: 0.88rem; color: var(--text-1); margin-bottom: 2px; }
.notify-body p { margin: 0; font-size: 0.82rem; color: var(--text-2); line-height: 1.4; }
.notify-time { color: var(--text-3); font-size: 0.72rem; margin-top: 4px; display: block; }
.notify-empty { padding: 32px 16px; text-align: center; color: var(--text-3); font-size: 0.88rem; }
.notify-foot {
  padding: 10px 16px; border-top: 1px solid var(--surface-3);
  display: flex; flex-direction: column; gap: 8px; align-items: stretch;
  text-align: center;
}
.notify-foot a { color: var(--brand-amber); font-size: 0.85rem; text-decoration: none; }
.notify-foot a:hover { text-decoration: underline; }
.notify-enable {
  width: 100%;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-1);
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.notify-enable:hover { border-color: var(--brand-amber); background: var(--surface-3); }

/* Consent checkboxes in signup form */
.consent-checkbox {
  display: flex !important; align-items: flex-start; gap: 8px;
  font-size: 0.82rem !important; color: var(--text-2) !important;
  line-height: 1.4; padding: 4px 0;
}
.consent-checkbox input[type="checkbox"] {
  margin-top: 2px; cursor: pointer; flex-shrink: 0;
}
.consent-checkbox span { padding-top: 1px; }
.consent-checkbox a { color: var(--brand-amber); text-decoration: underline; }

/* Footer legal links */
.legal-footer {
  text-align: center; padding: 24px 12px;
  border-top: 1px solid var(--surface-3); margin-top: 32px;
  color: var(--text-3); font-size: 0.82rem;
}
.legal-footer a { color: var(--text-2); text-decoration: none; margin: 0 8px; }
.legal-footer a:hover { color: var(--brand-amber); }

/* ─── TERMINARZ tabs + History ────────────────────────────────── */
.terminarz-tabs {
  display: flex; gap: 6px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--surface-3);
}
.ttab {
  background: transparent; border: 0; color: var(--text-2);
  padding: 10px 18px; cursor: pointer;
  font-size: 0.92rem; font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.ttab:hover { color: var(--text-1); }
.ttab.active { color: var(--brand-amber); border-bottom-color: var(--brand-amber); }

.th-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; }
.hist-round-head {
  background: transparent !important;
  color: var(--text-3); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 16px 4px 4px !important;
  border: 0 !important;
  cursor: default !important;
}
.hist-row {
  display: grid;
  grid-template-columns: 130px 1fr auto 16px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--surface-3);
  cursor: pointer;
  transition: background 0.15s ease;
}
.hist-row:hover { background: var(--surface-2); }
.hist-when { color: var(--text-3); font-size: 0.82rem; }
.hist-teams { font-weight: 600; color: var(--text-1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-vs { color: var(--text-3); font-weight: 400; margin: 0 4px; font-size: 0.82rem; }
.hist-score {
  font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 4px 10px; border-radius: 6px;
  background: var(--surface-2);
}
.hist-has-score { color: var(--brand-amber); background: rgba(255,184,0,0.10); }
.hist-no-score { color: var(--text-3); }
.hist-arrow { color: var(--text-3); font-size: 1.2rem; }
@media (max-width: 700px) {
  .hist-row { grid-template-columns: 1fr auto; }
  .hist-when { grid-column: 1; font-size: 0.72rem; }
  .hist-teams { grid-column: 1; }
  .hist-score { grid-column: 2; grid-row: 1 / span 2; }
  .hist-arrow { display: none; }
}

/* ─── GRAND PRIX — full season experience ──────────────────────── */
.gp-container { display: flex; flex-direction: column; gap: 0; }
.gp-notice {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(59, 142, 255, 0.10);
  border: 1px solid rgba(59, 142, 255, 0.30);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text-1);
}
.gp-notice-icon { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.gp-notice strong { color: #6db4ff; }
.gp-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  background: linear-gradient(135deg, rgba(255,184,0,0.10), rgba(230,57,70,0.10));
  border: 1px solid var(--surface-3);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 16px;
}
.gp-hero-main { display: flex; flex-direction: column; gap: 10px; }
.gp-hero-tag {
  display: inline-block;
  background: var(--brand-amber); color: #000;
  font-size: 0.72rem; font-weight: 800;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.06em;
  align-self: flex-start;
}
.gp-hero-title { font-size: 2rem; font-weight: 800; margin: 4px 0; }
.gp-hero-flag { font-size: 1.6rem; vertical-align: middle; }
.gp-hero-sub { color: var(--text-2); margin: 0 0 12px; }
.gp-countdown {
  display: flex; align-items: baseline; gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 12px;
  padding: 16px;
  align-self: flex-start;
}
.gp-cd-num { font-size: 3rem; font-weight: 900; color: var(--brand-amber); line-height: 1; font-variant-numeric: tabular-nums; }
.gp-cd-lbl { color: var(--text-2); font-size: 0.85rem; }
.gp-cd-date { color: var(--text-3); font-size: 0.78rem; margin-left: auto; }

.gp-hero-leader {
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 12px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.gp-leader-tag { font-size: 0.7rem; font-weight: 700; color: var(--brand-amber); text-transform: uppercase; letter-spacing: 0.08em; }
.gp-leader-name { font-size: 1.3rem; font-weight: 800; }
.gp-leader-team { color: var(--text-2); font-size: 0.9rem; }
.gp-leader-stats { display: flex; gap: 14px; margin-top: 6px; }
.gp-leader-stats > div { flex: 1; background: var(--surface-1); padding: 8px 10px; border-radius: 8px; text-align: center; }
.gp-leader-stats strong { font-size: 1.1rem; color: var(--brand-amber); display: block; font-variant-numeric: tabular-nums; }
.gp-leader-stats small { color: var(--text-3); font-size: 0.7rem; }

.gp-progress-bar {
  position: relative;
  height: 28px;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: 999px;
  margin-bottom: 28px;
  overflow: hidden;
}
.gp-progress-fill {
  position: absolute; inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--brand-amber), #ff9500);
  border-radius: 999px;
  transition: width 0.8s ease;
}
.gp-progress-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 0.78rem; font-weight: 700; color: var(--text-1);
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.gp-section-title { font-size: 1.15rem; font-weight: 700; margin: 28px 0 14px; }

.gp-calendar {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.gp-round-card {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: 12px;
  padding: 14px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.gp-round-card:hover { transform: translateY(-2px); border-color: var(--brand-amber); }
.gp-round-card.gp-next {
  border-color: var(--brand-amber);
  background: linear-gradient(135deg, var(--surface-1), rgba(255,184,0,0.05));
  box-shadow: 0 0 0 1px var(--brand-amber);
}
.gp-round-card.gp-finished { opacity: 0.9; }
.gp-round-num {
  background: var(--surface-2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; color: var(--brand-amber);
}
.gp-round-card.gp-finished .gp-round-num { color: var(--text-3); }
.gp-round-body { min-width: 0; }
.gp-round-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.gp-round-head h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.gp-flag { font-size: 1.1rem; }
.gp-round-status {
  font-size: 0.66rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap;
}
.gp-st-done { background: rgba(100,200,100,0.18); color: #6bcf6b; }
.gp-st-todo { background: var(--surface-3); color: var(--text-2); }
.gp-next .gp-round-status { background: var(--brand-amber); color: #000; }
.gp-round-meta { color: var(--text-2); font-size: 0.82rem; margin-bottom: 8px; }
.gp-round-podium { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.gp-podium-item { font-size: 0.82rem; padding: 4px 8px; border-radius: 6px; background: var(--surface-2); }
.gp-podium-gold { background: rgba(255,184,0,0.18); color: #ffd700; font-weight: 700; }
.gp-podium-silver { background: rgba(192,192,192,0.15); color: #c0c0c0; }
.gp-podium-bronze { background: rgba(205,127,50,0.15); color: #d98e4a; }  /* lightened for WCAG AA */
.gp-round-cta { display: flex; align-items: center; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.gp-round-tip { color: var(--text-3); font-size: 0.72rem; }

.gp-standings-wrap { overflow-x: auto; }
.gp-standings {
  width: 100%; border-collapse: collapse;
  background: var(--surface-1);
  border: 1px solid var(--surface-3);
  border-radius: 12px; overflow: hidden;
}
.gp-standings th, .gp-standings td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--surface-3);
  text-align: left;
}
.gp-standings th { background: var(--surface-2); color: var(--text-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.gp-standings .num { text-align: right; font-variant-numeric: tabular-nums; }
.gp-standings tr:last-child td { border-bottom: none; }
.gp-standings tr.gp-top3 td { background: rgba(255,184,0,0.04); }
.gp-standings tr.gp-top3:hover td { background: rgba(255,184,0,0.08); }
.gp-standings tr:hover td { background: var(--surface-2); }
.gp-standings .gp-pts { font-weight: 800; color: var(--brand-amber); }

@media (max-width: 900px) {
  .gp-hero { grid-template-columns: 1fr; padding: 20px; }
  .gp-hero-title { font-size: 1.5rem; }
  .gp-cd-num { font-size: 2.4rem; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATED BACKGROUND + THEMES + NEW WIDGETS  (added in UI overhaul)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Animated interactive background canvas ─────────────────────────────────── */
#bgFx {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;            /* behind all content, above html base colour */
  pointer-events: none;   /* never intercepts clicks */
  display: block;
}
.force-reduced-motion #bgFx { opacity: 0.6; }

/* ── Theme palettes — JS sets <html data-theme="…">; everything below cascades.
   Comprehensive (accent + surfaces + base) so the switch is clearly visible. ── */
:root[data-theme="midnight"] {
  --brand-amber: #22D3EE; --brand-amber-2: #5BE7FB; --brand-amber-d: #0E9BB5;
  --brand-red: #2563EB;   --brand-blue: #38BDF8;
  --bg: #060B16; --bg-grad-a: #0C1830; --bg-grad-b: #060B16;
  --surface-1: #0F1B30; --surface-2: #15243F; --surface-3: #1E3253; --surface-hi: #274064;
  --border-hi: rgba(34, 211, 238, 0.28);
}
:root[data-theme="racing"] {
  --brand-amber: #FFD300; --brand-amber-2: #FFE24D; --brand-amber-d: #D6A800;
  --brand-red: #FF1744;   --brand-blue: #FF6D00;
  --bg: #140406; --bg-grad-a: #260A0E; --bg-grad-b: #140406;
  --surface-1: #20090C; --surface-2: #2C1014; --surface-3: #3A171C; --surface-hi: #4A2026;
  --border-hi: rgba(255, 23, 68, 0.30);
}
:root[data-theme="emerald"] {
  --brand-amber: #34D399; --brand-amber-2: #6EE7B7; --brand-amber-d: #10A371;
  --brand-red: #F59E0B;   --brand-blue: #2DD4BF;
  --bg: #04110D; --bg-grad-a: #0A2019; --bg-grad-b: #04110D;
  --surface-1: #0A1D17; --surface-2: #102A21; --surface-3: #17392D; --surface-hi: #1F4A3B;
  --border-hi: rgba(52, 211, 153, 0.28);
}

/* ── Dashboard chart widgets ────────────────────────────────────────────────── */
/* Chart.js (maintainAspectRatio:false) needs a parent with a DEFINITE height,
   otherwise the canvas collapses to 0×0. A fixed-height relative wrapper with a
   plain block <canvas> child is the canonical, reliable setup.
   Each chart spans the FULL grid width (1 / -1) so it forms a clean banner that
   fills the screen left-to-right instead of being scattered by masonry flow. */
.bento-chart { grid-column: 1 / -1; }
.bento-chart .bento-label { margin-bottom: 12px; }
.bento-chart-wrap { position: relative; width: 100%; height: 260px; }
.bento-chart-wrap canvas { display: block; }
@media (min-width: 1700px) { .bento-chart-wrap { height: 300px; } }
@media (max-width: 700px)  { .bento-chart-wrap { height: 220px; } }

/* ── Dashboard quick-stats strip ────────────────────────────────────────────── */
.bento-stat-strip {
  grid-column: span 12;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px 22px;
  align-items: center;
}
.stat-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.stat-cell + .stat-cell { border-left: 1px solid var(--border); }
.stat-num {
  font-size: 1.8rem; font-weight: 800; line-height: 1;
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
}
.stat-lbl { font-size: 0.74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

@media (max-width: 1100px) {
  .bento-chart { grid-column: span 6; }
  .bento-stat-strip { grid-column: span 12; }
}
@media (max-width: 820px) {
  .bento-stat-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-cell:nth-child(3) { border-left: 0; }
}
@media (max-width: 700px) {
  .bento-chart { grid-column: span 6; }
  .bento-chart-wrap { min-height: 200px; }
}

/* ── Terminarz: richer fixture rows ─────────────────────────────────────────── */
.fixture-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent);
  transition: border-color var(--dur), transform var(--dur), background var(--dur);
}
.fixture-row:hover { border-color: var(--border-hi); transform: translateX(2px); }
.fixture-row .fr-info { display: flex; flex-direction: column; gap: 3px; }
.fixture-row .fr-info strong { font-size: 0.96rem; }
.fr-status-pill {
  font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.fr-status-pill.is-live { background: rgba(230,57,70,0.16); color: #ff6b78; }
.fr-status-pill.is-done { background: rgba(34,197,94,0.14); color: #4ade80; }
.fr-status-pill.is-upcoming { background: rgba(255,184,0,0.14); color: var(--brand-amber); }
.fr-ticket { flex-shrink: 0; }

/* ── Terminarz: real leader ranking ─────────────────────────────────────────── */
.lead-panel { display: flex; flex-direction: column; }
.lead-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.lead-head h3 { margin: 0; }
.lead-sub { font-size: 0.74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.leader-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.leader-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center; gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid transparent;
  transition: border-color var(--dur), transform var(--dur);
}
.leader-row:hover { border-color: var(--border-hi); transform: translateX(2px); }
.leader-rank {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.82rem;
  background: var(--surface-3); color: var(--text-2);
}
.leader-row:nth-child(1) .leader-rank { background: linear-gradient(135deg, #FFD700, #FFA000); color: #1a1208; }
.leader-row:nth-child(2) .leader-rank { background: linear-gradient(135deg, #D8D8E0, #A8A8B8); color: #1a1208; }
.leader-row:nth-child(3) .leader-rank { background: linear-gradient(135deg, #E0A062, #B87333); color: #1a1208; }
.leader-info { min-width: 0; }
.leader-name { font-weight: 700; font-size: 0.9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-team { font-size: 0.76rem; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leader-avg { text-align: right; }
.leader-avg b { font-size: 1.05rem; color: var(--brand-amber); font-variant-numeric: tabular-nums; }
.leader-avg span { display: block; font-size: 0.68rem; color: var(--text-3); }
.lead-more {
  margin-top: 12px; align-self: flex-start;
  font-size: 0.84rem; font-weight: 600; color: var(--brand-amber);
}
.lead-more:hover { text-decoration: underline; }
.leader-list .placeholder { color: var(--text-3); font-size: 0.86rem; padding: 8px 2px; }

/* ── Stadium 3D: live FPS badge in the HUD ──────────────────────────────────── */
.stadium-fps {
  margin-left: auto;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
  padding: 3px 9px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--brand-amber);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ── News: let the article grid + sidebar use very wide screens ──────────────── */
@media (min-width: 1700px) {
  .news-grid,
  .article-grid { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
}
@media (min-width: 2300px) {
  .articles-layout { grid-template-columns: 1fr 340px; }
}

/* ── Dashboard live widget (accurate mini-scoreboard) ───────────────────────── */
.bento-live-card { display: flex; flex-direction: column; }
.bento-live-card .bento-label { display: flex; align-items: center; gap: 7px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--text-3); flex-shrink: 0; }
.live-dot.is-live {
  background: var(--brand-red, #e63946);
  animation: liveDotPulse 1.6s ease-out infinite;
}
@keyframes liveDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(230, 57, 70, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 57, 70, 0); }
}
.live-mini { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; flex: 1; justify-content: center; }
.lm-badge {
  align-self: flex-start;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.03em;
  padding: 3px 9px; border-radius: 999px;
}
.lm-badge.is-live { background: rgba(230, 57, 70, 0.16); color: #ff6b78; }
.lm-badge.is-soon { background: rgba(255, 184, 0, 0.14); color: var(--brand-amber); }
.lm-vs { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.lm-vs > span { flex: 1; min-width: 0; }
.lm-vs > span:last-child { text-align: right; }
.lm-vs b { flex: 0 0 auto; color: var(--brand-amber); font-variant-numeric: tabular-nums; font-size: 1.1rem; }
.lm-vs b.lm-vs-sep { color: var(--text-3); font-size: 0.82rem; font-weight: 600; }
.lm-meta { font-size: 0.76rem; color: var(--text-3); }
.lm-empty { font-size: 0.85rem; color: var(--text-3); }

/* ═══════════════════════════════════════════════════════════════════════════
   ACCESSIBILITY — keyboard focus + skip link
   ═══════════════════════════════════════════════════════════════════════════ */
/* Many components reset `outline:none` on :focus for custom styling, which left
   keyboard users with no visible focus. Restore a clear branded ring for ACTUAL
   keyboard navigation (:focus-visible only — mouse clicks stay clean). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="link"]:focus-visible,
.bento-card:focus-visible,
.tn-link:focus-visible,
.cmdk-item:focus-visible {
  outline: 2px solid var(--brand-amber) !important;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip-to-content — first tab stop, jumps past the nav to the main content. */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 10000;
  background: var(--brand-amber);
  color: #000;
  font-weight: 800; font-size: 0.9rem;
  padding: 10px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline: 3px solid #000; outline-offset: 1px; }
#main:focus { outline: none; }   /* focused programmatically via the skip link */

/* Team-colour dot used where a rider name must stay high-contrast (white) but
   still show team colour (stadium stats) — colour-as-text could fail WCAG. */
.rider-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
