@font-face {
  font-family: "Black Han Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/black-han-sans.woff2") format("woff2");
}
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../assets/fonts/rubik.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/plex-mono-600.woff2") format("woff2");
}

:root {
  --bg: #0c0716;
  --bg-2: #120a20;
  --surface: #1a1030;
  --surface-2: #231738;
  --surface-3: #2d1d48;
  --line: rgba(201, 155, 255, 0.14);
  --line-strong: rgba(201, 155, 255, 0.3);
  --text: #ece4f8;
  --muted: #b3a3d3;
  --dim: #8676a8;
  --violet: #8b3dff;
  --violet-deep: #6a2ad1;
  --lilac: #c99bff;
  --lilac-bright: #ecdcff;
  --white: #f8f4ff;
  --ok: #7ee2a8;
  --warn: #ffc670;
  --bad: #ff8b8b;
  --mc-ink: #120821;
  --mc-bevel: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 2px 0 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.3), inset -2px 0 0 rgba(0, 0, 0, 0.14);
  --mc-bevel-soft: inset 0 2px 0 rgba(255, 255, 255, 0.09), inset 2px 0 0 rgba(255, 255, 255, 0.05), inset 0 -3px 0 rgba(0, 0, 0, 0.34), inset -2px 0 0 rgba(0, 0, 0, 0.16);
  --ring: 0 0 0 1px rgba(201, 155, 255, 0.18);
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  --font-display: "Black Han Sans", "Rubik", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --nav-h: 72px;
  --radius: 6px;
  --ease-soft: cubic-bezier(0.2, 0.7, 0.2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--lilac); }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 400; line-height: 1.08; letter-spacing: 0.01em; }
/* the wordmark look from the logo: light on top, purple at the foot, a grainy
   band low on every letter and a dark ledge under it. The layers repeat per line
   so a two-line heading gets the treatment on each line. */
.title {
  text-transform: uppercase;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='64'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 0.20 0 0 0 0 0.10 0 0 0 0 0.32 0 0 0 -4 2.6'/%3E%3C/filter%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0.3' stop-color='%23fff' stop-opacity='0'/%3E%3Cstop offset='0.75' stop-color='%23fff' stop-opacity='0.6'/%3E%3Cstop offset='1' stop-color='%23fff' stop-opacity='1'/%3E%3C/linearGradient%3E%3Cmask id='m'%3E%3Crect width='100%25' height='100%25' fill='url(%23g)'/%3E%3C/mask%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' mask='url(%23m)'/%3E%3C/svg%3E"),
    linear-gradient(115deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, #f8e6fc 0%, #f3d8f8 20%, #dcb4ec 42%, #c396d9 58%, #a47bbf 72%, #74508f 86%, #4f3062 100%);
  background-size: 320px 1.08em, 100% 1.08em, 100% 1.08em;
  background-size: 320px 1lh, 100% 1lh, 100% 1lh;
  background-repeat: repeat, repeat-y, repeat-y;
  -webkit-background-clip: text; background-clip: text;
  color: #dcb4ec; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #3a2452) drop-shadow(0 3px 0 #22143a) drop-shadow(0 8px 12px rgba(0, 0, 0, 0.4));
}
.title .accent { background: none; color: inherit; -webkit-text-fill-color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
::selection { background: var(--violet); color: #fff; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; border-radius: 4px;
  background: var(--lilac); color: var(--mc-ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 900px; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: var(--bg-2); border-left: 1px solid rgba(201, 155, 255, 0.1); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b47cff, #7b36e6);
  border: 2px solid var(--mc-ink); border-radius: 3px;
  box-shadow: var(--mc-bevel);
}
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: #8b3dff var(--bg-2); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 4px;
  border: 2px solid var(--mc-ink);
  font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: var(--mc-bevel), 0 3px 0 var(--mc-ink);
  transition: filter 0.2s ease, transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft), color 0.25s ease;
}
.btn:hover { filter: brightness(1.08); transform: translateY(2px); box-shadow: var(--mc-bevel), 0 1px 0 var(--mc-ink); }
.btn:active { transform: translateY(3px); box-shadow: var(--mc-bevel), 0 0 0 var(--mc-ink); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-primary { background: linear-gradient(180deg, #c39bff, #8b3dff); color: #1b0a33; }
.btn-secondary {
  background: linear-gradient(180deg, #3a2758, #271a3f);
  color: var(--text);
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
}
.btn-secondary:hover { color: #fff; box-shadow: var(--mc-bevel-soft), 0 1px 0 var(--mc-ink); }
.btn-secondary:active { box-shadow: var(--mc-bevel-soft), 0 0 0 var(--mc-ink); }
.btn-lg { padding: 15px 28px; font-size: 15px; }
.btn-sm { padding: 9px 14px; font-size: 12px; }
.btn[disabled], .btn.is-busy { opacity: 0.6; pointer-events: none; }
@media (max-width: 620px) {
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}
.site-nav::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 160%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 4, 16, 0.72) 0%, rgba(8, 4, 16, 0.28) 55%, transparent 100%);
  transition: opacity 0.35s ease;
}
.site-nav.scrolled {
  background: rgba(14, 8, 24, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(0, 0, 0, 0.9);
}
.site-nav.scrolled::before { opacity: 0; }
.nav-inner {
  width: 100%; margin-inline: auto; padding-inline: clamp(14px, 1.6vw, 24px);
  display: flex; align-items: center; gap: clamp(10px, 1.6vw, 22px);
}
.nav-brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--white); text-decoration: none;
  font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: 0.02em;
}
.nav-brand img { width: 42px; height: 42px; object-fit: contain; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-links a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 14px; border-radius: 5px;
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 16px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--white); background: rgba(201, 155, 255, 0.08); }
.nav-links a[aria-current="page"] { color: var(--white); }
.nav-links a[aria-current="page"]::after {
  content: ""; width: 4px; height: 4px; border-radius: 1px; background: var(--lilac); margin-left: 2px;
}
.nav-ico { width: 18px; height: 18px; flex: none; opacity: 0.85; }
.nav-pills { display: flex; align-items: center; gap: 10px; margin-left: auto; flex: none; }
.nav-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 12px 8px 14px; border: 2px solid var(--mc-ink); border-radius: 4px;
  font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.02em;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--mc-bevel), 0 3px 0 var(--mc-ink);
  transition: filter 0.2s ease, transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.nav-pill:hover { filter: brightness(1.08); transform: translateY(2px); box-shadow: var(--mc-bevel), 0 1px 0 var(--mc-ink); }
