/* ============================================================
   RCKT Overlays — shared rendering baseline
   Loaded by every overlay (OBS browser source).
   Deliberately narrow: it must never change an overlay's layout,
   colours or backgrounds, only how text and media render.
   ============================================================ */

html {
  /* Keep OBS from applying a mobile text-scale heuristic at 1080p */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* Crisper glyph edges against video compression */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* No selection highlight or drag ghost on stream */
::selection {
  background: transparent;
}

img,
svg {
  -webkit-user-drag: none;
  user-select: none;
}

/* Live timers, counters and scores must not jitter as digits change.
   Tabular figures give every digit the same advance width, so a 1 -> 8
   update no longer shifts the rest of the line. */
.timer,
#timer,
[class*="timer" i],
[class*="count" i],
[class*="clock" i],
[class*="score" i],
[class*="stat" i],
[class*="time" i] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv01" 1;
}

/* Same treatment for plain numeric readouts that opt in */
[data-tnum] {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* Overlays are viewed at stream scale — keep hairlines from
   collapsing to invisible at 720p downscales. */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
