/*
 * 방문자 페이지 공통 스타일 — 기준 디자인 v4 (docs/109 §9 · docs/prototype/web_v4/)
 * 1단계(2026-10-06): 첫 화면(caller.php·temp_caller.php) + 전화 전 안내 시트 + 안내 시트.
 *
 * 색은 아래 :root 한곳에서만 정의한다(페이지에 색 직접 기입 금지 · 사장님 10-06).
 * 기본 세트 = personal + sky 고정 · 다크 자동 전환 없음(E5).
 * 파생 색(--vp-off-bg 등)은 v4 원본의 mix() 공식으로 미리 계산한 값.
 *
 * 레이아웃은 <html data-layout="mobile|fold|pc"> (visitor_head.php 의 판정 스크립트)로 나뉜다.
 */

:root {
  color-scheme: light;

  /* sky 테마 (v4 THEMES.sky) */
  --vp-bg-a: #e8f1ff;
  --vp-bg-b: #f8fafd;
  --vp-blob-1: rgba(70, 140, 255, 0.3);
  --vp-blob-2: rgba(130, 195, 255, 0.34);
  --vp-accent: #2f7bf5;
  --vp-ink: #191f28;
  --vp-sub: #5f6b7a;
  --vp-faint: #7f8a98;
  --vp-card: #fafcff;
  --vp-panel: #eef3fa;
  --vp-line: #d8e1ec;
  --vp-soft: #e1e9f4;
  --vp-call-bg: #1f64d6;
  --vp-call-fg: #ffffff;

  /* 파생 (v4 renderVals) */
  --vp-off-bg: #e6edf6; /* mix(soft, card, .2) */
  --vp-off-fg: var(--vp-faint);
  --vp-sec-bg: #ecf3fe; /* mix(card, accent, .07) */
  --vp-sec-line: #bacfee; /* mix(line, accent, .18) */
  --vp-tag-bg: rgba(47, 123, 245, 0.12); /* rgba(accent, .12) */
  --vp-notice-bg: rgba(25, 31, 40, 0.07); /* rgba(ink, .07) */
  --vp-call-shadow: rgba(31, 100, 214, 0.55); /* rgba(callBg, .55) */
  --vp-glow: #a1c4fb; /* mix(accent, #FFF, .55) */
  --vp-glow-25: rgba(161, 196, 251, 0.25);
  --vp-face-b: #6da3f8; /* mix(accent, #FFF, .3) — 사진 없을 때 이니셜 배경 */
  --vp-shade: rgba(0, 30, 80, 0.22);
  --vp-backdrop: rgba(10, 14, 22, 0.45);
  --vp-white: #ffffff;
  --vp-shade-face: rgba(0, 20, 60, 0.35);   /* 사진 원 그림자 */
  --vp-shade-stage: rgba(0, 30, 80, 0.45);  /* 폴더블 프로필 카드 */
  --vp-shade-bubble: rgba(0, 30, 80, 0.28); /* 폴더블 말풍선 */
  --vp-shade-panel: rgba(0, 30, 80, 0.35);  /* PC 패널 · QR 상자 · 메시지 카드 */
  --vp-panel-edge: rgba(0, 0, 0, 0.03);
  --vp-err-bg: #fdecee;                     /* 보내기 실패 안내 */
  --vp-err-fg: #b42335;
  --vp-placeholder: #a0a9b4;
  --vp-dark-bg: #0b0d12;   /* 통화·결과 화면 바탕 (v4 isDark) */
  --vp-dark-panel: #151922;   /* PC 패널(어두운 화면) */
  --vp-dark-edge: rgba(255, 255, 255, 0.06);
  --vp-dark-text: #ffffff;
  --vp-dark-sub: #a7afbb;
  --vp-dark-faint: #7d8696;
  --vp-dark-ctl: #2a2c31;   /* 음소거 버튼 */
  --vp-dark-ctl-on-fg: #111111;
  --vp-dark-ring-dim: #5a6170;   /* 끝난 화면 사진 테두리 */
  --vp-glass: rgba(255, 255, 255, 0.08);
  --vp-glass-line: rgba(255, 255, 255, 0.16);
  --vp-glass-soft: rgba(255, 255, 255, 0.06);
  --vp-glass-soft-line: rgba(255, 255, 255, 0.1);
  --vp-glass-num: rgba(255, 255, 255, 0.14);
  --vp-qr-dim-bg: rgba(255, 255, 255, 0.04);
  --vp-end: #f04452;   /* 통화 종료 */
  --vp-end-shadow: rgba(240, 68, 82, 0.65);
  --vp-live: #3ddc84;   /* 마이크 소리 막대 */
  --vp-res-amber: #ffb020;   /* 결과 점: 통화 중·끊김·마이크 */
  --vp-res-gray: #8b95a1;   /* 결과 점: 응답 없음 */
  --vp-res-red: #f04452;   /* 결과 점: 연결 실패 */
  --vp-btn-white-fg: #191f28;   /* 결과 흰 버튼 글자 */

  /* 상태 3종 (v4 STATUS · E4) */
  --vp-st-available: #1db56c;
  --vp-st-available-text: #127a47;
  --vp-st-dnd: #f5a524;
  --vp-st-dnd-text: #9a5d00;
  --vp-st-off: #8b95a1;
  --vp-st-off-text: var(--vp-sub);
}

