/* ============================================================
   renewal-home.css — 四柱鏡·사주경 (2026-07 · Pass 3)
   ============================================================
   컨트롤룸에서 본 방송실 · 관측 창
   - 배경 전체 = 방음 폼 벽 (컨트롤룸 뒷벽)
   - 중앙 = 두꺼운 메탈 창 프레임 → 유리 → 방송실 안쪽
   - 창 안쪽 = 어둠 (만월아씨 자리 예약) + 뒷 실내 어렴풋 힌트
   - 창 위 중앙 = 전등 케이스 스타일 ON AIR (매달림)
   - 창 아래 = 헤드라인 + CTA + 파형
   ============================================================ */

/* ─── 기존 홈 잔재 완전 숨김 ────────────────────────────── */
#cardGallery,
.card-gallery,
.home-cats,
.home-cards-wrap,
.home-cards,
.home-reviews,
.app-container > .header-ornament,
.app-container > h1,
.app-container > .subtitle {
  display: none !important;
}

/* 우상단 전체화면 버튼 완전 숨김 */
#fullscreenBtn,
.fullscreen-btn { display: none !important; }

/* ── 상단바 완전 제거 ───────────────────────────────────── */
.app-header { display: none !important; }

/* ── 메인 홈 (상단바 없어서 뷰포트 전체 사용) ──────────────── */
.home-main {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ============================================================
   히어로 — 컨트롤룸에서 본 방송실
   ============================================================ */
.home-hero {
  position: relative;
  min-height: calc(100vh - 60px);
  min-height: calc(100dvh - 60px);
  padding: 0;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  /* 어두운 폴백 (배경 이미지 로드 전) */
  background: #0a0508;
}
@media (min-width: 768px) {
  .home-hero { min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); }
}
/* 붉은 앰비언트 glow · 상단 ON AIR + 하단 pool + 좌우 warm 대칭 · 느린 브리딩 애니메이션 */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(ellipse 40% 12% at 50% 5%, rgba(210, 45, 60, 0.5) 0%, transparent 62%),
    radial-gradient(ellipse 46% 14% at 50% 94%, rgba(210, 45, 60, 0.55) 0%, transparent 70%),
    radial-gradient(ellipse 32% 24% at 15% 48%, rgba(165, 38, 48, 0.32) 0%, transparent 62%),
    radial-gradient(ellipse 32% 24% at 85% 48%, rgba(165, 38, 48, 0.32) 0%, transparent 62%);
  mix-blend-mode: screen;
  animation: redAmbientBreathe 9s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes redAmbientBreathe {
  0%, 100% { opacity: 0.55; transform: translateY(-1.2%) scale(0.97); }
  50%      { opacity: 1.05; transform: translateY(1.2%)  scale(1.05); }
}
/* 케이블 애니메이션 레이어 · 별도 pseudo 에서 slow drift + subtle bob */
.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: url('../media/bg/floor_cables.svg') center 92% / 108% auto no-repeat;
  animation: cablesDrift 16s ease-in-out infinite;
  will-change: transform;
}
@keyframes cablesDrift {
  0%, 100% { transform: translateX(-1.8%) translateY(0.5%); }
  50%      { transform: translateX(1.8%)  translateY(-0.5%); }
}
@media (prefers-reduced-motion: reduce) {
  .home-hero::before { animation: none; opacity: 0.9; }
  .home-hero::after  { animation: none; transform: none; }
}

/* ============================================================
   방송실 배경 · 붉게 물든 컨트롤룸 (심야편 참조 이미지 매칭)
   - 어두운 페인터리 벽 (상단 진회색-청록)
   - 하단으로 갈수록 붉게 물듬 (바닥 반사)
   - 우리 스튜디오 창이 중앙에 얹혀서 원본 이미지의 TV 자리 자연 대체
   ============================================================ */
/* 방송실 무드 · pure CSS + SVG 자체 제작 (외부 참조 이미지 사용 없음)
   레이어 스택 (위→아래):
   1. 바닥 케이블 SVG (유기적 곡선 + 붉은 rim light)
   2. 바닥 붉은 pool (radial · 하단 집중)
   3. 바닥↔벽 지평선 다크닝
   4. 벽 warm 좌상단 (radial 유기 패치)
   5. 벽 warm 우중앙 (radial 유기 패치)
   6. 카드 뒤 어둠 (radial · 대비 확보)
   7. 상단 ON AIR bleed
   8. 페인터리 벽 노이즈 SVG (feTurbulence · bleed/strokes/warm/grain 4 필터 컴포짓)
   9. 베이스 벽 세로 그라디언트 (charcoal → crimson) */
