* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #000;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page {
  height: 100vh; /* fallback for older browsers */
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background:
    radial-gradient(circle at center, rgba(121, 255, 0, 0.14), transparent 34%),
    linear-gradient(135deg, #160051 0%, #07164f 50%, #05091f 100%);
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 100vh; /* fallback for older browsers */
  height: 100dvh;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.map-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.map {
  display: block;
  width: 100%;
  height: 100vh; /* fallback for older browsers */
  height: 100dvh;
  object-fit: contain;
}

.map-gif {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
}

.map-hotspot {
  position: absolute;
  cursor: pointer;
  background: transparent;
}

.panel {
  position: relative;
  width: 100%;
  height: 100vh; /* fallback for older browsers */
  height: 100dvh;
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.back-to-map {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 3rem;
  line-height: 1;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.back-to-map:hover {
  background: rgba(255, 255, 255, 0.15);
}

.stage-nav {
  position: absolute;
  bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  justify-items: center;
  z-index: 10;
}

.nav-to-stage {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 3rem;
  line-height: 1;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

.nav-to-stage:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* ART Spot modal */
.artspot-modal {
  position: fixed;
  inset: 3vh 3vw;
  z-index: 1000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
}

.artspot-modal[hidden] {
  display: none;
}

.artspot-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
}

.artspot-modal__close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.artspot-modal__frame {
  flex: 1;
  width: 100%;
  border: none;
}

.all-timetables {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  font-size: 1.1rem;
  line-height: 1.3;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  text-align: center;
}

.all-timetables:hover {
  background: rgba(255, 255, 255, 0.15);
}

.panel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Panel hotspots — position is centrally defined here via custom properties */
.panel-hotspot {
  --hs-top:    4%;
  --hs-left:   47%;
  --hs-width:  6%;
  --hs-height: 10%;

  top:    var(--hs-top);
  left:   var(--hs-left);
  width:  var(--hs-width);
  height: var(--hs-height);
}
