html, body {
  margin: 0;
  height: 100%;
  background: #f3ece0;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* main.js sizes the canvas to fill the screen */
#game {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#rotate {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  gap: 28px;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  background: #f3ece0;
  color: #7a5c8f;
  font: 600 22px "Pixelify Sans", monospace;
}
#rotate p { margin: 0; line-height: 1.5; padding: 0 24px; }

/* little phone that tips over sideways */
#rotate .phone {
  width: 44px; height: 76px;
  border: 5px solid #7a5c8f;
  border-radius: 8px;
  animation: tip 2.4s ease-in-out infinite;
}
@keyframes tip {
  0%, 20% { transform: rotate(0); }
  60%, 100% { transform: rotate(-90deg); }
}

/* phones/tablets held upright (touch screens, or any narrow portrait window) */
@media (orientation: portrait) and ((pointer: coarse) or (max-width: 900px)) {
  #rotate { display: flex; }
}
