/* ==========================================================================
   SnapClass 지능형 매뉴얼 — 예술적 3대 디자인 철학 쇼케이스 CSS
   
   STYLE 1: .theme-pentagram (펜타그램 / 마이클 비에루트 — 스위스 정보건축학)
   STYLE 2: .theme-kenya     (하라 켄야 — 백(白)의 미학 & 촉각적 종이 질감 젠)
   STYLE 3: .theme-territory (테리토리 스튜디오 / 애쉬 소프 — 시네마틱 앰비언트 HUD)
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 코어 자연 문서 흐름 레이아웃 (Natural Page Flow — No Viewport Docking)
   - STEP 박스를 화면 하단 고정 상위 레이어가 아닌 페이지 맨 아래에 배치
   - 메인 화면 가림 100% 완전 제거
   - 내부 스크롤바 삭제 및 시원한 전체 높이 렌더링
   -------------------------------------------------------------------------- */
html, body {
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto !important;
  margin: 0;
  padding: 0;
  background: #f1f5f9;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

#ViewerContainer.art-device-frame {
  height: auto !important;
  min-height: auto !important;
  max-width: 480px;
  width: 100%;
  margin: 74px auto 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
  border-radius: 24px !important;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 0 1px rgba(15, 23, 42, 0.06);
  overflow: hidden !important;
  transition: all 0.3s ease;
}

@media (max-width: 599px) {
  #ViewerContainer.art-device-frame {
    margin: 62px auto 0;
    border-radius: 0 !important;
    border: none;
    box-shadow: none;
    min-height: calc(100vh - 62px) !important;
  }
}

/* 상단 메인 화면 캔버스 영역 */
#ViewerContainer.art-device-frame .viewer-canvas-wrap {
  width: 100%;
  height: auto !important;
  min-height: auto !important;
  flex: none !important;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0 !important;
  overflow: visible !important;
}

#ViewerContainer.art-device-frame .viewer-screen-container {
  width: 100%;
  height: auto !important;
  flex: none !important;
  overflow: visible !important;
  position: relative;
}

#ViewerContainer.art-device-frame .screen-content {
  padding-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
   2. 하단 STEP 박스 (페이지 맨 아래 자연 배치 — 상위 레이어 아님)
   -------------------------------------------------------------------------- */
.art-docked-coach {
  width: 100%;
  position: relative !important;
  z-index: 40;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 22px 20px 28px;
  background: #FCFAF6;
  border-top: 1.5px solid #E7E0D3;
  border-radius: 0 0 24px 24px !important;
  margin-top: 0 !important;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

@media (max-width: 599px) {
  .art-docked-coach {
    border-radius: 0 !important;
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

/* 불필요한 플로팅 스크롤 화살표 숨김 */
.scroll-cue-indicator {
  display: none !important;
}


.art-body-layout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
}

/* 좌측: STEP 키커 + 거대 넘버링 통합 블록 */
.art-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: 14px;
  border-right: 1.5px solid #E7E0D3;
  user-select: none;
  min-width: 48px;
}

.art-hero-kicker {
  font-family: 'Cinzel', 'Outfit', serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #9E5438;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 3px;
}

.art-hero-num {
  font-family: 'Cinzel', 'Outfit', serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 0.95;
  color: #2A2420;
  letter-spacing: -0.04em;
  margin: 0;
  padding: 0;
}

.art-content-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.art-header {
  display: flex;
  align-items: flex-start;
  width: 100%;
}

.art-title {
  font-family: 'Noto Serif KR', -apple-system, sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #2A2420;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin: 0;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.art-counter {
  display: none !important;
}

.art-instruction {
  font-size: 13.5px;
  line-height: 1.5;
}

.art-tip-box {
  display: none;
  align-items: flex-start;
  gap: 6px;
  padding: 7px 10px;
  font-size: 11.5px;
  line-height: 1.45;
  margin-top: 2px;
}

.art-tip-box.is-visible {
  display: flex;
}

.art-tip-icon {
  font-size: 12px;
  flex-shrink: 0;
  line-height: 1.3;
}

.art-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.art-next-btn-wrap {
  flex: 1;
  position: relative;
  display: flex;
}

.art-next-btn-wrap .art-btn-next {
  width: 100%;
}

.next-btn-finger {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 105;
}

.art-btn-next.is-ready-pulse {
  animation: nextBtnPulse 1.4s infinite ease-in-out !important;
}

@keyframes nextBtnPulse {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(42, 36, 32, 0.2), 0 0 0 0 rgba(158, 84, 56, 0.6);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 22px rgba(158, 84, 56, 0.45), 0 0 0 8px rgba(158, 84, 56, 0.25);
    transform: scale(1.025);
  }
}

