/* ══════════════════════════════════════════════════════════════════
   Rainy Network Store — white merch-store edition
   White canvas · black ink · hot pink #FF57A4 (sampled from the logo).
   Space Grotesk display, Inter body. Black featured cards, black footer.
   ══════════════════════════════════════════════════════════════════ */

:root {
  --bg: #ffffff;
  --bg-soft: #faf8fa;
  --ink: #0d0b10;
  --dim: #6b6675;
  --line: #ebe7ee;
  --line-strong: #d9d3de;
  --pink: #ff57a4;
  --pink-soft: #ffeef6;
  --pink-deep: #e63d8b;
  --pink-line: #ffd3e7;
  /* Contrast surfaces (footer, band, featured cards, dark buttons, toast). */
  --c-bg: #0d0b10;
  --c-text: #ffffff;
  --c-dim: #b9b3c2;
  --c-line: rgba(255, 255, 255, 0.14);
  --nav-bg: rgba(255, 255, 255, 0.85);
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --r: 20px;
  --shadow-card: 0 2px 6px rgba(20, 10, 25, 0.04), 0 12px 32px rgba(20, 10, 25, 0.06);
  --shadow-pop: 0 6px 16px rgba(20, 10, 25, 0.10), 0 24px 60px rgba(255, 87, 164, 0.16);
}

/* ── Dark mode (toggled via the ☾ button, persisted per visitor) ── */

:root[data-theme="dark"] {
  --bg: #0e0c13;
  --bg-soft: #15121b;
  --ink: #f1eef5;
  --dim: #9b94a8;
  --line: #251f30;
  --line-strong: #39304a;
  --pink-soft: #2a1420;
  --pink-deep: #ff7ab5;
  --pink-line: #4a2237;
  --c-bg: #191424;
  --c-text: #ffffff;
  --c-dim: #a79fb5;
  --c-line: rgba(255, 255, 255, 0.10);
  --nav-bg: rgba(14, 12, 19, 0.82);
  --shadow-card: 0 2px 6px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 6px 16px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(255, 87, 164, 0.14);
}

:root[data-theme="dark"] .orb-a {
  background: radial-gradient(circle, rgba(255, 87, 164, 0.10), transparent 65%);
}

:root[data-theme="dark"] .orb-b {
  background: radial-gradient(circle, rgba(110, 147, 255, 0.08), transparent 65%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* The hidden attribute must always win, even over display rules below. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255, 87, 164, 0.25); }

/* ── Ambient: featherweight pink wash, nothing crypto ───────────── */

.orb {
  position: fixed;
  width: 55vmax;
  height: 55vmax;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  top: -32vmax;
  left: -20vmax;
  background: radial-gradient(circle, rgba(255, 87, 164, 0.07), transparent 65%);
}

.orb-b {
  top: -10vmax;
  right: -26vmax;
  background: radial-gradient(circle, rgba(201, 180, 208, 0.12), transparent 65%);
}

.grid-lines, .noise { display: none; }

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

/* ── Type helpers ───────────────────────────────────────────────── */

/* Pink→lavender sheen slowly sweeping the accent word. */
.accent-text {
  background: linear-gradient(90deg, var(--pink), #b48fd4, var(--pink));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accent-sheen 7s linear infinite;
}

@keyframes accent-sheen {
  to { background-position: -200% 0; }
}

.grad-text {
  background: linear-gradient(90deg, var(--pink), #ff8fc0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}

/* ── Nav ────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: 0.16em;
}

.brand img { border-radius: 8px; }

.nav-links { display: flex; gap: clamp(18px, 3vw, 36px); }

.nav-links a {
  position: relative;
  color: var(--dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transition: right 0.25s ease;
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 13px 28px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.2s ease, background-color 0.2s ease,
              border-color 0.2s ease, color 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-dark {
  background: var(--c-bg);
  color: var(--c-text);
}

.btn-dark:hover {
  transform: translateY(-2px);
  background: var(--pink);
  box-shadow: 0 10px 30px rgba(255, 87, 164, 0.4);
}

.btn-grad {
  background: var(--pink);
  color: #fff;
  box-shadow: 0 6px 22px rgba(255, 87, 164, 0.35);
}

.btn-grad:hover {
  transform: translateY(-2px);
  background: var(--pink-deep);
  box-shadow: 0 12px 34px rgba(255, 87, 164, 0.45);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--line-strong);
}

.btn-ghost:hover { border-color: var(--ink); }

.btn-line {
  width: 100%;
  background: transparent;
  border: 1.5px solid var(--ink);
}

.btn-line:hover {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 87, 164, 0.35);
}

.btn-sm { padding: 9px 20px; font-size: 0.84rem; }

.theme-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}

.theme-btn:hover { border-color: var(--pink); color: var(--pink-deep); }

.btn[disabled] { opacity: 0.55; cursor: wait; transform: none; }

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(104px, 14vh, 150px) 24px 30px;
  text-align: center;
}

.hero > :not(.hero-rain) { position: relative; z-index: 1; }

.hero-logo {
  display: block;
  margin: 0 auto;
  width: clamp(230px, 32vw, 340px);
  height: auto;
  filter: drop-shadow(0 22px 40px rgba(255, 87, 164, 0.22));
  animation: logo-float 6s ease-in-out infinite;
}

@keyframes logo-float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1deg); }
}

.hero-h1 {
  margin-top: 26px;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero-sub {
  margin: 22px auto 0;
  max-width: 540px;
  font-size: clamp(1rem, 1.6vw, 1.1rem);
  color: var(--dim);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.ip-chip { font-family: "JetBrains Mono", Consolas, monospace; }

.ip-copy { font-size: 0.68rem; letter-spacing: 0.14em; color: var(--pink); }

/* ── Sections ───────────────────────────────────────────────────── */

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 120px) clamp(20px, 4vw, 40px) 0;
}

.section-head { max-width: 640px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.section-sub { margin-top: 14px; color: var(--dim); }

/* ── Cards ──────────────────────────────────────────────────────── */

.rank-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 18px;
  align-items: start;
}

.sub-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  align-items: start;
  max-width: 860px;
}

.card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-pop);
}

/* Featured tiers go on the contrast surface — premium shelf. */
.card-featured {
  background: var(--c-bg);
  border-color: var(--c-bg);
  color: var(--c-text);
}

.card-featured:hover { border-color: var(--pink); }

.card-featured .price { color: var(--c-text); }
.card-featured .perks { color: var(--c-dim); }
.card-featured .perks b { color: var(--c-text); }
.card-featured .card-top { border-bottom-color: var(--c-line); }
.card-featured .perks code {
  color: #ff9ec9;
  background: rgba(255, 87, 164, 0.14);
  border-color: rgba(255, 87, 164, 0.25);
}