.nav-pill:active { transform: translateY(3px); box-shadow: var(--mc-bevel), 0 0 0 var(--mc-ink); }
.nav-pill svg { width: 15px; height: 15px; flex: none; }
.pill-ip { background: linear-gradient(180deg, #c39bff, #8b3dff); color: #1b0a33; }
.pill-discord {
  background: linear-gradient(180deg, #3a2758, #271a3f); color: var(--text);
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
}
.pill-discord:hover { box-shadow: var(--mc-bevel-soft), 0 1px 0 var(--mc-ink); }
.pill-discord:active { box-shadow: var(--mc-bevel-soft), 0 0 0 var(--mc-ink); }
.pill-discord svg { width: 17px; height: 17px; color: var(--lilac); }
.pill-store {
  background: linear-gradient(180deg, #f8e6fc 0%, #f3d8f8 20%, #dcb4ec 42%, #c396d9 58%, #a47bbf 72%, #74508f 86%, #4f3062 100%);
  color: #1b0a33; font-family: var(--font-body); font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
}
.pill-store svg { width: 16px; height: 16px; }
.count-chip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; color: #1b0a33; opacity: 0.85; }
.pill-discord .count-chip { color: var(--lilac-bright); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 0;
  border: 2px solid var(--mc-ink); border-radius: 4px; background: linear-gradient(180deg, #3a2758, #271a3f);
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink); cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--white); border-radius: 1px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1320px) {
  .nav-links a { padding: 9px 10px; font-size: 14px; }
  .pill-ip .ip-text { display: none; }
}
@media (max-width: 1100px) {
  .nav-toggle { display: flex; order: 3; margin-left: 0; }
  .nav-pills { margin-left: auto; order: 2; }
  .nav-links {
    position: fixed; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: #0e0818; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform 0.25s var(--ease-soft), opacity 0.25s ease, visibility 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links a { padding: 13px 12px; font-size: 16px; }
  .nav-brand span { display: none; }
  .pill-discord .count-chip { display: none; }
}
@media (max-width: 460px) {
  .nav-pill { padding: 8px 10px; }
  .pill-ip .count-chip { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 24px) 0 96px; overflow: hidden; isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  background: var(--bg-2) url("../assets/img/hero-scene-2048.webp") center 42% / cover no-repeat;
}
/* the scene stays sharp; a top band for the nav, a bottom fade into the body,
   and a soft vignette so the logo has somewhere quiet to sit */
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 7, 22, 0.55) 0%, rgba(12, 7, 22, 0.08) 22%, rgba(12, 7, 22, 0.05) 60%, rgba(12, 7, 22, 0.86) 92%, var(--bg) 100%),
    radial-gradient(ellipse 46% 52% at 50% 46%, rgba(12, 7, 22, 0.42), rgba(12, 7, 22, 0) 70%);
}
@media (max-width: 1280px) { .hero-bg { background-image: url("../assets/img/hero-scene-1280.webp"); } }
@media (max-width: 768px) { .hero-bg { background-image: url("../assets/img/hero-scene-768.webp"); background-position: center 40%; } }
.hero-mist { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.hero-logo {
  width: min(400px, 68vw); height: auto;
  filter: drop-shadow(0 14px 22px rgba(10, 4, 20, 0.55)) drop-shadow(0 2px 4px rgba(10, 4, 20, 0.5));
  animation: hero-float 6s ease-in-out infinite;
}
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(248, 244, 255, 0.78); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; text-decoration: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}
.hero-cue svg { width: 14px; height: 14px; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

.hero-row { position: relative; display: flex; justify-content: center; }
.hero-panel {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 6px; min-width: 176px;
  padding: 16px 20px; border-radius: 8px;
  background: rgba(18, 8, 33, 0.74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201, 155, 255, 0.2);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.9);
}
.hero-panel-left { right: calc(100% + 28px); }
.hero-panel-right { left: calc(100% + 28px); }
.hp-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.hp-value { font-family: var(--font-mono); font-size: 20px; font-weight: 600; color: var(--white); line-height: 1.1; }
.hero-panel-right { gap: 12px; }
.hp-group { display: flex; flex-direction: column; gap: 4px; }
.hp-copy {
  display: inline-flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--lilac-bright); text-align: left; white-space: nowrap;
}
.hp-copy svg { width: 14px; height: 14px; flex: none; color: var(--lilac); transition: transform 0.2s ease, color 0.2s ease; }
.hp-copy:hover svg { transform: scale(1.15); }
.hp-copy.copied svg { color: var(--ok); }
@media (max-width: 860px) {
  .hero-row { flex-direction: column; align-items: center; gap: 18px; }
  .hero-panel { position: static; transform: none; order: 2; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 16px; min-width: 0; width: min(340px, 100%); padding: 12px 16px; }
  .hero-panel-right { order: 3; flex-direction: column; align-items: stretch; gap: 10px; margin-top: -8px; }
}
.hero-actions { align-self: stretch; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.glass-btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-width: 176px; padding: 15px 28px; border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 12px 30px -16px rgba(0, 0, 0, 0.8);
  color: #fff; font-family: var(--font-body); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-soft);
}
.glass-btn svg { width: 16px; height: 16px; flex: none; }
.glass-btn:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.6); background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08)); }
.glass-btn:active { transform: translateY(1px); }
/* a light sweep every three seconds; the pass itself takes under a second */
.glass-btn::after {
  content: ; position: absolute; top: -40%; bottom: -40%; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 80%);
  transform: skewX(-22deg);
  animation: shine 3s ease-in-out infinite;
}
.hero-btn { position: relative; overflow: hidden; isolation: isolate; min-width: 176px; border-radius: 0; }
.hero-btn::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; left: -70%; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.45) 50%, rgba(255, 255, 255, 0) 80%);
  transform: skewX(-22deg);
  animation: shine 3s ease-in-out infinite;
}
.hero-btn + .glass-btn::after { animation-delay: 0.25s; }
@keyframes shine { 0% { left: -70%; } 28% { left: 130%; } 100% { left: 130%; } }
@media (max-width: 480px) { .glass-btn, .hero-btn { min-width: 0; flex: 1 1 140px; padding: 14px 18px; } }

.accent { background: linear-gradient(90deg, #ecdcff, #b98aff 60%, #c99bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 48px); }
.section-head p { margin: 14px 0 0; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); }
.mono { font-family: var(--font-mono); font-size: 0.92em; color: var(--lilac-bright); }

/* ---------- Realms showcase ---------- */
#modes .container { max-width: 1640px; }
.realm-show {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(26px, 3.5vw, 56px); align-items: center;
}
.realm-card {
  position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; isolation: isolate;
  border: 2px solid var(--mc-ink); background: var(--surface);
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 6px 0 var(--mc-ink), var(--shadow);
}
.realm-art { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease-out; }
.realm-art.is-active { opacity: 1; }
.realm-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-sparks { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.realm-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 7, 22, 0) 55%, rgba(12, 7, 22, 0.45) 100%);
}
.realm-frame {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 155, 255, 0.22);
  background-image:
    linear-gradient(var(--lilac) 0 0), linear-gradient(var(--lilac) 0 0),
    linear-gradient(var(--lilac) 0 0), linear-gradient(var(--lilac) 0 0),
    linear-gradient(var(--lilac) 0 0), linear-gradient(var(--lilac) 0 0),
    linear-gradient(var(--lilac) 0 0), linear-gradient(var(--lilac) 0 0);
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-size: 22px 4px, 4px 22px, 22px 4px, 4px 22px, 22px 4px, 4px 22px, 22px 4px, 4px 22px;
  background-repeat: no-repeat;
}
.realm-title { font-size: clamp(40px, 4.8vw, 68px); line-height: 1; }
.realm-lead { margin: 18px 0 0; color: var(--muted); font-size: clamp(16px, 1.5vw, 19.5px); max-width: 58ch; }
.realm-panel {
  display: grid; margin-top: 30px; padding: 28px 32px;
  border: 2px solid var(--mc-ink); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
}
/* the three captions share one cell, so the panel is always as tall as the
   longest one and the page never jumps when it turns */
