@import "https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;700;800&family=Cinzel:wght@400;600&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&display=swap";

/* frontend/src/app.css */
:root {
  --ink: #f4ecff;
  --muted: rgba(222, 205, 255, .88);
  --glass: rgba(8, 4, 22, .55);
  --glass-strong: rgba(12, 7, 28, .76);
  --edge: rgba(255, 255, 255, .05);
  --violet: #a97aff;
  --rose: #ff8ccf;
  --aqua: #7fffd0;
  --gold: #ffd466;
  --shadow: 0 24px 80px rgba(0, 0, 0, .46);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: var(--ink);
  font-family:
    Inter,
    "Segoe UI",
    system-ui,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
#visual-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
#pulse {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
#shade {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 50%,
      rgba(255, 255, 255, .025),
      transparent 30%),
    radial-gradient(
      circle at 78% 22%,
      rgba(169, 122, 255, .12),
      transparent 24%),
    radial-gradient(
      circle at 22% 80%,
      rgba(255, 140, 207, .08),
      transparent 28%),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, .22),
      transparent 24%,
      transparent 76%,
      rgba(0, 0, 0, .24));
}
#logout-btn {
  position: fixed;
  top: calc(.4rem + env(safe-area-inset-top, 0px));
  right: .4rem;
  z-index: 300;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: #8b1a1a;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .78;
  transition: opacity .15s, background .15s;
  touch-action: manipulation;
}
#logout-btn:hover,
#logout-btn:active {
  opacity: 1;
  background: #c0392b;
}
#always-deeper-banner {
  position: fixed;
  left: 50%;
  top: calc(.72rem + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 29;
  padding: .28rem .85rem;
  border: 1px solid rgba(214, 181, 255, .14);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .045),
      rgba(255, 255, 255, .012)),
    rgba(5, 3, 14, .3);
  backdrop-filter: blur(14px) saturate(145%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .04);
  font-family: "Cinzel", serif;
  font-size: clamp(.62rem, 2vw, .76rem);
  font-weight: 400;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(214, 181, 255, .72);
  text-shadow: 0 0 16px rgba(169, 122, 255, .42);
  pointer-events: none;
  animation: always-deeper-pulse 9s ease-in-out infinite;
}
@keyframes always-deeper-pulse {
  0%, 100% {
    opacity: .58;
    transform: translateX(-50%) scale(.992);
  }
  50% {
    opacity: .88;
    transform: translateX(-50%) scale(1.008);
    filter: drop-shadow(0 0 10px rgba(169, 122, 255, .28));
  }
}
#topbar {
  position: fixed;
  top: calc(.52rem + env(safe-area-inset-top, 0px));
  left: .55rem;
  z-index: 200;
  width: min(calc(100vw - 1.1rem), 18rem);
}
.hud-control {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(199, 114, 255, 0.4);
  border-radius: 14px;
  background:
    linear-gradient(
      180deg,
      rgba(144, 42, 255, 0.15),
      rgba(12, 5, 34, 0.6)),
    rgba(10, 5, 20, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.2), inset 0 1px 2px rgba(255, 255, 255, .1);
  color: #fff;
  padding: 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  outline: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-shadow: 0 0 8px rgba(199, 114, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hud-control:hover {
  background:
    linear-gradient(
      180deg,
      rgba(199, 114, 255, 0.25),
      rgba(42, 12, 85, 0.8)),
    rgba(10, 5, 20, 0.8);
  border-color: rgba(230, 155, 255, 0.7);
  box-shadow: 0 8px 42px rgba(199, 114, 255, 0.4), inset 0 1px 3px rgba(255, 255, 255, .2);
  transform: translateY(-1px);
}
.hud-control::after {
  content: "\25bc";
  font-size: 0.7rem;
  color: rgba(199, 114, 255, 0.8);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.hud-control[aria-expanded=true]::after {
  transform: rotate(-180deg);
}
.theme-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: calc(2.8rem + env(safe-area-inset-top, 0px));
  left: .55rem;
  z-index: 500;
  width: min(16rem, 100vw - 1.1rem);
  max-height: min(70vh, 32rem);
  overflow-y: auto;
  padding: 0.5rem;
  border: 1px solid rgba(199, 114, 255, 0.3);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(199, 114, 255, 0.08),
      rgba(0, 0, 0, 0)),
    rgba(8, 4, 15, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, .6),
    0 0 32px rgba(138, 43, 226, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  scrollbar-width: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.theme-menu::-webkit-scrollbar {
  display: none;
}
.theme-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  gap: 0.35rem;
}
.theme-browser-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0.35rem 0.15rem;
}
.theme-browser-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.96);
}
.theme-browser-meta {
  font-size: 0.72rem;
  color: rgba(220, 198, 255, 0.72);
  white-space: nowrap;
}
.theme-search {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(199, 114, 255, 0.2);
  border-radius: 10px;
  color: #fff;
  padding: 0.6rem 0.8rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.theme-search:focus {
  border-color: rgba(199, 114, 255, 0.8);
  box-shadow: 0 0 10px rgba(138, 43, 226, 0.2);
}
.theme-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.8rem;
}
.theme-super-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  padding: 0.5rem;
  border-radius: 14px;
}
.safe-super-group {
  background: rgba(138, 43, 226, 0.05);
  border: 1px solid rgba(138, 43, 226, 0.15);
}
.nsfw-super-group {
  background: rgba(255, 42, 109, 0.05);
  border: 1px solid rgba(255, 42, 109, 0.2);
}
.super-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem 0.6rem;
  margin-bottom: 0.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.super-group-header span {
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.8;
}
.safe-super-group .super-group-header {
  color: rgba(199, 114, 255, 0.9);
  border-bottom-color: rgba(199, 114, 255, 0.2);
}
.nsfw-super-group .super-group-header {
  color: #ff4d6d;
  border-bottom-color: rgba(255, 42, 109, 0.3);
  text-shadow: 0 0 8px rgba(255, 42, 109, 0.4);
}
.theme-search-empty {
  padding: 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-style: italic;
}
.theme-section-label {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 214, 102, .68);
  padding: .4rem .45rem .15rem;
  font-weight: 700;
}
.theme-choice {
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: rgba(244, 236, 255, .88);
  font-size: .95rem;
  text-align: left;
  padding: .6rem .8rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.theme-choice::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(199, 114, 255, 0.1),
      transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.theme-choice:hover::before {
  transform: translateX(100%);
}
.theme-choice:hover {
  border-color: rgba(199, 114, 255, 0.4);
  background: rgba(199, 114, 255, 0.08);
  box-shadow: 0 0 15px rgba(199, 114, 255, 0.15);
}
.theme-choice.active {
  border-color: rgba(199, 114, 255, 0.8);
  background: rgba(138, 43, 226, 0.15);
  box-shadow: 0 0 20px rgba(138, 43, 226, 0.25), inset 0 0 10px rgba(199, 114, 255, 0.1);
}
.theme-choice.adult {
  background: rgba(255, 42, 109, 0.03);
}
.theme-choice.adult:hover {
  border-color: rgba(255, 42, 109, 0.5);
  background: rgba(255, 42, 109, 0.1);
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.2);
}
.theme-choice.adult.active {
  border-color: rgba(255, 42, 109, 0.9);
  background: rgba(255, 42, 109, 0.15);
  box-shadow: 0 0 25px rgba(255, 42, 109, 0.3), inset 0 0 12px rgba(255, 42, 109, 0.15);
}
.theme-choice-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.03em;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}
.theme-choice-meta {
  display: block;
  font-size: 0.75rem;
  color: rgba(200, 180, 255, 0.7);
  letter-spacing: 0.05em;
}
.theme-choice.active .theme-choice-title {
  color: rgba(255, 255, 255, 1);
}
.theme-choice.adult .theme-choice-meta {
  color: rgba(255, 140, 170, 0.8);
}
#auth-shell {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.welcome-auth-triggered #logout-btn {
  border: 1px solid rgba(255, 214, 102, .52);
}
.play-counter {
  font-size: .38rem;
  color: rgba(200, 185, 255, .55);
  letter-spacing: .05em;
  padding: .14rem .38rem;
  border: 1px solid rgba(200, 185, 255, .12);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .04),
      rgba(255, 255, 255, .012)),
    rgba(5, 3, 14, .3);
  backdrop-filter: blur(12px);
}
#mate-top-bar {
  display: flex;
  gap: .5rem;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: .5rem;
}
#mate-shell {
  position: fixed;
  top: calc(.55rem + env(safe-area-inset-top, 0px));
  right: .7rem;
  z-index: 200;
  width: min(24rem, calc(100vw - 1.4rem));
  max-height: calc(100vh - 1.1rem - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  scrollbar-width: none;
}
#mate-shell::-webkit-scrollbar {
  display: none;
}
#mate-panel-toggle {
  display: none;
  align-items: center;
  gap: .38rem;
  padding: .22rem .65rem .22rem .3rem;
  border: 1px solid rgba(184, 148, 255, .22);
  border-radius: 999px;
  background: rgba(120, 80, 200, .14);
  backdrop-filter: blur(8px);
  color: rgba(214, 181, 255, .88);
  font-size: clamp(.78rem, 3vw, .92rem);
  letter-spacing: .06em;
  cursor: pointer;
}
#mate-panel-toggle:hover {
  background: rgba(155, 100, 255, .26);
  border-color: rgba(200, 168, 255, .4);
}
#mate-toggle-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: rgba(138, 80, 255, .32);
  font-size: .62rem;
  font-weight: 700;
  color: rgba(230, 210, 255, .9);
  flex-shrink: 0;
}
#mate-toggle-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 10rem;
  font-weight: 600;
}
#mate-card {
  position: relative;
  display: grid;
  z-index: 1;
  gap: .62rem;
  padding: 1rem;
  border: 1px solid rgba(255, 214, 102, .12);
  border-radius: 30px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .055),
      rgba(255, 255, 255, .014)),
    linear-gradient(
      180deg,
      rgba(18, 8, 34, .84),
      rgba(7, 3, 18, .78));
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, .36),
    inset 0 1px 0 rgba(255, 255, 255, .05),
    inset 0 0 0 1px rgba(255, 255, 255, .015);
  overflow: hidden;
}
#mate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 78% 0%,
      rgba(255, 214, 102, .12),
      transparent 26%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .02),
      transparent 22%);
  pointer-events: none;
}
#mate-art {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 214, 102, .14);
  background:
    radial-gradient(
      circle at 32% 24%,
      rgba(255, 214, 102, .22),
      transparent 30%),
    radial-gradient(
      circle at 72% 18%,
      rgba(169, 122, 255, .28),
      transparent 26%),
    linear-gradient(
      180deg,
      rgba(31, 16, 58, .92),
      rgba(9, 4, 22, .95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 36px rgba(0, 0, 0, .2);
}
#mate-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      transparent 52%,
      rgba(7, 3, 18, .64));
  pointer-events: none;
}
#mate-art-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#mate-art-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2.2rem, 7vw, 3.8rem);
  font-weight: 800;
  letter-spacing: .08em;
  color: rgba(255, 241, 208, .92);
  text-shadow: 0 0 26px rgba(255, 214, 102, .18);
}
#mate-kicker {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 214, 102, .78);
  text-shadow: 0 0 16px rgba(255, 214, 102, .12);
}
#mate-name {
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  font-weight: 700;
  color: rgba(250, 246, 255, .96);
  letter-spacing: .01em;
}
#mate-role,
#mate-bio,
#mate-tip-note {
  line-height: 1.5;
  color: rgba(230, 219, 248, .82);
  font-size: .94rem;
}
#mate-role {
  font-size: .98rem;
  color: rgba(245, 236, 255, .92);
}
#mate-bio {
  color: rgba(214, 198, 240, .74);
}
#mate-bio:empty {
  display: none;
}
#mate-stats,
#mate-actions,
#mate-tip-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.mate-pill {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  padding: 0 .65rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 255, .1);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(255, 255, 255, .02);
  color: rgba(244, 236, 255, .86);
  font-size: .82rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.mate-action,
