/* ================= GLOBAL RESETS ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Pretendard', sans-serif;
  overflow-x: hidden;
  /* 전체 페이지 스크롤바 숨김 (스크롤 기능은 유지) */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge Legacy */
}

/* Chrome / Safari / Opera 스크롤바 완전 숨김 */
body::-webkit-scrollbar {
  display: none;
}

.page-view {
  display: none;
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.page-view.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   [1. PRO VIEW (DARK / HIGH-IMPACT AEROSPACE HUD)]
   ========================================================================== */
body.theme-default {
  background-color: #04060a;
  color: #ffffff;
}

/* Pro GNB */
.pro-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(4, 6, 10, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.pro-header.is-dropdown-open {
  background: rgba(4, 6, 14, 0.98);
  border-bottom-color: rgba(0, 245, 212, 0.3);
}

.header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.pro-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  border: none;
  background: transparent;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.4));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.pro-logo-img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 0 12px rgba(0, 245, 212, 0.7));
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.1;
}

.logo-text-en {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 18px;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.logo-text-ko {
  font-family: 'Pretendard', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: -0.2px;
}

.pro-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pro-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
}

.pro-nav a:hover,
.pro-nav a.active {
  color: #00f5d4;
  background: rgba(0, 245, 212, 0.08);
}

.pro-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #00f5d4;
  transition: width 0.25s ease, left 0.25s ease;
  border-radius: 2px;
}

.pro-nav a:hover::after,
.pro-nav a.active::after {
  width: 60%;
  left: 20%;
}

/* Mega Dropdown Panel */
.mega-menu-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease, visibility 0.28s ease;
  background: rgba(6, 10, 20, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 245, 212, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.pro-header.is-dropdown-open .mega-menu-panel {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
}

.mega-menu-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 32px 28px 32px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
}

.mega-column {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.mega-column.highlighted,
.mega-column:hover {
  background: rgba(0, 245, 212, 0.05);
  border-color: rgba(0, 245, 212, 0.25);
  transform: translateY(-2px);
}

.mega-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #00f5d4;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 245, 212, 0.2);
  letter-spacing: 0.5px;
}

.mega-column.highlighted .mega-col-title {
  color: #ffffff;
  border-bottom-color: #00f5d4;
  text-shadow: 0 0 8px rgba(0, 245, 212, 0.5);
}

.mega-sub-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-sub-list a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mega-sub-list a:hover {
  color: #00f5d4;
  transform: translateX(4px);
}

.header-util {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mode-pill {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mode-pill span {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
}

.mode-pill span.active {
  background: #00f5d4;
  color: #000;
  font-weight: 700;
}

.mode-pill span.clickable {
  color: #94a3b8;
}

.hamburger {
  font-size: 20px;
  color: #cbd5e1;
  cursor: pointer;
}

/* Pro Hero Section */
.pro-hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: stretch !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden;
  background: #04060a;
}

.hero-container-inner {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.15) brightness(1.05) saturate(1.05);
}

.hero-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform-origin: center center;
  will-change: transform;
  transform: scale(1);
  pointer-events: none;
  filter: contrast(1.15) brightness(1.08) saturate(1.05);
  /* 비디오의 대비(1.15)와 선명도를 높이고 탁한 느낌 개선 */
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  /* 화면 중앙/우측은 선명히 노출하고 외곽/상하단으로 갈수록 자연스럽게 어두워지는 시네마틱 방사형 + 선형 하이브리드 그라디언트 */
  background:
    radial-gradient(circle at 65% 50%, transparent 20%, rgba(4, 6, 10, 0.4) 65%, #04060a 95%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.3) 0%, transparent 20%, transparent 80%, #04060a 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative !important;
  z-index: 2;
  left: 0 !important;
  margin-left: 0 !important;
  transform: none !important;
  /* 인위적인 왼쪽 밀어내기 축소하여 수직 여백 정렬 보존 */
  max-width: 460px !important;
  /* 우측 로켓 기체와 절대 겹치지 않도록 제한 */
  background: transparent;
  /* 무거운 불투명 회색 배경 박스 제거 */
  backdrop-filter: none;
  padding: 20px 0;
  border: none;
  box-shadow: none;
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.15);
  /* 어두운 배경 대비 가독성 극대화를 위한 입체감 드롭 섀도우 */
}

.hero-subtitle {
  font-size: 24px;
  color: #38bdf8;
  margin-bottom: 16px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(56, 189, 248, 0.35);
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 28px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95);
}

.pro-cta-btn {
  position: relative;
  z-index: 10;
  background: rgba(0, 242, 254, 0.08);
  /* 반투명 네온 사이언 글래스 */
  color: #00f2fe;
  border: 1px solid rgba(0, 242, 254, 0.45);
  padding: 14px 32px;
  border-radius: 30px;
  /* 캡슐 스타일 */
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.pro-cta-btn:hover {
  transform: translateY(-2px);
  background: rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.85);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.65), 0 4px 15px rgba(0, 242, 254, 0.2);
}

.scroll-down-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: #00f2fe;
  letter-spacing: 0.15em;
  z-index: 5;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  animation: heroScrollIndicator 2s infinite ease-in-out;
  pointer-events: none;
}

@keyframes heroScrollIndicator {

  0%,
  100% {
    transform: translate(-50%, 0);
    opacity: 0.35;
  }

  50% {
    transform: translate(-50%, -8px);
    opacity: 0.95;
  }
}

/* Official KARI Quick Portal Bar */
.quick-icon-section {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  margin: -48px auto 0 auto;
  padding: 0 32px;
}

.quick-icon-container {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  background: rgba(8, 12, 22, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 245, 212, 0.25);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.quick-card:hover {
  background: rgba(0, 245, 212, 0.08);
  border-color: rgba(0, 245, 212, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 245, 212, 0.18);
}

.quick-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 245, 212, 0.1);
  border: 1px solid rgba(0, 245, 212, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.quick-card:hover .quick-icon-box {
  background: #00f5d4;
  color: #000000;
  transform: scale(1.08);
  box-shadow: 0 0 12px rgba(0, 245, 212, 0.6);
}

.quick-card-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-card-text strong {
  font-size: 13px;
  color: #ffffff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.quick-card:hover .quick-card-text strong {
  color: #00f5d4;
}

.quick-card-text span {
  font-size: 10px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

.quick-arrow {
  margin-left: auto;
  font-size: 12px;
  color: #475569;
  transition: color 0.2s ease, transform 0.2s ease;
}

.quick-card:hover .quick-arrow {
  color: #00f5d4;
  transform: translate(2px, -2px);
}

/* Bento Grid */
.pro-main-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 32px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.sec-title {
  font-family: 'JetBrains Mono', monospace;
  color: #00f5d4;
  font-size: 18px;
  font-weight: 700;
}

.sec-code {
  font-family: 'JetBrains Mono', monospace;
  color: #475569;
  font-size: 12px;
}

/* Bento Section - overflow guard + 내부 스크롤바 완전 제거 */
#researchSection {
  overflow-x: hidden !important;
  overflow-y: visible !important; /* 세로 스크롤바 완전 차단 */
  height: auto !important;        /* 고정 높이 해제 */
  min-height: auto !important;
  max-height: none !important;
  scrollbar-width: none !important;       /* Firefox */
  -ms-overflow-style: none !important;   /* IE / Edge */
}

/* Chrome / Safari — #researchSection 내부 스크롤바 숨김 */
#researchSection::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* GSAP ScrollTrigger가 주입하는 pin 래퍼 div도 동일하게 처리 */
/* bento-grid / main-card 에만 overflow visible (스크롤바 방지) */
.pro-main-container,
.bento-grid,
.bento-main-card {
  overflow: visible !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* 서브 카드는 내부 이미지 클리핑을 위해 overflow: hidden 유지 */
.bento-sub-card {
  overflow: hidden !important;
}

.pro-main-container::-webkit-scrollbar,
.bento-grid::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* GSAP ScrollTrigger가 자동 생성하는 pin-spacer 컨테이너 스크롤바 차단 */
[class*="pin-spacer"],
.gsap-marker-end,
.gsap-marker-start {
  overflow: visible !important;
  scrollbar-width: none !important;
}

[class*="pin-spacer"]::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
}

/* GPU 가속 힌트 — GSAP 슬라이드 애니메이션 최적화 */
.bento-main-card,
.bento-sub-card {
  will-change: transform, opacity;
}

.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-gap: 20px;
}

.bento-card {
  position: relative;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s, transform 0.3s;
}

.bento-card:hover {
  border-color: rgba(0, 245, 212, 0.4);
  transform: translateY(-2px);
}

.bento-card.bento-hero {
  grid-row: span 2;
  background: radial-gradient(circle at 50% 30%, #0d1e3d 0%, #080c16 80%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-badge-group {
  display: flex;
  gap: 8px;
}

.badge-cyan {
  background: #00f5d4;
  color: #000;
  font-size: 11px;
  font-weight: 900;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-radar {
  background: rgba(255, 87, 34, 0.2);
  color: #ff5722;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.bento-hero-visual {
  height: 240px;
  margin: 16px 0;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  background: #080c16;
}

.bento-hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sub-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b;
  font-weight: 700;
}

.cyan-text {
  color: #00f5d4;
}

.sky-text {
  color: #38bdf8;
}

.orange-text {
  color: #ff7675;
}

.blue-text {
  color: #818cf8;
}

.bento-card h3 {
  font-size: 26px;
  margin: 8px 0;
}

.bento-card h4 {
  font-size: 18px;
  margin: 8px 0 6px 0;
}

.bento-card p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.6;
}

.corner-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 16px;
  color: #475569;
}

/* Official KARI R&D Showcase Carousel Section */
.kari-showcase-section {
  position: relative;
  width: 100%;
  height: 540px;
  border-radius: 20px;
  overflow: hidden;
  margin: 48px 0;
  border: 1px solid rgba(0, 245, 212, 0.2);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  background: radial-gradient(circle at 35% 65%, #051937 0%, #020a1a 55%, #010309 100%);
}

.showcase-bg-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* 1. Cinematic Background Video Layer */
.cinematic-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  z-index: 2;
}

.kari-showcase-section.mode-3d .cinematic-video {
  opacity: 1;
  visibility: visible;
}

/* Deep Navy (#04060A) Vignetting Overlay */
.cinematic-vignette-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  background: radial-gradient(circle at 65% 45%, transparent 30%, rgba(4, 6, 10, 0.65) 70%, #04060a 100%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.4) 0%, rgba(4, 6, 10, 0.85) 100%);
  pointer-events: none;
}

.kari-showcase-section.mode-3d .cinematic-vignette-overlay {
  opacity: 1;
  visibility: visible;
}

/* 2. SVG Neon Orbit Paths & HUD Overlay */
.hud-svg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.kari-showcase-section.mode-3d .hud-svg-overlay {
  opacity: 1;
  visibility: visible;
}

.orbit-path {
  fill: none;
  stroke: #00f5d4;
  stroke-width: 1.5;
  opacity: 0.4;
  filter: drop-shadow(0 0 6px rgba(0, 245, 212, 0.6));
}

.orbit-path.secondary-orbit {
  stroke: #38bdf8;
  opacity: 0.25;
  stroke-dasharray: 6 4;
}

.dashed-signal-line {
  stroke: #00f5d4;
  stroke-width: 1.5;
  stroke-dasharray: 6 6;
  opacity: 0.8;
  animation: dashMove 1.5s linear infinite;
  filter: drop-shadow(0 0 8px rgba(0, 245, 212, 0.8));
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -24;
  }
}

