/* /styles.css */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  display: flex;
}

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

.media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.media-hidden {
  display: none;
}

.overlay {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  display: none;
  max-width: 80vw;
  text-align: center;
}

.overlay.visible {
  display: block;
}

.overlay.error {
  background: rgba(120, 0, 0, 0.9);
}

.debug-hud {
  position: absolute;
  z-index: 30;
  left: 1rem;
  bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-line;
}
