/* MIGZ ADVENTURES — fixed 16:9 stage lock */

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

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

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

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

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

.adventures-stage{
  position:relative;
  width:min(100vw, calc(var(--adv-safe-vh) * 16 / 9));
  height:min(var(--adv-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);
}

.adventures-map-image{
  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(--adv-base-w) * 1px);
  height:calc(var(--adv-base-h) * 1px);
  transform-origin:top left;
  transform:scale(var(--stage-scale, 1));
}

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

.adventures-hotspot{
  position:absolute;
  width:2px;
  height:2px;
  margin:0;
  padding:0;
  border:0;
  border-radius:50%;
  transform:translate(-50%, -50%);
  background:#ffffff;
  box-shadow:
    0 0 1px rgba(255,255,255,1),
    0 0 3px rgba(255,255,255,0.98),
    0 0 5px rgba(255,255,255,0.72);
  cursor:pointer;
  pointer-events:auto;
}

.adventures-hotspot:hover,
.adventures-hotspot:focus-visible{
  outline:none;
  box-shadow:
    0 0 1px rgba(255,255,255,1),
    0 0 4px rgba(255,255,255,1),
    0 0 7px rgba(255,255,255,0.82);
}

.target-system{
  position:absolute;
  left:0;
  top:0;
  width:0;
  height:0;
  pointer-events:none;
  z-index:20;
}

.target-system__crosshair{
  position:absolute;
  width:68px;
  height:68px;
  transform:translate(-50%, -50%);
  border:1px solid rgba(24,164,255,0.88);
  box-shadow:
    0 0 12px rgba(24,164,255,0.55),
    inset 0 0 8px rgba(24,164,255,0.25);
  opacity:0;
}

.target-system__crosshair::before,
.target-system__crosshair::after{
  content:"";
  position:absolute;
  background:rgba(24,164,255,0.9);
  box-shadow:0 0 10px rgba(24,164,255,0.7);
}

.target-system__crosshair::before{
  left:50%;
  top:-18px;
  width:1px;
  height:104px;
  transform:translateX(-50%);
}

.target-system__crosshair::after{
  top:50%;
  left:-18px;
  width:104px;
  height:1px;
  transform:translateY(-50%);
}

.target-system__pulse{
  position:absolute;
  width:90px;
  height:90px;
  border-radius:50%;
  transform:translate(-50%, -50%);
  border:1px solid rgba(255,46,159,0.58);
  box-shadow:0 0 16px rgba(255,46,159,0.24);
  opacity:0;
}

.target-system__label{
  position:absolute;
  left:26px;
  top:-38px;
  transform:translateY(-50%);
  min-width:120px;
  padding:6px 10px;
  border:1px solid rgba(24,164,255,0.42);
  background:rgba(5,8,18,0.86);
  color:rgba(208,228,255,0.96);
  font-family:"Bebas Neue", system-ui, sans-serif;
  letter-spacing:0.14em;
  font-size:18px;
  text-transform:uppercase;
  box-shadow:
    0 0 12px rgba(24,164,255,0.22),
    0 0 18px rgba(255,46,159,0.10);
  opacity:0;
  white-space:nowrap;
}

.target-system.is-active .target-system__crosshair{
  opacity:1;
  animation:adv-lock-crosshair 320ms ease forwards;
}

.target-system.is-active .target-system__pulse{
  opacity:1;
  animation:adv-lock-pulse 680ms ease forwards;
}

.target-system.is-active .target-system__label{
  opacity:1;
  animation:adv-lock-label 240ms ease forwards;
}

@keyframes adv-lock-crosshair{
  0%{
    transform:translate(-50%, -50%) scale(0.65);
    opacity:0;
  }
  100%{
    transform:translate(-50%, -50%) scale(1);
    opacity:1;
  }
}

@keyframes adv-lock-pulse{
  0%{
    transform:translate(-50%, -50%) scale(0.78);
    opacity:0.95;
  }
  100%{
    transform:translate(-50%, -50%) scale(1.6);
    opacity:0;
  }
}

@keyframes adv-lock-label{
  0%{
    transform:translateY(-50%) translateX(-8px);
    opacity:0;
  }
  100%{
    transform:translateY(-50%) translateX(0);
    opacity:1;
  }
}

#city-nav.skyline-adventures{
  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-adventures .building,
#city-nav.skyline-adventures .marquee{
  flex:0 0 auto;
  white-space:nowrap;
}

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

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


.adventures-coming-soon{
  position:absolute;
  left:50%;
  top:108px;
  transform:translateX(-50%);
  z-index:25;
  pointer-events:none;
}

.adventures-coming-soon span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 18px;
  border-radius:999px;
  border:1px solid rgba(208,228,255,0.28);
  background:rgba(7,10,24,0.28);
  backdrop-filter:blur(5px);
  color:rgba(245,247,255,0.88);
  font-family:"Bebas Neue",system-ui,sans-serif;
  letter-spacing:0.22em;
  font-size:24px;
  text-transform:uppercase;
  text-shadow:0 0 12px rgba(24,164,255,0.28);
  box-shadow:0 0 16px rgba(24,164,255,0.16),0 0 22px rgba(255,46,159,0.08);
}


/* GO LIVE — temporary Adventures overlay */
.adventures-stage::before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:min(1180px, 82%);
  height:152px;
  transform:translate(-50%, -50%);
  background:linear-gradient(90deg, rgba(5,8,18,0.00) 0%, rgba(5,8,18,0.36) 14%, rgba(5,8,18,0.52) 50%, rgba(5,8,18,0.36) 86%, rgba(5,8,18,0.00) 100%);
  border-top:1px solid rgba(208,228,255,0.18);
  border-bottom:1px solid rgba(208,228,255,0.18);
  box-shadow:0 0 22px rgba(24,164,255,0.08);
  z-index:24;
  pointer-events:none;
}

.adventures-stage::after{
  content:"REGIONAL MAPS COMING SOON";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%, -50%);
  width:min(1280px, 90%);
  text-align:center;
  font-family:"Bebas Neue", system-ui, sans-serif;
  font-size:clamp(64px, 6.2vw, 122px);
  letter-spacing:0.22em;
  text-transform:uppercase;
  color:rgba(228,239,255,0.34);
  text-shadow:
    0 0 8px rgba(255,255,255,0.18),
    0 0 18px rgba(24,164,255,0.12),
    0 0 28px rgba(255,46,159,0.08);
  z-index:25;
  pointer-events:none;
  user-select:none;
}


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