:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #131720;
  --panel-strong: #1b212b;
  --text: #e6e6e6;
  --muted: #9ca3af;
  --accent: #4ade80;
  --accent-strong: #60a5fa;
  --gold: #c9a227;
  --pink: #f472b6;
  --shadow: rgba(0, 0, 0, 0.6);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  font-family: "Courier New", Courier, monospace;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button {
  font-family: inherit;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  padding: 48px 6vw 72px;
  background-image: linear-gradient(135deg, rgba(13, 15, 18, 0.95), rgba(13, 15, 18, 0.65)),
    url("./assets/scene11_title_card.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid #1f242b;
}

.hero-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.logo {
  font-size: 18px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-play {
  padding: 6px 14px;
  border: 1px solid #2b3340;
  border-radius: 999px;
  color: var(--accent);
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.hero-text h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 16px;
  color: var(--text);
}

.hero-subtitle {
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card {
  background: rgba(19, 23, 32, 0.85);
  border: 1px solid #262f3c;
  padding: 24px;
  border-radius: 14px;
  box-shadow: 0 20px 40px var(--shadow);
  backdrop-filter: blur(6px);
}

.hero-card-title {
  color: var(--accent);
  font-size: 16px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-card-tags span {
  padding: 4px 10px;
  border-radius: 999px;
  background: #10141b;
  border: 1px solid #2b3340;
  color: var(--muted);
  font-size: 11px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--accent);
  color: #0b0e12;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(74, 222, 128, 0.25);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: #2b3340;
}

.btn:hover {
  transform: translateY(-1px);
}

.section {
  padding: 72px 6vw;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 32px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: 28px;
  color: var(--text);
}

.section-header p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.story-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.story-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.story-strip img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #1f242b;
  image-rendering: pixelated;
}

.story-card,
.character-card {
  background: var(--panel);
  border: 1px solid #1f242b;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.story-card h3,
.character-card h3 {
  color: var(--accent);
  margin-top: 0;
  font-size: 16px;
}

.story-card p,
.character-card p {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.video-frame {
  border: 1px solid #1f242b;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px var(--shadow);
  background: #0b0d10;
}

.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}

.play-actions {
  display: flex;
  gap: 12px;
}

.game-shell {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  background: #0b0d10;
  border: 2px solid #1f242b;
  border-radius: 12px;
  box-shadow: 0 16px 32px var(--shadow);
  overflow: hidden;
  touch-action: none;
}

#game-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}

#game-container canvas {
  width: 100% !important;
  height: 100% !important;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  pointer-events: none;
}

.game-hint {
  background: rgba(15, 19, 24, 0.85);
  border: 1px solid #2b3340;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.game-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  pointer-events: auto;
}

.game-controls .btn {
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.5px;
}

@media (min-width: 901px) {
  #fullscreen-hint {
    display: none;
  }
}

.site-footer {
  padding: 32px 6vw 48px;
  border-top: 1px solid #1f242b;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.is-hidden {
  display: none !important;
}

#game-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
}

#game-shell:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border: none;
  border-radius: 0;
}

@media (max-width: 900px) {
  .hero {
    padding: 32px 6vw 56px;
  }

  .hero-nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-card {
    order: -1;
  }

  .section {
    padding: 56px 6vw;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  #game-shell:fullscreen .game-hint {
    font-size: 12px;
  }
}
