html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #000;
  overflow: hidden;
}

/* The cursor is hidden only after a few seconds of no mouse movement (see
   player.js), and moving the mouse always brings it back — otherwise
   there's no way to see where to click the settings cog. */
body.cursor-idle {
  cursor: none;
}

#stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 0;
  transition: opacity 700ms ease-in-out;
  pointer-events: none;
}

.player.visible {
  opacity: 1;
}

#startOverlay, #nightOverlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #000;
  z-index: 10;
  cursor: default;
}

#startOverlay.hidden, #nightOverlay.hidden {
  display: none;
}

#startButton, #resumeButton {
  font-size: 1.5rem;
  padding: 0.75em 1.5em;
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-radius: 8px;
  cursor: pointer;
}

#startButton:hover, #resumeButton:hover {
  background: #2a2a2a;
}

.night-message {
  color: #ccc;
  font-family: -apple-system, sans-serif;
  font-size: 1.8rem;
  margin: 0;
}

.hint {
  color: #888;
  font-family: -apple-system, sans-serif;
  font-size: 0.9rem;
}

#nightModeIndicator {
  position: fixed;
  top: 16px;
  left: 20px;
  font-size: 0.85rem;
  opacity: 0.3;
  z-index: 5;
  pointer-events: none;
}

#loadingIndicator {
  position: fixed;
  bottom: 24px;
  right: 32px;
  color: #666;
  font-family: -apple-system, sans-serif;
  font-size: 0.85rem;
  z-index: 5;
}

.hidden {
  display: none !important;
}

#infoBanner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 0 40px 34px;
  box-sizing: border-box;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0) 100%);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 350ms ease, transform 350ms ease;
  pointer-events: none;
}

#infoBanner.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.info-bug {
  flex: 0 0 auto;
  background: #bb1919;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 6px 10px;
  border-radius: 3px;
  margin-bottom: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.info-text {
  flex: 1 1 auto;
  min-width: 0;
}

.info-title {
  color: #fff;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.info-sub {
  color: #cfcfcf;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-top: 4px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.info-time {
  color: #9c9c9c;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-top: 2px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.settings-cog {
  flex: 0 0 auto;
  align-self: center;
  color: #cfcfcf;
  font-size: 1.6rem;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 150ms ease, transform 150ms ease;
}

.settings-cog:hover {
  opacity: 1;
  transform: rotate(20deg);
}
