:root {
  color-scheme: dark;
  --background: #100d16;
  --surface: #1b1524;
  --surface-dark: #16101f;
  --border: #352743;
  --text: #fff8ff;
  --muted: #c5b8ce;
  --lime: #c3f56e;
  --pink: #f2a1f6;
  --heading: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  font: 400 16px/1.55 var(--body);
  color: var(--text);
  background: var(--background);
}

* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--heading); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 5px; }
::selection { color: #21132a; background: var(--lime); }

.shell { width: min(1224px, calc(100% - 64px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -64px;
  left: 18px;
  z-index: 2;
  padding: 9px 14px;
  background: var(--lime);
  color: #1d2711;
}
.skip-link:focus { top: 10px; }

.site-header {
  background: #15111c;
  border-bottom: 1px solid #2e2338;
}
.header-inner {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 750 23px/1 var(--heading);
  letter-spacing: -.5px;
  text-decoration: none;
  white-space: nowrap;
}
.brand img { border-radius: 8px; image-rendering: pixelated; }
.brand-store { color: #d9a6e5; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 36px); }
.site-nav a {
  padding: 10px 0;
  color: #e0d6e5;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
}
.site-nav a:hover, .site-footer a:hover { color: var(--lime); }
.server-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #4c3858;
  border-radius: 7px;
  color: #eadff0;
  background: #241a2e;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.server-copy:hover { color: var(--lime); border-color: #827d54; }
.copy-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: none;
}
.copy-icon::before, .copy-icon::after {
  position: absolute;
  display: block;
  width: 9px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: "";
}
.copy-icon::before { top: 0; right: 0; }
.copy-icon::after { bottom: 0; left: 0; background: #241a2e; }

.hero {
  position: relative;
  display: grid;
  min-height: 409px;
  align-items: center;
  isolation: isolate;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #5b3e6a;
  border-radius: 17px;
  background: radial-gradient(ellipse at 80% 10%, #41552d, transparent 68%), #221533;
}
.hero::after, .hero-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero-art { object-fit: cover; object-position: 66% 48%; }
.hero::after {
  background:
    linear-gradient(0deg, #180d23aa, transparent 40%),
    linear-gradient(90deg, #1c112ce8 0%, #1c112ccf 30%, #1c112c47 59%, transparent 80%);
  content: "";
}
.hero-copy { width: min(100%, 645px); padding: 40px 0 43px clamp(30px, 5.1vw, 70px); }
.hero-copy h1 { display: grid; gap: 7px; font-size: 34px; line-height: 1.08; letter-spacing: -.025em; }
.hero-wordmark { width: clamp(270px, 42vw, 510px); height: auto; }
.hero-copy p {
  margin-top: 10px;
  color: #e4d7eb;
  font-size: 17px;
  font-weight: 500;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 700;
  text-decoration: none;
  transition: filter .16s ease, background-color .16s ease, border-color .16s ease;
}
.button-lime { border-color: #d2ff86; color: #202713; background: var(--lime); }
.button-lime:hover { background: #d7ff9c; }
.button-glass { border-color: #9b7cad; color: #fcf5ff; background: #271937; }
.button-glass:hover { border-color: #d9b3e7; background: #422452; }
.button-glass .copy-icon::after { background: inherit; }

.rank-section, .compare-section { margin-top: 50px; scroll-margin-block-start: 24px; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 {
  font-size: clamp(28px, 4.3vw, 43px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.04em;
}
.section-heading p { margin-top: 8px; color: var(--muted); }
.rank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rank-card {
  --rank-accent: #c4f779;
  --rank-tint: #465a32;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rank-tint);
  border-radius: 13px;
  background: var(--surface);
}
.rank-card[data-rank="luck2"] { --rank-accent: #e9a8ff; --rank-tint: #734889; }
.rank-card[data-rank="luck3"] { --rank-accent: #ffd486; --rank-tint: #8a663d; }
.rank-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--rank-accent), transparent);
  content: "";
}
.rank-art {
  display: grid;
  height: 162px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--rank-accent) 18%, transparent);
  background:
    radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--rank-tint) 82%, #1c1225), transparent 70%),
    linear-gradient(180deg, #23182e, #141019);
}
.rank-art img { width: min(86%, 132px); height: auto; object-fit: contain; image-rendering: pixelated; }
.rank-body { padding: 18px 21px 20px; }
.rank-title { font-size: clamp(25px, 3.2vw, 35px); font-weight: 800; line-height: 1; letter-spacing: -.025em; }
.rank-title span { margin-left: 2px; color: var(--rank-accent); letter-spacing: -.11em; }
.rank-price { margin-top: 6px; color: var(--muted); font-size: 14px; font-weight: 600; }
.rank-price strong { color: var(--rank-accent); font: 800 23px/1 var(--heading); }
.perk-list { margin: 14px 0 17px; }
.perk-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); }
.perk-list dt { color: #e4d5ec; }
.perk-list dd { margin-left: 0; font-weight: 750; font-variant-numeric: tabular-nums; }
.rank-button {
  width: 100%;
  border-color: color-mix(in srgb, var(--rank-accent) 45%, #362744);
  color: var(--rank-accent);
  background: color-mix(in srgb, var(--rank-accent) 9%, #21182a);
}
.rank-button:hover { background: color-mix(in srgb, var(--rank-accent) 16%, #21182a); }

.compare-section { margin-block-end: 58px; }
.comparison-scroll { overflow: auto; border: 1px solid #443452; border-radius: 12px; }
.comparison-table { width: 100%; min-width: 375px; border-collapse: collapse; background: #1b1524; }
.comparison-table th, .comparison-table td { padding: 13px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.comparison-table thead { background: #241a2e; }
.comparison-table tbody th { color: #e1d4e8; font-weight: 650; }
.comparison-table tbody td { color: #fdf4fd; font-weight: 750; font-variant-numeric: tabular-nums; }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-table tr > :first-child { padding-inline-start: 18px; text-align: left; }
.comparison-table thead th:nth-child(3) { color: #c4f779; }
.comparison-table thead th:nth-child(4) { color: #e9a8ff; }
.comparison-table thead th:nth-child(5) { color: #ffd486; }
.compare-note { max-width: 805px; margin-top: 12px; color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: #16111e; }
.footer-inner { display: flex; min-height: 111px; align-items: center; justify-content: space-between; gap: 18px; }
.footer-brand span { color: var(--pink); font: 800 24px/1 var(--heading); }
.footer-brand p { color: var(--muted); }
.site-footer a { color: #e6d9eb; font-weight: 650; text-underline-offset: 3px; }

.rank-dialog {
  width: min(460px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  padding: 22px;
  overflow: auto;
  border: 1px solid #704f80;
  border-radius: 13px;
  color: var(--text);
  background: #21172b;
}
.rank-dialog::backdrop { background: #09060fbd; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.dialog-header h2 { font-size: 30px; line-height: 1; letter-spacing: -.03em; }
.dialog-header p { margin-top: 6px; color: var(--lime); }
.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: #31203e;
  font-size: 24px;
  line-height: 1;
}
.dialog-close:hover { border-color: var(--pink); }
.dialog-note { margin-bottom: 16px; color: var(--muted); }
.dialog-done { width: 100%; }
@media (max-width: 850px) {
  .shell { width: calc(100% - 40px); }
  .header-copy { display: none; }
  .hero { min-height: 360px; }
  .rank-body { padding-inline: 14px; }
  .rank-art { height: 133px; }
  .rank-art img { width: min(86%, 112px); }
  .rank-grid { gap: 11px; }
}

@media (max-width: 670px) {
  .shell { width: calc(100% - 28px); }
  .header-inner { flex-wrap: wrap; gap: 0 14px; align-content: center; padding-block: 9px; }
  .brand { font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  .site-nav { gap: 12px; }
  .site-nav a { font-size: 14px; }
  .hero { min-height: 385px; align-items: end; margin-top: 13px; border-radius: 12px; }
  .hero-art { object-position: 68% 45%; }
  .hero::after { background: linear-gradient(0deg, #1b1029 3%, #1b1029dc 29%, #1b102968 62%, #1b102924 84%); }
  .hero-copy { padding: 21px 18px; }
  .hero-copy h1 { font-size: 29px; }
  .hero-wordmark { width: min(100%, 420px); }
  .hero-copy p { font-size: 16px; }
  .hero-actions { margin-top: 16px; }
  .hero-actions .button { min-height: 44px; padding-inline: 11px; font-size: 15px; }
  .rank-section, .compare-section { margin-top: 34px; }
  .rank-grid { grid-template-columns: 1fr; gap: 13px; }
  .rank-card { display: grid; grid-template-columns: minmax(100px, 35%) minmax(0, 1fr); }
  .rank-art { height: auto; min-height: 100%; border-right: 1px solid var(--rank-tint); border-bottom: 0; }
  .rank-art img { width: min(88%, 112px); }
  .rank-body { padding: 13px 12px; }
  .rank-title { font-size: 26px; }
  .rank-price strong { font-size: 19px; }
  .rank-button { min-height: 40px; }
  .rank-card::before { right: 11px; left: 11px; }
  .comparison-table { min-width: 0; table-layout: fixed; font-size: 14px; }
  .comparison-table th, .comparison-table td { padding: 9px 2px; }
  .comparison-table tr > :first-child { width: 27%; padding-inline: 8px 3px; }
  .comparison-table thead th:nth-child(3) { width: 16%; }
  .comparison-table thead th:nth-child(5) { width: 21%; }
  .footer-inner { min-height: auto; align-items: start; flex-direction: column; gap: 10px; padding-block: 20px; }
}

@media (max-width: 390px) {
  .header-inner { gap: 1px; }
  .site-nav { gap: 10px; }
  .brand { gap: 7px; }
  .brand-store { display: none; }
  .rank-card { grid-template-columns: minmax(84px, 29%) minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

[hidden] { display: none !important; }
.checkout-notice {
  margin-top: 15px;
  padding: 10px 14px;
  border: 1px solid #685275;
  border-radius: 8px;
  color: #fae9ff;
  background: #251832;
}
.billing-link {
  min-height: 42px;
  margin-top: 3px;
  padding: 0;
  border: 0;
  color: var(--lime);
  background: transparent;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.billing-link:hover { color: #e2fdb8; }
.account-panel { margin-top: 13px; }
.link-form { display: grid; gap: 10px; }
.link-form .account-help { margin: -4px 0 0; font-size: 14px; }
.link-form code { color: var(--lime); }
.edition-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.edition-picker legend { margin-bottom: 5px; padding: 0; font-weight: 700; }
.edition-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.edition-options label { cursor: pointer; }
.edition-options span {
  display: grid;
  min-height: 43px;
  place-items: center;
  border: 1px solid #765b84;
  border-radius: 6px;
  background: #2a1d36;
  color: var(--muted);
  font-weight: 700;
}
.edition-options input:checked + span { border-color: var(--lime); color: var(--lime); background: #29371c; }
.edition-options input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.account-field { display: grid; gap: 5px; font-weight: 700; }
.account-field input {
  min-width: 0;
  min-height: 43px;
  padding: 7px 11px;
  border: 1px solid #765b84;
  border-radius: 6px;
  color: var(--text);
  background: #15101b;
  font-weight: 500;
}
.account-status { margin-top: 9px; color: var(--pink); }
.link-form .button, .stripe-action { margin-top: 5px; }
.subscription-actions { display: grid; gap: 8px; margin-top: 10px; }
.billing-email-note { margin: 12px 0 0; }
.subscription-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.subscription-choices .button { padding-inline: 5px; text-align: center; }
.subscription-actions .dialog-note { margin: 1px 0 0; font-size: 14px; }
:is(.link-form .button, .stripe-action, .subscription-actions .button, .verified-account .billing-link):disabled { cursor: wait; opacity: .75; }
.verified-account {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  padding: 9px 13px;
  border: 1px solid #6b8852;
  border-radius: 7px;
  background: #202b1d;
}
.verified-account-identity { display: grid; overflow-wrap: anywhere; }
.verified-account-edition { color: var(--lime); font-size: 13px; }
.verified-account .billing-link { margin: 0; font-size: 14px; }

.clover-section { margin-top: 50px; scroll-margin-block-start: 24px; }
.clover-section .section-heading p { max-width: 680px; }
.clover-section .clover-status { color: var(--pink); }
.clover-card {
  --rank-accent: #c4f779;
  --rank-tint: #406346;
}
.clover-card:is([data-bundle="clovers5500"], [data-bundle="clovers12000"]) { --rank-tint: #536045; }
.clover-card:is([data-bundle="clovers32000"], [data-bundle="clovers70000"]) { --rank-tint: #777042; }
.clover-card .rank-art {
  background:
    radial-gradient(ellipse at 50% 65%, color-mix(in srgb, var(--rank-tint) 67%, #1c1225), transparent 70%),
    linear-gradient(180deg, #241b29, #151b17);
}
.clover-card .rank-body { display: grid; align-content: center; }
.bundle-value {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  align-items: center;
  margin: 5px 0;
  color: var(--muted);
  font-size: .72rem;
}
.bundle-bonus {
  padding: 2px 6px;
  border-radius: 5px;
  background: #2d4525;
  color: #ceff9b;
  font-weight: 750;
  white-space: nowrap;
}
.clover-card .rank-button { margin-top: 14px; }

@media (max-width: 670px) {
  .clover-section { margin-top: 34px; }
  .clover-section .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clover-card { display: block; }
  .clover-card .rank-art { min-height: 0; height: 110px; border-right: 0; border-bottom: 1px solid var(--rank-tint); }
  .clover-card .rank-art img { width: min(85%, 96px); }
  .clover-card .rank-title { font-size: clamp(18px, 5.2vw, 26px); }
  .clover-card .rank-button { margin-top: 9px; padding-inline: 5px; }
}

@media (max-width: 450px) {
  .header-inner { padding-block: 9px 3px; }
  .site-nav { flex-basis: 100%; justify-content: space-between; gap: 5px; }
}

.site-nav button {
  padding: 10px 0;
  border: 0;
  color: #e0d6e5;
  background: transparent;
  font-size: 15px;
  font-weight: 650;
}
.site-nav button:hover { color: var(--lime); }
.footer-brand { max-width: 660px; padding-block: 16px; }
.footer-brand p + p { margin-top: 5px; }
.footer-links { display: grid; flex: 0 0 auto; gap: 5px; }
.store-policies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  margin-block-end: 44px;
}
.store-policies > div {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #191321;
  scroll-margin-block-start: 24px;
}
.store-policies h2 { font: 750 21px/1.2 var(--heading); }
.store-policies p { margin-block-start: 10px; color: var(--muted); }
.store-policies a { color: var(--lime); text-underline-offset: 3px; }
.history-dialog { width: min(575px, calc(100% - 30px)); }
.history-dialog .dialog-header { margin-bottom: 9px; }
.history-status { margin-top: 12px; color: var(--pink); }
.history-heading { margin-top: 17px; color: var(--text); font-size: 21px; }
.history-results section + section { margin-top: 16px; }
.history-results h4 { margin: 8px 0 0; color: var(--lime); font: 700 17px/1.35 var(--heading); }
.history-results section > p { color: var(--muted); }
.history-list { margin: 4px 0 0; padding: 0; list-style: none; }
.history-list li { display: flex; justify-content: space-between; gap: 14px; padding-block: 7px; border-top: 1px solid var(--border); }
.history-list li > div { display: grid; }
.history-list li > :last-child { flex-shrink: 0; text-align: right; }
.history-list span, .history-list a { color: var(--muted); font-size: 14px; }
.history-list a { text-underline-offset: 2px; }
.history-list a:hover { color: var(--lime); }

@media (max-width: 670px) {
  .site-nav button { font-size: 14px; }
  .footer-brand { padding-block: 0; }
}