/* Satellite Target Node ([KPS-SAT-01]) & Ping Ring */
.satellite-target-node {
  position: absolute;
  top: 40%;
  left: 62%;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.kari-showcase-section.mode-3d .satellite-target-node {
  opacity: 1;
  visibility: visible;
}

.ping-dot {
  width: 10px;
  height: 10px;
  background: #00f5d4;
  border-radius: 50%;
  box-shadow: 0 0 12px #00f5d4;
}

.ping-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 32px;
  height: 32px;
  border: 2px solid #00f5d4;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: pingExpand 2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

@keyframes pingExpand {
  0% {
    width: 10px;
    height: 10px;
    opacity: 1;
  }

  100% {
    width: 48px;
    height: 48px;
    opacity: 0;
  }
}

.sat-tech-badge {
  position: absolute;
  top: -36px;
  left: 18px;
  background: rgba(4, 8, 20, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 245, 212, 0.4);
  padding: 4px 10px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.sat-code {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: #00f5d4;
  font-size: 12px;
  letter-spacing: 1px;
}

.sat-coords {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #94a3b8;
}

/* Ground Station Node (Korea GS-01) */
.ground-station-node {
  position: absolute;
  top: 63%;
  left: 28%;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.kari-showcase-section.mode-3d .ground-station-node {
  opacity: 1;
  visibility: visible;
}

.gs-ping-dot {
  width: 8px;
  height: 8px;
  background: #ffb703;
  border-radius: 50%;
  box-shadow: 0 0 10px #ffb703;
}

.gs-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: #ffb703;
  font-weight: 700;
  background: rgba(4, 8, 20, 0.7);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(255, 183, 3, 0.3);
}

.showcase-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 1s ease;
  transform: scale(1.04);
}

.showcase-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.slide-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slide-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 6, 10, 0.85) 0%, rgba(4, 6, 10, 0.35) 50%, rgba(4, 6, 10, 0.75) 100%),
    linear-gradient(180deg, rgba(4, 6, 10, 0.2) 0%, rgba(4, 6, 10, 0.9) 100%);
}

.showcase-content-wrapper {
  position: absolute;
  inset: 0;
  z-index: 5;
  padding: 36px 8%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}

/* 3. Neon Capsule Controls (< 5/6 ▶ >) */
.neon-capsule-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(4, 8, 20, 0.8);
  backdrop-filter: blur(20px);
  padding: 8px 24px;
  border-radius: 30px;
  border: 1px solid rgba(0, 245, 212, 0.3);
  font-family: 'JetBrains Mono', monospace;
  color: #cbd5e1;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 12px rgba(0, 245, 212, 0.15);
}

.showcase-ctrl-btn {
  background: transparent;
  border: none;
  color: #cbd5e1;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.showcase-ctrl-btn:hover {
  color: #00f5d4;
  transform: scale(1.18);
}

.showcase-counter {
  font-size: 13px;
  color: #94a3b8;
  letter-spacing: 2px;
}

.showcase-counter strong {
  color: #00f5d4;
  font-size: 16px;
}

.play-pause-btn {
  font-size: 12px;
  font-weight: 700;
}

/* 3. HUD Info Card Box with Corner Brackets (8% right, 12% bottom) */
.hud-info-card {
  pointer-events: auto;
  position: absolute;
  right: 8%;
  bottom: 12%;
  max-width: 540px;
  background: rgba(4, 8, 20, 0.8);
  backdrop-filter: blur(20px);
  padding: 28px 34px;
  border-radius: 8px;
  border: 1px solid rgba(0, 245, 212, 0.2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* HUD Bracket Corners */
.corner-bracket {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid #38bdf8;
}

.corner-bracket.top-left {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.corner-bracket.top-right {
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

.corner-bracket.bottom-left {
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}

.corner-bracket.bottom-right {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.hud-card-content {
  transition: opacity 0.25s ease;
}

.hud-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.hud-ko {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.hud-en {
  font-size: 16px;
  font-weight: 600;
  color: #38bdf8;
  font-family: 'Outfit', sans-serif;
}

.hud-desc {
  font-size: 14px;
  line-height: 1.8;
  color: #cbd5e1;
  font-weight: 400;
  word-break: keep-all;
}

/* Split Section (News & Videos) */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 32px;
}

.news-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.news-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  background: rgba(16, 21, 36, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.tab-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  color: #00f2fe;
  border-color: rgba(0, 242, 254, 0.35);
}

.tab-btn.active {
  background: #00f2fe !important;
  color: #03060f !important;
  font-weight: 800 !important;
  border-color: #00f2fe !important;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5) !important;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
  transition: opacity 0.2s ease-in-out;
}

.news-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.2s ease, padding 0.2s ease;
  cursor: pointer;
}

.news-list li:hover {
  background: rgba(0, 242, 254, 0.05);
  padding-left: 14px;
}

.news-text {
  color: #e2e8f0;
  width: 75%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.news-list li:hover .news-text {
  color: #00f2fe;
}

.news-date {
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
}

.video-card {
  background: #0b0f19;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.video-thumb {
  height: 120px;
  border-radius: 6px;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.thumb-launch {
  background: url('https://images.unsplash.com/photo-1516849841032-87cbac4d88f7?auto=format&fit=crop&w=400&q=80') center/cover;
}

.thumb-control {
  background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=400&q=80') center/cover;
}

.play-btn {
  width: 36px;
  height: 36px;
  background: rgba(0, 245, 212, 0.9);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.video-card h4 {
  font-size: 13px;
  line-height: 1.5;
  color: #fff;
  height: 40px;
  overflow: hidden;
  margin-bottom: 8px;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #64748b;
  font-family: 'JetBrains Mono', monospace;
}

/* Public Service Hub */
.public-service-hub {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  margin: 48px 0;
  background: rgba(11, 15, 25, 0.6);
  border: 1px solid rgba(0, 245, 212, 0.2);
  border-radius: 12px;
  padding: 24px;
}

.hub-card {
  position: relative;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hub-card:last-child {
  border-right: none;
}

.hub-card h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 6px;
}

.hub-card p {
  font-size: 12px;
  color: #64748b;
}

.hub-arrow {
  position: absolute;
  right: 16px;
  top: 16px;
  color: #00f5d4;
}

/* Ministry Banner Bar Container (Infinite Marquee Ticker) */
.banner-collection-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 24px;
  background: #101524;
  border-radius: 12px;
  margin-bottom: 48px;
  overflow: hidden;
  user-select: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.banner-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-ctrl {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ctrl:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: rgba(0, 242, 254, 0.4);
  color: #ffffff;
}

.banner-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

/* Marquee Viewport with Soft Fade Masks */
.banner-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.banner-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: bannerMarquee 35s linear infinite;
  will-change: transform;
}

.banner-track:hover {
  animation-play-state: paused;
}

.banner-track.is-paused {
  animation-play-state: paused !important;
}

.banner-item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease;
}

.banner-item:hover {
  color: #00f2fe;
}

/* Government Emblem Image (Circular) */
.b-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.banner-item:hover .b-logo-img {
  transform: scale(1.08);
}

@keyframes bannerMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Pro Footer */
.pro-footer {
  background: #030408;
  border-top: 1px solid rgba(0, 245, 212, 0.3);
  padding: 48px 32px 32px 32px;
  font-size: 13px;
}

.footer-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 24px;
}

.f-policy a {
  color: #94a3b8;
  text-decoration: none;
  margin-right: 18px;
}

.f-policy a.bold-white {
  color: #ffffff;
  font-weight: 700;
}

.family-select {
  background: #0b0f19;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 6px 12px;
  border-radius: 4px;
}

.footer-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  padding: 28px 0;
  color: #64748b;
  line-height: 1.6;
}

.footer-info-grid strong {
  color: #cbd5e1;
  display: block;
  margin-bottom: 6px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 20px;
  color: #475569;
}

.footer-cert-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wa-cert-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-cert-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 242, 254, 0.35);
}

.wa-cert-img {
  height: 48px;
  width: auto;
  opacity: 0.92;
  transition: opacity 0.2s ease;
  border-radius: 8px;
  display: block;
}

.wa-cert-img:hover {
  opacity: 1;
}

/* ==========================================================================
   [2. KIDS VIEW (POP / CARTOON / STITCH DASHED LOOK)]
   ========================================================================== */
body.theme-kids {
  background-color: #4da8da;
  color: #2d3436;
}

.kids-header {
  position: relative;
  z-index: 1000;
  background: #ffffff;
  padding: 14px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #dfe6e9;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kids-logo-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kids-logo-title {
  font-size: 22px;
  color: #0984e3;
  font-weight: 900;
}

.kids-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.kids-nav-item {
  position: relative;
  padding: 6px 0;
}

.kids-nav-item>a {
  text-decoration: none;
  color: #2d3436;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.arrow-icon {
  font-size: 9px;
  color: #b2bec3;
  transition: transform 0.25s ease, color 0.25s ease;
}

.kids-nav-item>a.active,
.kids-nav-item:hover>a {
  color: #0984e3;
  background: #e1f5fe;
}

.kids-nav-item:hover>a .arrow-icon {
  transform: rotate(180deg);
  color: #0984e3;
}

/* Kids Pop Dropdown Menu Card */
.kids-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px) scale(0.92);
  opacity: 0;
  visibility: hidden;
  min-width: 190px;
  background: #ffffff;
  border: 3px solid #74b9ff;
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 12px 28px rgba(9, 132, 227, 0.2), 0 4px 0 #74b9ff;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Cute arrow triangle top of dropdown */
.kids-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 10px solid #74b9ff;
}

.kids-dropdown::after {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #ffffff;
}

.kids-nav-item:hover .kids-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(6px) scale(1);
}

.kids-dropdown a {
  text-decoration: none;
  color: #2d3436;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.kids-dropdown a:hover {
  background: #ffeaa7;
  color: #d63031;
  transform: translateX(4px) scale(1.02);
}

.k-drop-icon {
  font-size: 15px;
}

.kids-swap-btn {
  background: #ff7675;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 0 #d63031;
}

/* Kids Hero (Blue Sky) */
.kids-hero {
  padding: 40px 48px;
  text-align: center;
}

.kids-hero-box {
  background: #4da8da;
  padding: 20px;
}

.kids-title {
  font-size: 42px;
  color: #ffffff;
  font-weight: 900;
  text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
  margin-bottom: 8px;
}

.kids-subtitle {
  font-size: 16px;
  color: #eaf2f8;
  margin-bottom: 28px;
  font-weight: 700;
}

.kids-illustration-frame {
  max-width: 600px;
  height: 280px;
  margin: 0 auto;
  background: #ffffff;
  border: 4px solid #2d3436;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.cartoon-rocket-art {
  position: absolute;
  bottom: 18px;
  /* Rest on top of the pad-base */
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  transition: transform 1.0s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  z-index: 5;
}

/* 1. Countdown Shake Vibration Animation */
.cartoon-rocket-art.shaking {
  transform: translateX(-50%) rotate(-45deg);
  animation: rocketShake 0.08s infinite ease-in-out;
}

@keyframes rocketShake {
  0% {
    transform: translateX(-50%) rotate(-45deg) translate(0, 0);
  }

  25% {
    transform: translateX(-50%) rotate(-47deg) translate(-2px, 2px);
  }

  50% {
    transform: translateX(-50%) rotate(-43deg) translate(2px, -2px);
  }

  75% {
    transform: translateX(-50%) rotate(-46deg) translate(-1px, -2px);
  }

  100% {
    transform: translateX(-50%) rotate(-44deg) translate(2px, 2px);
  }
}

/* Flame & Smoke Particles Burst */
.rocket-flame-burst {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cartoon-rocket-art.launching .rocket-flame-burst,
.cartoon-rocket-art.shaking .rocket-flame-burst {
  opacity: 1;
}

.flame-p {
  font-size: 26px;
  animation: flameBurst 0.4s infinite alternate ease-in-out;
}

.flame-p.p-1 {
  animation-delay: 0s;
}

.flame-p.p-2 {
  animation-delay: 0.08s;
}

.flame-p.p-3 {
  animation-delay: 0.15s;
}

.flame-p.p-4 {
  animation-delay: 0.1s;
}

.flame-p.p-5 {
  animation-delay: 0.2s;
}

@keyframes flameBurst {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.8;
  }

  100% {
    transform: translateY(22px) scale(1.4);
    opacity: 1;
  }
}

