/* STARKOFF site — purple + black, pixel typography, no build step. */

:root {
  --bg: #0a0a0f;
  --bg-2: #110c16;
  --bg-3: #18111f;
  --bg-card: #140f1a;
  --purple: #7c3aed;
  --purple-l: #a855f7;
  --purple-xl: #c084fc;
  --purple-d: #4c1d95;
  --purple-xd: #2e1065;
  --text: #f3e8ff;
  --text-dim: #c4b5d6;
  --text-mute: #8b7a99;
  --plus: #86efac;
  --minus: #fca5a5;
  --font: "Press Start 2P", ui-monospace, "Courier New", monospace;
  --nav-h: 64px;
  --max: 1120px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 11px;
  line-height: 2;
  letter-spacing: 0.02em;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(ellipse 40% 30% at 100% 20%, rgba(88, 28, 135, 0.22), transparent 50%),
    radial-gradient(ellipse 50% 40% at 0% 80%, rgba(76, 29, 149, 0.16), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

body.intro-lock { overflow: hidden; height: 100%; }

img { max-width: 100%; height: auto; display: block; }
button, a { font-family: inherit; }
button { cursor: pointer; }
:focus-visible {
  outline: 2px solid var(--purple-l);
  outline-offset: 3px;
}

/* Space canvas sits behind everything */
#space {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
}

/* ---------- typography ---------- */
h1, h2, h3, h4, p { margin: 0; }

.section {
  padding: 88px 20px 24px;
  scroll-margin-top: calc(var(--nav-h) + 8px);
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(14px, 3.2vw, 22px);
  line-height: 1.6;
  color: var(--text);
  text-shadow: 0 0 18px rgba(168, 85, 247, 0.55);
}

.section-head p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 2;
}

.kicker {
  display: inline-block;
  color: var(--purple-xl);
  font-size: 8px;
  letter-spacing: 0.18em;
  margin-bottom: 12px;
}

.inner {
  width: min(100%, var(--max));
  margin-inline: auto;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 2px solid rgba(168, 85, 247, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.nav.is-scrolled {
  background: rgba(10, 10, 15, 0.92);
  border-bottom-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(124, 58, 237, 0.18);
}

.nav-logo {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-shadow: 0 0 12px rgba(168, 85, 247, 0.7);
  transition: color 0.2s, text-shadow 0.2s, transform 0.2s var(--ease);
}

.nav-logo:hover {
  color: var(--purple-xl);
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.95);
  transform: translateY(-1px);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sound-toggle {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--purple);
  background: rgba(124, 58, 237, 0.15);
  color: var(--text);
  padding: 0;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.sound-toggle:hover {
  background: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
  color: var(--purple-xl);
}
.sound-toggle:active { transform: translateY(1px); }
.sound-icon { display: block; width: 16px; height: 16px; }
.sound-slash { display: none; transform-origin: 8px 8px; transform: rotate(-32deg); }
.sound-toggle.is-off {
  border-color: rgba(168, 85, 247, 0.35);
  color: var(--text-mute);
}
.sound-toggle.is-off .sound-waves { opacity: 0.2; }
.sound-toggle.is-off .sound-slash { display: block; color: var(--text); }

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 9px;
  padding: 10px 12px;
  line-height: 1.2;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  background: var(--purple-l);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
  box-shadow: 0 0 8px var(--purple-l);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--purple);
  background: rgba(124, 58, 237, 0.15);
  color: var(--text);
  padding: 0;
  position: relative;
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.nav-toggle:hover {
  background: rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 16px rgba(168, 85, 247, 0.5);
}

.nav-toggle { position: relative; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 3px;
  background: var(--text);
  position: absolute;
  left: 50%;
  margin-left: -9px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease), background 0.2s;
}
.nav-toggle span { top: 50%; margin-top: -1.5px; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: var(--purple);
  color: var(--text);
  font-size: 10px;
  line-height: 1.2;
  padding: 14px 18px;
  text-decoration: none;
  box-shadow:
    0 4px 0 var(--purple-xd),
    0 0 18px rgba(168, 85, 247, 0.4);
  transition: transform 0.18s var(--ease), box-shadow 0.18s, background 0.18s, color 0.18s;
  user-select: none;
}

.btn:hover {
  background: var(--purple-l);
  transform: translateY(-2px);
  box-shadow:
    0 6px 0 var(--purple-xd),
    0 0 28px rgba(192, 132, 252, 0.7);
}

