.coin.gold :is(.coin-rim-text, .coin-side, .coin-mint) {
  display: none !important;
}
/* Keep equipped coins proportional to the profile card, with room for wings. */
body.restored-ui-active .ranked-profile-card .review-equipped-coin > .review-coin-stage {
  width: min(80%, 272px) !important;
}
@container ranked-profile (max-width:429px) {
  body.restored-ui-active .ranked-profile-card .review-equipped-coin > .review-coin-stage {
    width: min(80%, 190px) !important;
  }
}

/* Profile name badges keep their own border inside the nameplate. */
.ranked-profile-card .styled-name {
  align-items: center;
  gap: 7px;
}
.ranked-profile-card .display-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  max-width: 100%;
}
.ranked-profile-card .display-badges .name-badge {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  line-height: 1.2;
  margin: 0;
  vertical-align: middle;
}
/* Reserve all artwork, then let the renderer fit the face to its aperture. */
body.restored-ui-active
  .review-equipped-coin
  .review-coin-stage[data-framed='true']
  > .profile-showcase-coin {
  width: 100%;
  height: 100%;
}
.mint-surface > :is(.mint-render, .physical-render, .coin-frame-aura),
.mint-surface > .coin-frame-layer,
.coin-frame-equipped::before {
  left: calc(50% + var(--coin-center-x, 0px));
  top: calc(50% + var(--coin-center-y, 0px));
}
/* Match both profile columns while keeping the coin centered inside its card. */
body.restored-ui-active .ranked-profile-card .review-equipped-coin {
  align-self: stretch;
}
body.restored-ui-active .ranked-profile-card .review-equipped-coin > .review-coin-stage {
  margin-block: auto;
}

/* A compact, calm editing surface; color selection stays on the existing
   keyboard-accessible listbox and profile-save path. */
