.game-hero {
  padding-top: 130px;
  padding-bottom: 70px;
}

.game-hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
  align-items: start;
}

.game-title {
  text-align: left;
  margin-bottom: 14px;
}

.game-lead {
  max-width: 760px;
  color: var(--muted);
}

.game-kpi-line {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-kpi-line span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.game-note-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
}

.game-note-card h2 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.game-note-card ul {
  display: grid;
  gap: 8px;
  color: var(--muted);
  list-style: disc;
  padding-left: 18px;
}

.game-area-wrap {
  padding-top: 24px;
}

.game-shell {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent), var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.game-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hud-block {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 12px;
  min-width: 90px;
  background: rgba(255, 255, 255, 0.02);
}

.hud-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
}

.hud-block strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
}

.hud-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#runnerCanvas {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
  background: #0f1116;
}

.game-hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.touch-controls {
  margin-top: 12px;
  display: none;
  gap: 10px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

.content-card h2 {
  font-size: 24px;
  line-height: 1.2;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card ul,
.content-card ol {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.content-card ul {
  list-style: disc;
}

.content-card ol {
  list-style: decimal;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 10px 8px;
  font-size: 14px;
}

th {
  color: var(--text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

pre {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  padding: 12px;
  overflow-x: auto;
}

code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

.mini-cta {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 980px) {
  .game-hero-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .game-title {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .game-hero {
    padding-top: 108px;
  }

  .touch-controls {
    display: flex;
  }

  .hud-actions {
    width: 100%;
  }

  .hud-actions .button {
    flex: 1;
    justify-content: center;
  }
}
