:root {
  --bg-canvas: #1c1f24;
  --bg-surface: #282d33;
  --bg-surface-hover: #323840;
  --text-primary: #e5e7eb;
  --text-muted: #9ca3af;
  --accent-primary: #14b8a6;
  --accent-dark: #0f766e;
  --accent-glow: rgba(20, 184, 166, 0.25);
  --border-subtle: #383f47;
  --btn-text: #0d1e1c;
  --font-serif: Charter, Cambria, Georgia, serif;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 10px 24px -4px rgba(0, 0, 0, 0.45);
}

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

body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.65;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color 0.2s var(--ease-kinetic);
}
a:hover {
  color: #5eead4;
}

/* Site Header */
.site-header {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.5rem;
}
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.brand-link {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-transform: lowercase;
}
.brand-mark {
  color: var(--accent-primary);
}
.nav-toggle-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  border-radius: 0;
}

/* Nav Below Brand */
.nav-row {
  max-width: 1200px;
  margin: 0.85rem auto 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 0.75rem;
}
.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.nav-link {
  font-variant: small-caps;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s var(--ease-kinetic);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: var(--accent-primary);
}

/* Container */
.site-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
.reading-copy {
  max-width: 70ch;
  margin: 0 auto;
}

/* Hero Section */
.hero-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background-image: radial-gradient(rgba(20, 184, 166, 0.12) 1px, transparent 1px);
  background-size: 18px 18px;
}
.hero-badge {
  display: inline-block;
  font-variant: small-caps;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.2rem 0.6rem;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  font-weight: 700;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 58ch;
}
.hero-illustration {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem;
}
.hero-illustration img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-subtle);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--accent-primary);
  color: var(--btn-text);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent-primary);
  cursor: pointer;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  transition: transform 0.2s var(--ease-kinetic), background-color 0.2s ease;
}
.btn-primary:hover {
  background-color: #0d9488;
  color: #ffffff;
  transform: translateY(-2px);
}
.btn-secondary {
  display: inline-block;
  color: var(--accent-primary);
  position: relative;
  padding: 0.75rem 0;
  margin-left: 1.5rem;
  font-variant: small-caps;
  font-weight: 600;
}
.btn-secondary::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.2s ease;
}
.btn-secondary:hover {
  color: #5eead4;
}

/* Continuous Trail Timeline */
.trail-stream {
  position: relative;
  margin-top: 3.5rem;
  padding-left: 2.5rem;
}
.trail-stream::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  bottom: 15px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary) 0%, var(--border-subtle) 100%);
}
.trail-stop {
  position: relative;
  margin-bottom: 3.5rem;
}
.trail-stop:last-child {
  margin-bottom: 0;
}
.trail-node {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 30px;
  height: 30px;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trail-header {
  margin-bottom: 1.25rem;
}
.trail-kicker {
  font-variant: small-caps;
  color: var(--accent-primary);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: block;
}
.trail-heading {
  font-size: 1.85rem;
  line-height: 1.25;
  margin-top: 0.25rem;
}

/* Game Row List */
.game-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}
.game-row {
  background: var(--bg-surface);
  border-left: 3px solid var(--accent-primary);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-elevation);
}
.game-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #20242a;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border-subtle);
  font-variant: small-caps;
}
.rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}
.rule-block h4 {
  font-variant: small-caps;
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-bottom: 0.4rem;
}

/* Player Badge Rounding Rule */
.player-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--btn-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-right: 0.4rem;
}

/* Dot Grid Section */
.dot-grid-bg {
  background-color: var(--bg-surface);
  background-image: radial-gradient(rgba(20, 184, 166, 0.15) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
  border: 1px solid var(--border-subtle);
  padding: 2rem;
  margin: 2rem 0;
}

/* Accordion FAQs */
.faq-item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.2rem 0;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.25rem 0;
}
.faq-indicator {
  color: var(--accent-primary);
  font-size: 1.4rem;
  line-height: 1;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: var(--text-muted);
}
.faq-answer p {
  padding-top: 0.85rem;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-item.open .faq-indicator {
  transform: rotate(45deg);
}

/* Host Script Quote */
.host-script {
  border-left: 2px dashed var(--accent-primary);
  padding: 0.75rem 1.25rem;
  background-color: rgba(20, 184, 166, 0.05);
  font-style: italic;
  margin: 1rem 0;
}

/* Form Styles */
.desk-form-group {
  margin-bottom: 1.25rem;
}
.desk-label {
  display: block;
  font-variant: small-caps;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--accent-primary);
}
.desk-input, .desk-select, .desk-textarea {
  width: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: var(--font-serif);
  padding: 0.75rem;
  font-size: 1rem;
}
.desk-input:focus, .desk-select:focus, .desk-textarea:focus {
  outline: 1px solid var(--accent-primary);
  border-color: var(--accent-primary);
}
.desk-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.preview-box {
  background: #17191d;
  border: 1px solid var(--border-subtle);
  padding: 1.25rem;
  white-space: pre-wrap;
  font-family: monospace;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: #34d399;
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background-color: #17191d;
  padding: 3rem 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.footer-shell {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-col h4 {
  color: var(--text-primary);
  font-variant: small-caps;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 0.5rem;
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle-btn {
    display: block;
  }
  .nav-row {
    display: none;
  }
  .nav-row.nav-open {
    display: block;
  }
  .site-nav {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-block {
    grid-template-columns: 1fr;
  }
  .trail-stream {
    padding-left: 1.8rem;
  }
  .trail-node {
    left: -1.8rem;
    width: 24px;
    height: 24px;
    font-size: 0.7rem;
  }
  .hero-title {
    font-size: 2rem;
  }
}

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