html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #140e22;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

canvas {
  position: absolute;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  outline: none;
}

#rotate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #140e22;
  color: #ffe6a8;
  font-family: monospace;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

#rotate .phone {
  width: 46px;
  height: 80px;
  border: 5px solid #ffe6a8;
  border-radius: 8px;
  animation: spin 2s ease-in-out infinite;
}

#rotate .screen {
  margin: 8px 5px;
  height: 54px;
  background: #c77a3e;
}

@keyframes spin {
  0%, 30% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}

@media (orientation: portrait) and (pointer: coarse) {
  #rotate { display: flex; }
}
