/* SkyLyrics page. Builds on ../css/style.css (same tokens, nav, buttons, cards, footer). */

.sl {
  --lav: #c4b5fd;
  --lav-2: #a78bfa;
  --rose: #f9a8d4;
  --sl-grad: linear-gradient(100deg, #c4b5fd 0%, #a78bfa 45%, #f9a8d4 100%);
}
.sl-grad {
  background: var(--sl-grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.sl main {
  overflow-x: clip;
}
.sl-blob {
  background: radial-gradient(closest-side, rgba(167, 139, 250, 0.26), transparent 70%);
}
kbd {
  font-family: 'Silkscreen', ui-monospace, monospace;
  font-size: 0.8em;
  padding: 0.05em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--border-hi);
  border-bottom-width: 3px;
  color: var(--text);
  background: rgba(8, 20, 48, 0.8);
}

/* ---------- hero ---------- */
.sl-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 44px;
  min-height: calc(100vh - 70px);
  padding: 30px 0 70px;
}
.sl-hero__claim {
  margin: 14px 0 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.sl-hero .hero__lead {
  margin-top: 14px;
}
.sl-hero__status {
  margin: 22px 0 0;
}

/* sky stage: CSS version of the in-game lavender sky with word-by-word lyrics */
.sl-stage {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(196, 181, 253, 0.28);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 90px -20px rgba(167, 139, 250, 0.55);
  isolation: isolate;
}
.sl-stage__sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #2a2154 0%,
    #4b3a8f 22%,
    #8a6cc9 46%,
    #c39ad8 60%,
    #f1b8db 68%,
    #c7a2e0 74%,
    #eab3d9 80%
  );
}
.sl-stage__stars {
  position: absolute;
  inset: 0 0 45% 0;
  width: 100%;
  height: 55%;
}
.sl-stage__band {
  position: absolute;
  left: -10%;
  right: -10%;
  top: 58%;
  height: 16%;
  background: radial-gradient(60% 100% at 50% 50%, rgba(255, 220, 240, 0.55), transparent 70%);
  filter: blur(6px);
}
.sl-stage__ground {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -64%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 200, 235, 0.35), transparent 22%),
    linear-gradient(180deg, #6d8a45 0%, #56713a 30%, #3e5a2c 100%);
  box-shadow: 0 -10px 30px 6px rgba(240, 180, 220, 0.45);
}
.sl-words {
  position: absolute;
  inset: 18% 7% 38% 7%;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 0.15em 0.42em;
  font-size: clamp(18px, 2.7vw, 32px);
  pointer-events: none;
}
.sl-word {
  position: relative;
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow:
    0 2px 0 rgba(60, 40, 110, 0.75),
    0 0 18px rgba(255, 255, 255, 0.45);
  opacity: 0;
  transform: translateY(var(--y, 0)) scale(1.3) rotate(var(--r, 0deg));
  filter: blur(4px);
  transition:
    opacity 0.32s var(--ease),
    transform 0.45s var(--ease),
    filter 0.32s var(--ease);
  will-change: transform, opacity;
}
.sl-word.is-in {
  opacity: 1;
  transform: translateY(var(--y, 0)) scale(1) rotate(var(--r, 0deg));
  filter: none;
}
.sl-word.is-out {
  opacity: 0;
  transform: translateY(calc(var(--y, 0) - 0.8em)) scale(0.92) rotate(var(--r, 0deg));
  filter: blur(2px);
  transition-duration: 0.6s;
}

/* now playing pill (top of the screen in game) */
.sl-pill {
  position: absolute;
  top: 4%;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 92%;
  font-size: clamp(10px, 1.05vw, 12.5px);
  font-weight: 600;
  white-space: nowrap;
}
.sl-pill > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(16, 10, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ede9fe;
}
.sl-pill__song {
  min-width: 0;
}
.sl-pill__cover {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #f9a8d4, #8b5cf6 60%, #312e81);
}
.sl-pill__time {
  color: var(--lav);
  font-variant-numeric: tabular-nums;
}
.sl-pill__line {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 24ch;
}
.sl-pill__fps,
.sl-pill__ping {
  color: #a1a1aa;
}
.sl-pill__ping {
  gap: 2px !important;
}
.sl-pill__ping i {
  display: inline-block;
  width: 3px;
  background: #86efac;
  border-radius: 1px;
}
.sl-pill__ping i:nth-child(1) {
  height: 5px;
}
.sl-pill__ping i:nth-child(2) {
  height: 8px;
}
.sl-pill__ping i:nth-child(3) {
  height: 11px;
  margin-right: 5px;
}
.sl-stage .pixel-hint {
  bottom: 4%;
}

