:root {
  --paper: #F6F1E7;
  --paper-2: #EFE5D3;
  --card: #FFFDF8;
  --ink: #1F1B16;
  --ink-2: #4A4239;
  --muted: #6E6255;
  --rule: #E4D8C4;
  --accent: #9B2C1F;
  --accent-2: #B8432F;
  --accent-soft: #F6E2D8;
  --accent-ink: #FFF8EE;
  --gold: #E9A94B;
  --sage: #86A07F;
  --sage-soft: #E6EDDF;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 6px 18px rgba(90, 60, 30, .07);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(520px 420px at 88% 8%, rgba(233, 169, 75, .20), transparent 70%),
    radial-gradient(560px 460px at 6% 96%, rgba(184, 67, 47, .13), transparent 70%),
    linear-gradient(160deg, #FBF6EE 0%, #F6EEE2 55%, #F3E7D6 100%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(155, 44, 31, .45); outline-offset: 2px; border-radius: 10px; }

/* ---------- 바깥 무대 ---------- */
.stage {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 28px 24px;
}
.side { width: 292px; flex: none; }
.side-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .02em; }
.side-title { margin: 0 0 14px; font-family: var(--serif); font-size: 27px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; }
.side-text { margin: 0 0 8px; font-size: 14.5px; line-height: 1.75; color: var(--ink-2); }
.side-sub { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.side-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.side-steps li { border-bottom: 1px solid var(--rule); }
.side-steps button {
  width: 100%; display: grid; grid-template-columns: 104px 1fr auto; align-items: center; gap: 8px;
  padding: 11px 6px; min-height: 44px; background: none; border: 0; text-align: left; border-radius: 8px;
  transition: background .2s var(--ease);
}
.side-steps button:hover { background: rgba(255, 253, 248, .7); }
.side-steps .d { white-space: nowrap; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side-steps .n { font-size: 14.5px; font-weight: 600; }
.side-steps .p { font-size: 11px; color: var(--muted); }
.side-steps button[aria-current="step"] .n { color: var(--accent); }
.side-steps button[aria-current="step"] { background: rgba(255, 253, 248, .85); box-shadow: inset 3px 0 0 var(--accent); }
.side-note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- 폰 ---------- */
.phone {
  flex: none;
  width: 390px;
  height: min(844px, calc(100vh - 56px));
  min-height: 640px;
  padding: 11px;
  border-radius: 56px;
  background: #1E1A16;
  box-shadow: 0 0 0 1.5px #3A332C inset, 0 30px 60px -18px rgba(80, 50, 20, .35), 0 12px 24px -12px rgba(80, 50, 20, .25);
}
.screen {
  position: relative;
  height: 100%;
  border-radius: 46px;
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  isolation: isolate;
}
.island { position: absolute; z-index: 30; top: 10px; left: 50%; transform: translateX(-50%); width: 112px; height: 32px; border-radius: 20px; background: #0E0C0A; }
.statusbar {
  flex: none; height: 50px; display: flex; align-items: center; justify-content: space-between;
  padding: 6px 30px 0 34px; font-weight: 600; font-size: 15px; position: relative; z-index: 20;
}
.sb-icons { display: flex; gap: 6px; align-items: center; color: var(--ink); }
.sb-icons svg { fill: currentColor; }
#view { flex: 1; overflow-y: auto; overflow-x: hidden; position: relative; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
#view:focus { outline: none; }
#view::-webkit-scrollbar { width: 0; }

.page { padding: 4px 20px 24px; animation: pageIn .32s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- 머리 ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; margin: 0 -8px 6px; position: sticky; top: 0; z-index: 5; background: var(--paper); padding: 0 8px; }
.top.with-bar { padding-bottom: 6px; }
.top h1 { flex: 1; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 14px; flex: none; position: relative; }
.icon-btn:hover { background: rgba(31, 27, 22, .05); }
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn .dot { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--paper); }
.logo { font-family: var(--serif); font-weight: 700; font-size: 26px; letter-spacing: -.03em; display: inline-flex; align-items: baseline; gap: 2px; }
.logo i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-left: 1px; }
.pill-btn {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--rule); background: var(--card); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.pill-btn svg { width: 14px; height: 14px; }
.tap-pad { padding: 4px 0; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- 공통 조각 ---------- */
.kicker { margin: 8px 0 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.hero-title { margin: 0 0 22px; font-family: var(--serif); font-size: 31px; line-height: 1.36; font-weight: 700; letter-spacing: -.035em; }
.hero-title em { font-style: normal; color: var(--accent); }
h2.sec { margin: 26px 0 10px; font-size: 16.5px; font-weight: 700; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
h2.sec small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; line-height: 1.6; }
p { line-height: 1.65; }

.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0 0 20px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.badge .b-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--card); display: grid; place-items: center; box-shadow: var(--shadow); color: var(--accent); }
.badge .b-ic svg { width: 26px; height: 26px; }

.art-card { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: #F5E6D3; }
.art-card svg { display: block; width: 100%; height: auto; }
.art-cap { position: absolute; left: 16px; top: 14px; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.5; color: var(--accent); text-shadow: 0 1px 0 rgba(255, 248, 238, .6); }
.art-strip { margin: 0; padding: 12px 16px 14px; background: #FFFDF8; font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.55; color: var(--accent); letter-spacing: -.02em; }
.art-plain { border-radius: var(--r-lg); overflow: hidden; }
.art-plain svg { display: block; width: 100%; height: auto; }

.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; padding: 0 20px;
  border-radius: 18px; border: 0; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 18px -8px rgba(155, 44, 31, .6); }
.btn.primary:hover { background: #8A2619; }
.btn.ghost { background: var(--card); color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost:hover { background: #fff; }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn[disabled], .btn[aria-disabled="true"] { background: #E7DED0; color: #8A7E70; box-shadow: none; cursor: not-allowed; border: 0; }
.btn svg { width: 20px; height: 20px; }
.btn-stack { display: grid; gap: 10px; margin-top: 18px; }
.btn.sm { min-height: 44px; font-size: 14.5px; border-radius: 14px; }

.card { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 10px; }
.card h3 { margin: 0 0 6px; font-size: 15.5px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; color: var(--ink-2); }
.card.tint { background: var(--accent-soft); box-shadow: none; }
.card.sage { background: var(--sage-soft); box-shadow: none; }
.card.line { background: transparent; box-shadow: none; border: 1px dashed #D3C4AC; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card);
  font-size: 14px; font-weight: 600; color: var(--ink-2); transition: all .18s var(--ease);
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.tag.red { background: var(--accent-soft); color: var(--accent); }
.tag.sage { background: var(--sage-soft); color: #45603F; }
.tag.dark { background: var(--ink); color: var(--paper); }

.meta-line { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 253, 248, .7); font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.meta-line svg { width: 18px; height: 18px; flex: none; color: var(--accent); }

.disc { margin: 26px 0 4px; text-align: center; font-size: 11.5px; line-height: 1.6; color: #8A7E70; }
.demo-note { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); background: rgba(255, 253, 248, .75); border: 1px dashed #D3C4AC; border-radius: 12px; padding: 8px 12px; margin: 0 0 14px; line-height: 1.5; }
.demo-note svg { width: 15px; height: 15px; flex: none; }

/* ---------- 폼 ---------- */
.field { margin: 0 0 20px; }
.field > label, .field > .lbl { display: block; font-size: 14.5px; font-weight: 700; margin: 0 0 8px; }
.field .hint { display: block; margin: 8px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--rule); background: var(--card);
  font-size: 15.5px; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 44, 31, .14); }
textarea.input { padding: 14px 16px; min-height: 92px; line-height: 1.6; resize: none; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg.two { grid-template-columns: 1fr 1fr; }
.seg button { min-height: 48px; border-radius: 14px; border: 1px solid var(--rule); background: var(--card); font-size: 14.5px; font-weight: 600; color: var(--ink-2); padding: 0 8px; }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.box { background: var(--card); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); margin: 0 0 20px; }
.box-title { display: flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 700; margin: 0 0 4px; }
.box-title svg { width: 18px; height: 18px; color: var(--accent); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; min-height: 44px; cursor: pointer; font-size: 14.5px; line-height: 1.5; }
.check + .check { border-top: 1px solid #F0E7D8; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .bx { width: 24px; height: 24px; flex: none; border-radius: 8px; border: 1.6px solid #CDBEA7; background: #fff; display: grid; place-items: center; margin-top: -1px; transition: all .18s var(--ease); }
.check .bx svg { width: 15px; height: 15px; color: #fff; opacity: 0; }
.check input:checked + .bx { background: var(--accent); border-color: var(--accent); }
.check input:checked + .bx svg { opacity: 1; }
.check input:focus-visible + .bx { outline: 3px solid rgba(155, 44, 31, .45); outline-offset: 2px; }
.check small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.check.err .bx { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(155, 44, 31, .15); }
.err-msg { color: var(--accent); font-size: 13px; margin: 0 0 10px; font-weight: 600; min-height: 1em; }
.link-btn { background: none; border: 0; color: var(--accent); font-size: 13px; font-weight: 600; padding: 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.reveal { overflow: hidden; transition: max-height .3s var(--ease), opacity .3s var(--ease); }

/* ---------- 홈 ---------- */
.hello { margin: 6px 0 16px; }
.hello p { margin: 0; font-size: 14px; color: var(--muted); }
.hello h2 { margin: 2px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.42; font-weight: 700; letter-spacing: -.03em; }
.hello h2 em { font-style: normal; color: var(--accent); }
.stepper { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; }
.stepper::before { content: ""; position: absolute; left: 8.33%; right: 8.33%; top: 11px; height: 2px; background: #E6DAC6; }
.stepper .fill { position: absolute; left: 8.33%; top: 11px; height: 2px; background: var(--accent); }
.stepper li { position: relative; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.stepper .s-dot { width: 24px; height: 24px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 2px solid #E0D3BE; display: grid; place-items: center; position: relative; }
.stepper .done .s-dot { background: var(--accent); border-color: var(--accent); }
.stepper .done .s-dot svg { width: 12px; height: 12px; color: #fff; }
.stepper .now .s-dot { border-color: var(--accent); box-shadow: 0 0 0 5px rgba(155, 44, 31, .14); }
.stepper .now .s-dot::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.stepper .now { color: var(--accent); font-weight: 800; }
.round-card { padding: 18px 16px 14px; }
.round-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.round-head h3 { margin: 0; }
.dday { font-family: var(--serif); font-weight: 700; color: var(--accent); font-size: 26px; line-height: 1; white-space: nowrap; }
.dday small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; text-align: right; }

.ms { display: flex; gap: 14px; align-items: center; width: 100%; text-align: left; border: 0; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow); padding: 14px; transition: transform .15s var(--ease); }
.ms + .ms { margin-top: 10px; }
.ms:active { transform: scale(.99); }
.ms .sheet-ic { width: 46px; height: 58px; flex: none; border-radius: 6px; background: #FBF5EA; border: 1px solid #E8DCC8; position: relative; overflow: hidden; }
.ms .sheet-ic::before { content: ""; position: absolute; left: 8px; right: 8px; top: 10px; height: 6px; border-radius: 2px; background: var(--ink); }
.ms .sheet-ic::after { content: ""; position: absolute; left: 8px; right: 12px; top: 24px; height: 22px; background: repeating-linear-gradient(#E1D4BE 0 2px, transparent 2px 7px); }
.ms .body { flex: 1; min-width: 0; }
.ms .code { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: .01em; }
.ms .info { font-size: 12.5px; color: var(--muted); margin: 2px 0 8px; }
.bar { height: 6px; border-radius: 6px; background: #EFE5D4; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .4s var(--ease); }
.bar.sage i { background: var(--sage); }
.ms .right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.ms .chev { width: 18px; height: 18px; color: #B3A48F; }

.more-card { display: flex; gap: 14px; align-items: center; }
.more-card .num { font-family: var(--serif); font-weight: 700; font-size: 30px; color: var(--accent); line-height: 1; flex: none; width: 54px; text-align: center; }
.more-card .num small { display: block; font-family: var(--sans); font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { display: flex; gap: 10px; padding: 10px 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.rules li + li { border-top: 1px solid #F0E7D8; }
.rules li svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }

/* ---------- 읽기 ---------- */
.read-top { position: sticky; top: 0; z-index: 6; background: var(--paper); margin: 0 -20px; padding: 0 12px 0; }
.read-top .row { display: flex; align-items: center; gap: 6px; min-height: 52px; }
.read-top .t { flex: 1; min-width: 0; }
.read-top .t b { display: block; font-family: var(--serif); font-size: 16.5px; }
.read-top .t span { font-size: 12px; color: var(--muted); }
.read-top .pct { font-size: 12.5px; font-weight: 700; color: var(--accent); min-width: 40px; text-align: right; padding-right: 8px; font-variant-numeric: tabular-nums; }
.read-progress { height: 3px; background: #EADFCC; margin: 0 -12px; }
.read-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .12s linear; }
.manuscript { background: var(--card); border-radius: 6px; box-shadow: var(--shadow); padding: 26px 22px 30px; margin-top: 16px; }
.manuscript .ms-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.redact { display: inline-block; height: 12px; width: 64px; background: var(--ink); border-radius: 2px; vertical-align: middle; }
.manuscript h2 { margin: 0 0 18px; font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.manuscript p { font-family: var(--serif); font-size: 16px; line-height: 2; margin: 0 0 1em; text-indent: 1em; color: #2A241E; letter-spacing: -.01em; }
.manuscript .cut { text-indent: 0; text-align: center; font-family: var(--sans); font-size: 12.5px; color: var(--muted); margin: 22px 0 0; line-height: 1.6; }
.quiz { margin-top: 18px; }
.quiz.locked { opacity: .55; }
.quiz .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.quiz .opts button { min-height: 50px; border-radius: 14px; border: 1px solid var(--rule); background: #fff; font-weight: 600; font-size: 15px; }
.quiz .opts button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.quiz .opts button.wrong { border-color: #C9A27A; background: #FBF1E3; }
.quiz-msg { font-size: 13px; margin: 10px 0 0; min-height: 1.4em; font-weight: 600; }
.quiz-msg.ok { color: #3E6B3A; }
.quiz-msg.no { color: #8A5A00; }

/* ---------- 투표 ---------- */
.vote-hero { text-align: center; margin: 4px 0 20px; }
.vote-hero .code-big { font-family: var(--serif); font-size: 26px; font-weight: 700; margin: 8px 0 4px; }
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.score {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; border-radius: 18px;
  border: 1px solid var(--rule); background: var(--card); padding: 8px 2px; transition: all .18s var(--ease);
}
.score b { font-family: var(--serif); font-size: 28px; line-height: 1; }
.score span { font-size: 10.5px; color: var(--muted); font-weight: 600; line-height: 1.3; text-align: center; }
.score[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 10px 18px -10px rgba(155, 44, 31, .7); }
.score[aria-pressed="true"] span { color: rgba(255, 248, 238, .9); }
.count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }

.done-wrap { text-align: center; padding-top: 6px; }
.done-wrap h2 { font-family: var(--serif); font-size: 24px; margin: 22px 0 8px; letter-spacing: -.03em; line-height: 1.4; }
.done-wrap > p { margin: 0 auto; color: var(--ink-2); font-size: 15px; max-width: 300px; }
.receipt { margin: 18px 0 0; text-align: left; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; font-size: 14px; }
.receipt .r-row + .r-row { border-top: 1px solid #F0E7D8; }
.receipt .r-row span:first-child { color: var(--muted); }
.receipt .r-row span:last-child { font-weight: 600; text-align: right; }

/* ---------- 알림·타임라인 ---------- */
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl > li { position: relative; padding: 0 0 18px 30px; }
.tl > li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: -2px; width: 2px; background: #E6DAC6; }
.tl > li:last-child::before { display: none; }
.tl .pin { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid #D9CBB3; display: grid; place-items: center; }
.tl .pin.on { border-color: var(--accent); background: var(--accent); }
.tl .pin.on svg { width: 11px; height: 11px; color: #fff; }
.tl .pin.now { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(155, 44, 31, .14); }
.tl .pin.now::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.tl .when { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px; display: block; }
.noti-strong { font-size: 15.5px; font-weight: 700; line-height: 1.5; margin: 0 0 6px; }
.noti-strong em { font-style: normal; color: var(--accent); font-family: var(--serif); }
.pick-list { list-style: none; margin: 10px 0 0; padding: 0; }
.pick-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.pick-list li + li { border-top: 1px solid #F0E7D8; }
.pick-list .no { width: 22px; font-family: var(--serif); color: var(--muted); font-weight: 700; }
.pick-list .tt { flex: 1; min-width: 0; }
.pick-list .tt b { font-family: var(--serif); font-weight: 700; }
.pick-list .tt small { display: block; font-size: 12px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: #DCCFBA; transition: background .2s var(--ease); }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 3px solid rgba(155, 44, 31, .45); outline-offset: 2px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- 편집 ---------- */
.book-chip { display: flex; gap: 14px; align-items: center; }
.book-chip .mini-cover { width: 56px; flex: none; border-radius: 3px; overflow: hidden; box-shadow: 2px 3px 8px rgba(60, 40, 20, .18); }
.book-chip .mini-cover svg { display: block; width: 100%; height: auto; }
.edit-steps { list-style: none; padding: 0; margin: 0; }
.edit-steps li { display: flex; gap: 14px; padding: 14px 0; }
.edit-steps li + li { border-top: 1px solid #F0E7D8; }
.edit-steps .k { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 17px; background: var(--paper-2); color: var(--muted); }
.edit-steps .done .k { background: var(--accent); color: var(--accent-ink); }
.edit-steps .now .k { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.edit-steps h4 { margin: 0 0 2px; font-size: 15px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.edit-steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.memo { position: relative; background: #FFF9EC; border-radius: 4px 16px 16px 16px; padding: 16px 16px 14px; box-shadow: var(--shadow); border-left: 3px solid var(--gold); }
.memo .from { font-size: 12px; color: var(--muted); font-weight: 600; margin: 0 0 8px; display: flex; justify-content: space-between; }
.memo blockquote { margin: 0; font-family: var(--serif); font-size: 14.5px; line-height: 1.85; color: #2A241E; }
.memo mark { background: linear-gradient(transparent 58%, rgba(233, 169, 75, .45) 58%); color: inherit; padding: 0 1px; }
.memo del { color: #A6574A; text-decoration-thickness: 1.5px; }

/* ---------- 펀딩 ---------- */
.fund-hero { display: flex; justify-content: center; padding: 26px 0 22px; background: radial-gradient(closest-side, rgba(233, 169, 75, .22), transparent) center/100% 100% no-repeat, linear-gradient(#EFE3D0, #EADBC4); border-radius: var(--r-lg); position: relative; }
.fund-hero .bk { width: 150px; border-radius: 3px; overflow: hidden; box-shadow: 6px 10px 22px rgba(70, 45, 20, .3), 1px 1px 0 rgba(0, 0, 0, .05); transform: rotate(-2deg); }
.fund-hero .bk svg { display: block; width: 100%; height: auto; }
.fund-hero .ex { position: absolute; right: 12px; bottom: 10px; }
.price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 0 4px; }
.price-row .pv { font-family: var(--serif); font-weight: 700; font-size: 30px; letter-spacing: -.02em; line-height: 1.1; }
.price-row .pv small { font-family: var(--sans); font-size: 14px; color: var(--muted); font-weight: 600; margin-right: 6px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.fact { background: var(--card); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
.fact span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.fact b { display: block; font-size: 14.5px; margin-top: 3px; line-height: 1.45; }
.gift { display: flex; gap: 12px; align-items: center; }
.gift + .gift { margin-top: 10px; }
.gift .g-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.gift .g-ic svg { width: 22px; height: 22px; }
.gift .g-b { flex: 1; }
.gift .g-b b { display: block; font-size: 14.5px; }
.gift .g-b small { color: var(--muted); font-size: 12.5px; }
.gift .g-p { font-weight: 700; font-size: 15px; white-space: nowrap; }

/* ---------- 서재 ---------- */
.thanks-page { background: #FBF7EF; border-radius: 4px; padding: 20px 18px; box-shadow: var(--shadow); text-align: center; font-family: var(--serif); position: relative; }
.thanks-page .h { font-size: 12.5px; letter-spacing: .2em; color: var(--muted); margin: 0 0 12px; }
.thanks-page .names { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 14.5px; color: #8E8173; }
.thanks-page .names .me { color: var(--accent); font-weight: 700; background: linear-gradient(transparent 60%, rgba(233, 169, 75, .4) 60%); padding: 0 2px; }
.event-card { overflow: hidden; padding: 0; }
.event-card .art-plain { border-radius: 0; }
.event-card .ec-b { padding: 16px; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; font-size: 14px; }
.mini-list li + li { border-top: 1px solid #F0E7D8; }
.mini-list b { font-family: var(--serif); }

/* ---------- 탭바 ---------- */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 253, 248, .96); border-top: 1px solid #ECE2D2; padding: 6px 8px 22px; position: relative; z-index: 8; }
.tabbar[hidden] { display: none; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px; border: 0; background: none; font-size: 11.5px; font-weight: 600; color: #9C8F80; border-radius: 12px; position: relative; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab .dot { position: absolute; top: 6px; left: calc(50% + 8px); width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- 시트·토스트 ---------- */
.sheet-wrap { position: absolute; inset: 0; z-index: 40; }
.sheet-wrap[hidden] { display: none; }
.sheet-dim { position: absolute; inset: 0; background: rgba(31, 27, 22, .38); animation: fadeIn .25s var(--ease) both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88%; overflow-y: auto; background: var(--paper); border-radius: 26px 26px 0 0; padding: 8px 20px 28px; animation: up .32s var(--ease) both; }
.sheet-grip { width: 40px; height: 5px; border-radius: 3px; background: #D8CBB6; margin: 4px auto 14px; }
.sheet h2 { margin: 0 0 6px; font-family: var(--serif); font-size: 21px; letter-spacing: -.02em; }
.sheet .lead { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.stage-list { list-style: none; padding: 0; margin: 0; }
.stage-list button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border: 0; background: none; text-align: left; border-radius: 14px; }
.stage-list button:hover { background: var(--card); }
.stage-list button[aria-current="step"] { background: var(--card); box-shadow: inset 0 0 0 1.5px var(--accent); }
.stage-list .no { width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 14px; flex: none; }
.stage-list button[aria-current="step"] .no { background: var(--accent); color: var(--accent-ink); }
.stage-list .nm { flex: 1; font-weight: 600; font-size: 15px; }
.stage-list .nm small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 1px; }
.dl { margin: 0; }
.dl > div { display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.6; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; color: var(--ink-2); }
.toast { position: absolute; left: 50%; bottom: 104px; transform: translate(-50%, 12px); z-index: 50; max-width: calc(100% - 40px); width: max-content; background: rgba(31, 27, 22, .92); color: #FBF6EE; font-size: 13.5px; font-weight: 600; padding: 12px 18px; border-radius: 14px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); text-align: center; line-height: 1.5; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }

/* ---------- 반응형 ---------- */
@media (max-width: 1040px) {
  .side { display: none; }
}
@media (max-width: 600px) {
  body { background: var(--paper); }
  .stage { display: block; padding: 0; min-height: 0; }
  .phone { width: 100%; height: 100vh; height: 100dvh; min-height: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .screen { border-radius: 0; }
  .island, .statusbar { display: none; }
  .page { padding-top: max(6px, env(safe-area-inset-top)); }
  .tabbar { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .toast { bottom: 90px; }
}
@media (max-width: 360px) {
  .hero-title { font-size: 27px; }
  .score span { font-size: 9.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