/* ---------- 기본 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    system-ui,
    "Apple SD Gothic Neo",
    sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--vp-ink);
  background: linear-gradient(180deg, var(--vp-bg-a), var(--vp-bg-b)) fixed;
}
/* 정지된 배경 번짐(v4 fxEl · 투명도 .6) — 움직이는 배경 효과는 없음(E1) */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(38% 32% at 25% 22%, var(--vp-blob-1), transparent 70%),
    radial-gradient(42% 38% at 78% 72%, var(--vp-blob-2), transparent 70%);
}
html[data-layout="fold"] body::before {
  display: none;
}
button {
  font-family: inherit;
  -webkit-user-select: none;
  user-select: none;
  cursor: pointer;
}
svg {
  flex: none;
}
[hidden] {
  display: none !important;
}
.vp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@keyframes vpSpin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
@keyframes vpBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.35;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.9;
  }
}
@keyframes vpUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes vpFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ---------- 프로필(무대) ---------- */
.vp-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vp-avatar {
  position: relative;
  width: var(--av);
  height: var(--av);
  flex: none;
}
.vp-avatar-ring {
  position: absolute;
  inset: -11px;
  border-radius: 50%;
  border: 2px solid var(--vp-accent);
  animation: vpBreath 3.2s ease-in-out infinite;
}
.vp-avatar-face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--vp-soft) center / cover no-repeat;
  border: 4px solid var(--vp-card);
  box-shadow:
    0 0 0 2.5px var(--vp-accent),
    0 16px 36px -14px var(--vp-shade-face);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-avatar-face.is-initial {
  background: linear-gradient(145deg, var(--vp-call-bg), var(--vp-face-b));
  color: var(--vp-white);
  font-size: calc(var(--av) * 0.4);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.vp-avatar-dot {
  position: absolute;
  right: calc(var(--av) * 0.02);
  bottom: calc(var(--av) * 0.02);
  width: calc(var(--av) * 0.2);
  height: calc(var(--av) * 0.2);
  border-radius: 50%;
  border: max(3px, calc(var(--av) * 0.035)) solid var(--vp-card);
  background: var(--vp-st-available);
}
.vp[data-status="dnd"] .vp-avatar-dot {
  background: var(--vp-st-dnd);
}
.vp[data-status="off"] .vp-avatar-dot {
  background: var(--vp-st-off);
}
.vp[data-status="off"] .vp-avatar-ring {
  display: none;
}

.vp-name {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vp-ink);
  word-break: keep-all;
}
.vp-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--vp-st-available-text);
}
.vp-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vp-st-available);
  flex: none;
}
.vp[data-status="dnd"] .vp-status {
  color: var(--vp-st-dnd-text);
}
.vp[data-status="dnd"] .vp-status::before {
  background: var(--vp-st-dnd);
}
.vp[data-status="off"] .vp-status {
  color: var(--vp-st-off-text);
}
.vp[data-status="off"] .vp-status::before {
  background: var(--vp-st-off);
}

.vp-bubble {
  position: relative;
  max-width: 100%;
  background: var(--vp-card);
  border-radius: 22px;
  padding: 18px 24px;
  box-shadow: 0 8px 28px -12px var(--vp-shade);
}
.vp-bubble::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: inherit;
  border-radius: 3px;
  transform: translateX(-50%) rotate(45deg);
}
.vp-bubble p {
  position: relative;
  margin: 0;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--vp-ink);
  text-align: center;
  word-break: keep-all;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* ---------- 버튼 ---------- */
.vp-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vp-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--vp-sub);
  margin-bottom: 2px;
}
.vp-notice {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  padding: 9px 14px;
  border-radius: 14px;
  background: var(--vp-notice-bg);
  font-size: 14.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--vp-ink);
  text-align: left;
  word-break: keep-all;
  animation: vpFade 0.2s ease;
}

.vp-btn {
  width: 100%;
  min-height: 60px;
  border-radius: 18px;
  border: 0;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
/* 주 버튼 = 테두리 회전 빛(spin · E1) — 감싼 상자 2px 안쪽에 버튼 */
.vp-primary {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 2px;
  background: var(--vp-call-bg);
  box-shadow: 0 14px 30px -14px var(--vp-call-shadow);
}
.vp-primary::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 170%;
  aspect-ratio: 1;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 220deg,
    var(--vp-glow-25) 280deg,
    var(--vp-glow) 330deg,
    var(--vp-white) 350deg,
    transparent 360deg
  );
  transform: translate(-50%, -50%);
  animation: vpSpin 3.6s linear 0.6s infinite;
}
.vp-primary .vp-btn {
  position: relative;
  min-height: 56px;
  border-radius: 16px;
  background: var(--vp-call-bg);
  color: var(--vp-call-fg);
  font-weight: 700;
}
.vp-secondary {
  border: 1px solid var(--vp-sec-line);
  background: var(--vp-sec-bg);
  color: var(--vp-ink);
}
.vp-secondary svg {
  color: var(--vp-accent);
}
.vp-off {
  background: var(--vp-off-bg);
  color: var(--vp-off-fg);
}

