/* 「나 혼자 묻겠소」 공통 스타일
   세 세계: 공책(그림일기) / 밤(아빠 폰) / 일요일 공책
   가짜 웹사이트는 각자 자기 옷을 입는다. */

:root {
  --paper: #fbfcf6;
  --rule: #a9cfe0;
  --pencil: #38383c;
  --red: #d8342b;
  --yellow: #f2b705;
  --green: #3c9a4d;
  --blue: #2b62b5;
  --night: #0e1626;
  --night-2: #1a2438;
  --led: #ff5a36;
  --ledger: #eaf0dc;
  --ledger-rule: #7aa088;
  --carbon: #253a7a;
  --old-web: Dotum, '돋움', Gulim, '굴림', 'Gowun Dodum', sans-serif;
  --ui: 'Gowun Dodum', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --serif: 'Gowun Batang', 'Batang', serif;
  --child: 'Gamja Flower', 'Gowun Dodum', sans-serif;
  --pen: 'Nanum Pen Script', 'Gowun Dodum', cursive;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ui);
  color: #222;
  background: #fff;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 알림 쪽지 ---------- */
.w-toasts { position: fixed; z-index: 60; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 28px)); pointer-events: none; }
.w-toast {
  font-family: var(--pen); font-size: 21px; line-height: 1.3; color: var(--pencil);
  background: #fff8c9; padding: 10px 14px; box-shadow: 2px 3px 6px rgba(0,0,0,.35);
  animation: toastIn .3s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- 표지 추가 ---------- */
.dy-name { display: inline-flex; align-items: center; gap: 6px; }
.dy-name input { width: 7.5em; border: 0; border-bottom: 2px solid var(--pencil); background: transparent; font-family: var(--child); font-size: 20px; padding: 0 4px; }
.cv-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cv-ask { margin: 0; font-size: 15px; color: #b5c1d4; }
.cv-error { margin: 0; color: #ff9d8c; min-height: 1.4em; }
button.cv-start { border: 0; cursor: pointer; }
.cv-note { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; outline: 0; }
.paper-note { background: #fbfbf1; color: var(--pencil); padding: 14px 16px; font-family: var(--pen); font-size: 22px; line-height: 1.3; white-space: pre-line; box-shadow: 2px 3px 8px rgba(0,0,0,.4); }
.paper-note h2 { margin: 0 0 6px; font-family: var(--ui); font-size: 14px; font-weight: 400; color: #7a7a70; }
.info-reset { border: 1px solid var(--pencil); background: #fff; padding: 6px 14px; cursor: pointer; }
.info-more { margin-top: 4px; }
.info-more summary { cursor: pointer; }

/* ---------- 책상 ---------- */
.s-desk { min-height: 100vh; margin: 0; background: var(--night); color: #e7ebf3; }
.desk { min-height: 100vh; display: grid; grid-template-columns: minmax(240px, 320px) minmax(340px, 410px) minmax(240px, 320px); justify-content: center; gap: 26px; padding: 18px; align-items: start; }
.desk-side { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; }
.desk-left .paper-note { font-size: 20px; transform: rotate(-.6deg); }
.desk-link { color: var(--yellow); font-size: 15px; }
.memo-pad { background: #fff8c9; color: var(--pencil); padding: 12px 14px; box-shadow: 2px 3px 8px rgba(0,0,0,.4); }
.memo-pad h2 { margin: 0 0 4px; font-size: 14px; font-weight: 400; color: #7a7a50; }
.memo-pad ul { list-style: none; margin: 0 0 10px; padding: 0; font-family: var(--pen); font-size: 20px; line-height: 1.25; }
.memo-pad li { padding: 5px 0; border-bottom: 1px solid #e4dba0; }
.memo-pad .is-empty { color: #8a8a60; }
.memo-pad label { display: block; font-size: 13px; }
.memo-pad textarea { display: block; width: 100%; margin-top: 3px; padding: 6px; border: 1px solid #c9bf80; background: #fffdf0; font-family: var(--pen); font-size: 20px; line-height: 1.25; }
.desk-dialog { width: min(440px, calc(100vw - 24px)); max-height: 86vh; padding: 12px; background: var(--night); border: 0; }
.desk-dialog::backdrop { background: rgba(5,8,14,.7); }
.desk-close { display: block; margin: 0 0 10px auto; padding: 4px 14px; border: 1px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.desk-dialog .paper-note { margin-top: 12px; font-size: 20px; }

/* ---------- 아빠 폰 ---------- */
.ph-frame { display: flex; flex-direction: column; height: calc(100vh - 36px); min-height: 560px; max-height: 860px; background: #000; border: 10px solid #23272e; border-radius: 28px; overflow: hidden; }
.ph-status { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 12px; background: #0a0c10; font-size: 13px; color: #cfd6e1; }
.ph-found { display: flex; align-items: center; gap: 3px; font-size: 12px; }
.ph-found span { margin-right: 3px; }
.paw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 1px solid #8d97a7; }
.paw.on { background: var(--yellow); border-color: var(--yellow); }
.ph-desk-btn { display: none; border: 1px solid #5b6474; background: transparent; color: #e7ebf3; font-size: 12px; padding: 2px 8px; cursor: pointer; }
.ph-body { position: relative; flex: 1; min-height: 0; display: flex; }
.ph-screen { flex: 1; min-width: 0; overflow-y: auto; background: #12151b; color: #f3f4f6; font-size: 19px; line-height: 1.45; }
.ph-screen.is-home { background: linear-gradient(rgba(10,14,20,.5), rgba(10,14,20,.82)), url('../img/diary-drawing.svg') center top / 165% auto no-repeat #fff; }
.ph-screen.is-web { display: flex; flex-direction: column; overflow: hidden; background: #fff; color: #222; }
.ph-screen.is-ledger { background: var(--ledger); color: #24352c; }
.ph-nav { flex: none; display: flex; justify-content: space-around; align-items: center; padding: 5px 0; background: #0a0c10; }
.ph-nav a, .ph-nav button { color: #cfd6e1; background: none; border: 0; font-size: 18px; text-decoration: none; cursor: pointer; padding: 2px 26px; }
.ph-clock { text-align: center; padding: 26px 10px 16px; }
.ph-clock strong { display: block; font-size: 54px; font-weight: 400; line-height: 1; }
.ph-clock span { font-size: 17px; }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; padding: 6px 13px 16px; }
.ph-app { position: relative; display: flex; align-items: center; justify-content: center; height: 80px; border-radius: 11px; text-decoration: none; color: #fff; font-size: 26px; font-weight: 700; background: #39424f; }
.ph-app b { position: absolute; top: 6px; right: 8px; min-width: 22px; padding: 0 5px; border-radius: 11px; background: var(--led); font-size: 14px; line-height: 22px; text-align: center; }
.ph-app-sms { background: #2f7d4f; }
.ph-app-call { background: #2563a8; }
.ph-app-photos { background: #a14f8b; }
.ph-app-memo { background: #b58a10; }
.ph-app-calendar { background: #b8452f; }
.ph-app-bank { background: #1f7a84; }
.ph-app-nav { background: #5b58ad; }
.ph-app-web { background: #5c6675; }
.ph-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #1d222b; color: #f3f4f6; }
.ph-bar a { text-decoration: none; font-size: 30px; line-height: 1; padding: 0 12px 4px 4px; color: inherit; }
.ph-bar h1 { margin: 0; font-size: 21px; }
.ph-tabs { display: flex; background: #1d222b; }
.ph-tabs a { flex: 1; padding: 8px 0; text-align: center; text-decoration: none; font-size: 16px; color: #b7bfcc; border-bottom: 2px solid transparent; }
.ph-tabs a[aria-current] { color: #fff; border-bottom-color: var(--yellow); }
.ph-row { display: block; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid #2a303b; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; }
.ph-row-btn { cursor: pointer; }
.ph-row strong { display: block; font-size: 20px; font-weight: 700; }
.ph-row span { display: block; font-size: 16px; color: #b7bfcc; }
.ph-section { margin: 14px 14px 6px; font-size: 15px; color: #9fb0c8; font-weight: 400; }
.ph-thread { padding: 10px; display: flex; flex-direction: column; gap: 11px; }
.ph-msg { max-width: 88%; }
.ph-msg small { display: block; font-size: 12px; color: #8d97a7; margin-bottom: 2px; }
.ph-msg p { margin: 0; padding: 8px 11px; border-radius: 10px; background: #2a303b; font-size: 18px; }
.ph-msg.is-me, .ph-msg.is-draft { align-self: flex-end; }
.ph-msg.is-me p { background: #2e6b45; }
.ph-msg.is-draft p { background: transparent; border: 2px dashed #8d97a7; }
.ph-msg-link { display: inline-block; margin-top: 6px; color: var(--yellow); font-size: 16px; }
button.ph-msg-link { padding: 0; border: 0; background: none; font-family: inherit; text-decoration: underline; cursor: pointer; }
.ph-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 8px; }
.ph-photos figure, .ph-polaroids figure { margin: 0; }
.ph-photos img { display: block; width: 100%; height: auto; }
.ph-photos figcaption { font-size: 12px; color: #8d97a7; }
.ph-album-lock { padding: 0 14px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.ph-album-lock label { flex: 1 1 150px; font-size: 15px; color: #b7bfcc; }
.ph-album-lock input { display: block; width: 100%; margin-top: 3px; padding: 8px; border: 0; border-radius: 6px; font-size: 19px; background: #e9ecf1; color: #111; }
.ph-album-lock button { padding: 9px 18px; border: 0; border-radius: 6px; background: var(--yellow); color: #111; font-weight: 700; cursor: pointer; }
.ph-locked { margin: 0 14px 18px; font-size: 16px; color: #b7bfcc; }
.ph-polaroids { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 4px 12px 22px; }
.ph-polaroid { background: #fbfaf2; color: #333; padding: 7px 7px 9px; transform: rotate(-1deg); }
.ph-polaroid:nth-child(even) { transform: rotate(1.3deg); }
.ph-polaroid svg { display: block; width: 100%; background: #dfe9d6; }
.ph-polaroid figcaption { font-family: var(--pen); font-size: 18px; line-height: 1.1; margin-top: 5px; }
.ph-memos { padding: 11px; display: flex; flex-direction: column; gap: 9px; }
.ph-memos article { background: #f5e9a8; color: #333; padding: 10px 12px; }
.ph-memos h2 { margin: 0 0 3px; font-size: 15px; color: #746219; font-weight: 400; }
.ph-memos p { margin: 0; white-space: pre-line; font-size: 19px; }
.ph-note { margin: 12px 14px; font-size: 17px; color: #f3c866; }
.ph-lock { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 24px; }
.ph-lock label { font-size: 16px; }
.ph-lock input { display: block; width: 100%; margin-top: 4px; padding: 10px; border: 0; border-radius: 8px; font-size: 25px; letter-spacing: .3em; text-align: center; background: #e9ecf1; color: #111; }
.ph-lock button { padding: 11px; border: 0; border-radius: 8px; background: var(--yellow); color: #111; font-size: 18px; font-weight: 700; cursor: pointer; }
.ph-lock a { color: var(--yellow); }
.ph-hint { margin: 0; font-size: 15px; color: #9fb0c8; }
.ph-preview { background: #1f2530; padding: 9px 11px; border-radius: 10px; }
.ph-preview small { color: #9fb0c8; font-size: 13px; }
.ph-preview p { margin: 2px 0 0; font-size: 17px; }
.ph-error { color: #ff9d8c; min-height: 1.4em; margin: 0; font-size: 15px; flex-basis: 100%; }
.ph-banner { position: absolute; z-index: 5; top: 6px; left: 8px; right: 8px; display: block; padding: 9px 12px; border-radius: 10px; background: #f3f4f6; color: #111; text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.5); font-size: 16px; line-height: 1.35; }
.ph-banner small { display: block; font-weight: 700; font-size: 13px; }
.ph-banner.is-buzz { animation: buzz .5s ease-in-out 1; }
@keyframes buzz { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }

/* ---------- 인터넷 앱 ---------- */
.br-bar { flex: none; display: flex; align-items: center; gap: 5px; padding: 6px 7px; background: #eceef1; border-bottom: 1px solid #cfd3da; }
.br-bar a { text-decoration: none; font-size: 26px; line-height: 1; padding: 0 7px 3px 3px; color: #333; }
.br-bar input { flex: 1; min-width: 0; padding: 6px 9px; border: 1px solid #c3c8d0; border-radius: 15px; background: #fff; font-size: 14px; }
.br-bar button { flex: none; padding: 5px 10px; border: 0; border-radius: 13px; background: var(--yellow); color: #222; font-size: 14px; font-weight: 700; cursor: pointer; }
.br-frame { flex: 1; width: 100%; min-height: 0; border: 0; background: #fff; }
.br-home { flex: 1; overflow-y: auto; padding: 22px 14px; font-size: 15px; }
.br-logo { margin: 0 0 14px; text-align: center; font-family: 'Gugi', var(--ui); font-weight: 400; font-size: 56px; line-height: 1; color: #b8860b; }
.br-panels section { margin-bottom: 14px; }
.br-panels h2 { margin: 0 0 4px; padding-bottom: 4px; border-bottom: 2px solid #eee; font-size: 14px; }
.br-panels ol, .br-panels ul { margin: 0; padding-left: 20px; color: #444; line-height: 1.6; }
.br-results { flex: 1; overflow-y: auto; padding: 10px 13px; font-size: 15px; }
.br-count { margin: 0 0 8px; font-size: 13px; color: #667; }
.br-hit { display: block; padding: 10px 0; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; }
.br-hit strong { display: block; color: #1a4fa0; font-size: 16px; }
.br-hit span { display: block; }
.br-hit small { color: #2f7d4f; }

/* ---------- 키패드 ---------- */
.pad { padding: 10px 18px 16px; }
.pad-num { display: block; min-height: 1.5em; text-align: center; font-size: 27px; letter-spacing: .03em; }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 8px 0; }
.pad-keys button { padding: 10px 0; border: 0; border-radius: 10px; background: #272c36; color: #fff; font-size: 24px; cursor: pointer; }
.pad-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 7px; }
.pad-actions button { padding: 11px 0; border: 0; border-radius: 10px; background: #39424f; color: #fff; font-size: 17px; cursor: pointer; }
.pad-actions .pad-call { background: #2f9a55; font-weight: 700; }

/* ---------- 통화 ---------- */
.call-layer { position: absolute; z-index: 10; inset: 0; display: flex; flex-direction: column; background: #10141b; color: #f3f4f6; }
.call-head { flex: none; padding: 16px 14px 10px; text-align: center; border-bottom: 1px solid #252b35; }
.call-head strong { display: block; font-size: 23px; }
.call-head span { font-size: 15px; color: #9fb0c8; }
.call-log { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.call-line { margin: 0; max-width: 88%; padding: 7px 11px; border-radius: 10px; font-size: 17px; line-height: 1.4; }
.call-line.is-them { align-self: flex-start; background: #2a303b; }
.call-line.is-me { align-self: flex-end; background: #2e6b45; }
.call-line.is-narr { align-self: center; max-width: 100%; background: none; color: #9fb0c8; font-size: 15px; text-align: center; }
.call-controls { flex: none; max-height: 52%; overflow-y: auto; padding: 8px 12px; }
.call-next { width: 100%; padding: 10px; border: 0; border-radius: 8px; background: #39424f; color: #fff; font-size: 16px; cursor: pointer; }
.call-ask label { display: block; font-size: 15px; color: #cfd6e1; }
.call-ask input { display: block; width: 100%; margin: 4px 0 7px; padding: 8px; border: 0; border-radius: 6px; font-size: 18px; background: #e9ecf1; color: #111; }
.call-ask button { width: 100%; padding: 9px; border: 0; border-radius: 8px; background: var(--yellow); color: #111; font-weight: 700; cursor: pointer; }
.call-end { flex: none; margin: 8px auto 12px; padding: 9px 34px; border: 0; border-radius: 22px; background: #c9362b; color: #fff; font-size: 16px; cursor: pointer; }
.call-layer.is-ringing { justify-content: space-between; animation: buzz .6s ease-in-out 3; }
.call-layer.is-ringing .call-head { padding-top: 70px; border: 0; }
.call-incoming { display: flex; justify-content: space-around; padding: 0 16px 44px; }
.call-incoming button { width: 96px; height: 96px; border: 0; border-radius: 50%; color: #fff; font-size: 18px; font-weight: 700; cursor: pointer; }
.call-decline { background: #c9362b; }
.call-accept { background: #2f9a55; }

/* ---------- 명부 ---------- */
.lg-tabs { position: sticky; top: 46px; z-index: 1; display: flex; flex-wrap: wrap; gap: 3px; padding: 6px 7px; background: #d4e2c6; }
.lg-tabs a { padding: 1px 7px; border: 1px solid var(--ledger-rule); background: #f4f7ea; color: #24352c; text-decoration: none; font-size: 13px; line-height: 1.6; }
.lg-tabs a[aria-current] { background: #264c3a; color: #fff; }
.lg-paper { padding: 10px 12px 22px; font-family: var(--pen); font-size: 21px; line-height: 1.25; color: var(--carbon); }
.lg-paper h2 { margin: 2px 0 6px; font-family: var(--serif); font-size: 21px; color: #24352c; }
.lg-cap { margin: 0 0 8px; font-family: var(--ui); font-size: 13px; line-height: 1.5; color: #4a5c50; }
.lg-paper p { margin: 0 0 9px; }
.lg-note { padding: 8px 10px; background: #fff8c9; color: #333; box-shadow: 1px 2px 4px rgba(0,0,0,.2); }
.lg-card { margin: 0; }
.lg-row { display: grid; grid-template-columns: 62px 1fr; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--ledger-rule); }
.lg-row dt { font-family: var(--ui); font-size: 13px; line-height: 1.7; color: #4a5c50; }
.lg-row dd { margin: 0; }
.lg-row .is-blank::after { content: '(빈칸)'; font-family: var(--ui); font-size: 13px; color: #84948a; }
.lg-scroll { overflow-x: auto; margin-bottom: 9px; }
.lg-table { width: 100%; border-collapse: collapse; background: rgba(255,255,255,.55); font-size: 18px; line-height: 1.15; }
.lg-table th, .lg-table td { border: 1px solid var(--ledger-rule); padding: 3px 5px; text-align: left; vertical-align: top; }
.lg-table th { font-family: var(--ui); font-size: 12px; background: #d4e2c6; color: #24352c; white-space: nowrap; font-weight: 700; }
.lg-table a { color: #1d5237; }
.lg-strike { color: #8a2a23; }
.lg-ground { display: block; width: 100%; height: auto; margin-bottom: 9px; border: 1px solid var(--ledger-rule); }
.lg-entry { padding: 9px 11px; margin-bottom: 9px; background: #fffdf3; color: #2d2a24; border: 1px solid #d9cfb4; }
.lg-entry h3 { margin: 0 0 2px; font-family: var(--ui); font-size: 12px; font-weight: 400; color: #7d7360; }
.lg-entry p { margin: 0; white-space: pre-line; font-size: 22px; line-height: 1.28; }
.lg-next { display: inline-block; padding: 8px 18px; border: 0; background: #2d2a24; color: #fff; font-family: var(--pen); font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer; }

/* ---------- 작은 화면의 폰 ---------- */
@media (max-width: 1040px) {
  .desk { grid-template-columns: minmax(0, 430px); padding: 8px; }
  .desk-side { display: none; }
  .ph-desk-btn { display: block; }
  .ph-frame { height: calc(100vh - 16px); }
}
@media (max-width: 480px) {
  .desk { padding: 0; }
  .ph-frame { height: 100vh; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
}

/* ---------- 표지: 일기장과 밤 ---------- */
.cover { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); min-height: 100vh; background: var(--night); }
.cover-left { background: #d8dfe0; padding: clamp(14px, 3vw, 34px); display: flex; align-items: center; justify-content: center; }
.dy-page {
  position: relative; width: min(640px, 100%); background: var(--paper); padding: 18px 20px 22px;
  border: 1px solid #b9c4c6; box-shadow: 0 1px 0 #fff inset, 4px 6px 0 #aab4b6;
  font-family: var(--child); color: var(--pencil); font-size: 20px; line-height: 1.3;
}
.dy-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; align-items: center; padding-bottom: 8px; border-bottom: 2px solid var(--rule); }
.dy-weather { display: inline-flex; gap: 7px; align-items: center; }
.dy-weather svg { width: 25px; height: 25px; }
.dy-draw { display: block; width: 100%; height: auto; margin: 10px 0; border: 2px solid var(--rule); background: #fff; }
.dy-title { margin: 10px 0 8px; font-size: 22px; }
.dy-title b { font-weight: 400; border-bottom: 2px solid var(--pencil); padding: 0 6px; }
.dy-grid { display: flex; flex-wrap: wrap; margin: 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.g-cell { position: relative; flex: 0 0 auto; width: calc(100% / 16); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: clamp(14px, 2.5vw, 21px); line-height: 1; }
.g-cell.is-mark::after { content: ''; position: absolute; left: -1px; right: -1px; bottom: 3px; height: 3px; background: var(--red); transform: scaleX(0); transform-origin: left; animation: markIn .22s linear forwards; animation-delay: calc(.7s + var(--i) * .1s); border-radius: 2px; }
@keyframes markIn { to { transform: scaleX(1); } }
.dy-teacher { margin: 10px 0 0; padding-right: 92px; color: var(--red); font-family: var(--pen); font-size: 23px; line-height: 1.2; }
.dy-stamp {
  position: absolute; right: 18px; bottom: 16px; width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--red);
  color: var(--red); display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.15; transform: rotate(-11deg); opacity: .85;
}
.cover-right { position: relative; color: #e7ebf3; padding: clamp(24px, 5vw, 64px) clamp(20px, 4vw, 54px); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.cv-lead { margin: 0; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.9; }
.cv-bubble {
  background: var(--night-2); border-left: 4px solid var(--led); padding: 14px 16px; max-width: 420px;
  animation: buzz .55s ease-in-out 2.6s 1, bubbleIn .5s ease-out 2.2s backwards;
}
.cv-bubble small { display: block; color: #9fb0c8; font-size: 14px; }
.cv-bubble p { margin: 3px 0 0; font-size: 17px; line-height: 1.55; }
@keyframes bubbleIn { from { opacity: 0; } }
@keyframes buzz { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-4px); } 40% { transform: translateX(4px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
.cv-title { margin: 8px 0 0; font-family: var(--child); font-weight: 400; font-size: clamp(50px, 6.6vw, 86px); line-height: 1.05; color: #fff; }
.cv-start { align-self: flex-start; display: inline-block; padding: 13px 26px; background: var(--yellow); color: #1b1b1f; font-family: var(--child); font-size: 24px; line-height: 1; text-decoration: none; border-radius: 3px; box-shadow: 3px 4px 0 #000; }
.cv-start:hover { transform: translate(1px, 2px); box-shadow: 2px 2px 0 #000; }
.cv-more { color: #b5c1d4; font-size: 15px; }
.info { background: var(--paper); color: var(--pencil); padding: clamp(30px, 5vw, 60px) 20px; }
.info-in { max-width: 720px; margin: 0 auto; }
.info h2 { font-family: var(--child); font-weight: 400; font-size: 27px; margin: 34px 0 8px; }
.info h2:first-child { margin-top: 0; }
.info ul { margin: 0; padding-left: 20px; }
.info li { margin-bottom: 6px; }
.info-foot { background: var(--night); color: #9fb0c8; font-size: 13px; text-align: center; padding: 24px 16px; }

/* ---------- 오늘의 그림일기 ---------- */
.s-diary { min-height: 100vh; background: #d8dfe0; padding: 20px 14px 110px; }
.dd-tools { width: min(640px, 100%); margin: 0 auto 10px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.dd-crayon { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; background: var(--c); cursor: pointer; }
.dd-crayon[aria-pressed='true'] { box-shadow: 0 0 0 3px var(--pencil); }
.dd-btn { padding: 7px 14px; border: 1px solid var(--pencil); background: #fff; cursor: pointer; font-size: 15px; text-decoration: none; display: inline-block; color: var(--pencil); }
.dd-btn.is-main { background: var(--yellow); }
#diaryCanvas { display: block; width: 100%; height: auto; margin: 10px 0; border: 2px solid var(--rule); touch-action: none; cursor: crosshair; background: #fff; }
.dd-title { width: 100%; padding: 4px 7px; border: 0; border-bottom: 2px solid var(--pencil); background: transparent; font-family: var(--child); font-size: 22px; }
.dd-text { display: block; width: 100%; margin-top: 10px; border: 1px solid var(--rule); padding: 0 8px; font-family: var(--child); font-size: 21px; line-height: 31px; background: repeating-linear-gradient(transparent 0 30px, var(--rule) 30px 31px); }
.dy-stamp.is-landing { animation: stampIn .28s ease-out; }
@keyframes stampIn { from { transform: rotate(-11deg) scale(1.9); opacity: 0; } }
.dd-status { width: min(640px, 100%); margin: 10px auto 0; font-size: 14px; color: #333; }
.dd-call { width: min(640px, 100%); margin: 20px auto 0; line-height: 1.85; }
.dd-call h2 { margin: 0 0 6px; font-family: var(--child); font-weight: 400; font-size: 27px; }
.dd-credit { width: min(640px, 100%); margin: 22px auto 0; font-size: 13px; color: #444; line-height: 1.7; }

/* ---------- 가람신문 ---------- */
.s-news { background: #fff; color: #1f1f1f; font-family: var(--serif); min-height: 100vh; }
.n-top { border-bottom: 3px double #333; padding: 12px 18px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; }
.n-logo { font-size: 30px; font-weight: 700; }
.n-date { font-family: var(--old-web); font-size: 12px; color: #666; }
.n-grid { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 26px; padding: 22px 16px 90px; }
.n-article h1 { font-size: clamp(25px, 3.6vw, 34px); line-height: 1.32; margin: 0 0 6px; }
.n-byline { font-family: var(--old-web); font-size: 12px; color: #666; margin: 0 0 16px; }
.n-article p { font-size: 17px; line-height: 1.95; margin: 0 0 14px; }
.n-side { font-family: var(--old-web); font-size: 13px; }
.n-ad { border: 1px solid #ccc; padding: 13px; margin-bottom: 12px; text-align: center; background: #faf8ef; line-height: 1.5; }
.n-ad b { display: block; font-size: 16px; }
.n-side h2 { font-size: 14px; border-bottom: 2px solid #333; padding-bottom: 4px; margin: 16px 0 6px; }
.n-side ol { margin: 0; padding-left: 18px; color: #444; }
.n-correct { margin-top: 44px; font-family: var(--old-web); font-size: 11px; color: #777; line-height: 1.6; border-top: 1px solid #eee; padding-top: 8px; }

/* ---------- 가람맘 카페 ---------- */
.s-cafe { background: #f6eff2; min-height: 100vh; font-family: var(--old-web); font-size: 13px; color: #333; }
.c-top { background: #c9698a; color: #fff; padding: 14px 18px; font-weight: 700; font-size: 18px; }
.c-grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; padding: 14px 12px 90px; }
.c-side { background: #fff; border: 1px solid #e3cfd7; padding: 11px; align-self: start; }
.c-side h2 { font-size: 13px; color: #a54a6c; margin: 8px 0 5px; }
.c-side ul { list-style: none; margin: 0; padding: 0; }
.c-side li { padding: 3px 0; }
.c-post { background: #fff; border: 1px solid #e3cfd7; padding: 18px; }
.c-post h1 { font-size: 18px; margin: 0 0 5px; }
.c-meta { color: #888; font-size: 12px; margin: 0 0 14px; padding-bottom: 8px; border-bottom: 1px solid #eee; }
.c-body { font-size: 14px; line-height: 1.85; }
.c-comments { margin-top: 18px; border-top: 2px solid #efe0e6; }
.c-comment { padding: 8px 0; border-bottom: 1px solid #f3e9ed; font-size: 13px; line-height: 1.7; }
.c-comment b { color: #a54a6c; margin-right: 6px; }
.c-comment time { color: #aaa; font-size: 11px; margin-left: 5px; }
.c-comment.is-new::before, .g-comment.is-new::before { content: '새 댓글'; margin-right: 6px; padding: 0 5px; border-radius: 3px; background: #c8281f; color: #fff; font-size: 11px; }

/* ---------- 폐허 탐방기 ---------- */
.s-ghost { background: #16181a; color: #c8cdc9; min-height: 100vh; font-size: 16px; }
.g-top { padding: 22px 18px 8px; max-width: 720px; margin: 0 auto; }
.g-top strong { color: #9fc27c; font-size: 20px; }
.g-post { max-width: 720px; margin: 0 auto; padding: 8px 18px 90px; }
.g-post h1 { color: #eef2ed; font-size: 26px; line-height: 1.35; margin: 12px 0 2px; }
.g-post p { line-height: 2; margin: 0 0 15px; }
.g-post small { color: #79807a; }
.g-photo { margin: 14px 0; }
.g-photo img { display: block; width: 100%; height: auto; filter: brightness(.62) saturate(.75); }
.g-photo figcaption { font-size: 13px; color: #79807a; margin-top: 3px; }
.g-comment { border-top: 1px solid #2d3134; padding: 9px 0; font-size: 14px; line-height: 1.7; }
.g-comment b { color: #9fc27c; margin-right: 6px; }

/* ---------- 낚시 블로그 ---------- */
.s-fish { background: #e9f2f6; min-height: 100vh; color: #243642; }
.f-head { background: #2d6a86; color: #fff; padding: 22px 18px; }
.f-head strong { font-size: 22px; display: block; }
.f-post { max-width: 700px; margin: 20px auto 90px; background: #fff; padding: 22px; border: 1px solid #c9dbe4; }
.f-post h1 { margin: 0 0 4px; font-size: 22px; }
.f-post p { line-height: 1.9; margin: 0 0 13px; }
.f-sign { border: 3px solid #b8301f; color: #b8301f; padding: 12px; text-align: center; font-weight: 700; margin: 14px 0; line-height: 1.5; }

/* ---------- 가람시청 ---------- */
.s-gov { background: #f0f3f7; min-height: 100vh; color: #1f2b3a; font-size: 15px; }
.go-top { background: #fff; border-bottom: 3px solid #17498c; padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.go-top strong { font-size: 20px; color: #17498c; }
.go-top span { font-size: 13px; color: #607085; }
.go-wrap { max-width: 860px; margin: 18px auto 90px; padding: 0 12px; }
.go-panel { background: #fff; border: 1px solid #cdd6e2; padding: 20px; margin-bottom: 14px; }
.go-panel h1 { font-size: 22px; margin: 0 0 8px; color: #17498c; }
.go-panel ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }

/* ---------- 작은 화면 ---------- */
@media (max-width: 820px) {
  .cover { grid-template-columns: 1fr; }
  .cover-right { padding-bottom: 28px; }
  .n-grid, .c-grid, .mi-grid { grid-template-columns: 1fr; }
  .n-side { display: none; }
  .c-side { display: none; }
}
@media (max-width: 520px) {
  .g-cell { width: calc(100% / 12); }
  .dy-teacher { padding-right: 78px; font-size: 20px; }
  .dy-stamp { width: 68px; height: 68px; font-size: 14px; right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .g-cell.is-mark::after { transform: scaleX(1); }
}
@media print {
  .w-toasts, .dd-tools, .dd-status, .dd-call, .dd-credit, .dd-actions { display: none !important; }
  .s-diary { background: #fff; padding: 0; }
  .dy-page { box-shadow: none; border: 0; }
}

/* ---------- 스크롤바 ---------- */
:root { --sb-thumb: rgba(56, 56, 60, .36); --sb-hover: rgba(56, 56, 60, .6); --sb-track: transparent; }
html:has(.cover) { --sb-thumb: rgba(180, 196, 220, .42); --sb-hover: rgba(200, 214, 235, .7); --sb-track: #0e1626; }
html:has(.s-ghost) { --sb-thumb: rgba(159, 194, 124, .4); --sb-hover: rgba(159, 194, 124, .7); --sb-track: #16181a; }
html:has(.s-desk) { --sb-track: #0e1626; }
.ph-screen, .call-layer, .desk-dialog { --sb-thumb: rgba(255, 255, 255, .26); --sb-hover: rgba(255, 255, 255, .46); }
.ph-screen.is-ledger { --sb-thumb: rgba(38, 76, 58, .42); --sb-hover: rgba(38, 76, 58, .68); }
.ph-screen.is-web { --sb-thumb: rgba(60, 60, 70, .34); --sb-hover: rgba(60, 60, 70, .56); }
.memo-pad { --sb-thumb: rgba(122, 122, 80, .46); --sb-hover: rgba(122, 122, 80, .72); }
.paper-note, .desk-left { --sb-thumb: rgba(180, 196, 220, .34); --sb-hover: rgba(200, 214, 235, .6); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--sb-track); }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); background-clip: padding-box; border: 2px solid transparent; border-radius: 9px; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-hover); background-clip: padding-box; border: 2px solid transparent; }
::-webkit-scrollbar-corner { background: transparent; }
/* 폰 안은 실제 폰처럼 아주 얇게 */
.ph-screen::-webkit-scrollbar, .call-log::-webkit-scrollbar, .call-controls::-webkit-scrollbar, .br-results::-webkit-scrollbar, .br-home::-webkit-scrollbar, html.in-phone::-webkit-scrollbar { width: 5px; height: 5px; }
.ph-screen::-webkit-scrollbar-thumb, .call-log::-webkit-scrollbar-thumb, .call-controls::-webkit-scrollbar-thumb, .br-results::-webkit-scrollbar-thumb, .br-home::-webkit-scrollbar-thumb, html.in-phone::-webkit-scrollbar-thumb { border-width: 1px; }
html.in-phone { --sb-track: transparent; }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) var(--sb-track); }
}
.ph-screen, .call-log, .call-controls, .br-results, .br-home, .desk-side, .memo-pad ul { overscroll-behavior: contain; }

/* ---------- 책상 조명 ---------- */
.s-desk { position: relative; transition: background-color 2s ease; }
.s-desk::before, .s-desk::after { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity 2.4s ease; }
.s-desk::before { background: radial-gradient(ellipse at 22% 6%, rgba(255, 196, 120, .34), rgba(255, 196, 120, 0) 62%); }
.s-desk::after { background: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0), rgba(0, 0, 0, .62) 88%), rgba(40, 70, 110, .12); }
.s-desk[data-mood='dim']::after { opacity: .55; }
.s-desk[data-mood='cold']::after { opacity: 1; }
.s-desk[data-mood='warm']::before { opacity: 1; }
.s-desk.is-flicker .desk { animation: flicker 1.3s steps(1) 1; }
@keyframes flicker { 0%, 100% { opacity: 1; } 8% { opacity: .35; } 14% { opacity: .9; } 22% { opacity: .2; } 34% { opacity: .85; } 46% { opacity: .4; } 60% { opacity: 1; } }
.desk { position: relative; z-index: 1; }

/* ---------- 책상 스크롤 정리 ---------- */
.desk-side { overflow-x: hidden; }
.desk-left .paper-note { transform: none; font-size: 18px; line-height: 1.22; }
@media (min-width: 1041px) {
  .desk-right { display: flex; flex-direction: column; overflow: hidden; }
  .desk-right .memo-pad { display: flex; flex-direction: column; min-height: 0; }
  .desk-right .memo-pad ul { flex: 1 1 auto; min-height: 60px; overflow-y: auto; }
  .desk-right .memo-pad label { flex: none; }
}
.memo-pad li.is-new { animation: writeIn .9s ease-out; }
@keyframes writeIn { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* ---------- 상태 표시줄 ---------- */
.ph-status-right { display: flex; align-items: center; gap: 6px; }
.ph-signal { display: inline-flex; align-items: flex-end; gap: 1px; height: 10px; }
.ph-signal i { width: 2px; background: #cfd6e1; }
.ph-signal i:nth-child(1) { height: 3px; }
.ph-signal i:nth-child(2) { height: 5px; }
.ph-signal i:nth-child(3) { height: 7px; }
.ph-signal i:nth-child(4) { height: 10px; opacity: .35; }
#statusBattery.is-low { color: #ff9d8c; }
.ph-mute { border: 1px solid #5b6474; background: transparent; color: #cfd6e1; font-size: 11px; padding: 1px 5px; cursor: pointer; }

/* ---------- 켜기와 잠금 ---------- */
.ph-boot { position: absolute; z-index: 20; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: #000; transition: opacity .45s ease; }
.ph-boot.is-off { opacity: 0; pointer-events: none; }
.ph-boot span { width: 8px; height: 8px; border-radius: 50%; background: #e7ebf3; animation: bootDot 1s ease-in-out infinite; }
.ph-boot span:nth-child(2) { animation-delay: .15s; }
.ph-boot span:nth-child(3) { animation-delay: .3s; }
@keyframes bootDot { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
.ph-screen.is-lock { background: linear-gradient(rgba(8, 11, 18, .78), rgba(8, 11, 18, .94)), url('../img/diary-drawing.svg') center / cover no-repeat #fff; }
.ph-lock.is-unlocking { animation: unlockUp .32s ease-in forwards; }
@keyframes unlockUp { to { transform: translateY(-40%); opacity: 0; } }
.ph-notis { display: flex; flex-direction: column; gap: 6px; min-height: 40px; }
.ph-notis .ph-preview { animation: notiIn .32s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes notiIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.is-lock .ph-lock { gap: 7px; min-height: 100%; padding: 0 16px 14px; }
.is-lock .pin-dots { margin-top: auto; }
.is-lock .ph-clock { padding: 12px 0 4px; }
.is-lock .ph-clock strong { font-size: 42px; }
.is-lock .ph-clock span { font-size: 14px; }
.is-lock .ph-preview { padding: 6px 10px; border-radius: 8px; }
.is-lock .ph-preview small { font-size: 12px; }
.is-lock .ph-preview p { font-size: 14px; line-height: 1.35; }
.is-lock .ph-notis { gap: 4px; }
.is-lock .ph-hint { font-size: 13px; }
.is-lock .ph-error { min-height: 1.2em; font-size: 13px; text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin-top: 2px; }
.pin-dots i { width: 13px; height: 13px; border: 2px solid #e7ebf3; border-radius: 50%; transition: background-color .1s; }
.pin-dots i.on { background: #e7ebf3; }
.pin-dots.is-wrong { animation: shakeX .38s ease-in-out; }
.pin-dots.is-wrong i { border-color: #ff9d8c; }
@keyframes shakeX { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(5px); } }
.ph-hint { text-align: center; }
.pin-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.pin-keys button { padding: 6px 0; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 21px; cursor: pointer; transition: background-color .1s; }
.pin-keys button:active { background: rgba(255, 255, 255, .34); }
.pin-keys button[data-pin='<'] { font-size: 14px; }
.ph-album-lock.is-wrong { animation: shakeX .38s ease-in-out; }

/* ---------- 문자 ---------- */
.ph-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #e7ebf3; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.ph-msg.is-fresh { animation: notiIn .32s ease-out; }

/* ---------- 사진 크게 보기 ---------- */
.ph-shot { display: block; padding: 0; border: 0; background: none; color: #8d97a7; font-size: 12px; text-align: left; cursor: zoom-in; }
.ph-shot img { display: block; width: 100%; height: auto; }
.ph-viewer { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; background: #000; color: #e7ebf3; animation: viewerIn .2s ease-out; }
@keyframes viewerIn { from { opacity: 0; transform: scale(.97); } }
.ph-viewer-close { align-self: flex-end; margin: 8px; padding: 3px 12px; border: 1px solid #5b6474; background: transparent; color: #e7ebf3; cursor: pointer; }
.ph-viewer-stage { flex: 1; min-height: 0; display: flex; align-items: center; overflow: hidden; cursor: zoom-in; touch-action: none; }
.ph-viewer-stage img { display: block; width: 100%; height: auto; transition: transform .22s ease-out; }
.ph-viewer-stage.is-zoom { cursor: zoom-out; }
.ph-viewer-stage.is-zoom img { transform: scale(2.4); }
.ph-viewer-info { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 0; padding: 10px 14px 14px; font-size: 14px; }
.ph-viewer-info dt { color: #8d97a7; }
.ph-viewer-info dd { margin: 0; }

/* ---------- 인터넷 로딩 ---------- */
.br-progress { flex: none; width: 0; height: 2px; background: var(--yellow); transition: width .35s ease-out, opacity .3s ease .25s; }
.br-progress.is-done { opacity: 0; }
.br-frame { opacity: 0; transition: opacity .18s ease-out; }
.br-frame.is-ready { opacity: 1; }
.br-results.is-in .br-hit { animation: hitIn .24s ease-out backwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes hitIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- 인터넷 글의 변화 ---------- */
.is-live { animation: liveIn 1s ease-out .7s backwards, liveGlow 2.6s ease-out 1.1s 1; }
@keyframes liveIn { from { opacity: 0; transform: translateY(-6px); max-height: 0; } to { max-height: 240px; } }
@keyframes liveGlow { from { background-color: #fff3a8; } to { background-color: transparent; } }
.s-ghost .is-live { animation: liveIn 1s ease-out .7s backwards, liveGlowDark 2.6s ease-out 1.1s 1; }
@keyframes liveGlowDark { from { background-color: #3f4a2c; } to { background-color: transparent; } }
.is-bump { display: inline-block; animation: bump .5s ease-out; color: #d9412a; }
@keyframes bump { 40% { transform: scale(1.5); } }
.sk-open { color: #333; font-size: 16px; }

/* ---------- 손전등 사진 ---------- */
.g-photo.has-flash { position: relative; cursor: none; touch-action: pan-y; }
.flash-dark { position: absolute; left: 0; right: 0; top: 0; aspect-ratio: 3 / 2; pointer-events: none; background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(5, 6, 8, 0) 0, rgba(5, 6, 8, 0) 58px, rgba(5, 6, 8, .985) 118px); }

/* ---------- 통화 ---------- */
.call-wave { display: flex; justify-content: center; align-items: center; gap: 3px; height: 16px; margin-top: 4px; opacity: .3; transition: opacity .15s; }
.call-wave i { width: 3px; height: 4px; border-radius: 2px; background: #cfd6e1; }
.call-wave.is-on { opacity: 1; }
.call-wave.is-on i { animation: waveBar .55s ease-in-out infinite alternate; }
.call-wave.is-on i:nth-child(2) { animation-delay: .1s; }
.call-wave.is-on i:nth-child(3) { animation-delay: .22s; }
.call-wave.is-on i:nth-child(4) { animation-delay: .05s; }
.call-wave.is-on i:nth-child(5) { animation-delay: .16s; }
@keyframes waveBar { to { height: 15px; } }
.call-line { animation: lineIn .16s ease-out; }
@keyframes lineIn { from { opacity: 0; transform: translateY(4px); } }
/* 버릇 고르기: 대화를 잠시 가려서 스크롤이 하나만 생기게 한다 */
.call-layer.is-choosing .call-log { display: none; }
.call-layer.is-choosing .call-controls { flex: 1; max-height: none; min-height: 0; }
.call-accept { position: relative; }
.call-accept::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(47, 154, 85, .6); animation: acceptPulse 1.4s ease-out infinite; }
@keyframes acceptPulse { to { box-shadow: 0 0 0 26px rgba(47, 154, 85, 0); } }
.ph-screen[inert] { overflow: hidden; }

/* ---------- 명부 ---------- */
.lg-tabs { position: static; }
.lg-paper { animation: focusIn .42s ease-out; }
@keyframes focusIn { from { filter: blur(3px); opacity: .55; } }
.lg-table { table-layout: fixed; word-break: break-all; }
.lg-table th, .lg-table td { padding: 3px 4px; }
.lg-table th { white-space: normal; }
.lg-entry { scroll-margin-top: 54px; }
.lg-entry.is-turning { animation: pageTurn .4s ease-out; transform-origin: 0 50%; }
@keyframes pageTurn { from { opacity: 0; transform: perspective(800px) rotateY(16deg); } }

/* ---------- 작은 화면 ---------- */
@media (max-width: 480px) {
  .s-desk, .desk { min-height: 100dvh; }
  .s-desk { height: 100dvh; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .is-live, .is-bump { animation: none; }
}

/* ---------- 표지 첫 화면 맞춤 ---------- */
.cover-left { padding: clamp(10px, 2vw, 24px); }
.dy-draw { max-height: 30vh; object-fit: contain; }

/* 안쪽 스크롤바의 바탕은 비워 둔다. 문서 전체 스크롤바만 바탕색을 쓴다. */
.memo-pad, .ph-screen, .desk-side, .call-layer, .desk-dialog { --sb-track: transparent; }

/* ---------- 마실 툴바 ---------- */
.tb { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; background: #f7f5ee; border-bottom: 2px solid var(--yellow); color: #222; font-family: var(--ui); font-size: 14px; }
.tb-logo { font-family: 'Gugi', var(--ui); font-size: 22px; line-height: 1; color: #b8860b; text-decoration: none; }
.tb-search { flex: 1; display: flex; max-width: 560px; min-width: 0; }
.tb-search input { flex: 1; min-width: 0; padding: 4px 10px; border: 1px solid #cfc9b6; border-right: 0; background: #fff; font-size: 14px; color: #222; }
.tb-search button { padding: 0 13px; border: 0; background: var(--yellow); color: #222; font-size: 14px; font-weight: 700; cursor: pointer; }
.tb-link { margin-left: auto; color: #444; text-decoration: none; white-space: nowrap; }
.tb-link:hover { text-decoration: underline; }

/* ---------- 아빠 폰 서랍 ---------- */
:root { --dk-w: min(460px, 40vw); }
.dk-btn { position: fixed; z-index: 50; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 7px; padding: 11px 16px; border: 0; border-radius: 22px; background: #1d222b; color: #fff; font-family: var(--ui); font-size: 15px; font-weight: 700; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); cursor: pointer; }
.dk-btn b { min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--led); font-size: 12px; line-height: 20px; text-align: center; }
.dk-drawer { position: fixed; z-index: 45; top: 0; right: 0; bottom: 0; width: var(--dk-w); display: flex; flex-direction: column; background: #000; box-shadow: -6px 0 22px rgba(0, 0, 0, .35); transform: translateX(100%); visibility: hidden; transition: transform .16s ease-out, visibility 0s linear .16s; }
.dk-open .dk-drawer { transform: none; visibility: visible; transition: transform .16s ease-out; }
.dk-instant .dk-drawer { transition: none; }
/* 넓은 화면은 스크립트가 돌기 전 첫 화면부터 폰 자리를 잡아 글이 들썩이지 않게 한다. 폰 넣기를 고른 사람은 web 페이지 첫 줄이 dk-shut을 단다 */
@media (min-width: 901px) {
  html:not(.dk-shut) body:has(> .dk-drawer):not(.dk-ready) { padding-right: var(--dk-w); }
  html:not(.dk-shut) body:has(> .dk-drawer):not(.dk-ready) .dk-drawer { transform: none; visibility: visible; transition: none; }
  html:not(.dk-shut) body:has(> .dk-drawer):not(.dk-ready) .dk-btn { right: calc(var(--dk-w) + 16px); }
}
.dk-close { flex: none; padding: 5px; border: 0; background: #1d222b; color: #cfd6e1; font-family: var(--ui); font-size: 13px; cursor: pointer; }
.dk-drawer iframe { flex: 1; min-height: 0; width: 100%; border: 0; background: #000; }
body.dk-open { padding-right: var(--dk-w); }
.dk-open .dk-btn { right: calc(var(--dk-w) + 16px); }
.w-toasts .w-toast { pointer-events: auto; }
button.w-toast { display: block; width: 100%; border: 0; text-align: left; cursor: pointer; }
.w-toast small { display: block; font-family: var(--ui); font-size: 12px; font-weight: 700; }
@media (max-width: 900px) {
  :root { --dk-w: 100vw; }
  body.dk-open { padding-right: 0; overflow: hidden; }
  .dk-open .dk-btn { display: none; }
  .tb { gap: 8px; padding: 0 8px; }
  /* 쪽지가 아빠 폰 버튼을 가리지 않는다 */
  .w-toasts { bottom: 72px; }
}

/* ---------- 마실 검색 페이지 ---------- */
.s-search { background: #fff; min-height: 100vh; color: #222; }
.se-wrap { max-width: 720px; margin: 0 auto; padding: 22px 18px 90px; }
.se-hero { text-align: center; padding: 8vh 0 18px; }
.se-logo { margin: 0; font-family: 'Gugi', var(--ui); font-weight: 400; font-size: clamp(56px, 9vw, 88px); line-height: 1; color: #b8860b; }
.se-sub { margin: 6px 0 18px; font-size: 14px; color: #777; }
.se-form { display: flex; border: 3px solid var(--yellow); }
.se-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; font-size: 18px; }
.se-form button { padding: 0 22px; border: 0; background: var(--yellow); font-weight: 700; cursor: pointer; }
.se-count { margin: 0 0 8px; font-size: 13px; color: #667; }
.se-hit { display: block; padding: 14px 0; border-bottom: 1px solid #eee; text-decoration: none; color: inherit; }
.se-hit strong { display: block; color: #1a4fa0; font-size: 18px; font-weight: 700; }
.se-hit:hover strong { text-decoration: underline; }
.se-hit span { display: block; margin: 2px 0; }
.se-hit small { color: #2f7d4f; font-size: 13px; }
.se-new { margin-left: 6px; padding: 0 5px; border-radius: 3px; background: #c8281f; color: #fff; font-size: 11px; font-style: normal; font-weight: 400; }
.se-panels a { color: inherit; }
.se-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 26px; font-size: 14px; }
.se-panels h2 { margin: 0 0 6px; padding-bottom: 5px; border-bottom: 2px solid #eee; font-size: 14px; }
.se-panels ol, .se-panels ul { margin: 0; padding-left: 20px; color: #444; line-height: 1.7; }

/* ---------- 글 속 전화번호 ---------- */
.tel { color: #1a4fa0; font-weight: 700; text-decoration: underline; cursor: pointer; }
.s-ghost .tel { color: #9fc27c; }

/* ---------- 큰 폰 ---------- */
.s-desk .tb { position: relative; z-index: 2; }
.desk { min-height: calc(100vh - 42px); grid-template-columns: minmax(190px, 300px) clamp(440px, 46vw, 760px) minmax(190px, 300px); gap: 16px; padding: 10px 14px; }
.ph-frame { height: calc(100vh - 62px); max-height: none; min-height: 520px; border-width: 7px; border-radius: 20px; }
.desk-side { top: 10px; max-height: calc(100vh - 62px); }
.ph-screen { font-size: 20px; }
.ph-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 11px; padding: 8px 18px 20px; }
.ph-app { height: 94px; font-size: 28px; }
.is-lock .ph-lock { width: 100%; max-width: 520px; margin: 0 auto; }
.pad { max-width: 440px; margin: 0 auto; }
.ph-msg { max-width: 78%; align-self: flex-start; }
.ph-photos { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ph-polaroids { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.call-layer > * { width: 100%; }
.call-log, .call-controls { max-width: 680px; margin-left: auto; margin-right: auto; }
.call-line { font-size: 18px; }
.call-end { width: auto; }
.ph-mine { padding: 11px 11px 0; }
.ph-mine h2 { margin: 0 0 4px; font-size: 15px; font-weight: 400; color: #9fb0c8; }
.ph-mine ul { list-style: none; margin: 0 0 8px; padding: 8px 12px; background: #fff8c9; color: #333; font-family: var(--pen); font-size: 21px; line-height: 1.25; }
.ph-mine li { padding: 4px 0; border-bottom: 1px solid #e4dba0; }
.ph-mine li:last-child { border-bottom: 0; }
.ph-mine textarea { display: block; width: 100%; padding: 8px; border: 0; background: #fffdf0; color: #333; font-family: var(--pen); font-size: 21px; line-height: 1.25; }

/* 화면 전환은 짧게, 비용이 적은 속성만 쓴다 */
.ph-screen > * { animation: viewIn .1s ease-out; }
@keyframes viewIn { from { opacity: .4; } }
.lg-paper { animation: none; }

/* ---------- 서랍 안의 폰 ---------- */
.is-embed .tb, .is-embed .desk-side { display: none !important; }
.is-embed .desk { display: block; min-height: 0; padding: 0; }
.is-embed .ph-frame { width: 100%; height: 100vh; min-height: 0; border: 0; border-radius: 0; }
.is-embed.s-desk::before, .is-embed.s-desk::after { display: none; }

/* ---------- 작은 화면 ---------- */
@media (max-width: 1040px) {
  .desk { grid-template-columns: minmax(0, 720px); padding: 8px; }
  .ph-frame { height: calc(100vh - 58px); }
}
@media (max-width: 480px) {
  .s-desk .tb { display: none; }
  .desk { padding: 0; min-height: 100dvh; }
  .ph-frame { height: 100dvh; border: 0; border-radius: 0; }
}
.flash-dark { background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(5, 6, 8, 0) 0, rgba(5, 6, 8, 0) 13%, rgba(5, 6, 8, .985) 30%); }
.g-photo { max-width: 620px; }

/* ---------- 눌러서 전화 거는 줄 ---------- */
.ph-row-btn { position: relative; padding-right: 66px; cursor: pointer; }
.ph-row-btn::after { content: '전화'; position: absolute; top: 50%; right: 14px; transform: translateY(-50%); padding: 3px 10px; border-radius: 12px; background: #2f9a55; color: #fff; font-size: 13px; font-weight: 700; }
.ph-row-btn:hover, .ph-row-btn:focus-visible { background: #1d222b; }

/* ---------- 앱 탭 막대: 한 번에 옮겨 다닌다 ---------- */
.ph-nav { display: none; }
.ph-appbar { flex: none; display: flex; background: #0a0c10; border-top: 1px solid #252b35; }
.ph-appbar a { position: relative; flex: 1 1 0; min-width: 0; padding: 11px 0; text-align: center; text-decoration: none; color: #aab3c2; font-size: 14px; line-height: 1.2; white-space: nowrap; border-top: 2px solid transparent; margin-top: -1px; }
.ph-appbar a:hover { color: #fff; background: #151a22; }
.ph-appbar a[aria-current] { color: #fff; font-weight: 700; border-top-color: var(--yellow); }
.ph-appbar b { position: absolute; top: 3px; right: 3px; min-width: 16px; padding: 0 4px; border-radius: 8px; background: var(--led); color: #fff; font-size: 11px; line-height: 16px; font-weight: 700; }
@media (max-width: 480px) { .ph-appbar a { font-size: 12px; } }

/* ---------- 통화 중 띠 ---------- */
.ph-strip { flex: none; display: block; width: 100%; padding: 7px 10px; border: 0; background: #2f9a55; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; animation: stripPulse 2s ease-in-out infinite; white-space: pre-wrap; }
@keyframes stripPulse { 50% { background: #268348; } }

/* ---------- 홈: 할 일이 보이는 첫 화면 ---------- */
.ph-screen.is-home { background: linear-gradient(rgba(10, 14, 20, .82), rgba(10, 14, 20, .92)), url('../img/diary-drawing.svg') center top / cover no-repeat #fff; }
.ph-cards { display: flex; flex-direction: column; gap: 9px; max-width: 620px; margin: 0 auto; padding: 4px 14px 16px; }
.ph-card { display: block; padding: 10px 13px; border-radius: 10px; background: rgba(32, 38, 49, .94); color: #f3f4f6; text-decoration: none; }
a.ph-card:hover { background: rgba(46, 54, 68, .96); }
.ph-card > small { display: block; color: #9fb0c8; font-size: 13px; }
.ph-card > strong { display: block; font-size: 19px; }
.ph-card > span { display: block; font-size: 16px; color: #d5dae3; }
.ph-card .ph-row { padding: 8px 0; border-bottom-color: #39414e; }
.ph-card .ph-row:last-child { border-bottom: 0; }
.ph-card ul { list-style: none; margin: 3px 0 0; padding: 0; font-family: var(--pen); font-size: 21px; line-height: 1.25; }
.ph-card li { padding: 3px 0; }
.ph-empty { margin: 4px 14px 10px; font-size: 15px; color: #9fb0c8; }
.ph-row em { margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: #e7b90a; color: #1a1a1a; font-size: 12px; font-style: normal; vertical-align: 2px; }

/* ---------- 키패드: 키보드 입력이 먼저, 버튼은 보조 ---------- */
.pad { padding: 10px 18px 6px; }
.pad-num { display: block; width: 100%; padding: 9px 10px; border: 0; border-bottom: 2px solid #5b6474; background: transparent; color: #fff; font-size: 26px; letter-spacing: .03em; text-align: center; }
.pad-num:focus { outline: 0; border-bottom-color: var(--yellow); }
.pad-num::placeholder { color: #66707f; font-size: 18px; }
.pad-keys { margin: 8px 0; gap: 5px; }
.pad-keys button { padding: 6px 0; font-size: 20px; }
.pad-actions { gap: 5px; }
.pad-actions button { padding: 9px 0; }

/* ---------- 통화 화면 ---------- */
.call-head { padding: 10px 14px 6px; }
.call-head strong { font-size: 21px; }
.call-bottom { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 6px 12px 10px; }
.call-bottom .call-end { margin: 0; padding: 9px 30px; }
.call-side { color: #cfd6e1; font-size: 14px; text-align: center; }
.call-next { padding: 8px; background: #2a303b; font-size: 15px; }
.call-ask label { display: block; margin-bottom: 5px; font-size: 15px; color: #cfd6e1; }
.call-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.call-chip { padding: 7px 13px; border: 1px solid #e7b90a; border-radius: 16px; background: transparent; color: #f7d65a; font-size: 16px; cursor: pointer; }
.call-chip:hover { background: #e7b90a; color: #111; }
.call-ask-row { display: flex; gap: 6px; }
.call-ask-row input { flex: 1; min-width: 0; margin: 0; padding: 8px; }
.call-ask-row button { flex: none; width: auto; padding: 0 15px; }

/* ---------- 메모 앱 ---------- */
.ph-mine textarea { margin-bottom: 8px; }
.ph-mine ul { max-height: 42vh; overflow-y: auto; }

/* ---------- 서랍 폭 ---------- */
:root { --dk-w: min(500px, 42vw); }
@media (max-width: 900px) { :root { --dk-w: 100vw; } }

/* ---------- 진짜 폰: 비율과 틀 ---------- */
:root { --phone-w: clamp(400px, 60vh, 560px); }
.desk { grid-template-columns: minmax(190px, 330px) var(--phone-w) minmax(190px, 330px); gap: 22px; }
.ph-frame { border-width: 9px; border-radius: 34px; box-shadow: 0 0 0 1px #3a404a, 0 18px 40px rgba(0, 0, 0, .55); }
.ph-status { position: relative; padding: 7px 18px 5px; }
.ph-status::after { content: ''; position: absolute; left: 50%; top: 7px; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: #05070a; box-shadow: inset 0 0 0 2px #1b2028; }
.ph-status .ph-found { position: absolute; left: 50%; top: 100%; z-index: 3; transform: translateX(-50%); margin-top: 3px; padding: 2px 8px; border-radius: 10px; background: rgba(10, 12, 16, .78); }
#statusUnread { margin-left: 6px; color: #f3c866; font-size: 12px; }
.ph-mute { display: inline-flex; align-items: center; padding: 1px; border: 0; background: none; color: #cfd6e1; cursor: pointer; }
.ph-mute svg { width: 15px; height: 15px; }
.ph-mute[aria-pressed='false'] { color: #6b7482; }

/* ---------- 시스템 버튼 ---------- */
.ph-appbar { display: none !important; }
.ph-sysnav { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); background: #05070a; }
.ph-sysnav a, .ph-sysnav button { display: flex; align-items: center; justify-content: center; padding: 12px 0; border: 0; background: none; color: #cfd6e1; font-size: 18px; line-height: 1; text-decoration: none; cursor: pointer; }
.ph-sysnav a:hover, .ph-sysnav button:hover { background: #12161c; }
.ph-sysnav svg { width: 28px; height: 28px; }

/* ---------- 홈 화면 ---------- */
.ph-screen.is-home { display: flex; flex-direction: column; overflow-y: auto; background: linear-gradient(rgba(10, 14, 20, .3), rgba(10, 14, 20, .68)), url('../img/diary-drawing.svg') center / cover no-repeat #fff; }
.ph-home-top { padding: 22px 16px 8px; }
.is-home .ph-clock { padding: 0 0 12px; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.is-home .ph-clock strong { font-size: 56px; }
.ph-widget { display: block; margin-bottom: 8px; padding: 9px 12px; border-radius: 16px; background: rgba(22, 27, 36, .86); color: #f3f4f6; text-decoration: none; }
a.ph-widget:hover { background: rgba(34, 41, 53, .92); }
.ph-widget small { display: block; color: #aab7cb; font-size: 12px; }
.ph-widget strong { display: block; font-size: 16px; }
.ph-widget span { display: block; font-size: 15px; line-height: 1.35; color: #dfe3ea; }
.ph-widget.is-note { background: rgba(255, 245, 180, .94); color: #333; font-family: var(--pen); font-size: 20px; line-height: 1.22; }
.ph-widget.is-note small { font-family: var(--ui); color: #7a7a50; }
.ph-home-apps { margin-top: auto; padding: 8px 12px 6px; }
.ph-icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 4px; }
.ph-dock { margin-top: 12px; padding: 9px 6px 6px; border-radius: 24px; background: rgba(255, 255, 255, .17); backdrop-filter: blur(6px); }
.ph-icon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 13px; line-height: 1.2; text-decoration: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .75); }
.ph-icon i { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 15px; background: #5c6675; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); transition: transform .08s ease-out; }
.ph-icon:active i { transform: scale(.92); }
.ph-icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph-icon b { position: absolute; top: -4px; left: 50%; margin-left: 15px; min-width: 20px; padding: 0 5px; border-radius: 10px; background: var(--led); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; text-shadow: none; }
.ph-dock .ph-icon span { display: none; }
.ic-call i { background: #2f9a55; }
.ic-sms i { background: #2d7ff0; }
.ic-photos i { background: linear-gradient(135deg, #e0568c, #e8a23a); }
.ic-web i { background: #fff; }
.ic-web svg { stroke: #2d7ff0; }
.ic-memo i { background: #f2c230; }
.ic-memo svg { stroke: #5a4300; }
.ic-calendar i { background: #fff; color: #d8342b; font-size: 26px; font-weight: 700; text-shadow: none; }
.ic-bank i { background: #16857a; color: #fff; font-size: 30px; font-weight: 700; text-shadow: none; }
.ic-nav i { background: #5b58ad; }
@media (max-height: 640px) {
  .ph-icon i { width: 50px; height: 50px; }
  .ph-icon svg { width: 28px; height: 28px; }
  .is-home .ph-clock strong { font-size: 42px; }
  .ph-widget.is-note { display: none; }
}

/* ---------- 최근 앱 ---------- */
.ph-recents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; padding: 14px; }
.ph-recent { display: flex; flex-direction: column; justify-content: space-between; min-height: 130px; padding: 11px; border-radius: 16px; background: #232933; color: #f3f4f6; text-decoration: none; }
.ph-recent:hover { background: #2d3440; }
.ph-recent strong { font-size: 18px; }
.ph-recent span { font-size: 14px; color: #aab7cb; }
.ph-recent i { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #5c6675; font-style: normal; }
.ph-recent svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 앱 열림 ---------- */
.ph-screen > * { animation: viewIn .11s ease-out; }
@keyframes viewIn { from { opacity: .5; transform: scale(.985); } }

/* ---------- 통화 화면 ---------- */
.call-layer.is-active { background: linear-gradient(#1b2636, #0c1016); }
.call-head { padding: 26px 14px 10px; border: 0; }
.call-head strong { font-size: 27px; font-weight: 400; }
.call-log { padding: 8px 14px; }
.call-line { max-width: 90%; background: none; padding: 3px 0; font-size: 19px; }
.call-line.is-them { background: rgba(255, 255, 255, .09); padding: 7px 12px; border-radius: 14px; }
.call-line.is-me { background: rgba(47, 154, 85, .5); padding: 7px 12px; border-radius: 14px; }
.call-controls { padding: 6px 14px; }
.call-next { background: rgba(255, 255, 255, .1); border-radius: 20px; }
.call-bottom { grid-template-columns: 1fr 1fr 1fr; justify-items: center; padding: 10px 16px 14px; }
.call-side { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #e7ebf3; font-size: 13px; text-decoration: none; }
.call-side i { display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.call-side:hover i { background: rgba(255, 255, 255, .26); }
.call-side svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.call-bottom .call-end { width: 62px; height: 62px; margin: 0; padding: 0; border-radius: 50%; font-size: 15px; }
.call-layer.is-ringing { background: linear-gradient(#1b2636, #0c1016); }
.ph-strip { border-radius: 0; }

/* ---------- 서랍과 작은 화면 ---------- */
.is-embed .ph-frame { box-shadow: none; }
.is-embed .ph-status::after { display: none; }
:root { --dk-w: min(460px, 42vw); }
@media (max-width: 900px) { :root { --dk-w: 100vw; } }
@media (max-width: 1040px) {
  .desk { grid-template-columns: minmax(0, 460px); }
}
@media (max-width: 480px) {
  .ph-frame { border: 0; border-radius: 0; box-shadow: none; }
  .ph-status::after { display: none; }
}

/* 주인 찾음 표시는 상태 표시줄 안에 둔다 (통화 띠를 가리지 않게) */
.ph-status .ph-found { position: static; transform: none; margin: 0; padding: 0; background: none; z-index: auto; }
.ph-status:has(.ph-found:not([hidden]))::after { display: none; }
@media (max-width: 400px) { .ph-found span { display: none; } }

/* ---------- 표지의 생일 칸 ---------- */
.dy-birth { display: inline-flex; align-items: center; gap: 3px; }
.dy-birth input { width: 2.1em; border: 0; border-bottom: 2px solid var(--pencil); background: transparent; font-family: var(--child); font-size: 20px; text-align: center; padding: 0; }
.cv-form.is-opening .cv-start { opacity: 0; transition: opacity .2s; }

/* ---------- 책상 위 물건 ---------- */
.desk-items { margin-bottom: 14px; }
.desk-items h2 { margin: 0 0 6px; font-size: 14px; font-weight: 400; color: #9fb0c8; }
.desk-part { margin: 10px 0 0; font-size: 14px; color: #9fb0c8; }
.desk-item { display: block; margin-bottom: 6px; padding: 8px 12px; background: var(--night-2); border: 1px solid #33405a; border-radius: 4px; color: #e7ebf3; font-size: 15px; text-decoration: none; }
.desk-item:hover { background: #24304a; }

/* ---------- 사진 크게 보기: 글씨가 사진과 함께 커진다 ---------- */
.ph-viewer-top { flex: none; display: flex; justify-content: flex-end; gap: 6px; padding: 8px; }
.ph-viewer-top .ph-viewer-close { margin: 0; }
.ph-viewer-btn { padding: 3px 12px; border: 1px solid #5b6474; background: transparent; color: #e7ebf3; cursor: pointer; }
.ph-viewer-btn[aria-expanded='true'] { background: #2a303b; }
.ph-viewer-img { position: relative; width: 100%; container-type: inline-size; transition: transform .22s ease-out; }
.ph-viewer-stage.is-zoom img { transform: none; }
.ph-viewer-stage.is-zoom .ph-viewer-img { transform: scale(2.6); }
.ph-viewer-tip { flex: none; margin: 6px 14px 0; font-size: 13px; color: #8d97a7; }
.ph-note-small { margin: 0 14px 8px; font-size: 13px; color: #8d97a7; }

/* 사진 위에 얹는 글씨. 좌표는 원본 사진 기준이다 */
.ov-wrap { position: relative; container-type: inline-size; }
.ov-pile { position: absolute; left: 44.2%; top: 40.2%; width: 13.2%; height: 10%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1em; color: #17130e; font-family: var(--pen); line-height: 1; white-space: nowrap; pointer-events: none; transform: rotate(-.6deg); opacity: .92; mix-blend-mode: multiply; }
.ov-pile span { font-size: 3.2cqw; }
.ov-pile span + span { font-size: 2.1cqw; }
.ov-pile.is-faded { opacity: .28; filter: blur(.25px); }
.ov-note { position: absolute; left: 63%; top: 25%; width: 22%; display: flex; flex-direction: column; gap: .15em; color: #27314a; font-family: var(--pen); font-size: 2.3cqw; line-height: 1.1; transform: rotate(4deg); pointer-events: none; mix-blend-mode: multiply; }
.ov-note b { align-self: flex-end; padding: 0 .3em; border: 2px solid #c8281f; border-radius: 50%; color: #c8281f; font-weight: 400; }
.ov-idname { position: absolute; left: 36%; top: 69%; width: 26%; color: #1d2433; font-family: var(--ui); font-size: 2.6cqw; font-weight: 700; text-align: center; transform: rotate(3deg); pointer-events: none; }

/* ---------- 문자 답장 ---------- */
.ph-reply { position: sticky; bottom: 0; padding: 8px 10px; background: #12151b; }
.ph-reply button { width: 100%; padding: 10px; border: 0; border-radius: 8px; background: var(--yellow); color: #111; font-weight: 700; cursor: pointer; }

/* ---------- 내 폰 ---------- */
.ph-mine-photo { margin: 10px; }
.ph-mine-photo img { display: block; width: 100%; height: auto; border-radius: 6px; }
.ph-mine-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ph-mine-open .ov-wrap { display: block; }
.ph-mine-photo figcaption { margin-top: 5px; font-size: 16px; line-height: 1.45; color: #d5dae3; }
.ph-mine-photo small { display: block; font-size: 12px; color: #8d97a7; }

/* ---------- 폴더폰 ---------- */
.ph-screen.is-folder { background: #2b2e33; }
.fp-case { min-height: 100%; padding: 14px; }
.fp-lcd { background: #c5d3bd; color: #18241a; border: 3px solid #101214; border-radius: 4px; font-family: var(--old-web); font-size: 15px; line-height: 1.5; }
.fp-top { padding: 2px 8px; background: #18241a; color: #c5d3bd; font-size: 13px; }
.fp-lock { padding: 14px; }
.fp-hint { margin: 0 0 10px; text-align: center; }
.fp-lcd .pin-dots i { border-color: #18241a; }
.fp-lcd .pin-dots i.on { background: #18241a; }
.fp-lcd .pin-keys { margin-top: 12px; }
.fp-lcd .pin-keys button { background: #aebda6; color: #18241a; border-radius: 3px; }
.fp-lcd .pin-keys button:active { background: #94a58d; }
.fp-lcd .ph-error { color: #8a2118; margin-top: 8px; text-align: center; }
.fp-menu a { display: block; padding: 11px 12px; border-bottom: 1px solid #9fae98; color: inherit; font-size: 17px; text-decoration: none; }
.fp-menu a:hover, .fp-menu a:focus-visible { background: #18241a; color: #c5d3bd; }
.fp-list { padding: 8px 10px; display: flex; flex-direction: column; gap: 9px; }
.fp-msg small { display: block; font-size: 12px; color: #48564a; }
.fp-msg p { margin: 0; }
.fp-msg.is-me { text-align: right; }
.fp-pics { display: grid; gap: 10px; padding: 10px; }
.fp-pics figure { margin: 0; }
.fp-pics img { display: block; width: 100%; height: auto; filter: contrast(.92) saturate(.75); }
.fp-pics figcaption { font-size: 12px; line-height: 1.35; color: #48564a; }

/* ---------- 일요일 공책 ---------- */
.ph-screen.is-ledger { background: #e9e4d4; color: #2d2a24; }
.lg-paper { font-size: 22px; }
.nb-line { margin: 0 0 4px; padding: 2px 0; border-bottom: 1px solid #cfc8b2; }
.nb-line.has-tick { position: relative; padding-left: 16px; }
.nb-line.has-tick::before { content: '✓'; position: absolute; left: 0; top: 2px; color: #55504a; font-size: 15px; }
.lg-paper h2 { margin-top: 16px; }

/* ---------- 지도 ---------- */
.s-map { background: #f2f3ee; min-height: 100vh; color: #26291f; font-size: 15px; }
.m-top { display: flex; align-items: baseline; gap: 12px; padding: 12px 18px; background: #fff; border-bottom: 1px solid #d5d8cb; }
.m-logo { font-size: 18px; font-weight: 700; color: #3c7a4d; }
.m-wrap { max-width: 720px; margin: 0 auto; padding: 14px 14px 90px; }
.m-map { display: block; width: 100%; height: auto; border: 1px solid #d5d8cb; }
.m-card { margin-top: 12px; padding: 16px 18px; background: #fff; border: 1px solid #d5d8cb; }
.m-card h1 { margin: 0; font-size: 22px; }
.m-card h2 { margin: 0 0 6px; font-size: 16px; }
.m-kind { margin: 0 0 10px; font-size: 13px; color: #6d7263; }
.m-info { display: grid; grid-template-columns: 3.5em 1fr; gap: 3px 8px; margin: 0; }
.m-info dt { color: #6d7263; }
.m-info dd { margin: 0; }
.m-review { padding: 9px 0; border-top: 1px solid #ecede6; line-height: 1.6; }
.m-review b { display: block; font-size: 13px; color: #6d7263; font-weight: 400; }

/* ---------- 지워진 글 모음 ---------- */
.s-del { background: #e6e6e3; min-height: 100vh; color: #2b2b28; font-size: 15px; }
.d-top { padding: 18px; background: #3f3f3a; color: #d9d9d3; font-size: 13px; }
.d-top strong { display: block; color: #fff; font-size: 20px; }
.d-post { max-width: 700px; margin: 18px auto 90px; padding: 22px; background: #fff; border: 1px solid #cfcfca; }
.d-post h1 { margin: 0 0 3px; font-size: 21px; line-height: 1.4; }
.d-post small { color: #77776f; }
.d-post > p { margin: 12px 0; line-height: 1.85; }
.d-cap { margin: 16px 0; border: 2px solid #8e8e88; box-shadow: 3px 3px 0 #bdbdb6; font-family: var(--old-web); font-size: 13px; filter: contrast(.94); }
.d-cap-head { padding: 7px 10px; background: #c9698a; color: #fff; font-weight: 700; }
.d-cap-body { padding: 12px 14px; background: #fff; line-height: 1.85; }
.d-cap-body h2 { margin: 0 0 3px; font-size: 16px; }
.d-cap-meta { margin: 0 0 10px; padding-bottom: 7px; border-bottom: 1px solid #eee; color: #888; font-size: 12px; }
.d-cap-body p:last-child { margin-bottom: 0; }
.d-cap figcaption { padding: 5px 10px; background: #f0f0ec; color: #66665f; font-size: 12px; }
.d-comment { padding: 8px 0; border-top: 1px solid #e4e4df; font-size: 14px; line-height: 1.7; }
.d-comment b { margin-right: 6px; color: #55554e; }

/* ---------- 가짜 사이트 보탬 ---------- */
.n-brief { margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #ddd; }
.n-brief h2 { margin: 0 0 6px; font-size: 19px; }
.n-briefs h1 { font-size: 24px; }
.c-action { margin-top: 5px; }
.c-note-btn { padding: 2px 10px; border: 1px solid #c9698a; background: #fff; color: #a54a6c; font-size: 12px; cursor: pointer; }
.c-note-btn:disabled { border-color: #ddd; color: #999; cursor: default; }

/* ---------- 마지막 그림일기 ---------- */
.dd-page { margin: 0 auto; padding-bottom: 92px; }
.dy-grid.is-small .g-cell { width: calc(100% / 20); font-size: clamp(12px, 2vw, 17px); }
.dd-tools.dd-actions { margin-top: 12px; }
.dd-end-links { width: auto; margin: 12px 0 0; }
.dd-call p { margin: 0 0 6px; }

/* ---------- 장면: 흐린 낮과 어두운 밤 ---------- */
.s-scene { --sn-band-h: clamp(180px, min(46vh, 66.7vw), 520px); --sn-bg: #dcdfd6; --sn-ink: #23261f; --sn-soft: #5c6156; --sn-rule: #b9bdaf; --sn-bubble: #fff; min-height: 100vh; background: var(--sn-bg); color: var(--sn-ink); font-family: var(--serif); }
.s-scene.is-dark { --sn-bg: #0b0e13; --sn-ink: #d8dbd5; --sn-soft: #8b9198; --sn-rule: #2b3038; --sn-bubble: #1d222b; }
/* 사진은 자르지 않는다. 양옆 빈 곳은 같은 사진을 흐리게 깔아 채운다 */
.sn-band { position: sticky; top: 0; z-index: 3; margin: 0; height: var(--sn-band-h); overflow: hidden; background: #000; }
.sn-band::before { content: ''; position: absolute; inset: 0; background: var(--band-img) center / cover no-repeat; filter: blur(26px) brightness(.5); }
.sn-band img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; }
.sn-band img.is-in { animation: bandIn .7s ease-out; }
@keyframes bandIn { from { opacity: 0; } }
.sn-strip { position: sticky; top: 0; z-index: 4; padding: 8px 14px; background: #2f9a55; color: #fff; font-family: var(--ui); font-size: 15px; font-weight: 700; text-align: center; white-space: pre-wrap; }
.sn-log { max-width: 660px; margin: 0 auto; padding: 28px 22px 46vh; min-height: 70vh; }
.sn-beat { margin: 0 0 18px; scroll-margin-top: calc(var(--sn-band-h) + 16px); scroll-margin-bottom: 110px; animation: beatIn .28s ease-out; }
.ph-gap { color: #8d97a7; font-size: 14px; text-align: center; }
@keyframes beatIn { from { opacity: 0; transform: translateY(5px); } }
.sn-n { font-size: clamp(18px, 2.1vw, 20px); line-height: 1.95; white-space: pre-line; }
.sn-inner { padding: 2px 0 2px 14px; border-left: 3px solid var(--sn-rule); font-size: clamp(19px, 2.3vw, 22px); font-weight: 700; line-height: 1.75; }
.sn-say small { display: block; color: var(--sn-soft); font-family: var(--ui); font-size: 13px; }
.sn-say p { margin: 0; font-size: clamp(20px, 2.5vw, 24px); line-height: 1.6; }
.sn-me { text-align: right; }
.sn-me p { display: inline-block; margin: 0; font-family: var(--ui); font-size: clamp(18px, 2.1vw, 20px); line-height: 1.6; }
.sn-say.is-mine { text-align: right; }
.sn-doc { padding: 12px 18px; background: #f4f0e2; color: var(--carbon); box-shadow: 1px 2px 5px rgba(0, 0, 0, .28); font-family: var(--pen); font-size: clamp(23px, 3vw, 27px); line-height: 1.3; }
.sn-doc p { margin: 0; white-space: pre-line; }
.sn-doc.is-shaky { transform: rotate(-.8deg); letter-spacing: .06em; color: #38383c; }
.sn-part { display: flex; align-items: center; justify-content: center; min-height: 46vh; margin: 0; }
.sn-part p { margin: 0; font-family: var(--child); font-size: clamp(36px, 7vw, 56px); line-height: 1.2; text-align: center; }
.sn-figure { margin: 0; }
/* 장면 사진은 모두 1280x853이다. 자리를 미리 잡아 늦게 떠도 글이 밀리지 않게 한다 */
.sn-figure img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 853; box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
.sn-msg { max-width: 80%; font-family: var(--ui); }
.sn-msg small { display: block; margin-bottom: 2px; color: var(--sn-soft); font-size: 12px; }
.sn-msg p { display: inline-block; margin: 0; padding: 8px 13px; border-radius: 12px; background: var(--sn-bubble); font-size: 18px; line-height: 1.5; }
.sn-msg.is-me { margin-left: auto; text-align: right; }
.sn-msg.is-me p { background: #2e6b45; color: #fff; }
.sn-bar { position: fixed; z-index: 5; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; pointer-events: none; }
.sn-next { pointer-events: auto; padding: 11px 40px; border: 1px solid var(--sn-ink); border-radius: 26px; background: var(--sn-bg); color: var(--sn-ink); font-family: var(--ui); font-size: 16px; cursor: pointer; box-shadow: 0 3px 10px rgba(0, 0, 0, .28); }
.sn-next:hover { background: var(--sn-ink); color: var(--sn-bg); }
.sn-tip { color: var(--sn-soft); font-family: var(--ui); font-size: 14px; line-height: 1.6; }

/* 장면 안의 조작 */
.sn-device { font-family: var(--ui); }
.sn-chip { padding: 8px 16px; border: 1px solid var(--sn-ink); border-radius: 18px; background: transparent; color: var(--sn-ink); font-size: 16px; cursor: pointer; }
.sn-chip:hover { background: var(--sn-ink); color: var(--sn-bg); }
.sn-chip.is-quiet { border-color: var(--sn-soft); color: var(--sn-soft); }
.sn-ask { padding-top: 26vh; text-align: center; }
.sn-ask form { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 8px; font-family: var(--serif); font-size: clamp(30px, 5vw, 44px); }
.sn-ask input { width: 4.2em; padding: 2px 6px; border: 0; border-bottom: 2px solid var(--sn-ink); background: transparent; font-family: var(--serif); font-size: inherit; text-align: center; }
.sn-ask input:focus { outline: 0; border-bottom-color: #c8281f; }
.sn-ask button { flex-basis: 100%; max-width: 120px; margin: 18px auto 0; padding: 8px 18px; border: 0; border-radius: 18px; background: var(--sn-ink); color: var(--sn-bg); font-family: var(--ui); font-size: 15px; cursor: pointer; }
.sn-ask-say { min-height: 1.6em; margin: 18px 0 0; font-family: var(--serif); font-size: 20px; }
.sn-reply form { display: flex; gap: 6px; margin: 10px 0 8px; }
.sn-reply input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--sn-rule); border-radius: 18px; background: var(--sn-bubble); font-size: 17px; }
.sn-reply button[type='submit'] { padding: 0 18px; border: 0; border-radius: 18px; background: #2e6b45; color: #fff; cursor: pointer; }
.sn-reply button[type='submit']:disabled { opacity: .4; cursor: default; }

/* 벽: 사진 두 줄이 그대로 보이게 넓게 쓴다 */
.sn-wall { display: flex; flex-direction: column; gap: 14px; margin-left: min(0px, calc((660px - 100vw) / 2 + 22px)); margin-right: min(0px, calc((660px - 100vw) / 2 + 22px)); padding: 20px 18px; background: #b8ab8c; box-shadow: inset 0 0 40px rgba(60, 45, 20, .45); }
.sn-wall-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: start; }
.sn-wall-row.is-top { grid-template-columns: repeat(3, minmax(0, 170px)); }
.sn-wall-shot { display: block; padding: 5px 5px 2px; border: 0; background: #f4f1e6; color: #4b4436; font-family: var(--pen); font-size: 17px; line-height: 1.2; text-align: center; box-shadow: 1px 2px 5px rgba(0, 0, 0, .4); cursor: zoom-in; transition: transform .12s ease-out; }
.sn-wall-shot:nth-child(odd) { transform: rotate(-1deg); }
.sn-wall-shot:nth-child(even) { transform: rotate(.8deg); }
.sn-wall-shot:hover { transform: scale(1.05); }
.sn-wall-shot img { display: block; width: 100%; height: auto; }
.sn-wall-shot.is-seen { outline: 2px solid rgba(255, 255, 255, .7); }
.sn-zoom { width: min(860px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 8px; border: 0; background: #111; color: #eee; }
.sn-zoom::backdrop { background: rgba(0, 0, 0, .78); }
.sn-zoom-top { display: flex; justify-content: flex-end; gap: 6px; margin-bottom: 6px; }
.sn-zoom-btn { padding: 4px 14px; border: 1px solid #666; background: transparent; color: #eee; font-family: var(--ui); font-size: 14px; cursor: pointer; }
.sn-zoom-stage img { display: block; width: 100%; height: auto; }
.sn-back { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; background: #ece6d4; color: #27314a; font-family: var(--pen); font-size: clamp(30px, 5vw, 46px); transform: scaleX(1); animation: flipIn .28s ease-out; }
@keyframes flipIn { from { transform: scaleX(.05); } }

/* 약 봉투와 날씨 달력 */
.sn-meds p { margin: 12px 0 6px; line-height: 1.7; }
.sn-q { font-family: var(--serif); font-size: 21px; }
.sn-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.sn-days button { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 0; border: 1px solid var(--sn-rule); background: var(--sn-bubble); color: var(--sn-ink); cursor: pointer; }
.sn-days button:disabled { cursor: default; }
.sn-days b { font-weight: 400; font-size: 14px; }
.sn-days i { display: block; width: 30px; height: 30px; }
.sn-days .is-picked { outline: 2px solid #c8281f; }
.sn-days .is-rain i { animation: flipIn .2s ease-out; }
.sn-meds-end { font-family: var(--serif); font-size: 22px; font-weight: 700; }

/* ㅇㅇ 세기 */
.sn-count-note { margin: 0 0 4px; padding: 8px 14px; background: #f4f0e2; color: var(--carbon); font-family: var(--pen); font-size: 26px; line-height: 1.2; }
.sn-count-days { display: grid; gap: 4px; margin-top: 6px; }
.sn-count-day { display: grid; grid-template-columns: 3.6em auto 1fr; align-items: center; gap: 8px; }
.sn-count-day small { color: var(--sn-soft); font-size: 13px; }
.sn-bab { padding: 3px 11px; border-radius: 10px; background: var(--sn-bubble); font-size: 15px; }
.sn-oo { justify-self: end; padding: 3px 14px; border: 1px dashed #4c9a6b; border-radius: 10px; background: transparent; color: var(--sn-ink); font-size: 15px; cursor: pointer; }
.sn-oo.is-on { border-style: solid; background: #2e6b45; color: #fff; cursor: default; }
.sn-none { justify-self: end; color: var(--sn-soft); font-size: 13px; }
.sn-counter { margin: 8px 0 0; font-size: 17px; font-weight: 700; }

/* 새 말뚝과 스무 줄 */
.sn-reply .sn-tip { font-size: 16px; color: inherit; }
.sn-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ov-newpile { position: absolute; left: 44%; top: 30%; width: 12%; height: 42%; display: flex; flex-direction: column; justify-content: center; gap: .15em; color: #17130e; font-family: var(--pen); font-size: 3.5cqw; line-height: 1.1; writing-mode: vertical-rl; transform: rotate(3.5deg); pointer-events: none; opacity: .9; mix-blend-mode: multiply; }
.ov-newpile span { display: block; }
.sn-practice { padding: 14px 18px; background: #f4f0e2; color: #38383c; font-family: var(--pen); font-size: clamp(20px, 2.7vw, 25px); line-height: 1.25; }
.sn-practice p { margin: 0; border-bottom: 1px solid #d8d2bd; animation: beatIn .2s ease-out backwards; animation-delay: calc(var(--i) * 95ms); }
.sn-practice .is-last { position: relative; }
.sn-practice .is-last::after { content: ''; position: absolute; left: -7px; top: -5px; right: 8%; bottom: -5px; border: 2.5px solid #c8281f; border-radius: 50%; transform: rotate(-.7deg); animation: beatIn .3s ease-out 2.1s backwards; }

/* 사진 정보와 마지막 한 주 */
.sn-info .sn-chip { margin-top: 10px; }
.sn-info dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 10px 0 0; font-size: 16px; }
.sn-info dt { color: var(--sn-soft); }
.sn-info dd { margin: 0; }
.sn-week { display: flex; flex-direction: column; gap: 8px; }
.sn-week-ask { display: flex; gap: 8px; justify-content: flex-end; }

@media (max-width: 620px) {
  .sn-wall-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sn-log { padding: 20px 16px 46vh; }
}
@media print {
  .sn-bar { display: none; }
  .dd-end-links, .dd-call { display: none !important; }
}

/* ---------- 종이봉투 열기 ---------- */
.cv-form { width: min(420px, 100%); }
.cv-note.is-unfold .paper-note { animation: noteUnfold .55s cubic-bezier(.2, .8, .3, 1); transform-origin: 50% 0; }
@keyframes noteUnfold { from { opacity: 0; transform: perspective(700px) rotateX(-62deg); } }
.cv-note.is-unfold .cv-start { animation: toastIn .4s ease-out .4s backwards; }

/* ---------- 1부 시험판: 묻기와 엄마 종이 ---------- */
.call-ask { display: flex; gap: 6px; }
.call-ask input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #4a5361; border-radius: 8px; background: #151a22; color: #fff; font-family: var(--ui); font-size: 16px; }
.call-controls .call-ask button { flex: none; width: auto; margin: 0; padding: 10px 16px; border: 0; border-radius: 8px; background: var(--green); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.call-help { width: 100%; margin-top: 6px; padding: 7px; border: 1px solid #39424f; border-radius: 8px; background: transparent; color: #cfd6e1; font-size: 14px; cursor: pointer; }
.ph-doc { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; padding: 10px 12px; border: 1px dashed #b9b4a2; background: #f8f6ec; color: #26282c; font-family: var(--serif); font-size: 14px; line-height: 1.45; }
.ph-doc b { margin-bottom: 2px; font-weight: 700; }

.dk-tabs { flex: none; display: flex; background: #1d222b; }
.dk-tabs button { flex: 1; padding: 8px 4px; border: 0; background: transparent; color: #9aa4b2; font-family: var(--ui); font-size: 14px; cursor: pointer; }
.dk-tabs button[aria-pressed="true"] { background: #000; color: #fff; font-weight: 700; }
.dk-tabs .dk-close { flex: none; width: 54px; padding: 8px 4px; }
.dk-tabs b { margin-left: 4px; padding: 0 5px; border-radius: 9px; background: var(--led); color: #fff; font-size: 11px; line-height: 16px; }
.dk-drawer iframe[hidden] { display: none; }

.go-gate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.go-gate input { width: 130px; padding: 6px 8px; border: 1px solid #9aa8ba; font-size: 15px; }
.go-gate button { padding: 6px 14px; border: 1px solid #17498c; background: #17498c; color: #fff; font-size: 14px; cursor: pointer; }
.go-gate p { flex-basis: 100%; margin: 0; color: #b02a22; }
.go-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.go-table th, .go-table td { padding: 8px 10px; border: 1px solid #cdd6e2; text-align: left; vertical-align: top; }
.go-table th { width: 30%; background: #f0f3f7; font-weight: 700; }

.s-paper { min-height: 100vh; background: var(--night); color: #1f2125; }
.s-paper.is-embed { background: #16181d; }
.s-paper.is-embed .tb { display: none; }
.pp-wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 90px; }
.is-embed .pp-wrap { padding: 8px 8px 24px; }
.pp-sheet { padding: 26px 26px 22px; background: #fcfbf4; box-shadow: 0 6px 22px rgba(0, 0, 0, .45); font-family: var(--serif); }
.is-embed .pp-sheet { padding: 16px 12px 14px; box-shadow: none; }
.pp-head { display: flex; justify-content: space-between; font-size: 12px; color: #5c5f66; }
.pp-sheet h1 { margin: 10px 0 4px; font-size: 25px; font-weight: 700; letter-spacing: .32em; text-align: center; }
.pp-lead { margin: 0 0 14px; font-size: 13px; color: #5c5f66; text-align: center; }
.pp-table { width: 100%; border-collapse: collapse; border-top: 2px solid #26282c; border-bottom: 2px solid #26282c; }
.pp-table th { width: 44%; padding: 9px 10px; border: 1px solid #8f9299; border-left: 0; background: #ecebe2; font-size: 14px; font-weight: 400; line-height: 1.4; text-align: left; }
.pp-table td { padding: 0; border: 1px solid #8f9299; border-right: 0; }
.pp-field { position: relative; }
.pp-field input, .pp-field select { display: block; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: var(--carbon); font-family: var(--pen); font-size: 23px; line-height: 1.2; }
.pp-field select { font-size: 22px; }
.pp-field input:focus, .pp-field select:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
.pp-field input:disabled, .pp-field select:disabled { color: var(--carbon); opacity: 1; }
.pp-field.is-wrong::after { content: ''; position: absolute; inset: 1px 2px; border: 2px solid rgba(216, 52, 43, .78); border-radius: 50% / 46%; transform: rotate(-1.2deg); pointer-events: none; }
.pp-pencil { margin-top: 18px; padding-top: 2px; }
.pp-note { margin-bottom: 12px; }
.pp-note label { display: block; color: #2f2f33; font-family: var(--pen); font-size: 23px; line-height: 1.22; }
.pp-note .pp-field { margin-top: 2px; border-bottom: 1px solid #8f9299; }
.pp-sign { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 16px; margin-top: 14px; font-size: 14px; }
.pp-sign b { color: var(--carbon); font-family: var(--pen); font-size: 22px; font-weight: 400; }
.pp-stamp { display: inline-block; width: 44px; height: 44px; border: 2px solid rgba(216, 52, 43, .85); border-radius: 50%; color: rgba(216, 52, 43, .85); font-size: 13px; line-height: 40px; text-align: center; transform: rotate(-9deg); }
.pp-send { margin-top: 14px; font-family: var(--ui); }
.pp-send button { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: var(--yellow); color: #1f2125; font-size: 16px; font-weight: 700; cursor: pointer; }
.pp-send button:disabled { opacity: .55; cursor: default; }
.pp-send p { margin: 6px 0 0; color: #9aa4b2; font-size: 13px; text-align: center; }
.pp-reply { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #252b35; color: #fff; font-family: var(--ui); font-size: 16px; line-height: 1.5; }
.pp-reply small { display: block; margin-bottom: 2px; color: #9aa4b2; font-size: 12px; }
.pp-leave { display: block; width: 100%; margin-top: 10px; padding: 12px; border: 0; border-radius: 8px; background: #fff; color: #111; font-family: var(--ui); font-size: 16px; font-weight: 700; cursor: pointer; }
.tr-end { max-width: 620px; margin: 0 auto; padding: 56px 20px 80px; color: #e8ebf0; font-family: var(--ui); line-height: 1.65; }
.tr-end h1 { margin: 0 0 14px; font-family: var(--serif); font-size: 26px; font-weight: 700; }
.tr-end dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; margin: 18px 0 26px; }
.tr-end dt { color: #9aa4b2; }
.tr-end dd { margin: 0; }
.tr-end h2 { margin: 0 0 8px; font-size: 16px; }
.tr-end ol { margin: 0 0 26px; padding-left: 20px; }
.tr-end button, .tr-end a { color: #cfd6e1; }
.tr-end button { padding: 0; border: 0; background: none; font-size: 14px; text-decoration: underline; cursor: pointer; }
@media (max-width: 480px) {
  .pp-sheet { padding: 18px 14px 16px; }
  .pp-table th { width: 42%; font-size: 13px; padding: 8px; }
  .pp-sheet h1 { font-size: 22px; letter-spacing: .22em; }
}

/* ---------- 3부 시험: 자녀 성장 기록표 ---------- */
.tl-wrap { max-width: 980px; }
.tl-intro { max-width: 640px; margin: 0 auto; color: #e8ebf0; font-family: var(--ui); line-height: 1.65; }
.tl-notice { padding: 8px 12px; border: 1px solid #39424f; color: #9aa4b2; font-size: 14px; }
.tl-intro ul { margin: 14px 0; padding-left: 20px; }
.tl-intro li { margin-bottom: 6px; }
.tl-pic { display: block; }
.tl-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 853; }
.tl-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tl-slot { position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px; border: 1px solid #8f9299; background: #ecebe2; font-family: var(--serif); font-size: 14px; cursor: pointer; }
.tl-slot-name { text-align: center; }
.tl-empty { display: flex; align-items: center; justify-content: center; aspect-ratio: 1280 / 853; border: 1px dashed #8f9299; background: #fcfbf4; color: #8f9299; font-size: 13px; }
.tl-slot.is-wrong::after { content: ''; position: absolute; inset: 2px; border: 2px solid rgba(216, 52, 43, .8); border-radius: 50% / 46%; transform: rotate(-1.2deg); pointer-events: none; }
.tl-pool { margin-top: 16px; color: #cfd6e1; font-family: var(--ui); font-size: 14px; }
.tl-pool p { margin: 0 0 8px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tl-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 6px; border: 1px solid #39424f; background: #1d222b; color: #cfd6e1; font-family: var(--ui); text-align: left; cursor: pointer; }
.tl-card small { font-size: 12px; line-height: 1.35; }
.tl-card.is-used { opacity: .45; }
.tl-help { margin-top: 8px; background: transparent !important; border: 1px solid #39424f !important; color: #cfd6e1 !important; font-size: 14px !important; font-weight: 400 !important; padding: 8px !important; }
.tl-dialog { width: min(760px, 94vw); max-height: 94vh; padding: 10px; border: 0; background: #14181f; color: #e8ebf0; font-family: var(--ui); }
.tl-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.tl-stage { overflow: hidden; cursor: zoom-in; }
.tl-stage img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 853; transition: transform .12s ease-out; }
.tl-stage.is-zoom { cursor: zoom-out; }
.tl-stage.is-zoom img { transform: scale(2.6); }
.tl-stage.is-zoom .ov-idname { visibility: hidden; }
.tl-cap { margin: 8px 0; font-size: 14px; color: #cfd6e1; }
.tl-choose { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tl-choose button { flex: 1 1 22%; padding: 10px 6px; border: 0; border-radius: 6px; background: var(--yellow); color: #1f2125; font-size: 15px; font-weight: 700; cursor: pointer; }
.tl-choose button[aria-pressed="true"] { background: #fff; }
.tl-choose button[data-slot=""] { background: #39424f; color: #fff; font-weight: 400; }
.tl-close { width: 100%; padding: 9px; border: 1px solid #39424f; border-radius: 6px; background: transparent; color: #cfd6e1; font-size: 14px; cursor: pointer; }
.tl-answer { margin-bottom: 14px; }
/* 연도 하나가 머리글과 두 줄 칸 세 개로 이어진다. 넓으면 옆으로, 좁으면 아래로 흐른다 */
.tl-chart { display: grid; grid-template-rows: auto auto auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding-bottom: 6px; color: #cfd6e1; font-family: var(--ui); font-size: 13px; }
.tl-year { padding-bottom: 2px; border-bottom: 1px solid #39424f; text-align: center; }
.tl-label { align-self: center; color: #fff; font-weight: 700; }
.tl-cell { margin: 0; min-width: 0; }
.tl-cell figcaption { margin-top: 3px; font-family: var(--pen); font-size: 17px; line-height: 1.1; text-align: center; color: #fff; }
.tr-next { box-sizing: border-box; text-align: center; text-decoration: none; }
@media (max-width: 720px) {
  .tl-chart { grid-template-rows: none; grid-auto-flow: row; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .tl-year { padding: 0; border: 0; text-align: left; }
  .tl-label { text-align: center; }
}
@media (max-width: 560px) {
  .tl-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 내 물건 가방 ---------- */
.dk-bar { position: fixed; z-index: 50; right: 16px; bottom: 16px; display: flex; gap: 8px; }
.dk-bar .dk-btn { position: static; }
.dk-paper-btn { background: #fbfbf1; color: #24262b; }
.dk-bag-btn { background: #7a4f1e; color: #fff; }
.dk-open .dk-bar { right: calc(var(--dk-w) + 16px); }
.dk-open .dk-paper-btn, .dk-open .dk-bag-btn { display: none; }
@media (max-width: 900px) {
  .dk-bar { left: 0; right: 0; bottom: 0; gap: 1px; background: #000; }
  .dk-bar .dk-btn { flex: 1; justify-content: center; min-height: 52px; padding: 8px 4px; border-radius: 0; box-shadow: none; }
  .dk-open .dk-bar { display: none; }
  body:has(> .dk-bar) { padding-bottom: 58px; }
  .w-toasts { bottom: 62px; }
}
.ph-device { margin-left: 6px; padding: 1px 7px; border-radius: 9px; background: #2a303b; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ph-desk-btn b { margin-left: 4px; padding: 0 5px; border-radius: 8px; background: var(--led); font-size: 11px; }
.ph-desk-btn { padding: 4px 10px; font-size: 13px; }
.desk-item.is-all { background: transparent; border-style: dashed; color: #9fb0c8; font-size: 14px; }
.bg-new { margin-left: 6px; padding: 0 6px; border-radius: 9px; background: var(--led); color: #fff; font-family: var(--ui); font-size: 11px; font-style: normal; font-weight: 700; line-height: 17px; }
.bg-wrap { font-family: var(--ui); color: #e8ebf0; }
.bg-title { margin: 0 0 12px; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.is-embed .bg-title { display: none; }
.bg-group { margin-bottom: 16px; }
.bg-group h2 { margin: 0 0 6px; color: #9aa4b2; font-size: 13px; font-weight: 400; }
.bg-group h2 small { margin-left: 2px; font-size: 12px; }
.bg-item { display: flex; flex-direction: column; gap: 2px; width: 100%; margin-bottom: 6px; padding: 11px 12px; border: 1px solid #39424f; border-radius: 6px; background: #1d222b; color: #fff; font-family: var(--ui); text-align: left; cursor: pointer; }
.bg-item:hover, .bg-item.is-open { background: #262d38; }
.bg-item strong { font-size: 16px; font-weight: 700; }
.bg-item span { color: #aeb7c4; font-size: 13px; line-height: 1.4; }
.bg-detail { margin: -2px 0 10px; }
.bg-detail .paper-note { font-size: 20px; }
.bg-text { margin: 0; padding: 10px 12px; background: #fbfbf1; color: #26282c; font-size: 14px; line-height: 1.5; }

/* 인터넷 닫기와 폰 위 가방 단추: 작아서 안 보인다는 지적으로 키웠다 */
.tb { height: 50px; }
.tb-link { flex: none; display: block; line-height: 38px; padding: 0 14px; border: 1px solid #8a8f98; border-radius: 6px; background: #fff; color: #222; font-size: 15px; font-weight: 700; }
.tb-link:hover { background: #eee; text-decoration: none; }
.ph-desk-btn { min-height: 34px; padding: 4px 14px; border: 0; border-radius: 6px; background: #f2b705; color: #1f2125; font-size: 15px; font-weight: 700; }
.ph-desk-btn b { color: #fff; }
.is-embed .ph-desk-btn { display: none; }
@media (max-width: 900px) {
  .tb { gap: 6px; }
  .tb-link { line-height: 40px; padding: 0 10px; font-size: 14px; }
  .tb-link span { display: none; }
}

/* 대본 v6: 표지와 폰 */
.dy-parent { margin: 8px 0 0; font-family: var(--ui); font-size: 13px; color: #55504a; }
.dy-parent i { display: inline-block; width: 24px; height: 24px; margin-left: 4px; border: 2px solid var(--red); border-radius: 50%; color: var(--red); font-family: var(--serif); font-style: normal; font-size: 13px; line-height: 20px; text-align: center; transform: rotate(-8deg); }
.ph-msg-gap { margin: 6px 0; text-align: center; color: #8a8a8a; font-size: 13px; }
.nb-red { margin: 2px 0 12px; color: #c8281f; font-family: var(--pen); font-size: 24px; line-height: 1.2; }
.s-end { min-height: 100vh; padding: 14vh 20px 60px; background: #f4f1e6; color: var(--pencil); }

/* 대본 v6: 장면에서 플레이어가 하는 일 */
.sn-acts { margin: 6px 0 22px; }
.sn-act { display: block; width: 100%; padding: 13px 18px; border-radius: 10px; font-family: var(--ui); text-align: left; line-height: 1.5; }
.sn-ask { padding-top: 0; text-align: left; }
.sn-ask form { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: stretch; gap: 6px; font-family: var(--ui); font-size: 17px; }
.sn-ask input { flex: 1; width: auto; min-width: 0; padding: 10px 14px; border: 1px solid var(--sn-rule); border-radius: 18px; background: var(--sn-bubble); color: inherit; font-family: var(--ui); font-size: 17px; }
.sn-ask button[type='submit'] { flex: 0 0 auto; flex-basis: auto; max-width: none; margin: 0; padding: 0 18px; }
.sn-ask-say { margin-top: 10px; }
.sn-ask .sn-tip { margin: 6px 0; }
.sn-words { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sn-words .sn-chip { padding: 6px 12px; font-family: var(--ui); font-size: 14px; }
.sn-words .sn-chip:disabled { opacity: .35; cursor: default; }
#oldEnd { display: block; width: 100%; margin-top: 6px; font-family: var(--ui); }
#oldEnd[hidden] { display: none; }
.sn-wall-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sn-auto .pp-sheet { margin-bottom: 12px; color: var(--pencil); }
.sn-auto .pp-pencil { display: none; }
.sn-auto-slot { margin: 12px 0; padding: 22px 12px; border: 1px dashed #8d8878; color: #5d594c; font-family: var(--pen); font-size: 22px; line-height: 1.2; text-align: center; }
.sn-picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.sn-pick { display: block; min-height: 66px; padding: 9px 12px; border: 1px solid var(--sn-rule); background: #f4f1e6; color: var(--pencil); font-family: var(--ui); text-align: left; cursor: pointer; }
.sn-pick:hover:not(:disabled) { background: #fff; }
.sn-pick small { display: block; color: #6c6858; font-size: 12px; }
.sn-pick strong { display: block; font-size: 15px; font-weight: 500; line-height: 1.35; }
.sn-pick.is-out { opacity: .5; cursor: default; }
.sn-pick.is-out strong { text-decoration: line-through; }
.sn-reread { display: flex; flex-direction: column; gap: 8px; }
.sn-memo { padding: 12px 16px; border: 0; border-left: 4px solid #e8d78a; background: #fff8c9; color: var(--pencil); font-family: var(--pen); font-size: 22px; line-height: 1.25; text-align: left; cursor: pointer; box-shadow: 1px 2px 5px rgba(0, 0, 0, .25); }
.sn-memo.is-read { opacity: .4; cursor: default; }
.sn-card { width: min(280px, 80%); margin: 6px auto 22px; padding: 26px 20px; background: linear-gradient(90deg, transparent 49.6%, rgba(0, 0, 0, .1) 50%, transparent 50.4%), #f2a9b8; color: #4a2a33; font-family: var(--child); font-size: 26px; line-height: 1.35; text-align: center; transform: rotate(-1.5deg); box-shadow: 1px 3px 8px rgba(0, 0, 0, .35); }
.sn-card p { margin: 0; white-space: pre-line; }
.sn-card.is-back { background: linear-gradient(90deg, transparent 49.6%, rgba(0, 0, 0, .08) 50%, transparent 50.4%), #fbe3e8; color: #38383c; transform: rotate(1deg); }
.sn-card small { display: block; margin-bottom: 8px; font-family: var(--ui); font-size: 12px; color: #6c6858; }
.sn-left { margin: 0; font-family: var(--pen); font-size: 27px; line-height: 1.55; color: #38383c; }
.sn-ch { display: inline-block; position: relative; transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); }
.sn-ch.is-space { width: .38em; }
.sn-ch.is-circle::after { content: ''; position: absolute; left: -.14em; right: -.14em; top: .02em; bottom: .02em; border: 2px solid #c8281f; border-radius: 50%; transform: rotate(-7deg); pointer-events: none; }
.sn-left-page { background: repeating-linear-gradient(transparent 0 41px, #cfc8b2 41px 42px), #fbf8ec; }
.sn-left-page p { white-space: normal; }
.sn-sheet-val { display: block; min-height: 30px; padding: 3px 6px; font-family: var(--pen); font-size: 21px; line-height: 1.2; color: var(--pencil); }
.sn-four .pp-sheet { color: var(--pencil); }
.sn-four #fourNext { display: block; margin: 12px auto 0; font-family: var(--ui); }
.sn-newpile form { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-family: var(--pen); font-size: 24px; }
.sn-newpile label { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; }
.sn-newpile input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--sn-rule); background: var(--sn-bubble); color: inherit; font-family: var(--pen); font-size: 24px; }
.sn-newpile button { padding: 7px 16px; border: 0; border-radius: 18px; background: var(--sn-ink); color: var(--sn-bg); font-family: var(--ui); font-size: 15px; cursor: pointer; }
.sn-dict-page { min-height: 72px; margin: 8px 0 12px; padding: 12px 16px; background: repeating-linear-gradient(transparent 0 41px, #cfc8b2 41px 42px), #fbf8ec; }
.sn-dict-line { display: block; position: relative; width: fit-content; max-width: 100%; margin: 0 8px 6px; padding: 0 6px; border: 0; background: transparent; cursor: pointer; }
.sn-dict-line.is-ok { cursor: default; }
.sn-dict-line.is-ok::after { content: ''; position: absolute; inset: 2px -8px; border: 3px solid #c8281f; border-radius: 50%; transform: rotate(-3deg); }
.sn-dict form { display: flex; gap: 6px; margin-bottom: 8px; }
.sn-dict form[hidden] { display: none; }
.sn-dict input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px solid var(--sn-rule); border-radius: 18px; background: var(--sn-bubble); color: inherit; font-size: 17px; }
.sn-dict button[type='submit'] { padding: 0 16px; border: 0; border-radius: 18px; background: var(--sn-ink); color: var(--sn-bg); font-family: var(--ui); cursor: pointer; }
.sn-long textarea { display: block; width: 100%; padding: 12px; border: 1px solid var(--sn-rule); border-radius: 10px; background: var(--sn-bubble); color: inherit; font-family: var(--ui); font-size: 17px; line-height: 1.6; resize: vertical; }
.sn-long button { display: block; margin: 8px 0 0 auto; padding: 9px 20px; border: 0; border-radius: 18px; background: #2e6b45; color: #fff; font-family: var(--ui); cursor: pointer; }
.sn-long button:disabled { opacity: .4; cursor: default; }
@media (max-width: 480px) {
  .sn-picks { grid-template-columns: 1fr; }
  .sn-pick { min-height: 0; }
  .sn-wall-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sn-ask input { text-align: left; }
.sn-ask input:focus { border-color: var(--sn-ink); }
.sn-ask .sn-chip { flex-basis: auto; max-width: none; margin: 0; background: transparent; color: var(--sn-ink); border: 1px solid var(--sn-ink); }
.sn-ask .sn-chip:hover:not(:disabled) { background: var(--sn-ink); color: var(--sn-bg); }
.sn-ask .sn-chip.is-quiet { border-color: var(--sn-soft); color: var(--sn-ink); }
#oldEnd { margin-top: 10px; }
.sn-pick em { display: block; min-height: 0; margin-top: 3px; color: #c8281f; font-family: var(--pen); font-size: 21px; font-style: normal; line-height: 1.1; }
.sn-pick.is-out { opacity: 1; }
.sn-pick.is-out small, .sn-pick.is-out strong { opacity: .5; }
#autoAnswer .sn-inner { margin: 12px 0; }
#autoAnswer .pp-reply { margin-bottom: 10px; }
.s-end .dd-call { margin-top: 0; }
.s-end .dd-call h2 { font-size: 44px; }
.sn-left { line-height: 42px; }
.sn-ch.is-circle::after { left: -.1em; right: -.1em; top: .26em; bottom: .26em; }
.sn-left-page { padding: 14px 18px; background-position: 0 14px; }
.sn-card .sn-left { line-height: 1.4; }
.sn-dict-page { padding: 14px 16px; background-position: 0 14px; }
.sn-dict-line { margin: 0 8px; line-height: 42px; }
.sn-dict-line.is-ok::after { inset: 5px -8px; }
.sn-auto .tl-help { display: block; width: 100%; margin-top: 4px; padding: 10px 14px; border: 1px solid var(--sn-soft); background: transparent; color: var(--sn-ink); font-family: var(--ui); font-size: 15px; cursor: pointer; }
/* 위쪽 막대가 50px이 된 뒤로 책상 높이가 8px 넘쳤다. 480px 이하에서는 막대가 없다 */
@media (min-width: 481px) {
  .desk { min-height: calc(100vh - 50px); }
  .ph-frame { height: calc(100vh - 70px); }
  .desk-side { max-height: calc(100vh - 70px); }
}