.btn:active {
  transform: translateY(2px);
  box-shadow:
    0 1px 0 var(--purple-xd),
    0 0 12px rgba(168, 85, 247, 0.35);
}

.btn.is-copied {
  background: #6d28d9;
}

.btn-ip {
  animation: ip-pulse 2.2s ease-in-out infinite;
  min-width: 168px;
}

@keyframes ip-pulse {
  0%, 100% {
    box-shadow: 0 4px 0 var(--purple-xd), 0 0 14px rgba(168, 85, 247, 0.35);
  }
  50% {
    box-shadow: 0 4px 0 var(--purple-xd), 0 0 34px rgba(192, 132, 252, 0.95), 0 0 60px rgba(124, 58, 237, 0.45);
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 32px) 20px 64px;
  text-align: center;
}

.hero-title {
  font-size: clamp(28px, 9vw, 80px);
  line-height: 1.15;
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow:
    0 0 8px rgba(243, 232, 255, 0.4),
    0 0 28px rgba(168, 85, 247, 0.75),
    0 0 64px rgba(124, 58, 237, 0.55);
  animation: title-glow 3.6s ease-in-out infinite;
}

@keyframes title-glow {
  0%, 100% {
    text-shadow: 0 0 8px rgba(243, 232, 255, 0.35), 0 0 24px rgba(168, 85, 247, 0.65), 0 0 56px rgba(124, 58, 237, 0.4);
  }
  50% {
    text-shadow: 0 0 12px rgba(243, 232, 255, 0.7), 0 0 40px rgba(192, 132, 252, 1), 0 0 80px rgba(124, 58, 237, 0.7);
  }
}

.hero-tag {
  margin: 22px 0 0;
  font-size: clamp(9px, 2.2vw, 13px);
  color: var(--purple-xl);
  letter-spacing: 0.14em;
  line-height: 1.8;
}

.hero-sub {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 10px;
}

.ip-box {
  margin: 36px auto 0;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
  max-width: 560px;
}

.ip-box__addr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 3px solid var(--purple);
  box-shadow: 0 0 0 2px #000, 0 0 22px rgba(124, 58, 237, 0.35);
  min-width: min(100%, 260px);
  text-align: left;
}

.ip-box__label {
  font-size: 8px;
  color: var(--purple-xl);
  letter-spacing: 0.16em;
}

.ip-box__value {
  font-size: clamp(12px, 3vw, 16px);
  color: var(--text);
  line-height: 1.3;
}

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.version {
  font-size: 10px;
  color: var(--text-dim);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(20, 15, 26, 0.8);
  border: 2px solid rgba(168, 85, 247, 0.35);
  font-size: 10px;
  color: var(--text-dim);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.status[data-state="online"] {
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.25);
  color: var(--text);
}

.status[data-state="offline"] { border-color: rgba(252, 165, 165, 0.5); }
.status[data-state="unknown"] { border-color: rgba(139, 122, 153, 0.5); }

.status__dot {
  width: 10px;
  height: 10px;
  background: var(--text-mute);
  box-shadow: 0 0 0 2px #000;
  flex: none;
}

.status[data-state="loading"] .status__dot {
  animation: dot-blink 1s steps(2) infinite;
  background: var(--purple-xl);
}

.status[data-state="online"] .status__dot {
  background: var(--purple-l);
  animation: dot-live 1.6s ease-in-out infinite;
}

.status[data-state="offline"] .status__dot { background: #f87171; }
.status[data-state="unknown"] .status__dot { background: var(--text-mute); }

@keyframes dot-blink { 50% { opacity: 0.25; } }
@keyframes dot-live {
  0%, 100% { box-shadow: 0 0 0 2px #000, 0 0 6px var(--purple-l); }
  50% { box-shadow: 0 0 0 2px #000, 0 0 16px var(--purple-xl); }
}

.status__count { color: var(--text); }
.status__count .dim { color: var(--text-mute); }

/* ---------- lore ---------- */
.lore-panel {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
  background: linear-gradient(180deg, rgba(24, 17, 31, 0.92), rgba(14, 10, 18, 0.92));
  border: 3px solid var(--purple);
  box-shadow: 0 0 0 2px #000, 0 0 40px rgba(124, 58, 237, 0.18);
  padding: 36px 28px 40px;
  overflow: hidden;
}

.lore-panel::before,
.lore-panel::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--purple-l);
  box-shadow: 0 0 10px var(--purple-l);
}

.lore-panel::before { top: -3px; left: -3px; }
.lore-panel::after { bottom: -3px; right: -3px; box-shadow: 0 0 10px var(--purple-l); }

.lore-year {
  color: var(--purple-xl);
  font-size: 11px;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
}

.lore-panel p {
  color: var(--text-dim);
  font-size: 11px;
  line-height: 2.15;
  margin-bottom: 18px;
  max-width: 62ch;
}

.lore-panel p:last-of-type { margin-bottom: 0; }

.lore-end {
  margin-top: 22px !important;
  color: var(--purple-xl) !important;
  letter-spacing: 0.12em;
}

/* ---------- info ---------- */
.info-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.info-card {
  background: var(--bg-card);
  border: 2px solid rgba(168, 85, 247, 0.35);
  padding: 22px 20px 24px;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple-l);
  box-shadow: 0 8px 0 var(--purple-xd), 0 0 24px rgba(124, 58, 237, 0.35);
}

