.shop-art-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}
.shop-art-trigger:focus-visible,
[data-shop-coin-preview]:focus-visible,
[data-shop-coinframe-preview]:focus-visible {
  outline: 2px solid var(--website-line-212-239-172-1, #d4efac);
  outline-offset: -4px;
}
[data-shop-coinframe-preview] {
  cursor: pointer;
}
.coin-frame-stage {
  height: 380px;
}
.coin-frame-stage > .coin-frame-sample {
  translate: 0 var(--coin-frame-center-offset, 20px);
}
.coin-frame-copy > [data-shop-frame-preview] {
  width: 100%;
  min-height: 44px;
  justify-content: center;
  margin-bottom: 10px;
  font-size: 12px;
}
#modal:has(.shop-cosmetic-preview) {
  width: min(760px, calc(100% - 36px));
  max-width: 760px;
  max-height: calc(100dvh - 32px);
}
#modal:has(.shop-profile-preview-dialog) {
  width: min(640px, calc(100% - 36px));
  max-width: 640px;
}
.shop-cosmetic-preview > header h2 {
  font: 500 32px var(--display);
  letter-spacing: -0.8px;
  margin: 10px 0;
}
.shop-cosmetic-preview > header p {
  color: var(--website-ink-180-192-168-1, #b4c0a8);
  font-size: 12px;
  line-height: 1.65;
  margin: 0;
  max-width: 620px;
}
.shop-preview-composition {
  margin-top: 20px;
}
.shop-profile-preview-dialog > h2 {
  text-align: center;
  font: 500 27px var(--display);
  letter-spacing: -0.5px;
  margin: 14px 0 4px;
}
.profile-frame-focus {
  display: grid;
  place-items: center;
  width: min(440px, 100%, 55dvh);
  aspect-ratio: 1;
  margin: 0 auto 14px;
}
.profile-frame-focus > .avatar-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-frame-focus .collection-frame-art > :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: none;
}
.profile-frame-focus > .avatar-frame:not(.frame-collection) {
  width: var(--collection-size);
  height: var(--collection-size);
}
.profile-frame-focus > .avatar-frame:not(.frame-collection) > .avatar {
  width: 54%;
  height: 54%;
  font-size: calc(var(--collection-size) * 0.19);
  border-radius: 50%;
}
.shop-profile-preview-dialog > [data-shop-preview-equip] {
  display: flex;
  justify-content: center;
  width: 220px;
  max-width: 100%;
  min-height: 46px;
  margin: 8px auto 0;
  font-size: 13px;
}
.shop-profile-preview-dialog > [data-shop-preview-equip]:disabled {
  opacity: 0.7;
  cursor: default;
}
.profile-frame-none {
  font-size: 16px;
  color: var(--website-ink-171-188-152-1, #abbc98);
}
.shop-try-coin {
  min-width: 0;
  border: 1px solid var(--website-line-65-76-55-1, #414c37);
  border-radius: 14px;
  background:
    radial-gradient(
      ellipse at 50% 48%,
      var(--website-surface-105-120-78-0_09411764705882353, #69784e18),
      transparent 70%
    ),
    var(--website-surface-25-32-22-1, #192016);
  overflow: hidden;
}
.shop-preview-coin-label {
  text-align: center;
  padding: 19px 12px 0;
}
.shop-preview-coin-label .eyebrow {
  justify-content: center;
}
.shop-preview-coin-label strong {
  display: block;
  font-size: 20px;
  margin: 7px 0;
}
.shop-preview-coin-label small {
  font-size: 11px;
  color: var(--website-ink-171-188-152-1, #abbc98);
}
.shop-cosmetic-stage {
  height: 380px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}
.shop-preview-coin {
  width: 232px;
  height: 232px;
}
.shop-cosmetic-stage[data-has-frame='true'] > .shop-preview-coin {
  translate: 0 var(--coin-frame-center-offset, 24px);
}
.shop-preview-spin-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 8px;
  margin: 0 22px;
}
.shop-preview-spin-controls > button {
  min-width: 0;
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  font-size: 13px;
  justify-content: center;
  transform: none;
}
.shop-preview-spin-controls > button[aria-pressed='true'] {
  border-color: var(--website-line-186-223-140-1, #badf8c);
  color: var(--website-ink-229-250-199-1, #e5fac7);
  background: var(--website-surface-198-238-145-0_06274509803921569, #c6ee9110);
}
.shop-preview-spin-controls > button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.shop-preview-status {
  font-size: 11px;
  color: var(--website-ink-180-192-168-1, #b4c0a8);
  text-align: center;
  margin: 13px 0 17px;
  min-height: 16px;
}
.shop-cosmetic-preview > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--website-line-67-80-54-1, #435036);
  margin-top: 22px;
  padding-top: 18px;
}
.shop-cosmetic-preview > footer p {
  font-size: 11px;
  color: var(--website-ink-170-188-153-1, #aabc99);
  line-height: 1.6;
  margin: 0;
}
.shop-cosmetic-preview > footer > .flip-button {
  width: auto;
  min-width: 200px;
  min-height: 46px;
  margin: 0;
  font-size: 13px;
  justify-content: center;
}
.shop-cosmetic-preview > footer > .flip-button:disabled {
  opacity: 0.7;
  cursor: default;
}
@media (max-width: 700px) {
  .coin-frame-stage {
    height: 350px;
  }
  #modal:has(.shop-cosmetic-preview) {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 24px);
    padding: 18px 14px;
  }
  .shop-cosmetic-preview > header h2 {
    font-size: 27px;
  }
  .shop-profile-preview-dialog .shop-preview-composition {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .shop-try-profile {
    max-width: 360px;
    width: 100%;
    margin: auto;
  }
  .shop-cosmetic-stage {
    height: 345px;
  }
  .shop-preview-coin {
    width: 208px;
    height: 208px;
  }
  .shop-preview-spin-controls {
    margin: 0 14px;
    gap: 6px;
  }
  .shop-preview-spin-controls > button {
    font-size: 12px;
    padding: 8px;
  }
  .shop-cosmetic-preview > footer {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .shop-cosmetic-preview > footer > .flip-button {
    width: 100%;
  }
}
@media (max-width: 700px) and (max-height: 740px) {
  .shop-cosmetic-stage {
    height: 265px;
  }
  .shop-preview-coin {
    width: 180px;
    height: 180px;
  }
  .shop-preview-coin-label {
    padding-top: 13px;
  }
  .shop-cosmetic-preview > header h2 {
    font-size: 24px;
  }
}

/* Fit the complete preview, including its action, inside a phone viewport. */
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  body.restored-ui-active #modal[open]:has(.shop-cosmetic-preview) > .modal-top {
    margin-bottom: 8px;
  }
  body.restored-ui-active #modal .shop-cosmetic-preview > header h2 {
    font-size: 24px;
    margin: 4px 0 6px;
  }
  body.restored-ui-active #modal .shop-cosmetic-preview > header p {
    font-size: 12px;
    line-height: 1.45;
  }
  body.restored-ui-active #modal .shop-preview-composition {
    margin-top: 8px;
  }
  body.restored-ui-active #modal .shop-preview-coin-label {
    padding: 8px 10px 0;
  }
  body.restored-ui-active #modal .shop-preview-coin-label strong {
    font-size: 20px;
    margin: 3px 0;
  }
  body.restored-ui-active #modal .shop-cosmetic-stage {
    height: clamp(100px, calc(var(--review-popup-height, 100dvh) - 500px), 240px);
  }
  body.restored-ui-active #modal .shop-preview-coin {
    width: clamp(66px, calc((var(--review-popup-height, 100dvh) - 500px) * 0.6), 144px);
    height: clamp(66px, calc((var(--review-popup-height, 100dvh) - 500px) * 0.6), 144px);
  }
  body.restored-ui-active #modal .shop-preview-spin-controls {
    margin: 0 10px;
  }
  body.restored-ui-active #modal .shop-preview-coin-label .eyebrow {
    margin: 0;
    font-size: 10px;
    line-height: 14px;
  }
  body.restored-ui-active #modal .shop-preview-coin-label strong {
    line-height: 24px;
  }
  body.restored-ui-active #modal .shop-preview-coin-label small {
    display: block;
    line-height: 14px;
  }
  body.restored-ui-active #modal .shop-preview-status {
    font-size: 11px;
    line-height: 16px;
    margin: 5px 0 7px;
  }
  body.restored-ui-active #modal .shop-cosmetic-preview > footer {
    margin-top: 12px;
    padding-top: 10px;
    gap: 8px;
  }
  body.restored-ui-active #modal .shop-cosmetic-preview > footer p {
    font-size: 10px;
    line-height: 1.4;
  }
}