.mate-tip-btn {
  min-height: 2.55rem;
  border-radius: 999px;
  border: 1px solid rgba(214, 181, 255, .14);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .06),
      rgba(255, 255, 255, .015)),
    rgba(255, 255, 255, .03);
  color: rgba(244, 236, 255, .92);
  padding: 0 .9rem;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.mate-action.heart {
  border-color: rgba(255, 140, 207, .28);
  background: rgba(255, 140, 207, .09);
  color: rgba(255, 216, 236, .96);
}
.mate-action.gold,
.mate-tip-btn {
  border-color: rgba(255, 214, 102, .36);
  background: rgba(255, 214, 102, .11);
  color: rgba(255, 241, 201, .96);
}
.mate-action.on,
.mate-tip-btn:hover {
  box-shadow: 0 0 18px rgba(255, 214, 102, .18);
}
#mate-tip-feedback {
  min-height: 1.1rem;
  font-size: .84rem;
  color: rgba(184, 255, 211, .86);
}
#stage-hud {
  position: fixed;
  top: calc(3.2rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 22;
  display: flex;
  align-items: center;
  gap: .38rem;
  padding: .2rem .55rem;
  border: 1px solid rgba(169, 122, 255, .14);
  border-radius: 999px;
  background: rgba(5, 3, 14, .26);
  backdrop-filter: blur(10px);
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(169, 122, 255, .52);
  pointer-events: none;
  white-space: nowrap;
  transition: color .5s, border-color .5s;
}
.stage-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(169, 122, 255, .4);
  flex-shrink: 0;
}
#stage-hud.deep {
  color: rgba(140, 90, 255, .88);
  border-color: rgba(130, 80, 255, .42);
}
#stage-hud.deep .stage-dot {
  background: #a070ff;
  box-shadow: 0 0 8px rgba(140, 80, 255, .6);
}
#track-wrap {
  position: fixed;
  left: 50%;
  top: calc(50% - clamp(6.4rem, 23vw, 9.2rem));
  transform: translateX(-50%) translateY(-100%);
  z-index: 12;
  width: min(72vw, 420px);
  text-align: center;
  pointer-events: none;
  padding-bottom: .6rem;
}
#track-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -.8rem;
  transform: translateX(-50%);
  width: min(28rem, 90%);
  height: 5rem;
  background:
    radial-gradient(
      ellipse,
      rgba(169, 122, 255, .10),
      transparent 72%);
  filter: blur(14px);
  z-index: -1;
  pointer-events: none;
}
#track-name {
  font-family:
    "Cormorant Garamond",
    "Georgia",
    serif;
  font-size: clamp(1.1rem, 4.8vw, 1.5rem);
  font-style: italic;
  line-height: 1.28;
  letter-spacing: .03em;
  font-weight: 400;
  color: rgba(255, 248, 255, .96);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(169, 100, 255, .38), 0 2px 8px rgba(0, 0, 0, .55);
}
#track-mate-btn {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  margin-top: .3rem;
  padding: .18rem .55rem .18rem .28rem;
  border: 1px solid rgba(184, 148, 255, .22);
  border-radius: 999px;
  background: rgba(120, 80, 200, .14);
  backdrop-filter: blur(8px);
  color: rgba(214, 181, 255, .88);
  font-size: clamp(.72rem, 2.8vw, .88rem);
  letter-spacing: .06em;
  cursor: pointer;
  pointer-events: auto;
}
#track-mate-btn:hover {
  background: rgba(155, 100, 255, .26);
  border-color: rgba(200, 168, 255, .4);
}
#track-mate-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: rgba(138, 80, 255, .32);
  font-size: .6rem;
  font-weight: 700;
  color: rgba(230, 210, 255, .9);
  flex-shrink: 0;
}
#track-mate-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 12rem;
}
#track-artist:empty {
  display: none;
}
#status {
  margin-top: .18rem;
  font-size: .82rem;
  color: rgba(230, 217, 255, .9);
}
#action-dock {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
  transition: opacity .18s;
}
.action-btn {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  transition:
    transform .18s,
    border-color .18s,
    box-shadow .18s,
    background .18s,
    opacity .18s;
  color: rgba(20, 18, 15, .78);
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .12);
}
#play-btn {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: clamp(5.2rem, 23vw, 7.2rem);
  height: clamp(5.2rem, 23vw, 7.2rem);
  background:
    radial-gradient(
      circle,
      rgba(0, 0, 0, .88) 0%,
      rgba(0, 0, 0, .65) 20%,
      transparent 27%),
    radial-gradient(
      circle,
      transparent 25%,
      rgba(255, 255, 255, .18) 26.5%,
      transparent 29%),
    radial-gradient(
      circle,
      transparent 15%,
      rgba(255, 255, 255, .12) 16.5%,
      transparent 19%),
    radial-gradient(
      ellipse at 36% 28%,
      rgba(255, 255, 255, .96),
      transparent 38%),
    radial-gradient(
      circle,
      rgba(255, 255, 255, .98) 8%,
      rgba(238, 234, 255, .92) 42%,
      rgba(195, 188, 225, .88) 100%);
  font-size: clamp(1.06rem, 4vw, 1.58rem);
  color: rgba(20, 15, 50, .82);
  box-shadow:
    0 0 36px rgba(255, 255, 255, .38),
    0 0 72px rgba(210, 200, 255, .14),
    0 14px 32px rgba(0, 0, 0, .18);
  overflow: visible;
}
#play-btn::before {
  content: none;
}
#play-btn.playing {
  background: transparent !important;
  border: 2px solid rgba(255, 255, 255, .55) !important;
  color: rgba(255, 255, 255, .35) !important;
  animation: portal-ring 2.6s ease-out infinite;
}
@keyframes portal-ring {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, .45),
      0 0 0 0 rgba(185, 150, 255, .32),
      0 0 18px rgba(255, 255, 255, .14);
  }
  50% {
    box-shadow:
      0 0 0 24px rgba(255, 255, 255, .01),
      0 0 0 48px rgba(185, 150, 255, 0),
      0 0 32px rgba(255, 255, 255, .24);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0),
      0 0 0 0 rgba(185, 150, 255, 0),
      0 0 18px rgba(255, 255, 255, .08);
  }
}
.play-eye {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.play-eye::after {
  content: "";
  position: absolute;
  inset: 10% 10%;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      transparent 0%,
      rgba(255, 255, 255, .09) 14%,
      transparent 28%,
      rgba(255, 255, 255, .06) 42%,
      transparent 56%,
      rgba(255, 255, 255, .11) 70%,
      transparent 84%,
      rgba(255, 255, 255, .07) 96%);
  animation: iris-swirl 9s linear infinite;
  mix-blend-mode: overlay;
}
@keyframes iris-swirl {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
.play-eye-core {
  position: absolute;
  width: 34%;
  height: 34%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(
      circle at 38% 34%,
      rgba(255, 255, 255, .08),
      rgba(0, 0, 0, .94) 48%);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(0, 0, 0, .8), inset 0 0 6px rgba(0, 0, 0, .6);
  animation: pupil-breathe 4.2s ease-in-out infinite;
  z-index: 2;
}
@keyframes pupil-breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(.76);
  }
}
.play-eye-lid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background:
    linear-gradient(
      to bottom,
      rgba(8, 6, 22, .55) 0%,
      rgba(8, 6, 22, .08) 80%,
      transparent 100%);
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  transform-origin: top center;
  transition: transform .6s ease;
  z-index: 3;
}
#play-btn:not(.playing) .play-eye-lid {
  transform: scaleY(1.85);
}
#play-btn.playing .play-eye-lid {
  transform: scaleY(1);
}
#play-btn .play-btn-glyph {
  display: block;
  position: relative;
  z-index: 4;
  color: rgba(240, 235, 255, .88);
  text-shadow: 0 0 12px rgba(255, 255, 255, .5);
}
#play-btn.playing .play-btn-glyph {
  color: rgba(255, 255, 255, .45);
  text-shadow: none;
}
.transport-btn {
  transform: translate(-50%, -50%);
  width: clamp(2.15rem, 7vw, 3.05rem);
  height: clamp(2.15rem, 7vw, 3.05rem);
  font-size: clamp(.82rem, 2.8vw, 1.16rem);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .18),
      rgba(255, 255, 255, .07)),
    rgba(226, 214, 255, .46);
  color: rgba(45, 28, 82, .86);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .1);
}
#loop-btn {
  left: calc(50% - clamp(2.7rem, 9.6vw, 3.73rem));
  top: calc(50% + clamp(3.22rem, 11.5vw, 4.45rem));
  background: rgba(184, 255, 211, .66);
  color: rgba(18, 86, 52, .9);
}
#back-btn {
  left: calc(50% - clamp(1.44rem, 5.1vw, 2rem));
  top: calc(50% + clamp(3.95rem, 14.1vw, 5.46rem));
  background: rgba(214, 202, 255, .66);
}
#restart-btn {
  left: calc(50% + clamp(1.44rem, 5.1vw, 2rem));
  top: calc(50% + clamp(3.95rem, 14.1vw, 5.46rem));
  background: rgba(255, 230, 172, .68);
  color: rgba(92, 66, 18, .9);
}
#skip-btn {
  left: calc(50% + clamp(2.7rem, 9.6vw, 3.73rem));
  top: calc(50% + clamp(3.22rem, 11.5vw, 4.45rem));
  background: rgba(198, 236, 255, .66);
  color: rgba(19, 67, 94, .9);
}
#fav-btn,
#dislike-btn {
  top: 50%;
  transform: translateY(-50%);
  width: clamp(2.35rem, 8.5vw, 3.3rem);
  height: clamp(2.35rem, 8.5vw, 3.3rem);
  font-size: clamp(.96rem, 3.8vw, 1.34rem);
}
#fav-btn {
  right: clamp(.65rem, 4vw, 2.4rem);
  background: rgba(190, 255, 203, .68);
  color: rgba(18, 86, 42, .82);
}
#dislike-btn {
  left: clamp(.65rem, 4vw, 2.4rem);
  background: rgba(255, 167, 174, .70);
  color: rgba(100, 24, 32, .86);
}
#action-dock.playing .action-btn:not(#play-btn) {
  opacity: .22;
}
#action-dock.playing .action-btn:not(#play-btn):hover,
#action-dock.playing .action-btn:not(#play-btn):active {
  opacity: .82;
}
#action-dock.playing #play-btn {
  opacity: 1;
}
.action-btn:active {
  transform: translate(-50%, -50%) scale(.96);
}
.action-btn.good.on {
  box-shadow: 0 0 32px rgba(153, 255, 181, .34), 0 14px 36px rgba(0, 0, 0, .16);
}
.action-btn.warn.on {
  box-shadow: 0 0 32px rgba(255, 136, 150, .32), 0 14px 36px rgba(0, 0, 0, .16);
}
#request-shell {
  position: fixed;
  left: .55rem;
  bottom: calc(.55rem + env(safe-area-inset-bottom, 0px));
  z-index: 28;
  display: flex;
  align-items: flex-end;
  gap: .35rem;
  pointer-events: none;
}
#request-panel {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) auto;
  gap: .35rem;
  width: min(24rem, calc(100vw - 4rem));
  padding: .42rem;
  border: 1px solid rgba(214, 181, 255, .1);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .014)),
    rgba(5, 3, 14, .48);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: translateX(-115%) translateY(.35rem) scale(.98);
  transform-origin: 0 100%;
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
#request-shell.open #request-panel {
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
#request-panel-toggle {
  pointer-events: auto;
  min-width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(214, 181, 255, .14);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(5, 3, 14, .38);
  backdrop-filter: blur(14px) saturate(140%);
  color: rgba(244, 236, 255, .86);
  letter-spacing: .08em;
}
#request-panel-toggle.on {
  border-color: rgba(184, 255, 211, .66);
  box-shadow: 0 0 18px rgba(153, 255, 181, .22);
}
.request-input {
  width: 100%;
  min-height: 34px;
  padding: 0 .62rem;
  border: 1px solid rgba(214, 181, 255, .12);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .04),
      rgba(255, 255, 255, .012)),
    rgba(5, 3, 14, .34);
  backdrop-filter: blur(14px) saturate(135%);
  color: rgba(244, 236, 255, .86);
  font-size: .9rem;
  outline: none;
}
.request-input::placeholder {
  color: rgba(222, 205, 255, .42);
}
.request-submit {
  min-width: 3rem;
  min-height: 34px;
  border: 1px solid rgba(184, 255, 211, .22);
  border-radius: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(184, 255, 211, .12),
      rgba(184, 255, 211, .04)),
    rgba(184, 255, 211, .06);
  color: rgba(244, 236, 255, .92);
  font-size: .9rem;
  letter-spacing: .08em;
}
#tag-shell {
  position: fixed;
  left: .55rem;
  bottom: calc(3.35rem + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  align-items: flex-end;
  gap: .35rem;
  pointer-events: none;
}
#tag-panel {
  display: grid;
  gap: .42rem;
  width: min(25rem, calc(100vw - 4rem));
  max-height: min(62vh, 32rem);
  overflow: auto;
  padding: .52rem;
  border: 1px solid rgba(214, 181, 255, .1);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .014)),
    rgba(5, 3, 14, .54);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
  transform: translateX(-115%) translateY(.35rem) scale(.98);
  transform-origin: 0 100%;
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
#tag-shell.open #tag-panel {
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
#tag-panel-toggle {
  pointer-events: auto;
  min-width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(214, 181, 255, .14);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(5, 3, 14, .38);
  backdrop-filter: blur(14px) saturate(140%);
  color: rgba(244, 236, 255, .86);
  letter-spacing: .08em;
}
#tag-panel-toggle.on {
  border-color: rgba(184, 255, 211, .66);
  box-shadow: 0 0 18px rgba(153, 255, 181, .22);
}
.tag-group {
  display: grid;
  gap: .28rem;
  padding: .4rem;
  border: 1px solid rgba(214, 181, 255, .08);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .04),
      rgba(255, 255, 255, .012)),
    rgba(255, 255, 255, .02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.tag-label {
  font-size: .88rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(222, 205, 255, .62);
}
.tag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem;
}
.tag-chip {
  min-height: 2.4rem;
  padding: .45rem .65rem;
  border: 1px solid rgba(214, 181, 255, .12);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(255, 255, 255, .03);
  color: rgba(244, 236, 255, .86);
  cursor: pointer;
  font-size: .9rem;
}
.tag-chip.on {
  border-color: rgba(184, 255, 211, .72);
  background: rgba(184, 255, 211, .14);
}
.tag-chip.block {
  border-color: rgba(255, 144, 161, .5);
  background: rgba(255, 144, 161, .14);
  color: rgba(255, 221, 227, .94);
}
.tag-request-group {
  border-color: rgba(155, 200, 255, .1);
}
.tag-request-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .35rem;
}
#mini-shell {
  position: fixed;
  right: .55rem;
  bottom: calc(.55rem + env(safe-area-inset-bottom, 0px));
  z-index: 88;
  display: flex;
  align-items: flex-end;
  gap: .35rem;
  pointer-events: none;
}
#mini-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(8.5rem, 1fr));
  gap: .4rem;
  padding: .5rem;
  border: 1px solid rgba(214, 181, 255, .1);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .014)),
    rgba(5, 3, 14, .48);
  backdrop-filter: blur(18px) saturate(145%);
  box-shadow: 0 22px 56px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .04);
  max-width: min(38rem, calc(100vw - 4rem));
  max-height: min(82vh, 42rem);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  transform: translateX(.55rem) translateY(.35rem) scale(.98);
  transform-origin: 100% 100%;
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}
#mini-shell.open #mini-panel {
  transform: translateX(0) translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}
