/* MIGZ SOCIAL — fixed 16:9 stage lock
   Reference frame: Social Final Glow.png
   Hero media remains 1920x1080 and is never cropped.
   Extra browser space is letterboxed in black.
*/

:root{
  --social-base-w: 1920;
  --social-base-h: 1080;
  --social-hotspot-radius: 10px;
  --social-safe-top: env(safe-area-inset-top, 0px);
  --social-safe-bottom: env(safe-area-inset-bottom, 0px);
  --social-safe-vh: calc(100svh - var(--social-safe-top) - var(--social-safe-bottom));
}

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

body.social-page{
  overflow: hidden;
  background: #000;
}

.social-hero{
  position: fixed;
  inset: 0;
  background: #000;
  overflow: hidden;
}

.social-stage-shell{
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-top: var(--social-safe-top);
  padding-bottom: var(--social-safe-bottom);
  box-sizing: border-box;
  background: #000;
}

.social-stage{
  position: relative;
  width: min(100vw, calc(var(--social-safe-vh) * 16 / 9));
  height: min(var(--social-safe-vh), calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px rgba(24,164,255,0.08);
}

.social-video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.authored-space{
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--social-base-w) * 1px);
  height: calc(var(--social-base-h) * 1px);
  transform-origin: top left;
  transform: scale(var(--stage-scale, 1));
}

.social-overlay{
  z-index: 20;
  pointer-events: none;
}

.social-ui{
  z-index: 30;
  pointer-events: none;
}

.social-hotspot{
  position: absolute;
  display: block;
  pointer-events: auto;
  border: 0;
  outline: none;
  background: transparent;
  text-decoration: none;
  border-radius: var(--social-hotspot-radius);
  cursor: pointer;
}

.social-hotspot::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.social-hotspot:hover::before,
.social-hotspot:focus-visible::before,
body.debug-hotspots .social-hotspot::before{
  border-color: rgba(24,164,255,0.88);
  background: rgba(24,164,255,0.06);
  box-shadow:
    0 0 0 1px rgba(255,46,159,0.45) inset,
    0 0 18px rgba(24,164,255,0.36),
    0 0 22px rgba(255,46,159,0.20);
}

#city-nav.skyline-social{
  position: absolute !important;
  left: 54px;
  right: 54px;
  bottom: 26px;
  z-index: 1;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap !important;
  justify-content: center;
  gap: 18px;
  overflow: visible !important;
  pointer-events: none;
}

#city-nav.skyline-social .building,
#city-nav.skyline-social .marquee{
  flex: 0 0 auto;
  white-space: nowrap;
}

#city-nav.skyline-social .marquee{
  pointer-events: auto;
}

.social-audio-toggle{
  position: absolute;
  left: 22px;
  bottom: 24px;
  z-index: 2;
  pointer-events: auto;
}

.rotate-gate{
  position: fixed;
  inset: 0;
  z-index: 15000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rotate-gate.is-active{
  display: flex;
}

.rotate-gate__box{
  width: min(520px, 92vw);
  padding: 24px 22px;
  border-radius: 20px;
  border: 1px solid rgba(24,164,255,0.42);
  background: rgba(7,10,24,0.74);
  box-shadow: 0 0 18px rgba(24,164,255,0.28), 0 0 26px rgba(255,46,159,0.12);
  text-align: center;
}

.rotate-gate__title{
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: clamp(1.45rem, 5vw, 2rem);
  color: rgba(245,247,255,0.96);
}

.rotate-gate__text{
  margin-top: 10px;
  color: rgba(208,228,255,0.88);
  font-size: 0.98rem;
}


@supports not (height: 100svh){
  :root{
    --social-safe-vh: calc(100vh - var(--social-safe-top) - var(--social-safe-bottom));
  }
}
