/* ============================================================
   PIXG (ham.limchang.dev) — Crisp Modern White Theme
   Indie Mac desktop utility aesthetic, inspired by Comnyang & Apple
   ============================================================ */

/* Noonnu Popular Free Webfonts (LINE Seed Sans KR & Neo둥근모) */
@font-face {
  font-family: 'LINESeedKR';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/LINESeedKR-Rg.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'LINESeedKR';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_11-01@1.0/LINESeedKR-Bd.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeoDunggeunmo';
  src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.3/NeoDunggeunmo.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* 페이지 안 요소들의 가로 폭 — PC에서도 단정한 한 칼럼으로 (상단 바·스토리 카드·챕터 카드·결제 카드 공통) */
  --content-max: 640px;
}

:root {
  --font-sans: 'LINESeedKR', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'NeoDunggeunmo', 'LINESeedKR', 'Pretendard', sans-serif; /* 레트로 게임 화면: 제목은 픽셀 폰트 */
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-pixel: 'NeoDunggeunmo', 'JetBrains Mono', monospace;

  /* 스토리 카드(windowBody) 높이: 2.7배 확대 픽쥐가 넉넉히 들어가도록 넓게, 작은 화면에선 뷰포트에 맞춰 줄어듦 */
  --cell-h: clamp(340px, 46vh, 420px);

  /* Clean Pure White & Light Slate Palette */
  --bg-page: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-subtle: #f1f5f9;

  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-strong: #cbd5e1;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;

  /* Warm Accent */
  --amber: #d97706;
  --amber-hover: #b45309;
  --amber-soft: rgba(217, 119, 6, 0.08);

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

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

html {
  background-color: var(--bg-page);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-page);
  background-image: 
    radial-gradient(#e2e8f0 1.2px, transparent 1.2px);
  background-size: 24px 24px;
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.mono {
  font-family: var(--font-mono);
}

/* ============================================================
   TOP BAR (FIXED, ALWAYS VISIBLE ON SCROLL)
   ============================================================ */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
}

.top-bar-inner {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-logo {
  font-size: 22px;
  line-height: 1;
}

.app-name-top {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.app-badge {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid #e2e8f0;
}

.top-bar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-bar-nav .nav-link {
  font-family: var(--font-pixel);
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: all 0.15s ease;
  cursor: pointer;
}

.top-bar-nav .nav-link:hover {
  color: var(--amber);
  background: rgba(217, 119, 6, 0.06);
}

.top-bar-nav .nav-link-btn {
  background: var(--amber);
  color: #ffffff !important;
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 5px 12px;
  border-radius: 9999px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.25);
}

.top-bar-nav .nav-link-btn:hover {
  background: var(--amber-hover);
  color: #ffffff !important;
}

/* Outer Container Wrapper */
.page-wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: 60px;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* ============================================================
   STAGE DECK: TRUE SCROLL LOCK & RISING CARDS
   ============================================================ */
.main-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  flex: 1;
}

.stage-slide {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 20px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  transition: transform 0.62s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  will-change: transform, opacity;
  scrollbar-width: thin;
}

/* Active Stage: centered and interactive */
.stage-slide.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 10;
}

/* Next Stages: positioned below, ready to rise up! */
.stage-slide.next {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
}

/* Prev Stages: pushed slightly up and dimmed */
.stage-slide.prev {
  transform: translateY(-28px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

/* Stage Card Container */
.stage-card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -4px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(0, 0, 0, 0.02);
  padding: 28px 24px;
}

.stage-card-transparent {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Staggered Rise-up Elements */
.rise-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.stage-slide.active .rise-up {
  opacity: 1;
  transform: translateY(0);
}

.stage-slide.active .rise-up:nth-child(1) { transition-delay: 0.04s; }
.stage-slide.active .rise-up:nth-child(2) { transition-delay: 0.08s; }
.stage-slide.active .rise-up:nth-child(3) { transition-delay: 0.12s; }
.stage-slide.active .rise-up:nth-child(4) { transition-delay: 0.16s; }

.stage-content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}

/* Retro Desktop Window (Comnyang Style) */
.comnyang-window {
  position: relative;
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 
    0 20px 45px -12px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  isolation: isolate;
}

/* Virtual Guide Cursor (Animated Mouse Demonstration) */
.virtual-guide-cursor {
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.22s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.25));
}

.cursor-beacon {
  position: absolute;
  top: -4px;
  left: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.5) 0%, rgba(217, 119, 6, 0) 70%);
  pointer-events: none;
  animation: beaconPulse 1.2s ease-in-out infinite alternate;
}

@keyframes beaconPulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 1; }
}

.virtual-guide-cursor.clicking .cursor-svg {
  transform: scale(0.84) translate(2px, 2px);
  transition: transform 0.08s ease;
}

.virtual-guide-cursor .cursor-grab-svg {
  display: none !important;
}

