:root {
  --bg: #07070f;
  --panel: #121a36;
  --text: #e8ecf8;
  --muted: #9aa4c4;
  --accent: #f8e040;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Hiragino Sans", "Meiryo", sans-serif;
}

#layout {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  min-height: 100%;
  align-items: flex-start;
  justify-content: center;
}

#screen {
  flex: 1 1 0;
  min-width: 0;
  max-width: 1280px;
  display: flex;
  justify-content: center;
}

#game {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
  cursor: crosshair;
  box-shadow: 0 0 0 2px #000, 0 8px 40px rgba(0, 0, 0, 0.6);
}

#help {
  flex: 0 0 300px;
  background: var(--panel);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.6;
}

#help h1, #help h2 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--accent);
}
#help h2 { margin-top: 14px; }

#help table { width: 100%; border-collapse: collapse; }
#help th {
  text-align: left;
  white-space: nowrap;
  padding: 3px 10px 3px 0;
  color: var(--accent);
  font-weight: 600;
}
#help td { padding: 3px 0; }
#help ul { margin: 0; padding-left: 18px; color: var(--muted); }

@media (max-width: 900px) {
  #layout { flex-direction: column; align-items: center; }
  #screen { width: 100%; }
  #help { flex: none; width: 100%; max-width: 520px; }
}