.vp-infolink {
  align-self: center;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vp-sub);
}

/* 글자 크기 "가" (E6 — 손가락 확대는 막지 않는다) */
.vp-top {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.vp-ts {
  height: 36px;
  padding: 0 12px;
  border-radius: 18px;
  border: 1px solid var(--vp-line);
  background: var(--vp-card);
  color: var(--vp-ink);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}
.vp-ts-bars {
  display: flex;
  gap: 2px;
  align-items: flex-end;
}
.vp-ts-bars i {
  width: 3px;
  border-radius: 2px;
  background: var(--vp-line);
}
.vp-ts-bars i:nth-child(1) {
  height: 6px;
  background: var(--vp-ink);
}
.vp-ts-bars i:nth-child(2) {
  height: 9px;
}
.vp-ts-bars i:nth-child(3) {
  height: 12px;
}
html[data-ts="1"] .vp-ts-bars i:nth-child(2),
html[data-ts="2"] .vp-ts-bars i:nth-child(2),
html[data-ts="2"] .vp-ts-bars i:nth-child(3) {
  background: var(--vp-ink);
}
html[data-ts="1"] .vp-zoom {
  zoom: 1.15;
}
html[data-ts="2"] .vp-zoom {
  zoom: 1.3;
}

/* PC 전용 요소 기본 숨김 */
.vp-qr,
.vp-foot {
  display: none;
}

/* ======================================================================
 * 모바일 (기본)
 * ==================================================================== */
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-frame {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 22px
    calc(env(safe-area-inset-bottom, 0px) + 12px);
}
html[data-ts="1"]:not([data-layout="fold"]):not([data-layout="pc"]) .vp-frame {
  min-height: calc(100dvh / 1.15);
}
html[data-ts="2"]:not([data-layout="fold"]):not([data-layout="pc"]) .vp-frame {
  min-height: calc(100dvh / 1.3);
}
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-side {
  display: contents;
}
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-top {
  order: 0;
}
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-stage {
  order: 1;
  gap: 12px;
  margin-top: clamp(0px, 3vh, 32px);
  --av: min(150px, 36vw);
}
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-stage.has-greeting {
  --av: min(128px, 36vw);
}
/* 인사말이 없으면 프로필을 세로 가운데로(v4 centerProfile) */
html:not([data-layout="fold"]):not([data-layout="pc"])
  .vp-stage:not(.has-greeting) {
  margin-top: auto;
  padding-top: 20px;
}
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-namebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-bubble {
  margin-top: 8px;
}
html:not([data-layout="fold"]):not([data-layout="pc"]) .vp-actions {
  order: 2;
  margin-top: auto;
  padding-top: 20px;
}

/* ======================================================================
 * 폴더블 (터치 + 폭 ≥ 600 + 높이/폭 < 1.3)
 * ==================================================================== */
html[data-layout="fold"] body {
  background: var(--vp-panel);
}
html[data-layout="fold"] .vp-frame {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  gap: var(--pane-gap, 56px);
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 24px
    calc(env(safe-area-inset-bottom, 0px) + 20px);
}
html[data-layout="fold"][data-ts="1"] .vp-frame {
  min-height: calc(100dvh / 1.15);
}
html[data-layout="fold"] .vp-stage {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(165deg, var(--vp-bg-a), var(--vp-bg-b));
  isolation: isolate;
  box-shadow: 0 30px 70px -40px var(--vp-shade-stage);
  justify-content: center;
  gap: clamp(6px, 1.4vh, 12px);
  padding: clamp(20px, 4vh, 40px) 28px;
  --av: clamp(96px, 24vh, 176px);
}
html[data-layout="fold"] .vp-stage::before {
  content: "";
  position: absolute;
  inset: -25%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
  background:
    radial-gradient(38% 32% at 25% 22%, var(--vp-blob-1), transparent 70%),
    radial-gradient(42% 38% at 78% 72%, var(--vp-blob-2), transparent 70%);
}
html[data-layout="fold"] .vp-namebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
html[data-layout="fold"] .vp-name {
  font-size: clamp(28px, 5vh, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
html[data-layout="fold"] .vp-status {
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: var(--vp-card);
  font-size: 15px;
}
html[data-layout="fold"] .vp-bubble {
  margin-top: 14px;
  width: 100%;
  max-width: 400px;
  border-radius: 24px;
  padding: 20px 24px;
  box-shadow: 0 12px 32px -14px var(--vp-shade-bubble);
}
html[data-layout="fold"] .vp-bubble p {
  font-size: 22px;
}
html[data-layout="fold"] .vp-side {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
html[data-layout="fold"] .vp-actions {
  flex: 1;
  justify-content: safe center;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 8px 8px clamp(12px, 4vh, 44px);
}

/* ======================================================================
 * PC (마우스 + 폭 ≥ 880) — 패널 + 휴대폰으로 여는 QR
 * ==================================================================== */
html[data-layout="pc"],
html[data-layout="pc"] body {
  height: 100%;
  overflow: hidden;
}
html[data-layout="pc"] .vp {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 820px;
  transform: translate(-50%, -50%) scale(var(--pc-scale, 1));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
html[data-layout="pc"] .vp-frame {
  width: 820px;
  height: 660px;
  background: var(--vp-panel);
  border-radius: 44px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-rows: 1fr auto auto 1fr;
  grid-template-areas: ". qr" "stage qr" "actions qr" ". qr";
  column-gap: 18px;
  box-shadow:
    0 40px 90px -40px var(--vp-shade-panel),
    0 0 0 1px var(--vp-panel-edge);
}
html[data-layout="pc"] .vp-side {
  display: contents;
}
html[data-layout="pc"] .vp-top,
html[data-layout="pc"] .vp-infolink {
  display: none;
}
html[data-layout="pc"] .vp-stage {
  grid-area: stage;
  padding: 0 20px;
  --av: 120px;
}
html[data-layout="pc"] .vp-namebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}
html[data-layout="pc"] .vp-bubble {
  margin-top: 16px;
  width: 100%;
  background: var(--vp-soft);
  padding: 18px 20px;
  box-shadow: none;
}
html[data-layout="pc"] .vp-bubble p {
  font-size: 20px;
}
html[data-layout="pc"] .vp-actions {
  grid-area: actions;
  gap: 10px;
  margin-top: 26px;
  padding: 0 20px;
}
html[data-layout="pc"] .vp-hint {
  min-height: 22px;
  font-size: 14.5px;
}
html[data-layout="pc"] .vp-notice {
  padding: 8px 14px;
  font-size: 14px;
}
html[data-layout="pc"] .vp-btn {
  min-height: 60px;
  font-size: 17px;
  gap: 9px;
}
html[data-layout="pc"] .vp-primary .vp-btn {
  min-height: 56px;
}

html[data-layout="pc"] .vp-qr {
  grid-area: qr;
  background: var(--vp-soft);
  border-radius: 30px;
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  min-width: 0;
}
.vp-qr-pill {
  height: 28px;
  padding: 0 12px;
  border-radius: 14px;
  background: var(--vp-card);
  color: var(--vp-accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vp-qr-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vp-ink);
}
.vp-qr-box {
  width: min(196px, 100%);
  aspect-ratio: 1;
  background: var(--vp-white);
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 12px 30px -16px var(--vp-shade-panel);
  margin: 4px 0;
}
.vp-qr-box svg {
  width: 100%;
  height: 100%;
  display: block;
}
.vp-qr-desc {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--vp-sub);
  word-break: keep-all;
  text-wrap: balance;
}
.vp-qr-url {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--vp-card);
  border-radius: 14px;
  padding: 6px 6px 6px 14px;
  margin-top: 4px;
}
.vp-qr-url span {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: var(--vp-ink);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vp-qr-url button {
  flex: none;
  height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 0;
  background: var(--vp-soft);
  color: var(--vp-ink);
  font-size: 13px;
  font-weight: 600;
}
html[data-layout="pc"] .vp-foot {
  display: flex;
  border: 0;
  background: transparent;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--vp-sub);
}

/* ======================================================================
 * 시트 (전화 전 안내 · 보내는 사람 · 안내) — 모바일 = 아래에서, 폴더블·PC = 가운데
 * ==================================================================== */
.vp-sheet {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}
.vp-sheet[hidden] {
  display: none;
}
.vp-sheet-back {
  position: absolute;
  inset: 0;
  background: var(--vp-backdrop);
  animation: vpFade 0.25s ease;
}
.vp-sheet-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--vp-card);
  border-radius: 28px 28px 0 0;
  padding: 10px 24px calc(env(safe-area-inset-bottom, 0px) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: vpUp 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 100%;
  overflow-y: auto;
}
html[data-layout="fold"] .vp-sheet,
html[data-layout="pc"] .vp-sheet {
  justify-content: center;
  padding: 24px;
}
html[data-layout="fold"] .vp-sheet-panel,
html[data-layout="pc"] .vp-sheet-panel {
  max-width: 440px;
  border-radius: 28px;
  animation: vpFade 0.2s ease;
}
.vp-grip {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--vp-line);
  align-self: center;
}

