/* SNOWMOON STRATEGY ($SNOWMOON) — a Snowmoon night: indigo sky, privacy-robe purple, Veridian green. */
:root {
  --bg: #0b1024;
  --bg-2: #111936;
  --card: rgba(20, 28, 60, 0.72);
  --card-strong: rgba(18, 25, 54, 0.94);
  --line: rgba(196, 208, 255, 0.14);
  --line-strong: rgba(196, 208, 255, 0.26);
  --ink: #eef2ff;
  --muted: #b2bce0;
  --dim: #7c87b0;
  --green: #3ddc97;
  --green-glow: #5dffb0;
  --green-ink: #06251a;
  --robe: #4a2d66;
  --robe-soft: #c2a9ec;
  --gold: #e7c27a;
  --danger: #ff8a8a;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(2, 6, 20, 0.45);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 78% -10%, rgba(120, 150, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at 10% 30%, rgba(107, 63, 160, 0.22), transparent 65%),
    linear-gradient(180deg, #0a0f22 0%, #0d1430 45%, #0b1024 100%);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

main,
.nav,
.footer {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
}

h3 {
  font-size: 20px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  font: 600 15px/1 var(--ui);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.15s, opacity 0.2s;
}
.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(196, 208, 255, 0.45);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible,
.filters button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.btn.accent {
  background: var(--green);
  border-color: var(--green);
  color: var(--green-ink);
  box-shadow: 0 10px 30px rgba(61, 220, 151, 0.25);
}
.btn.accent:hover {
  background: #63e8ae;
}
.btn.small {
  height: 36px;
  padding: 0 14px;
  font-size: 14px;
}
.btn.big {
  height: 52px;
  padding: 0 26px;
  font-size: 16px;
}
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(10, 15, 34, 0.92), rgba(10, 15, 34, 0.7));
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 15px;
  white-space: nowrap;
}
.brand svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}
.links {
  display: flex;
  gap: 26px;
}
.links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
}
.links a:hover {
  color: var(--ink);
}

/* ── Hero ── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 96px) var(--gutter) 40px;
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 68px);
  letter-spacing: -0.01em;
}
.hero h1 em {
  font-style: italic;
  color: var(--robe-soft);
}
.lead {
  margin: 22px 0 28px;
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
  max-width: 600px;
}
.stats div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.stats dt {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.stats dd {
  margin: 4px 0 0;
  font-weight: 700;
  font-size: 17px;
}
.stats small {
  font-weight: 500;
  color: var(--dim);
  font-size: 12px;
}
.hero-art {
  display: grid;
  justify-items: center;
  gap: 14px;
}
.frame {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow), 0 0 0 10px rgba(255, 255, 255, 0.02), 0 0 80px rgba(93, 255, 176, 0.12);
  background: var(--bg-2);
}
.frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 1.2s ease;
}
.hero-caption {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
  min-height: 22px;
  text-align: center;
}

/* ── Mint ── */
.mint {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(20px, 3vw, 36px);
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px var(--gutter);
  scroll-margin-top: 70px;
}
.mint-card {
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.mint-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.progress {
  margin: 24px 0 18px;
}
.progress-bar {
  height: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 10px;
  background: linear-gradient(90deg, #2fbf82, var(--green-glow));
  transition: width 0.8s ease;
}
.progress p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.progress b {
  color: var(--ink);
  font-family: var(--mono);
}
.requirement {
  margin: 0 0 12px;
  color: var(--muted);
}
.requirement b {
  color: var(--ink);
}
.floor-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(61, 220, 151, 0.35);
  background: rgba(61, 220, 151, 0.07);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}
.floor-note a {
  color: var(--green-glow);
}

/* ── Phases ── */
.phase-banner {
  max-width: 1200px;
  margin: 18px auto 0;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(61, 220, 151, 0.4);
  background: linear-gradient(90deg, rgba(61, 220, 151, 0.14), rgba(120, 170, 255, 0.08));
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.phase-banner-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.phase-banner-text {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}
.phases {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gutter) 20px;
  scroll-margin-top: 70px;
}
.phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.phase-card {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  opacity: 0.78;
  transition: border-color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}
.phase-card.active {
  opacity: 1;
  border-color: rgba(61, 220, 151, 0.55);
  box-shadow: 0 0 0 1px rgba(61, 220, 151, 0.15);
}
.phase-card.done {
  opacity: 0.9;
}
.phase-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.phase-status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}
.phase-card.active .phase-status {
  border-color: rgba(61, 220, 151, 0.5);
  color: var(--green);
  background: rgba(61, 220, 151, 0.1);
}
.phase-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 28px;
}
.phase-card > p {
  color: var(--muted);
  margin: 0 0 14px;
  line-height: 1.55;
}
.phase-card > p b {
  color: var(--ink);
}
.phase-points {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}
.phase-points b {
  color: var(--ink);
}
.curve-label {
  margin: 0 0 8px !important;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.curve {
  display: flex;
  gap: 10px;
  margin: 0 0 14px !important;
  flex-wrap: wrap;
}
.curve span {
  font-family: var(--mono);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.03);
}
.phase-example {
  font-size: 14px !important;
}
.phase-inline {
  margin: 0 !important;
}
@media (max-width: 860px) {
  .phase-grid {
    grid-template-columns: 1fr;
  }
  .phase-banner {
    margin-left: var(--gutter);
    margin-right: var(--gutter);
    flex-direction: column;
    gap: 4px;
  }
}

