/* New魔方娛樂城 · crystal identity. No report/table palette overrides. */
body.newmagic {
  isolation: isolate;
  background: #190620;
}
body.newmagic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: url("/assets/newmagic/purple-gold-20261103/lobby-background.webp")
    center bottom/cover no-repeat;
}
body.newmagic::after {
  content: "";
  position: fixed;
  inset: -7%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 65%, #ecc76890 0 1px, transparent 2px),
    radial-gradient(circle at 76% 22%, #dbcce090 0 1px, transparent 2px),
    radial-gradient(circle at 84% 66%, #edc86a88 0 1px, transparent 2px),
    radial-gradient(ellipse at 5% 100%, #9b24c533, transparent 45%),
    radial-gradient(ellipse at 100% 15%, #af43d51f, transparent 44%);
  background-size:
    213px 241px,
    307px 379px,
    487px 421px,
    100% 100%,
    100% 100%;
  animation: nm-atmosphere 22s ease-in-out infinite alternate;
  opacity: 0.7;
}
body.newmagic .animated-brand {
  overflow: visible;
  isolation: auto;
}
body.newmagic .animated-brand:before,
body.newmagic .animated-brand:after {
  display: none;
}
body.newmagic .animated-brand img {
  animation: none;
  filter: drop-shadow(0 3px 8px #b43edd44);
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.newmagic .brand picture {
  display: block;
  width: 100%;
  height: 100%;
}
body.newmagic .login-orbit img,
body.newmagic .login-box .logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@keyframes nm-atmosphere {
  from {
    transform: translate3d(-0.7%, 0.6%, 0);
    opacity: 0.4;
  }
  to {
    transform: translate3d(0.7%, -0.6%, 0);
    opacity: 0.75;
  }
}
body.nm-motion-paused::after {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  body.newmagic::after {
    animation: none !important;
    transform: none !important;
  }
  body.newmagic .brand img {
    animation: none !important;
  }
}
@media (max-width: 760px) {
  body.newmagic::before {
    background-position: 58% top;
  }
  body.newmagic::after {
    animation-duration: 30s;
    opacity: 0.35;
  }
}

body.newmagic > header {
  background: linear-gradient(110deg, #23082cee, #3c104bec 60%, #2b1035ed);
  border-bottom: 1px solid #eecd7966;
  box-shadow: 0 3px 26px #23082caa;
}
body.newmagic .header-ornament {
  opacity: 0.25;
  filter: hue-rotate(10deg);
}
body.newmagic .brand {
  width: 300px;
  height: 95px;
  left: 20px;
  top: 10px;
}
body.newmagic .game {
  border-color: #e8c876;
  background: linear-gradient(145deg, #ded1e3, #8d42a7 48%, #4b2957);
}
body.newmagic .game:after {
  box-shadow: inset 0 1px 3px #eae1ed66;
}
body.newmagic .game .play {
  background: linear-gradient(#eee7f0, #e8d091);
  border-color: #ebe2ee;
  color: #330c41;
}
body.newmagic #categories button:not([data-category="all"]) {
  background: linear-gradient(120deg, #361143e8, #381744e8);
  border-color: #eecc7566;
}
body.newmagic #categories button.active {
  filter: brightness(1.12) drop-shadow(0 0 6px #eac15866);
}
body.newmagic #categories button .category-label {
  color: #eee7f0;
}
body.newmagic #categories [data-category="all"] {
  background: linear-gradient(110deg, #351042, #4b1e5b);
  border-color: #f1d79288;
}
body.newmagic .search input,
body.newmagic .search button {
  border-color: #c5a75a77;
  background: #2f0d3be8;
  color: #eee7f1;
}
body.newmagic footer {
  background: #21072ae8;
  border-top-color: #f1d68f33;
  color: #ebdcb7;
}
body.newmagic .login-art {
  background:
    linear-gradient(#1d062544, #2f0b3c77),
    url("/assets/newmagic/purple-gold-20261103/lobby-background.webp") 80%
      center/cover;
}
body.newmagic .login-orbit {
  width: 90%;
  height: 140px;
  border: 0;
  box-shadow: none;
  background: none;
  left: 5%;
  top: 9%;
}
body.newmagic .login-art-copy p {
  color: #e7ddea;
}
@media (min-width: 761px) and (max-width: 1350px) {
  body.newmagic .brand {
    width: 270px;
    left: 16px;
  }
}

@media (max-width: 760px) {
  body.newmagic > header {
    height: 97px;
    min-height: 97px;
  }
  body.newmagic .brand {
    width: 187px;
    height: 60px;
    left: 5px;
    top: 3px;
  }
  body.newmagic .account {
    top: 15px;
  }
  body.newmagic #categories {
    background: #22082bcc;
  }
  body.newmagic .login-orbit {
    height: 90px;
  }
}
@media (max-width: 380px) {
  body.newmagic .brand {
    width: 163px;
  }
}

/* Approved crystal-casino header; replace the previous card ornament only. */
body.newmagic > header {
  background: #23082c url("/assets/newmagic/casino-header.png") center 48% /
    auto 180% no-repeat;
}
body.newmagic .header-ornament {
  display: none;
}
body.newmagic .brand {
  width: 350px;
  height: 106px;
  top: 3px;
}
@media (min-width: 761px) and (max-width: 1350px) {
  body.newmagic .brand {
    width: 300px;
  }
}
@media (max-width: 760px) {
  body.newmagic > header {
    background-size: auto 150%;
    background-position: 65% center;
  }
  body.newmagic .brand {
    width: 187px;
    height: 68px;
    top: 0;
  }
}
@media (max-width: 380px) {
  body.newmagic .brand {
    width: 163px;
  }
}
/* Transparent crystal category artwork: no tile, border or opaque backing. */
body.newmagic #categories button[data-category] {
  height: 142px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  overflow: visible;
  transform: none;
}
body.newmagic #categories button[data-category]:before,
body.newmagic #categories button[data-category]:after {
  display: none;
}
body.newmagic #categories button[data-category] .category-art {
  position: relative;
  inset: auto;
  display: block;
  flex: 0 0 auto;
  width: 122px;
  height: 110px;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  overflow: visible;
}
body.newmagic
  #categories
  button[data-category]
  .category-art
  svg.category-picture {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
body.newmagic #categories button[data-category] .category-label {
  display: block;
  position: relative;
  inset: auto;
  font:
    900 26px/1.15 "Microsoft JhengHei",
    sans-serif;
  letter-spacing: 2px;
  color: #eee7f1;
  text-shadow:
    0 2px 3px #000,
    0 0 8px #d6a830aa;
  white-space: nowrap;
  margin: 0;
}
body.newmagic #categories button[data-category].active .category-art,
body.newmagic #categories button[data-category]:hover .category-art {
  filter: drop-shadow(0 0 10px #f1d48a88);
  transform: translateY(-3px);
}
@media (min-width: 761px) and (max-width: 1350px) {
  body.newmagic #categories button[data-category] {
    height: 126px;
  }
  body.newmagic #categories button[data-category] .category-art {
    width: 108px;
    height: 94px;
  }
  body.newmagic #categories button[data-category] .category-label {
    font-size: 24px;
  }
}
@media (max-width: 760px) {
  body.newmagic #categories button[data-category] {
    height: 99px;
    min-width: 73px;
    width: 73px;
    flex: 0 0 73px;
  }
  body.newmagic #categories button[data-category] .category-art {
    width: 67px;
    height: 65px;
  }
  body.newmagic #categories button[data-category] .category-label {
    font-size: 13px;
    letter-spacing: 0;
  }
}

