:root {
  --bg: #0B0B0D;
  --surface: #141418;
  --surface-2: #1A1A20;
  --surface-3: #22222A;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #F5F5F7;
  --muted: #A1A1AE;
  --dim: #6C6C78;
  --lime: #C8FF00;
  --lime-soft: rgba(200, 255, 0, 0.12);
  --lime-border: rgba(200, 255, 0, 0.45);
  --danger: #FF4D5A;
  --warn: #FFB020;
  --font-sans: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --container: 960px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(600px 320px at 50% -60px, rgba(200, 255, 0, 0.085), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 44px 44px, 44px 44px, 100% 100%;
  color: var(--text);
  line-height: 1.55;
  display: flex;
  flex-direction: column;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

.lime {
  color: var(--lime);
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.brand-word {
  font-size: 1.02rem;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-game-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  transition: border-color 0.16s ease, color 0.16s ease;
}

.nav-pill:hover,
.nav-pill.active {
  border-color: var(--lime-border);
  color: var(--text);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.lang-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--muted);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-link:hover:not(.active) {
  color: var(--text);
}

.lang-link.active {
  background: var(--lime);
  color: #0B0B0D;
}

/* Main */
main {
  flex: 1;
  padding: 28px 0 56px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--dim);
  margin-bottom: 18px;
}

.breadcrumbs a:hover {
  color: var(--lime);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid var(--lime-border);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 14px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.lead {
  color: var(--muted);
  font-size: 1.04rem;
  margin-bottom: 18px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--lime);
  color: #0B0B0D;
  font-weight: 700;
  font-size: 0.94rem;
  padding: 12px 20px;
  border-radius: 12px;
  transition: transform 0.14s ease, filter 0.14s ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 18px;
  border-radius: 12px;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.btn-secondary:hover {
  border-color: var(--lime-border);
  background: var(--surface-3);
}

.cta-note {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--dim);
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shot-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #08090C;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shot-caption {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--dim);
  text-align: center;
}

/* Sections */
.section {
  margin-top: 34px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  letter-spacing: -0.02em;
}

.section-sub {
  color: var(--muted);
  font-size: 0.94rem;
}

/* Interactive Teaser */
.teaser-box {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 20px;
}

.persona-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.persona-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.persona-tab img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.persona-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.persona-tab.active {
  background: var(--lime-soft);
  border-color: var(--lime);
  color: var(--text);
}

.teaser-stage {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.teaser-avatar {
  width: 112px;
  height: 112px;
  border-radius: 22px;
  border: 2px solid var(--lime-border);
  background: #0F1016;
  overflow: hidden;
  flex-shrink: 0;
}

.teaser-avatar img {
  width: 100%;
  height: 100%;
  display: block;
}

.teaser-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--lime);
  margin-bottom: 4px;
}

.teaser-title {
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.teaser-quote {
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(11, 11, 13, 0.6);
  border-left: 3px solid var(--lime);
  margin: 10px 0 12px;
}

.teaser-bio {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* NOPE Patience Meter Teaser */
.nope-teaser-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.meter-panel {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.meter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.meter-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 10px;
}

.meter-fill {
  height: 100%;
  width: 100%;
  border-radius: 999px;
  background: var(--lime);
  transition: width 0.25s ease, background-color 0.25s ease;
}

.meter-status {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.meter-log {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--lime);
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 11, 13, 0.55);
  border: 1px solid var(--border);
}

.cat-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cat-action-btn {
  text-align: left;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  transition: border-color 0.15s ease, transform 0.12s ease;
}

.cat-action-btn:hover {
  border-color: var(--lime);
  transform: translateY(-1px);
}

.cat-action-title {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
}

.cat-action-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 2px;
}

/* Cards Grid (7 Open Personas / Game Phases) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.persona-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.persona-card-head img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.card-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.card-sub {
  font-size: 0.8rem;
  color: var(--lime);
  font-family: var(--font-mono);
}

.card-text {
  font-size: 0.9rem;
  color: var(--muted);
}

.card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--lime);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Spec Table */
.spec-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: none;
}

.spec-table th {
  width: 34%;
  color: var(--muted);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.02);
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  color: var(--lime);
  font-size: 1.15rem;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-answer {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Cross-game banner & Footer */
.cross-box {
  background: linear-gradient(135deg, rgba(200, 255, 0, 0.08), rgba(20, 20, 24, 0.96));
  border: 1px solid var(--lime-border);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  color: var(--dim);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

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

/* Stage hub diagnostics */
.stage-banner {
  background: rgba(255, 176, 32, 0.12);
  border: 1px solid rgba(255, 176, 32, 0.45);
  color: #FFD98E;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.mono-box {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  overflow-x: auto;
  color: var(--muted);
}

@media (max-width: 780px) {
  .hero-card,
  .nope-teaser-grid {
    grid-template-columns: 1fr;
  }

  .teaser-stage {
    grid-template-columns: 1fr;
  }

  .teaser-avatar {
    width: 88px;
    height: 88px;
  }

  .spec-table th {
    width: 42%;
  }
}
