/* With Santa 손님 화면 스타일 (11/30). 목업 docs/concept-themes/mockup.css의 제품 화면 부분을 그대로 옮기고, 끝에 실제 페이지용 값을 더했다.
   목업을 고치면 이 파일도 같이 고친다. 클래스 이름은 목업과 같다 (점검 도구가 같은 선택자를 쓴다) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   제품 화면
   ========================================================================== */
.app {
  /* 두 컨셉이 같이 쓰는 값 */
  --font-body: "Noto Sans KR", -apple-system, "Apple SD Gothic Neo", system-ui, sans-serif;
  --font-hand: "Nanum Pen Script", "Gaegu", cursive; --hand-w: 400; --hand-scale: 1;   /* 엽서 손글씨. 줄 높이는 고정이라 배율을 바꿔도 줄이 밀리지 않는다 */
  --font-post: "Noto Sans KR", sans-serif; --post-w: 700; --post-ls: .06em;            /* 소인 글자 */
  --font-memo: "Gaegu", var(--font-body); --memo-scale: 1;            /* 아이에게 산타를의 손글씨 (사진 아래 글, 메모지) */
  --head-scale: 1;                                                                    /* 제목 크기 배율 (서체마다 같은 px에서 보이는 크기가 달라 맞춘다) */
  --pad: 20px; --hd-h: 60px; --r-btn: 6px; --r-field: 6px;
  --pin-in: #2f9e5f; --pin-gift: #d99a1c;
  position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto;
  background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; color-scheme: var(--scheme);
}

/* 아이에게 산타를: 낮의 종이. 지금 모양 그대로 (크림 종이 · 숲색 · 호랑가시 빨강 · 고운돋움) */
.app[data-concept="visit"] {
  --scheme: light;
  --bg: #faf6ee; --surface: #fffdf8; --surface-2: #f3efe4; --field: #fffdf8;
  --ink: #2e392f; --muted: #62695d; --line: #deddd0; --line-2: #c4c5b4;
  --accent: #a83d35; --accent-ink: #fffdf5; --accent-press: #863028; --accent-text: #a83d35;
  --second: #304d3e; --second-ink: #faf6ee; --tint: #e6ebdf; --tint-ink: #304d3e; --info: #304d3e;
  --paper: #fffdf8; --hole: var(--bg);
  --ok-bg: #e6ebdf; --ok-ink: #304d3e; --warn-bg: #fff4dc; --warn-ink: #7a4f00; --err: #a83d35; --err-bg: #fdecea;
  --font-head: "Gowun Dodum", "Apple SD Gothic Neo", sans-serif; --head-w: 400; --head-w-s: 400; --head-lh: 1.5; --head-ls: -.01em;
  --r-card: 10px; --obj-edge: #ece9de; --obj-shadow: 0 14px 34px rgba(52, 68, 49, .12); --box-shadow: 0 14px 34px rgba(52, 68, 49, .12);
  --snow: transparent; --snow-2: transparent; --stamp-shadow: none; --scrim: rgba(46, 57, 47, .5);
}
/* 나의 산타에게: 밤 우체국. 링크 미리보기 그림(og-wish)의 밤색 바탕 · 금색은 '고른 것'과 주 버튼에만 · 굵은 고딕 제목 */
.app[data-concept="wish"] {
  --scheme: dark;
  --bg: #12291f; --surface: #1a372b; --surface-2: #234838; --field: #0d2018;
  --ink: #f4efe2; --muted: #a9bbae; --line: #2d5241; --line-2: #7c9c8b;
  --accent: #f2c75c; --accent-ink: #12291f; --accent-press: #f7d57c; --accent-text: #f2c75c;
  --second: #faf6ee; --second-ink: #12291f; --tint: #234838; --tint-ink: #f4efe2; --info: #a8d5e8;
  --paper: #faf6ee; --hole: var(--bg);
  --ok-bg: #1b4a37; --ok-ink: #9fdcb4; --warn-bg: #4a2a17; --warn-ink: #ff9d66; --err: #ffa39b; --err-bg: #4c1a20;
  --font-head: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; --head-w: 800; --head-w-s: 700; --head-lh: 1.36; --head-ls: -.035em;
  --r-card: 2px; --obj-edge: #7c9c8b; --obj-shadow: 0 18px 44px rgba(0, 0, 0, .38); --box-shadow: none;
  --snow: rgba(250, 246, 238, .55); --snow-2: rgba(250, 246, 238, .28); --stamp-shadow: none; --scrim: rgba(4, 12, 8, .7);
}
/* 대안(검토용): 화면 구조는 그대로 두고 토큰만 바꾼다 */

.app *, .app *::before, .app *::after { box-sizing: border-box; }
:where(.app) :where(h1, h2, h3, p, ol, ul, dl, dd, figure) { margin: 0; padding: 0; }
:where(.app) :where(ol, ul) { list-style: none; }
:where(.app) :where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(.app) :where(button) { cursor: pointer; }
:where(.app) :where(img) { display: block; max-width: 100%; }
.app :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.app-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.app-bar { position: relative; z-index: 5; }

/* ---------- 글자 ---------- */
.t-hero { font-family: var(--font-head); font-weight: var(--head-w); font-size: calc(30px * var(--head-scale)); line-height: var(--head-lh); letter-spacing: var(--head-ls); text-wrap: balance; }
.t-hero em { font-style: normal; color: var(--accent-text); }
.app[data-concept="visit"] .t-hero em { background: linear-gradient(transparent 88%, rgba(168, 61, 53, .35) 88% 94%, transparent 94%); }
.t-hero--s { font-size: calc(26px * var(--head-scale)); }
/* 제목 안에 들어가는 사용자 입력(받는 사람 이름). 제목 서체의 한글이 일부뿐이면 --font-user로 본문 서체에 싣는다. 값이 없으면 제목 서체 그대로 */
.u { font-family: var(--font-user, inherit); font-weight: var(--user-w, inherit); letter-spacing: var(--user-ls, inherit); }
.t-sec { font-family: var(--font-head); font-weight: var(--head-w); font-size: calc(24px * var(--head-scale)); line-height: var(--head-lh); letter-spacing: var(--head-ls); text-wrap: balance; }
.t-step { font-family: var(--font-head); font-weight: var(--head-w); font-size: calc(23px * var(--head-scale)); line-height: 1.4; letter-spacing: var(--head-ls); text-wrap: balance; }
.t-sub { color: var(--muted); font-size: 14.5px; }
.kicker { font-size: 12.5px; font-weight: 700; color: var(--accent-text); }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.hint { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.center { text-align: center; }
.err { color: var(--err); font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }

/* ---------- 단추 · 링크 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--r-btn); background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15.5px; line-height: 1.2; text-decoration: none; transition: background-color .15s, transform .15s; }
.btn:active { background: var(--accent-press); transform: translateY(1px); }
.btn[disabled] { opacity: .42; cursor: default; }
.btn.is-busy[disabled] { opacity: .9; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); font-weight: 500; }
.btn--ghost:active { background: var(--surface-2); }
.btn--s { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn .i { width: 18px; height: 18px; }
.link { background: none; border: 0; padding: 0; color: var(--accent-text); font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; min-height: 44px; display: inline-flex; align-items: center; gap: 5px; }
.link--muted { color: var(--muted); font-weight: 400; }
/* 누름 자리: 보이는 크기는 그대로 두고 손가락이 닿는 자리만 44px로 넓힌다 (작은 글자 링크 · 좋아요 · 동의 칸).
   ‘전문 보기’·‘접기’·좋아요는 보이는 높이가 28px, 동의 칸은 글 한 줄(23px)이었다 */
.link, .like, .check { position: relative; }
.link::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100% + 12px, 44px); height: max(100%, 44px); translate: -50% -50%; }
.like::after { content: ""; position: absolute; right: 0; top: 50%; width: max(100%, 44px); height: 44px; translate: 0 -50%; } /* 카드 오른쪽 끝에 붙어 있어 왼쪽으로만 넓힌다 */
.check::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: max(100%, 44px); translate: 0 -50%; }
.check input { z-index: 1; } /* 네모 칸 자체는 넓힌 자리 위에 둔다 (칸을 눌러도, 그 둘레를 눌러도 같다) */
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.icon-btn .i { width: 20px; height: 20px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- 첫 화면 ---------- */
.hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--hd-h); padding-inline: var(--pad); }
.hd--center { justify-content: center; }
.logo { display: inline-flex; align-items: center; gap: 9px; background: none; border: 0; padding: 0; font-weight: 600; font-size: 19px; letter-spacing: -.06em; color: var(--ink); min-height: 44px; }
.logo svg { width: 27px; height: 27px; }
.hd-nav { display: none; }

/* 컨셉 전환: 두 테마에서 자리·크기가 같다. 켜진 칸만 바뀐다 */
.switch { position: relative; margin: 4px var(--pad) 0; display: grid; grid-template-columns: 1fr 1fr; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; isolation: isolate; view-transition-name: concept-switch; }
.switch :is(button, a) { position: relative; z-index: 1; border: 0; background: none; min-height: 44px; padding: 0 8px; display: inline-flex; gap: 8px; align-items: center; justify-content: center; border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; transition: color .3s; }
.switch :is(button, a)[aria-selected="true"] { color: var(--second-ink); }
.switch .dot { width: 11px; height: 11px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(128, 128, 128, .55); }
.switch .dot--visit { background: linear-gradient(90deg, #faf6ee 50%, #a83d35 50%); }
.switch .dot--wish { background: linear-gradient(90deg, #12291f 50%, #f2c75c 50%); }
.switch-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--second); transition: transform .38s cubic-bezier(.2, .7, .2, 1); }
.app[data-concept="wish"] .switch-thumb { transform: translateX(100%); }

.strip { display: flex; align-items: center; gap: 10px; width: calc(100% - 2 * var(--pad)); margin: 0 var(--pad) 12px; min-height: 46px; padding: 6px 12px 6px 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); color: var(--ink); font-size: 13.5px; text-align: left; }
.strip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--info); animation: pulse 1.6s ease-in-out infinite; flex: none; }
.strip span:nth-child(2) { flex: 1; min-width: 0; }
.strip b { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; flex: none; color: var(--accent-text); }
.strip .i { width: 14px; height: 14px; }

.hero { position: relative; padding: 26px var(--pad) 34px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; justify-items: center; text-align: center; }
.hero-sub { color: var(--muted); font-size: 15px; max-width: 30ch; }
.hero-note { font-size: 12.5px; color: var(--muted); max-width: 32ch; }
.snow { background-image: radial-gradient(circle, var(--snow) 1.2px, transparent 1.8px), radial-gradient(circle, var(--snow-2) 1px, transparent 1.6px), radial-gradient(circle, var(--snow-2) 1.7px, transparent 2.3px); background-size: 97px 97px, 61px 61px, 139px 139px; background-position: 14px 22px, 40px 6px, 78px 54px; }