.vp-mic {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.vp-mic-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--vp-tag-bg);
  color: var(--vp-accent);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-mic-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vp-mic-title {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vp-ink);
  word-break: keep-all;
}
.vp-mic-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--vp-sub);
  word-break: keep-all;
}

.vp-pick {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.vp-pick-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--vp-ink);
}
.vp-sheet.has-mic .vp-pick-title {
  font-size: 16px;
}
.vp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vp-chip {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 23px;
  border: 1px solid var(--vp-line);
  background: var(--vp-card);
  color: var(--vp-ink);
  font-size: 16px;
  font-weight: 600;
}
.vp-chip[aria-pressed="true"] {
  border-color: var(--vp-call-bg);
  background: var(--vp-call-bg);
  color: var(--vp-call-fg);
}
.vp-pick-note {
  font-size: 13.5px;
  color: var(--vp-sub);
}

.vp-sheet-btns {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 8px;
}
.vp-sheet-btns button {
  min-height: 56px;
  border-radius: 16px;
  border: 0;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.vp-cancel {
  background: var(--vp-soft);
  color: var(--vp-ink);
}
.vp-go {
  background: var(--vp-call-bg);
  color: var(--vp-call-fg);
  font-size: 17px !important;
  font-weight: 700 !important;
}

.vp-info-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--vp-ink);
}
.vp-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.vp-info-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--vp-soft);
  color: var(--vp-accent);
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vp-info-row b {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--vp-ink);
  margin-bottom: 3px;
}
.vp-info-row span {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--vp-sub);
  word-break: keep-all;
}
.vp-info-ok {
  min-height: 56px;
  border-radius: 16px;
  border: 0;
  background: var(--vp-call-bg);
  color: var(--vp-call-fg);
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
}