/* 2. Fly Off Screen Animation (Straight Up) */
.kids-illustration-frame.launching {
  overflow: visible !important;
  z-index: 50 !important;
}

.cartoon-rocket-art.launching {
  z-index: 100 !important;
}

/* Launch Pad Styling (발사대) */
.launch-pad {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

.pad-base {
  width: 130px;
  height: 18px;
  background: #7f8c8d;
  border: 3px solid #2d3436;
  border-radius: 6px 6px 0 0;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25);
  z-index: 3;
}

.pad-tower {
  position: absolute;
  bottom: 18px;
  left: 32px;
  width: 26px;
  height: 95px;
  background: #e74c3c;
  border: 3px solid #2d3436;
  border-bottom: none;
  z-index: 2;
}

.pad-tower-truss {
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(-45deg,
      transparent,
      transparent 8px,
      #2d3436 8px,
      #2d3436 11px), repeating-linear-gradient(45deg,
      transparent,
      transparent 8px,
      #2d3436 8px,
      #2d3436 11px);
  opacity: 0.25;
}

.pad-arm {
  position: absolute;
  top: 25px;
  left: 20px;
  width: 32px;
  height: 8px;
  background: #2d3436;
  border-radius: 4px;
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}

/* Swing arm away when launching */
.kids-illustration-frame.launching .pad-arm {
  transform: rotate(-90deg);
}

.main-rocket {
  font-size: 90px;
  display: inline-block;
}

.sparkle,
.cloud {
  transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.8s ease;
}

/* Parallax Shift (Downward) */
.kids-illustration-frame.launching .sparkle,
.kids-illustration-frame.launching .cloud {
  transform: translateY(220px) scale(0.6);
  opacity: 0.15;
}

.sparkle {
  position: absolute;
  font-size: 32px;
}

.sp-1 {
  top: 20px;
  left: 30px;
}

.sp-2 {
  bottom: 30px;
  right: 40px;
}

.cloud {
  position: absolute;
  font-size: 40px;
  opacity: 0.8;
}

.cl-1 {
  bottom: 10px;
  left: 40px;
}

.cl-2 {
  top: 20px;
  right: 60px;
}

.kids-launch-btn {
  background: #ff7675;
  color: #ffffff;
  border: none;
  font-size: 22px;
  font-weight: 900;
  padding: 16px 48px;
  border-radius: 36px;
  margin-top: 28px;
  cursor: pointer;
  box-shadow: 0 8px 0 #d63031;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease, background 0.2s ease;
}

.kids-launch-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 11px 0 #d63031;
}

/* 1. Button Click Bounce Effect */
.kids-launch-btn:active,
.kids-launch-btn.clicked {
  transform: scale(0.92) translateY(5px) !important;
  box-shadow: 0 3px 0 #d63031 !important;
}

.kids-launch-btn:active {
  transform: translateY(4px);
  box-shadow: 0 4px 0 #d63031;
}

/* Kids Main Container with White Panels */
.kids-main-container {
  max-width: 1200px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 60px;
}

.kids-section-box {
  border: 2px dashed #74b9ff;
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 36px;
}

.kids-sec-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.kids-sec-header h3 {
  font-size: 22px;
  font-weight: 900;
  color: #2d3436;
}

.kids-badge {
  font-size: 24px;
}

/* Stories Grid */
.kids-story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
}

.story-card {
  background: #ffffff;
  border: 3px solid #6c5ce7;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 6px 0 #6c5ce7;
}

.story-thumb {
  height: 120px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 12px;
  overflow: hidden;
}

.story-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.story-card:hover .story-img {
  transform: scale(1.08);
}

.bg-sky {
  background: #e0f2fe;
}

.bg-navy {
  background: #0f172a;
}

.bg-purple {
  background: #f3e8ff;
}

.tag-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.tag-pink {
  background: #ffeaa7;
  color: #d63031;
}

.tag-orange {
  background: #fab1a0;
  color: #d63031;
}

.tag-yellow {
  background: #ffeaa7;
  color: #b7791f;
}

.story-card h4 {
  font-size: 17px;
  margin: 10px 0 6px 0;
}

.story-card p {
  font-size: 13px;
  color: #636e72;
  line-height: 1.5;
}

/* 3D Rocket Builder Interactive Assembly Stage */
.rocket-builder-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 28px;
  background: #f8fafc;
  border-radius: 24px;
  padding: 28px;
  border: 2px dashed #a0aec0;
  align-items: center;
}

.builder-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.builder-instruction {
  font-size: 15px;
  font-weight: 800;
  color: #2d3436;
}

.build-progress-badge {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: 13px;
  color: #d63031;
  background: #ffeaa7;
  padding: 4px 14px;
  border-radius: 20px;
  border: 2px solid #fdcb6e;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.parts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
  margin-bottom: 18px;
}

.part-pick-btn {
  border: none;
  padding: 16px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, filter 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.blue-pick {
  background: #0984e3;
  box-shadow: 0 6px 0 #0652dd;
}

.coral-pick {
  background: #ff7675;
  box-shadow: 0 6px 0 #d63031;
}

.teal-pick {
  background: #00cec9;
  box-shadow: 0 6px 0 #00b894;
}

.sky-pick {
  background: #74b9ff;
  box-shadow: 0 6px 0 #0984e3;
}

.part-pick-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.06);
}

.part-pick-btn:active {
  transform: translateY(3px) scale(0.96);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.part-pick-btn.installed {
  background: #b2bec3 !important;
  box-shadow: 0 4px 0 #636e72 !important;
  cursor: default;
  transform: none !important;
  opacity: 0.8;
}

.build-done-btn {
  width: 100%;
  background: #a0aec0;
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 20px;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 0 #718096;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.build-done-btn.ready {
  background: linear-gradient(135deg, #fdcb6e 0%, #e17055 100%);
  box-shadow: 0 8px 0 #d63031, 0 0 20px rgba(253, 203, 110, 0.6);
  animation: pulseDoneBtn 1s infinite alternate ease-in-out;
}

@keyframes pulseDoneBtn {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.03);
  }
}

.builder-preview-stage {
  position: relative;
  background: #ffffff;
  border: 3px dashed #74b9ff;
  border-radius: 24px;
  padding: 24px 16px;
  min-height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.04);
  /* CRITICAL: NO overflow: hidden so rocket can fly visually into the page! */
}

.assembled-rocket-tower {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
  width: 100%;
  max-width: 240px;
  position: relative;
  transition: transform 1.0s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.8s ease;
  z-index: 10;
}

.parts-slots-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  align-items: center;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.parts-slots-wrapper.hidden-fused {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  display: none !important;
}

/* Transformed Super Master Rocket Graphic */
.super-master-rocket {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 10px;
}

.super-master-rocket.transformed {
  display: flex !important;
  animation: superRocketPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes superRocketPop {
  0% {
    transform: scale(0.2) rotate(-15deg);
    opacity: 0;
  }

  70% {
    transform: scale(1.25) rotate(5deg);
    opacity: 1;
  }

  100% {
    transform: scale(1.1) rotate(0deg);
    opacity: 1;
  }
}

.master-rocket-icon {
  font-size: 110px;
  line-height: 1;
  filter: drop-shadow(0 12px 24px rgba(9, 132, 227, 0.45));
  animation: masterRocketHover 1.5s infinite alternate ease-in-out;
}

@keyframes masterRocketHover {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-8px);
  }
}

.master-rocket-label {
  font-size: 14px;
  font-weight: 900;
  color: #0984e3;
  background: #ffeaa7;
  padding: 4px 16px;
  border-radius: 20px;
  border: 2px solid #fdcb6e;
  margin-top: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.master-thruster-flames {
  display: flex;
  gap: 4px;
  font-size: 28px;
  margin-top: 4px;
}

.m-flame {
  animation: masterFlame 0.3s infinite alternate ease-in-out;
}

.m-flame:nth-child(1) {
  animation-delay: 0s;
}

.m-flame:nth-child(2) {
  animation-delay: 0.1s;
}

.m-flame:nth-child(3) {
  animation-delay: 0.15s;
}

@keyframes masterFlame {
  0% {
    transform: translateY(0) scale(0.8);
    opacity: 0.7;
  }

  100% {
    transform: translateY(14px) scale(1.3);
    opacity: 1;
  }
}

/* POW! Explosion Burst Overlay */
.pow-explosion-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pow-explosion-overlay.pow-burst {
  animation: powBurstAnim 0.7s ease-out forwards;
}

@keyframes powBurstAnim {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(-20deg);
    opacity: 1;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.6) rotate(10deg);
    opacity: 1;
  }

  80% {
    transform: translate(-50%, -50%) scale(1.8) rotate(0deg);
    opacity: 0.8;
  }

  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

.pow-text {
  font-size: 48px;
  font-weight: 900;
  color: #ff7675;
  text-shadow: 0 0 20px #ffeaa7, 0 4px 0 #d63031;
  white-space: nowrap;
}

.pow-star {
  position: absolute;
  font-size: 32px;
}

.ps-1 {
  top: -30px;
  left: -30px;
}

.ps-2 {
  top: -20px;
  right: -30px;
}

.ps-3 {
  bottom: -30px;
  left: -20px;
}

.ps-4 {
  bottom: -20px;
  right: -20px;
}

/* Part Blocks Styling */
.rocket-part-block {
  width: 220px;
  height: 52px;
  border: 2px dashed #cbd5e1;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rocket-part-block.empty .visual-nose-cone,
.rocket-part-block.empty .visual-payload-body,
.rocket-part-block.empty .visual-tank-body,
.rocket-part-block.empty .visual-booster-body {
  display: none;
}

.rocket-part-block.empty .part-label-text {
  font-size: 13px;
  font-weight: 700;
  color: #a0aec0;
}

.rocket-part-block.installed {
  border: 2.5px solid #00cec9;
  background: #e6fffa;
  box-shadow: 0 6px 16px rgba(0, 206, 201, 0.25);
  animation: partSnapIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.rocket-part-block.installed .part-label-text {
  display: none;
}

.visual-nose-cone {
  font-size: 32px;
}

.visual-payload-body {
  font-size: 24px;
  font-weight: 900;
  color: #00cec9;
}

.visual-tank-body {
  font-size: 18px;
  font-weight: 900;
  color: #ff7675;
  background: #ffeaa7;
  padding: 4px 16px;
  border-radius: 10px;
}

.visual-booster-body {
  font-size: 16px;
  font-weight: 900;
  color: #0984e3;
}

/* Shaking Countdown Vibration */
.assembled-rocket-tower.shaking-launch {
  animation: towerShake 0.08s infinite ease-in-out;
}

@keyframes towerShake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(-4px, 3px) rotate(-2deg);
  }

  50% {
    transform: translate(4px, -3px) rotate(2deg);
  }

  75% {
    transform: translate(-3px, -4px) rotate(-1deg);
  }

  100% {
    transform: translate(3px, 3px) rotate(1deg);
  }
}

/* Upward Rocket Launch Flight Animation */
.assembled-rocket-tower.blasting-off {
  transform: translateY(-220px) scale(1.1) !important;
}

/* Engine Flame Burst */
.tower-engine-flame {
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.assembled-rocket-tower.shaking-launch .tower-engine-flame,
.assembled-rocket-tower.blasting-off .tower-engine-flame {
  opacity: 1;
}

.flame-particle {
  font-size: 32px;
  animation: engineFlameBurst 0.35s infinite alternate ease-in-out;
}

.flame-particle.fp-1 {
  animation-delay: 0s;
}

.flame-particle.fp-2 {
  animation-delay: 0.08s;
}

.flame-particle.fp-3 {
  animation-delay: 0.15s;
}

.flame-particle.fp-4 {
  animation-delay: 0.1s;
}

/* Celebration In-Page Toast Banner */
.launch-toast-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  border: 3px solid #00cec9;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: 0 16px 36px rgba(0, 206, 201, 0.3);
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 20;
  width: 90%;
  max-width: 380px;
}

.launch-toast-banner.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.toast-icon {
  font-size: 36px;
}

