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

#stage {
  position: relative;
  width: 100%;
  height: 100%;
}

#cesium {
  position: absolute;
  inset: 0;
}

#overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cesium-viewer-bottom,
.cesium-widget-credits {
  display: none !important;
}

/* Overlay is laid out on a 1920x1080 canvas and scaled to the viewport. */
.ov-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  transform-origin: 0 0;
  color: #fff;
  font-family: "Avenir Next", "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ov-frame > * {
  position: absolute;
}

/* ---- title card ---------------------------------------------------------- */
.ov-title,
.ov-end {
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.5);
  opacity: 0;
}

.ov-title {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.32) 0%, rgba(0, 0, 0, 0) 62%);
}

.ov-end {
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.15) 70%);
}

.ov-title-main,
.ov-end-main {
  font-size: 150px;
  font-weight: 200;
  letter-spacing: 0.32em;
  margin-right: -0.32em;
  line-height: 1;
}

.ov-title-rule {
  width: 120px;
  height: 2px;
  margin: 34px 0 30px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.ov-title-sub,
.ov-end-sub {
  font-family: "Apple SD Gothic Neo", "Avenir Next", sans-serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.ov-title-list {
  margin-top: 26px;
  font-family: "Apple SD Gothic Neo", "Avenir Next", sans-serif;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.88;
}

.ov-end-credits {
  margin-top: 46px;
  font-family: "Apple SD Gothic Neo", "Avenir Next", sans-serif;
  font-size: 19px;
  line-height: 1.8;
  text-align: center;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

/* ---- captions -------------------------------------------------------------- */
.ov-caption {
  left: 96px;
  bottom: 104px;
  display: flex;
  align-items: stretch;
  gap: 26px;
  opacity: 0;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.55);
}

.ov-caption-no {
  font-size: 58px;
  font-weight: 200;
  line-height: 1;
  padding-right: 26px;
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: flex-start;
}

.ov-caption-no span {
  font-size: 22px;
  margin-left: 6px;
  margin-top: 6px;
  opacity: 0.7;
}

.ov-caption-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.ov-caption-fr {
  font-size: 50px;
  font-weight: 500;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.ov-caption-ko {
  font-family: "Apple SD Gothic Neo", "Avenir Next", sans-serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

/* ---- telemetry / credit -------------------------------------------------- */
.ov-hud {
  right: 64px;
  bottom: 56px;
  display: flex;
  gap: 28px;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 17px;
  letter-spacing: 0.06em;
  white-space: pre;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  opacity: 0;
}

.ov-credit {
  right: 64px;
  bottom: 28px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  opacity: 0;
}

/* ---- minimap -------------------------------------------------------------- */
.ov-map {
  right: 56px;
  top: 52px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.45), 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  opacity: 0;
}

.ov-map-img,
.ov-map-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ov-map-img {
  object-fit: cover;
  filter: saturate(0.7) brightness(0.78) contrast(1.05);
}

/* ---- fade to/from black -------------------------------------------------- */
.ov-black {
  left: 0;
  top: 0;
  width: 1920px;
  height: 1080px;
  background: #000;
  opacity: 1;
}
