* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  height: 100%;
  background: #6B1A0A;
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "Press Start 2P", "Courier New", monospace;
}

#game {
  position: fixed;
  inset: 0;
  display: block;
  touch-action: none;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

#rotate {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: #6B1A0A;
  color: #C85535;
  text-shadow: 3px 3px 0 #7A2410;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
  z-index: 10;
}
#rotate.show { display: flex; }

#rotate .phone {
  width: 40px;
  height: 72px;
  border: 6px solid #C85535;
  box-shadow: 4px 4px 0 #7A2410;
  animation: turn 1.6s steps(8) infinite;
}

@keyframes turn {
  0%, 20%  { transform: rotate(0deg); }
  70%, 100% { transform: rotate(90deg); }
}
