:root {
  --sky: #35aefd;
  --sky-dark: #198ce2;
  --pink: #db35c1;
  --green: #29caa1;
  --coral: #f5685d;
  --gold: #ffb300;
  --spark: #e743cf;
  --spark-dark: #b725a7;
  --ink: #13234b;
  --muted: #526a88;
  --mist: #e8f8ff;
  --panel: rgb(255 255 255 / 0.9);
  --shadow: 0 24px 56px rgb(47 115 163 / 0.15);
  --content: min(1640px, calc(100vw - clamp(96px, 9vw, 190px)));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 12%, rgb(255 255 255 / 0.72), transparent 34rem),
    linear-gradient(180deg, #91d8fd 0%, #dff6ff 34%, #f6fffb 74%, #b7e8ff 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-shell {
  overflow: hidden;
  min-height: 100vh;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(210px, 22vw, 330px);
  overflow: hidden;
  background: #91d8fd;
}

.hero-art,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: 1;
  object-fit: cover;
  object-position: center bottom;
}

.hero-art:not([src]),
.hero-art[src=""] {
  display: none;
}

.hero-fallback {
  z-index: 0;
  background:
    radial-gradient(circle at 20% 78%, #7ad76c 0 7rem, transparent 7.2rem),
    radial-gradient(circle at 78% 26%, #ffffff 0 4.4rem, transparent 4.6rem),
    linear-gradient(180deg, #45b9ff, #91d8fd 58%, #8ddf7f);
}

.hero-logo {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: min(720px, 72vw);
  min-height: 118px;
  text-decoration: none;
  filter: drop-shadow(0 24px 28px rgb(13 44 71 / 0.26));
}

.hero-logo img,
.footer-logo img,
.thank-you-card img {
  display: block;
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.hero-logo span,
.footer-logo span {
  display: none;
  font-size: clamp(54px, 9vw, 110px);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
}

.hero-logo img:not([src]) + span,
.hero-logo img[src=""] + span,
.footer-logo img:not([src]) + span,
.footer-logo img[src=""] + span {
  display: block;
}

.hero-server {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  display: inline-grid;
  place-items: center;
  min-width: min(430px, 72vw);
  min-height: 52px;
  padding: 0 34px;
  border: 1px solid rgb(255 255 255 / 0.32);
  border-radius: 14px;
  color: #ffffff;
  background: rgb(0 0 0 / 0.48);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.18), 0 14px 34px rgb(0 0 0 / 0.2);
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 950;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

.store-main {
  width: 100%;
  padding: clamp(18px, 3vw, 42px) 0 clamp(34px, 4vw, 62px);
}

.store-toolbar,
.store-section {
  width: var(--content);
  margin: 0 auto;
}

.store-toolbar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.store-switcher {
  display: flex;
  justify-content: center;
}

.store-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 190px));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgb(255 255 255 / 0.88);
  border-radius: 999px;
  background: rgb(236 247 253 / 0.82);
  box-shadow: 0 16px 34px rgb(47 115 163 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.96);
  backdrop-filter: blur(12px);
}

.store-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  color: #526a88;
  background: transparent;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.store-tab:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.store-tab:focus-visible {
  outline: 4px solid rgb(53 174 253 / 0.22);
  outline-offset: 2px;
}

.store-tab[aria-selected="true"] {
  color: #ffffff;
  background: linear-gradient(180deg, var(--sky), var(--sky-dark));
  box-shadow: 0 11px 24px rgb(29 150 232 / 0.26), inset 0 1px 0 rgb(255 255 255 / 0.2);
}

.store-tab[data-store-tab="sparks"][aria-selected="true"] {
  color: #ffffff;
  background: linear-gradient(180deg, var(--spark), var(--spark-dark));
  box-shadow: 0 11px 24px rgb(183 37 167 / 0.25), inset 0 1px 0 rgb(255 255 255 / 0.25);
}

.cart-button {
  position: absolute;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 13px 0 20px;
  border: 1px solid rgb(255 255 255 / 0.88);
  border-radius: 999px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.88);
  box-shadow: 0 14px 30px rgb(47 115 163 / 0.14), inset 0 1px 0 rgb(255 255 255 / 0.96);
  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cart-button[hidden] {
  display: none;
}

.cart-button:hover,
.cart-button:focus-visible {
  outline: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgb(47 115 163 / 0.2), inset 0 1px 0 rgb(255 255 255 / 0.96);
}

.cart-button svg {
  width: 22px;
  height: 22px;
  color: var(--sky-dark);
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 32px;
  padding: 0 7px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--sky), var(--sky-dark));
  font-size: 13px;
}

.store-section[hidden] {
  display: none;
}

.ranks h1,
.sparks h1 {
  margin: clamp(18px, 3vw, 42px) 0 clamp(34px, 4vw, 54px);
  color: var(--ink);
  font-size: clamp(64px, 10vw, 118px);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.rank-grid {
  --gap: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(252px, 1fr));
  gap: var(--gap);
  align-items: start;
}