.info-card h3 {
  font-size: 11px;
  color: var(--purple-xl);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
}

.info-card p, .info-card li {
  color: var(--text-dim);
  font-size: 10px;
  line-height: 2;
}

.info-card .ip-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.info-card .ip-inline strong {
  color: var(--text);
  font-weight: 400;
  font-size: 12px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps li {
  position: relative;
  padding-left: 44px;
  color: var(--text-dim);
  font-size: 10px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: var(--text);
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 3px 0 var(--purple-xd), 0 0 10px rgba(168, 85, 247, 0.4);
}

/* ---------- races ---------- */
.race-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.race-card {
  --race: var(--purple-l);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 16px;
  background: var(--bg-card);
  border: 2px solid color-mix(in srgb, var(--race) 65%, #000);
  padding: 18px 16px 22px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
}

.race-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--race);
  box-shadow: 0 0 16px var(--race);
}

.race-card:hover {
  transform: translateY(-5px);
  border-color: var(--race);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.55), 0 0 28px color-mix(in srgb, var(--race) 40%, transparent);
}

.race-card__sil {
  grid-row: 1 / 4;
  align-self: center;
  display: flex;
  justify-content: center;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--race) 45%, transparent));
  transition: transform 0.35s var(--ease);
}

.race-card:hover .race-card__sil {
  transform: translateY(-4px) scale(1.06);
}

.race-card__sil img {
  width: 72px;
  height: auto;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  transition: opacity 0.35s var(--ease), filter 0.35s, transform 0.35s var(--ease);
}

.race-card__fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.race-card__hint {
  position: absolute;
  right: 10px;
  bottom: 7px;
  z-index: 2;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: var(--text-mute);
  opacity: 0.65;
  pointer-events: none;
  transition: opacity 0.2s, color 0.2s;
}

.race-card:hover .race-card__hint,
.race-card:focus-visible .race-card__hint {
  opacity: 1;
  color: var(--race);
}

.race-card.is-anim .race-card__hint { opacity: 0; }

.race-card__caption {
  position: absolute;
  left: 96px;
  right: 12px;
  top: 10px;
  z-index: 4;
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.06em;
  color: var(--text);
  text-shadow: 0 0 10px color-mix(in srgb, var(--race) 70%, transparent);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}

.race-card.is-anim .race-card__caption {
  opacity: 1;
  transform: none;
}

.race-card.is-anim {
  border-color: var(--race);
  box-shadow: 0 0 22px color-mix(in srgb, var(--race) 40%, transparent);
}

@media (max-width: 799px) {
  .race-card__caption { left: 72px; }
}

.race-card h3 {
  font-size: 13px;
  line-height: 1.4;
  color: var(--race);
  text-shadow: 0 0 12px color-mix(in srgb, var(--race) 50%, transparent);
  align-self: center;
}

.abilities {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  grid-column: 2;
}

.abilities li { font-size: 9px; line-height: 1.85; color: var(--text-dim); }
.abilities strong {
  display: block;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 2px;
  font-size: 10px;
}

.race-card--short .race-card__blurb {
  grid-column: 2;
  color: var(--text-dim);
  font-size: 10px;
}

.pm {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 4px;
}

.pm h4 {
  font-size: 8px;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
}

.pm ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pm li {
  font-size: 9px;
  line-height: 1.8;
}

.plus h4, .plus li { color: var(--plus); }
.minus h4, .minus li { color: var(--minus); }
.minus--none p {
  color: var(--text-mute);
  font-size: 9px;
  margin: 0;
}