.realm-cap { grid-area: 1 / 1; visibility: hidden; }
.realm-cap.is-active { visibility: visible; }
.realm-show.is-static .realm-panel { display: block; }
.realm-show.is-static .realm-cap { visibility: visible; }
.realm-show.is-static .realm-cap + .realm-cap { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.realm-num { font-family: var(--font-mono); font-size: 14px; font-weight: 600; letter-spacing: 0.16em; color: var(--dim); }
.realm-cap h3 { margin: 10px 0 10px; font-size: 36px; text-transform: uppercase; letter-spacing: 0.02em; }
.realm-cap p { margin: 0; color: var(--muted); font-size: 17px; }
.realm-cap .mode-tags { margin-top: 18px; gap: 8px; }
.realm-cap .tag { font-size: 12px; padding: 6px 11px; }
.mode-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 3px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(201, 155, 255, 0.1); color: var(--lilac-bright); border: 1px solid rgba(201, 155, 255, 0.18);
}
@media (max-width: 900px) {
  .realm-show { grid-template-columns: 1fr; }
  .realm-panel { padding: 18px 20px; }
}

/* ---------- Feature tiles ---------- */
.features-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.brand-plate { display: block; width: 100%; height: auto; margin: 0; border: 2px solid var(--mc-ink); border-radius: 8px; box-shadow: var(--ring), 0 5px 0 var(--mc-ink), var(--shadow); }

/* the character stands against the right edge of the page, feet on the
   section's floor */
.grow { position: relative; margin-top: clamp(32px, 4vw, 48px); padding: clamp(20px, 3vw, 32px) 0 clamp(28px, 4vw, 48px); min-height: 460px; display: flex; align-items: center; overflow: hidden; }
.grow > .container { width: 100%; }
.grow-copy { max-width: 620px; position: relative; z-index: 1; }
.grow-copy h2 { font-size: clamp(28px, 4vw, 48px); }
.grow-copy p { margin: 16px 0 24px; color: var(--muted); font-size: clamp(15px, 1.4vw, 17px); }
.grow-art {
  position: absolute; right: 0; bottom: 0; height: min(100%, 460px); width: auto;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.55));
}
@media (max-width: 1100px) { .grow-copy { max-width: 52%; } }
@media (max-width: 760px) {
  .grow { padding-bottom: 0; min-height: 0; display: block; }
  .grow-copy { max-width: none; }
  .grow-art { position: static; display: block; height: 420px; margin: 28px 0 0 auto; }
}

/* ---------- Gens map slideshow ---------- */
.map-split { margin-top: clamp(24px, 3vw, 40px); }
.map-show {
  position: relative; width: 100%; min-width: 0; aspect-ratio: 2 / 1; overflow: hidden; isolation: isolate;
  border: 2px solid var(--mc-ink); border-radius: 8px; background: var(--surface);
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 6px 0 var(--mc-ink), var(--shadow);
}
.map-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease-out; }
.map-slide.is-active { opacity: 1; }
.map-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .map-show { aspect-ratio: 16 / 10; } }

/* ---------- Community ---------- */
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split .section-head { margin-bottom: 0; }
.about-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr); gap: clamp(24px, 4vw, 56px); }
.about-art { min-width: 0; }
@media (max-width: 1100px) { .about-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.community-cta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.community-art { display: flex; justify-content: center; align-items: center; }
.community-art img { width: min(440px, 80%); height: auto; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.55)); }
@media (max-width: 900px) { .split, .about-split { grid-template-columns: 1fr; } .community-art img { width: min(320px, 70%); } }

