/* ═══════════════════════════════════════════════════════════════
   DarkRealms — tokens
   Deepslate and cave dark, teal for the server, ember for anything
   that is alive right now (players online, hovers, the torch glow).
   ═══════════════════════════════════════════════════════════════ */
:root {
  --void: #05090c;
  --deepslate: #0a1216;
  --slate: #101c21;
  --slate-hi: #16272d;

  --teal: #14d6a4;
  --teal-hi: #5cf5cf;
  --teal-dim: #0b8f6d;
  --ember: #ff9d3d;
  --danger: #ff5d6c;

  --bone: #e4f0ed;
  --muted: #7d9c98;
  --faint: #4c6a67;

  --edge: color-mix(in srgb, var(--teal) 16%, transparent);
  --edge-soft: color-mix(in srgb, var(--teal) 8%, transparent);

  --ff-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --ff-body: 'Sora', system-ui, -apple-system, sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shell: min(1240px, 100% - 3rem);
  --radius: 3px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { color-scheme: dark; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  background: var(--void);
  color: var(--bone);
  font: 400 16px/1.65 var(--ff-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Cave light: a cold wash from above, warm pool at the hero. */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #0d2027 0%, transparent 60%),
    radial-gradient(70% 45% at 78% 22%, color-mix(in srgb, var(--ember) 9%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--void) 0%, #060c10 40%, var(--void) 100%);
}
/* Fine grain keeps the flat darks from banding. */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

::selection { background: var(--teal); color: var(--void); }

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

.shell { width: var(--shell); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--teal); color: var(--void); padding: .7rem 1.2rem;
  font: 600 .85rem var(--ff-body);
}
.skip:focus { left: 1rem; top: 1rem; }

/* ── type ─────────────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--ff-display); font-weight: 800; line-height: .92; letter-spacing: -.01em; }
.display {
  font-family: var(--ff-display);
  font-variation-settings: 'wdth' 118, 'wght' 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .84;
}
.eyebrow {
  font: 500 .7rem/1 var(--ff-mono);
  letter-spacing: .22em; text-transform: uppercase; color: var(--teal);
}
.lede { color: var(--muted); font-size: 1.02rem; max-width: 46ch; }
.mono { font-family: var(--ff-mono); }

/* ── buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 600 .88rem/1 var(--ff-body); letter-spacing: .01em;
  padding: .85rem 1.4rem; border-radius: var(--radius);
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease), transform .18s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #04120e; box-shadow: 0 0 0 0 color-mix(in srgb, var(--teal) 40%, transparent); }
.btn-primary:hover { background: var(--teal-hi); box-shadow: 0 0 34px -6px color-mix(in srgb, var(--teal) 55%, transparent); }
.btn-ghost { border-color: var(--edge); color: var(--bone); background: color-mix(in srgb, var(--slate) 60%, transparent); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-hi); }
.btn-sm { padding: .55rem 1rem; font-size: .8rem; }

/* ── nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--void) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--edge-soft);
}
.nav-inner { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); min-height: 62px; }
.brand {
  font-family: var(--ff-display); font-variation-settings: 'wdth' 112, 'wght' 800;
  font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em;
  color: var(--bone); text-decoration: none; white-space: nowrap; flex: none;
}
.brand span { color: var(--teal); }

/* The links take the slack; brand and actions never shrink, so nothing
   gets squeezed together at awkward widths. */
.nav-links { display: flex; gap: clamp(.9rem, 2vw, 1.7rem); margin-inline: auto; min-width: 0; }
.nav-links a {
  font: 500 .82rem/1 var(--ff-body); color: var(--muted); text-decoration: none;
  padding: .5rem 0; position: relative; white-space: nowrap; transition: color .18s var(--ease);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: .2rem; height: 1px;
  background: var(--teal); transition: right .22s var(--ease);
}
.nav-links a:hover { color: var(--bone); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.nav-actions .btn { flex: none; white-space: nowrap; }

.nav-toggle {
  display: none; align-items: center; gap: .45rem; margin-left: auto; flex: none;
  background: transparent; border: 1px solid var(--edge); border-radius: var(--radius);
  color: var(--muted); padding: .5rem .8rem; cursor: pointer;
  font: 500 .78rem/1 var(--ff-body);
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { color: var(--bone); border-color: var(--teal); }

/* live dot, used in the nav and the status panel */
.dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none;
}
.dot.is-on { background: var(--teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent); animation: breathe 2.4s var(--ease) infinite; }
.dot.is-off { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 15%, transparent); }
@keyframes breathe { 50% { opacity: .35; } }

.nav-live {
  display: flex; align-items: center; gap: .5rem; flex: none; white-space: nowrap;
  border: 1px solid var(--edge-soft); border-radius: 99px; padding: .35rem .8rem;
  font: 500 .7rem/1 var(--ff-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}

/* ── hero ─────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--edge); border-radius: 99px;
  padding: .35rem .85rem .35rem .7rem; margin-bottom: 1.6rem;
  font: 500 .72rem/1 var(--ff-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.hero h1 { font-size: clamp(3.4rem, 9vw, 7.2rem); }
.hero h1 .l2 {
  display: block;
  -webkit-text-stroke: 1.5px var(--teal);
  color: transparent;
  text-shadow: 0 0 60px color-mix(in srgb, var(--teal) 25%, transparent);
}
.hero-sub { margin-top: 1.4rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* The IP is the actual call to action, so it gets to be an object. */
.ip-strip {
  display: flex; align-items: stretch; gap: 0; margin-top: 2rem;
  border: 1px solid var(--edge); border-radius: var(--radius);
  background: linear-gradient(90deg, color-mix(in srgb, var(--slate) 70%, transparent), transparent);
  overflow: hidden; max-width: 30rem;
}
.ip-strip .label {
  display: grid; place-items: center; padding: 0 .9rem;
  font: 500 .62rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); border-right: 1px solid var(--edge-soft);
}
.ip-strip .value {
  flex: 1; display: flex; align-items: center; padding: .9rem 1rem;
  font: 700 clamp(1rem, 2.4vw, 1.3rem)/1 var(--ff-mono); color: var(--bone);
  letter-spacing: -.01em; overflow-x: auto; scrollbar-width: none;
}
.ip-copy {
  border: 0; border-left: 1px solid var(--edge-soft);
  background: color-mix(in srgb, var(--teal) 10%, transparent); color: var(--teal-hi);
  font: 600 .78rem/1 var(--ff-body); padding: 0 1.1rem; cursor: pointer;
  display: flex; align-items: center; gap: .45rem; white-space: nowrap;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.ip-copy:hover { background: var(--teal); color: #04120e; }
.ip-copy.is-done { background: var(--teal); color: #04120e; }

/* ── hero stage: the character ────────────────────────────────── */
.stage-wrap { position: relative; display: grid; justify-items: center; }
.stage-wrap::before {
  content: ''; position: absolute; inset: -12% -6% 8%;
  background: radial-gradient(50% 46% at 50% 42%, color-mix(in srgb, var(--ember) 16%, transparent), transparent 70%);
  filter: blur(6px); animation: torch 5.5s ease-in-out infinite; pointer-events: none;
}
@keyframes torch { 0%, 100% { opacity: .75; } 42% { opacity: 1; } 68% { opacity: .62; } }

.stage-plinth {
  position: relative; width: 100%; display: grid; place-items: center;
  padding: 1rem 0 2.2rem;
}
.stage-plinth::after {
  content: ''; position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0;
  width: min(78%, 22rem); height: 1px;
  background: linear-gradient(90deg, transparent, var(--edge) 20%, var(--teal) 50%, var(--edge) 80%, transparent);
  opacity: .5;
}

/* readout under the model — deliberately debug-screen plain */
.readout {
  width: min(100%, 24rem); border: 1px solid var(--edge-soft);
  border-radius: var(--radius); background: color-mix(in srgb, var(--deepslate) 75%, transparent);
  font-family: var(--ff-mono); font-size: .76rem;
}
.readout-row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .5rem .85rem; border-bottom: 1px solid var(--edge-soft);
}
.readout-row:last-child { border-bottom: 0; }
.readout-row dt { color: var(--faint); letter-spacing: .06em; }
.readout-row dd { color: var(--bone); font-weight: 500; text-align: right; }
.readout-row dd.accent { color: var(--teal); }
.readout-row dd.warn { color: var(--ember); }
.bar { height: 3px; background: color-mix(in srgb, var(--teal) 12%, transparent); }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-dim), var(--teal-hi)); transition: width .9s var(--ease); }

.readout-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  padding: .5rem .85rem; border-top: 1px solid var(--edge-soft);
  background: rgba(0, 0, 0, .22); font-size: .7rem; color: var(--faint);
}
.refresh-btn {
  display: inline-flex; align-items: center; gap: .35rem; flex: none;
  background: transparent; border: 1px solid var(--edge-soft); border-radius: 3px;
  color: var(--muted); padding: .25rem .6rem; cursor: pointer;
  font: 500 .68rem/1 var(--ff-mono); letter-spacing: .06em;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.refresh-btn:hover { color: var(--teal); border-color: var(--teal); }
.refresh-btn .is-spinning { animation: spin .7s linear; }
@keyframes spin { to { rotate: 360deg; } }

/* ── online players ───────────────────────────────────────────── */
.online-strip { padding: 1.6rem 0 0; }
.online-strip[hidden] { display: none; }
.strip-head {
  display: flex; align-items: center; gap: 1rem; margin-bottom: .9rem;
  font: 500 .68rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint);
}
.strip-head::after { content: ''; flex: 1; height: 1px; background: var(--edge-soft); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid var(--edge-soft); border-radius: var(--radius);
  padding: .3rem .7rem .3rem .35rem;
  font: 500 .82rem/1 var(--ff-body); color: var(--muted);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.chip:hover { border-color: var(--teal); color: var(--bone); }
.chip img { width: 20px; height: 20px; image-rendering: pixelated; border-radius: 2px; }

/* ── sections ─────────────────────────────────────────────────── */
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section + .section { border-top: 1px solid var(--edge-soft); }
.section-head { max-width: 54ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin-top: .7rem; }
.section-head h2 em { font-style: normal; -webkit-text-stroke: 1.2px var(--teal); color: transparent; }
.section-head p { color: var(--muted); margin-top: .9rem; }

/* ── features ─────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(17.5rem, 1fr)); gap: 0; }
.feature {
  padding: 1.9rem 1.7rem 2rem; border-top: 1px solid var(--edge-soft);
  border-right: 1px solid var(--edge-soft); position: relative;
  transition: background .25s var(--ease);
}
.feature:hover { background: color-mix(in srgb, var(--slate) 45%, transparent); }
.feature::before {
  content: ''; position: absolute; top: -1px; left: 0; width: 0; height: 1px;
  background: var(--teal); transition: width .35s var(--ease);
}
.feature:hover::before { width: 100%; }
.feature-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.feature-num {
  font-family: var(--ff-display); font-variation-settings: 'wdth' 100, 'wght' 800;
  font-size: 2.6rem; line-height: 1; color: color-mix(in srgb, var(--teal) 16%, transparent);
  user-select: none; transition: color .25s var(--ease);
}
.feature:hover .feature-num { color: color-mix(in srgb, var(--ember) 55%, transparent); }
.feature-ico {
  display: grid; place-items: center; flex: none;
  width: 2.6rem; height: 2.6rem; border-radius: var(--radius);
  border: 1px solid var(--edge-soft);
  background: color-mix(in srgb, var(--teal) 6%, transparent);
  color: var(--teal); font-size: 1.05rem;
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.feature:hover .feature-ico {
  color: var(--teal-hi);
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
  background: color-mix(in srgb, var(--teal) 12%, transparent);
}
.feature h3 { font-size: 1.2rem; font-variation-settings: 'wdth' 108, 'wght' 700; margin-bottom: .5rem; }
.feature p { color: var(--muted); font-size: .9rem; }
.feature-tag {
  display: inline-block; margin-top: 1.1rem;
  font: 500 .62rem/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--teal); background: color-mix(in srgb, var(--teal) 8%, transparent);
  border: 1px solid var(--edge); border-radius: 2px; padding: .3rem .6rem;
}

/* ── team ─────────────────────────────────────────────────────── */
.team-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(11rem, 1fr);
  gap: .5rem; overflow-x: auto; padding-bottom: 1.5rem;
  scroll-snap-type: x mandatory; scrollbar-width: thin;
}
@media (max-width: 900px) { .team-rail { grid-auto-columns: minmax(9.5rem, 60%); } }

