/* Readable local additions: character editor, cosmetics shop and achievements. */
.smms-native-hidden {
  display: none !important;
}

.app-header nav button[data-smms-view] {
  white-space: nowrap;
}

.support-card a[data-smms-curator="true"] {
  color: #48b222;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}

.ranking-page .ranking-shell {
  margin-top: 135px;
}

.smms-extension-page {
  z-index: 2;
  width: min(1120px, calc(100% - 40px));
  margin: 64px auto 90px;
  position: relative;
  color: #24323e;
}

.smms-page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 30px;
}

.smms-page-heading .eyebrow {
  color: #4a9c28;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 10px;
}

.smms-page-heading h1 {
  letter-spacing: -.055em;
  margin: 6px 0 8px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 520;
  line-height: .95;
}

.smms-page-heading p {
  color: #536a78;
  max-width: 670px;
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
}

.smms-wallet {
  background: #f8fcffdc;
  border: 1px solid #fff;
  border-radius: 22px;
  align-items: baseline;
  gap: 7px;
  min-width: 205px;
  padding: 16px 19px;
  display: flex;
  box-shadow: 0 18px 40px #315b7520;
}

.smms-wallet span {
  color: #4eb928;
  font-size: 24px;
}

.smms-wallet strong {
  font-size: 27px;
}

.smms-wallet small {
  color: #72848f;
  font-size: 9px;
}

.smms-character-layout {
  grid-template-columns: minmax(330px, .8fr) minmax(530px, 1.4fr);
  gap: 24px;
  display: grid;
}

.smms-avatar-card,
.smms-editor-card,
.smms-cosmetics-shop {
  background: #f8fcffad;
  border: 1px solid #fff;
  box-shadow: 0 24px 54px #315b751c;
}

.smms-avatar-card {
  border-radius: 34px;
  flex-direction: column;
  align-items: center;
  min-height: 640px;
  padding: 25px 24px 22px;
  display: flex;
  position: sticky;
  top: 25px;
  overflow: hidden;
}

.smms-avatar-card:before {
  content: "";
  background: radial-gradient(circle,#fff9b4 0,#dcf2ff78 46%,transparent 70%);
  width: 520px;
  height: 520px;
  position: absolute;
  top: 55px;
  left: 50%;
  transform: translateX(-50%);
}

.smms-model-stage {
  z-index: 2;
  cursor: grab;
  touch-action: none;
  user-select: none;
  width: calc(100% + 20px);
  height: 485px;
  margin: 3px -10px -8px;
  position: relative;
}

.smms-model-stage.is-dragging {
  cursor: grabbing;
}

.smms-model-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  inset: 0;
}

