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

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

#cesiumContainer {
  position: absolute;
  inset: 0;
  filter: invert() brightness(4) contrast(1.1) saturate(0.9);
}

#tint {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgb(123 209 255);
  mix-blend-mode: hard-light;
  opacity: 0.82;
  filter: saturate(1.6);
  z-index: 5;
}

#vignette {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 45%, rgba(2, 10, 25, 0.42) 100%);
  z-index: 6;
}

#hud {
  position: absolute;
  left: 56px;
  bottom: 52px;
  z-index: 1000;
  color: white;
  text-shadow: 0 3px 18px rgba(0,0,0,0.45);
  transition: opacity 900ms ease;
}

#hud.hidden { opacity: 0; }

.eyebrow {
  font-size: 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 700;
}

.title {
  margin-top: 8px;
  font-size: 58px;
  line-height: 1;
  font-weight: 900;
}

#replay {
  position: absolute;
  right: 28px;
  bottom: 28px;
  z-index: 1000;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255,255,255,0.92);
  color: #071832;
  font-weight: 800;
  cursor: pointer;
}

#resetView {
  position: absolute;
  bottom: 80px;
  left: 20px;
  z-index: 1000;
  background: rgba(8, 36, 49, 0.9);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

#stadiumButtons {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stadium-btn {
  background: rgba(8, 36, 49, 0.9);
  border: 1px solid rgba(255,255,255,0.18);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.html-stadium-marker {
  position: absolute;
  z-index: 1200;
  transform: translate(-50%, -100%) scale(0.2);
  transform-origin: 50% 100%;
  pointer-events: none;
  filter: none !important;
  opacity: 0;
}

.html-stadium-marker.visible {
  animation: markerIn 420ms cubic-bezier(.2, 1.35, .35, 1) forwards;
}

.html-stadium-marker.hiding {
  animation: markerOut 260ms ease-in forwards;
}

.html-stadium-marker.capture-visible {
  opacity: 1;
  transform: translate(-50%, -100%) scale(1);
}

.marker-image {
  width: 180px;
  height: auto;
  display: block;
  filter: none !important;
  drop-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.overview-stadium-marker {
  position: absolute;
  z-index: 1100;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%) scale(.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.overview-stadium-marker.visible {
  opacity: .94;
  transform: translate(-50%, -50%) scale(1);
}

.overview-stadium-marker img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 16, 42, .7)) !important;
}

.overview-stadium-marker span {
  position: absolute;
  top: 31px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(2, 21, 48, .78);
  color: white;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

@keyframes markerIn {
  from { opacity: 0; transform: translate(-50%, -100%) scale(0.2); }
  to { opacity: 1; transform: translate(-50%, -100%) scale(1); }
}

@keyframes markerOut {
  from { opacity: 1; transform: translate(-50%, -100%) scale(1); }
  to { opacity: 0; transform: translate(-50%, -100%) scale(0.2); }
}

body.capture-mode #hud,
body.capture-mode #replay,
body.capture-mode #resetView,
body.capture-mode #stadiumButtons {
  display: none !important;
}

body.embed-mode #stadiumButtons,
body.embed-mode #replay,
body.embed-mode #resetView,
body.embed-mode #hud {
  display: none !important;
}