#mini-panel-toggle {
  pointer-events: auto;
  min-width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(214, 181, 255, .14);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(5, 3, 14, .38);
  backdrop-filter: blur(14px) saturate(140%);
  color: rgba(244, 236, 255, .86);
  letter-spacing: .08em;
}
#mini-panel-toggle.on {
  border-color: rgba(184, 255, 211, .66);
  box-shadow: 0 0 18px rgba(153, 255, 181, .22);
}
.fx-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .28rem;
  padding: .42rem;
  border: 1px solid rgba(214, 181, 255, .08);
  border-radius: 18px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .04),
      rgba(255, 255, 255, .012)),
    rgba(255, 255, 255, .02);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03);
}
.fx-label {
  grid-column: 1/-1;
  font-size: .88rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(222, 205, 255, .62);
  padding: .08rem .1rem;
}
.mini,
.fx-chip {
  min-width: 2.5rem;
  min-height: 2.5rem;
  border: 1px solid rgba(214, 181, 255, .12);
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(255, 255, 255, .03);
  color: rgba(244, 236, 255, .86);
  cursor: pointer;
  font-size: .9rem;
}
.mini.on,
.fx-chip.on {
  border-color: rgba(184, 255, 211, .72);
  box-shadow: 0 0 18px rgba(153, 255, 181, .22);
  background: rgba(184, 255, 211, .12);
}
#request-shell.playing,
#mini-shell.playing,
#tag-shell.playing {
  opacity: .07;
}
#request-shell.playing.open,
#mini-shell.playing.open,
#tag-shell.playing.open {
  opacity: .9;
}
#welcome-gate {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(.85rem, 3vw, 1.6rem);
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(162, 108, 255, .14),
      transparent 36%),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, .74),
      rgba(0, 0, 0, .84));
  backdrop-filter: blur(24px);
}
body.app-locked #topbar,
body.app-locked #auth-shell,
body.app-locked #mate-shell,
body.app-locked #stage-hud,
body.app-locked #track-wrap,
body.app-locked #action-dock,
body.app-locked #request-shell,
body.app-locked #tag-shell,
body.app-locked #mini-shell {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}
.welcome-card {
  display: grid;
  gap: 1rem;
  width: min(31rem, 94vw);
  max-height: min(90vh, 50rem);
  overflow: auto;
  padding: 2.25rem 2rem 1.9rem;
  border: 1px solid rgba(210, 184, 255, .16);
  border-radius: 36px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .06),
      rgba(255, 255, 255, .016)),
    linear-gradient(
      180deg,
      rgba(20, 10, 40, .94),
      rgba(8, 3, 20, .9));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 24px 64px rgba(0, 0, 0, .46),
    0 0 92px rgba(112, 52, 198, .18);
  scrollbar-width: thin;
}
.welcome-copy {
  display: grid;
  gap: .7rem;
  padding: .95rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 102, .1);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .045),
      rgba(255, 255, 255, .012)),
    rgba(255, 255, 255, .02);
  color: rgba(238, 226, 250, .86);
  line-height: 1.6;
  font-size: .95rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.welcome-logo-frame {
  display: grid;
  place-items: center;
  width: min(100%, 24rem);
  margin: 0 auto .15rem;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 214, 102, .16);
  border-radius: 28px;
  background:
    radial-gradient(
      circle at 50% 28%,
      rgba(255, 214, 102, .10),
      transparent 52%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(5, 3, 14, .35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .26), inset 0 1px 0 rgba(255, 255, 255, .05);
}
#welcome-logo {
  width: min(18rem, 74vw);
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(169, 122, 255, .24)) drop-shadow(0 0 8px rgba(255, 214, 102, .16));
}
.welcome-title {
  font-size: clamp(1.28rem, 4vw, 1.62rem);
  font-weight: 300;
  letter-spacing: .08em;
  color: rgba(248, 242, 255, .96);
  text-align: center;
}
.welcome-sub {
  font-size: clamp(.58rem, 1.7vw, .68rem);
  color: rgba(236, 224, 252, .78);
  line-height: 1.56;
  text-align: center;
}
.welcome-btns {
  display: grid;
  gap: .58rem;
}
.welcome-btn {
  min-height: 2.9rem;
  border-radius: 999px;
  font-size: clamp(.58rem, 1.45vw, .64rem);
  letter-spacing: .12em;
  cursor: pointer;
  color: rgba(244, 236, 255, .9);
  padding: 0 1.35rem;
  transition: box-shadow .18s, transform .13s;
}
.welcome-btn:active {
  transform: scale(.97);
}
.welcome-btn.primary {
  border: 1px solid rgba(255, 236, 184, .2);
  background:
    linear-gradient(
      180deg,
      rgba(222, 208, 160, .18),
      rgba(184, 255, 211, .12));
  color: rgba(255, 248, 230, .96);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.welcome-btn.primary:hover {
  box-shadow: 0 0 34px rgba(255, 216, 137, .14), 0 12px 30px rgba(0, 0, 0, .18);
}
.welcome-btn.secondary {
  border: 1px solid rgba(214, 181, 255, .16);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, .05),
      rgba(255, 255, 255, .015)),
    rgba(255, 255, 255, .03);
}
.theme-browser-meta,
.theme-choice-meta,
.theme-section-label,
.theme-search-empty,
.super-group-header span,
#auth-btn,
.play-counter,
#mate-bio,
#stage-hud,
.tag-label,
.fx-label,
.welcome-sub,
.request-input::placeholder {
  color: rgba(229, 216, 255, .88);
}
#gate-message,
#queue-count,
#content-depth {
  color: rgba(229, 216, 255, .88) !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
