/* ==========================================================================
   SnapClass 지능형 매뉴얼 — 모바일 퀵 스타트 가이드 뷰어 CSS v5.0
   1) 폰 껍데기/베젤 완전 삭제 ➔ 100% 모바일 네이티브 단일 풀스크린
   2) 상단 뷰어바 삭제 & 스토리형 미니멀 프로그레스 대시
   3) 다크 글래스모피즘(Dark Glassmorphism) 플로팅 코치 캡슐
   ========================================================================== */

:root {
  --sc-primary: #f97316;
  --sc-primary-hover: #ea580c;
  --sc-primary-light: #fff7ed;
  --sc-text-main: #0f172a;
  --sc-text-muted: #64748b;
  --sc-font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* 폰 껍데기 배경을 없애고 순수 모바일 웹 배경으로 전환 */
body {
  font-family: var(--sc-font);
  background: #f8fafc;
  color: var(--sc-text-main);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

/* 뷰어 최상위 랩퍼: 폰 베젤/테두리 100% 완전 제거 */
.viewer-device-frame {
  width: 100%;
  max-width: 480px; /* 모바일 풀스크린, PC에서는 480px 자연스러운 중앙 정렬 */
  min-height: 100vh;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: none; /* 둔탁한 폰 그림자 제거 */
  border: none;     /* 폰 베젤 테두리 제거 */
}

@media (min-width: 600px) {
  /* PC 접속 시에만 좌우 1px 얇은 라인으로 깔끔하게 구분 */
  .viewer-device-frame {
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  }
}

/* ==========================================
   스토리 스타일 초슬림 상단 프로그레스 대시
   ========================================== */
.story-progress-bar-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  height: 4px;
  display: flex;
  gap: 4px;
  padding: 6px 12px;
  z-index: 1000;
  pointer-events: none;
}

.story-dash {
  flex: 1;
  height: 3px;
  background: rgba(15, 23, 42, 0.15);
  border-radius: 2px;
  overflow: hidden;
  transition: background 0.2s;
}

.story-dash.is-active {
  background: var(--sc-primary);
  box-shadow: 0 0 6px rgba(249, 115, 22, 0.6);
}

.story-dash.is-passed {
  background: #0f172a;
}

/* ==========================================
   실제 화면 캔버스 영역
   ========================================== */
.viewer-canvas-wrap {
  flex: 1;
  position: relative;
  width: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.viewer-screen-container {
  width: 100%;
  height: 100%;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.screen-content {
  width: 100%;
  min-height: 100%;
  position: relative;
  padding-top: 14px;
  padding-bottom: 160px; /* 하단 다크 코치 캡슐을 위한 안전 여백 */
  box-sizing: border-box;
}

/* ==========================================
   1:1 픽셀 SVG 오버레이 & 화이트 글로우
   ========================================== */
.svg-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 20;
  pointer-events: none;
}

#SpotlightRingRect {
  animation: glow-pulse 2s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes glow-pulse {
  0%, 100% {
    stroke-opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.85)) drop-shadow(0 0 12px rgba(249, 115, 22, 0.5));
  }
  50% {
    stroke-opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) drop-shadow(0 0 20px rgba(249, 115, 22, 0.85));
  }
}

/* ==========================================
   대각선 터치 핑거 제스처 (글자 비가림)
   ========================================== */
.finger-cursor-wrap {
  position: absolute;
  z-index: 30;
  pointer-events: none;
  transition: left 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), top 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.tap-hand-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
  transform-origin: 6px 6px;
  animation: tap-gesture 1.6s infinite ease-in-out;
  position: absolute;
  left: 0;
  top: 0;
}

@keyframes tap-gesture {
  0%, 100% {
    transform: translate(6px, 6px) scale(1) rotate(0deg);
  }
  45% {
    transform: translate(0px, 0px) scale(0.92) rotate(-4deg);
  }
  60% {
    transform: translate(2px, 2px) scale(0.96) rotate(-2deg);
  }
}

.pulse-ripple {
  position: absolute;
  left: 6px;
  top: 6px;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.8);
  animation: ripple-wave 1.6s infinite ease-out;
  pointer-events: none;
}

