/* 도나도나 작품 사이트 v2 : 앱형 한 페이지 (모바일 먼저 · 외부 요청 없음)
   간격: 화면 옆 16 · 카드 사이 12~16 · 묶음 사이 24~32 · 글줄 사이 4~8 (모두 4의 배수)
   둥근 모서리: 알약 999 · 큰 카드 24~26 · 작은 칸 14 / 글: 이름·버튼 = 둥근 글씨, 설명 = 기본 글씨 */
:root {
  --ink: #2b2130;
  --sub: #6f6272;
  --line: #f0e3ea;
  --paper: #fffafc;
  --accent: #ff6f9f;
  --accent-deep: #c23f6e;
  --accent-soft: #ffc6d8;
  --accent-softer: #fff0f5;
  --deep: #4a1f33;
  --glow: rgba(255, 111, 159, .5);
  --veil-home: linear-gradient(180deg, rgba(255, 220, 232, .18) 0%, rgba(255, 196, 214, .08) 45%, rgba(74, 31, 51, .55) 100%);
  --veil-page: rgba(255, 246, 250, .9);
  --page-bg: #fcf1f5;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Noto Sans CJK KR", system-ui, sans-serif;
  --round: "DonaRound", var(--sans);
  --brush: "DonaBrush", var(--sans);
  --serif: "DonaSerif", "AppleMyungjo", "Batang", serif;
  --mono: ui-monospace, "SFMono-Regular", "D2Coding", "Nanum Gothic Coding", Menlo, Consolas, monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
body[data-mode="2"] {
  --accent: #ff8a5c;
  --accent-deep: #c4552c;
  --accent-soft: #ffcfba;
  --accent-softer: #fff3ec;
  --deep: #2b1d45;
  --glow: rgba(255, 138, 92, .5);
  --veil-home: linear-gradient(180deg, rgba(43, 29, 69, .12) 0%, rgba(43, 29, 69, .2) 45%, rgba(30, 18, 50, .7) 100%);
  --veil-page: rgba(255, 246, 241, .9);
  --page-bg: #fcf2ec;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100svh; background: var(--deep); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: -0.01em;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.round { font-family: var(--round); font-weight: 400; letter-spacing: 0; }
.brush { font-family: var(--brush); font-weight: 400; letter-spacing: 0; line-height: 1; }
.serif { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }

/* 모드 · 화면 보이기 */
body[data-mode="1"] .m2:not(.bg-img), body[data-mode="2"] .m1:not(.bg-img) { display: none !important; }
.view { display: none; position: relative; z-index: 1; }
body[data-view="home"] .v-home { display: flex; }
body[data-view="webtoon"] .v-webtoon,
body[data-view="people"] .v-people,
body[data-view="places"] .v-places,
body[data-view="guide"] .v-guide,
body[data-view="person"] .v-person { display: block; }

/* 배경 */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--deep); }
.bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); opacity: 0; transition: opacity .6s ease; }
body[data-mode="1"] .bg-img.m1, body[data-mode="2"] .bg-img.m2 { opacity: 1; }
.veil { position: absolute; inset: 0; background: var(--veil-home); transition: background .4s; }
body:not([data-view="home"]) .veil { background: var(--veil-page); }
body[data-view="webtoon"] { background: #0f0c12; }
body[data-view="people"], body[data-view="places"], body[data-view="guide"], body[data-view="person"] { background: var(--page-bg); }
body[data-view="webtoon"] .bg { display: none; }

/* ── 처음 화면 ── */
.v-home { min-height: 100svh; flex-direction: column; align-items: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); }
.hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 0 32px; }
.logo { margin: 0; font-size: clamp(64px, 20vw, 112px); color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, .06), 0 6px 24px rgba(40, 10, 30, .5), 0 0 3px rgba(40, 10, 30, .35); }
.logo > span { display: block; }
.logo > span + span { margin-top: 4px; }
.logo .who { display: inline-block; }
.who b { display: inline-block; font-weight: 400; animation: flip .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes flip { from { transform: translateY(-.3em) rotateX(75deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ep-chip { display: inline-block; margin-top: 18px; padding: 6px 16px; border-radius: 999px; background: rgba(255, 255, 255, .9); color: var(--deep); font-size: 15px; box-shadow: 0 6px 16px rgba(40, 10, 30, .15); }
.hook { margin: 16px auto 0; color: #fff; font-size: 15px; line-height: 1.6; text-shadow: 0 1px 3px rgba(40, 10, 30, .55), 0 2px 12px rgba(40, 10, 30, .6); }
.hook span { display: block; }
.menu { width: min(100%, 360px); display: grid; gap: 12px; }
.pill { display: flex; align-items: center; justify-content: center; gap: 10px; height: 62px; padding: 0 20px; border-radius: 999px;
  border: 4px solid #fff; background: rgba(255, 255, 255, .92); color: var(--deep); font-size: 20px;
  box-shadow: 0 8px 22px rgba(30, 10, 30, .18); transition: transform .15s ease, box-shadow .15s ease; }
.pill:active { transform: scale(.97); }
.pill .ic { width: 22px; height: 22px; }
.pill-main { background: var(--accent); color: #fff; box-shadow: 0 10px 28px var(--glow); }
.pill-mini { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .72); border: 2px solid rgba(255, 255, 255, .95); color: var(--deep); font-size: 14.5px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pill-mini.off { opacity: .7; }
.pill-mini .ic { width: 16px; height: 16px; }
.badge-mini { font-family: var(--sans); font-size: 10.5px; font-weight: 800; padding: 1px 6px; border-radius: 6px; background: var(--accent-softer); color: var(--accent-deep); }
.badge-mini.b19 { background: #e2445c; color: #fff; }
.tiny { margin-top: 16px; font-size: 11.5px; color: rgba(255, 255, 255, .85); text-align: center; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }

/* 편 바꾸기 */
.modebar { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(100%, 300px); height: 46px; padding: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .78); box-shadow: 0 6px 18px rgba(30, 10, 30, .14); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modebar.small { margin: 0 auto 16px; height: 42px; }
.seg { position: relative; z-index: 1; border: 0; background: none; border-radius: 999px; font-size: 15.5px; color: var(--sub); cursor: pointer; transition: color .25s; }
.seg[aria-pressed="true"] { color: #fff; }
.seg-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent);
  box-shadow: 0 4px 12px var(--glow); transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s; }
body[data-mode="2"] .seg-ind { transform: translateX(100%); }

/* 위 띠 (처음 화면 말고) */
.vbar { display: none; position: sticky; top: 0; z-index: 20; align-items: center; gap: 8px; padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(255, 255, 255, .78); border-bottom: 1px solid rgba(60, 20, 40, .06); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
body:not([data-view="home"]) .vbar { display: flex; }
.back { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 2px solid var(--accent-soft); color: var(--accent-deep); font-size: 15px; white-space: nowrap; }
.vt { flex: 1; text-align: center; font-size: 17px; color: var(--deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt > span { display: none; }
body[data-view="webtoon"] .t-webtoon, body[data-view="people"] .t-people, body[data-view="places"] .t-places, body[data-view="guide"] .t-guide,
body[data-view="person"] .t-person { display: inline; }
.b-people, .b-back, body[data-view="person"] .b-home, body[data-view="places"] .b-home, body[data-view="guide"] .b-home { display: none; }
body[data-view="person"] .b-people, body[data-view="places"] .b-back, body[data-view="guide"] .b-back { display: inline-flex; }
.bgm-btn, .bgm-float { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 2px solid var(--accent-soft); background: #fff; color: var(--accent); cursor: pointer; padding: 0; }
.bgm-btn .ic, .bgm-float .ic { width: 22px; height: 22px; }
.sp-on { display: none; }
body.playing .sp-on { display: block; }
body.playing .sp-off { display: none; }
body.playing .bgm-btn, body.playing .bgm-float { box-shadow: 0 0 0 4px var(--accent-softer), 0 0 14px var(--glow); }
.bgm-float { display: none; position: fixed; z-index: 30; top: calc(12px + var(--safe-t)); right: 12px; }
body.has-music[data-view="home"] .bgm-float { display: inline-flex; }
body[data-view="webtoon"] .vbar { background: rgba(15, 12, 18, .86); border-bottom-color: rgba(255, 255, 255, .06); }
body[data-view="webtoon"] .vt { color: #fff; }
body[data-view="webtoon"] .back { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
body[data-view="webtoon"] .bgm-btn { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; }
.prog { display: none; position: fixed; left: 0; top: var(--safe-t); z-index: 21; height: 3px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }
body[data-view="webtoon"] .prog { display: block; }

.inner { max-width: 600px; margin: 0 auto; padding: 16px 16px calc(40px + var(--safe-b)); }

/* ── 웹툰 ── */
.strip { max-width: 800px; margin: 0 auto; background: #000; }
.strip img { width: 100%; height: auto; }
.wt-end { max-width: 800px; margin: 0 auto; padding: 36px 16px calc(56px + var(--safe-b)); text-align: center; color: #fff; }
.wt-end .brush { font-size: 42px; }
.wt-end p { margin-top: 8px; font-size: 14px; color: #cbc0cf; }
.wt-end p b { display: block; font-weight: 400; color: #fff; font-size: 16px; }
.wt-end .row { display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; }
.wt-end .pill { width: min(100%, 320px); }
.pill-start .badge-mini { margin-left: 2px; font-size: 11px; }
.pill.off { opacity: .55; cursor: default; box-shadow: none; }
.pill .soon { font-family: var(--sans); font-size: 13px; font-weight: 700; opacity: .9; }
.wt-end .pill-mini { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .25); color: #fff; }

/* ── 등장인물 (좁은 화면: 세로로 크게 한 장씩 · 900px부터: 세 장 나란히) ── */
.v-people .inner { display: flex; flex-direction: column; min-height: calc(100svh - 64px - var(--safe-t)); }
.stage { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 16px; }
.cast { display: grid; grid-template-columns: minmax(0, 440px); justify-content: center; gap: 20px; padding: 6px 0 4px; }
.pcard { position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; border-radius: 26px; overflow: hidden; cursor: pointer;
  border: 4px solid #fff; background: #f3e8ee; box-shadow: 0 0 0 2px var(--accent-soft), 0 12px 24px rgba(40, 10, 30, .16); transition: transform .2s ease; }
.pcard:active { transform: scale(.985); }
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(24, 8, 22, .74) 100%); }
.pbadge { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--accent-deep); font-size: 14px; line-height: 1.3; }
.pcard .pbadge { position: absolute; z-index: 2; top: 14px; right: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .12); }
.pcap { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 18px; color: #fff; text-align: left; }
.pname { display: block; font-size: 38px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.psub { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; opacity: .92; }
.hint { margin-top: 16px; text-align: center; font-size: 13px; color: var(--sub); }
/* 카드 아래 흰 칩: 플레이 팁 · 장소 */
.chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 6px; width: 100%; max-width: 440px; margin: 20px auto 0; }
.chips-k { width: 100%; text-align: center; font-size: 13px; color: var(--accent-deep); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 42px; padding: 0 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--accent-soft);
  color: var(--deep); font-size: 14.5px; white-space: nowrap; box-shadow: 0 4px 12px rgba(40, 10, 30, .08); transition: transform .15s ease; }
.chip:active { transform: scale(.97); }
@media (max-width: 479px) {          /* 휴대폰: 칩 네 개를 두 줄 두 칸으로 가지런히 */
  .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .chips-k { grid-column: 1 / -1; }
  .chip { justify-content: center; }
}

/* ── 인물 자세히: 긴 한 장 (페이지 전체가 내려감, 안쪽 스크롤 없음)
   간격: 묶음(프로필 · 이 편에서 · 마음 단계 · 한마디 · 다른 인물) 사이 28, 묶음 안 12, 칸 안 12~16 ── */
.v-person { max-width: 640px; margin: 0 auto; padding-bottom: calc(48px + var(--safe-b)); }
.person:not([hidden]) { animation: up .3s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(24px); opacity: .3; } to { transform: none; opacity: 1; } }
.ps-hero { position: relative; aspect-ratio: 4 / 3; background: #f3e8ee; overflow: hidden; }
.ps-hero img { width: 100%; height: 100%; object-fit: cover; }
.ps-x { position: absolute; z-index: 2; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: rgba(255, 255, 255, .94); color: var(--deep); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); transition: transform .15s ease; }
.ps-x svg { width: 20px; height: 20px; }
.ps-x:active { transform: scale(.92); }
.ps-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 20px 0; }
.ps-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ps-rel { gap: 24px; }
.sh-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sh-name { margin: 0; font-size: 32px; font-weight: 400; line-height: 1.1; color: var(--deep); }
.sh-head .pbadge { background: var(--accent-softer); border: 1px solid var(--accent-soft); }
.sh-info { display: grid; grid-template-columns: max-content max-content minmax(0, 1fr); gap: 8px; margin: 0; }
.sh-info > div { min-width: 0; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.sh-info dt { margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--accent-deep); }
.sh-info dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.4; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--accent-softer); color: var(--accent-deep); font-size: 14px; border: 1px solid var(--accent-soft); }
.sh-line { padding: 16px 18px; border-radius: 18px; background: var(--deep); color: #fff; font-size: 15px; line-height: 1.7; }
.sh-line .round { display: block; margin-bottom: 6px; font-size: 13px; color: var(--accent-soft); }
.meter .mt { font-size: 16px; color: var(--deep); margin-bottom: 12px; }
.faces { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.faces::before { content: ""; position: absolute; z-index: 0; top: 31px; left: 10%; right: 10%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-softer), var(--accent-soft) 40%, var(--accent)); }
.fc { position: relative; z-index: 1; min-width: 0; text-align: center; }
.fimg { display: block; width: min(64px, 100%); aspect-ratio: 1; margin: 0 auto 6px; border-radius: 50%; overflow: hidden; border: 3px solid var(--accent-soft); background: #f3e8ee; }
.fc:last-child .fimg { border-color: var(--accent); }
.fimg img { width: 100%; height: 100%; object-fit: cover; }
.fr { display: block; font-size: 11px; font-weight: 800; color: var(--accent-deep); font-variant-numeric: tabular-nums; }
.fn { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.3; }
.steps { display: flex; flex-wrap: wrap; gap: 8px; }
.steps span { font-size: 13.5px; padding: 6px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.steps em { font-style: normal; font-weight: 800; font-size: 11.5px; color: var(--accent-deep); margin-right: 4px; }
.sh-quote { text-align: center; font-size: 18px; line-height: 1.6; color: var(--deep); padding: 0 8px; text-wrap: balance; }
.ps-more { display: flex; justify-content: center; gap: 28px; padding-top: 24px; border-top: 1px dashed var(--accent-soft); }
.ps-o { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14.5px; color: var(--deep); }
.ps-av { display: block; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; background: #f3e8ee;
  box-shadow: 0 0 0 2px var(--accent-soft), 0 6px 14px rgba(40, 10, 30, .15); transition: transform .15s ease; }
.ps-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.ps-o:active .ps-av { transform: scale(.94); }

/* ── 장소 ── */
.place-lead { text-align: center; font-size: 14px; color: var(--sub); margin: -4px 0 14px; }
.place-lead b { color: var(--deep); }
.places { display: grid; gap: 16px; }
.place { margin: 0; overflow: hidden; border-radius: 24px; background: #fff; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--accent-soft), 0 12px 26px rgba(40, 10, 30, .14); }
.pl-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.place figcaption { padding: 12px 16px 16px; }
.pl-name { display: block; font-size: 20px; color: var(--deep); line-height: 1.3; }
.pl-text { display: block; margin-top: 4px; font-size: 14.5px; color: var(--sub); line-height: 1.55; }

/* ── 플레이 팁 ── */
.guide { display: grid; gap: 14px; }
.gcard { scroll-margin-top: calc(80px + var(--safe-t)); padding: 16px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(40, 10, 30, .08); }
.gk { display: inline-block; padding: 3px 11px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; }
.gt { margin: 8px 0 2px; font-size: 23px; font-weight: 400; color: var(--deep); line-height: 1.25; }
.gwhen { font-size: 13px; color: var(--sub); }
.gline { margin-top: 8px; font-size: 14.5px; line-height: 1.6; }
.gsub { margin-top: 6px; font-size: 13px; color: var(--sub); }
.kakao { margin-top: 12px; padding: 12px; border-radius: 16px; background: #b2c7d9; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.kakao.mine { align-items: flex-end; background: #9fb3c6; }
.kw { font-size: 12px; font-weight: 700; color: #26323d; }
.kw span { font-weight: 400; margin-left: 4px; }
.kb { max-width: 16em; padding: 7px 11px; border-radius: 4px 14px 14px 14px; background: #fff; color: #1d1d1d; font-size: 14px; line-height: 1.45; }
.kakao.mine .kb { background: #fee500; border-radius: 14px 4px 14px 14px; }
.kn { font-size: 11.5px; color: #3b4a57; }
.status { margin: 10px 0 0; padding: 12px; border-radius: 14px; background: #1f1b25; color: #efe9f3; font-family: var(--mono); font-size: 12px; line-height: 1.65; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lg { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--accent-softer); border: 1px solid var(--accent-soft); }
.tips { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tips li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.55; }
.tips li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.cmds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.cmd { display: block; width: 100%; text-align: left; padding: 9px 11px; border-radius: 14px; background: var(--accent-softer); border: 1px solid var(--line); cursor: pointer; }
.cmd b { display: block; font-size: 15px; font-weight: 400; color: var(--deep); }
.cmd span { display: block; font-size: 12px; color: var(--sub); line-height: 1.35; }
.cmd:active { transform: scale(.98); }

/* ── 작가 첫 화면 ── */
.hub .menu { gap: 12px; }
.work { display: grid; grid-template-columns: 104px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: 24px; background: rgba(255, 255, 255, .92); border: 4px solid #fff; box-shadow: 0 10px 26px rgba(30, 10, 30, .2); color: var(--deep); }
.wpics { display: flex; }
.wpics img { width: 58px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, .18); }
.wpics img + img { margin-left: -12px; transform: rotate(5deg); }
.wtx b { display: block; font-size: 23px; font-weight: 400; line-height: 1.25; }
.wtx span { display: block; font-family: var(--sans); font-size: 13px; color: var(--sub); }

/* 알림 */
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--safe-b)); z-index: 40; transform: translate(-50%, 20px); padding: 9px 16px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14px; opacity: 0; transition: .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 넓은 화면 */
@media (min-width: 640px) {
  .person { margin-top: 20px; border-radius: 26px; overflow: hidden; background: var(--paper); box-shadow: 0 0 0 2px var(--accent-soft), 0 14px 30px rgba(40, 10, 30, .14); }
  .ps-body { gap: 32px; padding: 32px 32px 36px; }
  .v-home { padding-top: calc(24px + var(--safe-t)); }
}
@media (min-width: 900px) {
  .v-people .inner { max-width: 1000px; }
  .cast { grid-template-columns: repeat(3, minmax(0, 300px)); gap: 24px; }
  .pname { font-size: 34px; }
  .chips { max-width: none; }
}
@media (max-height: 660px) {
  .hero { padding: 12px 0 16px; }
  .logo { font-size: clamp(52px, 16vw, 72px); }
  .hook { margin-top: 10px; font-size: 14px; }
  .menu { gap: 10px; }
  .pill { height: 52px; font-size: 18px; }
  .tiny { margin-top: 10px; }
}
@media (max-width: 340px) {
  .pill { height: 56px; font-size: 18px; }
  .cmds { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