.toast-info h4 {
  font-size: 17px;
  font-weight: 900;
  color: #2d3436;
  margin-bottom: 4px;
}

.toast-info p {
  font-size: 13px;
  color: #0984e3;
  font-weight: 700;
}

.rocket-slot.installed .slot-hint {
  display: none;
}

.part-graphic {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  color: #2d3436;
}

.part-emoji {
  font-size: 26px;
}

@keyframes partSnapIn {
  0% {
    transform: scale(0.3) translateY(-30px);
    opacity: 0;
  }

  70% {
    transform: scale(1.15) translateY(4px);
  }

  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* Full Rocket Assembly Completion Effect */
.builder-preview-stage.full-assembled .assembled-rocket-tower {
  animation: rocketTowerFloat 2s infinite alternate ease-in-out;
}

@keyframes rocketTowerFloat {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-10px);
  }
}

.stage-status-text {
  font-size: 14px;
  font-weight: 800;
  color: #0984e3;
  margin-top: 6px;
}

/* Badges System */
.badge-system-card {
  background: #f8fafc;
  border-radius: 16px;
  padding: 24px;
  border: 2px solid #e2e8f0;
}

.progress-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.p-label {
  font-size: 13px;
  font-weight: 800;
  width: 100px;
}

.progress-track {
  flex: 1;
  height: 16px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #ff7675;
  border-radius: 10px;
}

.avatar-badge {
  font-size: 28px;
}

.badges-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
}

.badge-item {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  border: 2px solid #e2e8f0;
}

.badge-item.active-badge {
  border-color: #ffeaa7;
  background: #fffdf5;
  font-weight: 800;
}

.badge-item.locked-badge {
  opacity: 0.5;
}

.badge-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 6px;
}

.badge-item span {
  font-size: 12px;
}

/* Career Quiz Cards */
.career-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
}

.career-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 16px;
  border: 2px solid #6c5ce7;
}

.career-card.full-span {
  grid-column: span 2;
}

.card-blue-soft {
  background: #f0f7ff;
}

.card-pink-soft {
  background: #fff0f0;
}

.card-purple-soft {
  background: #faf5ff;
}

.c-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.bg-blue {
  background: #74b9ff;
}

.bg-coral {
  background: #ff7675;
}

.bg-yellow {
  background: #ffeaa7;
}

.c-text h4 {
  font-size: 16px;
  margin-bottom: 4px;
}

.c-text p {
  font-size: 12px;
  color: #636e72;
}

/* Kids Footer */
.kids-footer {
  background: #1e1b4b;
  color: #a5b4fc;
  padding: 36px 48px;
  text-align: center;
}

.kids-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.kf-logo {
  font-size: 20px;
  color: #ffffff;
  font-weight: 900;
}

.kf-links {
  margin: 16px 0;
}

.kf-links a {
  color: #cbd5e1;
  text-decoration: none;
  margin: 0 14px;
  font-size: 13px;
  font-weight: 700;
}

.kf-copy {
  font-size: 12px;
  color: #64748b;
}

/* ==========================================================================
   [3. HYPERSPACE WARP TRANSITION OVERLAY]
   ========================================================================== */

.warp-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 245, 212, 0) 0%, rgba(9, 132, 227, 0) 100%);
  backdrop-filter: blur(0px) brightness(1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, backdrop-filter 0.25s ease, background 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: opacity, backdrop-filter;
}

.warp-overlay.warping {
  opacity: 1;
  visibility: visible;
  background: radial-gradient(circle at center, rgba(0, 245, 212, 0.95) 0%, rgba(9, 132, 227, 0.95) 100%);
  backdrop-filter: blur(24px) brightness(1.4);
  transition: none;
  /* Instant trigger on activation */
}

/* Hyperspace Speed Lines FX */
.warp-speed-lines {
  position: absolute;
  width: 200%;
  height: 200%;
  background-image:
    radial-gradient(1px 80px at 20% 30%, #ffffff 100%, transparent),
    radial-gradient(1.5px 120px at 80% 40%, #00F5D4 100%, transparent),
    radial-gradient(1px 90px at 40% 70%, #00cec9 100%, transparent),
    radial-gradient(2px 140px at 70% 80%, #ffffff 100%, transparent),
    radial-gradient(1px 60px at 10% 80%, #0984e3 100%, transparent),
    radial-gradient(1.5px 100px at 90% 20%, #00F5D4 100%, transparent),
    radial-gradient(2px 130px at 50% 10%, #ffffff 100%, transparent),
    radial-gradient(1px 110px at 30% 90%, #0984e3 100%, transparent);
  background-size: 100% 100%;
  opacity: 0;
  transform: scale(0.5);
  will-change: transform, opacity;
}

.warp-overlay.warping .warp-speed-lines {
  animation: warpSpeedLinesAnim 0.35s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes warpSpeedLinesAnim {
  0% {
    opacity: 0;
    transform: scale(0.5) rotate(0deg);
  }

  40% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.6) rotate(15deg);
  }
}

/* High-speed Traversing Rocket */
.warp-rocket-wrapper {
  position: absolute;
  left: -150px;
  bottom: -150px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 250px;
  height: 100px;
  z-index: 10;
  will-change: transform;
}

.warp-overlay.warping .warp-rocket-wrapper {
  animation: warpRocketAnim 0.35s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.warp-rocket-icon {
  font-size: 80px;
  filter: drop-shadow(0 0 20px #00F5D4);
  transform: rotate(-45deg);
  /* Align natural tilted emoji with trail */
  display: inline-block;
  position: absolute;
  right: 0;
}

.warp-rocket-trail {
  position: absolute;
  right: 70px;
  /* Behind the rocket icon */
  width: 150px;
  height: 16px;
  background: linear-gradient(to left, #00F5D4, rgba(9, 132, 227, 0.8), transparent);
  border-radius: 8px;
  filter: blur(2px);
  opacity: 0.85;
}

@keyframes warpRocketAnim {
  0% {
    transform: translate3d(-100px, 100px, 0) rotate(45deg);
  }

  100% {
    transform: translate3d(calc(100vw + 200px), calc(-100vh - 200px), 0) rotate(45deg);
  }
}

/* ==========================================================================
   [4. RESEARCH FIELDS BENTO CARDS & SF MOUSE CURSOR]
   ========================================================================== */

.bento-card {
  position: relative;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 28px;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  transform-style: preserve-3d;
  will-change: transform;
}

/* 벤토 카드 마우스 스포트라이트 보더 마스크 효과 */
.bento-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 14px;
  background: radial-gradient(150px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 254, 0.4), transparent 80%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  mask:
    linear-gradient(#fff, #fff) content-box,
    linear-gradient(#fff, #fff);
  mask-composite: exclude;
  -webkit-mask:
    linear-gradient(#fff, #fff) content-box,
    linear-gradient(#fff, #fff);
  -webkit-mask-composite: xor;
}

.bento-card:hover::after {
  opacity: 1;
}

.bento-card:hover {
  border-color: rgba(0, 242, 254, 0.25) !important;
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.15);
}

.bento-sub-card {
  position: relative !important;
  overflow: hidden !important;       /* 이미지가 카드 경계 밖으로 나가지 않도록 클리핑 */
  border-radius: 14px !important;    /* .bento-card 와 동일한 곡률 */
  z-index: 1;
  /* isolate stacking context so sub-card-bg stays inside */
  isolation: isolate;
}

/* Gradient overlay for readability (dark on left, transparent on right) */
.bento-sub-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0b0f19 45%, transparent 100%);
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.sub-card-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0;
  width: 100% !important;
  height: 100% !important;
  background-size: cover;
  background-position: center right;
  z-index: 0;   /* ::before(z:0) 와 같은 레이어 — isolation:isolate 덕에 카드 밖 노출 없음 */
  transition: transform 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  will-change: transform, opacity;
  pointer-events: none;
  border-radius: inherit; /* 부모 border-radius 상속 */
}

/* 텍스트·화살표를 배경 이미지 위에 표시 */
.bento-sub-card .sub-label,
.bento-sub-card h4,
.bento-sub-card p,
.bento-sub-card .corner-arrow {
  position: relative;
  z-index: 2;
}

/* ↗ 화살표와 텍스트 혼합 줄바꿈 방지 — flex 정렬 */
.bento-sub-card .corner-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

/* 서브 카드 호버 시 일러스트 투명도 상승 및 패럴랙스 */
.bento-sub-card:hover .sub-card-bg {
  transform: scale(1.08) translate(-6px, -4px);
  opacity: 0.5 !important;
}

/* 우측 하단 화살표 대각선 튕김 모션 */
.corner-arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  font-size: 16px;
  color: #475569;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.3s ease;
}

.bento-card:hover .corner-arrow {
  transform: translate(3px, -3px);
  color: #00f2fe;
}

/* Live Telemetry 점멸 애니메이션 */
.radar-dot {
  display: inline-block;
  color: #ff5722;
  margin-right: 2px;
  animation: radarPulse 1.6s infinite ease-in-out;
}

@keyframes radarPulse {

  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px #ff5722) brightness(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    filter: drop-shadow(0 0 6px #ff5722) brightness(1.5);
    opacity: 1;
  }
}

/* 메인 우주 발사체 카드 호버 시 비디오 줌 및 HUD 스캔라인 효과 */
.bento-hero {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-hero-video {
  transition: transform 0.5s ease;
}

.bento-hero:hover .bento-hero-video {
  transform: scale(1.06);
}

.bento-hero-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  /* 가로 세로 교차 격자 스캔라인 */
  background:
    linear-gradient(rgba(0, 242, 254, 0.12) 50%, transparent 50%),
    linear-gradient(90deg, rgba(0, 242, 254, 0.04) 50%, transparent 50%);
  background-size: 100% 4px, 4px 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.3s ease;
}

.bento-hero:hover .bento-hero-visual::after {
  opacity: 1;
  animation: bentoScanline 8s linear infinite;
}

@keyframes bentoScanline {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 0 100%, 0 0;
  }
}

/* Card 1: Aviation */
.bg-aviation {
  background-image: url('img/plane002.jpg');
  opacity: 0.22;
  mix-blend-mode: luminosity;
}

/* Card 2: Satellite */
.bg-satellite {
  background-image: url('img/space001.jpg');
  opacity: 0.25;
  filter: grayscale(1);
  mix-blend-mode: screen;
}

.bg-satellite::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #00F5D4;
  mix-blend-mode: color;
  opacity: 0.5;
}

/* Card 3: Space Exploration */
.bg-space-exploration {
  background-image: url('img/spaceship001.jpg');
  opacity: 0.25;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
  -webkit-mask-image: linear-gradient(to left, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0) 80%);
}

/* Card 4: Navigation */
.bg-navigation {
  background-image: url('img/spaceship002.jpg');
  opacity: 0.3;
  mix-blend-mode: screen;
  filter: brightness(0.8) contrast(1.2);
}

/* Custom SF HUD Target Cursor */
.custom-hud-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #00F5D4;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2000000;
  box-shadow: 0 0 8px #00F5D4, 0 0 16px rgba(0, 245, 212, 0.6);
  display: none;
  will-change: transform;
}

.custom-hud-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(0, 245, 212, 0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2000000;
  display: none;
  align-items: center;
  justify-content: center;
  will-change: transform, box-shadow, border-color;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hud-crosshair-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hud-crosshair-lines::before,
.hud-crosshair-lines::after {
  content: '';
  position: absolute;
  background: rgba(0, 245, 212, 0.55);
}

/* Horizontal crosshair lines */
.hud-crosshair-lines::before {
  top: 50%;
  left: -4px;
  width: calc(100% + 8px);
  height: 1.5px;
  transform: translateY(-50%);
  background: linear-gradient(to right, #00F5D4 4px, transparent 4px, transparent calc(100% - 4px), #00F5D4 calc(100% - 4px));
}

/* Vertical crosshair lines */
.hud-crosshair-lines::after {
  left: 50%;
  top: -4px;
  height: calc(100% + 8px);
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, #00F5D4 4px, transparent 4px, transparent calc(100% - 4px), #00F5D4 calc(100% - 4px));
}

/* Pro Theme Scope for Custom Cursor */
.theme-default,
.theme-default a,
.theme-default button,
.theme-default select,
.theme-default .bento-sub-card,
.theme-default .clickable,
.theme-default .family-select,
.theme-default .showcase-ctrl-btn,
.theme-default .banner-ctrl-btn {
  cursor: none !important;
}
.theme-default .custom-hud-cursor {
  display: block;
}

.theme-default .custom-hud-ring {
  display: flex;
}

/* Ring hover glow pulse */
.custom-hud-ring.hovered {
  border-color: #00F5D4;
  animation: hudRingPulse 0.8s infinite alternate ease-in-out;
}

@keyframes hudRingPulse {
  0% {
    box-shadow: 0 0 4px rgba(0, 245, 212, 0.2);
  }

  100% {
    box-shadow: 0 0 12px rgba(0, 245, 212, 0.6);
  }
}

/* Kids Custom Alert Modal styles */
.kids-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.kids-modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.kids-modal-box {
  background: #ffffff;
  border: 4px solid #ff7675;
  border-radius: 24px;
  width: 90%;
  max-width: 380px;
  padding: 28px;
  text-align: center;
  box-shadow: 0 10px 0 #ff7675, 0 15px 30px rgba(0, 0, 0, 0.15);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.kids-modal-overlay.show .kids-modal-box {
  transform: scale(1);
}

.kids-modal-emoji {
  font-size: 56px;
  margin-bottom: 12px;
  display: inline-block;
  animation: modalEmojiBounce 1.2s infinite alternate ease-in-out;
}

@keyframes modalEmojiBounce {
  0% {
    transform: translateY(0) rotate(0deg);
  }

  100% {
    transform: translateY(-10px) rotate(6deg);
  }
}

.kids-modal-title {
  font-family: 'Pretendard', sans-serif;
  font-size: 20px;
  font-weight: 900;
  color: #2d3436;
  margin-top: 0;
  margin-bottom: 12px;
}

.kids-modal-desc {
  font-family: 'Pretendard', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #636e72;
  line-height: 1.5;
  margin-bottom: 24px;
}

.kids-modal-btn {
  background: #ff7675;
  color: #ffffff;
  border: none;
  font-family: 'Pretendard', sans-serif;
  font-weight: 900;
  font-size: 15px;
  padding: 10px 30px;
  border-radius: 20px;
  box-shadow: 0 4px 0 #d63031;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.15s ease;
}

.kids-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d63031;
}

.kids-modal-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d63031;
}

/* ================= NURIHO SIMULATION MODAL ================= */
.nuriho-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(3, 5, 12, 0.95);
  backdrop-filter: blur(24px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.nuriho-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nuriho-modal-container {
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  max-height: 850px;
  background: #060913;
  border: 1px solid rgba(0, 245, 212, 0.4);
  box-shadow: 0 0 50px rgba(0, 245, 212, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.nuriho-modal-header {
  height: 56px;
  padding: 0 24px;
  background: rgba(10, 16, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.hud-modal-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #00f5d4;
  letter-spacing: 0.5px;
}

.hud-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f5d4;
  box-shadow: 0 0 10px #00f5d4;
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

.nuriho-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.nuriho-modal-close:hover {
  background: rgba(255, 118, 117, 0.3);
  border-color: #ff7675;
  color: #ff7675;
}

.nuriho-modal-body {
  flex: 1;
  overflow-y: auto;
  position: relative;
  scroll-behavior: auto;
}

.nuriho-modal-body::-webkit-scrollbar {
  width: 8px;
}

.nuriho-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.5);
}

.nuriho-modal-body::-webkit-scrollbar-thumb {
  background: #00f5d4;
  border-radius: 4px;
}

.nuriho-modal-sticky-stage {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100%;
  min-height: 550px;
  background: #000;
  overflow: hidden;
}

.modal-nuriho-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: radial-gradient(circle at center, transparent 40%, rgba(3, 5, 12, 0.75) 100%);
}

.telemetry-box {
  position: absolute;
  background: rgba(6, 11, 24, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 245, 212, 0.3);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.telemetry-top-left {
  top: 30px;
  left: 30px;
}

.telemetry-top-right {
  top: 30px;
  right: 30px;
}

.tel-row .lbl {
  color: #94a3b8;
  margin-right: 8px;
}

.tel-row .val {
  font-weight: 700;
  color: #fff;
}

.tel-row .val.cyan {
  color: #00f5d4;
}

.tel-row .val.sky {
  color: #38bdf8;
}

.tel-row .val.green {
  color: #2ecc71;
}

.nuriho-modal-scroll-tip {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 245, 212, 0.2);
  border: 1px solid rgba(0, 245, 212, 0.5);
  color: #00f5d4;
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(0, 245, 212, 0.2);
  animation: floatTip 2s infinite ease-in-out;
}

@keyframes floatTip {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -6px);
  }
}

.modal-scrub-bar-wrapper {
  position: absolute;
  bottom: 24px;
  left: 30px;
  right: 30px;
  background: rgba(8, 14, 28, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 20px;
  border-radius: 12px;
  pointer-events: auto;
}

.scrub-time-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: #94a3b8;
  margin-bottom: 10px;
}

.scrub-title {
  color: #00f5d4;
  font-weight: 700;
  letter-spacing: 1px;
}

.scrub-progress-track {
  height: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

.scrub-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #38bdf8 0%, #00f5d4 100%);
  border-radius: 5px;
  transition: width 0.05s linear;
}

.nuriho-modal-scroll-spacer {
  height: 10000px;
}

/* ==========================================================================
   KARI Intro Number Ticker Screen
   ========================================================================== */
.intro-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #03050c;
  z-index: 999999 !important;
  /* 화면 최상단 고정 */
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.65, 0, 0.35, 1), visibility 0.8s;
}

.intro-preloader.loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* SF 그리드 배경 */
.intro-bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(to right, rgba(0, 242, 254, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 242, 254, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.intro-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.intro-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: #00f2fe;
  margin-bottom: 24px;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.intro-ticker-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 24px;
}

.ticker-number {
  font-family: 'Outfit', sans-serif;
  font-size: 6.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  text-shadow: 0 0 30px rgba(0, 242, 254, 0.3);
}

.ticker-unit {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: #00f2fe;
  margin-left: 8px;
}

/* 프로그레스 바 */
.intro-progress-bar {
  width: 280px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  position: relative;
}

.intro-progress-bar .progress-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00f2fe, #4facfe);
  box-shadow: 0 0 12px #00f2fe;
  border-radius: 4px;
}

.intro-status-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.15em;
}

