/* =========================================================
   BenAnt Strategy Lab — theme overlay
   스테이지(고공 배경) + 글래스 패널 + 사운드 컨트롤
   색상 토큰과 base 타이포/레이아웃은 style.css 참고
   ========================================================= */

/* ---------------- stage (fixed background) ---------------- */
.stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% 86%, #162126 0%, #0b0e14 55%),
    radial-gradient(900px 420px at 50% 62%, #172730 0%, #0b0e14 50%),
    linear-gradient(180deg, #0b0e14 0%, #0c1218 45%, #101a20 100%);
}

.stage .earth-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40vh;
  background: radial-gradient(ellipse at 50% 100%, rgba(40, 60, 70, .6), transparent 70%);
  z-index: 1;
  pointer-events: none;
}

.plane {
  position: absolute;
  right: 4%;
  bottom: 18%;
  width: 120px;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .55));
  animation: fly 34s linear infinite;
  z-index: 2;
  pointer-events: none;
}
.plane svg { display: block; }

@keyframes fly {
  from { transform: translateX(0) rotateY(0); }
  to { transform: translateX(-120vw) rotateY(-2deg); }
}

/* 배경 비디오 - 전체 화면 고정, 맨 뒤 층 */
.stage .bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -1;
  pointer-events: none;
}

/* ---------------- glass panel ---------------- */
.glass {
  background: rgba(17, 21, 28, .88);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(53, 200, 212, .25);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(215, 221, 229, .05);
}

/* 콘텐츠가 스테이지/비디오 위에 뜨도록 */
.glass.page-wrapper {
  position: relative;
  z-index: 10;
  transition: opacity .18s ease;
}

/* 페이지 이동 중: 배경(영상/음악)은 그대로 두고 패널만 살짝 가라앉힌다 */
body.is-navigating .glass.page-wrapper { opacity: .45; }

/* ---------------- sound control ---------------- */
.sound-bar {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(11, 14, 20, .85);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
}

.sound-btn {
  background: rgba(53, 200, 212, .15);
  border: 1px solid rgba(53, 200, 212, .35);
  color: var(--accent);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: .8rem;
}

.sound-btn:hover { background: rgba(53, 200, 212, .25); }
.sound-btn.on {
  background: rgba(46, 204, 113, .15);
  border-color: rgba(46, 204, 113, .35);
  color: var(--up);
}

.sound-hint { font-size: .72rem; opacity: .75; }

@media (max-width: 600px) {
  .sound-hint { display: none; }
  .plane { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .plane { animation: none !important; }
}