@media (max-width: 960px) {
  #mate-shell {
    top: auto;
    bottom: calc(8.5rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(92vw, 22rem);
    max-height: calc(100vh - 14rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    display: grid;
    gap: .45rem;
  }
  #mate-panel-toggle {
    display: inline-flex;
  }
  #mate-card {
    display: none;
    grid-template-columns: 5.1rem 1fr;
    grid-template-areas: "art kicker" "art name" "art role" "art stats" "actions actions" "tips tips" "note note" "feedback feedback";
    align-items: start;
  }
  #mate-shell.open #mate-card {
    display: grid;
  }
  #mate-art {
    grid-area: art;
    aspect-ratio: 1 / 1.2;
  }
  #mate-kicker {
    grid-area: kicker;
  }
  #mate-name {
    grid-area: name;
  }
  #mate-role {
    grid-area: role;
    font-size: .88rem;
  }
  #mate-bio {
    display: none;
  }
  #mate-stats {
    grid-area: stats;
  }
  #mate-actions {
    grid-area: actions;
  }
  #mate-tip-strip {
    grid-area: tips;
  }
  #mate-tip-note {
    grid-area: note;
    font-size: .82rem;
  }
  #mate-tip-feedback {
    grid-area: feedback;
  }
  #mate-shell.open #mate-panel-toggle {
    border-color: rgba(255, 214, 102, .3);
  }
}
@media (max-width: 600px) {
  html,
  body {
    font-size: 16px;
    overflow-x: hidden;
  }
  #shade {
    background:
      radial-gradient(
        circle at 50% 50%,
        rgba(255, 255, 255, .01),
        transparent 22%),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, .74),
        rgba(4, 2, 12, .62) 28%,
        rgba(4, 2, 12, .68) 72%,
        rgba(0, 0, 0, .82));
  }
  #topbar,
  #mate-shell {
    left: .5rem;
    right: .5rem;
    width: auto;
    max-width: calc(100vw - 1rem);
    transform: none;
  }
  #topbar {
    top: calc(.45rem + env(safe-area-inset-top, 0px));
  }
  .theme-menu {
    position: fixed;
    left: .5rem;
    right: .5rem;
    top: auto;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-height: 72vh;
    border-radius: 24px;
  }
  #mate-shell {
    top: auto;
    bottom: calc(15.8rem + env(safe-area-inset-bottom, 0px));
    max-height: 68vh;
  }
  #mate-panel-toggle,
  #mate-card,
  #request-panel,
  #tag-panel,
  #mini-panel,
  .theme-menu {
    width: 100%;
    max-width: 100%;
  }
  #mate-card {
    display: none;
    max-height: 80vh;
    overflow-y: auto;
  }
  #track-wrap {
    width: min(calc(100vw - 2rem), 34rem);
    top: calc(50% - clamp(5rem, 18vw, 7rem));
    transform: translateX(-50%) translateY(-100%);
  }
  #track-meta,
  #track-artist,
  #status,
  #gate-message,
  #queue-count,
  #content-depth,
  #mate-role,
  #mate-bio,
  #mate-tip-note,
  .theme-browser-meta,
  .theme-choice-meta,
  .tag-label,
  .play-counter {
    color: rgba(229, 216, 255, .9) !important;
  }
  #track-meta,
  #track-artist,
  #status {
    font-size: .95rem;
    white-space: normal;
  }
  #track-name {
    font-size: 1.25rem;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  #action-dock {
    inset: 0;
    height: auto;
    padding-bottom: 0;
    pointer-events: none;
  }
  #play-btn {
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5.8rem;
    height: 5.8rem;
  }
  .transport-btn,
  #fav-btn,
  #dislike-btn,
  #request-panel-toggle,
  #tag-panel-toggle,
  #mini-panel-toggle,
  .tag-chip,
  .mate-action,
  .mate-tip-btn,
  .hud-control {
    min-width: 44px;
    min-height: 44px;
  }
  .transport-btn {
    width: 2.8rem;
    height: 2.8rem;
  }
  #loop-btn,
  #back-btn,
  #restart-btn,
  #skip-btn {
    top: auto;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    transform: none;
  }
  #loop-btn {
    left: calc(50% - 6.7rem);
  }
  #back-btn {
    left: calc(50% - 3.3rem);
  }
  #restart-btn {
    left: calc(50% + .1rem);
  }
  #skip-btn {
    left: calc(50% + 3.5rem);
  }
  #fav-btn,
  #dislike-btn {
    top: auto;
    bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
    width: 2.85rem;
    height: 2.85rem;
    transform: none;
  }
  #fav-btn {
    right: .4rem;
    left: auto;
  }
  #dislike-btn {
    left: .4rem;
  }
  #request-shell,
  #tag-shell {
    left: .5rem;
    right: auto;
    max-width: calc(100vw - 1rem);
  }
  #request-shell {
    bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
  }
  #tag-shell {
    bottom: calc(12.2rem + env(safe-area-inset-bottom, 0px));
  }
  #mini-shell {
    right: .5rem;
    left: auto;
    bottom: calc(9rem + env(safe-area-inset-bottom, 0px));
  }
  #request-panel,
  #tag-panel,
  #mini-panel {
    width: min(calc(100vw - 1rem), 28rem);
    max-width: 100%;
  }
  .tag-chip-row,
  #mate-actions,
  #mate-tip-strip {
    gap: .5rem;
  }
}
body.xr-active #mate-shell,
body.xr-active #request-shell,
body.xr-active #theme-shell,
body.xr-active #tag-shell {
  opacity: 0.12;
  pointer-events: none;
}
body.xr-active #track-wrap,
body.xr-active #stage-hud,
body.xr-active #action-dock {
  backdrop-filter: blur(18px);
  box-shadow: 0 0 32px rgba(128, 80, 255, 0.18);
}
body.xr-active #visual-canvas {
  filter: saturate(1.18) contrast(1.08) brightness(1.08);
}
#xr-btn.on {
  border-color: rgba(184, 255, 211, .72);
  box-shadow: 0 0 18px rgba(127, 255, 208, .28);
  background: rgba(127, 255, 208, .12);
}
@media (max-width: 600px) {
  html,
  body {
    min-width: 0;
    font-size: 16px;
    overflow-x: hidden;
  }
  button,
  input,
  select,
  textarea {
    font-size: 1rem;
  }
  #root {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
  }
  #shade {
    background:
      radial-gradient(
        circle at 50% 48%,
        rgba(44, 22, 78, .12),
        transparent 28%),
      linear-gradient(
        to bottom,
        rgba(0, 0, 0, .84),
        rgba(4, 2, 12, .78) 24%,
        rgba(4, 2, 12, .82) 76%,
        rgba(0, 0, 0, .9));
  }
  #topbar,
  #mate-shell {
    left: .5rem;
    right: .5rem;
    width: auto;
    max-width: calc(100vw - 1rem);
    transform: none;
  }
  .theme-menu {
    position: fixed;
    inset: auto 0 calc(3.75rem + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 100vw;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .75rem;
    border-radius: 24px 24px 0 0;
  }
  #mate-shell {
    top: calc(4.15rem + env(safe-area-inset-top, 0px));
    bottom: auto;
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  #mate-top-bar {
    flex-wrap: wrap;
    gap: .5rem;
  }
  #mate-top-bar #auth-shell,
  #mate-panel-toggle {
    width: 100%;
  }
  #mate-panel-toggle,
  #mate-card,
  #request-panel,
  #tag-panel,
  #mini-panel {
    width: 100%;
    max-width: 100%;
  }
  #mate-card {
    max-height: 80vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 24px;
  }
  #track-meta,
  #track-artist,
  #status,
  #stage-hud,
  #gate-message,
  #queue-count,
  #content-depth,
  #mate-role,
  #mate-bio,
  #mate-tip-note,
  #mate-tip-feedback,
  .theme-browser-meta,
  .theme-choice-meta,
  .tag-label,
  .play-counter,
  .mate-pill {
    color: rgba(229, 216, 255, .92) !important;
    font-size: .95rem;
  }
  #auth-btn,
  #wallet-btn,
  #mate-toggle-kicker,
  .theme-section-label,
  .super-group-header span,
  .welcome-sub,
  .welcome-copy,
  .welcome-btn {
    font-size: .95rem !important;
  }
  #auth-btn,
  #wallet-btn,
  .welcome-btn {
    min-height: 44px;
  }
  #track-meta,
  #track-artist,
  #status,
  #stage-hud {
    white-space: normal;
  }
  #track-name {
    font-size: 1.25rem;
    line-height: 1.35;
    font-weight: 400;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
  #action-dock {
    inset: auto 0 0;
    height: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: .5rem;
    padding: .5rem .5rem calc(.5rem + env(safe-area-inset-bottom, 0px));
    background:
      linear-gradient(
        to top,
        rgba(3, 1, 10, .94),
        rgba(3, 1, 10, .72) 74%,
        transparent);
    pointer-events: none;
  }
  #play-btn {
    position: fixed;
    top: 50%;
    bottom: auto;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 5.8rem;
    height: 5.8rem;
  }
  #loop-btn,
  #back-btn,
  #restart-btn,
  #skip-btn,
  #fav-btn,
  #dislike-btn {
    position: static;
    inset: auto;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    transform: none;
  }
  #action-dock .action-btn:active {
    transform: scale(.96);
  }
  .hud-control,
  .theme-choice,
  .tag-chip,
  .mate-action,
  .mate-tip-btn,
  #request-panel-toggle,
  #tag-panel-toggle,
  #mini-panel-toggle,
  .request-input,
  .request-submit,
  .mini,
  .fx-chip {
    min-width: 44px;
    min-height: 44px;
  }
  .theme-choice {
    font-size: 1rem;
  }
  .theme-menu.open,
  .theme-group,
  .tag-chip-row,
  #mate-actions,
  #mate-tip-strip {
    gap: .5rem;
  }
  #request-shell,
  #tag-shell {
    left: .5rem;
    right: auto;
    max-width: calc(100vw - 1rem);
  }
  #request-shell {
    bottom: calc(9.25rem + env(safe-area-inset-bottom, 0px));
  }
  #tag-shell {
    bottom: calc(12.5rem + env(safe-area-inset-bottom, 0px));
  }
  #mini-shell {
    right: .5rem;
    left: auto;
    bottom: calc(9.25rem + env(safe-area-inset-bottom, 0px));
  }
  #request-panel,
  #tag-panel,
  #mini-panel {
    position: fixed;
    left: .5rem;
    right: .5rem;
    width: auto;
    max-width: calc(100vw - 1rem);
  }
  #request-panel {
    bottom: calc(12.5rem + env(safe-area-inset-bottom, 0px));
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #mini-panel {
    bottom: calc(12.5rem + env(safe-area-inset-bottom, 0px));
    grid-template-columns: minmax(0, 1fr);
  }
  #tag-panel {
    bottom: calc(15.75rem + env(safe-area-inset-bottom, 0px));
  }
  #tag-panel,
  #mini-panel {
    max-height: 70vh;
  }
  #mate-actions > *,
  #mate-tip-strip > * {
    flex: 1 1 44%;
  }
  #always-deeper-banner {
    max-width: calc(100vw - 2rem);
    font-size: .75rem;
    text-align: center;
    white-space: nowrap;
  }
}
/*# sourceMappingURL=app.css.map */