.chip {
  position: absolute;
  top: -12px;
  right: 20px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 164, 0.4);
}

.chip-line {
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  color: var(--dim);
  box-shadow: none;
}

.card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1.5px solid var(--line);
}

.crest {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 12px color-mix(in srgb, var(--accent) 45%, transparent));
  transition: transform 0.25s ease;
}

.card:hover .crest { transform: scale(1.12) rotate(-3deg); }

.crest-wide { width: 84px; }

.crest-stack { position: relative; width: 56px; height: 56px; flex: none; }

.crest-stack .crest { position: absolute; inset: 0; }

.crest-mini {
  width: 30px !important;
  height: 30px !important;
  inset: auto -10px -8px auto !important;
}

.rank-name {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.price {
  margin-top: 2px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.price .per { font-size: 0.8rem; font-weight: 500; color: var(--dim); letter-spacing: 0; }

.perks {
  list-style: none;
  padding: 18px 0 22px;
  flex: 1;
  font-size: 0.87rem;
  color: var(--dim);
}

.perks li {
  position: relative;
  padding: 4.5px 0 4.5px 22px;
}

.perks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 9px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--accent);
}

.perks b { color: var(--ink); font-weight: 700; }

.perks code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.78rem;
  color: var(--pink-deep);
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  padding: 1px 7px;
  border-radius: 6px;
}

/* ── Home: numbered flow explainer ──────────────────────────────── */

.flow {
  list-style: none;
  max-width: 780px;
  margin-top: 40px;
}

.flow-step {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1.5px solid var(--line);
}

.flow-step:last-child { border-bottom: 1.5px solid var(--line); }

.flow-n {
  flex: none;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.flow-step h4 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
}

.flow-step p { margin-top: 8px; color: var(--dim); font-size: 0.94rem; max-width: 620px; }
.flow-step b { color: var(--ink); font-weight: 700; }

.flow code, .note-card code, .section-sub code, .eco-col code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.82rem;
  color: var(--pink-deep);
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  padding: 1px 7px;
  border-radius: 6px;
}

.note-card {
  max-width: 780px;
  margin-top: 34px;
  padding: 20px 24px;
  border: 1.5px solid var(--pink-line);
  border-radius: 16px;
  background: var(--pink-soft);
  color: var(--dim);
  font-size: 0.94rem;
}

.note-card b { color: var(--ink); }

/* ── Home: events showcase (expanding panels) ───────────────────── */

.showcase {
  display: flex;
  gap: 14px;
  margin-top: 44px;
  height: clamp(430px, 58vh, 560px);
}

.show-panel {
  position: relative;
  flex: 1;
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  background: #0d0b10;
  box-shadow: var(--shadow-card);
  transition: flex 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.show-panel.active { flex: 4.4; }

.show-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.show-panel.active .show-bg { transform: scale(1.045); }

.show-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(8, 5, 12, 0.88) 0%, rgba(8, 5, 12, 0.28) 45%, rgba(8, 5, 12, 0.05) 72%);
}

.show-tag {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.92;
  white-space: nowrap;
  transition: opacity 0.3s;
}

.show-panel.active .show-tag { opacity: 0; }

.show-info {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  color: #fff;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease 0.18s,
              transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.show-panel.active .show-info { opacity: 1; transform: none; }

.show-info h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  font-weight: 700;
}

.show-info h3::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  margin-top: 9px;
}

.show-info p {
  margin-top: 11px;
  max-width: 500px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #d9d4e0;
}

.show-info b { color: #fff; }

.show-info code {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.8rem;
  color: #ff9ec9;
  background: rgba(255, 87, 164, 0.16);
  border: 1px solid rgba(255, 87, 164, 0.3);
  padding: 1px 7px;
  border-radius: 6px;
}

/* KOTH has no screenshot yet — it gets a gold-storm gradient panel. */
.show-koth {
  background: radial-gradient(130% 120% at 25% 0%,
      #3a2c0d 0%, #1a1207 55%, #0d0a08 100%);
}

.show-koth::before {
  content: "⚔";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(4rem, 9vw, 7.5rem);
  color: rgba(240, 196, 60, 0.22);
}

@media (max-width: 820px) {
  .showcase { flex-direction: column; height: auto; }
  .show-panel { flex: none; height: 62px; }
  .show-panel.active { flex: none; height: 350px; }
  .show-tag {
    writing-mode: horizontal-tb;
    transform: none;
    left: 22px;
    top: 19px;
    bottom: auto;
  }
}

/* ── Lightbox (full-resolution screenshots) ─────────────────────── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 4, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  cursor: zoom-out;
  animation: lb-in 0.25s ease;
}

@keyframes lb-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox figure {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox img {
  max-width: 100%;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
  animation: lb-img-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes lb-img-in {
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: none; }
}

.lightbox figcaption {
  text-align: center;
  color: #d9d4e0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.lightbox-close:hover { border-color: var(--pink); background: rgba(255, 87, 164, 0.2); }

/* ── Home: crates spotlight + framed fishing shot ───────────────── */

.spotlight {
  position: relative;
  margin-top: 40px;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
}

.spotlight img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  transition: transform 5s ease;
}

.spotlight:hover img { transform: scale(1.07); }

.spotlight figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 30px 28px 20px;
  background: linear-gradient(to top, rgba(8, 5, 12, 0.85), transparent);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spot-eyebrow {
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--pink);
}

.spot-title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
}

.eco-split {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4.5vw, 56px);
  align-items: center;
}

.eco-split .eco-grid {
  margin-top: 0;
  grid-template-columns: 1fr;
  max-width: none;
}

.framed { position: relative; margin: 0 18px 18px 0; cursor: zoom-in; }

.framed::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--pink);
  border-radius: var(--r);
  z-index: 0;
}

.framed img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r);
  box-shadow: var(--shadow-pop);
  transform: rotate(-2deg);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.framed:hover img { transform: rotate(0deg) scale(1.02); }

.framed-tag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  background: #0d0b10;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: 999px;
  transform: rotate(-2deg);
}

@media (max-width: 860px) {
  .eco-split { grid-template-columns: 1fr; }
}

/* ── Home: loot tables ──────────────────────────────────────────── */

.sub-head {
  margin-top: 56px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sub-head small {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0;
}

.tbl-wrap {
  margin-top: 20px;
  overflow-x: auto;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

/* Long loot tables collapse to a teaser; the button below reveals the rest. */
.tbl-collapse {
  position: relative;
  max-height: 430px;
  overflow: hidden;
  transition: max-height 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.tbl-collapse::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 140px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
  transition: opacity 0.4s;
}

.tbl-collapse.open { max-height: 6000px; }
.tbl-collapse.open::after { opacity: 0; }

.tbl-toggle {
  display: block;
  margin: 16px auto 0;
}

.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 640px;
}

.tbl th {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: left;
  color: var(--dim);
  background: var(--bg-soft);
  padding: 13px 18px;
  border-bottom: 1.5px solid var(--line);
}

.tbl td {
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  vertical-align: top;
  line-height: 1.45;
}

.tbl tr:last-child td { border-bottom: none; }

.tbl td:first-child {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}

.tbl td:nth-child(n+3) { white-space: nowrap; }

.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: var(--pink-soft); }

