/* ===========================================================================
   참가자 화면 (2판) — 어두운 초록 무대 위의 녹음실
   태블릿 가로·세로, 현장 노트북, 데스크톱 검수 화면에서 모두 동작한다.
   =========================================================================== */

body.kiosk {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto auto auto 1fr auto;
  background: var(--stage);
  user-select: none;
  -webkit-user-select: none;
}
body.kiosk input, body.kiosk textarea { user-select: text; -webkit-user-select: text; }
body.kiosk img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* --- 머리 ---------------------------------------------------------------- */
.k-head {
  height: 76px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--stage-0) 96%, transparent);
  position: relative; z-index: 20;
}
.k-identity { display: flex; align-items: center; gap: 16px; white-space: nowrap; text-decoration: none; }
.k-identity .k-mark { font-size: 22px; }
.k-identity__sub {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-soft); padding-left: 15px; border-left: 1px solid var(--rule-strong);
}
.k-head__center { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap; }
.k-head__center b { color: var(--coral); font-weight: 500; }
.k-head__meta { justify-self: end; display: flex; align-items: center; gap: 26px; }

/* --- 공지 · 상태 띠 ------------------------------------------------------- */
.k-banner {
  padding: 10px var(--gutter);
  font-size: var(--step--1); letter-spacing: .015em;
  background: #24382a; color: #d6e3d2;
  border-bottom: 1px solid var(--rule);
}
.k-banner--info   { background: var(--stage-2); color: var(--text-soft); }
.k-banner--warn   { background: var(--warn-bg); color: var(--warn); }
.k-banner--danger { background: var(--danger-bg); color: var(--danger); }

/* --- 진행 표시 (편집형 리본) --------------------------------------------- */
.k-steps {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  margin: 0; padding: 0 var(--gutter); list-style: none;
  border-bottom: 1px solid var(--rule);
  background: var(--stage-0);
}
.k-steps li { min-width: 0; }
.k-step {
  width: 100%; min-height: 62px;
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 0; border-right: 1px solid var(--rule); background: transparent;
  color: var(--text-faint); font-size: var(--step--1); font-weight: 500; text-align: left; white-space: nowrap;
  cursor: default; transition: color .2s var(--ease), background .2s var(--ease);
  overflow: hidden; text-overflow: ellipsis;
}
.k-steps li:first-child .k-step { padding-left: 0; }
.k-steps li:last-child .k-step { border-right: 0; }
.k-step__n { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .08em; color: var(--coral); }
.k-step[data-state="done"]   { color: var(--text-soft); cursor: pointer; }
.k-step[data-state="done"]:hover { color: var(--text); }
.k-step[data-state="active"] { color: var(--event-ink); background: var(--paper-2); font-weight: 700; padding-left: 18px; }
.k-step[data-state="active"] .k-step__n { color: #976963; }
.k-step[data-state="todo"] { opacity: .55; }

/* --- 무대 공통 ----------------------------------------------------------- */
#stage { min-width: 0; }
.k-muted { color: var(--text-faint); font-size: var(--step--1); line-height: 1.7; }
.k-lead { color: var(--text-soft); font-size: var(--step-1); line-height: 1.7; white-space: pre-line; }
.k-display {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(46px, 5.3vw, 87px); line-height: 1.22; letter-spacing: -.085em; word-break: keep-all;
  white-space: pre-line;
}
.k-display em { display: inline-block; }

/* 단계 화면 공통 틀 — 왼쪽 맥락 · 오른쪽 패널 */
.k-page {
  max-width: var(--measure); margin: 0 auto;
  min-height: 0;
  padding: clamp(28px, 4vw, 60px) var(--gutter) 36px;
  display: grid; grid-template-columns: .82fr 1.18fr; grid-template-rows: 1fr auto;
  gap: 24px clamp(30px, 5vw, 85px);
  align-items: start;
}
.k-page--even { grid-template-columns: .9fr 1.1fr; }
.k-page--result { grid-template-columns: .85fr 1.15fr; align-items: center; }
.k-context { align-self: center; min-width: 0; }
.k-context h1 { margin: 22px 0 0; font-size: clamp(44px, 5.4vw, 88px); line-height: 1.18; letter-spacing: -.085em; white-space: pre-line; }
.k-context > p:not(.index) { color: var(--text-soft); font-size: var(--step-1); line-height: 1.7; margin: 24px 0 0; white-space: pre-line; }
.k-context .k-actions { margin-top: 26px; }
.k-letterline {
  margin-top: 40px; padding: 19px 0;
  border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong);
  display: flex; flex-direction: column; gap: 12px;
}
.k-letterline span { color: var(--flower); font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .1em; text-transform: uppercase; }
.k-letterline strong { font-family: var(--font-serif); font-weight: 500; font-size: 23px; line-height: 1.5; letter-spacing: -.04em; word-break: keep-all; }
.k-letterline small { color: var(--text-faint); font-size: var(--step--1); }
.k-noterow {
  grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap;
  border-top: 1px solid var(--rule); padding-top: 17px;
  color: var(--text-soft); font-size: var(--step--1);
}
.k-noterow span:nth-child(2) { color: var(--flower); }
.k-actions { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.k-actions--stack { flex-direction: column; align-items: stretch; gap: 10px; }

/* 패널 (어두운 판 위에 종이 입력) */
.k-form {
  border: 1px solid var(--rule-strong); background: var(--stage-1);
  padding: clamp(22px, 3vw, 40px);
  display: grid; gap: var(--s3); align-content: start;
}
.k-form > h3 { font-size: var(--step-1); }
.k-form .field { margin-block: 0; }
.k-form .field__label { color: var(--text); font-weight: 700; }
.k-form .check:last-of-type { border-bottom: 0; }

/* 번호 있는 확인 목록 */
.k-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.k-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: var(--step--1); line-height: 1.65; color: var(--text-soft); }
.k-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.k-list b { font-family: var(--font-mono); font-size: var(--step--2); letter-spacing: .08em; color: var(--coral); font-weight: 500; padding-top: .3em; }

