/* ==========================================================
   소우주 (Mikrokosmos) 613-709 — Coming Soon & Launch Pad
   Design System & Styles (100% 디자인 감성 완벽 승계)
   ========================================================== */

/* ── 디자인 토큰 ── */
:root {
  /* 배경: 완전 검정(#000) 금지 — 깊은 심연의 네이비 */
  --bg-deep: #05050B;
  --bg-navy: #0B0C10;
  --bg-purple: #0d0a1a;

  /* 텍스트 */
  --text-primary: #F3F4F6;
  /* 오프화이트/실버 */
  --text-secondary: rgba(255, 255, 255, 0.65);
  --text-dim: rgba(255, 255, 255, 0.35);

  /* 5 Era 포인트 컬러 */
  --era-debut: #E2E8F0;
  /* 은빛 */
  --era-hyyh: #F472B6;
  /* 벚꽃 핑크 */
  --era-hyyh-mint: #5EEAD4;
  /* 민트 */
  --era-wings: #C084FC;
  /* 오로라 퍼플 */
  --era-dynamite: #FBBF24;
  /* 황금 */
  --era-chapter2: #6366F1;
  /* 딥 인디고 */
  --era-festa: #06B6D4;
  /* 아쿠아 스카이 블루 */
  --era-reunion: #8B5CF6;
  /* 네온 바이올렛 퍼플 */

  /* 글래스모피즘 */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-blur: 20px;

  /* 폰트 */
  --font-serif: 'Noto Serif KR', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* 레이아웃 */
  --max-width: 430px;
}

/* ── 리셋 & 베이스 ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-deep);
  /* 전체 스크롤 방지 — 우주 공간감 */
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 선택 영역 색상 */
::selection {
  background: rgba(192, 132, 252, 0.3);
  color: #fff;
}

/* ── 메인 컨테이너 (모바일 캔버스) ── */
.universe {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  /* 네이비~퍼플 그라데이션 배경 */
  background: linear-gradient(170deg,
      var(--bg-deep) 0%,
      #0a0918 25%,
      #100e24 50%,
      #0d0820 75%,
      var(--bg-navy) 100%);
}

/* ── 별 파티클 캔버스 (z-0) ── */
#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: auto;
  /* 별 클릭 인터랙션 활성화 */
  cursor: crosshair;
}

/* ── 오로라 그라데이션 오버레이 ── */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.25;
  background:
    radial-gradient(ellipse 60% 40% at 20% 20%, var(--era-debut), transparent),
    radial-gradient(ellipse 50% 50% at 80% 30%, var(--era-hyyh), transparent),
    radial-gradient(ellipse 55% 45% at 50% 60%, var(--era-wings), transparent),
    radial-gradient(ellipse 45% 35% at 30% 80%, var(--era-dynamite), transparent),
    radial-gradient(ellipse 50% 40% at 75% 85%, var(--era-chapter2), transparent),
    radial-gradient(ellipse 45% 45% at 15% 85%, var(--era-festa), transparent),
    radial-gradient(ellipse 50% 50% at 85% 15%, var(--era-reunion), transparent);
  animation: auroraShift 25s ease-in-out infinite alternate;
  filter: blur(80px);
}

@keyframes auroraShift {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0.2;
  }

  33% {
    transform: scale(1.1) translate(-3%, 5%);
    opacity: 0.3;
  }

  66% {
    transform: scale(0.95) translate(4%, -3%);
    opacity: 0.22;
  }

  100% {
    transform: scale(1.05) translate(-2%, 2%);
    opacity: 0.28;
  }
}

/* ── 노이즈 텍스처 오버레이 ── */
.noise {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px 128px;
}

/* ── 메인 콘텐츠 영역 (z-10) ── */
.content {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2rem 1.5rem calc(90px + 2rem);
  overflow-y: auto;
  scrollbar-width: none;
  /* 파이어폭스 스크롤 숨김 */
  pointer-events: none;
  /* 🌟 캔버스 드래그 및 별 클릭 이벤트 관통 허용 */
}

.content::-webkit-scrollbar {
  display: none;
  /* 크롬/사파리 스크롤 숨김 */
}

/* 🌟 인터랙티브 요소 포인터 이벤트 복원 (KISS & DRY) */
.content>*,
.view-section,
.logo-area {
  pointer-events: none;
}

.btn-launch,
.btn-toggle-view,
.launch-form-card,
.galaxy-info-card,
.galaxy-counter,
.galaxy-mode-badge,
.era-planet,
.era-planets-selector,
.era-select-item,
.modal-overlay,
.modal-container,
.star-popup,
.btn-back-arrow {
  pointer-events: auto !important;
  /* 마우스 및 터치 조작 복원 */
}