/* ---------- steps ---------- */
.sl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.sl-step {
  position: relative;
  padding: 30px 26px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(148, 197, 255, 0.02));
}
.sl-step__num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: 'Silkscreen', sans-serif;
  font-size: 20px;
  color: #0b0a14;
  background: var(--sl-grad);
  box-shadow: 0 10px 26px -8px rgba(167, 139, 250, 0.8);
}
.sl-step h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.sl-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

/* ---------- features ---------- */
.sl-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sl-feature {
  --mx: 50%;
  --my: 50%;
  position: relative;
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(148, 197, 255, 0.07), rgba(148, 197, 255, 0.02));
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s var(--ease);
}
.sl-feature::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(196, 181, 253, 0.16), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
}
.sl-feature:hover {
  border-color: var(--border-hi);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.sl-feature:hover::before {
  opacity: 1;
}
.sl-feature__icon {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  color: var(--lav);
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(196, 181, 253, 0.3);
  shape-rendering: crispEdges;
}
.sl-feature:nth-child(3n + 2) .sl-feature__icon {
  color: var(--sky);
  background: rgba(125, 211, 252, 0.12);
  border-color: rgba(125, 211, 252, 0.3);
}
.sl-feature:nth-child(3n) .sl-feature__icon {
  color: var(--rose);
  background: rgba(249, 168, 212, 0.12);
  border-color: rgba(249, 168, 212, 0.3);
}
.sl-feature h3 {
  margin: 16px 0 8px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.sl-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- GUI mock ---------- */
.sl-gui {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 48px;
}
.sl-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.sl-theme {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.sl-theme::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 3px;
  background: var(--chip, #8b5cf6);
  vertical-align: -1px;
}
.sl-theme[data-theme='lavender'] {
  --chip: #8b5cf6;
}
.sl-theme[data-theme='midnight'] {
  --chip: #06b6d4;
}
.sl-theme[data-theme='ocean'] {
  --chip: #14b8a6;
}
.sl-theme[data-theme='rose'] {
  --chip: #ec4899;
}
.sl-theme[data-theme='green'] {
  --chip: #1db954;
}
.sl-theme[data-theme='sunset'] {
  --chip: #f59e0b;
}
.sl-theme:hover {
  color: var(--text);
  border-color: var(--border-hi);
}
.sl-theme.is-active {
  color: var(--text);
  border-color: var(--chip);
  background: color-mix(in srgb, var(--chip) 16%, transparent);
}

/* palette per theme (same colours as in the mod) */
.sl-window {
  --w-bg: rgba(14, 11, 22, 0.92);
  --w-side: rgba(7, 5, 12, 0.94);
  --w-card: #1a1426;
  --w-track: #352a4d;
  --w-accent: #8b5cf6;
  --w-accent-l: #a78bfa;
  --w-text: #ede9fe;
  --w-sub: #a1a1aa;
  position: relative;
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--w-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 40px 80px -30px rgba(0, 0, 0, 0.9),
    0 0 80px -30px var(--w-accent);
  color: var(--w-text);
  font-size: 14px;
  transition:
    background 0.4s,
    box-shadow 0.4s;
}
.sl-window[data-theme='midnight'] {
  --w-bg: rgba(10, 16, 32, 0.92);
  --w-side: rgba(6, 10, 22, 0.94);
  --w-card: #111a2e;
  --w-track: #22314f;
  --w-accent: #06b6d4;
  --w-accent-l: #22d3ee;
  --w-text: #e0f2fe;
  --w-sub: #94a3b8;
}
.sl-window[data-theme='ocean'] {
  --w-bg: rgba(6, 20, 26, 0.92);
  --w-side: rgba(3, 11, 15, 0.94);
  --w-card: #0d2129;
  --w-track: #1c3d48;
  --w-accent: #14b8a6;
  --w-accent-l: #2dd4bf;
  --w-text: #e6fffa;
  --w-sub: #94a9a8;
}
.sl-window[data-theme='rose'] {
  --w-bg: rgba(22, 11, 18, 0.92);
  --w-side: rgba(12, 5, 10, 0.94);
  --w-card: #26141f;
  --w-track: #4a2a3c;
  --w-accent: #ec4899;
  --w-accent-l: #f472b6;
  --w-text: #fce7f3;
  --w-sub: #b4a1aa;
}
.sl-window[data-theme='green'] {
  --w-bg: rgba(11, 11, 11, 0.92);
  --w-side: rgba(0, 0, 0, 0.94);
  --w-card: #181818;
  --w-track: #2e2e2e;
  --w-accent: #1db954;
  --w-accent-l: #1ed760;
  --w-text: #ffffff;
  --w-sub: #b3b3b3;
}
.sl-window[data-theme='sunset'] {
  --w-bg: rgba(20, 14, 8, 0.92);
  --w-side: rgba(10, 7, 4, 0.94);
  --w-card: #241a10;
  --w-track: #4a3622;
  --w-accent: #f59e0b;
  --w-accent-l: #fbbf24;
  --w-text: #fff7ed;
  --w-sub: #b8a99a;
}
.sl-window__side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 10px;
  background: var(--w-side);
  transition: background 0.4s;
}
.sl-window__logo {
  margin: 0 8px 12px;
  font-family: 'Silkscreen', sans-serif;
  font-size: 13px;
  color: var(--w-accent-l);
}
.sl-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--w-sub);
  font-size: 13px;
  font-weight: 600;
}
.sl-nav i {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}
.sl-nav.is-active {
  color: var(--w-text);
  background: color-mix(in srgb, var(--w-accent) 22%, transparent);
  box-shadow: inset 3px 0 0 var(--w-accent);
}
.sl-nav.is-active i {
  background: var(--w-accent-l);
  opacity: 1;
}
.sl-window__main {
  padding: 22px 24px;
}
.sl-window__label {
  margin: 0 0 12px;
  font-family: 'Silkscreen', sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--w-sub);
}
.sl-player {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: var(--w-card);
  transition: background 0.4s;
}
.sl-player__cover {
  width: 96px;
  height: 96px;
  flex: none;
  border-radius: 10px;
  background:
    radial-gradient(60% 60% at 30% 25%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(135deg, var(--w-accent-l), var(--w-accent) 45%, #1e1b4b);
  box-shadow: 0 14px 30px -12px var(--w-accent);
  transition: background 0.4s;
}
.sl-player__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sl-player__meta strong {
  font-size: 20px;
  letter-spacing: -0.01em;
}
.sl-player__meta span {
  color: var(--w-sub);
}
.sl-player__album {
  font-size: 12.5px;
  opacity: 0.8;
}
.sl-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 2px 0;
  color: var(--w-sub);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.sl-progress__bar {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: var(--w-track);
  transition: background 0.4s;
}
.sl-progress__bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 22%;
  border-radius: inherit;
  background: var(--w-accent-l);
}
.sl-progress__bar i::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  width: 11px;
  height: 11px;
  translate: 0 -50%;
  border-radius: 50%;
  background: var(--w-text);
}
.sl-controls {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.sl-ctl {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--w-card);
  transition: background 0.4s;
}
.sl-ctl svg {
  width: 14px;
  height: 14px;
  fill: var(--w-text);
  shape-rendering: crispEdges;
}
.sl-ctl--play {
  width: 46px;
  height: 46px;
  background: var(--w-accent);
}
.sl-ctl--play svg {
  fill: #fff;
}
.sl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.sl-chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--w-sub);
  background: var(--w-card);
  transition: background 0.4s;
}