/* ===========================================================================
   0. 첫 화면
   =========================================================================== */
.hero {
  max-width: var(--measure); margin: 0 auto;
  padding: clamp(34px, 5vw, 76px) var(--gutter) clamp(34px, 5vw, 72px);
  display: grid; grid-template-columns: 1fr 1.04fr; gap: clamp(32px, 5vw, 88px);
  min-height: 620px;
}
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; }
.hero__copy h1 { margin: 33px 0 0; }
.hero__lead { margin: 25px 0 0; font-size: 17px; line-height: 1.75; letter-spacing: -.035em; color: var(--text-soft); white-space: pre-line; word-break: keep-all; }
.hero__actions { width: 100%; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 38px; }
.hero__facts {
  width: 100%; margin-top: 46px; padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.hero__facts span { font-size: 11px; line-height: 1.45; color: var(--text-faint); }
.hero__facts b { display: block; margin-bottom: 8px; font-size: 27px; font-weight: 500; letter-spacing: -.05em; color: var(--text); font-variant-numeric: tabular-nums; }
.hero__facts b small { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0; margin-left: 3px; font-weight: 400; }

.hero__visual { height: 560px; align-self: center; position: relative; min-width: 0; }
.photo-mic { position: absolute; inset: 0 18% 10% 0; overflow: hidden; background: #1a221b; }
.photo-mic img { object-position: 37% 50%; }
.photo-mic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #101b16a8, transparent 36%); pointer-events: none; }
.photo-caption { position: absolute; bottom: 20px; left: 20px; z-index: 1; color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; text-shadow: 0 2px 6px #000b; }
.photo-flower { position: absolute; width: 46%; height: 43%; right: 0; bottom: 0; border: 8px solid var(--stage); background: #dac7b4; overflow: hidden; box-shadow: 0 20px 50px #0007; }
.photo-flower img { object-position: 64% 50%; }
.photo-flower span { position: absolute; bottom: 11px; left: 12px; color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 2px 6px #000b; }
.hero__level {
  position: absolute; right: 0; top: 0; width: 180px; height: 52px;
  background: var(--paper-2); color: var(--event-ink);
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 12px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; white-space: nowrap;
}
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px color-mix(in srgb, var(--coral) 22%, transparent); flex: none; }
.live-dot--off { background: #9aa89b; box-shadow: none; }
.level-rule { width: 16px; height: 1px; background: #778779; }
.hero__sticker, .hero__poster-only, body.kiosk img.hero__poster-only { display: none; }
.hero__stamp {
  position: absolute; top: 25%; right: 3%; writing-mode: vertical-rl;
  font-family: var(--font-serif); font-size: 12px; letter-spacing: .12em; color: var(--text);
}

/* 여정 리본 */
.journey {
  max-width: var(--measure); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.journey span { display: flex; gap: 17px; align-items: center; min-height: 73px; padding: 17px 24px; border-right: 1px solid var(--rule); font-size: 13px; white-space: nowrap; color: var(--text); }
.journey span:first-child { padding-left: 0; }
.journey span:last-child { border-right: 0; }
.journey b { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--coral); }

/* 마음 고르기 */
.choose { max-width: var(--measure); margin: 0 auto; padding: clamp(60px, 8vw, 130px) var(--gutter); scroll-margin-top: 20px; }
.choose--page { padding-top: clamp(28px, 4vw, 60px); min-height: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 35px; margin-bottom: 40px; }
.section-head h2 { margin: 15px 0 0; font-size: clamp(42px, 4.8vw, 75px); line-height: 1.22; letter-spacing: -.075em; white-space: pre-line; }
.section-head > p { color: var(--text-soft); font-size: 14px; line-height: 1.75; margin: 0 0 6px; max-width: 34ch; white-space: pre-line; }
.choose__layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(300px, .75fr); gap: 24px; align-items: stretch; }
.emotion-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.emotion {
  min-width: 0; min-height: 177px;
  border: 1px solid color-mix(in srgb, var(--sage) 32%, transparent); background: var(--stage-3); color: var(--text);
  padding: 18px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; position: relative;
  cursor: pointer; transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.emotion:hover { transform: translateY(-3px); border-color: var(--text-soft); }
.emotion[aria-pressed="true"] { background: var(--paper-2); color: var(--event-ink); border-color: var(--paper-2); }
.emotion__n { color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; }
.emotion[aria-pressed="true"] .emotion__n { color: #536d59; }
.emotion__icon { position: absolute; top: 10px; right: 18px; font-size: 22px; font-weight: 300; color: var(--flower); line-height: 1; }
.emotion[aria-pressed="true"] .emotion__icon { color: var(--corner-color, #976963); }
.emotion strong { margin-top: auto; font-size: 17px; letter-spacing: -.055em; font-weight: 700; }
.emotion small { display: block; margin-top: 7px; line-height: 1.45; opacity: .68; font-size: 11px; letter-spacing: -.035em; word-break: keep-all; }

.compose { border: 1px solid color-mix(in srgb, var(--paper) 27%, transparent); background: var(--stage-1); display: flex; flex-direction: column; min-height: 362px; }
.compose__top {
  height: 57px; padding: 17px 20px; border-bottom: 1px solid color-mix(in srgb, var(--paper) 27%, transparent);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
.compose__top i { color: var(--flower); font-size: 23px; line-height: 1; font-style: normal; }
.compose__body { padding: 22px 24px 18px; flex: 1; }
.compose__label { margin: 0; color: var(--coral); font-size: 11px; font-weight: 600; }
.compose__body h3 { margin: 7px 0 0; font-size: 31px; letter-spacing: -.06em; font-weight: 500; }
.compose__body > p:not(.compose__label) { margin: 8px 0 18px; color: var(--text-soft); font-size: 12px; line-height: 1.6; }
.compose__steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 0; }
.compose__steps span { border-top: 1px solid var(--rule-strong); padding-top: 10px; color: var(--text-soft); font-size: 11px; line-height: 1.5; }
.compose__steps span b { font-family: var(--font-mono); font-weight: 500; color: var(--coral); margin-right: 6px; }
.compose__foot { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 13px; border-top: 1px solid color-mix(in srgb, var(--paper) 27%, transparent); padding: 17px 20px; }
.compose__foot p { margin: 0; color: var(--text-faint); font-size: 10px; line-height: 1.5; }
.compose__foot .btn { min-height: 47px; }

/* 간직하기 (사진 + 종이) */
.keep {
  max-width: var(--measure); margin: 0 auto;
  display: grid; grid-template-columns: 1.12fr .88fr;
  padding: 0 var(--gutter) clamp(70px, 8vw, 125px); min-height: 480px;
}
.keep__image { overflow: hidden; position: relative; min-height: 380px; background: #314437; }
.keep__image img { object-position: 50% 54%; }
.keep__copy { padding: clamp(32px, 4.4vw, 70px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.keep__copy h2 { margin: 15px 0 0; font-size: clamp(36px, 4vw, 60px); line-height: 1.22; letter-spacing: -.075em; white-space: pre-line; }
.keep__copy > p:not(.index) { margin: 20px 0 24px; color: #466050; font-size: 14px; line-height: 1.8; }
.keep__chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 30px; }
.keep__chips span { border: 1px solid #829d88; padding: 7px 10px; font-size: 11px; color: #23372a; }
.keep__copy .quiet { color: #263d2e; border-color: #263d2e; font-weight: 800; }
.keep__copy .quiet:hover { color: #000; }

/* 신뢰 띠 */
.trust {
  padding: 21px var(--gutter); border-top: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  color: var(--text-soft); font-size: 11px;
}
.trust span::before { content: '●'; color: var(--flower); margin-right: 10px; font-size: 8px; }
.trust .quiet { color: var(--text); font-size: 11px; padding: 0 0 4px; }

/* ===========================================================================
   3·5. 녹음실 콘솔
   =========================================================================== */
.studio {
  align-self: center; min-height: 555px;
  display: grid; grid-template-columns: 37% 63%;
  border: 1px solid color-mix(in srgb, var(--sage) 45%, transparent); background: var(--stage-1);
  overflow: hidden; box-shadow: var(--shadow-3);
}
.studio--word { grid-template-columns: 30% 70%; }
.relay-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 8px; }
.relay-actions .rec-toggle, .relay-actions .btn--main { width: 100%; min-width: 0; margin-top: 0; }
.relay-player { display: block; margin-top: 20px; }
.studio__photo { position: relative; overflow: hidden; background: #1a221b; }
.studio__photo img { object-position: 30% 50%; }
.studio__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #15221c99, transparent 45%); }
.studio__note { position: absolute; z-index: 2; left: 15px; bottom: 17px; color: var(--paper); font-family: var(--font-mono); font-size: 9px; line-height: 1.5; letter-spacing: .06em; text-transform: uppercase; }
.studio__console { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 48px); min-width: 0; }
.console__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-soft); white-space: nowrap;
}
.console__row span:first-child { color: var(--text); }
.console__row .live-dot { width: 7px; height: 7px; margin-right: 6px; box-shadow: none; }
.console__row--rule { padding-top: 11px; border-top: 1px solid var(--rule-strong); }
.console__row--caption { margin-bottom: 15px; }
.console__display { margin: auto 0; padding: 18px 0; min-width: 0; }
.console__clock {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: clamp(60px, 7vw, 116px); line-height: 1; letter-spacing: -.1em; font-variant-numeric: tabular-nums; white-space: nowrap;
  color: var(--text);
}
.console__clock[data-live="1"] { color: var(--flower); }
.console__word { display: block; font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 4.6vw, 72px); line-height: 1.2; letter-spacing: -.06em; word-break: keep-all; }
.console__word em { color: var(--flower); }
.console__help { color: var(--text-faint); font-size: 10px; line-height: 1.6; margin: 16px 0 0; }
.console__hint { min-height: 1.6em; font-size: var(--step--1); font-weight: 600; margin: 10px 0 0; color: var(--text-soft); }
.console__hint[data-kind="warn"] { color: var(--warn); }
.console__hint[data-kind="ok"]   { color: var(--ok); }
.console__msg { margin-top: 12px; }
.studio[data-live="1"] .console__row .live-dot { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.rec-toggle {
  width: 100%; min-height: 61px; margin-top: 8px;
  border: 0; background: var(--coral); color: #1b291e;
  padding: 16px 17px; display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 700;
  cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.rec-toggle b { flex: 1; text-align: left; }
.rec-toggle > span:last-child { font-size: 20px; font-weight: 400; }
.rec-toggle:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(0,0,0,.3); }
.rec-toggle:disabled { opacity: .5; cursor: not-allowed; }
.rec-symbol { width: 15px; height: 15px; border-radius: 50%; background: #213025; box-shadow: 0 0 0 5px #2130251c; flex: none; transition: border-radius .2s; }
.rec-toggle[data-live="1"] .rec-symbol { border-radius: 2px; }
.rec-toggle[data-live="1"] { background: var(--paper-2); }

/* 콘솔 안의 재생기 */
audio { width: 100%; min-height: 44px; color-scheme: dark; }
.paper audio { color-scheme: light; }

/* ===========================================================================
   4. 다시 듣고 꾸미기
   =========================================================================== */
.k-take { border: 1px solid color-mix(in srgb, var(--sage) 45%, transparent); padding: 14px 18px; display: grid; gap: 10px; }
.k-take__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--text-soft); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.k-take__head b { color: var(--text); font-size: 16px; font-family: var(--font); letter-spacing: -.03em; text-transform: none; }
.k-take .bars { height: 51px; }
.k-take .bars i { max-width: 5px; }
.k-take small { color: var(--text-faint); font-size: 10px; }
.k-label { display: block; margin: 0 0 10px; color: var(--flower); font-size: 12px; font-weight: 700; }
.k-headline {
  width: 100%; resize: vertical; min-height: 122px;
  border: 1px solid color-mix(in srgb, var(--sage) 48%, transparent); background: var(--stage-2); color: var(--text);
  padding: 16px; font-family: var(--font-serif); font-weight: 500; font-size: 23px; line-height: 1.5; letter-spacing: -.04em;
}
.k-headline:focus { border-color: var(--coral); box-shadow: none; }
.k-help { color: var(--text-faint); font-size: 11px; line-height: 1.6; margin: 10px 0 0; }
.k-bgs { display: flex; gap: 8px; flex-wrap: wrap; }
.k-bg {
  flex: 1 1 8rem; padding: 10px 14px; text-align: left;
  border: 1px solid var(--rule-strong); background: transparent; color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}
.k-bg i { width: 18px; height: 18px; border: 1px solid #0006; flex: none; background: var(--swatch, #f1ebdf); }
.k-bg small { display: block; font-weight: 400; font-size: 10px; color: var(--text-faint); }
.k-bg[aria-pressed="true"] { border-color: var(--coral); box-shadow: inset 0 0 0 1px var(--coral); }
.k-trim { display: grid; gap: 8px; }
.k-trim__row { display: grid; grid-template-columns: 3.4rem 1fr 3.6rem; gap: 12px; align-items: center; }
.k-trim__row span { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }
.k-trim__val { font-family: var(--font-mono); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
details.k-details { border: 1px solid var(--rule); padding: 12px 16px; }
details.k-details summary { cursor: pointer; font-weight: 700; font-size: var(--step--1); color: var(--text-soft); list-style: none; display: flex; justify-content: space-between; }
details.k-details summary::after { content: '+'; color: var(--coral); font-size: 1.3em; line-height: 1; }
details.k-details[open] summary::after { content: '−'; }
details.k-details summary::-webkit-details-marker { display: none; }
details.k-details > div { margin-top: 14px; }

.k-preview { position: relative; min-height: 580px; background: #253a2a; overflow: hidden; align-self: center; }
.k-preview > img { position: absolute; inset: 0; object-position: 65% 50%; opacity: .9; }
.k-preview::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #152b1a58, transparent 70%); pointer-events: none; }
.k-preview__label { position: absolute; top: 18px; left: 20px; z-index: 4; color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 6px #000; }
.k-preview canvas { position: absolute; z-index: 3; width: 73%; height: auto; left: 8%; top: 12%; box-shadow: 18px 20px 45px #0b1b1388; }

/* ===========================================================================
   7. 참여 완료 — 편지 · 티켓 · 꽃 사진
   =========================================================================== */
.k-meta { margin-top: 38px; padding-block: 17px; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.k-meta span { color: var(--text-faint); font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.k-meta b { display: block; margin-bottom: 7px; color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; word-break: break-all; }
.k-meta b.mono { font-family: var(--font-mono); letter-spacing: .04em; font-size: 13px; text-transform: none; color: var(--text); }
.k-qr { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 16px 18px; }
.k-qr canvas { width: 112px; height: 112px; image-rendering: pixelated; background: #fff; }
.k-qr__copy { display: grid; gap: 10px; }
.k-qr__copy > b { color: var(--text); font-size: var(--step--1); }
.k-qr p { font-size: var(--step--1); line-height: 1.6; }
.k-qr .mono { display: block; margin-top: 6px; letter-spacing: .06em; text-transform: none; color: var(--ink-soft); word-break: break-all; }
.k-result { position: relative; min-height: 600px; display: flex; align-items: center; justify-content: center; }
.k-result__botanic { position: absolute; inset: 0 7% 8% 17%; overflow: hidden; background: #314437; }
.k-result__botanic img { object-position: 65% 50%; }
.k-result__botanic::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #233c3077, transparent 60%); }
.k-result__botanic > span { position: absolute; right: 15px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 1px 5px #000; }
.k-result .letter { width: 65%; min-height: 450px; position: absolute; left: 0; top: 9%; z-index: 3; }
.k-result__art { display: block; position: relative; z-index: 3; width: min(76%, 560px); height: auto; border: 1px solid var(--rule-strong); box-shadow: var(--shadow-3); }
.ticket {
  position: absolute; right: 0; bottom: 0; z-index: 4; width: 37%; height: 110px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: #e6aeaa; color: #2b382d; box-shadow: 0 10px 25px #0611094a;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 58%, 5% 50%, 0 42%);
}
.ticket span { font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.ticket strong { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -.08em; font-variant-numeric: tabular-nums; }
.k-result.reveal .k-result__botanic img { animation: flower-arrive 1.15s ease both; }
.k-result.reveal .letter { animation: letter-arrive .8s .12s cubic-bezier(.2,.7,.2,1) both; }
.k-result.reveal .ticket { animation: ticket-arrive .6s .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes flower-arrive { from { opacity: .3; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes letter-arrive { from { opacity: 0; transform: translateY(30px) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes ticket-arrive { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.k-demo-result { margin-top: 24px; display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 16px; border: 1px solid var(--rule-strong); }
.k-demo-result img { width: 120px; height: 120px; object-fit: cover; }
.k-demo-result .stack > * + * { margin-top: 8px; }

/* 전송 진행 */
.k-progress { display: grid; gap: .5rem; }
.k-progress__bar { height: 3px; background: var(--rule-strong); overflow: hidden; }
.k-progress__fill { height: 100%; width: 0%; background: var(--coral); transition: width .3s var(--ease); }

/* ===========================================================================
   마감 · 꼬리
   =========================================================================== */
.k-closed { display: grid; place-items: center; gap: var(--s3); min-height: 60dvh; text-align: center; padding: var(--s6) var(--gutter); }
.k-closed__mark { font-size: clamp(3rem, 12vw, 6rem); line-height: 1; color: var(--flower); }
.k-closed h1 { white-space: pre-line; }

.k-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 20px var(--gutter);
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule); background: var(--stage-0);
  font-size: 12px; line-height: 1.8; color: var(--text-soft);
}
.k-foot b { color: var(--coral); font-weight: 500; margin: 0 8px; }
.k-foot__links { display: flex; gap: 20px; align-items: center; }
.k-foot__links .quiet { font-size: 11px; padding: 6px 0; }

/* ===========================================================================
   화면 크기
   =========================================================================== */
@media (max-width: 1200px) {
  .k-identity__sub { display: none; }
  .hero { min-height: 520px; padding-top: 30px; padding-bottom: 34px; }
  .hero__copy h1 { font-size: clamp(46px, 5.1vw, 65px); margin-top: 24px; }
  .hero__visual { height: 440px; }
  .hero__lead { font-size: 15px; }
  .hero__actions { margin-top: 25px; }
  .hero__facts { margin-top: 19px; }
  .choose__layout { grid-template-columns: 1.45fr .9fr; }
  .emotion-grid { grid-template-columns: repeat(2, 1fr); }
  .emotion { min-height: 130px; }
  .studio { grid-template-columns: 31% 69%; }
  .studio__console { padding: 25px; }
  .console__clock { font-size: clamp(56px, 7vw, 90px); }
}
@media (max-width: 760px) {
  .k-head { height: 64px; padding: 0 19px; grid-template-columns: 1fr auto; }
  .k-identity .k-mark { font-size: 19px; }
  .k-head__center { display: none; }
  .k-head__meta { gap: 14px; }
  .k-head__meta .quiet { font-size: 11px; padding: 6px 0; }
  .k-steps { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); padding: 0 19px; }
  .k-step { min-height: 50px; padding: 10px 12px; font-size: 11px; border-bottom: 1px solid var(--rule); }
  .k-steps li:nth-child(odd) .k-step { padding-left: 0; }
  .k-steps li:nth-child(even) .k-step { border-right: 0; }
  .k-step[data-state="active"] { padding-left: 12px; }
  .k-foot { flex-wrap: wrap; font-size: 10px; padding: 18px 20px; }
  .hero { display: flex; flex-direction: column; min-height: 0; padding: 34px 20px 32px; gap: 32px; }
  .hero__copy h1 { font-size: clamp(43px, 9vw, 66px); margin-top: 22px; }
  .hero__lead { font-size: 14px; margin-top: 17px; }
  .hero__actions { margin-top: 25px; gap: 10px; }
  .btn--main { min-height: 55px; min-width: 240px; }
  .hero__facts { margin-top: 27px; padding-top: 13px; gap: 7px; }
  .hero__facts b { font-size: 21px; margin-bottom: 5px; }
  .hero__facts span { font-size: 9px; }
  .hero__visual { height: 420px; width: 100%; }
  .photo-flower { width: 45%; height: 42%; }
  .hero__stamp { display: none; }
  .journey { padding: 0 20px; grid-template-columns: repeat(2, 1fr); }
  .journey span { min-height: 54px; padding: 10px; font-size: 11px; border-bottom: 1px solid var(--rule); }
  .journey span:nth-child(odd) { padding-left: 0; }
  .journey span:nth-child(2) { border-right: 0; }
  .journey span:nth-child(n+3) { border-bottom: 0; }
  .choose { padding: 60px 20px; }
  .section-head { display: block; margin-bottom: 24px; }
  .section-head h2 { font-size: clamp(40px, 8vw, 62px); }
  .section-head > p { margin-top: 18px; font-size: 12px; }
  .choose__layout { display: flex; flex-direction: column; }
  .emotion { min-height: 145px; padding: 14px; }
  .emotion strong { font-size: 15px; }
  .emotion small { font-size: 10px; }
  .compose { min-height: 0; }
  .keep { padding: 0 20px 60px; display: flex; flex-direction: column; }
  .keep__image { min-height: 260px; }
  .keep__copy { padding: 30px; }
  .keep__copy h2 { font-size: 40px; }
  .trust { flex-wrap: wrap; padding: 20px; gap: 13px; }
  .k-page { padding: 34px 20px; display: flex; flex-direction: column; min-height: calc(100svh - 64px); gap: 26px; }
  .k-context h1 { font-size: clamp(40px, 9vw, 66px); }
  .k-context > p:not(.index) { font-size: 14px; margin: 18px 0 0; }
  .k-letterline { margin-top: 20px; }
  .studio { min-height: 450px; grid-template-columns: 30% 70%; }
  .studio__console { padding: 22px; }
  .console__clock { font-size: clamp(51px, 10vw, 78px); }
  .console__row { font-size: 9px; }
  .k-noterow { flex-wrap: wrap; font-size: 10px; }
  .k-preview { min-height: 520px; }
  .k-result { width: 100%; min-height: 570px; }
  .k-result .letter { min-height: 420px; }
  .k-meta { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .kicker { font-size: 9px; gap: 7px; white-space: nowrap; }
  .hero__copy h1 { font-size: 40px; }
  .hero__visual { height: 345px; }
  .photo-mic { inset: 0 16% 10% 0; }
  .hero__level { width: 145px; font-size: 8px; }
  .photo-flower { border-width: 5px; }
  .photo-caption, .photo-flower span { font-size: 8px; }
  .emotion { min-height: 135px; }
  .compose__foot { grid-template-columns: 1fr; }
  .compose__foot .btn { width: 100%; justify-content: space-between; }
  .keep__copy h2 { font-size: 36px; }
  .studio { display: flex; flex-direction: column; }
  .relay-actions { grid-template-columns: 1fr; }
  .studio__photo { height: 160px; flex: none; }
  .studio__photo img { object-position: 50% 42%; }
  .studio__console { flex: 1; min-height: 350px; }
  .k-preview { min-height: 460px; }
  .k-preview canvas { width: 82%; left: 5%; top: 14%; }
  .k-result { min-height: 490px; }
  .k-result__botanic { inset: 0 0 8% 14%; }
  .k-result .letter { width: 77%; min-height: 380px; padding: 18px; }
  .letter__head, .letter__foot { font-size: 8px; }
  .letter__line { font-size: 24px; }
  .ticket { width: 43%; height: 95px; padding: 10px; }
  .ticket strong { font-size: 30px; }
  .k-qr { grid-template-columns: 1fr; }
  .k-demo-result { grid-template-columns: 1fr; }
}

.section-head h2 em { color: var(--flower); }
@media (max-height: 820px) and (min-width: 761px) { .k-noterow { display: none; } }
