html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #000; overflow: hidden;
  touch-action: none; overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
}
#game { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
body.mouse #game { cursor: none; }

.overlay {
  position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #000; color: #e8d6d6; z-index: 10;
  font-family: Georgia, "Times New Roman", serif; text-align: center;
}
.overlay.hidden, .hidden { display: none !important; }
.panel { padding: 24px; max-width: 90vw; }
h1 { font-weight: normal; letter-spacing: .12em; color: #c3122b; margin: 0 0 28px; font-size: clamp(28px, 6vw, 56px); }
#bar { width: min(420px, 70vw); height: 4px; background: #2a0b10; margin: 0 auto 12px; border-radius: 2px; overflow: hidden; }
#fill { width: 0; height: 100%; background: #c3122b; transition: width .2s; }
#status { margin: 0 0 22px; font-size: 14px; opacity: .8; }
button {
  font: inherit; font-size: 18px; letter-spacing: .2em; text-transform: uppercase;
  background: transparent; color: #e8d6d6; border: 1px solid #c3122b; padding: 12px 40px; cursor: pointer;
}
button:disabled { opacity: .3; cursor: default; }
button:not(:disabled):hover { background: #c3122b; color: #000; }
.hint { font-size: 12px; opacity: .5; margin-top: 18px; }
.phone {
  width: 46px; height: 80px; border: 3px solid #e8d6d6; border-radius: 8px; margin: 0 auto 20px;
  animation: rot 2s ease-in-out infinite;
}
@keyframes rot { 0%, 30% { transform: rotate(0); } 60%, 100% { transform: rotate(-90deg); } }