/* ==========================================================================
   Hero Canvas Scroll Stage & HUD
   ========================================================================== */
/* Hero Section - 핀 고정 충돌 방지 */
.pro-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  /* overflow: hidden; -> ScrollTrigger pin 작동을 위해 overflow: hidden 제거 또는 visible 유지 */
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 8vw;
  box-sizing: border-box;
}

/* 캔버스는 화면을 꽉 채우도록 고정 */
.hero-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 1;
  filter: contrast(1.12) brightness(1.03) saturate(1.08);
  /* 화염과 동체의 대비/선명도 강화 */
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    /* 좌측 0~35% 영역만 짙게 깔고 50% 이후부터는 완전히 투명하게 열어줌 */
    linear-gradient(90deg, #04060a 0%, rgba(4, 6, 10, 0.9) 25%, rgba(4, 6, 10, 0.6) 35%, transparent 50%),
    /* 우측의 기체 디테일이 가려지지 않도록 가장자리만 약한 radial 그라데이션 처리 */
    radial-gradient(circle at 75% 50%, transparent 50%, #04060a 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 520px;
  pointer-events: auto;
  word-break: keep-all;
  margin-top: 5vh;
  /* 상단 헤더와의 간격을 확보해 시각적 중심을 52%~55% 선상에 안착 */
}

/* 텔레메트리 HUD 위젯 */
.hero-telemetry-hud {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: 8px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.2);
}

.hero-telemetry-hud .t-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 0.05em;
}

.hero-telemetry-hud .t-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  color: #00f2fe;
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   Kids Mode Interactive Overlay & Playful Styles
   ========================================================================== */

/* 마우스 별가루용 캔버스 */
.kids-star-trail-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 1. 키즈 히어로 로켓, 별, 구름 둥둥 애니메이션 */
.cartoon-rocket-art {
  animation: kidsRocketFloat 4s ease-in-out infinite;
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.sparkle.sp-1 {
  animation: kidsSparkleFloat1 3s ease-in-out infinite;
}

.sparkle.sp-2 {
  animation: kidsSparkleFloat2 5s ease-in-out infinite;
}

.cloud.cl-1 {
  animation: kidsCloudFloat1 6s ease-in-out infinite;
}

.cloud.cl-2 {
  animation: kidsCloudFloat2 8s ease-in-out infinite;
}

@keyframes kidsRocketFloat {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(2deg);
  }
}

@keyframes kidsSparkleFloat1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }

  50% {
    transform: translate(-5px, -8px) scale(1.15);
    opacity: 1;
  }
}

@keyframes kidsSparkleFloat2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }

  50% {
    transform: translate(6px, -5px) scale(1.25);
    opacity: 0.95;
  }
}

@keyframes kidsCloudFloat1 {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(15px);
  }
}

@keyframes kidsCloudFloat2 {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-10px);
  }
}

/* 출발하기 버튼 호버 바운스 */
.kids-launch-btn {
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.35), box-shadow 0.3s ease, background 0.3s ease;
}

.kids-launch-btn:hover {
  transform: scale(1.12) rotate(-1deg);
  box-shadow: 0 10px 22px rgba(255, 107, 107, 0.35);
  background: #ff5252;
}

.kids-launch-btn:active {
  transform: scale(0.95);
}

