*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --presskit-l: 66%;    --presskit-t: 7%;     --presskit-w: 13.5%;
  --about-l:    82.5%;  --about-t:    7%;     --about-w:    10%;

  --slider-l: 20%;  --slider-t: 37%;  --slider-w: 60%;  --slider-h: 60%;

  --dots-b: 3%;

  --shuttle-l:  0.5%;   --shuttle-b:  2%;    --shuttle-w: 17%;
  --register-r: 1%;     --register-b: 1%;    --register-w: 14%;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #071428;
  font-family: Arial, sans-serif;
}

.stage-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stage {
  position: relative;
  width:  min(100vw, calc(100vh * 16 / 9));
  height: min(100vh, calc(100vw * 9 / 16));
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
  display: block;
}

.hotspot {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.hotspot:hover  { transform: scale(1.07); filter: brightness(1.1); }
.hotspot:active { transform: scale(0.96); }
.hotspot:focus-visible {
  outline: 3px solid #FFE500;
  outline-offset: 4px;
  border-radius: 6px;
}

.hotspot img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.hotspot--presskit {
  left:  var(--presskit-l);
  top:   var(--presskit-t);
  width: var(--presskit-w);
}

.hotspot--about {
  left:  var(--about-l);
  top:   var(--about-t);
  width: var(--about-w);
}

.hotspot--shuttle {
  left:   var(--shuttle-l);
  bottom: var(--shuttle-b);
  width:  var(--shuttle-w);
}

.hotspot--register {
  right:  var(--register-r);
  bottom: var(--register-b);
  width:  var(--register-w);
  text-decoration: none;
  display: block;
}

.slider {
  position: absolute;
  left:   var(--slider-l);
  top:    var(--slider-t);
  width:  var(--slider-w);
  height: var(--slider-h);
}

/* Sementara: slider nonaktif menunggu konten dari client */
.slider {
  display: none;
}

/* Sementara: tombol terkunci, hanya Register yang aktif */
.is-locked {
  pointer-events: none;
  cursor: default;
}

.slider__track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0.8vh 4vh rgba(0, 10, 40, 0.55),
              0 0.3vh 1.2vh rgba(0, 10, 40, 0.35);
  touch-action: pan-y;
  cursor: grab;
}

.slider__track:active {
  cursor: grabbing;
}

.slider__slide {
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.35, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__slide.no-trans {
  transition: none;
}

.slider__slide.active {
  transform: translateX(0);
  z-index: 1;
}

.slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
  pointer-events: none;
  transform: scale(1.015);
}

.slider__dots {
  position: absolute;
  bottom: var(--dots-b);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: min(1.4vh, 0.8vw);
  z-index: 10;
}

.slider__dot {
  width: min(3.6vh, 2vw);
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  background: #c9c9c9;
  border: 3px solid #f2f2f2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.slider__dot.active {
  background: #F7941D;
  border-color: #fff;
  transform: scale(1.18);
}

.slider__dot:hover:not(.active) {
  background: #e6e6e6;
}

.slider__dot:focus-visible {
  outline: 2px solid #FFE500;
  outline-offset: 3px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal.is-open {
  display: flex;
}

.modal__box {
  background: #fff;
  border-radius: 14px;
  padding: 2rem;
  max-width: 460px;
  width: 100%;
  position: relative;
  color: #1a1a2e;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  animation: modal-in 0.2s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.93) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.modal__close:hover { color: #222; background: #f0f0f0; }

.modal__box h2 {
  font-size: 1.4rem;
  color: #003087;
  margin-bottom: 0.85rem;
}

.modal__box p {
  line-height: 1.65;
  color: #333;
  font-size: 0.95rem;
}

.modal__btn {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.65rem 1.4rem;
  background: #003087;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.modal__btn:hover { background: #0050c8; }

.modal__meta { margin-top: 0.75rem; }

.rotate-hint {
  display: none;
  position: fixed;
  inset: 0;
  background: #071428;
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  gap: 1rem;
}

.rotate-hint__icon {
  font-size: 4rem;
  animation: rotate-anim 1.8s ease-in-out infinite;
}

@keyframes rotate-anim {
  0%, 100% { transform: rotate(0deg);   }
  50%       { transform: rotate(90deg); }
}

.rotate-hint p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.85;
}

@media (orientation: portrait) {
  .rotate-hint { display: none; }
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  display: block;
  height: auto;
}

.m-only {
  display: none;
}

.brand--logo    { top: 2%;    width: 16.5%; }
.brand--tagline { top: 19.5%; width: 23.5%; }
.brand--date    { top: 27.5%; width: 30%;   }

.is-intro .hotspot,
.is-intro .slider,
.is-intro .brand,
.is-intro .m-only {
  opacity: 0;
}

@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.25); }
  70%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1);    }
}