/* ── Home: class cards, economy columns ─────────────────────────── */

.card-tag {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.eco-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  max-width: 980px;
}

.eco-col {
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}

.eco-col h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
}

.eco-col h4::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: var(--pink);
  margin-right: 10px;
  vertical-align: middle;
}

/* ── Home: store CTA band ───────────────────────────────────────── */

.band {
  max-width: 1140px;
  margin: clamp(90px, 13vh, 130px) auto 0;
  padding: clamp(48px, 7vw, 80px) 32px;
  background: var(--c-bg);
  border-radius: 28px;
  text-align: center;
  color: var(--c-text);
}

.band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.band p {
  margin: 16px auto 0;
  max-width: 480px;
  color: var(--c-dim);
  font-size: 0.95rem;
}

.band .btn { margin-top: 30px; }

/* ── Rank upgrade picker ────────────────────────────────────────── */

.upgrade-card {
  margin-top: 40px;
  max-width: 860px;
  padding: 28px;
}

.upgrade-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.upgrade-field { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 150px; }

.upgrade-field span, .upgrade-price span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.upgrade-field select {
  appearance: none;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}

.upgrade-field select:focus { border-color: var(--pink); }

.upgrade-arrow {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pink);
  padding-bottom: 10px;
}

.upgrade-price { display: flex; flex-direction: column; gap: 8px; min-width: 90px; }

.upgrade-price b {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.upgrade-note { margin-top: 18px; font-size: 0.85rem; color: var(--dim); }

/* ── Steps ──────────────────────────────────────────────────────── */

.section-steps { padding-top: clamp(70px, 10vh, 100px); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  border-top: 1.5px solid var(--line);
  padding-top: 40px;
}

.step-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--pink);
}

.step h4 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}

.step p { margin-top: 8px; font-size: 0.88rem; color: var(--dim); max-width: 300px; }

/* ── FAQ ────────────────────────────────────────────────────────── */

.faq { margin-top: 38px; max-width: 720px; }

.faq details { border-top: 1.5px solid var(--line); }

.faq details:last-child { border-bottom: 1.5px solid var(--line); }

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.2s;
}

.faq summary:hover { color: var(--pink); }

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--pink);
  transition: transform 0.25s ease;
}

.faq details[open] summary::after { transform: rotate(45deg); }

.faq details p {
  padding: 0 4px 22px;
  color: var(--dim);
  font-size: 0.92rem;
  max-width: 620px;
}

/* ── Footer: black merch footer ─────────────────────────────────── */

.footer {
  margin-top: clamp(90px, 13vh, 140px);
  background: var(--c-bg);
  color: var(--c-text);
  overflow: hidden;
  position: relative;
}

.footer-mark {
  position: absolute;
  bottom: -0.30em;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(9rem, 26vw, 22rem);
  letter-spacing: 0.02em;
  line-height: 1;
  color: rgba(255, 87, 164, 0.10);
  pointer-events: none;
  user-select: none;
}

.footer-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px clamp(20px, 4vw, 40px) 44px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-logo { width: 160px; height: auto; }

.footer-brand p { margin-top: 14px; color: var(--c-dim); font-size: 0.9rem; }

.footer-cols { display: flex; gap: clamp(40px, 8vw, 100px); }

.footer-cols h5 {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 14px;
}

.footer-cols a {
  display: block;
  color: var(--c-dim);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-cols a:hover { color: var(--c-text); }

.footer-line {
  position: relative;
  border-top: 1px solid var(--c-line);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 40px) 26px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  color: var(--c-dim);
}

/* ── Modal ──────────────────────────────────────────────────────── */

.modal-backdrop {
  position: fixed;
  inset: 0;
  /* Above the cart drawer (110) — the username step is opened FROM the cart,
     so it has to sit on top of it rather than behind its blur. */
  z-index: 130;
  background: rgba(13, 11, 16, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  /* Transitions rather than a one-shot animation, so closing eases out too. */
  opacity: 0;
  transition: opacity 0.24s ease;
}

.modal-backdrop.open { opacity: 1; }

/* Only one blurred layer at a time: while the modal is up, the cart behind
   it drops its own blur and dimming instead of stacking a second pass. */
body.modal-open .cart-backdrop {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.modal {
  background: var(--bg);
  border-radius: 24px;
  padding: 34px 32px;
  width: min(430px, 100%);
  box-shadow: 0 40px 100px rgba(20, 10, 25, 0.35);
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.26s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.open .modal { opacity: 1; transform: none; }

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-sub { margin-top: 8px; color: var(--dim); font-size: 0.88rem; }
.modal-sub b { color: var(--ink); }

.modal input {
  margin-top: 20px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg-soft);
  color: var(--ink);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.modal input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 87, 164, 0.15);
}

.modal-err { margin-top: 8px; color: var(--pink-deep); font-size: 0.8rem; }

.modal-actions {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Toast ──────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 120;
  background: var(--c-bg);
  color: var(--c-text);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 16px 50px rgba(20, 10, 25, 0.35);
  animation: toast-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: min(92vw, 560px);
  text-align: center;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ── Reveal animation: blur-fade rise, extra smooth ─────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(7px);
}

.reveal.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s ease;
}

.rank-grid .reveal.in:nth-child(2) { transition-delay: 0.06s; }
.rank-grid .reveal.in:nth-child(3) { transition-delay: 0.12s; }
.rank-grid .reveal.in:nth-child(4) { transition-delay: 0.18s; }
.rank-grid .reveal.in:nth-child(5) { transition-delay: 0.24s; }

/* ── Motion & responsive ────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .ticker-track, .hero-logo { animation: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
  html { scroll-behavior: auto; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .rank-grid { grid-template-columns: 1fr; }
  .card-featured { order: -1; }
  .footer-inner { flex-direction: column; }
}

/* ── Store: ?debug diagnostics panel ────────────────────────────── */

#tebex-debug {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 400;
  max-width: min(400px, calc(100vw - 28px));
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(13, 11, 16, 0.94);
  color: #fff;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.74rem;
  line-height: 1.5;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#tebex-debug b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink);
}

.dbg-row { display: flex; align-items: baseline; gap: 8px; }

.dbg-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  background: #f0c43c;
}