/* ======================================================================
 * 메시지 작성 (2단계 · v4 sheet / pcMsg) — 모바일 = 아래에서 올라오는 시트 · 폴더블·PC = 버튼 자리 카드
 * ==================================================================== */
.vp-msgwrap { position: fixed; inset: 0; z-index: 10; display: flex; flex-direction: column; justify-content: flex-end; }
.vp-msg-back { position: absolute; inset: 0; background: var(--vp-backdrop); animation: vpFade 0.25s ease; }
.vp-msg {
  position: relative; width: 100%; max-width: 520px; margin: 0 auto;
  background: var(--vp-card); border-radius: 28px 28px 0 0;
  padding: 10px 22px calc(env(safe-area-inset-bottom, 0px) + 18px);
  display: flex; flex-direction: column; gap: 12px;
  animation: vpUp 0.34s cubic-bezier(0.2, 0.8, 0.2, 1);
  max-height: 100%; overflow-y: auto;
}
.vp-msg:focus { outline: none; }
.vp-msg-head { display: flex; align-items: center; gap: 12px; }
.vp-msg-face {
  width: 44px; height: 44px; border-radius: 50%; flex: none; overflow: hidden;
  border: 2px solid var(--vp-card); box-shadow: 0 0 0 2px var(--vp-accent);
  background: var(--vp-soft) center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.vp-msg-face.is-initial { background: linear-gradient(145deg, var(--vp-call-bg), var(--vp-face-b)); color: var(--vp-white); font-size: 18px; font-weight: 700; }
.vp-msg-title { flex: 1; font-size: 19px; font-weight: 700; color: var(--vp-ink); word-break: keep-all; }
.vp-msg-close {
  width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--vp-soft); color: var(--vp-sub);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.vp-sender { background: var(--vp-soft); border-radius: 16px; padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 10px; }
.vp-sender.is-fixed { flex-direction: row; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 14px; }
.vp-sender-row { display: flex; align-items: center; justify-content: space-between; font-size: 15px; }
.vp-sender-row span:first-child, .vp-sender.is-fixed span:first-child { color: var(--vp-sub); font-size: 15px; }
.vp-sender-value { font-size: 15px; font-weight: 600; color: var(--vp-ink); }
.vp-sender-value.is-default { color: var(--vp-faint); }
.vp-sender .vp-chip { min-height: 44px; padding: 0 18px; border-radius: 22px; font-size: 15.5px; }
.vp-quick-label { font-size: 13px; font-weight: 600; color: var(--vp-sub); }
.vp-quick { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-quick button {
  min-height: 38px; padding: 8px 14px; border-radius: 19px; text-align: left;
  border: 1px solid var(--vp-line); background: var(--vp-card); color: var(--vp-ink);
  font-size: 14.5px; font-weight: 600;
}
.vp-quick button[aria-pressed="true"] { border-color: var(--vp-call-bg); background: var(--vp-call-bg); color: var(--vp-call-fg); }
.vp-msg textarea {
  height: 120px; resize: none; border: 1.5px solid var(--vp-accent); border-radius: 14px;
  padding: 14px 16px; font-family: inherit; font-size: 16px; line-height: 1.5;
  color: var(--vp-ink); background: var(--vp-card); outline: none; width: 100%;
}
.vp-msg textarea::placeholder { color: var(--vp-placeholder); }
.vp-count { text-align: right; font-size: 13px; color: var(--vp-faint); font-variant-numeric: tabular-nums; margin-top: -4px; }
.vp-send-err {
  display: flex; align-items: flex-start; gap: 8px; background: var(--vp-err-bg); color: var(--vp-err-fg);
  border-radius: 12px; padding: 10px 12px; font-size: 14px; line-height: 1.4;
}
.vp-send-err svg { margin-top: 2px; }
.vp-msg-btns { display: grid; grid-template-columns: 1fr; gap: 8px; }
.vp-msg-btns .vp-cancel { display: none; min-height: 56px; border-radius: 16px; border: 0; font-size: 16px; font-weight: 600; }
.vp-send {
  min-height: 58px; border-radius: 18px; border: 0;
  background: var(--vp-soft); color: var(--vp-faint);
  font-size: 18px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s;
}
.vp-send.is-ready { background: var(--vp-call-bg); color: var(--vp-call-fg); }

/* 보낸 뒤: 인사말 자리에 결과 말풍선 (v4 showSent) */
.vp-sent { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vp-sent::before { display: none; }
.vp-sent b { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--vp-ink); }
.vp-sent b svg { color: var(--vp-accent); }
.vp-sent span { font-size: 15px; color: var(--vp-sub); }
html.vp-sent-shown .vp-bubble:not(.vp-sent) { display: none; }

/* 폴더블·PC: 시트 대신 버튼 자리에 카드 */
html[data-layout="fold"] .vp-msgwrap, html[data-layout="pc"] .vp-msgwrap { position: static; display: block; z-index: auto; }
html[data-layout="fold"] .vp-msgwrap[hidden], html[data-layout="pc"] .vp-msgwrap[hidden] { display: none; }
html[data-layout="fold"] .vp-msg-back, html[data-layout="pc"] .vp-msg-back,
html[data-layout="fold"] .vp-msg-face, html[data-layout="pc"] .vp-msg-face,
html[data-layout="fold"] .vp-msg .vp-grip, html[data-layout="pc"] .vp-msg .vp-grip { display: none; }
html[data-layout="fold"] .vp-msg, html[data-layout="pc"] .vp-msg { border-radius: 26px; padding: 20px; animation: vpFade 0.25s ease; max-height: none; overflow: visible; }
html[data-layout="fold"] .vp-msg-title, html[data-layout="pc"] .vp-msg-title { font-size: 20px; }
html[data-layout="fold"] .vp-msg-btns, html[data-layout="pc"] .vp-msg-btns { grid-template-columns: 1fr 2fr; }
html[data-layout="fold"] .vp-msg-btns .vp-cancel, html[data-layout="pc"] .vp-msg-btns .vp-cancel { display: block; }
html[data-layout="fold"] .vp-send, html[data-layout="pc"] .vp-send { min-height: 56px; border-radius: 16px; font-size: 17px; }
html.vp-composing[data-layout="fold"] .vp-actions, html.vp-composing[data-layout="pc"] .vp-actions { display: none; }

html[data-layout="fold"] .vp-msgwrap { flex: 1; display: flex; flex-direction: column; justify-content: safe center; padding: 8px 8px clamp(12px, 4vh, 44px); }
html[data-layout="fold"] .vp-msg { max-width: 460px; box-shadow: 0 18px 44px -22px var(--vp-shade-panel); }
html[data-layout="fold"] .vp-msg textarea { height: clamp(72px, 14vh, 120px); }

html[data-layout="pc"] .vp-msgwrap { grid-area: actions; margin-top: 16px; padding: 0 20px; }
html[data-layout="pc"] .vp-msg { background: transparent; padding: 0; gap: 10px; border-radius: 0; }
html[data-layout="pc"] .vp-msg-head, html[data-layout="pc"] .vp-count, html[data-layout="pc"] .vp-quick-label { display: none; }
html[data-layout="pc"] .vp-sender { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; }
html[data-layout="pc"] .vp-sender .vp-sender-value { display: none; }
html[data-layout="pc"] .vp-sender.is-fixed .vp-sender-value { display: inline; }
html[data-layout="pc"] .vp-sender-row { font-size: 14.5px; }
html[data-layout="pc"] .vp-sender .vp-chip { min-height: 34px; padding: 0 13px; border-radius: 17px; font-size: 14px; }
html[data-layout="pc"] .vp-quick { gap: 6px; }
html[data-layout="pc"] .vp-quick button { min-height: 34px; padding: 6px 12px; border-radius: 17px; font-size: 13.5px; }
html[data-layout="pc"] .vp-msg textarea { height: 96px; padding: 12px 16px; }
html[data-layout="pc"] .vp-send { min-height: 54px; }
html[data-layout="pc"] .vp-msg-btns .vp-cancel { min-height: 54px; }
/* PC 작성 중: 사진 작게 · 인사말 숨김 (v4 avatarP 84 · pcBubble) */
html.vp-composing[data-layout="pc"] .vp-stage { --av: 84px; }
html.vp-composing[data-layout="pc"] .vp-bubble { display: none; }
html.vp-composing[data-layout="pc"] .vp-frame { grid-template-rows: 1fr auto auto 1fr; }

/* ======================================================================
 * 통화·결과 화면 (3단계 · v4 calling/incall/ended/dropped/noanswer/failed/busy/micdenied)
 * <html class="vp-dark" data-nofold> — 폴더블도 모바일 배치(v4 foldView = 대기 화면만)
 * ==================================================================== */
@keyframes vpRipple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes vpTalk { 0%, 100% { transform: scale(1.03); } 30% { transform: scale(1.1); } 60% { transform: scale(1.05); } }
@keyframes vpLvl { 0%, 100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }

html.vp-dark body { background: var(--vp-dark-bg); color: var(--vp-dark-text); }
html.vp-dark body::before { display: none; }
html.vp-dark .vp-name { color: var(--vp-dark-text); }
html.vp-dark .vp-avatar-face { border-color: var(--vp-dark-bg); }
html.vp-dark .vp-avatar-dot, html.vp-dark .vp-avatar-ring { display: none; }
/* 첫 화면의 "인사말 없으면 가운데" 규칙보다 우선 — v4 통화·결과 화면은 사진이 위쪽 */
html.vp-dark:not([data-layout="fold"]):not([data-layout="pc"]) .vp-stage:not(.has-greeting) { margin-top: clamp(0px, 3vh, 32px); padding-top: 0; --av: min(128px, 36vw); }
html.vp-dark .vp-stage { --av: min(128px, 36vw); }
.vp-ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--vp-accent); opacity: 0; animation: vpRipple 2.4s ease-out infinite; }
.vp-ripple:nth-child(2) { animation-delay: 0.8s; }
.vp-ripple:nth-child(3) { animation-delay: 1.6s; }
.vp-talk { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--vp-accent); opacity: 0.8; animation: vpTalk 1.4s ease-in-out infinite; }
.vp-call:not([data-mode="calling"]) .vp-ripple, .vp-call:not([data-mode="incall"]) .vp-talk { display: none; }
.vp-dim:not([data-mode="busy"]) .vp-avatar-face { box-shadow: 0 0 0 2.5px var(--vp-dark-ring-dim), 0 16px 36px -14px var(--vp-shade-face); }
.vp-dim[data-mode="ended"] .vp-avatar-face { filter: grayscale(0.5); }

