/* sites/life/style.css — 내 인생 애니메이션
 * 컨셉: 스케치북. 따뜻한 회백색 종이(#efece4) + 흑색 잉크 하나. 손으로 그은 테두리, 먹 스크리블 채움, 손글씨 메모.
 * past-life(남색/금빛)·hub(화이트/코랄)·ladder(노랑 코믹)와 겹치지 않는 흑백 드로잉 톤.
 * 유일한 색은 만년필의 빨간 포인트(--red) — 오류, 녹화 표시에만 쓴다.
 * 손으로 그린 테두리/채움은 life.js 가 SVG(.lf-ink)로 덧그린다. JS 전에는 아래의 일반 테두리가 보인다.
 */

:root {
  --paper: #efece4;
  --paper-hi: #f7f5ef;
  --paper-lo: #e3dfd5;
  --ink: #171614;
  --ink-2: rgba(23, 22, 20, 0.74);
  --ink-3: rgba(23, 22, 20, 0.5);
  --ink-4: rgba(23, 22, 20, 0.16);
  --red: #c42f28;
  --font-display: 'Gowun Batang', 'Noto Serif KR', 'AppleMyungjo', serif;
  --font-hand: 'Nanum Pen Script', cursive;
  --hand-size: 1.32em;
  --max-width: 480px;
  --wobble-a: 3px 5px 4px 3px;
  --wobble-b: 5px 3px 4px 5px;
}
html:lang(en) {
  --font-display: 'Newsreader', 'Gowun Batang', Georgia, serif;
  --font-hand: 'Caveat', 'Nanum Pen Script', cursive;
  --hand-size: 1.16em;
}
html:lang(ja) {
  --font-display: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', serif;
  --font-hand: 'Klee One', 'Hiragino Maru Gothic ProN', cursive;
  --hand-size: 0.98em;
}

html { background: var(--paper); }
body.lf-body {
  color: var(--ink);
  background-color: var(--paper);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .11 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  min-height: 100vh;
  font-size: 15.5px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
html:lang(ja) body.lf-body { word-break: normal; }
.lf-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.lf-body [hidden] { display: none !important; }

.lf-shell {
  max-width: var(--app-width, 480px);
  margin: 0 auto;
  padding: 0 16px;
}

:focus-visible { outline: 2px dashed var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------------- 손으로 그린 선 (life.js) ---------------- */
.lf-ink {
  position: absolute;
  left: -4px; top: -4px;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.lf-ink path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.lf-ink .lf-scribble {
  stroke-dasharray: var(--len) var(--len);
  stroke-dashoffset: var(--len);
  transition: stroke-dashoffset 0.42s cubic-bezier(.5, 0, .2, 1);
}
.is-inked { border-color: transparent !important; }

/* ---------------- 헤더 ---------------- */
.lf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 0;
}
.lf-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hand);
  font-size: calc(17px * 1.3);
  line-height: 1;
  white-space: nowrap;
}
html:lang(en) .lf-brand { font-size: 22px; font-weight: 700; }
html:lang(ja) .lf-brand { font-size: 16px; font-weight: 600; }
.lf-brand-mark { width: 18px; height: 18px; fill: var(--ink); stroke: none; }
.lf-top .lang-switch { margin: 0; padding: 0; }
.lf-body .lang-switch a[aria-current="page"] { background: var(--ink-4); }

/* ---------------- 버튼 ---------------- */
.lf-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 22px;
  border: 1.6px solid var(--ink);
  border-radius: var(--wobble-a);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease;
  white-space: nowrap;
}
.lf-btn:active { transform: translateY(1px) scale(0.985); }
.lf-btn-ink {
  background: var(--ink);
  color: var(--paper-hi);
  border-radius: var(--wobble-b);
}
.lf-btn-ink .lf-ink { color: var(--ink); }
.lf-btn-line { background: rgba(247, 245, 239, 0.55); }
.lf-btn-sm { min-height: 38px; padding: 7px 14px; font-size: 13.5px; }
.lf-btn:disabled { opacity: 0.5; cursor: default; }
.lf-btn > span, .lf-btn > .lf-ico { position: relative; z-index: 1; }

.lf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 8px 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-style: wavy;
  text-decoration-color: var(--ink-3);
}

.lf-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lf-ico-sm { width: 16px; height: 16px; }
.lf-ico-fill { fill: currentColor; stroke: currentColor; stroke-width: 1.2; }

.lf-hand-note {
  font-family: var(--font-hand);
  font-size: var(--hand-size);
  line-height: 1.2;
  color: var(--ink-2);
}