.rank-info-card,
.rank-card {
  min-width: 0;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 0.95);
}

.rank-info-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  min-height: 520px;
  padding: 42px 28px;
  background: linear-gradient(180deg, rgb(214 240 255 / 0.74), rgb(236 249 255 / 0.62));
  text-align: center;
  backdrop-filter: blur(12px);
}

.rank-info-card span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--sky), var(--sky-dark));
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.rank-info-card p {
  max-width: 32ch;
  margin: 0;
  color: #26395a;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.52;
}

.rank-card {
  --rank: var(--sky);
  --rank-dark: var(--sky-dark);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-rows: 260px auto 1fr;
  min-height: 520px;
  padding-bottom: 26px;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.rank-card:hover,
.rank-card:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 30px 62px rgb(47 115 163 / 0.22), inset 0 1px 0 rgb(255 255 255 / 0.92);
}

.rank-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 172px;
  background: linear-gradient(180deg, rgb(249 253 255 / 0.92), rgb(236 247 255 / 0.4) 72%, transparent);
  pointer-events: none;
}

.rank-card-pro {
  --rank: var(--sky);
  --rank-dark: var(--sky-dark);
}

.rank-card-elite {
  --rank: var(--green);
  --rank-dark: #159b7b;
}

.rank-card-legend {
  --rank: var(--coral);
  --rank-dark: #cd473d;
}

.rank-card.rank-card-immortal {
  --rank: var(--pink);
  --rank-dark: #bd28a2;
  grid-template-rows: 292px auto 1fr;
  min-height: 552px;
  margin-top: -32px;
  border-color: rgb(255 194 75 / 0.98);
  background: linear-gradient(180deg, var(--gold) 0 166px, #ffffff 166px 100%);
  box-shadow: 0 28px 68px rgb(190 77 177 / 0.22), 0 0 0 2px rgb(255 194 75 / 0.42);
}

.rank-card.rank-card-immortal::before {
  height: 166px;
  background:
    radial-gradient(circle at 50% 20%, rgb(255 255 255 / 0.5), transparent 36%),
    linear-gradient(180deg, rgb(255 255 255 / 0.28), transparent 72%);
}

.rank-card.rank-card-immortal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -65%;
  z-index: 0;
  width: 42%;
  height: 166px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.42), transparent);
  pointer-events: none;
  transform: skewX(-18deg);
  animation: shine 4.6s ease-in-out infinite;
}

@keyframes shine {
  0%,
  54% {
    left: -65%;
  }

  76%,
  100% {
    left: 126%;
  }
}

.best-value {
  position: absolute;
  top: 22px;
  left: 34px;
  right: 34px;
  z-index: 4;
  display: flex;
  justify-content: center;
  color: #7a4a00;
  font-size: 20px;
  font-weight: 950;
  text-transform: uppercase;
}

.sparkles {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 166px;
  pointer-events: none;
}

.sparkles span {
  position: absolute;
  color: #ffffff;
  font-size: var(--s, 20px);
  line-height: 1;
  text-shadow: 0 3px 10px rgb(122 74 0 / 0.22);
  animation: twinkle var(--d, 5s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.sparkles span::before {
  content: "✦";
}

.sparkles span:nth-child(1) { --s: 24px; --d: 4.9s; --delay: -0.7s; top: 18px; left: 22px; }
.sparkles span:nth-child(2) { --s: 15px; --d: 5.7s; --delay: -2.4s; top: 44px; left: 40px; }
.sparkles span:nth-child(3) { --s: 11px; --d: 4.3s; --delay: -1.6s; top: 24px; left: 68px; }
.sparkles span:nth-child(4) { --s: 25px; --d: 5.2s; --delay: -1.1s; top: 16px; right: 22px; }
.sparkles span:nth-child(5) { --s: 14px; --d: 4.6s; --delay: -3s; top: 48px; right: 48px; }
.sparkles span:nth-child(6) { --s: 12px; --d: 6.1s; --delay: -2s; top: 28px; right: 70px; }

@keyframes twinkle {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.58) rotate(-18deg);
  }

  34% {
    opacity: 1;
    transform: translateY(-4px) scale(1.02) rotate(10deg);
  }

  70% {
    opacity: 0.74;
    transform: translateY(-8px) scale(1.18) rotate(32deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(1.34) rotate(52deg);
  }
}

.rank-image-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: end center;
  min-height: 0;
  padding: 32px 24px 20px;
  pointer-events: none;
}

.rank-card.rank-card-immortal .rank-image-wrap {
  padding-top: 54px;
  padding-bottom: 20px;
  transform: none;
}

.rank-image {
  display: block;
  width: min(225px, 78%);
  max-height: 208px;
  object-fit: contain;
  filter:
    drop-shadow(0 30px 24px rgb(33 67 105 / 0.2))
    drop-shadow(0 14px 14px rgb(28 57 92 / 0.14));
}

.rank-card.rank-card-immortal .rank-image {
  max-height: 218px;
}