.smms-model-loading {
  z-index: 5;
  color: #405762;
  background: radial-gradient(circle,#f8fff4d1,transparent 64%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  display: flex;
  position: absolute;
  inset: 0;
  transition: opacity .25s ease;
}

.smms-model-loading b {
  font-size: 10px;
}

.smms-model-loading small {
  color: #70838d;
  font-size: 8px;
}

.smms-model-loading.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.smms-model-stage.has-error .smms-model-loading {
  opacity: 1;
}

.smms-model-progress {
  background: #cce0e7;
  border-radius: 999px;
  width: 132px;
  height: 5px;
  margin-top: 5px;
  display: block;
  overflow: hidden;
}

.smms-model-progress i {
  background: linear-gradient(90deg,#4eb62a,#a3ea6e);
  border-radius: inherit;
  width: 5%;
  height: 100%;
  display: block;
  transition: width .18s ease;
}

.smms-model-badge,
.smms-model-reset {
  z-index: 6;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: absolute;
}

.smms-model-badge {
  color: #307518;
  background: #efffe7ba;
  border: 1px solid #fff;
  border-radius: 999px;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  font-size: 7px;
  top: 17px;
  left: 4px;
  display: flex;
}

.smms-model-badge i {
  background: #5bc833;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 3px #5bc83329;
}

.smms-model-reset {
  color: #4e6470;
  background: #ffffffa8;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 7px;
  top: 17px;
  right: 4px;
}

.smms-model-reset:hover {
  color: #347c18;
  background: #efffe7;
}

.smms-avatar-label {
  z-index: 3;
  color: #657985;
  background: #ffffffad;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 9px;
  position: relative;
}

.smms-avatar {
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  display: flex;
  position: relative;
}

.smms-avatar .sim-real-avatar {
  aspect-ratio: 1;
  width: 440px;
  max-width: 118%;
  height: auto;
  margin: 45px 0 -4px;
  transform: none;
  overflow: hidden;
}

.smms-character-traits {
  z-index: 4;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  display: flex;
  position: relative;
}

.smms-character-traits span {
  color: #405864;
  background: #fff9;
  border: 1px solid #fff;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 9px;
}

.smms-editor-card {
  border-radius: 34px;
  padding: 30px;
}

.smms-editor-title,
.smms-owned-heading,
.smms-shop-heading {
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  display: flex;
}

.smms-editor-title small,
.smms-shop-heading small {
  color: #7d909b;
  letter-spacing: .13em;
  font-size: 8px;
}

.smms-editor-title h2,
.smms-shop-heading h2 {
  margin: 4px 0 0;
  font-size: 25px;
}

.smms-editor-title > span {
  color: #3c8b1e;
  background: #e8fbdc;
  border-radius: 999px;
  padding: 8px 11px;
  font-size: 8px;
}

.smms-option-group {
  border-top: 1px solid #bdd1dc85;
  margin-top: 23px;
  padding-top: 20px;
}

.smms-option-group h3,
.smms-owned-group h3 {
  margin: 0 0 13px;
  font-size: 13px;
}

.smms-option-grid {
  gap: 9px;
  display: grid;
}

.smms-option-grid-four {
  grid-template-columns: repeat(4, 1fr);
}

.smms-option-grid-five {
  grid-template-columns: repeat(5, 1fr);
}

.smms-option-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.smms-outfit-symbol {
  color: #4fab2a;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
}

.smms-look-option img.smms-hair-emoji,
.smms-look-option img.smms-clothing-emoji {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 4px 5px #203d5024);
}

.smms-model-hair-option {
  min-height: 92px;
}

.smms-model-clothing-option {
  min-height: 92px;
}

.create-sim-layout .sim-builder.smms-onboarding-builder {
  background: none;
  border: 0;
  box-shadow: none;
  min-height: 0;
  padding: 0;
  display: block;
  overflow: visible;
}

.create-sim-layout .sim-builder.smms-onboarding-builder > :not(.smms-onboarding-editor-shell) {
  display: none !important;
}

.smms-onboarding-editor-shell {
  width: 100%;
}

.smms-onboarding-character-layout {
  grid-template-columns: minmax(360px, .82fr) minmax(530px, 1.35fr);
}

.smms-onboarding-editor-shell .smms-avatar-card {
  position: relative;
  top: auto;
  min-height: 690px;
}

.smms-onboarding-editor-shell .smms-model-stage {
  height: 540px;
}

@media (max-width: 900px) {
  .smms-onboarding-character-layout { grid-template-columns: 1fr; }
  .smms-onboarding-editor-shell .smms-avatar-card { min-height: 550px; }
  .smms-onboarding-editor-shell .smms-model-stage { height: 460px; }
}

.smms-model-clothing-option span {
  line-height: 1.25;
  text-align: center;
}

.smms-look-option {
  color: #536a78;
  background: #ffffff85;
  border: 1px solid #fff;
  border-radius: 15px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 76px;
  padding: 8px;
  font-size: 9px;
  display: flex;
  position: relative;
}

.smms-look-option:hover,
.smms-look-option.active {
  color: #357718;
  background: #ebfbe1;
  border-color: #6bcf39;
}

.smms-look-option img {
  object-fit: contain;
  width: 49px;
  height: 42px;
}

.smms-look-option > i {
  color: #fff;
  background: #55bd2b;
  border-radius: 50%;
  place-items: center;
  width: 17px;
  height: 17px;
  font-size: 9px;
  font-style: normal;
  display: grid;
  position: absolute;
  top: 6px;
  right: 6px;
}

.smms-color-dot,
.smms-outfit-swatch {
  border: 3px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  box-shadow: 0 3px 8px #203d5030;
}

.smms-outfit-swatch {
  border-radius: 10px;
  place-items: center;
  font-size: 16px;
  display: grid;
}

.smms-owned-group {
  border-top: 1px solid #bdd1dc85;
  margin-top: 24px;
  padding-top: 20px;
}

.smms-owned-heading button {
  color: #469b23;
  background: transparent;
  border: 0;
  font-size: 9px;
}

.smms-owned-list {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  display: grid;
}

.smms-owned-item {
  text-align: left;
  background: #ffffff82;
  border: 1px solid #fff;
  border-radius: 15px;
  align-items: center;
  gap: 9px;
  padding: 8px;
  display: flex;
}

.smms-owned-item.active {
  background: #edfbe4;
  border-color: #77d64a;
}

.smms-owned-item > i {
  border-radius: 11px;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  font-style: normal;
  display: grid;
}

.smms-owned-item > span {
  min-width: 0;
  display: grid;
}

.smms-owned-item b {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
  overflow: hidden;
}

.smms-owned-item small,
.smms-owned-item em {
  color: #6e838e;
  font-size: 7px;
  font-style: normal;
}

.smms-owned-item em {
  margin-left: auto;
}

.smms-empty-wardrobe {
  color: #647984;
  background: #ffffff6b;
  border: 1px dashed #9eb7c5;
  border-radius: 17px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  display: flex;
}

.smms-empty-wardrobe > span {
  font-size: 25px;
}

.smms-empty-wardrobe b {
  color: #263642;
  font-size: 10px;
}

.smms-empty-wardrobe p {
  margin: 3px 0 0;
  font-size: 8px;
  line-height: 1.4;
}

.smms-cosmetic {
  z-index: 8;
  pointer-events: none;
  display: block;
  position: absolute;
}

.smms-cosmetic-chain-gold {
  border: 3px solid #e3b72d;
  border-top: 0;
  border-radius: 0 0 50% 50%;
  width: 19%;
  height: 12%;
  top: 49%;
  left: 40.5%;
  filter: drop-shadow(0 2px 2px #6d4f17a3);
}

.smms-cosmetic-chain-gold:after {
  content: "◆";
  color: #f2ce3f;
  font-size: 13px;
  position: absolute;
  bottom: -14px;
  left: calc(50% - 6px);
}

.smms-cosmetic-necklace-pearl {
  border: 5px dotted #fffdf2;
  border-top: 0;
  border-radius: 0 0 50% 50%;
  width: 20%;
  height: 11%;
  top: 49%;
  left: 40%;
  filter: drop-shadow(0 2px 2px #3452);
}

.smms-cosmetic-bracelet-gold {
  border: 4px solid #f2c835;
  border-radius: 50%;
  width: 6%;
  height: 3%;
  top: 69%;
  left: 72%;
  transform: rotate(-22deg);
  box-shadow: 0 0 0 1px #9b701f;
}

.smms-cosmetic-glasses-green {
  border: 4px solid #3e9230;
  border-radius: 45%;
  width: 10%;
  height: 6%;
  top: 31%;
  left: 39%;
  box-shadow: 54px 0 0 -4px #a7db9338,54px 0 0 0 #3e9230;
}

.smms-cosmetic-glasses-green:after {
  content: "";
  background: #3e9230;
  width: 45px;
  height: 4px;
  position: absolute;
  top: 9px;
  left: 100%;
}

.smms-cosmetic-earrings-plumbob:before,
.smms-cosmetic-earrings-plumbob:after {
  content: "◆";
  color: #59c936;
  text-shadow: 0 2px 2px #285e1b66;
  font-size: 13px;
  position: absolute;
  top: 38%;
}

.smms-cosmetic-earrings-plumbob {
  inset: 0;
}

.smms-cosmetic-earrings-plumbob:before { left: 36%; }
.smms-cosmetic-earrings-plumbob:after { right: 35%; }

.smms-cosmetic-beret-red {
  background: #b62d3e;
  border-radius: 70% 45% 55% 35%;
  width: 31%;
  height: 11%;
  top: 14%;
  left: 34%;
  transform: rotate(-8deg);
  box-shadow: inset 0 -8px 10px #6e17289c,0 4px 6px #26374742;
}

.smms-cosmetic-beret-red:after {
  content: "";
  background: #912335;
  border-radius: 6px;
  width: 4px;
  height: 15px;
  position: absolute;
  top: -10px;
  left: 59%;
  transform: rotate(18deg);
}

.smms-cosmetics-shop {
  border-radius: 30px;
  margin-top: 34px;
  padding: 30px;
}

.smms-shop-heading {
  align-items: flex-end;
  margin-bottom: 22px;
}

.smms-shop-heading p {
  color: #657985;
  max-width: 650px;
  margin: 7px 0 0;
  font-size: 10px;
}

.smms-shop-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  display: grid;
}

.smms-shop-card {
  background: #ffffff91;
  border: 1px solid #fff;
  border-radius: 20px;
  flex-direction: column;
  min-width: 0;
  padding: 10px;
  display: flex;
}

.smms-shop-card.equipped {
  border-color: #77d64a;
  box-shadow: inset 0 0 0 1px #77d64a;
}

.smms-shop-preview {
  border-radius: 15px;
  place-items: center;
  min-height: 112px;
  display: grid;
  position: relative;
  overflow: hidden;
}

.smms-shop-preview:after {
  content: "";
  background: #ffffff3d;
  border-radius: 50%;
  width: 110px;
  height: 110px;
  position: absolute;
  top: -60px;
  right: -35px;
}

.smms-shop-preview > span {
  z-index: 1;
  font-size: 38px;
  filter: drop-shadow(0 5px 7px #29455435);
}

.smms-shop-preview small {
  color: #fff;
  background: #29455459;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 7px;
  position: absolute;
  bottom: 8px;
  left: 8px;
}

.smms-shop-preview i {
  color: #317719;
  background: #efffe9;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 7px;
  font-style: normal;
  position: absolute;
  top: 8px;
  right: 8px;
}

.smms-shop-copy {
  flex: 1;
  padding: 12px 3px 10px;
}

.smms-shop-copy h3 {
  margin: 0 0 5px;
  font-size: 12px;
}

.smms-shop-copy p {
  color: #657985;
  margin: 0;
  font-size: 8px;
  line-height: 1.45;
}

.smms-shop-card > button {
  color: #fff;
  background: #55b92d;
  border: 0;
  border-radius: 999px;
  min-height: 35px;
  padding: 8px;
  font-size: 8px;
}

.smms-shop-card > button:disabled {
  color: #71828b;
  background: #d5e0e5;
}

@media (max-width: 1180px) {
  .app-header nav { gap: 3px; }
  .app-header nav button { padding-inline: 6px; font-size: 8px; }
  .smms-shop-grid { grid-template-columns: repeat(3, 1fr); }
  .smms-character-layout { grid-template-columns: 340px 1fr; }
}

@media (max-width: 900px) {
  .ranking-page .ranking-shell { margin-top: 150px; }
  .smms-character-layout { grid-template-columns: 1fr; }
  .smms-avatar-card { position: relative; top: 0; min-height: 540px; }
  .smms-model-stage { height: 460px; }
  .smms-avatar .sim-real-avatar { width: 390px; }
  .smms-shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .ranking-page .ranking-shell { margin-top: 126px; }
  .smms-extension-page { width: calc(100% - 18px); margin-top: 26px; margin-bottom: 58px; }
  .smms-page-heading { align-items: stretch; flex-direction: column; gap: 16px; }
  .smms-page-heading h1 { font-size: 46px; }
  .smms-wallet { min-width: 0; width: fit-content; }
  .smms-avatar-card { min-height: 470px; }
  .smms-model-stage { height: 410px; }
  .smms-avatar .sim-real-avatar { width: 340px; }
  .smms-editor-card, .smms-cosmetics-shop { border-radius: 23px; padding: 18px; }
  .smms-option-grid-four { grid-template-columns: repeat(2, 1fr); }
  .smms-option-grid-five { grid-template-columns: repeat(2, 1fr); }
  .smms-option-grid-three { grid-template-columns: repeat(2, 1fr); }
  .smms-shop-heading { align-items: stretch; flex-direction: column; }
  .smms-shop-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .smms-shop-grid, .smms-owned-list { grid-template-columns: 1fr; }
}