/* ---------------- 히어로 ---------------- */
.lf-hero {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 26px 0 8px;
}
.lf-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(27px, 7.3vw, 50px);
  line-height: 1.26;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
  max-width: 17em;
}
html:lang(en) .lf-hero h1 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; font-size: clamp(31px, 8.4vw, 58px); }
html:lang(ja) .lf-hero h1 { line-height: 1.38; font-size: clamp(25px, 6.6vw, 46px); }
.lf-hero-sub {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 30em;
}
.lf-hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 22px;
}
.lf-hero-cta .lf-btn { min-width: 200px; min-height: 56px; font-size: 17px; }

.lf-sheet {
  position: relative;
  margin: 0;
  background: #f2efe8;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 22px 40px -22px rgba(52, 40, 20, 0.45), 0 4px 10px -6px rgba(52, 40, 20, 0.2);
}
.lf-sheet::before {
  content: '';
  position: absolute;
  top: -11px;
  left: 50%;
  width: 104px;
  height: 26px;
  transform: translateX(-50%) rotate(-2.5deg);
  background: rgba(214, 205, 180, 0.72);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
.lf-hero-sheet {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 3 / 4;
  align-self: center;
}
.lf-hero-sheet canvas { display: block; width: 100%; height: 100%; }


/* ---------------- 입력 ---------------- */
.lf-make {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 6px;
}
.lf-step { padding: 26px 0 8px; }
.lf-step + .lf-step { border-top: 0; }
.lf-step-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 6px;
}
html:lang(en) .lf-step-title { font-weight: 500; font-size: 25px; }
.lf-num {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  font-family: var(--font-hand);
  font-size: 22px;
  font-weight: 700;
  border: 1.6px solid var(--ink);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 50%;
}
html:lang(ko) .lf-num { font-size: 26px; }
.lf-hint { margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.lf-count { margin: 0 0 6px; font-family: var(--font-hand); font-size: var(--hand-size); color: var(--ink); min-height: 1.4em; }
.lf-count.is-warn { color: var(--red); }

.lf-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.lf-label em { font-style: normal; font-weight: 500; color: var(--ink-3); margin-left: 2px; }

.lf-birth { margin-top: 14px; }
.lf-year-row { display: flex; align-items: center; gap: 12px; }
.lf-year {
  width: 5.2em;
  min-width: 0;
  border: 0;
  border-bottom: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 0 0 2px;
  border-radius: 0;
  font-variant-numeric: lining-nums tabular-nums;
}
.lf-year:focus { outline: none; border-bottom-style: dashed; }
.lf-year[aria-invalid="true"] { color: var(--red); border-bottom-color: var(--red); }
.lf-round {
  position: relative;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border: 1.6px solid var(--ink);
  border-radius: 50% 47% 52% 49% / 49% 52% 47% 50%;
  background: rgba(247, 245, 239, 0.6);
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lf-round:active { transform: scale(0.94); }
.lf-error { margin: 8px 0 0; font-size: 13.5px; color: var(--red); font-weight: 600; }

.lf-row2 { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; margin-top: 22px; }
.lf-field { display: block; min-width: 0; }
.lf-input {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 12px;
  border: 1.6px solid var(--ink);
  border-radius: var(--wobble-a);
  background: rgba(247, 245, 239, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
select.lf-input { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 30px; }
.lf-input::placeholder { color: var(--ink-3); }
.lf-field-wrap { position: relative; }

.lf-group { margin-top: 16px; }
.lf-group-title {
  margin: 0 0 8px;
  font-family: var(--font-hand);
  font-size: var(--hand-size);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink-2);
}
html:lang(en) .lf-group-title { font-size: 1.28em; font-weight: 600; }
html:lang(ja) .lf-group-title { font-weight: 600; font-size: 15px; }
.lf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lf-chip {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 13px 8px 10px;
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-a);
  background: rgba(247, 245, 239, 0.5);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s ease 0.08s, transform 0.12s ease;
}
.lf-chip:nth-child(2n) { border-radius: var(--wobble-b); }
.lf-chip > span, .lf-chip > .lf-ico, .lf-chip > small { position: relative; z-index: 1; }
.lf-chip .lf-ink, .lf-end .lf-ink, .more-test-card .lf-ink, .lf-controls .lf-ink, .lf-playbar .lf-ink { color: var(--ink); }
.lf-chip:active { transform: scale(0.96); }
.lf-chip[aria-pressed="true"] { color: var(--paper-hi); }
.lf-chip[aria-pressed="true"]:not(.has-scribble) { background: var(--ink); }
.lf-chip[aria-pressed="true"] .lf-scribble { stroke-dashoffset: 0; }
.lf-chip.is-locked { cursor: default; color: var(--paper-hi); background: var(--ink); }
.lf-chip.is-locked.has-scribble { background: transparent; }
.lf-chip.is-locked small { font-size: 11.5px; font-weight: 500; opacity: 0.75; margin-left: 2px; }
.lf-chip.is-locked .lf-scribble { stroke-dashoffset: 0; transition: none; }
.lf-chip.is-bump { animation: lf-bump 0.35s ease; }
@keyframes lf-bump { 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } }

.lf-custom { margin-top: 20px; }
.lf-custom .lf-label { display: flex; align-items: center; gap: 4px; }

/* 연표 */
.lf-timeline { margin-top: 26px; }
.lf-timeline-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lf-tl {
  position: relative;
  list-style: none;
  margin: 4px 0 0;
  padding: 2px 0 2px 26px;
}
.lf-tl::before {
  content: '';
  position: absolute;
  left: 8px; top: 16px; bottom: 16px;
  border-left: 1.6px dashed var(--ink-3);
}
.lf-tl li {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 2px 0;
}
.lf-tl li::before {
  content: '';
  position: absolute;
  left: -23px; top: 50%;
  width: 11px; height: 11px;
  margin-top: -6px;
  border: 1.6px solid var(--ink);
  border-radius: 50% 44% 52% 46%;
  background: var(--paper);
}
.lf-tl li.is-end::before { background: var(--ink); }
.lf-tl .lf-ico { width: 20px; height: 20px; }
.lf-tl-label { font-size: 14.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lf-tl-age { font-family: var(--font-hand); font-size: var(--hand-size); color: var(--ink-2); white-space: nowrap; }
.lf-tl-year {
  width: 4.3em;
  height: 36px;
  border: 0;
  border-bottom: 1.6px dashed var(--ink-3);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
  border-radius: 0;
}
.lf-tl-year:focus { outline: none; border-bottom: 1.6px solid var(--ink); }
.lf-tl-year::placeholder { color: var(--ink-3); font-weight: 500; }
.lf-tl-year[aria-invalid="true"] { color: var(--red); border-bottom-color: var(--red); }
.lf-tl-fixed { width: 4.3em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 펜 선택 */
.lf-pens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.lf-pen {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 12px 12px;
  border: 1.5px solid var(--ink-3);
  border-radius: var(--wobble-a);
  background: rgba(247, 245, 239, 0.55);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lf-pen[aria-checked="true"] { border-color: var(--ink); background: var(--paper-hi); }
.lf-pen .lf-ink { color: var(--ink-3); }
.lf-pen[aria-checked="true"] .lf-ink { color: var(--ink); }
.lf-pen[aria-checked="true"]::after {
  content: '✓';
  position: absolute;
  top: 6px; right: 10px;
  font-family: var(--font-hand);
  font-size: 22px;
  line-height: 1;
}
.lf-pen-doodle { display: block; width: 100%; height: 58px; }
.lf-pen-name { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; }
html:lang(en) .lf-pen-name { font-weight: 600; }
.lf-pen-note { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }

/* 재생 바 (입력 화면 하단에 붙는다) */
.lf-playbar {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  padding: 9px 9px 9px 9px;
  border-radius: 4px;
  background: rgba(247, 245, 239, 0.84);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  backdrop-filter: blur(14px) saturate(1.1);
  box-shadow: 0 14px 30px -14px rgba(52, 40, 20, 0.5);
}
.lf-play-btn { flex: 1 1 auto; min-width: 0; min-height: 54px; font-size: 16.5px; }
.lf-playbar-meta {
  flex: 0 0 auto;
  max-width: 42%;
  padding-right: 6px;
  font-family: var(--font-hand);
  font-size: var(--hand-size);
  line-height: 1.1;
  color: var(--ink-2);
  text-align: right;
}

/* ---------------- 재생 화면 ---------------- */
.lf-screen[hidden] { display: none !important; }
.lf-film-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 52px;
  padding: 6px 0;
  max-width: 560px;
  margin: 0 auto;
}
.lf-shared { margin: 0; font-family: var(--font-hand); font-size: var(--hand-size); color: var(--ink-2); text-align: right; min-width: 0; }
.lf-stage {
  position: relative;
  margin: 0 auto;
  width: 320px;
  height: 569px;
  background: #f2efe8;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 26px 50px -26px rgba(52, 40, 20, 0.55), 0 4px 12px -6px rgba(52, 40, 20, 0.22);
}
.lf-stage canvas { display: block; width: 100%; height: 100%; }
.lf-stage-wait {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-hand);
  font-size: 1.4em;
  color: var(--ink-2);
  pointer-events: none;
}
.lf-stage-wait[hidden] { display: none; }

.lf-controls {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 420px;
  margin: 12px auto 0;
  padding: 6px 8px;
  border-radius: 4px;
  background: rgba(247, 245, 239, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px -14px rgba(52, 40, 20, 0.45);
}
.lf-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lf-icon-btn:active { transform: scale(0.92); }
.lf-icon-btn .lf-ico { width: 22px; height: 22px; stroke-width: 2; }
.lf-icon-btn .lf-ico-play { display: none; }
.lf-icon-btn.is-paused .lf-ico-play { display: block; }
.lf-icon-btn.is-paused .lf-ico-pause { display: none; }
.lf-time { flex: 1 1 auto; font-variant-numeric: tabular-nums; font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.lf-toggle {
  position: relative;
  flex-shrink: 0;
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--ink-3);
  border-radius: var(--wobble-a);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lf-toggle[aria-pressed="true"] { background: var(--ink); color: var(--paper-hi); border-color: var(--ink); }
.lf-controls.is-recording > :not(.lf-rec-bar) { display: none; }
.lf-rec-bar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 8px; font-size: 13.5px; font-weight: 700; }
.lf-rec-bar[hidden] { display: none; }
.lf-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); animation: lf-blink 1.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes lf-blink { 50% { opacity: 0.3; } }
.lf-rec-track { flex: 1; height: 6px; border-radius: 4px; background: var(--ink-4); overflow: hidden; }
.lf-rec-track span { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 4px; }

.lf-end {
  position: relative;
  max-width: 480px;
  margin: 26px auto 0;
  padding: 24px 20px 14px;
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-a);
  background: rgba(247, 245, 239, 0.7);
  animation: lf-rise 0.5s cubic-bezier(.2, .8, .2, 1);
}
.lf-end[hidden] { display: none; }
@keyframes lf-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.lf-end h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  text-wrap: balance;
}
html:lang(en) .lf-end h2 { font-weight: 500; font-size: 28px; }
.lf-end-close { margin: 6px 0 0; font-family: var(--font-hand); font-size: calc(var(--hand-size) * 1.05); color: var(--ink-2); line-height: 1.25; }
.lf-end-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.lf-end-actions .lf-btn { width: 100%; padding-left: 12px; padding-right: 12px; }
.lf-end-actions #recipient-cta { grid-column: 1 / -1; }
.lf-end-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }
.lf-end-more { display: flex; justify-content: center; gap: 18px; margin-top: 10px; }
.lf-rec-panel { margin-top: 14px; padding-top: 12px; border-top: 1.5px dashed var(--ink-4); }
.lf-rec-panel[hidden] { display: none; }
.lf-rec-status { margin: 0; font-weight: 700; }
.lf-rec-status.is-error { color: var(--red); }
.lf-rec-info { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.lf-rec-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.lf-rec-actions .lf-btn { flex: 1 1 140px; min-height: 46px; }
.lf-rec-actions [hidden] { display: none; }
.lf-rec-canvas { position: fixed; left: -10000px; top: 0; width: 9px; height: 16px; opacity: 0; pointer-events: none; }

/* ---------------- 크로스 프로모 / SEO / 푸터 ---------------- */
.lf-section-title {
  max-width: var(--max-width);
  margin: 44px auto 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
}
html:lang(en) .lf-section-title { font-weight: 500; font-size: 22px; }
.lf-body .more-tests-section { max-width: var(--max-width); margin: 0 auto; }
.lf-body .more-test-card {
  position: relative;
  isolation: isolate;
  background: rgba(247, 245, 239, 0.6);
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-a);
}
.lf-body .more-test-card > span { position: relative; z-index: 1; }
.lf-body .ad-placeholder { border-color: var(--ink-4); color: var(--ink-3); background: rgba(23, 22, 20, 0.025); }