.rank-image-skeleton {
  align-self: end;
  justify-self: center;
  width: 132px;
  height: 132px;
  margin-bottom: 28px;
  border-radius: 28px;
  background: linear-gradient(90deg, #dff3ff, #ffffff, #dff3ff);
  background-size: 240% 100%;
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 240% 0;
  }
}

.rank-card h2 {
  position: relative;
  z-index: 3;
  margin: 0;
  padding: 0 20px;
  color: var(--ink);
  font-size: clamp(34px, 2.5vw, 44px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.rank-card h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 5px;
  margin: 16px auto 0;
  border-radius: 999px;
  background: var(--rank);
}

.rank-body {
  position: relative;
  z-index: 3;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 18px 28px 0;
}

.rank-price {
  margin: 0;
  color: var(--rank-dark);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.rank-price .price-currency {
  font-size: 0.6em;
  font-weight: 750;
}

.rank-interval {
  justify-self: center;
  min-height: 24px;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--rank-dark);
  background: #eaf8ff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

.rank-tap-hint {
  display: none;
}

.rank-button,
.checkout-button,
.thank-you-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 68px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--rank), var(--rank-dark));
  box-shadow: 0 16px 30px rgb(29 150 232 / 0.24);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.rank-button:hover,
.rank-button:focus,
.checkout-button:hover,
.checkout-button:focus,
.thank-you-card a:hover,
.thank-you-card a:focus {
  outline: none;
  transform: translateY(-1px);
  filter: saturate(1.06);
  box-shadow: 0 20px 36px rgb(29 150 232 / 0.32);
}

.rank-button svg,
.checkout-button svg {
  width: 24px;
  height: 24px;
}

.rank-card-loading .rank-button {
  background: #aac7da;
  box-shadow: none;
  cursor: wait;
}

.sparks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
  align-items: start;
}

.sparks-info-card {
  grid-column: 1 / -1;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 210px;
  padding: clamp(34px, 4vw, 52px);
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 30px;
  background: linear-gradient(135deg, rgb(255 238 251 / 0.82), rgb(245 230 255 / 0.7));
  box-shadow: var(--shadow), inset 0 1px 0 rgb(255 255 255 / 0.95);
  text-align: center;
  backdrop-filter: blur(12px);
}

.sparks-info-card > span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 22px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--spark), var(--spark-dark));
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.sparks-info-card p {
  max-width: 76ch;
  margin: 0;
  color: #3c4560;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.52;
}

.spark-card {
  --rank: var(--spark);
  --rank-dark: var(--spark-dark);
  cursor: default;
}

.spark-card::before {
  background:
    radial-gradient(circle at 50% 12%, rgb(255 255 255 / 0.88), transparent 34%),
    linear-gradient(180deg, rgb(255 215 249 / 0.72), rgb(255 240 253 / 0.22) 74%, transparent);
}

.spark-image-wrap {
  place-items: center;
  padding-top: 30px;
  padding-bottom: 12px;
}

.spark-package-image {
  max-height: 210px;
}