/* ---------- Store ---------- */
.store-band { position: relative; overflow: hidden; background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pack {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 26px 24px 24px;
  border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
  text-decoration: none; color: inherit;
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--ring), var(--mc-bevel-soft), 0 9px 0 var(--mc-ink), var(--shadow); }
.pack.is-featured { background: linear-gradient(180deg, #3b2762, #241740); }
.pack-flag { position: absolute; top: 14px; right: 14px; }
/* the tag on the popular pack, cut like the buttons */
.shop-card .pack-flag {
  top: 12px; right: 12px; padding: 6px 12px; border: 2px solid var(--mc-ink); border-radius: 3px;
  background: linear-gradient(180deg, #c39bff, #8b3dff); color: #1b0a33;
  font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: var(--mc-bevel), 0 3px 0 var(--mc-ink);
}
.pack-ico { width: 76px; height: 76px; object-fit: contain; }
.pack-amount { font-family: var(--font-display); font-size: 30px; color: var(--white); line-height: 1.1; }
.pack-amount small { display: block; font-family: var(--font-mono); font-weight: 600; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); margin-top: 6px; }
.pack-bonus { color: var(--muted); font-size: 14px; }
.pack-price { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(201, 155, 255, 0.12); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pack-price b { font-family: var(--font-display); font-size: 22px; color: var(--white); }
.pack-price span { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.store-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; }
.store-note p { margin: 0; color: var(--dim); font-size: 14px; max-width: 640px; }
.store-note code { font-family: var(--font-mono); color: var(--lilac-bright); }
.store-fine { margin: 20px 0 clamp(36px, 5vw, 56px); color: var(--dim); font-size: 14px; text-align: center; }
.store-steps { margin-bottom: 26px; }
@media (max-width: 900px) { .packs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .packs { grid-template-columns: 1fr; } }

/* ---------- Content creators ---------- */
.creators-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split-wide { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.creator-card {
  border: 2px solid var(--mc-ink); border-radius: 8px; overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 6px 0 var(--mc-ink), var(--shadow);
}
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; isolation: isolate; background: #000; border-bottom: 2px solid var(--mc-ink); }
.video .realm-frame { z-index: 2; pointer-events: none; }
.creator-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; }
.creator-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.creator-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac); }
.creator-who strong { color: var(--white); font-size: 16px; line-height: 1.3; }
.creator-by { font-size: 13.5px; color: var(--dim); }
.creator-side { display: flex; align-items: center; gap: 12px; flex: none; margin-left: auto; }
.creator-avatar { display: block; flex: none; }
.creator-avatar img { width: 44px; height: 44px; border-radius: 6px; border: 2px solid var(--mc-ink); box-shadow: 0 3px 0 var(--mc-ink); transition: transform 0.15s var(--ease-soft), box-shadow 0.15s var(--ease-soft); }
.creator-avatar:hover img { transform: translateY(2px); box-shadow: 0 1px 0 var(--mc-ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-cover { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease-soft), opacity 0.3s ease; }
.video-cover:hover img { transform: scale(1.03); }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border: 2px solid var(--mc-ink); border-radius: 4px;
  background: linear-gradient(180deg, #c39bff, #8b3dff); color: #1b0a33;
  box-shadow: var(--mc-bevel), 0 4px 0 var(--mc-ink);
  transition: transform 0.2s var(--ease-soft), box-shadow 0.2s var(--ease-soft);
}
.video-play svg { width: 34px; height: 34px; }
.video-cover:hover .video-play { transform: translate(-50%, calc(-50% + 2px)); box-shadow: var(--mc-bevel), 0 2px 0 var(--mc-ink); }
@media (max-width: 900px) { .split-wide { grid-template-columns: 1fr; } .video-play { width: 62px; height: 62px; } }

/* ---------- News teaser + feed ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-teaser {
  display: flex; flex-direction: column; gap: 10px; padding: 22px;
  border: 2px solid var(--mc-ink); border-radius: 8px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.news-teaser:hover { transform: translateY(-3px); box-shadow: var(--ring), var(--mc-bevel-soft), 0 8px 0 var(--mc-ink), var(--shadow); }
.news-teaser-when { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lilac); }
.news-teaser-shot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.news-teaser-text {
  margin: 0; color: var(--text); font-size: 15px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.news-teaser-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lilac); }
.news-teaser-more svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }

.news-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.news-search { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 14px; border: 2px solid var(--mc-ink); border-radius: 6px; background: var(--surface); box-shadow: var(--ring), var(--mc-bevel-soft); }
.news-search svg { width: 16px; height: 16px; color: var(--dim); flex: none; }
.news-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; padding: 8px 0; outline: none; }
.news-search input::placeholder { color: var(--dim); }
.news-clear { border: 0; background: rgba(201, 155, 255, 0.12); color: var(--lilac-bright); border-radius: 4px; padding: 7px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.news-count { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.news-feed { display: grid; gap: 18px; }
/* the feed arrives a moment after the page: the room it will take is held
   from the start, so the footer does not jump down when the posts land */
.js [data-news-loading] .news-feed { min-height: 70vh; }
.js [data-news-loading] .news-tools { display: flex; visibility: hidden; }
.news-post {
  padding: 22px 24px; border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
}
.news-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.news-avatar { width: 40px; height: 40px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-3); }
.news-who { display: flex; flex-direction: column; line-height: 1.25; }
.news-who strong { color: var(--white); font-size: 15px; }
.news-who time { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.news-pin { margin-left: auto; }
.news-body { color: var(--text); font-size: 15.5px; overflow-wrap: anywhere; }
.news-body p { margin: 0 0 0.85em; }
.news-body p:last-child { margin-bottom: 0; }
.news-body h3, .news-body h4, .news-body h5 { margin: 0.9em 0 0.4em; color: var(--white); font-size: 18px; }
.news-body h4 { font-size: 16px; }
.news-body h5 { font-size: 15px; }
.news-body blockquote { margin: 0.6em 0; padding: 8px 14px; border-left: 3px solid var(--violet); background: rgba(201, 155, 255, 0.06); color: var(--muted); }
.news-body pre { margin: 0.6em 0; padding: 12px 14px; border-radius: 4px; background: rgba(0, 0, 0, 0.35); overflow-x: auto; font-family: var(--font-mono); font-size: 13px; }
.news-body code { font-family: var(--font-mono); font-size: 0.92em; background: rgba(0, 0, 0, 0.3); padding: 1px 5px; border-radius: 3px; }
.news-body pre code { background: none; padding: 0; }
.news-items { margin: 0.5em 0; padding-left: 22px; }
.news-items li { margin: 3px 0; }
.news-items li::marker { color: var(--lilac); }
.news-mention { color: var(--lilac-bright); background: rgba(139, 61, 255, 0.22); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.news-emoji { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; }
.news-sub { font-size: 0.85em; color: var(--dim); }
.news-time { font-family: var(--font-mono); font-size: 0.9em; color: var(--lilac-bright); background: rgba(201, 155, 255, 0.1); padding: 0 5px; border-radius: 3px; }
.news-shots { margin-top: 12px; display: grid; gap: 8px; }
.news-shots.is-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.news-shots img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.news-files { list-style: none; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.news-files a { font-family: var(--font-mono); font-size: 12px; padding: 5px 9px; border-radius: 3px; background: rgba(201, 155, 255, 0.1); text-decoration: none; }
.news-embed { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--lilac); border-radius: 4px; background: rgba(0, 0, 0, 0.25); }
.news-embed h3 { font-size: 16px; margin-bottom: 6px; }
.news-embed img { margin-top: 10px; border-radius: 4px; }
.news-hit { background: rgba(201, 155, 255, 0.35); color: inherit; border-radius: 2px; }
.news-state { text-align: center; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); }
.news-state h2 { font-size: 22px; color: var(--white); margin-bottom: 8px; }
.news-more { text-align: center; margin-top: 26px; }

/* ---------- Page band ---------- */
.page-band {
  position: relative; padding: calc(var(--nav-h) + 64px) 0 56px; overflow: hidden; isolation: isolate;
  background: var(--bg-2) url("../assets/img/hero-bg.webp") center / cover no-repeat;
}
.page-band::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 7, 22, 0.72), rgba(12, 7, 22, 0.94));
}
.page-band h1 { font-size: clamp(32px, 5vw, 56px); }
.page-band .lead { margin: 14px 0 0; max-width: 680px; color: var(--muted); font-size: clamp(15px, 1.5vw, 18px); }
.page-main { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 110px); }
/* ---------- Store ---------- */
.store-page { position: relative; padding-top: var(--nav-h); }
/* the blurred scene sits behind the top of the page and fades into the body */
.store-scene {
  position: absolute; inset: 0 0 auto; height: 980px; z-index: 0; pointer-events: none; overflow: hidden;
  background: var(--bg-2) url("../assets/img/hero-scene-blur.webp") center 42% / cover no-repeat;
}
.store-scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 7, 22, 0.55) 0%, rgba(12, 7, 22, 0.42) 30%, rgba(12, 7, 22, 0.78) 62%, var(--bg) 100%);
}
.store-scene .hero-mist { z-index: 1; }
.store-bar { position: relative; z-index: 2; border-bottom: 1px solid rgba(201, 155, 255, 0.16); background: rgba(12, 7, 22, 0.32); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.store-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; max-width: none; padding-inline: clamp(14px, 1.6vw, 24px); }
.store-tabs { display: flex; align-items: center; gap: 4px; }
.store-tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 22px 16px;
  border: 0; background: none; color: var(--muted); font-family: var(--font-body); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: color 0.2s ease;
}
.store-tab svg { width: 14px; height: 14px; opacity: 0.7; }
.store-tab:hover, .store-tab.is-active { color: var(--white); }
.store-tab.is-active::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--lilac), var(--violet)); }
.store-bar-right { display: flex; align-items: center; gap: 10px; }
.basket-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 3px; background: rgba(18, 8, 33, 0.35); color: #1b0a33; font-family: var(--font-mono); font-size: 12px; }
.store-user {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 2px solid var(--mc-ink); border-radius: 4px; cursor: pointer;
  background: linear-gradient(180deg, #3a2758, #271a3f); color: var(--text); font-family: var(--font-body); font-weight: 700; font-size: 13px;
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink); transition: transform 0.15s var(--ease-soft), box-shadow 0.15s var(--ease-soft);
}
.store-user:hover { transform: translateY(2px); box-shadow: var(--mc-bevel-soft), 0 1px 0 var(--mc-ink); }
.store-user img { width: 28px; height: 28px; border-radius: 3px; border: 1px solid var(--mc-ink); image-rendering: pixelated; }
.store-user small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }

/* sign-in modal + basket drawer */
.store-locked { overflow: hidden; }
.store-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(6, 3, 12, 0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.store-modal { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 20px; }
.store-modal-card {
  width: min(460px, 100%); padding: 28px; border-radius: 10px; border: 2px solid var(--mc-ink);
  background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: var(--ring), var(--mc-bevel-soft), 0 6px 0 var(--mc-ink), var(--shadow);
}
.store-modal-card h2 { font-size: 30px; margin-bottom: 10px; }
.store-modal-card p { color: var(--muted); font-size: 15px; }
.store-modal-card .field { display: block; margin: 16px 0 6px; }
.store-modal-error { color: var(--bad); font-size: 13.5px; }
.store-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.basket {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(420px, 100%); display: flex; flex-direction: column;
  border-left: 2px solid var(--mc-ink); background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  box-shadow: -20px 0 50px -30px rgba(0, 0, 0, 0.9);
  transform: translateX(100%); transition: transform 0.3s var(--ease-soft);
}
.basket.is-open { transform: none; }
.basket.is-busy { pointer-events: none; opacity: 0.7; }
.basket-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 12px; }
.basket-head h2 { font-size: 26px; }
.basket-close { width: 40px; height: 40px; display: grid; place-items: center; border: 2px solid var(--mc-ink); border-radius: 4px; background: linear-gradient(180deg, #3a2758, #271a3f); color: var(--text); cursor: pointer; box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink); }
.basket-close svg { width: 16px; height: 16px; }
.basket-user { margin: 0; padding: 0 22px 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); }
.basket-items { flex: 1; overflow-y: auto; padding: 0 22px; display: grid; gap: 10px; align-content: start; }
.basket-item { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(201, 155, 255, 0.05); }
.basket-item img { width: 48px; height: 48px; object-fit: contain; flex: none; }
.basket-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.basket-item-text strong { color: var(--white); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.basket-item-text span { font-family: var(--font-mono); font-size: 13px; color: var(--lilac-bright); }
.basket-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 4px; overflow: hidden; }
.basket-qty button { width: 30px; height: 30px; border: 0; background: rgba(201, 155, 255, 0.1); color: var(--white); font-weight: 800; cursor: pointer; }
.basket-qty button:hover { background: rgba(201, 155, 255, 0.22); }
.basket-qty span { min-width: 30px; text-align: center; font-family: var(--font-mono); font-size: 13px; }
.basket-remove { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; color: var(--dim); cursor: pointer; }
.basket-remove:hover { color: var(--bad); }
.basket-remove svg { width: 14px; height: 14px; }
.basket-empty { margin: 0; padding: 20px 22px; color: var(--dim); font-size: 14.5px; }
.basket-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.basket-total { display: flex; align-items: baseline; justify-content: space-between; }
.basket-total span { color: var(--muted); font-size: 14px; }
.basket-total b {
  font-family: var(--font-display); font-size: 26px;
  background: linear-gradient(180deg, #f8e6fc 0%, #dcb4ec 45%, #b48cd0 75%, #8a63a8 100%);
  -webkit-background-clip: text; background-clip: text; color: #dcb4ec; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #2a1445);
}
.basket-note { margin: 0; font-size: 12.5px; color: var(--dim); }
.basket-foot .btn { width: 100%; }
.basket-status { margin: 0; min-height: 1.2em; font-size: 13px; color: var(--ok); }
.store-chip { padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 4px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--text); background: rgba(12, 7, 22, 0.35); }
.store-wrap { position: relative; z-index: 1; padding-top: 28px; padding-bottom: clamp(64px, 8vw, 110px); }

/* featured product carousel + side column */
.store-featured { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; }
.store-intro {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; min-height: 0; overflow: hidden; border-radius: 10px;
  padding: 30px 30px 64px 44px;
  border: 2px solid var(--mc-ink); background: linear-gradient(180deg, #1d1232, #150c26);
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 6px 0 var(--mc-ink), var(--shadow);
}
.store-intro::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 90% at 100% 60%, rgba(139, 61, 255, 0.2), transparent 65%); }
.store-intro-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.powered {
  position: absolute; left: 44px; bottom: 26px; z-index: 2; display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); text-decoration: none; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.2s ease;
}
.powered:hover { color: var(--white); }
.powered .tebex-logo { width: 52px; height: 25px; color: var(--text); }
.store-intro-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.store-intro-head h2 { font-size: clamp(28px, 2.9vw, 40px); }
.store-intro-head .heart { font-size: 28px; line-height: 1; }
.store-intro-copy p { margin: 0 0 12px; color: var(--muted); font-size: 15.5px; line-height: 1.55; max-width: 60ch; }
.store-intro-copy .btn { margin-top: auto; }
.store-intro-copy .btn:not(:first-child) { margin-top: 12px; }
.store-intro-art { position: relative; z-index: 1; align-self: center; justify-self: end; width: 100%; max-width: 300px; height: auto; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.55)); }
.store-sidecol { display: flex; flex-direction: column; gap: 18px; }
.promo {
  position: relative; flex: 1; overflow: hidden; border-radius: 10px; padding: 26px 26px 24px;
  border: 2px solid var(--mc-ink); background: linear-gradient(180deg, var(--surface-3), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 6px 0 var(--mc-ink), var(--shadow);
}
.promo-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 64%; }
.promo-body h3 { font-size: 26px; line-height: 1.05; }
.promo-chip { padding: 5px 11px; border-radius: 4px; border: 1px solid rgba(201, 155, 255, 0.3); background: rgba(201, 155, 255, 0.12); color: var(--lilac-bright); font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; }
.promo-art { position: absolute; right: 0; bottom: 0; height: 92%; width: auto; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.55)); }
.discord-cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 14px; padding: 30px 24px; min-height: 112px;
  border-radius: 8px; text-decoration: none; color: #fff;
  background: linear-gradient(225deg, #8f7bb8 0%, #4a2f78 42%, #6e3fb0 100%);
  transition: filter 0.2s ease;
}
.discord-cta:hover { filter: brightness(1.1); }
/* the soft light pooled in the right corner, and a sheen that sweeps on hover */
.discord-cta::before {
  content: ""; position: absolute; top: 0; right: 0; width: 63%; height: 100%; pointer-events: none;
  background: radial-gradient(120% 140% at 100% 50%, rgba(248, 244, 255, 0.22), transparent 70%);
}
.discord-cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(248, 244, 255, 0.1) 46%, rgba(248, 244, 255, 0.2) 50%, rgba(248, 244, 255, 0.1) 54%, transparent 60%);
  transform: translateX(-130%); transition: transform 0s;
}
.discord-cta:hover::after { transform: translateX(130%); transition: transform 1.5s cubic-bezier(0.33, 0.06, 0.29, 0.99); }
.discord-cta > * { position: relative; z-index: 1; }
.discord-cta svg { width: 32px; height: 32px; flex: none; color: #fff; }
.discord-cta-text { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; line-height: 1.2; }
.discord-cta-text strong { font-family: var(--font-body); font-size: 24px; font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em; }
.discord-cta-text span { font-size: 13px; font-weight: 600; color: rgba(248, 244, 255, 0.9); }

.store-welcome { padding: clamp(48px, 6vw, 84px) 0 clamp(26px, 3vw, 40px); }
.store-welcome h2 { font-size: clamp(30px, 4vw, 52px); }

/* the packs, as a grid of cards with a round portrait */
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shop-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 28px 22px 24px; text-align: center;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, rgba(201, 155, 255, 0.06), rgba(201, 155, 255, 0.02));
  transition: border-color 0.25s ease, transform 0.3s var(--ease-soft);
}
.shop-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.shop-card.is-featured { background: linear-gradient(180deg, rgba(201, 155, 255, 0.12), rgba(201, 155, 255, 0.04)); border-color: var(--line-strong); }
.shop-ring {
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  border: 3px solid var(--mc-ink); background: radial-gradient(circle at 50% 40%, #3a2460, #1a1030);
  box-shadow: 0 0 0 2px rgba(201, 155, 255, 0.25), 0 4px 0 var(--mc-ink);
}
.shop-ring img { width: 96px; height: 96px; object-fit: contain; }
.shop-card .pack-amount { font-size: 26px; }
.shop-price { display: flex; align-items: baseline; gap: 8px; }
.shop-price b {
  font-family: var(--font-display); font-size: 26px; line-height: 1.1;
  background: linear-gradient(180deg, #f8e6fc 0%, #dcb4ec 45%, #b48cd0 75%, #8a63a8 100%);
  -webkit-background-clip: text; background-clip: text; color: #dcb4ec; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #2a1445);
}
.shop-price span { font-family: var(--font-mono); font-size: 12px; color: var(--lilac); }
.shop-buy { margin-top: 6px; }
.store-page .store-fine { margin: 18px 0 0; text-align: center; }
/* info modules under the packs */
.modules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(28px, 4vw, 44px); }
.module {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 30px 32px 32px;
  border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(201, 155, 255, 0.06), rgba(201, 155, 255, 0.02));
}
.module-wide { grid-column: span 2; }
.module h2 { font-size: 24px; margin-bottom: 12px; }
.module p { margin: 0 0 auto; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.module p a { color: var(--lilac); font-weight: 600; }
.module-btn { width: 100%; margin-top: 22px; padding: 16px 20px; }
.module-top { min-height: 420px; padding-bottom: 96px; }
.module-top-copy { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; max-width: 55%; }
.module-top-copy p { margin-bottom: 0; }
.top-seat {
  display: inline-flex; align-items: center; gap: 16px; margin-top: 32px; padding: 18px 28px 18px 18px;
  border-radius: 8px; background: rgba(248, 244, 255, 0.07); border: 1px solid var(--line);
}
.top-seat img { width: 56px; height: 56px; border-radius: 6px; border: 2px solid var(--mc-ink); image-rendering: pixelated; flex: none; }
.top-seat b { display: block; font-size: 19px; color: var(--white); }
.top-seat small { display: block; font-size: 14.5px; color: var(--muted); }
.pay-accept { position: absolute; left: 32px; bottom: 28px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 9px; max-width: 460px; }
.pay-label { margin-right: 3px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.pay-chip {
  display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 11px; border-radius: 4px;
  border: 2px solid var(--mc-ink); background: linear-gradient(180deg, #3a2758, #271a3f); color: var(--lilac-bright);
  font-family: var(--font-body); font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
  box-shadow: var(--mc-bevel-soft), 0 3px 0 var(--mc-ink);
}
/* the slanted light bands behind the character, drifting slowly */
.module-stripes span {
  position: absolute; top: -350px; width: 489px; height: calc(100% + 600px); pointer-events: none;
  background: linear-gradient(85deg, #5a2f9a, #c99bff); transform: rotate(27deg);
}
.module-stripes span:nth-child(1) { right: -40px; opacity: 0.05; z-index: 2; animation: bands 6s ease infinite; }
.module-stripes span:nth-child(2) { right: -130px; opacity: 0.1; z-index: 1; animation: bands 12s ease infinite; }
.module-stripes span:nth-child(3) { right: -220px; opacity: 0.24; z-index: 0; animation: bands 9s ease infinite; }
@keyframes bands { 0%, 100% { transform: translateX(-20px) rotate(27deg); } 50% { transform: translateX(20px) rotate(27deg); } }
/* the render fades out towards the bottom right corner, sinking into the card */
.top-render {
  position: absolute; right: 8px; bottom: -14px; z-index: 2; height: 400px; width: auto; pointer-events: none;
  -webkit-mask-image: radial-gradient(75% 70% at 42% 38%, #000 50%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%);
  mask-image: radial-gradient(75% 70% at 42% 38%, #000 50%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 12%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.recent-list { list-style: none; display: grid; gap: 8px; }
.recent-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 6px; background: rgba(248, 244, 255, 0.05); }
.recent-list img { width: 36px; height: 36px; border-radius: 4px; border: 2px solid var(--mc-ink); image-rendering: pixelated; flex: none; }
.recent-list b { color: var(--white); font-size: 15px; }
.recent-list small { display: block; font-size: 12.5px; color: var(--dim); }
.recent-empty { color: var(--muted); font-size: 15.5px; background: none; padding: 0; }
.store-lead { max-width: 70ch; margin: -6px 0 22px; color: var(--muted); font-size: 15.5px; }
@media (max-width: 1000px) {
  .modules { grid-template-columns: 1fr 1fr; }
  .module-wide { grid-column: span 2; }
  .module-top-copy { max-width: 60%; }
  .top-render { height: 340px; }
  .pay-accept { left: 24px; bottom: 22px; }
}
@media (max-width: 640px) {
  .modules { grid-template-columns: 1fr; }
  .module-wide { grid-column: auto; }
  .module { padding: 24px 22px 26px; }
  .module-top { min-height: 0; padding-bottom: 300px; }
  .pay-accept { position: static; margin-top: 24px; }
  .module-top-copy { max-width: none; }
  .top-render { right: 50%; transform: translateX(50%); height: 300px; bottom: -10px; }
}

/* checkout provider strip */
.tebex-card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 18px; padding: 18px 26px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(201, 155, 255, 0.04);
}
.tebex-mark { display: inline-flex; color: var(--text); flex: none; }
.tebex-logo { width: 61px; height: 29px; }
.tebex-card p { flex: 1 1 320px; margin: 0; color: var(--dim); font-size: 13px; line-height: 1.5; }
.tebex-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.tebex-links a { font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.tebex-links a:hover { color: var(--white); }

/* legal pages */
.legal h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.legal h3 { margin: 34px 0 10px; font-family: var(--font-body); font-weight: 800; font-size: 19px; color: var(--white); }
.legal h4 { margin: 22px 0 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.legal p { margin: 0 0 12px; }
.legal ul, .legal ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 6px; }
.legal li::marker { color: var(--lilac); }
.legal-toc { margin-bottom: 28px; }
.legal-toc a { color: var(--lilac); text-decoration: none; font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.legal-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--muted); }
.legal-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lilac); background: rgba(201, 155, 255, 0.06); }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

.store-faq { margin-top: clamp(48px, 6vw, 84px); scroll-margin-top: calc(var(--nav-h) + 20px); }
.store-faq h2 { font-size: clamp(26px, 3.4vw, 40px); margin-bottom: 20px; }
.store-faq .store-steps { margin-bottom: 18px; }
.store-faq .staff-cta { margin-top: 0; }
.store-faq .staff-cta h2 { font-size: 22px; margin-bottom: 4px; }

@media (max-width: 1100px) {
  .store-featured { grid-template-columns: 1fr; }
  .store-sidecol { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .store-bar-inner { flex-wrap: wrap; padding-block: 6px; }
  .store-tab { padding: 14px 12px; }
  .store-bar-right .btn span:not(.basket-count) { display: none; }
  .store-user span { display: none; }
  .store-intro { grid-template-columns: 1fr; padding: 26px 22px 24px; min-height: 0; }
  .powered { position: static; margin-top: 18px; }
  .store-intro-art { justify-self: center; max-width: 240px; margin: 10px 0 0; }
  .store-sidecol { grid-template-columns: 1fr; }
  .shop-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .shop-card { padding: 22px 14px 18px; }
  .shop-card .pack-amount { font-size: 22px; }
}
@media (max-width: 480px) { .shop-grid { grid-template-columns: 1fr; } .promo-body { max-width: none; } .promo-art { display: none; } }


/* ---------- Rules ---------- */
.rules-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.rules-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 6px; }
.rules-side a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 11px 14px; border-radius: 5px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.rules-side a:hover { color: var(--white); background: rgba(201, 155, 255, 0.07); }
.rules-side a.is-active { color: var(--white); background: rgba(201, 155, 255, 0.1); border-color: var(--line); }
.rules-side a span { font-family: var(--font-mono); font-size: 11px; color: var(--dim); }
.rules-intro {
  padding: 20px 22px; margin-bottom: 30px; border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, #2a1b45, #1a1030); box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
  color: var(--muted);
}
.rules-intro p:last-child { margin: 0; }
.rules-intro strong { color: var(--text); }
.rule-group { margin-bottom: clamp(40px, 6vw, 64px); scroll-margin-top: calc(var(--nav-h) + 20px); }
.rule-group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rule-group-head h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--white); }
.rule-group-head span { font-family: var(--font-mono); font-size: 12px; color: var(--dim); }
.rule-list { display: grid; gap: 14px; }
.rule {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(201, 155, 255, 0.05), rgba(201, 155, 255, 0.015));
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.rule-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.rule-n { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--lilac); letter-spacing: 0.1em; }
.rule h3 { font-family: var(--font-body); font-weight: 800; font-size: 18px; color: var(--white); }
.rule p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.rule .note { font-size: 14px; color: var(--dim); }
.rule .note b { color: var(--warn); font-weight: 700; }
.ladder { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ladder li {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 4px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(201, 155, 255, 0.12); font-size: 13px; color: var(--text);
}
.ladder li span {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 3px;
  background: linear-gradient(180deg, #c39bff, #8b3dff); color: #1b0a33;
}
.ladder li.severe span { background: linear-gradient(180deg, #ff9d9d, #d84a4a); color: #2a0a0a; }
.thresholds { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 14px; }
.thresholds div { padding: 12px 14px; border-radius: 6px; background: rgba(0, 0, 0, 0.28); border: 1px solid rgba(201, 155, 255, 0.12); font-size: 14px; }
.thresholds b { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lilac); margin-bottom: 6px; }
.thresholds ul { list-style: none; color: var(--muted); }
.notes { list-style: none; display: grid; gap: 10px; }
.notes li { display: flex; gap: 12px; padding: 14px 16px; border-radius: 6px; background: rgba(201, 155, 255, 0.05); border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.notes li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 2px; background: var(--lilac); }
@media (max-width: 860px) {
  .rules-layout { grid-template-columns: 1fr; }
  .rules-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .rules-side a { padding: 10px 12px; font-size: 13px; }
  .thresholds { grid-template-columns: 1fr; }
}

/* ---------- Vote ---------- */
.vote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.vote-card {
  display: flex; flex-direction: column; gap: 14px; padding: 22px;
  border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
}
.vote-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vote-n { font-family: var(--font-display); font-size: 26px; color: var(--white); line-height: 1; }
.vote-n small { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; margin-right: 6px; }
.vote-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 17px; color: var(--white); }
.vote-host { font-family: var(--font-mono); font-size: 12px; color: var(--dim); overflow-wrap: anywhere; }
.vote-card .btn { margin-top: auto; }
.vote-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: clamp(32px, 5vw, 52px); }
.step {
  padding: 20px 22px; border: 1px solid var(--line); border-radius: 8px;
  background: linear-gradient(180deg, rgba(201, 155, 255, 0.06), rgba(201, 155, 255, 0.02));
}
.step-n { font-family: var(--font-display); font-size: 22px; color: var(--lilac); line-height: 1; margin-bottom: 10px; }
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 17px; color: var(--white); margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.rewards {
  margin-bottom: clamp(32px, 5vw, 52px); padding: 24px 26px; border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, #2a1b45, #1a1030); box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
}
.rewards-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 16px; }
.rewards-head h2 { font-size: 22px; color: var(--white); }
.rewards-head p { margin: 0; color: var(--muted); }
.reward-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reward-list li {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: rgba(201, 155, 255, 0.06); color: var(--white); font-weight: 700; font-size: 15px;
}
.reward-list strong { font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1; color: var(--lilac); }
.reward-list small { margin-left: auto; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.reward-all {
  margin: 12px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-radius: 6px;
  border: 1px solid var(--line-strong); background: rgba(139, 61, 255, 0.16); color: var(--muted);
}
.reward-all strong { color: var(--lilac-bright); font-size: 16px; }
@media (max-width: 960px) { .vote-grid { grid-template-columns: 1fr 1fr; } .vote-steps { grid-template-columns: 1fr; } .reward-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .vote-grid { grid-template-columns: 1fr; } .reward-list { grid-template-columns: 1fr; } }

/* ---------- Staff ---------- */
.staff-group { margin-bottom: clamp(34px, 5vw, 56px); }
.staff-group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.staff-group-head h2 { font-size: clamp(20px, 2.4vw, 26px); color: var(--white); }
.staff-group-head .tag { font-size: 11px; }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.staff-card {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px;
  border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 4px 0 var(--mc-ink);
}
.staff-head { width: 52px; height: 52px; border-radius: 4px; border: 2px solid var(--mc-ink); background: var(--surface-3); image-rendering: pixelated; flex: none; }
.staff-name { min-width: 0; }
.staff-name strong { display: block; color: var(--white); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-name span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.rank-owner { --rank: #ffb454; }
.rank-manager { --rank: #ff7b9c; }
.rank-admin { --rank: #ff8b8b; }
.rank-jradmin { --rank: #ffb9b9; }
.rank-dev { --rank: #7ad9ff; }
.rank-srmod { --rank: #c99bff; }
.rank-mod { --rank: #9fd0ff; }
.rank-helper { --rank: #8ee2a8; }
.staff-group .tag { color: var(--rank, var(--lilac-bright)); border-color: color-mix(in srgb, var(--rank, var(--lilac)) 40%, transparent); background: color-mix(in srgb, var(--rank, var(--lilac)) 12%, transparent); }
.staff-card .staff-head { border-color: color-mix(in srgb, var(--rank, var(--lilac)) 60%, var(--mc-ink)); }
.staff-cta {
  margin-top: 20px; padding: 26px 28px; border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, #2a1b45, #1a1030); box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.staff-cta h2 { font-size: 22px; color: var(--white); margin-bottom: 4px; }
.staff-cta p { margin: 0; color: var(--muted); }

/* ---------- Creators ---------- */
.creator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.creator-grid:empty { display: none; }
.creator-grid + .staff-cta { margin-top: 0; }
.creator-grid:not(:empty) + .staff-cta { margin-top: clamp(28px, 4vw, 44px); }
.creator-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  border: 2px solid var(--mc-ink); border-radius: 8px; text-decoration: none; color: inherit;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
  transition: transform 0.3s var(--ease-soft), box-shadow 0.3s var(--ease-soft);
}
.creator-tile:hover { transform: translateY(2px); box-shadow: var(--ring), var(--mc-bevel-soft), 0 3px 0 var(--mc-ink); }
.creator-tile img { width: 56px; height: 56px; border-radius: 6px; border: 2px solid var(--mc-ink); object-fit: cover; flex: none; }
.creator-tile-name { min-width: 0; }
.creator-tile-name strong { display: block; color: var(--white); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator-tile-name span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.creator-tile .tag { margin-left: auto; flex: none; }
.creator-tile-ico { width: 26px; height: 26px; margin-left: auto; flex: none; color: var(--lilac); }
@media (max-width: 900px) { .creator-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .creator-grid { grid-template-columns: 1fr; } }

/* ---------- Apply ---------- */
.apply-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
/* the application form at the foot of the creators page */
.creator-apply { margin-top: clamp(40px, 6vw, 72px); }
.creator-apply .section-head { max-width: 640px; margin-inline: auto; margin-bottom: clamp(22px, 3vw, 32px); text-align: center; }
.creator-apply .form-card { max-width: 860px; margin-inline: auto; }

/* the block above the form, before and after somebody signs in */
.apply-gate { margin-bottom: 22px; }
.apply-gate-out {
  padding: 20px 22px; border: 2px solid var(--mc-ink); border-radius: 8px;
  background: linear-gradient(180deg, #2a1b45, #1a1030);
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 5px 0 var(--mc-ink);
}
.apply-gate-out h3 { font-family: var(--font-body); font-weight: 800; font-size: 17px; color: var(--white); margin-bottom: 6px; }
.apply-gate-out p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; }
.apply-gate-in {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: rgba(201, 155, 255, 0.06);
}
.apply-gate-in img { border-radius: 50%; border: 1px solid var(--line-strong); flex: none; }
.apply-gate-in span { display: flex; flex-direction: column; min-width: 0; }
.apply-gate-in small { color: var(--dim); font-size: 12px; }
.apply-gate-in strong { color: var(--white); font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apply-gate-swap { margin-left: auto; flex: none; color: var(--muted); font-size: 13px; }
.apply-gate-swap:hover { color: var(--lilac-bright); }
.apply-gate-note { margin: 14px 0 0; color: var(--bad); font-size: 14px; }
/* the form is still readable while it is not yet fillable */
.form-grid.is-locked { opacity: 0.4; pointer-events: none; }

.apply-side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 14px; }
.apply-step { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: rgba(201, 155, 255, 0.04); }
.apply-step b { font-family: var(--font-display); font-size: 18px; color: var(--lilac); line-height: 1.2; flex: none; }
.apply-step h3 { font-family: var(--font-body); font-weight: 800; font-size: 16px; color: var(--white); margin-bottom: 4px; }
.apply-step p { margin: 0; color: var(--muted); font-size: 14px; }
.form-card {
  padding: clamp(20px, 3vw, 32px); border: 2px solid var(--mc-ink); border-radius: 10px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--ring), var(--mc-bevel-soft), 0 6px 0 var(--mc-ink), var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 13.5px; color: var(--text); }
.field label small { font-weight: 500; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: 5px;
  border: 2px solid var(--mc-ink); background: rgba(0, 0, 0, 0.32); color: var(--white);
  font: inherit; font-size: 15px; box-shadow: var(--ring), inset 0 2px 0 rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 1px var(--lilac), inset 0 2px 0 rgba(0, 0, 0, 0.3); }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lilac) 50%), linear-gradient(135deg, var(--lilac) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { background: var(--surface); color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--dim); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #a83b3b; }
.field .error { display: none; font-size: 12.5px; color: var(--bad); }
.field.is-invalid .error { display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--violet); flex: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.is-ok { color: var(--ok); }
.form-status.is-bad { color: var(--bad); }
.form-done { text-align: center; padding: 30px 10px; }
.form-done svg { width: 48px; height: 48px; color: var(--ok); margin: 0 auto 12px; }
.form-done h2 { font-size: 24px; color: var(--white); margin-bottom: 8px; }
.form-done p { color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .apply-layout { grid-template-columns: 1fr; } .apply-side { position: static; } }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } .field.full { grid-column: auto; } }

/* ---------- Footer ---------- */
.foot-card { margin-top: clamp(72px, 10vw, 128px); }
.site-footer { padding: clamp(40px, 6vw, 72px) 0 40px; background: var(--bg); border-top: 1px solid var(--line); }
/* one gradient over the whole card, so the two bands fade into each other with no seam */
.foot-card {
  position: relative; border: 2px solid var(--mc-ink); border-radius: 10px; overflow: visible;
  background: linear-gradient(180deg, #f8e6fc 0%, #f3d8f8 20%, #dcb4ec 42%, #c396d9 58%, #a47bbf 72%, #74508f 86%, #4f3062 100%);
  box-shadow: var(--ring), var(--mc-bevel), 0 6px 0 var(--mc-ink), var(--shadow);
}
.fc-logo { position: absolute; left: 26px; top: -46px; width: 168px; height: auto; }
.fc-top {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 18px 22px 18px 214px; border-radius: 8px 8px 0 0;
  color: #1b0a33;
}
.fc-ip {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 4px;
  border: 2px solid var(--mc-ink); background: #1b0a33; color: var(--lilac-bright);
  font-family: var(--font-mono); font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 3px 0 var(--mc-ink);
  transition: transform 0.15s var(--ease-soft), box-shadow 0.15s var(--ease-soft);
}
.fc-ip:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--mc-ink); }
.fc-ip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--mc-ink); }
.fc-ip svg { width: 15px; height: 15px; color: var(--lilac); }
.fc-ip.copied svg { color: var(--ok); }
.fc-top .btn { margin-left: auto; }
.fc-top .btn + .btn { margin-left: 0; }
.fc-bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px 16px 214px; border-radius: 0 0 8px 8px;
  color: #26123f;
}
.fc-bottom p { margin: 0; font-size: 13px; }
.fc-bottom p span { display: block; color: rgba(38, 18, 63, 0.75); font-size: 12px; }
.fc-sign { display: inline-flex; color: rgba(30, 14, 52, 0.88); transform: rotate(-7deg); transition: color 0.25s ease, transform 0.3s var(--ease-soft); }
.fc-sign svg { height: 34px; width: auto; fill: currentColor; }
.fc-sign:hover { color: #120821; transform: rotate(-7deg) scale(1.06); }
.foot-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.foot-col h4 { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: 0.03em; text-transform: uppercase; margin-bottom: 16px; }
.foot-col h4.title { filter: drop-shadow(0 2px 0 #2a1445); }
.foot-col ul { list-style: none; display: grid; gap: 8px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--white); }
.foot-social { display: inline-flex; align-items: center; gap: 9px; }
.foot-social svg { width: 18px; height: 18px; flex: none; color: var(--lilac); }
.foot-s {
  display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 20px; flex: none;
  font-family: var(--font-display); font-size: 21px; line-height: 1;
  background: linear-gradient(180deg, #f8e6fc 0%, #dcb4ec 45%, #a47bbf 75%, #5a3a6f 100%);
  -webkit-background-clip: text; background-clip: text; color: #dcb4ec; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1.5px 0 #2a1445);
}
.foot-col p { color: var(--muted); font-size: 14.5px; }
.foot-col .foot-note { color: var(--dim); font-size: 13.5px; }
.foot-about img.foot-banner { margin-top: 14px; width: 100%; max-width: 468px; height: auto; border-radius: 4px; border: 2px solid var(--mc-ink); image-rendering: auto; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: clamp(30px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); }
.foot-legal a { color: var(--dim); }
.foot-design { display: inline-flex; align-items: center; gap: 10px; }
.foot-design .footer-sign { color: rgba(220, 180, 236, 0.85); }
.foot-design .footer-sign svg { height: 26px; }
.foot-design .footer-sign:hover { color: var(--lilac-bright); }
@media (max-width: 1000px) { .foot-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .fc-logo { position: static; display: block; width: 150px; margin: -60px auto 0; }
  .foot-card { margin-top: 80px; }
  .fc-top { padding: 14px 16px; }
  .fc-top .btn { margin-left: 0; }
  .fc-bottom { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s var(--ease-soft); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-cue svg { animation: none; }
  .hero-logo { animation: none; }
  .glass-btn::after, .hero-btn::after { animation: none; }
  .module-stripes span { animation: none; }
  .hero-mist { display: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px);
  padding: 10px 16px; border-radius: 4px; border: 2px solid var(--mc-ink);
  background: linear-gradient(180deg, #c39bff, #8b3dff); color: #1b0a33;
  font-family: var(--font-mono); font-weight: 600; font-size: 13px;
  box-shadow: var(--mc-bevel), 0 3px 0 var(--mc-ink);
  opacity: 0; visibility: hidden; transition: opacity 0.25s ease, transform 0.25s var(--ease-soft), visibility 0.25s;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ---------- 404 ---------- */
.lost { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; }
.lost h1 { font-size: clamp(40px, 8vw, 96px); }
.lost p { color: var(--muted); margin: 12px 0 24px; }
