/* AI 없는 날 — 디자인 토큰과 공용 부품. 색·글자·모서리·간격은 전부 여기 한 곳에 있다.
   결: 흰 지면 + 커다란 색 블록 + 알약 버튼. 밤(짙은 가지색)과 아침(크림·복숭아빛), 폰 불빛, 하나 더 있는 그림자. */

/* 글꼴(/fonts/pretendard.css)은 화면 틀(HTML)에서 이 파일과 나란히 불러온다. */

:root {
  /* 색 — 밤 */
  --aubergine: #4a154b;
  --aubergine-deep: #2b0d2c;
  --aubergine-press: #611f69;
  --aubergine-tint: #592466;
  --on-aubergine: #ffffff;
  --on-aubergine-mute: #d9bdde;
  /* 색 — 아침과 지면 */
  --canvas: #ffffff;
  --cream: #f4ede4;
  --lavender: #f9f0ff;
  --mesh-peach: #ffe6d5;
  --mesh-lavender: #e9d8ff;
  --mesh-green: #dfeadf;
  --glow: #fff3c4;
  /* 글자 */
  --ink: #1d1d1d;
  --ink-mute: #5f5f5f;
  --link: #1264a3;
  --link-hover: #3860be;
  --hairline: #e6e6e6;
  --error: #b83a12;
  --success: #007a5a;
  /* 반 색 (색에만 기대지 않는다 — 모양과 이름이 늘 같이 나온다) */
  --cls-0: #ecb22e; --cls-0-soft: #fdf3d6;
  --cls-1: #2eb67d; --cls-1-soft: #dcf3e8;
  --cls-2: #e01e5a; --cls-2-soft: #fbdde7;
  --cls-3: #36c5f0; --cls-3-soft: #dcf4fc;
  --cls-4: #e8912d; --cls-4-soft: #fce9d3;
  --cls-5: #7c3085; --cls-5-soft: #eedcf1;
  /* 모서리 */
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-xxl: 48px; --r-pill: 90px;
  /* 간격 */
  --s-xs: 0.25rem; --s-sm: 0.5rem; --s-md: 0.75rem; --s-lg: 1rem; --s-xl: 1.25rem; --s-xxl: 1.5rem; --s-huge: 1.75rem; --s-section: 3rem;
  /* 그림자 */
  --lift-1: rgba(0, 0, 0, 0.1) 0 5px 20px 0;
  --lift-2: rgba(0, 0, 0, 0.1) 0 0 32px 0;
  --font: 'Pretendard Variable', Pretendard, system-ui, -apple-system, 'Segoe UI', 'Malgun Gothic', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.big-text { font-size: 120%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--ink);
  background-color: var(--cream);
  background-image:
    radial-gradient(60rem 40rem at 0% 0%, var(--mesh-peach) 0%, transparent 60%),
    radial-gradient(50rem 40rem at 100% 10%, var(--mesh-lavender) 0%, transparent 60%),
    radial-gradient(60rem 40rem at 50% 110%, var(--mesh-green) 0%, transparent 60%);
  background-attachment: fixed;
  word-break: keep-all; overflow-wrap: anywhere;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 글자 */
.display { font-size: clamp(2.5rem, 7vw, 4rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; }
.display-md { font-size: clamp(1.75rem, 4vw, 2rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.008em; }
.heading { font-size: 1.5rem; font-weight: 700; line-height: 1.33; letter-spacing: -0.004em; }
.heading-sm { font-size: 1.125rem; font-weight: 600; line-height: 1.56; }
.lead { font-size: 1.125rem; line-height: 1.55; }
.eyebrow { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; color: var(--ink-mute); }
.hint { font-size: 0.875rem; line-height: 1.43; color: var(--ink-mute); }
.center { text-align: center; }
.label { display: block; font-weight: 700; margin-bottom: var(--s-sm); }
.big-number { font-size: 2rem; font-weight: 700; line-height: 1.12; letter-spacing: -0.012em; color: var(--aubergine); }
.punch { font-size: 1.5rem; font-weight: 700; line-height: 1.33; color: var(--aubergine); }

/* ---------- 쌓기 */
.stack { display: flex; flex-direction: column; gap: var(--s-xl); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s-md); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-md); }

/* ---------- 알약 버튼 (모든 버튼은 알약이다) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-sm);
  min-height: 3rem; padding: 0.875rem 1.75rem; border: 2px solid transparent; border-radius: var(--r-pill);
  font-weight: 700; font-size: 1rem; line-height: 1.38; letter-spacing: 0.0125em; cursor: pointer; text-align: center;
  transition: background-color 0.15s, transform 0.05s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-primary { background: var(--aubergine); color: var(--on-aubergine); }
.btn-primary:hover:not(:disabled), .btn-primary:active:not(:disabled) { background: var(--aubergine-press); }
.btn-secondary { background: var(--lavender); color: var(--ink); border-color: var(--mesh-lavender); padding: 0.625rem 1.875rem; }
.btn-secondary:hover:not(:disabled) { background: var(--mesh-lavender); }
.btn-outline { background: var(--canvas); color: var(--aubergine); border-color: var(--aubergine); }
.btn-outline:hover:not(:disabled) { background: var(--lavender); }
.btn-danger { background: var(--error); color: #fff; }
.btn-ghost {
  background: transparent; border: 1px solid currentColor; border-radius: var(--r-pill); padding: 0.375rem 0.875rem; min-height: 2.25rem;
  font-size: 0.875rem; font-weight: 700; cursor: pointer; opacity: 0.85;
}
.btn-ghost[aria-pressed='true'] { background: var(--on-aubergine-mute); color: var(--aubergine-deep); opacity: 1; }

/* ---------- 카드 · 색 블록 */
.card { background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: var(--s-xxl); display: flex; flex-direction: column; gap: var(--s-md); }
.card-cream { background: var(--cream); border-color: transparent; }
.card-night { background: var(--aubergine); color: var(--on-aubergine); border-color: transparent; }
.card-night .eyebrow, .card-night .hint { color: var(--on-aubergine-mute); }
.card-night .big-number, .card-night .punch { color: var(--on-aubergine); }
.card-morning { background: linear-gradient(160deg, var(--mesh-peach), var(--lavender)); border-color: transparent; }

.chip { display: inline-flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.75rem; border-radius: var(--r-pill); background: var(--cream); font-size: 0.8125rem; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.chip-warn { background: #ffe9c7; color: #6b3d00; }
.chip-code { letter-spacing: 0.12em; }
.chip-mark { font-size: 0.75em; }

.notice { padding: var(--s-md) var(--s-lg); border-radius: var(--r-lg); background: var(--lavender); font-weight: 600; }
.notice-warn { background: #fff0e0; color: #6b2a00; }

.cls-0 { background: var(--cls-0-soft); } .cls-0 .chip-mark { color: #8a6400; }
.cls-1 { background: var(--cls-1-soft); } .cls-1 .chip-mark { color: #12744c; }
.cls-2 { background: var(--cls-2-soft); } .cls-2 .chip-mark { color: #a1123f; }
.cls-3 { background: var(--cls-3-soft); } .cls-3 .chip-mark { color: #0b6a88; }
.cls-4 { background: var(--cls-4-soft); } .cls-4 .chip-mark { color: #8f500c; }
.cls-5 { background: var(--cls-5-soft); } .cls-5 .chip-mark { color: #5d1f65; }
.cls-bg-0 { background: var(--cls-0-soft); border-color: var(--cls-0); }
.cls-bg-1 { background: var(--cls-1-soft); border-color: var(--cls-1); }
.cls-bg-2 { background: var(--cls-2-soft); border-color: var(--cls-2); }
.cls-bg-3 { background: var(--cls-3-soft); border-color: var(--cls-3); }
.cls-bg-4 { background: var(--cls-4-soft); border-color: var(--cls-4); }
.cls-bg-5 { background: var(--cls-5-soft); border-color: var(--cls-5); }
.cls-bg-0 .chip, .cls-bg-1 .chip, .cls-bg-2 .chip, .cls-bg-3 .chip, .cls-bg-4 .chip, .cls-bg-5 .chip { background: var(--canvas); }

/* ---------- 막대 */
.bar { display: flex; flex-direction: column; gap: 0.375rem; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-md); font-weight: 600; }
.bar-value { font-weight: 700; color: var(--aubergine); white-space: nowrap; }
.bar-track { height: 0.875rem; border-radius: var(--r-pill); background: rgba(74, 21, 75, 0.1); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--r-pill); background: var(--aubergine); transition: width 0.5s ease; min-width: 2px; }
.bar-first .bar-fill { background: var(--on-aubergine-mute); }
.bar-big .bar-track { height: 1.5rem; }
.cls-bar-0 .bar-fill { background: var(--cls-0); } .cls-bar-1 .bar-fill { background: var(--cls-1); }
.cls-bar-2 .bar-fill { background: var(--cls-2); } .cls-bar-3 .bar-fill { background: var(--cls-3); }
.cls-bar-4 .bar-fill { background: var(--cls-4); } .cls-bar-5 .bar-fill { background: var(--cls-5); }
.pair { display: flex; flex-direction: column; gap: 0.375rem; padding-bottom: var(--s-md); }
.pair-label { font-weight: 700; }
.mine { font-weight: 700; color: var(--aubergine); }

/* ---------- 그림 자리: 그림이 없으면 색과 이모지. 이모지 뒤에는 그림자가 하나 더 있다. */
.illust { position: relative; width: 100%; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; isolation: isolate; container-type: inline-size; }
.ratio-4x3 { aspect-ratio: 4 / 3; } .ratio-16x9 { aspect-ratio: 16 / 9; }
.illust img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.illust-emoji { font-size: clamp(3.5rem, 22cqw, 9rem); line-height: 1; filter: drop-shadow(0.14em 0.1em 0 rgba(43, 13, 44, 0.28)) drop-shadow(-0.2em 0.16em 0 rgba(43, 13, 44, 0.14)); }
/* 그림이 있으면: 원본 비율 그대로, 자르지 않는다. 색 카드 · 테두리 · 그림자를 덧대지 않는다. */
.illust.has-img { aspect-ratio: auto; background: none; display: block; overflow: visible; border-radius: 0; }
.illust.has-img img { color: transparent; font-size: 0; position: static; display: block; width: auto; max-width: 100%; height: auto; max-height: inherit; margin: 0 auto; object-fit: contain; border-radius: var(--r-lg); }
.illust-sm { max-height: 22dvh; }        /* 투표 · 규칙 안내: 참여 항목을 밀어내지 않게 */
.illust-thumb { max-height: 16dvh; }     /* 결과 화면 · 결말 카드 위: 숫자와 구분되게 작게 */
.illust-sm:not(.has-img), .illust-thumb:not(.has-img) { aspect-ratio: auto; height: 6.5rem; }
.illust-sm:not(.has-img) .illust-emoji, .illust-thumb:not(.has-img) .illust-emoji { font-size: 3rem; }
.tone-night { background: linear-gradient(170deg, var(--aubergine-deep), var(--aubergine) 70%, var(--aubergine-tint)); }
.tone-deepnight { background: radial-gradient(circle at 50% 78%, var(--glow) 0%, rgba(255, 243, 196, 0.25) 16%, transparent 38%), linear-gradient(180deg, #170618, var(--aubergine-deep)); }
.tone-dusk { background: linear-gradient(165deg, var(--aubergine-tint) 0%, #b4637a 55%, var(--mesh-peach) 100%); }
.tone-day { background: radial-gradient(circle at 20% 10%, var(--mesh-lavender), transparent 55%), radial-gradient(circle at 90% 90%, var(--mesh-green), transparent 55%), var(--lavender); }
.tone-morning { background: radial-gradient(circle at 80% 15%, var(--glow), transparent 45%), linear-gradient(170deg, var(--mesh-peach), var(--cream)); }

/* ---------- 선택지 */
.choices { display: flex; flex-direction: column; gap: var(--s-md); }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.375rem; width: 100%; min-height: 3.75rem; text-align: left;
  padding: var(--s-lg) var(--s-xl); border-radius: var(--r-xl); border: 2px solid var(--hairline); background: var(--canvas); cursor: pointer;
}
.choice:hover:not(:disabled) { border-color: var(--aubergine-tint); }
.choice.is-picked { border-color: var(--aubergine); background: var(--lavender); box-shadow: rgb(97, 31, 105) 0 0 0 1px inset; }
.choice:disabled { cursor: not-allowed; }
.choice:disabled:not(.is-picked) { opacity: 0.6; }
.choice.is-locked { background: repeating-linear-gradient(135deg, #f3f3f3 0 10px, #fafafa 10px 20px); }
.choice-label { font-weight: 700; font-size: 1.0625rem; line-height: 1.4; }
.choice-count { font-size: 0.875rem; font-weight: 700; color: var(--aubergine); }
.delta { font-size: 0.875rem; font-weight: 700; color: var(--ink-mute); }
.delta.is-up { color: var(--success); } .delta.is-down { color: var(--error); }
.lock-reason { font-size: 0.875rem; font-weight: 700; color: var(--error); }

/* ---------- 시계 */
.timer { font-size: 1.75rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; color: var(--aubergine); }
.timer .is-urgent, .timer.is-urgent { color: var(--error); }

/* ---------- 약속 · 규칙 · 결말 */
.promise-card.is-picked { border: 2px solid var(--aubergine); background: var(--lavender); }
.promise-head { display: flex; align-items: center; gap: var(--s-md); }
.promise-emoji { font-size: 2rem; line-height: 1; }
.rule-list { display: flex; flex-direction: column; gap: var(--s-lg); }
.rule-list li { display: flex; gap: var(--s-lg); align-items: flex-start; font-size: 1.125rem; background: var(--canvas); border-radius: var(--r-xl); padding: var(--s-lg) var(--s-xl); border: 1px solid var(--hairline); }
.rule-emoji { font-size: 1.75rem; line-height: 1.2; }
.story-text, .scene-text { font-size: 1.1875rem; line-height: 1.6; }
.ending { background: linear-gradient(175deg, var(--mesh-peach), var(--canvas) 45%); border-color: transparent; box-shadow: var(--lift-2); }
.ending-header { font-size: 1.1875rem; font-weight: 700; }
.ending-lines { display: flex; flex-direction: column; gap: var(--s-md); }
.ending-lines li { display: flex; gap: var(--s-md); align-items: flex-start; padding-top: var(--s-md); border-top: 1px solid var(--hairline); }
.ending-emoji { font-size: 1.375rem; line-height: 1.3; }

.top3 { display: flex; flex-direction: column; gap: var(--s-md); }
.top3 li { display: flex; justify-content: space-between; gap: var(--s-lg); align-items: center; background: var(--canvas); border-radius: var(--r-xl); padding: var(--s-lg) var(--s-xl); font-weight: 700; border: 1px solid var(--hairline); }
.top3-value { color: var(--aubergine); white-space: nowrap; }
.top3-rank { display: inline-grid; place-items: center; width: 2.25em; height: 2.25em; border-radius: var(--r-xxl); background: var(--aubergine); color: #fff; font-weight: 700; flex: none; }

/* ---------- 소감 벽 */
.note-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: var(--s-md); }
.note { background: var(--canvas); border-radius: var(--r-lg); padding: var(--s-lg); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: var(--s-sm); justify-content: space-between; }
.note:nth-child(3n + 1) { background: var(--lavender); } .note:nth-child(3n + 2) { background: #fff6ec; }
.note-foot { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--aubergine); }
.heart { align-self: flex-end; border: 0; background: transparent; font-weight: 700; color: var(--aubergine); cursor: pointer; min-height: 2.75rem; min-width: 2.75rem; border-radius: var(--r-pill); }
.heart.is-on { color: #c2185b; }
.note-input, input[type='text'], select, .code-input {
  width: 100%; padding: 0.625rem 0.75rem; border: 1px solid #b9b9b9; border-radius: var(--r-sm); background: var(--canvas); min-height: 2.75rem;
}
.note-input { resize: vertical; }
.field { display: flex; flex-direction: column; gap: 0.25rem; }
.check { display: flex; gap: var(--s-md); align-items: center; font-weight: 600; min-height: 2.75rem; }
.check input { width: 1.375rem; height: 1.375rem; accent-color: var(--aubergine); }

/* ---------- 흐름 그래프 */
.flow { display: flex; flex-direction: column; gap: var(--s-lg); }
.flow-cols { display: flex; align-items: stretch; gap: var(--s-lg); padding-top: 1.75rem; }
.flow-col { flex: 1; display: flex; flex-direction: column; gap: var(--s-sm); min-width: 0; text-align: center; }
.flow-stack { display: flex; flex-direction: column; height: 14rem; border-radius: var(--r-lg); overflow: hidden; background: rgba(74, 21, 75, 0.08); }
.flow-seg { display: grid; place-items: center; min-height: 1.5rem; font-size: 0.8125rem; font-weight: 700; flex-basis: 0; }
.flow-entrust { background: var(--aubergine); color: #fff; background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.16) 0 6px, transparent 6px 12px); }
.flow-mix { background: #a86bb0; color: #fff; background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 3px, transparent 3px 9px); }
.flow-self { background: var(--glow); color: var(--ink); }
.flow-other { background: #ffffff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hairline); }
.flow-title { font-weight: 700; font-size: 0.9375rem; line-height: 1.35; }
.flow-divider { flex: none; width: 0; border-left: 3px dashed var(--aubergine); position: relative; margin: 0 var(--s-sm); }
.flow-divider span { position: absolute; top: -1.6rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 0.8125rem; font-weight: 700; color: var(--aubergine); background: var(--lavender); padding: 0 0.5rem; border-radius: var(--r-pill); }
.legend { display: flex; flex-wrap: wrap; gap: var(--s-lg); font-size: 0.875rem; font-weight: 600; }
.legend li { display: flex; align-items: center; gap: 0.375rem; }
.legend-mark { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; border-radius: var(--r-sm); font-size: 0.75rem; }

.mirror-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--s-xl); align-items: start; }
.mirror .big-number { font-size: 3.125rem; }
.event { font-weight: 600; padding: var(--s-sm) var(--s-md); border-radius: var(--r-md); margin-top: 0.375rem; }
.event-fired { background: #fff0e0; } .event-blocked { background: #e2f4ec; }
.trust-board { display: flex; flex-direction: column; gap: var(--s-lg); }

.table-wrap { overflow-x: auto; }
.table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
.table th, .table td { border: 1px solid var(--hairline); padding: 0.5rem 0.625rem; text-align: left; vertical-align: top; }
.table th { background: var(--cream); font-weight: 700; }
.plain-list { display: flex; flex-direction: column; gap: var(--s-sm); }
details summary { cursor: pointer; font-weight: 700; color: var(--link); padding: var(--s-sm) 0; }

.foot { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s-sm); padding: var(--s-xl) var(--s-lg); font-size: 0.8125rem; color: var(--ink-mute); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- 2차시 「우리 반 AI 약속 만들기」 */
.pinned { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s-sm) var(--s-md); padding: var(--s-sm) var(--s-lg); background: var(--glow); border-bottom: 1px solid var(--hairline); }
.pinned-text { font-weight: 700; }
.stack-row { display: grid; grid-template-columns: minmax(5.5rem, 0.5fr) minmax(0, 2fr); align-items: center; gap: var(--s-sm); }
.stack-row.is-thin { grid-template-columns: minmax(3.5rem, auto) minmax(0, 1fr); font-size: 0.8125rem; }
.stack-row-label { font-weight: 600; line-height: 1.3; }
.stack-row-bar { display: flex; height: 1.5rem; border-radius: var(--r-pill); overflow: hidden; background: rgba(74, 21, 75, 0.08); }
.stack-row.is-thin .stack-row-bar { height: 1.1rem; }
.stack-row-bar .flow-seg { min-height: 0; min-width: 1.1rem; font-size: 0.75rem; }
.count-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-md); }
.count-cell { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; padding: var(--s-lg) var(--s-sm); border-radius: var(--r-xl); background: var(--canvas); border: 1px solid var(--hairline); text-align: center; }
.count-label { font-weight: 700; }
.option-list { list-style: decimal; padding-left: 1.5rem; display: flex; flex-direction: column; gap: var(--s-sm); font-weight: 600; }
.option-list-big { font-size: 1.375rem; }
.sentence-text { font-size: 1.25rem; font-weight: 700; }
.note.is-star { border: 2px solid var(--aubergine); background: var(--glow); grid-column: span 2; }
.star.is-on { background: var(--aubergine); color: #fff; opacity: 1; }
.wall-edit { font-weight: 600; }
.promise-card.is-dim { opacity: 0.55; }
.cond-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-sm); align-items: start; }
.cond-prefix { font-weight: 700; font-size: 1.125rem; padding-top: 0.5rem; }
.line-form { line-height: 3; font-weight: 600; }
.line-form input { display: inline-block; width: 8.5rem; max-width: 100%; margin: 0 0.25rem; }
.num-input { width: 4.5rem; min-height: 2.5rem; padding: 0.25rem 0.5rem; border: 1px solid #b9b9b9; border-radius: var(--r-sm); background: var(--canvas); }
.flow-list { font-size: 0.9375rem; }

.blank { display: inline-block; min-width: 9rem; border-bottom: 1px solid #555; margin-left: 0.5rem; height: 1.2em; vertical-align: bottom; }
.blank-sm { min-width: 3rem; }

/* 약속 포스터: 화면에서도 종이처럼. 그림 위에 글자를 얹지 않는다. */
.poster { --u: 1; background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: calc(1.75rem * var(--u)); display: flex; flex-direction: column; gap: calc(1rem * var(--u)); text-align: center; box-shadow: var(--lift-2); }
.poster .poster-art { max-height: 22dvh; }
.poster .poster-art:not(.has-img) { display: none; }      /* 그림이 없으면 자리도 없다 — 그래도 완성된 인쇄물이다 */
.poster-eyebrow { font-size: calc(1rem * var(--u)); font-weight: 700; letter-spacing: 0.12em; color: var(--aubergine); }
.poster-promise { font-size: calc(2rem * var(--u)); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); padding: calc(0.75rem * var(--u)) 0; border-top: 3px solid var(--aubergine); border-bottom: 3px solid var(--aubergine); }
.poster-promise + .poster-promise { border-top: 0; }
.poster-write { height: calc(3rem * var(--u)); }
.poster-facts { display: flex; flex-direction: column; gap: calc(0.375rem * var(--u)); font-size: calc(1.0625rem * var(--u)); }
.poster-blank { font-size: calc(1.125rem * var(--u)); font-weight: 700; text-align: left; padding-top: calc(0.75rem * var(--u)); }
.blank-wide { min-width: 55%; }
.poster-foot { font-size: calc(0.75rem * var(--u)); color: var(--ink-mute); }