/* --------------------------------------------------------------------------
   정답 파티클 & 코치 설명 브리딩 글로우 (Breathing Glow Highlight)
   -------------------------------------------------------------------------- */
.art-particle {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  z-index: 1000;
  animation: particlePop 0.55s cubic-bezier(0.12, 0.8, 0.32, 1) forwards;
}

@keyframes particlePop {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  70% {
    opacity: 0.85;
  }
  100% {
    transform: translate(var(--dx), var(--dy)) scale(0.15);
    opacity: 0;
  }
}

/* 하단 설명 영역 은은한 호흡 디밍 (Breathing Glow) */
.art-docked-coach.is-breathing {
  animation: coachBreathing 2.2s infinite ease-in-out !important;
}

@keyframes coachBreathing {
  0%, 100% {
    box-shadow: 0 -16px 45px rgba(42, 36, 32, 0.08), 0 0 0 0 rgba(158, 84, 56, 0);
  }
  50% {
    box-shadow: 0 -16px 45px rgba(42, 36, 32, 0.12), 0 -4px 20px rgba(158, 84, 56, 0.22);
  }
}

.art-docked-coach.is-breathing .art-instruction {
  animation: textGentleGlow 2.2s infinite ease-in-out;
}

@keyframes textGentleGlow {
  0%, 100% {
    color: #3D352F;
  }
  50% {
    color: #1a1614;
    text-shadow: 0 0 10px rgba(158, 84, 56, 0.18);
  }
}

.art-btn-prev, .art-btn-next {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.art-btn-prev:active, .art-btn-next:active {
  transform: scale(0.97);
}

.art-btn-prev:disabled {
  opacity: 0.2;
  cursor: not-allowed;
  transform: none;
}


/* ==========================================================================
   🏛️ STYLE 1: .theme-pentagram (펜타그램 / 마이클 비에루트 — 스위스 정보건축학)
   - 둥근 모서리 전면 폐기 (border-radius: 0)
   - 52px 거대한 건축 타이포 넘버링 기둥
   - 브루탈리스트 흑백 + 볼드 오렌지 하이-콘트라스트
   ========================================================================== */
.theme-pentagram .art-docked-coach {
  background: #090a0c;
  border-top: 2.5px solid #ffffff; /* 순백색 아키텍처 헤어라인 */
  box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.9);
  color: #ffffff;
  border-radius: 0 !important;
  padding-top: 16px;
}

.theme-pentagram .art-body-layout {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

/* 52px 거대한 건축 기둥 숫자 */
.theme-pentagram .art-hero-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 46px;
  font-weight: 900;
  line-height: 1;
  color: #f97316;
  letter-spacing: -0.06em;
  padding-right: 14px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  user-select: none;
}

.theme-pentagram .art-pill {
  font-family: 'JetBrains Mono', monospace;
  background: #ffffff;
  color: #000000;
  border-radius: 0 !important;
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: none;
}

.theme-pentagram .art-title {
  font-family: 'Outfit', 'Pretendard', sans-serif;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.theme-pentagram .art-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #71717a;
  letter-spacing: 0.08em;
}

.theme-pentagram .art-instruction {
  font-family: 'Pretendard', sans-serif;
  color: #d4d4d8;
  font-size: 13.5px;
  line-height: 1.48;
}

.theme-pentagram .art-instruction strong {
  color: #000000;
  background: #ffffff;
  padding: 0 4px;
  font-weight: 900;
  border-radius: 0;
}

.theme-pentagram .art-tip-box {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-left: 3px solid #f97316;
  border-radius: 0 !important;
  color: #a1a1aa;
}

