/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background: #111118;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  overflow-y: auto;
  user-select: none;
}

/* ===== GAME WRAPPER ===== */
#game-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 48px;
  gap: 0;
  width: 100%;
  max-width: 860px;
}

/* ===== CANVAS ===== */
#gameCanvas {
  display: block;
  border: 3px solid #334;
  border-radius: 4px;
  box-shadow:
    0 0 40px rgba(80, 120, 255, 0.3),
    0 0 80px rgba(80, 120, 255, 0.1);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  cursor: none;
  outline: none;
}

/* ===== GAME DESCRIPTION ===== */
#game-description {
  width: 100%;
  max-width: 800px;
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #aabbcc;
}

.desc-section {
  flex: 1 1 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  padding: 18px 20px;
}

.desc-section h2 {
  font-size: 14px;
  font-weight: bold;
  color: #ddeeff;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.desc-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.desc-section li {
  font-size: 13px;
  line-height: 1.6;
  color: #99aabb;
}

.desc-section strong {
  color: #eef4ff;
}

.desc-section p {
  font-size: 13px;
  line-height: 1.7;
  color: #99aabb;
}

kbd {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 4px;
  font-family: monospace;
  font-size: 12px;
  color: #ccddef;
}

/* ===== RESPONSIVE SCALING ===== */
@media (max-height: 580px) {
  #game-wrapper {
    transform: scale(0.85);
    transform-origin: top center;
  }
}
