/* ==========================================================================
   67Client — core design system ("blossom")

   The site sits on real in-game footage: a cherry grove at golden hour,
   recorded with 67Client and Complementary shaders. Surfaces are tinted
   glass so the world stays visible behind them. Headings use the client's
   own GUI typeface (Xuong, capitals only), small labels use Monocraft, and
   running text uses the system's best sans-serif for long-form reading.
   ========================================================================== */

@font-face {
  font-family: "Xuong";
  src: url("/assets/fonts/Xuong-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Monocraft";
  src: url("/assets/fonts/Monocraft.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #0c080e;
  --bg-2: #120c15;
  --panel: rgba(21, 13, 24, 0.74);
  --panel-2: rgba(27, 17, 31, 0.8);
  --panel-3: rgba(36, 24, 41, 0.84);
  --glass: rgba(18, 11, 21, 0.56);
  --glass-strong: rgba(15, 9, 18, 0.78);

  --line: rgba(255, 234, 246, 0.1);
  --line-2: rgba(255, 234, 246, 0.16);
  --line-3: rgba(255, 234, 246, 0.26);

  --text: #fff7fb;
  --text-2: rgba(255, 239, 248, 0.8);
  --text-3: rgba(255, 233, 245, 0.58);
  --text-4: rgba(255, 228, 242, 0.4);

  --pink: #ff4fa8;
  --pink-2: #ff92cc;
  --pink-3: #ff1f8f;
  --pink-ink: #2b0717;
  --pink-a06: rgba(255, 79, 168, 0.06);
  --pink-a10: rgba(255, 79, 168, 0.1);
  --pink-a16: rgba(255, 79, 168, 0.16);
  --pink-a30: rgba(255, 79, 168, 0.3);

  /* Cherry-blossom pink: the colour of the 67 logo, used for buttons. */
  --blossom: #ffc3dd;
  --blossom-hi: #ffdcec;
  --blossom-lo: #ffaed2;
  --blossom-ink: #3b0d25;

  --gold: #ffd28f;
  --gold-2: #ffb35e;

  --ok: #72e8a8;
  --ok-a: rgba(114, 232, 168, 0.12);
  --warn: #ffd06a;
  --warn-a: rgba(255, 208, 106, 0.12);
  --danger: #ff7391;
  --danger-a: rgba(255, 115, 145, 0.12);

  --r-xs: 7px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 18px;
  --r-xl: 26px;

  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Xuong", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-pixel: "Monocraft", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", "SF Mono", Consolas, monospace;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 36px);
  --nav-h: 72px;
  --blur: 18px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.5, 0, 0.75, 0);

  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.07) inset, 0 22px 50px -24px rgba(0, 0, 0, 0.8);
  --shadow-3: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 40px 100px -40px rgba(0, 0, 0, 0.9);

  /* Older templates and scripts still name these. */
  --accent: var(--pink);
  --accent-bright: var(--pink-2);
  --muted: var(--text-2);
  --dim: var(--text-3);
  --line-strong: var(--line-3);
}

/* ------------------------------------------------------------------ reset */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  background: var(--bg);
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: rgba(255, 146, 204, 0.32) transparent;
}

body {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text-2);
  font: 400 16px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

main { position: relative; z-index: 1; flex: 1 0 auto; }

