/* ==========================================================================
   AFTER HOURS ROLEPLAY
   Two themes share one stylesheet. Every colour is a token:
     :root                 -> light (default): daylight sky, blush, hot pink
     [data-theme='dark']   -> dark: night sky, neon pink
   Change colours in the two token blocks below; nothing else hard-codes them.
   ========================================================================== */

:root {
  color-scheme: light;

  /* surfaces + text */
  --bg: #fff8fc;
  --bg-elev: #ffffff;
  --card: #ffffff;
  --ink: #1d0f22;
  --ink-soft: #4a3f55;
  --muted: #5d5266;
  --dim: #8b8195;
  --line: rgba(60, 16, 56, 0.1);
  --line-2: rgba(60, 16, 56, 0.18);
  --hover: rgba(255, 46, 154, 0.09);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-line: rgba(255, 255, 255, 0.9);
  --header-bg: rgba(255, 255, 255, 0.82);
  --btn-2: #ffffff;
  --track: rgba(60, 16, 56, 0.12);

  /* brand */
  --pink: #ff2e9a;
  --pink-rgb: 255, 46, 154;
  --pink-text: #d4107a;
  --pink-deep: #b00c64;
  --pink-soft: #ffe3f1;
  --green: #12b76a;
  --green-rgb: 18, 183, 106;
  --grad: linear-gradient(100deg, #ff2e9a 0%, #1d8bff 44%, #13c0ff 100%);
  --grad-solid: linear-gradient(115deg, #1559e6 0%, #1680f0 50%, #0aa6ec 100%);
  --grad-icon: linear-gradient(150deg, #ff5fb0, #ea1787);
  --em-glow: none;

  /* shadows */
  --shadow-card: 0 1px 2px rgba(60, 16, 56, 0.05), 0 16px 36px -20px rgba(212, 16, 122, 0.3);
  --shadow-lift: 0 2px 4px rgba(60, 16, 56, 0.06), 0 26px 50px -22px rgba(212, 16, 122, 0.5);
  --shadow-soft: 0 12px 26px -14px rgba(60, 16, 56, 0.45);

  /* big backdrops */
  --bg-first: radial-gradient(48% 60% at 0% 0%, rgba(255, 46, 154, 0.2), transparent 70%), radial-gradient(42% 55% at 100% 0%, rgba(54, 179, 255, 0.26), transparent 70%), radial-gradient(30% 30% at 62% 0%, rgba(255, 196, 92, 0.28), transparent 70%), #fff8fc;
  --bg-tint: radial-gradient(55% 55% at 0% 0%, rgba(255, 46, 154, 0.12), transparent 70%), radial-gradient(50% 55% at 100% 100%, rgba(54, 179, 255, 0.16), transparent 70%), linear-gradient(180deg, #fff1f8, #f3f9ff);
  --bg-hero: radial-gradient(30% 26% at 84% 36%, rgba(255, 196, 92, 0.5), transparent 70%), radial-gradient(46% 42% at 6% 78%, rgba(255, 46, 154, 0.24), transparent 70%), radial-gradient(40% 40% at 96% 86%, rgba(255, 46, 154, 0.2), transparent 70%), linear-gradient(180deg, #fff8fc 0%, #d6f0ff 20%, #a8defd 48%, #f4f9ff 66%, #ffdcec 84%, #ffeef6 100%);
  --bg-closer: radial-gradient(28% 26% at 84% 40%, rgba(255, 196, 92, 0.45), transparent 70%), linear-gradient(180deg, #fff8fc 0%, #cfeeff 38%, #f7fbff 68%, #ffd5e8 100%);
  --bg-wide: radial-gradient(90% 120% at 0% 0%, rgba(255, 46, 154, 0.16), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(54, 179, 255, 0.2), transparent 60%), #ffffff;
  --bg-sheet: radial-gradient(120% 60% at 100% 0%, rgba(255, 46, 154, 0.2), transparent 60%), radial-gradient(100% 50% at 0% 100%, rgba(54, 179, 255, 0.2), transparent 60%), rgba(255, 250, 253, 0.98);
  --hero-glow: radial-gradient(closest-side, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.45) 50%, transparent 75%);
  --logo-halo: rgba(255, 255, 255, 0.8);
  --grid-alpha: 0.4;
  --grain-blend: multiply;
  --grain-alpha: 0.03;

  /* role + status colours */
  --tone-pink: #d4107a;  --tone-pink-rgb: 212, 16, 122;
  --tone-gold: #a36400;  --tone-gold-rgb: 214, 140, 10;
  --tone-cyan: #0b7ea6;  --tone-cyan-rgb: 27, 147, 234;
  --tone-plain: #5d5266; --tone-plain-rgb: 93, 82, 102;
  --st-off: #a59cab;  --st-off-text: #5d5266;
  --st-on: #16b877;   --st-on-text: #0b8f58;
  --st-idle: #f0a020; --st-idle-text: #a36400;
  --st-dnd: #ef3a4c;  --st-dnd-text: #c81e31;

  --toast-bg: #1d0f22;
  --toast-ink: #ffffff;
  --scrollbar: #f3a6cf;

  /* type + layout */
  --display: 'Archivo', 'Arial Black', system-ui, sans-serif;
  --body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --radius: 20px;
  --wrap: 1240px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --skew: -10deg;
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --bg: #090b11;
  --bg-elev: #0c0f17;
  --card: #141923;
  --ink: #f6f3f9;
  --ink-soft: #d3ccdc;
  --muted: #aca5b8;
  --dim: #7e778d;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.17);
  --hover: rgba(255, 46, 154, 0.15);
  --glass: rgba(20, 25, 35, 0.72);
  --glass-line: rgba(255, 255, 255, 0.16);
  --header-bg: rgba(9, 11, 17, 0.8);
  --btn-2: #1d2432;
  --track: rgba(255, 255, 255, 0.13);

  --pink-text: #ff74c0;
  --pink-deep: #ffa6d6;
  --pink-soft: rgba(255, 46, 154, 0.18);
  --green: #3ddc97;
  --green-rgb: 61, 220, 151;
  --em-glow: drop-shadow(0 0 22px rgba(255, 46, 154, 0.45));

  --shadow-card: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 22px 44px -26px rgba(0, 0, 0, 0.9);
  --shadow-lift: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 28px 54px -24px rgba(255, 46, 154, 0.55);
  --shadow-soft: 0 12px 26px -14px rgba(0, 0, 0, 0.8);

  --bg-first: radial-gradient(48% 60% at 0% 0%, rgba(255, 46, 154, 0.24), transparent 70%), radial-gradient(42% 55% at 100% 0%, rgba(30, 130, 255, 0.22), transparent 70%), #090b11;
  --bg-tint: radial-gradient(55% 55% at 0% 0%, rgba(255, 46, 154, 0.11), transparent 70%), radial-gradient(50% 55% at 100% 100%, rgba(30, 130, 255, 0.11), transparent 70%), #0c0f17;
  --bg-hero: radial-gradient(60% 50% at 50% 38%, rgba(255, 46, 154, 0.22), transparent 70%), radial-gradient(40% 40% at 10% 85%, rgba(30, 130, 255, 0.2), transparent 70%), radial-gradient(40% 40% at 92% 82%, rgba(255, 46, 154, 0.16), transparent 70%), linear-gradient(180deg, #090b11 0%, #0c1222 45%, #0d1730 80%, #0c0f17 100%);
  --bg-closer: linear-gradient(180deg, #090b11 0%, #0d1730 55%, #0f2146 100%);
  --bg-wide: radial-gradient(90% 120% at 0% 0%, rgba(255, 46, 154, 0.2), transparent 60%), radial-gradient(80% 120% at 100% 100%, rgba(30, 130, 255, 0.18), transparent 60%), #141923;
  --bg-sheet: radial-gradient(120% 60% at 100% 0%, rgba(255, 46, 154, 0.2), transparent 60%), rgba(9, 11, 17, 0.98);
  --hero-glow: radial-gradient(closest-side, rgba(255, 46, 154, 0.36), rgba(255, 46, 154, 0.08) 55%, transparent 75%);
  --logo-halo: rgba(255, 46, 154, 0.32);
  --grid-alpha: 0.55;
  --grain-blend: overlay;
  --grain-alpha: 0.055;

  --tone-pink: #ff74c0;  --tone-pink-rgb: 255, 46, 154;
  --tone-gold: #f2c661;  --tone-gold-rgb: 242, 198, 97;
  --tone-cyan: #5fe0ff;  --tone-cyan-rgb: 95, 224, 255;
  --tone-plain: #d5d8e0; --tone-plain-rgb: 213, 216, 224;
  --st-off: #7c7889;  --st-off-text: #aca5b8;
  --st-on: #3ddc97;   --st-on-text: #3ddc97;
  --st-idle: #f7b93e; --st-idle-text: #f7b93e;
  --st-dnd: #ff5466;  --st-dnd-text: #ff7a88;

  --toast-bg: #ffffff;
  --toast-ink: #1d0f22;
  --scrollbar: #2a3a5a;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--scrollbar) var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.4s, color 0.4s;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--pink-text); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 200; padding: 0.6rem 1rem; background: #d4107a; color: #fff; font-weight: 700; border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }
.i { display: inline-block; line-height: 1; flex: none; font-size: 1em; }   /* Font Awesome glyph */
[data-icon] { display: inline-flex; align-items: center; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: var(--grain-alpha); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Type ---------- */
h2, .hero__title, .closer h2 {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  letter-spacing: -0.012em;
}
h2 { font-size: clamp(2rem, 4.9vw, 3.7rem); padding-right: 0.12em; color: var(--ink); text-wrap: balance; }
h2 em, .neon-text {
  font-style: inherit;
  padding-right: 0.12em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: var(--em-glow);
}
.chrome { color: var(--ink); }
h3 { font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 1.18rem; line-height: 1.2; letter-spacing: -0.005em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pink-text); margin-bottom: 1.25rem;
}
.eyebrow::before, .heading--center .eyebrow::after { content: ''; width: 1.6rem; height: 3px; border-radius: 3px; background: var(--grad); transform: skewX(-30deg); }
.lede { color: var(--muted); font-size: clamp(1rem, 1.3vw, 1.125rem); max-width: 58ch; margin-top: 1.25rem; text-wrap: pretty; }

.heading { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.heading--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 2.5rem; }
.heading--split > div:first-child { display: contents; }
.heading--split .eyebrow, .heading--split h2 { grid-column: 1 / -1; justify-self: start; }
.heading--split .lede { grid-column: 1; }
.heading--split .btn-row { grid-column: 2; }
.heading--center { margin-inline: auto; text-align: center; }
.heading--center .lede { margin-inline: auto; }

/* ---------- Buttons: slanted like the logo ---------- */
.btn {
  --h: 46px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem;
  height: var(--h); padding: 0 1.35rem; border-radius: 7px; white-space: nowrap;
  font-family: var(--display); font-stretch: 112%; font-weight: 800; font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase;
  transform: skewX(var(--skew));
  transition: translate 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, filter 0.25s;
}
.btn > * { transform: skewX(calc(var(--skew) * -1)); display: inline-flex; align-items: center; }
.btn .i { font-size: 1.05em; }
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 0; }
.btn--sm { --h: 40px; padding: 0 1.05rem; font-size: 0.74rem; }
.btn--lg { --h: 56px; padding: 0 1.8rem; font-size: 0.9rem; }

.btn--neon {
  color: #fff;
  background: linear-gradient(180deg, #ff4fa5 0%, #ea1787 52%, #cf0d74 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -2px 0 rgba(120, 0, 60, 0.25), 0 12px 28px -10px rgba(234, 23, 135, 0.75);
}
.btn--neon:hover { filter: brightness(1.07) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(120, 0, 60, 0.25), 0 18px 38px -10px rgba(234, 23, 135, 0.85); }

.btn--chrome { color: var(--ink); background: var(--btn-2); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -2px 0 rgba(60, 16, 56, 0.08), var(--shadow-soft); }
.btn--chrome:hover { color: var(--pink-text); box-shadow: inset 0 0 0 1.5px var(--pink), inset 0 -2px 0 rgba(60, 16, 56, 0.08), 0 16px 34px -14px rgba(212, 16, 122, 0.55); }

.btn--ghost { color: var(--ink); border: 1px solid var(--line-2); background: var(--glass); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: var(--pink); color: var(--pink-text); box-shadow: 0 12px 28px -14px rgba(212, 16, 122, 0.5); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem 1.1rem; }
.btn-row--center { justify-content: center; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; flex: none;
  border: 1px solid var(--line-2); background: var(--glass); color: var(--ink);
  transform: skewX(var(--skew)); transition: border-color 0.25s, color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.icon-btn > * { transform: skewX(calc(var(--skew) * -1)); }
.icon-btn:hover { border-color: var(--pink); color: var(--pink-text); box-shadow: 0 10px 24px -12px rgba(212, 16, 122, 0.55); }
.icon-btn .i { font-size: 17px; }
.theme-toggle .i { transition: rotate 0.5s var(--ease); }
.theme-toggle:hover .i { rotate: 25deg; }

.link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.9rem; color: var(--pink-text); transition: gap 0.25s var(--ease), color 0.25s; }
.link:hover { gap: 0.8rem; color: var(--pink-deep); }
.link .i { font-size: 0.85em; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.55); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(var(--green-rgb), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0); } }

/* Icon chips used across cards */
.chip-icon, .path__icon, .tile__icon, .step__icon, .store__icon, .dept__icon, .doclist__icon, .rule__icon, .stat__icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none;
  color: #fff; background: var(--grad-icon); font-size: 21px;
  box-shadow: 0 10px 22px -10px rgba(234, 23, 135, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h); transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s; border-bottom: 1px solid transparent; }
.header.is-scrolled, .header.menu-open { background: var(--header-bg); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom-color: var(--line); box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.5); }
.header__inner { height: 100%; width: min(1440px, 100% - var(--gutter) * 2); margin-inline: auto; display: flex; align-items: center; gap: 1.5rem; }
.brand { flex: none; display: block; transition: scale 0.3s var(--ease); }
.brand img { height: 56px; width: auto; filter: drop-shadow(0 6px 12px rgba(212, 16, 122, 0.4)); }
.brand:hover { scale: 1.05; }

.nav { margin-inline: auto; }
.nav ul { display: flex; align-items: center; gap: 0.1rem; }
.nav a {
  position: relative; display: block; padding: 0.6rem 0.75rem; white-space: nowrap;
  font-size: 0.75rem; font-weight: 700; font-stretch: 108%; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
  transition: color 0.25s;
}
.nav a::after {
  content: ''; position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.15rem; height: 3px; border-radius: 3px;
  background: var(--grad);
  transform: scaleX(0) skewX(-30deg); transform-origin: 0 50%; transition: transform 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--pink-text); }
.nav a.is-active::after { transform: scaleX(1) skewX(-30deg); }

.header__actions { display: flex; align-items: center; gap: 0.65rem; flex: none; }
.menu-toggle { display: none; }
.menu-toggle__bars { display: grid; gap: 5px; width: 18px; }
.menu-toggle__bars i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded='true'] i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 99; padding: calc(var(--header-h) + 1.5rem) var(--gutter) 2rem; overflow-y: auto;
  background: var(--bg-sheet);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.sheet.is-open { opacity: 1; visibility: visible; }
.sheet ul { border-top: 1px solid var(--line); }
.sheet li { border-bottom: 1px solid var(--line); opacity: 0; translate: 0 14px; transition: opacity 0.4s var(--ease), translate 0.4s var(--ease); transition-delay: calc(var(--i) * 35ms + 60ms); }
.sheet.is-open li { opacity: 1; translate: 0 0; }
.sheet li a { display: flex; align-items: baseline; gap: 1rem; padding: 0.95rem 0.25rem; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 1.45rem; text-transform: uppercase; }
.sheet li a:active { color: var(--pink-text); }
.sheet__actions { display: grid; gap: 0.9rem; margin-top: 2rem; padding-inline: 0.5rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 8.5rem;
  background: var(--bg-hero);
}
.hero__bokeh { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; filter: blur(2px); opacity: 0.88; }
.hero__glow {
  position: absolute; z-index: -2; left: 50%; top: 34%; width: min(1100px, 130vw); aspect-ratio: 2 / 1; translate: -50% -50%;
  background: var(--hero-glow);
  filter: blur(30px); animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe { 50% { opacity: 0.7; scale: 1.06; } }
.hero__floor {
  position: absolute; z-index: -2; left: -60%; right: -60%; bottom: 0; height: 48%;
  background-image: linear-gradient(rgba(var(--pink-rgb), 0.75) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(var(--pink-rgb), 0.75) 1.5px, transparent 1.5px);
  background-size: 72px 72px;
  transform: perspective(480px) rotateX(66deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%); mask-image: linear-gradient(to top, #000, transparent 85%);
  opacity: var(--grid-alpha); animation: floor 5s linear infinite;
}
@keyframes floor { to { background-position: 0 72px, 0 0; } }

.hero__content { display: grid; justify-items: center; text-align: center; width: min(960px, 100%); }

.live-pill {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.5rem 1rem 0.5rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-soft);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.live-pill b { color: var(--ink); font-weight: 700; }
.live-pill .dot { background: var(--pink); box-shadow: none; animation: none; }
.live-pill.is-live .dot { background: var(--green); animation: pulse 2s infinite; }
.live-pill:hover { border-color: var(--pink); color: var(--ink); }

.hero__logo { width: min(350px, 66vw, 34vh); margin: clamp(1rem, 3vh, 2rem) 0 clamp(0.5rem, 2vh, 1.25rem); animation: float 7s ease-in-out infinite; }
.hero__logo img { width: 100%; filter: drop-shadow(0 22px 34px rgba(212, 16, 122, 0.4)) drop-shadow(0 0 50px var(--logo-halo)); }
@keyframes float { 50% { translate: 0 -10px; } }

.hero__title { font-size: clamp(1.75rem, 4.7vw, 3.6rem); text-wrap: balance; }
.hero__title .chrome, .hero__title .neon-text { display: block; }
.hero__body { margin-top: 1.4rem; max-width: 56ch; color: var(--ink-soft); font-size: clamp(1rem, 1.35vw, 1.15rem); font-weight: 500; text-wrap: pretty; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem 1.15rem; margin-top: clamp(1.6rem, 4vh, 2.4rem); }
.hero__connect { margin-top: 1.4rem; max-width: 100%; }

.hero__scroll { display: none; }

.ticker { position: absolute; inset: auto 0 0 0; overflow: hidden; padding: 0.85rem 0; background: var(--grad-solid); box-shadow: 0 -10px 30px -14px rgba(21, 110, 240, 0.55); }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker__track > div { display: flex; align-items: center; flex: none; }
.ticker span { padding: 0 1.7rem; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.ticker i { width: 7px; height: 7px; background: #fff; rotate: 45deg; opacity: 0.85; flex: none; }
@keyframes marquee { to { transform: translateX(-33.3333%); } }

/* ---------- Stats ---------- */
.stats { position: relative; z-index: 2; padding: clamp(1.5rem, 3vw, 2.25rem) 0; background: var(--bg-elev); border-bottom: 1px solid var(--line); }
.stats__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }
.stats__grid li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1.1rem; padding: 1.15rem 1.3rem; border-radius: 18px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-card); transition: translate 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s; }
.stats__grid li:hover { translate: 0 -4px; border-color: rgba(var(--pink-rgb), 0.5); box-shadow: var(--shadow-lift); }
.stat__icon { grid-row: span 2; width: 56px; height: 56px; border-radius: 16px; font-size: 22px; }
.stats__grid li:nth-child(2) .stat__icon { background: linear-gradient(150deg, #4fe3a0, #0fa765); box-shadow: 0 10px 22px -10px rgba(15, 167, 101, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.stats__grid li:nth-child(3) .stat__icon { background: linear-gradient(150deg, #5fd0ff, #0b8fe0); box-shadow: 0 10px 22px -10px rgba(11, 143, 224, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.stats__grid li:nth-child(4) .stat__icon { background: linear-gradient(150deg, #ffc35c, #f58a1f); box-shadow: 0 10px 22px -10px rgba(245, 138, 31, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.stats__grid strong { display: block; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: clamp(1.7rem, 2.6vw, 2.2rem); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats__grid strong small { font-size: 0.5em; color: var(--dim); }
.stat__label { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 8.5rem) 0; scroll-margin-top: calc(var(--header-h) - 20px); }
.section--tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.section--first { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)); }
.section--tint.section--first { border-block: 0; background: var(--bg-first); }
.section--first .heading { margin-bottom: clamp(2rem, 4vw, 3rem); }

/* Shared card surface + cursor spotlight */
.spot { position: relative; overflow: hidden; isolation: isolate; }
.spot::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--pink-rgb), 0.14), transparent 65%);
}
.spot:hover::before { opacity: 1; }

