/* 정화수 한 모금 쉼 체험 — 스타일은 이 파일 하나(인라인 없음, CSP style-src 'self'). */
@font-face {
  font-family: "InkBrush";
  src: url("../assets/font/InkBrush-ko.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "InkSerif";
  src: url("../assets/font/InkSerif-en.woff2") format("woff2");
  font-display: swap;
}

:root {
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --ink: #2a2622;
  --paper: #f5f1e8;
  --night: #14110e;
  --seal: #a63a2c;
  --text: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--paper);
  font-family: var(--text);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}

/* 세로 틀: 브라우저가 페이지를 돌려도 폰에 대해 그대로 있게 거꾸로 돌린다. */
.frame {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  overflow: hidden;
  touch-action: none; /* 끌기(마시기)를 브라우저의 스크롤 · 확대가 가로채지 않게 */
  transform: translate(-50%, -50%);
  background: var(--night) url("../assets/img/bowl_inside.jpg") center / cover no-repeat;
}
/* 마우스로 쓰는 넓은 화면(컴퓨터): 세로 그릇 화면을 가운데 폰 비율 틀(9 : 19.5)로, 바깥은 어둡게.
   손가락으로 쓰는 화면(폰 · 태블릿)은 주소창 때문에 화면이 짧아져도 늘 꽉 채운다. */
@media (min-aspect-ratio: 9/16) and (hover: hover) and (pointer: fine) {
  .frame[data-turn="0"] { width: calc(100vh * 9 / 19.5); width: calc(100dvh * 9 / 19.5); max-width: 100vw; box-shadow: 0 0 0 1px rgba(245, 241, 232, .08), 0 24px 80px rgba(0, 0, 0, .6); }
}
.frame[data-turn="1"] { width: 100vh; height: 100vw; width: 100dvh; height: 100dvw; transform: translate(-50%, -50%) rotate(90deg); }
.frame[data-turn="2"] { transform: translate(-50%, -50%) rotate(180deg); }
.frame[data-turn="3"] { width: 100vh; height: 100vw; width: 100dvh; height: 100dvw; transform: translate(-50%, -50%) rotate(270deg); }

.layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; -webkit-user-drag: none; }
.water { background: transparent; }
.no-gl .water { display: none; }
.far { object-fit: cover; will-change: transform, opacity; }
.frame:not([data-stage="door"]):not([data-stage="intro"]) .far { opacity: 0; }
.frame.far-back .far { opacity: 1 !important; transform: none !important; transition: opacity 2.5s ease; }

/* 글이 읽히도록 위아래만 살짝 어둡게. */
.shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 8, 6, .55) 0%, rgba(10, 8, 6, 0) 26%, rgba(10, 8, 6, 0) 70%, rgba(10, 8, 6, .6) 100%);
}
.frame.far-back .shade { background: rgba(10, 8, 6, .62); transition: background 2.5s ease; }

/* 물에 풀리는 글(생각 적기) — 붓글씨 글꼴은 쓰지 않는다(지혜에만). */
.thought {
  position: absolute; left: 0; top: 0;
  max-width: 78%;
  text-align: center;
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-size: min(1.1875rem, 24.7px); line-height: 1.5;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity, filter;
}
.thought:not(.on) { display: none; }