.dbg-dot.ok  { background: #38e08a; }
.dbg-dot.bad { background: #ff5a5a; }

.dbg-k { color: #b9b3c2; min-width: 150px; }
.dbg-v { color: #fff; word-break: break-word; }

/* ── Store: currency code beside a price ────────────────────────── */

.price .cur {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-left: 1px;
}

.card-featured .price .cur { color: var(--c-dim); }

/* ── Store: tier comparison table ───────────────────────────────── */

.compare td:not(:first-child),
.compare th:not(:first-child) { text-align: center; }

.compare td:first-child { white-space: normal; }

/* The top tier gets the same emphasis its card has. */
.compare td:last-child, .compare th:last-child {
  background: var(--pink-soft);
  color: var(--ink);
  font-weight: 600;
}

.compare th:last-child { color: var(--pink-deep); }

/* ── Store: quantity picker on a product card ───────────────────── */

/* .upgrade-field carries flex:1 for the upgrade row; inside a product card
   that would fight .perks for the leftover height. */
.qty-field {
  flex: none;
  margin-bottom: 16px;
  gap: 6px;
}

/* ── Store: cart button in the nav ──────────────────────────────── */

.cart-btn { position: relative; }

.cart-btn.has-items { border-color: var(--pink); color: var(--pink-deep); }

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  margin-left: 8px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

/* ── Store: cart drawer ─────────────────────────────────────────── */

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(13, 11, 16, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.24s ease, background-color 0.24s ease;
}

.cart-backdrop.open { opacity: 1; }

.cart-panel {
  width: min(420px, 100%);
  height: 100%;
  background: var(--bg);
  border-left: 1.5px solid var(--line);
  display: flex;
  flex-direction: column;
  box-shadow: -30px 0 90px rgba(20, 10, 25, 0.28);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-backdrop.open .cart-panel { transform: none; }

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 26px 18px;
  border-bottom: 1.5px solid var(--line);
}

.cart-head h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-close {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s;
}

.cart-close:hover { border-color: var(--pink); color: var(--pink-deep); }

.cart-lines { flex: 1; overflow-y: auto; padding: 8px 26px; }

.cart-empty { padding: 34px 0; color: var(--dim); font-size: 0.9rem; text-align: center; }

.cart-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line:last-child { border-bottom: none; }

.cart-line-main { display: flex; flex-direction: column; gap: 3px; }

.cart-line-main b {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-line-main span { font-size: 0.88rem; color: var(--dim); font-weight: 600; }

.cart-line-side { display: flex; align-items: center; gap: 10px; }

.qty {
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 2px;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover { background: var(--pink-soft); color: var(--pink-deep); }

.qty-n {
  min-width: 20px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-remove {
  border: none;
  background: transparent;
  color: var(--dim);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 4px;
  transition: color 0.2s;
}

.cart-remove:hover { color: var(--pink-deep); }

.cart-foot { padding: 20px 26px 26px; border-top: 1.5px solid var(--line); }

.cart-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cart-total-row span {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.cart-total-row b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cart-note { margin-bottom: 14px; font-size: 0.8rem; color: var(--dim); }

.cart-foot .btn { width: 100%; }

body.cart-open, body.modal-open { overflow: hidden; }

/* Toasts must clear the modal (130), or checkout errors land behind it. */
.toast { z-index: 150; }

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal, .cart-backdrop, .cart-panel { transition: none !important; }
}

/* ── Store: username verification row ───────────────────────────── */

.name-check {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  font-size: 0.83rem;
  color: var(--dim);
}

.name-check img { border-radius: 4px; image-rendering: pixelated; }

.name-check.good { color: #1c8b57; }
.name-check.good b { color: var(--ink); }
.name-check.bad { color: var(--pink-deep); }

:root[data-theme="dark"] .name-check.good { color: #4fd39a; }

/* ── Store: footer legal links ──────────────────────────────────── */

.footer-legal { display: flex; gap: 18px; }

.footer-legal a {
  color: var(--c-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--c-text); }

@media (max-width: 720px) {
  .cart-panel { width: 100%; }
}

/* ══════════════════════════════════════════════════════════════════
   Artistic layer — ambient weather per tier, hero drizzle, shine,
   real-value framing, trust strip, cart micro-interactions.
   ══════════════════════════════════════════════════════════════════ */

/* ── Hero drizzle: it's the Rainy Network, so it drizzles ─────────── */

.hero-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    linear-gradient(to bottom, rgba(255, 87, 164, 0.30), rgba(255, 87, 164, 0)),
    linear-gradient(to bottom, rgba(180, 143, 212, 0.30), rgba(180, 143, 212, 0)),
    linear-gradient(to bottom, rgba(255, 87, 164, 0.24), rgba(255, 87, 164, 0)),
    linear-gradient(to bottom, rgba(255, 87, 164, 0.30), rgba(255, 87, 164, 0)),
    linear-gradient(to bottom, rgba(180, 143, 212, 0.26), rgba(180, 143, 212, 0)),
    linear-gradient(to bottom, rgba(255, 87, 164, 0.22), rgba(255, 87, 164, 0));
  background-repeat: no-repeat;
  background-size: 2px 16px, 2px 11px, 2px 19px, 2px 12px, 2px 15px, 2px 10px;
  animation: hero-drizzle 3.4s linear infinite;
  opacity: 0.55;
}

@keyframes hero-drizzle {
  0% {
    background-position: 8% -10%, 22% -22%, 38% -6%, 58% -16%, 76% -8%, 92% -24%;
  }
  100% {
    background-position: 8% 110%, 22% 122%, 38% 106%, 58% 116%, 76% 108%, 92% 124%;
  }
}

/* ── Per-card ambient weather overlay ─────────────────────────────
   .wx is the first child of a product card: clipped to the card's
   radius so the .chip riding the card edge never gets cut. The two
   pseudos draw the tier's weather; the <i> inside is the hover shine. */

.wx {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.55;
  transition: opacity 0.4s ease;
}

.card:hover .wx { opacity: 1; }

/* Card content rides above the weather. The .chip stays absolute and
   already paints above .wx by source order. */
.card > :not(.wx):not(.chip) { position: relative; }

/* Shine sweep across the card on hover. */
.wx i {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -45%;
  width: 38%;
  transform: skewX(-14deg) translateX(0);
  background: linear-gradient(105deg,
      transparent, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
}

.card:hover .wx i { animation: shine 0.85s ease 0.05s both; }

.card-featured .wx i {
  background: linear-gradient(105deg,
      transparent, rgba(255, 255, 255, 0.14), transparent);
}

@keyframes shine {
  from { transform: skewX(-14deg) translateX(-10%); }
  to   { transform: skewX(-14deg) translateX(440%); }
}

/* Sunny — a warm glow and slowly turning rays in the corner. */
.card[data-item="sunny"] .wx::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 190px;
  height: 190px;
  background: radial-gradient(circle, rgba(255, 215, 90, 0.38), transparent 62%);
  animation: sun-pulse 5s ease-in-out infinite;
}

.card[data-item="sunny"] .wx::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg,
      rgba(255, 215, 90, 0.16) 0deg 8deg, transparent 8deg 26deg);
  -webkit-mask: radial-gradient(circle, #000 28%, transparent 66%);
  mask: radial-gradient(circle, #000 28%, transparent 66%);
  animation: sun-spin 44s linear infinite;
}

@keyframes sun-spin { to { transform: rotate(360deg); } }
@keyframes sun-pulse { 50% { opacity: 0.55; } }

/* Windy — streaks gusting across the card. */
.card[data-item="windy"] .wx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, transparent, rgba(46, 221, 181, 0.38), transparent),
    linear-gradient(90deg, transparent, rgba(46, 221, 181, 0.26), transparent),
    linear-gradient(90deg, transparent, rgba(46, 221, 181, 0.32), transparent);
  background-repeat: no-repeat;
  background-size: 90px 2px, 55px 2px, 120px 2px;
  animation: wind-gust 4.6s linear infinite;
}

@keyframes wind-gust {
  0%   { background-position: -130px 22%, -90px 46%, -160px 72%; }
  100% { background-position: calc(100% + 130px) 22%, calc(100% + 90px) 46%, calc(100% + 160px) 72%; }
}

/* Cloudy — two soft clouds drifting past each other. */
.card[data-item="cloudy"] .wx::before,
.card[data-item="cloudy"] .wx::after {
  content: "";
  position: absolute;
  height: 34px;
  border-radius: 50%;
  filter: blur(7px);
}

.card[data-item="cloudy"] .wx::before {
  top: 14%;
  left: -30px;
  width: 110px;
  background: radial-gradient(closest-side, rgba(185, 190, 205, 0.55), transparent);
  animation: cloud-drift 16s ease-in-out infinite alternate;
}

.card[data-item="cloudy"] .wx::after {
  top: 34%;
  right: -40px;
  width: 90px;
  background: radial-gradient(closest-side, rgba(185, 190, 205, 0.4), transparent);
  animation: cloud-drift 21s ease-in-out infinite alternate-reverse;
}

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(90px); }
}

/* Rainy — rain falling down the card. */
.card[data-item="rainy"] .wx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(61, 102, 250, 0.42), rgba(61, 102, 250, 0)),
    linear-gradient(to bottom, rgba(61, 102, 250, 0.30), rgba(61, 102, 250, 0)),
    linear-gradient(to bottom, rgba(61, 102, 250, 0.38), rgba(61, 102, 250, 0)),
    linear-gradient(to bottom, rgba(61, 102, 250, 0.26), rgba(61, 102, 250, 0)),
    linear-gradient(to bottom, rgba(61, 102, 250, 0.34), rgba(61, 102, 250, 0));
  background-repeat: no-repeat;
  background-size: 2px 14px, 2px 10px, 2px 16px, 2px 9px, 2px 12px;
  animation: rain-fall 1.9s linear infinite;
}

@keyframes rain-fall {
  0%   { background-position: 12% -18%, 34% -34%, 55% -10%, 72% -28%, 90% -42%; }
  100% { background-position: 12% 118%, 34% 134%, 55% 110%, 72% 128%, 90% 142%; }
}

/* Stormy — rain on the dark card, plus a lightning flicker. */
.card[data-item="stormy"] .wx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to bottom, rgba(91, 140, 255, 0.55), rgba(91, 140, 255, 0)),
    linear-gradient(to bottom, rgba(91, 140, 255, 0.38), rgba(91, 140, 255, 0)),
    linear-gradient(to bottom, rgba(91, 140, 255, 0.48), rgba(91, 140, 255, 0)),
    linear-gradient(to bottom, rgba(91, 140, 255, 0.32), rgba(91, 140, 255, 0)),
    linear-gradient(to bottom, rgba(91, 140, 255, 0.44), rgba(91, 140, 255, 0)),
    linear-gradient(to bottom, rgba(91, 140, 255, 0.36), rgba(91, 140, 255, 0));
  background-repeat: no-repeat;
  background-size: 2px 16px, 2px 11px, 2px 18px, 2px 10px, 2px 14px, 2px 12px;
  animation: storm-rain 1.5s linear infinite;
}