.path, .tile, .step, .member, .dept, .panel, .rule {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-card);
}
.path, .tile, .step, .member, .dept, .rule { transition: translate 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s; }
.path:hover, .tile:hover, .step:hover, .member:hover, .dept:hover, .rule:hover { translate: 0 -5px; border-color: rgba(var(--pink-rgb), 0.55); box-shadow: var(--shadow-lift); }

.note { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; color: var(--muted); font-size: 0.95rem; }
.note .i { color: var(--pink); }

/* ---------- The City ---------- */
.paths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.path { --a: #ff5fb0; --b: #ea1787; --glow: 234, 23, 135; padding: clamp(1.5rem, 2.6vw, 2.25rem); display: flex; flex-direction: column; }
.path:nth-child(2) { --a: #5cc6ff; --b: #1b93ea; --glow: 27, 147, 234; }
.path:nth-child(3) { --a: #ffc35c; --b: #f58a1f; --glow: 245, 138, 31; }
.path::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--a), var(--b)); }
.path__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; }
.path__icon { width: 60px; height: 60px; border-radius: 17px; font-size: 25px; background: linear-gradient(150deg, var(--a), var(--b)); box-shadow: 0 12px 24px -10px rgba(var(--glow), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.path:hover { border-color: rgba(var(--glow), 0.6); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 26px 50px -22px rgba(var(--glow), 0.6); }
.path h3 { font-size: 1.6rem; font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; }
.path > p { color: var(--muted); margin-top: 0.8rem; }
.path ul { margin-top: auto; padding-top: 1.75rem; display: grid; gap: 0.7rem; }
.path ul li { display: flex; gap: 0.75rem; align-items: center; font-size: 0.95rem; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.path ul .i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; color: #fff; background: linear-gradient(150deg, var(--a), var(--b)); }

/* ---------- After Dark ---------- */
.night { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.night__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.night__intro .heading { margin-bottom: 2rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chips li { padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.timeline { --p: 0; position: relative; display: grid; gap: 1.25rem; padding-left: 4rem; }
.timeline::before, .timeline::after { content: ''; position: absolute; left: 20px; top: 1rem; bottom: 1rem; width: 4px; border-radius: 4px; }
.timeline::before { background: var(--track); }
.timeline::after { background: linear-gradient(180deg, #ff2e9a, #1d8bff 44%, #13c0ff); transform: scaleY(var(--p)); transform-origin: 50% 0; }
.stage {
  position: relative; display: grid; grid-template-columns: 12.25rem 1fr; gap: 1.25rem; align-items: center;
  padding: clamp(1.25rem, 2.4vw, 1.9rem); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-card);
  transition: border-color 0.5s, box-shadow 0.5s;
}
.stage__node { position: absolute; z-index: 1; left: -4rem; top: 50%; width: 44px; height: 44px; translate: 0 -50%; border-radius: 50%; display: grid; place-items: center; font-size: 17px; color: var(--dim); background: var(--card); border: 3px solid var(--track); box-shadow: var(--shadow-soft); transition: border-color 0.4s, background 0.4s, color 0.4s, box-shadow 0.4s, scale 0.4s var(--ease); }
.stage__time { display: flex; align-items: baseline; gap: 0.4rem; }
.stage__time b { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: clamp(2rem, 3vw, 2.5rem); line-height: 1; padding-right: 0.08em; color: var(--ink); font-variant-numeric: tabular-nums; transition: color 0.4s; }
.stage__time small { font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; color: var(--dim); transition: color 0.4s; }
.stage__body h3 { font-size: 1.25rem; text-transform: uppercase; font-style: italic; font-stretch: 122%; font-weight: 900; }
.stage__body p { color: var(--muted); margin-top: 0.4rem; }
.stage.is-lit { border-color: rgba(var(--pink-rgb), 0.6); box-shadow: var(--shadow-lift); }
.stage.is-lit .stage__node { color: #fff; background: var(--grad-icon); border-color: var(--card); box-shadow: 0 0 0 4px rgba(var(--pink-rgb), 0.3), 0 10px 22px -8px rgba(234, 23, 135, 0.8); scale: 1.06; }
.stage.is-lit .stage__time b, .stage.is-lit .stage__time small { color: var(--pink-text); }

/* ---------- Features ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tile { padding: clamp(1.4rem, 2.2vw, 1.9rem); min-height: 232px; display: flex; flex-direction: column; }
.tile:nth-child(4n + 1) { grid-column: span 2; background: var(--bg-wide); }
.tile__icon { transition: rotate 0.4s var(--ease), scale 0.4s var(--ease); }
.tile:hover .tile__icon { rotate: -8deg; scale: 1.08; }
.tile h3 { margin-top: auto; padding-top: 2.25rem; }
.tile p { color: var(--muted); margin-top: 0.5rem; font-size: 0.96rem; max-width: 46ch; }

/* ---------- Store ---------- */
.store {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(1.75rem, 5vw, 4.25rem); border-radius: 28px;
  background: radial-gradient(60% 90% at 100% 0%, rgba(80, 190, 255, 0.45), transparent 60%), var(--grad-solid);
  color: #fff;
  box-shadow: 0 40px 80px -40px rgba(21, 110, 240, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.store__mark { position: absolute; z-index: -1; right: -9%; bottom: -42%; width: 50%; max-width: none; opacity: 0.22; rotate: -8deg; pointer-events: none; }
.store .eyebrow { color: #fff; }
.store .eyebrow::before { background: #fff; }
.store h2 { color: #fff; }
.store .lede { color: #fff; font-weight: 500; }
.store__copy .lede { margin-bottom: 1.4rem; }
.store__tiers { margin-bottom: 2rem; }
.store__tiers li { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.18); color: #fff; font-weight: 700; }
.store__tiers:empty { display: none; }
.store .btn--neon { color: #1559e6; background: #fff; box-shadow: inset 0 -2px 0 rgba(60, 16, 56, 0.1), 0 16px 34px -14px rgba(60, 0, 40, 0.6); }
.store .btn--neon:hover { filter: none; color: #0d3fae; box-shadow: inset 0 -2px 0 rgba(60, 16, 56, 0.1), 0 22px 44px -14px rgba(60, 0, 40, 0.7); }
.store__points { display: grid; gap: 0.9rem; }
.store__points li { display: flex; gap: 1.1rem; align-items: center; padding: 1.05rem 1.2rem; border-radius: 16px; background: var(--card); color: var(--ink); box-shadow: 0 18px 36px -22px rgba(60, 0, 40, 0.7); transition: translate 0.3s var(--ease); }
.store__points li:hover { translate: 6px 0; }
.store__points h3 { font-size: 1.05rem; }
.store__points p { color: var(--muted); font-size: 0.93rem; margin-top: 0.15rem; }

/* ---------- How to join ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.step { padding: clamp(1.4rem, 2.2vw, 1.9rem); display: flex; flex-direction: column; }
.step::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); transform: scaleX(0.22); transform-origin: 0 50%; transition: transform 0.5s var(--ease); }
.step:hover::after { transform: scaleX(1); }
.step__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.9rem; }
.step__num, .rule__num { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.step p { color: var(--muted); margin: 0.5rem 0 1.4rem; font-size: 0.96rem; }
.step .link { margin-top: auto; }

.connect { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; padding: clamp(1.25rem, 2.4vw, 1.75rem) clamp(1.25rem, 2.6vw, 2rem); border-radius: var(--radius); border: 2px dashed rgba(var(--pink-rgb), 0.5); background: var(--glass); }
.connect p { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; max-width: 44ch; }
.cmd { display: inline-flex; align-items: stretch; max-width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--card); overflow: hidden; box-shadow: var(--shadow-card); }
.cmd code { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 1rem; font-family: var(--mono); font-size: 0.86rem; font-weight: 500; color: var(--ink); overflow-x: auto; white-space: nowrap; }
.cmd kbd { font-family: var(--mono); font-size: 0.7rem; font-weight: 700; padding: 0.2rem 0.45rem; border-radius: 5px; color: #fff; background: #d4107a; }
.cmd__copy { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0 1.1rem; border-left: 1px solid var(--line-2); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pink-text); transition: background-color 0.25s, color 0.25s; }
.cmd__copy:hover { background: var(--pink-soft); color: var(--pink-deep); }
.cmd--link { align-items: center; gap: 0.8rem; padding: 0.85rem 1.15rem; font-weight: 600; font-size: 0.93rem; transition: border-color 0.25s, box-shadow 0.25s, gap 0.25s var(--ease); }
.cmd--link .i:first-child { color: var(--pink-text); font-size: 18px; }
.cmd--link:hover { border-color: var(--pink); box-shadow: var(--shadow-lift); gap: 1.05rem; }

/* ---------- Rules ---------- */
.rules { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.rules__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.rule { position: relative; padding: clamp(1.25rem, 2vw, 1.6rem); }
.rule__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.1rem; }
.rule__icon { width: 46px; height: 46px; border-radius: 13px; font-size: 18px; }
.rule p { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }
.rules__aside { display: grid; gap: 1.25rem; }
.panel { padding: clamp(1.3rem, 2.2vw, 1.75rem); }
.panel > h3 { display: flex; align-items: center; gap: 0.6rem; font-family: var(--mono); font-stretch: 100%; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink-text); margin-bottom: 1.1rem; }
.checklist { display: grid; gap: 0.75rem; }
.checklist li { display: flex; gap: 0.75rem; align-items: center; font-size: 0.96rem; }
.checklist .i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11px; color: #fff; background: var(--green); }
.doclist { display: grid; gap: 0.5rem; margin: 0 -0.5rem; }
.doclist a { display: flex; align-items: center; gap: 0.9rem; padding: 0.6rem 0.5rem; border-radius: 12px; transition: background-color 0.25s; }
.doclist a:hover { background: var(--hover); }
.doclist__icon { width: 40px; height: 40px; border-radius: 10px; font-size: 16px; }
.doclist__text { display: grid; flex: 1; min-width: 0; }
.doclist__text b { font-weight: 700; font-size: 0.97rem; }
.doclist__text small { color: var(--muted); font-size: 0.84rem; }
.doclist a > .i { color: var(--dim); font-size: 13px; transition: color 0.25s, translate 0.25s var(--ease); }
.doclist a:hover > .i { color: var(--pink-text); translate: 2px -2px; }

/* ---------- Team ---------- */
.team { display: grid; gap: 1.25rem; }
.team--lead { grid-template-columns: repeat(4, 1fr); }
.team--rest { grid-template-columns: repeat(3, 1fr); margin-top: 1.25rem; }
.member, .team-about__roles li { --tone: var(--tone-pink); --tone-rgb: var(--tone-pink-rgb); }
.member[data-tone='gold'], .team-about__roles li[data-tone='gold'] { --tone: var(--tone-gold); --tone-rgb: var(--tone-gold-rgb); }
.member[data-tone='cyan'], .team-about__roles li[data-tone='cyan'] { --tone: var(--tone-cyan); --tone-rgb: var(--tone-cyan-rgb); }
.member[data-tone='chrome'], .team-about__roles li[data-tone='chrome'] { --tone: var(--tone-plain); --tone-rgb: var(--tone-plain-rgb); }
.member { padding: 0.75rem; }
.member.spot::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--tone-rgb), 0.15), transparent 65%); }
.member:hover { border-color: rgba(var(--tone-rgb), 0.6); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 26px 50px -22px rgba(var(--tone-rgb), 0.6); }
.member__photo { position: relative; aspect-ratio: 1 / 1; border-radius: 13px; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(var(--tone-rgb), 0.3), rgba(var(--tone-rgb), 0.08) 70%), var(--card); }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; transition: scale 0.7s var(--ease); }
.member:hover .member__photo img { scale: 1.05; }
.member__photo::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.member__fallback { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 3rem; color: rgba(var(--tone-rgb), 0.65); }
.member__meta { padding: 1rem 0.5rem 0.6rem; display: grid; justify-items: start; gap: 0.6rem; min-width: 0; }
.member h3 { font-size: 1.15rem; font-stretch: 122%; font-weight: 900; font-style: italic; text-transform: uppercase; }
.role { white-space: nowrap; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.32rem 0.65rem; border-radius: 6px; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tone); background: rgba(var(--tone-rgb), 0.12); border: 1px solid rgba(var(--tone-rgb), 0.45); }
.role .i { font-size: 10px; }
.team--rest .member { display: flex; align-items: center; gap: 1.1rem; padding: 0.8rem; }
.team--rest .member__photo { width: 92px; flex: none; }
.team--rest .member__fallback { font-size: 1.6rem; }
.team--rest .member__meta { padding: 0; gap: 0.5rem; min-width: 0; }

/* Live Discord status */
.member { --st: var(--st-off); --st-text: var(--st-off-text); }
.member[data-status='online'] { --st: var(--st-on); --st-text: var(--st-on-text); }
.member[data-status='idle'] { --st: var(--st-idle); --st-text: var(--st-idle-text); }
.member[data-status='dnd'] { --st: var(--st-dnd); --st-text: var(--st-dnd-text); }
.member__status { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--st); border: 4px solid var(--card); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35); }
.member[data-status='online'] .member__status { animation: statusPulse 2.4s ease-out infinite; }
@keyframes statusPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--green-rgb), 0.6), 0 4px 10px rgba(0, 0, 0, 0.35); } 70%, 100% { box-shadow: 0 0 0 9px rgba(var(--green-rgb), 0), 0 4px 10px rgba(0, 0, 0, 0.35); } }
.member__row { display: flex; align-items: center; gap: 0.6rem 0.9rem; flex-wrap: wrap; }
.presence { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--st-text); white-space: nowrap; }
.presence i { width: 8px; height: 8px; border-radius: 50%; background: var(--st); }
.presence b { font-weight: 700; }
.member__activity { max-width: 100%; color: var(--muted); font-size: 0.84rem; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team--rest .member__status { right: 5px; bottom: 5px; width: 17px; height: 17px; border-width: 3px; }

/* Description under the team cards */
.team-about {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
  margin-top: 1.25rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow-card);
}
.team-about__copy h3 { font-family: var(--mono); font-stretch: 100%; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink-text); margin-bottom: 1rem; }
.team-about__copy p { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.1rem); text-wrap: pretty; }
.team-about__roles { display: grid; }
.team-about__roles li { display: grid; grid-template-columns: 10.25rem 1fr; gap: 1.1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); }
.team-about__roles li:first-child { border-top: 0; padding-top: 0; }
.team-about__roles li:last-child { padding-bottom: 0; }
.team-about__roles .role { justify-self: start; }
.team-about__roles p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Network ---------- */
.network { display: grid; grid-template-columns: minmax(290px, 0.4fr) 1fr; gap: 1.25rem; }
.hub {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; padding: clamp(1.5rem, 2.6vw, 2.1rem);
  border-radius: var(--radius); color: #fff;
  background: radial-gradient(90% 70% at 100% 0%, rgba(80, 190, 255, 0.45), transparent 60%), var(--grad-solid);
  box-shadow: 0 30px 60px -30px rgba(21, 110, 240, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: translate 0.35s var(--ease), box-shadow 0.35s;
}
.hub:hover { translate: 0 -5px; box-shadow: 0 40px 70px -28px rgba(21, 110, 240, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.hub__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.hub__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; color: #1559e6; background: #fff; font-size: 27px; box-shadow: 0 14px 28px -12px rgba(60, 0, 40, 0.6); }
.hub__tag { font-family: var(--mono); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; padding: 0.3rem 0.65rem; border: 1px solid rgba(255, 255, 255, 0.65); border-radius: 6px; background: rgba(255, 255, 255, 0.14); }
.hub h3 { font-size: 1.6rem; font-stretch: 125%; font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 1.05; }
.hub p { color: #fff; font-weight: 500; margin-top: 0.75rem; font-size: 0.96rem; }
.hub__counts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin: 1.75rem 0; }
.hub__counts > div { padding: 0.9rem 1rem; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 14px 28px -18px rgba(60, 0, 40, 0.7); }
.hub__counts dt { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.hub__counts dd { font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 1.9rem; line-height: 1.1; margin-top: 0.3rem; font-variant-numeric: tabular-nums; }
.hub__cta { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.86rem; font-weight: 700; color: #fff; transition: gap 0.25s var(--ease); }
.hub__cta .i { font-size: 0.8em; }
.hub:hover .hub__cta { gap: 0.85rem; }

.depts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.depts li { display: grid; }
.depts li:first-child { grid-column: span 2; }   /* featured server: keeps the grid full with five tiles */
.depts li:first-child .dept { background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 60%), var(--card); }
.dept { --tone: var(--pink); display: flex; flex-direction: column; padding: 1.3rem; min-height: 200px; }
.dept::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--tone); opacity: 0.9; }
.dept.spot::before { background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--tone) 20%, transparent), transparent 65%); }
.dept:hover { border-color: color-mix(in srgb, var(--tone) 70%, transparent); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06), 0 26px 46px -24px var(--tone); }
.dept__icon { position: relative; overflow: hidden; width: 54px; height: 54px; border-radius: 15px; font-size: 22px; background: var(--tone); box-shadow: 0 10px 20px -10px var(--tone), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.dept__icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dept h3 { margin-top: 1.1rem; font-size: 1.08rem; }
.dept__body { color: var(--muted); font-size: 0.9rem; margin-top: 0.35rem; }
.dept__live { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.dept__live span { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.dept__live .i { font-size: 10px; color: var(--dim); }
.dept__join { margin-top: auto; padding-top: 1.1rem; display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transition: color 0.25s; }
.dept__join .i { font-size: 12px; }
.dept__join .i:last-child { margin-left: auto; font-size: 11px; transition: translate 0.25s var(--ease); }
.dept:hover .dept__join { color: var(--ink); }
.dept:hover .dept__join .i:last-child { translate: 2px -2px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 2.5rem); }
.faq__intro .heading { margin-bottom: 2rem; }
.faq__list { display: grid; gap: 0.75rem; }
.qa { border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow-card); transition: border-color 0.3s, box-shadow 0.3s; }
.qa[open] { border-color: rgba(var(--pink-rgb), 0.55); box-shadow: var(--shadow-lift); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.2rem 1.35rem; cursor: pointer; list-style: none; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: clamp(1.02rem, 1.5vw, 1.2rem); transition: color 0.25s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary .i { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; color: var(--pink-text); background: var(--pink-soft); transition: rotate 0.35s var(--ease), color 0.25s, background-color 0.25s; }
.qa summary:hover, .qa[open] summary { color: var(--pink-text); }
.qa[open] summary .i { rotate: 180deg; color: #fff; background: #ea1787; }
.qa p { color: var(--muted); padding: 0 2.5rem 1.35rem 1.35rem; max-width: 62ch; }
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa::details-content { block-size: 0; overflow: hidden; transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete; }
  .qa[open]::details-content { block-size: auto; }
}

/* ---------- Closer ---------- */
.closer { position: relative; overflow: hidden; isolation: isolate; padding: clamp(5rem, 12vw, 10rem) 0; text-align: center; background: var(--bg-closer); }
.closer__glow { position: absolute; z-index: -1; left: 50%; bottom: -45%; width: min(1400px, 160vw); aspect-ratio: 2 / 1; translate: -50% 0; background: radial-gradient(closest-side, rgba(var(--pink-rgb), 0.5), rgba(var(--pink-rgb), 0.14) 55%, transparent 75%); filter: blur(30px); }
.closer__inner { display: grid; justify-items: center; }
.closer img { width: min(300px, 62vw); filter: drop-shadow(0 20px 34px rgba(212, 16, 122, 0.4)) drop-shadow(0 0 50px var(--logo-halo)); margin-bottom: 1.5rem; }
.closer h2 { font-size: clamp(2.2rem, 6.4vw, 5rem); }
.closer .lede { margin-bottom: 2.4rem; color: var(--ink-soft); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-elev); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; }
.footer__brand img { height: 92px; width: auto; filter: drop-shadow(0 10px 18px rgba(212, 16, 122, 0.3)); }
.footer__brand p { color: var(--muted); max-width: 40ch; margin: 1.25rem 0 1.5rem; font-size: 0.96rem; }
.footer__nav { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; }
.footer__nav h3 { font-family: var(--mono); font-stretch: 100%; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--pink-text); margin-bottom: 1.1rem; }
.footer__nav ul { display: grid; gap: 0.6rem; }
#footer-explore { grid-template-columns: 1fr 1fr; }
.footer__nav a { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--muted); font-size: 0.95rem; transition: color 0.25s; }
.footer__nav a:hover { color: var(--pink-text); }
.footer__nav a .i { font-size: 11px; opacity: 0.7; }
.footer__bottom { display: flex; justify-content: space-between; gap: 0.75rem 2rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--dim); font-size: 0.82rem; }