/* ---------- screenshots ---------- */
.sl-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.sl-shot {
  --mx: 50%;
  --my: 50%;
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f0d1a;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s,
    box-shadow 0.35s var(--ease);
}
.sl-shot--wide {
  grid-column: span 2;
}
.sl-shot img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.sl-shot:hover {
  border-color: var(--border-hi);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.sl-shot:hover img {
  transform: scale(1.03);
}
.sl-shot figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(5, 10, 24, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- privacy ---------- */
.sl-privacy {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(59, 130, 246, 0.14), transparent 60%),
    var(--surface);
}
.sl-checks {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sl-checks li {
  position: relative;
  padding: 14px 16px 14px 48px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(5, 10, 24, 0.45);
  color: var(--muted);
  font-size: 15px;
}
.sl-checks li::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background:
    linear-gradient(#0b0a14, #0b0a14) 5px 9px / 3px 3px no-repeat,
    linear-gradient(#0b0a14, #0b0a14) 8px 6px / 3px 3px no-repeat,
    linear-gradient(#0b0a14, #0b0a14) 11px 3px / 3px 3px no-repeat,
    linear-gradient(#0b0a14, #0b0a14) 2px 6px / 3px 3px no-repeat,
    var(--green);
  box-shadow: 0 0 12px rgba(134, 239, 172, 0.45);
}

/* ---------- requirements + download ---------- */
.sl-end {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding-top: 0;
}
.sl-req,
.sl-download {
  padding: 36px;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.sl-req h2,
.sl-download h2 {
  font-size: clamp(28px, 3.2vw, 40px);
}
.sl-req__list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.sl-req__list li {
  display: grid;
  grid-template-columns: 124px 1fr;
  align-items: center;
  gap: 14px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}
.sl-req__list .tag {
  text-align: center;
}
.sl-download {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  background:
    radial-gradient(500px 260px at 100% 0%, rgba(249, 168, 212, 0.14), transparent 60%),
    radial-gradient(500px 260px at 0% 100%, rgba(167, 139, 250, 0.16), transparent 60%),
    var(--surface);
}
.sl-download p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.sl-download .btn {
  margin-top: auto;
}

/* ---------- sky presets in the preview (same names and moods as in the mod) ---------- */
.sl-hero__visual {
  min-width: 0;
}
.sl-stage__sky > * {
  transition: opacity 0.8s var(--ease);
}
.sl-stage__sky {
  transition: background 0.8s var(--ease);
}
.sl-stage__nebula,
.sl-stage__milky,
.sl-stage__aurora,
.sl-stage__sun,
.sl-stage__shooting {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.sl-stage__nebula {
  inset: 0 0 30% 0;
  background:
    radial-gradient(38% 30% at 28% 30%, rgba(236, 72, 153, 0.55), transparent 70%),
    radial-gradient(34% 34% at 70% 22%, rgba(139, 92, 246, 0.6), transparent 70%),
    radial-gradient(30% 22% at 55% 48%, rgba(56, 189, 248, 0.35), transparent 70%);
  filter: blur(6px);
}
.sl-stage__milky {
  left: -20%;
  right: -20%;
  top: 4%;
  height: 34%;
  rotate: -14deg;
  background: radial-gradient(50% 50% at 50% 50%, rgba(226, 232, 255, 0.32), transparent 70%);
  filter: blur(8px);
}
.sl-stage__aurora {
  inset: 4% -10% 34% -10%;
}
.sl-stage__aurora i {
  position: absolute;
  left: 0;
  right: 0;
  height: 34%;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.75), rgba(45, 212, 191, 0.55), rgba(167, 139, 250, 0.45), transparent);
  filter: blur(12px);
  animation: aurora 9s ease-in-out infinite alternate;
}
.sl-stage__aurora i:nth-child(1) {
  top: 8%;
}
.sl-stage__aurora i:nth-child(2) {
  top: 30%;
  opacity: 0.7;
  animation-duration: 12s;
  animation-delay: -4s;
}
.sl-stage__aurora i:nth-child(3) {
  top: 50%;
  opacity: 0.45;
  animation-duration: 15s;
  animation-delay: -8s;
}
@keyframes aurora {
  0% {
    transform: translateX(-8%) skewX(-12deg) scaleY(0.8);
  }
  100% {
    transform: translateX(8%) skewX(10deg) scaleY(1.25);
  }
}
.sl-stage__sun {
  left: 20%;
  right: 20%;
  top: 46%;
  height: 34%;
  background: radial-gradient(50% 50% at 50% 60%, rgba(255, 214, 140, 0.95), rgba(255, 150, 90, 0.45) 45%, transparent 75%);
}
.sl-stage__shooting {
  top: 14%;
  left: 70%;
  width: 90px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.95), transparent);
  rotate: 160deg;
}

/* dusk = default lavender sky above */
.sl-stage[data-sky='sunset'] .sl-stage__sky {
  background: linear-gradient(180deg, #34195a 0%, #6e2b78 22%, #b8457d 42%, #ec7d5e 58%, #ffb877 67%, #f59b7c 74%, #e5869d 80%);
}
.sl-stage[data-sky='sunset'] .sl-stage__sun {
  opacity: 1;
}
.sl-stage[data-sky='sunset'] .sl-stage__stars {
  opacity: 0.25;
}
.sl-stage[data-sky='nebula'] .sl-stage__sky {
  background: linear-gradient(180deg, #0d0720 0%, #1d0d3d 30%, #3a1660 55%, #6b2a7e 68%, #a34d8f 74%, #7b3b86 80%);
}
.sl-stage[data-sky='nebula'] .sl-stage__nebula {
  opacity: 1;
}
.sl-stage[data-sky='aurora'] .sl-stage__sky {
  background: linear-gradient(180deg, #030a18 0%, #071a33 30%, #0c2c4a 55%, #134a5a 68%, #1d6b66 74%, #154b55 80%);
}
.sl-stage[data-sky='aurora'] .sl-stage__aurora {
  opacity: 1;
}
.sl-stage[data-sky='night'] .sl-stage__sky {
  background: linear-gradient(180deg, #01030b 0%, #060d26 35%, #0d1a44 60%, #1b2d63 70%, #26386e 76%, #1a2a58 80%);
}
.sl-stage[data-sky='night'] .sl-stage__milky,
.sl-stage[data-sky='night'] .sl-stage__shooting {
  opacity: 1;
}
.sl-stage[data-sky='night'] .sl-stage__shooting {
  animation: shoot 4.5s ease-in 1s infinite;
}
@keyframes shoot {
  0% {
    translate: 0 0;
    opacity: 0;
  }
  4% {
    opacity: 1;
  }
  16%,
  100% {
    translate: -260px 90px;
    opacity: 0;
  }
}
.sl-stage[data-sky='nebula'] .sl-stage__band,
.sl-stage[data-sky='aurora'] .sl-stage__band,
.sl-stage[data-sky='night'] .sl-stage__band {
  opacity: 0.25;
}
.sl-stage[data-sky='aurora'] .sl-stage__ground,
.sl-stage[data-sky='night'] .sl-stage__ground,
.sl-stage[data-sky='nebula'] .sl-stage__ground {
  filter: brightness(0.42) saturate(0.85);
}
.sl-stage[data-sky='sunset'] .sl-stage__ground {
  filter: brightness(0.85) sepia(0.15);
}
.sl-stage__ground {
  transition: filter 0.8s var(--ease);
}

.sl-skies {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}
.sl-sky {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}
.sl-sky::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 3px;
  vertical-align: -1px;
  background: var(--swatch);
}
.sl-sky[data-sky='dusk'] {
  --swatch: linear-gradient(180deg, #4b3a8f, #f1b8db);
}
.sl-sky[data-sky='sunset'] {
  --swatch: linear-gradient(180deg, #6e2b78, #ffb877);
}
.sl-sky[data-sky='nebula'] {
  --swatch: linear-gradient(135deg, #8b5cf6, #ec4899);
}
.sl-sky[data-sky='aurora'] {
  --swatch: linear-gradient(180deg, #071a33, #34d399);
}
.sl-sky[data-sky='night'] {
  --swatch: linear-gradient(180deg, #01030b, #26386e);
}
.sl-sky:hover {
  color: var(--text);
  border-color: var(--border-hi);
}
.sl-sky.is-active {
  color: var(--text);
  border-color: rgba(196, 181, 253, 0.6);
  background: rgba(167, 139, 250, 0.14);
}

/* ---------- in-game screenshot ---------- */
.sl-ingame {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 40px;
}
.sl-ingame__list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.sl-ingame__list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 15.5px;
}
.sl-ingame__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--sl-grad);
}

/* ---------- official Spotify player ---------- */
.sl-listen {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 40px;
}
.sl-listen__player {
  padding: 14px;
  border-radius: 26px;
  border: 1px solid var(--border);
  background:
    radial-gradient(400px 200px at 0% 0%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(400px 200px at 100% 100%, rgba(29, 185, 84, 0.12), transparent 60%),
    var(--surface);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  rotate: x calc((1 - var(--p-in, 1)) * 16deg);
  scale: calc(0.94 + var(--p-in, 1) * 0.06);
}
.sl-listen__player iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
}
.sl-listen {
  perspective: 1200px;
}

/* ---------- sound button (original demo melody, Web Audio) ---------- */
.sl-sound {
  position: absolute;
  z-index: 3;
  left: 4%;
  bottom: 4%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(16, 10, 30, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ede9fe;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s,
    border-color 0.25s,
    transform 0.25s var(--ease);
}
.sl-sound:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.6);
}
.sl-sound svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sl-sound__on,
.sl-sound[aria-pressed='true'] .sl-sound__off {
  display: none;
}
.sl-sound[aria-pressed='true'] .sl-sound__on {
  display: block;
}
.sl-sound[aria-pressed='true'] {
  color: #0b0a14;
  border-color: transparent;
  background: var(--sl-grad);
  box-shadow: 0 10px 30px -8px rgba(167, 139, 250, 0.8);
}
.sl-sound__eq {
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}
.sl-sound[aria-pressed='true'] .sl-sound__eq {
  display: inline-flex;
}
.sl-sound__eq i {
  width: 3px;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
  transform-origin: bottom;
  animation: eq 0.9s ease-in-out infinite;
}
.sl-sound__eq i:nth-child(2) {
  animation-delay: -0.3s;
}
.sl-sound__eq i:nth-child(3) {
  animation-delay: -0.6s;
}
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
.sl-stage .pixel-hint {
  left: auto;
  right: 4%;
  translate: none;
}
/* a soft light pulse on every word when the melody plays */
.sl-word.is-hit {
  text-shadow:
    0 2px 0 rgba(60, 40, 110, 0.75),
    0 0 26px rgba(255, 255, 255, 0.85),
    0 0 50px rgba(196, 181, 253, 0.7);
}

/* ---------- scroll animations ----------
   skylyrics.js writes --p-in (0 when an element enters at the bottom, 1 when it is well inside),
   --p (0..1 across the whole pass) and --p-out (0..1 while it leaves at the top). Defaults = final state,
   so nothing moves without JS or with reduced motion. Individual transform properties (scale, rotate,
   translate) are used so they combine with the reveal transition instead of fighting it. */
.sl-scrollbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}
.sl-scrollbar i {
  display: block;
  height: 100%;
  background: var(--sl-grad);
  box-shadow: 0 0 12px rgba(196, 181, 253, 0.8);
  transform: scaleX(var(--sp, 0));
  transform-origin: left;
}

.sl-hero {
  perspective: 1400px;
}
.sl-stage {
  rotate: x calc(var(--p-out, 0) * 22deg);
  scale: calc(1 - var(--p-out, 0) * 0.12);
  translate: 0 calc(var(--p-out, 0) * 60px);
  transform-origin: 50% 0%;
}
.sl-stage .sl-words {
  translate: 0 calc(var(--p-out, 0) * -40px);
}

.sl-steps {
  position: relative;
}
.sl-steps__line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 52px;
  height: 2px;
  border-radius: 2px;
  background: rgba(196, 181, 253, 0.14);
  pointer-events: none;
}
.sl-steps__line i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sl-grad);
  box-shadow: 0 0 14px rgba(196, 181, 253, 0.7);
  transform: scaleX(calc(var(--p-in, 1) * 1.15 - 0.15));
  transform-origin: left;
}
.sl-step {
  z-index: 1;
}
.sl-step__num {
  scale: calc(0.6 + var(--p-in, 1) * 0.4);
}

.sl-marquee {
  overflow: hidden;
  padding: 18px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.08), rgba(59, 130, 246, 0.06), rgba(249, 168, 212, 0.08));
  rotate: -1.5deg;
  margin: 10px -20px;
}
.sl-marquee__track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  font-family: 'Silkscreen', sans-serif;
  font-size: clamp(22px, 3.6vw, 44px);
  text-transform: uppercase;
  white-space: nowrap;
  translate: calc(var(--p, 0.5) * -38%) 0;
}
.sl-marquee__track span:nth-of-type(odd) {
  background: var(--sl-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sl-marquee__track span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px rgba(196, 181, 253, 0.6);
}
.sl-marquee__track b {
  color: var(--lav);
  font-weight: 400;
  font-size: 0.6em;
}

.sl-feature.reveal {
  transform: translateY(46px) scale(0.94) rotate(-1.5deg);
}
.sl-feature.reveal:nth-child(3n + 2) {
  transform: translateY(46px) scale(0.94);
}
.sl-feature.reveal:nth-child(3n) {
  transform: translateY(46px) scale(0.94) rotate(1.5deg);
}
.sl-feature.reveal.is-visible {
  transform: none;
}

.sl-gui {
  perspective: 1400px;
}
.sl-window {
  rotate: y calc((1 - var(--p-in, 1)) * -18deg);
  translate: calc((1 - var(--p-in, 1)) * 60px) 0;
}
.sl-nav {
  opacity: calc(var(--p-in, 1) * 3 - var(--n, 0) * 0.25);
  translate: calc((1 - min(1, var(--p-in, 1) * 1.6)) * -24px) 0;
}
.sl-nav:nth-of-type(2) {
  --n: 1;
}
.sl-nav:nth-of-type(3) {
  --n: 2;
}
.sl-nav:nth-of-type(4) {
  --n: 3;
}
.sl-nav:nth-of-type(5) {
  --n: 4;
}
.sl-nav:nth-of-type(6) {
  --n: 5;
}
.sl-nav:nth-of-type(7) {
  --n: 6;
}
.sl-nav:nth-of-type(8) {
  --n: 7;
}
.sl-nav:nth-of-type(9) {
  --n: 8;
}

.sl-shot {
  clip-path: inset(calc((1 - var(--p-in, 1)) * 10%) round var(--radius));
}
.sl-shot img {
  scale: calc(1.18 - var(--p-in, 1) * 0.18);
}
.sl-shot:hover img {
  transform: scale(1.03);
}

.sl-checks li {
  opacity: 0;
  translate: 30px 0;
  transition:
    opacity 0.7s var(--ease),
    translate 0.7s var(--ease);
}
.sl-privacy.is-visible .sl-checks li {
  opacity: 1;
  translate: 0 0;
}
.sl-checks li:nth-child(2) {
  transition-delay: 0.1s;
}
.sl-checks li:nth-child(3) {
  transition-delay: 0.2s;
}
.sl-checks li:nth-child(4) {
  transition-delay: 0.3s;
}
.sl-checks li:nth-child(5) {
  transition-delay: 0.4s;
}
.no-js .sl-checks li {
  opacity: 1;
  translate: none;
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sl-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
    text-align: center;
  }
  .sl-hero .hero__lead {
    margin-inline: auto;
  }
  /* like the skin on the home page: the picture goes first on narrow screens */
  .sl-hero__visual {
    order: -1;
  }
  .sl-ingame,
  .sl-listen {
    grid-template-columns: 1fr;
  }
  .sl-hero .hero__actions,
  .sl-hero .stats {
    justify-content: center;
  }
  .sl-steps,
  .sl-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .sl-steps > :last-child {
    grid-column: span 2;
  }
  .sl-gui,
  .sl-privacy,
  .sl-end {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .sl-steps,
  .sl-features,
  .sl-shots {
    grid-template-columns: 1fr;
  }
  .sl-steps > :last-child,
  .sl-shot--wide {
    grid-column: span 1;
  }
  .sl-stage {
    aspect-ratio: 4 / 3.4;
  }
  .sl-pill__fps,
  .sl-pill__ping {
    display: none !important;
  }
  .sl-stage .pixel-hint {
    display: none;
  }
  .sl-window {
    grid-template-columns: 52px 1fr;
    min-height: 0;
  }
  /* like the mod's "icons only" sidebar */
  .sl-window__logo {
    display: none;
  }
  .sl-nav {
    font-size: 0;
    justify-content: center;
    padding: 9px 0;
  }
  .sl-window__main {
    padding: 16px;
  }
  .sl-player {
    gap: 12px;
    padding: 12px;
  }
  .sl-player__cover {
    width: 64px;
    height: 64px;
  }
  .sl-player__meta strong {
    font-size: 17px;
  }
  .sl-privacy,
  .sl-req,
  .sl-download {
    padding: 26px 20px;
  }
  .sl-req__list li {
    grid-template-columns: 104px 1fr;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-checks li {
    opacity: 1;
    translate: none;
  }
  .sl-feature.reveal,
  .sl-feature.reveal:nth-child(3n + 2),
  .sl-feature.reveal:nth-child(3n) {
    transform: none;
  }
}