@media (min-width: 701px) and (max-width: 950px) and (max-height: 500px) {
  body.restored-ui-active #modal:has(.shop-cosmetic-preview) {
    --mobile-dialog-width: 720px;
  }
  body.restored-ui-active #modal .shop-cosmetic-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 12px 18px;
    align-items: start;
  }
  body.restored-ui-active #modal .shop-preview-composition {
    grid-column: 2;
    grid-row: 1 / 3;
    margin: 0;
  }
  body.restored-ui-active #modal .shop-preview-coin-label {
    display: none;
  }
  body.restored-ui-active #modal .shop-cosmetic-stage {
    height: clamp(100px, calc(var(--review-popup-height, 100dvh) - 215px), 180px);
  }
  body.restored-ui-active #modal .shop-preview-coin {
    width: clamp(66px, calc((var(--review-popup-height, 100dvh) - 215px) * 0.6), 108px);
    height: clamp(66px, calc((var(--review-popup-height, 100dvh) - 215px) * 0.6), 108px);
  }
  body.restored-ui-active #modal .shop-cosmetic-preview > footer {
    grid-column: 1;
    margin: 0;
    align-self: end;
    flex-direction: column;
    align-items: stretch;
  }
  body.restored-ui-active #modal .shop-cosmetic-preview > footer > .flip-button {
    width: 100%;
    min-width: 0;
  }
}