/* 자막 + 그 아래 작은 조작 안내 한 줄 */
.says {
  position: absolute; left: 0; right: 0;
  /* 그릇 둘레선 위쪽 기준(390 × 844에서 72px 자리) — 위 버튼 줄 아래로는 올라가지 않는다. */
  top: max(calc(env(safe-area-inset-top, 0px) + 62px), calc(var(--bowl-top, 116px) - 44px));
  display: flex; flex-direction: column; gap: 10px;
  pointer-events: none;
}
.caption, .hint {
  margin: 0;
  padding: 0 28px;
  text-align: center;
  white-space: pre-line;
  word-break: keep-all;
  text-wrap: balance; /* 한 낱말만 다음 줄로 떨어지지 않게(모르는 브라우저는 그대로) */
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7);
  opacity: 0;
  transition: opacity .26s ease;
}
.caption.on, .hint.on { opacity: 1; transition: opacity .7s ease; }
.caption { font-size: min(1.1875rem, 24.7px); line-height: 1.6; }
.caption:empty { display: none; }
.hint { font-size: min(0.875rem, 18.2px); line-height: 1.55; color: rgba(245, 241, 232, .82); }
.door-hint { margin: 14px 0 0; font-size: min(0.875rem, 18.2px); line-height: 1.55; color: rgba(245, 241, 232, .82); text-shadow: 0 1px 10px rgba(0, 0, 0, .7); word-break: keep-all; text-wrap: balance; }