/* 로켓 수직 상승 추진 애니메이션 */
.cartoon-rocket-art.launching {
  animation: kidsRocketLaunch 2.2s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.rocket-flame-burst {
  display: flex;
  justify-content: center;
  gap: 4px;
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.cartoon-rocket-art.launching .rocket-flame-burst {
  opacity: 1;
}

.flame-p {
  font-size: 24px;
  animation: kidsFlamePulse 0.1s infinite alternate;
}

.flame-p.p-2 {
  animation-delay: 0.03s;
}

.flame-p.p-3 {
  animation-delay: 0.06s;
}

@keyframes kidsFlamePulse {
  0% {
    transform: scale(0.9) translateY(0);
  }

  100% {
    transform: scale(1.1) translateY(4px);
  }
}

@keyframes kidsRocketLaunch {
  0% {
    transform: translateX(-50%) translateY(0) scale(1);
  }

  100% {
    transform: translateX(-50%) translateY(-1300px) scale(1.45);
  }
}

/* 2. 스토리 카드 및 진로 카드 젤리 바운스 호버 */
.story-card,
.career-card {
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.55), box-shadow 0.4s ease, border-color 0.3s ease;
  will-change: transform, box-shadow;
}

.story-card:hover {
  transform: translateY(-10px) scale(1.04);
  box-shadow: 0 16px 32px rgba(9, 132, 227, 0.12);
  border-color: rgba(9, 132, 227, 0.3);
}

.career-card:hover {
  transform: scale(1.045) rotate(1.2deg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

/* 3. 로켓 부품 결합 스냅 & 파티클 스타일 */
.rocket-part-block.installed {
  animation: kidsPartSnap 0.45s cubic-bezier(0.175, 0.885, 0.42, 1.35) forwards;
}

@keyframes kidsPartSnap {
  0% {
    transform: scale(0.5) rotate(-20deg);
    filter: brightness(2);
  }

  70% {
    transform: scale(1.12) rotate(6deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
}

/* 스파클 파티클 효과 */
.star-sparkle-fx {
  position: absolute;
  font-size: 22px;
  pointer-events: none;
  z-index: 9999;
  animation: kidsSparkleFx 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes kidsSparkleFx {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }

  100% {
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.3) rotate(180deg);
    opacity: 0;
  }
}

/* 조립 완료 무지개 그라디언트 펄스 */
.build-done-btn.ready-rainbow {
  background: linear-gradient(45deg, #ff7675, #ffeaa7, #55efc4, #81ecec, #a29bfe, #ff7675) !important;
  background-size: 400% 400% !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  border: none !important;
  box-shadow: 0 0 25px rgba(162, 155, 254, 0.7) !important;
  animation: kidsRainbowPulse 4s linear infinite, kidsButtonPulse 1.2s ease-in-out infinite alternate !important;
}

@keyframes kidsRainbowPulse {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes kidsButtonPulse {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.06);
  }
}

/* ==========================================================================
   KOMPSAT ARIRANG Exploded View Modal Styles
   ========================================================================== */
.sat-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  background: rgba(3, 5, 12, 0.95);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  padding: 20px;
}

.sat-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sat-modal-container {
  width: 100%;
  max-width: 1280px;
  height: 90vh;
  max-height: 850px;
  background: #060913;
  border: 1px solid rgba(0, 242, 254, 0.45);
  box-shadow: 0 0 50px rgba(0, 242, 254, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.sat-modal-header {
  height: 56px;
  padding: 0 24px;
  background: rgba(10, 16, 30, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
}

.sat-modal-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #00f2fe;
  letter-spacing: 0.5px;
}

.sat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00f2fe;
  box-shadow: 0 0 10px #00f2fe;
  animation: pulseDot 1.5s infinite;
}

.sat-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.sat-modal-close:hover {
  background: rgba(255, 87, 34, 0.2);
  border-color: #ff5722;
  color: #ff5722;
  box-shadow: 0 0 15px rgba(255, 87, 34, 0.3);
}

.sat-modal-body {
  flex: 1;
  overflow-y: scroll;
  position: relative;
  scroll-behavior: auto;
}

.sat-modal-body::-webkit-scrollbar {
  width: 6px;
}

.sat-modal-body::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}

.sat-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 3px;
}

.sat-modal-sticky-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #03050c;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sat-scrub-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* HUD Overlay */
.sat-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

/* Corner brackets */
.sat-corner-bracket {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 242, 254, 0.4);
}

.sat-top-left {
  top: 20px;
  left: 20px;
  border-right: none;
  border-bottom: none;
}

.sat-top-right {
  top: 20px;
  right: 20px;
  border-left: none;
  border-bottom: none;
}

.sat-bottom-left {
  bottom: 20px;
  left: 20px;
  border-right: none;
  border-top: none;
}

.sat-bottom-right {
  bottom: 20px;
  right: 20px;
  border-left: none;
  border-top: none;
}

/* Telemetry box */
.sat-telemetry-box {
  position: absolute;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 12px 18px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(8px);
}

.sat-telemetry-left {
  top: 30px;
  left: 30px;
  max-width: 350px;
}

.sat-telemetry-right {
  top: 30px;
  right: 30px;
  max-width: 320px;
}

.sat-tel-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.sat-lbl {
  color: #64748b;
  font-weight: 500;
}

.sat-val {
  font-weight: 700;
  color: #ffffff;
}

.sat-val.cyan {
  color: #00f2fe;
  text-shadow: 0 0 5px rgba(0, 242, 254, 0.5);
}

.sat-val.sky {
  color: #38bdf8;
}

.sat-val.green {
  color: #10b981;
}

.sat-modal-scroll-tip {
  position: absolute;
  bottom: 85px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(0, 242, 254, 0.25);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: 'Pretendard', sans-serif;
  font-size: 12px;
  color: #94a3b8;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.sat-mouse-icon {
  animation: kidsFlamePulse 0.8s infinite alternate;
}

/* Scrubber bar */
.sat-scrub-bar-wrapper {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 60px);
  max-width: 800px;
  background: rgba(6, 10, 20, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  backdrop-filter: blur(8px);
}

.sat-scrub-time-info {
  display: flex;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.5px;
}

.sat-scrub-progress-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.sat-scrub-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00f2fe, #38bdf8);
  box-shadow: 0 0 8px #00f2fe;
  transition: width 0.1s ease-out;
}

.sat-modal-scroll-spacer {
  height: 3000px;
  width: 100%;
  background: transparent;
}

/* ==========================================================================
   KARI AI Assistant & 3D Bot CSS Styles (화면 좌측 하단 항시 고정형)
   ========================================================================== */
.fixed-left-ai-bot {
  position: fixed;
  left: 4%;
  bottom: 32px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(10, 17, 34, 0.85);
  border: 1.5px solid rgba(0, 242, 254, 0.4);
  border-radius: 50px;
  padding: 10px 18px 10px 12px;
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 242, 254, 0.15);
  transition: all 0.3s ease;
  pointer-events: auto;
}

.fixed-left-ai-bot:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 242, 254, 0.3);
  border-color: rgba(0, 242, 254, 0.6);
}

.ai-bot-avatar,
.chatbot-avatar {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #03050c;
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
  animation: botFloat 3s ease-in-out infinite;
}

.ai-bot-avatar:hover {
  transform: scale(1.05);
  border-color: #00cec9;
  box-shadow: 0 0 22px rgba(0, 242, 254, 0.7);
}

.bot-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  transition: transform 0.5s ease;
}

.ai-bot-avatar:hover .bot-avatar-img {
  transform: scale(1.08);
}

@keyframes botFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.ai-dialogue-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-bubble-text {
  font-family: 'Pretendard', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.ai-bubble-btn {
  background: rgba(0, 242, 254, 0.18);
  border: 1px solid rgba(0, 242, 254, 0.6);
  color: #00f2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: fit-content;
}

.ai-bubble-btn:hover {
  background: rgba(0, 242, 254, 0.35);
  border-color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   KARI AI Assistant Chatbot Modal Styles (좌측 하단 둥둥 플로팅 챗봇)
   ========================================================================== */
.chat-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000000;
  pointer-events: none;
  /* 뒷배경 투과 클릭 가능 */
  display: flex;
  justify-content: flex-start;
  /* 좌측 하단 배치 */
  align-items: flex-end;
  padding: 32px 4%;
  /* left: 4%, bottom: 32px 에 자연스럽게 맞물리도록 패딩 정렬 */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.chat-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  /* 모달 자체는 클릭 가능 */
}

.chat-modal-container {
  width: 380px;
  height: 520px;
  margin-bottom: 110px;
  /* 로봇 위에 둥둥 뜨는 마진 */
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(0, 242, 254, 0.4);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.chat-modal-overlay.active .chat-modal-container {
  transform: translateY(0);
}

.chat-modal-header {
  height: 52px;
  padding: 0 20px;
  background: rgba(6, 10, 20, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10;
}

.chat-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  /* 녹색 활성 상태 점 */
  box-shadow: 0 0 8px #10b981;
  animation: pulseDot 1.6s infinite;
}

.chat-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 900;
  color: #00f2fe;
  letter-spacing: 0.5px;
}

.chat-modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 16px;
  cursor: pointer;
  transition: color 0.2s;
}

.chat-modal-close-btn:hover {
  color: #ff7675;
}

/* Chat Messages */
.chat-messages-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}

.chat-messages-body::-webkit-scrollbar {
  width: 4px;
}

.chat-messages-body::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages-body::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.2);
  border-radius: 2px;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-message.ai-message {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-message.user-message {
  align-self: flex-end;
  align-items: flex-end;
}

.msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12px;
  line-height: 1.5;
  word-break: keep-all;
}

.ai-message .msg-bubble {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-top-left-radius: 2px;
}

.user-message .msg-bubble {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: #00f2fe;
  border-top-right-radius: 2px;
}

.msg-timestamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 8px;
  color: #475569;
  margin-top: 4px;
}

/* Recommended quick chips */
.chat-chips-container {
  display: flex;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(6, 10, 20, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  overflow-x: auto;
}

.chat-chips-container::-webkit-scrollbar {
  display: none;
  /* 가로 스크롤바 숨김 */
}

.quick-question-chip {
  background: transparent;
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #94a3b8;
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0; /* 글자가 우그러들어 밖으로 튀어나오는 현상 차단 */
  transition: all 0.2s ease;
}

.quick-question-chip:hover {
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  background: rgba(0, 242, 254, 0.05);
}

/* Chat Input Footer */
.chat-input-footer {
  height: 56px;
  padding: 8px 16px;
  background: rgba(6, 10, 20, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-input-footer input {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s;
}

.chat-input-footer input:focus {
  border-color: rgba(0, 242, 254, 0.5);
}

.chat-send-btn {
  background: #00f2fe;
  border: none;
  color: #03050c;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.chat-send-btn:hover {
  background: #00cec9;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

.chat-send-btn:active {
  transform: scale(0.95);
}

/* ==========================================================================
   Kids Mode Chatbot & Widget CSS Theme Overrides
   ========================================================================== */
body.kids-mode .fixed-left-ai-bot {
  background: #ffffff !important;
  border: 3px solid #60a5fa !important;
  border-radius: 50px !important;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18) !important;
}

body.kids-mode .fixed-left-ai-bot:hover {
  border-color: #3b82f6 !important;
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.25) !important;
}

body.kids-mode .ai-bot-avatar {
  border: 3px solid #38bdf8 !important;
  background: #e0f2fe !important;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3) !important;
}

body.kids-mode .ai-bubble-text {
  color: #1e293b !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
}

body.kids-mode .ai-bubble-btn {
  background: linear-gradient(135deg, #ff7a59, #ff5722) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 20px !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3) !important;
}

body.kids-mode .ai-bubble-btn:hover {
  background: linear-gradient(135deg, #ff5722, #e04716) !important;
  box-shadow: 0 6px 14px rgba(255, 87, 34, 0.45) !important;
}

/* Kids Mode Chat Modal Container Override */
body.kids-mode .chat-modal-container {
  background: #ffffff !important;
  border: 3.5px solid #60a5fa !important;
  box-shadow: 0 16px 40px rgba(96, 165, 250, 0.25) !important;
}

body.kids-mode .chat-modal-header {
  background: #eff6ff !important;
  border-bottom: 2px solid #bfdbfe !important;
}

body.kids-mode .chat-title {
  color: #2563eb !important;
  font-weight: 800 !important;
}

body.kids-mode .chat-modal-close-btn {
  color: #3b82f6 !important;
}

body.kids-mode .chat-modal-close-btn:hover {
  color: #ff5722 !important;
}

body.kids-mode .chat-messages-body {
  background: #f8fafc !important;
}

body.kids-mode .chat-message.ai-message .msg-bubble {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: #334155 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

body.kids-mode .chat-message.user-message .msg-bubble {
  background: #eff6ff !important;
  border: 1.5px solid #93c5fd !important;
  color: #1e40af !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05) !important;
}

body.kids-mode .chat-input-footer {
  background: #eff6ff !important;
  border-top: 2px solid #bfdbfe !important;
}

body.kids-mode .chat-input-footer input {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.kids-mode .chat-send-btn {
  background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
  color: #ffffff !important;
  border: none !important;
}

body.kids-mode .chat-send-btn:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.4) !important;
}

body.kids-mode .quick-question-chip {
  background: #ffffff !important;
  border: 1.5px solid #93c5fd !important;
  color: #2563eb !important;
  font-weight: bold !important;
}

body.kids-mode .quick-question-chip:hover {
  background: #eff6ff !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.4) !important;
}

/* ==========================================================================
   Hyperspace Starburst Warp Transition Overlay Styles
   ========================================================================== */
.mode-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  background: #03050c;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* to-standard (Mission Control Return Glitch style) */
.mode-transition-overlay.to-standard {
  background: #03050c !important;
}

.mode-transition-overlay.to-standard::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 242, 254, 0.04) 0px,
    rgba(0, 242, 254, 0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  pointer-events: none;
  z-index: 2;
}

.mode-transition-overlay.to-standard #warpCanvas {
  display: none !important;
}

.mode-transition-overlay.to-standard .trans-status-main {
  font-family: 'JetBrains Mono', 'Outfit', monospace !important;
  color: #00f2fe !important;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.8), 0 0 20px rgba(0, 242, 254, 0.4) !important;
  animation: textGlitchEffect 0.4s infinite !important;
}

.mode-transition-overlay.to-standard .trans-countdown {
  color: #00f2fe !important;
  border-color: #00f2fe !important;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3) !important;
  text-shadow: 0 0 5px rgba(0, 242, 254, 0.5) !important;
}

@keyframes textGlitchEffect {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, 2px); }
  40% { transform: translate(-2px, -2px); }
  60% { transform: translate(2px, 2px); }
  80% { transform: translate(2px, -2px); }
}