.state {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 20px;
}
.state p {
  margin: 0;
}
.state.ok {
  border-style: solid;
  border-color: rgba(61, 220, 151, 0.5);
  background: rgba(61, 220, 151, 0.08);
}
.state.bad {
  border-style: solid;
  border-color: rgba(255, 138, 138, 0.4);
  background: rgba(255, 138, 138, 0.07);
}
.state .mono {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.mint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.wallets {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.wallets button {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: 500 15px var(--ui);
  cursor: pointer;
  text-align: left;
}
.wallets button:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.08);
}
.wallets img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.mine {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  align-items: start;
}
.mine[hidden] {
  display: none;
}
.mine img {
  width: 220px;
  height: 220px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
}
.mine h3 {
  font-size: 26px;
}
.mine-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 12px;
}
.mine-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.chips li b {
  color: var(--ink);
  font-weight: 600;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  align-content: start;
}
.steps li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.steps span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green);
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
}
.steps h3 {
  font-size: 18px;
}
.steps p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* ── Sections ── */
.gallery,
.world,
.faq {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px var(--gutter);
  scroll-margin-top: 70px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 26px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filters button {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font: 500 14px var(--ui);
  cursor: pointer;
}
.filters button.on {
  color: var(--ink);
  border-color: var(--green);
  background: rgba(61, 220, 151, 0.12);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 16px;
}
.card {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 40px rgba(2, 6, 20, 0.5);
}
.card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}
.card figcaption {
  padding: 10px 12px 12px;
  font-size: 13px;
  color: var(--muted);
}
.card figcaption b {
  display: block;
  color: var(--ink);
  font-size: 14px;
}
.note {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 14px;
}
.factions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.factions article,
.traits > div {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.factions article:first-child {
  background: linear-gradient(160deg, rgba(107, 63, 160, 0.3), rgba(107, 63, 160, 0.06));
  border-color: rgba(194, 169, 236, 0.3);
}
.factions p,
.traits p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.traits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}
.traits h3 {
  font-size: 18px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 4px;
}
.faq summary {
  cursor: pointer;
  font-family: var(--display);
  font-size: 20px;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-family: var(--ui);
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 760px;
}

/* ── Footer ── */
.footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gutter) 60px;
  border-top: 1px solid var(--line);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--ink);
}
.disclaimer {
  margin: 18px 0 0;
  color: var(--dim);
  font-size: 13px;
  max-width: 820px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--card-strong);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, translate 0.3s;
  z-index: 20;
}
.toast.show {
  opacity: 1;
  translate: -50% 0;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .hero,
  .mint {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .factions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .traits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .links {
    display: none;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .factions,
  .traits {
    grid-template-columns: 1fr;
  }
  .mine {
    grid-template-columns: 1fr;
  }
  .mine img {
    width: 100%;
    height: auto;
  }
  .btn.big {
    width: 100%;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