.to-top { position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 80; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 8px; color: #fff; background: linear-gradient(180deg, #ff4fa5, #dd0f7c); box-shadow: 0 14px 28px -10px rgba(234, 23, 135, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); transform: skewX(var(--skew)); opacity: 0; visibility: hidden; translate: 0 12px; transition: opacity 0.3s, visibility 0.3s, translate 0.3s var(--ease); }
.to-top > * { transform: skewX(calc(var(--skew) * -1)); }
.to-top.is-visible { opacity: 1; visibility: visible; translate: 0 0; }
.to-top:hover { translate: 0 -3px; }

.toast { position: fixed; left: 50%; bottom: 2rem; z-index: 130; translate: -50% 20px; padding: 0.7rem 1.2rem; border-radius: 10px; background: var(--toast-bg); color: var(--toast-ink); font-weight: 700; font-size: 0.9rem; box-shadow: 0 20px 50px -14px rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s, translate 0.3s var(--ease); }
.toast.is-visible { opacity: 1; translate: -50% 0; }

/* ---------- Snow (dark mode) ---------- */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 95; pointer-events: none; opacity: 0; transition: opacity 0.8s; }
.snow.is-on { opacity: 1; }

/* ---------- Reveal on scroll ---------- */
.has-reveal [data-reveal]:not(.is-visible) { opacity: 0; }
.has-reveal [data-reveal].is-visible { animation: rise 0.85s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes rise { from { opacity: 0; translate: 0 28px; } }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 1100px) {
  .depts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .paths { grid-template-columns: 1fr; }
  .path ul { margin-top: 0; }
  .night, .faq, .rules, .store { grid-template-columns: 1fr; }
  .night__intro, .faq__intro { position: static; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(4n + 1) { grid-column: auto; }
  .tile:first-child { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .team--lead { grid-template-columns: repeat(2, 1fr); }
  .team--rest { grid-template-columns: 1fr; }
  .team-about { grid-template-columns: 1fr; }
  .network { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .store__mark { width: 80%; right: -22%; bottom: -12%; }
}
@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .brand img { height: 48px; }
  .header__store, .header__discord { display: none; }
  .header__inner { gap: 0.75rem; }
  .hero { padding-bottom: 6.5rem; }
  .hero__cta { display: grid; width: 100%; padding-inline: 0.5rem; }
  .hero__connect, .hero__connect .cmd { width: 100%; }
  .stats__grid { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .stats__grid li { grid-template-columns: 1fr; row-gap: 0.7rem; padding: 1rem; }
  .stat__icon { grid-row: auto; width: 44px; height: 44px; border-radius: 13px; font-size: 18px; }
  .bento, .steps, .rules__list { grid-template-columns: 1fr; }
  .tile:first-child { grid-column: auto; }
  .tile { min-height: 0; }
  .stage { grid-template-columns: 1fr; gap: 0.6rem; }
  .timeline { padding-left: 3.1rem; }
  .timeline::before, .timeline::after { left: 15px; }
  .stage__node { left: -3.1rem; top: 2.3rem; width: 34px; height: 34px; font-size: 13px; }
  .team--lead { gap: 0.75rem; }
  .member { padding: 0.5rem; }
  .member__meta { padding: 0.8rem 0.3rem 0.4rem; }
  .member h3 { font-size: 0.98rem; }
  .team-about__roles li { grid-template-columns: 1fr; gap: 0.6rem; }
  .depts { gap: 0.75rem; }
  .dept { padding: 1rem; min-height: 0; }
  .footer__nav { grid-template-columns: 1fr; }
  .connect .connect__slot, .connect .cmd { width: 100%; }
  .qa p { padding-right: 1rem; }
  .heading--split { grid-template-columns: minmax(0, 1fr); }
  .heading--split .btn-row { grid-column: 1; margin-top: 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .ticker__track { animation: none; }
}

/* ---------- Site credit ---------- */
.footer__credit { flex-basis: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); font-size: 0.82rem; color: var(--dim); text-align: center; }
.footer__credit .i { color: var(--pink-text); font-size: 0.85em; }
.footer__credit b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.credit-discord { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.22rem 0.7rem 0.22rem 0.25rem; border-radius: 999px; font-family: var(--mono); font-size: 0.78rem; font-weight: 700; color: #fff; background: #5865f2; box-shadow: 0 8px 18px -10px rgba(88, 101, 242, 0.9); transition: translate 0.25s var(--ease), filter 0.25s; }
.credit-discord:hover { translate: 0 -2px; filter: brightness(1.1); }
.credit-discord img { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.85); }
.credit-discord .i { color: #fff; font-size: 0.95em; }
.credit-discord:not(:has(img)) { padding-left: 0.7rem; }
/* Keep the back-to-top button clear of the host's corner badge. */
.to-top { bottom: calc(clamp(1rem, 2.5vw, 2rem) + 56px); }
/* Phones: keep the footer clear of the host's corner badge, and the connect box inside the screen. */
.cmd code { min-width: 0; flex: 1 1 auto; }
@media (max-width: 620px) {
  .footer { padding-bottom: 5.5rem; }
  .footer__brand .connect__slot, .footer__brand .cmd { width: 100%; }
}
@media (max-width: 980px) { .footer__top { grid-template-columns: minmax(0, 1fr); } }
