:root {
  color-scheme: dark;
  --bg: #101014;
  --surface: #181820;
  --surface-strong: #22212b;
  --text: #f4f0e8;
  --muted: #b9b1a5;
  --accent: #d5a253;
  --accent-dark: #a66d28;
  --neon: #28f7df;
  --neon-soft: rgba(40, 247, 223, 0.28);
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(213, 162, 83, 0.14), transparent 34rem),
    linear-gradient(135deg, #101014 0%, #191724 48%, #14211e 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 38%);
  pointer-events: none;
}

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

main a:not(.generator-card) {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;
  gap: 1.6rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 1rem;
  position: relative;
  z-index: 1;
}

.brand {
  font-size: clamp(1.55rem, 4.5vw, 3.75rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(213, 162, 83, 0.24),
    0 8px 34px rgba(0, 0, 0, 0.45);
}

.brand-wrap {
  display: grid;
  gap: 0.8rem;
}

.tagline {
  margin: 0;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.5rem;
}

.nav a {
  padding: 0.6rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav a:hover,
.nav a[aria-current="page"] {
  border-color: var(--neon);
  background: rgba(40, 247, 223, 0.1);
  color: var(--text);
  box-shadow: 0 0 18px var(--neon-soft);
}

.home-shell,
.generator-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-shell {
  display: grid;
  gap: 2rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
  position: relative;
  z-index: 1;
}

.home-shell {
  display: grid;
  gap: 2rem;
  padding: 4rem 0;
}

.site-footer {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  position: relative;
  z-index: 1;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text);
}

.intro {
  max-width: 820px;
}

.eyebrow,
.result-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(1.55rem, 4.5vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: 0;
  text-shadow:
    0 0 18px rgba(213, 162, 83, 0.24),
    0 8px 34px rgba(0, 0, 0, 0.45);
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.55rem, 4vw, 2.4rem);
  line-height: 1.08;
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.content-section {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 24, 32, 0.78);
  box-shadow: var(--shadow);
}

.compact-section {
  padding: 1rem;
}

.compact-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1rem;
  align-items: start;
}

.generator-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.generator-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.8rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), var(--surface-strong));
  box-shadow: var(--shadow);
}

.generator-card:hover {
  transform: translateY(-3px);
  border-color: var(--neon);
  box-shadow:
    0 0 24px var(--neon-soft),
    var(--shadow);
}

.generator-card span {
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.generator-card strong {
  font-size: 1.45rem;
  line-height: 1.25;
}

.dark {
  background: linear-gradient(145deg, #16151f, #24312d);
}

.female {
  background: linear-gradient(145deg, #1d1a21, #342635);
}

.villain {
  background: linear-gradient(145deg, #201918, #2a222d);
}

.orc {
  background: linear-gradient(145deg, #182018, #30331e);
}

.dwarf {
  background: linear-gradient(145deg, #211d18, #322719);
}

.elf,
.high-elf {
  background: linear-gradient(145deg, #171f21, #263127);
}

.wood-elf {
  background: linear-gradient(145deg, #141f18, #203724);
}

.generator-shell {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 88px);
  padding: 2rem 0 4rem;
}

.generator-panel {
  width: 100%;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(24, 24, 32, 0.88);
  box-shadow: var(--shadow);
}

.lead {
  max-width: 620px;
}

.result-box {
  margin: 2rem 0 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.result-meta {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.result-detail {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.result-detail p {
  margin: 0;
}

.result-label {
  display: block;
  margin-bottom: 0.5rem;
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.faq-item p {
  margin: 0;
}

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.internal-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.65rem 0.85rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-decoration: none;
}

.internal-links a:hover {
  border-color: var(--neon);
  background: rgba(40, 247, 223, 0.1);
  box-shadow: 0 0 18px var(--neon-soft);
}

.ad-block {
  display: grid;
  min-height: 250px;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-inline {
  min-height: 90px;
}

#nameResult {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.9rem, 8vw, 3.8rem);
  line-height: 1.05;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  background: var(--accent);
  color: #17110a;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

button:hover {
  background: var(--neon);
  box-shadow:
    0 0 18px var(--neon-soft),
    0 0 34px rgba(40, 247, 223, 0.18);
}

button.secondary {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}

button.secondary:hover {
  border-color: var(--neon);
  background: rgba(40, 247, 223, 0.1);
  box-shadow: 0 0 18px var(--neon-soft);
}

@media (max-width: 900px) {
  .generator-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .home-shell {
    padding: 2.5rem 0;
  }

  .generator-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .generator-card {
    min-height: 170px;
  }

  .actions,
  button {
    width: 100%;
  }
}