.stage-foam {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 48% 15% at 50% 94%, rgba(190, 38, 48, 0.6) 0%, rgba(110, 18, 26, 0.28) 42%, transparent 72%),
    linear-gradient(0deg, rgba(10, 3, 8, 0.55) 0%, transparent 22%),
    radial-gradient(ellipse 38% 30% at 20% 50%, rgba(85, 22, 28, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 38% 30% at 80% 50%, rgba(85, 22, 28, 0.22) 0%, transparent 62%),
    radial-gradient(ellipse 42% 45% at 50% 32%, rgba(2, 2, 4, 0.7) 0%, transparent 72%),
    radial-gradient(ellipse 45% 14% at 50% 3%, rgba(180, 32, 44, 0.44) 0%, transparent 62%),
    url('../media/bg/wall_paint.svg') center center / cover no-repeat,
    linear-gradient(180deg,
      #08070c 0%,
      #0d0c14 22%,
      #100e18 45%,
      #16101c 62%,
      #1c1220 78%,
      #180a14 91%,
      #05030a 100%),
    #05030a;
}
/* 배경 위 · vignette + 다크닝 (텍스트·서류 대비 확보) */
.stage-foam::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* 상단 · ON AIR 붉은 반사 강화 */
    radial-gradient(ellipse 55% 25% at 50% 0%, rgba(180, 20, 40, 0.28) 0%, transparent 60%),
    /* 하단 · 서류 CTA 자리 살짝 어둡게 (가독성) */
    linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, transparent 22%),
    /* 4모서리 vignette */
    radial-gradient(ellipse 100% 90% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.55) 100%),
    /* 미세 필름 그레인 */
    repeating-linear-gradient(45deg,
      rgba(255, 255, 255, 0.014) 0px 1px,
      transparent 1px 3px);
  pointer-events: none;
  mix-blend-mode: multiply;
}
/* 미세 CRT 스캔라인 (심야 아날로그 톤) */
.stage-foam::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.11) 2px,
    rgba(0, 0, 0, 0.11) 3px
  );
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: multiply;
  opacity: 0.5;
}


/* ============================================================
   방송실 관측 창 · 두꺼운 메탈 프레임 + 유리 + 안쪽 실내
   ============================================================ */