/* 🌟 메인 카운트다운 뷰와 발권 폼 뷰는 드래그 패닝이 불필요하므로 빈 우주 공간 터치 시에도 영롱한 터치 스크롤이 되도록 허용 */
#coming-soon-view,
#launch-pad-view {
  pointer-events: auto !important;
}

/* ── 로고 & 타이틀 ── */
.logo-area {
  text-align: center;
  margin-bottom: 1rem;
  width: 100%;
}

.flight-number {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.main-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  line-height: 1.4;
  text-shadow:
    0 0 30px rgba(192, 132, 252, 0.15),
    0 0 60px rgba(99, 102, 241, 0.08);
}

.main-title .accent {
  display: block;
  font-size: 0.95rem;
  font-family: var(--font-mono);
  letter-spacing: 0.5em;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-weight: 400;
}

/* ── 뷰 섹션 스위칭 시스템 ── */
.view-section {
  display: flex;
  /* 🌟 다중 페이지(MPA) 개편에 따라 기본 flex 노출 처리 */
  width: 100%;
  position: relative;
  /* 자식 요소 절대 정렬 지원 */
  flex-direction: column;
  align-items: center;
  animation: viewFadeIn 0.8s ease forwards;
}

.view-section.active {
  display: flex;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── 타이핑 효과 오프닝 카피 ── */
.opening-copy {
  text-align: center;
  margin: 1.8rem 0 2.2rem;
  min-height: 5.5rem;
  width: 100%;
}

.opening-copy p {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  line-height: 2;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.opening-copy p.visible {
  opacity: 1;
  transform: translateY(0);
}

.typing-cursor {
  display: inline-block;
  width: 1px;
  height: 1em;
  background: var(--era-wings);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ── 카운트다운 타이머 ── */
.countdown-section {
  margin-bottom: 2rem;
  text-align: center;
  width: 100%;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.countdown {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.countdown-item {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 0.9rem 0.6rem 0.7rem;
  min-width: 62px;
  text-align: center;
  box-shadow:
    0 4px 30px rgba(99, 102, 241, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.countdown-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  line-height: 1;
  transition: transform 0.2s ease;
}

.countdown-unit {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.25em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-top: 0.4rem;
}

/* ── [NEW] 은하 선택 유도 가이드 텍스트 ── */
.era-guide-text {
  text-align: center;
  font-size: clamp(0.7rem, 3.2vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1.5rem;
  margin-bottom: -0.2rem;
  text-shadow: 0 0 10px rgba(167, 139, 250, 0.3);
  animation: guidePulse 2.5s infinite ease-in-out;
}

.guide-sparkle {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(251, 191, 36, 0.8);
  display: inline-block;
  animation: sparkleRotate 4s infinite linear;
}

/* ── [NEW] 애니메이션 키프레임 정의 ── */
@keyframes guidePulse {

  0%,
  100% {
    opacity: 0.55;
    text-shadow: 0 0 8px rgba(167, 139, 250, 0.2);
  }

  50% {
    opacity: 0.95;
    text-shadow: 0 0 15px rgba(167, 139, 250, 0.6), 0 0 25px rgba(167, 139, 250, 0.3);
  }
}

@keyframes sparkleRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.2);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes spaceFloat {

  0%,
  100% {
    top: 0;
  }

  50% {
    top: -5px;
  }
}

.era-planets {
  display: flex;
  /* 화면이 줄어듦에 따라 간격(gap)을 0.35rem ~ 0.8rem 사이로 유연하게 자동 축소 */
  gap: clamp(0.35rem, 2.2vw, 0.8rem);
  justify-content: center;
  /* 언제나 깔끔하게 화면 가운데 정렬 */
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  /* 가로 잘림이나 스크롤바를 원천 차단하고 온전하게 렌더링 */
  white-space: nowrap;
  flex-wrap: nowrap !important;
  padding: 0.8rem 0.5rem;
}

.era-planet {
  position: relative;
  /* 화면 너비에 맞추어 지름을 24px ~ 32px 사이로 완벽하게 자동 가변 스케일링 */
  width: clamp(24px, 7.5vw, 32px);
  height: clamp(24px, 7.5vw, 32px);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.3s ease;
  flex-shrink: 0;
  /* 좁은 화면에서도 찌그러짐 방지 */
}

.era-planet::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.era-planet[data-era="debut"] {
  background: radial-gradient(circle at 35% 35%, #fff, var(--era-debut));
  box-shadow: 0 0 15px rgba(226, 232, 240, 0.3), 0 0 40px rgba(226, 232, 240, 0.1);
  animation: spaceFloat 3s infinite ease-in-out;
}

.era-planet[data-era="hyyh"] {
  background: radial-gradient(circle at 35% 35%, #fce4ec, var(--era-hyyh));
  box-shadow: 0 0 15px rgba(244, 114, 182, 0.35), 0 0 40px rgba(244, 114, 182, 0.1);
  animation: spaceFloat 3.2s infinite ease-in-out 0.4s;
}

.era-planet[data-era="wings"] {
  background: radial-gradient(circle at 35% 35%, #e8d5ff, var(--era-wings));
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.4), 0 0 40px rgba(192, 132, 252, 0.12);
  animation: spaceFloat 2.8s infinite ease-in-out 0.8s;
}

.era-planet[data-era="dynamite"] {
  background: radial-gradient(circle at 35% 35%, #fff8dc, var(--era-dynamite));
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 191, 36, 0.1);
  animation: spaceFloat 3.4s infinite ease-in-out 1.2s;
}

.era-planet[data-era="chapter2"] {
  background: radial-gradient(circle at 35% 35%, #c7d2fe, var(--era-chapter2));
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.4), 0 0 40px rgba(99, 102, 241, 0.12);
  animation: spaceFloat 3s infinite ease-in-out 1.6s;
}

.era-planet[data-era="festa"] {
  background: radial-gradient(circle at 35% 35%, #e0f7fa, var(--era-festa));
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.35), 0 0 40px rgba(6, 182, 212, 0.1);
  animation: spaceFloat 3.1s infinite ease-in-out 2s;
}

.era-planet[data-era="reunion"] {
  background: radial-gradient(circle at 35% 35%, #f3e5f5, var(--era-reunion));
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.12);
  animation: spaceFloat 2.9s infinite ease-in-out 2.4s;
}

.era-planet:hover,
.era-planet:active {
  transform: scale(1.3);
}

.era-planet[data-era="debut"]:hover {
  box-shadow: 0 0 25px rgba(226, 232, 240, 0.6), 0 0 60px rgba(226, 232, 240, 0.2);
}

.era-planet[data-era="hyyh"]:hover {
  box-shadow: 0 0 25px rgba(244, 114, 182, 0.6), 0 0 60px rgba(244, 114, 182, 0.2);
}

.era-planet[data-era="wings"]:hover {
  box-shadow: 0 0 25px rgba(192, 132, 252, 0.7), 0 0 60px rgba(192, 132, 252, 0.25);
}

.era-planet[data-era="dynamite"]:hover {
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.6), 0 0 60px rgba(251, 191, 36, 0.2);
}

.era-planet[data-era="chapter2"]:hover {
  box-shadow: 0 0 25px rgba(99, 102, 241, 0.6), 0 0 60px rgba(99, 102, 241, 0.2);
}

.era-planet[data-era="festa"]:hover {
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.6), 0 0 60px rgba(6, 182, 212, 0.2);
}

.era-planet[data-era="reunion"]:hover {
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.7), 0 0 60px rgba(139, 92, 246, 0.25);
}

.era-tooltip {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.era-planet:hover .era-tooltip,
.era-planet:active .era-tooltip,
.era-planet.active .era-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── 하단 CTA 바 ── */
.bottom-bar {
  width: 100%;
  padding: 1.5rem 1rem 1rem;
  text-align: center;
}

.coming-soon-text {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.5em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.launch-date {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  color: var(--text-primary);
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.25);
}

.heart-icon {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 1rem;
  animation: heartPulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.5));
}

@keyframes heartPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════
     [NEW] 화면 2: Launch Pad (입력 폼 영역)
     ═══════════════════════════════════════════ */

.galaxy-counter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(192, 132, 252, 0.06);
  border: 1px solid rgba(192, 132, 252, 0.15);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 20px rgba(192, 132, 252, 0.03);
}

.galaxy-counter.mini {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.8rem;
}

.counter-label {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.counter-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--era-wings);
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.4);
}

.counter-unit {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* 화면 전환 버튼 */
.btn-toggle-view {
  background: rgba(192, 132, 252, 0.08);
  /* 로컬 감성의 보라색 반투명 배경 */
  border: 1px solid rgba(192, 132, 252, 0.28);
  /* 연한 보라색 오로라 테두리 */
  color: var(--text-primary);
  font-family: var(--font-serif);
  font-size: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
  margin-bottom: 1.8rem;
  backdrop-filter: blur(10px);
  box-shadow:
    0 4px 15px rgba(192, 132, 252, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-toggle-view:hover {
  background: rgba(192, 132, 252, 0.16);
  border-color: rgba(192, 132, 252, 0.55);
  transform: translateY(-2px);
  box-shadow:
    0 6px 20px rgba(192, 132, 252, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 글래스모피즘 폼 카드 */
.launch-form-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 1.8rem 1.4rem;
  box-shadow:
    0 10px 50px rgba(0, 0, 0, 0.3),
    0 4px 30px rgba(99, 102, 241, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 300;
  text-align: center;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-subtitle {
  font-family: var(--font-serif);
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

/* 인풋 & 텍스트에어리어 */
.form-group input[type="text"],
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 0.8rem 1rem;
  outline: none;
  transition: all 0.3s ease;
  width: 100%;
}

.form-group textarea {
  resize: none;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--era-wings);
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.15);
}

.form-group select option {
  background: #0f0e1c;
  color: #fff;
}

.char-counter {
  align-self: flex-end;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  margin-top: 0.3rem;
}

/* 폼 에러 메시지 */
.form-error-msg {
  color: #f87171;
  font-size: 0.72rem;
  text-align: center;
  margin-bottom: 1rem;
  min-height: 1rem;
}

/* 시대(Era) 선택 버튼 그룹 */
.era-planets-selector {
  display: flex;
  justify-content: space-between;
  /* 언제나 균등 분할로 한 화면에 배치 */
  /* 화면폭에 따라 간격을 0.2rem ~ 0.4rem 사이로 유기적 자동 조절 */
  gap: clamp(0.2rem, 1.2vw, 0.4rem);
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 0.6rem 0.3rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  /* 잘림이나 스크롤바 없이 7개 아이콘 완벽하게 노출 */
  white-space: nowrap;
  flex-wrap: nowrap !important;
}

.era-select-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  flex: 1;
  opacity: 0.45;
  transition: all 0.3s ease;
  flex-shrink: 0;
  /* 좁은 화면에서도 찌그러짐 방지 */
}

.era-select-item span {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  margin-top: 0.4rem;
  color: var(--text-secondary);
}

.select-planet {
  /* 발사대 폼 내부의 미니 행성 크기도 화면 폭에 따라 지름 15px ~ 20px로 유연하게 가변 스케일링 */
  width: clamp(15px, 5vw, 20px);
  height: clamp(15px, 5vw, 20px);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.select-planet.debut {
  background: radial-gradient(circle at 35% 35%, #fff, var(--era-debut));
}

.select-planet.hyyh {
  background: radial-gradient(circle at 35% 35%, #fce4ec, var(--era-hyyh));
}

.select-planet.wings {
  background: radial-gradient(circle at 35% 35%, #e8d5ff, var(--era-wings));
}

.select-planet.dynamite {
  background: radial-gradient(circle at 35% 35%, #fff8dc, var(--era-dynamite));
}

.select-planet.chapter2 {
  background: radial-gradient(circle at 35% 35%, #c7d2fe, var(--era-chapter2));
}

.select-planet.festa {
  background: radial-gradient(circle at 35% 35%, #e0f7fa, var(--era-festa));
}

.select-planet.reunion {
  background: radial-gradient(circle at 35% 35%, #f3e5f5, var(--era-reunion));
}

.era-select-item.active {
  opacity: 1;
}

.era-select-item.active .select-planet {
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.era-select-item[data-select-era="debut"].active .select-planet {
  box-shadow: 0 0 12px rgba(226, 232, 240, 0.6);
}

.era-select-item[data-select-era="hyyh"].active .select-planet {
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.6);
}

.era-select-item[data-select-era="wings"].active .select-planet {
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}

.era-select-item[data-select-era="dynamite"].active .select-planet {
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.6);
}

.era-select-item[data-select-era="chapter2"].active .select-planet {
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}

.era-select-item[data-select-era="festa"].active .select-planet {
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

.era-select-item[data-select-era="reunion"].active .select-planet {
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* 발사 버튼 */
.btn-launch {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  border: none;
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
  width: 100%;
}

.btn-launch:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(168, 85, 247, 0.45);
}

.launch-icon {
  font-size: 1rem;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-launch:hover .launch-icon {
  transform: translate(3px, -3px) scale(1.1);
}

/* ═══════════════════════════════════════════
     [NEW] 화면 3: Galaxy View (은하수 탐색 카드)
     ═══════════════════════════════════════════ */

.galaxy-info-card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
  backdrop-filter: blur(8px);
}

.btn-info-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  opacity: 0.4;
  transition: opacity 0.2s ease, transform 0.2s ease;
  line-height: 1;
  padding: 4px 8px;
}

.btn-info-close:hover {
  opacity: 0.9;
  transform: scale(1.15);
}

.galaxy-instruction {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.climax-alert {
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 0.8rem;
  margin-top: 0.8rem;
  animation: pulseClimax 3s ease-in-out infinite;
}

.climax-alert p {
  font-size: 0.72rem;
  color: #d8b4fe;
  line-height: 1.6;
}

@keyframes pulseClimax {

  0%,
  100% {
    border-color: rgba(168, 85, 247, 0.2);
  }

  50% {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.1);
  }
}

.galaxy-mode-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  margin-bottom: 2rem;
  background: rgba(0, 0, 0, 0.2);
}

/* ═══════════════════════════════════════════
     [NEW] 컴포넌트 1: 우주 탑승권 모달 (Boarding Pass)
     ═══════════════════════════════════════════ */

.modal-overlay {
  position: fixed;
  /* 전체 화면 기준 고정으로 띄워 universe 외부 스크롤 영향 최소화 */
  inset: 0;
  z-index: 100;
  background: rgba(5, 5, 11, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: none;
  align-items: flex-start;
  /* 콘텐츠가 뷰포트를 초과할 때 상단이 잘리지 않고 스크롤되도록 설정 */
  justify-content: center;
  padding: 2rem 1.5rem calc(90px + 2rem);
  /* 모바일 하단 여백 가독성 확보 */
  overflow-y: auto;
  /* 세로 스크롤 허용 */
  -webkit-overflow-scrolling: touch;
  /* 모바일 관성 스크롤 원활화 */
  opacity: 0;
  transition: opacity 0.5s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-container {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto 0;
  /* 화면 높이가 모달보다 클 때는 중앙 정렬, 작을 때는 상하 마진 확보하며 정상 스크롤 */
  animation: modalSlideUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 탑승권 카드 본체 (1080 x 1920 세로 비율 유지) */
.boarding-pass-ticket {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.8rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

/* NASA 우주 배경 레이어 */
.ticket-bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* 해상도가 매우 큰 물리적 이미지의 흘러넘침 방지 */
}

/* 실제 배경 이미지 엘리먼트 (Canvas API로 직접 크롭된 이미지를 꽉 채워 표시) */
#ticket-real-bg {
  position: absolute;
  pointer-events: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
}

/* 글래스모피즘 반투명 필터 */
/* backdrop-filter: blur는 html2canvas가 렌더링하지 못해 저장 이미지와 발권 화면이 다르게 보이는 원인이 되므로 제거합니다. */
/* 불투명도도 0.65 → 0.25로 낮춰서 배경 이미지가 두 화면 모두 선명하게 보이도록 맞춥니다. */
/* 글래스모피즘 반투명 필터 */
/* backdrop-filter: blur는 html2canvas가 렌더링하지 못해 저장 이미지와 발권 화면이 다르게 보이는 원인이 되므로 제거합니다. */
/* 우주 배경이 선명해짐에 따라 발생하는 텍스트 가독성 문제를 완벽히 종식시키기 위해 불투명도를 0.25 -> 0.48로 견고하게 높입니다. */
.ticket-glass-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 5, 11, 0.48);
  /* 텍스트 식별을 위한 균일한 차광 필터 작용 */
}

/* 영롱한 무지갯빛 홀로그램 포일 반사광 효과 */
.ticket-hologram-effect {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(125deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(168, 85, 247, 0.08) 30%,
      rgba(99, 102, 241, 0.08) 45%,
      rgba(251, 191, 36, 0.05) 60%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 200% 200%;
  animation: holoSweep 10s ease infinite alternate;
  pointer-events: none;
}

@keyframes holoSweep {
  0% {
    background-position: 0% 0%;
  }

  100% {
    background-position: 100% 100%;
  }
}

/* 탑승권 내부 콘텐츠는 레이어 위로 배치 */
.ticket-header,
.ticket-boarding-no,
.ticket-body,
.ticket-footer,
.ticket-special-stamp {
  position: relative;
  z-index: 10;
}

/* 탑승권 헤더 */
.ticket-header {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
  /* 외곽선 시인성 강화 */
  padding-bottom: 0.8rem;
}

.ticket-flight-no {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.55);
  /* 더 선명하게 밝힘 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ticket-logo-text {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  /* 조금 더 굵게 */
  letter-spacing: 0.08em;
  color: #ffffff;
  /* 완전히 선명하게 */
  margin-top: 0.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 탑승 번호 */
.ticket-boarding-no {
  margin: 1.2rem 0 0.8rem;
}

.no-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.65);
  /* 가독성 향상 */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.no-value {
  font-family: var(--font-mono);
  font-size: 1.7rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.05em;
  /* 우주 배경 대비 칼같이 분리되는 강력한 글자 섀도와 화려한 글로우 결합 */
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85), 0 0 15px rgba(255, 255, 255, 0.25);
  margin-top: 0.2rem;
}

/* 이스터에그 보라색 왕관 스탬프 */
.ticket-special-stamp {
  position: absolute;
  top: 1.8rem;
  right: 1.4rem;
  border: 1px solid rgba(168, 85, 247, 0.4);
  border-radius: 50%;
  width: 58px;
  height: 58px;
  display: none;
  /* 기본 비활성화 */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
  transform: rotate(12deg);
  animation: stampGlow 3s ease-in-out infinite;
}

.ticket-special-stamp.active {
  display: flex;
}

.stamp-crown {
  font-size: 0.9rem;
  margin-bottom: -1px;
}

.stamp-text {
  font-family: var(--font-mono);
  font-size: 0.35rem;
  font-weight: 600;
  color: #d8b4fe;
  letter-spacing: 0.05em;
}

@keyframes stampGlow {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.3);
  }

  50% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    border-color: rgba(168, 85, 247, 0.6);
  }
}

/* 탑승객 프로필 및 정보 */
.ticket-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 0.5rem 0;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.ticket-col {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.col-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
  /* 더 밝고 또렷하게 보정 */
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.col-value {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  color: #ffffff;
  /* 완전히 하얀색 */
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
  /* 글자 가독성 보장 섀도 */
}

#ticket-passenger {
  font-family: var(--font-serif);
  font-weight: 400;
}

/* 메시지 박스 - 흐릿했던 메시지 영역의 명도와 대비를 극대화 */
.ticket-message-box {
  background: rgba(0, 0, 0, 0.28);
  /* 확실하게 톤을 가라앉혀 차광막 역할 수행 */
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* 테두리로 명도 격리 */
  border-radius: 12px;
  padding: 0.6rem;
  margin-top: 0.3rem;
}

.box-label {
  font-family: var(--font-mono);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
  /* 시인성 확보 */
  display: block;
  margin-bottom: 0.3rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.box-message {
  font-family: var(--font-serif);
  font-size: 0.72rem;
  line-height: 1.6;
  color: #ffffff;
  /* 순수 화이트로 가독성 보장 */
  word-break: break-all;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 탑승권 하단 */
.ticket-footer {
  border-top: 1px dashed rgba(255, 255, 255, 0.18);
  /* 더 또렷한 가이드 라인 */
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.nasa-meta-box {
  flex: 1;
  padding-right: 0.5rem;
}

.nasa-label {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--era-wings);
  letter-spacing: 0.05em;
  display: block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.nasa-desc {
  font-family: var(--font-mono);
  font-size: 0.42rem;
  color: rgba(255, 255, 255, 0.5);
  /* 텍스트 시인성 확보 */
  margin-top: 0.15rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.ticket-barcode {
  display: flex;
  gap: 1.5px;
  height: 24px;
  align-items: stretch;
  opacity: 0.55;
  /* 바코드 선명화 */
}

.barcode-line {
  background: #fff;
}

/* 탑승권 컨트롤 버튼 */
.modal-buttons {
  width: 100%;
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.btn-ticket-save {
  background: #fff;
  color: #05050B;
  border: none;
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  padding: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.btn-ticket-save:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.btn-ticket-close {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  padding: 0.7rem;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.btn-ticket-close:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* ═══════════════════════════════════════════
     [NEW] 컴포넌트 2: 별 클릭 시 메시지 팝업 (Detail Popup)
     - 귀여운 물방울 터지는 글래스모피즘 팝업
     ═══════════════════════════════════════════ */

.star-popup {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 80;
  width: 280px;
  background: rgba(11, 12, 16, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid rgba(192, 132, 252, 0.25);
  border-radius: 20px;
  padding: 1.2rem;
  box-shadow:
    0 15px 45px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(192, 132, 252, 0.1);
  display: none;
  /* 기본 비노출 */
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.star-popup.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* 🌟 물방울 팝업 내 탑승권 열기 버튼 프리미엄 스타일 */
.btn-popup-ticket {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25) 0%, rgba(99, 102, 241, 0.25) 100%);
  border: 1px solid rgba(168, 85, 247, 0.45);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
  letter-spacing: 0.05em;
  transition: all 0.25s ease;
  box-shadow: 0 2px 10px rgba(168, 85, 247, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-popup-ticket:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(99, 102, 241, 0.4) 100%);
  border-color: rgba(168, 85, 247, 0.7);
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.25);
  transform: translateY(-1px);
}

.btn-popup-ticket:active {
  transform: translateY(0) scale(0.95);
}

.btn-popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.btn-popup-close:hover {
  color: #fff;
}

.popup-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  padding-right: 1.2rem;
}

.popup-no {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  color: var(--text-dim);
}

.popup-flag {
  font-size: 0.8rem;
}

.popup-nickname {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 400;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popup-era-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.48rem;
  padding: 0.15rem 0.5rem;
  border-radius: 30px;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

/* Era별 팝업 태그 컬러링 */
.star-popup[data-popup-era="debut"] .popup-era-tag {
  background: rgba(226, 232, 240, 0.12);
  color: var(--era-debut);
  border: 1px solid rgba(226, 232, 240, 0.2);
}

.star-popup[data-popup-era="hyyh"] .popup-era-tag {
  background: rgba(244, 114, 182, 0.12);
  color: var(--era-hyyh);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.star-popup[data-popup-era="wings"] .popup-era-tag {
  background: rgba(192, 132, 252, 0.12);
  color: var(--era-wings);
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.star-popup[data-popup-era="dynamite"] .popup-era-tag {
  background: rgba(251, 191, 36, 0.12);
  color: var(--era-dynamite);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.star-popup[data-popup-era="chapter2"] .popup-era-tag {
  background: rgba(99, 102, 241, 0.12);
  color: var(--era-chapter2);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.star-popup[data-popup-era="festa"] .popup-era-tag {
  background: rgba(6, 182, 212, 0.12);
  color: var(--era-festa);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.star-popup[data-popup-era="reunion"] .popup-era-tag {
  background: rgba(139, 92, 246, 0.12);
  color: var(--era-reunion);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.popup-message {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  word-break: break-all;
}

.popup-date {
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: var(--text-dim);
  display: block;
  text-align: right;
}

/* 🌟 실시간 구글 다국어 번역 버튼 및 로딩 프리미엄 스타일 */
.btn-popup-translate {
  background: rgba(168, 85, 247, 0.06);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: 30px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.btn-popup-translate:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: rgba(168, 85, 247, 0.6);
  color: #fff;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.25);
}

.btn-popup-translate:active {
  transform: scale(0.94);
}

.popup-translation-loading {
  font-size: 0.52rem !important;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  animation: pulseTranslate 1.2s infinite ease-in-out;
}

@keyframes pulseTranslate {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ── 유성우 배경 샤워용 (z-1) ── */
.meteor-shower-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* ── 데스크탑: 좌우 여백은 우주 배경 ── */
@media (min-width: 768px) {
  body {
    background: linear-gradient(170deg, #030308, #0a0918, #05050B);
  }

  .universe {
    border-left: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    box-shadow:
      0 0 80px rgba(99, 102, 241, 0.04),
      0 0 160px rgba(192, 132, 252, 0.02);
  }
}

/* ── 작은 모바일 디바이스 최적의 반응형 보정 ── */
@media (max-height: 720px) {
  .main-title {
    font-size: 1.6rem;
  }

  .opening-copy {
    margin: 1.2rem 0 1.5rem;
    min-height: 4.5rem;
  }

  .opening-copy p {
    font-size: 0.75rem;
  }

  .countdown-item {
    padding: 0.7rem 0.5rem 0.6rem;
    min-width: 54px;
  }

  .countdown-value {
    font-size: 1.3rem;
  }

  .launch-form-card {
    padding: 1.2rem 1rem;
  }

  .form-title {
    font-size: 1.1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-group input[type="text"],
  .form-group select,
  .form-group textarea {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .era-planets-selector {
    padding: 0.4rem;
  }

  .boarding-pass-ticket {
    padding: 1.2rem 1rem;
  }

  .no-value {
    font-size: 1.4rem;
  }

  .box-message {
    min-height: 2.8rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* ── 페이드인 진입 애니메이션 ── */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.3s;
}

.fade-in-delay-2 {
  animation-delay: 0.8s;
}

.fade-in-delay-3 {
  animation-delay: 1.5s;
}

.fade-in-delay-4 {
  animation-delay: 2.2s;
}

.fade-in-delay-5 {
  animation-delay: 2.8s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── iOS 및 모바일 전용 뒤로가기 버튼 (Glassmorphism & Glow) ── */
.btn-back-arrow {
  position: absolute;
  top: 0rem;
  left: 0rem;
  z-index: 50;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.75rem;
  cursor: pointer;
  pointer-events: auto !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back-arrow:hover,
.btn-back-arrow:active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 85, 247, 0.3);
  color: var(--era-wings);
  transform: scale(1.08);
  box-shadow:
    0 0 15px rgba(168, 85, 247, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.3);
}

/* [NEW] 행성 선택 시 active 상태일 때 영롱한 테두리 광채 효과 추가 */
.era-planet.active::before {
  inset: -6px;
  border-color: rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

.era-planet.active {
  transform: scale(1.2) !important;
  opacity: 1 !important;
}

/* [NEW] 카운트다운 화면 탑승 액션 버튼 스타일 */
.coming-soon-action-area {
  width: 100%;
  max-width: 280px;
  margin: 0rem auto 2.2rem;
  display: none;
  /* JS에서 노출 통제 */
  opacity: 0;
  /* 위에서 아래로 스르륵 미끄러지며 내려오는 모션을 위해 시작점을 위쪽(-22px)으로 설정 */
  transform: translateY(-22px);
  /* 쫀득한 바운싱 탄성 효과(cubic-bezier)를 적용해 프리미엄 인터랙션 체감 극대화 */
  transition:
    opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1),
    transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  pointer-events: auto !important;
}

.coming-soon-action-area.show {
  opacity: 1;
  transform: translateY(0);
}

.coming-soon-action-area .btn-launch {
  font-size: 0.85rem;
  padding: 0.8rem;
  border-radius: 12px;
}

/* ── [NEW] 카운트다운 화면 탑승 액션 버튼 밑 설명 캡션 스타일 ── */
.launch-short-desc {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 0.8rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  opacity: 0.8;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  pointer-events: auto !important; /* 부모 레이어 관통 방어 및 명시적 클릭 허용 */
}

.launch-short-desc:hover {
  opacity: 1;
  color: #fff;
}

.launch-short-desc .more-info-link {
  display: block;
  margin-top: 0.4rem;
  color: var(--era-wings);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.3s ease;
  pointer-events: auto !important;
}

.launch-short-desc:hover .more-info-link {
  color: #d8b4fe;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.6);
}

.launch-short-desc .star-icon {
  display: inline-block;
  font-size: 0.72rem;
  animation: starPulse 2.5s infinite ease-in-out;
  margin-right: 2px;
}

@keyframes starPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ── [NEW] 탑승권 실제 우주배경 상세 설명 팝업 카드 스타일 ── */
.info-popup-card {
  position: relative;
  width: 100%;
  background: rgba(12, 10, 24, 0.96); /* 아늑하고 어두운 감성 남보라 */
  border: 1px solid rgba(192, 132, 252, 0.35); /* 아미 보라색 오로라 테두리 */
  border-radius: 20px;
  padding: 1.8rem 1.4rem;
  box-shadow: 
    0 15px 45px rgba(0, 0, 0, 0.8),
    0 0 25px rgba(168, 85, 247, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* 닫기 X 버튼 */
.btn-info-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  opacity: 0.5;
  transition: all 0.2s ease;
  line-height: 1;
  padding: 4px;
}

.btn-info-popup-close:hover {
  opacity: 1;
  color: #fff;
  transform: scale(1.1);
}

.info-popup-header {
  margin-bottom: 1.2rem;
}

.info-popup-header .header-icon {
  font-size: 1.8rem;
  display: inline-block;
  margin-bottom: 0.4rem;
  animation: starPulse 3s infinite ease-in-out;
}

.info-popup-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 10px rgba(192, 132, 252, 0.3);
}

.info-popup-body {
  width: 100%;
  margin-bottom: 1.6rem;
}

.info-popup-body .highlight-text {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: #d8b4fe;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.info-feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.feature-item {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.8rem;
}

.feature-emoji {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.feature-title {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
}

.feature-desc {
  font-size: 0.65rem;
  line-height: 1.5;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
}

/* 확인 액션 버튼 */
.btn-info-popup-action {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.7rem 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-info-popup-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
}

.btn-info-popup-action:active {
  transform: translateY(0) scale(0.98);
}

/* 모바일 뷰포트 높이 대응 반응형 보정 */
@media (max-height: 720px) {
  .info-popup-card {
    padding: 1.2rem 1rem;
  }
  .info-popup-title {
    font-size: 1rem;
  }
  .info-popup-body .highlight-text {
    margin-bottom: 1rem;
    font-size: 0.7rem;
  }
  .info-feature-list {
    gap: 0.8rem;
  }
  .feature-item {
    padding: 0.6rem;
  }
  .feature-emoji {
    font-size: 1rem;
  }
  .feature-title {
    font-size: 0.72rem;
  }
  .feature-desc {
    font-size: 0.6rem;
  }
  .btn-info-popup-action {
    padding: 0.6rem 2rem;
    font-size: 0.8rem;
  }
}

/* [NEW] 탑승권 공유/복사 버튼 그룹 */
.ticket-share-group {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.btn-ticket-share,
.btn-ticket-copy {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  font-family: var(--font-serif);
  font-size: 0.78rem;
  padding: 0.75rem;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-ticket-share:hover,
.btn-ticket-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── [NEW] 탑승권 링크 복사 안내 문구 프리미엄 스타일 ── */
.ticket-link-notice {
  width: 100%;
  text-align: center;
  margin: 0.5rem 0 0.2rem;
  box-sizing: border-box;
}

.notice-text {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45); /* 감성적인 은은한 우주 안개 빛깔 */
  line-height: 1.5;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ── 하단 고정 구글 애드센스 광고 영역 ── */
.ad-bottom-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 10005; /* z-index 상향: 모바일 꾹누르기 오버레이(z-index: 9999) 위로 노출 */
  background: rgba(5, 5, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  pointer-events: auto !important;
}

.ad-bottom-container .adsbygoogle {
  transform: scale(0.58); /* 기본 모바일 430px 너비 기준 스케일 (420 / 728 ≒ 0.58) */
  transform-origin: center center;
  flex-shrink: 0;
}

/* 화면 너비가 430px 미만인 기기에서 동적으로 scale 계산 */
@media (max-width: 430px) {
  .ad-bottom-container .adsbygoogle {
    transform: scale(calc(100vw / 728 * 0.95)); /* 95% 비율로 여유 공간 보정 */
  }
}