@keyframes storm-rain {
  0%   { background-position: 8% -20%, 26% -36%, 44% -12%, 62% -30%, 78% -44%, 93% -16%; }
  100% { background-position: 8% 120%, 26% 136%, 44% 112%, 62% 130%, 78% 144%, 93% 116%; }
}

.card[data-item="stormy"] .wx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 70% 0%, rgba(91, 140, 255, 0.35), transparent 60%);
  opacity: 0;
  animation: storm-flash 7s linear infinite;
}

@keyframes storm-flash {
  0%, 86%, 93%, 100% { opacity: 0; }
  87.5%, 88.5%       { opacity: 1; }
  90%                { opacity: 0.2; }
  91%                { opacity: 0.7; }
}

/* Keys & subscriptions — sparkles twinkling in the card's accent. */
.card[data-item="key_rainy"] .wx::before,
.card[data-item="key_cosmetics"] .wx::before,
.card[data-item="plus"] .wx::before,
.card[data-item="stormyplus"] .wx::before,
.card[data-item="key_rainy"] .wx::after,
.card[data-item="key_cosmetics"] .wx::after,
.card[data-item="plus"] .wx::after,
.card[data-item="stormyplus"] .wx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, currentColor 0 1.6px, transparent 2.4px),
    radial-gradient(circle, currentColor 0 1.1px, transparent 1.9px),
    radial-gradient(circle, currentColor 0 1.4px, transparent 2.2px),
    radial-gradient(circle, currentColor 0 1px, transparent 1.7px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 4px 4px, 5px 5px, 4px 4px;
  animation: twinkle 3.8s ease-in-out infinite;
}

.card[data-item="key_rainy"] .wx::before,
.card[data-item="key_cosmetics"] .wx::before,
.card[data-item="plus"] .wx::before,
.card[data-item="stormyplus"] .wx::before {
  background-position: 16% 20%, 74% 16%, 86% 52%, 30% 68%;
}

.card[data-item="key_rainy"] .wx::after,
.card[data-item="key_cosmetics"] .wx::after,
.card[data-item="plus"] .wx::after,
.card[data-item="stormyplus"] .wx::after {
  background-position: 44% 12%, 92% 32%, 62% 60%, 12% 44%;
  animation-delay: -1.9s;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.12; }
  50%      { opacity: 0.65; }
}

/* ── Trust strip: three true facts, no theater ────────────────────── */

