html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  background: #000; color: #fff; overflow: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body.playing { cursor: none; }

#stage { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #000; }
.layer {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 0.8s ease;
}
.layer.on { opacity: 1; }
.layer img, .layer video {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #000;
}

#empty {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #111;
}
#empty[hidden] { display: none; }
.empty-logo { width: 16vh; height: 16vh; display: block; }
.empty-sub { font-size: 2.6vh; color: #999; margin-top: 2vh; }

#overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.78);
}
#overlay.hide { display: none; }
.ov-box { text-align: center; width: 60vw; max-width: 900px; }
.ov-logo { width: 14vh; height: 14vh; display: block; margin: 0 auto; }
.ov-screen { font-size: 3vh; color: #c9a86a; margin: 3vh 0 5vh; }
#startBtn {
  font-size: 4.5vh; font-weight: 700; padding: 2.2vh 7vh; border-radius: 1.5vh;
  border: 0.4vh solid #c9a86a; background: #c9a86a; color: #111; cursor: pointer;
}
#startBtn:focus { outline: 0.5vh solid #fff; outline-offset: 0.6vh; }
.ov-hint { font-size: 2.2vh; color: #aaa; margin-top: 3vh; }
.ov-progress { height: 0.8vh; background: #333; border-radius: 0.4vh; margin: 5vh auto 1.5vh; width: 70%; overflow: hidden; }
#ovBar { height: 100%; width: 0; background: #c9a86a; transition: width 0.3s; }
.ov-status { font-size: 2vh; color: #888; min-height: 2.5vh; }

#status {
  position: fixed; left: 1.5vh; bottom: 1.5vh; z-index: 5;
  font-size: 1.6vh; color: #ddd; background: rgba(0, 0, 0, 0.6);
  padding: 0.6vh 1.2vh; border-radius: 0.6vh;
}
#status[hidden] { display: none; }