.member {
  --accent: var(--teal);
  scroll-snap-align: start; position: relative;
  display: grid; grid-template-rows: 1fr auto; gap: 0;
  padding: 1rem .8rem 0; border-radius: var(--radius);
  background: linear-gradient(180deg, transparent 40%, color-mix(in srgb, var(--accent) 7%, transparent) 100%);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.member:hover { transform: translateY(-6px); background: linear-gradient(180deg, transparent 30%, color-mix(in srgb, var(--accent) 14%, transparent) 100%); }
.member-stage { display: grid; place-items: end center; min-height: 15rem; }
.member-info {
  border-top: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: .85rem .2rem 1rem; text-align: center;
}
.member-role {
  font: 500 .64rem/1 var(--ff-mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.member-name {
  font-family: var(--ff-display); font-variation-settings: 'wdth' 110, 'wght' 700;
  font-size: 1.1rem; margin: .45rem 0 .35rem; word-break: break-word;
}
.member-bio { font-size: .78rem; color: var(--muted); line-height: 1.55; }
.member-links { display: grid; gap: .35rem; margin-top: .8rem; justify-items: stretch; }
.member-chip {
  display: flex; align-items: baseline; gap: .5rem;
  font: 500 .72rem/1.3 var(--ff-mono); color: var(--bone); text-decoration: none;
  border: 1px solid var(--edge-soft); border-radius: var(--radius);
  padding: .35rem .55rem; text-align: left; word-break: break-word;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.member-chip-key {
  flex: none; font-weight: 500; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint);
}
a.member-chip:hover { color: var(--accent); border-color: var(--accent); }
a.member-chip:hover .member-chip-key { color: var(--accent); }

.team-empty {
  border: 1px dashed var(--edge); border-radius: var(--radius);
  padding: 2.5rem; text-align: center; color: var(--muted);
}

/* ── form controls (used by the admin panel) ──────────────────── */
.field { display: grid; gap: .45rem; }
.field label { font: 500 .68rem/1 var(--ff-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.input, .select, .textarea {
  width: 100%; background: var(--deepslate); color: var(--bone);
  border: 1px solid var(--edge); border-radius: var(--radius);
  padding: .75rem .9rem; font: 500 .95rem var(--ff-mono);
  transition: border-color .18s var(--ease), background .18s var(--ease);
}
.textarea { font-family: var(--ff-body); font-weight: 400; resize: vertical; min-height: 4.5rem; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--teal); background: var(--slate); }
.input::placeholder { color: var(--faint); }

.state {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.2rem;
  border: 1px solid var(--edge); border-radius: 99px; padding: .35rem .9rem;
  font: 500 .72rem/1 var(--ff-mono); letter-spacing: .06em; color: var(--muted);
}
.state[data-source="original"] { border-color: color-mix(in srgb, var(--teal) 45%, transparent); color: var(--teal); }
.state[data-source="override"] { border-color: color-mix(in srgb, var(--ember) 45%, transparent); color: var(--ember); }
.state[data-source="default"] { border-color: var(--edge); color: var(--muted); }

/* ── join ─────────────────────────────────────────────────────── */
.join-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.steps { display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 1.4rem;
  padding: 1.6rem 0; border-top: 1px solid var(--edge-soft);
}
.step:last-child { border-bottom: 1px solid var(--edge-soft); }
.step-n {
  font-family: var(--ff-mono); font-size: .8rem; font-weight: 700; color: var(--teal);
  padding-top: .25rem;
}
.step h3 { font-size: 1.15rem; font-variation-settings: 'wdth' 108, 'wght' 700; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .9rem; }
.step code {
  display: inline-block; margin-top: .6rem; font-family: var(--ff-mono); font-size: .88rem;
  background: color-mix(in srgb, var(--teal) 10%, transparent); color: var(--teal-hi);
  border: 1px solid var(--edge); border-radius: var(--radius); padding: .3rem .7rem;
}

.join-aside { display: grid; gap: .8rem; }
.aside-card {
  border: 1px solid var(--edge-soft); border-radius: var(--radius); padding: 1.3rem 1.4rem;
  background: color-mix(in srgb, var(--deepslate) 55%, transparent);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.aside-card:hover { border-color: color-mix(in srgb, var(--teal) 45%, transparent); transform: translateX(4px); }
.aside-head { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.aside-ico {
  display: grid; place-items: center; flex: none;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal); font-size: .85rem;
}
.aside-card h3 { font-size: 1rem; font-variation-settings: 'wdth' 106, 'wght' 700; }
.aside-card p { font-size: .85rem; color: var(--muted); }

/* ── discord ──────────────────────────────────────────────────── */
.cta { text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.cta p { color: var(--muted); max-width: 44ch; margin: 1rem auto 2rem; }
.btn-lg { padding: 1rem 2.2rem; font-size: 1rem; }

/* ── footer ───────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--edge-soft); padding: 3.5rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer h6 { font: 500 .66rem/1 var(--ff-mono); letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.footer ul { list-style: none; display: grid; gap: .55rem; }
.footer ul a {
  display: flex; align-items: center; gap: .6rem;
  color: var(--muted); text-decoration: none; font-size: .88rem;
  transition: color .18s var(--ease), translate .18s var(--ease);
}
.footer ul a i { width: 1rem; text-align: center; font-size: .8rem; color: var(--faint); transition: color .18s var(--ease); }
.footer ul a:hover { color: var(--teal); translate: 3px 0; }
.footer ul a:hover i { color: var(--teal); }
.footer-desc { font-size: .86rem; color: var(--muted); margin-top: .8rem; max-width: 34ch; }
.footer-note { border-top: 1px solid var(--edge-soft); padding-top: 1.8rem; display: grid; gap: .9rem; justify-items: start; }
.footer-note p { font-size: .72rem; color: var(--faint); line-height: 1.7; max-width: 80ch; }
.footer-note strong { color: var(--muted); font-weight: 600; }
.ai-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1px solid var(--edge-soft); border-radius: 2px; padding: .3rem .7rem;
  font-family: var(--ff-mono); letter-spacing: .1em; text-transform: uppercase;
}
.copy { font-size: .7rem !important; }

/* ── toast ────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 2rem; translate: -50% 1rem; z-index: 90;
  background: var(--slate-hi); border: 1px solid var(--teal); color: var(--teal-hi);
  padding: .7rem 1.3rem; border-radius: var(--radius);
  font: 500 .84rem/1 var(--ff-body);
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), translate .22s var(--ease), visibility .22s;
}
.toast.is-shown { opacity: 1; visibility: visible; translate: -50% 0; }

/* ── scroll reveal ────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── responsive ───────────────────────────────────────────────── */

/* The live pill is the first thing to go — it is the least useful in the bar
   and the first thing that starts crowding the buttons. */
@media (max-width: 1120px) {
  .nav-live { display: none; }
}

@media (max-width: 900px) {
  :root { --shell: min(1240px, 100% - 2rem); }
  .hero-grid, .join-grid { grid-template-columns: 1fr; }
  .stage-wrap { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: color-mix(in srgb, var(--void) 97%, transparent);
    border-bottom: 1px solid var(--edge-soft);
    padding: .4rem 0; display: none;
  }
  .nav-links[data-open="true"] { display: flex; }
  .nav-links a { padding: .85rem clamp(1rem, 5vw, 2rem); }
  .nav-links a::after { display: none; }
  .nav-actions { margin-left: 0; }
}

@media (max-width: 620px) {
  #nav-shop { display: none; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .ip-strip .label { display: none; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════════
   skin3d — the CSS 3D player model
   ═══════════════════════════════════════════════════════════════ */
.sv-host { touch-action: pan-y; user-select: none; }
.sv-host.is-dragging { cursor: grabbing; }
.sv-host[data-drag="true"] { cursor: grab; }

.sv-stage { position: relative; display: grid; place-items: center; }
.sv-model {
  position: relative; transform-style: preserve-3d;
  transition: opacity .45s var(--ease);
  opacity: 0;
}
.sv-host.is-loaded .sv-model { opacity: 1; }

.sv-pivot { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.sv-inner { position: absolute; transform-style: preserve-3d; }
.sv-box { position: absolute; left: 0; top: 0; transform-style: preserve-3d; transform: translate(-50%, -50%); }
.sv-face {
  position: absolute; left: 50%; top: 50%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  backface-visibility: hidden;
}
.sv-overlay .sv-face { backface-visibility: visible; }

.sv-shadow {
  position: absolute; bottom: -2px; left: 50%; translate: -50% 0;
  width: 62%; height: 10px; border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, .75), transparent 72%);
  filter: blur(3px); opacity: .3;
}