#community-profile-form > header {
  padding-bottom: 4px;
}
#community-profile-form > header > .eyebrow {
  font-size: 9px;
  letter-spacing: 2.2px;
  color: var(--website-ink-168-188-142-1, #a8bc8e);
  margin-bottom: 10px;
}
#community-profile-form > header > h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  font-weight: 550;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 0 0 10px;
}
#community-profile-form > header > p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--website-ink-166-179-154-1, #a6b39a);
  margin: 0;
}
#community-profile-form .studio-fields {
  grid-template-columns: minmax(0, 1fr) 176px;
  gap: 20px 16px;
  padding: 20px;
  border: 1px solid var(--website-line-103-126-73-0_23921568627450981, #677e493d);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--website-surface-24-33-20-1, #182114), var(--website-surface-18-27-17-1, #121b11));
  box-shadow: inset 0 1px var(--website-shade-229-244-201-0_023529411764705882, #e5f4c906);
}
#community-profile-form .studio-fields label {
  gap: 9px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 550;
  letter-spacing: 1.4px;
  color: var(--website-ink-175-190-160-1, #afbea0);
}
#community-profile-form .studio-fields :is(input, textarea) {
  box-sizing: border-box;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--website-line-83-100-66-0_5803921568627451, #53644294);
  border-radius: 10px;
  background: var(--website-surface-34-45-29-1, #222d1d);
  color: var(--website-ink-237-243-228-1, #edf3e4);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  box-shadow: inset 0 1px 3px var(--website-shade-0-0-0-0_13333333333333333, #0002);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}
#community-profile-form .studio-fields input {
  height: 48px;
  min-height: 48px;
}
#community-profile-form .studio-fields textarea {
  min-height: 96px;
  max-height: 200px;
  margin: 4px 0 0;
  resize: vertical;
  line-height: 1.6;
}
#community-profile-form .studio-fields :is(input, textarea):hover {
  border-color: var(--website-line-124-150-89-1, #7c9659);
}
#community-profile-form .studio-fields :is(input, textarea):focus-visible {
  outline: 0;
  border-color: var(--website-line-189-220-135-1, #bddc87);
  background: var(--website-surface-39-52-31-1, #27341f);
  box-shadow: 0 0 0 3px var(--website-shade-191-220-137-0_10196078431372549, #bfdc891a);
}
#community-profile-form .studio-fields label > small {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--website-ink-143-159-129-1, #8f9f81);
  margin: 0;
}
#community-profile-form .studio-count {
  font-size: 10px;
  line-height: 1.4;
  color: var(--website-ink-143-161-126-1, #8fa17e);
  top: 0;
}
#community-profile-form .studio-upload {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
#community-profile-form .studio-upload > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid var(--website-line-110-134-80-0_30196078431372547, #6e86504d);
  border-radius: 10px;
  background: var(--website-surface-41-56-31-1, #29381f);
  color: var(--website-ink-226-237-207-1, #e2edcf);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  transition:
    background 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
#community-profile-form .studio-upload > #remove-profile-avatar {
  background: transparent;
  border-color: var(--website-line-110-134-80-0_2, #6e865033);
  color: var(--website-ink-174-189-160-1, #aebda0);
}
#community-profile-form .studio-upload > button:hover {
  background: var(--website-surface-52-71-42-1, #34472a);
  border-color: var(--website-line-169-199-123-1, #a9c77b);
  box-shadow: 0 3px 12px var(--website-shade-0-0-0-0_13333333333333333, #0002);
}
#community-profile-form .studio-upload > button:focus-visible {
  outline: 2px solid var(--website-line-204-236-160-1, #cceca0);
  outline-offset: 3px;
}
#community-profile-form .studio-upload + .subtle {
  font-size: 11px;
  line-height: 1.6;
  margin: 9px 0 20px;
  color: var(--website-ink-143-159-130-1, #8f9f82);
}
#community-profile-form .studio-color-picker .ranked-select-trigger {
  height: 48px;
  min-height: 48px;
  padding: 0 11px !important;
  gap: 9px;
  border-color: var(--website-line-83-100-66-0_5803921568627451, #53644294) !important;
  border-radius: 10px !important;
  background: var(--website-surface-34-45-29-1, #222d1d) !important;
  box-shadow: inset 0 1px 3px var(--website-shade-0-0-0-0_13333333333333333, #0002);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.5;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    background-color 0.18s;
}
#community-profile-form .studio-color-picker .ranked-select-trigger::after {
  content: none;
}
#community-profile-form .studio-color-picker .ranked-select-trigger:hover {
  border-color: var(--website-line-124-150-89-1, #7c9659) !important;
}
#community-profile-form .studio-color-picker .ranked-select-trigger[aria-expanded='true'] {
  border-color: var(--website-line-189-220-135-1, #bddc87) !important;
  box-shadow: 0 0 0 3px var(--website-shade-191-220-137-0_10196078431372549, #bfdc891a);
}
.studio-color-swatch {
  display: block;
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--avatar-tone);
  box-shadow:
    inset 0 0 0 1px var(--website-shade-255-255-255-0_1568627450980392, #ffffff28),
    0 0 0 3px var(--website-shade-14-24-12-0_4392156862745098, #0e180c70);
}
.studio-color-value {
  flex: 1;
  min-width: 0;
  text-align: left;
}
.studio-color-chevron {
  position: relative;
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--website-surface-210-235-154-0_03529411764705882, #d2eb9a09);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.2s;
}
.studio-color-chevron:before,
.studio-color-chevron:after {
  content: '';
  position: absolute;
  top: 11px;
  width: 6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--website-surface-189-210-159-1, #bdd29f);
}
.studio-color-chevron:before {
  left: 7px;
  transform: rotate(42deg);
}
.studio-color-chevron:after {
  right: 7px;
  transform: rotate(-42deg);
}
.ranked-select-trigger[aria-expanded='true'] .studio-color-chevron {
  transform: rotate(180deg);
  background: var(--website-surface-195-230-139-0_09411764705882353, #c3e68b18);
}
#community-profile-form .studio-color-picker .ranked-select-list {
  top: calc(100% + 8px);
  padding: 6px;
  border: 1px solid var(--website-line-124-150-89-0_40784313725490196, #7c965968);
  border-radius: 12px;
  background: var(--website-surface-32-43-27-1, #202b1b);
  box-shadow:
    0 15px 35px var(--website-shade-0-0-0-0_4, #0006),
    inset 0 1px var(--website-shade-239-255-210-0_0392156862745098, #efffd20a);
  max-height: 244px;
  animation: studio-palette-enter 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}
#community-profile-form .studio-color-picker .ranked-select-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 8px 9px !important;
  border-radius: 7px !important;
  font-size: 12px;
  line-height: 1.4;
}
.studio-color-picker [role='option']:before {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--avatar-tone);
  box-shadow: inset 0 0 0 1px var(--website-shade-255-255-255-0_18823529411764706, #ffffff30);
}
.studio-color-picker [role='option'][aria-selected='true']:after {
  content: '✓';
  margin-left: auto;
  font-size: 12px;
  color: var(--website-ink-214-245-165-1, #d6f5a5);
}
@keyframes studio-palette-enter {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (max-width: 540px) {
  #community-profile-form .studio-fields {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
    gap: 18px;
  }
  #community-profile-form .studio-fields :is(input, textarea),
  #community-profile-form .studio-color-picker .ranked-select-trigger {
    font-size: 16px;
  }
  #community-profile-form .studio-fields textarea {
    min-height: 108px;
  }
  #community-profile-form > header > h2 {
    font-size: 26px;
  }
  #community-profile-form .studio-upload > button {
    flex: 1;
    font-size: 12px;
    padding: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #community-profile-form .studio-color-picker .ranked-select-list {
    animation: none;
  }
  #community-profile-form :is(input, textarea, button, .studio-color-chevron) {
    transition: none !important;
  }
}
body.player-reduced-motion #community-profile-form .studio-color-picker .ranked-select-list,
.player-reduced-motion #community-profile-form .studio-color-picker .ranked-select-list {
  animation: none;
}
body.player-reduced-motion
  #community-profile-form
  :is(input, textarea, button, .studio-color-chevron),
.player-reduced-motion #community-profile-form :is(input, textarea, button, .studio-color-chevron) {
  transition: none !important;
}

/* The editor scrolls independently. Open the full player dialog for the
   complete draft, including badges and trophies, at the leaderboard size. */
#community-profile-form #studio-preview-jump {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid var(--website-line-120-140-80-0_3333333333333333, #788c5055);
  border-radius: 7px;
  background: var(--website-surface-40-51-31-1, #28331f);
  color: var(--website-ink-208-233-168-1, #d0e9a8);
  white-space: nowrap;
}
#community-profile-form #studio-preview-jump:hover {
  border-color: var(--website-line-191-223-134-1, #bfdf86);
}
#community-profile-form[data-mobile-editor] #studio-preview-jump {
  display: none;
}
#shop-profile-preview {
  max-width: 790px;
  margin-inline: auto;
}
/* Fit the complete card in the available space while the editor scrolls. */
#community-profile-form:not([data-mobile-editor]) .studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
  overflow: hidden;
}
#community-profile-form:not([data-mobile-editor]) .studio-editor {
  overflow-y: auto;
}
#community-profile-form:not([data-mobile-editor]) #studio-preview-panel {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  grid-row: auto;
  min-height: 0;
  margin: 0;
  overflow: clip;
}
#studio-preview-panel > .eyebrow {
  margin-bottom: 10px;
  color: var(--website-ink-158-171-146-1, #9eab92);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
}
#studio-preview {
  position: relative;
  flex: 1;
  min-height: 0;
}
.studio-profile-fit {
  position: absolute;
  inset: 0 auto auto 50%;
  /* Keep the popup layout intact before scaling it into the Studio column. */
  width: var(--player-profile-width);
  transform-origin: top center;
  transform: translateX(-50%) scale(var(--studio-profile-scale, 1));
}
/* Open the full preview to browse the full badge and trophy collections. */
.studio-profile-fit .trophy-more {
  display: none;
}

/* Capture two-axis swipes only over the Play coin. */
#view-play .coin-wrap:has(> #coin) {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
#view-play .coin-wrap.coin-grabbed {
  cursor: grabbing;
}
#view-play .coin-wrap:is(.coin-drag-motion, .coin-manual-toss) > .mint-render {
  display: block;
}
#view-play .coin-wrap:is(.coin-drag-motion, .coin-manual-toss) > #coin {
  opacity: 0;
}