.shop-frame-context {
  display: grid;
  min-width: 0;
  gap: 6px;
}
.shop-frame-context > h3 {
  margin: 0;
  color: var(--website-ink-186-199-173-1, #bac7ad);
  font: 600 12px var(--body);
}
.shop-frame-standing {
  padding: 8px 12px;
  border: 1px solid var(--website-line-66-77-56-1, #424d38);
  border-radius: 12px;
  background: var(--website-surface-23-29-22-1, #171d16);
}
.shop-frame-standing .table-name {
  cursor: default;
}
.shop-frame-profile-name > .trophy-standing-name {
  min-width: 0;
  max-width: 100%;
  justify-items: start;
  text-align: left;
}
.shop-frame-profile-name .nickname {
  overflow-wrap: anywhere;
  white-space: normal;
}
.shop-frame-profile-name .trophy-standing-badges {
  max-width: 100%;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.shop-frame-profile {
  container-type: inline-size;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--website-line-66-77-56-1, #424d38);
  border-radius: 14px;
  background: var(--panel, var(--website-surface-29-37-27-1, #1d251b));
}
.shop-frame-profile > .profile-banner {
  height: clamp(82px, 17cqw, 124px);
  position: relative;
  --banner-detail: clamp(12px, 4cqw, 22px);
}
.shop-frame-profile > .profile-banner > span:first-child {
  top: 50%;
  right: clamp(14px, 8%, 32px);
  font-size: clamp(20px, 6cqw, 32px);
  line-height: 1;
  transform: translateY(-50%) rotate(-12deg);
}
.shop-frame-profile .banner-orbit {
  left: auto;
  right: 15%;
  top: 50%;
  width: min(36%, 144px);
  height: 54%;
  transform: translateY(-50%) rotate(-10deg);
}
.shop-frame-profile > .banner-sunset {
  background:
    radial-gradient(circle at 77% 50%, #f5d68d var(--banner-detail), transparent calc(var(--banner-detail) + 1px)),
    linear-gradient(150deg, #6a4e79 0, #b07288 42%, #efa081 80%, #ecd4a1);
}
.shop-frame-profile > .banner-bloom {
  background:
    radial-gradient(circle at 35% 66%, #dfb1c1 var(--banner-detail), transparent calc(var(--banner-detail) + 1px)),
    radial-gradient(circle at 56% 72%, #cba7c0 var(--banner-detail), transparent calc(var(--banner-detail) + 1px)),
    radial-gradient(circle at 74% 34%, #e4c5bb var(--banner-detail), transparent calc(var(--banner-detail) + 1px)),
    linear-gradient(120deg, #94778f, #c5a5af);
}
.shop-frame-profile-body {
  position: relative;
  z-index: 2;
  padding: 0 12px 10px;
  min-width: 0;
}
.shop-frame-profile-avatar {
  --shop-frame-size: clamp(142px, 30cqw, 224px);
  margin-top: calc(-1 * var(--shop-frame-size) * var(--shop-frame-anchor, 0.5));
  margin-bottom: 4px;
}
.shop-frame-profile-avatar > .avatar-frame.frame-collection.large-frame {
  --collection-size: var(--shop-frame-size);
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  .shop-frame-profile > .profile-banner {
    height: clamp(84px, 26cqw, 104px);
  }
  .shop-frame-profile-avatar {
    --shop-frame-size: clamp(110px, 35.2cqw, 154px);
  }
}
.shop-frame-profile-name {
  min-width: 0;
}
.shop-frame-profile-about {
  margin: 6px 0 0;
  color: var(--website-ink-190-201-181-1, #bec9b5);
  font-size: 12px;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-frame-profile-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 22px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--website-line-255-255-255-0_10980392156862745, #ffffff1c);
}
.shop-frame-profile-stats > div {
  display: grid;
  gap: 2px;
}
.shop-frame-profile-stats strong {
  color: var(--website-ink-213-235-153-1, #d5eb99);
  font: 600 16px var(--display);
}
.shop-frame-profile-stats span {
  font-size: 10px;
  color: var(--website-ink-190-201-181-1, #bec9b5);
}
.shop-profile-preview-dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.shop-profile-preview-dialog .shop-frame-standing .table-name {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
}
@media (min-width: 701px) and (max-width: 950px) and (max-height: 500px) {
  body.restored-ui-active #modal .shop-profile-preview-dialog {
    grid-template-columns: minmax(0, 1fr);
  }
}