.theme-pentagram .art-btn-prev {
  height: 42px;
  padding: 0 16px;
  background: transparent;
  border: 1px solid #3f3f46;
  border-radius: 0 !important;
  color: #a1a1aa;
  font-family: 'Outfit', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.theme-pentagram .art-btn-prev:hover:not(:disabled) {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.theme-pentagram .art-btn-next {
  flex: 1;
  height: 42px;
  background: #ffffff;
  border: none;
  border-radius: 0 !important;
  color: #000000;
  font-family: 'Outfit', 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  gap: 6px;
}

.theme-pentagram .art-btn-next:hover {
  background: #f97316;
  color: #ffffff;
}


/* ==========================================================================
   📰 STYLE 2: .theme-kenya (스냅클래스 리포트 / 휴머니스틱 매거진 에디션)
   - Cinzel 로만 클래식 세리프 + Noto Serif KR 고급 한국어 명조 융합
   - STEP 라벨의 박스를 완전히 없애고 우아한 테라코타 키커(Kicker)로 직립
   - 포근한 웜 파치먼트(#F7F4EE) & 딥 에스프레소 차콜(#2A2420)
   - Newsreader 이탤릭 카운터와 단정한 8px 라운드 슬랩 버튼
   ========================================================================== */
.theme-kenya .art-docked-coach {
  background: #F7F4EE; /* 스냅클래스 리포트 시그니처 웜 파치먼트 */
  border-top: 1.5px solid #E7E0D3;
  box-shadow: 0 -16px 45px rgba(42, 36, 32, 0.08);
  color: #2A2420;
  padding-top: 16px;
}

.theme-kenya .art-body-layout {
  display: flex;
  align-items: stretch;
  gap: 14px;
}

/* Cinzel + Outfit 묵직한 볼드 기둥 숫자 + STEP 키커 블록 */
.theme-kenya .art-hero-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: 16px;
  border-right: 1.5px solid #E7E0D3;
  user-select: none;
  min-width: 52px;
}

.theme-kenya .art-hero-kicker {
  font-family: 'Cinzel', serif !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.16em !important;
  color: #9E5438 !important; /* 스냅클래스 리포트 시그니처 테라코타 */
  text-transform: uppercase !important;
  line-height: 1;
  margin-bottom: 3px;
}

.theme-kenya .art-hero-num {
  font-family: 'Cinzel', 'Outfit', serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 0.95;
  color: #2A2420; /* 딥 에스프레소 차콜 */
  letter-spacing: -0.04em;
  padding: 0;
  border-right: none !important;
}

/* 스텝 타이틀: 스냅클래스 리포트 '지호' 서체 (Noto Serif KR) - 100% 폭 활용, 단어 단위 자연 줄바꿈 */
.theme-kenya .art-title {
  font-family: 'Noto Serif KR', serif;
  font-size: 16.5px;
  font-weight: 700;
  color: #2A2420;
  letter-spacing: -0.02em;
  line-height: 1.35;
  white-space: normal !important;
  word-break: keep-all !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.theme-kenya .art-counter {
  display: none !important;
}

/* 본문 안내문 */
.theme-kenya .art-instruction {
  font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
  color: #3D352F;
  font-size: 13.5px;
  line-height: 1.6;
  font-weight: 500;
}

.theme-kenya .art-instruction strong {
  color: #9E5438;
  font-weight: 800;
  border-bottom: 1.5px solid #9E5438;
  padding-bottom: 1px;
}

/* 학부모 팁: 리포트 총평/편지 클로드 파치먼트 박스 */
.theme-kenya .art-tip-box {
  background: #F1EAE0;
  border: none;
  border-left: 3px solid #9E5438;
  border-radius: 6px;
  color: #5F564F;
  font-size: 12px;
}

.theme-kenya .art-btn-prev {
  height: 42px;
  padding: 0 16px;
  background: #EAE3D7;
  border: 1px solid #DCD4C7;
  border-radius: 8px;
  color: #5F564F;
  font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.theme-kenya .art-btn-prev:hover:not(:disabled) {
  background: #DFD7C9;
  color: #2A2420;
}

.theme-kenya .art-btn-next {
  flex: 1;
  height: 42px;
  background: #2A2420; /* 딥 에스프레소 차콜 */
  border: none;
  border-radius: 8px;
  color: #FCFAF6;
  font-family: 'Cinzel', 'Noto Serif KR', serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 14px rgba(42, 36, 32, 0.2);
}

.theme-kenya .art-btn-next:hover {
  background: #423832;
}


/* ==========================================================================
   🛰️ STYLE 3: .theme-territory (테리토리 스튜디오 / 애쉬 소프 — 시네마틱 앰비언트 HUD)
   - 뷰파인더 십자 마크(+), 정밀 코너 브래킷(┌ ┐)
   - Space Grotesk + JetBrains Mono 정밀 계측 폰트
   - 앰비언트 엠버 오렌지 백라이트 & 사이버 챔퍼 버튼
   ========================================================================== */
.theme-territory .art-docked-coach {
  background: rgba(6, 8, 12, 0.95);
  backdrop-filter: blur(28px) saturate(200%);
  -webkit-backdrop-filter: blur(28px) saturate(200%);
  border-top: 1px solid rgba(249, 115, 22, 0.4);
  box-shadow: 0 -15px 40px -5px rgba(0, 0, 0, 0.8), 0 0 20px rgba(249, 115, 22, 0.12);
  color: #ffffff;
  padding-top: 16px;
  position: relative;
}

/* 상단 앰비언트 레이저 스캔 빔 */
.theme-territory .art-docked-coach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f97316, transparent);
  box-shadow: 0 0 10px #f97316;
}

.theme-territory .art-body-layout {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* 계기판 HUD 박스 숫자 */
.theme-territory .art-hero-num {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 26px;
  font-weight: 800;
  color: #f97316;
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.35);
  border-radius: 4px;
  padding: 4px 10px;
  text-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
  user-select: none;
}

.theme-territory .art-pill {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(249, 115, 22, 0.15);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.4);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  text-transform: uppercase;
}