.vp-callinfo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 4px; }
.vp-callstatus { font-size: 16px; font-weight: 500; color: var(--vp-dark-sub); text-align: center; word-break: keep-all; }
.vp-callstatus.is-warn { color: var(--vp-res-amber); }
.vp-timer { font-size: 46px; line-height: 1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; color: var(--vp-dark-text); }
.vp-call:not([data-mode="incall"]) .vp-timer { display: none; }
.vp-pill { height: 30px; padding: 0 12px; border-radius: 15px; background: var(--vp-glass); display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--vp-dark-sub); margin-top: 4px; }
.vp-pill b { color: var(--vp-dark-text); font-weight: 600; }

.vp-callctl { flex-direction: row; justify-content: center; align-items: flex-start; gap: 40px; padding-bottom: 10px; }
.vp-ctl { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: var(--vp-dark-sub); }
.vp-ctl button {
  width: 76px; height: 76px; border-radius: 50%; border: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  transition: background 0.2s, color 0.2s;
}
.vp-mute { background: var(--vp-dark-ctl); color: var(--vp-dark-text); }
.vp-mute[aria-pressed="true"] { background: var(--vp-dark-text); color: var(--vp-dark-ctl-on-fg); }
.vp-mute:disabled { opacity: 0.5; }
.vp-mute .vp-mic-off, .vp-mute[aria-pressed="true"] .vp-mic-on { display: none; }
.vp-mute[aria-pressed="true"] .vp-mic-off { display: block; }
.vp-lvl { display: flex; align-items: flex-end; gap: 2px; height: 8px; }
.vp-lvl i { width: 3px; height: 100%; border-radius: 2px; background: var(--vp-live); transform-origin: bottom; animation: vpLvl 0.9s ease-in-out infinite; }
.vp-lvl i:nth-child(2) { animation-delay: 0.3s; }
.vp-lvl i:nth-child(3) { animation-delay: 0.15s; }
.vp-call:not([data-mode="incall"]) .vp-lvl, .vp-mute[aria-pressed="true"] .vp-lvl { display: none; }
.vp-end { background: var(--vp-end); color: var(--vp-dark-text); box-shadow: 0 12px 32px -8px var(--vp-end-shadow); }
.vp-end svg { transform: rotate(135deg); }
.vp-pc-only { display: none; }