.trust {
  max-width: 1100px;
  margin: 44px auto 0;
  padding: 0 clamp(20px, 4vw, 40px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.trust-item svg {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  color: var(--pink);
}

.trust-item b {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-item span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.45;
}

@media (max-width: 820px) {
  .trust { grid-template-columns: 1fr; }
}

/* ── Real-value line on rank / subscription cards ─────────────────
   Filled by store.js from the live key prices — never hand-typed. */

.value-line {
  margin: -8px 0 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--pink-soft);
  border: 1px solid var(--pink-line);
  font-size: 0.8rem;
  color: var(--dim);
  line-height: 1.4;
}

.value-line b { color: var(--pink-deep); font-weight: 700; }

.card-featured .value-line {
  background: rgba(255, 87, 164, 0.10);
  border-color: rgba(255, 87, 164, 0.22);
  color: var(--c-dim);
}

.card-featured .value-line b { color: #ff9ec9; }

/* ── Upgrade anchor: destination full price, struck through ──────── */

.up-full {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: var(--pink);
}

.upgrade-anchor b { color: var(--pink-deep); }

/* ── Cart micro-interactions ──────────────────────────────────────── */

.fly-ghost {
  position: fixed;
  z-index: 300;
  width: 44px;
  height: 44px;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
  transition: transform 0.68s cubic-bezier(0.3, 0.7, 0.4, 1), opacity 0.68s ease;
  will-change: transform;
}

.fly-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 4px 14px rgba(255, 87, 164, 0.5);
}

.cart-count.bump { animation: badge-bump 0.45s cubic-bezier(0.3, 1.6, 0.4, 1); }

@keyframes badge-bump {
  0%   { transform: scale(0.4); }
  60%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ── Motion opt-out for the artistic layer ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .accent-text,
  .wx::before,
  .wx::after,
  .wx i,
  .cart-count.bump { animation: none !important; }
  /* Frozen rain reads as visual noise — drop it rather than pause it. */
  .hero-rain,
  .fly-ghost,
  .card[data-item="rainy"] .wx::before,
  .card[data-item="stormy"] .wx::before { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   Home — futuristic-light layer (index.html only; every class here is
   new so the store page is untouched). Light canvas, HUD monospace
   tags, corner ticks, real-data stat tiles, gradient timeline.
   ══════════════════════════════════════════════════════════════════ */

/* ── Ambient: faint dot matrix fading from the top of the viewport ── */

.dots {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
      color-mix(in srgb, var(--ink) 8%, transparent) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 55% at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(120% 55% at 50% 0%, #000, transparent 78%);
}

/* ── Scroll progress hairline riding the top edge ─────────────────── */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  z-index: 70;
  background: linear-gradient(90deg, var(--pink), #b48fd4, #5b8cff);
  transform-origin: 0 0;
  transform: scaleX(var(--sp, 0));
  pointer-events: none;
}

/* ── Hero: asymmetric, left copy / floating wordmark right ────────── */

.hero-home {
  max-width: 1200px;
  text-align: left;
  padding: clamp(112px, 15vh, 165px) clamp(20px, 4vw, 40px) 30px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hero-tag {
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.hero-home .hero-h1 {
  margin-top: 16px;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 0.98;
}

.hero-home .hero-sub { margin: 24px 0 0; }

.hero-home .hero-actions { justify-content: flex-start; margin-top: 32px; }

.hero-side { justify-self: center; }

.hero-home .hero-logo { width: clamp(210px, 26vw, 330px); }

/* Staggered entrance — one shot on load. */
.hero-copy > *,
.hero-side {
  opacity: 0;
  transform: translateY(18px);
  animation: hero-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-copy > :nth-child(1) { animation-delay: 0.02s; }
.hero-copy > :nth-child(2) { animation-delay: 0.1s; }
.hero-copy > :nth-child(3) { animation-delay: 0.2s; }
.hero-copy > :nth-child(4) { animation-delay: 0.3s; }
.hero-side  { animation-delay: 0.25s; }

@keyframes hero-rise {
  to { opacity: 1; transform: none; }
}

/* ── Section tags: numbered mono chips with a trailing hairline ───── */

.sec-tag {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}

.sec-tag b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  border: 1.5px solid var(--pink);
  border-radius: 7px;
  color: var(--pink-deep);
  font-weight: 700;
  letter-spacing: 0;
}

.sec-tag::after {
  content: "";
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, var(--pink-line), transparent);
}

.head-x { max-width: 720px; }

.head-x h2 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  letter-spacing: -0.03em;
}

/* ── Gamemode flow as a gradient timeline ─────────────────────────── */

.flow-x { position: relative; }

/* Steps cascade in one after another and nudge right on hover. */
.flow-x .flow-step.in:nth-child(2) { transition-delay: 0.08s; }
.flow-x .flow-step.in:nth-child(3) { transition-delay: 0.16s; }
.flow-x .flow-step.in:nth-child(4) { transition-delay: 0.24s; }
.flow-x .flow-step.in:nth-child(5) { transition-delay: 0.32s; }

.flow-x .flow-step.in:hover { transform: translateX(6px); transition-delay: 0s; }

.eco-grid .reveal.in:nth-child(2) { transition-delay: 0.1s; }

.flow-x::before {
  content: "";
  position: absolute;
  left: 22.25px;
  top: 16px;
  bottom: 16px;
  width: 1.5px;
  background: linear-gradient(180deg, var(--pink), #b48fd4 55%, #5b8cff);
  opacity: 0.4;
}

.flow-x .flow-step,
.flow-x .flow-step:last-child { border: 0; padding: 22px 0; }

.flow-x .flow-n {
  position: relative;
  z-index: 1;
  border-radius: 13px;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 1rem;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.flow-x .flow-step:hover .flow-n {
  border-color: var(--pink);
  color: var(--pink-deep);
  box-shadow: 0 6px 20px rgba(255, 87, 164, 0.2);
}

/* ── Class cards: corner brackets + ghost initial ─────────────────── */

.card-hud::before,
.card-hud::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1.5px solid var(--line-strong);
  transition: border-color 0.25s ease;
  pointer-events: none;
}

.card-hud::before {
  top: 9px;
  left: 9px;
  border-right: 0;
  border-bottom: 0;
  border-radius: 4px 0 0 0;
}

.card-hud::after {
  bottom: 9px;
  right: 9px;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 4px 0;
}

.card-hud:hover::before,
.card-hud:hover::after { border-color: var(--accent); }

/* Class header: name left, pixel class icon right — in flow, no overlap. */
.class-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
}

.class-icon {
  flex: none;
  width: 52px;
  animation: icon-bob 3.8s ease-in-out infinite alternate;
  pointer-events: none;
}

.class-icon svg {
  display: block;
  width: 100%;
  height: auto;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--accent) 45%, transparent));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hud:hover .class-icon svg { transform: scale(1.16) rotate(-8deg); }

@keyframes icon-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(-6px); }
}