.theme-territory .art-title {
  font-family: 'Space Grotesk', 'Pretendard', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
}

.theme-territory .art-counter {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: #71717a;
  letter-spacing: 0.08em;
}

.theme-territory .art-instruction {
  font-family: 'Space Grotesk', 'Pretendard', sans-serif;
  color: #e2e8f0;
  font-size: 13.5px;
  line-height: 1.5;
}

.theme-territory .art-instruction strong {
  color: #fbbf24;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.6);
  padding-bottom: 1px;
}

.theme-territory .art-tip-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 2px solid #f97316;
  border-radius: 4px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', 'Pretendard', monospace;
  font-size: 11.5px;
}

.theme-territory .art-btn-prev {
  height: 40px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: #94a3b8;
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.theme-territory .art-btn-prev:hover:not(:disabled) {
  border-color: #f97316;
  color: #ffffff;
}

.theme-territory .art-btn-next {
  flex: 1;
  height: 40px;
  background: linear-gradient(135deg, #f97316 0%, #c2410c 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(249, 115, 22, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  gap: 6px;
}

.theme-territory .art-btn-next:hover {
  box-shadow: 0 0 28px rgba(249, 115, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   📱 3D 듀얼 분할 태블릿 쇼케이스 (좌우 나란히 반씩 걸쳐진 ] [ 레이아웃 & 줌인)
   ========================================================================== */
.pwa-device-selector-wrap {
  padding: 30px 12px 24px;
  background: linear-gradient(180deg, #FAFAF9 0%, #F5F5F4 100%);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-sizing: border-box;
}

.pwa-selector-header {
  text-align: center;
  margin-bottom: 20px;
}

.pwa-selector-header .pwa-badge {
  display: inline-block;
  font-family: 'Cinzel', 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #9E5438;
  background: rgba(158, 84, 56, 0.08);
  border: 1px solid rgba(158, 84, 56, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.pwa-selector-header .pwa-headline {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 800;
  color: #2A2420;
  margin: 0 0 6px;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.pwa-selector-header .pwa-subline {
  font-size: 13px;
  color: #78716C;
  margin: 0;
  line-height: 1.45;
}

/* 무대 컨테이너: 좌우 바깥으로 반씩 나간 태블릿을 자르는 뷰포트 */
.tablet-split-stage {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  margin: 8px 0 12px;
  user-select: none;
}

/* 개별 태블릿 브래킷 (세로형 태블릿 250px x 340px) */
.split-tablet-bracket {
  position: absolute;
  top: 50%;
  width: 250px;
  height: 340px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s ease,
              box-shadow 0.4s ease,
              filter 0.4s ease;
  z-index: 10;
  outline: none;
}

/* 좌측 iPad: 오른쪽 모서리가 중앙선에서 8px 좌측 ➔ 왼쪽이 밖으로 잘려 나가 ']' 형태 완성 */
.split-tablet-bracket.bracket-left {
  right: calc(50% + 8px);
}

/* 우측 Galaxy Tab: 왼쪽 모서리가 중앙선에서 8px 우측 ➔ 오른쪽이 밖으로 잘려 나가 '[' 형태 완성 */
.split-tablet-bracket.bracket-right {
  left: calc(50% + 8px);
}

/* 마우스 호버 시 중앙 쪽으로 살짝 마중나오는 제스처 */
.split-tablet-bracket.bracket-left:hover {
  transform: translateY(-50%) translateX(10px) scale(1.02);
}

.split-tablet-bracket.bracket-right:hover {
  transform: translateY(-50%) translateX(-10px) scale(1.02);
}

/* 기기 1차 선택 시: 선택된 기기는 전면/중앙으로 돋보이게 나오고, 상대 기기는 재선택 가능하게 옆으로 밀어냄 (2-Phase) */
.tablet-split-stage.has-selected-ipad .bracket-left {
  transform: translateY(-50%) translateX(70px) scale(1.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 3.5px #F97316, 0 0 35px rgba(249, 115, 22, 0.45);
  z-index: 25;
}

.tablet-split-stage.has-selected-ipad .bracket-right {
  transform: translateY(-50%) translateX(65px) scale(0.92);
  opacity: 0.52;
  filter: grayscale(0.4);
  z-index: 5;
  cursor: pointer;
}

.tablet-split-stage.has-selected-ipad .bracket-right:hover {
  opacity: 0.88;
  filter: grayscale(0);
  transform: translateY(-50%) translateX(50px) scale(0.96);
}

.tablet-split-stage.has-selected-android .bracket-right {
  transform: translateY(-50%) translateX(-70px) scale(1.12);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45), 0 0 0 3.5px #10B981, 0 0 35px rgba(16, 185, 129, 0.45);
  z-index: 25;
}

.tablet-split-stage.has-selected-android .bracket-left {
  transform: translateY(-50%) translateX(-65px) scale(0.92);
  opacity: 0.52;
  filter: grayscale(0.4);
  z-index: 5;
  cursor: pointer;
}

.tablet-split-stage.has-selected-android .bracket-left:hover {
  opacity: 0.88;
  filter: grayscale(0);
  transform: translateY(-50%) translateX(-50px) scale(0.96);
}

/* 태블릿 물리적 외형 베젤 (Space Dark Matte Bezel) */
.split-tablet-bezel {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: #1C1917;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 0 14px 34px rgba(28, 25, 23, 0.28),
              0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bracket-left .split-tablet-bezel {
  box-shadow: 4px 14px 34px rgba(28, 25, 23, 0.3),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.bracket-right .split-tablet-bezel {
  box-shadow: -4px 14px 34px rgba(28, 25, 23, 0.3),
              inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

/* 태블릿 상단 카메라 렌즈 */
.split-tablet-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 5;
}

/* 태블릿 화면 디스플레이 */
.split-tablet-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* iPad 디스플레이 테마: 딥 스페이스 옵시디언 */
.screen-ipad {
  background: radial-gradient(circle at 65% 50%, #292524 0%, #141211 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Galaxy Tab 디스플레이 테마: 딥 에메랄드 옵시디언 */
.screen-android {
  background: radial-gradient(circle at 35% 50%, #142820 0%, #0a1410 100%);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

/* 화면 내부 부드러운 엠비언트 백라이트 */
.split-screen-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.35;
}

.screen-ipad .split-screen-glow {
  background: #F97316;
  right: 20px;
}

.screen-android .split-screen-glow {
  background: #10B981;
  left: 20px;
}

/* 화면 내부 콘텐츠 (로고 + 명칭 + 뱃지)
   - 좌측 태블릿은 오른쪽 노출 영역에 시각 중심이 오도록 x축 보정 (+22px)
   - 우측 태블릿은 왼쪽 노출 영역에 시각 중심이 오도록 x축 보정 (-22px)
*/
.split-screen-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.bracket-left .split-screen-content {
  transform: translateX(22px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bracket-right .split-screen-content {
  transform: translateX(-22px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 선택된 태블릿은 화면 베젤 정중앙에 정확히 정렬 */
.tablet-split-stage.has-selected-ipad .bracket-left .split-screen-content,
.tablet-split-stage.is-selecting-ipad .bracket-left .split-screen-content {
  transform: translateX(0) !important;
}

.tablet-split-stage.has-selected-android .bracket-right .split-screen-content,
.tablet-split-stage.is-selecting-android .bracket-right .split-screen-content {
  transform: translateX(0) !important;
}

/* 대형 72px 벡터 로고 */
.split-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition: transform 0.3s ease;
}

.split-brand-logo.apple-logo {
  color: #FFFFFF;
  filter: drop-shadow(0 6px 16px rgba(255, 255, 255, 0.25));
}

.split-brand-logo.android-logo {
  color: #3DDC84;
  filter: drop-shadow(0 6px 18px rgba(61, 220, 132, 0.4));
}

.split-tablet-bracket:hover .split-brand-logo {
  transform: scale(1.08);
}

/* 기기 타이틀 */
.split-device-title {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  line-height: 1.2;
}

/* 브라우저 명칭 캡슐 뱃지 */
.split-browser-badge {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.safari-badge {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
}

.chrome-badge {
  background: rgba(61, 220, 132, 0.14);
  color: #4ADE80;
  border: 1px solid rgba(61, 220, 132, 0.35);
  backdrop-filter: blur(6px);
}

/* ==========================================================================
   🎬 줌인(Zoom-in) 및 화면 전환 애니메이션
   ========================================================================== */
/* iPad 선택 시: 좌측 태블릿이 중앙으로 이동하며 확대, 우측 태블릿은 사라짐 */
.tablet-split-stage.is-selecting-ipad .bracket-left {
  transform: translateY(-50%) translateX(120px) scale(1.24);
  z-index: 30;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(249, 115, 22, 0.35);
}

.tablet-split-stage.is-selecting-ipad .bracket-right {
  transform: translateY(-50%) translateX(100px) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

/* Galaxy Tab 선택 시: 우측 태블릿이 중앙으로 이동하며 확대, 좌측 태블릿은 사라짐 */
.tablet-split-stage.is-selecting-android .bracket-right {
  transform: translateY(-50%) translateX(-120px) scale(1.24);
  z-index: 30;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(16, 185, 129, 0.35);
}

.tablet-split-stage.is-selecting-android .bracket-left {
  transform: translateY(-50%) translateX(-100px) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

/* 주소창 강조 인터랙션 스타일 */
.safari-address-bar:hover, #ChromeAddressBar:hover {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.3) !important;
}

/* ==========================================================================
   하단 잔재 완전 제거 & 모바일 풀플랫 최적화
   ========================================================================== */
.invite-shell {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: none !important;
}

/* ==========================================================================
   🌐 STEP 01 브라우저 앱 런처 무대 (Safari / Chrome / 삼성 인터넷 런처)
   ========================================================================== */
#BrowserLauncherStage {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  box-sizing: border-box;
  background: radial-gradient(circle at 50% 20%, #1e293b 0%, #0f172a 70%, #020617 100%);
  border-radius: 12px;
  overflow: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 런처 배경 은은한 빛망울 */
#BrowserLauncherStage::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

/* 상단 '❌ 네이버 앱 아님' 비교 안내 배너 */
.browser-choice-notice {
  position: relative;
  z-index: 2;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 12px 18px;
  margin-bottom: 28px;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  max-width: 320px;
  animation: noticePulse 3s infinite ease-in-out;
}

@keyframes noticePulse {
  0%, 100% { border-color: rgba(255, 255, 255, 0.18); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
  50% { border-color: rgba(249, 115, 22, 0.45); box-shadow: 0 12px 30px rgba(249, 115, 22, 0.18); }
}

.notice-contrast-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.4);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.contrast-bad {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.contrast-arrow {
  color: #94a3b8;
  font-size: 12px;
}

.contrast-good {
  color: #4ade80;
  background: rgba(34, 197, 94, 0.15);
  padding: 2px 8px;
  border-radius: 10px;
}

.notice-headline {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px;
  line-height: 1.35;
}

.notice-subtext {
  font-size: 11px;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}

/* 앱 아이콘 영역 */
.launcher-apps-row {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
}

.launcher-app-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.launcher-app-item:hover {
  transform: translateY(-4px) scale(1.06);
}

.launcher-app-item:active {
  transform: translateY(1px) scale(0.96);
}

/* 사각형 앱 아이콘 베이스 */
.launcher-app-icon-box {
  width: 66px;
  height: 66px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.launcher-app-name {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* 1. Apple Safari 아이콘 박스 */
.safari-icon-box {
  background: linear-gradient(145deg, #ffffff 0%, #e2e8f0 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.safari-compass-svg {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

/* 2. Google Chrome 아이콘 박스 */
.chrome-icon-box {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.chrome-svg {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

/* 3. 삼성 인터넷 아이콘 박스 */
.samsung-icon-box {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.samsung-svg {
  width: 46px;
  height: 46px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

/* 비교용 네이버 앱 (흐림 + 금지 표시) */
.launcher-app-item.is-dimmed-naver {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.launcher-app-item.is-dimmed-naver:hover {
  transform: none;
}

.naver-icon-box {
  background: #03c75a;
  color: #ffffff;
  font-family: -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 900;
  position: relative;
}

.naver-ban-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 2px solid #0f172a;
}

/* ==========================================================================
   Course 3: 실제 라라벨 StudentLayout 100% 일치 스타일 (bg.jpg + 크림 패널)
   ========================================================================== */
.tablet-dashboard-wrapper {
  width: 100%;
  height: 490px;
  box-sizing: border-box;
  overflow: hidden; /* 우측 클리핑: 실물 가로 780px 중 우측 영역을 자연스럽게 잘라냄 */
  position: relative;
  border-radius: 28px;
  background: #ebd8be;
}

/* 1. 태블릿 본체 쉘 (실제 라라벨 780px x 490px 고정 풀사이즈) */
.tablet-dashboard-shell {
  width: 780px;
  height: 490px;
  flex-shrink: 0;
  background-color: #fbf5eb;
  background-image: url('images/bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  padding: 14px 16px 16px;
  box-sizing: border-box;
  box-shadow: 0 18px 40px rgba(120, 53, 15, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  transform-origin: 0% 0%;
  transform: translate(0px, 0px) scale(1);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #451a03;
  user-select: none;
}

/* 🔍 카메라 뷰포트 줌인: 고정 태블릿 위에서 각 메뉴 위치로 부드럽게 줌인 및 추적 */
.tablet-dashboard-wrapper.is-zoomed-sidebar[data-active-menu="today"] .tablet-dashboard-shell {
  transform-origin: 10% 16%;
  transform: scale(1.3);
}

.tablet-dashboard-wrapper.is-zoomed-sidebar[data-active-menu="snapbook"] .tablet-dashboard-shell {
  transform-origin: 10% 32%;
  transform: scale(1.3);
}

.tablet-dashboard-wrapper.is-zoomed-sidebar[data-active-menu="snaptube"] .tablet-dashboard-shell {
  transform-origin: 10% 48%;
  transform: scale(1.3);
}

.tablet-dashboard-wrapper.is-zoomed-sidebar[data-active-menu="snapdic"] .tablet-dashboard-shell {
  transform-origin: 10% 64%;
  transform: scale(1.3);
}

.tablet-dashboard-wrapper.is-zoomed-sidebar[data-active-menu="snaptrace"] .tablet-dashboard-shell {
  transform-origin: 10% 80%;
  transform: scale(1.3);
}

/* 2. 실제 라라벨 상단 플로팅 헤더 (음소거 버튼 + 로고 + 중앙 인사말 + Parents + 아바타) */
.tablet-real-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 4px 14px;
}

.header-logo-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-sound-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 8px rgba(120, 53, 15, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-sound-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(120, 53, 15, 0.18);
}

.header-logo-img {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* 중앙 환영 문구 */
.header-greeting-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #78350f;
  white-space: nowrap;
}

.greeting-sparkle {
  font-size: 16px;
  color: #f97316;
}

.greeting-text .student-name {
  color: #ea580c;
  font-weight: 900;
}

/* 헤더 우측 클러스터: Parents + 아바타 */
.header-right-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* 실제 라라벨 Parents 오렌지 알약 버튼 */
.parents-badge-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 3px 10px rgba(249, 115, 22, 0.35);
  font-size: 11.5px;
  font-weight: 800;
  color: #ffffff;
  cursor: default;
  white-space: nowrap;
}

.parents-icon {
  font-size: 12px;
}

/* 학생 아바타 링 */
.student-avatar-ring {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  background: #ffffff;
  flex-shrink: 0;
}

.student-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transform-origin: center 38%;
}

/* 3. 실제 라라벨 메인 2열 레이아웃 (사이드바 5개 카드 + 메인 대시보드) */
.tablet-main-layout {
  display: flex;
  gap: 14px;
  align-items: stretch;
  width: 100%;
}

/* 좌측 사이드바: 5개 독립 흰색 카드 스택 */
.tablet-real-sidebar {
  width: 168px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

.sidebar-nav-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

/* 개별 메뉴 카드 (실제 라라벨 흰색 독립 카드) */
.real-nav-card {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 18px;
  border: 2px solid transparent;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(120, 53, 15, 0.08);
}

.real-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(120, 53, 15, 0.14);
}

/* 활성 상태 메뉴 카드 (오렌지 테두리 + 부드러운 섀도우) */
.real-nav-card.is-active {
  background: #ffffff;
  border-color: #f97316;
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.28);
  transform: scale(1.02);
}

.real-nav-card .nav-title {
  font-size: 13px;
  font-weight: 800;
  color: #78350f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.real-nav-card.is-active .nav-title {
  color: #ea580c;
  font-weight: 900;
}

/* 3D WebP 아이콘 칩 */
.nav-icon-chip {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-3d-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.real-nav-card.is-active .nav-3d-icon {
  transform: scale(1.12);
}

/* 4. 우측 대시보드 뷰포트 (상단 배너 + 하단 4개 카드) */
.tablet-dashboard-viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 상단 Today's Class 대형 히어로 배너 */
.real-hero-today-banner {
  background-image: url('images/banner_today_bg.webp');
  background-size: cover;
  background-position: center;
  border-radius: 22px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(120, 53, 15, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.85);
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 160px;
  box-sizing: border-box;
}

.hero-today-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
}

.hero-today-bubble-title {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 3px 0 #ea580c, -1px -1px 0 #ea580c, 1px -1px 0 #ea580c, -1px 1px 0 #ea580c, 1px 1px 0 #ea580c, 0 4px 10px rgba(0, 0, 0, 0.18);
}

.hero-today-subtext {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin: 6px 0 12px;
  line-height: 1.35;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-today-start-btn {
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.4);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-today-start-btn:hover {
  transform: translateY(-1px);
}

.hero-today-start-btn .btn-arrow-circle {
  background: #ffffff;
  color: #ea580c;
  border-radius: 50%;
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
}

.hero-today-graphic {
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-today-img {
  height: 130px;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.14));
}

/* 하단 4대 피처 카드 그리드 */
.real-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
}

.real-feature-card {
  border-radius: 20px;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 160px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.7);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.feature-card-header {
  text-align: center;
  margin-bottom: 2px;
}

.feature-card-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.15;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.feature-card-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0;
}

.feature-card-img {
  height: 72px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card-btn {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.14);
}

.feature-btn-arrow {
  background: #ffffff;
  border-radius: 50%;
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
}

/* 4개 카드별 시그니처 색상 (스크린샷 100% 싱크) */
/* 1. Snap Book (노랑/주황) */
.card-snapbook {
  background: linear-gradient(180deg, #f59e0b 0%, #ea580c 100%);
  border-color: rgba(254, 215, 170, 0.85);
}
.card-snapbook .feature-card-btn {
  background: #c2410c;
  color: #ffffff;
}
.card-snapbook .feature-btn-arrow {
  color: #c2410c;
}

/* 2. Snap Tube (핑크) */
.card-snaptube {
  background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%);
  border-color: rgba(251, 207, 232, 0.85);
}
.card-snaptube .feature-card-btn {
  background: #be185d;
  color: #ffffff;
}
.card-snaptube .feature-btn-arrow {
  color: #be185d;
}

/* 3. Snap Dictionary (하늘/파랑) */
.card-snapdic {
  background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
  border-color: rgba(186, 230, 253, 0.85);
}
.card-snapdic .feature-card-btn {
  background: #0369a1;
  color: #ffffff;
}
.card-snapdic .feature-btn-arrow {
  color: #0369a1;
}

/* 4. Snap Trace (민트/초록) */
.card-snaptrace {
  background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
  border-color: rgba(167, 243, 208, 0.85);
}
.card-snaptrace .feature-card-btn {
  background: #047857;
  color: #ffffff;
}
.card-snaptrace .feature-btn-arrow {
  color: #047857;
}

/* ==========================================================================
   🌟 연동 하이라이트 (Linked Dual-Focus):
   설명 중인 메뉴 카드와 우측 메인 영역을 함께 극대화하고 비선택 영역은 은은히 딤드
   ========================================================================== */
.real-hero-today-banner.is-dimmed,
.real-feature-card.is-dimmed {
  opacity: 0.38;
  filter: grayscale(25%);
  transform: scale(0.98);
}

.real-hero-today-banner.is-focused {
  opacity: 1 !important;
  filter: none !important;
  border-color: #f97316 !important;
  box-shadow: 0 0 0 3.5px #ffffff, 0 0 0 6px #f97316, 0 14px 34px rgba(249, 115, 22, 0.35) !important;
  transform: scale(1.015);
  z-index: 5;
}

.real-feature-card.is-focused {
  opacity: 1 !important;
  filter: none !important;
  transform: translateY(-5px) scale(1.05) !important;
  box-shadow: 0 0 0 3.5px #ffffff, 0 0 0 6px #f97316, 0 14px 32px rgba(0, 0, 0, 0.3) !important;
  z-index: 5;
}

.real-feature-card.is-focused .feature-card-img {
  transform: scale(1.14);
}

/* 태블릿/PC 와이드 뷰포트 (768px 이상) */
@media (min-width: 768px) {
  body.is-tablet-menu-mode .viewer-device-frame {
    max-width: 880px;
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  body.is-tablet-menu-mode .story-progress-bar-wrap {
    max-width: 880px;
  }
  body.is-tablet-menu-mode .art-docked-coach {
    max-width: 880px;
  }
  body.is-tablet-menu-mode .tablet-real-sidebar {
    width: 176px;
  }
}