/* 결과 */
.vp-res { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 4px; text-align: center; }
.vp-res-title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 700; color: var(--vp-dark-text); }
.vp-res-title i { width: 8px; height: 8px; border-radius: 50%; background: var(--vp-res-amber); }
.vp-res-title i.is-gray { background: var(--vp-res-gray); }
.vp-res-title i.is-red { background: var(--vp-res-red); }
.vp-res-desc { font-size: 15px; line-height: 1.55; color: var(--vp-dark-sub); max-width: 300px; word-break: keep-all; text-wrap: pretty; margin: 0; }
.vp-res-meta { font-size: 15px; color: var(--vp-dark-sub); font-variant-numeric: tabular-nums; }
.vp-res-net { margin: 4px 0 0; font-size: 13.5px; color: var(--vp-res-amber); text-align: center; }  /* 통화 화면 안 결과 + 오프라인 — 버튼이 열리지 않는 이유 */
.vp-resbtns { gap: 10px; }
.vp-steps { background: var(--vp-glass-soft); border: 1px solid var(--vp-glass-soft-line); border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 4px; text-align: left; }
.vp-steps b { font-size: 13.5px; font-weight: 700; color: var(--vp-dark-sub); }
.vp-steps ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: vpstep; }
.vp-steps li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--vp-dark-text); word-break: keep-all; counter-increment: vpstep; }
.vp-steps li::before { content: counter(vpstep); flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--vp-glass-num); font-size: 12.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.vp-rbtn {
  min-height: 58px; border-radius: 18px; font-size: 17px; text-decoration: none;
  display: flex; align-items: center; justify-content: center; gap: 9px;
}
.vp-rbtn-w { background: var(--vp-white); color: var(--vp-btn-white-fg); font-weight: 700; border: 0; }
.vp-rbtn-g { background: var(--vp-glass); color: var(--vp-dark-text); font-weight: 600; border: 1px solid var(--vp-glass-line); }
.vp-home { align-self: center; min-height: 44px; padding: 0 16px; display: flex; align-items: center; color: var(--vp-dark-sub); font-size: 15px; font-weight: 600; text-decoration: none; }

