@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --pad: clamp(16px, 2.6vw, 40px);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .14);
  --hairline: rgba(255, 255, 255, .1);
  --ink: #fff;
  --ink-dim: rgba(255, 255, 255, .66);
  --ink-faint: rgba(255, 255, 255, .42);
  --snap: cubic-bezier(.2, .9, .25, 1.15);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

*, *:before, *:after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 13px;
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

button:focus-visible, input:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
}

/* Background & Loadscreens */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050505;
}

.ls-show {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.ls-show.in { opacity: 1; }

.ls {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.ls.in { opacity: 1; }

.ls-glow {
  display: none;
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: fill;
}
.ls.sides .ls-glow, .ls.ends .ls-glow { display: block; }
.ls-fill { position: absolute; }
.ls-frame {
  position: absolute;
  animation: ls-push linear both;
  will-change: transform;
}
.ls-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  user-select: none;
  -webkit-user-select: none;
}

.ls.sides .ls-art {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.ls.ends .ls-art {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
}

.ls-ext {
  display: none;
  position: absolute;
  pointer-events: none;
}
.ls.mirror .ls-ext { display: flex; }
.ls-ext img {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
}
.ls-ext[data-axis=x] { top: 0; left: -100%; width: 300%; height: 100%; flex-direction: row; }
.ls-ext[data-axis=x] .a, .ls-ext[data-axis=x] .c { transform: scaleX(-1); }
.ls-ext[data-axis=y] { left: 0; top: -100%; width: 100%; height: 300%; flex-direction: column; }
.ls-ext[data-axis=y] .a, .ls-ext[data-axis=y] .c { transform: scaleY(-1); }
.ls-ext.heavy[data-axis=x] { -webkit-mask-image: linear-gradient(to right, transparent 2%, #000 16%, #000 84%, transparent 98%); mask-image: linear-gradient(to right, transparent 2%, #000 16%, #000 84%, transparent 98%); }
.ls-ext.heavy[data-axis=y] { -webkit-mask-image: linear-gradient(to bottom, transparent 2%, #000 16%, #000 84%, transparent 98%); mask-image: linear-gradient(to bottom, transparent 2%, #000 16%, #000 84%, transparent 98%); }
.ls-ext.light[data-axis=x] { -webkit-mask-image: linear-gradient(to right, transparent 29%, #000 34.5%, #000 65.5%, transparent 71%); mask-image: linear-gradient(to right, transparent 29%, #000 34.5%, #000 65.5%, transparent 71%); }
.ls-ext.light[data-axis=y] { -webkit-mask-image: linear-gradient(to bottom, transparent 25%, #000 35%, #000 65%, transparent 75%); mask-image: linear-gradient(to bottom, transparent 25%, #000 35%, #000 65%, transparent 75%); }

@keyframes ls-push {
  0% { transform: scale(1) translate(0); }
  100% { transform: scale(1.03) translate(var(--drift, 0)); }
}

.bg-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(ellipse 70% 60% at 50% 48%, #0d0d0f, #000 70%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .9s var(--ease), visibility 0s linear .9s;
}
.bg-card.on {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease), visibility 0s;
}
.bg-card-logo {
  width: auto;
  height: auto;
  max-width: min(44vw, 560px);
  max-height: 38vh;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.07);
  filter: blur(10px) drop-shadow(0 6px 30px rgba(0,0,0,.6));
  transition: opacity .5s var(--ease), transform .5s var(--ease), filter .5s var(--ease);
}
.bg-card-logo.in {
  opacity: 1;
  transform: scale(1);
  filter: blur(0) drop-shadow(0 6px 30px rgba(0,0,0,.6));
  transition: opacity .9s var(--ease), transform 2.4s cubic-bezier(.16,.84,.3,1), filter .9s var(--ease);
}
.bg-card-logo.intro { max-width: min(46vw, 520px); max-height: 42vh; }
.bg-card-logo.in.leave {
  opacity: 0;
  transform: scale(.97);
  filter: blur(6px) drop-shadow(0 6px 30px rgba(0,0,0,.6));
  transition: opacity .55s var(--ease), transform .6s var(--ease), filter .55s var(--ease);
}
@media (max-width: 860px) {
  .bg-card-logo { max-width: 68vw; max-height: 30vh; }
  .bg-card-logo.intro { max-width: 74vw; }
}

.vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 95% at 50% 45%, transparent 45%, rgba(0,0,0,.55) 100%),
    linear-gradient(to top, rgba(0,0,0,.9) 0%, rgba(0,0,0,.68) 16%, rgba(0,0,0,.24) 32%, transparent 46%),
    linear-gradient(to bottom, rgba(0,0,0,.4) 0%, transparent 18%);
}

.static {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  image-rendering: pixelated;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity .18s linear;
  z-index: 30;
}
.static.on { opacity: .075; transition: none; }

/* HUD Grid */
.hud {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto auto;
  column-gap: 20px;
  row-gap: 0;
  padding: max(var(--pad), env(safe-area-inset-top)) max(var(--pad), env(safe-area-inset-right)) max(var(--pad), env(safe-area-inset-bottom)) max(var(--pad), env(safe-area-inset-left));
  pointer-events: none;
  z-index: 10;
  transition: opacity .18s var(--ease);
}
.hud > * { pointer-events: auto; }

.brand {
  grid-area: 1 / 1;
  justify-self: start;
  align-self: start;
  margin: -8px 0 0 -6px;
}
.brand h1 { margin: 0; line-height: 0; }
.brand img {
  display: block;
  width: auto;
  height: 54px;
  filter: drop-shadow(0 2px 14px rgba(0,0,0,.5));
}
@media (max-width: 860px) { .brand img { height: 42px; } }

.corner {
  grid-area: 1 / 3;
  justify-self: end;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  white-space: nowrap;
}
.corner-dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,.28); }
.legal-link, .corner-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ink-dim);
  padding: 5px 8px;
  border-radius: 8px;
  background: rgba(14, 14, 16, .42);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.legal-link:hover, .corner-btn:hover, .corner-btn.on {
  color: #fff;
  background: var(--glass-strong);
}
.corner-btn.on { border-color: rgba(255,255,255,.3); }

/* Now Playing */
.now {
  grid-area: 3 / 1 / 4 / 3;
  align-self: end;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  height: 26px;
  margin-bottom: 10px;
  white-space: nowrap;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
}
.now-station {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: none;
  max-width: 26ch;
}
.now.idle .now-station { font-weight: 500; color: var(--ink-dim); }
.now-sep { width: 1px; height: 11px; background: rgba(255,255,255,.28); display: none; }
.now.has-song .now-sep { display: block; }
.now-song { color: var(--ink-dim); overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 13px; }
.now-song.swap { animation: song-in .5s var(--ease); }
@keyframes song-in { 0% { opacity: 0; transform: translateY(3px); } }

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
  width: 14px;
  flex: none;
}
.eq i {
  width: 2px;
  height: 100%;
  background: #fff;
  border-radius: 1px;
  transform-origin: bottom;
  transform: scaleY(.18);
  opacity: .5;
  transition: transform .3s var(--ease), opacity .3s;
}
.now.playing .eq i { opacity: 1; animation: eq .9s ease-in-out infinite alternate; }
.now.playing .eq i:nth-child(2) { animation-duration: .62s; animation-delay: -.3s; }
.now.playing .eq i:nth-child(3) { animation-duration: .78s; animation-delay: -.5s; }
.now.playing .eq i:nth-child(4) { animation-duration: .55s; animation-delay: -.15s; }
@keyframes eq {
  0% { transform: scaleY(.2); }
  40% { transform: scaleY(.85); }
  70% { transform: scaleY(.45); }
  100% { transform: scaleY(1); }
}

/* Quick Controls Bar (Mobile + Desktop) */
.controls {
  grid-area: 4 / 1 / 5 / 4;
  justify-self: start;
  align-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  min-width: 40px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(16, 16, 20, .62);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 500;
  transition: background .18s var(--ease), color .18s var(--ease), transform .14s var(--ease), border-color .18s var(--ease);
}
.ctrl-btn:hover { background: var(--glass-strong); color: #fff; }
.ctrl-btn:active { transform: scale(.94); }
.ctrl-play {
  background: rgba(255, 255, 255, .92);
  color: #000;
  border-color: transparent;
  width: 44px;
  height: 44px;
  padding: 0;
}
.ctrl-play:hover { background: #fff; color: #000; }
.ctrl-btn.fav-on { color: #ffd166; border-color: rgba(255, 209, 102, .45); }
.ctrl-btn.fav-on svg { fill: #ffd166; }

/* Games Bar */
.games {
  --side: 150px;
  --gap: clamp(4px, .5vw, 8px);
  --bh: clamp(44px, 4.2vw, 54px);
  grid-area: 5 / 2;
  align-self: end;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: var(--gap);
  width: min(12 * 84px + 11 * var(--gap), 100vw - 2 * var(--pad) - 2 * var(--side));
}

.badge {
  position: relative;
  display: grid;
  place-items: center;
  height: var(--bh);
  min-width: 0;
  padding: 0 6px;
  border-radius: 12px;
  background: rgba(14, 14, 16, .35);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  white-space: nowrap;
  flex: none;
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.badge img {
  height: calc(var(--bh) * .64);
  max-width: 100%;
  object-fit: contain;
  opacity: .42;
  filter: saturate(.4) drop-shadow(0 1px 6px rgba(0,0,0,.4));
  transition: opacity .25s var(--ease), filter .25s var(--ease), transform .25s var(--ease);
}
.badge.text { font-size: 11px; font-weight: 600; color: var(--ink-faint); }
.badge:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 16px;
  height: 2px;
  margin-left: -8px;
  border-radius: 1px;
  background: #fff;
  opacity: 0;
  transform: scaleX(.3);
  transition: opacity .25s var(--ease), transform .3s var(--snap);
}
.badge:hover { background: var(--glass); }
.badge:hover img { opacity: .75; }
.badge.on { background: var(--glass-strong); border-color: rgba(255,255,255,.22); }
.badge.on img { opacity: 1; filter: saturate(1) drop-shadow(0 1px 6px rgba(0,0,0,.4)); transform: translateY(-2px); }
.badge.on:after { opacity: 1; transform: scaleX(1); }

.hint {
  grid-area: 5 / 3;
  align-self: center;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  color: var(--ink-faint);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.hint:hover { color: var(--ink-dim); }
kbd {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
  font: 600 10.5px/1 Inter, system-ui, sans-serif;
  color: rgba(255,255,255,.82);
}

/* Notice Toast */
.notice:not([hidden]) {
  position: fixed;
  left: 50%;
  bottom: calc(max(var(--pad), env(safe-area-inset-bottom)) + 165px);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100vw - 2 * var(--pad));
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(14, 14, 16, .82);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  color: var(--ink-dim);
  font-size: 12.5px;
  transform: translateX(-50%);
  animation: notice-in .25s var(--ease);
}
@keyframes notice-in { 0% { opacity: 0; transform: translate(-50%, 6px); } }

/* Volume Slider (Desktop / Android) */
.volume {
  --v: 1;
  position: fixed;
  top: 50%;
  right: max(calc(var(--pad) - 8px), env(safe-area-inset-right));
  display: flex;
  justify-content: center;
  width: 28px;
  height: clamp(150px, 30vh, 250px);
  padding: 6px 0;
  transform: translateY(-50%);
  cursor: pointer;
  touch-action: none;
  opacity: .75;
  transition: opacity .2s var(--ease);
}
.volume[hidden] { display: none; }
.volume:hover, .volume.drag { opacity: 1; }
.volume-track {
  position: relative;
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: rgba(255,255,255,.16);
}
.volume-fill {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--v) * 100%);
  border-radius: inherit;
  background: rgba(255,255,255,.5);
}
.volume-track:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(var(--v) * 100%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.4);
  transform: translate(-50%, 50%);
}

/* Radio Wheel */
.wheel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  background: rgba(0,0,0,.45);
  transition: opacity .12s var(--ease), visibility 0s linear .12s;
  touch-action: none;
}
.wheel.open {
  visibility: visible;
  opacity: 1;
  backdrop-filter: blur(16px) brightness(.6) saturate(.75);
  -webkit-backdrop-filter: blur(16px) brightness(.6) saturate(.75);
  transition: opacity .1s var(--ease);
}
body:has(.wheel.open) .hud { opacity: 0; pointer-events: none; }
body:has(.wheel.open) .ls-frame { animation-play-state: paused; }

.wheel-ring, .wheel-center { grid-area: 1 / 1; }
.wheel-ring {
  --slot: 80px;
  position: relative;
  width: min(78dvmin, 740px);
  aspect-ratio: 1;
  transform: scale(.94);
  transition: transform .12s var(--ease);
}
.wheel.open .wheel-ring { transform: scale(1); transition: transform .18s var(--snap); }

.slot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--slot);
  height: var(--slot);
  margin: calc(var(--slot) / -2) 0 0 calc(var(--slot) / -2);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(46,46,50,.9), rgba(12,12,14,.92) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.16), 0 8px 22px rgba(0,0,0,.45);
  transform: translate(var(--x), var(--y));
  transition: transform .1s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.wheel-sel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: var(--slot);
  height: var(--slot);
  margin: calc(var(--slot) / -2) 0 0 calc(var(--slot) / -2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2.5px #fff, 0 0 22px rgba(255,255,255,.5), 0 0 64px rgba(255,255,255,.2);
  transform: translate(var(--x), var(--y)) scale(1.14);
  pointer-events: none;
}
.slot img { width: 80%; height: 80%; object-fit: contain; opacity: .72; pointer-events: none; }
.slot.off svg { width: 38%; height: 38%; color: rgba(255,255,255,.72); }
.slot.text { padding: 6px; font-size: 10px; font-weight: 600; line-height: 1.1; text-align: center; color: rgba(255,255,255,.8); }
.slot.on { z-index: 1; transform: translate(var(--x), var(--y)) scale(1.14); background: radial-gradient(circle at 50% 35%, rgba(62,62,68,.95), rgba(16,16,18,.95) 70%); }
.slot.on img { opacity: 1; }
.slot.on.off svg, .slot.on.text { color: #fff; }

.wheel-center { width: min(34vmin, 320px); text-align: center; pointer-events: none; }
.wheel-name { font-size: clamp(18px, 2.7vmin, 28px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
.wheel-sub { margin-top: 8px; font-size: clamp(11px, 1.45vmin, 13.5px); color: var(--ink-dim); min-height: 1.35em; }

/* Station Drawer (Mobile Bottom Sheet / Desktop Modal) */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.drawer[hidden] { display: none; }

.drawer-sheet {
  width: min(560px, 100%);
  height: min(78dvh, 660px);
  display: flex;
  flex-direction: column;
  background: rgba(16, 16, 20, .94);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px max(18px, env(safe-area-inset-bottom));
  box-shadow: 0 -16px 50px rgba(0,0,0,.65);
  animation: sheet-up .22s var(--ease);
}
@media (min-width: 720px) {
  .drawer { align-items: center; padding: 24px; }
  .drawer-sheet { border-radius: 20px; border-bottom: 1px solid var(--hairline); height: min(74vh, 640px); }
}
@keyframes sheet-up { 0% { opacity: 0; transform: translateY(20px); } }

.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-title { margin: 0; font-size: 16px; font-weight: 600; }
.drawer-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--glass);
  color: var(--ink-dim);
  display: grid; place-items: center;
}
.drawer-close:hover { background: var(--glass-strong); color: #fff; }

.drawer-search-wrap { margin-bottom: 10px; }
.drawer-search {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-size: 13.5px;
}
.drawer-search::placeholder { color: var(--ink-faint); }

.drawer-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.drawer-tab {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.04);
  border: 1px solid transparent;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.drawer-tab.on { background: var(--glass-strong); border-color: rgba(255,255,255,.22); color: #fff; }

.drawer-list {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.st-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,.035);
  border: 1px solid transparent;
  text-align: left;
  width: 100%;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.st-row:hover { background: rgba(255,255,255,.08); }
.st-row.on { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.28); }
.st-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(0,0,0,.45);
  display: grid; place-items: center;
  flex: none;
  overflow: hidden;
  padding: 4px;
}
.st-logo img { width: 100%; height: 100%; object-fit: contain; }
.st-info { flex: 1; min-width: 0; }
.st-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-meta { font-size: 11.5px; color: var(--ink-faint); margin-top: 2px; }
.st-fav {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-faint);
  flex: none;
}
.st-fav:hover { background: rgba(255,255,255,.08); color: #fff; }
.st-fav.on { color: #ffd166; }

/* Modals */
.legal {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(8px);
}
.legal[hidden] { display: none; }
.legal-card {
  width: min(440px, 100%);
  max-height: calc(100dvh - 2 * var(--pad));
  overflow-y: auto;
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: rgba(16, 16, 20, .92);
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 60px rgba(0,0,0,.6);
  user-select: text;
}
.legal-title { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.legal-card p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-dim); }
.legal-card code { background: rgba(255,255,255,.1); padding: 1px 5px; border-radius: 4px; color: #fff; font-size: 11.5px; }
.legal-card a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.legal-more h3 { margin: 16px 0 4px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.legal-ok { display: block; width: 100%; margin-top: 18px; padding: 11px 14px; border-radius: 11px; background: #fff; color: #000; font-weight: 600; }

.yt { position: fixed; left: -9999px; top: 0; width: 200px; height: 200px; opacity: 0; pointer-events: none; }

/* Responsive Mobile Layout */
@media (max-width: 999px), (orientation: landscape) and (max-height: 500px) {
  .hud { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .corner { grid-area: 1 / 2; gap: 6px; }
  .corner-dot { display: none; }
  .now { grid-area: 3 / 1 / 4 / 3; margin-bottom: 10px; }
  .controls { grid-area: 4 / 1 / 5 / 3; margin-bottom: 10px; }
  .hint { display: none; }
  .games { --gap: 6px; --bh: 46px; grid-area: 5 / 1 / 6 / 3; justify-self: center; width: min(100%, 12 * 84px + 11 * var(--gap)); }
  .wheel-ring { width: min(92dvmin, 560px); }
}

@media (max-width: 599px) and (orientation: portrait) {
  .games { --gap: 7px; --bh: 46px; grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; }
  .badge { padding: 0 4px; border-radius: 10px; }
  .badge img { height: 28px; }
  .controls { gap: 6px; }
  .ctrl-btn { height: 38px; padding: 0 10px; font-size: 12px; }
  .ctrl-play { width: 42px; height: 42px; }
  .volume { top: 38%; height: clamp(130px, 24vh, 200px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition-duration: .01ms !important; }
}
