/*
 * Enter any custom CSS here.
 * This file will not be overwritten by theme updates.
*/

/* Slightly more compact rows for the Discord Nitro account variant list. */
.compact-discord-variant-list > button {
  min-height: 50px;
  padding: 0.3rem 0.75rem;
  gap: 0.75rem;
}

.compact-discord-variant-list > button > div:first-child {
  gap: 0;
}

.compact-discord-variant-list > button > div:first-child > p:first-child {
  font-size: 0.875rem;
  line-height: 1.15rem;
}

.compact-discord-variant-list > button > div:first-child > p:last-child {
  font-size: 0.6875rem;
  line-height: 0.9rem;
}

.compact-discord-variant-list > button > div:last-child {
  padding: 0.2rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.15rem;
}


/* Aged-account variant preview area. */
.aged-account-preview {
  min-height: 500px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 16px 24px;
}

.aged-preview-stage {
  width: min(390px, 76%);
  display: grid;
  place-items: start center;
}

.aged-account-preview-image {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  will-change: opacity, transform;
}

/* Smooth cross-fade when changing account years. */
.aged-preview-enter { transition: opacity 320ms ease, transform 320ms ease; }
.aged-preview-enter-start { opacity: 0; transform: translateY(6px) scale(.985); }
.aged-preview-enter-end { opacity: 1; transform: translateY(0) scale(1); }
.aged-preview-leave { transition: opacity 220ms ease, transform 220ms ease; }
.aged-preview-leave-start { opacity: 1; transform: translateY(0) scale(1); }
.aged-preview-leave-end { opacity: 0; transform: translateY(-4px) scale(.99); }

@media (max-width: 1023px) {
  .aged-account-preview { min-height: 0; padding-top: 24px; }
  .aged-preview-stage { width: min(390px, 88%); }
}

/* Polished caption below aged account previews. */
.aged-account-preview { flex-direction: column; align-items: center; }
.aged-preview-caption { width: min(390px, 76%); margin-top: 16px; text-align: center; }
.aged-preview-divider { height: 3px; width: 100%; border-radius: 999px; background: rgba(148, 163, 184, .42); box-shadow: 0 0 8px rgba(99, 102, 241, .10); }
.aged-preview-divider-bottom { margin-top: 14px; }
.aged-preview-title-row { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 13px; color: #f8fafc; }
.aged-preview-title-row strong { font-size: 15px; line-height: 1.1; font-weight: 800; letter-spacing: .075em; }
.aged-preview-title-row b { color: #6d7cff; font-size: 12px; text-shadow: 0 0 7px rgba(109,124,255,.45); }
.aged-preview-title-row span { width: 32px; height: 2px; border-radius: 999px; background: #6475e8; opacity: .8; }
.aged-preview-subtitle { margin-top: 6px; color: rgba(203,213,225,.72); font-size: 12px; line-height: 1.3; }
@media (max-width: 1023px) { .aged-preview-caption { width: min(390px, 88%); } }

/* Stronger account preview caption text */
.aged-preview-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: rgba(226, 232, 240, .86);
  letter-spacing: .01em;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,.55);
}

/* Keep every aged-account preview in the same display area. */
.aged-preview-stage {
  width: min(390px, 76%);
  height: 455px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.aged-account-preview-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}
@media (max-width: 1023px) {
  .aged-preview-stage {
    width: min(390px, 88%);
    height: 455px;
  }
}


/* Discord Badges: three-image preview carousel for the first badge variant. */
.badge-account-preview {
  min-height: 570px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 34px 16px 24px;
}
.badge-preview-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-preview-stage {
  width: min(470px, 96%);
  height: 520px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.badge-account-preview-image {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
  outline: 0;
  box-shadow: none;
  border-radius: 0;
  will-change: opacity, transform;
}
.badge-preview-enter { transition: opacity 300ms ease, transform 300ms ease; }
.badge-preview-enter-start { opacity: 0; transform: translateX(10px) scale(.99); }
.badge-preview-enter-end { opacity: 1; transform: translateX(0) scale(1); }
.badge-preview-leave { transition: opacity 200ms ease, transform 200ms ease; }
.badge-preview-leave-start { opacity: 1; transform: translateX(0) scale(1); }
.badge-preview-leave-end { opacity: 0; transform: translateX(-8px) scale(.99); }
.badge-preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(12,14,18,.82);
  color: rgba(248,250,252,.96);
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}
.badge-preview-arrow:hover {
  background: rgba(99,102,241,.25);
  border-color: rgba(99,102,241,.58);
}
.badge-preview-arrow:active { transform: translateY(-50%) scale(.94); }
.badge-preview-arrow-left { left: 8px; }
.badge-preview-arrow-right { right: 8px; }
.badge-preview-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}
.badge-preview-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.38);
  transition: width 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}
.badge-preview-dots button.is-active {
  width: 22px;
  background: #6d7cff;
  box-shadow: 0 0 8px rgba(109,124,255,.45);
}
.badge-preview-caption {
  width: min(470px, 96%);
  margin-top: 14px;
  text-align: center;
}
@media (max-width: 1023px) {
  .badge-account-preview { min-height: 0; padding-top: 24px; }
  .badge-preview-stage { width: min(440px, 96%); height: 500px; }
  .badge-preview-caption { width: min(440px, 96%); }
}


/* Discord Badges: keep the preview area stable while changing variants.
   This prevents the mobile "pop/jump" and gives the new preview a soft crossfade. */
.badge-variant-preview-stack {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  contain: layout paint;
}
.badge-variant-preview-stack > .badge-account-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  margin: 0;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.badge-variant-enter {
  transition: opacity 280ms cubic-bezier(.22,.61,.36,1),
              transform 280ms cubic-bezier(.22,.61,.36,1);
}
.badge-variant-enter-start {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(.995);
}
.badge-variant-enter-end {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.badge-variant-leave {
  transition: opacity 170ms ease-out,
              transform 170ms ease-out;
  pointer-events: none;
}
.badge-variant-leave-start {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.badge-variant-leave-end {
  opacity: 0;
  transform: translate3d(0, -4px, 0) scale(.998);
}

@media (max-width: 1023px) {
  .badge-variant-preview-stack {
    height: 650px;
  }
  .badge-variant-preview-stack > .badge-account-preview {
    padding-top: 18px;
  }
}

@media (max-width: 520px) {
  .badge-variant-preview-stack {
    height: 620px;
  }
  .badge-preview-stage {
    height: 455px;
  }
  .badge-preview-caption {
    margin-top: 10px;
  }
}

/* Avoid expensive animation work on the full 4K screenshot while the
   variant container itself is fading. Slide animations still work normally. */
.badge-variant-preview-stack .badge-account-preview-image {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
