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

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

html {
  scroll-behavior: smooth;
  background-color: #120b08;
  color: #c9ccd8;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: #120b08;
}

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: #1c110b;
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

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

.logo-icon {
  background-color: #f59e0b;
  color: #120b08;
  padding: 4px 8px;
  font-size: 13px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  border-radius: 4px;
}

.logo-text { font-size: 18px; }
.game-nav-links { display: flex; gap: 24px; }
.game-nav-link { font-size: 12px; font-weight: 500; opacity: 0.6; }
.game-nav-link:hover, .game-nav-link.active { opacity: 1; color: #f59e0b; }

.btn-back {
  font-size: 12px;
  font-weight: 500;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  background-color: rgba(245, 158, 11, 0.05);
  color: #ffffff;
}

/* ── Page Hero ────────────────────────────────────────────── */
.page-hero {
  padding: 50px 0 30px 0;
  background: radial-gradient(circle at top, rgba(245, 158, 11, 0.12) 0%, transparent 70%);
}

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

.meta-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.page-hero-heading {
  font-family: 'Cinzel', serif;
  font-size: 44px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 12px;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
}

.page-hero-sub {
  max-width: 680px;
  margin: 0 auto;
  font-size: 15px;
  color: #fde68a;
}

.game-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px 24px;
}

.game-board-wrapper {
  position: relative;
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  margin: 0 auto 40px auto;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0705;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.15), 0 20px 50px rgba(0,0,0,0.8);
}

#game-canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  touch-action: none;
}

#hud-overlay-container {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 10;
  font-family: 'Cinzel', serif;
}

.hud-score { font-size: 24px; font-weight: 900; color: #ffffff; text-shadow: 0 0 10px #f59e0b; }
.hud-lives { font-size: 18px; letter-spacing: 4px; }
.hud-highscore { font-size: 12px; color: #fcd34d; text-align: right; }
.hud-highscore span { font-size: 18px; font-weight: 900; color: #ffffff; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.info-panel {
  background: rgba(28, 17, 11, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 28px;
  backdrop-filter: blur(10px);
}

.panel-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 8px;
}

.info-panel h2 { font-size: 20px; font-weight: 800; color: #ffffff; margin-bottom: 16px; }
.info-panel ul { list-style: none; padding: 0; }
.info-panel li { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 14px; }
.info-panel li:last-child { border-bottom: none; }

.game-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 30px 24px; text-align: center; font-size: 13px; color: #fcd34d; }

.nav-toggle-cb { display: none; }
.nav-toggle-btn {
  display: none;
  cursor: pointer;
  padding: 8px;
  color: #ffffff;
}

@media (max-width: 768px) {
  .page-hero { padding: 20px 0 10px 0; }
  .page-hero-heading { font-size: 28px; }
  .page-hero-sub { font-size: 13px; max-width: 90%; margin: 0 auto; }
  .game-main { padding: 12px 12px 40px 12px; }

  .game-board-wrapper {
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 52vh;
    margin: 0 auto 12px auto;
  }

  #hud-overlay-container { padding: 8px 12px; }
  .hud-score { font-size: 18px; }
  .hud-lives { font-size: 14px; }
  .hud-highscore { font-size: 10px; }
  .hud-highscore span { font-size: 14px; }

  .info-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 24px; }

  .nav-toggle-btn { display: flex; align-items: center; justify-content: center; }
  .game-nav-links {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background-color: #1a1608;
    border-left: 1px solid rgba(252, 211, 77, 0.2);
    flex-direction: column;
    padding: 80px 24px 24px 24px;
    gap: 16px;
    z-index: 2000;
    transition: transform 0.35s ease;
  }
  .nav-toggle-cb:checked ~ .game-nav-links {
    transform: translateX(-300px);
  }
  .game-nav-link { font-size: 16px; width: 100%; }
}