@keyframes brand-pop {
  0%   { opacity: 0; transform: translateX(-50%) scale(0.25); }
  70%  { opacity: 1; transform: translateX(-50%) scale(1.08); }
  100% { opacity: 1; transform: translateX(-50%) scale(1);    }
}

@keyframes brand-fade {
  from { opacity: 0; transform: translateX(-50%); }
  to   { opacity: 1; transform: translateX(-50%); }
}

@keyframes brand-rise {
  from { opacity: 0; transform: translateX(-50%) translateY(2em); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0);   }
}

.is-ready .brand--logo       { animation: brand-pop  0.6s  cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s backwards; }
.is-ready .brand--tagline    { animation: brand-fade 0.5s  ease 1.05s backwards; }
.is-ready .brand--date       { animation: brand-rise 0.5s  ease 1.6s  backwards; }
.is-ready .slider            { animation: pop-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 2.3s  backwards; }
.is-ready .hotspot--presskit { animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.75s backwards; }
.is-ready .hotspot--about    { animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.9s  backwards; }
.is-ready .hotspot--shuttle  { animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 3.05s backwards; }
.is-ready .hotspot--register { animation: pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 3.2s  backwards; }
.is-ready .m-logos           { animation: pop-in 0.45s ease 0.2s backwards; }
.is-ready .m-sponsor         { animation: brand-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 3.35s backwards; }

@keyframes idle-wiggle {
  0%, 100% { transform: rotate(0deg); }
  4%  { transform: rotate(-5deg); }
  8%  { transform: rotate(5deg);  }
  12% { transform: rotate(-4deg); }
  16% { transform: rotate(3deg);  }
  20% { transform: rotate(0deg);  }
}

.is-ready .hotspot--shuttle img {
  animation: idle-wiggle 4.5s ease-in-out 4s infinite;
  transform-origin: 50% 85%;
}

.is-ready .hotspot--register img {
  animation: idle-wiggle 4.5s ease-in-out 6.2s infinite;
  transform-origin: 50% 85%;
}

.hotspot--shuttle:hover img,
.hotspot--register:hover img {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .is-ready .brand--logo,
  .is-ready .brand--tagline,
  .is-ready .brand--date,
  .is-ready .slider,
  .is-ready .hotspot--presskit,
  .is-ready .hotspot--about,
  .is-ready .hotspot--shuttle,
  .is-ready .hotspot--register,
  .is-ready .m-logos,
  .is-ready .m-sponsor {
    animation: none;
  }
  .is-ready .hotspot--shuttle img,
  .is-ready .hotspot--register img {
    animation: none;
  }
}

@media (orientation: portrait) {
  .stage {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
  }

  .stage-bg {
    object-fit: cover;
    object-position: center bottom;
  }

  .m-only {
    display: block;
  }

  .m-logos {
    position: absolute;
    left: 3%;
    top: 1.6%;
    width: min(34%, 19vh);
    pointer-events: none;
  }

  .hotspot--presskit {
    left: 52%;
    top: 2.4%;
    width: min(23%, 13vh);
  }

  .hotspot--about {
    left: auto;
    right: 3%;
    top: 2.4%;
    width: min(18.6%, 10.5vh);
  }

  .brand--logo    { top: 11%;   width: min(36%, 20vh); }
  .brand--tagline { top: 22%;   width: min(58%, 30vh); }
  .brand--date    { top: 27.3%; width: min(72%, 40vh); }

  .slider {
    left: 4.5%;
    top: 34.5%;
    width: 91%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .slider__dots {
    bottom: -9%;
    gap: 1.6vw;
  }

  .slider__dot {
    width: 2.4vw;
    border-width: 2px;
  }

  .m-sponsor {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 78.5%;
    width: min(91%, 52vh);
    pointer-events: none;
  }

  .hotspot--shuttle {
    left: 3%;
    bottom: 1.5%;
    width: min(28%, 17vh);
  }

  .hotspot--register {
    right: 3%;
    bottom: 1.5%;
    width: min(28%, 17vh);
  }
}

@media (orientation: portrait) and (min-aspect-ratio: 9/16) {
  .stage {
    width: calc(100vh * 9 / 16);
    width: calc(100dvh * 9 / 16);
    height: 100vh;
    height: 100dvh;
  }

  .stage-bg {
    object-fit: fill;
    object-position: center;
  }

  .m-sponsor {
    top: 77%;
    width: 88%;
  }

  .hotspot--shuttle,
  .hotspot--register {
    width: 25.5%;
    bottom: 1.2%;
  }
}
