:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #f5edf6;
  background: #100d15;
  font-synthesis: none;
  --accent: #ff8a32;
  --muted: #a89aad;
  --line: #342b3c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.music-options {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-top: 5px;
}
#queueTab { display: none; }
.music-options button {
  min-height: 36px;
  text-align: left;
  font-size: 13px;
}
.player-permission-note {
  color: #d9bcd8;
  font-size: 13px;
  margin: 5px 0;
}
.music-picker {
  width: min(480px, calc(100vw - 28px));
  max-height: min(620px, calc(100dvh - 28px));
}
.music-picker h2 {
  font-size: 22px;
  padding-inline-end: 40px;
}
.music-picker ul {
  display: grid;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.music-picker li button {
  width: 100%;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #221827;
  color: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.music-picker li button:hover {
  border-color: var(--accent);
}
.music-picker li small {
  display: block;
  margin-top: 4px;
  color: #c8b5cc;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.38;
  cursor: default;
}
button:focus-visible,
input:focus-visible {
  outline: 2px solid #ffc078;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.app {
  height: 100dvh;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 0 28px;
  overflow: hidden;
  max-width: 2000px;
  margin: auto;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid #79421f;
}
.brand strong {
  display: block;
  letter-spacing: 3px;
  font-size: 20px;
}
.brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 4px;
  color: var(--accent);
  margin-top: 4px;
}
.room-context {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-left: 18px;
  min-width: 0;
  flex: 1;
}
.room-context strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-context small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.connection-dot {
  width: 7px;
  height: 7px;
  background: #826a8d;
  border-radius: 50%;
  flex-shrink: 0;
}
.connection-dot.online {
  background: #8ed5ad;
  box-shadow: 0 0 10px #68e89e3b;
}
.profile-button {
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: 220px;
  flex-shrink: 0;
  background: #211b29;
  border: 1px solid #44364e;
  color: #e6d8ee;
  border-radius: 12px;
  padding: 7px 12px;
  font-size: 12px;
}
.profile-button > span:nth-child(2) {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #443047;
  color: #ffd7a8;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.user-avatar img,
.large-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.help-button {
  width: 29px;
  height: 29px;
  border: 1px solid #4f4059;
  border-radius: 50%;
  background: transparent;
  color: #beacc8;
  font-size: 14px;
  flex-shrink: 0;
}
main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 25px;
  flex: 1;
  min-height: 0;
  padding: 24px 0 0;
}
.venue {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.venue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: #be9d8c;
}
h1 {
  font-size: clamp(23px, 2.3vw, 35px);
  letter-spacing: -1px;
  margin: 7px 0 0;
  font-weight: 650;
}
h1 span,
.welcome h2 span {
  color: var(--accent);
}
.audience-info {
  text-align: right;
  flex-shrink: 0;
}
.live-label {
  display: inline-block;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #ffc382;
  border: 1px solid #724521;
  background: #342417;
  padding: 5px 8px;
  border-radius: 5px;
}
.audience-info strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #b6a8c1;
  margin-top: 7px;
}
.scene {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  border: 1px solid #4a3041;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 30%, #65312844, transparent 53%),
    radial-gradient(ellipse at 0 50%, #31204d80, transparent 50%),
    linear-gradient(#171127, #241525 63%, #15101c);
  box-shadow: inset 0 0 80px #08051199;
}
.scene-stars {
  position: absolute;
  inset: 0 0 30%;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 15% 20%, #e8d1fc 100%, transparent),
    radial-gradient(1px 1px at 70% 16%, #e8d1fc 100%, transparent),
    radial-gradient(1px 1px at 43% 5%, #e8d1fc 100%, transparent),
    radial-gradient(2px 2px at 84% 37%, #c4898d 100%, transparent),
    radial-gradient(1px 1px at 26% 45%, #e8d1fc 100%, transparent);
  background-size: 130px 110px;
}
.neon-arch {
  position: absolute;
  left: 50%;
  top: 9%;
  transform: translateX(-50%);
  width: 50%;
  height: 44%;
  border: 2px solid #f27d444f;
  border-bottom: 0;
  border-radius: 300px 300px 0 0;
  box-shadow:
    0 -3px 18px #fa7f2930,
    inset 0 5px 25px #f1863f0d;
  text-align: center;
  padding-top: 10%;
  background: repeating-radial-gradient(
    ellipse at 50% 100%,
    transparent 0 17px,
    #ff9a4515 18px 19px,
    transparent 20px 38px
  );
}
.neon-arch:before {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid #a675d04f;
  border-bottom: 0;
  border-radius: 300px 300px 0 0;
}
.neon-arch > span {
  font-size: clamp(20px, 3.6vw, 50px);
  letter-spacing: 12px;
  font-weight: 800;
  color: #ffd0a0;
  text-shadow: 0 0 25px #ff9b6380;
  padding-left: 12px;
  position: relative;
}
.neon-arch > small {
  display: block;
  font-size: 6px;
  letter-spacing: 2px;
  color: #ba8ea4;
  margin-top: 10px;
}
.light-beam {
  position: absolute;
  top: -8%;
  height: 90%;
  width: 24%;
  opacity: 0.26;
  filter: blur(5px);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  transform-origin: 50% 0;
  animation: beam 9s ease-in-out infinite alternate;
}
.light-beam.left {
  left: 5%;
  background: linear-gradient(#f79561, transparent);
  transform: rotate(-25deg);
}
.light-beam.right {
  right: 5%;
  background: linear-gradient(#ad7bf4, transparent);
  transform: rotate(25deg);
  animation-delay: -5s;
}
.stage-platform {
  position: absolute;
  left: 13%;
  right: 13%;
  top: 43%;
  height: 18%;
  background: linear-gradient(#62404e, #261b30 22%, #1b1423);
  border: 1px solid #ab694e55;
  border-radius: 50%;
  box-shadow: 0 12px 35px #0006;
}
.speaker {
  position: absolute;
  top: 32%;
  height: 31%;
  width: 12%;
  max-width: 90px;
  min-width: 45px;
  border: 1px solid #574052;
  background: linear-gradient(110deg, #312a3b, #15121d);
  border-radius: 11px;
  box-shadow: 5px 9px 15px #0005;
}
.speaker-left {
  left: 10%;
  transform: rotate(-4deg);
}
.speaker-right {
  right: 10%;
  transform: rotate(4deg);
}
.speaker i,
.speaker b {
  position: absolute;
  left: 20%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(
    circle,
    #2c2239 0 20%,
    #0d0b14 23% 34%,
    #55415e 36% 39%,
    #14101d 42% 63%,
    #654559 66% 68%,
    #1d1425 71%
  );
  border-radius: 50%;
  box-shadow: 0 0 9px #ff9d3820;
}
.speaker i {
  top: 12%;
}
.speaker b {
  bottom: 12%;
}
.speaker span {
  position: absolute;
  bottom: 4%;
  left: 32%;
  width: 36%;
  height: 2px;
  background: #d87e42;
}
.dj-area {
  position: absolute;
  left: 50%;
  top: 31%;
  width: 39%;
  max-width: 310px;
  height: 30%;
  transform: translateX(-50%);
  z-index: 3;
}
.dj-character {
  position: absolute;
  width: 110px;
  height: 146px;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
}
.dj-tag {
  position: absolute;
  left: 50%;
  bottom: 123%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 200px;
  white-space: nowrap;
  z-index: 4;
}
.dj-tag span {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  color: #ffb578;
  margin-bottom: 4px;
}
.dj-tag strong {
  display: block;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 550;
  color: #fce4e0;
}
.dj-desk {
  position: absolute;
  inset: auto 0 0;
  height: 65px;
  border: 2px solid #a0644a;
  border-bottom: 3px solid #db9656;
  background: linear-gradient(155deg, #3f2d3e, #1d1828);
  border-radius: 10px 10px 20px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 16px;
  box-shadow: 0 8px 25px #0008;
}
.dj-desk > strong {
  position: absolute;
  bottom: 7px;
  left: 0;
  right: 0;
  text-align: center;
  color: #f1b584;
  font-size: 10px;
  letter-spacing: 4px;
}
.dj-desk > strong span {
  font-size: 6px;
  color: #b599b1;
  margin-left: 8px;
  letter-spacing: 2px;
}
.turntable {
  width: 41px;
  height: 26px;
  position: relative;
  background: repeating-radial-gradient(
    ellipse,
    #15111e 0 2px,
    #443448 3px 4px
  );
  border-radius: 50%;
  border: 1px solid #8f6260;
  transform: rotate(-10deg);
}
.turntable i {
  position: absolute;
  inset: 8px 15px;
  background: #f5a65a;
  border-radius: 50%;
}
.mixer {
  display: flex;
  gap: 5px;
  height: 25px;
  align-items: center;
}
.mixer span {
  width: 3px;
  height: 15px;
  background: #b786b0;
  border-radius: 2px;
}
.mixer span:nth-child(2n) {
  height: 22px;
  background: #f8ae65;
}
.dance-floor {
  position: absolute;
  left: -20%;
  right: -20%;
  top: 52%;
  height: 85%;
  z-index: -1;
  transform: perspective(200px) rotateX(30deg);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 9%,
      #b5746a12 9% 9.2%,
      transparent 9.2% 18%
    ),
    repeating-linear-gradient(0deg, transparent 0 30px, #a96e8310 31px 32px);
  mask-image: linear-gradient(transparent, #000 15%, #000);
}
.crowd {
  position: absolute;
  left: 5%;
  right: 5%;
  top: 59%;
  bottom: 10%;
  z-index: 4;
}
.dancer {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 76px;
  height: 104px;
  background: none;
  border: 0;
  padding: 0;
  transform: translate(-50%, -50%);
  color: #e8dbe8;
}
.character-art {
  width: 100%;
  height: 100%;
  overflow: visible;
  display: block;
}
.dancer .character-art {
  height: 88px;
}
.dancer .name {
  font-size: 9px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 2px 3px #000;
  padding: 4px 7px;
  border-radius: 5px;
  background: #150f23b0;
}
.dancer.self .name {
  color: #ffd0a2;
  border: 1px solid #ab72475c;
}
.dancer:hover {
  filter: brightness(1.15);
}
.dancer:hover .name {
  background: #493049;
}

.scene[data-playing="true"] .turntable {
  animation: record 3s linear infinite;
}
.scene[data-playing="true"] .mixer span {
  animation: equalizer 1s ease-in-out infinite alternate;
}
.empty-crowd {
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 15%;
  text-align: center;
  z-index: 3;
}
.empty-crowd strong {
  font-weight: 500;
  display: block;
  font-size: 13px;
  color: #d1b7d0;
}
.empty-crowd span {
  display: block;
  font-size: 10px;
  color: #a489a5;
  margin-top: 7px;
}
.crowd-pages {
  position: absolute;
  bottom: 10px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a58baa;
  font-size: 9px;
  z-index: 7;
}
.crowd-pages button,
.queue-pages button,
.skin-pages button {
  background: transparent;
  color: #c3a9cc;
  border: 1px solid #5b4265;
  border-radius: 7px;
  padding: 4px 9px;
  font-size: 14px;
}
.venue-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  line-height: 1.5;
  color: #9b869f;
  margin-top: 12px;
  flex-shrink: 0;
}
.venue-foot > span:last-child {
  white-space: nowrap;
  color: #b28e7a;
  font-size: 8px;
  letter-spacing: 1px;
}
.player-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid #3e3042;
  background: linear-gradient(145deg, #231b2b, #19141e);
  border-radius: 20px;
  padding: 23px;
}
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.small-badge {
  font-size: 7px;
  letter-spacing: 1px;
  color: #d5a783;
  border: 1px solid #68452f;
  border-radius: 5px;
  padding: 5px 7px;
  white-space: nowrap;
}
.song-card {
  display: flex;
  gap: 14px;
  align-items: center;
}
.song-card > img {
  width: 74px;
  height: 74px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #654046;
}
.song-card > div {
  min-width: 0;
}
.song-card .eyebrow {
  font-size: 7px;
  color: #db9c6a;
}
.song-card h2 {
  font-size: 17px;
  line-height: 1.3;
  margin: 7px 0;
  letter-spacing: -0.3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.song-card p {
  font-size: 11px;
  color: #b6a4bf;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.timeline {
  height: 4px;
  margin-top: 22px;
  border-radius: 5px;
  background: #4e3b51;
  overflow: hidden;
  flex-shrink: 0;
}
.timeline > div {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ee7b35, #facb80);
  border-radius: 5px;
  transition: width 1s linear;
}
.times {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a38cae;
  margin-top: 7px;
  flex-shrink: 0;
}
.player-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
  flex-shrink: 0;
}
.pause-button {
  width: 41px;
  border: 1px solid #71505b;
  border-radius: 9px;
  background: transparent;
  color: #f7ceb1;
  font-size: 20px;
}
.vote-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1;
  border: 1px solid #825c48;
  border-radius: 9px;
  background: #ff8a320b;
  color: #f3c2a0;
  font-size: 11px;
  padding: 11px;
}
.vote-button strong {
  border-radius: 5px;
  padding: 3px 5px;
  background: #bf8a6530;
  font-size: 10px;
  white-space: nowrap;
}
.vote-button.voted {
  border-color: #7d618e;
  color: #d5b5ef;
  background: #9472b51a;
}
form {
  margin-top: 21px;
  flex-shrink: 0;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #e1ccdf;
  margin-bottom: 9px;
}
.query-row {
  display: flex;
  gap: 7px;
}
input {
  color: #eee3f0;
  background: #100d16;
  border: 1px solid #4e3b55;
  border-radius: 9px;
  padding: 12px;
  font-size: 12px;
  min-width: 0;
  width: 100%;
}
input::placeholder {
  color: #96809e;
}
.query-row button {
  width: 40px;
  flex-shrink: 0;
  background: #75421e55;
  border: 1px solid #8b5d35;
  color: #ffbd85;
  border-radius: 9px;
  font-size: 22px;
}
.next-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 12px;
  flex-shrink: 0;
}
.next-heading > span:last-child {
  font-size: 9px;
  color: #a48aae;
}
.queue-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-height: 0;
}
.queue-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #392b43;
  background: #18121e77;
  border-radius: 9px;
  padding: 10px;
  min-height: 54px;
  flex-shrink: 0;
}
.queue-index {
  font-size: 10px;
  color: #9d7659;
}
.queue-song {
  min-width: 0;
  flex: 1;
}
.queue-song strong {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}
.queue-song small {
  display: block;
  font-size: 9px;
  color: #a089ac;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.queue-duration {
  color: #a18ba8;
  font-size: 9px;
}
.queue-empty {
  font-size: 11px;
  line-height: 1.6;
  flex: 1;
  display: flex;
  align-items: center;
  text-align: center;
  color: #9d85a6;
  padding: 10px;
}
.queue-list:empty {
  flex: 0;
}
.queue-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  font-size: 9px;
  color: #a38bad;
  flex-shrink: 0;
}
.queue-pages button {
  font-size: 12px;
  padding: 3px 8px;
}
.voting-hint {
  font-size: 9px;
  line-height: 1.5;
  color: #a28ba9;
  padding-top: 14px;
  margin: 14px 0 0;
  border-top: 1px solid #3a2b41;
  flex-shrink: 0;
}
footer {
  height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
  font-size: 11px;
  color: #b49cbc;
}
footer > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #957660;
  white-space: nowrap;
}
footer .error {
  color: #efa69e;
}
.welcome {
  position: fixed;
  inset: 0;
  background: #0a0713cf;
  backdrop-filter: blur(12px);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.welcome-card {
  width: min(420px, 100%);
  border: 1px solid #654238;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 50% 0, #59332d88, transparent 65%), #1d1523;
  padding: 30px;
  text-align: center;
  box-shadow: 0 30px 100px #0008;
}
.welcome-card > img {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  border: 1px solid #c07a43;
  display: block;
  margin: 0 auto 24px;
}
.welcome h2 {
  font-size: 37px;
  letter-spacing: -1.3px;
  line-height: 1.15;
  margin: 14px 0 18px;
}
.welcome p {
  font-size: 13px;
  line-height: 1.7;
  color: #bca5c3;
}
.primary {
  display: block;
  width: 100%;
  color: #281709;
  background: #ff963e;
  border: 1px solid #ffb15b;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 650;
  margin-top: 24px;
}
.primary:hover:not(:disabled) {
  background: #ffb16c;
}
.text-button {
  background: transparent;
  color: #dca67e;
  border: 0;
  font-size: 11px;
  padding: 14px 8px;
}
.welcome small {
  display: block;
  color: #9f84ab;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 13px;
}
dialog {
  color: #f0e3f4;
  background:
    radial-gradient(ellipse at 50% 0, #46243999, transparent 60%), #1c1425;
  border: 1px solid #694859;
  border-radius: 22px;
  padding: 27px;
  width: min(840px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  box-shadow: 0 30px 100px #000a;
  overflow: auto;
}
dialog::backdrop {
  background: #08050dbf;
  backdrop-filter: blur(8px);
}
.close-dialog {
  position: absolute;
  right: 16px;
  top: 15px;
  background: #3a2944;
  border: 1px solid #73547d;
  color: #cbb0d9;
  font-size: 20px;
  border-radius: 8px;
  width: 30px;
  height: 30px;
}
.profile-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-right: 30px;
  border-bottom: 1px solid #483149;
  padding-bottom: 19px;
}
.large-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #6c394d;
  border: 2px solid #b27b62;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-weight: 700;
  color: #fbd0b5;
  font-size: 25px;
  flex-shrink: 0;
}
.profile-heading h2 {
  font-size: 24px;
  margin: 5px 0;
  letter-spacing: -0.5px;
  max-width: 350px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-heading p {
  font-size: 11px;
  color: #b795be;
  margin: 0;
}
.profile-character {
  width: 77px;
  height: 96px;
  margin-left: auto;
  flex-shrink: 0;
}
.collection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 19px 0 15px;
}
.collection-heading h3 {
  font-size: 18px;
  margin: 0 0 5px;
}
.collection-heading p {
  font-size: 11px;
  color: #bb9dc4;
  margin: 0;
}
.skin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.skin-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  border: 1px solid #5c3f66;
  background:
    radial-gradient(
      ellipse at 50% 10%,
      color-mix(in srgb, var(--skin) 18%, transparent),
      transparent 70%
    ),
    #1c1625;
  border-radius: 13px;
  padding: 10px 13px;
}
.skin-card.equipped {
  border-color: var(--skin);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--skin) 25%, transparent);
}
.skin-card .character-art {
  width: 70px;
  height: 94px;
}
.skin-card strong {
  font-size: 12px;
  font-weight: 550;
  margin: 4px 0;
}
.skin-card small {
  font-size: 8px;
  color: #b59bc0;
  margin: 0 0 8px;
}
.skin-card button {
  background: transparent;
  border: 1px solid #7c5987;
  color: #dac2e8;
  border-radius: 7px;
  font-size: 10px;
  padding: 7px 13px;
  width: 100%;
}
.skin-card.equipped button {
  color: var(--skin);
  border-color: var(--skin);
}
.skin-pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  margin-top: 14px;
  font-size: 11px;
  color: #bc9fc7;
}
.skin-pages button {
  font-size: 10px;
}
.profile-feedback {
  font-size: 11px;
  line-height: 1.5;
  margin: 15px 0 0;
  color: #b798bf;
  text-align: center;
  min-height: 17px;
}
.help-dialog {
  max-width: 550px;
  padding: 32px;
}
.help-dialog h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
}
.help-dialog ol {
  padding-left: 20px;
}
.help-dialog li,
.help-dialog p {
  font-size: 13px;
  color: #c3accb;
  line-height: 1.7;
  margin-top: 12px;
}
.member-dialog {
  max-width: 280px;
  text-align: center;
}
.member-character {
  width: 130px;
  height: 170px;
  margin: 0 auto;
}
.member-dialog h2 {
  font-size: 23px;
  word-break: break-word;
}
.member-dialog p {
  font-size: 12px;
  color: #c1a8cb;
}
.demo-banner {
  color: #f0bf78 !important;
}

@keyframes beam {
  to {
    transform: rotate(30deg);
    opacity: 0.14;
  }
}
@keyframes record {
  to {
    transform: rotate(350deg);
  }
}
@keyframes equalizer {
  to {
    height: 7px;
  }
}
@media (max-width: 1100px) {
  .app {
    padding: 0 20px;
  }
  main {
    grid-template-columns: minmax(0, 1fr) 295px;
    gap: 18px;
  }
  .topbar {
    gap: 15px;
  }
  .room-context {
    margin-left: 0;
  }
  .player-panel {
    padding: 18px;
  }
  .venue-heading h1 {
    font-size: 25px;
  }
  .venue-foot > span:last-child {
    display: none;
  }
  .dj-desk {
    height: 57px;
    padding: 7px 10px;
  }
  .dj-area {
    width: 43%;
  }
  .speaker-left {
    left: 6%;
  }
  .speaker-right {
    right: 6%;
  }
  .dj-character {
    width: 94px;
    height: 124px;
  }
  .song-card {
    gap: 10px;
  }
  .song-card > img {
    width: 60px;
    height: 60px;
  }
  .song-card h2 {
    font-size: 15px;
  }
  .dancer {
    width: 66px;
    height: 94px;
  }
  .dancer .character-art {
    height: 78px;
  }
  .dancer .name {
    font-size: 8px;
    max-width: 80px;
  }
  .neon-arch > small {
    font-size: 5px;
    letter-spacing: 1px;
  }
  .profile-button {
    max-width: 160px;
  }
}
@media (max-height: 780px) {
  .topbar {
    height: 72px;
  }
  main {
    padding-top: 18px;
  }
  .venue-heading {
    margin-bottom: 14px;
  }
  .venue-heading h1 {
    font-size: 26px;
  }
  .venue-heading .eyebrow {
    font-size: 8px;
  }
  .player-panel {
    padding: 17px;
  }
  .panel-title {
    margin-bottom: 15px;
  }
  .timeline {
    margin-top: 16px;
  }
  .player-actions {
    margin-top: 13px;
  }
  .vote-button {
    padding: 9px;
  }
  .next-heading {
    margin: 18px 0 9px;
  }
  form {
    margin-top: 16px;
  }
  .queue-list li {
    min-height: 47px;
    padding: 8px;
  }
  .queue-song strong {
    font-size: 10px;
  }
  .queue-song small {
    font-size: 8px;
    margin-top: 4px;
  }
  .queue-list {
    gap: 6px;
  }
  .voting-hint {
    padding-top: 10px;
    margin-top: 10px;
    font-size: 8px;
  }
  .venue-foot {
    font-size: 9px;
    margin-top: 10px;
  }
  footer {
    height: 39px;
    font-size: 10px;
  }
  .dj-character {
    width: 88px;
    height: 115px;
  }
  .dj-desk {
    height: 52px;
  }
  .dj-tag {
    bottom: 132%;
  }
  .neon-arch > small {
    display: none;
  }
  .skin-card .character-art {
    width: 58px;
    height: 77px;
  }
  .skin-card {
    padding: 8px 12px;
  }
  .profile-heading {
    padding-bottom: 13px;
  }
  .profile-character {
    width: 57px;
    height: 75px;
  }
  .collection-heading {
    margin: 14px 0 12px;
  }
  .collection-heading h3 {
    font-size: 17px;
  }
}
@media (max-width: 760px) {
  .app {
    padding: 0 13px;
    min-height: 600px;
  }
  .topbar {
    height: 65px;
    gap: 10px;
  }
  .brand {
    gap: 8px;
  }
  .brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .brand strong {
    font-size: 15px;
    letter-spacing: 2px;
  }
  .brand span {
    font-size: 6px;
    letter-spacing: 2.7px;
  }
  .room-context {
    display: none;
  }
  .profile-button {
    margin-left: auto;
    max-width: 155px;
    padding: 5px 9px;
    font-size: 11px;
  }
  .help-button {
    width: 25px;
    height: 25px;
  }
  .user-avatar {
    width: 26px;
    height: 26px;
  }
  main {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(210px, 1fr) auto;
    gap: 12px;
    padding-top: 13px;
  }
  .venue-heading {
    margin-bottom: 10px;
  }
  .venue-heading .eyebrow {
    display: none;
  }
  .venue-heading h1 {
    font-size: 21px;
    margin-top: 0;
  }
  .audience-info {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .audience-info strong {
    margin: 0;
    font-size: 9px;
  }
  .live-label {
    font-size: 6px;
    padding: 4px;
  }
  .scene {
    min-height: 190px;
    border-radius: 15px;
  }
  .neon-arch {
    padding-top: 3%;
    top: 8%;
    width: 47%;
    height: 42%;
  }
  .neon-arch > span {
    font-size: 23px;
    letter-spacing: 7px;
    padding-left: 7px;
  }
  .dj-area {
    width: 36%;
    top: 28%;
    height: 32%;
  }
  .dj-character {
    width: 66px;
    height: 88px;
    bottom: 22%;
  }
  .dj-desk {
    height: 37px;
    border-radius: 7px 7px 12px 12px;
    padding: 4px 8px;
  }
  .dj-desk > strong {
    bottom: 4px;
    font-size: 7px;
    letter-spacing: 2px;
  }
  .dj-desk > strong span {
    font-size: 5px;
  }
  .turntable {
    width: 26px;
    height: 16px;
  }
  .turntable i {
    inset: 5px 10px;
  }
  .mixer {
    height: 14px;
    gap: 3px;
  }
  .mixer span {
    height: 9px;
    width: 2px;
  }
  .mixer span:nth-child(2n) {
    height: 12px;
  }
  .dj-tag {
    bottom: 126%;
    max-width: 150px;
  }
  .dj-tag span {
    font-size: 5px;
    letter-spacing: 1px;
    margin-bottom: 2px;
  }
  .dj-tag strong {
    font-size: 9px;
    max-width: 140px;
  }
  .speaker {
    min-width: 32px;
    width: 10%;
    height: 28%;
  }
  .crowd {
    top: 63%;
    bottom: 12%;
  }
  .dancer {
    width: 46px;
    height: 64px;
  }
  .dancer .character-art {
    height: 53px;
  }
  .dancer .name {
    font-size: 6px;
    padding: 2px 3px;
    max-width: 58px;
  }
  .crowd-pages {
    font-size: 7px;
    bottom: 6px;
    left: 9px;
    right: 9px;
  }
  .crowd-pages button {
    font-size: 10px;
    padding: 2px 6px;
  }
  .empty-crowd {
    bottom: 15%;
    left: 12%;
    right: 12%;
  }
  .empty-crowd strong {
    font-size: 10px;
  }
  .empty-crowd span {
    font-size: 8px;
    margin-top: 4px;
  }
  .venue-foot {
    display: none;
  }
  .player-panel {
    border-radius: 14px;
    padding: 13px 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0 12px;
  }
  .panel-title {
    grid-column: 1/-1;
    margin-bottom: 10px;
  }
  .song-card {
    min-width: 0;
  }
  .song-card > img {
    width: 42px;
    height: 42px;
    border-radius: 7px;
  }
  .song-card h2 {
    font-size: 13px;
    margin: 3px 0;
    -webkit-line-clamp: 1;
  }
  .song-card p {
    font-size: 9px;
  }
  .song-card .eyebrow {
    display: none;
  }
  .player-actions {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0;
    gap: 5px;
    align-self: center;
  }
  .vote-button {
    font-size: 8px;
    padding: 7px;
    gap: 5px;
  }
  .vote-button strong {
    font-size: 8px;
  }
  .pause-button {
    width: 30px;
    font-size: 16px;
  }
  .timeline {
    grid-row: 3;
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .times {
    grid-row: 4;
    grid-column: 1/-1;
    margin-top: 5px;
    font-size: 8px;
  }
  form {
    grid-column: 1/-1;
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  label {
    font-size: 10px;
    margin: 0;
    white-space: nowrap;
  }
  .query-row {
    flex: 1;
    gap: 5px;
  }
  input {
    font-size: 10px;
    padding: 9px;
  }
  .query-row button {
    width: 31px;
    font-size: 19px;
  }
  .player-panel:not([data-panel="queue"]) > :is(.next-heading, .queue-list, .queue-pages, .queue-empty),
  .voting-hint {
    display: none !important;
  }
  footer {
    height: 34px;
    font-size: 9px;
  }
  footer > span:last-child {
    display: none;
  }
  .profile-dialog {
    padding: 22px 18px;
  }
  .profile-heading {
    gap: 12px;
  }
  .large-avatar {
    width: 43px;
    height: 43px;
    font-size: 18px;
  }
  .profile-heading h2 {
    font-size: 18px;
    max-width: 190px;
  }
  .profile-heading p {
    font-size: 9px;
  }
  .profile-heading .eyebrow {
    font-size: 7px;
  }
  .profile-character {
    display: none;
  }
  .collection-heading .small-badge {
    display: none;
  }
  .skin-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .skin-card .character-art {
    height: 92px;
    width: 68px;
  }
  .skin-card {
    padding: 11px;
  }
  .collection-heading p {
    font-size: 10px;
  }
  .profile-feedback {
    font-size: 10px;
  }
  .welcome h2 {
    font-size: 33px;
  }
  .welcome-card {
    padding: 25px;
  }
  .welcome-card > img {
    width: 65px;
    height: 65px;
    margin-bottom: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

.presence-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #e6cfdc;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  white-space: normal;
  cursor: pointer;
}
.presence-choice input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex: 0 0 16px;
  accent-color: #ff963e;
}
.welcome-presence {
  text-align: left;
  font-size: 11px;
  margin-top: 22px;
}
.welcome-presence + .primary {
  margin-top: 17px;
}
.presence-setting {
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid #483149;
}
.presence-setting p {
  font-size: 10px;
  color: #b798bf;
  line-height: 1.5;
  margin: 6px 0 0;
}
.presence-setting + .profile-feedback {
  margin-top: 10px;
}
@media (max-height: 780px) {
  .presence-setting {
    margin-top: 11px;
    padding-top: 10px;
  }
  .presence-setting + .profile-feedback {
    margin-top: 7px;
  }
  .presence-choice {
    font-size: 11px;
  }
}

/* Original Mika venues: the audience faces the camera; the DJ faces the crowd. */
.scene-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  flex-shrink: 0;
}
.scene-toolbar label {
  margin: 0;
  color: #a78b9f;
  font-size: 8px;
  letter-spacing: 1.5px;
}
.scene-toolbar select {
  max-width: 200px;
  color: #e7c4ad;
  font: inherit;
  font-size: 11px;
  border: 1px solid #59404e;
  border-radius: 8px;
  padding: 7px 28px 7px 10px;
  background: #211725;
  cursor: pointer;
}
.scene-toolbar select:focus-visible {
  outline: 2px solid #ffc078;
  outline-offset: 3px;
}
.scene-toolbar > span {
  color: #9b819f;
  font-size: 10px;
  margin-left: auto;
}
.venue-heading {
  margin-bottom: 12px;
}
.scene {
  container-type: size;
  --venue-light: #ff9c62;
}
.scene-scenery {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scene[data-theme="rooftop"] {
  --venue-light: #aac8fa;
  background:
    radial-gradient(ellipse at 70% 18%, #6e568b55, transparent 60%),
    linear-gradient(#11172d, #27233a 65%, #12131f);
}
.scene[data-theme="rooftop"] .city-scenery,
.scene[data-theme="festival"] .festival-scenery {
  display: block;
}
.scene[data-theme="rooftop"] .neon-arch {
  border-color: #b7beea55;
  box-shadow: 0 -3px 20px #b1a4ed22;
  background: repeating-radial-gradient(
    ellipse at 50% 100%,
    transparent 0 20px,
    #a3bfff12 21px 22px,
    transparent 23px 45px
  );
}
.scene[data-theme="rooftop"] .dance-floor {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 9%,
      #bdc9fb15 9% 9.2%,
      transparent 9.2% 18%
    ),
    repeating-linear-gradient(0deg, transparent 0 30px, #b1b5e818 31px 32px);
}
.scene[data-theme="festival"] {
  --venue-light: #ffcc92;
  background:
    radial-gradient(ellipse at 50% 25%, #d57b7144, transparent 60%),
    linear-gradient(#4b294e, #a66464 52%, #302336 70%, #181423);
}
.scene[data-theme="festival"] .neon-arch {
  border-color: #ffcd8677;
  box-shadow: 0 -3px 25px #ffd69a2b;
  background: repeating-radial-gradient(
    ellipse at 50% 100%,
    transparent 0 15px,
    #ffb66a25 16px 20px,
    transparent 21px 32px
  );
}
.scene[data-theme="festival"] .scene-stars {
  opacity: 0.25;
}
.neon-arch {
  top: 5%;
  height: 51%;
  width: 64%;
  padding-top: 4%;
}
.neon-arch > span {
  font-size: clamp(24px, 9cqh, 60px);
  letter-spacing: 10px;
  color: var(--venue-light);
}
.neon-arch > small {
  font-size: 6px;
  margin-top: 7px;
}
.light-beam {
  opacity: 0.2;
  width: 30%;
}
.speaker {
  top: 37%;
  height: 32%;
  width: 11%;
}
.speaker-left {
  left: 4%;
}
.speaker-right {
  right: 4%;
}
.stage-platform {
  left: 23%;
  right: 23%;
  top: 78%;
  height: 13%;
  opacity: 0.7;
}
.dance-floor {
  top: 38%;
  height: 100%;
}
.crowd {
  top: 22%;
  bottom: 38%;
  left: 13%;
  right: 13%;
  z-index: 3;
}
.dancer {
  width: clamp(43px, 14cqh, 86px);
  height: clamp(58px, 18cqh, 112px);
}
.dancer .character-art {
  height: calc(100% - 18px);
  flex-shrink: 0;
}
.dancer .name {
  font-size: clamp(7px, 1.7cqh, 10px);
  max-width: 100%;
  padding: 2px 5px;
}
.dj-area {
  top: auto;
  bottom: 13%;
  height: 30%;
  width: 35%;
  max-width: 320px;
  z-index: 5;
}
.dj-desk {
  top: 7%;
  bottom: auto;
  height: clamp(35px, 11cqh, 70px);
  padding: 7px 14px;
  border: 2px solid #bb8059;
  border-bottom: 5px solid #845438;
  border-radius: 10px 10px 16px 16px;
  background: linear-gradient(165deg, #644550, #302638 65%, #1a1425);
  transform: perspective(400px) rotateX(20deg);
  box-shadow:
    0 12px 28px #0009,
    0 0 20px #ff9b4a18;
}
.dj-desk:before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 4px;
  height: 1px;
  background: #ffd1a255;
}
.dj-desk > strong {
  bottom: 4px;
  font-size: 8px;
  opacity: 0.8;
}
.turntable {
  width: clamp(28px, 8cqh, 47px);
  height: clamp(19px, 6cqh, 34px);
  transform: rotate(-8deg);
}
.turntable i {
  inset: 34% 37%;
}
.mixer {
  height: 20px;
  gap: 4px;
}
.mixer span {
  height: 12px;
}
.mixer span:nth-child(2n) {
  height: 18px;
}
.dj-character {
  width: clamp(65px, 22cqh, 140px);
  height: clamp(86px, 29cqh, 185px);
  bottom: 1%;
  z-index: 2;
  filter: drop-shadow(0 5px 9px #0006);
}
.dj-tag {
  bottom: -11%;
  z-index: 3;
  max-width: 220px;
  padding: 4px 11px;
  border: 1px solid #c48a6144;
  border-radius: 7px;
  background: #17111ee6;
}
.dj-tag span {
  display: inline;
  font-size: 6px;
  letter-spacing: 1px;
  margin: 0 6px 0 0;
  color: #c99671;
}
.dj-tag strong {
  display: inline;
  font-size: 10px;
  max-width: 170px;
  vertical-align: middle;
}
.empty-crowd {
  bottom: auto;
  top: 33%;
  left: 22%;
  right: 22%;
  z-index: 4;
}
.crowd-pages {
  bottom: 9px;
}
@media (max-width: 1100px) {
  .scene-toolbar > span {
    display: none;
  }
  .dj-area {
    width: 44%;
  }
  .crowd {
    left: 12%;
    right: 12%;
  }
  .dj-tag strong {
    font-size: 9px;
    max-width: 130px;
  }
}
@media (max-height: 680px) and (min-width: 761px) {
  .scene-toolbar {
    margin-bottom: 8px;
  }
  .scene-toolbar select {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  .venue-heading h1 {
    font-size: 23px;
  }
  .dj-tag span {
    display: none;
  }
  .crowd-pages {
    bottom: 6px;
  }
}
@media (max-width: 760px) {
  .scene-toolbar {
    margin-bottom: 8px;
    gap: 8px;
  }
  .scene-toolbar label {
    font-size: 7px;
  }
  .scene-toolbar select {
    font-size: 10px;
    padding: 5px 22px 5px 8px;
  }
  .neon-arch {
    top: 6%;
    padding-top: 2%;
    width: 65%;
    height: 49%;
  }
  .neon-arch > span {
    font-size: clamp(20px, 8cqh, 34px);
    letter-spacing: 7px;
  }
  .crowd {
    left: 7%;
    right: 7%;
    top: 23%;
    bottom: 41%;
  }
  .dancer {
    width: clamp(37px, 14cqh, 55px);
    height: clamp(49px, 19cqh, 75px);
  }
  .dancer .character-art {
    height: calc(100% - 13px);
  }
  .dancer .name {
    font-size: 6px;
    padding: 2px 3px;
  }
  .dj-area {
    width: 43%;
    height: 33%;
    bottom: 14%;
  }
  .dj-desk {
    height: clamp(29px, 10cqh, 43px);
    padding: 4px 8px;
    border-bottom-width: 3px;
  }
  .dj-desk > strong {
    font-size: 6px;
    letter-spacing: 2px;
    bottom: 2px;
  }
  .dj-character {
    width: clamp(56px, 22cqh, 85px);
    height: clamp(75px, 29cqh, 112px);
    bottom: -2%;
  }
  .dj-tag {
    bottom: -15%;
    padding: 3px 7px;
  }
  .dj-tag span {
    font-size: 5px;
    letter-spacing: 0.5px;
  }
  .dj-tag strong {
    font-size: 8px;
    max-width: 100px;
  }
  .turntable {
    width: 27px;
    height: 18px;
  }
  .mixer {
    height: 15px;
    gap: 3px;
  }
  .mixer span {
    width: 2px;
    height: 9px;
  }
  .mixer span:nth-child(2n) {
    height: 13px;
  }
  .speaker {
    top: 40%;
    height: 28%;
    min-width: 28px;
  }
  .speaker-left {
    left: 3%;
  }
  .speaker-right {
    right: 3%;
  }
  .empty-crowd {
    top: 24%;
    left: 13%;
    right: 13%;
  }
}
/* Account collection and shared room features. */
.profile-tabs,
.side-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #483149;
  padding: 12px 0 8px;
  flex-shrink: 0;
}
.profile-tabs button,
.side-tabs button {
  flex: 1;
  font: inherit;
  font-size: 12px;
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #b69bc3;
}
.profile-tabs button[aria-selected="true"],
.side-tabs button[aria-selected="true"] {
  color: #ffc28a;
  background: #ff953415;
  border-color: #af744b70;
}
.side-tabs {
  padding: 0 0 12px;
  margin-bottom: 14px;
}
.side-tabs button {
  font-size: 11px;
  padding: 7px 10px;
}
.side-tabs span {
  font-size: 9px;
  color: #d5b5ed;
  margin-left: 4px;
}
.collection-refresh {
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  border: 1px solid #654c6c;
  color: #f1bd92;
  background: transparent;
  border-radius: 8px;
  font-size: 20px;
}
.collection-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 94px;
  width: 100%;
}
.collection-preview .character-art {
  max-width: 70px;
}
.scene-thumbnail {
  position: relative;
  overflow: hidden;
  border: 1px solid #765146;
  border-radius: 8px;
  height: 94px;
  background:
    radial-gradient(ellipse at 50% 100%, #9e5462, transparent 70%), #191429;
  margin-bottom: 7px;
}
.scene-thumbnail:before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 12%;
  bottom: -20%;
  border: 3px double #fca55c88;
  border-radius: 70px 70px 0 0;
}
.scene-thumbnail:after {
  content: "● ● ●";
  position: absolute;
  bottom: 9px;
  color: #ffe0a8;
  font-size: 19px;
  letter-spacing: 6px;
}
.scene-thumbnail > span {
  font-size: 13px;
  letter-spacing: 5px;
  color: #ffbd85;
  position: relative;
  margin-top: -15px;
}
.scene-thumbnail[data-theme="rooftop"] {
  background:
    linear-gradient(
      90deg,
      #242b4a 10%,
      #11162e 10% 25%,
      #2d3459 25% 35%,
      #191b38 35% 60%,
      #282c48 60% 70%,
      #12172e 70%
    ),
    #141527;
}
.scene-thumbnail[data-theme="festival"] {
  background:
    radial-gradient(circle at 50% 35%, #ffcd6a77 0 22%, transparent 23%),
    linear-gradient(#693958, #b0716e 65%, #332640);
}
.scene-thumbnail[data-theme="cosmos"] {
  background:
    radial-gradient(circle at 70% 25%, #c5b3f9 0 12%, transparent 13%),
    radial-gradient(ellipse at 20% 80%, #7959ac, transparent), #11132d;
}
.reset-scene {
  display: block;
  font: inherit;
  font-size: 10px;
  padding: 8px 11px;
  margin: 0 0 11px;
  background: transparent;
  border: 1px solid #6c4a70;
  border-radius: 7px;
  color: #d2afdc;
}
.skin-card.locked {
  border-style: dashed;
}
.skin-card.locked small {
  color: #deba8f;
}
.skin-card button:disabled {
  opacity: 0.6;
}
.scene-collection-button {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #211725;
  color: #e7c4ad;
  font: inherit;
  font-size: 11px;
  border: 1px solid #59404e;
  border-radius: 8px;
  padding: 7px 10px;
}
.scene-toolbar > .scene-label {
  margin-left: 0;
  font-size: 8px;
  color: #a78b9f;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.scene-vote {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #342338;
  border: 1px solid #8b5e63;
  border-radius: 10px;
  padding: 9px 11px;
  margin: 0 0 10px;
  flex-shrink: 0;
}
.scene-vote > div {
  flex: 1;
  min-width: 0;
}
.scene-vote strong {
  display: block;
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-vote small {
  display: block;
  font-size: 9px;
  color: #c8a7c9;
  margin-top: 5px;
}
.scene-vote button {
  font: inherit;
  font-size: 10px;
  color: #ffd0a3;
  border: 1px solid #94664e;
  border-radius: 7px;
  background: transparent;
  padding: 8px;
}
.scene[data-theme="cosmos"] {
  --venue-light: #e3ccff;
  background:
    radial-gradient(
      circle at 80% 16%,
      #d9c0ed99 0 5%,
      #a08cc94f 5.3% 6%,
      transparent 6.3%
    ),
    radial-gradient(ellipse at 25% 35%, #6942a970, transparent 55%),
    linear-gradient(#0c1226, #332347 60%, #141024);
}
.scene[data-theme="cosmos"] .neon-arch {
  border-color: #b18cf480;
  background: repeating-radial-gradient(
    ellipse at 50% 100%,
    transparent 0 18px,
    #ba90fe25 19px 21px,
    transparent 22px 38px
  );
}
.player-panel[data-panel="chat"] > :not(.side-tabs):not(.chat-panel) {
  display: none !important;
}
.chat-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 10px;
}
.chat-heading p {
  font-size: 10px;
  color: #b398bd;
  margin: 5px 0 0;
  line-height: 1.5;
}
.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #725371 transparent;
  padding: 0 5px 0 0;
}
.chat-message {
  border-bottom: 1px solid #49334c66;
  padding: 11px 0;
}
.chat-message-heading {
  display: flex;
  align-items: center;
  gap: 7px;
}
.chat-message-heading strong {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  color: #f0b78a;
  font-weight: 550;
}
.chat-message time {
  font-size: 8px;
  color: #ac8db8;
}
.chat-message button {
  border: 0;
  background: none;
  color: #b69bc3;
  cursor: pointer;
  font-size: 16px;
  padding: 0 3px;
}
.chat-message p {
  font-size: 12px;
  color: #e1cfe7;
  line-height: 1.55;
  overflow-wrap: anywhere;
  margin: 5px 0 0;
  white-space: pre-wrap;
}
.chat-empty {
  font-size: 12px;
  color: #b196bc;
  line-height: 1.8;
  text-align: center;
  padding: 30px 15px;
}
.chat-note {
  font-size: 9px;
  line-height: 1.5;
  color: #ac8eb7;
}
.chat-panel form {
  margin-top: 0;
}
.chat-panel input {
  font-size: 11px;
}
@media (max-height: 780px) {
  .profile-tabs {
    padding: 9px 0 6px;
  }
  .profile-tabs button {
    font-size: 11px;
    padding: 7px 10px;
  }
  .collection-preview {
    height: 65px;
  }
  .collection-preview .character-art {
    height: 62px;
    width: 47px;
  }
  .skin-card {
    padding: 6px 10px;
  }
  .skin-card strong {
    font-size: 11px;
  }
  .skin-card small {
    font-size: 7px;
  }
  .skin-card button {
    padding: 6px;
  }
  .scene-thumbnail {
    height: 65px;
  }
  .side-tabs {
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .panel-title {
    margin-bottom: 11px;
  }
  .next-heading {
    margin-top: 14px;
  }
}
@media (max-width: 760px) {
  .side-tabs {
    grid-column: 1/-1;
    margin-bottom: 9px;
    padding-bottom: 7px;
  }
  .side-tabs button {
    padding: 5px;
    font-size: 10px;
  }
  .player-panel[data-panel="chat"] {
    display: flex;
    height: clamp(230px, 32dvh, 300px);
  }
  .chat-heading p {
    font-size: 9px;
  }
  .chat-message p {
    font-size: 11px;
  }
  .chat-panel form {
    display: block;
  }
  .chat-panel label {
    display: block;
    margin-bottom: 5px;
  }
  .chat-panel .query-row {
    width: 100%;
  }
  .scene-collection-button {
    font-size: 10px;
    padding: 5px 8px;
    gap: 12px;
  }
  .scene-toolbar > .scene-label {
    display: block;
    font-size: 7px;
  }
  .scene-toolbar > #sceneOwner {
    display: none;
  }
  .profile-tabs button {
    font-size: 11px;
    padding: 8px 5px;
  }
  .collection-heading h3 {
    font-size: 15px;
  }
  .collection-heading p {
    font-size: 10px;
    line-height: 1.5;
  }
  .scene-vote {
    padding: 7px;
    gap: 5px;
  }
  .scene-vote strong {
    font-size: 9px;
  }
  .scene-vote small {
    font-size: 8px;
  }
  .scene-vote button {
    font-size: 8px;
    padding: 6px;
  }
  .collection-preview {
    height: 92px;
  }
  .collection-preview .character-art {
    height: 88px;
    width: 66px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene .character-body,
  .dance-preview .character-body {
    animation: none !important;
  }
}
@media (max-height: 780px) {
  .profile-dialog {
    padding: 21px 24px;
  }
  .profile-dialog .collection-preview {
    height: 60px;
  }
  .profile-dialog .collection-heading {
    margin: 10px 0;
  }
  .profile-dialog .skin-pages {
    margin-top: 8px;
  }
  .profile-dialog .presence-setting {
    margin-top: 9px;
    padding-top: 8px;
  }
  .profile-dialog .profile-feedback {
    margin-top: 7px;
  }
}
@media (max-width: 760px) {
  .profile-dialog {
    padding: 22px 18px;
  }
  .profile-dialog .collection-preview {
    height: 90px;
  }
}
@media (max-width: 760px) {
  .chat-panel .chat-empty {
    padding: 0 6px;
    margin: 0;
    font-size: 11px;
    line-height: 1.5;
  }
}


.dancer {
  width: clamp(61px, 16cqh, 112px);
  height: clamp(91px, 25cqh, 166px);
  overflow: visible;
}
.dancer-model {
  width: 100%;
  height: calc(100% - 20px);
}
.dancer .dancer-model .character-art {
  height: 100%;
  width: 100%;
}
.dancer[data-row="0"] {
  transform: translate(-50%, -50%) scale(0.9);
}
.dancer[data-row="1"] {
  transform: translate(-50%, -50%);
}
.dancer .name {
  font-size: clamp(9px, 1.9cqh, 12px);
  padding: 3px 7px;
  border: 1px solid #ffffff18;
  background: #17121fdb;
}
.dancer:hover {
  filter: drop-shadow(0 0 9px #ffa15a66);
}
.dancer:focus-visible {
  outline: 2px solid #ffc587;
  outline-offset: 5px;
  border-radius: 12px;
}
.avatar-reaction {
  position: absolute;
  top: -12px;
  left: 50%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #ffd6a74d;
  border-radius: 12px;
  background: #241a2dec;
  box-shadow: 0 6px 18px #0006;
  font-size: 22px;
  pointer-events: none;
  animation: reaction-pop 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both;
}
.avatar-reaction[hidden] {
  display: none;
}
.dj-reaction {
  top: -27px;
}
@keyframes reaction-pop {
  from {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.4);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}
.stage-interactions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  flex-shrink: 0;
  border: 1px solid #ffffff10;
  border-radius: 0 0 14px 14px;
  padding: 7px 12px;
  background: linear-gradient(90deg, #231b29, #19151f);
}
.stage-interactions button {
  color: #e6d8eb;
  border: 1px solid #ffffff17;
  background: #ffffff05;
  border-radius: 9px;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.stage-interactions button:hover:enabled {
  background: #ff9b4a12;
  border-color: #ffb57588;
  transform: translateY(-1px);
}
#likeButton {
  display: flex;
  gap: 9px;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  font-size: 12px;
}
#likeButton > span:first-child {
  font-size: 23px;
  color: #f5b786;
}
#likeButton strong {
  min-width: 15px;
  color: #ffbe8c;
}
#likeButton[aria-pressed="true"] {
  border-color: #f59a5b66;
  background: #f59a5b17;
  color: #ffd9ba;
}
.reaction-hint {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #a798ae;
  margin-left: auto;
}
.reaction-buttons {
  display: flex;
  gap: 6px;
}
.reaction-buttons button {
  width: 37px;
  height: 36px;
  font-size: 21px;
  padding: 0;
}
.venue-foot {
  padding-top: 9px;
}
.skin-card .collection-preview {
  display: grid;
  place-items: center;
  position: relative;
  padding: 0;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: radial-gradient(ellipse at 50% 90%, #ffffff10, transparent 70%);
}
.skin-card .collection-preview:after {
  content: "EXPERIMENTAR ↗";
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #ffffff20;
  border-radius: 5px;
  padding: 3px 6px;
  background: #18121de8;
  font-size: 8px;
  white-space: nowrap;
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 0.15s;
}
.skin-card .collection-preview:hover:after,
.skin-card .collection-preview:focus-visible:after {
  opacity: 1;
}
.skin-card .collection-preview .character-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: 100%;
  margin: auto;
}
.skin-card.equipped .collection-preview {
  background: radial-gradient(ellipse at 50% 90%, #f79e5525, transparent 70%);
  color: inherit;
}
.showcase-dialog {
  width: min(760px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  padding: 0;
  overflow: hidden;
  border: 1px solid #b6957840;
  border-radius: 22px;
  background: #1c1722;
}
.showcase-dialog[open] {
  display: grid;
  grid-template-columns: 45% 55%;
}
.showcase-dialog > .close-dialog {
  z-index: 10;
}
.showcase-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: 30px 16px;
  background:
    radial-gradient(ellipse at 50% 35%, #734c3b88, transparent 70%),
    linear-gradient(135deg, #252030, #15131e);
  overflow: hidden;
}
.showcase-stage > span {
  font-size: 10px;
  letter-spacing: 4px;
  color: #d6bda7;
  margin-top: 15px;
  z-index: 1;
}
.showcase-halo {
  position: absolute;
  width: 260px;
  height: 260px;
  border: 1px solid #ffaf6e45;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    transparent 55%,
    #ffac6110 56%,
    transparent 71%
  );
  box-shadow:
    0 0 65px #ffa76d0c,
    inset 0 0 35px #ffa76d08;
}
.showcase-art {
  position: relative;
  width: 210px;
  height: 290px;
  z-index: 1;
}
.showcase-art .character-art {
  height: 100%;
  width: 100%;
  filter: drop-shadow(0 12px 15px #0005);
}
.showcase-art.scene-thumbnail {
  width: 100%;
  height: 230px;
  border-radius: 14px;
}
.showcase-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px 26px 26px;
  gap: 15px;
  min-width: 0;
}
.showcase-info h2 {
  font-size: 29px;
  line-height: 1.1;
  margin: 0;
}
.showcase-info p {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #b8acbf;
}
.showcase-dances {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.showcase-dances button {
  color: #cbbdd2;
  font-size: 10px;
  padding: 8px;
  background: #ffffff05;
  border: 1px solid #ffffff16;
  border-radius: 7px;
}
.showcase-dances button[aria-pressed="true"] {
  border-color: #ffaa65;
  color: #ffcd9e;
  background: #ff9b4a12;
}
.showcase-ownership {
  color: #e5b785;
  font-size: 9px;
  letter-spacing: 1.3px;
}
.showcase-info .primary {
  min-height: 42px;
  margin: 0;
  font-size: 12px;
}
.showcase-info .showcase-note {
  font-size: 10px;
  line-height: 1.6;
}
.member-detail {
  max-width: 260px;
  margin: 12px auto 18px;
  font-size: 12px;
  line-height: 1.6;
  color: #b9a9bf;
}
@media (max-height: 780px) and (min-width: 761px) {
  .stage-interactions {
    min-height: 46px;
    padding: 5px 10px;
  }
  .dancer {
    height: clamp(82px, 25cqh, 130px);
    width: clamp(56px, 16cqh, 90px);
  }
  .venue-foot {
    font-size: 9px;
  }
}
@media (max-height: 699px) and (min-width: 761px) {
  .profile-dialog .collection-preview {
    height: 96px;
  }
}
@media (max-width: 760px) {
  .dancer {
    width: clamp(43px, 13vw, 68px);
    height: clamp(69px, 20vw, 104px);
  }
  .dancer[data-row="0"] {
    transform: translate(-50%, -50%);
  }
  .dancer .name {
    font-size: 8px;
    padding: 2px 4px;
  }
  .stage-interactions {
    min-height: 43px;
    gap: 5px;
    padding: 4px 7px;
  }
  #likeButton {
    height: 31px;
    font-size: 10px;
    padding: 0 8px;
    gap: 5px;
  }
  .reaction-hint {
    display: none;
  }
  .reaction-buttons {
    margin-left: auto;
    gap: 4px;
  }
  .reaction-buttons button {
    width: 31px;
    height: 31px;
    font-size: 18px;
  }
  .avatar-reaction {
    width: 27px;
    height: 27px;
    font-size: 17px;
    top: -8px;
  }
  .showcase-dialog[open] {
    grid-template-columns: 1fr;
    width: min(400px, calc(100vw - 28px));
  }
  .showcase-stage {
    min-height: 0;
    height: 230px;
    padding: 14px;
  }
  .showcase-art {
    height: 190px;
    width: 145px;
  }
  .showcase-halo {
    width: 195px;
    height: 195px;
  }
  .showcase-stage > span {
    margin-top: 3px;
    font-size: 8px;
  }
  .showcase-art.scene-thumbnail {
    height: 170px;
    width: 80%;
  }
  .showcase-info {
    padding: 20px;
    gap: 11px;
  }
  .showcase-info h2 {
    font-size: 25px;
  }
  .showcase-info p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rig-v2 g,
  .avatar-reaction {
    animation: none !important;
  }
  .avatar-reaction {
    transform: translateX(-50%);
  }
}

/* Raridades e loja usam a mesma identidade visual no inventário. */
[data-rarity="common"] {
  --rarity: #969ba6;
  --rarity-glow: #969ba61a;
}
[data-rarity="uncommon"] {
  --rarity: #66ce8d;
  --rarity-glow: #66ce8d22;
}
[data-rarity="rare"] {
  --rarity: #b08bfa;
  --rarity-glow: #a572f82b;
}
[data-rarity="epic"] {
  --rarity: #edc65f;
  --rarity-glow: #edc65f25;
}
[data-rarity="legendary"] {
  --rarity: #ffe09b;
  --rarity-glow: #f9bd4c3b;
}
.skin-card[data-rarity] {
  border-color: color-mix(in srgb, var(--rarity) 60%, #23202b);
  background:
    radial-gradient(ellipse at 50% 0, var(--rarity-glow), transparent 78%),
    #1b1821;
  overflow: hidden;
}
.skin-card.equipped[data-rarity] {
  border-color: var(--rarity);
  box-shadow: inset 0 0 0 1px var(--rarity-glow);
}
.rarity-badge {
  position: relative;
  z-index: 1;
  color: var(--rarity, #aaa);
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 3px 0 5px;
  font-weight: 700;
}
.skin-card[data-rarity="legendary"] {
  border: 1px solid #ffe0a5;
  box-shadow:
    0 0 22px #eac05b20,
    inset 0 0 26px #edc15f14;
  background:
    radial-gradient(ellipse at 50% -10%, #b7883e55, transparent 80%), #231e22;
}
.skin-card[data-rarity="legendary"]:before {
  content: "";
  position: absolute;
  inset: -90%;
  background: linear-gradient(
    110deg,
    transparent 40%,
    #fff2bf22 47%,
    #fff9dc44 50%,
    #fff2bf22 53%,
    transparent 60%
  );
  transform: translateX(-60%);
  animation: legendary-gleam 7s ease-in-out infinite;
  pointer-events: none;
}
.skin-card[data-rarity="legendary"] > * {
  position: relative;
}
@keyframes legendary-gleam {
  0%,
  20% {
    transform: translateX(-60%);
  }
  65%,
  100% {
    transform: translateX(60%);
  }
}
.showcase-dialog[data-rarity] {
  border-color: var(--rarity);
}
.showcase-dialog[data-rarity] .showcase-halo {
  border-color: var(--rarity);
  box-shadow:
    0 0 40px var(--rarity-glow),
    inset 0 0 30px var(--rarity-glow);
}
.showcase-dialog[data-rarity] .showcase-ownership {
  color: var(--rarity);
}
.inventory-empty {
  text-align: center;
  color: #b7a8c0;
  font-size: 12px;
  padding: 14px;
  margin: 0;
}
.inventory-shop {
  display: block;
  margin: 12px auto 0;
  border: 1px solid #b28a663f;
  background: #ffab6610;
  color: #e9c49f;
  border-radius: 8px;
  font-size: 11px;
  padding: 9px 16px;
}
.shop-button {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ffca99;
  background: #ff9b4a12;
  border: 1px solid #d6a57544;
  padding: 10px 13px;
  border-radius: 10px;
  font-size: 12px;
}
.shop-dialog {
  width: min(890px, calc(100vw - 32px));
  max-height: calc(100dvh - 28px);
  padding: 25px;
  overflow: auto;
  background: linear-gradient(140deg, #251c2c, #17131e);
  border: 1px solid #6d526b;
  border-radius: 20px;
  color: #f3eaf6;
}
.shop-dialog .close-dialog {
  z-index: 4;
}
.shop-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 35px;
  gap: 15px;
}
.shop-heading h2 {
  font-size: 28px;
  margin: 7px 0;
  letter-spacing: -1px;
}
.shop-heading h2 span {
  color: #ff9b4a;
}
.shop-heading p {
  color: #bcaac3;
  font-size: 12px;
  margin: 0;
}
.shop-tools {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 15px 0 10px;
}
.shop-tools .profile-tabs {
  flex: 1;
  margin: 0;
  border: 0;
  padding: 0;
}
.shop-tools .profile-tabs button {
  font-size: 12px;
  padding: 9px 12px;
}
.shop-filter {
  font-size: 9px;
  letter-spacing: 0.8px;
  color: #bdaec6;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-filter select {
  background: #17131e;
  border: 1px solid #66516f;
  color: #efdeef;
  border-radius: 7px;
  padding: 8px;
  font: 11px inherit;
}
.shop-mode {
  font-size: 10px;
  color: #cfb896;
  border: 1px solid #b38a5b2e;
  background: #dbab5a09;
  padding: 9px 11px;
  border-radius: 8px;
  margin: 10px 0 14px;
  line-height: 1.5;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.shop-card .collection-preview {
  height: 110px;
}
.shop-card > button:last-child {
  width: 100%;
}
.shop-dialog .skin-pages {
  margin: 10px 0;
}
.shop-purchases {
  padding: 12px 0 0;
  margin-top: 12px;
  border-top: 1px solid #ffffff12;
}
.shop-purchases > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.shop-purchases strong {
  font-size: 11px;
}
.shop-purchases button {
  color: #dcb8e7;
  background: #ffffff06;
  border: 1px solid #ffffff22;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 10px;
}
.shop-purchases p,
.shop-message {
  color: #b9a4c2;
  font-size: 10px;
  line-height: 1.6;
  margin: 8px 0 0;
}
.shop-message {
  min-height: 29px;
  color: #dfbea1;
}

.scene[style*="background-image"] {
  background-size: cover;
  background-position: center;
}
.scene[style*="background-image"] .scene-scenery,
.scene[style*="background-image"] .scene-stars {
  opacity: 0.2;
}
.scene-thumbnail[style*="background-image"] {
  background-size: cover;
  background-position: center;
}
@media (max-height: 780px) and (min-width: 761px) {
  .shop-dialog {
    padding: 20px 24px;
  }
  .shop-card .collection-preview {
    height: 90px;
  }
  .shop-heading h2 {
    font-size: 25px;
    margin: 4px 0;
  }
  .shop-tools {
    margin: 12px 0 7px;
  }
  .inventory-shop {
    margin-top: 8px;
    padding: 7px 12px;
  }
}
@media (max-width: 760px) {
  .shop-button {
    padding: 8px;
    font-size: 11px;
    gap: 3px;
  }
  .topbar {
    gap: 9px;
  }
  .shop-dialog {
    padding: 22px 16px;
    width: calc(100vw - 24px);
  }
  .shop-heading {
    padding-right: 27px;
  }
  .shop-heading h2 {
    font-size: 25px;
  }
  .shop-heading p {
    font-size: 10px;
  }
  .shop-tools {
    flex-wrap: wrap;
    gap: 8px;
  }
  .shop-tools .profile-tabs {
    flex-basis: 100%;
  }
  .shop-tools .profile-tabs button {
    font-size: 11px;
    padding: 9px 6px;
  }
  .shop-filter {
    margin-left: auto;
  }
  .shop-filter select {
    padding: 5px;
  }
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }
  .shop-card .collection-preview {
    height: 100px;
  }
  .shop-mode {
    margin: 8px 0 10px;
    font-size: 9px;
    padding: 7px 9px;
  }
  .shop-dialog .skin-pages {
    margin: 10px 0;
  }
  .shop-purchases {
    margin-top: 9px;
  }
}
@media (max-height: 700px) {
  .shop-card .collection-preview {
    height: 65px;
  }
  .shop-dialog .shop-heading p {
    display: none;
  }
  .shop-tools {
    margin-top: 10px;
  }
  .shop-message {
    font-size: 9px;
    min-height: 0;
  }
  .shop-purchases p {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .skin-card[data-rarity="legendary"]:before {
    animation: none;
    transform: none;
  }
}
.legendary-character {
  filter: drop-shadow(0 0 5px #ffd36b88);
}

/* Full-height listening room: controls above the stage, readable music panel. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.app {
  height: 100dvh;
  min-height: 0;
  max-width: none;
  padding: 0 18px 10px;
}
.topbar {
  height: 66px;
  gap: 16px;
  border-color: #ffffff12;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}
.brand strong {
  font-size: 20px;
  letter-spacing: 2px;
}
.brand span {
  font-size: 10px;
  letter-spacing: 2.5px;
  margin-top: 3px;
}
.room-context {
  flex: 0 1 350px;
  margin-left: 14px;
}
.room-context strong {
  font-size: 15px;
  font-weight: 600;
}
.room-context small {
  font-size: 13px;
  color: #bcaec5;
  margin-top: 3px;
}
.profile-button {
  font-size: 14px;
  max-width: 200px;
  padding: 6px 11px;
}
.shop-button {
  font-size: 14px;
  padding: 10px 14px;
  margin-left: auto;
}
.help-button {
  margin-left: 0;
  width: 32px;
  height: 32px;
  font-size: 16px;
}
.app > main {
  padding: 10px 0 0;
  grid-template-columns: minmax(0, 1fr) clamp(330px, 26vw, 400px);
  gap: 16px;
  overflow: hidden;
}
.venue {
  min-height: 0;
}
.scene-toolbar {
  min-height: 48px;
  padding: 0 0 10px;
  margin: 0;
  gap: 10px;
  flex-wrap: nowrap;
}
.scene-toolbar .scene-collection-button {
  order: 1;
  max-width: 190px;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  gap: 14px;
  border-color: #655363;
  background: #211b28;
  color: #ede0ed;
}
#sceneName {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.scene-toolbar .stage-interactions {
  display: contents;
}
.scene-toolbar #likeButton {
  order: 2;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  gap: 8px;
  flex-shrink: 0;
  background: #ffffff04;
  border-color: #ffffff20;
}
.scene-toolbar #likeButton > span:first-child {
  font-size: 25px;
}
.scene-toolbar .audience-info {
  order: 3;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scene-toolbar .audience-info strong {
  font-size: 13px;
  color: #ddd1e5;
  margin: 0;
  font-weight: 500;
  white-space: nowrap;
}
.scene-toolbar .live-label {
  font-size: 10px;
  letter-spacing: 0.8px;
  padding: 5px 7px;
}
.scene-toolbar .reaction-buttons {
  order: 4;
  gap: 6px;
  margin: 0;
}
.scene-toolbar .reaction-buttons button {
  height: 38px;
  width: 38px;
  font-size: 22px;
  background: #ffffff04;
  border-color: #ffffff20;
}
.scene {
  flex: 1;
  min-height: 0;
  border-radius: 18px;
}
.scene-vote {
  margin-bottom: 10px;
}
.scene-vote strong {
  font-size: 14px;
}
.scene-vote small {
  font-size: 12px;
}
.scene-vote button {
  font-size: 13px;
}
.dj-tag {
  padding: 6px 12px;
  max-width: 260px;
  bottom: -14%;
}
.dj-tag span {
  font-size: 10px;
  letter-spacing: 0.6px;
  color: #d4ae8c;
}
.dj-tag strong {
  font-size: 14px;
  max-width: 185px;
}
.dancer .name {
  font-size: clamp(10px, 1.9cqh, 13px);
  line-height: 1.3;
  padding: 3px 7px;
}
.crowd-pages {
  font-size: 12px;
  color: #c7b7d0;
  bottom: 12px;
}
.crowd-pages button {
  font-size: 18px;
  min-width: 32px;
  min-height: 32px;
}
.player-panel {
  padding: 17px;
  min-width: 0;
  border-radius: 18px;
  background: linear-gradient(150deg, #211b28, #19151f);
  border-color: #ffffff15;
}
.side-tabs {
  margin-bottom: 13px;
  padding-bottom: 12px;
}
.side-tabs button {
  font-size: 14px;
  padding: 9px 12px;
}
.panel-title {
  margin-bottom: 12px;
}
.panel-title .eyebrow,
.next-heading .eyebrow {
  font-size: 11px;
  letter-spacing: 1px;
  color: #c7afbd;
}
.song-card {
  gap: 13px;
}
.song-card > img {
  width: 80px;
  height: 80px;
}
.song-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.7px;
  color: #e9b084;
}
.song-card h2 {
  font-size: 19px;
  line-height: 1.35;
  margin: 5px 0;
  letter-spacing: -0.3px;
}
.song-card p {
  font-size: 13px;
  line-height: 1.4;
  color: #c1b0cc;
}
.timeline {
  margin-top: 17px;
  height: 5px;
}
.times {
  font-size: 12px;
  color: #c7b6d0;
  margin-top: 7px;
}
.player-actions {
  margin-top: 15px;
  gap: 10px;
  min-height: 42px;
}
.pause-button {
  width: 44px;
  font-size: 23px;
}
.vote-button {
  font-size: 14px;
  padding: 10px;
}
.vote-button strong {
  font-size: 12px;
  padding: 3px 6px;
}
#requestForm {
  margin-top: 17px;
}
#requestForm label {
  font-size: 14px;
  margin-bottom: 8px;
}
#songQuery {
  font-size: 14px;
  padding: 12px;
}
#songQuery::placeholder {
  color: #b3a0bc;
}
#requestButton {
  width: 43px;
  font-size: 26px;
}
.next-heading {
  margin: 19px 0 10px;
}
.next-heading > span:last-child {
  font-size: 12px;
  color: #c3b0cf;
}
.queue-list {
  gap: 8px;
}
.queue-list li {
  min-height: 61px;
  padding: 10px;
  gap: 10px;
  border-color: #ffffff12;
  background: #13101755;
}
.queue-index {
  font-size: 12px;
  color: #c6a083;
}
.queue-song strong {
  font-size: 14px;
  font-weight: 550;
}
.queue-song small {
  font-size: 12px;
  margin-top: 4px;
  color: #b8a7c2;
}
.queue-duration {
  font-size: 12px;
  color: #bfaec8;
}
.queue-pages {
  margin-top: 12px;
  font-size: 12px;
  color: #c7b6d0;
}
.queue-pages button {
  font-size: 18px;
  min-width: 31px;
  min-height: 31px;
}
.queue-empty {
  font-size: 14px;
  color: #bba9c7;
}
.chat-heading .eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
}
.chat-heading p {
  font-size: 13px;
  color: #bba8c7;
}
.chat-message-heading strong {
  font-size: 14px;
}
.chat-message time {
  font-size: 11px;
}
.chat-message p {
  font-size: 14px;
  line-height: 1.6;
}
.chat-message button {
  font-size: 20px;
}
.chat-empty {
  font-size: 14px;
}
.chat-panel input {
  font-size: 14px;
}
.chat-note {
  font-size: 11px;
}
.feedback-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: min(660px, calc(100vw - 32px));
  width: max-content;
  padding: 13px 14px 13px 17px;
  border: 1px solid #82674c;
  background: #241c29f5;
  border-radius: 12px;
  box-shadow: 0 8px 35px #0007;
  color: #f2dfcd;
  font-size: 14px;
  line-height: 1.5;
}
.feedback-toast.error {
  border-color: #bb806b;
  color: #ffd4c4;
}
.feedback-toast button {
  border: 0;
  background: transparent;
  color: #cbb7d3;
  font-size: 22px;
  padding: 0 3px;
  flex-shrink: 0;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .app {
    padding: 0 14px 10px;
  }
  .app > main {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
  }
  .topbar {
    gap: 12px;
  }
  .room-context {
    margin-left: 0;
    flex: 0 1 260px;
  }
  .scene-toolbar {
    gap: 8px;
  }
  .scene-toolbar .scene-collection-button {
    font-size: 13px;
    max-width: 145px;
    padding: 8px 10px;
    gap: 10px;
  }
  .scene-toolbar #likeButton {
    font-size: 13px;
    padding: 0 10px;
    gap: 6px;
  }
  .scene-toolbar .live-label {
    display: none;
  }
  .scene-toolbar .audience-info strong {
    font-size: 12px;
  }
  .scene-toolbar .reaction-buttons {
    gap: 4px;
  }
  .scene-toolbar .reaction-buttons button {
    height: 36px;
    width: 34px;
    font-size: 20px;
  }
  .player-panel {
    padding: 15px;
  }
  .song-card > img {
    height: 70px;
    width: 70px;
  }
  .song-card h2 {
    font-size: 18px;
  }
}
@media (min-width: 761px) and (max-height: 700px) {
  .topbar {
    height: 60px;
  }
  .app > main {
    padding-top: 8px;
  }
  .side-tabs {
    margin-bottom: 11px;
    padding-bottom: 10px;
  }
  .side-tabs button {
    padding: 8px;
  }
  .timeline {
    margin-top: 13px;
  }
  .player-actions {
    margin-top: 12px;
  }
  #requestForm {
    margin-top: 14px;
  }
  .next-heading {
    margin-top: 15px;
  }
  .queue-list li {
    min-height: 57px;
    padding: 9px;
  }
}
@media (max-width: 760px) {
  #queueTab { display: inline-flex; justify-content: center; }
  .player-panel[data-panel="queue"] > #requestForm,
  .player-panel[data-panel="queue"] > :not(.side-tabs, .next-heading, .queue-list, .queue-pages, .queue-empty) {
    display: none;
  }
  .player-panel[data-panel="queue"] .queue-list li {
    min-height: 44px;
    padding: 7px 9px;
  }
  .app {
    padding: 0 12px 10px;
    min-height: 0;
  }
  .topbar {
    height: 62px;
    gap: 8px;
  }
  .brand {
    gap: 7px;
  }
  .brand img {
    height: 34px;
    width: 34px;
  }
  .brand strong {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .brand span {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .room-context {
    display: none;
  }
  .shop-button {
    margin-left: auto;
    font-size: 13px;
    padding: 8px 10px;
    gap: 3px;
  }
  .profile-button {
    margin-left: 0;
    max-width: 140px;
    font-size: 13px;
    padding: 5px 8px;
    gap: 7px;
  }
  .help-button {
    margin-left: 0;
    height: 28px;
    width: 28px;
    font-size: 14px;
  }
  .app > main {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 10px;
    padding-top: 8px;
  }
  .scene-toolbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 10px;
    padding-bottom: 9px;
    min-height: 0;
  }
  .scene-toolbar .scene-collection-button {
    grid-column: 1;
    grid-row: 1;
    max-width: 155px;
    min-height: 36px;
    font-size: 13px;
    padding: 7px 10px;
  }
  .scene-toolbar #likeButton {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 13px;
    height: 36px;
    padding: 0 10px;
  }
  .scene-toolbar .audience-info {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    gap: 7px;
    text-align: left;
  }
  .scene-toolbar .audience-info strong {
    font-size: 12px;
  }
  .scene-toolbar .live-label {
    display: none;
  }
  .scene-toolbar .reaction-buttons {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    gap: 6px;
  }
  .scene-toolbar .reaction-buttons button {
    height: 32px;
    width: 34px;
    font-size: 20px;
  }
  .scene {
    min-height: 0;
    border-radius: 14px;
  }
  .dj-tag {
    padding: 4px 8px;
    max-width: 190px;
  }
  .dj-tag span {
    font-size: 9px;
    margin-right: 5px;
  }
  .dj-tag strong {
    font-size: 12px;
    max-width: 125px;
  }
  .dancer .name {
    font-size: 10px;
    max-width: 78px;
    padding: 2px 4px;
  }
  .crowd-pages {
    font-size: 10px;
    bottom: 7px;
  }
  .crowd-pages button {
    min-width: 26px;
    min-height: 26px;
    font-size: 16px;
  }
  .player-panel {
    display: flex;
    flex-direction: column;
    padding: 11px 13px;
    border-radius: 14px;
  }
  .side-tabs {
    margin: 0 0 10px;
    padding-bottom: 8px;
  }
  .side-tabs button {
    font-size: 13px;
    padding: 7px;
  }
  .panel-title {
    display: none;
  }
  .song-card {
    gap: 10px;
  }
  .song-card > img {
    width: 52px;
    height: 52px;
  }
  .song-card h2 {
    font-size: 16px;
    -webkit-line-clamp: 1;
    margin: 0 0 4px;
  }
  .song-card p {
    font-size: 12px;
  }
  .song-card .eyebrow {
    display: none;
  }
  .timeline {
    margin-top: 11px;
    height: 4px;
  }
  .times {
    margin-top: 5px;
    font-size: 11px;
  }
  .player-actions {
    margin-top: 9px;
    min-height: 35px;
    gap: 8px;
  }
  .pause-button {
    width: 38px;
    font-size: 21px;
  }
  .vote-button {
    font-size: 13px;
    padding: 7px 9px;
  }
  .vote-button strong {
    font-size: 11px;
  }
  #requestForm {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
  }
  #requestForm label {
    font-size: 12px;
    margin: 0;
    white-space: nowrap;
  }
  #songQuery {
    font-size: 12px;
    padding: 9px;
  }
  #requestButton {
    width: 34px;
    font-size: 22px;
  }
  .chat-heading p {
    font-size: 12px;
  }
  .chat-heading .eyebrow {
    font-size: 11px;
  }
  .chat-panel input {
    font-size: 13px;
  }
  .chat-message p {
    font-size: 13px;
  }
  .chat-note {
    font-size: 10px;
  }
  .feedback-toast {
    bottom: 16px;
    font-size: 13px;
    padding: 10px 12px;
    gap: 10px;
  }
}
.scene-toolbar .stage-interactions button {
  color: #eadfeb;
}
@media (min-width: 761px) and (max-width: 1100px) {
  .dancer .name {
    max-width: 70px;
    font-size: 11px;
  }
}
.room-context > div {
  min-width: 0;
}
@media (min-width: 761px) and (max-height: 680px) {
  .dj-tag span {
    display: inline;
    font-size: 10px;
  }
}
.next-heading {
  margin-bottom: 8px;
}
.queue-pages {
  margin-top: 8px;
}
@media (max-width: 760px) {
  .scene-toolbar .live-label.demo-banner {
    display: inline-block;
    font-size: 9px;
    letter-spacing: 0;
    padding: 4px 5px;
  }
  .scene-toolbar .audience-info:has(.demo-banner) strong {
    font-size: 11px;
  }
}
.dj-area {
  max-height: 205px;
}

.scene-artwork,
.rooftop-lights {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.scene[data-illustrated="true"] :is(.scene-artwork, .rooftop-lights) {
  display: block;
}
.scene-artwork {
  background-image: var(--rooftop-wide-art);
  background-position: center;
  background-repeat: no-repeat;
  background-size: max(100%, 177.7cqh) 100%;
}
.scene[data-illustrated="true"]
  :is(
    .scene-scenery,
    .scene-stars,
    .light-beam,
    .neon-arch,
    .stage-platform,
    .speaker,
    .dj-desk,
    .dance-floor
  ) {
  display: none;
}
.rooftop-lights {
  z-index: 1;
  mix-blend-mode: screen;
  opacity: 0.36;
  transition: opacity 400ms ease;
}
.rooftop-floor-glow {
  position: absolute;
  inset: 42% -15% 5%;
  background:
    radial-gradient(ellipse 20% 33% at 24% 48%, #bb62ff50, transparent 100%),
    radial-gradient(ellipse 18% 35% at 72% 40%, #43bfff57, transparent 100%),
    radial-gradient(ellipse 15% 22% at 50% 77%, #ff812638, transparent 100%);
}
.rooftop-floor-glow::before {
  position: absolute;
  inset: 36% 7% 11%;
  background: repeating-linear-gradient(
    112deg,
    transparent 0 12%,
    #8bd7ff25 15%,
    #d29dff34 17%,
    transparent 20% 29%
  );
  mask-image: radial-gradient(ellipse closest-side, #000 16%, transparent 100%);
  transform: skewX(-14deg);
  content: "";
}
.rooftop-floor-glow::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 10% 3% at 23% 57%, #db9aff56, transparent 100%),
    radial-gradient(ellipse 12% 3% at 73% 51%, #88d6ff60, transparent 100%),
    radial-gradient(ellipse 8% 2% at 57% 24%, #ffa86748, transparent 100%);
  content: "";
}
.rooftop-speaker-glow {
  position: absolute;
  inset: 0 auto;
  left: 50%;
  width: max(100%, 177.7cqh);
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 4% 12% at 5.3% 43.1%, #ffad5450, transparent 100%),
    radial-gradient(ellipse 4% 12% at 94.5% 43.5%, #ffad5450, transparent 100%);
}
.rooftop-lights::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse min(16cqw, 24cqh) 6% at 50% 92%,
    #ff922552,
    transparent 100%
  );
  opacity: 0.45;
  content: "";
}
.scene[data-playing="true"] .rooftop-lights {
  opacity: 1;
}
.scene[data-playing="true"] .rooftop-floor-glow {
  animation: rooftop-sweep 7s ease-in-out infinite alternate;
}
.scene[data-playing="true"] .rooftop-speaker-glow {
  animation: rooftop-pulse 3.4s ease-in-out infinite alternate;
}
.scene[data-playing="true"] .rooftop-lights::after {
  animation: rooftop-pulse 4.2s ease-in-out infinite alternate-reverse;
}
@keyframes rooftop-sweep {
  from {
    transform: translateX(-7%) scaleX(0.94);
    opacity: 0.62;
  }
  to {
    transform: translateX(8%) scaleX(1.07);
    opacity: 1;
  }
}
@keyframes rooftop-pulse {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 0.9;
  }
}
.venue:has(.scene[data-illustrated="true"]) {
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #53435d transparent;
  overscroll-behavior: contain;
}
.venue:has(.scene[data-illustrated="true"]) .scene-toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #100d15;
}
.scene[data-illustrated="true"] {
  min-height: var(--crowd-min-height, 0px);
}
.scene[data-illustrated="true"] .crowd {
  inset: 0;
  pointer-events: none;
}
.scene[data-illustrated="true"] .crowd .dancer {
  top: var(--rooftop-foot, 70%);
  left: var(--rooftop-x, 50%);
  height: var(--rooftop-art-height, 19cqh);
  width: calc(var(--rooftop-art-height, 19cqh) * 0.82);
  z-index: var(--rooftop-depth, 1);
  transform: translate(-50%, -100%);
  pointer-events: auto;
}
.scene[data-illustrated="true"]
  .crowd
  .dancer:has(.stage-speech:not([hidden])) {
  z-index: calc(100 + var(--rooftop-depth, 1));
}
.scene[data-illustrated="true"] .dancer-model {
  height: 100%;
}
.scene[data-illustrated="true"] .dancer .name {
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  width: max-content;
  max-width: var(--rooftop-name-width, 100px);
  transform: translateX(-50%);
  padding: 2px 5px;
  font-size: clamp(10px, 1.05cqw, 13px);
  line-height: 1.2;
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  text-align: center;
}
.scene[data-illustrated="true"] .dj-area {
  bottom: 0;
  height: max(26.5%, calc(var(--rooftop-dj-height, 0px) + 5px));
  width: min(40%, 280px);
  max-height: none;
}
.scene[data-illustrated="true"] .dj-character {
  height: var(--rooftop-dj-height, min(calc(100% - 7px), 158px));
  width: min(100%, max(18.5cqh, calc(var(--rooftop-dj-height, 0px) * 2 / 3)));
  bottom: 5px;
}
.scene[data-illustrated="true"] .dj-tag {
  --dj-tag-offset: max(
    min(9.25cqh, 62px),
    calc(var(--rooftop-dj-height, 0px) / 3 + 5px)
  );
  left: calc(50% + var(--dj-tag-offset));
  bottom: 9px;
  transform: none;
  width: max-content;
  max-width: min(180px, calc(49cqw - var(--dj-tag-offset)));
  white-space: normal;
  overflow-wrap: anywhere;
}
.scene[data-illustrated="true"] .dj-tag span {
  white-space: nowrap;
}
.scene[data-illustrated="true"] .crowd-pages {
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  gap: 8px;
  padding: 3px;
  border: 1px solid #ffffff2e;
  border-radius: 10px;
  background: #171328e8;
  color: #eee5f7;
}
.scene-thumbnail[data-illustrated="true"]::before,
.scene-thumbnail[data-illustrated="true"]::after {
  display: none;
}
.dancer {
  top: var(--slot-top);
  left: var(--slot-left);
  z-index: 1;
}
.dancer[data-row="1"] {
  z-index: 2;
}
.dancer:has(.stage-speech:not([hidden])) {
  z-index: 3;
}
.dancer[data-row="1"]:has(.stage-speech:not([hidden])) {
  z-index: 4;
}
.stage-speech {
  position: absolute;
  z-index: 9;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  width: clamp(68px, var(--speech-width, 152px), 152px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.dj-speech-anchor {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 6;
  --speech-width: min(40cqw, 152px);
}
.stage-chat-bubble {
  position: relative;
  min-width: 0;
  max-width: 100%;
  padding: 5px 9px;
  border: 1px solid #fff1e16e;
  border-radius: 11px;
  background: #fff2e6;
  color: #211627;
  box-shadow: 0 3px 12px #120b2590;
  font-size: clamp(10px, 1.9cqh, 13px);
  font-weight: 570;
  line-height: 1.25;
  text-align: left;
  animation: stage-chat-in 180ms ease-out backwards;
  transition:
    opacity 280ms ease,
    transform 280ms ease;
}
.stage-chat-bubble > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}
.stage-chat-bubble:last-child::after {
  position: absolute;
  top: calc(100% - 1px);
  left: calc(50% - 4px);
  width: 8px;
  height: 5px;
  background: #fff2e6;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: "";
}
.stage-chat-bubble.is-fading {
  opacity: 0;
  transform: translateY(-4px);
}
.dancer:has(.stage-speech:not([hidden])) .avatar-reaction {
  left: 95%;
}
.dj-area:has(#djSpeech:not([hidden])) .dj-reaction {
  left: 76%;
}
@keyframes stage-chat-in {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 760px) {
  .stage-chat-bubble {
    padding: 4px 6px;
  }
  .chat-message {
    padding: 6px 0;
  }
}
@container (max-aspect-ratio: 7/6) {
  .scene-artwork {
    /* Keep the floor line and the console at the same height as the wide art. */
    background-image: var(--rooftop-portrait-art);
    background-size: max(100%, 99.25cqh) 124%;
    background-position: center -7.5cqh;
  }
  .rooftop-speaker-glow {
    width: max(100%, 99.25cqh);
  }
}
@media (max-width: 760px) and (min-height: 620px) {
  .player-panel[data-panel="chat"] {
    height: clamp(270px, 40dvh, 340px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .scene[data-playing="true"] :is(.rooftop-floor-glow, .rooftop-speaker-glow),
  .scene[data-playing="true"] .rooftop-lights::after,
  .stage-chat-bubble {
    animation: none;
  }
  .stage-chat-bubble,
  .rooftop-lights {
    transition: none;
  }
}

/* The same illustration stays visible through the entire continuous dance loop. */
.groove-avatar {
  position: relative;
  isolation: isolate;
  aspect-ratio: 2 / 3;
}
.groove-avatar .groove-still,
.groove-avatar .groove-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.groove-avatar .groove-canvas { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  :is(.scene[data-playing="true"], .dance-preview) .groove-ready .groove-canvas {
    visibility: visible;
  }
  :is(.scene[data-playing="true"], .dance-preview) .groove-ready .groove-still {
    visibility: hidden;
  }
  :is(.scene[data-playing="true"], .dance-preview) .groove-avatar:not(.groove-ready) .groove-still {
    transform-origin: 50% 97.4%;
    animation: mika-gentle-groove 2.4s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
  }
}
@keyframes mika-gentle-groove {
  0%, 100% { transform: skewX(-.65deg) scaleY(.997); }
  25%, 75% { transform: skewX(0) scaleY(.989); }
  50% { transform: skewX(.65deg) scaleY(.997); }
}

@media (prefers-reduced-motion: no-preference) {
  .scene[data-playing="true"] .groove-avatar[data-performance="dj"]:not(.groove-ready) .groove-still {
    animation: mika-booth-groove 2.8s ease-in-out infinite;
  }
}
#djCharacter[data-dj-eligible="false"] .groove-still {
  animation: none !important;
  visibility: visible;
}
#djCharacter[data-dj-eligible="false"] .groove-canvas { visibility: hidden; }
@keyframes mika-booth-groove {
  0%, 100% { transform: skewX(-.4deg) scaleY(.998); }
  25%, 75% { transform: skewX(0) scaleY(.993); }
  50% { transform: skewX(.4deg) scaleY(.998); }
}

@media (max-width: 760px) {
  .app {
    padding-top: var(--discord-safe-area-inset-top, env(safe-area-inset-top, 0px));
    padding-bottom: var(--discord-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
    padding-left: max(10px, var(--discord-safe-area-inset-left, env(safe-area-inset-left, 0px)));
    padding-right: max(10px, var(--discord-safe-area-inset-right, env(safe-area-inset-right, 0px)));
  }
  .music-options {
    gap: 0 10px;
  }
  .music-options button {
    font-size: 12px;
  }
}
