
/* Ashen: forged iron and embers. Cinzel for display, Barlow Condensed for labels and team names,
   Barlow for body text. Cut (chamfered) corners instead of rounded ones, ember-gradient edges. */
:root {
  --blue: #FF7A1A;
  --blue-dim: rgba(255, 122, 26, 0.15);
  --blue-dark: #E0600A;
  --pink: #E3261B;
  --pink-dim: rgba(227, 38, 27, 0.15);
  --pink-dark: #B01A12;
  --gold: #FFB547;
  --bg: #090606;
  --surface: #120C0B;
  --surface-2: #1A110F;
  --surface-3: #261714;
  --border: #33201B;
  --border-light: #4A2C24;
  --text: #F3E9E3;
  --text-muted: #9C8278;
  --win-bg: rgba(255, 122, 26, 0.12);
  --win: #FF7A1A;
  --lose-bg: rgba(0,0,0,0.15);
  --lose: #7A6159;
  --ember: linear-gradient(90deg, #B01A12 0%, #E3261B 30%, #FF7A1A 70%, #FFB547 100%);
  --ember-line: linear-gradient(90deg, transparent 0%, #E3261B 22%, #FF7A1A 50%, #E3261B 78%, transparent 100%);
  --display: 'Cinzel', Georgia, serif;
  --label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --cut: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
/* The glow behind every page. A fixed layer of its own instead of background-attachment: fixed,
   which made the browser repaint the whole page on every scroll. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; will-change: transform;
  background-image:
    radial-gradient(ellipse 90% 45% at 50% 105%, rgba(227,38,27,0.16) 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(255,122,26,0.10) 0%, transparent 70%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 9px);
}
html.bracket-mode body::before { display: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }

/* Cut-corner shapes */
.cut    { clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut)); }

/* ── Nav ── */
nav {
  background: linear-gradient(180deg, #0d0908 0%, #080505 100%);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ember-line); box-shadow: 0 0 10px rgba(255,90,20,0.55);
}

.nav-brand { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.nav-brand img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(227,38,27,0.45)); }
.nav-brand span {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFD9A8 0%, #FF7A1A 55%, #C42A0C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; gap: 0.25rem; list-style: none; margin: 0 auto; height: 100%; }
.nav-links li { display: flex; }
.nav-links a {
  position: relative;
  display: flex; align-items: center;
  color: var(--text-muted);
  padding: 0 1rem;
  font-family: var(--label);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.15s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 3px; z-index: 1;
  background: var(--ember); box-shadow: 0 0 12px rgba(255,122,26,0.8);
  transition: left 0.2s, right 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { left: 35%; right: 35%; }
.nav-links a.active { color: #FFC98A; text-shadow: 0 0 14px rgba(255,122,26,0.55); }
.nav-links a.active::after { left: 0.6rem; right: 0.6rem; }

.nav-connect, .nav-user { flex-shrink: 0; }
.nav-connect {
  padding: 0.5rem 1rem;
  background: #5865f2;
  color: #fff;
  font-family: var(--label);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  --cut: 7px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.nav-connect:hover { color: #fff; background: #4752c4; }
.nav-user { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.nav-user form { display: contents; }
.nav-user-avatar { width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 2px #0a0606, 0 0 0 3px rgba(255,122,26,0.6); }
.nav-user-name { font-family: var(--label); font-size: 1rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-user-badge {
  padding: 0.12rem 0.45rem; font-family: var(--label); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: #120a07; background: var(--ember);
  --cut: 4px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.nav-logout {
  padding: 0.35rem 0.7rem; border: 1px solid var(--border-light); cursor: pointer;
  background: transparent; color: var(--text-muted); font-family: var(--label); font-size: 0.88rem;
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.nav-logout:hover { color: var(--text); border-color: var(--blue); }

/* ── Main ── */
main { flex: 1; padding: 2.5rem 2rem; max-width: clamp(1100px, 80vw, 1800px); margin: 0 auto; width: 100%; }

/* ── Home ── */
main:has(.ash-hero) { padding-top: 0; max-width: none; padding-left: 0; padding-right: 0; }
.ash-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  min-height: min(78vh, 760px);
  padding: 3rem max(2rem, calc((100vw - 1240px) / 2));
  background:
    radial-gradient(ellipse 55% 70% at 75% 55%, rgba(227,38,27,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 80% 40% at 50% 115%, rgba(255,122,26,0.18) 0%, transparent 70%);
}
.embers.embers-local { position: absolute; }
.ash-hero-copy, .ash-hero-art { position: relative; z-index: 1; }
.ash-eyebrow {
  font-family: var(--label); font-size: 1rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--blue); display: flex; align-items: center; gap: 0.9rem;
}
.ash-eyebrow::before { content: ''; width: 42px; height: 2px; background: var(--ember); box-shadow: 0 0 8px rgba(255,122,26,0.7); }
.ash-title {
  font-family: var(--display);
  font-size: clamp(4rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0.6rem 0 0.4rem;
  background: linear-gradient(180deg, #FFF1DC 0%, #FFC27A 28%, #FF7A1A 55%, #C42A0C 85%, #6E0E08 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 28px rgba(255,90,20,0.35));
}
.ash-tagline { font-size: 1.2rem; color: #CDB7AD; letter-spacing: 0.02em; max-width: 32rem; }
.ash-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }

.ash-hero-art { display: grid; place-items: center; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.ash-hero-art > * { grid-area: 1 / 1; }
.ash-ring {
  width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(227,38,27,0) 0deg, rgba(227,38,27,0.75) 70deg, rgba(255,181,71,0.95) 110deg, rgba(227,38,27,0) 170deg,
                             rgba(227,38,27,0) 190deg, rgba(255,122,26,0.7) 260deg, rgba(227,38,27,0) 330deg);
  -webkit-mask: radial-gradient(circle, transparent 63%, #000 64.5%, #000 66%, transparent 67.5%);
          mask: radial-gradient(circle, transparent 63%, #000 64.5%, #000 66%, transparent 67.5%);
  filter: blur(0.6px) drop-shadow(0 0 12px rgba(255,90,20,0.8));
  animation: ring-spin 14s linear infinite;
  will-change: transform;   /* drawn once, then only rotated by the GPU */
}
.ash-hero-logo {
  display: block; width: 74%;
  filter: drop-shadow(0 0 40px rgba(227,38,27,0.35)) drop-shadow(0 0 14px rgba(255,122,26,0.2));
}
.ash-hero-logo img { display: block; width: 100%; height: auto; }
/* The logo's heat pulse: a soft glow behind it that only fades in and out. Animating the logo's
   own drop-shadow re-blurred the whole image every frame; opacity is handled by the GPU. */
.ash-hero-art::before {
  content: ""; grid-area: 1 / 1; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(227,38,27,0.42) 0%, rgba(255,122,26,0.18) 38%, rgba(227,38,27,0.08) 55%, transparent 70%);
  opacity: 0.35; will-change: opacity;
  animation: logo-heat 4.5s ease-in-out infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }
@keyframes logo-heat { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ash-ring, .ash-hero-art::before { animation: none; } }

.ash-top { max-width: 1240px; margin: 0 auto; padding: 2.5rem 2rem 3.5rem; width: 100%; }
.ash-top-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.ash-h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.ash-more { font-family: var(--label); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.ash-more::after { content: ' \2192'; }
.ash-top-list { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.8rem; }
.ash-top-item {
  position: relative; display: flex; flex-direction: column; gap: 0.25rem; min-width: 0;
  padding: 1rem 1rem 0.95rem;
  background: linear-gradient(180deg, #1c1210 0%, #100a09 100%);
  border-bottom: 2px solid #4a1c14;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.ash-top-item.first { background: linear-gradient(180deg, #3a160c 0%, #170b08 100%); border-bottom-color: var(--blue); }
.ash-top-rank { font-family: var(--display); font-size: 2.2rem; font-weight: 800; line-height: 1; color: rgba(255,122,26,0.35); }
.ash-top-item.first .ash-top-rank { color: var(--gold); text-shadow: 0 0 18px rgba(255,181,71,0.6); }
.ash-top-name { font-family: var(--label); font-size: 1.3rem; font-weight: 700; letter-spacing: 0.03em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ash-top-elo { font-family: var(--label); font-size: 1.15rem; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.ash-top-elo small { font-size: 0.7rem; letter-spacing: 0.14em; margin-left: 0.3rem; color: var(--text-muted); }
.ash-top-wins { font-size: 0.78rem; color: var(--gold); font-weight: 600; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  font-family: var(--label);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  background: linear-gradient(180deg, #FF9440 0%, #FF6A12 45%, #D8360F 100%);
  color: #170905;
  box-shadow: inset 0 1px 0 rgba(255,230,190,0.6);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
  transition: filter 0.15s, transform 0.15s;
}
.btn:hover { filter: brightness(1.12); transform: translateY(-1px); color: #170905; }
.btn.btn-ghost { background: rgba(255,122,26,0.08); color: #FFC98A; box-shadow: inset 0 0 0 1px rgba(255,122,26,0.55); }
.btn.btn-ghost:hover { background: rgba(255,122,26,0.18); color: #FFE2BF; }
.btn-primary, .btn-secondary, .btn-discord { }

/* ── Page header: centered title with ember rules on either side ── */
.page-header {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
}
.page-header-left { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.page-title {
  display: flex; align-items: center; gap: 1.1rem;
  font-family: var(--display);
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #FFF1DC 0%, #FFB45E 50%, #E3461B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-title::before, .page-title::after { content: ''; width: clamp(28px, 8vw, 110px); height: 2px; flex-shrink: 0; }
.page-title::before { background: linear-gradient(90deg, transparent, #E3261B, #FF7A1A); }
.page-title::after  { background: linear-gradient(90deg, #FF7A1A, #E3261B, transparent); }
.page-subtitle { color: var(--text-muted); font-family: var(--label); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* ── Toggle ── */
.toggle-bar { display: flex; gap: 3px; margin-bottom: 1.25rem; background: var(--surface); border: 1px solid var(--border); padding: 3px; width: fit-content; }
.toggle-btn { padding: 0.45rem 1.1rem; border: none; background: transparent; color: var(--text-muted); font-family: var(--label); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: all 0.15s; }
.toggle-btn.active { background: var(--blue); color: #120a07; font-weight: 700; }

/* ── Leaderboard podium ── */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 0.9rem; max-width: 900px; margin: 0 auto 2.2rem; }
.podium:empty { display: none; }
.podium-step {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 0;
  padding: 1.1rem 1rem 1.2rem; border: 0; cursor: pointer; color: var(--text); font: inherit;
  background: linear-gradient(180deg, #22140f 0%, #120b09 100%);
  border-bottom: 3px solid #5a2418;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%, 0 var(--cut));
  transition: transform 0.15s, filter 0.15s;
}
.podium-step:hover { transform: translateY(-3px); filter: brightness(1.15); }
.podium-1 { order: 2; padding-top: 1.8rem; padding-bottom: 1.8rem; background: linear-gradient(180deg, #4a1a0c 0%, #1d0c08 70%); border-bottom-color: var(--gold); }
.podium-2 { order: 1; }
.podium-3 { order: 3; }
.podium-rank { font-family: var(--display); font-size: 2.4rem; font-weight: 800; line-height: 1; color: #C9B8B0; }
.podium-1 .podium-rank { font-size: 3.4rem; color: var(--gold); text-shadow: 0 0 22px rgba(255,181,71,0.65); }
.podium-3 .podium-rank { color: #C8763A; }
.podium-name { font-family: var(--label); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.03em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-1 .podium-name { font-size: 1.6rem; }
.podium-elo { font-family: var(--label); font-size: 1.15rem; font-weight: 600; color: var(--blue); }
.podium-elo small { font-size: 0.7rem; letter-spacing: 0.14em; color: var(--text-muted); }
.podium-wins { font-size: 0.78rem; color: var(--text-muted); }
.podium-1 .podium-wins { color: var(--gold); }

/* ── Table ── */
.table-card {
  background: var(--ember) top / 100% 2px no-repeat, linear-gradient(180deg, #140d0c 0%, #0e0908 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
  overflow: hidden;
}

table { width: 100%; border-collapse: collapse; }

thead th {
  background: transparent;
  color: var(--text-muted);
  font-family: var(--label);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0.9rem 1.2rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

tbody tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: linear-gradient(90deg, rgba(255,122,26,0.14) 0%, rgba(255,122,26,0.02) 60%, transparent 100%); }
tbody td { padding: 0.7rem 1.2rem; font-size: 0.95rem; }

.rank-cell { color: var(--text-muted); font-family: var(--display); font-size: 0.95rem; font-weight: 700; width: 4rem; font-variant-numeric: tabular-nums; }
.rank-1 { color: var(--gold); }
.rank-2 { color: #C9B8B0; }
.rank-3 { color: #C8763A; }
.name-cell { font-weight: 500; }
.score-cell { text-align: right; font-family: var(--label); font-size: 1.08rem; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--blue); }
.champ-score { color: var(--pink); }

/* ── Large screens (1440p / 2K+) ── */
@media (min-width: 1800px) {
  main { padding: 3rem 2.5rem; }
  .page-title { font-size: 2.6rem; }
  tbody td { padding: 0.8rem 1.4rem; font-size: 1rem; }
  thead th { padding: 0.9rem 1.4rem 0.7rem; }
  .stat-box { padding: 1rem 1.25rem; }
  .stat-value { font-size: 1.15rem; }
  .modal-panel { max-width: 820px; }
  .chart-wrap { height: 240px; }
}

@media (min-width: 2400px) {
  main { padding: 4rem 3rem; }
  .page-title { font-size: 2.9rem; }
  tbody td { padding: 0.9rem 1.6rem; font-size: 1.05rem; }
  thead th { padding: 1rem 1.6rem 0.8rem; font-size: 0.95rem; }
  .stat-value { font-size: 1.25rem; }
  .modal-panel { max-width: 960px; }
}

/* ── Tablet / mobile ── */
@media (max-width: 900px) {
  .ash-hero { grid-template-columns: 1fr; text-align: center; padding: 2rem 16px 2.5rem; min-height: 0; gap: 0.5rem; }
  .ash-hero-art { order: -1; max-width: 300px; }
  .ash-eyebrow { justify-content: center; }
  .ash-eyebrow::before { display: none; }
  .ash-tagline { margin: 0 auto; }
  .ash-cta { justify-content: center; }
  .ash-top { padding: 1.5rem 16px 2.5rem; }
  .ash-top-head { flex-direction: column; align-items: center; gap: 0.3rem; }
  .ash-h2 { font-size: 1.3rem; }
  .ash-top-list { grid-template-columns: 1fr; gap: 0.5rem; }
  .ash-top-item { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr) auto; align-items: center; gap: 0 0.8rem; padding: 0.7rem 1rem; }
  .ash-top-rank { font-size: 1.6rem; grid-row: span 2; }
  .ash-top-elo { grid-column: 3; grid-row: 1 / span 2; }
  .ash-top-wins { grid-column: 2; }
}

@media (max-width: 760px) {
  nav { padding: 0 12px; gap: 0.5rem; }
  .nav-brand span { display: none; }
  .nav-brand img { width: 32px; height: 32px; }
  .nav-links { gap: 0; margin: 0 auto 0 0; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { padding: 0 0.5rem; font-size: 0.86rem; letter-spacing: 0.08em; }
  .nav-user-name, .nav-user-badge, .nav-logout { display: none; }
  .nav-connect { padding: 0.4rem 0.6rem; font-size: 0.8rem; }

  main { padding: 1.5rem 16px; }
  .page-title { font-size: 1.6rem; letter-spacing: 0.1em; gap: 0.6rem; }
  .page-subtitle { font-size: 0.85rem; }

  .podium { gap: 0.45rem; }
  .podium-step { padding: 0.8rem 0.4rem 0.9rem; }
  .podium-1 { padding-top: 1.2rem; padding-bottom: 1.2rem; }
  .podium-rank { font-size: 1.7rem; }
  .podium-1 .podium-rank { font-size: 2.3rem; }
  .podium-name, .podium-1 .podium-name { font-size: 1rem; }
  .podium-elo { font-size: 0.95rem; }
  .podium-wins { display: none; }

  .lb-controls { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .lb-meta { margin-right: 0; }
  .search-wrap { width: 100%; }
  .search-wrap input { width: 100%; }

  .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 320px; }
  tbody td, thead th { padding-left: 0.7rem; padding-right: 0.7rem; }
  .rank-cell { width: 2.6rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pagination { gap: 0.4rem; }
  .page-btn { padding: 0.3rem 0.65rem; font-size: 0.8rem; }
  .page-select { font-size: 0.78rem; }
  .modal-panel { max-height: 85vh; }
}

/* ── No-event ── */
.no-event { text-align: center; padding: 5rem 2rem; color: var(--text-muted); }
.no-event h2 { font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.08em; margin-bottom: 0.7rem; color: var(--text); }
.no-event p { font-size: 1rem; line-height: 1.6; }

/* ── Footer ── */
footer {
  position: relative;
  background: #070404;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem;
  padding: 1.4rem 1rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}
footer::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 1px; background: var(--ember-line); opacity: 0.7; }
.foot-mark { font-family: var(--display); font-size: 1rem; font-weight: 800; letter-spacing: 0.4em; color: #6E3A2A; text-transform: uppercase; }

/* ── Bracket fullscreen ── */
html.bracket-mode, html.bracket-mode body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}

.bracket-fullscreen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bracket-back {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 4px 10px;
  transition: color 0.15s;
}

.bracket-back:hover { color: var(--text); }

.bracket-canvas { position: absolute; transform-origin: top left; }

/* Background art behind the bracket. The opaque sticky nav covers its top, so on the site it
   shows only below the nav; in OBS (nav hidden) it fills the frame. Always fills, never
   stretches; anchored bottom-right so the emblem stays in view when the window isn't 16:9.
   A heat haze rises from the bottom edge over it. */
.bracket-fullscreen::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url('/static/bracket_bg.png') right bottom / cover no-repeat;
  pointer-events: none;
}
.bracket-fullscreen::after {
  content: "";
  position: fixed;
  left: 0; right: 0; bottom: 0; height: 28vh;
  background: linear-gradient(0deg, rgba(227,38,27,0.16) 0%, rgba(255,122,26,0.05) 45%, transparent 100%);
  pointer-events: none;
}

/* Falling sparks over the bracket background. Two tiled layers (far: small and slow, near: larger
   and faster) each slide down exactly one tile per cycle, so the loop is seamless. Only transform
   animates, which the browser hands to the GPU, so it stays cheap (OBS included). Brighter toward
   the bottom-right glow. Off for anyone who asks for reduced motion. */
.embers {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse at 85% 100%, #000 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.22) 100%);
          mask-image: radial-gradient(ellipse at 85% 100%, #000 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.22) 100%);
}
.embers i {
  position: absolute; left: 0; right: 0; bottom: 0; will-change: transform;
  animation: ember-fall linear infinite;
}
.embers i:nth-child(1) { top: -384px; background: url('/static/embers_far.png') repeat; --tile: 384px; animation-duration: 22s; opacity: 0.8; }
.embers i:nth-child(2) { top: -512px; background: url('/static/embers_near.png') repeat; --tile: 512px; animation-duration: 15s; }
@keyframes ember-fall { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--tile), 0); } }
@media (prefers-reduced-motion: reduce) { .embers i { animation: none; } }

/* ── Match cards: forged iron plates ──
   Dark iron with a red-hot heat bar down the left edge, names left-aligned in condensed caps and
   the score in its own dark notch on the right. The winner's slot glows and its notch fills
   orange. The card is the two slots plus a 1px frame (MATCH_H in bracket_render.js). */
.match-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255,122,26,0.22);
  border-left: 3px solid #E3261B;
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 45%),
    linear-gradient(180deg, #1d1412 0%, #100b0a 100%);
  box-shadow: 0 6px 18px rgba(0,0,0,0.75), 0 0 0 1px rgba(0,0,0,0.6);
}

/* Grand finals (and its reset): a molten frame that slowly flows, with a breathing heat glow.
   The flow moves the lava gradient exactly one tile per cycle so it loops seamlessly. */
.match-card-gf {
  border: 2px solid transparent;
  border-left-width: 3px;
  background:
    linear-gradient(180deg, #2a100a 0%, #120706 100%) padding-box,
    linear-gradient(90deg, #8a1006 0%, #d8360f 18%, #ff6a12 34%, #ffc23a 44%, #b81f08 58%, #ff7d1c 76%, #c42a0c 90%, #8a1006 100%) border-box;
  background-size: auto, 240px 100%;
  animation: lava-flow 5s linear infinite, lava-glow 3.2s ease-in-out infinite;
}
@keyframes lava-flow {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 0, 240px 0; }
}
@keyframes lava-glow {
  0%, 100% { box-shadow: 0 6px 22px rgba(0,0,0,0.7), 0 0 14px rgba(255,90,20,0.5), 0 0 30px rgba(227,38,27,0.28); }
  50%      { box-shadow: 0 6px 22px rgba(0,0,0,0.7), 0 0 24px rgba(255,130,30,0.75), 0 0 52px rgba(227,38,27,0.45); }
}
@media (prefers-reduced-motion: reduce) { .match-card-gf { animation: none; } }

/* ── Match slots ── */
.match-slot {
  display: flex;
  align-items: stretch;
  background: transparent;
  line-height: 1;
}

.match-slot + .match-slot { border-top: 1px solid rgba(255,255,255,0.07); }

.slot-name {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 11px;
  font-family: var(--label);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #E9DCD5;
  overflow: visible;
  white-space: nowrap;
}

.slot-score {
  width: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.38);
  font-family: var(--label);
  font-weight: 700;
  font-size: 20px;
  color: rgba(255,255,255,0.7);
}

.match-slot.slot-win { background: linear-gradient(90deg, rgba(255,122,26,0.22) 0%, rgba(255,122,26,0.04) 75%, transparent 100%); }
.match-slot.slot-win .slot-name { color: #fff; font-weight: 700; text-shadow: 0 0 10px rgba(255,122,26,0.45); }
.match-slot.slot-win .slot-score { background: linear-gradient(180deg, #FF9440, #E0500C); color: #170905; }
.match-slot .slot-score:empty { background: rgba(0,0,0,0.2); }

.slot-lose-wb { opacity: 0.42; }
.slot-lose-lb { opacity: 0.42; }
.slot-lose-lb .slot-name { text-decoration: line-through; text-decoration-color: rgba(227,38,27,0.85); text-decoration-thickness: 2px; }

/* ── Round labels ── */
.round-label {
  position: absolute;
  text-align: left;
  padding-left: 3px;
  font-family: var(--label);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #FF9A4D;
  text-shadow: 0 0 8px rgba(255,90,20,0.45);
  white-space: nowrap;
  pointer-events: none;
}

/* ── SVG connectors: cooled ash until a team comes through, then burning ── */
.conn-wb, .conn-lb, .conn-gf { fill: none; stroke: #5B2A21; stroke-width: 2.5; stroke-linecap: round; opacity: 0.9; }
.conn-wb.lit, .conn-lb.lit { stroke: #FF6A14; stroke-width: 3; opacity: 1; filter: drop-shadow(0 0 4px rgba(255,90,20,0.75)); }
.conn-gf { stroke: #7A3020; stroke-width: 3; }
.conn-gf.lit { stroke: #FFB547; stroke-width: 3.5; opacity: 1; filter: drop-shadow(0 0 6px rgba(255,140,30,0.9)); }

.hidden { display: none !important; }

/* ── Stream popout ── */
#stream-popout {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 320px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-light);
  border-radius: 6px;
  overflow: hidden;
  z-index: 450;
  box-shadow: 0 12px 40px rgba(0,0,0,0.55);
  user-select: none;
}

#stream-handle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.65rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  cursor: grab;
  touch-action: none;
}

#stream-handle:active { cursor: grabbing; }

#stream-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-light);
  flex-shrink: 0;
  transition: background 0.3s, box-shadow 0.3s;
}

#stream-dot.sp-live {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.7);
  animation: sp-pulse 2s ease-in-out infinite;
}

@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.45; }
}

#stream-label {
  flex: 1;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

#stream-btns {
  display: flex;
  gap: 1px;
}

#stream-btns button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  line-height: 1.5;
  transition: color 0.12s, background 0.12s;
}

#stream-btns button:hover { color: var(--text); background: var(--surface-3); }

#stream-body {
  height: 180px;
  overflow: hidden;
}

#stream-body iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

/* ── Collapsed pill anchored bottom-left ── */
#stream-popout.sp-collapsed {
  left: 1.5rem !important;
  bottom: 1.5rem !important;
  right: auto !important;
  top: auto !important;
  width: auto;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#stream-popout.sp-collapsed:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

#stream-popout.sp-collapsed #stream-handle {
  cursor: pointer;
  border-bottom: none;
  border-radius: 100px;
  padding: 0.4rem 0.85rem;
}

#stream-popout.sp-collapsed #stream-btns { display: none; }
#stream-popout.sp-collapsed #stream-body { display: none; }

/* ── Leaderboard controls row ── */
.lb-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.lb-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: auto;
  font-variant-numeric: tabular-nums;
}

.search-wrap input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
  width: 200px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-wrap input::placeholder { color: var(--text-muted); }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(255,122,26,0.1); }

/* ── Sortable column headers ── */
.th-sort {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.th-sort:hover { color: var(--text); }
.th-sort-active { color: var(--blue); }

.sort-ind {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-left: 2px;
}

/* ── Wins column ── */
.wins-cell { color: var(--gold) !important; }

/* ── Player name (leaderboard row is the clickable button) ── */
.player-name {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s;
}

.lb-row:hover .player-name { color: var(--blue); }

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.page-btn {
  padding: 0.35rem 0.85rem;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.page-btn:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-light); color: var(--text); }

.page-btn:disabled {
  color: var(--text-muted);
  cursor: default;
  opacity: 0.35;
}

.page-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.page-select:focus { border-color: var(--blue); }
.page-select:disabled { color: var(--text-muted); opacity: 0.35; cursor: default; }

/* ── Modal overlay ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active { display: flex; }

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover { color: var(--text); background: var(--surface-3); }

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}

.modal-loading {
  text-align: center;
  color: var(--text-muted);
  padding: 3rem 0;
}

/* ── Stats grid inside modal ── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.stat-box {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.stat-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.chart-wrap {
  height: 200px;
  margin-bottom: 1.25rem;
}

.stats-rows { display: flex; flex-direction: column; gap: 0.5rem; }

.stats-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.65rem 1rem;
}

.stats-row-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.stats-row-val {
  font-size: 0.88rem;
  color: var(--text);
  word-break: break-word;
}

/* ── Bracket team popup ── */
.match-slot-team { cursor: pointer; }
.match-slot-team:hover, .match-slot-team:focus-visible { background: rgba(255,255,255,0.08); outline: none; }

.team-popup {
  position: fixed;
  z-index: 500;
  width: 260px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-top: 2px solid var(--pink);
  border-radius: 6px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  padding: 0.85rem 0.9rem 0.7rem;
  color: var(--text);
  font-size: 0.85rem;
}
.team-popup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.55rem; }
.team-popup-name { font-family: var(--display); font-size: 1.15rem; line-height: 1.15; overflow-wrap: anywhere; }
.team-popup-seed { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }
.team-popup-stat { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.team-popup-label { color: var(--text-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.team-popup-value { font-weight: 800; font-size: 1.05rem; color: var(--gold); font-variant-numeric: tabular-nums; }
.team-popup-toggle { display: flex; gap: 2px; padding: 2px; margin-bottom: 0.55rem; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; }
.team-popup-toggle button {
  flex: 1; padding: 0.3rem 0.4rem; border: 0; border-radius: 4px; cursor: pointer;
  background: transparent; color: var(--text-muted); font: inherit; font-size: 0.75rem; font-weight: 600;
}
.team-popup-toggle button:hover { color: var(--text); }
.team-popup-toggle button.active { background: var(--blue-dim); color: var(--blue); }
.team-popup-list { list-style: none; margin: 0; padding: 0; }
.team-popup-list li { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.32rem 0; border-top: 1px solid var(--border); }
.team-popup-player { min-width: 0; overflow-wrap: anywhere; }
.team-popup-elo { flex-shrink: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.team-popup-empty { color: var(--text-muted); padding: 0.3rem 0; }
.team-popup-note { margin-top: 0.5rem; padding-top: 0.45rem; border-top: 1px solid var(--border); font-size: 0.7rem; color: var(--text-muted); text-align: center; }

/* ── Staff bracket tools (site-run brackets) ── */
.sb-tab {
  position: absolute; z-index: 5; width: 24px; height: 24px; padding: 0;
  border: 1px solid var(--border-light); border-radius: 4px; cursor: pointer;
  background: var(--surface-2); color: var(--text-muted);
  font: 700 0.72rem/1 system-ui, sans-serif; letter-spacing: 0.02em;
}
.sb-tab.live { color: var(--blue); border-color: var(--blue); }
.sb-tab.done { opacity: 0.7; }
.sb-tab:hover, .sb-tab:focus-visible { background: var(--pink); border-color: var(--pink); color: #fff; opacity: 1; outline: none; }

.sb-backdrop {
  position: fixed; inset: 0; z-index: 600; display: flex; align-items: flex-start; justify-content: center;
  padding: 72px 16px 16px; background: rgba(8, 5, 4, 0.6); overflow-y: auto;
}
.sb-backdrop.hidden, .sb-log.hidden { display: none; }
.sb-modal, .sb-log {
  background: var(--surface); border: 1px solid var(--border-light); border-top: 2px solid var(--pink);
  border-radius: 6px; box-shadow: 0 8px 28px rgba(0,0,0,0.6); color: var(--text); font-size: 0.88rem;
}
.sb-modal { width: 560px; max-width: 100%; padding: 1rem 1.1rem 1.1rem; }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.sb-title { font-family: var(--display); font-size: 1.3rem; line-height: 1.2; }
.sb-sub { color: var(--text-muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin: 0.15rem 0 0.8rem; }
.sb-label { color: var(--text-muted); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.sb-muted { color: var(--text-muted); font-size: 0.8rem; line-height: 1.45; }
.sb-warn { color: var(--gold); font-size: 0.8rem; line-height: 1.45; }
.sb-error, .sb-notice { border-radius: 4px; padding: 0.5rem 0.65rem; margin-bottom: 0.7rem; font-size: 0.82rem; line-height: 1.4; }
.sb-error { background: var(--pink-dim); border: 1px solid var(--pink); }
.sb-notice { background: var(--blue-dim); border: 1px solid var(--blue-dark); }

.sb-board { border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.sb-team { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.7rem; background: var(--bg); }
.sb-team + .sb-team { border-top: 1px solid var(--border); }
.sb-team.won { background: var(--win-bg); }
.sb-team-name { flex: 1; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.sb-team-score { min-width: 1.6rem; text-align: right; font-size: 1.35rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--gold); }
.sb-team-ctl { display: flex; gap: 0.35rem; }

.sb-section { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.sb-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; }
.sb-inline .sb-label { margin: 0; }
.sb-decide { font-weight: 800; font-size: 1rem; margin-bottom: 0.35rem; }
.sb-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.65rem; }

.sb-btn {
  padding: 0.42rem 0.8rem; border-radius: 5px; border: 1px solid var(--blue); cursor: pointer;
  background: var(--blue-dim); color: var(--blue); font: inherit; font-size: 0.82rem; font-weight: 700;
}
.sb-btn:hover:not(:disabled) { background: var(--blue); color: #120D0B; }
.sb-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.sb-btn.sb-primary { background: var(--blue); color: #120D0B; }
.sb-btn.sb-primary:hover:not(:disabled) { background: var(--blue-dark); }
.sb-btn.sb-ghost { border-color: var(--border-light); background: transparent; color: var(--text-muted); }
.sb-btn.sb-ghost:hover:not(:disabled), .sb-btn.sb-ghost.active { background: var(--surface-3); color: var(--text); }
.sb-btn.sb-danger { border-color: var(--pink); background: var(--pink); color: #fff; }
.sb-btn.sb-danger:hover:not(:disabled) { background: var(--pink-dark); }
.sb-btn.sb-danger-ghost { border-color: var(--pink); background: transparent; color: var(--pink); }
.sb-btn.sb-danger-ghost:hover:not(:disabled) { background: var(--pink-dim); color: var(--text); }
.sb-select { padding: 0.35rem 0.5rem; border-radius: 5px; border: 1px solid var(--border-light); background: var(--bg); color: var(--text); font: inherit; font-size: 0.82rem; }

.sb-lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin-top: 0.6rem; }
.sb-check { display: flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0; cursor: pointer; }
.sb-check input { accent-color: var(--blue); width: 16px; height: 16px; }
.sb-games, .sb-cleared { margin: 0; padding-left: 1.3rem; }
.sb-games li, .sb-cleared li { padding: 0.3rem 0; }
.sb-game-win { font-weight: 700; }

.sb-bar {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 550;
  display: flex; align-items: center; gap: 0.6rem; max-width: calc(100vw - 32px); flex-wrap: wrap; justify-content: center;
  padding: 0.45rem 0.6rem 0.45rem 0.9rem; border-radius: 6px; background: var(--surface);
  border: 1px solid var(--border-light); box-shadow: 0 6px 20px rgba(0,0,0,0.55); font-size: 0.8rem;
}
.sb-bar-state { color: var(--text-muted); font-weight: 600; }
.sb-bar-actions { display: flex; gap: 0.4rem; }
.sb-log {
  position: fixed; top: 64px; right: 16px; bottom: 70px; z-index: 560; width: 380px; max-width: calc(100vw - 32px);
  padding: 0.9rem 1rem; overflow-y: auto;
}
.sb-log-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.sb-log-list li { padding: 0.5rem 0; border-top: 1px solid var(--border); line-height: 1.4; }
.sb-log-meta { color: var(--text-muted); font-size: 0.72rem; margin-bottom: 0.15rem; }

@media (max-width: 560px) {
  .sb-lineups { grid-template-columns: 1fr; }
  .sb-backdrop { padding-top: 56px; }
}
.sb-label.sb-gap { margin-top: 0.8rem; }
.sb-template { width: 100%; border-collapse: collapse; margin: 0.4rem 0 0.7rem; }
.sb-template th { text-align: left; color: var(--text-muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 0 0.4rem 0.4rem 0; }
.sb-template td { padding: 0.3rem 0.4rem 0.3rem 0; border-top: 1px solid var(--border); }
.sb-template .sb-num { font-variant-numeric: tabular-nums; color: var(--text-muted); }
.sb-tab { display: inline-flex; align-items: center; justify-content: center; }
.sb-tab svg { display: block; }
.sb-played { list-style: none; margin: 0; padding: 0; }
.sb-played li { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.2rem 0; }
.sb-game-edit { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px dashed var(--border); }
.sb-game-edit .sb-lineups { margin-top: 0.35rem; }
.sb-gap-top { margin-top: 0.6rem; }

/* Test site only: bracket switcher under the nav */
.test-switch {
  position: relative; z-index: 60; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 2rem; background: var(--surface-2); border-bottom: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-muted);
}
.test-switch label { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; }
.test-switch select { padding: 0.3rem 0.5rem; border-radius: 5px; border: 1px solid var(--border-light); background: var(--bg); color: var(--text); font: inherit; }

/* ── Live match shimmer (everyone): a game timer is running for this match ── */
.match-card.live { box-shadow: 0 0 0 2px rgba(255,106,20,0.55), 0 0 18px rgba(227,38,27,0.45), 0 -6px 18px rgba(255,122,26,0.35); }
/* Flame particles rising off live matches (built in bracket.html): each is a small teardrop of
   fire that rises, drifts, shrinks and fades. Only transform and opacity animate. */
.flames { position: absolute; pointer-events: none; z-index: 2; }
.flames i {
  position: absolute; margin: -6px 0 0 -6px; filter: blur(0.4px); border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 70%, #fff6c2 0%, #ffd24a 22%, #ff8a1e 50%, rgba(227,38,27,0.85) 72%, rgba(227,38,27,0) 100%);
  opacity: 0; will-change: transform, opacity;
  animation: flame-rise 1.4s ease-out infinite;
}
@keyframes flame-rise {
  0%   { transform: translate3d(0, 2px, 0) scale(0.6); opacity: 0; }
  15%  { opacity: 0.95; }
  60%  { opacity: 0.7; }
  100% { transform: translate3d(var(--dx), calc(-1 * var(--rise)), 0) scale(0.15); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .flames { display: none; } }

/* ── Staff: ended game waiting for a result — green pulsing gear with a count ── */
.sb-tab { overflow: visible; }
.sb-tab.alert { background: #16a34a; border-color: #4ade80; color: #fff; opacity: 1; animation: gg-pulse 1.4s ease-in-out infinite; }
@keyframes gg-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0.75); } 50% { box-shadow: 0 0 0 7px rgba(74,222,128,0); } }
.sb-badge {
  position: absolute; top: -8px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: #ef4444; color: #fff; font: 800 0.62rem/16px system-ui, sans-serif; text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.sb-tab { position: absolute; }
.sb-ended { margin: 0 0 0.8rem; padding: 0.7rem 0.8rem; border-radius: 5px; border: 1px solid #4ade80; background: rgba(22,163,74,0.14); }
.sb-ended .sb-row { margin-top: 0.45rem; }
.sb-setlen { margin: 0 0 0.8rem; padding: 0.6rem 0.75rem; border: 1px solid var(--border-light); border-radius: 5px; background: var(--surface-2); }
.sb-close-prompt { margin: 0.6rem 0 0.8rem; padding: 0.75rem 0.85rem; border-radius: 5px; border: 1px solid var(--gold); background: rgba(251,191,36,0.1); }
.sb-choices .sb-choice { border-color: var(--border-light); background: transparent; color: var(--text); }
.sb-choices .sb-choice:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.sb-choices .sb-choice.selected, .sb-choices .sb-choice.selected:hover:not(:disabled) { background: #16a34a; border-color: #4ade80; color: #fff; box-shadow: 0 0 0 2px rgba(74,222,128,0.35); }
.sb-choice-summary { margin-top: 0.6rem; font-weight: 700; }
.sb-ended .sb-lineups { margin-top: 0.5rem; }

/* ── Admin page (staff) ── */
.ad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; padding: 0 2rem 2rem; }
.ad-card { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.1rem; min-width: 0; }
.ad-wide { grid-column: 1 / -1; }
.ad-h { font-family: var(--display); font-size: 1.25rem; font-weight: normal; margin: 0 0 0.75rem; }
.ad-cmd { border-top: 1px solid var(--border); padding: 0.6rem 0; }
.ad-cmd summary { cursor: pointer; font-weight: 700; padding: 0.15rem 0; }
.ad-cmd[open] summary { margin-bottom: 0.5rem; }
.ad-field { display: block; margin-bottom: 0.6rem; font-size: 0.78rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.ad-input { display: block; width: 100%; margin-top: 0.3rem; padding: 0.45rem 0.6rem; border-radius: 5px; border: 1px solid var(--border-light);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.88rem; text-transform: none; letter-spacing: normal; font-weight: 400; box-sizing: border-box; }
textarea.ad-input { resize: vertical; }
.ad-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.82rem; line-height: 1.45; }
.ad-checklist { margin-top: 0.3rem; max-height: 240px; overflow-y: auto; padding: 0.3rem 0.6rem; border: 1px solid var(--border-light); border-radius: 5px;
  background: var(--bg); display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0 0.8rem; text-transform: none; letter-spacing: normal; font-weight: 400; color: var(--text); }
.ad-row-between { display: flex; justify-content: space-between; gap: 0.5rem; }
.ad-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.4rem 0 0.6rem; }
.ad-muted { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; text-transform: none; letter-spacing: normal; }
.ad-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.ad-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ad-inline-error { margin-top: 0.4rem; }
.ad-confirm { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.ad-console { width: 720px; }
.ad-out { padding: 0.55rem 0; border-top: 1px solid var(--border); }
.ad-out:first-child { border-top: 0; }
.ad-embed { margin-top: 0.35rem; padding: 0.5rem 0.75rem; border-left: 4px solid var(--border-light); background: var(--bg); border-radius: 4px; }
.ad-embed-title { font-weight: 800; margin-bottom: 0.25rem; }
.ad-embed-field { margin-top: 0.4rem; }
.ad-embed-fname { font-weight: 700; font-size: 0.82rem; }
.ad-history { list-style: none; margin: 0; padding: 0; }
.ad-hist { display: grid; grid-template-columns: 11rem 1fr auto; gap: 0.6rem; align-items: center; padding: 0.45rem 0.3rem; border-top: 1px solid var(--border); cursor: pointer; }
.ad-hist:hover { background: var(--surface-2); }
.ad-hist-cmd { font-weight: 700; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.85rem; }
.ad-hist-status { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
.ad-hist.done .ad-hist-status { color: #4ade80; } .ad-hist.failed .ad-hist-status { color: var(--pink); }
.ad-hist.running .ad-hist-status, .ad-hist.queued .ad-hist-status { color: var(--gold); }

/* Discord-style message preview */
.dc-preview { background: #313338; border-radius: 6px; padding: 0.9rem 1rem; color: #dbdee1; font-family: "gg sans", "Noto Sans", system-ui, sans-serif; margin-top: 0.3rem; }
.dc-msg { display: flex; gap: 0.9rem; }
.dc-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; background: #1e1f22; }
.dc-body { min-width: 0; flex: 1; }
.dc-head { display: flex; align-items: center; gap: 0.35rem; margin-bottom: 0.15rem; }
.dc-name { color: #f2f3f5; font-weight: 600; }
.dc-tag { background: #5865f2; color: #fff; font-size: 0.6rem; font-weight: 700; padding: 0 0.3rem; border-radius: 3px; line-height: 1.35; }
.dc-time { color: #949ba4; font-size: 0.72rem; }
.dc-content { font-size: 0.92rem; line-height: 1.375; overflow-wrap: anywhere; }
.dc-content a { color: #00a8fc; }
.dc-line { min-height: 1.2em; }
.dc-h1 { font-size: 1.5rem; font-weight: 800; margin: 0.4rem 0 0.2rem; } .dc-h2 { font-size: 1.25rem; font-weight: 800; margin: 0.35rem 0 0.15rem; }
.dc-h3 { font-size: 1.05rem; font-weight: 800; margin: 0.3rem 0 0.1rem; } .dc-sub { font-size: 0.75rem; color: #949ba4; }
.dc-quote { border-left: 4px solid #4e5058; padding-left: 0.6rem; }
.dc-list { margin: 0.1rem 0; padding-left: 1.4rem; }
.dc-mention { background: rgba(88,101,242,0.3); color: #c9cdfb; border-radius: 3px; padding: 0 2px; font-weight: 500; }
.dc-ts { background: rgba(255,255,255,0.06); border-radius: 3px; padding: 0 2px; }
.dc-spoiler { background: #1e1f22; color: transparent; border-radius: 3px; } .dc-spoiler:hover { color: inherit; }
.dc-content code { background: #2b2d31; border-radius: 3px; padding: 0 3px; font-size: 0.85em; }
.dc-code { background: #2b2d31; border: 1px solid #1e1f22; border-radius: 4px; padding: 0.5rem; white-space: pre-wrap; font-size: 0.8rem; margin: 0.3rem 0; }
.ad-out .dc-content { color: var(--text); }
@media (max-width: 760px) { .ad-grid { padding: 0 16px 16px; } .ad-editor, .ad-two { grid-template-columns: 1fr; } .ad-hist { grid-template-columns: 1fr auto; } .ad-hist .ad-muted { grid-column: 1 / -1; order: 3; } }

/* ── Predictions ── */
.pred-bar {
  position: relative; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
  padding: 0.5rem 2rem; background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.pred-title { font-family: var(--display); font-size: 1.1rem; }
.pred-status { color: var(--text-muted); flex: 1; min-width: 12rem; }
.pred-actions { display: flex; gap: 0.4rem; align-items: center; }
.pred-actions a.sb-btn { text-decoration: none; }
.match-slot.pred-pickable { cursor: pointer; }
.match-slot.pred-pickable:hover { background: rgba(255,122,26,0.18); }
.match-slot.pred-right { background: rgba(22,163,74,0.35); box-shadow: inset 4px 0 0 #4ade80; }
.match-slot.pred-wrong { background: rgba(227,38,27,0.25); box-shadow: inset 4px 0 0 var(--pink); }
.match-slot.pred-wrong .slot-name span { text-decoration: line-through; }
.pred-pts { position: absolute; top: 2px; right: 3px; font: 800 9px/1 system-ui, sans-serif; color: var(--gold); opacity: 0.85; pointer-events: none; }
.pred-board { top: 120px; }
.pred-list { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.pred-row { display: grid; grid-template-columns: 1.6rem 28px 1fr auto; align-items: center; gap: 0.55rem; padding: 0.45rem 0.2rem; border-top: 1px solid var(--border); cursor: default; }
.pred-row.me { background: var(--blue-dim); }
.pred-board .pred-row:hover { background: var(--surface-2); }
.pred-rank { color: var(--text-muted); font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.pred-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.pred-who { display: flex; flex-direction: column; min-width: 0; }
.pred-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pred-points { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .pred-bar { padding: 0.5rem 16px; } }

/* ── Favorite to win (bracket page / OBS): most-picked champion once predictions lock ── */
.fav-badge {
  position: fixed; right: 16px; z-index: 40; max-width: min(320px, calc(100vw - 32px)); text-align: right;
  padding: 0.6rem 0.9rem 0.65rem; border-radius: 6px; background: rgba(15,11,10,0.9);
  border: 1px solid rgba(255,159,67,0.55); border-top: 2px solid #FF9F43;
  box-shadow: 0 6px 22px rgba(0,0,0,0.55), 0 0 18px rgba(255,159,67,0.25);
}
.fav-badge.hidden { display: none; }
.fav-label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #FFC078; }
.fav-team { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
.fav-share { font-size: 0.75rem; color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ── Owner page ── */
.ow-wrap { padding: 0 2rem 2rem; }
.ow-tabs { display: flex; gap: 0.3rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--border); }
.ow-tab { padding: 0.55rem 0.9rem; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-muted);
  font: inherit; font-weight: 700; cursor: pointer; margin-bottom: -1px; }
.ow-tab:hover { color: var(--text); }
.ow-tab.active { color: var(--text); border-bottom-color: #FF9F43; }
.ow-count { color: #FFC078; font-weight: 800; }
.ow-panel.hidden { display: none; }
.ow-filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 0.6rem; align-items: center; margin-bottom: 0.8rem; }
.ow-filters .ad-input { margin-top: 0; }
.ow-failed { white-space: nowrap; font-size: 0.85rem; }
.ow-table-card { overflow-x: auto; }
.ow-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.ow-table th { text-align: left; color: var(--text-muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.55rem 0.7rem; }
.ow-table td { padding: 0.5rem 0.7rem; border-top: 1px solid var(--border); vertical-align: top; }
.ow-table tr.ow-fail td { background: rgba(227,38,27,0.07); }
.ow-when { white-space: nowrap; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ow-who { white-space: nowrap; }
.ow-who > * { vertical-align: middle; }
.ow-who .pred-avatar { margin-right: 0.45rem; }
.ow-name { font-weight: 700; margin-right: 0.35rem; }
.ow-guest { color: var(--text-muted); font-weight: 600; }
.ow-id { display: block; color: var(--text-muted); font-size: 0.7rem; font-variant-numeric: tabular-nums; }
.ow-src { display: inline-block; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 0.05rem 0.35rem;
  border-radius: 3px; margin-right: 0.4rem; }
.ow-src-site { background: var(--blue-dim); color: var(--blue); }
.ow-src-bot { background: rgba(255,159,67,0.18); color: #FFC078; }
.ow-event { white-space: nowrap; font-weight: 600; }
.ow-badge-fail { margin-left: 0.4rem; font-size: 0.62rem; font-weight: 800; text-transform: uppercase; color: var(--pink); }
.ow-details { overflow-wrap: anywhere; min-width: 16rem; }
.ow-ip { white-space: nowrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.78rem; color: var(--text-muted); }
@media (max-width: 760px) { .ow-wrap { padding: 0 16px 16px; } .ow-filters { grid-template-columns: 1fr 1fr; } .ow-filters #ow-q { grid-column: 1 / -1; } }

/* ══ Ashen panels and controls ══
   Panels get an ember edge along the top and cut corners; controls use condensed caps. */
.modal-panel, .team-popup, .sb-modal, .sb-log, .ad-card, .fav-badge, .sb-bar {
  border-radius: 0;
  border: 1px solid var(--border);
  border-top: 0;
  background: var(--ember) top / 100% 2px no-repeat, linear-gradient(180deg, #170f0d 0%, #0f0a09 100%);
}
.modal-panel, .sb-modal, .ad-card {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%);
}
.modal-overlay { background: rgba(5,2,2,0.78); backdrop-filter: blur(2px); }
.modal-header { border-bottom: 1px solid var(--border); padding-top: 1.15rem; }
.modal-title, .sb-title, .ad-h, .team-popup-name, .pred-title, .fav-team {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.06em;
}
.modal-title { font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.12em; }
.ad-h { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.12em; color: #FFC98A; }
.sb-title { font-size: 1.2rem; }
.team-popup-name { font-size: 1.1rem; }
.pred-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.14em; color: #FFC98A; }
.stat-box, .stats-row { border-radius: 0; border: 0; border-left: 2px solid var(--pink); background: rgba(255,255,255,0.025); }
.stat-label, .stats-row-label, .sb-label, .team-popup-label, .ad-field, .sb-sub {
  font-family: var(--label); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.14em;
}
.stat-value { font-family: var(--label); font-size: 1.25rem; font-weight: 700; color: #FFC98A; }

.search-wrap input, .page-select, .page-btn, .sb-select, .ad-input, .test-switch select {
  border-radius: 0; background: #0c0807; border-color: var(--border-light);
}
.search-wrap input { font-family: 'Barlow', sans-serif; font-size: 0.95rem; padding: 0.55rem 0.9rem; width: 240px; }
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 14px rgba(255,122,26,0.25); }
.lb-meta { font-family: var(--label); font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; }
.page-btn { font-family: var(--label); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.page-btn:hover:not(:disabled) { border-color: var(--blue); color: #FFC98A; background: rgba(255,122,26,0.08); }
.page-select { font-family: var(--label); font-size: 0.9rem; letter-spacing: 0.06em; }
.player-name { font-family: var(--label); font-size: 1.12rem; font-weight: 600; letter-spacing: 0.03em; }
.lb-row:hover .player-name { color: #FFC98A; }
.wins-cell { color: var(--gold) !important; }

.sb-btn {
  border-radius: 0; font-family: var(--label); font-size: 0.92rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  --cut: 6px;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}
.sb-btn.sb-primary { background: linear-gradient(180deg, #FF9440, #E0500C); border-color: #FF7A1A; }
.sb-tab { border-radius: 0; background: #140d0b; }
.sb-board, .sb-error, .sb-notice, .sb-ended, .sb-setlen, .sb-close-prompt, .team-popup-toggle, .team-popup-toggle button { border-radius: 0; }

.test-switch { background: #0d0908; border-bottom: 1px solid var(--border); }
.test-switch label { font-family: var(--label); font-size: 0.85rem; letter-spacing: 0.16em; }
.pred-bar { background: #0d0908; border-bottom: 1px solid var(--border); }

.fav-badge {
  background: var(--ember) top / 100% 2px no-repeat, linear-gradient(180deg, rgba(36,14,9,0.95), rgba(14,8,7,0.95));
  border-color: rgba(255,122,26,0.35);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  box-shadow: none;
  filter: drop-shadow(0 0 16px rgba(255,90,20,0.25));
}
.fav-label { font-family: var(--label); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.22em; color: #FF9A4D; }
.fav-team { font-size: 1.5rem; text-transform: uppercase; background: linear-gradient(180deg, #FFF1DC, #FFB45E 60%, #E3461B); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.ow-tab { font-family: var(--label); font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; }
.ow-tab.active { border-bottom-color: var(--blue); color: #FFC98A; }
.ad-grid { padding: 0 0 2rem; }
.ow-wrap { padding: 0 0 2rem; }
@media (max-width: 760px) {
  .search-wrap input { width: 100%; }
  .nav-links { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
}