.spark-emblem {
  position: relative;
  display: grid;
  place-items: center;
  width: 178px;
  height: 178px;
  border: 5px solid rgb(255 255 255 / 0.76);
  border-radius: 48px;
  color: #ffffff;
  background:
    radial-gradient(circle at 34% 24%, rgb(255 255 255 / 0.76), transparent 18%),
    linear-gradient(145deg, #ff8bea 4%, #e743cf 52%, #ae239f 100%);
  box-shadow:
    0 28px 30px rgb(183 37 167 / 0.2),
    0 12px 18px rgb(33 67 105 / 0.12),
    inset 0 2px 0 rgb(255 255 255 / 0.46);
  transform: rotate(5deg);
}

.spark-emblem-main {
  font-size: 108px;
  line-height: 1;
  text-shadow: 0 8px 16px rgb(99 13 91 / 0.2);
  transform: rotate(-5deg) translateY(-2px);
}

.spark-emblem-small {
  position: absolute;
  color: #ffe3fa;
  line-height: 1;
  text-shadow: 0 4px 10px rgb(99 13 91 / 0.18);
}

.spark-emblem-small-one {
  top: 24px;
  right: 27px;
  font-size: 26px;
}

.spark-emblem-small-two {
  bottom: 27px;
  left: 28px;
  font-size: 18px;
}

.spark-card-title {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.spark-card-title small {
  color: #78176e;
  font-size: 18px;
  font-weight: 950;
  letter-spacing: 0.08em;
  line-height: 1;
}

.spark-amount-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.spark-amount-line del {
  color: #7c8498;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-decoration-color: #7c8498;
  text-decoration-thickness: 3px;
}

.spark-bonus-percent {
  color: #00b85c;
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.spark-card-loading .rank-button {
  background: #c69abb;
  box-shadow: none;
  cursor: wait;
}

.compare-wrap {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.compare-section {
  --accent: var(--sky);
  --accent-dark: var(--sky-dark);
  --section-ink: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 68px;
  margin-top: clamp(38px, 3.9vw, 70px);
  padding: 0 4px 16px;
}

.compare-section:first-child {
  margin-top: clamp(54px, 5vw, 88px);
}

.compare-section::before {
  content: "";
  align-self: center;
  width: 10px;
  height: 54px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 24px rgb(48 113 158 / 0.12);
}

.compare-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 4%;
  bottom: 0;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) 48%, rgb(255 255 255 / 0.82) 82%, transparent 100%);
  opacity: 0.88;
}

.compare-section h2 {
  margin: 0;
  color: var(--section-ink);
  font-size: clamp(36px, 3.2vw, 54px);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-smp { --accent: #3ed486; --accent-dark: #17a85c; --section-ink: #0f4c31; }
.section-minigames { --accent: #39b8ff; --accent-dark: #1897ee; --section-ink: #12376f; }
.section-cosmetics { --accent: #f45fd3; --accent-dark: #c932b6; --section-ink: #72206d; }
.section-social { --accent: #ffc84d; --accent-dark: #f0a315; --section-ink: #674100; }
.section-network { --accent: #7da0c6; --accent-dark: #537497; --section-ink: #243b5f; }

.compare-row,
.bottom-rank-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(252px, 1fr));
  gap: 16px;
}

.compare-cell {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 104px;
  padding: 26px 28px;
  border-radius: 14px;
  color: var(--ink);
  background: rgb(255 255 255 / 0.9);
  box-shadow: 0 14px 30px rgb(48 113 158 / 0.1);
  font-size: 21px;
  font-weight: 950;
  line-height: 1.25;
  text-align: center;
}

.compare-row:nth-child(even) .compare-cell {
  background: rgb(239 249 255 / 0.88);
}

.compare-label {
  place-items: center start;
  color: var(--ink);
  font-size: 20px;
  text-align: left;
}

.compare-value::before {
  display: none;
}

.compare-immortal {
  color: #9b268c;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.9), rgb(255 242 252 / 0.92));
}

.mobile-perks {
  display: none;
}

.mobile-perk-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 18px 18px 0;
}

.mobile-perk-modal[hidden] {
  display: none;
}

.mobile-perk-modal-pro {
  --rank: var(--sky);
  --rank-dark: var(--sky-dark);
  --section-ink: #12376f;
}

.mobile-perk-modal-elite {
  --rank: var(--green);
  --rank-dark: #159b7b;
  --section-ink: #0f4c31;
}

.mobile-perk-modal-legend {
  --rank: var(--coral);
  --rank-dark: #cd473d;
  --section-ink: #713326;
}

.mobile-perk-modal-immortal {
  --rank: var(--pink);
  --rank-dark: #bd28a2;
  --section-ink: #72206d;
}

.mobile-perk-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(11 31 52 / 0.5);
  backdrop-filter: blur(7px);
  opacity: 1;
  transition: opacity 0.24s ease;
}

.mobile-perk-modal.is-closing .mobile-perk-backdrop {
  opacity: 0;
}

.mobile-perk-sheet {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(680px, 100%);
  max-height: min(86vh, 980px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.86);
  border-radius: 30px 30px 0 0;
  background: rgb(255 255 255 / 0.98);
  box-shadow: 0 -18px 58px rgb(22 67 98 / 0.24);
  transform: translateY(0);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.mobile-perk-modal:not([hidden]) .mobile-perk-sheet {
  animation: mobile-sheet-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-perk-modal.is-closing .mobile-perk-sheet {
  animation: none;
}

.mobile-perk-sheet.is-dragging {
  transition: none;
}

@keyframes mobile-sheet-in {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.mobile-perk-handle {
  justify-self: center;
  width: 120px;
  height: 8px;
  margin-top: 16px;
  border-radius: 999px;
  background: #d1d5cf;
}

.mobile-perk-handle,
.mobile-perk-heading {
  touch-action: none;
  cursor: grab;
}

.mobile-perk-sheet.is-dragging .mobile-perk-handle,
.mobile-perk-sheet.is-dragging .mobile-perk-heading {
  cursor: grabbing;
}

.mobile-perk-close {
  position: absolute;
  top: 22px;
  right: 20px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  color: #798177;
  background: transparent;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease;
}

.mobile-perk-close:hover,
.mobile-perk-close:focus {
  outline: none;
  background: rgb(19 35 75 / 0.06);
  transform: scale(1.04);
}

.mobile-perk-close svg {
  width: 34px;
  height: 34px;
}

.mobile-perk-heading {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 78px 22px;
  border-bottom: 1px solid rgb(19 35 75 / 0.08);
  text-align: center;
}

.mobile-perk-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 10vw, 66px);
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.mobile-perk-heading p {
  margin: 0;
  color: #687161;
  font-size: clamp(17px, 4vw, 22px);
  font-weight: 800;
  line-height: 1.25;
}

.mobile-perk-sheet-list {
  display: grid;
  gap: 28px;
  overflow: auto;
  padding: 30px clamp(26px, 6vw, 52px) 34px;
  color: #676c63;
  -webkit-overflow-scrolling: touch;
}

.mobile-sheet-section {
  display: grid;
  gap: 16px;
}

.mobile-sheet-section h3 {
  display: inline-block;
  justify-self: start;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 5px solid var(--accent, var(--rank));
  color: var(--section-ink, var(--ink));
  font-size: 19px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-sheet-section h3::before {
  content: none;
}

.mobile-sheet-section ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-sheet-perk {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  color: #666b61;
  font-size: 21px;
  font-weight: 650;
  line-height: 1.28;
}

.mobile-sheet-bullet {
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 999px;
  background: var(--rank);
  box-shadow: 0 0 0 5px rgb(53 174 253 / 0.1);
}

.mobile-sheet-copy {
  min-width: 0;
}

.mobile-sheet-copy strong {
  color: #5c6158;
  font-weight: 950;
}

.mobile-sheet-copy > span {
  margin-left: 6px;
}

.mobile-sheet-copy .rank-prefix {
  margin-left: 8px;
  font-size: 20px;
  vertical-align: middle;
}

.mobile-perk-footer {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 22px clamp(20px, 5vw, 36px) calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(19 35 75 / 0.1);
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 -12px 34px rgb(23 67 100 / 0.08);
}

.mobile-perk-price {
  display: grid;
  gap: 3px;
}

.mobile-perk-price strong {
  color: var(--ink);
  font-size: clamp(30px, 7vw, 46px);
  font-weight: 950;
  line-height: 1;
}

.mobile-perk-price span {
  color: var(--rank-dark);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-perk-footer .rank-button {
  width: 100%;
  min-height: 72px;
  padding: 0 22px;
  box-shadow: 0 12px 0 rgb(19 35 75 / 0.08), 0 18px 34px rgb(29 150 232 / 0.24);
  font-size: clamp(18px, 4vw, 24px);
}

.check,
.missing {
  display: inline-grid;
  place-items: center;
}

.check {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #ffffff;
  background: linear-gradient(180deg, #52c2ff, #35aefd);
  font-size: 20px;
  font-weight: 950;
  box-shadow: 0 8px 16px rgb(53 183 255 / 0.24);
}

.missing {
  width: 38px;
  height: 38px;
  color: #a9bbcf;
}

.missing svg {
  width: 32px;
  height: 32px;
}

.rank-prefix {
  display: inline-flex;
  font-family: "Minecraftia", Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  paint-order: stroke fill;
  -webkit-text-stroke: 1.35px rgb(19 35 75 / 0.2);
  text-shadow: 0 2px 0 rgb(19 35 75 / 0.18), 0 0 12px rgb(255 255 255 / 0.65);
}

.rank-prefix span {
  display: inline-block;
}

.bottom-rank-actions {
  align-items: end;
  margin-top: clamp(18px, 1.8vw, 30px);
}

.bottom-spacer {
  min-height: 1px;
}

.bottom-action-card {
  --rank: var(--sky);
  --rank-dark: var(--sky-dark);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-content: end;
  gap: 14px;
  min-height: 214px;
  padding: 34px 28px 26px;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 16px 34px rgb(48 113 158 / 0.11), inset 0 1px 0 rgb(255 255 255 / 0.95);
}

.bottom-action-pro {
  --rank: var(--sky);
  --rank-dark: var(--sky-dark);
}

.bottom-action-elite {
  --rank: var(--green);
  --rank-dark: #159b7b;
}

.bottom-action-legend {
  --rank: var(--coral);
  --rank-dark: #cd473d;
}

.bottom-action-immortal {
  --rank: var(--pink);
  --rank-dark: #bd28a2;
  min-height: 230px;
  padding-top: 70px;
  border-color: rgb(255 179 0 / 0.88);
  background: linear-gradient(180deg, var(--gold) 0 52px, #ffffff 52px 100%);
  box-shadow: 0 20px 42px rgb(190 77 177 / 0.14), 0 0 0 1px rgb(255 179 0 / 0.42);
}

.bottom-action-immortal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -65%;
  z-index: 0;
  width: 42%;
  height: 52px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.42), transparent);
  pointer-events: none;
  transform: skewX(-18deg);
  animation: shine 4.6s ease-in-out infinite;
}

.bottom-action-immortal .best-value {
  top: 15px;
  z-index: 4;
  font-size: 16px;
}

.bottom-action-immortal .sparkles {
  z-index: 5;
  height: 52px;
}

.bottom-action-immortal .sparkles span:nth-child(1) { --s: 16px; top: 8px; left: 20px; }
.bottom-action-immortal .sparkles span:nth-child(2) { --s: 10px; top: 25px; left: 36px; }
.bottom-action-immortal .sparkles span:nth-child(3) { --s: 9px; top: 12px; left: 58px; }
.bottom-action-immortal .sparkles span:nth-child(4) { --s: 17px; top: 8px; right: 20px; }
.bottom-action-immortal .sparkles span:nth-child(5) { --s: 10px; top: 25px; right: 38px; }
.bottom-action-immortal .sparkles span:nth-child(6) { --s: 9px; top: 13px; right: 60px; }

.bottom-action-card .rank-price {
  text-align: center;
}

.bottom-action-card .rank-button {
  min-height: 70px;
}

.footer {
  position: relative;
  isolation: isolate;
  min-height: 600px;
  margin-top: clamp(42px, 6vw, 90px);
  padding: clamp(126px, 12vw, 186px) clamp(28px, 4vw, 64px) 0;
  overflow: hidden;
  color: #173254;
  background: #b7e8ff;
  clip-path: ellipse(145% 100% at 50% 100%);
}

.footer-art,
.footer-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.footer-overlay {
  z-index: -1;
  background: linear-gradient(180deg, rgb(189 234 255 / 0.72), rgb(174 224 247 / 0.58));
}

.footer-inner {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(440px, 78vw);
  min-height: 116px;
  margin: 0 auto clamp(38px, 5vw, 70px);
  text-decoration: none;
  filter: drop-shadow(0 16px 28px rgb(31 77 112 / 0.16));
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.9fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: start;
  padding-bottom: clamp(70px, 10vw, 130px);
}

.footer h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.footer p {
  max-width: 60ch;
  margin: 0 0 14px;
  color: #31506f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.65;
}

.footer a {
  font-weight: 850;
  text-decoration: none;
}

.footer .support-email {
  font-weight: 700;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(73 112 143 / 0.82);
  box-shadow: 0 12px 24px rgb(31 77 112 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transition: transform 0.16s ease, background 0.16s ease;
}

.socials a:hover,
.socials a:focus {
  background: var(--sky);
  transform: translateY(-2px);
}

.socials svg {
  width: 31px;
  height: 31px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / 0.52);
}

.legal p {
  max-width: 68ch;
  margin: 0;
  color: #496883;
  font-size: 12px;
  line-height: 1.5;
}

.cart-modal {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  justify-items: end;
}

.cart-modal[hidden],
.cart-empty[hidden],
.cart-items[hidden],
.cart-summary[hidden] {
  display: none;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(13 39 62 / 0.5);
  backdrop-filter: blur(9px);
}

.cart-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(520px, 100%);
  height: 100%;
  border-left: 1px solid rgb(255 255 255 / 0.9);
  background: rgb(250 253 255 / 0.98);
  box-shadow: -24px 0 64px rgb(17 55 85 / 0.22);
  animation: cart-in 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes cart-in {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 112px;
  padding: 24px 26px 22px 32px;
  border-bottom: 1px solid rgb(19 35 75 / 0.09);
  background: #ffffff;
}

.cart-header p {
  margin: 0 0 5px;
  color: var(--sky-dark);
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.cart-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 42px;
  font-weight: 950;
  line-height: 0.95;
  text-transform: uppercase;
}

.cart-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 10px;
}

.cart-currency {
  width: 88px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid rgb(19 35 75 / 0.09);
  border-radius: 999px;
  color: var(--ink);
  background: #eef5f9;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.cart-currency:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.cart-currency:disabled {
  opacity: 0.55;
  cursor: wait;
}

.cart-close {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #6b7f96;
  background: #eef5f9;
  cursor: pointer;
}

.cart-close:hover,
.cart-close:focus-visible {
  outline: none;
  color: var(--ink);
  background: #e1eff7;
}

.cart-close svg {
  width: 28px;
  height: 28px;
}

.cart-content {
  overflow: auto;
  padding: 22px;
  -webkit-overflow-scrolling: touch;
}

.cart-empty {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100%;
  padding: 48px 24px;
  text-align: center;
}

.cart-empty > span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  border-radius: 30px;
  background: #eaf7ff;
  font-size: 40px;
}

.cart-empty h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 25px;
  font-weight: 950;
}

.cart-empty p {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.cart-empty button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--sky), var(--sky-dark));
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgb(224 238 247 / 0.9);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgb(48 113 158 / 0.08);
}

.cart-item-visual {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 18px;
  background: #eef8ff;
}

.cart-item-visual img {
  display: block;
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.cart-spark-placeholder {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 17px;
  color: #ffffff;
  background: linear-gradient(145deg, #ff8bea, var(--spark) 52%, var(--spark-dark));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
  font-size: 37px;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item-copy h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 950;
  line-height: 1.15;
  text-transform: uppercase;
}

.cart-item-copy p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 9px;
  margin: 0;
}

.cart-item-copy strong {
  color: var(--sky-dark);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.cart-item-copy span {
  color: #71839a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.cart-quantity {
  display: grid;
  grid-template-columns: 32px 32px 32px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dbeaf3;
  border-radius: 999px;
  background: #f2f8fb;
}

.cart-quantity button,
.cart-quantity span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 17px;
  font-weight: 950;
}

.cart-quantity button {
  cursor: pointer;
}

.cart-quantity button:hover:not(:disabled),
.cart-quantity button:focus-visible:not(:disabled) {
  outline: none;
  color: #ffffff;
  background: var(--spark);
}

.cart-quantity button:disabled {
  color: #b9c7d2;
  cursor: default;
}

.cart-remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgb(221 54 66 / 0.14);
  border-radius: 12px;
  color: #d93643;
  background: #fff0f1;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.cart-remove:hover,
.cart-remove:focus-visible {
  outline: none;
  color: #ffffff;
  background: #d93643;
  transform: translateY(-1px);
}

.cart-remove svg {
  width: 20px;
  height: 20px;
}

.cart-summary {
  padding: 22px 28px calc(26px + env(safe-area-inset-bottom));
  border-top: 1px solid rgb(19 35 75 / 0.1);
  background: #ffffff;
  box-shadow: 0 -14px 34px rgb(23 67 100 / 0.08);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 5px;
}

.cart-subtotal span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  text-transform: uppercase;
}

.cart-subtotal strong {
  color: var(--ink);
  font-size: 27px;
  font-weight: 950;
}

.cart-summary > p {
  margin: 0 0 18px;
  color: #73869b;
  font-size: 12px;
  font-weight: 700;
}

.cart-checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(180deg, var(--sky), var(--sky-dark));
  box-shadow: 0 15px 28px rgb(29 150 232 / 0.25);
  font-size: 17px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.cart-checkout-button:hover,
.cart-checkout-button:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 19px 34px rgb(29 150 232 / 0.32);
}

