:root {
  color-scheme: light;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  background: #36bdf4;
}

* { box-sizing: border-box; }

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #36bdf4;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#game {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
}

#game-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#game-stage canvas { display: block; }

#rotate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: #34bdf4;
  color: #4d239c;
  text-align: center;
}

.rotate-card {
  width: min(86vw, 340px);
  padding: 28px 24px;
  border: 5px solid #fff;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(55, 35, 110, 0.22);
}

.phone {
  display: block;
  width: 52px;
  height: 82px;
  margin: 0 auto;
  border: 7px solid #8f45e8;
  border-radius: 10px;
  animation: rotate-phone 1.6s ease-in-out infinite;
}

.phone::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  margin: 56px auto 0;
  border-radius: 50%;
  background: #8f45e8;
}

#rotate p {
  margin: 20px 0 0;
  font-size: 22px;
  font-weight: 900;
}

@keyframes rotate-phone {
  0%, 20% { transform: rotate(0deg); }
  60%, 100% { transform: rotate(90deg); }
}

@media (orientation: portrait) {
  #rotate { display: grid; }
}
