html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: black;
  touch-action: none;
}

#unity-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

#unity-canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  background: black;
  outline: none;
}

#fullscreen-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: 2px solid white;
  opacity: .1;
  padding: 15px 25px;
  font-size: 164px;
  width: 100%;
  height: 100%;
  cursor: pointer;
  border-radius: 5px;
  font-family: Arial, sans-serif;
  transition: all 0.3s;
}

#fullscreen-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#fullscreen-btn:active {
  transform: scale(0.95);
}

#password-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  color: white;
}

#password-gate input {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 32px;
  padding: 12px 20px;
  outline: none;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 16px;
  width: 320px;
}

#password-gate button {
  background: transparent;
  border: 2px solid white;
  color: white;
  font-size: 24px;
  padding: 10px 40px;
  cursor: pointer;
}

#password-gate button:hover {
  background: rgba(255, 255, 255, 0.15);
}

#password-error {
  margin-top: 14px;
  font-size: 18px;
  color: #ff4444;
  min-height: 24px;
}

/* ── Rotate-to-landscape overlay ── */
#rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000000;
  background: #060402;
  color: #e8821a;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 24px;
}

/* Only show when the game is running AND the device is portrait */
body.game-started #rotate-overlay {
  display: flex;
}

@media (orientation: landscape) {
  body.game-started #rotate-overlay {
    display: none;
  }
}

#rotate-icon {
  font-size: 72px;
  animation: spin-hint 2s ease-in-out infinite;
}

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

#rotate-msg {
  font-family: "Orbitron", monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

#rotate-sub {
  font-size: 13px;
  color: #a8967e;
  letter-spacing: 0.08em;
}

#rotate-pwa {
  margin-top: 18px;
  font-size: 11px;
  color: #6a5e52;
  letter-spacing: 0.06em;
  max-width: 280px;
  line-height: 1.7;
  border-top: 1px solid rgba(232,130,26,0.15);
  padding-top: 14px;
}

#rotate-pwa strong {
  color: #e8821a;
  font-weight: normal;
}