img, svg, video, canvas { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, textarea, select { font: inherit; color: inherit; }

button { cursor: pointer; }

::selection { background: rgba(255, 79, 168, 0.4); color: #fff; }

h1, h2, h3, h4 {
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: 0.96; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.12rem; letter-spacing: 0.02em; line-height: 1.2; }
h4 { font-size: 0.9rem; letter-spacing: 0.04em; }

p { text-wrap: pretty; }

strong, b { color: var(--text); font-weight: 600; }

code, kbd, pre { font-family: var(--mono); font-size: 0.88em; }

code {
  padding: 0.12em 0.42em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

kbd {
  display: inline-flex;
  align-items: center;
  min-width: 1.9em;
  justify-content: center;
  padding: 0.16em 0.5em;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 0.78em;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--pink-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ------------------------------------------------------------------ layout */

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--edged { border-top: 1px solid var(--line); }

.section-head { display: grid; gap: 14px; max-width: 680px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p,
.section-head__lede { font-size: 1.06rem; color: var(--text-2); max-width: 60ch; }

.stack { display: grid; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.center { text-align: center; }

.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-2);
  font-family: var(--font-pixel);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

.eyebrow__index { color: var(--text-3); }

/* ----------------------------------------------------------------- surfaces */

.glass,
.card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(1.35);
  backdrop-filter: blur(var(--blur)) saturate(1.35);
  box-shadow: var(--shadow-2);
}

.glass::before,
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 40px 24px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: var(--glass);
  color: var(--text-3);
  text-align: center;
}

.empty strong { color: var(--text); font-family: var(--font-display); font-weight: 400; letter-spacing: 0.03em; }

.skeleton {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.05);
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer { to { transform: translateX(100%); } }

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.stars .is-empty { color: rgba(255, 255, 255, 0.18); }

/* ------------------------------------------------------------------ buttons */

.btn {
  --btn-bg: rgba(255, 255, 255, 0.08);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--btn-bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.2s;
}

.btn svg { width: 17px; height: 17px; flex: none; }

.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--line-3); background: rgba(255, 255, 255, 0.13); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { cursor: not-allowed; opacity: 0.5; }

/* Blossom pink with dark ink, like the 67 logo. */
.btn--primary {
  border-color: rgba(255, 228, 240, 0.9);
  background: linear-gradient(180deg, var(--blossom-hi), var(--blossom-lo));
  color: var(--blossom-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.75) inset, 0 10px 30px -12px rgba(255, 170, 210, 0.7), 0 0 0 1px rgba(255, 195, 221, 0.22);
  text-shadow: none;
}

.btn--primary:hover:not(:disabled) {
  background: linear-gradient(180deg, #ffe9f3, #ffbedb);
  border-color: #fff1f7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset, 0 16px 40px -14px rgba(255, 170, 210, 0.85), 0 0 0 4px rgba(255, 195, 221, 0.18);
}

.btn--ghost { background: rgba(255, 255, 255, 0.07); }
.btn--browse { background: rgba(14, 8, 17, 0.4); }
.btn--subtle { background: transparent; border-color: transparent; color: var(--text-2); }
.btn--subtle:hover:not(:disabled) { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.btn--danger { border-color: rgba(255, 115, 145, 0.45); background: rgba(255, 115, 145, 0.14); color: #ffd6df; }
.btn--danger:hover:not(:disabled) { background: rgba(255, 115, 145, 0.22); border-color: rgba(255, 115, 145, 0.7); }
.btn--discord { border-color: rgba(140, 150, 255, 0.5); background: linear-gradient(180deg, #6f7bff, #5865f2); color: #fff; }
.btn--discord:hover:not(:disabled) { background: linear-gradient(180deg, #7f8aff, #6270ff); border-color: rgba(180, 186, 255, 0.8); }
.btn--google { border-color: rgba(255, 255, 255, 0.7); background: #fff; color: #1f1a22; font-family: var(--font); font-size: 0.98rem; font-weight: 600; letter-spacing: 0; }
.btn--google:hover:not(:disabled) { background: #fff4f9; border-color: #fff; }

.btn--sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: 0.78rem; }
.btn--lg { min-height: 54px; padding: 0 26px; border-radius: 14px; font-size: 0.95rem; }
.btn--block { width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--pink-2);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 146, 204, 0.35);
  text-underline-offset: 4px;
  background: none;
  border: 0;
  padding: 0;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.text-link:hover { color: #fff; text-decoration-color: currentColor; }
.text-link svg { width: 14px; height: 14px; }

/* -------------------------------------------------------------- chips & tags */

.chip,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.chip--accent { border-color: rgba(255, 146, 204, 0.4); background: var(--pink-a10); color: var(--pink-2); }
.chip--ok { border-color: rgba(114, 232, 168, 0.35); background: var(--ok-a); color: var(--ok); }
.chip--warn { border-color: rgba(255, 208, 106, 0.35); background: var(--warn-a); color: var(--warn); }
.chip--danger { border-color: rgba(255, 115, 145, 0.4); background: var(--danger-a); color: var(--danger); }
.chip--dim { color: var(--text-3); }

/* -------------------------------------------------------------------- forms */

.field { display: grid; gap: 7px; color: var(--text-2); font-size: 0.88rem; font-weight: 600; }

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(10, 6, 12, 0.5);
  color: var(--text);
  font-weight: 400;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.input--mono { font-family: var(--mono); letter-spacing: 0.04em; }
.input::placeholder, .textarea::placeholder { color: var(--text-4); }

.input:focus,
.select:focus,
.textarea:focus { border-color: rgba(255, 146, 204, 0.6); box-shadow: 0 0 0 4px rgba(255, 79, 168, 0.14); background: rgba(10, 6, 12, 0.66); }

.select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff92cc' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 16px;
}

.select option { background: #1a1020; color: var(--text); }

.hint { color: var(--text-3); font-size: 0.84rem; font-weight: 400; }

.note {
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  font-size: 0.92rem;
}

.note--warn { border-color: rgba(255, 208, 106, 0.35); background: var(--warn-a); color: #ffe7b0; }
.note--danger { border-color: rgba(255, 115, 145, 0.4); background: var(--danger-a); color: #ffd3dd; }

/* ---------------------------------------------------------------- utilities */

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.small { font-size: 0.86rem; }
.mono { font-family: var(--mono); }
.accent { color: var(--pink-2); }
.gradient-text { background: linear-gradient(100deg, #fff 10%, var(--pink-2) 60%, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hidden { display: none !important; }
.no-select { -webkit-user-select: none; user-select: none; }

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--blossom);
  color: var(--blossom-ink);
  font-weight: 700;
  transition: top 0.2s;
}

.skip-link:focus { top: 12px; }

/* ------------------------------------------------------------- the backdrop */

/* Every page sits on the cherry grove. Pages with long text get a darker shade;
   the dashboard uses a still frame instead of a moving video. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #120b13 center / cover no-repeat;
  pointer-events: none;
}

.backdrop__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.backdrop__media.is-ready { opacity: 1; }

.backdrop__shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, rgba(12, 7, 14, 0) 30%, rgba(12, 7, 14, 0.55) 100%),
    linear-gradient(180deg, rgba(12, 7, 14, 0.62) 0%, rgba(12, 7, 14, 0.22) 22%, rgba(12, 7, 14, 0.38) 62%, rgba(12, 7, 14, 0.86) 100%);
}

.backdrop--deep .backdrop__shade {
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(12, 7, 14, 0.3) 20%, rgba(12, 7, 14, 0.72) 100%),
    linear-gradient(180deg, rgba(12, 7, 14, 0.7) 0%, rgba(12, 7, 14, 0.5) 30%, rgba(12, 7, 14, 0.82) 100%);
}

.backdrop--blur .backdrop__media,
.backdrop--blur.backdrop { filter: blur(14px) saturate(1.1); transform: scale(1.06); }

/* ---------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(14, 8, 17, 0.62);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

.nav__inner { display: flex; align-items: center; gap: 22px; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--text); font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.04em; }

.brand__mark {
  width: 48px;
  height: 25px;
  background: url("/assets/img/logo-67-blossom-sm.webp") center / contain no-repeat;
  filter: drop-shadow(0 2px 6px rgba(10, 4, 12, 0.35));
  transition: transform 0.35s var(--ease);
}

.brand:hover .brand__mark { transform: translateY(-1px) rotate(-3deg); }

.nav__links { position: relative; display: flex; align-items: center; gap: 4px; margin-left: 10px; }

.nav__link {
  position: relative;
  z-index: 1;
  padding: 9px 13px;
  border-radius: 10px;
  color: var(--text-2);
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  transition: color 0.2s;
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }

.nav__indicator {
  position: absolute;
  top: 50%;
  left: 0;
  height: 36px;
  margin-top: -18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.09);
  opacity: 0;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), opacity 0.2s;
}

.nav__indicator.is-visible { opacity: 1; }

.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__discord svg { width: 17px; height: 17px; }

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  align-items: center;
  justify-content: center;
}

.nav__toggle svg { width: 18px; height: 18px; }

/* language chooser */
.lang { position: relative; }

.lang__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  list-style: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s;
}

.lang__button::-webkit-details-marker { display: none; }
.lang__button svg { width: 16px; height: 16px; color: var(--pink-2); }
.lang__button:hover, .lang[open] .lang__button { background: rgba(255, 255, 255, 0.12); border-color: var(--line-3); }

.lang__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 60;
  display: grid;
  gap: 2px;
  min-width: 200px;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(18, 11, 21, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: var(--shadow-3);
  animation: pop 0.22s var(--ease);
}

@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }

.lang__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s;
}

.lang__opt:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.lang__opt.is-active { background: var(--pink-a16); color: var(--text); }

.lang__code {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 22px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--pink-2);
  font-family: var(--font-pixel);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
}

/* ------------------------------------------------------------------- footer */

.footer {
  position: relative;
  z-index: 1;
  overflow: hidden;
  margin-top: auto;
  padding: 72px 0 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 7, 14, 0.7), rgba(9, 5, 11, 0.94));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.footer__about p { max-width: 32ch; margin-top: 14px; color: var(--text-3); font-size: 0.92rem; }

.footer h4 { margin-bottom: 14px; color: var(--text); font-size: 0.78rem; letter-spacing: 0.12em; }
.footer ul { display: grid; gap: 9px; padding: 0; list-style: none; }
.footer li a { color: var(--text-3); font-size: 0.93rem; transition: color 0.2s; }
.footer li a:hover { color: var(--text); }

.footer__version {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 6px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-2);
  font-family: var(--font-pixel);
  font-size: 0.72rem;
}

.footer__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(114, 232, 168, 0.6); animation: pulse 2.4s infinite; }

@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(114, 232, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(114, 232, 168, 0); } }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 56px;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--text-4);
  font-size: 0.84rem;
}

.footer__credit a { color: var(--text-3); }
.footer__credit a:hover { color: var(--pink-2); }
.footer__disclaimer { flex-basis: 100%; }

.footer__wordmark {
  margin: 0 auto -0.2em;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(4rem, 17vw, 15rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-align: center;
  -webkit-text-stroke: 1px rgba(255, 146, 204, 0.22);
  background: linear-gradient(180deg, rgba(255, 146, 204, 0.16), rgba(255, 146, 204, 0));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* ------------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  gap: 10px;
  max-width: min(380px, calc(100vw - 36px));
}

.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(18, 11, 21, 0.9);
  color: var(--text);
  font-size: 0.93rem;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-3);
  animation: toast-in 0.35s var(--ease);
}

@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }

.toast__icon { width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px var(--pink); }
.toast--ok .toast__icon { background: var(--ok); box-shadow: 0 0 12px var(--ok); }
.toast--error .toast__icon { background: var(--danger); box-shadow: 0 0 12px var(--danger); }
.toast__link { color: var(--pink-2); text-decoration: underline; }

/* ------------------------------------------------------------------- legal */

.prose { color: var(--text-2); font-size: 1rem; line-height: 1.75; }
.prose h2 { margin: 2.2em 0 0.7em; font-size: 1.3rem; letter-spacing: 0.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.6em 0 0.5em; font-size: 1.02rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose a { color: var(--pink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ motion */

.reveal.is-pending { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) var(--reveal-delay, 0ms), transform 0.8s var(--ease) var(--reveal-delay, 0ms); }

.anim { animation: rise 0.9s var(--ease) both; }
.anim--1 { animation-delay: 0.05s; }
.anim--2 { animation-delay: 0.14s; }
.anim--3 { animation-delay: 0.24s; }
.anim--4 { animation-delay: 0.34s; }
.anim--5 { animation-delay: 0.44s; }
.anim--6 { animation-delay: 0.54s; }
.anim-safe .anim { animation: none; opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal.is-pending { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1020px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav__toggle { display: inline-flex; }
  .nav__discord { display: none; }

  .nav__links {
    position: absolute;
    top: calc(var(--nav-h) - 6px);
    left: var(--gutter);
    right: var(--gutter);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    background: rgba(18, 11, 21, 0.94);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-3);
  }

  .nav__links.is-open { display: flex; animation: pop 0.22s var(--ease); }
  .nav__link { padding: 13px 14px; font-size: 0.92rem; }
  .nav__indicator { display: none; }
  .nav__link[aria-current="page"]::after { left: 14px; right: auto; width: 24px; }
}

@media (max-width: 560px) {
  :root { --nav-h: 64px; }
  .brand__name { display: none; }
  .nav__actions .btn--sm { padding: 0 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { margin-top: 36px; }
}
