/* Desktop-first layout; canvas scales with DPR in script for crisp rendering */
:root {
  color-scheme: light dark;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background:
    radial-gradient(1200px 800px at 50% 0%, #f2f6ff 0%, #e9f1ff 40%, #e5ecff 60%, #e3e9ff 100%)
    fixed;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Arial, "Noto Sans", "Helvetica Neue", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #111;
}
#game-root {
  min-width: 1024px;
  max-width: 1100px;
  margin: 24px auto;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(#ffffffcc, #ffffffcc);
  box-shadow: 0 15px 40px rgba(0,0,0,.08);
}
canvas#game {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: #cfe6ff;
  outline: none;
  user-select: none;
  touch-action: manipulation;
}
@media (max-width: 1023px) {
  #game-root { min-width: 0; margin: 0; border-radius: 0; box-shadow: none; }
  canvas#game { border-radius: 0; }
}
