/* Low Performance mode. low-perf.js puts .low-perf on <html>.
   Everything that moves jumps straight to where it would end, the way the
   reduced-motion blocks do it, and glass blur goes (every blurred panel
   already has a near-solid background). */
html.low-perf *, html.low-perf *::before, html.low-perf *::after {
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  animation-delay: 0s !important;
  transition-duration: 0s !important;
  transition-delay: 0s !important;
  scroll-behavior: auto !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

/* The top-bar switch */
.lowperf-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2rem; height: 2rem; padding: 0; flex-shrink: 0;
  border: 1px solid var(--border2); border-radius: 999px;
  background: var(--surface2); color: var(--text); font: inherit; cursor: pointer;
}
.lowperf-toggle:hover, .lowperf-toggle:focus-visible { border-color: var(--accent); outline: none; }
.lowperf-toggle[aria-pressed="true"] { border-color: var(--green); background: #0f2518; }
.lowperf-icon { font-size: .95rem; line-height: 1; }
.lowperf-note {
  position: fixed; top: 62px; right: 1rem; z-index: 2000;
  padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--border2);
  background: var(--surface2); color: var(--text); font-size: .8rem; font-weight: 700;
  box-shadow: 0 6px 18px rgba(0,0,0,.45); pointer-events: none;
}
@media (max-width: 600px) { .lowperf-toggle { width: 1.7rem; height: 1.7rem; } .lowperf-icon { font-size: .85rem; } }

/* Home: the featured stream waits for a tap */
.home-featured-tile {
  width: 100%; height: 100%; min-height: 12rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem;
  border: 1px solid var(--border2); border-radius: inherit; background: var(--surface2);
  color: var(--text); font: inherit; cursor: pointer;
}
.home-featured-tile:hover, .home-featured-tile:focus-visible { border-color: var(--accent); outline: none; }
.home-featured-tile img { width: 64px; height: 64px; border-radius: 50%; }
.home-featured-play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 50%; background: #9146ff; color: #fff; font-size: 1.2rem;
}

/* Leaderboards: the "Show more" row */
.lowperf-more td { text-align: center; padding: .75rem; }
.lowperf-more small { color: var(--muted); margin-left: .35rem; }