.mode-transition-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#warpCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: transparent;
}

.trans-flash-effect {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  z-index: 10;
  pointer-events: none;
}

.trans-flash-effect.flash {
  animation: flashTrigger 0.35s ease-out forwards;
}

.trans-text-panel {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Outfit', sans-serif;
  text-align: center;
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
  pointer-events: none;
  padding: 20px;
}

.trans-status-sub {
  font-size: 13px;
  font-weight: 700;
  color: #00f2fe;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.8;
  animation: textPulse 1.5s infinite ease-in-out;
}

.trans-status-main {
  font-family: 'Pretendard', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 24px;
  word-break: keep-all;
  animation: textGlitch 1.8s infinite ease-in-out;
}

.trans-countdown {
  font-size: 16px;
  font-weight: 700;
  color: #ff7a59;
  border: 1.5px solid #ff7a59;
  border-radius: 40px;
  padding: 6px 20px;
  text-shadow: 0 0 8px rgba(255, 122, 89, 0.4);
  box-shadow: 0 0 15px rgba(255, 122, 89, 0.2);
  background: rgba(3, 5, 12, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

@keyframes flashTrigger {
  0% {
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@keyframes textGlitch {

  0%,
  100% {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }

  50% {
    transform: scale(1.02);
    filter: hue-rotate(15deg) drop-shadow(0 0 5px rgba(0, 242, 254, 0.8));
  }
}

@keyframes textPulse {

  0%,
  100% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }
}

/* ==========================================================================
   Hero Telemetry HUD & Mission Sequence Mini-Timeline Styles
   ========================================================================== */
.hero-telemetry-hud {
  display: flex;
  gap: 24px;
  margin-top: 30px;
  background: rgba(10, 18, 35, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 12px 20px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  margin-left: 0 !important;
  width: fit-content !important;
  max-width: 100% !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(0, 242, 254, 0.05);
}

.tel-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tel-item .t-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0, 242, 254, 0.7);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tel-item .t-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

/* 수치 변경 시 발광 트랜지션 클래스 */
.tel-item .t-val.updating {
  color: #00f2fe !important;
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.9) !important;
}

/* Right Mission Sequence Chapter Indicator */
.mission-sequence-nav {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 999;
  pointer-events: auto;
}

.seq-dot-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  cursor: pointer;
  pointer-events: auto;
}

.seq-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  background: transparent;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.1);
}

.seq-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  white-space: nowrap;
}

.seq-dot-item:hover .seq-dot {
  border-color: #00f2fe;
  background: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
  transform: scale(1.2);
}

.seq-dot-item:hover .seq-label {
  opacity: 1;
  transform: translateX(0);
  color: #00f2fe;
}

/* 현재 액티브 스테이지 도트 스타일 */
.seq-dot-item.active .seq-dot {
  border-color: #00f2fe;
  background: #00f2fe;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.8);
  transform: scale(1.3);
}

.seq-dot-item.active .seq-label {
  opacity: 1;
  transform: translateX(0);
  color: #ffffff;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Web Accessibility (A11y) & Screen Reader Support
   ========================================================================== */

/* Screen Reader Only (WCAG standard hidden text) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* focus-visible 스타일 강화 */
:focus-visible {
  outline: 3px solid #00f2fe !important;
  outline-offset: 3px !important;
}

/* Accessibility Tools GNB Button */
.a11y-tool-btn {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.5);
  color: #00f2fe;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-tool-btn:hover {
  background: rgba(0, 242, 254, 0.35);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Screen Reader Alternative Text Trigger Buttons */
.sr-desc-trigger {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-family: 'Pretendard', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 10px;
  display: inline-block;
  transition: all 0.2s ease;
}

.sr-desc-trigger:hover,
.sr-desc-trigger:focus {
  background: #00f2fe;
  border-color: #00f2fe;
  color: #03050c;
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Accessibility Tools Dialog Overlay (동적 생성용) */
.a11y-dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(10px);
  z-index: 200000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.a11y-dialog-overlay.show {
  opacity: 1;
  visibility: visible;
}

.a11y-dialog-box {
  width: 480px;
  max-width: 90%;
  background: #0b1122;
  border: 2px solid #00f2fe;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  font-family: 'Pretendard', sans-serif;
  color: #ffffff;
  text-align: left;
}

.a11y-dialog-title {
  font-size: 20px;
  font-weight: 800;
  color: #00f2fe;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.a11y-dialog-body {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.a11y-close-btn {
  background: #00f2fe;
  border: none;
  color: #03050c;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.a11y-close-btn:hover {
  background: #00cec9;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.5);
}

/* Reduced Motion preferences ( WCAG 기준 충족 ) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .ai-bot-avatar,
  .fixed-left-ai-bot,
  .warp-rocket-wrapper {
    animation: none !important;
  }
}

/* ==========================================================================
   Kids Mode Specific Web Accessibility (A11y)
   ========================================================================== */

/* Kids A11y Toolbar */
.kids-a11y-toolbar {
  display: flex;
  gap: 10px;
  margin-right: 15px;
  align-items: center;
}

.kids-a11y-btn {
  background: #ffedd5;
  border: 2px solid #f97316;
  color: #c2410c;
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
  min-height: 48px;
  /* Kids minimum tap target 48px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.kids-a11y-btn:hover {
  background: #ffebd5;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.2);
}

.kids-a11y-btn.active {
  background: #f97316 !important;
  color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5) !important;
}

/* Kids TTS Speech Button */
.kids-tts-btn {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  color: #15803d;
  font-family: 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  margin-top: 8px;   /* subtitle와의 간격 */
  margin-bottom: 24px; /* 일러스트 프레임과의 간격 확보 */
  transition: all 0.2s ease;
  min-width: 100px;
  min-height: 48px; /* minimum tap target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.kids-tts-btn:hover {
  background: #dcfce7;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(34, 197, 94, 0.25);
}

/* Kids Mode body overrides */
body.kids-mode button,
body.kids-mode a {
  min-width: 48px;
  min-height: 48px;
  box-sizing: border-box;
}

body.kids-mode :focus-visible {
  outline: 4px dashed #f59e0b !important;
  outline-offset: 4px !important;
}

/* 파스텔 톤 가독성 보강 (명도 대비 강화) */
body.kids-mode p {
  color: #0f172a !important;
  /* 선명한 흑청색 */
  font-weight: 600 !important;
}

body.kids-mode h2,
body.kids-mode h3,
body.kids-mode h4 {
  color: #1e293b !important;
}

/* 글자 크기 일괄 확대 */
body.kids-mode.large-font h2 {
  font-size: 2.3rem !important;
}

body.kids-mode.large-font h3 {
  font-size: 1.8rem !important;
}

body.kids-mode.large-font h4 {
  font-size: 1.4rem !important;
}

body.kids-mode.large-font p {
  font-size: 1.15rem !important;
  line-height: 1.7 !important;
}

body.kids-mode.large-font button,
body.kids-mode.large-font a {
  font-size: 1.1rem !important;
}

/* 움직임 일시 정지 */
body.kids-mode.stop-motion *,
body.kids-mode.stop-motion *:before,
body.kids-mode.stop-motion *:after {
  animation-play-state: paused !important;
  transition: none !important;
}

/* ==========================================================================
   Main Hero Scroll-Scrubbing Interactive Hotspot & Detailed Modal Styles
   ========================================================================== */

.scrub-hotspot-container {
  position: fixed;
  right: 5%;
  top: 50%;
  transform: translateY(-50%) scale(0.95);
  width: 340px;
  background: rgba(10, 18, 35, 0.9);
  border: 1.5px solid rgba(0, 242, 254, 0.6);
  border-radius: 14px;
  padding: 18px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.25);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.scrub-hotspot-container.is-visible {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(-50%) scale(1) !important;
}

.hotspot-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.pulse-beacon {
  width: 10px;
  height: 10px;
  background: #00f2fe;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #00f2fe;
  position: relative;
}

.pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1.5px solid #00f2fe;
  border-radius: 50%;
  animation: beaconPulse 1.5s infinite ease-out;
}

@keyframes beaconPulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(2);
    opacity: 0;
  }
}

.hotspot-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #00f2fe;
  letter-spacing: 0.5px;
}

.hotspot-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.hotspot-desc {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 12px;
  text-shadow: none !important;
}

.hotspot-detail-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 0;
  text-align: center;
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Pretendard', sans-serif;
}

.hotspot-detail-btn:hover {
  background: rgba(0, 242, 254, 0.35) !important;
  color: #fff !important;
}

/* Stage Detail Modal CSS */
.stage-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.stage-detail-modal.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
}

.modal-panel {
  position: relative;
  z-index: 10;
  width: 520px;
  max-width: 90%;
  background: #0b1122;
  border: 2px solid #00f2fe;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  font-family: 'Pretendard', sans-serif;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.stage-detail-modal.is-open .modal-panel {
  transform: scale(1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.3);
  background: rgba(15, 23, 42, 0.6);
}

.modal-head h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close-btn:hover {
  color: #ffffff;
}

.modal-content {
  padding: 24px;
  background: #090e1d;
  max-height: 400px;
  overflow-y: auto;
}

.modal-desc-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: #cbd5e1;
  white-space: pre-line;
  word-break: keep-all;
  text-shadow: none !important;
  margin: 0;
}

/* ==========================================================================
   Main Hero Scroll-Scrubbing Interactive Hotspot & Detailed Modal Fixes
   ========================================================================== */
.scrub-hotspot-container {
  position: fixed !important;
  right: 6% !important;
  top: 48% !important;
  transform: translateY(-50%) scale(0.95) !important;
  width: 360px !important;
  background: rgba(8, 14, 28, 0.92) !important;
  border: 1.5px solid rgba(0, 242, 254, 0.7) !important;
  border-radius: 16px !important;
  padding: 22px !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.25) !important;
  z-index: 9999 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s ease, visibility 0.35s ease;
}

.scrub-hotspot-container.is-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(-50%) scale(1) !important;
}

.stage-detail-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.stage-detail-modal.is-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Kids Mode Chatbot Modal Styles Overrides (아동 전용 밝고 친근한 챗봇 스킨) */
body.kids-mode .chat-modal-container {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 4px solid #f59e0b !important;
  border-radius: 24px !important;
  box-shadow: 0 15px 40px rgba(245, 158, 11, 0.35) !important;
  color: #1e293b !important;
}

body.kids-mode .chat-modal-header {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  border-bottom: 3px solid #d97706 !important;
  height: 56px !important;
}