/* PC (어두운 화면): 넓은 버튼 · 흐린 QR 패널 */
html.vp-dark[data-layout="pc"] .vp-frame { background: var(--vp-dark-panel); box-shadow: 0 40px 90px -40px var(--vp-shade-panel), 0 0 0 1px var(--vp-dark-edge); }
html.vp-dark[data-layout="pc"] .vp-qr { background: var(--vp-qr-dim-bg); opacity: 0.35; }
html.vp-dark[data-layout="pc"] .vp-qr-title { color: var(--vp-dark-text); } /* v4 ink = 어두운 화면이면 흰색 */
html.vp-dark[data-layout="pc"] .vp-foot { color: var(--vp-dark-faint); cursor: default; }
html.vp-dark[data-layout="pc"] .vp-stage { margin-top: 0; --av: 120px; }
html.vp-dark[data-layout="pc"] .vp-callinfo, html.vp-dark[data-layout="pc"] .vp-res { margin-top: 12px; }
html.vp-dark[data-layout="pc"] .vp-timer { font-size: 44px; letter-spacing: 0; }
html.vp-dark[data-layout="pc"] .vp-pill { height: 28px; border-radius: 14px; font-size: 13px; margin-top: 0; }
html.vp-dark[data-layout="pc"] .vp-res-title { font-size: 20px; }
html.vp-dark[data-layout="pc"] .vp-res-desc { max-width: 320px; }
html.vp-dark[data-layout="pc"] .vp-callctl { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 36px; padding-bottom: 0; }
html.vp-dark[data-layout="pc"] .vp-resbtns { margin-top: 30px; }
html.vp-dark[data-layout="pc"] .vp-pc-only { display: block; text-align: center; font-size: 14px; color: var(--vp-dark-sub); }
html.vp-dark[data-layout="pc"] .vp-ctl { display: contents; }
html.vp-dark[data-layout="pc"] .vp-ctl > span { display: none; }
html.vp-dark[data-layout="pc"] .vp-ctl button { width: 100%; height: 56px; border-radius: 18px; flex-direction: row; gap: 10px; font-size: 16px; font-weight: 600; }
html.vp-dark[data-layout="pc"] .vp-ctl .vp-end { height: 60px; font-size: 17px; font-weight: 700; box-shadow: 0 14px 32px -12px var(--vp-end-shadow); }
html.vp-dark[data-layout="pc"] .vp-ctl .vp-end-label { display: inline; }
.vp-end-label, .vp-mute-label { display: none; }
html.vp-dark[data-layout="pc"] .vp-mute-label { display: inline; }
html.vp-dark[data-layout="pc"] .vp-rbtn { min-height: 56px; }

/* ---------- 움직임 정지: 동작 줄이기 · 저사양/절약 모드(.vp-still) · 화면 꺼짐(.vp-still) — E1 ---------- */
html.vp-still .vp-avatar-ring,
html.vp-still .vp-primary::before {
  animation: none;
  display: none;
}
html.vp-still .vp-primary {
  padding: 0;
}
html.vp-still .vp-primary .vp-btn {
  min-height: 60px;
  border-radius: 18px;
}
html.vp-still .vp-ripple,
html.vp-still .vp-talk,
html.vp-still .vp-lvl,
html.vp-still .vp-msg-back,
html.vp-still .vp-msg,
html.vp-still .vp-sheet-back,
html.vp-still .vp-sheet-panel,
html.vp-still .vp-notice {
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .vp-avatar-ring,
  .vp-primary::before {
    animation: none;
    display: none;
  }
  .vp-primary {
    padding: 0;
  }
  .vp-primary .vp-btn {
    min-height: 60px;
    border-radius: 18px;
  }
  .vp-ripple,
  .vp-talk,
  .vp-lvl {
    display: none;
  }
  .vp-sheet-back,
  .vp-sheet-panel,
  .vp-msg-back,
  .vp-msg,
  .vp-notice {
    animation: none;
  }
}

/* ======================================================================
 * 오류 화면 — v4 notfound (docs/109 §9.3 R7 · 4단계 · templates/error.php)
 * 모바일 = 배경 위 그대로 · 폴더블·PC = 520px 카드
 * ==================================================================== */
.vp-nf { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px 22px; }
.vp-nf-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
html[data-layout="pc"] .vp-nf-card, html[data-layout="fold"] .vp-nf-card { max-width: 520px; background: var(--vp-card); border-radius: 36px; padding: 56px 40px; box-shadow: 0 40px 90px -40px var(--vp-shade-panel); }
.vp-nf-icon { width: 104px; height: 104px; border-radius: 50%; background: var(--vp-soft); color: var(--vp-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.vp-nf-title { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--vp-ink); }
.vp-nf-desc { margin: 0; font-size: 16px; line-height: 1.6; color: var(--vp-sub); word-break: keep-all; text-wrap: balance; max-width: 320px; }