/* ---------- faq ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 2px solid rgba(168, 85, 247, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--purple-l);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.22);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 10px;
  line-height: 1.6;
  padding: 16px 48px 16px 16px;
  position: relative;
  transition: color 0.2s;
}

.faq-item button:hover { color: var(--purple-xl); }

.faq-item .chev {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  pointer-events: none;
}

.faq-item .chev::before,
.faq-item .chev::after {
  content: "";
  position: absolute;
  background: var(--purple-xl);
  transition: transform 0.3s var(--ease);
}

.faq-item .chev::before {
  width: 12px;
  height: 3px;
  left: 0;
  top: 4px;
}

.faq-item .chev::after {
  width: 3px;
  height: 12px;
  left: 4px;
  top: 0;
}

.faq-item.is-open .chev::after { transform: scaleY(0); }

.faq-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}

.faq-item.is-open .faq-panel { grid-template-rows: 1fr; }

.faq-panel__inner {
  overflow: hidden;
}

.faq-panel p {
  padding: 0 16px 16px;
  color: var(--text-dim);
  font-size: 10px;
  line-height: 2;
}

/* ---------- footer ---------- */
.footer {
  margin-top: 48px;
  padding: 36px 20px 48px;
  border-top: 2px solid rgba(168, 85, 247, 0.3);
  text-align: center;
  color: var(--text-mute);
  font-size: 9px;
  line-height: 2;
}

.footer .foot-ip {
  color: var(--purple-xl);
  margin: 8px 0 0;
}

.footer a {
  color: var(--purple-xl);
  text-decoration: none;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer a:hover {
  color: var(--text);
  text-shadow: 0 0 10px var(--purple-l);
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.race-card.reveal { transition-delay: var(--d, 0s); }

/* ---------- intro ---------- */
#intro {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #050508;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s ease;
}

#intro.is-done {
  opacity: 0;
  pointer-events: none;
}

#intro.hidden { display: none; }

#intro-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.intro-title {
  position: relative;
  z-index: 2;
  font-size: clamp(32px, 11vw, 96px);
  line-height: 1.1;
  letter-spacing: 0.08em;
  color: var(--text);
  text-shadow:
    0 0 12px rgba(243, 232, 255, 0.7),
    0 0 40px rgba(168, 85, 247, 1),
    0 0 80px rgba(124, 58, 237, 0.8);
  opacity: 0;
  transform: scale(0.72);
  transition: none;
  pointer-events: none;
  text-align: center;
  padding: 0 12px;
}

.intro-title.is-on {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.55s var(--ease), transform 0.7s var(--ease);
}

.intro-skip {
  position: absolute;
  z-index: 2;
  bottom: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--text-mute);
  font-size: 8px;
  letter-spacing: 0.1em;
  animation: skip-fade 1.8s ease-in-out infinite;
}

.intro-sound {
  position: absolute;
  z-index: 3;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  border: 2px solid var(--purple-l);
  background: rgba(124, 58, 237, 0.25);
  color: var(--text);
  font-size: 8px;
  letter-spacing: 0.16em;
  padding: 10px 14px;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
  animation: ip-pulse 2.2s ease-in-out infinite;
  transition: background 0.2s, color 0.2s, opacity 0.3s;
}
.intro-sound:hover {
  background: rgba(168, 85, 247, 0.45);
  color: #fff;
}
.intro-sound[hidden] { display: none !important; }


@keyframes skip-fade {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
  .info-card--steps { grid-column: 1 / -1; }
  .pm { grid-template-columns: 1fr 1fr; }
  .lore-panel { padding: 48px 48px 52px; }
  body { font-size: 12px; }
}

@media (min-width: 900px) {
  .race-grid { grid-template-columns: 1fr 1fr; }
  .nav { padding: 0 28px; }
}

@media (max-width: 799px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.96);
    border-bottom: 2px solid var(--purple);
    flex-direction: column;
    padding: 8px 12px 16px;
    gap: 0;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav-links.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .nav-links a { padding: 14px 12px; font-size: 11px; }
  .nav-links a::after { bottom: 8px; }
  .race-card { grid-template-columns: 64px 1fr; }
  .race-card__sil img { width: 56px; }
}

@media (max-width: 420px) {
  .ip-box__addr { width: 100%; }
  .btn-ip { width: 100%; }
  .hero-title { letter-spacing: 0.04em; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn-ip { animation: none; }
  .hero-title, .intro-skip { animation: none; }
  .race-card:hover, .info-card:hover { transform: none; }
}

.abilities li, .pm li, .lore-panel p, .faq-panel p, .steps li {
  overflow-wrap: break-word;
}