.cart-checkout-button svg {
  width: 23px;
  height: 23px;
}

.purchase-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.purchase-modal[hidden] {
  display: none;
}

.purchase-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(13 39 62 / 0.52);
  backdrop-filter: blur(10px);
}

.purchase-card {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(760px, 100%);
  padding: 0 clamp(24px, 5vw, 56px) clamp(34px, 5vw, 48px);
  border: 1px solid rgb(255 255 255 / 0.95);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 34px 86px rgb(16 52 80 / 0.24), 0 12px 32px rgb(16 52 80 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.86);
  text-align: center;
  overflow: hidden;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  opacity: 0.72;
}

.modal-close:hover,
.modal-close:focus {
  background: rgb(20 43 82 / 0.06);
  opacity: 1;
}

.modal-close svg {
  width: 30px;
  height: 30px;
}

.purchase-copy {
  width: calc(100% + clamp(48px, 10vw, 112px));
  margin: 0 0 28px;
  padding: 34px 80px 28px;
  border-bottom: 1px solid #dbeefa;
}

.purchase-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 950;
  line-height: 1.02;
}

.purchase-copy p {
  margin: 0 0 9px;
  color: var(--sky-dark);
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.platform-field {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  width: min(430px, 100%);
  margin: 0 auto 26px;
  padding: 6px;
  border: 0;
  border-radius: 20px;
  background: #eef5fa;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9);
  overflow: hidden;
}

.platform-field::before {
  content: "";
  position: absolute;
  inset: 6px auto 6px 6px;
  width: calc((100% - 12px) / 2);
  border-radius: 15px;
  background: linear-gradient(180deg, var(--sky), var(--sky-dark));
  box-shadow: 0 14px 26px rgb(29 150 232 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.18);
  transform: translateX(0);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.platform-field[data-selected="bedrock"]::before {
  transform: translateX(100%);
}

.platform-field legend,
.username-field > span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.platform-field label {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.platform-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.platform-field span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  padding: 0 14px;
  border-radius: 15px;
  color: #52647e;
  background: transparent;
  cursor: pointer;
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.platform-field svg {
  width: 23px;
  height: 23px;
  transition: transform 0.18s ease;
}

.platform-field label:hover span {
  transform: scale(1.035);
}

.platform-field label:hover svg {
  transform: translateY(-1px) scale(1.08);
}

.platform-field input:checked + span {
  color: #ffffff;
  background: transparent;
  box-shadow: none;
}

.username-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 8px;
  border-radius: 999px;
  background: #eef6fb;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.9), 0 14px 34px rgb(36 88 124 / 0.1);
}

.username-field {
  display: grid;
  width: 100%;
}

.username-field input {
  width: 100%;
  min-height: 60px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.86);
  font-size: clamp(17px, 3vw, 20px);
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
}

.username-field input:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgb(49 170 255 / 0.16);
}

