/* 简洁版 (11-24). The same pages without the light show, in the spirit of 101play: a flat deep-plum room, thin lines
   instead of glows, colour only where it means something (the light: 继续 / 慢一点 / 停). Cheaper on phones: no WebGL
   field (app.js never starts it, or pauses it), no grain, looping decorations play once and stop, no glow layers.
   Everything below the switch applies only under html[data-lite], which lite.js sets before the first paint. */

/* The switch in the header, both versions. */
.lite-toggle { flex: none; min-height: 32px; padding: 0 11px; border: 1px solid #ffffff26; border-radius: 999px; background: none; color: #f0d9e3b3;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; cursor: pointer; }
.lite-toggle:hover { color: #fff; border-color: #ffffff4d; }
.lite-toggle[aria-pressed="true"] { border-color: #ff8fb1; color: #ffd7e2; background: #ff8fb11a; }

/* Ground: flat plum, a soft top light; the room tints with its light like 101's green / yellow / red screen. */
/* The colour sits on html, not body: an opaque body paints over the z-index -1 field, which hid the tint (and the glows). */
html[data-lite] { background: #140a13 !important; }
html[data-lite] body { background: transparent !important; }
/* The light's colours are registered properties, so 继续 / 慢一点 / 停 ease from one to the next (11-24): a gradient
   itself cannot transition, and the old rules jumped. Browsers without @property still switch, just at once. */
@property --lite-c1 { syntax: '<color>'; inherits: true; initial-value: #2b1328; }
@property --lite-c2 { syntax: '<color>'; inherits: true; initial-value: #180c17; }
@property --lite-c3 { syntax: '<color>'; inherits: true; initial-value: #120911; }
@property --lite-a { syntax: '<color>'; inherits: true; initial-value: #7a2457; }
@property --lite-b { syntax: '<color>'; inherits: true; initial-value: #3c2470; }
html[data-lite] .night-field { --lite-c1: #2b1328; --lite-c2: #180c17; --lite-c3: #120911;
  background: radial-gradient(140% 70% at 50% 0%, var(--lite-c1) 0%, var(--lite-c2) 55%, var(--lite-c3) 100%) !important;
  transition: --lite-c1 .8s ease, --lite-c2 .8s ease, --lite-c3 .8s ease, --lite-a .8s ease, --lite-b .8s ease; }
html[data-lite] .night-field .night-canvas { display: none !important; }
html[data-lite] body:has(.room-stage[data-cue]:not([data-cue=""])) .night-field, html[data-lite] body:has(.watch-stage[data-cue]:not([data-cue=""])) .night-field {
  background: radial-gradient(130% 75% at 50% 28%, var(--lite-c1) 0%, var(--lite-c2) 64%, var(--lite-c3) 100%) !important; }
html[data-lite] body:has(.room-stage[data-cue="fast"]) .night-field, html[data-lite] body:has(.watch-stage[data-cue="fast"]) .night-field { --lite-c1: #5e1a3b; --lite-c2: #1f0b19; --lite-c3: #130911; }
html[data-lite] body:has(.room-stage[data-cue="slow"]) .night-field, html[data-lite] body:has(.watch-stage[data-cue="slow"]) .night-field { --lite-c1: #5c2d17; --lite-c2: #200f12; --lite-c3: #130a0f; }
html[data-lite] body:has(.room-stage[data-cue="stop"]) .night-field, html[data-lite] body:has(.watch-stage[data-cue="stop"]) .night-field { --lite-c1: #2d2262; --lite-c2: #130e26; --lite-c3: #0d0a17; }

/* A little life behind the page (11-24): two soft glows drift slowly, and in a round they take the light's colour.
   Only transform is animated, on two layers of their own: no repaint per frame. On a still page (首页, 大厅) the
   compositor moves them with no main-thread work; in a round, where the page draws anyway, Chrome ticks them with each
   frame: measured at 4x CPU throttle, a round's main thread ~100 → ~110 ms/s (the effects version: ~775). */
html[data-lite] .night-field { --lite-a: #7a2457; --lite-b: #3c2470; overflow: hidden; }
html[data-lite] body:has(.room-stage[data-cue="fast"]) .night-field, html[data-lite] body:has(.watch-stage[data-cue="fast"]) .night-field { --lite-a: #a3285f; --lite-b: #6d1f4a; }
html[data-lite] body:has(.room-stage[data-cue="slow"]) .night-field, html[data-lite] body:has(.watch-stage[data-cue="slow"]) .night-field { --lite-a: #a8502a; --lite-b: #6b2c1c; }
html[data-lite] body:has(.room-stage[data-cue="stop"]) .night-field, html[data-lite] body:has(.watch-stage[data-cue="stop"]) .night-field { --lite-a: #4f3fb0; --lite-b: #2c2373; }
html[data-lite] .night-field::before, html[data-lite] .night-field::after { content: ""; position: absolute; width: 72vmax; height: 72vmax; border-radius: 50%;
  pointer-events: none; will-change: transform; opacity: .5; background: radial-gradient(closest-side, var(--lite-a), transparent); transition: opacity .6s; }
html[data-lite] .night-field::before { left: -26vmax; top: -30vmax; animation: lite-drift-a 24s ease-in-out infinite alternate !important; }
html[data-lite] .night-field::after { right: -30vmax; bottom: -32vmax; opacity: .45; background: radial-gradient(closest-side, var(--lite-b), transparent);
  animation: lite-drift-b 31s ease-in-out infinite alternate !important; }
@keyframes lite-drift-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(30%, 36%, 0) scale(1.18); } }
@keyframes lite-drift-b { 0% { transform: translate3d(0, 0, 0) scale(1.08); } 100% { transform: translate3d(-33%, -28%, 0) scale(.92); } }
@media (prefers-reduced-motion: reduce) { html[data-lite] .night-field::before, html[data-lite] .night-field::after { animation: none !important; } }

/* Motion: loops play once and stop (one-shot pieces such as a flying card or a banner still play, they carry words).
   No glow on type. */
html[data-lite] *, html[data-lite] *::before, html[data-lite] *::after { animation-iteration-count: 1 !important; text-shadow: none !important; }

/* Decoration layers: gone. */
html[data-lite] .beat-veil, html[data-lite] .stage-fx, html[data-lite] .fx-layer, html[data-lite] .watch-fx, html[data-lite] .hall-lights,
html[data-lite] .sheen, html[data-lite] .heat-fill::before, html[data-lite] .heat-fill::after, html[data-lite] .light-ripple,
html[data-lite] .start-button::after, html[data-lite] .lead-sprint.on::after, html[data-lite] .big-button::before, html[data-lite] .big-button::after,
html[data-lite] .room-stage .stage-content::before, html[data-lite] .light .light-halo, html[data-lite] .watch-light .light-halo, html[data-lite] .signal-glow,
html[data-lite] .room-stage[data-cue="stop"]::after { display: none !important; }
html[data-lite] .meet-orb { box-shadow: none !important; }

/* Glows become lines. */
html[data-lite] .lead-cue[aria-pressed="true"], html[data-lite] .big-button, html[data-lite] .lead-sprint, html[data-lite] .chat-send, html[data-lite] .ps-avatar,
html[data-lite] .heat .heat-fill, html[data-lite] .heat .heat-track, html[data-lite] .start-button, html[data-lite] .beat-ticks i.on, html[data-lite] .room-stage .progress span,
html[data-lite] .heat[data-zone="edge"] .heat-track, html[data-lite] .heat-edge, html[data-lite] .vc-orb, html[data-lite] .button.primary, html[data-lite] .tempo-thumb { box-shadow: none !important; }
html[data-lite] .heat .heat-track { border: 1px solid #ffffff1f !important; }
html[data-lite] .beat-ticks i.on { background: var(--tick, #ff6f9c); }
html[data-lite] .tempo-thumb { width: 4px; }

/* Surfaces: a slightly lighter plum with a hairline, like 101's cards. */
/* The 公屏 is already solid (talk.css), the same in both versions. */
html[data-lite] .room-talk .chat-scroll, html[data-lite] .watch-panel .chat-scroll { -webkit-mask-image: none !important; mask-image: none !important; }
html[data-lite] .lead-tile, html[data-lite] .rail-chip, html[data-lite] .hall-chip, html[data-lite] .chat-compose, html[data-lite] .lead-auto,
html[data-lite] .tempo-bar, html[data-lite] .room-safety .button, html[data-lite] .cheer { border: 1px solid #ffffff1a !important; }
html[data-lite] .voice-card, html[data-lite] .hall-me, html[data-lite] .watch-row, html[data-lite] .social-panel, html[data-lite] .start-button { border: 1px solid #ffffff1f !important; }

/* Type: the big word keeps its size and colour, without the halo. */
html[data-lite] .cue-word, html[data-lite] .watch-cue { filter: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html[data-lite] .lead-cue, html[data-lite] .lead-tile, html[data-lite] .big-button { transition-duration: .12s !important; }
}