/* 위쪽 작은 버튼 */
.bar {
  position: absolute; z-index: 10; /* 안내 카드 위에서도 한 · EN 을 누를 수 있게 */
  top: calc(env(safe-area-inset-top, 0px) + 12px); right: 12px;
  display: flex; gap: 8px;
}
.chip {
  cursor: pointer;
  min-width: 44px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(245, 241, 232, .38); border-radius: 22px;
  background: rgba(20, 17, 14, .38);
  color: var(--paper); font: inherit; font-size: min(0.84375rem, 17.6px);
}
.chip[aria-pressed="false"] { color: rgba(245, 241, 232, .5); text-decoration: line-through; }
.chip:focus-visible, .go:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.frame[data-stage="door"] .chip:focus-visible { outline-color: #2a2a28; }
/* 한 · EN: 지금 언어 쪽만 또렷하게. 모든 화면에서 보인다. */
.lang { padding: 0 12px; font-size: min(0.8125rem, 16.9px); letter-spacing: .02em; }
.lang [data-l] { opacity: .45; }
[data-lang="ko"] .lang [data-l="ko"], [data-lang="en"] .lang [data-l="en"] { opacity: 1; font-weight: 600; }
.frame[data-stage="door"] .says { display: none; }

/* 시작 화면 — 앱 첫 화면과 같은 꼴(onboarding_story.dart): 장독대 위 그릇 + 위쪽 종이빛 + 브랜드 묶음. */
.door { position: absolute; inset: 0; z-index: 3; }
.door[hidden] { display: none; }
.paper { position: absolute; left: 0; right: 0; top: 0; height: 300px; background: linear-gradient(to bottom, #f5f2ea 0%, #f5f2ea 45%, rgba(245, 242, 234, 0) 100%); }
.dusk { position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(to top, rgba(27, 26, 24, .8), rgba(27, 26, 24, 0)); }
.brand {
  position: absolute; left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 64px);
  display: flex; flex-direction: column; align-items: center;
}
.brand-intro { margin: 0 0 10px; color: #6b6862; letter-spacing: -.05em; white-space: nowrap; line-height: 1.2; }
.brand-row { margin: 0; display: flex; align-items: center; gap: 11px; font-weight: 600; }
.brand-logo { width: 39px; height: 39px; display: block; }
.brand-name { font-size: 39px; line-height: 1; letter-spacing: .1em; color: #2a2a28; white-space: nowrap; }
.door-foot {
  position: absolute; left: 0; right: 0; bottom: var(--door-pad, 40px);
  display: flex; flex-direction: column; align-items: center; padding: 0 28px; text-align: center;
}
.frame[data-stage="door"] .bar .chip { border-color: rgba(42, 42, 40, .3); background: rgba(245, 242, 234, .55); color: #2a2a28; }
.go {
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; min-width: 240px; padding: 0 28px;
  border: 0; border-radius: 27px;
  background: var(--paper); color: var(--ink);
  font: inherit; font-size: min(1.0625rem, 22.1px); font-weight: 600; text-decoration: none;
}

/* 지혜 카드 — 앱 SlotCard 와 같은 꼴: 그릇 안 가운데 어두운 카드(제목 · 붓글씨 · 출전 · [다음]). */
.wisdom-card {
  /* 크기는 앱 SlotCard 와 같게 고정(그릇에 비례시키지 않는다): 최대 폭 340(좁은 화면은 화면 − 48) · 안쪽 여백
     24 / 22 / 24 / 18. 접힘 줄 "이 말에 대하여"가 줄 전체 폭이라(앱 ContextFold) 카드는 늘 최대 폭이다 —
     체험판 명언은 모두 풀이가 있다. 글 줄은 그 안에서 가운데. */
  position: absolute; z-index: 4; left: 50%; top: var(--bowl-cy, 50%);
  transform: translate(-50%, -50%);
  width: min(340px, calc(100% - 48px)); max-height: 78%;
  overflow-y: auto; touch-action: pan-y; overscroll-behavior: contain;
  padding: 22px 24px 18px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  border-radius: 18px; background: rgba(11, 13, 15, .7); border: .8px solid rgba(255, 255, 255, .2);
  animation: rise .7s ease both;
}
.wisdom-card[hidden] { display: none; }
.wisdom-title { margin: 0 0 18px; font-size: min(0.9375rem, 19.5px); letter-spacing: 1.5px; color: rgba(255, 255, 255, .88); }
/* 지혜 본문 — 앱 WisdomCardText · ink_text.dart 그대로: 120자 이하는 24 · 줄 간격 1.45(국문 붓글씨 ·
   영문 세리프), 120자를 넘으면 16 · 줄 간격 1.7(국문 기기 본문체 · **영문은 같은 세리프**). */
.wisdom {
  position: relative;
  margin: 0; max-width: 100%; color: rgba(255, 255, 255, .9);
  font-family: "InkBrush", "InkSerif", var(--text); font-size: min(1.5rem, 31.2px); line-height: 1.45;
  font-weight: 400; font-synthesis: none; /* 굵게 흉내 내지 않는다 */
  white-space: pre-line; word-break: keep-all; text-wrap: balance;
}
.wisdom[data-size="long"] { font-family: var(--text); font-size: min(1rem, 20.8px); line-height: 1.7; text-wrap: pretty; }
[data-lang="en"] .wisdom, [data-lang="en"] .wisdom[data-size="long"] { font-family: "InkSerif", Georgia, serif; }
/* 줄을 main.js 가 정해 준 붓글씨 갈래(data-lines="set"): 줄바꿈은 글 안의 줄 끝 그대로 — 브라우저가
   다시 감지 않는다. 그래서 글 폭 = 가장 긴 줄, 카드 폭 = 그 줄 + 안쪽 여백(앱 SlotCard 와 같게). */
.wisdom[data-lines="set"] { white-space: pre; text-wrap: nowrap; }
/* 먹 번짐 — 앱 InkText · _HaloPainter: 같은 글 · 같은 색을 흐리게(σ = 글자 크기 × 0.16) 글 뒤에 겹치고,
   불투명도 0 → 0.34 × 1.4 = 0.476 으로 1.2초에 걸쳐 번져 나온다(ease-out). 붓글씨 갈래(120자 이하)만.
   번짐 층은 본문과 같은 글 · 같은 줄 · 같은 폭의 글줄 하나(.halo) — 글 없는 자리에는 번지지 않는다. */
.ink { position: relative; max-width: 100%; }
.wisdom.halo {
  position: absolute; inset: 0; z-index: -1;
  filter: blur(0.16em);
  opacity: .476;
  pointer-events: none; -webkit-user-select: none; user-select: none;
  animation: bleed 1.2s ease-out both;
}
.wisdom.halo[data-size="long"], .wisdom.halo:empty { display: none; }
.wisdom-card { isolation: isolate; }
@keyframes bleed { from { opacity: 0; } to { opacity: .476; } }
.source { margin: 12px 0 0; font-size: min(0.8125rem, 16.9px); line-height: 1.5; color: rgba(255, 255, 255, .62); word-break: keep-all; }
.source:empty { display: none; }
/* 접힘 줄 "이 말에 대하여" — 앱 ContextFold: 출전 아래 10 · 높이 44 · 줄 전체가 누름 영역 · 글 12(흰 0.6) +
   간격 4 + 화살표 16(⌄ / 펼치면 ⌃). 펼친 글: 13 · 줄 간격 1.7 · 흰 0.75 · 가운데 · 아래 4. */
.fold {
  flex: none; align-self: stretch; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 44px; margin: 10px 0 0; padding: 0; border: 0; background: none;
  font: inherit; font-size: min(0.75rem, 15.6px); color: rgba(255, 255, 255, .6); word-break: keep-all;
}
.fold[hidden] { display: none; }
.fold .chev { position: relative; width: 16px; height: 16px; flex: none; }
.fold .chev::before {
  content: ""; position: absolute; left: 5px; top: 3.5px; width: 5px; height: 5px;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg);
}
.fold[aria-expanded="true"] .chev::before { top: 6.5px; transform: rotate(225deg); }
.note {
  margin: 0; padding: 0 0 4px; align-self: stretch;
  width: 0; min-width: 100%; /* 펼쳐도 카드 폭은 그대로 — 풀이는 카드 폭 안에서 줄을 바꾼다 */
  font-size: min(0.8125rem, 16.9px); line-height: 1.7; color: rgba(255, 255, 255, .75);
  white-space: pre-line; word-break: keep-all; text-wrap: balance;
}
.note[hidden] { display: none; }
.wisdom-card .pick { margin-top: 18px; flex: none; }

/* 끝 화면 — 장독대로 물러난 뒤 끝 자막 + 공식 스토어 배지. */
.end {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 0 28px; text-align: center;
  animation: rise 2.5s ease both;
}
.end[hidden] { display: none; }
.end-caption { zoom: var(--card-k, 1); } /* 끝 자막만 그릇에 비례 — 배지는 줄이지 않는다(App Store 배지 최소 높이 40px) */
.end-caption { margin: 0 0 14px; font-size: min(1.1875rem, 24.7px); line-height: 1.6; white-space: pre-line; word-break: keep-all; text-wrap: balance; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); }
/* 앱 안내 한 줄 — 끝 자막과 배지 사이(끝 자막 → 이 줄 → 배지 → 상표 고지). */
.app-line { margin: 0 0 12px; max-width: 320px; font-size: min(0.875rem, 18.2px); line-height: 1.55; color: rgba(245, 241, 232, .86); word-break: keep-all; text-wrap: balance; text-shadow: 0 1px 10px rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; transition: opacity 1.2s ease; }
.frame.show-more .app-line { opacity: 1; visibility: visible; }
/* 공식 배지: 색 · 비율을 바꾸지 않는다. App Store 는 높이 44px(최소 40) · 둘레 여백은 높이의 1/4 이상.
   Google Play PNG 는 파일 안에 여백(높이의 1/4)이 들어 있어, 배지 높이가 같아지게 66px 로 놓는다. */
.badges { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; visibility: hidden; transition: opacity 1.2s ease; }
.frame.show-more .badges { opacity: 1; visibility: visible; }
.badge { display: block; line-height: 0; cursor: pointer; border-radius: 8px; }
.badge[hidden] { display: none; }
.badge-apple { height: 44px; width: auto; margin: 11px; display: block; }
.badge-google { height: 66px; width: auto; display: block; }
/* 상표 고지 — 배지 아래 작게. 배지 둘레 여백(높이의 1/4) 밖에 놓는다. */
.legal { margin: 10px 0 0; max-width: 300px; font-size: min(0.6875rem, 14.3px); line-height: 1.5; color: rgba(245, 241, 232, .62); word-break: keep-all; text-wrap: balance; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.badge:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }

/* 세 갈래 · 물멍 버튼 — 앱 sip_write_choices.dart 와 같은 꼴: 안내 두 줄 + 아래 한 줄. */
.choices {
  position: absolute; left: 0; right: 0; z-index: 3;
  /* 자리는 그릇 기준 — main.js place() 가 top 을 정한다(v1.7 §3-4). */
  display: flex; flex-direction: column; align-items: center;
  padding: 0 12px;
  animation: rise .7s ease both;
}
.choices[hidden] { display: none; }
/* 물멍 안내 — 앱 CaptionOverlay 의 자막 한 줄(15 · 줄 간격 1.55 · 자간 0.2 · 흰 0.82 · 그림자 둘 · 좌우 28)이
   아래 두 버튼 바로 위 12px(kEndCaptionGap)에. 버튼 자리는 그대로 — 안내는 그 위에 얹힌다. 0.6초에 걸쳐
   나타나고 사라진다. */
.gaze-tip {
  position: absolute; left: 28px; right: 28px; bottom: calc(100% + 12px); margin: 0;
  font-size: min(0.9375rem, 19.5px); line-height: 1.55; letter-spacing: .2px; text-align: center;
  color: rgba(255, 255, 255, .82); text-shadow: 0 0 10px rgba(0, 0, 0, .4), 0 0 22px rgba(0, 0, 0, .2);
  word-break: keep-all; text-wrap: balance; pointer-events: none;
  opacity: 0; transition: opacity .6s ease-in;
}
.gaze-tip.on { opacity: 1; transition: opacity .6s ease-out; }
.ask { margin: 0; font-size: min(0.9375rem, 19.5px); line-height: 1.5; text-align: center; word-break: keep-all; text-wrap: balance; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
.ask-note { margin: 2px 0 14px; font-size: min(0.75rem, 15.6px); line-height: 1.5; text-align: center; word-break: keep-all; text-wrap: balance; color: rgba(255, 255, 255, .6); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
/* 버튼은 한 줄 — 좁으면 안쪽 여백 · 간격만 줄인다(.tight · .tighter 를 main.js 가 붙인다).
   그래도 넘치면 앱처럼 두 줄(.wrap — 앱 Wrap: 간격 16 · 줄 사이 10). */
.row { display: flex; flex-wrap: nowrap; justify-content: center; gap: 16px; max-width: 100%; }
.row.tight { gap: 10px; }
.row.tighter { gap: 6px; }
.row.wrap { flex-wrap: wrap; row-gap: 10px; }
.pick {
  cursor: pointer; flex: none;
  min-height: 44px; padding: 12px 14px;
  border: .8px solid rgba(255, 255, 255, .25); border-radius: 22px;
  background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .88);
  font: inherit; font-size: min(0.9375rem, 19.5px); letter-spacing: .2px; white-space: nowrap;
  text-shadow: 0 0 10px rgba(0, 0, 0, .4);
}
.pick.dim { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .5); }
.pick.strong { background: rgba(255, 255, 255, .26); border-color: rgba(255, 255, 255, .55); color: rgba(255, 255, 255, .98); font-weight: 600; }
.row.tight .pick { padding: 12px 10px; }
.row.tighter .pick { padding: 12px 7px; letter-spacing: 0; }
.pick:focus-visible, .text-btn:focus-visible, .safety-btn:focus-visible, .fold:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }

/* 생각 적기 시트 — 앱 WorryInput(showModalBottomSheet)과 같은 꼴: 화면 아래에 붙고 좌우 끝까지,
   위 모서리만 둥글게(20) · 바탕 #15181B · 뒤 화면을 45% 어둡게. 키보드가 올라오면 그 위에 붙는다
   (--kb = 키보드 높이, main.js 가 visualViewport 로 잰다). */
.sheet-scrim { position: absolute; inset: 0; z-index: 5; background: rgba(0, 0, 0, .45); animation: rise .25s ease both; }
.sheet-scrim[hidden] { display: none; }
.sheet {
  position: absolute; z-index: 6; left: 0; right: 0; bottom: var(--kb, 0px);
  padding: 20px 24px calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 20px 20px 0 0;
  background: #15181b;
  animation: sheet-up .25s ease-out both;
}
.frame.kb-open .sheet { padding-bottom: 12px; } /* 키보드 위에 붙을 때는 아래 안전 영역을 띄우지 않는다 */
.sheet[hidden] { display: none; }
.sheet-title { margin: 0; text-align: center; font-size: min(1.0625rem, 22.1px); line-height: 1.5; word-break: keep-all; text-wrap: balance; }
.sheet-note { margin: 4px 0 10px; text-align: center; font-size: min(0.8125rem, 16.9px); color: rgba(245, 241, 232, .6); word-break: keep-all; text-wrap: balance; }
/* 입력칸: 앱처럼 테두리 없이 커서만 — 시트에 하나뿐인 칸이고 뜨자마자 포커스가 간다. */
.worry {
  display: block; width: 100%; resize: none;
  padding: 6px 0; border: 0; border-radius: 0;
  background: transparent; color: var(--paper); caret-color: #c9b8ff;
  font: inherit; font-size: min(1.0625rem, 22.1px); line-height: 1.55;
  -webkit-user-select: text; user-select: text;
}
.worry:focus, .worry:focus-visible { outline: 0; }
/* 글자 수: 입력칸 오른쪽 아래. 그 아래 줄에 닫기(왼쪽) · 흘려보내기(오른쪽). */
.count { margin: 0; text-align: right; font-size: min(0.75rem, 15.6px); color: rgba(245, 241, 232, .4); }
.sheet-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.text-btn { cursor: pointer; min-height: 44px; padding: 0 8px; border: 0; background: none; color: rgba(245, 241, 232, .86); font: inherit; font-size: min(0.96875rem, 20.2px); }
.text-btn.dim { color: rgba(245, 241, 232, .45); }
.text-btn:disabled { color: rgba(245, 241, 232, .25); }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* 안전 카드 — 앱 safety_card.dart 의 색 · 모양. */
.safety {
  position: absolute; inset: 0; z-index: 9;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto; touch-action: pan-y;
  background: rgba(10, 19, 32, .5);
  animation: rise .6s ease both;
}
.safety[hidden] { display: none; }
.safety-card {
  zoom: var(--card-k, 1); /* 그릇에 비례한 크기(v1.7 §3-4) — 0.82 ~ 1.2배 */
  width: 100%; max-width: 340px;
  padding: 24px 24px 20px;
  display: flex; flex-direction: column; align-items: center;
  border-radius: 18px;
  background: rgba(14, 26, 42, .9);
  border: .8px solid rgba(207, 227, 245, .3);
  color: rgba(232, 241, 250, .9);
  text-align: center;
}
.safety-empathy { margin: 0 0 20px; font-size: min(1rem, 20.8px); line-height: 1.6; white-space: pre-line; word-break: keep-all; text-wrap: balance; }
#safety-lines { display: flex; flex-direction: column; align-items: center; }
.safety-btn {
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 12px 20px; margin-top: 10px;
  border: .8px solid rgba(207, 227, 245, .3); border-radius: 22px;
  background: rgba(255, 255, 255, .06); color: rgba(232, 241, 250, .9);
  font: inherit; font-size: min(0.9375rem, 19.5px); text-decoration: none; word-break: keep-all;
}
.safety-btn.strong { margin-top: 0; background: rgba(255, 255, 255, .14); font-size: min(1rem, 20.8px); }
.safety-number { margin: 12px 0 0; font-size: min(0.875rem, 18.2px); -webkit-user-select: text; user-select: text; }
.safety-number[hidden] { display: none; }

@keyframes rise { from { opacity: 0; } to { opacity: 1; } }

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  .choices, .sheet, .sheet-scrim, .safety, .wisdom-card { animation-duration: .01s; }
  .wisdom.halo { animation: none; } /* 번짐은 다 나온 모습으로 */
  .end { animation-duration: .01s; }
  .frame.far-back .far, .frame.far-back .shade { transition-duration: .01s; }
}