.virtual-guide-cursor .cursor-pointer-svg {
  display: block !important;
}

.virtual-guide-cursor.grabbing .cursor-pointer-svg {
  display: block !important;
  transform: scale(1.08) rotate(-5deg);
  filter: drop-shadow(0 2px 8px rgba(217, 119, 6, 0.8));
  transition: transform 0.12s ease;
}

.virtual-guide-cursor.grabbing .cursor-beacon {
  background: radial-gradient(circle, rgba(217, 119, 6, 0.8) 0%, rgba(217, 119, 6, 0) 75%);
  animation: beaconGrab 0.6s ease-in-out infinite alternate;
}

@keyframes beaconGrab {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 1; }
}

.cursor-click-ripple {
  position: absolute;
  top: 2px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--amber);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.6);
  opacity: 0;
  transform: scale(0.4);
  pointer-events: none;
}

.cursor-click-ripple.animate {
  animation: rippleExpand 0.48s cubic-bezier(0.15, 0.85, 0.35, 1) forwards;
}

@keyframes rippleExpand {
  0% {
    opacity: 1;
    transform: scale(0.4);
  }
  100% {
    opacity: 0;
    transform: scale(2.8);
  }
}

/* Window Title Bar */
.window-titlebar {
  background: #f8fafc;
  height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
  position: relative;
  z-index: 10;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dot-square {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  border: 1px solid #94a3b8;
  border-radius: 2px;
}

.window-path {
  font-family: var(--font-pixel);
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

/* Pure White Window Body */
.window-body {
  background: #ffffff;
  padding: 36px 32px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--cell-h); /* 모든 스텝에서 같은 높이 → 스텝 전환 시 카드 높이가 튀지 않음 */
  position: relative;
  overflow: hidden;
  /* Safari/WebKit: overflow:hidden alone does not clip the transformed (composited)
     hero iframe, so the zoomed hamster leaks past the card. clip-path + isolation
     force a real mask exactly at the cell bounds (bottom corners follow the card). */
  clip-path: inset(0 round 0 0 var(--radius-md) var(--radius-md));
  isolation: isolate;
}

.window-body.layout-flipped {
  flex-direction: row-reverse;
}

/* Left Column */
.window-left {
  flex: 1;
  min-width: 0;
  text-align: left;
  transform-origin: center center;
  will-change: transform;
  position: relative;
  z-index: 1;
  background: transparent;
}

.window-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto 10px;
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.window-app-title {
  font-size: 34px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* macOS Red Dotted Underline */
.spellcheck {
  text-decoration: underline dotted #e05252;
  text-underline-offset: 5px;
  text-decoration-thickness: 2.2px;
}

.window-app-sub {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0;
  word-break: keep-all;
  text-align: center;
}

.window-typing-group {
  margin-top: 0;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.window-typing-lead {
  font-size: 15.5px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 10px;
}

/* Minimal Interactive Typing Line */
/* 여러 줄 입력: 표시 텍스트는 pre-wrap으로 줄바꿈을 그대로 보여주고, 커서는 마지막 글자 뒤에 인라인으로 따라붙는다 */
.interactive-typing-line {
  position: relative;
  display: block;
  min-height: 24px;
  line-height: 1.65;
  cursor: text;
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}

.live-type-input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: text;
  font-family: inherit;
  font-size: 15px;
  line-height: inherit;
  border: none;
  outline: none;
  resize: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.typing-display {
  display: inline;
  font-family: var(--font-sans);
  font-size: 15px;
  color: #1e293b;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}

.type-cursor {
  display: inline;
  font-family: var(--font-mono);
  font-weight: 300;
  font-size: 17px;
  color: #0f172a;
  margin-left: 2px;
  animation: blinkCursor 1s step-start infinite;
  pointer-events: none;
}

@keyframes blinkCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Right Hamster Column */
.window-right {
  width: 276px;
  height: 290px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  will-change: transform;
  position: relative;
  z-index: 2;
  background: transparent;
  overflow: visible;
  border-radius: 16px;
}

/* 스페이스 바 자리표: 2→3 전환에서 픽쥐를 들고 옮기는 동안 셀 안 최종 위치에 고정 표시 (좌표/배율은 JS가 잡음) */
.docked-space-pedestal {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  display: none;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.docked-space-pedestal .docked-desk-shadow {
  position: absolute;
  width: 165px;
  height: 18px;
  left: 50%;
  bottom: -6px;
  background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.03) 60%, transparent 100%);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

.docked-space-pedestal .space-keycap {
  width: 124px;
  height: 35px;
  background: #cbd5e1;
  border-radius: 7px;
  box-shadow: 0 5px 0 #94a3b8, 0 6px 10px rgba(0,0,0,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.docked-space-pedestal .space-keycap .keycap-inner {
  width: 114px;
  height: 27px;
  background: #f8fafc;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'NeoDunggeunmo', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

.hero-hamster-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: transparent;
  will-change: transform;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
  pointer-events: none !important;
}

.zoom-macro-badge,
.scroll-nudge-badge {
  display: none !important;
}

/* Desktop Wallpaper Layer */
.desktop-wallpaper-layer {
  position: absolute;
  top: 38px;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('./assets/img/desktop_wallpaper.jpg');
  background-size: cover;
  background-position: center 60%;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.04);
  z-index: 1;
  overflow: hidden;
}

.comnyang-window.desktop-mode .desktop-wallpaper-layer {
  opacity: 1;
  transform: scale(1.0);
  pointer-events: auto;
}

.desktop-wallpaper-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.32) 100%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

.desktop-icons {
  position: absolute;
  top: 16px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 3;
}

.desktop-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  width: 58px;
  text-align: center;
}

.desktop-icon-glyph {
  font-size: 22px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  transition: transform 0.15s ease;
}

.desktop-icon-item:hover .desktop-icon-glyph {
  transform: scale(1.15);
}

.desktop-icon-name {
  font-family: 'NeoDunggeunmo', ui-monospace, sans-serif;
  font-size: 10px;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  letter-spacing: -0.02em;
  background: rgba(0, 0, 0, 0.45);
  padding: 1px 5px;
  border-radius: 3px;
}

.desktop-taskbar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dock-mini-app {
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
  transition: transform 0.15s ease;
}

.dock-mini-app:hover {
  transform: translateY(-3px) scale(1.15);
}

.dock-mini-active {
  position: relative;
}

.dock-mini-active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

.btn-desktop-return {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #0f172a;
  border-radius: 9999px;
  padding: 4px 11px;
  font-family: 'NeoDunggeunmo', ui-monospace, sans-serif;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-desktop-return:hover {
  background: var(--amber);
  color: #ffffff;
  border-color: var(--amber-hover);
}

.comnyang-window.desktop-mode {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.15), 0 0 24px rgba(217, 119, 6, 0.15);
}

.comnyang-window.desktop-mode .window-body {
  background: transparent !important;
}

.comnyang-window.desktop-mode .window-left {
  transform: translateY(-135%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.55s ease !important;
}

.comnyang-window.desktop-mode .window-right {
  transform: translate3d(-176px, 0, 0) !important;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 4;
}

/* ============================================================
   SCROLLYTELLING ARCHITECTURE & STEP CHOREOGRAPHY
   ============================================================ */
.scrollytelling-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.sticky-stage-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

/* Story Navigation Pills */
.story-nav-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid #e2e8f0;
  padding: 6px 12px;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.story-pill {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  font-family: var(--font-pixel);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  user-select: none;
  --p: 0; /* 타임라인 진행률 0~1 (스크립트가 갱신) */
}

/* 타임라인: 활성 알약 안을 왼쪽→오른쪽으로 채워 소요 시간을 보여준다 */
.story-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  width: calc(var(--p) * 100%);
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.45), rgba(245, 158, 11, 0.28));
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.story-pill.active::before { opacity: 1; }
.story-pill.done .pill-dot { background: var(--amber); opacity: 1; }