/* ── CTA band: slow-panning gradient border ───────────────────────── */

.band-x { position: relative; }

.band-x::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 30px;
  padding: 1.5px;
  background: linear-gradient(120deg, var(--pink), #b48fd4, #5b8cff, var(--pink))
              border-box;
  background-size: 300% 100%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: band-border 9s linear infinite;
  pointer-events: none;
}

@keyframes band-border {
  to { background-position: 300% 0; }
}

/* ── Home responsive + motion opt-out ─────────────────────────────── */

@media (max-width: 860px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-side { order: -1; }
  .hero-home .hero-logo { width: clamp(160px, 38vw, 230px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-side {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .band-x::before,
  .class-icon { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   Home — soul layer. A living sky (pixel storm clouds, puffs,
   twinkles, lightning), giant outlined ghost words per section,
   accent washes on class cards, ✧ cursor trail. CSS/SVG only.
   ══════════════════════════════════════════════════════════════════ */

/* Two extra ambient orbs so the lower page isn't flat white. */
.orb-c {
  top: 60vh;
  left: -30vmax;
  background: radial-gradient(circle, rgba(46, 221, 181, 0.06), transparent 65%);
}

.orb-d {
  top: 120vh;
  right: -30vmax;
  background: radial-gradient(circle, rgba(91, 140, 255, 0.07), transparent 65%);
}

/* ── The sky ──────────────────────────────────────────────────────── */

.sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Soft cloud puffs, breathing sideways. */
.puff {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
}

.puff-a {
  top: 10%;
  left: 4%;
  width: 260px;
  height: 70px;
  background: radial-gradient(closest-side, rgba(216, 168, 180, 0.4), transparent 72%);
  animation: puff-drift 26s ease-in-out infinite alternate;
}

.puff-b {
  top: 30%;
  right: 8%;
  width: 190px;
  height: 54px;
  background: radial-gradient(closest-side, rgba(180, 143, 212, 0.35), transparent 72%);
  animation: puff-drift 34s ease-in-out infinite alternate-reverse;
}

.puff-c {
  bottom: 16%;
  left: 32%;
  width: 230px;
  height: 60px;
  background: radial-gradient(closest-side, rgba(160, 196, 232, 0.35), transparent 72%);
  animation: puff-drift 42s ease-in-out infinite alternate;
}

@keyframes puff-drift {
  from { transform: translateX(0); }
  to   { transform: translateX(56px); }
}

/* Pixel storm clouds crossing the sky, gold bolt and all. */
.pixel-cloud {
  shape-rendering: crispEdges;
  image-rendering: pixelated;
}

.pc-a {
  position: absolute;
  top: 16%;
  left: -120px;
  width: 84px;
  animation: cloud-cross 75s linear infinite;
}

.pc-b {
  position: absolute;
  top: 58%;
  left: -90px;
  width: 54px;
  opacity: 0.75;
  animation: cloud-cross 115s linear infinite;
  animation-delay: -48s;
}

@keyframes cloud-cross {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(100vw + 260px)); }
}

/* Twinkling ✧ pinned in the sky. */
.tw {
  position: absolute;
  font-style: normal;
  font-size: 14px;
  color: var(--pink);
  opacity: 0;
  animation: tw-blink 4.2s ease-in-out infinite;
}

@keyframes tw-blink {
  0%, 100% { opacity: 0; transform: scale(0.6) rotate(0deg); }
  50%      { opacity: 0.85; transform: scale(1) rotate(18deg); }
}

/* A rare, quiet lightning blink in the top-right of the sky. */
.sky::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 45% at 78% 6%, rgba(91, 140, 255, 0.5), transparent 70%);
  opacity: 0;
  animation: sky-flash 17s linear infinite;
}

@keyframes sky-flash {
  0%, 92.4%, 94.6%, 100% { opacity: 0; }
  93%, 93.6%             { opacity: 0.5; }
  94%                    { opacity: 0.12; }
}

/* ── Giant outlined ghost words behind each section ───────────────── */

.section { position: relative; }

.section > :not(.sec-ghost) { position: relative; }

.sec-ghost {
  position: absolute;
  top: clamp(-6px, 1vw, 26px);
  right: -0.5%;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5rem, 14vw, 11.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px color-mix(in srgb, var(--pink) 24%, transparent);
  pointer-events: none;
  user-select: none;
}

/* ── Class cards: a whisper of their accent at the top ────────────── */

.card-hud {
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--accent) 9%, var(--bg)), var(--bg) 55%);
}

/* ── CTA band's pet cloud, bobbing over the corner ────────────────── */

.pc-band {
  position: absolute;
  top: -30px;
  left: 7%;
  width: 74px;
  animation: band-bob 4.5s ease-in-out infinite alternate;
}

@keyframes band-bob {
  from { transform: translateY(0) rotate(-2deg); }
  to   { transform: translateY(-9px) rotate(2deg); }
}

/* ── ✧ cursor trail (spawned by index.html's inline script) ───────── */

.spark {
  position: fixed;
  z-index: 90;
  font-style: normal;
  pointer-events: none;
  opacity: 0.9;
  animation: spark-float 0.95s ease-out forwards;
}

@keyframes spark-float {
  to { transform: translate(var(--dx, 0), -30px) scale(0.5); opacity: 0; }
}

/* ── Soul layer motion opt-out ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .puff, .tw, .sky::after, .pc-band { animation: none !important; }
  .pc-a, .pc-b { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   Subpages — News & Rules (news.html / rules.html)
   ══════════════════════════════════════════════════════════════════ */

/* Compact hero for text pages. */
.hero-page { padding-bottom: 10px; }

.hero-updated {
  margin-top: 20px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Quick-glance chips under the rules hero. */
.rule-chips {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rule-chips span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  color: var(--dim);
}

/* ── News feed ──────────────────────────────────────────────────── */

.news-feed { max-width: 920px; margin-top: 20px; }

.news-item {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: clamp(18px, 4vw, 50px);
  padding: clamp(30px, 4.5vw, 46px) 0;
  border-top: 1.5px solid var(--line);
}

.news-item:last-child { border-bottom: 1.5px solid var(--line); }

.news-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.news-meta time {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.news-tag {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--accent, var(--pink-deep));
  border: 1.5px solid color-mix(in srgb, var(--accent, var(--pink)) 40%, transparent);
  background: color-mix(in srgb, var(--accent, var(--pink)) 9%, transparent);
}

.news-body h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.news-body > p {
  margin-top: 12px;
  color: var(--dim);
  max-width: 62ch;
}

.news-body p b { color: var(--ink); }

.news-body .perks { margin-top: 4px; }

@media (max-width: 720px) {
  .news-item { grid-template-columns: 1fr; gap: 14px; }
  .news-meta { flex-direction: row; align-items: center; }
}

/* ── Rulebook ───────────────────────────────────────────────────── */

.rules-wrap { max-width: 940px; }

.law {
  padding: clamp(36px, 5vw, 54px) 0;
  border-top: 1.5px solid var(--line);
}

.law:last-of-type { border-bottom: 1.5px solid var(--line); }

.law-head { display: flex; align-items: baseline; gap: 18px; }

.law-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  flex: none;
}