body.kids-mode .chat-title {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  font-family: 'Pretendard', sans-serif !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

body.kids-mode .chat-modal-close-btn {
  color: #ffffff !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  transition: transform 0.2s;
}

body.kids-mode .chat-modal-close-btn:hover {
  transform: scale(1.15);
  color: #fef3c7 !important;
}

body.kids-mode .ai-message .msg-bubble {
  background: #f8fafc !important;
  border: 2px solid #e2e8f0 !important;
  color: #0f172a !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  line-height: 1.65 !important;
  border-radius: 18px !important;
  border-top-left-radius: 2px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

body.kids-mode .ai-message .msg-bubble strong {
  color: #ea580c !important;
  font-weight: 900 !important;
}

body.kids-mode .user-message .msg-bubble {
  background: #fef3c7 !important;
  border: 2px solid #fde047 !important;
  color: #78350f !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  border-radius: 18px !important;
  border-top-right-radius: 2px !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.1) !important;
}

body.kids-mode .chat-chips-container {
  background: #f1f5f9 !important;
  border-top: 2px solid #cbd5e1 !important;
  padding: 12px 16px !important;
  gap: 10px !important;
}

body.kids-mode .quick-question-chip {
  background: #ffffff !important;
  border: 2px solid #f59e0b !important;
  color: #b45309 !important;
  font-size: 12.5px !important;
  font-weight: 850 !important;
  padding: 8px 16px !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important; /* 글자 구김 방지 */
  white-space: nowrap !important; /* 칩 텍스트 줄바꿈 방지 */
}

body.kids-mode .quick-question-chip:hover {
  background: #fef3c7 !important;
  border-color: #d97706 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(245, 158, 11, 0.2) !important;
}

body.kids-mode .chat-input-footer {
  background: #f8fafc !important;
  border-top: 2px solid #cbd5e1 !important;
  height: 68px !important;
  padding: 10px 18px !important;
}

body.kids-mode .chat-input-footer input {
  background: #ffffff !important;
  border: 2px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  border-radius: 24px !important;
  padding: 10px 18px !important;
  box-sizing: border-box !important; /* 보더로 인한 인풋 탈출 방지 */
}

body.kids-mode .chat-input-footer input:focus,
body.kids-mode .chat-input-footer input:focus-visible {
  outline: none !important;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.25) !important;
}

body.kids-mode .chat-send-btn {
  background: linear-gradient(135deg, #f59e0b, #ef4444) !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 900 !important;
  padding: 10px 22px !important;
  border-radius: 24px !important;
  box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3) !important;
}

/* 키즈모드 챗봇 내부 포커스 점선 윤곽선 제거 */
body.kids-mode .chat-modal-container :focus-visible,
.chat-modal-container :focus-visible {
  outline: none !important;
}

body.kids-mode .quick-question-chip:focus-visible {
  outline: none !important;
  border-color: #d97706 !important;
  box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.3) !important;
}

/* ==========================================================================
   Accessibility settings modal styles
   ========================================================================== */
.a11y-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1500000;
  background: rgba(3, 5, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.a11y-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.a11y-modal-container {
  width: 440px;
  background: #0c1424;
  border: 2px solid #00f2fe;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.25);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.a11y-modal-overlay.active .a11y-modal-container {
  transform: scale(1);
}

.a11y-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 242, 254, 0.20);
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.a11y-modal-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
}

.a11y-modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.a11y-modal-close-btn:hover {
  color: #ff7675;
}

.a11y-modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.a11y-setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.a11y-setting-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #cbd5e1;
}

.a11y-btn-group {
  display: flex;
  gap: 8px;
}

.a11y-opt-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Pretendard', sans-serif;
}

.a11y-opt-btn.active {
  background: #00f2fe;
  border-color: #00f2fe;
  color: #03050c;
  font-weight: 800;
}

.a11y-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
  text-align: center;
  font-family: 'Pretendard', sans-serif;
}

.a11y-toggle-btn.active {
  background: #ff7a59;
  border-color: #ff7a59;
  color: #ffffff;
  font-weight: 800;
}

.a11y-modal-footer {
  margin-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
}

.a11y-modal-footer p {
  font-size: 11px;
  color: #64748b;
  text-align: center;
}

/* ==========================================================================
   KARI FULL SITEMAP OVERLAY MODAL (White Premium Style)
   ========================================================================== */
.sitemap-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000000;
  background: #ffffff;
  color: #000000;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.sitemap-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sitemap-modal-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #ffffff;
  padding: 40px 6vw;
}

.sitemap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.sitemap-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sitemap-logo-img {
  height: 36px;
  mix-blend-mode: multiply;
}

.sitemap-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Pretendard', sans-serif;
}

.sitemap-close-btn {
  background: transparent;
  border: none;
  color: #0f172a;
  font-size: 32px;
  cursor: pointer;
  transition: transform 0.2s;
}

.sitemap-close-btn:hover {
  transform: scale(1.15);
}

.sitemap-body-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.sitemap-row {
  display: flex;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 30px;
}

.sitemap-row-title {
  width: 200px;
  min-width: 200px;
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  font-family: 'Pretendard', sans-serif;
}

.sitemap-sub-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px 16px;
}

.sitemap-sub-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid #f1f5f9;
  padding-right: 8px;
}

.sitemap-sub-col:last-child {
  border-right: none;
}

.sitemap-sub-head {
  font-size: 15px;
  font-weight: 900;
  color: #1e293b;
  text-decoration: none;
  transition: color 0.2s;
  font-family: 'Pretendard', sans-serif;
}

.sitemap-sub-head:hover {
  color: #0284c7;
}

.sitemap-sub-head.highlight-menu {
  color: #0284c7;
  border-bottom: 2px solid #0284c7;
  padding-bottom: 2px;
  width: fit-content;
}

.sitemap-sub-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}

.sitemap-sub-items li a {
  font-size: 13px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s, font-weight 0.2s;
  line-height: 1.4;
  font-family: 'Pretendard', sans-serif;
}

.sitemap-sub-items li a::before {
  content: '· ';
  font-weight: 900;
}

.sitemap-sub-items li a:hover {
  color: #0f172a;
  font-weight: 700;
}

/* Accessibility Enhancement Classes (Responsive Aspect-Ratio Aware Scaling) */
body.a11y-text-large,
body.kids-font-large,
#view-kids.kids-font-large {
  font-size: clamp(17px, 1.1vw + 14px, 22px) !important;
}

body.a11y-text-large p,
body.kids-font-large p,
#view-kids.kids-font-large p {
  font-size: clamp(16px, 1.15vw + 12px, 21px) !important;
  line-height: 1.7 !important;
}

body.a11y-text-large h1,
body.kids-font-large h1,
#view-kids.kids-font-large h1 {
  font-size: clamp(38px, 3.2vw + 24px, 58px) !important;
  line-height: 1.25 !important;
}

body.a11y-text-large h2,
body.kids-font-large h2,
#view-kids.kids-font-large h2 {
  font-size: clamp(28px, 2.4vw + 18px, 44px) !important;
  line-height: 1.3 !important;
}

body.a11y-text-large h3,
body.kids-font-large h3,
#view-kids.kids-font-large h3 {
  font-size: clamp(22px, 1.8vw + 14px, 32px) !important;
  line-height: 1.35 !important;
}

body.a11y-text-large h4,
body.kids-font-large h4,
#view-kids.kids-font-large h4 {
  font-size: clamp(18px, 1.4vw + 12px, 26px) !important;
  line-height: 1.4 !important;
}

body.a11y-text-large .kids-title,
body.kids-font-large .kids-title {
  font-size: clamp(40px, 3.6vw + 20px, 58px) !important;
  line-height: 1.2 !important;
}

body.a11y-text-large .kids-subtitle,
body.kids-font-large .kids-subtitle {
  font-size: clamp(18px, 1.4vw + 12px, 24px) !important;
  line-height: 1.45 !important;
}

body.a11y-text-large button,
body.kids-font-large button,
#view-kids.kids-font-large button,
body.a11y-text-large .kids-a11y-btn,
body.kids-font-large .kids-a11y-btn,
body.a11y-text-large .kids-launch-btn,
body.kids-font-large .kids-launch-btn {
  font-size: clamp(14px, 1.0vw + 11px, 19px) !important;
  min-height: 48px !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
}

body.a11y-text-large .story-card,
body.a11y-text-large .career-card,
body.kids-font-large .story-card,
body.kids-font-large .career-card {
  padding: clamp(20px, 1.8vw + 12px, 36px) !important;
}

body.a11y-text-large .kids-section-box,
body.kids-font-large .kids-section-box {
  padding: clamp(24px, 2.2vw + 16px, 44px) !important;
}

body.a11y-high-contrast {
  filter: contrast(1.4) saturate(1.2) !important;
  background-color: #000000 !important;
  color: #ffff00 !important; /* 노란색 고대비 글씨 */
}

body.a11y-high-contrast a,
body.a11y-high-contrast button {
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* ==========================================================================
   Kids Alert Modal Overlay (부품 조립 순서 오류 안내 모달)
   ========================================================================== */
.kids-alert-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000000;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kids-alert-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.kids-alert-modal-card {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  border: 4px solid #f59e0b;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: 0 20px 50px rgba(245, 158, 11, 0.35);
  text-align: center;
  transform: scale(0.85) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.35);
}

.kids-alert-modal-overlay.active .kids-alert-modal-card {
  transform: scale(1) translateY(0);
}

.kids-alert-icon {
  font-size: 48px;
  margin-bottom: 12px;
  animation: kidsBounceAlert 0.8s infinite alternate cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes kidsBounceAlert {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-8px) scale(1.1); }
}

.kids-alert-title {
  font-size: 22px;
  font-weight: 900;
  color: #d97706;
  margin-bottom: 14px;
}

.kids-alert-body {
  font-size: 15px;
  font-weight: 700;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 24px;
  background: #fef3c7;
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid #fde047;
}

.kids-alert-confirm-btn {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #ffffff;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 900;
  padding: 14px;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(239, 68, 68, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kids-alert-confirm-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.kids-alert-confirm-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Hero Compass HUD Widget (Orientation Watermark Cover)
   ========================================================================== */
.hero-compass-hud,
#heroCompassHud {
  position: absolute !important;
  right: 35px !important;
  bottom: 45px !important;
  z-index: 60 !important;
  display: flex !important;
  flex-direction: column !important; /* 세로 정렬로 변경 */
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  width: 170px !important;
  min-height: 150px !important; /* 높이를 확보하여 상하 워터마크 완전 차폐 */
  padding: 16px 12px !important;
  background: rgba(6, 11, 24, 0.96) !important; /* 100%에 가까운 불투명 암실 배경 */
  border: 1.5px solid rgba(0, 242, 254, 0.45) !important;
  border-radius: 16px !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 242, 254, 0.2) !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

.compass-circle {
  position: relative;
  width: 52px !important;
  height: 52px !important;
  margin-bottom: 8px !important;
  border-radius: 50%;
  border: 1.5px dashed #00f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: ringRotate 20s linear infinite;
  flex-shrink: 0;
}

@keyframes ringRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.compass-ring {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 50%;
}

.compass-crosshair {
  position: absolute;
  width: 6px;
  height: 6px;
  background: #00f2fe;
  border-radius: 50%;
  box-shadow: 0 0 8px #00f2fe;
}

.compass-axis.n {
  position: absolute;
  top: 3px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 900;
  color: #00f2fe;
}

.compass-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  overflow: hidden;
}

.compass-info .hud-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.compass-info .hud-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 900;
  color: #e2e8f0;
  white-space: nowrap;
}

.compass-info .hud-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #10b981;
  font-weight: 700;
}

/* ==========================================================================
   KARI 2-Depth Full Sitemap Mega Overlay
   ========================================================================== */
.all-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.all-menu-overlay.is-open {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.all-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.all-menu-container {
  position: relative;
  z-index: 2;
  width: 90vw;
  max-width: 1400px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 40px 48px;
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  border-radius: 20px;
  background: rgba(8, 14, 28, 0.85);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 242, 254, 0.15);
  box-sizing: border-box;
}

.all-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.all-menu-brand .hud-sub-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
}

.all-menu-brand h2 {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
}

.all-menu-close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  padding: 8px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.2s ease;
}

.all-menu-close-btn:hover {
  background: rgba(0, 242, 254, 0.2);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.all-menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 32px;
  margin-top: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.col-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #00f2fe;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #94a3b8;
}

.sub-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-menu-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.sub-menu-list a:hover {
  color: #00f2fe;
  transform: translateX(5px);
}

.all-menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
}

.quick-flags {
  display: flex;
  gap: 16px;
}

.quick-flags a {
  color: #64748b;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.quick-flags a:hover {
  color: #cbd5e1;
}

.telemetry-info {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: #10b981;
}