/* ---------- reset ---------- */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  background: #05070f;
  overflow: hidden;
  font-family: 'Jost', sans-serif;
}

/* ---------- landscape lock ----------
   On tall/portrait screens we rotate the whole wrapper 90deg
   so the fixed 1600x900 stage always renders in landscape,
   whether the phone is held upright or the page is on a desktop. */
#rotate-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

@media screen and (max-aspect-ratio: 1/1) {
  #rotate-wrapper {
    width: 100vh;
    height: 100vw;
    transform: rotate(90deg);
    transform-origin: top left;
    top: 0;
    left: 100%;
  }
}

/* ---------- fixed-size stage ----------
   Everything is designed at 1600x900 and uniformly scaled
   by js/script.js to fit any viewport, so the layout is
   identical on a phone and on a desktop monitor. */
#stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 900px;
  transform-origin: 0 0;
  overflow: hidden;
}

/* ---------- background ---------- */
#sky {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background:
    radial-gradient(ellipse at 20% 15%, #2a2361 0%, transparent 55%),
    linear-gradient(180deg, #0b0f2e 0%, #12142f 45%, #191233 100%);
}

#stars {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 60px 90px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 240px 200px, #fff, transparent),
    radial-gradient(1px 1px at 420px 60px, #cfd0ff, transparent),
    radial-gradient(1.5px 1.5px at 610px 300px, #fff, transparent),
    radial-gradient(1px 1px at 780px 120px, #cfd0ff, transparent),
    radial-gradient(1.5px 1.5px at 940px 260px, #fff, transparent),
    radial-gradient(1px 1px at 1120px 80px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 1300px 220px, #cfd0ff, transparent),
    radial-gradient(1px 1px at 1480px 140px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 1550px 340px, #fff, transparent),
    radial-gradient(1px 1px at 150px 400px, #fff, transparent),
    radial-gradient(1.5px 1.5px at 980px 420px, #cfd0ff, transparent);
  background-repeat: no-repeat;
  opacity: 0.85;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}
.glow-orb--a {
  width: 260px;
  height: 260px;
  right: 90px;
  top: -90px;
  background: radial-gradient(circle at 35% 35%, #f2c879 0%, #c98f4f 45%, transparent 70%);
}
.glow-orb--b {
  width: 140px;
  height: 140px;
  left: 60px;
  bottom: 40px;
  background: radial-gradient(circle at 40% 40%, #7d6bd0 0%, transparent 70%);
  opacity: 0.35;
}

/* ---------- sprites ---------- */
#sprites {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 2;
}
.sprite {
  position: absolute;
  bottom: 0;
  height: auto;
  width: auto;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,0.45));
}
.sprite--1 { left: 10px;   height: 600px; z-index: 1; opacity: 0.88; }
.sprite--2 { left: 210px;  height: 600px; z-index: 2; }
.sprite--3 { left: 410px;  height: 600px; z-index: 3; }
.sprite--4 { left: 630px;  height: 600px; z-index: 4; }
.sprite--5 { left: 810px;  height: 600px; z-index: 5; }

/* soft scrim behind the menu so button text stays legible
   no matter what part of a sprite sits behind it */
#menu-scrim {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 620px;
  z-index: 6;
  background: linear-gradient(90deg, rgba(5,7,15,0) 0%, rgba(5,7,15,0.55) 45%, rgba(5,7,15,0.8) 100%);
  pointer-events: none;
}

/* ---------- logo ---------- */
#logo {
  position: absolute;
  top: 60px;
  left: 70px;
  z-index: 6;
}
#logo h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 86px;
  color: #f5f3fa;
  letter-spacing: 2px;
  text-shadow: 0 0 40px rgba(184, 169, 224, 0.5);
}
#logo .tagline {
  margin: 6px 0 0 6px;
  font-family: 'Jost', sans-serif;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #b8a9e0;
}
.orbit-ring {
  position: absolute;
  top: -22px;
  left: 300px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(184, 169, 224, 0.35);
  border-radius: 50%;
  animation: spin 12s linear infinite;
}
.orbit-dot {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #f2c879;
  box-shadow: 0 0 8px 2px rgba(242, 200, 121, 0.8);
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- menu ---------- */
#menu {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 70px 80px 0;
}
#menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-btn {
  width: 100%;
  padding: 16px 28px;
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  letter-spacing: 3px;
  text-align: left;
  color: #f5f3fa;
  background: rgba(46, 31, 94, 0.55);
  border: 1px solid rgba(184, 169, 224, 0.3);
  border-radius: 6px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.menu-btn:hover {
  background: rgba(74, 52, 138, 0.75);
  border-color: #f2c879;
  transform: translateX(-6px);
}
.menu-btn--primary {
  background: rgba(242, 200, 121, 0.16);
  border-color: rgba(242, 200, 121, 0.55);
  font-weight: 600;
}
.menu-btn--primary:hover {
  background: rgba(242, 200, 121, 0.3);
}
.qload {
  align-self: flex-end;
  margin-bottom: 18px;
  padding: 8px 18px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #b8a9e0;
  background: transparent;
  border: 1px solid rgba(184, 169, 224, 0.35);
  border-radius: 4px;
  cursor: pointer;
}
.qload:hover {
  color: #f2c879;
  border-color: #f2c879;
}

/* ---------- footer ---------- */
#footer {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(245, 243, 250, 0.45);
  z-index: 6;
}