.lf-seo {
  max-width: 640px;
  margin: 52px auto 0;
  padding-top: 10px;
}
.lf-seo h2 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin: 30px 0 10px;
}
html:lang(en) .lf-seo h2 { font-weight: 500; font-size: 23px; }
.lf-seo p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--ink-2); }
.lf-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.lf-faq details {
  position: relative;
  isolation: isolate;
  padding: 13px 16px;
  border: 1.5px solid var(--ink);
  border-radius: var(--wobble-a);
  background: rgba(247, 245, 239, 0.5);
}
.lf-faq details > * { position: relative; z-index: 1; }
.lf-faq summary { font-weight: 700; font-size: 15px; cursor: pointer; list-style: none; padding-right: 22px; }
.lf-faq summary::-webkit-details-marker { display: none; }
.lf-faq summary::after { content: '+'; position: absolute; right: 0; top: -2px; font-family: var(--font-hand); font-size: 24px; line-height: 1; }
.lf-faq details[open] summary::after { content: '−'; }
.lf-faq p { margin: 8px 0 0; font-size: 14px; line-height: 1.75; }

.lf-body .site-footer { opacity: 0.7; }

/* 개인정보처리방침 */
.lf-doc { max-width: 640px; margin: 0 auto; padding: 34px 0 20px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.lf-doc h1 { font-family: var(--font-display); font-size: 28px; color: var(--ink); margin: 0 0 20px; }
.lf-doc h2 { font-size: 16px; font-weight: 800; color: var(--ink); margin: 28px 0 8px; }
.lf-doc a { text-decoration: underline; text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