.checkout-button {
  --rank: var(--sky);
  --rank-dark: var(--sky-dark);
  width: auto;
  min-height: 60px;
  padding: 0 26px;
  white-space: nowrap;
}

.toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  padding: 18px 20px;
  border-radius: 18px;
  color: #ffffff;
  background: #e73f4c;
  box-shadow: 0 18px 34px rgb(31 77 112 / 0.18);
  font-size: 16px;
  font-weight: 900;
  transform: translateY(16px);
  opacity: 0;
  animation: toast-in 0.24s ease forwards;
}

.toast-success {
  background: #28b36f;
}

@keyframes toast-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.thank-you-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.thank-you-card {
  display: grid;
  justify-items: center;
  width: min(560px, 100%);
  padding: 54px 38px;
  border-radius: 34px;
  background: #ffffff;
  box-shadow: var(--shadow);
  text-align: center;
}

.thank-you-card h1 {
  margin: 18px 0 12px;
  font-size: clamp(44px, 7vw, 72px);
  line-height: 1;
  text-transform: uppercase;
}

.thank-you-card p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.5;
}

@media (width <= 1700px) {
  .rank-grid,
  .compare-row,
  .bottom-rank-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rank-grid {
    row-gap: clamp(28px, 3.2vw, 46px);
  }

  .rank-info-card {
    grid-column: 1 / -1;
    min-height: auto;
    padding: clamp(34px, 4vw, 52px);
  }

  .ranks > .rank-info-card {
    margin-top: clamp(28px, 3.2vw, 46px);
  }

  .rank-info-card p {
    max-width: 78ch;
  }

  .rank-card.rank-card-immortal {
    margin-top: -32px;
  }

  .compare-label {
    display: none;
  }

  .compare-value {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 118px;
  }

  .compare-value::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 15px;
    font-weight: 950;
    line-height: 1.15;
  }

  .bottom-spacer {
    display: none;
  }
}