.law-head h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
}

.law-sub {
  margin-top: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dim);
}

.law-body { margin-top: 18px; padding-left: clamp(0px, 4vw, 42px); }

.law-body > p {
  margin-top: 14px;
  color: var(--dim);
  max-width: 70ch;
}

.law-body p b { color: var(--ink); }

.law-body .perks { margin-top: 6px; }

.law-body .eco-grid { margin-top: 24px; }

.law-body .note-card { margin-top: 24px; }

.law-body .tbl-wrap { margin-top: 24px; }

/* Inline text links (FAQ answers, note-cards). */
.law-body a, .faq p a, .note-card a, .hero-sub a {
  color: var(--pink-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Document pages (eula.html): quiet, typographic, legal-style ── */

.doc {
  max-width: 740px;
  margin: 0 auto;
  padding: clamp(120px, 16vh, 160px) clamp(22px, 4vw, 40px) clamp(90px, 12vh, 130px);
}

.doc-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pink-deep);
}

.doc h1 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.doc-lede {
  margin-top: 16px;
  font-size: 1.02rem;
  color: var(--dim);
  max-width: 58ch;
  line-height: 1.7;
}

.doc-meta { margin-top: 18px; font-size: 0.82rem; color: var(--dim); }

.doc-notice {
  margin-top: 36px;
  padding: 13px 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
}

.doc h2 {
  margin-top: clamp(46px, 6vh, 62px);
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.doc-ref {
  margin-top: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dim);
}

.doc p { margin-top: 14px; color: var(--dim); line-height: 1.75; }

.doc ul { margin: 12px 0 0; padding-left: 20px; color: var(--dim); }

.doc li { margin-top: 8px; line-height: 1.65; }

.doc li::marker { color: var(--pink); }

.doc b { color: var(--ink); font-weight: 600; }

.doc blockquote {
  margin: 16px 0 0;
  padding: 2px 0 2px 18px;
  border-left: 2px solid var(--pink);
  color: var(--ink);
  font-style: italic;
  line-height: 1.7;
}

.doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--pink);
}

.doc a:hover { color: var(--pink-deep); }

/* Two-button row inside the dark CTA band. */
.band-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.band-actions .btn { margin-top: 0; }

.band .btn-ghost { color: var(--c-text); border-color: var(--c-line); }
.band .btn-ghost:hover { border-color: var(--c-text); }

/* ── Rulebook v2 (2026-08-18) — one law per row, penalty at a glance ── */

.rulebook { list-style: none; }

.rule {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(16px, 3vw, 34px);
  align-items: start;
  padding: clamp(26px, 4vw, 38px) 0;
  border-top: 1.5px solid var(--line);
}

.rule:last-of-type { border-bottom: 1.5px solid var(--line); }

.rule-n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  color: var(--pink-deep);
  padding-top: 7px;
}

.rule-txt h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.rule-txt > p { margin-top: 8px; color: var(--dim); max-width: 66ch; }
.rule-txt p b { color: var(--ink); }

.rule-fine {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--dim);
  opacity: 0.85;
}

.pen {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 4px;
}

.pen-mute  { background: var(--bg-soft); border: 1.5px solid var(--line-strong); color: var(--dim); }
.pen-ban   { background: var(--pink-soft); border: 1.5px solid var(--pink-line); color: var(--pink-deep); }
.pen-black { background: var(--ink); border: 1.5px solid var(--ink); color: var(--bg); }

.rule-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

.rule-tags span {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  color: var(--dim);
  background: var(--bg);
}

.rule-tags .tag-no {
  border-color: var(--pink-line);
  color: var(--pink-deep);
  background: var(--pink-soft);
}

.enforce {
  margin-top: clamp(30px, 5vw, 46px);
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 3.5vw, 34px);
  background: var(--bg-soft);
}

.enforce h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.enforce p { margin-top: 10px; color: var(--dim); max-width: 75ch; }
.enforce p b { color: var(--ink); }
.enforce a { color: var(--pink-deep); font-weight: 600; }

@media (max-width: 720px) {
  .rule { grid-template-columns: auto 1fr; }
  .rule .pen { grid-column: 2; justify-self: start; }
}

/* ── Rules manifesto v3 (2026-08-18) — type poster, no chrome ───── */

.manifesto { list-style: none; max-width: 1060px; margin: 0 auto; }

.mrule {
  position: relative;
  padding: clamp(46px, 7vw, 84px) 0;
  border-top: 1px solid var(--line);
}

.mrule:first-child { border-top: 0; }

.mrule h3 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.85rem, 4.6vw, 3.3rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}

/* The signature: every law ends on a pink full stop. */
.mdot { color: var(--pink); }

.mrule > p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--dim);
  max-width: 52ch;
  font-size: 1.02rem;
}

/* Ghost index — a huge outlined number floating on the empty side. */
.mrule-n {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: clamp(0px, 2vw, 20px);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.6rem, 11vw, 8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pink-line);
  user-select: none;
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.35s ease;
}

.mrule:hover .mrule-n { -webkit-text-stroke-color: var(--pink); }

/* Alternating rhythm: even laws mirror — text right, number left. */
.mrule:nth-child(even) { text-align: right; }
.mrule:nth-child(even) > p { margin-left: auto; }
.mrule:nth-child(even) .mrule-n { right: auto; left: clamp(0px, 2vw, 20px); }

@media (max-width: 720px) {
  .mrule, .mrule:nth-child(even) { text-align: left; }
  .mrule:nth-child(even) > p { margin-left: 0; }
  .mrule-n {
    position: static;
    transform: none;
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--pink-deep);
    -webkit-text-stroke: 0;
  }
}

/* ── Checkout: face cropped live from the player's real Mojang skin ── */
/* Two layers of the same 64px skin ×3: hat (40,8) over face (8,8). */
.mc-face {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: -6px;
  border-radius: 5px;
  background-repeat: no-repeat, no-repeat;
  background-size: 192px auto, 192px auto;
  background-position: -120px -24px, -24px -24px;
  image-rendering: pixelated;
}

/* ── Hero IP chip: address + supported-versions tag ─────────────── */
.hero-ip { margin: 18px 0 4px; }

.ip-ver {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--pink-soft);
  color: var(--pink-deep);
  border: 1px solid var(--pink-line);
}