#dashboard-sidebar .sidebar-coin-studio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex: none;
  min-height: 48px;
  margin: 12px 0 0;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--website-line-137-159-99-1, #899f63);
  border-radius: 9px;
  background: #263922;
  color: var(--website-ink-229-245-199-1, #e5f5c7);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
#dashboard-sidebar .sidebar-coin-studio:is(:hover, .active) {
  background: var(--website-surface-59-81-45-1, #3b512d);
}
#dashboard-sidebar .sidebar-coin-studio[hidden],
.mobile-coin-studio[hidden],
#community-profile-form [hidden] {
  display: none !important;
}
.sidebar-collapsed #dashboard-sidebar .sidebar-coin-studio span:last-child {
  display: none;
}
#dashboard-sidebar .sidebar-coin-studio:focus-visible {
  outline: 2px solid var(--website-line-213-244-152-1, #d5f498);
  outline-offset: 3px;
}
.restored-surface :is(.main-membership, .player-settings) .ps-plan-options {
  align-items: start;
}
.restored-surface :is(.main-membership, .player-settings) .ps-plan-options .ps-product-vip {
  border-color: var(--website-line-160-185-117-1, #a0b975);
  box-shadow: 0 0 0 1px var(--website-shade-160-185-117-0_2196078431372549, #a0b97538);
}
.restored-surface
  :is(.main-membership, .player-settings)
  .ps-plan-options
  .ps-product-vip
  .primary {
  background: var(--website-surface-201-236-154-1, #c9ec9a) !important;
  color: #182510 !important;
  border-color: var(--website-line-201-236-154-1, #c9ec9a);
}
.restored-surface :is(.main-membership, .player-settings) .ps-plan-options .ps-product-studio {
  padding-top: 88px;
}
.restored-surface .player-settings.dedicated-coin-studio[open] {
  grid-template-columns: minmax(0, 1fr);
}
.player-settings.dedicated-coin-studio :is(.ps-rail, .ps-breadcrumb-root, #ps-sections-toggle) {
  display: none !important;
}
:root {
  --vip-badge-gold: #ffe3a0;
  --vip-frame-gold: #bf9f57;
}
.name-badge.badge-vip {
  color: var(--vip-badge-gold);
  border: 1px solid var(--vip-frame-gold);
  background: #493916;
}
.profile-border-vip {
  border-color: var(--vip-frame-gold) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--vip-badge-gold) 23%, transparent);
}
.gold-halo-art {
  position: absolute;
  inset: 0;
  z-index: 4;
  container-type: inline-size;
  pointer-events: none;
}
.avatar-frame.frame-collection > .gold-halo-art {
  inset: auto;
  left: var(--frame-x);
  top: var(--frame-y);
  width: var(--frame-avatar);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
.gold-halo-art::before,
.gold-halo-art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.gold-halo-art::before {
  outline: clamp(2px, 7cqw, 10px) solid var(--vip-frame-gold);
}
.gold-halo-art::after {
  box-shadow: 0 0 clamp(8px, 19cqw, 24px) clamp(3px, 8cqw, 12px)
    color-mix(in srgb, var(--vip-badge-gold) 52%, transparent);
  opacity: 0.7;
  z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.player-reduced-motion) .gold-halo-art::after {
    animation: gold-halo-glow 4s ease-in-out infinite alternate;
  }
}
@keyframes gold-halo-glow {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 701px) {
  .restored-surface :is(.main-membership, .player-settings) .ps-plan-options {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.restored-surface .player-settings.dedicated-coin-studio .ps-coin-detail {
  display: none;
}
.restored-surface .player-settings.dedicated-coin-studio .ps-custom-art .ps-section-label {
  margin-top: 0;
}

.ps-coin-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
}
.ps-coin-slots button {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 3px;
  min-width: 0;
  padding: 7px 3px;
  background: var(--website-surface-21-34-25-1, #152219);
  color: var(--website-ink-222-240-206-1, #def0ce);
  border: 1px solid var(--website-line-64-89-65-1, #405941);
  border-radius: 8px;
}
.ps-coin-slots button[aria-pressed='true'] {
  border-color: var(--website-line-201-236-154-1, #c9ec9a);
  background: var(--website-surface-46-65-40-1, #2e4128);
}
.ps-coin-slots small {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.ps-slot-thumbnail {
  display: grid;
  place-items: center;
  width: 30px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--website-surface-41-58-41-1, #293a29);
  color: var(--website-ink-201-236-154-1, #c9ec9a);
  font-size: 17px;
}
.ps-slot-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ps-slot-equipped {
  min-height: 1em;
  color: var(--website-ink-201-236-154-1, #c9ec9a);
  font-size: 8px;
}
.ps-coin-name {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  color: var(--website-ink-200-216-193-1, #c8d8c1);
}
.ps-coin-name input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--website-line-82-108-72-1, #526c48);
  border-radius: 7px;
  padding: 6px 9px;
  background: var(--website-surface-15-28-20-1, #0f1c14);
  color: var(--website-ink-237-245-229-1, #edf5e5);
}
.ps-custom-art .ps-save-row {
  flex-wrap: wrap;
}
.ps-custom-art .ps-save-row [role='status'] {
  width: 100%;
  min-height: 1.4em;
}

.custom-coin-fallback > .coin {
  opacity: 0 !important;
}
.custom-coin-fallback > .mint-render {
  display: block;
}

/* Keep coin labels and geometry available before either renderer is ready. */
:is(
    .coin-wrap,
    .duel-coin,
    .collection-coin,
    .coin-frame-sample,
    .podium-coin,
    .profile-showcase-coin
  )
  > .coin {
  opacity: 0 !important;
}
.landing-live-coin > .coin {
  background: center / contain no-repeat url('/media/coin-faces/original-heads.webp');
  border: 0;
  box-shadow: none;
}

.player-settings.dedicated-coin-studio :is(.ps-collection-heading, .ps-finish-grid) {
  display: none;
}
.ps-slot-thumbnail.ps-slot-blank {
  border: 2px solid #789395;
  background: #183034;
  color: var(--website-ink-217-230-223-1, #d9e6df);
  font-size: 12px;
}

.pvp-round-timer.pvp-flip-indicator {
  flex-direction: column;
  gap: 5px;
  color: var(--website-ink-216-246-163-1, #d8f6a3);
  text-align: center;
  font-size: clamp(9px, 1.5vw, 12px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.pvp-flip-mark {
  display: grid;
  place-items: center;
  width: 27px;
  aspect-ratio: 1;
  border: 1px solid var(--website-line-168-196-119-0_5215686274509804, #a8c47785);
  border-radius: 50%;
  background: var(--website-surface-41-53-34-1, #293522);
  font-size: 15px;
  letter-spacing: 0;
}
.pvp-flip-mark {
  position: relative;
  background: linear-gradient(140deg, var(--website-surface-65-86-55-1, #415637), var(--website-surface-32-44-27-1, #202c1b));
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.player-reduced-motion) .pvp-flip-mark {
    animation: pvp-flip-spin 0.7s ease-in-out infinite;
  }
  body:not(.player-reduced-motion) .pvp-flip-indicator::before,
  body:not(.player-reduced-motion) .pvp-flip-indicator::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 27px;
    aspect-ratio: 1;
    border: 1px solid var(--website-line-201-236-154-1, #c9ec9a);
    border-radius: 50%;
    opacity: 0;
    animation: pvp-flip-ripple 0.95s ease-out infinite;
  }
  body:not(.player-reduced-motion) .pvp-flip-indicator::after {
    animation-delay: 0.47s;
  }
}
@keyframes pvp-flip-spin {
  0% {
    transform: perspective(80px) rotateY(0deg) translateY(0);
  }
  50% {
    transform: perspective(80px) rotateY(180deg) translateY(-5px);
  }
  100% {
    transform: perspective(80px) rotateY(360deg) translateY(0);
  }
}
@keyframes pvp-flip-ripple {
  0% {
    transform: translateX(-50%) scale(0.8);
    opacity: 0.65;
  }
  100% {
    transform: translateX(-50%) scale(1.6);
    opacity: 0;
  }
}

.avatar-photo {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  border-radius: 50%;
}
.avatar-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-photo-cropped img,
.avatar-crop-viewport img {
  position: absolute;
  max-width: none;
  max-height: none;
  object-fit: fill;
}
.avatar-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(120px, 100%), 1fr));
  gap: 8px;
}
.avatar-library-grid .studio-item {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 12px 8px;
}
.avatar-library-preview {
  position: relative;
  width: min(70px, 100%);
  aspect-ratio: 1;
}
.avatar-library-grid .studio-item-info {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.avatar-crop-dialog {
  width: min(440px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(16px, 4vw, 24px);
  border: 1px solid var(--website-line-83-100-66-1, #536442);
  border-radius: 15px;
  background: var(--website-surface-28-37-24-1, #1c2518);
  color: var(--website-ink-237-243-227-1, #edf3e3);
}
.avatar-crop-dialog::backdrop {
  background: var(--website-surface-8-13-8-0_788235294117647, #080d08c9);
}
.avatar-crop-dialog form {
  display: grid;
  gap: 12px;
}
.avatar-crop-dialog h2 {
  margin: 0;
  font: 600 22px var(--display);
}
.avatar-crop-dialog p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--website-ink-195-207-183-1, #c3cfb7);
}
.avatar-crop-viewport {
  position: relative;
  isolation: isolate;
  justify-self: center;
  width: min(100%, 300px, 46dvh);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--website-surface-19-26-17-1, #131a11);
  cursor: grab;
  touch-action: none;
}
.avatar-crop-viewport:active {
  cursor: grabbing;
}
.avatar-crop-viewport img {
  pointer-events: none;
  user-select: none;
}
.avatar-crop-viewport::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--website-line-225-237-216-1, #e1edd8);
  border-radius: 50%;
  box-shadow: 0 0 0 160px var(--website-shade-16-22-14-0_788235294117647, #10160ec9);
  pointer-events: none;
}
.avatar-crop-dialog :focus-visible {
  outline: 2px solid var(--website-line-213-244-152-1, #d5f498);
  outline-offset: 3px;
}
.avatar-crop-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 4ch;
  align-items: center;
  gap: 10px;
}
.avatar-crop-zoom input {
  min-width: 0;
  accent-color: #c9ec9a;
}
.avatar-crop-zoom output {
  text-align: end;
  font-variant-numeric: tabular-nums;
}
.avatar-crop-status:empty {
  display: none;
}
.avatar-crop-dialog footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.avatar-crop-dialog footer button {
  min-height: 42px;
  padding: 8px 13px;
}
.avatar-crop-dialog button[type='submit'] {
  border: 1px solid var(--website-line-213-239-166-1, #d5efa6);
  border-radius: 6px;
  background: var(--website-surface-201-236-154-1, #c9ec9a);
  color: #182510;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.avatar-crop-dialog button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.player-settings.dedicated-coin-studio .ps-studio-workbench {
  align-items: start;
}
.dedicated-coin-studio .ps-appearance-panel,
.dedicated-coin-studio .ps-slot-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}
.dedicated-coin-studio .ps-particle-drawer {
  min-width: 0;
  grid-column: 1/-1;
  border-top: 1px solid var(--website-line-64-84-64-1, #405440);
  padding-top: 12px;
}
.dedicated-coin-studio .ps-particle-drawer summary {
  cursor: pointer;
  font-weight: 650;
  padding: 8px 0;
}
.dedicated-coin-studio .ps-particle-drawer .ps-particle-editor {
  margin: 6px 0 0;
}
.dedicated-coin-studio .ps-particle-drawer legend {
  position: absolute;
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (min-width: 761px) {
  .restored-surface .player-settings.dedicated-coin-studio .ps-studio-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr auto;
    gap: 16px 24px;
  }
  .player-settings.dedicated-coin-studio .ps-custom-art:not([hidden]) {
    display: contents;
  }
  .dedicated-coin-studio .ps-stage {
    grid-area: 1/1;
  }
  .dedicated-coin-studio .ps-slot-panel {
    grid-area: 2/1;
  }
  .dedicated-coin-studio .ps-appearance-panel {
    grid-area: 1/2/3/3;
  }
  .player-settings.dedicated-coin-studio .ps-upload-grid .ps-upload {
    height: clamp(96px, 13vh, 145px);
    min-height: 0;
    aspect-ratio: auto;
  }
  .dedicated-coin-studio .ps-particle-editor .ps-particle-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 761px) {
  .player-settings.dedicated-coin-studio .ps-appearance-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 9px 12px;
  }
  .dedicated-coin-studio .ps-appearance-panel > :not(.ps-input) {
    grid-column: 1/-1;
  }
  .player-settings.dedicated-coin-studio
    .ps-appearance-panel
    > :is(.ps-input, .ps-inline-note, .ps-save-row, .ps-upload-intro, .ps-upload-grid) {
    margin: 0;
  }
  .dedicated-coin-studio .ps-appearance-panel > #ps-preview-flip {
    grid-column: auto;
    justify-self: start;
  }
  .dedicated-coin-studio .ps-appearance-panel > .ps-inline-note:empty {
    display: none;
  }
}

.dedicated-coin-studio .ps-appearance-panel > .ps-face-fields:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: end;
}
.ps-face-fields > :not(.ps-input) {
  grid-column: 1/-1;
}
.ps-fx-tabs {
  display: flex;
  gap: 6px;
}
.ps-fx-tabs button[aria-pressed='true'] {
  background: var(--website-surface-207-233-168-1, #cfe9a8);
  color: var(--website-ink-25-35-18-1, #192312);
}
.ps-layer-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.ps-layer-fields label {
  display: grid;
  gap: 4px;
}
.ps-layer-fields select,
.ps-layer-fields input {
  width: 100%;
  min-height: 36px;
}
.ps-appearance-panel #ps-fx-fields .ps-particle-controls {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ps-appearance-panel #ps-fx-fields fieldset {
  margin: 0;
  padding: 12px;
}
.studio-particles-layer img[hidden] {
  display: none !important;
}

/* The coin art and account form share one responsive dialog. */
dialog.ranked-account-dialog {
  width: min(810px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--website-line-65-76-56-1, #414c38);
  border-radius: 20px;
  background: var(--website-surface-26-33-23-1, #1a2117);
  box-shadow: 0 32px 100px var(--website-shade-0-0-0-0_7333333333333333, #000b);
  color: var(--website-ink-241-245-233-1, #f1f5e9);
}
.ranked-account-dialog::backdrop {
  background: var(--website-surface-9-12-8-0_7098039215686275, #090c08b5);
  backdrop-filter: blur(9px);
}
dialog.ranked-account-dialog[open][data-exiting] {
  animation: ranked-auth-exit 260ms cubic-bezier(0.3, 0, 0.55, 1) both;
}
dialog.ranked-account-dialog[open][data-exiting]::backdrop {
  animation: ranked-auth-backdrop-exit 260ms ease-out both;
}
@keyframes ranked-auth-exit {
  from {
    opacity: var(--ranked-auth-exit-opacity);
    translate: var(--ranked-auth-exit-translate);
    scale: 1;
  }
  to {
    opacity: 0;
    translate: 0 14px;
    scale: 0.96;
  }
}
@keyframes ranked-auth-backdrop-exit {
  to {
    opacity: 0;
    backdrop-filter: blur(0);
  }
}
.ranked-auth-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1fr);
}
.ranked-account-dialog .ranked-auth-body #account-close {
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  background: var(--website-surface-32-40-25-1, #202819);
}
.ranked-auth-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 485px;
  overflow: hidden;
  isolation: isolate;
  border-inline-end: 1px solid #d2c18a24;
  background:
    radial-gradient(ellipse 78% 70% at 48% 51%, #766535 0, #433f26 46%, transparent 77%),
    linear-gradient(150deg, #29291b, #181c13 68%);
}
.ranked-auth-brand {
  position: absolute;
  top: 26px;
  left: 26px;
  width: 66px;
  height: auto;
}
.ranked-auth-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: min(80%, 276px);
  aspect-ratio: 1;
  border: 1px solid #e6bf6870;
  border-radius: 50%;
  box-shadow:
    0 0 0 18px #ffe5ac08,
    0 0 0 19px #e6bf682c;
}
.ranked-auth-orbit::before {
  position: absolute;
  inset: min(7px, 3%);
  border: 1px dashed #ebc36b64;
  border-radius: inherit;
  content: '';
}
.ranked-auth-orbit::after {
  position: absolute;
  inset: -33px;
  border: 1px solid #d9b77435;
  border-radius: 50%;
  content: '';
}
.ranked-auth-coin {
  display: block;
  width: 95%;
  filter: drop-shadow(0 13px 18px #0a0908a8) drop-shadow(0 0 36px #d8a65136);
}
.ranked-auth-coin img {
  display: block;
  width: 100%;
  height: auto;
}
.ranked-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 57px clamp(24px, 4vw, 42px) 30px;
}
.ranked-account-dialog .ranked-auth-header h2 {
  margin: 0;
  color: var(--website-ink-241-245-233-1, #f1f5e9);
  font:
    650 clamp(30px, 4vw, 42px) / 1.05 'Space Grotesk',
    system-ui,
    sans-serif;
  letter-spacing: -0.045em;
  text-align: left;
}
.ranked-account-dialog .ranked-auth-header .ranked-auth-help {
  margin: 11px 0 24px;
  color: var(--website-ink-189-201-180-1, #bdc9b4);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
#ranked-account-dialog .ranked-auth-google {
  height: 48px;
  border-color: #f0d595;
  background: #ebcd89;
  color: #292211;
  font-size: 15px;
  font-weight: 600;
}
#ranked-account-dialog .ranked-auth-google:hover {
  background: #f3dba4;
}
.ranked-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 19px 0;
  color: var(--website-ink-172-185-162-1, #acb9a2);
  font-size: 13px;
}
.ranked-auth-divider::before,
.ranked-auth-divider::after {
  flex: 1;
  height: 1px;
  background: var(--website-surface-70-83-62-1, #46533e);
  content: '';
}
.ranked-account-dialog .account-submit {
  min-height: 46px;
  font-size: 15px;
  font-weight: 650;
}
#ranked-account-dialog .ranked-auth-agreement {
  margin: 2px 0;
  color: var(--website-ink-185-197-174-1, #b9c5ae);
  font-size: 12px;
  line-height: 1.5;
}
#ranked-account-dialog .account-switch {
  margin: 16px 0 0;
  color: var(--website-ink-185-197-174-1, #b9c5ae);
  font-size: 13px;
}
#ranked-account-dialog #account-forgot {
  color: var(--website-ink-184-199-170-1, #b8c7aa);
  font-size: 13px;
  font-weight: 500;
}
#ranked-account-dialog #account-switch,
#ranked-account-dialog #account-forgot:hover,
#ranked-account-dialog .ranked-auth-agreement a {
  color: var(--website-ink-211-238-172-1, #d3eeac);
  text-decoration: underline;
  text-underline-offset: 3px;
}
#ranked-account-dialog #account-switch {
  font-size: 13px;
}
#ranked-account-dialog .ranked-auth-agreement a {
  white-space: nowrap;
}
#ranked-account-dialog .ranked-auth-agreement a:focus-visible {
  outline: 2px solid var(--website-line-216-249-155-1, #d8f99b);
  outline-offset: 3px;
}
.ranked-account-dialog form label {
  font-size: 14px;
}
.ranked-account-dialog form :is(input, select) {
  width: 100%;
  min-height: 46px;
  padding-inline: 12px;
  border: 1px solid var(--website-line-83-96-71-1, #536047);
  border-radius: 8px;
  background: var(--website-surface-17-23-15-1, #11170f);
  color: var(--website-ink-241-245-233-1, #f1f5e9);
  font: inherit;
  font-size: 16px;
}
#ranked-account-dialog .ranked-auth-form {
  --auth-control-height: 38px;
  gap: 10px;
}
#ranked-account-dialog .ranked-auth-signup :is(label, .ranked-auth-agreement) {
  -webkit-user-select: none;
  user-select: none;
}
#ranked-account-dialog .ranked-auth-signup input {
  -webkit-user-select: text;
  user-select: text;
}
#ranked-account-dialog .ranked-auth-form :is(label, .account-field) {
  gap: 4px;
  color: var(--website-ink-217-227-210-1, #d9e3d2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
#ranked-account-dialog .ranked-auth-form input {
  height: var(--auth-control-height);
  min-height: 0;
  padding-inline: 10px;
  border-color: var(--website-line-93-106-83-1, #5d6a53);
  border-radius: 6px;
  background: var(--website-surface-34-42-31-1, #222a1f);
  font-size: 14px;
  font-weight: 450;
}
#ranked-account-dialog .ranked-auth-form input::placeholder {
  color: var(--website-ink-155-166-144-1, #9ba690);
}
#ranked-account-dialog .ranked-auth-form input:hover {
  border-color: var(--website-line-123-137-110-1, #7b896e);
}
#ranked-account-dialog .ranked-auth-form input:focus {
  border-color: var(--website-line-180-206-147-1, #b4ce93);
}
#ranked-account-dialog .ranked-auth-form input:focus-visible {
  outline-offset: 1px;
}
#ranked-account-dialog .ranked-auth-form #account-password {
  padding-inline-end: 46px;
}
#ranked-account-dialog #account-reveal {
  inset-inline-end: 1px;
  inset-block: 1px;
  display: grid;
  place-items: center;
  width: 40px;
  height: auto;
  padding: 0;
  border-radius: 5px;
  color: var(--website-ink-174-189-159-1, #aebd9f);
}
#ranked-account-dialog #account-reveal:hover {
  background: var(--website-surface-36-48-31-1, #24301f);
  color: var(--website-ink-226-236-217-1, #e2ecd9);
}
#ranked-account-dialog #account-reveal:focus-visible {
  outline-offset: -4px;
}
#ranked-account-dialog #account-reveal svg {
  width: 16px;
  height: 16px;
}
#ranked-account-dialog #account-reveal[aria-pressed='false'] .ranked-auth-eye-slash {
  display: none;
}
#ranked-account-dialog .ranked-auth-form .account-submit {
  height: var(--auth-control-height);
  min-height: 0;
  margin-top: 3px;
  border-radius: 6px;
  background: var(--website-surface-214-239-168-1, #d6efa8);
  color: var(--website-ink-28-39-19-1, #1c2713);
  font-size: 14px;
}
#ranked-account-dialog .ranked-auth-form .account-submit:hover {
  background: var(--website-surface-229-255-185-1, #e5ffb9);
}
#ranked-account-dialog .ranked-auth-form .account-submit:active {
  background: var(--website-surface-196-228-139-1, #c4e48b);
}
@media (max-width: 640px), (pointer: coarse) {
  #ranked-account-dialog .ranked-auth-form {
    --auth-control-height: 44px;
  }
  #ranked-account-dialog .ranked-auth-form input {
    font-size: 16px;
  }
  #ranked-account-dialog #account-reveal {
    width: 44px;
  }
}
.ranked-auth-credentials {
  display: contents;
}
#ranked-account-dialog .ranked-auth-manual .ranked-auth-credentials {
  display: grid;
  border: 1px solid var(--website-line-70-82-62-1, #46523e);
  border-radius: 10px;
  background: var(--website-surface-21-29-19-1, #151d13);
}
#ranked-account-dialog .ranked-auth-manual .ranked-auth-credentials > :is(label, .account-field) {
  position: relative;
  gap: 0;
  padding: 9px 13px 6px;
  color: var(--website-ink-199-211-190-1, #c7d3be);
  font-size: 12px;
}
.ranked-auth-manual .ranked-auth-credentials > :first-child {
  border-radius: 9px 9px 0 0;
}
.ranked-auth-manual .ranked-auth-credentials > :nth-last-child(1 of :not([hidden])) {
  border-radius: 0 0 9px 9px;
}
.ranked-auth-manual .ranked-auth-credentials > :not(:first-child) {
  border-top: 1px solid var(--website-line-56-67-50-1, #384332);
}
.ranked-auth-manual .ranked-auth-credentials > :focus-within {
  background: var(--website-surface-32-42-27-1, #202a1b);
  outline: 1px solid var(--website-line-165-197-135-1, #a5c587);
  z-index: 1;
}
#ranked-account-dialog .ranked-auth-manual .ranked-auth-credentials input {
  height: 28px;
  padding-inline-start: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
}
#ranked-account-dialog .ranked-auth-manual #account-reveal {
  inset-inline-end: -8px;
}
#ranked-account-dialog .ranked-auth-manual #account-forgot,
#ranked-account-dialog .ranked-auth-manual #account-password-help {
  font-size: 11px;
}
#ranked-account-dialog .ranked-auth-manual #account-username-help {
  margin-bottom: 3px;
  color: var(--website-ink-169-182-158-1, #a9b69e);
  font-size: 11px;
}
#ranked-account-dialog .ranked-auth-manual .account-submit {
  border-radius: 8px;
}
@media (pointer: coarse) {
  #ranked-account-dialog .ranked-auth-manual .ranked-auth-credentials input {
    height: 38px;
  }
  #ranked-account-dialog .ranked-auth-manual #account-reveal {
    inset-block: -3px;
  }
}
.ranked-auth-select {
  position: relative;
  display: block;
}
.ranked-account-dialog .ranked-auth-select select {
  appearance: none;
  height: 46px;
  padding-inline: 16px 48px;
  border-color: var(--website-line-75-89-65-1, #4b5941);
  border-radius: 9px;
  font-weight: 500;
  cursor: pointer;
}
.ranked-auth-select::after {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 17px;
  width: 8px;
  height: 8px;
  border-inline-end: 1.5px solid var(--website-line-193-209-176-1, #c1d1b0);
  border-block-end: 1.5px solid var(--website-line-193-209-176-1, #c1d1b0);
  transform: translateY(-67%) rotate(45deg);
  pointer-events: none;
  content: '';
}
.ranked-account-dialog .ranked-auth-select select:hover {
  border-color: var(--website-line-117-135-99-1, #758763);
}
.ranked-account-dialog .ranked-auth-select select:focus-visible {
  outline: 2px solid var(--website-line-199-237-160-1, #c7eda0);
  outline-offset: 2px;
}
@media (forced-colors: active) {
  .ranked-account-dialog .ranked-auth-select select {
    appearance: auto;
    padding-inline-end: 16px;
  }
  .ranked-auth-select::after {
    display: none;
  }
}
.ranked-account-dialog form .ranked-auth-link {
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--website-ink-211-238-172-1, #d3eeac);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ranked-google-account {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px;
  border: 1px solid var(--website-line-75-89-63-1, #4b593f);
  border-radius: 10px;
  background: var(--website-surface-34-43-30-1, #222b1e);
}
.ranked-google-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--website-surface-243-245-239-1, #f3f5ef);
}
.ranked-google-icon svg {
  width: 21px;
  height: 21px;
}
.ranked-google-account strong,
.ranked-google-account small {
  display: block;
}
.ranked-google-account small {
  margin-top: 3px;
  color: var(--website-ink-192-203-184-1, #c0cbb8);
  font-size: 13px;
}
.ranked-auth-views {
  position: relative;
}
.ranked-auth-content.is-leaving {
  position: absolute;
  inset: 0 0 auto;
  pointer-events: none;
}
.ranked-google-transfer {
  position: absolute;
  z-index: 1;
  transform-origin: top left;
  pointer-events: none;
}
.ranked-auth-note {
  margin: 19px 0 0;
  color: var(--website-ink-165-178-158-1, #a5b29e);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  dialog.ranked-account-dialog {
    width: min(420px, calc(100vw - 26px));
    border-radius: 20px;
  }
  .ranked-auth-body {
    grid-template-columns: 1fr;
  }
  .ranked-auth-art {
    min-height: 130px;
    border-inline-end: 0;
    border-block-end: 1px solid #d2c18a24;
  }
  .ranked-auth-brand {
    top: 17px;
    left: 18px;
    width: 50px;
  }
  .ranked-auth-orbit {
    width: 103px;
    margin: 12px;
  }
  .ranked-auth-panel {
    padding: 23px 22px 20px;
  }
  .ranked-auth-divider {
    margin-bottom: 14px;
  }
  .ranked-account-dialog .ranked-auth-header h2 {
    font-size: clamp(28px, 7vw, 35px);
  }
  .ranked-account-dialog .ranked-auth-header .ranked-auth-help {
    margin-bottom: 18px;
  }
}
/* Match the shared mobile dialog positioning with an edge-to-edge art panel. */
body.restored-ui-active #ranked-account-dialog.ranked-account-dialog[open] {
  padding: 0 !important;
  border-color: var(--website-line-65-76-56-1, #414c38) !important;
}
@media (max-height: 530px) and (min-width: 641px) {
  .ranked-auth-art {
    min-height: 0;
  }
}

.player-tour[hidden] {
  display: none !important;
}
.player-tour {
  box-sizing: border-box;
  position: relative;
  margin: 0 0 1rem;
  padding: 0.8rem 1.1rem 1rem;
  border: 1px solid var(--website-line-65-74-64-1, #414a40);
  border-inline-start: 3px solid var(--website-line-137-151-120-1, #899778);
  border-radius: 0.65rem;
  background: var(--website-surface-32-38-32-1, #202620);
  color: var(--website-ink-237-240-233-1, #edf0e9);
  text-align: left;
  scroll-margin: 4.5rem;
}
.player-tour header,
.tour-body,
.tour-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.player-tour header,
.tour-body {
  justify-content: space-between;
}
.player-tour header span {
  color: var(--website-ink-179-190-169-1, #b3bea9);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.045em;
}
.player-tour h2 {
  margin: 0.2rem 0;
  font: inherit;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--website-ink-237-240-233-1, #edf0e9);
  line-height: 1.24;
}
.player-tour p {
  margin: 0;
  color: var(--website-ink-202-209-199-1, #cad1c7);
  font: inherit;
  font-size: 1rem;
  line-height: 1.4;
}
.player-tour button {
  color: var(--website-ink-225-233-218-1, #e1e9da);
  background: var(--website-surface-52-64-52-1, #344034);
  border: 1px solid var(--website-line-86-98-80-1, #566250);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-weight: 600;
  border-radius: 0.5rem;
  cursor: pointer;
  white-space: nowrap;
}
.player-tour header button {
  background: transparent;
  border: 0;
  color: var(--website-ink-190-198-185-1, #bec6b9);
  font-size: 0.85rem;
  padding: 0.35rem;
}
.player-tour button:hover {
  background: var(--website-surface-67-80-66-1, #435042);
}
.player-tour button:focus-visible {
  outline: 2px solid var(--website-line-191-206-168-1, #bfcea8);
  outline-offset: 3px;
}
.tour-cue {
  outline: 2px dashed var(--website-line-158-174-140-1, #9eae8c) !important;
  outline-offset: 3px;
  scroll-margin: 5rem;
}
.tour-mobile-help,
.tour-desktop-help,
.tour-actions:empty {
  display: none;
}
:is(.mobile-header .tour-mobile-help, #help-button[aria-label='How to play']) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
:is(.mobile-header .tour-mobile-help, #help-button[aria-label='How to play']):focus-visible {
  outline: 2px solid var(--lime, var(--website-line-212-249-155-1, #d4f99b));
  outline-offset: 2px;
}
@media (max-width: 760px) {
  .tour-mobile-help {
    display: inline-flex;
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
  }
  .player-tour {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.9rem;
  }
  .tour-body {
    display: block;
  }
  .tour-actions:not(:empty) {
    margin-top: 0.7rem;
    flex-wrap: wrap;
  }
  .player-tour h2 {
    font-size: 1.12rem;
  }
  .player-tour p {
    font-size: 0.94rem;
  }
}

@media (max-width: 760px) {
  .mobile-header .tour-mobile-help {
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    font-weight: 700;
  }
  .game-controls > .player-tour {
    grid-column: 1/-1;
    width: 100%;
    text-align: left;
  }
  .player-tour {
    scroll-margin-top: 4rem;
  }
}
.guide-stage[hidden],
.guide-rim[hidden] {
  display: none !important;
}
.guide-stage {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  isolation: isolate;
}
.guide-veil,
.guide-rim,
.guide-stage .player-tour {
  position: absolute;
  box-sizing: border-box;
}
.guide-veil {
  inset: 0;
  background: var(--website-surface-7-11-9-0_66, rgba(7, 11, 9, 0.66));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: guide-reveal 0.3s ease-out;
}
.guide-rim {
  border: 1px solid var(--website-line-198-214-168-1, #c6d6a8);
  border-radius: 10px;
  box-shadow:
    0 0 0 4px var(--website-shade-184-206-142-0_1411764705882353, #b8ce8e24),
    0 0 28px var(--website-shade-189-217-155-0_1411764705882353, #bdd99b24);
  animation: guide-beacon 2s ease-in-out infinite;
}
.guide-stage .player-tour {
  pointer-events: auto;
  inset: auto;
  width: min(368px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow: auto;
  margin: 0;
  padding: 20px 23px 23px;
  border: 1px solid var(--website-line-84-96-76-1, #54604c);
  border-radius: 18px;
  background: linear-gradient(145deg, var(--website-surface-44-52-42-1, #2c342a), var(--website-surface-26-33-27-1, #1a211b) 68%);
  box-shadow:
    0 24px 75px var(--website-shade-0-0-0-0_5333333333333333, #0008),
    0 1px 0 var(--website-shade-214-231-195-0_10196078431372549, #d6e7c31a) inset;
  color: var(--website-ink-239-243-232-1, #eff3e8);
}
.guide-stage .player-tour header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.guide-stage .player-tour header span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--website-ink-196-208-177-1, #c4d0b1);
}
.guide-stage .player-tour header button {
  font-size: 0.82rem;
  color: var(--website-ink-201-208-193-1, #c9d0c1);
}
.guide-stage .tour-body {
  display: block;
}
.guide-stage h2 {
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 0.55rem;
}
.guide-stage .player-tour p {
  line-height: 1.5;
  color: var(--website-ink-200-207-193-1, #c8cfc1);
}
.guide-stage .tour-actions:not(:empty) {
  margin-top: 17px;
  display: flex;
  flex-wrap: wrap;
}
.guide-stage .tour-actions button {
  background: var(--website-surface-195-213-165-1, #c3d5a5);
  color: var(--website-ink-24-32-22-1, #182016);
  border: 0;
  font-weight: 700;
  padding: 0.7rem 1rem;
}
.guide-stage .tour-actions button:hover {
  background: var(--website-surface-212-227-189-1, #d4e3bd);
}
.guide-progress {
  display: flex;
  gap: 4px;
  margin: 0 0 15px;
}
.guide-progress i {
  height: 3px;
  border-radius: 4px;
  flex: 1;
  background: var(--website-surface-69-77-65-1, #454d41);
}
.guide-progress i.lit {
  background: var(--website-surface-171-195-143-1, #abc38f);
}
.guide-stage[data-step='invite'] .player-tour {
  width: min(440px, calc(100% - 28px));
  text-align: center;
  background: radial-gradient(ellipse at 50% 28%, var(--website-surface-60-66-46-1, #3c422e) 0, transparent 52%), var(--website-surface-27-34-29-1, #1b221d);
}
.guide-stage[data-step='invite'] h2 {
  font-size: clamp(1.8rem, 4vw, 2.25rem);
}
.guide-stage[data-step='invite'] .tour-actions {
  justify-content: center;
}
.guide-medallion {
  position: relative;
  display: grid;
  place-items: center;
  height: 120px;
  margin: 4px auto 17px;
  width: 150px;
  perspective: 550px;
}
.guide-medallion img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 8px 15px #0007);
  animation: guide-coin 4s ease-in-out infinite;
}
.guide-medallion:before,
.guide-medallion i {
  content: '';
  position: absolute;
  width: 116px;
  height: 116px;
  border: 1px solid var(--website-line-202-209-155-0_25098039215686274, #cad19b40);
  border-radius: 50%;
}
.guide-medallion i {
  width: 138px;
  height: 138px;
  border-style: dashed;
  border-color: var(--website-line-196-205-148-0_25098039215686274, #c4cd9440);
  transform: rotateX(55deg) rotate(-25deg);
}
.tour-cue {
  outline: none !important;
}
@keyframes guide-coin {
  0%,
  100% {
    transform: translateY(1px) rotateY(-12deg) rotate(-5deg);
  }
  50% {
    transform: translateY(-5px) rotateY(24deg) rotate(4deg);
  }
}
@keyframes guide-reveal {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes guide-beacon {
  50% {
    box-shadow:
      0 0 0 6px var(--website-shade-184-206-142-0_09411764705882353, #b8ce8e18),
      0 0 25px var(--website-shade-189-217-155-0_2, #bdd99b33);
  }
}
@media (max-width: 760px) {
  .guide-stage .player-tour {
    padding: 13px 16px 16px;
  }
  .guide-stage h2 {
    font-size: 1.35rem;
  }
  .guide-stage .player-tour p {
    font-size: 0.94rem;
  }
  .guide-stage[data-step='invite'] .player-tour {
    padding: 17px 21px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-stage * {
    animation: none !important;
    transition: none !important;
  }
}
.guide-veil {
  pointer-events: auto;
}

#footer-policies {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 700px), (max-width: 950px) and (max-height: 500px) {
  html[data-guest-play] body.play-page .page-footer {
    display: flex;
    justify-content: center;
    padding-bottom: calc(var(--mobile-bottom) + 8px);
  }
  html[data-guest-play] .page-footer > span {
    display: none;
  }
  html[data-guest-play] body.play-page #footer-policies {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 13px;
  }
}

#ranked-account-dialog [hidden],
#ranked-account-dialog .auth-provider-unavailable {
  display: none !important;
}
#ranked-account-dialog .ranked-auth-content {
  min-width: 0;
}
#ranked-account-dialog .ranked-auth-header .ranked-auth-help:empty {
  margin-bottom: 20px;
}

html:not([data-guest-play]) .guest-current-note,
html[data-guest-play] .account-current-note {
  display: none;
}

.guide-stage[data-step='flip'] .guide-veil {
  pointer-events: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.guide-stage[data-step='flip'] .player-tour {
  padding: 10px 14px 12px;
}
.guide-stage[data-step='flip'] .player-tour header {
  margin-bottom: 5px;
}
.guide-stage[data-step='flip'] .guide-progress {
  margin-bottom: 8px;
}
.guide-stage[data-step='flip'] h2 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.guide-stage[data-step='flip'] .player-tour p {
  font-size: 0.86rem;
  line-height: 1.35;
}
.coin-wrap[data-guide-coin-fit] {
  scale: var(--guide-coin-scale);
  transform-origin: 50% var(--guide-coin-pivot);
}

.guide-hit-shield {
  display: none;
  position: absolute;
  inset: 0;
}
.guide-stage:is([data-step='flip'], [data-step='info']) .guide-hit-shield {
  display: block;
  pointer-events: auto;
}
.guide-rim.guide-rim-tight {
  border-radius: 8px;
  box-shadow:
    0 0 0 2px var(--website-shade-184-206-142-0_1411764705882353, #b8ce8e24),
    0 0 12px var(--website-shade-189-217-155-0_1411764705882353, #bdd99b24);
  animation: none;
}

button.plain-help-button {
  border: 0;
  background: transparent;
  box-shadow: none;
}
button.plain-help-button:focus-visible {
  outline: 2px solid var(--lime, var(--website-line-212-249-155-1, #d4f99b));
  outline-offset: 2px;
}
:is(.tour-mobile-help, .tour-desktop-help)[hidden] {
  display: none !important;
}
@media (min-width: 951px), (min-width: 701px) and (min-height: 501px) {
  .top-actions .tour-desktop-help {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--muted);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
  }
  .top-actions .tour-desktop-help:hover {
    color: var(--lime);
  }
}
[data-priority-icon] > svg {
  display: block;
  width: 20px;
  height: 20px;
}
[data-daily-segments] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 48px;
  height: 14px;
  color: var(--lime, var(--website-ink-212-249-155-1, #d4f99b));
  flex: none;
}
[data-daily-segments] > i {
  width: 8px;
  height: 5px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.22;
}
[data-daily-segments] > .filled {
  opacity: 1;
}
[data-daily-segments] > svg {
  width: 16px;
  height: 16px;
}
.guest-rankings-note {
  margin: 10px 0 0;
}
html[data-guest-play] .leader-card .tiny-pill {
  display: none;
}
html[data-guide-ranked] #mode-kicker {
  font-size: 0;
}
html[data-guide-ranked] #mode-kicker::after {
  content: 'RANKED · PRACTICE';
  font-size: 0.72rem;
}
html[data-guide-ranked] :is(#mode-date-caption, #rank-share) {
  visibility: hidden;
}
