* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: #0D1424;
  color: #fbf8f0;
  font-family: Consolas, "Courier New", monospace;
}
/* the game owns exactly one viewport; the page scrolls past it to the info section */
#stage {
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
canvas {
  display: block;
  border-radius: 6px;
  cursor: pointer;
  touch-action: none;
}
/* back to the site — dimmed so it never competes with the game */
#back,
#howto {
  position: fixed;
  top: 14px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(13, 20, 36, 0.72);
  border: 2px solid rgba(251, 248, 240, 0.35);
  color: #fbf8f0;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.15s ease;
}
#back { left: 16px; }
#howto { right: 16px; }
#back:hover,
#back:focus-visible,
#howto:hover,
#howto:focus-visible {
  opacity: 1;
}
/* readable, crawlable game info below the fold */
#info {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 20px 80px;
  font-size: 15px;
  line-height: 1.7;
}
#info h1 {
  font-size: 22px;
  line-height: 1.35;
  color: #c6f432;
  margin-bottom: 18px;
}
#info h2 {
  font-size: 17px;
  color: #ffa3dc;
  margin: 32px 0 10px;
}
#info p { margin-bottom: 12px; }
#info a { color: #c6f432; }
#info a:focus-visible { outline: 3px solid #c6f432; outline-offset: 3px; }
#info table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 14px;
}
#info th,
#info td {
  text-align: left;
  padding: 8px 10px;
  border: 1px solid rgba(251, 248, 240, 0.25);
}
#info th { color: #c6f432; font-weight: 700; }
