.hall-entry-notice {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(320px, 80vw);
  padding: 12px 16px;
  border-radius: 8px;
  background: #210953;
  color: white;
  text-align: center;
}

:root {
  color-scheme: dark;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #020414;
  color: #fff;
  overscroll-behavior: none;
}

body {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

button {
  font: inherit;
}

.package-hidden {
  display: none !important;
}

.hall {
  position: relative;
  width: min(100vw, 430px);
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #1c176c;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  user-select: none;
}

.hall-loading-screen {
  position: fixed;
  z-index: 400;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, 430px);
  overflow: hidden;
  background: #13085a;
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%);
  transition: opacity 260ms ease-out, visibility 260ms step-end;
  visibility: visible;
}

.hall-loading-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.hall-loading-screen.is-leaving {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.hall-loading-screen.is-complete .hall-loading-progress-fill {
  width: 100%;
  animation: none;
  transition: width 120ms linear;
}

.hall-loading-screen[hidden] {
  display: none;
}

/* Match the online 750 x 1624 launch-screen coordinates. */
.hall-loading-age {
  position: absolute;
  top: min(13.333333vw, 57.333333px);
  left: 4%;
  display: block;
  width: 11.333333%;
  height: auto;
}

.hall-loading-label {
  position: absolute;
  bottom: min(21.6vw, 92.88px);
  left: 50%;
  display: block;
  width: 25.466667%;
  height: auto;
  transform: translateX(-50%);
}

.hall-loading-progress {
  position: absolute;
  bottom: min(53.333333vw, 229.333333px);
  left: 50%;
  width: 66.666667%;
  height: min(2.4vw, 10.32px);
  overflow: hidden;
  border: 1px solid rgba(210, 255, 230, 0.94);
  border-radius: 999px;
  background: rgba(3, 55, 42, 0.82);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(0, 0, 0, 0.65);
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease-out, visibility 0s linear 160ms;
}

.hall-loading-progress-fill {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #baff8f 0%, #43de4f 42%, #0e8b35 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 6px rgba(96, 255, 122, 0.82);
}

.hall-loading-screen.is-progress-visible .hall-loading-progress,
.hall-loading-screen.is-progress-visible .hall-loading-progress-text {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.hall-loading-screen.is-progress-visible .hall-loading-label {
  display: none;
}

.hall-loading-screen.is-progress-visible .hall-loading-progress-fill {
  animation: hall-loading-progress-fill 620ms ease-out forwards;
}

.hall-loading-progress-text {
  position: absolute;
  bottom: min(47.466667vw, 204.106667px);
  left: 50%;
  color: #fff;
  font-size: min(2.933333vw, 12.613333px);
  line-height: 1;
  text-shadow: 0 1px 2px #000;
  transform: translateX(-50%);
  white-space: nowrap;
  visibility: hidden;
  opacity: 0;
  transition: opacity 160ms ease-out, visibility 0s linear 160ms;
}

.hall-loading-version {
  position: absolute;
  right: 5.333333%;
  bottom: min(5.333333vw, 22.933333px);
  color: #fff;
  font-size: min(4vw, 17.2px);
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0;
  white-space: nowrap;
  text-shadow:
    -1px -1px #000,
    1px -1px #000,
    -1px 1px #000,
    1px 1px #000,
    -1px 0 #000,
    1px 0 #000,
    0 -1px #000,
    0 1px #000;
}

.hall::-webkit-scrollbar {
  display: none;
}

.hall.dragging {
  cursor: grabbing;
}

.hall-scene {
  position: relative;
  min-height: 100%;
  padding: 36px 8px 2px;
  padding: var(--hall-safe-top-fallback, 36px) 8px 2px;
  padding: max(var(--hall-safe-top-fallback, 36px), env(safe-area-inset-top, 0px)) 8px calc(env(safe-area-inset-bottom, 0px) + 2px);
  background:
    linear-gradient(180deg, rgba(8, 10, 58, 0.22) 0, rgba(31, 25, 121, 0.3) 310px, rgba(28, 22, 112, 0.72) 100%),
    url("https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/lobby-bg.jpg") top center / 100% auto no-repeat,
    #211b78;
}

/* Android WebViews can report a zero CSS safe-area inset even when their
 * status bar overlays the page. The launch URL's safeTop=1 flag keeps a
 * comfortable top clearance in that case. */
.hall-has-top-safe-area .hall-scene {
  padding-top: 36px;
  padding-top: var(--hall-safe-top-fallback, 36px);
  padding-top: max(var(--hall-safe-top-fallback, 36px), env(safe-area-inset-top, 0px));
}

.hall-header {
  display: grid;
  min-height: 74px;
  height: auto;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.hall-profile {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-self: center;
  align-items: center;
  gap: 8px;
  container-name: hall-profile;
  container-type: inline-size;
}

.hall-avatar-frame {
  position: relative;
  display: block;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 3px;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(180deg, #fffbd4, #d69a23);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.52), inset 0 0 3px rgba(255, 255, 255, 0.9);
}

.hall-avatar-button {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
}

.hall-avatar-button:active .hall-avatar-frame {
  filter: brightness(1.14);
  transform: scale(0.96);
}

.hall-avatar-button:focus-visible {
  outline: 2px solid #82edff;
  outline-offset: 2px;
}

.hall-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  background: #eef1f6;
  object-fit: cover;
}

.hall-player-details {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
}

.hall-account-row {
  position: relative;
  display: flex;
  isolation: isolate;
  min-width: 0;
  width: 100%;
  align-items: center;
  gap: 4px;
  transform: translateY(4px);
}

.hall-player-name {
  min-width: 0;
  overflow: hidden;
  color: #b9d5eb;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-shadow: 0 2px 2px #02051c;
  white-space: nowrap;
}

.hall-wallet {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  max-width: 168px;
  flex: 1 1 148px;
  height: 28px;
  align-items: center;
  padding: 0 25px 0 30px;
  border-radius: 999px;
  background: linear-gradient(180deg, #210953 0%, #351273 52%, #28095b 100%);
  box-shadow:
    inset 0 3px 3px rgba(4, 0, 25, 0.58),
    inset 0 -1px 0 rgba(168, 105, 236, 0.3),
    0 1px 1px rgba(1, 0, 13, 0.28);
}

.hall-wallet > img {
  position: absolute;
  left: -4px;
  top: -2px;
  width: 32px;
  height: 33px;
  object-fit: contain;
}

.hall-player-coins {
  min-width: 0;
  overflow: hidden;
  color: #fff5be;
  font-size: clamp(11px, 3vw, 14px);
  font-weight: 700;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hall-wallet-add {
  position: absolute;
  right: 7px;
  top: 3.5px;
  color: #ffdb49;
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
  text-shadow: 0 2px 2px #4a176b;
}

.hall-actions {
  display: flex;
  height: 58px;
  align-items: start;
  gap: 2px;
}

.header-action,
.promo-card,
.for-you-game,
.tab-button,
.game-tile,
.back-top {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.music-button {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 70px;
  max-width: 100px;
  flex: 0 1 100px;
  width: 100px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 3px 5px 0 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #210953 0%, #351273 52%, #28095b 100%);
  color: #865ebd;
  box-shadow:
    inset 0 3px 3px rgba(4, 0, 25, 0.58),
    inset 0 -1px 0 rgba(168, 105, 236, 0.3),
    0 1px 1px rgba(1, 0, 13, 0.28);
}

.music-button > img {
  flex: 0 0 19px;
  width: 19px;
  height: 19px;
  object-fit: contain;
}

.header-music-name {
  min-width: 0;
  max-width: 45px;
  flex: 1 1 auto;
  overflow: hidden;
  font-size: 10px;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@container hall-profile (max-width: 225px) {
  .hall-account-row {
    flex-wrap: wrap;
    align-content: start;
    gap: 3px;
    transform: none;
  }

  .hall-wallet {
    width: 100%;
    max-width: none;
    flex: 1 0 100%;
  }

  .music-button {
    max-width: 72px;
    flex-basis: 72px;
    width: 72px;
  }
}

.store-button {
  width: 43px;
  align-self: start;
  cursor: default;
}

.store-button img {
  display: block;
  width: 42px;
  height: auto;
}

.close-button,
.close-button img {
  display: block;
  width: 38px;
  height: 38px;
}

.close-button {
  align-self: start;
}

.promo-card {
  display: block;
  isolation: isolate;
  position: relative;
  aspect-ratio: 749 / 208;
  margin-top: 22px;
  border-radius: 8px;
}

.promo-card img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.045);
}

.for-you-section {
  display: grid;
  aspect-ratio: 708 / 156;
  grid-template-columns: 5.51% minmax(0, 1fr);
  margin: 0 2px 6px;
  background: url("https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/ui/for-you-bg-original.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 3px 5px rgba(8, 2, 58, 0.58));
}

.for-you-label {
  min-width: 0;
}

.for-you-track {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding-left: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-y;
}

.for-you-track::-webkit-scrollbar {
  display: none;
}

.for-you-game {
  display: block;
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  overflow: hidden;
  background: transparent;
  scroll-snap-align: start;
  transition: transform 120ms ease, filter 120ms ease;
}

.for-you-game:active {
  filter: brightness(1.12);
  transform: scale(0.96);
}

.for-you-game img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  object-fit: cover;
}

.category-tabs {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  width: 100%;
  height: auto;
  aspect-ratio: 706 / 74;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  background: url("https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/ui/tab-bg.png") center / 100% 100% no-repeat;
}

.tab-button {
  position: relative;
  isolation: isolate;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #718bc8;
  font-family: "Trebuchet MS", Arial, sans-serif;
  font-size: clamp(14px, 4.3vw, 18px);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(13, 12, 75, 0.72);
  transition: color 140ms ease, filter 100ms ease, transform 100ms ease;
}

.tab-button::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/ui/choose-bg2.png") center / 100% 100% no-repeat;
  content: "";
  opacity: 0;
  transition: opacity 140ms ease;
}

.tab-button:first-child::before {
  background-image: url("https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/ui/choose-bg.png");
}

.tab-button:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 25%;
  right: 0;
  width: 1px;
  height: 50%;
  background: url("https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/ui/tab_split.png") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
}

.tab-button.active {
  background: transparent;
  color: #e7faff;
  text-shadow: 0 0 6px rgba(103, 230, 255, 0.9), 0 1px 1px #1a2b84;
}

.tab-button.active::before {
  opacity: 1;
}

.tab-button:active {
  filter: brightness(1.34) saturate(1.12);
  transform: scale(0.975);
}

.tab-button:focus-visible {
  outline: 2px solid #7cecff;
  outline-offset: -3px;
}

.tab-icon {
  width: 26px;
  height: 23px;
  object-fit: contain;
}

.tab-button.active .tab-icon {
  filter: none;
}

.selected-icon,
.tab-button.active .normal-icon {
  display: none;
}

.tab-button.active .selected-icon {
  display: block;
}

.game-section {
  display: flow-root;
  scroll-margin-top: 49px;
  margin-inline: -16px;
  padding: 0 28px 12px;
  background: #211b78;
}

.game-section h2 {
  position: relative;
  height: clamp(34px, 9vw, 42px);
  margin: 8px 0 20px -8px;
  line-height: 0;
}

.game-section h2 img {
  display: block;
  width: auto;
  height: 100%;
  margin: 0;
  position: absolute;
  left: 0;
  top: 0;
  transform: none;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 16px;
}

.game-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  filter: drop-shadow(0 3px 4px rgba(4, 2, 45, 0.6));
  transition: transform 120ms ease, filter 120ms ease;
}

.game-tile:active {
  transform: scale(0.96);
  filter: brightness(1.12);
}

.game-icon {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: -webkit-optimize-contrast;
  object-fit: contain;
}

.game-badge {
  position: absolute;
  z-index: 3;
  left: -4%;
  top: -4%;
  width: 50%;
  height: auto;
  pointer-events: none;
}

.game-badge.new {
  width: 40%;
  top: -5%;
  left: -2%;
}

.back-top {
  position: sticky;
  z-index: 31;
  left: 100%;
  bottom: 24px;
  display: block;
  width: 51px;
  height: 68px;
  margin: -68px -12px 0 auto;
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.back-top.is-visible {
  visibility: visible;
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0s;
}

.back-top img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-transition[hidden] {
  display: none;
}

.original-game-layer {
  position: fixed;
  z-index: 190;
  inset: 0;
  display: block;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: #13085a;
  transition: opacity 120ms linear, visibility 0s linear 120ms;
}

.original-game-layer.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.original-game-frame {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #13085a;
}

.original-game-exit {
  position: absolute;
  z-index: 1;
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.original-game-exit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.game-transition {
  position: fixed;
  z-index: 200;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(100vw, 430px);
  overflow: hidden;
  background: #10062c;
  pointer-events: all;
  isolation: isolate;
  contain: paint;
  backface-visibility: hidden;
  transform: translate3d(-50%, 0, 0);
}

.game-transition.lucky77-entry {
  width: min(100vw, 470px);
}

.game-transition-panel {
  position: absolute;
  left: 0;
  width: 100%;
  height: 50.1%;
  backface-visibility: hidden;
  will-change: transform;
}

.game-transition-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.game-transition-top {
  top: 0;
  transform: translate3d(0, -100%, 0);
}

.game-transition-bottom {
  bottom: 0;
  transform: translate3d(0, 100%, 0);
}

.game-transition-loading {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: none;
  overflow: hidden;
  background: #10062c;
}

.game-transition-loading-background {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.game-transition-loading-icon {
  position: absolute;
  z-index: 1;
  bottom: 19%;
  left: 50%;
  width: min(25.5%, 110px);
  height: auto;
  transform: translateX(-50%);
}

.game-transition-loading-progress {
  position: absolute;
  z-index: 1;
  bottom: 14%;
  left: 50%;
  width: 66.67%;
  height: min(2.4vw, 10px);
  overflow: hidden;
  border: 1px solid rgba(210, 255, 230, 0.94);
  border-radius: 999px;
  background: rgba(3, 55, 42, 0.82);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), inset 0 1px 2px rgba(0, 0, 0, 0.65);
  transform: translateX(-50%);
}

.game-transition-loading-progress span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #baff8f 0%, #43de4f 42%, #0e8b35 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 0 6px rgba(96, 255, 122, 0.82);
  transform: scaleX(0.06);
  transform-origin: left center;
}

.game-transition-loading-progress-text {
  position: absolute;
  z-index: 1;
  bottom: 10.8%;
  left: 50%;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: min(3vw, 13px);
  line-height: 1;
  text-shadow: 0 1px 2px #000;
  transform: translateX(-50%);
  white-space: nowrap;
}

.game-transition.closing .game-transition-top {
  animation: hall-shutter-top-close 480ms cubic-bezier(0.32, 0, 0.2, 1) both;
}

.game-transition.closing .game-transition-bottom {
  animation: hall-shutter-bottom-close 480ms cubic-bezier(0.32, 0, 0.2, 1) both;
}

.game-transition.closing .game-transition-loading {
  animation: none;
}

.game-transition.loading .game-transition-panel {
  display: none;
}

.game-transition.loading .game-transition-loading {
  display: block;
}

@keyframes hall-shutter-top-close {
  from { transform: translate3d(0, -100%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes hall-shutter-bottom-close {
  from { transform: translate3d(0, 100%, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@keyframes hall-loading-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hall-loading-progress-fill {
  from { width: 8%; }
  to { width: 92%; }
}

.music-overlay[hidden] {
  display: none;
}

.music-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  width: 100vw;
  margin: 0 auto;
  place-items: center;
}

.profile-overlay[hidden] {
  display: none;
}

.profile-overlay {
  position: fixed;
  z-index: 140;
  inset: 0;
  display: grid;
  width: 100vw;
  margin: 0 auto;
  place-items: center;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 2, 24, 0.79);
}

.profile-dialog {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 155px;
  padding: 52px 30px 40px;
  border: 0;
  background: url('https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/ui/profile-dialog-background.png') center / 100% 100% no-repeat;
}

.profile-dialog-title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.profile-close {
  position: absolute;
  z-index: 2;
  top: -15px;
  right: -10px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.profile-close img {
  display: block;
  width: 100%;
  height: 100%;
}

.profile-close:active {
  filter: brightness(1.18);
}

.profile-details {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 20px;
  margin: 0;
  color: #6cf6ff;
  font-size: 13px;
  line-height: 1;
}

.profile-details div {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 55px;
  align-items: center;
}

.profile-details dt,
.profile-details dd {
  margin: 0;
}

.profile-details dt {
  text-align: right;
}

.profile-details dd {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-version {
  position: absolute;
  right: 20px;
  bottom: 15px;
  color: #4cbcff;
  font-size: 13px;
}

.music-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 34, 0.8);
}

.music-dialog {
  position: relative;
  width: 84%;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: url('https://cdn.sparkplay.fun/s/game-center/releases/components/00hall-assets/9dffe05ddbcbd5e0840177191b7dafdd/assets/ui/music-dialog-bg.png') center / 100% 100% no-repeat;
}

.music-titlebar {
  position: relative;
  display: grid;
  isolation: isolate;
  height: 50px;
  margin: 0;
  place-items: center;
  border-radius: 7px 7px 0 0;
  background: transparent;
}

.music-titlebar::before { display: none; }

.music-titlebar h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 15px;
  font-size: 25px;
  background: linear-gradient(180deg, #ffffff 0%, #d38cf0 70%, #a15de8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.4));
}

.music-close {
  position: absolute;
  z-index: 2;
  top: -29px;
  right: -29px;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.music-close img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.music-list {
  overflow: hidden;
  border-radius: 0 0 7px 7px;
  background: transparent;
}

.music-row {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 50px;
  grid-template-columns: 1fr 24px 56px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: #26063e;
  color: #4cc8ff;
  text-align: left;
  cursor: pointer;
}

.music-row:nth-child(even) {
  background: #2e0953;
}

.music-row.playing::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1px;
  width: 2px;
  border-radius: 1px;
  background: #60e9ff;
  box-shadow: 0 0 3px rgba(96, 233, 255, 0.9);
  pointer-events: none;
}

.music-name {
  min-width: 0;
  overflow: hidden;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-control {
  width: 56px;
  height: 32px;
  justify-self: end;
}

.music-control img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.music-control .music-control-pause {
  display: none;
}

.music-row.playing .music-control-play {
  display: none;
}

.music-row.playing .music-control .music-control-pause {
  display: block;
}

.music-equalizer {
  height: 27px;
  align-items: end;
  justify-content: center;
  gap: 3px;
}

.music-row.playing .music-equalizer {
  display: flex;
}

.music-equalizer i {
  width: 3px;
  border-radius: 2px;
  background: #65cfff;
  transform: translateZ(0) scaleY(0.4);
  transform-origin: bottom;
  backface-visibility: hidden;
  will-change: transform;
  animation: music-level 0.82s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.music-equalizer i:nth-child(1) { height: 18px; animation-duration: 0.2s;  }
.music-equalizer i:nth-child(2) { height: 18px; animation-duration: 0.3s; }
.music-equalizer i:nth-child(3) { height: 18px; animation-duration: 0.4s; }

@keyframes music-level {
  from { transform: translateZ(0) scaleY(0.35); }
  to { transform: translateZ(0) scaleY(1); }
}

@media (max-height: 560px) {
  .music-dialog { transform: scale(0.84); }
}