.story-pill:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.story-pill.active {
  color: #b45309;
  background: #fef3c7;
  border-color: rgba(217, 119, 6, 0.4);
  box-shadow: 0 1px 4px rgba(217, 119, 6, 0.15);
}

.pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.story-pill.active .pill-dot {
  opacity: 1;
  box-shadow: 0 0 6px var(--amber);
}

/* Story Chapter Description Card */
.story-chapter-card {
  width: 100%;
  max-width: var(--content-max);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 16px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-sizing: border-box;
}

.story-chapter-card:hover {
  border-color: rgba(217, 119, 6, 0.4);
}

.chapter-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chapter-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.step1-variation-switch,
.step2-variation-switch,
.step-variation-switch {
  display: inline-flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
}

.step1-var-btn,
.step2-var-btn,
.step-var-btn {
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.step1-var-btn.active,
.step2-var-btn.active,
.step-var-btn.active {
  background: #ffffff;
  color: #d97706;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  font-weight: 700;
}

/* Step 1 Version 2 Wide Typing & Bottom Center Peeking Layout */
.comnyang-window.step1-v2 .window-body {
  position: relative;
  min-height: var(--cell-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 24px 32px 28px;
}

.comnyang-window.step1-v2 .window-left {
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
  z-index: 2;
  position: relative;
  height: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.comnyang-window.step1-v2 .window-typing-lead {
  font-size: 17.5px;
  font-weight: 700;
  margin-bottom: 8px;
  word-break: keep-all;
}

.comnyang-window.step1-v2 .window-right {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  pointer-events: none;
  z-index: 1;
  width: 276px;
  height: 290px;
  overflow: visible;
}

.comnyang-window.step1-v2 .interactive-typing-line {
  width: 100%;
  max-width: 100%;
  word-break: keep-all;
}

.comnyang-window.step1-v2 .live-type-input {
  font-size: 16.5px;
  line-height: 1.45;
  word-break: keep-all;
}

.comnyang-window.step1-v2 .typing-display {
  font-size: 16.5px;
  line-height: 1.45;
  max-width: 100%;
  word-break: keep-all;
}

.comnyang-window.step1-v2 .type-cursor {
  font-size: 18px;
}

/* Step 2 Version 2: Space Key & Feet Close-Up Layout (Hamster slides UP, Text slides DOWN) */
.comnyang-window.step2-active .window-body {
  position: relative;
  min-height: var(--cell-h);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 24px 32px 30px;
}

.comnyang-window.step2-active .window-left {
  width: 100%;
  max-width: 100%;
  flex: 1 1 100%;
  z-index: 2;
  position: relative;
  height: 100%;
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.comnyang-window.step2-active #windowTitleBlock {
  opacity: 0;
  transform: translateY(-16px);
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

.comnyang-window.step2-active .window-right {
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  pointer-events: none;
  z-index: 1;
  width: 276px;
  height: 290px;
  overflow: visible;
}

.comnyang-window.step2-active .window-typing-group {
  margin-top: auto;
  width: 100%;
  position: relative;
  z-index: 3;
}

.comnyang-window.step2-active .window-typing-lead {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.comnyang-window.step2-active .interactive-typing-line {
  width: 100%;
  max-width: 100%;
}

.comnyang-window.step2-active .live-type-input,
.comnyang-window.step2-active .typing-display {
  font-size: 18px;
  max-width: 100%;
}

.comnyang-window.step2-active .type-cursor {
  font-size: 20px;
}

.chapter-card-tag {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.05em;
  font-weight: 700;
}

.chapter-card-badge {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.chapter-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.chapter-card-desc {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
}

/* ============================================================
   POSE SHOWCASE CARDS SECTION (자세 카드 섹션)
   ============================================================ */
.pose-cards-section {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pose-section-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pose-section-badge {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.pose-section-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.pose-section-sub {
  font-size: 13.5px;
  color: #475569;
}

.pose-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.pose-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.pose-card:hover {
  background: #f8fafc;
  border-color: rgba(217, 119, 6, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.1);
}

.pose-card.active {
  border-color: var(--amber);
  box-shadow: 0 0 0 1.5px var(--amber), 0 10px 28px rgba(217, 119, 6, 0.18);
  background: #fffdfa;
}

.pose-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pose-icon {
  font-size: 26px;
  line-height: 1;
}

.pose-shortcut-kbd {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.pose-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.pose-desc {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
  flex: 1;
}

.pose-action-btn {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  font-weight: 700;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.pose-card:hover .pose-action-btn,
.pose-card.active .pose-action-btn {
  opacity: 1;
}

.pose-card-upcoming {
  opacity: 0.88;
  border-style: dashed;
  background: #fafafa;
}

.pose-card-upcoming:hover {
  opacity: 1;
  border-style: solid;
}

/* ============================================================
   INTERACTIVE MOTION DOCK (KEYCAPS ROW)
   ============================================================ */
.motion-dock {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dock-caption {
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.04em;
}

.dock-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.dock-key {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  outline: none;
  transition: all 0.12s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dock-key:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
}

.dock-key:active,
.dock-key.active {
  background: #fffdfa;
  border-color: var(--amber);
  box-shadow: 0 0 0 1.5px var(--amber), 0 4px 12px rgba(217, 119, 6, 0.15);
}

.key-kbd {
  font-family: var(--font-pixel);
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  border-bottom: 2px solid #94a3b8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.dock-key.active .key-kbd {
  color: #b45309;
  background: #fef3c7;
  border-color: #f59e0b;
}

.key-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  pointer-events: none;
}

.dock-key.active .key-label {
  color: #0f172a;
}

/* ============================================================
   STREAMLINED PURCHASE PANEL
   ============================================================ */
/* ============================================================
   COMNYANG-INSPIRED ANALOGUE PURCHASE PANEL
   Two-column layout: Features Checklist (Left) & All Pricing (Right)
   ============================================================ */
.purchase-panel {
  width: 100%;
  margin-top: 56px;
}

.purchase-card {
  background: #ffffff;
  border: 1.5px solid var(--amber);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.08);
  position: relative;
}

.purchase-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
  align-items: start;
}

/* --- Left Column: Features & Adoption Pitch --- */
.purchase-features-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
}

.features-header {
  margin-bottom: 12px;
}

.features-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.34;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  word-break: keep-all;
}

.features-desc {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
}

.purchase-checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.purchase-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 11.8px;
  color: #334155;
  line-height: 1.45;
  word-break: keep-all;
}

.purchase-checklist .chk-icon {
  color: #16a34a;
  font-weight: 800;
  font-size: 13px;
  line-height: 1.25;
  flex-shrink: 0;
}

.purchase-checklist .chk-text {
  flex: 1;
}

.purchase-already-wrap {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed #cbd5e1;
}

.btn-already-buyer {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s ease;
  text-align: left;
  line-height: 1.4;
}

.btn-already-buyer:hover {
  color: var(--amber);
}

/* --- Right Column: All Pricing Elements Stacked --- */
.purchase-pricing-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

/* Box 1: Tier Base Price (Live Hamster Perches Here) */
.pricing-tier-box {
  background: #ffffff;
  border: 1.5px solid #0f172a;
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 2px 2px 0px #0f172a;
  position: relative;
}

.tier-box-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tier-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.tier-badge {
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 600;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 1.5px 5px;
  border-radius: 4px;
  align-self: flex-start;
  white-space: nowrap;
}

.tier-box-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.tier-price {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

.tier-launch-badge {
  font-family: var(--font-pixel);
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
  background: #0f172a;
  padding: 1.5px 6px;
  border-radius: 3px;
  white-space: nowrap;
}

/* Box 2: Supporter Addon Card */
.pricing-supporter-box {
  background: #f8fafc;
  border: 1.5px solid #0f172a;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 2px 2px 0px #0f172a;
}

.supporter-box-header {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.supporter-box-title {
  font-family: var(--font-pixel);
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}

.supporter-box-sub {
  font-size: 10.5px;
  color: #64748b;
  line-height: 1.3;
}

/* Warm Sunflower Yellow Card like Comnyang */
.supporter-addon-card {
  background: #fef08a;
  border: 1.5px solid #0f172a;
  border-radius: 7px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, transform 0.1s ease;
  box-shadow: 1px 1px 0px #0f172a;
}

.supporter-addon-card:hover {
  background: #fde047;
  transform: translateY(-1px);
}

.supporter-addon-card:active {
  transform: translateY(0);
}

.supporter-addon-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.supporter-checkbox {
  accent-color: #0f172a;
  width: 14px;
  height: 14px;
  cursor: pointer;
  flex-shrink: 0;
}

.supporter-addon-label {
  font-family: var(--font-pixel);
  font-size: 10.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supporter-addon-price {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
  flex-shrink: 0;
}

/* Box 3: Total Price Card */
.pricing-total-box {
  background: #ffffff;
  border: 1.5px solid #0f172a;
  border-radius: 10px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 2px 2px 0px #0f172a;
}

.total-box-label {
  font-family: var(--font-pixel);
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.total-box-val {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}

/* Box 4: CTA Buy Button & Security Note */
.pricing-action-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-buy-block {
  width: 100%;
  background: var(--amber);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 14.5px;
  font-weight: 700;
  border: 1.5px solid #0f172a;
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 2px 2px 0px #0f172a;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.1s ease;
  white-space: nowrap;
}

.btn-buy-block:hover {
  background: var(--amber-hover);
  box-shadow: 3px 3px 0px #0f172a;
  transform: translate(-1px, -1px);
}

.btn-buy-block:active {
  box-shadow: 1px 1px 0px #0f172a;
  transform: translate(1px, 1px);
}

.btn-buy-block:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.payment-security-note {
  font-size: 9.5px;
  color: #64748b;
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   AI AGENT COMPANION & REACTION SECTION (orca-paste-1789370578700)
   5 AI agent circular badges in a row + Flying alert banner
   ============================================================ */
.agent-companion-card {
  background: #ffffff;
  border: 1.5px solid #0f172a;
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.agent-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.agent-badge {
  font-family: var(--font-pixel);
  font-size: 10.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 6px;
  display: inline-block;
}

.agent-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 5px;
  line-height: 1.35;
  word-break: keep-all;
}

.agent-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
  word-break: keep-all;
}

.agent-circle-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  align-items: center;
}

.agent-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

.agent-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1.5px solid #0f172a;
  box-shadow: 2px 2px 0px #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  user-select: none;
}

.agent-circle:hover {
  transform: translateY(-2px);
  box-shadow: 3px 3px 0px #0f172a;
}

.agent-circle.claude { background: #fbf5ef; }
.agent-circle.cursor { background: #eff6ff; }
.agent-circle.codex { background: #f0fdf4; }
.agent-circle.antigravity { background: #fdf2f8; }
.agent-circle.terminal { background: #f1f5f9; }

.agent-name {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.agent-role {
  font-size: 9px;
  color: #64748b;
  line-height: 1.25;
  white-space: nowrap;
}

.agent-preview-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.agent-preview-lead {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.preview-icon {
  font-size: 15px;
  flex-shrink: 0;
}

.preview-text {
  font-size: 11px;
  color: #334155;
  font-weight: 600;
  line-height: 1.35;
  word-break: keep-all;
}

.btn-fly-demo {
  background: #0f172a;
  color: #ffffff;
  font-family: var(--font-pixel);
  font-size: 10.5px;
  font-weight: 700;
  border: 1.5px solid #0f172a;
  border-radius: 6px;
  padding: 6px 11px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 1.5px 1.5px 0px #0f172a;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-fly-demo:hover {
  background: var(--amber);
  border-color: var(--amber);
  transform: translateY(-1px);
  box-shadow: 2px 2px 0px #0f172a;
}

.btn-fly-demo:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .agent-circle-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .agent-preview-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
}

/* ============================================================
   INTEGRATED LOWER SECTIONS (SPECS, AI-SYNC, DOWNLOAD)
   ============================================================ */
.section {
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-meta {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.section-h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.section-p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 8px;
}

/* Specs Grid */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.spec-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 22px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.spec-card:hover {
  background: #f8fafc;
  border-color: rgba(217, 119, 6, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.08);
}

.spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.spec-badge {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
  font-weight: 600;
  transition: all 0.2s ease;
}

.spec-card:hover .spec-badge {
  background: #fde68a;
  border-color: rgba(217, 119, 6, 0.5);
}

.spec-index {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 0;
}

.spec-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.spec-card p {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.55;
}

/* Specs Emotion Summary Bar */
.specs-summary-bar {
  margin-top: 10px;
  background: #fffbeb;
  border: 1px dashed rgba(217, 119, 6, 0.35);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
}

.summary-pill {
  font-family: var(--font-pixel);
  font-size: 11px;
  font-weight: 700;
  color: #92400e;
  background: #fde68a;
  border: 1px solid #f59e0b;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.summary-content {
  font-size: 13.5px;
  color: #1e293b;
  line-height: 1.55;
  margin: 0;
}

.summary-content strong {
  color: #b45309;
  font-weight: 600;
}

@media (max-width: 640px) {
  .specs-summary-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }
}

/* AI Agent Sync Showcase */
.terminal-showcase {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.term-header {
  background: #1e293b;
  border-bottom: 1px solid #334155;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.term-dot {
  width: 9px;
  height: 9px;
  background: #475569;
  border-radius: 50%;
}

.term-name {
  font-size: 11px;
  color: #94a3b8;
  margin-left: 6px;
}

.term-body {
  padding: 18px 20px;
  font-size: 13px;
  line-height: 1.85;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #f1f5f9;
}

.prompt {
  color: #fbbf24;
  margin-right: 6px;
}

.term-pill {
  padding: 4px 10px;
  border-radius: 6px;
  width: fit-content;
  font-size: 12px;
  font-weight: 600;
  margin: 2px 0;
}

.term-pill.thinking {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.term-pill.success {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* Download Cards */
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.dl-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.dl-card:hover {
  border-color: rgba(217, 119, 6, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(217, 119, 6, 0.08);
}

.dl-card.active-card {
  border-color: var(--amber);
  background: #fffdfa;
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.12);
}

.dl-os {
  font-family: var(--font-pixel);
  font-size: 11px;
  color: var(--amber);
  font-weight: 700;
}

.dl-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.dl-card p {
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 8px;
  line-height: 1.45;
}

.btn-dl {
  margin-top: auto;
  background: var(--amber);
  color: #ffffff;
  font-weight: 700;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-dl:hover {
  background: var(--amber-hover);
}

.btn-dl-subtle {
  margin-top: auto;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  text-align: center;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-dl-subtle:hover {
  border-color: var(--amber);
  color: var(--amber);
  background: #ffffff;
}

/* ============================================================
   MINIMAL FOOTER
   ============================================================ */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 0 8px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-btn,
.footer-link {
  background: transparent;
  border: none;
  color: #64748b;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  transition: color 0.15s ease;
}

.footer-btn:hover,
.footer-link:hover {
  color: #0f172a;
}

.footer-sep {
  opacity: 0.35;
}

/* ============================================================
   CLEAN MODALS
   ============================================================ */
.modal-dialog {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-md);
  padding: 0;
  max-width: 480px;
  width: 90%;
  margin: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
}

.modal-shell {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}

.modal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--amber);
}

.modal-close {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.modal-close:hover {
  color: #0f172a;
}

.modal-body {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
}

.modal-desc {
  font-size: 12.5px;
  color: #475569;
  margin-bottom: 16px;
}

.reset-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-field label {
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
}

.form-field input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xs);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: #0f172a;
  outline: none;
}

.form-field input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

.btn-modal-submit {
  background: #0f172a;
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  border: none;
  border-radius: var(--radius-xs);
  padding: 11px;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.15s ease;
}

.btn-modal-submit:hover {
  background: #1e293b;
}

.reset-feedback {
  font-size: 11.5px;
  min-height: 18px;
  margin-top: 4px;
}

.success-box {
  background: #fffbeb;
  border: 1px dashed var(--amber);
  padding: 12px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: 12px;
  color: #78350f;
}

.success-box ol {
  margin: 6px 0 0 16px;
  line-height: 1.55;
}

/* ============================================================
   RESPONSIVE (MOBILE OPTIMIZATIONS)
   ============================================================ */
@media (max-width: 640px) {
  .download-cards {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .pose-cards-grid {
    grid-template-columns: 1fr;
  }
  .story-nav-pills {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 6px 8px;
    -webkit-overflow-scrolling: touch;
  }
  .story-pill {
    flex-shrink: 0;
  }
  .top-bar-nav .nav-link {
    display: none;
  }
  .top-bar-nav .nav-link-btn {
    display: block;
  }
}

@media (max-width: 540px) {
  .dock-keys {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .page-wrap {
    padding: 72px 12px 36px;
    gap: 18px;
  }

  .stack-stage {
    padding: 22px 16px;
  }

  .window-body,
  .window-body.layout-flipped {
    flex-direction: column-reverse;
    align-items: center;
    padding: 24px 18px 28px;
    gap: 16px;
  }

  .window-left {
    text-align: center;
    width: 100%;
  }

  .scroll-web-backdrop {
    left: 0;
    right: 0;
    top: 0;
    bottom: auto;
    height: 270px;
    border-left: none;
    border-bottom: 1px solid #edf2f7;
  }

  .swb-track {
    left: 20px;
    right: 26px;
  }

  .comnyang-window.scroll-web-active .window-left {
    width: 100%;
    background: #ffffff;
    padding-top: 10px;
    padding-right: 0;
  }

  .window-app-title {
    justify-content: center;
    font-size: 30px;
  }

  .window-app-sub {
    white-space: normal;
    margin-bottom: 20px;
  }

  .interactive-typing-line {
    justify-content: center;
  }

  .purchase-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* ============================================================
   PINNED HERO: 기본 소개(스텝 1~4) 종료 후
   픽쥐는 화면 그 자리에 고정, 스테이지 2~4가 그 아래로 흐른다.
   iframe을 옮기면 리로드되므로 스테이지 1 슬라이드를 투명 오버레이로 남겨둔다.
   ============================================================ */
body.hamster-pinned .stage-slide.stage-1 {
  transform: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 40 !important;
  overflow: visible !important;
}

body.hamster-pinned .stage-1 .comnyang-window {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  overflow: visible;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body.hamster-pinned .stage-1 .window-body {
  overflow: visible;
  clip-path: none;
  background: transparent;
}

body.hamster-pinned .stage-1 .window-title-block,
body.hamster-pinned .stage-1 .window-titlebar,
body.hamster-pinned .stage-1 .window-left,
body.hamster-pinned .stage-1 .desktop-wallpaper-layer,
body.hamster-pinned .stage-1 .docked-space-pedestal,
body.hamster-pinned .stage-1 .virtual-guide-cursor,
body.hamster-pinned .stage-1 .story-nav-pills,
body.hamster-pinned .stage-1 .scroll-web-backdrop,
body.hamster-pinned .stage-1 .story-chapter-card {
  opacity: 0 !important;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}

body.hamster-pinned .stage-1 .hero-hamster-frame {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.10));
}

/* ============================================================
   STEP 4 BACKDROP: 뒤에서 웹페이지가 스크롤되는 느낌의 스켈레톤 페이지
   - 왼쪽 텍스트 영역은 순수 흰색(#ffffff) 바탕을 유지.
   - 캐릭터 뒤쪽(오른쪽)에만 스크롤되는 웹페이지 느낌을 연출.
   ============================================================ */
.scroll-web-backdrop {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  left: 44%;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: #f8fafc;
  border-left: 1px solid #edf2f7;
  transition: opacity 0.5s ease;
}

.comnyang-window.scroll-web-active .scroll-web-backdrop {
  opacity: 1;
}

.comnyang-window.scroll-web-active .window-left {
  background: #ffffff;
  position: relative;
  z-index: 2;
  padding-right: 12px;
}

.swb-track {
  position: absolute;
  left: 16px;
  right: 26px;
  top: 0;
  will-change: transform;
  transform: translateY(0);
}

.swb-half {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 0 20px;
}

.swb-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 22px;
  padding: 0 4px;
}
.swb-nav span {
  width: 42px;
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
}
.swb-nav i {
  margin-left: auto;
  width: 60px;
  height: 14px;
  border-radius: 7px;
  background: #fde9cf;
}

.swb-hero {
  height: 82px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eef2f7 0%, #e5ebf2 100%);
}

.swb-line {
  height: 9px;
  border-radius: 5px;
  background: #e9edf3;
}
.swb-line.w40 { width: 40%; }
.swb-line.w55 { width: 55%; }
.swb-line.w60 { width: 60%; }
.swb-line.w65 { width: 65%; }
.swb-line.w70 { width: 70%; }
.swb-line.w75 { width: 75%; }
.swb-line.w80 { width: 80%; }
.swb-line.w85 { width: 85%; }
.swb-line.w90 { width: 90%; }
.swb-line.w95 { width: 95%; }

.swb-row {
  display: flex;
  gap: 12px;
}
.swb-card {
  flex: 1;
  height: 58px;
  border-radius: 10px;
  background: #f1f4f8;
  border: 1px solid #e6ebf1;
}
.swb-card.tall { height: 92px; }

.swb-media {
  height: 120px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 40%, #e3e9f1 0 18%, transparent 19%),
    linear-gradient(180deg, #eef2f7, #e7edf4);
}

.swb-scrollbar {
  position: absolute;
  top: 8px;
  bottom: 8px;
  right: 8px;
  width: 6px;
  border-radius: 3px;
  background: #eef1f5;
}
.swb-thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 24%;
  border-radius: 3px;
  background: #cbd3dd;
}
/* 트랙/썸 위치는 Step 4 스크립트가 팔 동작(스크롤 펄스)에 스프링으로 붙여 움직인다 */


/* ============================================================
   CRT / 브라운관 TV 레이어
   - 페이지 전체를 살짝 볼록한 아날로그 게임 화면처럼: 둥근 화면 모서리 + 어두운 베젤,
     스캔라인, 가장자리 비네트(볼록 곡면), 유리 반사광, 천천히 내려가는 롤링 바.
   - 레이아웃/transform에는 손대지 않고 고정 오버레이(pointer-events: none)로만 얹는다.
   ============================================================ */
:root {
  --crt-bezel: #15151b;
  --crt-radius: clamp(18px, 2.6vw, 34px);
}

html {
  background-color: var(--crt-bezel);
}

/* 화면 유리: 둥근 모서리 바깥은 베젤 색으로 채워 '모니터 안쪽'처럼 보이게 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 4000;
  pointer-events: none;
  border-radius: var(--crt-radius);
  background:
    /* 좌상단 유리 하이라이트 */
    radial-gradient(ellipse 60% 38% at 22% 0%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%),
    /* (스캔라인/서브픽셀 줄무늬는 넣지 않는다 — 볼록한 유리 형태만) */
    /* 볼록 곡면: 중앙은 맑고 가장자리로 갈수록 어둡게 */
    radial-gradient(ellipse 82% 76% at 50% 48%, rgba(0, 0, 0, 0) 58%, rgba(28, 22, 14, 0.10) 82%, rgba(28, 22, 14, 0.26) 100%),
    /* 좌우 곡면 음영 */
    linear-gradient(90deg, rgba(0, 0, 0, 0.11), rgba(0, 0, 0, 0) 9%, rgba(0, 0, 0, 0) 91%, rgba(0, 0, 0, 0.11)),
    /* 상하 곡면 음영 */
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0) 7%, rgba(0, 0, 0, 0) 93%, rgba(0, 0, 0, 0.10));
  box-shadow:
    0 0 0 100vmax var(--crt-bezel),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    inset 0 0 0 3px rgba(0, 0, 0, 0.10),
    inset 0 0 70px rgba(0, 0, 0, 0.16);
}

/* (스캔라인 및 색수차 제거 — 깔끔하고 선명한 텍스트 유지) */

/* 오렌지 CTA 버튼: 형광 픽셀 버튼처럼 살짝 발광 */
.btn-buy-modern,
.nav-link-btn {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 0 14px rgba(245, 158, 11, 0.35);
}

/* ============================================================
   아날로그 사각형 카드 & 버튼 (깔끔하고 단정한 라운드 직사각형 규격)
   - 왜곡 없는 깔끔한 CSS border-radius로 레트로 모니터/아날로그 기기 느낌 구현
   - 지도/모달 규격처럼 반듯하고 세련된 직사각형 모서리 곡률 유지
   ============================================================ */
.purchase-card {
  background: #ffffff;
  border: 1.5px solid var(--amber);
  border-radius: 16px;
  border-image: none;
  box-shadow: 0 8px 30px rgba(217, 119, 6, 0.08);
}

.btn-buy-modern {
  background: var(--amber);
  border: none;
  border-radius: 10px;
  border-image: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 4px 14px rgba(217, 119, 6, 0.28);
}

.btn-buy-modern:hover {
  background: var(--amber-hover);
  border: none;
  border-image: none;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.45) inset,
    0 6px 18px rgba(217, 119, 6, 0.38);
}

.stage-card:not(.stage-card-transparent) {
  border-image: none;
}

.comnyang-window {
  border-image: none;
}

.story-chapter-card,
.story-chapter-card:hover {
  border-image: none;
}

/* 고정(pinned) 모드: 카드 프레임을 걷어내고 햄스터만 남긴다 */
body.hamster-pinned .stage-1 .comnyang-window {
  border-image: none;
}

body.hamster-pinned .stage-1 .hero-hamster-frame {
  filter: none !important;
}