.studio-window {
  position: absolute;
  left: 50%;
  top: 9%;         /* 14% → 9% · 위로 당김 · ON AIR 바로 아래 여유 있게 */
  transform: translateX(-50%);
  /* 세로 관측창 · 만월아씨(9:16 원본) 거의 온전히 담기게 9:14 종횡비 */
  aspect-ratio: 9 / 14;
  height: min(58dvh, 490px);
  max-width: 92vw;
  z-index: 3;
  padding: 10px;
  border-radius: 22px;
  background:
    linear-gradient(180deg,
      #58595e 0%,
      #48484e 12%,
      #3a3a40 40%,
      #26262c 75%,
      #16161c 100%);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.88),
    0 12px 24px rgba(0, 0, 0, 0.65),
    inset 0 3px 0 rgba(255, 255, 255, 0.12),
    inset 0 -3px 0 rgba(0, 0, 0, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
@media (min-width: 768px) {
  .studio-window {
    top: 10%;
    height: min(60dvh, 570px);
    padding: 14px;
    border-radius: 26px;
  }
}
@media (min-width: 1280px) {
  .studio-window {
    top: 12%;
    height: min(60dvh, 610px);
    padding: 16px;
    border-radius: 30px;
  }
}

/* 유리 안쪽 (창 유리) */
.studio-glass {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 13px;
  overflow: hidden;
  background:
    linear-gradient(180deg,
      #0a0608 0%,
      #05030a 50%,
      #0a0608 100%);
  box-shadow:
    inset 0 0 80px rgba(0, 0, 0, 0.95),
    inset 0 6px 14px rgba(0, 0, 0, 0.75),
    inset 0 -4px 10px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .studio-glass { border-radius: 15px; }
}
@media (min-width: 1280px) {
  .studio-glass { border-radius: 18px; }
}

/* ON AIR 전등에서 창 유리로 흘러내리는 붉은 반사 (ON 시) */
.studio-glass::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45%;
  height: 20%;
  background: radial-gradient(ellipse 100% 100% at 50% 0%,
    rgba(255, 60, 90, 0.28) 0%,
    rgba(201, 36, 63, 0.12) 40%,
    transparent 75%);
  opacity: 0;
  transition: opacity 1.4s ease;
  z-index: 6;
  pointer-events: none;
}
.hero-scene.on-air .studio-glass::before { opacity: 1; }

/* 유리 반사 오버레이 (컨트롤룸 조명 반사 · 항상) */
.studio-glass-reflection {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    /* Top-left 하이라이트 (강한 스포트 반사) */
    radial-gradient(ellipse 45% 35% at 22% 12%, rgba(232, 223, 208, 0.08) 0%, transparent 55%),
    /* 상단 얇은 밝은 스트라이프 */
    linear-gradient(180deg, rgba(232, 223, 208, 0.04) 0%, transparent 12%),
    /* 좌측 세로 밝은 스트라이프 */
    linear-gradient(90deg, rgba(232, 223, 208, 0.025) 0%, transparent 8%);
}

/* 창 안쪽 실내 (방송실) */
.studio-interior {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* 창 안쪽 뒷벽 방음 폼 (더 dim) */
.interior-back-wall {
  position: absolute;
  inset: 0;
  background-color: #08040a;
  background-image:
    linear-gradient(45deg, rgba(232, 223, 208, 0.025) 25%, transparent 25%, transparent 75%, rgba(232, 223, 208, 0.025) 75%),
    linear-gradient(-45deg, rgba(0, 0, 0, 0.55) 25%, transparent 25%, transparent 75%, rgba(0, 0, 0, 0.55) 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  opacity: 0.5;
}
@media (min-width: 768px) {
  .interior-back-wall { background-size: 18px 18px; background-position: 0 0, 9px 9px; }
}

/* 창 안 천장 조명 반사 (창 상단 warm glow) */
.interior-ceiling-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: radial-gradient(ellipse 65% 100% at 50% 0%,
    rgba(232, 196, 122, 0.06) 0%,
    transparent 70%);
  pointer-events: none;
}

/* 창 안 붐 마이크 실루엣 (뒷 실내 힌트) */
.interior-boom {
  position: absolute;
  top: 6%;
  right: 8%;
  width: 26%;
  height: auto;
  opacity: 0.35;
  z-index: 1;
}
.interior-boom line { stroke: rgba(232, 223, 208, 0.55); stroke-width: 1.4; stroke-linecap: round; fill: none; }
.interior-boom circle { fill: rgba(232, 223, 208, 0.4); }
.interior-boom rect { fill: rgba(232, 223, 208, 0.12); stroke: rgba(232, 223, 208, 0.55); stroke-width: 1.3; }
.hero-scene.on-air .interior-boom {
  opacity: 0.55;
  transition: opacity 1.4s ease;
}

/* ============================================================
   만월아씨 앵커 (창 안 · 부스 안에서 대본 읽는 중)
   창 유리 뒤로 그녀가 보이는 관측 시점
   ============================================================ */
.anchor-slot {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

.anchor-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%; /* 얼굴·헤드폰·대본·마이크·믹서·촛불 균형 유지 */

  /* video ↔ canvas 스왑은 동일 프레임에서 즉시 (opacity transition 없음) */
  transition: filter 1.6s ease-out;
  /* OFF AIR — 방송실 어둠 속에서 대기 · 유리 너머 그림자 톤 */
  filter: brightness(0.62) contrast(1.08) saturate(0.82);
  will-change: filter, opacity;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* ON AIR 점화 → 만월아씨 조명 살아남 (창 너머 방송실이 켜지는 순간) */
.hero-scene.on-air .anchor-portrait {
  filter: brightness(0.94) contrast(1.05) saturate(0.98);
}

/* (지직 burst·jitter 제거 · 정신 사나움 사용자 명시) */

/* 역재생 전용 비디오 · 정재생 중엔 숨김 · 스왑 시 opacity JS 즉시 전환 */
.anchor-video-rev { opacity: 0; }
/* 정재생 비디오는 기본 opacity 1 · 역재생 진입 시 JS 로 0 세팅 */

/* 유리 너머 · 창 하단으로 갈수록 살짝 어두워짐 (거리감) */
.anchor-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    /* 하단 짙어지는 그림자 (책상 밑 어둠) */
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.32) 100%),
    /* 좌우 vignette (창 프레임 안쪽 그림자) */
    radial-gradient(ellipse 90% 100% at 50% 45%, transparent 55%, rgba(0, 0, 0, 0.28) 100%);
}

/* 접근성 · 모션 최소화 사용자에겐 정적 톤으로 즉시 표시 */
@media (prefers-reduced-motion: reduce) {
  .anchor-portrait {
    transition: none;
    filter: brightness(0.9) contrast(1.05) saturate(0.95);
  }
}

/* ============================================================
   ON AIR 전등 케이스 (창 위 중앙 매달림)
   ============================================================ */
.on-air-light {
  position: absolute;
  top: 1%;        /* 최상단에 딱 붙이기 · 브라켓은 살짝 위로 삐져나감 (프레임 느낌) */
  left: 50%;
  transform: translateX(-50%);
  width: 148px;
  height: 54px;
  z-index: 8;
}
@media (min-width: 768px) {
  .on-air-light { top: 1.4%; width: 190px; height: 66px; }
}
@media (min-width: 1280px) {
  .on-air-light { top: 1.8%; width: 220px; height: 76px; }
}

/* 매다는 브라켓/볼트 (전등 위쪽) */
.on-air-bracket {
  position: absolute;
  top: -12px;
  width: 3px;
  height: 14px;
  background: linear-gradient(180deg, #4a4a52 0%, #2a2a30 100%);
  border-radius: 1px 1px 0 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 4px rgba(0,0,0,0.6);
}
.on-air-bracket-l { left: 22%; }
.on-air-bracket-r { right: 22%; }
@media (min-width: 768px) {
  .on-air-bracket { top: -16px; width: 4px; height: 18px; }
}

/* 전등 본체 (아크릴 케이스) */
.on-air-light-panel {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(180deg, #201218 0%, #100810 55%, #08040a 100%);
  border: 2px solid rgba(232, 223, 208, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 1.4s ease;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.75),
    inset 0 2px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

/* 케이스 상단 유리 반사 (얇은 하이라이트) */
.on-air-light-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
  pointer-events: none;
}

.on-air-primary {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 6px;
  line-height: 1;
  color: rgba(232, 223, 208, 0.18);
  transition: color 1.4s ease, text-shadow 1.4s ease;
  position: relative;
  z-index: 2;
}
@media (min-width: 768px) {
  .on-air-primary { font-size: 26px; letter-spacing: 8px; }
}
@media (min-width: 1280px) {
  .on-air-primary { font-size: 32px; letter-spacing: 10px; }
}

/* 전등에서 창 위쪽으로 흘러내리는 붉은 캐스트 (ON 시) */
.on-air-cast {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200%;
  height: 60px;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 100% at 50% 0%,
    rgba(255, 60, 90, 0.32) 0%,
    rgba(201, 36, 63, 0.12) 45%,
    transparent 75%);
  transition: opacity 1.4s ease;
}

/* Ignition (3 blinks) — 네온 튜브 점화 시퀀스 */
.hero-scene.igniting .on-air-light-panel { animation: neonPanelFlicker 1.1s steps(9) 1; }
.hero-scene.igniting .on-air-primary { animation: neonTextFlicker 1.1s steps(9) 1; }
.hero-scene.igniting .on-air-cast { animation: neonCastFlicker 1.1s steps(9) 1; }
/* stage-foam 전체 flash 제거 — 사인만 점화 · 화면은 조용 */

/* 판넬은 계속 어두운 사인보드 · 튜브 켜지면 주변으로 붉은 bloom만 새어나옴 */
@keyframes neonPanelFlicker {
  0%   { background: linear-gradient(180deg, #201218 0%, #100810 100%); border-color: rgba(232,223,208,0.14); box-shadow: none; }
  11%  { background: linear-gradient(180deg, #0d0509 0%, #05020a 100%); border-color: rgba(255,90,120,0.34); box-shadow: 0 0 44px rgba(255,30,60,0.55), inset 0 0 34px rgba(255,20,50,0.16); }
  22%  { background: linear-gradient(180deg, #201218 0%, #100810 100%); border-color: rgba(232,223,208,0.14); box-shadow: none; }
  33%  { background: linear-gradient(180deg, #0d0509 0%, #05020a 100%); border-color: rgba(255,100,130,0.4); box-shadow: 0 0 50px rgba(255,30,60,0.62), inset 0 0 38px rgba(255,20,50,0.18); }
  44%  { background: linear-gradient(180deg, #180e14 0%, #08040a 100%); border-color: rgba(232,223,208,0.08); box-shadow: none; }
  55%  { background: linear-gradient(180deg, #0d0509 0%, #05020a 100%); border-color: rgba(255,120,150,0.48); box-shadow: 0 0 58px rgba(255,30,60,0.74), inset 0 0 44px rgba(255,20,50,0.22); }
  66%  { background: linear-gradient(180deg, #201218 0%, #100810 100%); border-color: rgba(232,223,208,0.14); box-shadow: none; }
  100% { background: linear-gradient(180deg, #0d0509 0%, #05020a 100%); border-color: rgba(255,100,130,0.4); box-shadow: 0 0 50px rgba(255,30,60,0.6), inset 0 0 38px rgba(255,20,50,0.18); }
}
/* 튜브 자체 · 다층 text-shadow로 코어(흰빛)→튜브(붉음)→헤일로(진홍) 층 만듦 */
@keyframes neonTextFlicker {
  0%   { color: rgba(232,223,208,0.16); text-shadow: none; }
  11%  { color: #ffeaee; text-shadow: 0 0 2px #fff, 0 0 6px #ffb0bc, 0 0 14px #ff2a44, 0 0 30px #ff0033, 0 0 55px rgba(255,0,51,0.85); }
  22%  { color: rgba(232,223,208,0.16); text-shadow: none; }
  33%  { color: #ffeaee; text-shadow: 0 0 2px #fff, 0 0 8px #ffb0bc, 0 0 18px #ff2a44, 0 0 36px #ff0033, 0 0 62px rgba(255,0,51,0.9); }
  44%  { color: rgba(200,140,160,0.24); text-shadow: none; }
  55%  { color: #ffffff; text-shadow: 0 0 3px #fff, 0 0 10px #ffb0bc, 0 0 22px #ff2a44, 0 0 44px #ff0033, 0 0 78px rgba(255,0,51,1); }
  66%  { color: rgba(232,223,208,0.16); text-shadow: none; }
  100% { color: #ffeaee; text-shadow: 0 0 2px #fff, 0 0 6px #ffb0bc, 0 0 14px #ff2a44, 0 0 30px #ff0033, 0 0 55px rgba(255,0,51,0.85); }
}
@keyframes neonCastFlicker {
  0%   { opacity: 0; }
  11%  { opacity: 0.7; }
  22%  { opacity: 0; }
  33%  { opacity: 0.8; }
  55%  { opacity: 1; }
  66%  { opacity: 0; }
  100% { opacity: 1; }
}
/* (sceneFlash 제거 · 정신 사나움 사용자 명시) */

/* ON state — 사인판은 어둡게 유지 · 튜브만 발광 · 주변으로 붉은 bloom */
.hero-scene.on-air .on-air-light-panel {
  background: linear-gradient(180deg, #0d0509 0%, #05020a 55%, #030106 100%);
  border-color: rgba(255, 100, 130, 0.36);
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.85),
    0 0 52px rgba(255, 30, 60, 0.6),
    0 0 96px rgba(255, 0, 40, 0.35),
    inset 0 2px 0 rgba(255, 220, 230, 0.14),
    inset 0 0 42px rgba(255, 20, 50, 0.2);
  animation: signBreath 3.2s ease-in-out infinite;
}
/* 네온 튜브 발광 · 5층 text-shadow (핵→튜브체→튜브 아우터→헤일로 근거리→헤일로 원거리) */
.hero-scene.on-air .on-air-primary {
  color: #ffeaee;
  text-shadow:
    0 0 2px #ffffff,
    0 0 6px #ffb0bc,
    0 0 14px #ff2a44,
    0 0 30px #ff0033,
    0 0 55px rgba(255, 0, 51, 0.85);
  animation: textBreath 3.2s ease-in-out infinite;
}
.hero-scene.on-air .on-air-cast { opacity: 1; }

/* 심박 근사 · 미세 브리딩 (튜브가 살아있는 느낌) */
@keyframes signBreath {
  0%, 100% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.85),
      0 0 52px rgba(255, 30, 60, 0.6),
      0 0 96px rgba(255, 0, 40, 0.35),
      inset 0 2px 0 rgba(255, 220, 230, 0.14),
      inset 0 0 42px rgba(255, 20, 50, 0.2);
  }
  50% {
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.85),
      0 0 64px rgba(255, 30, 60, 0.72),
      0 0 118px rgba(255, 0, 40, 0.45),
      inset 0 2px 0 rgba(255, 220, 230, 0.18),
      inset 0 0 52px rgba(255, 20, 50, 0.26);
  }
}
@keyframes textBreath {
  0%, 100% {
    text-shadow:
      0 0 2px #ffffff,
      0 0 6px #ffb0bc,
      0 0 14px #ff2a44,
      0 0 30px #ff0033,
      0 0 55px rgba(255, 0, 51, 0.85);
  }
  50% {
    text-shadow:
      0 0 3px #ffffff,
      0 0 9px #ffb0bc,
      0 0 20px #ff2a44,
      0 0 42px #ff0033,
      0 0 78px rgba(255, 0, 51, 1);
  }
}

/* ─── 사운드 토글 ───────────────────────────────────────── */
.sound-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 12;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  background: rgba(10, 6, 8, 0.75);
  border: 1px solid rgba(232, 223, 208, 0.08);
  color: var(--ink-dim);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
@media (min-width: 768px) {
  .sound-toggle { top: 28px; right: 40px; width: 36px; height: 36px; }
}
.sound-toggle:hover { color: var(--amber-bri); border-color: var(--border-amber); }
.sound-toggle svg { width: 16px; height: 16px; }
.sound-toggle.is-on {
  color: var(--amber-bri);
  border-color: var(--border-amber);
  box-shadow: 0 0 12px rgba(232, 196, 122, 0.4);
}

/* ============================================================
   하단 콘텐츠 · 단일 CTA (창 아래 · 중앙)
   ============================================================ */
.hero-content {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 5;
  text-align: center;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .hero-content { bottom: 14px; padding: 0 32px; }
}
@media (min-width: 1280px) {
  .hero-content { bottom: 18px; }
}


/* ============================================================
   CTA · 서류 뭉치 스택 · 호버 시 팔랑
   방송실 데스크 위에 사연 접수 서류 3~4장이 겹쳐있는 이미지.
   맨 위 종이에 "사주 · 사연 보내기" 문구.
   ============================================================ */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto;
}

.paper-stack-cta {
  position: relative;
  width: 100%;
  max-width: 320px;         /* 380 → 320 · 크기 축소 (영상 안 가리게) */
  aspect-ratio: 12 / 5;     /* 19/11=1.73 → 12/5=2.4 · 훨씬 얇게 */
  margin: 0 auto;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.42;
  pointer-events: none;
  transition: opacity 1.4s ease;
  perspective: 1200px;
}
@media (min-width: 768px) {
  .paper-stack-cta { max-width: 360px; }
}
.hero-scene.on-air .paper-stack-cta {
  opacity: 1;
  pointer-events: auto;
}
.paper-stack-cta:focus { outline: none; }
.paper-stack-cta:focus-visible .paper-top {
  outline: 2px solid rgba(255, 200, 120, 0.7);
  outline-offset: 4px;
}

/* 종이 공통 · 완전히 낡음 · 세피아 톤 + 얼룩 + 주름 + 찢긴 모서리 */
.paper {
  position: absolute;
  inset: 0;
  border-radius: 2px;
  /* 찢긴/구겨진 모서리 (irregular polygon) */
  clip-path: polygon(
    1.2% 3%, 4% 0.8%, 12% 2.2%, 22% 0.4%, 34% 1.6%, 48% 0.2%, 62% 1.8%, 74% 0.6%,
    86% 2.4%, 94% 0.8%, 98.5% 4%,
    99% 22%, 99.6% 45%, 98.8% 68%, 99.7% 88%, 98% 96%,
    94% 99.4%, 84% 98%, 72% 99.6%, 58% 98.4%, 44% 99.7%, 30% 98.2%, 18% 99.5%,
    6% 98.6%, 1.5% 96.5%,
    0.4% 78%, 1% 55%, 0.3% 32%, 1.2% 14%
  );
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.65),
    0 1px 3px rgba(0, 0, 0, 0.4);
  transition: transform 520ms cubic-bezier(.2, .9, .3, 1),
              box-shadow 400ms ease;
  transform-origin: 50% 90%;
  will-change: transform;
}
/* ::before = 얼룩·주름·번짐 오버레이 (multiply 로 어둡게) */
.paper::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* 커피 얼룩 우상단 */
    radial-gradient(circle at 84% 18%, rgba(60, 30, 5, 0.32) 0%, rgba(60, 30, 5, 0.15) 5%, transparent 11%),
    /* 얼룩 좌하단 (작은 물방울) */
    radial-gradient(circle at 12% 78%, rgba(70, 40, 10, 0.22) 0%, transparent 6%),
    /* 손자국 얼룩 우하단 */
    radial-gradient(ellipse 18% 12% at 74% 85%, rgba(50, 25, 5, 0.18) 0%, transparent 60%),
    /* 모서리 갈변 (4방향) */
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(90, 50, 15, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(90, 50, 15, 0.32) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(80, 45, 12, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(80, 45, 12, 0.35) 0%, transparent 55%),
    /* 사선 접힘 자국 */
    linear-gradient(72deg, transparent 45%, rgba(50, 25, 5, 0.14) 46%, rgba(50, 25, 5, 0.1) 47%, transparent 48%),
    /* 세로 주름들 */
    repeating-linear-gradient(94deg,
      transparent 0px,
      transparent 22px,
      rgba(60, 30, 10, 0.05) 22px,
      rgba(60, 30, 10, 0.05) 23px),
    /* 가로 주름들 (더 촘촘히) */
    repeating-linear-gradient(178deg,
      transparent 0px,
      transparent 8px,
      rgba(60, 30, 10, 0.035) 8px,
      rgba(60, 30, 10, 0.035) 9px),
    /* 미세 노이즈 */
    repeating-linear-gradient(45deg,
      rgba(50, 25, 5, 0.03) 0px 1px,
      transparent 1px 3px);
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* ::after = 하이라이트 (약간 광택) + 잉크 번짐 */
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    /* 위쪽 살짝 밝은 하이라이트 */
    linear-gradient(180deg, rgba(255, 240, 200, 0.08) 0%, transparent 25%),
    /* 하단 어둠 (그림자 진 느낌) */
    linear-gradient(0deg, rgba(0, 0, 0, 0.14) 0%, transparent 22%);
  pointer-events: none;
  z-index: 1;
}

/* 뒤 종이들 · 각도·오프셋 다르게 · 톤도 미묘하게 다름 · 심하게 세피아 */
.paper-back-4 {
  background: linear-gradient(160deg, #a68e5c 0%, #8f764a 60%, #7a6338 100%);
  transform: rotate(-5.5deg) translate(-11px, 7px);
  z-index: 1;
}
.paper-back-3 {
  background: linear-gradient(155deg, #b39962 0%, #9c8352 60%, #856c3f 100%);
  transform: rotate(3.8deg) translate(9px, -3px);
  z-index: 2;
}
.paper-back-2 {
  background: linear-gradient(150deg, #b8a066 0%, #a08956 60%, #897149 100%);
  transform: rotate(-2deg) translate(-4px, 3px);
  z-index: 3;
}

/* 맨 위 종이 · 실제 텍스트 담김 · 가장 밝은 세피아 */
.paper-top {
  background: linear-gradient(160deg, #d0b783 0%, #bda06a 50%, #a68a55 100%);
  transform: rotate(0.8deg);
  z-index: 4;
  display: flex;
  flex-direction: column;
  padding: 10px 18px 8px;
  color: #241708;
  font-family: var(--font-serif, 'Times New Roman', serif);
  text-align: left;
}
@media (min-width: 768px) {
  .paper-top { padding: 12px 22px 10px; }
}
/* 상단 종이 텍스트를 얼룩보다 위로 (::before/::after 는 pseudo 라 z 조정 어려움) */
.paper-top > * { position: relative; z-index: 2; }

.paper-slug {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  letter-spacing: 3.5px;
  color: #52381c;  /* 잉크 바랜 톤 */
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(70, 40, 10, 0.4);
  opacity: 0.85;
}
@media (min-width: 768px) {
  .paper-slug { font-size: 10px; letter-spacing: 4.5px; padding-bottom: 6px; }
}

.paper-headline {
  font-family: var(--font-serif, serif);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 3px;
  color: #1a0e05;  /* 진한 잉크지만 검정 아님 */
  text-align: center;
  margin-top: 4px;
  line-height: 1;
  /* 타자기 잉크 · 미세 dbl print · 번짐 */
  text-shadow:
    0 0 0.5px rgba(30, 15, 5, 0.9),
    0.4px 0 0 rgba(30, 15, 5, 0.4),
    -0.4px 0 0 rgba(30, 15, 5, 0.4);
  opacity: 0.88;
}
@media (min-width: 768px) {
  .paper-headline { font-size: 30px; letter-spacing: 5px; margin-top: 6px; }
}

.paper-divider {
  height: 1px;
  margin: 4px 4px 4px;
  background:
    repeating-linear-gradient(90deg,
      rgba(70, 40, 10, 0.55) 0px,
      rgba(70, 40, 10, 0.55) 3px,
      transparent 3px,
      transparent 7px);
  opacity: 0.75;
}
@media (min-width: 768px) {
  .paper-divider { margin: 6px 6px 4px; }
}

.paper-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 2px;
}
.paper-action-label {
  font-family: var(--font-serif, serif);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  color: #4a2f18;
  opacity: 0.9;
}
@media (min-width: 768px) {
  .paper-action-label { font-size: 14px; letter-spacing: 3.5px; }
}
.paper-arrow {
  font-family: var(--font-mono, monospace);
  font-size: 17px;
  color: #4a2f18;
  opacity: 0.85;
  transition: transform 320ms cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 768px) {
  .paper-arrow { font-size: 20px; }
}

/* Idle · 뒤 종이들이 아주 미세하게 흔들림 (책상 위 종이 결) */
.hero-scene.on-air .paper-back-4 { animation: paperIdle4 6.4s ease-in-out infinite; }
.hero-scene.on-air .paper-back-3 { animation: paperIdle3 5.8s ease-in-out infinite; }
.hero-scene.on-air .paper-back-2 { animation: paperIdle2 6.1s ease-in-out infinite; }
@keyframes paperIdle4 {
  0%, 100% { transform: rotate(-5.5deg) translate(-11px, 7px); }
  50%      { transform: rotate(-5deg)   translate(-10px, 6px); }
}
@keyframes paperIdle3 {
  0%, 100% { transform: rotate(3.8deg) translate(9px, -3px); }
  50%      { transform: rotate(4.2deg) translate(9.5px, -3.8px); }
}
@keyframes paperIdle2 {
  0%, 100% { transform: rotate(-2deg)   translate(-4px, 3px); }
  50%      { transform: rotate(-1.7deg) translate(-3.5px, 2.5px); }
}

/* Hover · 서류들 팔랑거리며 부채꼴로 벌어짐 */
.paper-stack-cta:hover .paper-back-4,
.paper-stack-cta:focus-visible .paper-back-4,
.paper-stack-cta:active .paper-back-4 {
  animation: paperFlutter4 1.6s ease-in-out infinite;
}
.paper-stack-cta:hover .paper-back-3,
.paper-stack-cta:focus-visible .paper-back-3,
.paper-stack-cta:active .paper-back-3 {
  animation: paperFlutter3 1.9s ease-in-out infinite;
}
.paper-stack-cta:hover .paper-back-2,
.paper-stack-cta:focus-visible .paper-back-2,
.paper-stack-cta:active .paper-back-2 {
  animation: paperFlutter2 1.7s ease-in-out infinite;
}
.paper-stack-cta:hover .paper-top {
  transform: rotate(1.6deg) translateY(-4px);
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.7),
    0 4px 8px rgba(0, 0, 0, 0.45);
}
.paper-stack-cta:hover .paper-arrow,
.paper-stack-cta:focus-visible .paper-arrow {
  transform: translateX(5px);
}
.paper-stack-cta:active .paper-top {
  transform: rotate(1.1deg) translateY(-2px);
  transition-duration: 100ms;
}

@keyframes paperFlutter4 {
  0%, 100% { transform: rotate(-16deg) translate(-26px, 8px); }
  50%      { transform: rotate(-13deg) translate(-22px, 5px); }
}
@keyframes paperFlutter3 {
  0%, 100% { transform: rotate(11deg) translate(20px, -6px); }
  50%      { transform: rotate(8deg)  translate(16px, -3px); }
}
@keyframes paperFlutter2 {
  0%, 100% { transform: rotate(-5deg) translate(-9px, -2px); }
  50%      { transform: rotate(-3deg) translate(-6px, 0px);  }
}

/* 접근성 · 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  .paper { transition: none; }
  .paper-back-4, .paper-back-3, .paper-back-2,
  .paper-stack-cta:hover .paper-back-4,
  .paper-stack-cta:hover .paper-back-3,
  .paper-stack-cta:hover .paper-back-2,
  .paper-stack-cta:hover .paper-top,
  .hero-scene.on-air .paper-back-4,
  .hero-scene.on-air .paper-back-3,
  .hero-scene.on-air .paper-back-2 {
    animation: none;
  }
}

/* ─── 푸터 · 조용한 방송분 마감 ───────────────────────── */
.home-footer {
  position: relative;
  z-index: 5;
  padding: 20px 20px 24px;
  background: rgba(5, 3, 10, 0.7);
  border-top: 1px solid rgba(232, 223, 208, 0.05);
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.7;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
@media (min-width: 768px) {
  .home-footer { padding: 24px 40px 28px; font-size: 12px; }
}
.home-footer strong {
  color: var(--ink-soft);
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-size: 10.5px;
  font-family: var(--font-mono);
}
.home-footer p + p { margin-top: 3px; opacity: 0.75; }

/* ─── 하단 탭바 완전 숨김 ─────────────────────────────── */
.bottom-tabs,
#bottomTabs,
#bottomTabBar { display: none !important; }
body.in-app .app-container,
body.in-app #tabView { padding-bottom: 0 !important; }

/* 상단 saju/hwapae 탭바 (기능 유지 · 홈에선 숨김) */
.tab-bar {
  background: rgba(10, 6, 8, 0.92) !important;
  border-top: 1px solid rgba(232, 223, 208, 0.09) !important;
  color: var(--ink-soft) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
}
.tab-btn { color: var(--ink-soft) !important; background: transparent !important; }
.tab-btn.active { color: var(--amber-bri) !important; }
.tab-btn.active::after { background: var(--amber-bri) !important; }
@media (min-width: 768px) { .tab-bar { display: none !important; } }

/* ─── prefers-reduced-motion ──────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-scene.igniting .on-air-light-panel,
  .hero-scene.igniting .on-air-primary,
  .hero-scene.igniting .on-air-cast,
  .hero-scene.igniting .stage-foam,
  .hero-scene.on-air .on-air-light-panel,
  .hero-scene.on-air .on-air-primary,
  .hero-scene.on-air .hero-cta::after {
    animation: none !important;
  }
}
