* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: #14151a;
  color: #e8e8ea;
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

a {
  color: #6fb1ff;
}

.site-header {
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.site-header h1 {
  margin: 0;
  font-size: 2.2rem;
  letter-spacing: 0.05em;
}

.site-header .tagline {
  margin: 0.4rem 0 0;
  color: #a9adb8;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

/* ── Game embed ─────────────────────────────────────────────────────────── */

.game-section {
  margin: 1.5rem 0 2.5rem;
}

.game-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 80vh;
  margin: 0 auto;
  background-color: #202124;
  touch-action: none;
  overflow: hidden;
  border-radius: 6px;
}

.game-frame canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
  background-color: #202124;
  image-rendering: pixelated;
  outline: none;
}

.game-frame #status,
.game-frame #status-splash,
.game-frame #status-progress {
  position: absolute;
  left: 0;
  right: 0;
}

.game-frame #status,
.game-frame #status-splash {
  top: 0;
  bottom: 0;
}

.game-frame #status {
  background-color: #242424;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  visibility: hidden;
}

.game-frame #status-splash {
  max-height: 100%;
  max-width: 100%;
  margin: auto;
  height: 100%;
  width: 100%;
  object-fit: contain;
}

.game-frame #status-splash.show-image--false {
  display: none;
}

.game-frame #status-progress,
.game-frame #status-notice {
  display: none;
}

.game-frame #status-progress {
  bottom: 10%;
  width: 50%;
  margin: 0 auto;
}

.game-frame #status-notice {
  background-color: #5b3943;
  border-radius: 0.5rem;
  border: 1px solid #9b3943;
  color: #e0e0e0;
  line-height: 1.3;
  margin: 0 2rem;
  overflow: hidden;
  padding: 1rem;
  text-align: center;
  z-index: 1;
}

/* ── Info sections ──────────────────────────────────────────────────────── */

.info-section,
.codes-section {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #1c1d23;
  border-radius: 6px;
}

.info-section h2,
.codes-section summary {
  margin-top: 0;
  font-size: 1.3rem;
}

.codes-section h3 {
  font-size: 1.05rem;
  color: #c9cdd6;
  margin: 1.5rem 0 0.5rem;
}

.codes-section h3 small {
  font-weight: normal;
  color: #82869a;
}

.codes-section summary {
  cursor: pointer;
  font-weight: bold;
}

.codes-section[open] summary {
  margin-bottom: 1rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
  font-size: 0.95rem;
}

th, td {
  text-align: left;
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid #2c2d35;
}

th {
  color: #a9adb8;
  font-weight: 600;
}

code {
  background: #2a2b33;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem 2.5rem;
  color: #82869a;
  font-size: 0.9rem;
}
