/* ── Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

/* ── Base (Dark/Obsidian Theme) ───────────────────────────── */
html {
  scroll-behavior: smooth;
  background-color: #05050e;
  color: #c9ccd8;
  font-family: var(--font-primary, 'Inter', sans-serif);
  font-size: var(--text-body-sm, 16px);
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: #05050e;
}

a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 1.4em; }
li { margin-bottom: 8px; }
strong { font-weight: 600; color: #ffffff; }

/* ── Nav ──────────────────────────────────────────────────── */
.game-nav {
  background-color: #080814;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.game-nav-inner {
  max-width: var(--page-max-width, 1200px);
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-24, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-24, 24px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.logo-icon {
  background-color: #ffffff;
  color: #05050e;
  padding: 4px 8px;
  font-size: 13px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  border-radius: 4px;
}

.logo-text {
  font-size: 18px;
}

.game-nav-links {
  display: flex;
  gap: var(--spacing-24, 24px);
}

.game-nav-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.5;
  transition: opacity 0.15s ease;
}

.game-nav-link:hover, .game-nav-link.active {
  opacity: 1;
}

.btn-back {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
  color: #ffffff;
}

.btn-back:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  padding: 60px 0 40px 0;
  background: radial-gradient(circle at top, rgba(253, 224, 71, 0.03) 0%, transparent 60%);
}

.page-hero-inner {
  max-width: var(--page-max-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--spacing-24, 24px);
  text-align: center;
}

.page-hero-meta {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.meta-tag {
  font-size: 10px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(253, 224, 71, 0.25);
  color: #fde047;
  padding: 4px 10px;
  border-radius: 20px;
  background-color: rgba(253, 224, 71, 0.05);
}

.page-hero-heading {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 16px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.page-hero-sub {
  max-width: 680px;
  margin: 0 auto;
  font-size: 16px;
  color: #94a3b8;
  line-height: 1.6;
}

/* ── Main Layout ─────────────────────────────────────────── */
.game-main {
  max-width: var(--page-max-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--spacing-24, 24px) 80px var(--spacing-24, 24px);
}

.game-board-wrapper {
  background-color: #080814;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-cards, 16px);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 80px rgba(253, 224, 71, 0.01);
  margin-bottom: 60px;
  position: relative;
  height: 550px; /* Fixed height for consistent control */
}

/* ── Info Sections ── */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.info-panel {
  background-color: #080814;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px;
  border-radius: var(--radius-cards, 16px);
  position: relative;
  overflow: hidden;
}

.panel-label {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fde047;
  margin-bottom: 20px;
}

.info-panel h2 {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

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

.info-panel li {
  font-size: 15px;
  line-height: 1.6;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.04);
}

.info-panel li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pt-val {
  color: #ffd60a;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  margin-left: auto;
}

/* Pro Tip Callout */
.pro-tip-box {
  background: linear-gradient(90deg, rgba(253, 224, 71, 0.05) 0%, transparent 100%);
  border-left: 4px solid #eab308;
  padding: 24px;
  border-radius: 0 12px 12px 0;
  margin-bottom: 60px;
}

.pro-tip-box h3 {
  font-size: 18px;
  color: #fde047;
  font-weight: 700;
  margin-bottom: 8px;
}

.pro-tip-box p {
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ── FAQ Section ── */
.faq-section {
  max-width: 800px;
  margin: 0 auto 80px auto;
}

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

.section-eyebrow {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fde047;
  display: block;
  margin-bottom: 8px;
}

.section-h2 {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acc-item {
  background-color: #080814;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.acc-item:hover {
  border-color: rgba(253, 224, 71, 0.15);
}

.acc-header {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  color: #ffffff;
  font-family: var(--font-primary, sans-serif);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.acc-icon {
  font-family: var(--font-mono, monospace);
  font-size: 18px;
  color: #fde047;
  transition: transform 0.2s ease;
}

.acc-body {
  padding: 0 24px 20px 24px;
  color: #94a3b8;
  font-size: 15px;
  line-height: 1.6;
  display: none;
}

.acc-item.active .acc-body {
  display: block;
}

.acc-item.active .acc-icon {
  transform: rotate(45deg);
}

/* ── Footer ────────────────────────────────────────────────── */
.game-footer {
  background-color: #04040a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  text-align: center;
}

.game-footer-inner {
  max-width: var(--page-max-width, 1200px);
  margin: 0 auto;
  padding: 0 var(--spacing-24, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-note {
  font-size: 12px;
  color: #64748b;
  max-width: 500px;
  line-height: 1.5;
}

.footer-copy {
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  color: #475569;
}

/* ── Play Next Links ── */
.play-next-links {
  margin-top: 30px;
  font-size: 13px;
  color: #475569;
}

.play-next-links a {
  color: #fde047;
  margin: 0 6px;
  transition: opacity 0.15s ease;
}

.play-next-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* ── HUD Elements ── */
.hud-score {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 42px;
  color: #ffd60a;
  text-shadow: 0 0 20px rgba(255, 214, 10, 0.5);
  pointer-events: none;
  letter-spacing: 2px;
  z-index: 10;
}

.hud-lives {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  letter-spacing: 3px;
  pointer-events: none;
  z-index: 10;
}

.hud-combo {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #06d6a0;
  text-shadow: 0 0 12px #06d6a0;
  pointer-events: none;
  z-index: 10;
}

.hud-highscore {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  z-index: 10;
  line-height: 1.2;
}

.hud-highscore span {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
}

/* Checkbox Hack Toggle Styles */
.nav-toggle-cb {
  display: none !important;
}

.nav-toggle-btn {
  display: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  color: #ffffff;
  z-index: 2001;
  transition: all 0.15s ease;
}

.nav-toggle-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.nav-toggle-cb:checked ~ .nav-toggle-btn {
  background-color: #fde047;
  color: #04040a;
  border-color: #fde047;
}

.nav-toggle-cb:checked ~ .nav-toggle-btn .menu-open-icon {
  display: none !important;
}

.nav-toggle-cb:checked ~ .nav-toggle-btn .menu-close-icon {
  display: block !important;
}

@media (max-width: 768px) {
  .nav-toggle-btn {
    display: flex;
    order: 3;
  }

  .game-nav {
    height: 64px !important;
  }

  .game-nav-inner {
    height: 100% !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 16px !important;
    gap: 12px !important;
    flex-wrap: nowrap !important;
  }

  .game-nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -300px !important;
    width: 280px !important;
    height: 100vh !important;
    background-color: #0d0d1a !important;
    border-left: 1px solid rgba(255, 255, 255, 0.1) !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 80px 24px 24px 24px !important;
    gap: 8px !important;
    z-index: 2000 !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5) !important;
    margin: 0 !important;
  }

  .nav-toggle-cb:checked ~ .game-nav-links {
    transform: translateX(-300px) !important;
  }

  .game-nav-link {
    font-size: 15px !important;
    padding: 12px 16px !important;
    border-bottom: none !important;
    border-left: 3px solid transparent !important;
    width: 100% !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.5) !important;
    transition: all 0.15s ease;
    text-align: left !important;
    white-space: normal !important;
  }

  .game-nav-link:hover,
  .game-nav-link.active {
    border-left-color: #fde047 !important;
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
  }

  .btn-back {
    font-size: 11px !important;
    padding: 4px 10px !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
}