.pulse-ripple.ripple-2 {
  animation-delay: 0.4s;
}

@keyframes ripple-wave {
  0% {
    transform: translate(-50%, -50%) scale(0.2);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* ==========================================================================
   다크 글래스모피즘 코치 캡슐 (Dark Glass Coach Capsule)
   - 실제 화면(White/Orange)과 200% 시각적으로 분리되는 다크 레이어
   ========================================================================== */
.guide-coach-capsule {
  position: fixed;
  bottom: 20px;
  left: 14px;
  right: 14px;
  max-width: 452px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  padding: 15px 18px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #ffffff;
  animation: capsule-pop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes capsule-pop {
  from {
    transform: translateY(24px) scale(0.97);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 상단 캡슐 헤더: 단계 배지 & 가이드 명칭 (1줄 고정, 줄바꿈 방지) */
.capsule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  white-space: nowrap;
}

.capsule-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.capsule-step-pill {
  font-size: 11px;
  font-weight: 800;
  background: rgba(249, 115, 22, 0.25);
  color: #fb923c;
  border: 1px solid rgba(249, 115, 22, 0.45);
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}

.capsule-step-title {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.capsule-counter {
  font-size: 11.5px;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
  white-space: nowrap;
}

/* 안내 문구 (화이트 본문 + 골드 하이라이트) */
.capsule-instruction {
  font-size: 14px;
  line-height: 1.48;
  font-weight: 600;
  color: #f1f5f9;
}

.capsule-instruction strong {
  color: #fbbf24; /* 골드 옐로우 하이라이트로 실제 주황색 화면과 확실한 대비 */
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(251, 191, 36, 0.4);
}

/* 학부모 친절 팁/주의사항 박스 */
.capsule-tip-box {
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.45;
  color: #cbd5e1;
  display: none; /* 내용이 있을 때 flex로 활성화 */
  align-items: flex-start;
  gap: 6px;
}

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

.capsule-tip-box .tip-icon {
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1.3;
}

.capsule-tip-box a {
  color: #38bdf8;
  text-decoration: underline;
  word-break: break-all;
}

/* 캡슐 하단 컨트롤 바 */
.capsule-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.btn-capsule-prev {
  height: 38px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.btn-capsule-prev:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-capsule-prev:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.btn-capsule-next {
  flex: 1;
  height: 38px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
  transition: transform 0.1s, box-shadow 0.1s;
}

.btn-capsule-next:active {
  transform: scale(0.98);
}

/* ==========================================================================
   화면 내 인터랙티브 버튼/탭 호버 및 반응 피드백
   ========================================================================== */
#InvitationStartButton,
#TabRegisterBtn,
#TabLoginBtn,
#SendVerifyCodeBtn,
#RegisterSubmitBtn,
#LoginSubmitBtn,
#StudentNextButton,
#DoneCompleteBtn,
.invite-key,
.invite-relation-chip {
  cursor: pointer !important;
  transition: transform 0.12s ease, filter 0.15s ease, box-shadow 0.15s ease !important;
}

#InvitationStartButton:hover,
#SendVerifyCodeBtn:hover,
#RegisterSubmitBtn:hover,
#LoginSubmitBtn:hover,
#StudentNextButton:hover,
#DoneCompleteBtn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

#InvitationStartButton:active,
#SendVerifyCodeBtn:active,
#RegisterSubmitBtn:active,
#LoginSubmitBtn:active,
#StudentNextButton:active,
#DoneCompleteBtn:active,
.invite-key:active,
.invite-relation-chip:active {
  transform: scale(0.97) !important;
}

/* 탭 바 내 추천 뱃지 및 선택 가이드 */
.auth-tab-btn {
  position: relative;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 8px 12px 10px !important;
}

.auth-tab-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 10px;
  line-height: 1.3;
}

.auth-tab-badge.recommend {
  background: #ffedd5;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.auth-tab-badge.existing {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

.auth-tab-btn.is-active .auth-tab-badge.recommend {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
}

.auth-tab-btn.is-active .auth-tab-badge.existing {
  background: #475569;
  color: #ffffff;
  border-color: #475569;
}

.auth-tab-btn.is-disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  filter: grayscale(0.5) !important;
}

/* Step 2 분기 선택 안내: 신규 추천 뱃지와 기존 계정 뱃지가 시소처럼 번갈아 반짝임 */
.auth-tabs.is-choice-active .auth-tab-badge.recommend {
  animation: badge-alternate-recommend 2.4s infinite ease-in-out;
}

.auth-tabs.is-choice-active .auth-tab-badge.existing {
  animation: badge-alternate-existing 2.4s infinite ease-in-out;
}

@keyframes badge-alternate-recommend {
  0%, 100% {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(249, 115, 22, 0.75), 0 0 0 1.5px #ea580c;
    filter: brightness(1.12);
  }
  45%, 55% {
    transform: scale(0.96);
    box-shadow: none;
    filter: brightness(0.95);
  }
}

@keyframes badge-alternate-existing {
  0%, 100% {
    transform: scale(0.96);
    box-shadow: none;
    filter: brightness(0.95);
  }
  45%, 55% {
    transform: scale(1.08);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.75), 0 0 0 1.5px #3b82f6;
    filter: brightness(1.15);
    background: #e0e7ff;
    color: #1d4ed8;
  }
}

/* 코치 캡슐 내 직접 터치 유도 힌트 바 */
.capsule-nav-hint {
  font-size: 11.5px;
  color: #cbd5e1;
  text-align: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   상단 가이드 전환 바 (Top Guide Switcher)
   ========================================================================== */
.top-guide-switcher {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 4px;
  gap: 4px;
  z-index: 1000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.guide-nav-btn {
  background: none;
  border: none;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.guide-nav-btn:hover {
  color: #ffffff;
}

.guide-nav-btn.is-active {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.45);
}

.guide-nav-divider {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.18);
  align-self: center;
  margin: 0 3px;
}

.guide-close-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 2px;
}

.guide-close-btn:hover {
  background: rgba(239, 68, 68, 0.22);
  color: #ef4444;
  transform: scale(1.1);
}

.guide-close-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   PWA 디바이스 선택 화면 (Step 0)
   ========================================================================== */
.pwa-device-selector-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 20px;
  min-height: 520px;
  text-align: center;
  box-sizing: border-box;
  animation: fadeIn 0.4s ease;
}

.pwa-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  background: #fff7ed;
  color: #f97316;
  border: 1px solid #fed7aa;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.pwa-headline {
  font-size: 22px;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
  line-height: 1.35;
}

.pwa-subline {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 28px;
  line-height: 1.5;
}

.device-card-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 360px;
}

.device-select-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.device-select-card:hover {
  border-color: #f97316;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.15);
}

.device-card-icon {
  font-size: 32px;
  width: 52px;
  height: 52px;
  background: #f8fafc;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}

.device-card-info {
  flex: 1;
  min-width: 0;
}

.device-card-name {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.device-card-browser {
  font-size: 12px;
  color: #f97316;
  font-weight: 700;
  margin-bottom: 4px;
}

.device-card-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

.device-card-arrow {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 700;
}

/* ==========================================================================
   태블릿 와이어프레임 & 시네마틱 줌인 인터랙션
   ========================================================================== */
.pwa-screen-stage {
  position: relative;
  width: 100%;
  min-height: 540px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

/* 상단 플랫폼 전환 스위처 */
.platform-toggle-wrap {
  position: absolute;
  top: 12px;
  right: 14px;
  display: flex;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 3px;
  gap: 3px;
  z-index: 40;
}

.platform-toggle-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.15s;
}

.platform-toggle-btn.is-active {
  background: #f97316;
  color: #ffffff;
}

/* 태블릿 프레임 (모던 라인아트 외곽선) */
.tablet-wireframe {
  position: relative;
  margin: 16px auto 20px;
  width: calc(100% - 24px);
  max-width: 420px;
  height: 480px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 28px;
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.15), 0 0 0 6px #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: top right;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

/* iPad 사파리 우측 상단 줌인 효과 */
.tablet-wireframe.is-zoomed-toolbar {
  transform: scale(1.68) translate(-22%, 18%);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25), 0 0 0 6px #e2e8f0;
}

/* 사파리 상단 툴바 */
.safari-toolbar {
  height: 46px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  gap: 10px;
  z-index: 10;
  flex-shrink: 0;
}

.safari-nav-icons {
  display: flex;
  gap: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
}

.safari-address-bar {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: #0f172a;
  font-weight: 600;
}

.safari-action-icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.safari-share-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0284c7;
  cursor: pointer;
  transition: all 0.2s;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
}

/* 태블릿 내부 웹 콘텐츠 (SnapClass 학생 학습화면) */
.tablet-web-canvas {
  flex: 1;
  background: #fefce8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.web-app-mock-card {
  background: #ffffff;
  border: 1px solid #fde047;
  border-radius: 16px;
  padding: 20px;
  width: 85%;
  text-align: center;
  box-shadow: 0 6px 18px rgba(234, 179, 8, 0.12);
}

/* 사파리 공유 시트 모달 (Step 2) */
.safari-share-sheet-modal {
  position: absolute;
  top: 54px;
  right: 12px;
  width: 250px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  z-index: 25;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: sheetPop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.safari-share-sheet-modal.is-active {
  display: flex;
}

.share-sheet-header {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-sheet-thumb {
  width: 32px;
  height: 32px;
  background: #f97316;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 15px;
}

.share-sheet-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.share-sheet-url {
  font-size: 10px;
  color: #64748b;
}

.share-sheet-item {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
}

.share-sheet-item.is-target {
  background: #fff7ed;
  color: #ea580c;
  font-weight: 800;
}

/* 홈 화면에 추가 확인 다이얼로그 (Step 3) */
.safari-add-dialog-modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
  z-index: 30;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  animation: dialogPop 0.2s ease-out;
}

.safari-add-dialog-modal.is-active {
  display: flex;
}

.dialog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.dialog-top-bar .btn-cancel {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.dialog-top-bar .dialog-title {
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.dialog-top-bar .btn-add-confirm {
  font-size: 13px;
  color: #0284c7;
  font-weight: 800;
  background: none;
  border: none;
  cursor: pointer;
}

.dialog-body {
  padding: 20px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.dialog-app-icon {
  width: 48px;
  height: 48px;
  background: #f97316;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.dialog-app-text h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.dialog-app-text p {
  margin: 0;
  font-size: 11px;
  color: #64748b;
}

/* 홈 화면 바탕화면 뷰 (Step 4) */
.homescreen-stage {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  display: none;
  flex-direction: column;
  padding: 30px 24px;
  z-index: 15;
}

.homescreen-stage.is-active {
  display: flex;
}

.homescreen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 12px;
  justify-items: center;
}

.home-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.home-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.home-icon-item span {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: -0.02em;
}

.home-icon-box.is-snapclass {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  animation: appPulse 1.8s infinite ease-in-out;
}

@keyframes appPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); box-shadow: 0 8px 20px rgba(249, 115, 22, 0.6); }
}

/* ==========================================================================
   Android (크롬) 인스톨 배너 스타일
   ========================================================================== */
.chrome-install-banner {
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background: #ffffff;
  border-bottom: 2px solid #cbd5e1;
  padding: 10px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 20;
  animation: slideDown 0.3s ease-out;
}

.chrome-install-banner.is-active {
  display: flex;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.banner-left-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.banner-app-icon {
  width: 36px;
  height: 36px;
  background: #f97316;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 17px;
}

.banner-title-wrap h4 {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.banner-title-wrap p {
  margin: 0;
  font-size: 10.5px;
  color: #64748b;
}

.btn-chrome-install {
  background: #f97316;
  color: #ffffff;
  border: none;
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
}

@keyframes sheetPop {
  from { transform: scale(0.92) translateY(-10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes dialogPop {
  from { transform: translate(-50%, -46%) scale(0.95); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