body.newmagic > header {
  background: linear-gradient(105deg, #23082c, #330e40 65%, #290a34);
}
body.newmagic .header-ornament {
  display: block;
  position: absolute;
  inset: 0 auto 0 27%;
  width: 46%;
  height: 100%;
  margin: 0;
  background: url("/assets/newmagic/casino-header.png") center/auto 125%
    no-repeat;
  opacity: 0.9;
  filter: none;
  transform: none;
  pointer-events: none;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 18%,
    #000 82%,
    transparent
  );
}
body.newmagic .brand {
  height: 112px;
  width: 350px;
  top: 1px;
}
@media (max-width: 760px) {
  body.newmagic .brand {
    width: 187px;
    height: 76px;
    top: 0;
  }
  body.newmagic .header-ornament {
    left: 37%;
    width: 28%;
    opacity: 0.45;
    background-size: auto 100%;
  }
}
@media (max-width: 380px) {
  body.newmagic .brand {
    width: 163px;
  }
}

body.newmagic .credit {
  background: linear-gradient(#4d1760, #280933);
  border-color: #f3db9d;
  box-shadow:
    inset 0 0 10px #ecc76622,
    0 0 12px #e8bb4622;
}
body.newmagic .credit strong {
  color: #f3eef4;
  text-shadow: 0 2px 2px #370c46;
}
body.newmagic .credit-title {
  content: url("/assets/newmagic/credit-title.svg");
}
body.newmagic .credit .coin {
  content: url("/assets/newmagic/crystal-coin.svg");
}
body.newmagic .avatar,
body.newmagic .avatar img {
  filter: none !important;
}
body.newmagic .avatar img {
  content: url("/assets/newmagic/user-icon-purple-gold-r11.svg");
}
body.newmagic .lobby-sound {
  background: linear-gradient(#6a2483, #360c45);
  border-color: #f3db9d;
  color: #eee7f1;
  box-shadow: inset 0 0 8px #edc86b33;
}
body.newmagic .lobby-sound[aria-pressed="false"] {
  color: #d1bb82;
}
body.newmagic .marquee,
body.newmagic .announcement-ticker {
  background: #300b3de8;
  border-color: #d7b45a44;
  color: #eee7f0;
}
body.newmagic #categories {
  scrollbar-color: #d7b55d #21082a;
}
body.newmagic .game .tag {
  background: linear-gradient(#8324a4, #55156b);
  border-color: #f4dea5;
  color: #f9f6fa;
}

/* One continuous header surface; transparent scene, no rectangular image panel. */
body.newmagic > header {
  height: 122px;
  min-height: 122px;
  background: linear-gradient(105deg, #23082ced, #391047e8 58%, #290934ed);
  border-bottom: 1px solid #eecc7644;
  box-shadow: 0 6px 24px #15051a44;
}
body.newmagic .header-ornament {
  left: 32%;
  width: 36%;
  height: 100%;
  top: 0;
  background: url("/assets/newmagic/casino-header-cutout.webp") center/auto 103%
    no-repeat;
  opacity: 0.68;
  mask-image: none;
  mix-blend-mode: screen;
  border: 0;
  box-shadow: none;
}
body.newmagic .header-ornament:before,
body.newmagic .header-ornament:after {
  display: none;
}
body.newmagic .brand {
  left: 22px;
  top: 3px;
  height: 116px;
}
body.newmagic .account {
  right: 24px;
  top: 32px;
  gap: 12px;
  align-items: center;
}
body.newmagic .lobby-sound {
  right: 287px;
  top: 40px;
  width: 34px;
  height: 34px;
}
body.newmagic .credit {
  min-width: 177px;
  height: 46px;
}
@media (max-width: 760px) {
  body.newmagic > header {
    height: 97px;
    min-height: 97px;
  }
  body.newmagic .brand {
    left: 4px;
    top: 0;
    width: 187px;
    height: 76px;
  }
  body.newmagic .header-ornament {
    left: 41%;
    width: 19%;
    opacity: 0.26;
    background-size: auto 90%;
  }
  body.newmagic .account {
    right: 9px;
    top: 18px;
    gap: 7px;
  }
  body.newmagic .credit {
    min-width: 134px;
    height: 39px;
  }
  body.newmagic .lobby-sound {
    right: 14px;
    top: 61px;
    width: 26px;
    height: 26px;
  }
}
@media (max-width: 380px) {
  body.newmagic .brand {
    width: 162px;
  }
  body.newmagic .credit {
    min-width: 125px;
  }
}

/* Member-center theme; financial gain/loss colors retain their meaning. */
body.newmagic #modal {
  background: #290c33;
  color: #f0e9f2;
  border: 1px solid #e5c57266;
  box-shadow: 0 20px 80px #110416bb;
}
body.newmagic .profile-layout {
  background: linear-gradient(135deg, #2e0d3a, #33103f);
  color: #f0e9f2;
}
body.newmagic .profile-side {
  background: transparent;
}
body.newmagic .profile-wallet,
body.newmagic .side-label,
body.newmagic .profile-side .logout {
  background: linear-gradient(110deg, #621a7b, #8c36aa);
  border-color: #f1d69166;
  color: #f7f4f8;
  box-shadow: inset 0 1px #e6dcea20;
}
body.newmagic .profile-wallet strong {
  color: #f5f1f6;
  text-shadow: 0 1px 5px #2d0a39;
}
body.newmagic .profile-identity .orb {
  background: linear-gradient(#e7be55, #621a7b);
  border-color: #f5e1af;
  color: #f8f5f9;
}
body.newmagic .profile-tiles button {
  color: #ded1e2;
}
body.newmagic .profile-tiles button:hover,
body.newmagic .profile-tiles button.selected {
  color: #f9f6fa;
  background: #6a208444;
}
body.newmagic .profile-main {
  background: #2e0c3add;
  border-color: #b1954d55;
}
body.newmagic .profile-main .modal-head h2,
body.newmagic .modal-head h2 {
  color: #e7deea;
}
body.newmagic .profile-main .modal-head {
  border-bottom-color: #c9aa5c44;
}
body.newmagic .record-ranges .selected,
body.newmagic .settlement-ranges .selected,
body.newmagic .record-tabs .selected {
  background: #702889;
  border-color: #f2d999;
  color: #f6f2f7;
}
body.newmagic .login .primary,
body.newmagic .profile-layout .primary {
  background: linear-gradient(#8d34ac, #6a2084);
  border-color: #f1d691;
  color: #fff;
}

@media (min-width: 381px) and (max-width: 760px) {
  body.newmagic .brand {
    width: 180px;
  }
}

/* A sprite image must be clipped to its own measured viewport. */
body.newmagic
  #categories
  button[data-category]
  .category-art
  svg.category-picture {
  overflow: hidden;
}

/* The original TOP10 art is already icy blue; remove the legacy purple recolor. */
body.newmagic .section-head h1 img {
  filter: none;
}

/* Stop only the fully covered decorative background; visible artwork is unchanged. */
body.nm-background-paused::after {
  animation-play-state: paused;
}

/* Reference purple and gold presentation 2026 11 03 */

body.newmagic {
  background: #6b3294;
  color: #fff5df;
}
body.newmagic::after {
  opacity: 0.18;
}
body.newmagic > header {
  background: linear-gradient(105deg, #63278adf, #8b43a9bb 55%, #c990bcc7);
  border-bottom: 2px solid #ffe9b5;
  box-shadow: 0 2px 14px #ffdd9666;
}
body.newmagic .header-ornament {
  opacity: 1;
  filter: drop-shadow(0 0 7px #ffdc9d66);
}
body.newmagic .brand img {
  filter: drop-shadow(0 2px 3px #3c164d66);
}
body.newmagic .credit-title {
  filter: sepia(1) saturate(1.3);
}
body.newmagic .game {
  border: 2px solid #ffe3a1;
  background: linear-gradient(145deg, #fff3bc, #a35bb3 45%, #e4b469);
  box-shadow:
    0 2px 6px #35144399,
    inset 0 0 0 2px #8e3cae;
  border-radius: 16px;
}
body.newmagic .game .tag {
  background: #572473e8;
  border: 1px solid #ffe8ad;
  color: #fff5de;
}
body.newmagic .game .favorite {
  color: #ffe4a3;
}
body.newmagic .game .play {
  background: linear-gradient(#fff2c5, #ebbc69);
  border-color: #fff0bb;
  color: #4a235d;
}
body.newmagic .empty {
  color: #fff4d8;
  background: #48205c88;
  border: 1px solid #f5d9ac66;
  border-radius: 16px;
}
body.newmagic #categoryTitle:not(.category-heading) {
  background: url("/assets/newmagic/purple-gold-20261103/top10-reference-v2.webp")
    left center/contain no-repeat;
}
body.newmagic #categoryTitle:not(.category-heading) > img {
  opacity: 0;
}
body.newmagic .category-heading-text,
body.newmagic .category-heading-outline {
  transform: none;
}
body.newmagic .search input::placeholder {
  color: #fff2dcbb;
}
body.newmagic :is(button, a):focus-visible {
  outline-color: #ffe7ac;
}

/* Reference header and side rail proportions, scoped to the player lobby. */
@media (min-width: 1200px) {
  body.newmagic:has(> #categories) > header {
    height: 7.2vw;
    min-height: 7.2vw;
  }
  body.newmagic:has(> #categories) > header .brand {
    width: 15vw;
    height: 7.2vw;
    left: 1.2vw;
    top: 0;
  }
  body.newmagic #categories button[data-category] .category-art,
  body.newmagic #categories button[data-category="all"] .category-art {
    position: static;
    inset: auto;
    width: 6.2vw;
    height: 5.1vw;
    min-height: 0;
    flex: 0 0 5.1vw;
    transform: none;
    margin: 0;
  }
  body.newmagic #categories button[data-category] .category-label {
    display: block;
    position: static;
    transform: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    line-height: 1.25;
    font-size: 1.35vw;
  }
  body.newmagic #categories button[data-category] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2vw;
  }
}

body.newmagic .header-ornament {
  background-image: url("/assets/newmagic/purple-gold-20261103/header-crown.webp");
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}
body.newmagic .header-ornament::after {
  display: none;
}
@media (min-width: 1200px) {
  body.newmagic:has(> #categories) > header .header-ornament {
    left: 25vw;
    right: 25vw;
    top: 0;
    bottom: 0;
  }
  body.newmagic #categories {
    bottom: 0;
    height: calc(100dvh - 8.2vw);
    max-height: calc(100dvh - 8.2vw);
  }
  body.newmagic .lobby > .provider-carousel {
    margin: 0.7vw 0 0.8vw;
    height: 8.8vw;
    min-height: 8.8vw;
  }
  body.newmagic .section-head {
    height: 3.7vw;
    min-height: 3.7vw;
  }
  body.newmagic .section-head #categoryTitle {
    height: 3.7vw;
    min-height: 3.7vw;
  }
}

/* Approved reference 2026-11-03: lobby chrome, independent of login form controls. */
body.newmagic:has(> #categories) > header #profile.guest-login {
  background: linear-gradient(180deg, #26d5ff 0%, #079fee 46%, #0076cf 100%);
  border: 1px solid #9beaff;
  border-radius: 13px;
  color: #fff;
  box-shadow:
    inset 0 1px 1px #e9fcffb3,
    0 3px 4px #3c175d99,
    0 0 5px #38c7ff66;
  font-weight: 800;
  letter-spacing: 2px;
  display: grid;
  place-items: center;
  padding: 0;
  transform: none;
}
body.newmagic:has(> #categories) > header #profile.guest-login:hover {
  background: linear-gradient(#52e1ff, #008cf0);
}
body.newmagic:has(> #categories) > header .header-ornament {
  filter: none;
  opacity: 1;
  background-size: auto 130%;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}
@media (min-width: 1200px) {
  body.newmagic:has(> #categories) > header .brand {
    left: 0.8vw;
    width: 18vw;
  }
  body.newmagic:has(> #categories) > header #profile.guest-login {
    width: 7.5vw;
    height: 3vw;
    min-height: 0;
    font-size: 1.45vw;
  }
  body.newmagic:has(> #categories) > header .header-ornament {
    left: 35vw;
    right: 33vw;
  }
  body.newmagic #categories button[data-category] {
    min-height: 7.4vw;
    height: 7.4vw;
    flex-basis: 7.4vw;
  }
  body.newmagic #categories button[data-category] .category-art {
    width: 7.5vw;
    height: 5.5vw;
    flex-basis: 5.5vw;
  }
}

@media (min-width: 1200px) {
  body.newmagic .providers .provider-face {
    width: 100%;
    margin: 0;
    padding: 3px 7px;
  }
  body.newmagic .providers button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  body.newmagic:has(> #categories) > header #profile.guest-login {
    position: absolute;
    right: 1.3vw;
    top: 1.3vw;
  }
}
body.newmagic
  .providers
  button:is(:hover, .active, :focus-visible)
  .provider-face {
  background-image: none;
  filter: drop-shadow(0 0 5px #f4d79088);
}

body.newmagic #categories .category-picture {
  overflow: hidden;
}
@media (min-width: 1200px) {
  body.newmagic:has(> #categories) > header #lobbySound {
    position: absolute;
    right: 14.3vw;
    top: 1.95vw;
  }
}

@media (min-width: 1200px) {
  body.newmagic:has(> #categories) > header .account:has(.guest-login) {
    position: static;
  }
}

/* Complete reference header artwork: original 1280:92 aspect ratio. */
@media (min-width: 761px) {
  body.newmagic:has(> #categories) > header {
    height: 7.1875vw;
    min-height: 7.1875vw;
    max-height: 7.1875vw;
    padding: 0;
    background: url("/assets/newmagic/purple-gold-20261103/reference-header-background-v3.svg")
      center/100% 100% no-repeat;
    border-bottom: 0;
    box-shadow: none;
    overflow: hidden;
  }
  body.newmagic:has(> #categories) > header::before,
  body.newmagic:has(> #categories) > header::after,
  body.newmagic:has(> #categories) > header .header-ornament {
    display: none;
  }
  body.newmagic:has(> #categories) > header .brand {
    left: 0.8vw;
    top: 0;
    width: 18vw;
    height: 7.1875vw;
    margin: 0;
    padding: 0;
  }
  body.newmagic:has(> #categories) > header .account:has(.guest-login) {
    position: static;
  }
  body.newmagic:has(> #categories) > header #profile.guest-login {
    position: absolute;
    right: 1.3vw;
    top: 1.3vw;
    width: 7.5vw;
    height: 3vw;
    min-height: 0;
    font-size: 1.45vw;
  }
  body.newmagic:has(> #categories) > header #lobbySound {
    position: absolute;
    right: 14.3vw;
    top: 1.95vw;
    width: 2.6vw;
    height: 2.6vw;
    min-width: 0;
    min-height: 0;
  }
}
/* Mobile header prioritises the complete animated logo over decorative artwork. */
@media (max-width: 760px) {
  body.newmagic:has(> #categories) > header {
    position: relative;
    height: 140px;
    min-height: 140px;
    max-height: 140px;
    padding: 0;
    overflow: visible;
    background:
      radial-gradient(ellipse at 10% 90%, #d68abe66, transparent 70%),
      linear-gradient(120deg, #693481, #81439b 58%, #a56fae);
    border-bottom: 1px solid #f9dfa8;
    box-shadow: 0 2px 9px #f5d3ad55;
  }
  body.newmagic:has(> #categories) > header .header-ornament,
  body.newmagic:has(> #categories) > header::before,
  body.newmagic:has(> #categories) > header::after {
    display: none;
  }
  body.newmagic:has(> #categories) > header .brand {
    position: absolute;
    left: 8px;
    top: 3px;
    width: calc(100% - 108px);
    max-width: 240px;
    height: 134px;
    margin: 0;
    padding: 0;
    z-index: 5;
    transform: none;
  }
  body.newmagic:has(> #categories) > header .brand picture,
  body.newmagic:has(> #categories) > header .brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
    overflow: visible;
    transform: none;
    clip-path: none;
    mask-image: none;
  }
  body.newmagic:has(> #categories) > header .account:has(.guest-login) {
    position: static;
  }
  body.newmagic:has(> #categories) > header #profile.guest-login {
    position: absolute;
    right: 12px;
    top: 22px;
    width: 80px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    font-size: 16px;
    z-index: 6;
  }
  body.newmagic:has(> #categories) > header #lobbySound {
    position: absolute;
    right: 30px;
    top: 80px;
    width: 44px;
    height: 44px;
    min-height: 44px;
    min-width: 44px;
    z-index: 6;
  }
  body.newmagic #categories {
    background: linear-gradient(180deg, #a876b6, #865095 65%, #764387);
    border-bottom: 1px solid #f9e2b080;
    box-shadow:
      inset 0 1px #f8d9f766,
      0 3px 10px #57275e44;
  }
  body.newmagic::before {
    background-image:
      linear-gradient(180deg, #c28bd51a, #d29dce22),
      url("/assets/newmagic/purple-gold-20261103/lobby-background.webp");
  }
}

/* Reference card badge, keep the original tag content and action targets. */
body.newmagic .game .tag {
  top: 4px;
  left: 4px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  border: 1px solid #fff0d4;
  border-radius: 12px;
  background: linear-gradient(180deg, #a656d6, #591584 75%);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 14px;
  box-shadow:
    inset 0 1px 2px #ffe6ff88,
    0 1px 2px #2f113b88;
  transform: none;
}

body.newmagic .game {
  border: 3px solid transparent;
  background:
    linear-gradient(#341646, #341646) padding-box,
    linear-gradient(
        145deg,
        #fffbe5,
        #ffe9b3 17%,
        #b57926 45%,
        #ffdf85 70%,
        #fff9d9 87%,
        #dba546
      )
      border-box;
  border-radius: 16px;
  box-shadow:
    0 2px 3px #46204f99,
    0 0 4px #ffe3a866,
    inset 0 0 0 1px #fff1c4;
}
body.newmagic .game .favorite {
  color: #ffdf58;
  background: #54246f9c;
  border: 0;
  filter: drop-shadow(0 1px 1px #6e3c00);
  top: 3px;
  right: 3px;
}
@media (min-width: 1200px) {
  body.newmagic > main {
    padding-left: 1.25vw;
    padding-right: 1.875vw;
  }
}

/* Reference side rail: luminous lavender and rose, without a dark overlay. */
@media (min-width: 761px) {
  body.newmagic #categories {
    background: linear-gradient(
      180deg,
      #8258a3ed 0%,
      #9063a9e8 40%,
      #ad7cbae8 75%,
      #c28faeea 100%
    );
    border-right: 2px solid #fff2b8;
    box-shadow:
      inset -1px 0 #ffcf6c,
      3px 0 8px #ffe6a655;
  }
  body.newmagic #categories button[data-category] {
    opacity: 1;
    filter: none;
    background: transparent;
  }
  body.newmagic #categories button[data-category] .category-art {
    opacity: 1;
    filter: brightness(1.13) saturate(1.08) drop-shadow(0 2px 2px #64405e55);
  }
  body.newmagic #categories button[data-category] .category-label {
    color: #fffdf4;
    font-weight: 800;
    text-shadow:
      0 1px 2px #633a72,
      0 0 3px #fff3d533;
  }
  body.newmagic #categories button[data-category].active {
    background: linear-gradient(90deg, transparent, #f6c9ef22, transparent);
    box-shadow: none;
    filter: none;
  }
}
@media (max-width: 760px) {
  body.newmagic #categories {
    background: linear-gradient(180deg, #b28bc5, #9e72b4 58%, #a178b6);
  }
  body.newmagic #categories .category-art {
    filter: brightness(1.1) saturate(1.05);
  }
  body.newmagic #categories .category-label {
    color: #fffdf3;
    text-shadow: 0 1px 2px #6c447e;
  }
}

body.newmagic .lobby > .provider-carousel {
  display: flex;
  align-items: center;
}

/* Source-matched fish and poker artwork; preserve category actions and labels. */
body.newmagic #categories .art-fish .category-picture,
body.newmagic #categories .art-table .category-picture {
  visibility: hidden;
}
body.newmagic #categories button[data-category="fish"] .category-art,
body.newmagic #categories button[data-category="table"] .category-art {
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 2px 2px #62316c44);
}
body.newmagic #categories button[data-category="fish"] .category-art {
  background-image: url("/assets/newmagic/purple-gold-20261103/fish-reference-v3.svg");
}
body.newmagic #categories button[data-category="table"] .category-art {
  background-image: url("/assets/newmagic/purple-gold-20261103/table-reference-v3.svg");
}

/* One speaker control on desktop and mobile, with the same visible diameter. */
body.newmagic:has(> #categories) > header #lobbySound {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  color: #fff3e2;
  transform: none;
  font-size: 0;
  isolation: isolate;
}
body.newmagic:has(> #categories) > header #lobbySound::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 33px;
  height: 33px;
  transform: translate(-50%, -50%);
  border: 1px solid #ffe9a5;
  border-radius: 50%;
  background: linear-gradient(145deg, #9a53b2, #64287e);
  box-shadow:
    0 1px 3px #44205088,
    inset 0 1px #ffeddb55;
  z-index: -1;
  pointer-events: none;
}
body.newmagic:has(> #categories) > header #lobbySound svg {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0;
  padding: 0;
  stroke-width: 1.8;
  transform: none;
}
