/* Experimental Mint coin and original Flip Club profile collectibles. */
.mint-surface {
  position: relative;
  isolation: isolate;
}
.mint-render {
  position: absolute;
  left: -30%;
  top: -30%;
  width: 160%;
  height: 160%;
  pointer-events: none;
  z-index: 2;
  display: none;
}
.mint-v2 .mint-render {
  display: block;
}
.mint-v2 .mint-surface > .coin {
  opacity: 0;
}
.mint-v2 .coin-wrap,
.mint-v2 .duel-coin {
  transform: none;
  filter: none;
}
.mint-v2 .duel-coin.is-flipping {
  animation: none;
}
.mint-v2 .coin-shadow {
  opacity: 0.2;
}
#coin-lab-toggle {
  font-size: 9px;
  font-weight: 600;
  color: var(--website-ink-201-220-177-1, #c9dcb1);
  background: var(--website-surface-37-48-29-1, #25301d);
  border: 1px solid var(--website-line-75-98-53-1, #4b6235);
  border-radius: 20px;
  min-height: 28px;
  padding: 5px 10px;
  white-space: nowrap;
}
.coin-caption {
  align-items: center;
}
.mint-v2 .orbit {
  border-color: var(--website-line-179-206-115-0_12549019607843137, #b3ce7320);
}
.avatar-frame {
  position: relative;
  isolation: isolate;
  overflow: visible !important;
}
.avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar {
  overflow: hidden;
  position: relative;
}
.decoration-art {
  position: absolute;
  inset: -22%;
  pointer-events: none;
  z-index: 3;
  border-radius: 50%;
  display: block;
}
.deco-satellite .decoration-art {
  border: 1px solid #c2b8ff90;
  transform: rotate(-25deg);
  animation: deco-orbit 11s linear infinite;
}
.deco-satellite .decoration-art:before,
.deco-satellite .decoration-art:after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(130deg, #f7e2b1, #8e7ac9);
  box-shadow: 0 0 8px #b7abf588;
  width: 17%;
  height: 17%;
  top: 41%;
  left: -8%;
}
.deco-satellite .decoration-art:after {
  left: auto;
  right: -8%;
  width: 11%;
  height: 11%;
  top: 45%;
  background: #e0d6ff;
}
.deco-laurel .decoration-art:before,
.deco-laurel .decoration-art:after {
  content: '❧';
  position: absolute;
  font: 38px Georgia;
  color: #e9c985;
  text-shadow: 0 1px #655022;
  left: -4%;
  bottom: -8%;
  transform: rotate(-32deg);
}
.deco-laurel .decoration-art:after {
  left: auto;
  right: -4%;
  transform: scaleX(-1) rotate(-32deg);
}
.deco-spark .decoration-art {
  border: 1px dashed #9ae8ee;
  box-shadow: 0 0 9px #70dbe84d;
  animation: deco-orbit 18s linear infinite;
}
.deco-spark .decoration-art:before,
.deco-spark .decoration-art:after {
  content: '✦';
  position: absolute;
  color: #c8faff;
  font-size: 16px;
  top: -12%;
  left: 22%;
  text-shadow: 0 0 8px #c8faff;
}
.deco-spark .decoration-art:after {
  top: auto;
  bottom: -8%;
  left: auto;
  right: 0;
  font-size: 10px;
}
@keyframes deco-orbit {
  to {
    transform: rotate(335deg);
  }
}
.styled-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
  border-radius: 5px;
  position: relative;
  line-height: 1.35;
}
.styled-name > .nickname {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.display-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.name-badge {
  font: 700 8px var(--body);
  letter-spacing: 0.25px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding: 3px 5px;
  border-radius: 4px;
  border: 1px solid var(--website-line-101-128-76-1, #65804c);
  color: var(--website-ink-211-245-154-1, #d3f59a);
  background: #25351c;
  line-height: 1;
}
.badge-streak10 {
  color: #ffd3ac;
  border-color: #865f38;
  background: #3b2b1b;
}
.badge-og {
  color: #b9e8ec;
  border-color: #467a80;
  background: #1b3439;
}
.badge-dev {
  color: #d9d0ff;
  border-color: #73658d;
  background: #30293e;
}
.plate-starlight {
  padding: 4px 6px;
  background: linear-gradient(110deg, #9c78d33b, #7a64bd17 65%, #d1baff25);
  border-bottom: 1px solid #a18ac96b;
}
.plate-starlight:after {
  content: '✦';
  font-size: 9px;
  color: #d9ccff;
  margin-left: 2px;
  animation: plate-twinkle 3s ease-in-out infinite;
}
.plate-mintwave {
  padding: 4px 6px;
  background: linear-gradient(110deg, #84d1c333, var(--website-surface-164-207-99-0_10196078431372549, #a4cf631a));
  border-bottom: 1px solid var(--website-line-142-194-158-0_4392156862745098, #8ec29e70);
}
.plate-ember {
  padding: 4px 6px;
  background: linear-gradient(110deg, #ef9e6e30, #b5623010);
  border-bottom: 1px solid #db9b686b;
}
@keyframes plate-twinkle {
  50% {
    opacity: 0.3;
    transform: scale(0.7);
  }
}
.table-name .styled-name,
.member-identity strong .styled-name,
.chat-channel .styled-name {
  flex: 1;
}
.table-name .display-badges {
  gap: 3px;
}
.mini-leader .display-badges {
  display: none;
}
.mini-leader .styled-name:after {
  display: none;
}
.mini-leader .styled-name {
  padding: 1px 3px;
}
.profile-card {
  position: relative;
  isolation: isolate;
  border-radius: 16px;
}
.profile-card-content {
  position: relative;
  z-index: 2;
}
.profile-banner {
  z-index: 1;
}
.profile-card-content > h2 {
  position: relative;
  min-width: 0;
  margin: 16px 0 2px;
}
.profile-card-content > h2 .styled-name {
  flex-wrap: wrap;
  row-gap: 8px;
}
.profile-card-content > h2 .name-badge {
  font-size: 9px;
  padding: 4px 6px;
}
.profile-card-content > h2 .plate-starlight:after {
  display: none;
}
.profile-effect-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  border-radius: inherit;
  opacity: 0.7;
}
.effect-constellation .profile-effect-art {
  background:
    radial-gradient(circle at 12% 32%, #e7d1ff 0 1px, transparent 2px),
    radial-gradient(circle at 80% 12%, #fcf2be 0 1px, transparent 2px),
    radial-gradient(circle at 65% 76%, #d3f59a 0 1px, transparent 2px),
    radial-gradient(circle at 23% 82%, #d8c4ff 0 1px, transparent 2px);
}
.effect-constellation .profile-effect-art i {
  position: absolute;
  width: 3px;
  height: 3px;
  background: #eee4ff;
  border-radius: 50%;
  left: 18%;
  top: 30%;
  box-shadow:
    30px 80px #f7e3ba,
    150px 10px #d7f3bc,
    90px 200px #d3c0fa;
  animation: profile-stars 6s ease-in-out infinite;
}
.effect-constellation .profile-effect-art i:nth-child(2n) {
  left: 65%;
  top: 55%;
  animation-delay: -3s;
}
.effect-constellation .profile-effect-art i:nth-child(n + 3) {
  display: none;
}
.effect-aurora .profile-effect-art:before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 30deg, transparent 30%, #86e6c044, transparent 47%, #a992f94d, transparent 64%);
  filter: blur(20px);
  animation: aurora-shift 13s ease-in-out infinite alternate;
}
.effect-coinfall .profile-effect-art i {
  position: absolute;
  top: -20px;
  left: 12%;
  width: 12px;
  height: 12px;
  border: 2px solid #edd38a;
  border-radius: 50%;
  background: #b98e3540;
  animation: coin-rain 8s linear infinite;
  opacity: 0.45;
}
.effect-coinfall .profile-effect-art i:nth-child(2) {
  left: 35%;
  animation-delay: -4s;
}
.effect-coinfall .profile-effect-art i:nth-child(3) {
  left: 74%;
  animation-delay: -6s;
}
.effect-coinfall .profile-effect-art i:nth-child(4) {
  left: 87%;
  animation-delay: -2s;
}
.effect-coinfall .profile-effect-art i:nth-child(5) {
  left: 49%;
  animation-delay: -7s;
}
.effect-coinfall .profile-effect-art i:nth-child(6) {
  left: 62%;
  animation-delay: -3s;
}
@keyframes profile-stars {
  0%,
  100% {
    opacity: 0.1;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-9px);
  }
}
@keyframes aurora-shift {
  to {
    transform: rotate(50deg) translate(8%, 4%);
  }
}
@keyframes coin-rain {
  to {
    transform: translateY(520px) rotateY(540deg);
  }
}
.profile-border-gilded {
  border: 2px solid #d6bd7b !important;
  box-shadow:
    inset 0 0 0 3px #8c723333,
    0 0 20px #d6bd7b0b;
}
.profile-border-gilded:after {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid #d6bd7b55;
  border-radius: 11px;
  pointer-events: none;
  z-index: 3;
}
.profile-border-hologram {
  border: 2px solid #b3a8e0 !important;
  box-shadow:
    0 0 16px #9a89cf30,
    inset 0 0 20px #86dac51a;
}
.profile-border-hologram:after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid transparent;
  border-image: linear-gradient(135deg, #a6f2d1, #c5a2f2, #f0df9b) 1;
  pointer-events: none;
  z-index: 3;
  opacity: 0.65;
  animation: plate-twinkle 6s infinite;
}
.profile-border-botanical {
  border: 2px solid var(--website-line-122-167-106-1, #7aa76a) !important;
  box-shadow: inset 0 0 25px var(--website-shade-158-204-92-0_0784313725490196, #9ecc5c14);
}
.profile-border-botanical:after {
  content: '❧';
  position: absolute;
  bottom: 4px;
  right: 10px;
  font: 50px Georgia;
  color: var(--website-ink-157-195-122-1, #9dc37a);
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
}
.profile-card[data-theme='midnight'],
.profile-card-content[data-theme='midnight'] {
  background: var(--website-surface-35-32-49-1, #232031);
  color: #eee5ff;
}
.profile-card-content[data-theme='rose'] {
  background: var(--website-surface-49-36-38-1, #312426);
  color: #ffecde;
}
.profile-card-content[data-theme='forest'] {
  background: var(--website-surface-26-43-34-1, #1a2b22);
}
.profile-card-content[data-theme='ice'] {
  background: #1e2b33;
}

/* Shared shop collectibles. */
.shop-tabs {
  max-width: 100%;
  overflow: auto;
  flex-wrap: nowrap;
  scrollbar-width: thin;
}
.shop-tabs button {
  white-space: nowrap;
  flex-shrink: 0;
}
.shop-layout > div {
  min-width: 0;
}
.studio-art {
  min-height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 40%, var(--website-surface-53-64-46-0_6, #35402e99), transparent 75%),
    var(--website-surface-25-30-22-1, #191e16);
  overflow: hidden;
  position: relative;
}
.studio-art .large-frame .avatar {
  width: 62px;
  height: 62px;
  font-size: 28px;
}
.studio-art .large-frame.deco-laurel .decoration-art:before,
.studio-art .large-frame.deco-laurel .decoration-art:after {
  font-size: 52px;
}
.name-art {
  padding: 22px 14px;
  gap: 12px;
}
.name-art > .styled-name {
  font-size: 14px;
}
.name-art .display-badges {
  max-width: 100%;
  flex-wrap: wrap;
}
.name-art .name-badge {
  font-size: 9px;
}
.card-art {
  padding: 15px;
}
.mini-effect {
  height: 110px;
  width: 90%;
  border: 1px solid var(--line);
  padding: 24px 14px;
  background: var(--website-surface-29-36-26-1, #1d241a);
}
.mini-effect-person {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
  font-size: 14px;
}
.mini-effect-person small {
  display: block;
  font-size: 8px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-top: 6px;
}
.demo-account-card {
  text-align: center;
  padding: 10px 0;
}
.demo-account-card > .avatar-frame {
  margin-bottom: 25px;
}
.demo-account-card > .eyebrow {
  justify-content: center;
}
.demo-account-card > button {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}

/* Desktop popup; mobile uses a single scrollable bottom sheet. */
dialog#modal.studio-dialog {
  width: calc(100% - 48px);
  max-width: 1000px;
  padding: 20px 24px 0;
  max-height: 92dvh;
  overflow: auto;
}
.studio-dialog .modal-top {
  margin-bottom: 10px;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.studio-heading h2 {
  font: 500 30px var(--display);
  letter-spacing: -1px;
  margin: 8px 0 0;
}
.studio-access {
  font-size: 10px;
  white-space: nowrap;
  color: var(--lime);
  border: 1px solid var(--website-line-87-112-61-1, #57703d);
  background: var(--website-surface-211-245-154-0_03137254901960784, #d3f59a08);
  padding: 8px 10px;
  border-radius: 7px;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.studio-editor {
  min-width: 0;
}
.studio-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 145px;
  gap: 14px;
}
.studio-fields label {
  font-size: 9px;
  letter-spacing: 1px;
  display: block;
  color: var(--muted);
  margin: 0;
}
.studio-fields input,
.studio-fields textarea,
.studio-fields select {
  display: block;
  margin-top: 7px;
  width: 100%;
  font: 14px var(--body);
  color: var(--text);
  background: var(--website-surface-21-27-17-1, #151b11);
  border: 1px solid var(--website-line-70-86-56-1, #465638);
  border-radius: 8px;
  padding: 12px;
  min-height: 44px;
}
.studio-fields textarea {
  resize: vertical;
  min-height: 65px;
}
.studio-about {
  grid-column: 1/-1;
}
.avatar-upload-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.avatar-upload-row .outline-button {
  min-height: 44px;
  justify-content: center;
  font-size: 12px;
}
.avatar-upload-row .quiet-button {
  min-height: 44px;
  font-size: 12px;
}
.studio-upload-note {
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: var(--muted);
  margin: 8px 0 20px;
  overflow-wrap: anywhere;
}
.studio-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  background: var(--website-surface-21-27-16-1, #151b10);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.studio-tabs button {
  font-size: 11px;
  min-height: 40px;
  padding: 8px 7px;
  border-radius: 7px;
  background: transparent;
  color: var(--website-ink-165-179-154-1, #a5b39a);
  line-height: 1.3;
}
.studio-tabs button.selected {
  background: var(--website-surface-50-64-37-1, #324025);
  color: var(--lime);
}
#studio-category-note {
  font-size: 12px;
  line-height: 1.5;
  min-height: 36px;
  margin: 12px 0;
}
.studio-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.studio-item {
  text-align: left;
  background: var(--website-surface-34-42-28-1, #222a1c);
  border: 1px solid var(--website-line-62-75-50-1, #3e4b32);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  min-width: 0;
}
.studio-item.selected {
  border-color: var(--website-line-189-222-141-1, #bdde8d);
  box-shadow: 0 0 0 1px var(--website-shade-189-222-141-1, #bdde8d);
}
.studio-item .studio-art {
  min-height: 115px;
}
.studio-item-label {
  display: block;
  padding: 11px 12px;
}
.studio-item-label strong {
  display: block;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
}
.studio-item-label small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.studio-preview-column {
  position: sticky;
  top: 10px;
  min-width: 0;
}
.studio-preview-column > .eyebrow {
  margin-bottom: 13px;
}
.studio-preview-column .profile-card h2 {
  font-size: 22px;
}
.studio-preview-column .profile-banner {
  height: 100px;
}
.studio-preview-column .profile-about {
  font-size: 12px;
}
.studio-account {
  border: 1px solid var(--website-line-63-78-50-1, #3f4e32);
  border-radius: 11px;
  margin-top: 17px;
  padding: 16px;
  background: var(--website-surface-26-33-21-1, #1a2115);
}
.studio-account > strong {
  display: block;
  font-size: 14px;
  margin-top: 9px;
}
.studio-account > p {
  font-size: 11px !important;
  line-height: 1.6 !important;
  color: var(--muted);
}
.studio-account button {
  width: 100%;
  justify-content: center;
  min-height: 42px;
  font-size: 12px;
}
.studio-save {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--website-surface-28-34-24-0_9607843137254902, #1c2218f5);
  border-top: 1px solid var(--website-line-67-83-55-1, #435337);
  backdrop-filter: blur(12px);
  padding: 16px 0;
  z-index: 4;
}
.studio-save > span {
  margin-right: auto;
  font-size: 11px;
  line-height: 1.5;
  color: var(--website-ink-173-187-160-1, #adbba0);
  max-width: 300px;
}
.studio-save button {
  min-height: 44px;
  justify-content: center;
  font-size: 13px;
}
.studio-save .flip-button {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
}
.profile-studio .studio-preview-column .profile-card-stats {
  margin-top: 12px;
}
.profile-studio .studio-preview-column .all-access-badge {
  font-size: 9px;
}
.studio-items .name-art {
  flex-direction: column;
  gap: 9px;
}
.studio-items .name-art .name-badge {
  font-size: 9px;
}
.profile-studio #studio-save-status:empty {
  display: none;
}
.duel-player-name h2 .name-badge {
  font-size: 7px;
  padding: 3px;
}
.duel-player-name h2 .styled-name {
  gap: 4px;
}
@media (max-width: 900px) {
  dialog#modal.studio-dialog {
    width: calc(100% - 28px);
    padding: 18px 18px 0;
  }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .studio-fields {
    grid-template-columns: 1fr;
  }
  .studio-tabs button {
    font-size: 10px;
  }
  .studio-heading h2 {
    font-size: 27px;
  }
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  #coin-lab-toggle {
    font-size: 11px;
    min-height: 44px;
    padding: 8px 10px;
    background: transparent;
    border: 0;
    color: var(--lime);
  }
  body.play-page .coin-caption {
    font-size: 11px;
    gap: 7px;
    flex-wrap: nowrap;
  }
  .avatar-frame.deco-satellite .decoration-art {
    inset: -17%;
  }
  .table-name .name-badge {
    font-size: 7px;
    padding: 3px 4px;
  }
  .table-name .styled-name {
    gap: 4px;
  }
  .table-name .plate-starlight:after {
    display: none;
  }
  .online-player .member-identity strong {
    overflow: visible;
  }
  .online-player .member-identity .styled-name {
    max-width: 100%;
    font-size: 14px;
    gap: 4px;
  }
  .online-player .member-identity .name-badge {
    font-size: 7px;
    padding: 3px 4px;
  }
  .chat-message strong .styled-name {
    font-size: 13px;
  }
  .chat-message .name-badge {
    font-size: 7px;
    padding: 3px 4px;
  }
  .chat-message header {
    flex-wrap: wrap;
  }
  .studio-art .large-frame .avatar {
    width: 52px;
    height: 52px;
  }
  .name-art .styled-name {
    font-size: 13px;
  }
  .shop-tabs {
    display: flex !important;
    grid-template-columns: none;
    gap: 3px;
  }
  .shop-tabs button {
    flex: 0 0 auto;
    padding: 9px 12px;
    font-size: 12px;
    min-height: 44px;
  }
  .shop-item .studio-art {
    min-height: 130px;
  }
  .shop-item .name-art {
    flex-direction: column;
  }
  .shop-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .shop-tabs {
    width: 100%;
  }
  dialog#modal.studio-dialog {
    width: 100%;
    max-width: 600px;
    max-height: calc(var(--mobile-visible-height, 100dvh) - env(safe-area-inset-top, 0px) - 10px);
    padding: 18px 16px 0;
    border-radius: 24px 24px 0 0;
  }
  .studio-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
  }
  .studio-heading h2 {
    font-size: 25px;
    margin-top: 8px;
  }
  .studio-access {
    font-size: 8px;
    padding: 7px;
    line-height: 1.4;
    max-width: 105px;
    text-align: center;
    white-space: normal;
  }
  .studio-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 22px;
  }
  .studio-preview-column {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .studio-preview-column > .eyebrow {
    margin-bottom: 10px;
  }
  .studio-preview-column .profile-banner {
    height: 80px;
  }
  .studio-preview-column .profile-card-content {
    padding-bottom: 16px;
  }
  .studio-preview-column .profile-about {
    margin: 8px 0;
    font-size: 13px;
  }
  .studio-preview-column .profile-card-stats {
    display: none;
  }
  .studio-preview-column .all-access-badge {
    display: none;
  }
  .studio-preview-column .profile-card h2 {
    font-size: 22px;
    margin-top: 10px;
  }
  .studio-preview-column .profile-avatar-row .avatar {
    width: 55px;
    height: 55px;
  }
  .studio-account {
    margin-top: 12px;
    padding: 13px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }
  .studio-account > .eyebrow {
    grid-column: 1;
  }
  .studio-account > strong {
    grid-column: 1;
    margin: 0;
    font-size: 13px;
  }
  .studio-account > p {
    grid-column: 1/-1;
    font-size: 11px !important;
    margin: 6px 0 0;
  }
  .studio-account > button {
    grid-column: 2;
    grid-row: 1/3;
    width: auto;
    min-height: 44px;
    font-size: 12px;
  }
  .studio-preview-column .profile-card {
    height: 176px;
    min-height: 176px;
  }
  .studio-preview-column .profile-banner {
    position: absolute;
    inset: 0 0 auto;
    height: 56px;
  }
  .studio-preview-column .profile-card-content {
    position: absolute;
    inset: 0;
    padding: 52px 14px 12px;
    background: transparent !important;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    grid-template-rows: 1fr 32px;
    gap: 4px 10px;
    align-items: center;
  }
  .studio-preview-column .profile-avatar-row {
    grid-column: 1;
    grid-row: 1/3;
    margin: 0;
  }
  .studio-preview-column .profile-avatar-row > .profile-badge {
    display: none;
  }
  .studio-preview-column .profile-card h2 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    font-size: 20px;
    line-height: 1.3;
  }
  .studio-preview-column .profile-card h2 .styled-name {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    max-width: 100%;
    padding: 4px 5px;
  }
  .studio-preview-column .profile-card h2 .display-badges {
    flex-wrap: wrap;
  }
  .studio-preview-column .profile-about {
    display: none;
  }
  .studio-account > p {
    display: none;
  }
  .studio-editor {
    width: 100%;
  }
  .studio-fields {
    grid-template-columns: 1fr 120px;
    gap: 12px;
  }
  .studio-fields label {
    font-size: 10px;
  }
  .studio-fields input,
  .studio-fields select,
  .studio-fields textarea {
    font-size: 16px !important;
    min-height: 48px;
    padding: 12px 10px;
  }
  .avatar-upload-row {
    gap: 10px;
  }
  .avatar-upload-row .outline-button {
    font-size: 13px;
    flex: 1;
  }
  .avatar-upload-row .quiet-button {
    font-size: 12px;
    padding: 10px 6px;
  }
  .studio-tabs button {
    min-height: 44px;
    font-size: 11px;
    padding: 8px 5px;
  }
  .studio-items {
    gap: 10px;
  }
  .studio-item-label {
    padding: 11px 10px;
  }
  .studio-item-label strong {
    font-size: 13px;
  }
  .studio-item-label small {
    font-size: 11px;
  }
  .studio-item .studio-art {
    min-height: 115px;
  }
  .studio-save {
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    flex-wrap: wrap;
  }
  .studio-save > span {
    font-size: 11px;
    max-width: none;
    width: 100%;
    flex-basis: 100%;
    margin: 0;
  }
  .studio-save button,
  .studio-save .flip-button {
    flex: 1;
    min-height: 48px;
    font-size: 14px;
  }
  .duel-player-name h2 .styled-name {
    flex-wrap: wrap;
    gap: 4px;
  }
  .duel-player-name h2 .name-badge {
    font-size: 7px;
  }
  .profile-card-content > h2 .name-badge {
    font-size: 9px;
  }
}
@media (max-width: 380px) {
  body.play-page .coin-caption {
    font-size: 10px;
    gap: 5px;
  }
  #coin-lab-toggle {
    font-size: 10px;
    padding: 6px;
  }
  .studio-fields {
    grid-template-columns: 1fr;
  }
  .studio-tabs button {
    font-size: 10px;
  }
  .studio-heading h2 {
    font-size: 23px;
  }
  .display-badges {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .decoration-art,
  .profile-effect-art,
  .profile-effect-art *,
  .profile-effect-art:before,
  .plate-starlight:after,
  .profile-border-hologram:after {
    animation: none !important;
  }
  .effect-coinfall .profile-effect-art i {
    top: 35%;
    transform: none;
    opacity: 0.15;
  }
  .effect-aurora .profile-effect-art:before {
    opacity: 0.3;
  }
}

/* Achievement profile colors and gradients. */
.profile-style-copper,
.profile-style-copper [data-theme] {
  --profile-bg: #3d2924;
  --profile-accent: #ffcfaa;
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #76503c;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-copper {
  background: #3d2924;
}
.profile-style-copper .profile-banner {
  background: #b87650;
}
.profile-style-ember,
.profile-style-ember [data-theme] {
  --profile-bg: var(--website-surface-41-38-49-1, #292631);
  --profile-accent: #ffd0ad;
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #81515a;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-ember {
  background: linear-gradient(145deg, #402126, #221b2d);
}
.profile-style-ember .profile-banner {
  background: linear-gradient(120deg, #e59462, #a94c68, #453557);
}
.profile-style-inferno,
.profile-style-inferno [data-theme] {
  --profile-bg: var(--website-surface-41-38-49-1, #292631);
  --profile-accent: #ffe1a0;
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #7d653d;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-inferno {
  background: linear-gradient(145deg, #3f301a, var(--website-surface-38-35-29-1, #26231d));
}
.profile-style-inferno .profile-banner {
  background: linear-gradient(120deg, #8e5027, #dfaa48, #ffdf9c);
}
.profile-style-solar,
.profile-style-solar [data-theme] {
  --profile-bg: var(--website-surface-41-38-49-1, #292631);
  --profile-accent: #f2d8ff;
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #75627e;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-solar {
  background: linear-gradient(145deg, #34283e, #242335);
}
.profile-style-solar .profile-banner {
  background: linear-gradient(120deg, #7162a6, #c09dbd, #e8d7a3);
}
.profile-style-frost,
.profile-style-frost [data-theme] {
  --profile-bg: #1d303b;
  --profile-accent: #c2ecff;
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #466c80;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-frost {
  background: #1d303b;
}
.profile-style-frost .profile-banner {
  background: #6498b1;
}
.profile-style-aurora,
.profile-style-aurora [data-theme] {
  --profile-bg: var(--website-surface-41-38-49-1, #292631);
  --profile-accent: var(--website-accent-200-255-231-1, #c8ffe7);
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #537c77;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-aurora {
  background: linear-gradient(145deg, #183a34, #30253e);
}
.profile-style-aurora .profile-banner {
  background: linear-gradient(120deg, #72c7af, #83a6d9, #b98bc9);
}
.profile-style-obsidian,
.profile-style-obsidian [data-theme] {
  --profile-bg: #282335;
  --profile-accent: #dfccff;
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #625477;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-obsidian {
  background: #282335;
}
.profile-style-obsidian .profile-banner {
  background: #6c5a86;
}
.profile-style-jade,
.profile-style-jade [data-theme] {
  --profile-bg: #203b30;
  --profile-accent: var(--website-accent-209-245-196-1, #d1f5c4);
  --profile-muted: var(--website-ink-200-198-200-1, #c8c6c8);
  --profile-line: #4e775b;
  --profile-panel: var(--website-surface-25-29-35-1, #191d23);
}
.profile-card.profile-style-jade {
  background: #203b30;
}
.profile-style-jade .profile-banner {
  background: #6da77f;
}
.profile-style-swatch > span {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 1px solid var(--website-line-255-255-255-0_3333333333333333, #ffffff55);
  border-radius: 16px;
  font: 600 27px var(--display);
}
.studio-item:disabled {
  opacity: 0.52;
  cursor: not-allowed;
}
.studio-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.studio-tabs > button {
  flex: 1 1 auto;
  padding: 10px 12px;
}
.studio-items.studio-coins {
  display: block;
}
.studio-coin-kit {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--website-surface-25-32-22-1, #192016);
}
.studio-coin-kit > .shop-cosmetic-stage {
  height: 330px;
  min-height: 0;
}
.studio-coin-kit h3 {
  font: 500 18px var(--display);
  margin: 16px 0 12px;
}
.studio-coin-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.studio-coin-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 108px;
  padding: 10px 6px;
  background: var(--website-surface-35-43-29-1, #232b1d);
  border: 1px solid var(--website-line-74-85-60-1, #4a553c);
  border-radius: 10px;
  color: var(--website-ink-231-237-220-1, #e7eddc);
}
.studio-coin-options button[aria-pressed='true'] {
  border-color: var(--lime);
  background: var(--website-surface-48-64-38-1, #304026);
}
.studio-coin-options b {
  font-size: 32px;
  line-height: 50px;
}
.studio-coin-options img {
  width: 100%;
  height: 88px;
  object-fit: contain;
}
.studio-coin-options strong {
  font-size: 12px;
}
.studio-coin-options small {
  font-size: 10px;
  color: var(--website-ink-179-191-159-1, #b3bf9f);
  margin-top: 6px;
}
.reward-style-mini {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid;
  border-radius: 10px;
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .studio-tabs > button {
    font-size: 12px;
    min-height: 44px;
    flex-basis: 40%;
  }
  .studio-coin-kit {
    padding: 10px;
  }
  .studio-coin-kit > .shop-cosmetic-stage {
    height: 290px;
  }
  .studio-coin-options {
    gap: 6px;
  }
  .studio-coin-options img {
    height: 76px;
  }
  .studio-coin-options strong {
    font-size: 11px;
  }
  .studio-coin-options small {
    font-size: 9px;
  }
}

/* Compact profile summary, with an inline badge collection. */
.studio-dialog #studio-preview .profile-avatar-row {
  min-height: 0 !important;
}
.studio-dialog #studio-preview .profile-showcase-coin {
  margin: 0 !important;
}
.studio-dialog #studio-preview .profile-card-content > h2 {
  flex-shrink: 0;
}
.studio-dialog #studio-preview .profile-card-stats span {
  font-size: 8px;
  letter-spacing: 0.25px;
}
.profile-badge-collection {
  margin: 12px 0;
  color: var(--profile-accent);
}
.profile-badge-collection > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 8px;
  letter-spacing: 1px;
}
.profile-badge-collection header small {
  font-size: 9px;
  letter-spacing: 0;
  opacity: 0.75;
  margin-left: 5px;
}
.profile-badge-more {
  font-size: 10px;
  min-width: 32px;
  min-height: 25px;
  padding: 3px 6px;
  border: 1px solid var(--profile-line);
  border-radius: 5px;
  background: var(--profile-panel);
  color: var(--profile-accent);
}
.profile-badge-rows {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.profile-collected-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 26px;
  padding: 4px 5px;
  font-size: 9px;
  line-height: 1.15;
  border: 1px solid var(--profile-line);
  border-radius: 5px;
  background: var(--profile-panel);
  color: var(--profile-accent);
}
.profile-collected-badge > i {
  font-size: 13px;
  font-style: normal;
  flex-shrink: 0;
}
.profile-collected-badge > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.profile-badge-collection > p {
  font-size: 10px;
  color: var(--profile-muted);
  line-height: 1.5;
  margin: 0;
}
.profile-badge-overflow {
  max-height: 94px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  border: 1px solid var(--profile-line);
  border-radius: 7px;
  padding: 6px;
  margin-top: 7px;
  background: var(--profile-panel);
}
.profile-badge-overflow[hidden] {
  display: none !important;
}
.profile-pvp-record strong > b {
  font: inherit;
}
.profile-pvp-record strong > i {
  font-size: 15px;
  font-style: normal;
  opacity: 0.65;
}
@media (min-width: 701px) {
  dialog#modal.studio-dialog[open] {
    display: flex;
    flex-direction: column;
    height: min(860px, calc(100dvh - 28px));
    max-height: calc(100dvh - 28px);
    overflow: hidden;
    padding: 14px 20px 0;
  }
  .studio-dialog > .modal-top {
    flex: 0 0 auto;
    margin: 0 0 8px;
    min-height: 28px;
  }
  .studio-dialog > #modal-content {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .studio-dialog .profile-studio {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
  }
  .studio-dialog .studio-heading {
    margin: 0 0 12px;
    flex: 0 0 auto;
  }
  .studio-dialog .studio-heading h2 {
    font-size: 25px;
    margin: 5px 0 0;
  }
  .studio-dialog .studio-layout {
    flex: 1;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
  .studio-dialog .studio-editor {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    padding-right: 9px;
  }
  .studio-dialog .studio-preview-column {
    height: 100%;
    min-height: 0;
    position: static;
    display: flex;
    flex-direction: column;
    gap: 7px;
  }
  .studio-dialog .studio-preview-column > .eyebrow {
    margin: 0;
    font-size: 8px;
    flex-shrink: 0;
  }
  .studio-dialog #studio-preview {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .studio-dialog #studio-preview > .profile-card {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .studio-dialog .studio-preview-column .profile-banner {
    height: 52px;
    flex: 0 0 auto;
  }
  .studio-dialog .studio-preview-column .profile-card-content {
    padding: 0 13px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    gap: 5px;
  }
  .studio-dialog .studio-preview-column .profile-avatar-row {
    margin: -21px 0 0;
    align-items: center;
    flex: 0 0 auto;
  }
  .studio-dialog .studio-preview-column .profile-avatar-row > .frame-collection.large-frame {
    --collection-size: 102px;
  }
  .studio-dialog .studio-preview-column .profile-avatar-row > .avatar-frame:not(.frame-collection) {
    width: 80px;
    height: 80px;
  }
  .studio-dialog .studio-preview-column .profile-avatar-row .profile-badge {
    font-size: 6px;
    padding: 4px;
    margin: 20px 0 0;
  }
  .studio-dialog .studio-preview-column .profile-card h2 {
    font-size: 20px;
    line-height: 1.25;
    margin: 0;
  }
  .studio-dialog .studio-preview-column .profile-about {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 10px !important;
    line-height: 1.4;
    margin: 0;
    min-height: 0;
    flex: 0 0 auto;
  }
  .studio-dialog .studio-preview-column .profile-card-stats {
    padding-top: 8px;
    margin: 3px 0 0;
    gap: 7px;
    flex: 0 0 auto;
  }
  .studio-dialog .studio-preview-column .profile-card-stats strong {
    font-size: 22px;
  }
  .studio-dialog .studio-preview-column .profile-card-stats span {
    font-size: 6px;
    line-height: 1.35;
    margin-top: 5px;
    letter-spacing: 0.7px;
  }
  .studio-dialog .studio-preview-column .profile-badge-collection {
    margin: 4px 0;
    flex: 0 0 auto;
  }
  .studio-dialog .studio-preview-column .profile-collected-badge {
    font-size: 8px;
    min-height: 23px;
    padding: 3px 4px;
  }
  .studio-dialog .studio-preview-column .profile-badge-collection > header {
    margin-bottom: 4px;
  }
  .studio-dialog .studio-preview-column .profile-badge-more {
    min-height: 21px;
    padding: 2px 5px;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 94px;
    align-items: center;
    gap: 3px;
    flex: 1;
    min-height: 100px;
    max-height: 140px;
    margin: 0;
    padding: 8px 9px;
    overflow: hidden;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase h3 {
    font-size: 17px;
    margin: 5px 0;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase p {
    font-size: 8px;
    line-height: 1.35;
    margin: 0;
    max-width: 110px;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .studio-dialog .studio-preview-column .profile-showcase-coin {
    width: 69px;
    height: 69px;
    justify-self: center;
    translate: 0 5px;
  }
  .studio-dialog .studio-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    gap: 8px;
    flex: 0 0 auto;
  }
  .studio-dialog .studio-account > .eyebrow,
  .studio-dialog .studio-account > p {
    display: none;
  }
  .studio-dialog .studio-account > strong {
    font-size: 10px;
    margin: 0;
    color: var(--muted);
  }
  .studio-dialog .studio-account > button {
    font-size: 10px;
    width: auto;
    min-height: 32px;
    padding: 6px 10px;
  }
  .studio-dialog .studio-save {
    position: static;
    flex: 0 0 auto;
    padding: 10px 0;
    margin-top: 10px;
  }
  .studio-dialog .studio-save button {
    min-height: 38px;
    font-size: 12px;
  }
  .studio-dialog #studio-preview:has(.profile-badge-overflow:not([hidden])) .profile-about {
    display: none;
  }
  .studio-dialog #studio-preview:has(.profile-badge-overflow:not([hidden])) .profile-coin-showcase {
    min-height: 85px;
  }
  .studio-dialog #studio-preview:has(.profile-badge-overflow:not([hidden])) .profile-banner {
    height: 34px;
  }
  .studio-dialog
    #studio-preview:has(.profile-badge-overflow:not([hidden]))
    .profile-avatar-row
    > .frame-collection.large-frame {
    --collection-size: 82px;
  }
}
@media (min-width: 701px) and (max-height: 820px) {
  .studio-dialog .studio-preview-column .profile-banner {
    height: 36px;
  }
  .studio-dialog .studio-preview-column .profile-avatar-row > .frame-collection.large-frame {
    --collection-size: 80px;
  }
  .studio-dialog .studio-preview-column .profile-card-content {
    gap: 3px;
    padding: 0 12px 9px;
  }
  .studio-dialog .studio-preview-column .profile-about {
    -webkit-line-clamp: 1;
  }
  .studio-dialog .studio-preview-column .profile-card h2 {
    font-size: 18px;
  }
  .studio-dialog .studio-preview-column .profile-card-stats strong {
    font-size: 19px;
  }
  .studio-dialog .studio-preview-column .profile-collected-badge {
    min-height: 21px;
    font-size: 7px;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase {
    min-height: 96px;
  }
  .studio-dialog .studio-preview-column .profile-badge-overflow {
    max-height: 72px;
  }
}
@media (max-width: 700px) {
  .studio-dialog .studio-preview-column .profile-card {
    height: auto;
    min-height: 0;
  }
  .studio-dialog .studio-preview-column .profile-card-content {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    padding: 44px 13px 12px;
    gap: 5px;
  }
  .studio-dialog .studio-preview-column .profile-banner {
    height: 44px;
  }
  .studio-dialog .studio-preview-column .profile-avatar-row {
    margin: 0;
    display: flex;
    justify-content: flex-start;
  }
  .studio-dialog .studio-preview-column .profile-avatar-row > .frame-collection.large-frame {
    --collection-size: 76px;
  }
  .studio-dialog .studio-preview-column .profile-card h2 {
    font-size: 19px;
    margin: 0;
  }
  .studio-dialog .studio-preview-column .profile-card h2 .styled-name {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
  }
  .studio-dialog .studio-preview-column .profile-card-stats {
    display: grid;
    padding-top: 8px;
    margin: 0;
    gap: 10px;
  }
  .studio-dialog .studio-preview-column .profile-card-stats strong {
    font-size: 20px;
  }
  .studio-dialog .studio-preview-column .profile-card-stats span {
    font-size: 6px;
    margin-top: 5px;
  }
  .studio-dialog .studio-preview-column .profile-badge-collection {
    margin: 3px 0;
  }
  .studio-dialog .studio-preview-column .profile-collected-badge {
    font-size: 8px;
    min-height: 24px;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase {
    min-height: 100px;
    display: grid !important;
    grid-template-columns: 1fr 95px;
    margin: 0;
    padding: 7px 10px;
    overflow: hidden;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase h3 {
    font-size: 17px;
  }
  .studio-dialog .studio-preview-column .profile-coin-showcase p {
    font-size: 8px;
    margin: 0;
  }
  .studio-dialog .studio-preview-column .profile-showcase-coin {
    width: 65px;
    height: 65px;
    justify-self: center;
    translate: 0 4px;
  }
  .studio-dialog .studio-preview-column .profile-badge-overflow {
    max-height: 82px;
  }
}
@media (max-width: 700px) {
  .studio-dialog .studio-heading {
    margin: 0 0 10px;
    gap: 6px;
  }
  .studio-dialog .studio-heading h2 {
    font-size: 20px;
    margin: 4px 0 0;
  }
  .studio-dialog .studio-access {
    display: none;
  }
  .studio-dialog .studio-preview-column > .eyebrow {
    margin-bottom: 6px;
  }
  .studio-dialog #studio-preview .profile-card-content {
    align-items: stretch;
    padding: 28px 12px 10px;
    gap: 3px;
  }
  .studio-dialog #studio-preview .profile-banner {
    height: 28px;
  }
  .studio-dialog #studio-preview .profile-avatar-row {
    height: 64px;
    margin: -10px 0 2px;
    flex: 0 0 auto;
  }
  .studio-dialog #studio-preview .profile-avatar-row > .frame-collection.large-frame {
    --collection-size: 64px;
  }
  .studio-dialog #studio-preview .profile-card h2 .styled-name {
    justify-content: flex-start;
  }
  .studio-dialog #studio-preview .profile-card-stats {
    padding-top: 6px;
  }
  .studio-dialog #studio-preview .profile-coin-showcase {
    align-items: center;
    min-height: 100px;
    gap: 3px;
  }
  .studio-dialog #studio-preview .profile-coin-showcase .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .studio-dialog #studio-preview .profile-coin-showcase h3 {
    margin: 4px 0;
  }
}

/* Collected badges use the same pill as equipped name badges. */
.profile-badge-rows > .profile-collected-badge {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 25px;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.profile-collected-badge > .name-badge {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  padding: 4px 6px;
  line-height: 1;
}
@media (min-width: 701px) {
  .studio-dialog #studio-preview .profile-coin-showcase {
    flex: 1;
    min-height: 100px;
    max-height: none;
    grid-template-columns: minmax(0, 1fr) 130px;
    container-type: size;
  }
  .studio-dialog #studio-preview .profile-showcase-coin {
    width: clamp(60px, 44cqh, 100px);
    height: clamp(60px, 44cqh, 100px);
    translate: 0 4px;
  }
  .studio-dialog #studio-preview .profile-coin-showcase > div:first-child {
    text-align: left;
  }
  .studio-dialog #studio-preview .profile-collected-badge {
    padding: 0;
    font-size: 9px;
  }
}

/* Mintmark */
.styled-name.plate-vip-mintmark {
  padding: 4px 6px;
  gap: 5px;
  color: #fff2c8;
  background: linear-gradient(111deg, #342817, #4b3618 44%, var(--website-surface-41-39-27-1, #29271b) 77%);
  border: 1px solid #9a753d;
  box-shadow:
    inset 0 1px #ffe4a633,
    inset 0 -2px var(--website-shade-23-21-13-0_8, #17150dcc);
}

/* Golden Meridian */
:is(.social-banner, .profile-banner).banner-vip-meridian {
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 76% 85%, #b37a3a8c, transparent 56%),
    linear-gradient(155deg, #151f20, #29332c 44%, #49331d 78%, #74502a);
}
.banner-vip-meridian::before {
  content: '';
  position: absolute;
  right: 14%;
  bottom: 9%;
  height: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 24%, #fff2b6, #e9bb66 48%, #9a582a 85%);
  box-shadow:
    0 0 22px #ffc67770,
    inset 0 0 0 2px #f9db91;
}
.banner-vip-meridian::after {
  content: '';
  position: absolute;
  right: 2%;
  bottom: 22%;
  width: 79%;
  height: 68%;
  border: 1px solid #ffdf9f66;
  border-radius: 50%;
  transform: rotate(-14deg);
}
.banner-vip-meridian > :is(.banner-orbit, span:first-child) {
  display: none;
}

/* Obsidian Gold */
[data-theme='vip-obsidian'] {
  --profile-bg: var(--website-surface-34-33-27-1, #22211b);
  --profile-panel: var(--website-surface-25-26-23-1, #191a17);
  --profile-accent: #f2d59a;
  --profile-muted: #c9b995;
  --profile-line: #79603b;
}

/* Aurora Gilt */
.effect-vip-aurora .profile-effect-art {
  opacity: 0.82;
  mask-image: linear-gradient(90deg, #000 0%, #0006 33%, #0004 63%, #000 100%);
}
.effect-vip-aurora .profile-effect-art::before,
.effect-vip-aurora .profile-effect-art::after {
  content: '';
  position: absolute;
  inset: -32%;
  background: conic-gradient(
    from 42deg,
    transparent 13%,
    #a9d79428 22%,
    #f9dc7a9c 31%,
    transparent 37%,
    transparent 59%,
    #b875bb54 69%,
    #fdc46a87 78%,
    transparent 83%
  );
  filter: blur(15px);
  animation: vip-aurora-ribbons 11s ease-in-out infinite alternate;
}
.effect-vip-aurora .profile-effect-art::after {
  inset: -58%;
  opacity: 0.58;
  filter: blur(25px);
  animation-direction: alternate-reverse;
  animation-delay: -4s;
}
#restored-ui .studio-effect-swatch.effect-vip-aurora {
  background: linear-gradient(
    145deg,
    var(--website-surface-41-41-37-1, #292925),
    #524128 54%,
    var(--website-surface-37-37-37-1, #252525)
  );
}
#restored-ui .studio-effect-swatch.effect-vip-aurora .profile-effect-art::before {
  filter: blur(6px);
}
@keyframes vip-aurora-ribbons {
  from {
    transform: translate(-7%, -5%) rotate(-17deg) scale(0.91);
  }
  to {
    transform: translate(8%, 5%) rotate(37deg) scale(1.09);
  }
}
@media (prefers-reduced-motion: reduce) {
  .effect-vip-aurora .profile-effect-art::before,
  .effect-vip-aurora .profile-effect-art::after {
    animation: none;
  }
}
.player-reduced-motion .effect-vip-aurora .profile-effect-art::before,
.player-reduced-motion .effect-vip-aurora .profile-effect-art::after {
  animation: none;
}

.name-badge.badge-vip:has(.vip-emblem) {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.vip-emblem {
  position: relative;
  width: 1em;
  height: 1em;
  flex: none;
  transform-style: preserve-3d;
  animation: vip-emblem-flip 4s ease-in-out infinite;
}
.vip-emblem > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
}
.vip-emblem > img:last-child {
  transform: rotateY(180deg);
}
@keyframes vip-emblem-flip {
  0%,
  42.5% {
    transform: rotateY(0);
  }
  50%,
  92.5% {
    transform: rotateY(180deg);
  }
  100% {
    transform: rotateY(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .vip-emblem {
    animation: none;
  }
}
.player-reduced-motion .vip-emblem {
  animation: none;
}
#restored-ui .studio-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
#restored-ui .studio-item-title .badge-vip {
  flex: none;
}

:is(.ps-profile-card, .profile-card, .profile-card-content)[data-theme='vip-obsidian'] {
  background: var(--profile-bg);
  color: var(--profile-accent);
}

/* The profile card and its previews share the same identity and wrapping rules. */
.profile-identity-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
  max-width: 100%;
}
.profile-identity-line > .styled-name {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}
.profile-identity-line .nickname {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-membership-badges,
.profile-achievement-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.profile-achievement-badges {
  max-width: 100%;
  flex-wrap: wrap;
  min-width: 0;
}
.profile-identity-line .name-badge {
  flex: none;
}
.name-badge.profile-coinsmith-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f0e2ff;
  border: 1px solid #b586d5;
  background: #492d5d;
}
.profile-coinsmith-badge img {
  width: 1.2em;
  height: 1.2em;
  object-fit: contain;
}
#restored-ui .studio-membership-group + .studio-gallery {
  margin-top: 16px;
}
#restored-ui .studio-membership-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 128px), 1fr));
  gap: 8px;
}
#restored-ui .studio-membership-buttons > button {
  display: grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid var(--website-line-73-95-61-1, #495f3d);
  border-radius: 8px;
  padding: 5px;
  background: var(--website-surface-27-39-29-1, #1b271d);
}
#restored-ui .studio-membership-buttons > button[aria-pressed='true'] {
  border-color: var(--website-line-166-201-122-1, #a6c97a);
  background: var(--website-surface-38-53-36-1, #263524);
}
#restored-ui .studio-gallery .studio-nameplate-art {
  padding: 10px;
}
#restored-ui .studio-nameplate-art > .styled-name {
  padding: 5px 8px;
  font-size: 15px;
  font-weight: 650;
}
#restored-ui .studio-item-title > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}
body.restored-ui-active .restored-profile-detail > .ranked-profile-card.profile-border-gilded::after {
  inset: 9px 9px 4px;
}
body.restored-ui-active
  #restored-ui
  .restored-profile-detail
  > .ranked-profile-card.profile-border-gilded
  > .profile-card-content {
  padding-inline: max(18px, 4%);
  padding-bottom: 29px;
}

[data-theme='aurora'] {
  --profile-bg: #182f32;
  --profile-panel: #142728;
  --profile-accent: var(--website-accent-168-239-212-1, #a8efd4);
  --profile-muted: var(--website-ink-167-200-192-1, #a7c8c0);
  --profile-line: #387a73;
}
[data-theme='crescent'] {
  --profile-bg: #252939;
  --profile-panel: #1a2232;
  --profile-accent: #e8e1ff;
  --profile-muted: #afb5d2;
  --profile-line: #555b80;
}
/* Crescent Moon uses the same gradient and fine orbit as the profile banners. */
:is(.profile-banner, .social-banner).banner-crescent {
  isolation: isolate;
  background:
    radial-gradient(circle at 60% 29%, #dce6ff9c 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 66%, #c5c3f085 0 1px, transparent 1.5px),
    radial-gradient(ellipse at 76% 72%, #a9a1e15c, transparent 48%),
    linear-gradient(125deg, #1c2a42 0%, #354366 52%, #71628c 100%);
}
:is(.profile-banner, .social-banner).banner-crescent > span:first-child,
:is(.profile-banner, .social-banner).banner-crescent > .banner-orbit {
  display: none;
}
:is(.profile-banner, .social-banner).banner-crescent::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 19%;
  height: 64%;
  max-height: 94px;
  aspect-ratio: 1;
  transform: translateY(-50%) rotate(-10deg);
  border-radius: 50%;
  background: linear-gradient(145deg, #f8eddb 8%, #e4e4ff 54%, #b4b6e7 100%);
  mask-image: radial-gradient(circle at 69% 32%, transparent 0 49%, #000 50%);
  pointer-events: none;
}
:is(.profile-banner, .social-banner).banner-crescent::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 6%;
  right: 8%;
  width: 74%;
  height: 86%;
  transform: rotate(-16deg);
  border: 1px solid #e9e8ff33;
  border-radius: 50%;
  pointer-events: none;
}

/* Keep the VIP border clear of the profile contents and coin panel. */
body.restored-ui-active .restored-profile-detail > .ranked-profile-card.profile-border-gilded::after {
  inset: 9px 9px 4px;
}
body.restored-ui-active
  #restored-ui
  .restored-profile-detail
  > .ranked-profile-card.profile-border-gilded
  > .profile-card-content {
  padding-inline: max(18px, 4%);
  padding-bottom: 29px;
}

:is(.ps-profile-card, .profile-card, .profile-card-content):is([data-theme='aurora'], [data-theme='crescent']) {
  background: var(--profile-bg);
  color: var(--profile-accent);
}