/* 아이에게 산타를: 기울어진 사진 인화지 */
.album { position: relative; width: 268px; height: 372px; margin: 6px 0 4px; }
.album::before { content: ""; position: absolute; inset: 18px -34px 6px -34px; border-radius: 48% 52% 46% 54%; background: var(--tint); }
.print { position: absolute; background: var(--paper); padding: 9px 9px 0; border: 1px solid var(--obj-edge); box-shadow: var(--obj-shadow); }
.print img { width: 100%; aspect-ratio: 9 / 13.4; object-fit: cover; }
.print-cap { font-family: var(--font-memo); font-size: calc(17px * var(--memo-scale)); line-height: 1; padding: 11px 2px 12px; text-align: left; color: #2e392f; }
.print--back { inset: 8px -22px auto auto; width: 200px; transform: rotate(9deg); }
.print--front { inset: 0 auto auto 14px; width: 236px; transform: rotate(-3deg); }
.pill { position: absolute; top: 20px; left: 20px; font-size: 11px; font-weight: 500; color: #fff; background: rgba(30, 44, 34, .78); padding: 4px 10px; border-radius: 999px; }
.play { position: absolute; left: 50%; top: 44%; translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%; border: 1px solid #fff9; background: rgba(20, 20, 20, .5); color: #fff; display: grid; place-items: center; }
.play .i { width: 24px; height: 24px; margin-left: 3px; }
/* 메모지는 인화지의 손글씨 설명 위쪽에 둔다 (26px일 때는 설명 끝의 ‘밤.’을 반쯤 가렸다) */
.hand-note { position: absolute; right: -30px; bottom: 56px; width: 118px; padding: 10px 8px; background: #f3e9d2; color: #5b4a2a; font-family: var(--font-memo); font-size: calc(17px * var(--memo-scale)); line-height: 1.15; transform: rotate(6deg); box-shadow: 0 6px 14px rgba(52, 68, 49, .16); }
.hand-note::before { content: ""; position: absolute; top: -8px; left: 34px; width: 46px; height: 16px; background: rgba(214, 200, 166, .75); transform: rotate(-4deg); }

/* 나의 산타에게: 엽서 한 장과 우표 한 줄 */
.hero-vis { width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; justify-items: center; }
.hero-card { width: min(100%, 330px); transform: rotate(-2deg); margin-top: 4px; }
.hero-card .pc { box-shadow: 0 0 0 1px var(--obj-edge), var(--obj-shadow); }
.hero-stamps { width: calc(100% + 2 * var(--pad)); margin: 0 calc(-1 * var(--pad)); display: flex; gap: 12px; overflow-x: auto; padding: 10px var(--pad) 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.hero-stamps::-webkit-scrollbar { display: none; }
.hero-stamps button { flex: none; width: 62px; background: none; border: 0; padding: 0; position: relative; scroll-snap-align: center; }
.hero-stamps .stamp { padding: 3px; }
.hero-cap { font-size: 12.5px; color: var(--muted); margin-top: -6px; }

/* 우표 = 산타 견본. 종이 테두리에 톱니. 구멍은 뒤 바탕색 점으로 그린다(크기가 바뀌어도 네 변에 맞는다) */
.stamp { position: relative; display: block; padding: 5px; background: var(--paper); border: 0; border-radius: 0; filter: var(--stamp-shadow); }
.stamp img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%; }
.stamp::after { content: ""; position: absolute; inset: 0; pointer-events: none; --d: radial-gradient(circle, var(--hole) 0 2.5px, #0000 3px);
  background: var(--d) 0 -4px / 8px 8px round no-repeat, var(--d) 0 calc(100% + 4px) / 8px 8px round no-repeat, var(--d) -4px 0 / 8px 8px no-repeat round, var(--d) calc(100% + 4px) 0 / 8px 8px no-repeat round; }
/* 고른 우표: 우표 밖으로 3px 띄운 링 + 체크 배지 (종이 테두리 위에 링을 그리면 보이지 않는다) */
[aria-checked="true"] > .stamp { outline: 3px solid var(--accent); outline-offset: 3px; }
.tick { position: absolute; top: -7px; right: -7px; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: none; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.tick .i { width: 14px; height: 14px; stroke-width: 3; }
[aria-checked="true"] > .tick { display: grid; }

.sec { padding: 44px var(--pad); display: grid; gap: 22px; }
.sec--tint { background: var(--surface); }
.sec-head { display: grid; gap: 8px; }
.sec-head p:not(.kicker) { color: var(--muted); font-size: 14.5px; }

.shows { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px 12px; }
.show-more-hidden { display: none !important; } /* 자랑하기 더보기(12/1): 처음 두 줄 밖 카드 */
.show { display: grid; gap: 8px; }
.show-media { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--surface-2); }
.show-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.show-media .play { width: 44px; height: 44px; top: 50%; }
.show-media .play .i { width: 18px; height: 18px; }
/* 마우스를 올리면 소리 없이 미리보기 (11/26 첫 화면에 있던 것을 11/30 목업 화면에 옮기며 빠졌다, 12/1 되살림). 영상은 스크립트가 처음 올릴 때 만든다 */
.show-prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s; pointer-events: none; }
.show-media.playing .show-prev { opacity: 1; }
.show-media .play { transition: opacity .2s; }
.show-media.playing .play { opacity: 0; }
.show-media .play::before { content: ""; position: absolute; inset: -100vmax; } /* 포스터 어디를 눌러도 크게 본다(.show-media 밖은 잘린다) */
.show-row { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; }
.like { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; background: none; border: 0; padding: 0; min-height: 28px; }
.like .i { width: 15px; height: 15px; }

.how, .who { display: grid; gap: 0; border-top: 1px solid var(--line); }
.how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 4px 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.how .n { grid-row: span 2; font-weight: 700; font-size: 17px; color: var(--accent-text); line-height: 1.6; font-variant-numeric: tabular-nums; }
.how b, .who b { font-family: var(--font-head); font-weight: var(--head-w-s); font-size: calc(17px * var(--head-scale)); }
.how p { grid-column: 2; color: var(--muted); font-size: 14px; }
.who li { display: grid; gap: 3px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.who p { color: var(--muted); font-size: 14px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary, .disc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 58px; padding: 10px 0; font-weight: 500; cursor: pointer; }
.faq summary::-webkit-details-marker, .disc summary::-webkit-details-marker, .opts summary::-webkit-details-marker { display: none; }
.faq summary .i, .disc summary .i { color: var(--accent-text); transition: rotate .2s; flex: none; }
.faq details[open] summary .i, .disc[open] summary .i { rotate: 45deg; }
.faq details p, .disc-body { color: var(--muted); font-size: 14px; padding: 0 0 18px; }

.closing { padding: 50px var(--pad) 54px; display: grid; gap: 18px; justify-items: center; text-align: center; background-color: var(--surface); }
.ft { padding: 28px var(--pad) 34px; display: grid; gap: 12px; font-size: 12px; color: var(--muted); }

.bar-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px var(--pad) 12px; background: var(--bg); border-top: 1px solid var(--line); }
.bar-cta p { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.bar-cta .btn { min-height: 48px; padding: 0 18px; font-size: 14.5px; flex: none; }
.bar-one { padding: 10px var(--pad) 14px; background: var(--bg); border-top: 1px solid var(--line); display: grid; gap: 9px; }
.bar-two { padding: 10px var(--pad) 14px; background: var(--bg); border-top: 1px solid var(--line); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 10px; }
.bar-two .fine { grid-column: 1 / -1; text-align: center; }
.barline { display: grid; grid-template-columns: 15px minmax(0, 1fr); gap: 7px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.barline .i { margin-top: 2px; width: 14px; height: 14px; color: var(--info); }
.barline b { color: var(--ink); }

/* ---------- 만들기 창 ---------- */
.modal-back { position: absolute; inset: 0; z-index: 20; background: var(--scrim); display: grid; }
.modal { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--bg); min-height: 0; height: 100%; width: 100%; }
.mh { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 6px; padding: 8px 12px 12px; }
.mh-title { margin: 0; text-align: center; font-family: var(--font-head); font-weight: var(--head-w-s); font-size: calc(18.5px * var(--head-scale)); letter-spacing: var(--head-ls); }
.mh-step { text-align: right; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 4px; }
.mh-prog { grid-column: 1 / -1; display: flex; gap: 5px; padding-inline: 8px; }
.mh-prog li { flex: 1; height: 3px; border-radius: 2px; background: var(--line); }
.mh-prog li.on, .mh-prog li.done { background: var(--accent); }
.mb { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px var(--pad) 28px; display: grid; gap: 22px; align-content: start; }

.field { display: grid; gap: 9px; min-width: 0; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field label, .field-label { font-weight: 700; font-size: 14.5px; }
.field label small, .field-label small, .opts small { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.field-head .link { min-height: 32px; }
.input { width: 100%; min-height: 50px; padding: 12px 13px; border: 1px solid var(--line-2); border-radius: var(--r-field); background: var(--field); color: var(--ink); font-size: 16px; line-height: 1.5; }
.input::placeholder { color: color-mix(in srgb, var(--muted) 82%, transparent); }
.field.bad .input, .field.bad .drop, .check.bad input { border-color: var(--err); border-width: 2px; }

.drop { position: relative; width: 100%; min-height: 150px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r-card); background: var(--surface); color: var(--ink); text-align: center; overflow: hidden; }
.drop-ic { width: 46px; height: 46px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); display: grid; place-items: center; }
.drop-ic .i { width: 22px; height: 22px; }
.drop b { font-size: 15px; }
.drop--row { min-height: 76px; grid-template-columns: auto minmax(0, 1fr); text-align: left; padding: 12px 14px; gap: 12px; place-items: center start; }
.drop--row.has { grid-template-columns: auto minmax(0, 1fr) auto; padding: 10px 14px 10px 10px; border-style: solid; border-color: var(--line); }
.drop--row.has img { width: 56px; aspect-ratio: 1; border-radius: 2px; object-fit: cover; }
.drop--row .swap { font-size: 13.5px; font-weight: 500; color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; }
.rules { display: flex; flex-wrap: wrap; gap: 6px; }
.rules li { font-size: 12.5px; padding: 5px 10px 5px 8px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); display: inline-flex; gap: 5px; align-items: center; }
.rules .i { width: 13px; height: 13px; stroke-width: 2.2; }
/* 방 사진 위의 영상 부분 */
.stage3 { position: relative; width: min(100%, 216px); justify-self: center; border-radius: 2px; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; background: #111; cursor: grab; box-shadow: 0 0 0 1px var(--line-2); }
.stage3 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 70%; pointer-events: none; }
.adj-frame { position: absolute; top: 0; bottom: 0; width: 75%; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(0, 0, 0, .6); }
.adj-frame::after { content: attr(data-label); position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700; color: #111; background: #fff; padding: 2px 7px; border-radius: 999px; }
.adj-frame:focus-visible { outline-offset: -5px; }

.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--surface); text-align: left; }
.choice b { display: block; font-size: 14px; line-height: 1.3; }
.choice small { display: block; font-size: 12px; color: var(--muted); }
.choice .i, .choice .box { width: 26px; height: 26px; color: var(--muted); }
.choice[aria-checked="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.giftbox { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.giftbox svg { width: 52px; height: 42px; flex: none; }

.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; font-size: 13.5px; line-height: 1.6; cursor: pointer; }
.check input { position: relative; appearance: none; -webkit-appearance: none; width: 22px; height: 22px; margin: 1px 0 0; border: 1.5px solid var(--line-2); border-radius: 4px; background: var(--field); flex: none; cursor: pointer; }
.check input:checked, .check input:indeterminate { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; position: absolute; inset: 0; background: var(--accent-ink); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat; }
.check input:indeterminate::after { content: ""; position: absolute; inset: 9px 5px; background: var(--accent-ink); border-radius: 1px; }
.box-consent { padding: 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }

/* 산타 고르기 */
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: transparent; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.chip .chip-ic { width: 20px; height: 20px; margin-left: -4px; object-fit: contain; flex: none; }
.chip i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 켜진 분류는 종이색(금색 아님): 거르기와 고르기를 눈으로 가른다 */
.chip[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--second); border-color: var(--second); color: var(--second-ink); font-weight: 700; }
.chip[aria-pressed="true"] i { color: inherit; opacity: .75; }
.chip:disabled, .seg button:disabled { opacity: .4; }
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line-2); border-radius: var(--r-btn); overflow: hidden; width: fit-content; }
.seg button { border: 0; background: none; min-height: 40px; padding: 0 16px; font-size: 13px; }
.seg button + button { border-left: 1px solid var(--line-2); }
.santas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 6px 4px 0; }
.santa { display: grid; gap: 8px; background: none; border: 0; padding: 0; text-align: center; position: relative; }
.santa span:last-child { font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.santa[aria-checked="true"] span:last-child { color: var(--ink); font-weight: 700; }
.more { width: 100%; min-height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: none; font-size: 13.5px; }
.more i { font-style: normal; color: var(--muted); }
.picked { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: var(--r-card); background: var(--surface-2); font-size: 13px; }
.picked .stamp { grid-row: span 2; padding: 2px; --hole: var(--surface-2); }
.picked small { font-size: 11.5px; color: var(--muted); align-self: end; }
.picked b { font-size: 15px; align-self: start; }
.picked b span { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.opts { border-block: 1px solid var(--line); }
.opts summary { list-style: none; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 500; font-size: 14.5px; cursor: pointer; }
.opts summary .i { transition: rotate .2s; }
.opts[open] summary .i { rotate: 180deg; }
.opts-body { display: grid; gap: 20px; padding: 2px 0 16px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 3px; }
/* 엽서 고르기 타일은 종이색: 밤 바탕에 바로 두면 '눈 오는 밤'과 '아이보리 트리'가 구분되지 않는다 */
.cardpick { display: grid; gap: 6px; justify-items: center; padding: 7px 5px 6px; border: 0; border-radius: 2px; background: var(--paper); color: #2e392f; font-size: 11.5px; line-height: 1.3; box-shadow: 0 0 0 1px var(--line-2); }
.cardpick i { width: 100%; aspect-ratio: 3 / 2; border-radius: 1px; padding: 0 !important; box-shadow: none !important; }
.cardpick i.pc--tree { box-shadow: inset 0 0 0 1px #d9d5c6 !important; }
.cardpick[aria-checked="true"] { outline: 3px solid var(--accent); outline-offset: 2px; font-weight: 700; }

/* ---------- 엽서 (지금 서비스의 4종. 우표 자리에 고른 산타, 소인은 보낸 뒤에 찍힌다) ---------- */
.pc { --pc-ink: #2e392f; --pc-muted: #62695d; --pc-rule: #dfe3d6; --pc-mark: #a83d35; --pc-paper: #fffdf8; padding: 9px; border-radius: 4px; container-type: inline-size; box-shadow: 0 0 0 1px var(--obj-edge); }
.pc--snow { background: radial-gradient(circle, rgba(255, 253, 248, .75) 1.1px, transparent 1.6px) 0 0 / 18px 18px, #2f4a3b; }
.pc--red { background: #a83d35; --pc-rule: #efdcd6; }
.pc--kraft { background: repeating-linear-gradient(135deg, #a83d35 0 12px, #fffdf8 12px 20px, #304d3e 20px 32px, #fffdf8 32px 40px); --pc-paper: #efe3cc; --pc-rule: #d6c4a2; --pc-ink: #3a3226; --pc-muted: #6b5d45; --pc-mark: #8a3129; }
.pc--tree { background: #fffdf8; --pc-ink: #304d3e; --pc-rule: #e2e8dc; --pc-mark: #9a7430; }
.pc-paper { background: var(--pc-paper); color: var(--pc-ink); border-radius: 2px; padding: 16px 16px 14px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 14px; text-align: left; }
.pc--tree .pc-paper { background: none; }
.pc-letter { display: grid; align-content: start; gap: 4px; min-width: 0; font-family: var(--font-hand); font-weight: var(--hand-w); font-size: calc(23px * var(--hand-scale)); line-height: 28px; }
.pc-letter p { border-bottom: 1px solid var(--pc-rule); padding-bottom: 3px; min-height: 31px; }
.pc-msg { white-space: pre-line; background: linear-gradient(transparent 30px, var(--pc-rule) 30px 31px, transparent 31px) 0 0 / 100% 31px; border-bottom: 0 !important; min-height: 62px !important; line-height: 31px !important; padding: 0 !important; }
.pc-from { text-align: right; }
.pc-side { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr auto; gap: 6px 4px; min-width: 0; border-left: 1px solid var(--pc-rule); padding-left: 12px; font-family: var(--font-body); }
.pc-stamp { grid-column: 2; grid-row: 1; width: 50px; --hole: var(--pc-paper); padding: 3px; background: #fff; box-shadow: 0 0 0 1px var(--pc-rule); filter: none; }
.pc--tree .pc-stamp { --hole: #fffdf8; }
.pc-mark { grid-column: 1; grid-row: 1; width: 52px; height: 52px; justify-self: end; margin-right: -18px; margin-top: 14px; color: var(--pc-mark); opacity: .88; transform: rotate(-8deg); position: relative; z-index: 1; mix-blend-mode: multiply; }
.pc-mark circle { fill: none; stroke: currentColor; stroke-width: 1.4; }
.pc-mark text { fill: currentColor; font-family: var(--font-post); font-weight: var(--post-w); font-size: 5.4px; letter-spacing: var(--post-ls); }
.pc-mark.is-empty { opacity: .45; }
.pc-mark.is-empty circle { stroke-dasharray: 3 3; }
.pc-mark.is-empty text { display: none; }
.pc-mark.is-new { animation: postmark .22s cubic-bezier(.3, 1.3, .6, 1) both; }
@keyframes postmark { 0% { transform: rotate(-14deg) scale(1.35); opacity: 0; } 60% { transform: rotate(-9deg) scale(.96); opacity: .9; } 100% { transform: rotate(-8deg) scale(1); opacity: .88; } }
.pc-gift { grid-column: 1 / -1; grid-row: 3; display: grid; gap: 1px; border-top: 1px solid var(--pc-rule); padding-top: 7px; }
.pc-gift small { font-size: 10.5px; color: var(--pc-muted); }
.pc-gift b { font-size: 13.5px; line-height: 1.35; font-weight: 700; }
.pc .ph { opacity: .42; }
@container (max-width: 300px) { .pc-paper { padding: 12px 11px 10px; gap: 10px; } .pc-letter { font-size: calc(19px * var(--hand-scale)); line-height: 23px; } .pc-letter p { min-height: 26px; } .pc-msg { background-size: 100% 26px; background-image: linear-gradient(transparent 25px, var(--pc-rule) 25px 26px, transparent 26px); line-height: 26px !important; min-height: 52px !important; } .pc-stamp { width: 38px; } .pc-mark { width: 40px; height: 40px; margin-right: -14px; margin-top: 10px; } .pc-gift b { font-size: 12px; } .pc-side { padding-left: 9px; } }
.pc--tall .pc-paper { grid-template-columns: minmax(0, 1fr); padding: 20px 18px 16px; gap: 14px; }
.pc--tall .pc-letter { font-size: calc(28px * var(--hand-scale)); line-height: 34px; }
.pc--tall .pc-letter p { min-height: 37px; }
.pc--tall .pc-msg { background-size: 100% 37px; background-image: linear-gradient(transparent 36px, var(--pc-rule) 36px 37px, transparent 37px); line-height: 37px !important; min-height: 74px !important; }
.pc--tall .pc-side { border-left: 0; padding-left: 0; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-rows: auto; align-items: end; border-top: 1px solid var(--pc-rule); padding-top: 12px; }
.pc--tall .pc-gift { grid-column: 1; grid-row: 1; border-top: 0; padding-top: 0; }
.pc--tall .pc-gift b { font-size: 16px; }
.pc--tall .pc-mark { grid-column: 2; grid-row: 1; margin: 0 -14px 6px 0; width: 60px; height: 60px; }
.pc--tall .pc-stamp { grid-column: 3; width: 64px; }
/* 엽서 위에 바로 쓰기 */
.pc--edit .pc-line { display: flex; align-items: baseline; gap: 8px; padding-bottom: 0; }
.pc--edit .pc-line label { flex: none; }
.pc--edit input, .pc--edit textarea { width: 100%; min-width: 0; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--pc-ink); font: inherit; padding: 2px 0; color-scheme: light; }
.pc--edit .pc-line input { min-height: 40px; }
.pc--edit textarea.pc-msg { display: block; resize: none; min-height: 111px !important; line-height: 37px !important; background-attachment: local; overflow: hidden; }
.pc--edit .pc-from { justify-content: flex-end; }
.pc--edit .pc-from input { width: auto; flex: 0 1 6.5em; min-width: 0; } /* em 폭이면 손글씨를 키울 때 같이 커져 From. 이 종이 밖으로 밀린다 */
.pc--edit .pc-gift input { font: 700 16px/1.4 var(--font-body); min-height: 38px; border-bottom: 1px solid var(--pc-rule); }
.pc--edit ::placeholder { color: color-mix(in srgb, var(--pc-ink) 36%, transparent); }
.pc--edit :focus-visible { outline: 2px solid var(--pc-mark); outline-offset: 2px; border-radius: 2px; }
.pc--edit .pc-line.bad, .pc--edit .pc-gift.bad input { border-bottom: 2px solid #c0392b; }

/* ---------- 확인 ---------- */
.scene { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.scene-txt { display: grid; gap: 10px; min-width: 0; }
.scene .link, .sum .link { justify-self: start; min-height: 32px; }
.shot { position: relative; aspect-ratio: 9 / 16; border-radius: 2px; overflow: hidden; align-self: start; background: #111; box-shadow: 0 0 0 1px var(--line-2); }
.shot > img { position: absolute; top: 0; left: 0; height: 100%; width: 133.34%; max-width: none; object-fit: cover; object-position: 50% 70%; }
/* 자리 핀: 산타 자리에는 영상에 나올 산타 얼굴 */
.pin { position: absolute; width: 34px; height: 34px; translate: -50% calc(-100% - 7px); border-radius: 50%; border: 2px solid #fff; background: var(--pin-in); display: grid; place-items: center; color: #fff; box-shadow: 0 2px 6px #0008; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; translate: -50% 0; border: 5px solid transparent; border-top: 7px solid #fff; border-bottom: 0; }
.pin img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.pin .i { width: 16px; height: 16px; stroke-width: 2; }
.pin--gift { background: var(--pin-gift); }
.legend { display: grid; gap: 9px; font-size: 13.5px; }
.legend li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; }
.legend .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-top: 1px; overflow: hidden; }
.legend .dot .i { width: 13px; height: 13px; stroke-width: 2.2; }
.legend .dot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.legend small { display: block; color: var(--muted); font-size: 12.5px; }
.note { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; border-radius: var(--r-card); font-size: 13.5px; line-height: 1.55; background: var(--ok-bg); color: var(--ok-ink); }
.note .i { margin-top: 2px; }
.note--plain { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.note--plain .i { color: var(--info); }
.sum { display: grid; gap: 14px; }
.sum-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px 10px 12px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.sum-row .stamp { padding: 2px; --hole: var(--surface); }
.sum-row p { display: grid; line-height: 1.35; }
.sum-row small { font-size: 12px; color: var(--muted); }
.sum-card { display: grid; gap: 8px; }
.agree { display: grid; gap: 0; }
.agree h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.agree-all { padding: 4px 0 14px; border-bottom: 1px solid var(--line-2); font-weight: 700; font-size: 15px; align-items: center; }
.agree-item { border-bottom: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; align-items: start; }
.agree-item .check { font-size: 14px; }
.agree-item .link { min-height: 28px; font-size: 12.5px; }
.agree-full { grid-column: 1 / -1; margin-left: 33px; font-size: 13px; line-height: 1.65; color: var(--muted); padding: 2px 0 2px 11px; border-left: 2px solid var(--line-2); }

/* ---------- 끌어 올리는 창 ---------- */
.sheet-back { position: absolute; inset: 0; z-index: 40; background: var(--scrim); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-height: 92%; overflow-y: auto; background: var(--surface); color: var(--ink); border-radius: 14px 14px 0 0; padding: 10px var(--pad) 18px; display: grid; gap: 16px; align-content: start; }
.sheet::before { content: ""; width: 38px; height: 4px; border-radius: 2px; background: var(--line-2); justify-self: center; }
.sheet h3 { font-family: var(--font-head); font-weight: var(--head-w-s); font-size: calc(19px * var(--head-scale)); line-height: 1.4; letter-spacing: var(--head-ls); }
.sheet-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.guide { display: grid; gap: 10px; counter-reset: g; }
.guide li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 14px; line-height: 1.6; counter-increment: g; }
.guide li::before { content: counter(g); width: 22px; height: 22px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }

/* ---------- 만드는 중 · 완성 · 받는 사람 ---------- */
.page { padding: 8px var(--pad) 34px; display: grid; gap: 26px; align-content: start; }
.st-head { display: grid; gap: 7px; }
.prog { display: grid; gap: 18px; }
.state { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--info); }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
.state--still::before { animation: none; }
.tl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.tl li { display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); line-height: 1.35; align-content: start; }
.tl li::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.tl li.done::before { background: var(--muted); }
.tl li.now { color: var(--ink); font-weight: 700; }
.tl li.now::before { background: linear-gradient(90deg, var(--info) 0 60%, var(--line) 60%); }
.tl small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.keep { padding: 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.keep h2 { font-size: 15.5px; font-weight: 700; }
.keep p { font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.rowlink { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: none; font-size: 14.5px; font-weight: 500; text-align: left; }

.col-media { display: grid; gap: 12px; justify-items: center; min-width: 0; }
.player { position: relative; width: min(100%, 300px); justify-self: center; border-radius: 2px; overflow: hidden; background: var(--bg); box-shadow: var(--box-shadow); }
.player img { width: 100%; aspect-ratio: 9 / 14; object-fit: cover; }
.player .play { top: 50%; }
.player .dur { position: absolute; right: 10px; bottom: 10px; font-size: 11.5px; color: #fff; background: #000a; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.app[data-concept="visit"] .player { padding: 9px; background: var(--paper); border: 1px solid var(--obj-edge); }
.duo { position: relative; width: min(100%, 318px); justify-self: center; padding-bottom: 96px; }
.duo .player { width: 76%; margin-left: auto; }
.duo .pc { position: absolute; left: 0; bottom: 0; width: 76%; transform: rotate(-4deg); box-shadow: 0 0 0 1px var(--obj-edge), var(--obj-shadow); }
/* 완성 화면의 엽서는 미리보기다. 한마디가 길어도 영상을 덮지 않게 세 줄까지만 보인다 (전체는 받는 사람 화면에서 보인다) */
.duo .pc-msg { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cap { font-size: 12.5px; color: var(--muted); text-align: center; }
.infos { display: grid; gap: 10px; }
.info { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.info .i { margin-top: 3px; color: var(--info); }
.info b { color: var(--ink); font-weight: 700; }
.acts2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.showband { padding: 18px 16px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 12px; }
.showband h2 { font-family: var(--font-head); font-weight: var(--head-w-s); font-size: calc(17.5px * var(--head-scale)); line-height: 1.4; letter-spacing: var(--head-ls); }
.showband p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.showform { display: grid; gap: 14px; padding-top: 4px; }
.disc { border-top: 1px solid var(--line); }
.disc:last-of-type { border-bottom: 1px solid var(--line); }
.disc-body { display: grid; gap: 12px; }
.disc-body .btn { justify-self: start; }
.stack0 { display: grid; gap: 0; }

.rcp { position: relative; padding: 6px var(--pad) 40px; display: grid; gap: 22px; justify-items: center; text-align: center; }
.rcp::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; pointer-events: none; background-image: radial-gradient(circle, var(--snow) 1.2px, transparent 1.8px), radial-gradient(circle, var(--snow-2) 1px, transparent 1.6px), radial-gradient(circle, var(--snow-2) 1.7px, transparent 2.3px); background-size: 97px 97px, 61px 61px, 139px 139px; background-position: 14px 22px, 40px 6px, 78px 54px; -webkit-mask: linear-gradient(#000 40%, #0000); mask: linear-gradient(#000 40%, #0000); }
.rcp > * { position: relative; }
.rcp .pc { width: 100%; transform: rotate(-1.2deg); box-shadow: 0 0 0 1px var(--obj-edge), var(--obj-shadow); }
.rcp-ask { display: grid; gap: 4px; }
.rcp-ask b { font-family: var(--font-head); font-weight: var(--head-w-s); font-size: calc(21px * var(--head-scale)); letter-spacing: var(--head-ls); }
.rcp-ask span { color: var(--muted); font-size: 15px; }
.rcp .fine { font-size: 14px; }

/* 안내 화면 여섯 개(멈춤·못 만듦·지우기 확인·지웠어요·없는 주소·끝난 링크). 머리말 높이를 뺀 나머지를 채운다(넓은 화면은 머리말이 72px라 값을 고정하면 12px 넘친다).
   아래 여백을 더 줘서 내용이 화면 한가운데보다 조금 위(약 48%)에 온다 */
.status { min-height: calc(100% - var(--hd-h)); padding: 24px var(--pad) 120px; display: grid; gap: 16px; align-content: center; justify-items: center; text-align: center; }
.status-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--tint); color: var(--tint-ink); display: grid; place-items: center; }
.status-ic .i { width: 28px; height: 28px; }
/* 본문: 문단 하나에 원인 하나와 할 일 하나. 줄 길이를 고르게 나눠 한 낱말만 남는 줄을 막는다 */
.status-body { display: grid; gap: 8px; max-width: 34ch; color: var(--muted); }
.status-body p { text-wrap: balance; }
.nb { white-space: nowrap; }
.status .btns { display: grid; gap: 10px; width: 100%; max-width: 320px; margin-top: 8px; }
.status .btns .link { justify-self: center; }

.toast { position: absolute; z-index: 70; left: 50%; bottom: 96px; translate: -50% 0; width: max-content; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 8px; background: #1b1b1e; color: #fff; font-size: 13.5px; line-height: 1.45; box-shadow: 0 10px 30px #0007; text-align: center; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s; }
.toast.on { opacity: 1; translate: -50% -6px; }

.fade { animation: fade .32s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

/* 컨셉 전환 연출 "밤이 내린다": 새 화면이 곧은 가로 경계로 덮는다. 단추는 제자리에서 켜진 칸만 바뀐다 */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html[data-wipe="down"]::view-transition-new(root) { animation: wipe-down .38s cubic-bezier(.2, .7, .2, 1) both; }
html[data-wipe="up"]::view-transition-new(root) { animation: wipe-up .32s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes wipe-down { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes wipe-up { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }

/* ---------- 무료 이미지 (나의 산타에게 전용. 검토용 '그림' 단추가 data-art를 바꾼다) ----------
   끄면 지금 모습 그대로다. 전부 가상 요소와 배경이라 그림이 없어도 배치가 움직이지 않는다.
   파일과 출처는 assets/free/SOURCES.md */
/* 눈 결정: 눈 점 대신 1902년 눈 결정 사진을 모서리에 걸친다. 글 한가운데에는 두지 않는다.
   처음 보이는 화면에는 한 점만(받는 양 20KB 안), 첫 화면 맨 아래 맺음 구역에만 두 점 */
.app[data-art="crystal"] .hero.snow, .app[data-art="crystal"] .closing.snow { background-image: none; }
.app[data-art="crystal"] .hero, .app[data-art="crystal"] .closing { position: relative; overflow: hidden; }
.app[data-art="crystal"] .hero > *, .app[data-art="crystal"] .closing > * { position: relative; }
.app[data-art="crystal"] .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .3; background: url(/assets/free-crystal-a.webp) right -108px top -70px / 204px no-repeat; }
.app[data-art="crystal"] .rcp::before { height: 300px; opacity: .28; background: url(/assets/free-crystal-a.webp) right -104px top -84px / 196px no-repeat; }
.app[data-art="crystal"] .closing::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .26; background: url(/assets/free-crystal-a.webp) right -70px top -60px / 196px no-repeat, url(/assets/free-crystal-b.webp) left -40px bottom -40px / 140px no-repeat; }
/* 눈 결정과 함께: 엽서 종이에 결을 얹는다. 엽서마다 종이색은 그대로이고 결만 곱해진다 ('아이보리 트리'는 바깥 면이 종이다) */
.app[data-art="crystal"] figure.pc:not(.pc--tree) .pc-paper, .app[data-art="crystal"] figure.pc--tree { background-image: url(/assets/free-paper.webp); background-size: 384px auto; background-blend-mode: multiply; }
/* 호랑가시: 1862년 석판화 한 가지를 엽서 위 가장자리에 걸친다. 우표·소인·To 줄과 겹치지 않는 자리에만.
   엽서가 없는 화면(끝난 링크 등)에는 넣지 않는다: 어두운 바탕에서는 잎이 묻히고, 아이콘 자리에 넣으면 배치가 밀린다 */
/* 눈 사진(비교용, 권하지 않음): 무료 사진 사이트의 눈 내리는 밤 사진을 바탕에 깐다 */

/* ---------- 넓은 화면 ---------- */
@container device (min-width: 860px) {
  .app { --pad: 40px; --hd-h: 72px; }
  .hd { max-width: 1160px; margin-inline: auto; }
  .hd-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
  .hd-nav :is(button, a):not(.btn) { background: none; border: 0; padding: 0; min-height: 44px; }
  .switch { width: 420px; margin-inline: auto; margin-top: 10px; }
  .strip { width: 420px; margin-inline: auto; }
  .hero { max-width: 1160px; margin-inline: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 56px; padding-block: 56px 70px; text-align: left; justify-items: start; align-items: center; }
  .hero > * { grid-column: 1; }
  .hero > .album, .hero > .hero-vis { grid-column: 2; grid-row: 1 / span 5; justify-self: center; }
  .t-hero { font-size: 46px; }
  .hero-sub { font-size: 16.5px; max-width: 34ch; }
  .album { width: 330px; height: 458px; }
  .print--front { width: 290px; } .print--back { width: 246px; }
  .hero-vis { width: min(100%, 460px); }
  .hero-card { width: 400px; }
  .hero-stamps { width: 100%; margin-inline: 0; padding-inline: 4px; }
  .sec { padding-block: 76px; }
  .sec > * { width: 100%; max-width: 1080px; margin-inline: auto; }
  .t-sec { font-size: 32px; }
  .shows { --cols: 4; gap: 20px; }
  #shows > .more { max-width: 320px; } /* 1080px 폭 테두리 단추는 포스터 아래 빈 띠처럼 보인다. .sec > * 의 margin-inline:auto로 가운데 */
  .how, .who { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; border-top: 0; }
  .how li, .who li { border-bottom: 0; border-top: 1px solid var(--line); align-content: start; }  /* 세 칸의 높이가 맞춰지며 짧은 칸의 본문이 12px 내려앉았다 (12/2) */
  .faq { max-width: 760px !important; }
  .closing { padding-block: 84px; }
  .ft { max-width: 1160px; margin-inline: auto; grid-template-columns: 1fr auto; align-items: end; }
  .bar-cta { display: none; }
  .modal-back { place-items: center; padding: 28px; }
  .modal { width: min(720px, 100%); height: min(100%, 860px); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px #0008; }
  .mb { padding: 20px 56px 34px; }
  .mh { padding: 12px 20px 14px; }
  .santas { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .pc--edit { width: min(100%, 440px); justify-self: center; }
  .scene { grid-template-columns: 150px minmax(0, 1fr); }
  .page { max-width: 1000px; margin-inline: auto; padding-top: 24px; }
  .page--split { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 56px; align-items: start; }
  .page--split > .page-head { grid-column: 1 / -1; }
  .page--split > .col-media { grid-column: 1; grid-row: 2 / span 6; }
  .page--split > :not(.page-head):not(.col-media) { grid-column: 2; }
  .page--narrow { max-width: 560px; }
  .bar-one, .bar-two { justify-items: center; }
  .bar-one > *, .bar-two { width: min(480px, 100%); margin-inline: auto; }
  .rcp { max-width: 520px; margin-inline: auto; }
  .sheet-back { align-items: center; }
  .sheet { width: 480px; border-radius: 12px; }
  .sheet::before { display: none; }
  .toast { bottom: 110px; }
  /* 무료 이미지: 넓은 화면에서는 본문 폭이 화면보다 좁아 모서리에 걸치면 중간에서 잘린다. 결정을 통째로 보이게 놓는다 */
  .app[data-art="crystal"] .hero { overflow: visible; }
  .app[data-art="crystal"] .hero::before { background: url(/assets/free-crystal-a.webp) right 0 top -34px / 190px no-repeat; }
  .app[data-art="crystal"] .rcp::before { left: -170px; right: -170px; height: 330px; background: url(/assets/free-crystal-a.webp) right 0 top 6px / 176px no-repeat; }
}

@media (prefers-reduced-motion: reduce) {
  .app, .app * { animation: none !important; transition: none !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ==========================================================================
   11/30: 언어 고르기 · 아이에게 산타를 공유 · 결제 자리
   ========================================================================== */
/* 언어 단추: 머리말 오른쪽. 로고가 가운데인 화면(받는 사람·끝난 링크)에서는 지구본만 */
.hd-nav { margin-left: auto; }
.lang-btn { margin-left: auto; position: relative; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.lang-btn::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100% + 8px, 44px); height: 44px; translate: -50% -50%; }
.lang-btn .i { width: 16px; height: 16px; }
.hd--center { position: relative; }
.hd--center .lang-btn { position: absolute; right: var(--pad); top: 50%; translate: 0 -50%; margin: 0; }
.hd--center .lang-btn span, .hd--center .lang-btn .i:last-child { display: none; }
.hd--center .lang-btn .i { width: 20px; height: 20px; }
.langs { display: grid; }
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 54px; padding: 0 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font-size: 16px; font-weight: 350; text-align: left; font-family: "Noto Sans KR", sans-serif; }   /* 350: 위 9자짜리 글꼴의 굵기 */
.lang-row:last-child { border-bottom: 0; }
.lang-row[lang="ja"] { font-family: "Noto Sans JP", sans-serif; }
.lang-row[lang="zh-Hans"] { font-family: "Noto Sans SC", sans-serif; }
.lang-row[lang="zh-Hant"] { font-family: "Noto Sans TC", sans-serif; }
.lang-row .i { visibility: hidden; color: var(--accent-text); }
.lang-row[aria-current="true"] { color: var(--accent-text); }
.lang-row[aria-current="true"] .i { visibility: visible; }

/* 공유: 보내는 창과 받는 화면 */
.chips--wrap { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; margin-top: 8px; }
.chips--wrap .chip { flex: 0 1 auto; min-height: 36px; padding: 6px 12px; font-size: 13px; text-align: left; }
.sheet textarea.input { resize: none; min-height: 76px; }
.sheet .center { text-align: center; margin-top: -6px; }
.rcp--visit { gap: 20px; }
.vwrap { display: grid; justify-items: center; width: 100%; }
/* 쪽지: 첫 화면의 메모지를 본문 폭으로 키워 영상 사진 위쪽에 걸친다. 사용자가 친 글이라 손글씨에 없는 글자는 본문 서체로 넘어간다 */
.vnote { position: relative; z-index: 1; width: min(88%, 272px); margin-bottom: -30px; padding: 16px 14px 14px; background: #f3e9d2; color: #5b4a2a; font-family: var(--font-memo); font-size: calc(19px * var(--memo-scale)); line-height: 1.35; text-align: left; transform: rotate(-2deg); box-shadow: 0 6px 14px rgba(52, 68, 49, .16); }
.vnote::before { content: ""; position: absolute; left: 50%; top: -9px; width: 62px; height: 18px; translate: -50% 0; rotate: 2deg; background: rgba(255, 255, 255, .6); border: 1px solid rgba(91, 74, 42, .08); }
.rcp--visit .player { border: 8px solid var(--paper); border-bottom-width: 22px; box-shadow: 0 0 0 1px var(--obj-edge), var(--obj-shadow); }

/* 결제 칸: 요약 줄과 같은 테두리·바탕. 금액은 본문 서체의 폭 고정 숫자, 색은 글자색 (빨강·금은 단추에만) */
.paybox { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); justify-items: start; }
.paybox > * { width: 100%; }
.paybox > .link { width: auto; }
.pay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 500; }
.pay-row small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }
.pay-row b { font-family: var(--font-body); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: 0; }
.note--warn { background: var(--warn-bg); color: var(--warn-ink); }
/* 결제 회사의 화면 자리: 서비스 화면이 아니므로 테마 색을 쓰지 않는다 */
.status.ext { --ink: #1f2328; --muted: #5b616b; --tint: #e9ecf0; --tint-ink: #1f2328; --accent: #1f2328; --accent-ink: #fff; --accent-press: #000; --line-2: #c3c9d1; --second: #1f2328; --accent-text: #1f2328; min-height: 100%; background: #f4f5f7; color: var(--ink); font-family: var(--font-body); }
.status.ext h1 { font-family: var(--font-body); font-size: 19px; font-weight: 700; line-height: 1.4; letter-spacing: 0; }
.status.ext .pay-row { width: 100%; max-width: 320px; padding: 14px; background: #fff; border: 1px solid #dfe3e8; border-radius: 8px; }
@container device (min-width: 860px) { .hd-nav + .lang-btn { margin-left: 4px; } }

/* --------------------------------------------------------------------------
   언어별 서체와 조판 값 (한국어는 위의 기본값 그대로).
   음수 자간과 keep-all은 한글 전용이다. 한자·가나에는 자간을 주지 않거나 조금 벌리고, 줄은 글자 단위로 바꾼다.
   -------------------------------------------------------------------------- */
.app:not([data-lang="ko"]) { font-synthesis: none; --font-user: var(--font-body); --user-w: 700; --user-ls: 0; }
/* 영어: 한글 서체의 라틴 글자를 그대로 쓴다 (새로 받는 서체 없음) */
.app[data-lang="en"] { word-break: normal; overflow-wrap: break-word; line-height: 1.6; }
.app[data-lang="en"][data-concept="visit"] { --head-ls: 0; --head-lh: 1.3; --head-scale: .93; --memo-scale: 1.06; }
.app[data-lang="en"][data-concept="wish"] { --font-head: "Hahmlet", var(--font-body); --head-w: 700; --head-w-s: 700; --head-ls: -.015em; --head-lh: 1.25; --hand-scale: 1.1; --font-hand: "Nanum Pen Script", var(--font-body); }
/* 일본어 */
.app[data-lang="ja"] { --font-body: "Noto Sans JP", "Noto Sans KR", -apple-system, "Hiragino Sans", system-ui, sans-serif; word-break: normal; line-break: strict; line-height: 1.75; letter-spacing: .02em; }
.app[data-lang="ja"][data-concept="visit"] { --font-head: "Zen Maru Gothic", var(--font-body); --head-w: 400; --head-w-s: 400; --head-ls: .02em; --head-lh: 1.5; --font-memo: "Yomogi", var(--font-body); --memo-scale: .88; }
.app[data-lang="ja"][data-concept="wish"] { --font-head: "Shippori Mincho B1", var(--font-body); --head-w: 800; --head-w-s: 800; --head-ls: .03em; --head-lh: 1.45; --font-hand: "Zen Kurenaido", var(--font-body); --hand-scale: .86; }
/* 중국어 간체 · 번체. 목업은 본문도 웹 글꼴(Noto Sans SC·TC)로 그린다. 실제 서비스에서는 본문을 기기 서체로 두는 쪽을 권한다 (첫 화면 0.6–0.8MB 차이) */
.app[data-lang^="zh"] { word-break: normal; line-break: strict; line-height: 1.7; }
.app[data-lang^="zh"] :is(.t-hero, .t-sec, .t-step, .btn, .mh-title, .showband h2, .sheet h3, .rcp-ask b, .how b, .who b) { word-break: keep-all; }
.app[data-lang="zh-Hans"] { --font-body: "Noto Sans SC", "Noto Sans KR", -apple-system, "PingFang SC", sans-serif; }
.app[data-lang="zh-Hant"] { --font-body: "Noto Sans TC", "Noto Sans KR", -apple-system, "PingFang TC", sans-serif; }
.app[data-lang="zh-Hans"][data-concept="visit"] { --font-head: "LXGW Marker Gothic", var(--font-body); --head-w: 400; --head-w-s: 400; --head-ls: .02em; --head-lh: 1.45; --font-memo: "LXGW Marker Gothic", var(--font-body); --memo-scale: .88; }
.app[data-lang="zh-Hant"][data-concept="visit"] { --font-head: "Chiron GoRound TC", var(--font-body); --head-w: 400; --head-w-s: 400; --head-ls: .02em; --head-lh: 1.45; --font-memo: "LXGW Marker Gothic", var(--font-body); --memo-scale: .88; }
.app[data-lang="zh-Hans"][data-concept="wish"] { --font-head: "Noto Serif SC", var(--font-body); --head-w: 800; --head-w-s: 700; --head-ls: .02em; --head-lh: 1.4; --font-hand: "Long Cang", "LXGW Marker Gothic", var(--font-body); --hand-scale: .92; }
.app[data-lang="zh-Hant"][data-concept="wish"] { --font-head: "Noto Serif TC", var(--font-body); --head-w: 800; --head-w-s: 700; --head-ls: .02em; --head-lh: 1.4; --font-hand: "Iansui", var(--font-body); --hand-scale: .8; }
/* 로고와 소인은 언어가 바뀌어도 같은 글자 모양으로 (라틴뿐이다) */
.app .logo, .app .pc-mark text { font-family: "Noto Sans KR", sans-serif; }

/* 나의 산타에게 · 한국어 제목 서체: 함렛 700 (11/29 결정). 사용자가 친 글자는 본문 서체로 (.u) */
.app[data-concept="wish"][data-lang="ko"] { --font-head: "Hahmlet", "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; --head-w: 700; --head-w-s: 700; --head-lh: 1.42; --head-ls: -.03em; --hand-scale: 1.1; --font-user: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif; --user-w: 700; --user-ls: -.035em; }

/* ==========================================================================
   실제 페이지에 얹기 (목업은 고정 높이 기기 틀 안에서 안쪽이 스크롤됐다. 실제 페이지는 문서가 스크롤된다)
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page-bg, #faf6ee); }
body:has(.app[data-concept="wish"]) { --page-bg: #12291f; }
.shell { container: device / inline-size; min-height: 100vh; min-height: 100dvh; overflow-x: clip; }  /* 320px 첫 화면 사진 묶음 장식이 17px 나가던 것 */
.app { min-height: 100vh; min-height: 100dvh; height: auto; grid-template-rows: 1fr auto; }
.app-scroll { overflow: visible; min-height: 0; }
.app-bar { position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); }
.app-bar:empty { display: none; }
.modal-back { position: fixed; }
.sheet-back { position: fixed; }
.toast { position: fixed; }
.page-create .modal-back { position: static; min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.page-create .modal { min-height: 100vh; min-height: 100dvh; height: auto; }
.page-create .mb { overflow: visible; }
.page-create .mf { position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--bg); z-index: 5; }
[hidden] { display: none !important; }
video.player-video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }  /* 영상이 잘리지 않게 (11/30 시험에서 발견) */
.player--landscape video.player-video { aspect-ratio: 16 / 9; }
.rcp .player--landscape, .rcp--visit .vwrap:has(.player--landscape) { width: 100%; }  /* 12/1 받는 화면도 가로 영상은 가로 틀로, 본문 폭을 다 쓴다 */
dialog.vdlg { border: 0; padding: 0; background: #000; max-width: min(96vw, 960px); width: 100%; }
dialog.vdlg::backdrop { background: rgba(0, 0, 0, .8); }
dialog.vdlg video { display: block; width: 100%; max-height: 86vh; }
dialog.vdlg .vdlg-close { position: absolute; right: 8px; top: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #0008; color: #fff; display: grid; place-items: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }

/* 실제 서비스: 목업의 단추 일부가 링크·양식 칸이다 (스크립트 없이도 동작하게). 같은 모양으로 */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.app a.btn, .app a.logo, .app a.rowlink, .app a.icon-btn, .app .switch a, .app .hd-nav a, .app a.lang-row { text-decoration: none; }
.app a.logo, .app .hd-nav a:not(.btn), .app a.rowlink, .app a.icon-btn, .app a.lang-row { color: var(--ink); }
.app label.santa, .app label.cardpick, .app label.choice, .app label.drop { cursor: pointer; }
.app label.santa:has(input:focus-visible), .app label.cardpick:has(input:focus-visible), .app label.choice:has(input:focus-visible), .app label.drop:has(+ input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.app form { margin: 0; }
.app .btns form, .app .acts2 form, .app .sheet-acts form { display: grid; }
.app .field-head form { display: inline; }
/* 확인 화면의 장면: 실제 주문은 이미 영상 비율로 정리한 사진(room.jpg)을 쓴다 */
.shot--room > img { position: static; width: 100%; height: 100%; object-fit: cover; }
.shot--land { aspect-ratio: 16 / 9; }
.scene:has(.shot--land) { grid-template-columns: 160px minmax(0, 1fr); }
/* 사진 올리기의 영상 부분 틀: 실제 사진 비율 그대로, 틀은 화면 스크립트가 놓는다 */
.stage3--real img { aspect-ratio: auto; object-fit: contain; height: auto; }
.stage3--real .adj-frame { top: auto; bottom: auto; width: auto; }
.stage3--wide { width: min(100%, 340px); }
.paycode summary { list-style: none; cursor: pointer; width: max-content; }
.paycode summary::-webkit-details-marker { display: none; }
.paycode[open] summary { margin-bottom: 10px; }
.tz { margin-left: 0; }
.santa-more-hidden { display: none !important; }
.picked .stamp img { display: block; }
/* 12/1: 서비스는 이름도 <span data-picked-name>에 담아(스크립트가 바꾼다) 설명용 작은 흐린 글씨가 이름에도 걸렸다. 목업대로 이름은 굵은 15px */
.picked b [data-picked-name] { font-weight: inherit; font-size: inherit; color: inherit; margin-left: 0; }
/* 11/30 데스크탑 점검: 같은 줄에 이름이 두 줄인 산타가 있으면 한 줄짜리 산타의 우표가 세로로 늘어나 아래에 종이 띠가 보였다. 우표는 제 크기로, 남는 자리는 아래에 */
.app label.santa { align-content: start; }
.bar-two--one { grid-template-columns: 1fr; }
.bar-two--one [data-prev] { display: none; }
.agree-item--one { border-bottom: 0; padding: 0; }
/* 11/30 사용자 요청: 머리말 메뉴 글자를 단추·언어 단추와 같은 높이에 */
.app .hd-nav a:not(.btn) { display: inline-flex; align-items: center; }
/* 11/30 사용자 요청: '만드는 중' 띠는 스크롤해도 늘 위에 떠 있다 (밑줄 없이, 떠 있는 동안 그림자) */
#strip-box { position: sticky; top: calc(8px + env(safe-area-inset-top, 0px)); z-index: 30; }
#strip-box:empty { display: none; }
.app a.strip { text-decoration: none; color: var(--ink); background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); }
#shows { scroll-margin-top: 72px; }  /* 떠 있는 '만드는 중' 띠에 제목이 가리지 않게 */
/* 11/30 점검: 만들기 단계 상자 안 항목 사이가 0px이었다. 목업처럼 본문(.mb)과 같은 22px. 비어 있는 오류 자리는 간격을 먹지 않게 */
.page-create .step { display: grid; gap: 22px; align-content: start; min-width: 0; }
.page-create .mb > [data-err]:empty { display: none; }

/* ==========================================================================
   사전 오픈: 오픈 알림 창 (12/1, 목업 docs/preopen 의 po.css). 색·서체·간격은 위 토큰만 쓴다.
   소품은 이미 있는 것만: 테이프로 붙인 메모지(.vnote와 같은 종이) · 엽서(.pc) · 우표(.stamp) · 소인(.pc-mark)
   ========================================================================== */
/* 창: 그림 → 제목·설명(가운데) → 입력 묶음(왼쪽 정렬). 묶음 사이는 .sheet의 16px 그대로 */
.app .po-sheet { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.app .po-hero { display: grid; justify-items: center; padding: 8px 0 0; }
.app .po-head { display: grid; gap: 6px; text-align: center; }
.app .po-head h3 { text-wrap: balance; outline: none; }
.app .po-head .t-sub span { display: block; }
.app .po-mail { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.45; overflow-wrap: anywhere; margin-top: 4px; }   /* 사용자가 친 주소는 제 줄에 둔다 (조사를 붙이지 않는다) */
.app .po-mail:empty { display: none; }
.app .po-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-top: -8px; }
.app .po-foot .link { min-height: 32px; }
/* 아랫줄: 왼쪽 '초대 코드가 있어요', 오른쪽 '다음에 할게요'. 초대 코드 보기에서는 '돌아가기' 하나라 가운데 */
.app .po-foot--one { justify-content: center; }
/* 창 안의 보기 둘(오픈 알림 · 초대 코드). 한 번에 하나만 보이고, 묶음 사이 간격은 창과 같은 16px */
.app .po-view { display: grid; gap: 16px; align-content: start; min-width: 0; }
.app .po-view[hidden] { display: none; }
.app .po-sheet .agree-item .check span { overflow-wrap: anywhere; }
.app .po-sheet .fine { font-size: 12.5px; color: var(--muted); margin-top: -6px; }
.app .po-sheet .po-links { display: flex; justify-content: center; gap: 22px; margin-top: -6px; flex-wrap: wrap; }
.app .po-view > .err { margin-top: -4px; }
.app .po-sheet .agree-item > .err { margin-top: 8px; }
/* 오픈 알림 동의 전문 (12/1 사용자 요청 "다 붙여 써버렸네"): 머리글 한 줄 + 항목마다 이름(굵게)과 내용을 따로 */
.po-terms { display: grid; gap: 10px; }
.po-terms dl { display: grid; gap: 8px; margin: 0; }
.po-terms dt { font-weight: 600; color: var(--ink); }
.po-terms dd { margin: 0; }
.app .po-facts span { display: block; }
.app .po-next { display: grid; gap: 10px; }
.app .po-next .fine { margin-top: 0; }
/* 아이에게 산타를: 테이프로 붙인 메모지 (.vnote와 같은 종이·글자색, 테이프는 첫 화면 .hand-note와 같은 색) */
.app .po-memo { position: relative; display: grid; justify-items: center; gap: 3px; min-width: 204px; max-width: 100%; padding: 17px 24px 13px; background: #f3e9d2; color: #5b4a2a; font-family: var(--font-memo); line-height: 1.1; transform: rotate(-2deg); box-shadow: 0 0 0 1px rgba(91, 74, 42, .07), 0 6px 14px rgba(52, 68, 49, .16); }
.app .po-memo::before { content: ""; position: absolute; left: 50%; top: -9px; width: 62px; height: 18px; translate: -50% 0; rotate: 3deg; background: rgba(214, 200, 166, .78); }
.app .po-memo .po-date { position: relative; padding: 3px 12px 5px; font-weight: 400; font-size: calc(38px * var(--memo-scale)); line-height: 1; white-space: nowrap; }
.app .po-memo span { font-size: calc(19px * var(--memo-scale)); }
/* 날짜 대신 '곧 열어요'(날짜 없음·지남): 언어에 따라 길다. 작게 쓰고, 넘치면 줄을 바꾼다 */
.app .po-memo .po-date--soon { font-size: calc(30px * var(--memo-scale)); line-height: 1.12; white-space: normal; text-wrap: balance; text-align: center; }
/* 빨간 색연필 동그라미: 쉬는 모습이 다 그려진 모습이다. 그리는 동작은 알림을 켠 직후 한 번뿐 (스크립트가 .is-new를 붙인다) */
.app .po-ring { position: absolute; inset: -5px -8px -3px; width: calc(100% + 16px); height: calc(100% + 8px); overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2.3; stroke-linecap: round; pointer-events: none; }
.app .po-ring path { stroke-dasharray: 1; stroke-dashoffset: 0; vector-effect: non-scaling-stroke; }
.app .is-new .po-ring path { animation: po-draw .42s cubic-bezier(.4, 0, .2, 1) .14s both; }
@keyframes po-draw { from { stroke-dashoffset: 1; } }
/* 나의 산타에게: 엽서 한 장. 왼쪽에 날짜, 오른쪽에 고른 산타 우표와 소인 (.pc · .pc-paper · .pc-mark · .stamp 그대로) */
.app .po-card { width: min(100%, 316px); padding: 7px; transform: rotate(-1.5deg); box-shadow: 0 0 0 1px var(--obj-edge), var(--obj-shadow); margin: 0; }
.app .po-card .pc-paper { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 13px 11px 15px; }
.app .po-card-l { display: grid; gap: 1px; min-width: 0; }
.app .po-card-l small { font-family: var(--font-body); font-size: 11.5px; line-height: 1.4; color: var(--pc-muted); }
.app .po-card-l .po-date { font-family: var(--font-hand); font-weight: var(--hand-w); font-size: calc(36px * var(--hand-scale)); line-height: 1.05; white-space: nowrap; border-bottom: 1px solid var(--pc-rule); padding-bottom: 3px; }
.app .po-card-l .po-date--soon { font-size: calc(25px * var(--hand-scale)); line-height: 1.12; white-space: normal; text-wrap: balance; overflow-wrap: anywhere; }
.app .po-card-r { display: flex; align-items: center; padding-left: 10px; border-left: 1px solid var(--pc-rule); }
.app .po-card .pc-stamp { width: 46px; }
.app .po-card .pc-mark { width: 58px; height: 58px; margin: 0 -10px 0 0; flex: none; }   /* 소인은 우표 모서리에 10px만 걸친다 */
.app .po-card .pc-mark .po-mark-d { font-size: 9.5px; letter-spacing: 0; }
.app .po-card .pc-mark.is-new { animation-delay: .14s; }
/* 첫 화면 띠(오픈 알림 켜짐 · 문을 열었어요): '만드는 중' 띠와 같은 부품, 점은 깜박이지 않는다. 단추라 글자 기본값을 맞춘다 */
.app .po-strip { font: inherit; text-align: left; cursor: pointer; }
.app .po-strip .dot { animation: none; }
.app .po-topnote { margin-bottom: -6px; }
@media (prefers-reduced-motion: reduce) { .app .is-new .po-ring path, .app .po-card .pc-mark.is-new { animation: none; } }

/* ==========================================================================
   12/2 UX 점검 (docs/ux-audit): 일이 틀어졌을 때 손님이 보는 것. 규칙 하나로 맞춘다.
   - 어느 칸의 잘못인지 알면 그 칸 아래 한 줄(.err) + 칸 표시, 모르면(연결·서버·횟수·크기) 누른 단추 바로 위 띠(.mf-err)
   - 화면을 새로 그려 보여 줄 때도 같은 두 자리다 (12/2 사용자 지적: 맨 위 상자와 단추 위 띠로 갈려 있었다).
     만들기·확인·완성 화면 모두 아래 단추 줄이 늘 보이므로 띠는 스크롤 위치와 상관없이 보인다. 창(알림 창) 안에서는 단추 바로 위 상자
   ========================================================================== */
/* 올리기 실패 안내: 아래 단추 줄 바로 위. 전에는 양식 맨 위에 그려져, 맨 아래 단추를 누른 손님에게는 화면 밖이었다 */
.mf-err:empty { display: none; }
.mf-err .err { padding: 10px var(--pad); background: var(--err-bg); font-size: 13.5px; line-height: 1.5; border-top: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
.mf-err .err .i, .sheet [data-pre-fail] .i { margin-top: 2px; }
/* 창 안에서는 단추가 창 안쪽 폭이라 띠도 단추 폭의 상자로, 단추 바로 위에 */
.sheet [data-pre-fail] { padding: 10px 13px; border-radius: var(--r-card); background: var(--err-bg); font-size: 13.5px; line-height: 1.5; }
/* 틀린 칸: 아이에게 산타를은 고른 칸(.choice)과 틀린 칸이 같은 붉은 2px 테두리라 구분되지 않았다 → 틀린 칸에 바탕색을 더한다.
   사진이 이미 보이는 방 사진 칸과 전송 동의 칸에는 표시 자체가 없었다 */
.field.bad .drop { background: color-mix(in srgb, var(--err-bg) 60%, transparent); }   /* 큰 칸을 다 채우면 밤 테마에서 너무 무겁다 */
.field.bad .stage3 { box-shadow: 0 0 0 2px var(--err); }
.box-consent.bad .check input { border-color: var(--err); border-width: 2px; }
/* 동의가 빠졌을 때: 칸 붉은 테두리 + 칸 아래 한 줄 (확인 화면 · 오픈 알림 · 보내기 · 자랑하기 모두 같다. 전에는 꺼진 단추 · 토스트 · 한 줄로 제각각이었다) */
.agree > .err { margin-top: 2px; }
.agree-item > .err { grid-column: 1 / -1; }
.showband p.err { color: var(--err); font-size: 13px; }   /* 자랑하기 칸의 본문 글색(.showband p)이 에러 색을 덮었다 */
/* 꺼진 주 단추: 투명도 .42는 글자가 읽히지 않았다 (아이에게 산타를 1.99:1, 나의 산타에게 2.83:1). 접수 마감 때는 이 글자가 유일한 안내다 */
.btn:not(.btn--ghost)[disabled]:not(.is-busy), .btn[aria-disabled="true"] { opacity: 1; background: var(--surface-2); color: var(--muted); border-color: var(--line-2); }
.btn[aria-disabled="true"]:active { background: var(--surface-2); transform: none; }
/* 올리는 동안의 '이전': 표시도 막는 규칙도 없어 눌러서 화면을 떠날 수 있었다 */
.btn.is-disabled { pointer-events: none; opacity: .42; }
/* 나의 산타에게의 알림(토스트): 밤색 바탕과 1.12:1이라 상자 윤곽이 보이지 않았다 */
.app[data-concept="wish"] .toast { outline: 1px solid var(--line-2); }
/* 엽서 쓰기: 글을 쓰려고 누른 칸의 테두리가 틀린 칸의 밑줄과 같은 붉은색이었다 → 잉크색 */
.pc--edit :focus-visible { outline-color: var(--pc-ink); }
/* 받는 사람 화면의 쪽지 테이프: 같은 소품(첫 화면·오픈 알림의 메모지)과 같은 색으로 */
.vnote::before { background: rgba(214, 200, 166, .75); border-color: rgba(91, 74, 42, .1); }
/* 첫 화면 띠: 낱말 하나만 둘째 줄에 남지 않게 */
.strip span:nth-child(2) { text-wrap: balance; }
/* 나의 산타에게 완성 화면: 엽서가 영상 아래쪽을 덮어 재생·시간·소리 단추가 가려졌다 (목업의 영상은 가운데 재생 단추가 있는 그림이었다).
   엽서를 영상 바로 아래에 걸쳐 놓는다. 엽서 높이와 상관없이 영상을 덮지 않는다 */
.duo { padding-bottom: 0; }
.duo .pc { position: relative; left: auto; bottom: auto; margin-top: 14px; }

/* ==========================================================================
   태블릿 폭 (600–859px, 12/1). 휴대폰 배치를 그대로 넓히면 단추·사진 칸·우표가 화면 폭만큼 커졌다.
   본문은 가운데 600px 열에 두고(가로 여백 --pad를 늘린다), 윗선·면은 화면 폭 전체. 단추도 그 열에 맞는다 (넓은 화면 2와 같은 원칙).
   여백은 화면 폭에 따라 이어서 늘어난다: 640px까지는 휴대폰과 같은 20px
   ========================================================================== */
@container device (min-width: 600px) and (max-width: 859.98px) {
  .app { --pad: max(20px, calc((100cqi - 600px) / 2)); }
  .mh { padding-inline: calc(var(--pad) - 8px); }           /* 만들기 창 머리: 닫기 단추·단계 막대도 본문 열에 */
  .santas { --cols: 4; grid-template-columns: repeat(4, minmax(0, 1fr)); }  /* 산타 우표 4열 (두 줄 = 8명, 스크립트도 --cols로 센다) */
  .sheet { --pad: 32px; width: min(100%, 600px); }          /* 아래에서 올라오는 창도 본문 열 폭 */
  .rcp .pc { width: min(100%, 520px); }                     /* 받는 엽서가 화면 폭만큼 커지지 않게 */
  .shows { --cols: 3; }                                     /* 2열이면 카드 한 장이 294px로 넓은 화면(255px)보다 컸다. 두 줄 = 6장 (스크립트도 --cols로 센다, 12/2) */
  .status-body { max-width: 44ch; }                         /* 34ch는 제목보다 좁아 본문이 네 줄로 접혔다 (넓은 화면에서 고친 것과 같다, 12/2) */
}

/* ==========================================================================
   넓은 화면 2 (11/30 데스크탑 점검, 프로덕트·크리에이티브 디자이너 검토 반영).
   휴대폰 화면을 그대로 넓힌 탓에 깨지던 것을 고친다. 위 목업 부분(넓은 화면 1)은 그대로 두고 여기서 덮어쓴다.
   - 위의 '실제 페이지에 얹기'보다 뒤에 와야 이긴다(같은 선택자 무게)
   - 860px 미만은 건드리지 않는다: 규칙은 모두 이 묶음 안에만 둔다
   원칙: 누르는 줄은 그 면(창·화면)의 맨 아래 줄. 윗선은 면의 폭 전체, 단추는 그 화면의 본문 열에 맞추고, 주 단추는 오른쪽.
         두 컨셉은 구조가 같고 표면만 토큰으로 가른다 (아이에게 산타를 = 모서리 10px·부드러운 그림자, 나의 산타에게 = 모서리 2px·선)
   ========================================================================== */
@container device (min-width: 860px) {
  /* ---------- 1. 만들기·확인 = 화면 가운데 대화상자 ----------
     높이를 화면에 맞추고 본문만 스크롤한다 → 머리말(단계)과 단추 줄이 늘 보이고, 단계가 바뀌어도 단추가 제자리다.
     전에는 문서가 스크롤돼 단추 줄이 창 맨 아래에 있었고(.modal의 overflow:hidden이 sticky를 막았다), 내용이 짧아도 56px 스크롤이 생겼다 */
  .page-create .modal-back { height: 100vh; height: 100dvh; min-height: 0; grid-template-rows: minmax(0, 1fr); }
  .page-create .app[data-concept="visit"] .modal-back { background: var(--surface-2); }  /* 창 뒤는 한 단 어두운 책상 */
  .page-create .app[data-concept="wish"] .modal-back { background: var(--field); }       /* 창 뒤는 더 깊은 밤 */
  .page-create .modal { height: 100%; max-height: 860px; min-height: 0; border-radius: var(--r-card); outline: 1px solid var(--line); box-shadow: var(--box-shadow); }
  .page-create .mh { padding: 14px 48px; }   /* 진행 막대가 본문과 같은 56px 선에 선다 (닫기 단추는 8px 바깥) */
  .page-create .mb { overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
  .page-create .mf { position: static; padding-bottom: 0; background: var(--surface); }
  /* 단추 줄: 윗선은 창 폭 전체, 좌우는 본문과 같은 56px. '이전'은 왼쪽 끝, 주 단추는 오른쪽 끝, 한 줄 안내는 그 사이 */
  .page-create .mf .bar-two { width: auto; margin-inline: 0; padding: 16px 56px; background: none; justify-items: stretch; align-items: center; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 16px; }
  .page-create .mf .bar-two > .btn--ghost { min-width: 104px; }
  .page-create .mf .bar-two > .btn:not(.btn--ghost) { grid-column: 3; min-width: 260px; }
  .page-create .mf .bar-two > .fine { grid-column: 2; grid-row: 1; text-align: right; }
  .page-create .mf-err .err { padding-inline: 56px; }   /* 올리기 실패 띠의 글도 본문과 같은 56px 선에 (12/2) */  /* 산타 고르기: 열 수를 스크립트에 알린다 (app.js가 --cols로 두 줄을 센다) */
  .santas { --cols: 6; }
  /* 가로 사진 주문의 자리 확인 그림: 160px이면 34px 핀 둘이 그림을 덮는다 */
  .scene:has(.shot--land) { grid-template-columns: 280px minmax(0, 1fr); }
  /* 화면이 아주 낮으면(가로로 든 큰 휴대폰 등) 대화상자를 풀고 휴대폰처럼 문서를 스크롤한다. 단추 줄은 화면 아래에 붙는다 */
  @media (max-height: 560px) {
    .page-create .modal-back { height: auto; min-height: 100vh; min-height: 100dvh; grid-template-rows: none; }
    .page-create .modal { height: auto; max-height: none; min-height: calc(100vh - 56px); min-height: calc(100dvh - 56px); overflow: clip; }
    .page-create .mb { overflow: visible; }
    .page-create .mf { position: sticky; bottom: 0; }
  }

  /* ---------- 2. 아래 행동 줄 (완성 · 받는 사람 · 첫 화면) ----------
     휴대폰 막대를 그대로 넓히면 단추가 제 폭으로 줄어 가운데에 떠 있고(justify-items:center), 윗선이 480px 토막으로 그려졌다.
     넓은 화면에서는 한 단 밝은 면(--surface) + 폭 전체 윗선, 안쪽은 그 화면의 본문 격자에 맞춘다 */
  .app-bar:has(> .bar-one, > .bar-two, > .bar-cta:not([hidden])) { background: var(--surface); border-top: 1px solid var(--line); }
  .app-bar > .bar-one, .app-bar > .bar-two, .app-bar > .bar-cta { border-top: 0; background: none; margin-inline: auto; }
  /* 완성 화면: 본문 격자(가운데 1000px, 왼쪽 360px + 간격 56px)의 오른쪽 열 아래에 단추. 안내 문구의 "아래 '보내기'"와 맞는다 */
  .app-bar > .bar-one, .app-bar > .bar-two { width: auto; max-width: 1000px; justify-items: stretch; padding: 12px 40px 14px 456px; }
  .app-bar > .bar-one > * { width: auto; margin-inline: 0; }
  /* 완성 화면의 안내 띠: 바탕은 폭 전체, 글은 단추와 같은 선에서 시작한다 (12/2) */
  .app-bar > .mf-err { background: var(--err-bg); border-top: 1px solid color-mix(in srgb, var(--err) 30%, transparent); }
  .app-bar > .mf-err .err { background: none; border-top: 0; max-width: 1000px; margin-inline: auto; padding: 10px 40px 10px 456px; }
  .app-bar > .bar-two > .btn--ghost { min-width: 136px; }   /* '보내기'가 '링크 복사'로 바뀌어도 주 단추가 움직이지 않게 */
  /* 문구 + 단추 막대: 첫 화면(머리말과 같은 1160px)과 아이에게 산타를 받는 화면(본문 열 520px). 문구는 왼쪽, 단추는 오른쪽.
     받는 화면은 이 막대가 하나뿐인 만들기 단추라 꼭 보여야 한다 (전에는 첫 화면용 숨김 규칙에 같이 숨었다) */
  .bar-cta { display: flex; max-width: 1160px; padding: 12px 40px 14px; }
  .bar-cta:not(#home-bar) { max-width: 520px; }
  .bar-cta p { font-size: 14px; }

  /* ---------- 3. 완성 화면 2단 ----------
     왼쪽 = 영상(엽서), 오른쪽 = 제목·안내·행동. 제목을 오른쪽 열 맨 위로 올려 영상이 머리말 바로 아래에서 시작한다
     (전에는 제목 줄이 영상을 89px 밀어 내려, 노트북 높이에서 영상 조작 막대가 아래 행동 줄에 가렸다).
     줄 간격은 격자 간격 대신 오른쪽 열 항목의 위 여백으로 준다: 영상 열이 걸치는 빈 줄마다 26px이 붙지 않고,
     마지막 유연한 줄(1fr)이 남는 높이를 받아 오른쪽 항목 사이가 벌어지지 않는다 */
  .page--split { row-gap: 0; grid-template-rows: repeat(12, auto) minmax(0, 1fr); }
  .page--split > .page-head { grid-column: 2; }
  .page--split > .col-media { grid-column: 1; grid-row: 1 / -1; }
  .page--split > :not(.col-media):not(.page-head) { margin-top: 26px; }
  /* 세로 영상은 화면 높이에 맞춰 줄인다: 영상 틀과 조작 막대가 아래 행동 줄 위에 온전히 보인다 (높이 745px 이상이면 300px 그대로) */
  .page--split > .col-media > .player:not(.player--landscape) { width: min(100%, clamp(200px, calc((100dvh - 210px) * .5625), 300px)); }
  /* 12/2: 엽서를 영상 아래에 놓으면서(조작 막대를 덮지 않게) 묶음이 길어졌다. 영상 + 엽서가 화면 높이에 들어오도록 폭 식을 다시 잡고
     (전: (100dvh - 315px) * .74), 엽서는 묶음 폭을 다 쓴다: 좁은 엽서는 글이 접혀 더 길어져 낮은 화면(높이 720px)에서 아래 행동 줄에 가렸다 */
  .page--split > .col-media > .duo:not(:has(.player--landscape)) { width: min(100%, clamp(230px, calc((100dvh - 230px) * .5), 318px)); }
  .page--split > .col-media > .duo:not(:has(.player--landscape)) .pc { width: 100%; }
  .page--split > .col-media > .player--landscape { width: 100%; }   /* 가로 영상은 왼쪽 열 폭(360px)을 다 쓴다 */
  /* 화면 제목(완성 · 만드는 중 · 안내): 23px은 휴대폰 값이다 */
  .t-step { font-size: calc(28px * var(--head-scale)); }

  /* ---------- 4. 받는 사람 화면 ----------
     제목: 넓은 화면의 .t-hero 46px이 작은 제목(.t-hero--s)까지 덮어써 두 줄 문구가 세 줄이 됐다 */
  .rcp .t-hero { font-size: calc(34px * var(--head-scale)); }
  .rcp { padding-bottom: 72px; }
  /* 아이에게 산타를: 세로 영상(과 그 위 쪽지)을 화면 높이에 맞춘다. 늘 보이는 만들기 막대가 영상 조작 막대를 가리지 않게 */
  .rcp--visit .vwrap:not(:has(.player--landscape)) { width: min(100%, clamp(200px, calc((100dvh - 330px) * .5625), 300px)); }

  /* ---------- 5. 만드는 중 · 안내 화면 ---------- */
  /* 만드는 중: 안내 화면들처럼 화면 가운데보다 조금 위에 (전에는 위에 붙어 아래가 비었다) */
  .page--narrow { min-height: calc(100vh - var(--hd-h)); min-height: calc(100dvh - var(--hd-h)); align-content: center; padding-bottom: 120px; }
  .status-body { max-width: 44ch; }   /* 34ch는 제목보다 좁아 본문이 네 줄로 접혔다 */

  /* ---------- 6. 창 (언어 · 찍는 방법 · 그만두기 · 보내기) = 가운데 대화상자 ----------
     손잡이를 숨기면 위 여백이 10px뿐이라 제목이 테두리에 붙었다. 모서리·선·그림자는 컨셉 토큰으로 */
  .sheet { padding: 30px 40px; border-radius: var(--r-card); outline: 1px solid var(--line); box-shadow: var(--box-shadow); }
  [data-sheet="lang"] .sheet { width: 360px; }

  /* ---------- 7. 첫 화면 다듬기 ---------- */
  /* 자주 묻는 질문: 제목(왼쪽 끝)과 목록(가운데 760px)이 다른 축에 서 있었다 → 제목 | 목록 2단 */
  #faq { max-width: 1160px; margin-inline: auto; grid-template-columns: minmax(200px, 1fr) minmax(0, 760px); column-gap: 56px; align-items: start; }
  #faq > * { max-width: none; margin-inline: 0; }
  /* 나의 산타에게 히어로의 우표 줄: 스크롤 막대 없는 가로 스크롤이라 마우스로는 뒤쪽 우표에 닿지 못했다 → 8장을 한 줄에 */
  .hero-vis { width: min(100%, 512px); }
  .hero-stamps { overflow: visible; gap: 8px; }
  .hero-stamps button { flex: 1 1 0; width: auto; min-width: 0; }
  .hero-note { max-width: none; }   /* '영상 1편'과 가격 사이에서 줄이 갈렸다 */
}