@media (width <= 1180px) {
  :root {
    --content: min(560px, calc(100vw - 40px));
  }

  .store-toolbar {
    justify-content: flex-start;
  }

  .rank-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .sparks-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .rank-info-card {
    grid-column: auto;
    margin: 24px 0 0;
    border-radius: 24px;
  }

  .rank-card.rank-card-immortal {
    min-height: 520px;
    margin-top: 0;
  }

  .rank-card {
    cursor: pointer;
  }

  .spark-card {
    cursor: default;
  }

  .rank-tap-hint {
    display: block;
    color: #66819e;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    text-transform: uppercase;
  }

  .compare-wrap,
  .bottom-rank-actions {
    display: none;
  }
}

@media (width <= 760px) {
  .hero {
    min-height: 188px;
  }

  .hero-logo {
    width: min(390px, 82vw);
  }

  .hero-server {
    bottom: 10px;
    min-height: 34px;
    min-width: min(300px, 68vw);
    padding: 0 20px;
    border-radius: 10px;
    font-size: 14px;
  }

  .ranks h1,
  .sparks h1 {
    margin-top: 18px;
    margin-bottom: 30px;
    font-size: clamp(56px, 18vw, 82px);
  }

  .store-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .store-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
  }

  .store-toolbar.cart-is-empty {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-button {
    position: relative;
    right: auto;
    width: 58px;
    min-height: 58px;
    padding: 0;
  }

  .cart-button > span {
    display: none;
  }

  .cart-button strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 24px;
    height: 24px;
    padding: 0 5px;
    border: 2px solid #ffffff;
    font-size: 10px;
  }

  .store-tab {
    min-height: 54px;
    padding-inline: 14px;
    font-size: 15px;
  }

  .sparks-info-card {
    min-height: auto;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .rank-card {
    min-height: 450px;
    border-radius: 24px;
  }

  .rank-card.rank-card-immortal {
    min-height: 480px;
  }

  .rank-image {
    max-width: 176px;
    max-height: 176px;
  }

  .cart-panel {
    width: 100%;
    border-left: 0;
  }

  .cart-header {
    min-height: 96px;
    gap: 12px;
    padding: 19px 18px 18px 22px;
  }

  .cart-content {
    padding: 14px;
  }

  .cart-item {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .cart-item-visual {
    width: 66px;
    height: 66px;
  }

  .cart-item-visual img {
    width: 58px;
    height: 58px;
  }

  .cart-spark-placeholder {
    width: 54px;
    height: 54px;
    font-size: 32px;
  }

  .cart-item-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
  }

  .cart-summary {
    padding: 19px 20px calc(20px + env(safe-area-inset-bottom));
  }

  .mobile-perk-modal {
    padding: 0;
  }

  .mobile-perk-sheet {
    width: 100%;
    max-height: 84vh;
    border-right: 0;
    border-left: 0;
    border-radius: 28px 28px 0 0;
  }

  .mobile-perk-heading {
    padding: 24px 68px 20px;
  }

  .mobile-perk-sheet-list {
    gap: 24px;
    padding-top: 26px;
  }

  .mobile-sheet-perk {
    font-size: 19px;
  }

  .mobile-perk-footer {
    gap: 14px;
    padding-inline: 18px;
  }

  .mobile-perk-footer .rank-button {
    min-height: 66px;
  }

  .footer {
    padding-top: 88px;
    clip-path: ellipse(175% 100% at 50% 100%);
  }

  .footer-grid,
  .legal {
    grid-template-columns: 1fr;
    display: grid;
    text-align: center;
  }

  .footer p {
    margin-inline: auto;
  }

  .socials {
    justify-content: center;
  }

  .legal {
    justify-content: center;
  }
}
