html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #232323;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

#stage {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .45s ease, box-shadow .45s ease;
  transform-origin: 50% 100%;
}

/* Kickstand: cosmetic desk-clock tilt (toggled from the clock screen) */
body.kickstand #stage {
  transform: perspective(1400px) rotateX(7deg) scale(.97);
  box-shadow: 0 50px 70px rgba(0, 0, 0, .55);
}

canvas {
  display: block;
  touch-action: none;
}

/* Portrait blocker — the game is landscape-only */
#rotate {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: #15301b;
  color: #eaf7e6;
  text-align: center;
  font-size: 20px;
  line-height: 1.5;
}
#rotate .phone {
  font-size: 64px;
  animation: tilt 1.6s ease-in-out infinite;
}
@keyframes tilt {
  0%, 20%   { transform: rotate(0deg); }
  55%, 100% { transform: rotate(90deg); }
}
@media (orientation: portrait) {
  #rotate { display: flex; }
}
