/* 에그당 사주: 1980년대 한국 인쇄물(스티커·딱지·분식집 메뉴판) 느낌의 프로토타입.
   색은 별색 네 가지(먹남색·토마토 빨강·코발트 파랑·달걀 노랑)와 종이색만 쓴다. */
:root {
  --fs-3xs: 8px;
  --fs-2xs: 9px;
  --fs-xs: 10px;
  --fs-sm: 11px;
  --fs-base: 12px;
  --fs-md: 13px;
  --fs-lg: 14px;
  --fs-lg2: 15px;
  --fs-xl: 16px;
  --fs-2xl: 18px;
  --fs-3xl: 20px;
  --fs-4xl: 22px;
  --fs-5xl: 24px;
  --fs-6xl: 26px;
  --fs-7xl: 28px;
  --fs-8xl: 32px;
  --fs-9xl: 40px;
  --fs-10xl: 48px;
  --fs-display: 64px;
  --fs-icon: 38px;

  /* 별색 */
  --ink: #1e1b3a;
  --red: #e8483f;
  --blue: #2456d6;
  --yolk: #f6b81a;
  /* 내년 운세 달 결 색(뜻을 전하는 색: 좋음 초록 · 섞임 노른자 · 무거움 빨강). 노랑·빨강은 별색 노른자·빨강을 옅게 쓴 것 */
  --k-good: #bfe3c4;
  --k-good-hi: #3f9a55;
  --k-mixed: #fbe39a;
  --k-heavy: #f6b3ad;

  /* 종이 */
  --paper: #f3ead7;
  --paper-hi: #fbf6ea;
  --paper-lo: #e6d9bd;
  --ink-soft: #5b5670;

  --gray: #c9c9c6;
  /* 계란색: 캐릭터 몸과 같은 크림 */
  --shell: #f8e9d0;
  --shell-lo: #ecd8b8;

  --line: 2.5px solid var(--ink);
  --line-thick: 3px solid var(--ink);
  --drop: 4px 4px 0 var(--ink);
  --drop-sm: 3px 3px 0 var(--ink);

  --col-w: 430px;
  --gutter: 16px;
  --tab-h: 66px;

  --sign: 'Black Han Sans', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --body: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  --hanja: 'Nanum Myeongjo', 'AppleMyungjo', 'Noto Serif CJK KR', 'Batang', serif;

}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--body);
  font-size: var(--fs-lg);
  line-height: 1.6;
  color: var(--ink);
  background: var(--gray);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.lucide { width: 18px; height: 18px; stroke-width: 2.25; flex: none; }

/* ---------- 무대 ---------- */
.stage {
  height: 100%;
  display: flex;
  justify-content: center;
  background: var(--gray);
}

.app {
  position: relative;
  width: 100%;
  max-width: var(--col-w);
  height: 100%;
  overflow: hidden;
  background-color: var(--paper);
  /* 종이 결: 아주 옅은 잡티 */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12  0 0 0 0 0.1  0 0 0 0 0.2  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

@media (min-width: 600px) {
  .app { border-left: var(--line-thick); border-right: var(--line-thick); }
}

.view {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 var(--gutter) calc(var(--tab-h) + 30px + env(safe-area-inset-bottom));
  outline: none;
}
.view.no-tabs { padding-bottom: 32px; }

/* ---------- 공통 조각 ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 8px;
}

/* 이름 옆 버전 칩 */
.brand { display: inline-flex; align-items: center; gap: 8px; }
.ver-chip {
  padding: 1px 7px 2px;
  border: 2px solid var(--ink); border-radius: 999px;
  background: var(--paper-hi); color: var(--ink);
  font-size: var(--fs-xs); font-weight: 800; line-height: 1.3; white-space: nowrap;
  transform: rotate(3deg);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 4px;
  background: var(--red);
  color: var(--paper-hi);
  border: var(--line);
  box-shadow: var(--drop-sm);
  font-family: var(--sign);
  font-size: var(--fs-xl);
  letter-spacing: 0.02em;
  transform: rotate(-2deg);
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 6px 10px 6px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 700;
}

.purse {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
  font-size: var(--fs-lg);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.purse img { width: 20px; height: 25px; object-fit: contain; }
.purse .purse-plus {
  width: 16px; height: 16px;
  padding: 2px;
  border-radius: 50%;
  background: var(--yolk);
  border: 1.5px solid var(--ink);
  stroke-width: 3;
}
.purse:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.purse.bump { animation: bump 0.45s ease; }
/* 손님: 지갑 자리에 로그인 버튼 */
.purse.login-chip { gap: 4px; padding: 6px 12px 6px 10px; background: var(--yolk); font-size: var(--fs-md); }
.purse.login-chip .lucide { width: 16px; height: 16px; stroke-width: 2.5; }
@keyframes bump { 40% { transform: scale(1.12) rotate(-3deg); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 0 20px;
  border: var(--line-thick);
  border-radius: 14px;
  font-family: var(--sign);
  font-size: var(--fs-2xl);
  letter-spacing: 0.02em;
  box-shadow: var(--drop);
  transition: transform 0.06s, box-shadow 0.06s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--yolk); color: var(--ink); }
.btn-red { background: var(--red); color: var(--paper-hi); }
.btn-quiet { background: var(--paper-hi); color: var(--ink); }

.demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border: 1.5px solid var(--blue);
  border-radius: 4px;
  color: var(--blue);
  background: var(--paper-hi);
  font-size: var(--fs-xs);
  font-weight: 700;
  white-space: nowrap;
}
.demo-tag .lucide { width: 12px; height: 12px; }

.screen-title {
  margin: 4px 0 2px;
  font-family: var(--sign);
  font-weight: 400;
  font-size: var(--fs-7xl);
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-shadow: 2px 2px 0 var(--yolk);
}
.screen-sub {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: var(--fs-lg);
}

/* 당이 */
.dangi {
  position: relative;
  display: block;
  margin: 0 auto;
  border: 0;
  padding: 0;
  background: none;
  isolation: isolate;
}
.dangi img { width: 100%; height: auto; transform-origin: 50% 95%; }
.dangi .alt-pose { position: absolute; inset: 0; opacity: 0; }
.dangi.posing .main-pose { opacity: 0; }
.dangi.posing .alt-pose { opacity: 1; }

/* 노란 해 + 검정 그림자: 주인공 뒤 원판 (v9 대표님 지시) */
.halo {
  position: absolute;
  z-index: -1;
  left: 50%; top: 52%;
  width: 92%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--yolk);
  border: var(--line-thick);
  box-shadow: 7px 5px 0 var(--ink);
}

@media (prefers-reduced-motion: no-preference) {
  .dangi.idle .main-pose { animation: bob 2.6s steps(2, jump-none) infinite; }
  .dangi.hop img { animation: hop 0.55s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(-1.5deg); }
}
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  25% { transform: scale(1.06, 0.92); }
  55% { transform: translateY(-20px) scale(0.97, 1.04); }
  100% { transform: translateY(0) scale(1, 1); }
}

/* ---------- 입력 ---------- */
.form-card {
  padding: 20px 18px 22px;
  border: var(--line-thick);
  border-radius: 16px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
}
.field { margin-bottom: 16px; }
.field-label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-md);
  font-weight: 800;
}
.field-label em { margin-left: 4px; font-style: normal; font-weight: 500; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--fs-xl);
  appearance: none;
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.date-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.date-row .select {
  min-width: 0;
  padding-left: 12px;
  padding-right: 26px;
  background-position: calc(100% - 15px) 21px, calc(100% - 9px) 21px;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  box-shadow: 3px 3px 0 var(--blue);
}

.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: var(--fs-lg2);
  font-weight: 700;
  background: var(--paper);
  cursor: pointer;
}
.seg label + input + label { border-left: var(--line); }
.seg input:checked + label { background: var(--blue); color: var(--paper-hi); }
.seg input:focus-visible + label { outline: 3px solid var(--yolk); outline-offset: -5px; }

.form-error {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--red);
  font-size: var(--fs-md);
  font-weight: 700;
}

/* ---------- 홈 ---------- */
.notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 6px 0 4px;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
  text-align: left;
  font-size: var(--fs-md);
  font-weight: 600;
}
.notice img { width: 34px; height: 36px; object-fit: contain; }
.notice b { color: var(--red); font-weight: 800; }
.notice .lucide { margin-left: auto; }
.notice.hot { background: var(--yolk); }

/* 홈 메뉴: 위에 오늘의 운세 큰 카드, 아래에 에그가 컵에 하나씩 앉은 2열 격자.
   칸마다 별색 바탕 + 줄무늬, 글자는 미색 이름표 위에 둔다 */
.menus { margin-top: 6px; }
.home-title {
  margin: 6px 0 12px;
  font-family: var(--sign);
  font-weight: 400;
  font-size: var(--fs-5xl);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-shadow: 2px 2px 0 var(--yolk);
}

.price-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 2px 10px 2px 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: var(--fs-md);
  font-weight: 800;
  white-space: nowrap;
}
.price-chip img { width: 16px; height: 20px; object-fit: contain; }
.price-chip.free { background: var(--red); color: var(--paper-hi); padding-left: 10px; }
.price-chip.soon { background: var(--paper-lo); color: var(--ink-soft); padding-left: 10px; }

/* 메뉴별 바탕 */
/* 메뉴별 바탕: 줄무늬·점무늬 없이 민 색만(대표님 지시 2026-11-23) */
.t-blue { background-color: var(--blue); }
.t-red { background-color: var(--red); }
.t-paper { background-color: var(--paper-hi); }
.t-yolk { background-color: var(--yolk); }
.t-lo { background-color: var(--paper-lo); }
.t-ink { background-color: var(--ink); }

/* 에그 그림 자리: 미색 원판(바탕 무늬가 몸에 비치지 않게) + 컵 안쪽 + 에그 + 컵 앞벽 */
.egg-art {
  position: relative;
  display: block;
  height: 104px;
}
.egg-art > * { position: absolute; }
.egg-art .disc {
  left: 50%;
  top: 0;
  width: 90px;
  height: 90px;
  margin-left: -45px;
  border-radius: 50%;
  background: var(--paper-hi);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.egg-art > img {
  left: 0; right: 0;
  bottom: 4px;
  height: 96px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
  transform-origin: 50% 95%;
}
/* 컵 안쪽 테두리: 에그 뒤에서 입구만 보인다 */
.cup-in {
  left: 50%;
  bottom: 19px;
  width: 92px;
  height: 22px;
  margin-left: -46px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: var(--paper-lo);
  box-shadow: inset 0 7px 0 rgba(30, 27, 58, 0.28);
}
/* 컵 앞벽: 민 색 */
.cup-out {
  left: 50%;
  bottom: 0;
  width: 92px;
  height: 31px;
  margin-left: -46px;
  border: 2.5px solid var(--ink);
  border-radius: 8px 8px 46px 46px / 6px 6px 26px 26px;
  background-color: var(--paper-lo);
  box-shadow: 3px 3px 0 var(--ink);
}

/* 눌렀을 때 폴짝 */
@media (prefers-reduced-motion: no-preference) {
  .egg-art.hop > img, .egg-art.hop > .raw-egg { animation: hop 0.55s cubic-bezier(.3, 1.6, .5, 1); }
}

/* ---- 오늘의 알 ----
   하루 한 번 세 번 두드려 깨는 알. 알은 날마다 같은 계란색(--shell), 칸은 미색 종이 한 장.
   낮은 가로 칸: 왼쪽에 알, 오른쪽에 이름·한 줄(깨면 오늘의 한 줄 쪽지).
   알 그림은 app.js 의 SVG(좌표는 px)이고, 색은 아래 변수로 칠한다 */
.egg-card {
  --egg: var(--shell);
  --egg-crack: var(--ink);
  --egg-shade: var(--ink);
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  column-gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 12px;
  border: var(--line-thick);
  border-radius: 18px;
  background: var(--paper-hi);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: left;
}

.egg-side { min-width: 0; }
.egg-head { display: flex; align-items: center; gap: 8px; }
.egg-title {
  margin: 0;
  font-family: var(--sign);
  font-weight: 400;
  font-size: var(--fs-4xl);
  line-height: 1.2;
}
.egg-line { margin: 4px 0 0; font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); line-height: 1.45; }
.egg-card.broken .egg-line { display: none; }

.egg-btn {
  position: relative;
  display: block;
  width: 96px;
  height: 117px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.egg-btn:focus-visible { outline-offset: 6px; border-radius: 16px; }
.egg-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 92%;
}
.egg-ground { fill: var(--paper-lo); stroke: var(--ink); stroke-width: 2.5; }
.egg-shadow { fill: var(--egg-shade); }
.egg-shell { fill: var(--egg); stroke: var(--ink); stroke-width: 4; }
.egg-face { fill: var(--ink); }
.egg-mouth { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-linecap: round; }
.egg-shine { fill: none; stroke: rgba(255, 255, 255, 0.85); stroke-width: 6; stroke-linecap: round; }
.egg-crack { fill: none; stroke: var(--egg-crack); stroke-width: 4; stroke-linejoin: miter; stroke-linecap: round; }
.egg-rim { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: miter; opacity: 0; }
.egg-card.broken .egg-rim { opacity: 1; }
.shell { visibility: hidden; }
.egg-card.broken .shell { visibility: visible; }
.egg-card.broken .egg-whole { visibility: hidden; }
.egg-card.broken .egg-crack { opacity: 0; }

/* 위 껍질: 깨지면 톡 튀어 올라 사라진다 */
.shell-top-wrap {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.45s cubic-bezier(.3, 1.3, .5, 1), opacity 0.3s ease 0.12s;
}
.egg-card.broken .shell-top-wrap { transform: translate(52px, -44px) rotate(40deg); opacity: 0; }

/* 깨진 알에서 올라오는 에그: 다리는 아래 껍질 뒤에 숨는다 */
.hatchling {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 74px;
  max-width: none;
  transform: translate(-50%, 46px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.3, 1.5, .5, 1) 0.15s, opacity 0.15s ease 0.15s;
}
.egg-card.broken .hatchling { transform: translate(-50%, 0); opacity: 1; }
/* 노른자: 노란 몸, 검정 한 줄 테두리, 계란처럼 작은 점 눈과 일자 입 */
.hatchling.yolk { width: 70px; height: auto; overflow: visible; }
.yolk-shadow { fill: var(--ink); }
.yolk-body { fill: var(--yolk); stroke: var(--ink); stroke-width: 3.5; }
.yolk-shine { fill: none; stroke: #fff7dc; stroke-width: 4; stroke-linecap: round; }
.yolk-eye { fill: var(--ink); }
.yolk-mouth { fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; }
.egg-card.still .shell-top-wrap, .egg-card.still .hatchling { transition: none; }

@media (prefers-reduced-motion: no-preference) {
  .egg-card:not(.broken) .egg-svg { animation: eggIdle 3.6s ease-in-out 1.2s infinite; }
  .egg-card:not(.broken) .egg-svg.tap { animation: eggTap 0.42s ease-out; }
  .egg-crack.grow { animation: crackGrow 0.2s ease-out; }
  .hatchling.hop { animation: hatchHop 0.55s cubic-bezier(.3, 1.6, .5, 1); }
}
@media (prefers-reduced-motion: no-preference) {
  .egg-card:not(.broken) .egg-eye {
    transform-box: fill-box;
    transform-origin: center;
    animation: eggBlink 9s linear 2s infinite;
  }
}
/* 9초에 세 번: 한 번 깜박, 그다음은 두 번 연달아 깜박 */
@keyframes eggBlink {
  0%, 43%, 46%, 93%, 95.5%, 98%, 100% { transform: scaleY(1); }
  44.5% { transform: scaleY(0.1); }
  94.2% { transform: scaleY(0.1); }
  96.8% { transform: scaleY(0.1); }
}
@keyframes eggIdle {
  0%, 78%, 100% { transform: rotate(0deg); }
  84% { transform: rotate(-3deg); }
  90% { transform: rotate(3deg); }
  95% { transform: rotate(-1.5deg); }
}
@keyframes eggTap {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(var(--tilt, 8deg)) scale(1.02, 0.98); }
  55% { transform: rotate(calc(var(--tilt, 8deg) * -0.6)); }
  80% { transform: rotate(calc(var(--tilt, 8deg) * 0.25)); }
  100% { transform: rotate(0deg); }
}
@keyframes crackGrow {
  from { stroke-dasharray: 0 400; }
  to { stroke-dasharray: 400 0; }
}
@keyframes hatchHop {
  0% { transform: translate(-50%, 0) scale(1, 1); }
  25% { transform: translate(-50%, 0) scale(1.06, 0.92); }
  55% { transform: translate(-50%, -10px) scale(0.97, 1.04); }
  100% { transform: translate(-50%, 0) scale(1, 1); }
}

.egg-result:empty { display: none; }
.egg-ticket { margin: 6px 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .egg-ticket { animation: stamp 0.35s cubic-bezier(.3, 1.5, .5, 1); }
}
.egg-ticket .ticket-line { margin: 4px 0 0; font-size: var(--fs-lg); line-height: 1.45; }
.day-chip {
  padding: 0 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yolk);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 800;
  white-space: nowrap;
}
.egg-next { margin: 4px 0 0; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }

/* 시연용: 알 다시 놓기(작고 흐리게) */
.egg-reset {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 50%;
  background: none;
  color: var(--ink-soft);
  opacity: 0.55;
}
.egg-reset .lucide { width: 15px; height: 15px; }
/* ---- 2열 격자 ---- */
.tray {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.tray-item { display: flex; min-width: 0; }
.tray-cell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  padding: 8px 7px 7px;
  border: var(--line);
  border-radius: 16px;
  box-shadow: var(--drop);
  text-align: left;
  transition: transform 0.06s, box-shadow 0.06s;
}
.tray-cell:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }

/* 이름표: 이름 + 한 줄. 좁은 화면에서 한 줄이 접혀도 같은 줄 두 칸의 이름표 높이가 맞게 남는 높이를 채운다 */
.cell-label {
  position: relative;
  display: block;
  flex: 1 0 auto;
  margin-top: 8px;
  padding: 7px 9px 8px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper-hi);
}
.cell-name {
  display: block;
  font-family: var(--sign);
  font-weight: 400;
  font-size: var(--fs-2xl);
  line-height: 1.25;
}
.cell-line {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
}
/* 가격 스티커: 컵 앞벽 오른쪽에 비스듬히 붙인다 */
.cell-art .price-chip {
  z-index: 3;
  right: -2px;
  bottom: 3px;
  padding-top: 1px;
  padding-bottom: 1px;
  font-size: var(--fs-sm);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-5deg);
}
.cell-art .price-chip:not(.soon) { background: var(--paper-hi); }
.cell-art .price-chip img { width: 14px; height: 17px; }
.price-chip .won { margin-left: 4px; font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-soft); }
.cell-art.two .price-chip { right: -4px; bottom: -7px; }

/* 궁합: 같은 크기 칸 안에 에그 둘(컵 둘) */
.cell-art.two .disc {
  width: 136px;
  height: 84px;
  margin-left: -68px;
  top: 4px;
  border-radius: 42px;
}
.cell-art.two > img { height: 94px; bottom: 4px; max-width: none; left: 50%; right: auto; transform: translateX(-50%); }
.cell-art.two .cup-in, .cell-art.two .cup-out { width: 62px; margin-left: 0; }
.cell-art.two .l { left: 50%; margin-left: -64px; }
.cell-art.two .r { left: 50%; margin-left: 2px; }

/* 새로 나온 메뉴: 칸 위 모서리에 비스듬한 띠 */
.new-badge {
  position: absolute;
  z-index: 4;
  top: -10px;
  left: 8px;
  padding: 1px 9px 2px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: var(--paper-hi);
  font-size: var(--fs-sm);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-4deg);
}
@media (prefers-reduced-motion: no-preference) {
  .new-badge { animation: badgeNod 2.8s ease-in-out 1s infinite; }
}
@keyframes badgeNod {
  0%, 80%, 100% { transform: rotate(-4deg); }
  86% { transform: rotate(-9deg) scale(1.06); }
  93% { transform: rotate(1deg); }
}
@media (prefers-reduced-motion: no-preference) {
  .cell-art.two.hop > img { animation: hopWide 0.55s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes hopWide {
  0% { transform: translateX(-50%); }
  25% { transform: translateX(-50%) scale(1.05, 0.93); }
  55% { transform: translateX(-50%) translateY(-16px); }
  100% { transform: translateX(-50%); }
}

/* 준비 중: 그림 대신 아직 안 깬 알(얼굴 없음, 금 하나). 칸은 살짝 흐리게.
   칸 전체를 반투명으로 흐리면 바탕 무늬가 알·이름표에 비치므로, 바탕 위에만 종이색 막을 한 장 덮는다 */
.tray-cell.is-soon { box-shadow: 3px 3px 0 rgba(30, 27, 58, 0.55); }
.tray-cell.is-soon::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(243, 234, 215, 0.42);
  pointer-events: none;
}
.tray-cell.is-soon .cell-label { background: var(--paper); }
.tray-cell.is-soon .cell-name { color: var(--ink-soft); }
/* 준비 중 칸은 낮은 가로형: 왼쪽에 작은 안 깬 알(컵·원판·가격표 없이), 오른쪽에 이름·한 줄 */
.tray-cell.is-soon {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px 7px;
}
.tray-cell.is-soon .cell-art { flex: none; width: 44px; height: 56px; }
.tray-cell.is-soon .disc, .tray-cell.is-soon .cup-in, .tray-cell.is-soon .cup-out, .tray-cell.is-soon .price-chip { display: none; }
.tray-cell.is-soon .raw-egg { width: 40px; height: 51px; margin-left: -20px; bottom: 2px; }
.tray-cell.is-soon .raw-egg::after { width: 6px; height: 10px; }
.tray-cell.is-soon .cell-label { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; margin-top: 0; padding: 5px 8px 6px; }
.tray-cell.is-soon .cell-name { font-size: var(--fs-lg2); white-space: nowrap; }
.tray-cell.is-soon .cell-line { font-size: var(--fs-sm); color: var(--ink-soft); }
/* '준비 중' 꼬리표: 칸 위 모서리(새로 나온 메뉴 띠와 같은 자리, 회색) */
.tray-cell.is-soon::after {
  content: '곧 열려요';
  position: absolute;
  z-index: 4;
  top: -9px;
  right: 8px;
  padding: 0 8px 1px;
  border: 2px solid var(--ink-soft);
  border-radius: 999px;
  background: var(--paper-lo);
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}
.raw-egg {
  left: 50%;
  bottom: 12px;
  width: 64px;
  height: 82px;
  margin-left: -32px;
  border: 2.5px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: var(--shell);
  /* 계란 테두리는 검정 한 줄 + 먹색 그림자(대표님 지시 2026-11-23: 빨강·파랑 어긋남 뺌) */
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  transform-origin: 50% 100%;
}
.raw-egg::after {
  /* 왼쪽 위 반짝 */
  content: '';
  position: absolute;
  left: 18%; top: 14%;
  width: 10px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transform: rotate(20deg);
}
.crack {
  /* 오른쪽 위에 짧게 비스듬히: 가운데 가로로 두면 감은 눈처럼 보인다 */
  position: absolute;
  left: 50%;
  top: 25%;
  width: 34%;
  height: 8px;
  transform: rotate(-32deg);
  background: var(--ink);
  clip-path: polygon(0 45%, 22% 5%, 44% 60%, 66% 0, 88% 55%, 100% 30%, 100% 60%, 88% 95%, 66% 40%, 44% 100%, 22% 45%, 0 85%);
}
@media (prefers-reduced-motion: no-preference) {
  .raw-egg.wobble { animation: wobble 0.7s ease-in-out; }
}
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  15% { transform: rotate(-12deg); }
  35% { transform: rotate(10deg); }
  55% { transform: rotate(-7deg); }
  75% { transform: rotate(4deg); }
}

/* 오늘의 알 쪽지 */
.ticket {
  position: relative;
  display: grid;
  gap: 8px;
  margin: 14px 2px 0;
  padding: 14px 14px 14px 18px;
  border: var(--line);
  background: var(--paper);
  box-shadow: var(--drop-sm);
  transform: rotate(-1deg);
}
.ticket::before {
  /* 쪽지 왼쪽 절취선 */
  content: '';
  position: absolute;
  top: 8px; bottom: 8px; left: 6px;
  border-left: 2px dashed var(--red);
}
@media (prefers-reduced-motion: no-preference) {
  .ticket { animation: stamp 0.35s cubic-bezier(.3, 1.5, .5, 1); }
}
@keyframes stamp {
  0% { transform: rotate(-6deg) scale(0.85); opacity: 0; }
  100% { transform: rotate(-1deg) scale(1); opacity: 1; }
}
.ticket-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink-soft);
}
.ticket-line {
  margin: 8px 0 0;
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 1.5;
}

/* 에그당 소원 마을 표지판 */
.roadsign {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 4px;
  padding: 12px 14px;
  border: var(--line-thick);
  border-radius: 10px;
  background: var(--blue);
  color: var(--paper-hi);
  box-shadow: var(--drop);
  text-decoration: none;
}
.roadsign:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.roadsign-arrow {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--paper-hi);
  color: var(--blue);
  border: 2px solid var(--ink);
}
.roadsign-arrow .lucide { width: 22px; height: 22px; stroke-width: 3; }
.roadsign strong { display: block; font-family: var(--sign); font-weight: 400; font-size: var(--fs-2xl); line-height: 1.25; }
.roadsign > .lucide { margin-left: auto; }

/* ---------- 풀이 고르기 ---------- */
.who { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.who input { position: absolute; opacity: 0; pointer-events: none; }
.who label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper-hi);
  font-size: var(--fs-lg2);
  font-weight: 700;
  cursor: pointer;
}
.who label .lucide { width: 15px; height: 15px; }
.who input:checked + label { background: var(--yolk); box-shadow: var(--drop-sm); }
.who input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.who-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 2px dashed var(--ink);
  border-radius: 999px;
  background: none;
  font-size: var(--fs-md);
  font-weight: 700;
}
.who-add .lucide { width: 15px; height: 15px; }

.section-label { display: block; margin: 0 0 8px; font-size: var(--fs-lg); font-weight: 800; }
.section-label em { font-style: normal; font-weight: 500; color: var(--ink-soft); margin-left: 4px; }

.hint {
  margin: -6px 0 14px;
  padding: 10px 12px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: var(--paper-hi);
  color: var(--red);
  font-size: var(--fs-md);
  font-weight: 700;
}

.textarea { min-height: 128px; resize: none; line-height: 1.6; font-size: var(--fs-lg2); background: var(--paper-hi); }
.counter { margin: 4px 2px 0; text-align: right; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.give {
  margin-top: 20px;
  padding: 14px;
  border: var(--line);
  border-radius: 14px;
  background-color: var(--paper-hi);
}
.give-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 3px 10px 3px 6px;
  background: var(--paper-hi);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--fs-md);
  font-weight: 600;
}
.give-line img { width: 18px; height: 22px; object-fit: contain; }

/* ---------- 에그 충전 ---------- */
.charge-hero {
  position: relative;
  margin: 8px 0 14px;
  padding: 14px 12px 12px;
  border: var(--line-thick);
  border-radius: 14px;
  background-color: var(--yolk);
  box-shadow: var(--drop);
}
.charge-hero img { width: 86%; margin: 0 auto; }
.charge-note { margin: 10px 0 0; text-align: center; font-size: var(--fs-xl); font-weight: 800; }

.bundles { display: grid; gap: 18px; margin-bottom: 20px; }
.bundles input { position: absolute; opacity: 0; pointer-events: none; }
.bundle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  cursor: pointer;
}
.bundles input:checked + .bundle { background: var(--yolk); box-shadow: var(--drop); transform: translate(-2px, -2px); }
.bundles input:focus-visible + .bundle { outline: 3px solid var(--blue); outline-offset: 2px; }
.bundle-eggs {
  display: flex;
  width: 64px;
  height: 34px;
  align-items: flex-end;
  justify-content: center;
}
.bundle-eggs img { width: 21px; height: 26px; object-fit: contain; margin: 0 -4px; }
.bundle-eggs.straw img { width: 64px; height: 26px; margin: 0; }
.bundle-name { display: block; font-family: var(--sign); font-weight: 400; font-size: var(--fs-2xl); line-height: 1.25; }
.bundle-price { margin-left: auto; font-size: var(--fs-xl); font-weight: 900; font-variant-numeric: tabular-nums; }

.demo-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 9px 12px;
  border: 2px solid var(--blue);
  border-radius: 10px;
  color: var(--blue);
  font-size: var(--fs-md);
  font-weight: 700;
}

/* ---------- 풀이 만드는 중 ---------- */
.ff-tag { position: absolute; top: 18px; right: var(--gutter); z-index: 3; }
.sauna-stage { position: relative; text-align: center; }
/* 돌아가는 한마디: 테두리 없는 한 줄(줄 높이를 잡아 두어 문장이 바뀌어도 아래가 출렁이지 않는다) */
.sauna-line {
  margin: 4px 0 0;
  min-height: 1.5em;
  font-size: var(--fs-xl);
  font-weight: 700;
  line-height: 1.5;
  white-space: nowrap;
  transition: opacity 0.3s;
}
.sauna-line.fade { opacity: 0; }
.sauna-stage .dangi { width: min(64%, 240px); margin-top: 22px; }
.steam {
  position: absolute;
  left: 50%; top: -6%;
  width: 70%;
  height: 40%;
  transform: translateX(-50%);
  pointer-events: none;
}
.steam path { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .steam path { animation: steam 2.4s ease-in-out infinite; }
  .steam path:nth-child(2) { animation-delay: 0.8s; }
  .steam path:nth-child(3) { animation-delay: 1.6s; }
  .dangi.simmer img { animation: simmer 1.8s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .steam path { opacity: 0.6; }
}
@keyframes steam {
  0% { transform: translateY(16px); opacity: 0; }
  35% { opacity: 0.85; }
  100% { transform: translateY(-14px); opacity: 0; }
}
@keyframes simmer {
  0%, 100% { transform: rotate(-1.2deg); }
  50% { transform: rotate(1.2deg) translateY(-2px); }
}

.cook {
  margin: 16px 0 18px;
  padding: 12px 14px 14px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
}
.cook-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0; }
.cook-steps li {
  position: relative;
  padding: 6px 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 800;
  background: var(--paper);
  color: var(--ink-soft);
}
.cook-steps li.done { background: var(--yolk); color: var(--ink); }
.cook-steps li.now { background: var(--red); color: var(--paper-hi); }

/* 여덟 글자 표 */
.pillars {
  padding: 14px 14px 12px;
  border: var(--line-thick);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
}
.pillars-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.pillars-head h2 { margin: 0; font-family: var(--sign); font-weight: 400; font-size: var(--fs-2xl); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pillar { text-align: center; }
.pillar-pos { display: block; margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 800; color: var(--ink-soft); }
.glyph {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin-bottom: 6px;
  border: var(--line);
  border-radius: 10px;
  font-family: var(--hanja);
  font-size: var(--fs-9xl);
  font-weight: 700;
  line-height: 1;
}
.glyph small {
  position: absolute;
  right: 4px; bottom: 3px;
  font-family: var(--body);
  font-size: var(--fs-xs);
  font-weight: 800;
  line-height: 1;
}
.pillar-read { display: block; font-size: var(--fs-md); font-weight: 800; }
.pillars-foot { margin: 12px 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); text-align: center; }

/* ---------- 다 익음 ---------- */
.hatch {
  position: relative;
  display: grid;
  place-items: center;
  margin-top: 26px;
  height: 420px;
  overflow: hidden;
}
.burst {
  position: absolute;
  left: 50%; top: 44%;
  width: 330px; height: 330px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--yolk);
  border: var(--line-thick);
}
.hatch img { position: relative; width: 250px; }
.hatch p {
  position: absolute;
  bottom: 0;
  margin: 0;
  padding: 4px 16px 6px;
  background: var(--red);
  color: var(--paper-hi);
  border: var(--line);
  box-shadow: var(--drop-sm);
  font-family: var(--sign);
  font-size: var(--fs-4xl);
  transform: rotate(-3deg);
}
@media (prefers-reduced-motion: no-preference) {
  .burst { animation: spin 9s linear infinite; }
  .hatch img { animation: pop 0.6s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes pop {
  0% { transform: scale(0.6) translateY(30px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

/* ---------- 풀이 ---------- */
.reading-head { margin: 4px 0 14px; }
.reading-head .screen-title { margin-top: 8px; }
.worry {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 2px dashed var(--ink);
  border-radius: 10px;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink-soft);
}
.worry b { display: block; margin-bottom: 2px; color: var(--ink); font-size: var(--fs-sm); font-weight: 800; }

.chapters {
  border: var(--line-thick);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
  overflow: hidden;
}
.chapter + .chapter { border-top: 2px solid var(--ink); }
.chapter summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 14px;
  list-style: none;
  cursor: pointer;
}
.chapter summary::-webkit-details-marker { display: none; }
.chapter[open] summary { background: var(--yolk); border-bottom: 2px solid var(--ink); }
.chapter-no {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper-hi);
  border: 2px solid var(--ink);
  font-size: var(--fs-md);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.chapter summary .lucide { flex: none; margin-left: auto; transition: transform 0.2s; }
.chapter[open] summary .lucide { transform: rotate(180deg); }
/* 제목 + 한 줄 결론: 접혀 있어도 결론이 보인다 */
.chapter-head { display: grid; gap: 2px; min-width: 0; }
.chapter-title { font-size: var(--fs-xl); font-weight: 800; line-height: 1.3; }
.chapter-punch { font-size: var(--fs-md); font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
.chapter[open] .chapter-punch { color: var(--ink); font-weight: 800; font-size: var(--fs-lg); }
.chapter-body { padding: 14px 16px 16px 54px; }
.chapter-body > p { margin: 0 0 10px; font-size: var(--fs-lg2); line-height: 1.75; }
.chapter-body .term { padding: 0 1px; background: linear-gradient(transparent 58%, rgba(246, 184, 26, 0.55) 58%); font-weight: 800; }
/* 본문 안 사주 글자: 만세력 표와 같은 오행 색 */
.gchip {
  display: inline-block;
  margin: 0 2px;
  padding: 0 4px;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  font-family: var(--hanja);
  font-weight: 700;
  line-height: 1.35;
  vertical-align: 1px;
}

/* 한눈에 보기 */
.glance {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
}
.glance h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: var(--fs-lg); font-weight: 900; }
.glance h2 .lucide { width: 16px; height: 16px; stroke: var(--red); }
.glance ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.glance li { display: flex; align-items: baseline; gap: 10px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.45; }
.glance li b {
  flex: none;
  padding: 1px 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--yolk);
  font-size: var(--fs-sm);
  font-weight: 900;
}

.tucked {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 8px;
  padding: 10px 14px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.tucked img { width: 46px; height: 50px; object-fit: contain; }
.after-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 18px;
  color: var(--blue);
  font-size: var(--fs-md);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--blue);
}
.after-link .lucide { width: 14px; height: 14px; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise 0.4s ease-out; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 보관함 ---------- */
.carton {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 12px;
  border: var(--line-thick);
  border-radius: 16px;
  background: var(--paper-lo);
  box-shadow: var(--drop);
}
.cell {
  position: relative;
  min-width: 0;
  padding: 12px 8px 10px;
  border: var(--line);
  border-radius: 46% 46% 16px 16px / 40% 40% 16px 16px;
  background: var(--paper-hi);
  text-align: center;
}
.cell img { width: 24px; height: 29px; margin: 0 auto 4px; object-fit: contain; }
.cell strong { display: block; font-size: var(--fs-lg2); font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell span { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-soft); line-height: 1.45; }
.cell-add {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  min-height: 112px;
  border: 2px dashed var(--ink);
  border-radius: 46% 46% 16px 16px / 40% 40% 16px 16px;
  background: none;
  font-size: var(--fs-md);
  font-weight: 800;
}

.eggs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.egg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  text-align: left;
}
.egg-row img { width: 34px; height: 36px; flex: none; object-fit: contain; }
.egg-row strong { display: block; font-size: var(--fs-lg2); font-weight: 800; }
.egg-row span { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.egg-row .state {
  margin-left: auto;
  flex: none;
  padding: 2px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--ink);
  background: var(--paper);
}
.egg-row .state.warm { background: var(--red); color: var(--paper-hi); }
.egg-row .state.new { background: var(--yolk); }

.empty {
  padding: 22px 16px;
  border: 2px dashed var(--ink);
  border-radius: 14px;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--ink-soft);
}

.reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 28px auto 0;
  padding: 8px 12px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.reset .lucide { width: 13px; height: 13px; }

h2.block-title {
  margin: 22px 0 12px;
  font-family: var(--sign);
  font-weight: 400;
  font-size: var(--fs-4xl);
}

/* ---------- 자주 묻는 말 ---------- */
.faq { margin-top: 34px; }
.engine-band {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 -4px;
  padding: 7px 12px;
  background: var(--yolk);
  border: var(--line);
  font-size: var(--fs-md);
  font-weight: 800;
  transform: rotate(-1.2deg);
  box-shadow: var(--drop-sm);
}
.engine-band .lucide { width: 15px; height: 15px; }
.faq .block-title { margin-top: 20px; }
.faq-list { border-top: var(--line); }
.faq-item { border-bottom: var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 2px;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-lg2);
  font-weight: 800;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: 'Q';
  display: grid;
  place-items: center;
  flex: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--paper-hi);
  font-size: var(--fs-sm);
  font-weight: 900;
}
.faq-item summary .lucide { margin-left: auto; transition: transform 0.2s; }
.faq-item[open] summary .lucide { transform: rotate(180deg); }
.faq-a { padding: 0 2px 16px 34px; }
.faq-a p { margin: 0; font-size: var(--fs-lg); line-height: 1.7; }
.faq-a .after-link { margin: 10px 0 0; }

.engine-ver {
  display: grid;
  gap: 3px;
  margin: 12px 0 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink-soft);
}
.reveal > .engine-ver { margin-top: 24px; text-align: center; justify-items: center; }
.engine-ver-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  justify-self: start;
  padding: 1px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper-hi);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--ink);
}
.reveal > .engine-ver .engine-ver-tag { justify-self: center; }
.engine-ver-tag .lucide { width: 12px; height: 12px; }

/* ---------- 탭 ---------- */
.tabs {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding: 6px 10px env(safe-area-inset-bottom);
  background: var(--paper-hi);
  border-top: var(--line-thick);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin: 2px 4px 6px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: none;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.tab .lucide { width: 22px; height: 22px; }
.tab[aria-current="page"] {
  color: var(--ink);
  background: var(--yolk);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
}

/* ---------- 시트·토스트 ---------- */
.sheet-layer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-end;
  background-color: rgba(30, 27, 58, 0.45);
}
.sheet {
  width: 100%;
  padding: 20px var(--gutter) calc(22px + env(safe-area-inset-bottom));
  border-top: var(--line-thick);
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  text-align: center;
}
@media (prefers-reduced-motion: no-preference) {
  .sheet { animation: sheetUp 0.25s cubic-bezier(.2, .8, .3, 1); }
}
@keyframes sheetUp { from { transform: translateY(40px); } }
.sheet > img { width: 140px; margin: -4px auto 8px; }
.sheet h3 { margin: 0 0 6px; font-family: var(--sign); font-weight: 400; font-size: var(--fs-5xl); line-height: 1.3; }
.sheet p { margin: 0 0 18px; font-size: var(--fs-lg2); font-weight: 600; color: var(--ink-soft); }
.sheet-actions { display: grid; gap: 12px; }
.sheet.bow > img { width: 170px; }
@media (prefers-reduced-motion: no-preference) {
  .sheet.bow > img { animation: pop 0.55s cubic-bezier(.3, 1.5, .5, 1); }
}
.toast {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  bottom: calc(var(--tab-h) + 14px + env(safe-area-inset-bottom));
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
  font-size: var(--fs-md);
  font-weight: 700;
}
.toast img { width: 30px; height: 32px; object-fit: contain; }
.toast button {
  margin-left: auto;
  flex: none;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--yolk);
  font-size: var(--fs-md);
  font-weight: 800;
}
.toast.no-tabs { bottom: calc(16px + env(safe-area-inset-bottom)); }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; }
}

/* ==================== v10 (2026-11-23) ====================
   무료 맛보기와 잠금, 에그 묶음 덤, 결제 완료 화면, 도장 넷 기다리는 화면, 당이 쪽지, 결산 카드, 달력, 질문하기.
   기존 규칙은 그대로 두고 여기서 덧붙이거나 덮는다 */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- 고르기: 무료로 맛보기 ---- */
.give-line .lucide { width: 16px; height: 16px; stroke: var(--red); }
.give-foot { margin: 10px 0 0; text-align: center; font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }

/* ---- 에그 묶음: 등급 이름 · 덤 · BEST ---- */
.bundle { position: relative; }
.best-badge {
  position: absolute;
  top: -10px; right: 12px;
  padding: 0 8px 1px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--red);
  color: var(--paper-hi);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.06em;
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(3deg);
}
.bundle-mid { display: grid; gap: 1px; min-width: 0; }
.bundle-grade { font-size: var(--fs-sm); font-weight: 800; color: var(--ink-soft); line-height: 1.3; }
.bundles input:checked + .bundle .bundle-grade { color: var(--ink); }
.bundle-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bonus-chip {
  padding: 0 7px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-hi);
  color: var(--red);
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 900;
  line-height: 1.5;
  white-space: nowrap;
}
.bundle-eggs { flex: none; }
.bundle-eggs.loose img { width: 21px; height: 26px; }
.bundle-eggs.straw img { width: 64px; height: 26px; margin: 0; }
.bundle-eggs.straw2 { flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.bundle-eggs.straw2 img { width: 60px; height: 16px; margin: 0; object-fit: contain; }

/* ---- 결제 완료 ---- */
.paid { text-align: center; }
.paid-hero { position: relative; height: 150px; margin: 4px 0 0; }
.paid-hero img { position: relative; width: 140px; margin: 0 auto; }
@media (prefers-reduced-motion: no-preference) {
  .paid-hero img { animation: pop 0.55s cubic-bezier(.3, 1.5, .5, 1); }
}
.confetti {
  position: absolute;
  width: 10px; height: 5px;
  border: 1.5px solid var(--ink);
  background: var(--yolk);
}
.confetti.c0 { left: 12%; top: 18%; transform: rotate(20deg); background: var(--red); }
.confetti.c1 { left: 22%; top: 62%; transform: rotate(-30deg); background: var(--blue); }
.confetti.c2 { left: 6%; top: 44%; transform: rotate(60deg); }
.confetti.c3 { left: 30%; top: 8%; transform: rotate(-12deg); background: var(--blue); }
.confetti.c4 { left: 26%; top: 84%; transform: rotate(40deg); }
.confetti.c5 { right: 10%; top: 14%; transform: rotate(-40deg); }
.confetti.c6 { right: 22%; top: 70%; transform: rotate(25deg); background: var(--red); }
.confetti.c7 { right: 5%; top: 48%; transform: rotate(-65deg); background: var(--blue); }
.confetti.c8 { right: 30%; top: 4%; transform: rotate(15deg); background: var(--red); }
.confetti.c9 { right: 28%; top: 88%; transform: rotate(-20deg); }
@media (prefers-reduced-motion: no-preference) {
  .confetti { animation: confettiDrop 0.9s ease-out both; }
  .confetti.c1, .confetti.c4, .confetti.c7 { animation-delay: 0.1s; }
  .confetti.c2, .confetti.c5, .confetti.c8 { animation-delay: 0.2s; }
}
@keyframes confettiDrop {
  from { opacity: 0; translate: 0 -24px; }
  to { opacity: 1; translate: 0 0; }
}
.paid-grade {
  display: inline-block;
  margin: 4px 0 0;
  padding: 4px 16px 6px;
  border: var(--line-thick);
  background: var(--red);
  color: var(--paper-hi);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: var(--sign);
  font-size: var(--fs-8xl);
  line-height: 1.15;
  transform: rotate(-2deg);
}
.paid-title { margin: 12px 0 10px; font-family: var(--sign); font-weight: 400; font-size: var(--fs-4xl); }
.paid-got { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.got-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px 4px 8px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
  font-size: var(--fs-xl);
  font-weight: 900;
}
.got-chip img { width: 18px; height: 22px; object-fit: contain; }
.got-chip.bonus { background: var(--yolk); padding-left: 10px; }
.got-chip .lucide { width: 16px; height: 16px; }
.receipt {
  margin: 0 0 16px;
  padding: 8px 16px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper-hi);
  text-align: left;
}
.receipt > div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; }
.receipt dt { font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }
.receipt dd { margin: 0; font-size: var(--fs-lg2); font-weight: 900; font-variant-numeric: tabular-nums; }
.receipt dd.plus { color: var(--blue); }
.receipt .total { margin-top: 4px; padding-top: 10px; border-top: 2px dashed var(--ink); }
.receipt .total dt { color: var(--ink); font-weight: 900; }
.receipt .total dd { color: var(--red); font-size: var(--fs-3xl); }
.resume {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 12px;
  padding: 8px 12px;
  border: var(--line);
  border-radius: 12px;
  background: var(--yolk);
  box-shadow: var(--drop-sm);
  text-align: left;
  font-size: var(--fs-md);
  font-weight: 600;
}
.resume img { width: 34px; height: 36px; object-fit: contain; flex: none; }
.resume b { display: block; font-size: var(--fs-lg); font-weight: 900; }
.resume .lucide { margin-left: auto; }
.text-btn {
  display: block;
  margin: 10px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--ink-soft);
  font-size: var(--fs-md);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.paid .block-title { text-align: left; }
.goto { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.goto-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 10px 6px 6px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  text-align: left;
}
.goto-art { display: grid; place-items: center; flex: none; width: 44px; height: 44px; }
.goto-art img { width: 44px; height: 44px; object-fit: contain; }
.goto-art .raw-egg { position: relative; left: auto; bottom: auto; width: 28px; height: 36px; margin: 0; box-shadow: 2px 2px 0 var(--ink); }
.goto-art .raw-egg::after { width: 5px; height: 8px; }
.goto-name { flex: 1 1 auto; min-width: 0; font-family: var(--sign); font-size: var(--fs-xl); line-height: 1.25; }
.goto-pill {
  flex: none;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper-hi);
  font-size: var(--fs-sm);
  font-weight: 800;
  white-space: nowrap;
}
.goto-pill.t-paper, .goto-pill.t-yolk { color: var(--ink); }
.goto-pill.is-soon { background: var(--paper-lo); color: var(--ink-soft); border-color: var(--ink-soft); }

/* ---- 기다리는 화면: 도장 넷 + 진행률 ---- */
.sauna-line { white-space: normal; }
.sauna-egg { width: min(60%, 230px); margin-top: 16px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.sauna-egg:focus-visible { outline-offset: 6px; border-radius: 20px; }
@media (prefers-reduced-motion: no-preference) {
  .dangi.simmer.hop img { animation: hop 0.55s cubic-bezier(.3, 1.6, .5, 1); }
}
.tap-hint { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.brew {
  margin: 14px 0 6px;
  padding: 14px 14px 12px;
  border: var(--line);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
}
.seals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; text-align: center; }
.seals li { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.seal {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 2px dashed var(--ink-soft);
  border-radius: 50%;
  color: transparent;
}
.seal .lucide { width: 22px; height: 22px; stroke-width: 2.5; opacity: 0; }
.seal-name {
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.seals li.inked .seal {
  border: 2.5px solid var(--ink);
  background: var(--red);
  color: var(--paper-hi);
  box-shadow: 2px 2px 0 var(--ink);
  transform: rotate(-8deg);
}
.seals li.inked .seal .lucide { opacity: 1; }
.seals li.inked .seal-name { background: var(--yolk); color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .seals li.inked:not(.still) .seal { animation: sealIn 0.4s cubic-bezier(.3, 1.6, .5, 1); }
}
@keyframes sealIn {
  0% { transform: scale(1.7) rotate(-20deg); opacity: 0; }
  60% { transform: scale(0.92) rotate(-6deg); opacity: 1; }
  100% { transform: scale(1) rotate(-8deg); }
}
.meter { display: flex; align-items: center; gap: 10px; }
.meter-track {
  position: relative;
  flex: 1 1 auto;
  height: 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  overflow: hidden;
}
.meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--yolk); border-right: 2px solid var(--ink); transition: width 0.25s linear; }
.meter-pct { flex: none; min-width: 3.2em; text-align: right; font-size: var(--fs-lg); font-weight: 900; color: var(--red); font-variant-numeric: tabular-nums; }
.brew-note { margin: 0 0 16px; text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
/* 풀이 만드는 중: 기다리는 동안 소원 마을로(표지판과 같은 파랑, 한 단 작게) */
.village-go {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: var(--line);
  border-radius: 10px;
  background: var(--blue);
  color: var(--paper-hi);
  box-shadow: var(--drop-sm);
  text-decoration: none;
}
.village-go:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.village-go-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper-hi);
  color: var(--blue);
  border: 2px solid var(--ink);
}
.village-go-icon .lucide { width: 20px; height: 20px; stroke-width: 2.5; }
.village-go-text { min-width: 0; }
.village-go-text strong { display: block; font-size: var(--fs-lg2); font-weight: 800; line-height: 1.3; }
.village-go-text span { display: block; margin-top: 2px; font-size: var(--fs-sm); font-weight: 600; opacity: 0.9; }
.village-go > .lucide { flex: none; margin-left: auto; width: 16px; height: 16px; }
/* 풀이 화면이 먼저 열렸을 때 위에 붙는 띠 */
.brew.strip {
  position: sticky;
  top: 6px;
  z-index: 6;
  margin: 0 0 10px;
  padding: 8px 12px 10px;
  box-shadow: var(--drop);
}
.strip-line { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 800; }
.brew.strip .seals { margin-bottom: 8px; }
.brew.strip .seal { width: 26px; height: 26px; border-width: 1.5px; }
.brew.strip .seal .lucide { width: 14px; height: 14px; }
.brew.strip .seals li.inked .seal { border-width: 2px; box-shadow: 1.5px 1.5px 0 var(--ink); }
.brew.strip .seal-name { font-size: var(--fs-2xs); }
.brew.strip .meter-track { height: 10px; }

/* ---- 풀이: 꼬리표 · 세 문단 · 잠금 · 쓰는 중 ---- */
.read-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yolk);
  font-size: var(--fs-sm);
  font-weight: 900;
}
.read-tag .lucide { width: 12px; height: 12px; }
.read-tag.taste { background: var(--paper-lo); }
.read-tag.warm { background: var(--red); color: var(--paper-hi); }
.chapter-body > .para { margin: 0 0 12px; }
.para-tag {
  display: block;
  width: fit-content;
  margin: 0 0 3px;
  padding: 0 7px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 900;
  line-height: 1.6;
}
.chapter-sum { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; }
.chapter-sum > .lucide { flex: none; margin-left: auto; width: 16px; height: 16px; color: var(--ink-soft); }
.chapter.locked .chapter-punch { color: var(--ink); font-weight: 800; }
.lock-wrap { position: relative; }
.chapter-body.blurred {
  max-height: 104px;
  overflow: hidden;
  padding-top: 4px;
  filter: blur(4px);
  opacity: 0.7;
  user-select: none;
  pointer-events: none;
}
.lock-pill {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
  font-size: var(--fs-md);
  font-weight: 800;
  white-space: nowrap;
}
.lock-pill .lucide { width: 15px; height: 15px; color: var(--red); }
.chapter.writing .chapter-punch { color: var(--red); font-weight: 800; }
.chapter.writing .chapter-no { background: var(--paper-lo); color: var(--ink-soft); }
.chapter.writing .chapter-body { display: grid; gap: 8px; padding-top: 0; }
.ghost { display: block; height: 10px; border-radius: 999px; background: var(--paper-lo); }
.ghost.short { width: 60%; }
@media (prefers-reduced-motion: no-preference) {
  .ghost { animation: ghostPulse 1.2s ease-in-out infinite; }
  details.chapter.fresh { animation: rise 0.4s ease-out; }
  .chapter.flash { animation: flashIn 1.2s ease-out; }
}
@keyframes ghostPulse { 50% { opacity: 0.45; } }
@keyframes flashIn { 0%, 40% { background: var(--yolk); } 100% { background: transparent; } }

/* 맛보기 아래 고정 버튼(풀이 기둥 안에 묶인다: 화면 스크롤 칸의 맨 끝에 붙어 아래에 머문다).
   sticky 의 bottom 은 스크롤 칸 안쪽 여백(.view padding-bottom = 탭 + 30px) 위에서 재므로,
   탭 바로 위 12px 에 두려면 -18px 이다 */
.dock {
  position: sticky;
  bottom: -18px;
  z-index: 7;
  margin-top: 18px;
}
.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  border: var(--line-thick);
  border-radius: 14px;
  background: var(--red);
  color: var(--paper-hi);
  box-shadow: var(--drop);
  font-family: var(--sign);
  font-size: var(--fs-2xl);
  letter-spacing: 0.02em;
}
.dock-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.dock-egg {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 10px 1px 6px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper-hi);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--fs-md);
  font-weight: 900;
}
.dock-egg img { width: 15px; height: 19px; object-fit: contain; }
.toast.lift { bottom: calc(var(--tab-h) + 84px + env(safe-area-inset-bottom)); }

/* 확인 창: 가진 에그 · 쓸 에그, 버튼 둘 나란히 */
.spend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 0 16px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  overflow: hidden;
}
.spend > div { display: grid; gap: 2px; padding: 10px 6px; }
.spend > div + div { border-left: 2px solid var(--ink); }
.spend span { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.spend b { font-size: var(--fs-6xl); font-weight: 900; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; }
.spend b.use { color: var(--red); }
.sheet-actions.two { grid-template-columns: 1fr 1fr; }
.sheet-actions.two .btn { min-height: 50px; padding: 0 8px; font-size: var(--fs-lg2); }

/* ---- 보관함: 맛보기 / 전체 ---- */
.egg-row .state.taste { display: inline-flex; align-items: center; gap: 3px; background: var(--paper-lo); color: var(--ink-soft); border-color: var(--ink-soft); }
.egg-row .state.taste .lucide { width: 11px; height: 11px; }
.egg-row .state.full { background: var(--blue); color: var(--paper-hi); }
.egg-row.is-taste { border-style: dashed; }

/* ---- 사업자 정보 바닥글 ---- */
.biz { margin: 30px calc(-1 * var(--gutter)) 0; padding: 16px var(--gutter) 6px; border-top: 2px dashed var(--ink-soft); color: var(--ink-soft); }
.biz-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.biz-links button { padding: 2px 0; border: 0; background: none; color: var(--ink-soft); font-size: var(--fs-sm); font-weight: 700; }
.biz-links button b { color: var(--ink); font-weight: 900; }
.biz-info summary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-sm);
  font-weight: 800;
}
.biz-info summary::-webkit-details-marker { display: none; }
.biz-info summary .lucide { width: 14px; height: 14px; transition: transform 0.2s; }
.biz-info[open] summary .lucide { transform: rotate(180deg); }
.biz-info dl { margin: 4px 0 0; }
.biz-info dl > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px; padding: 2px 0; font-size: var(--fs-xs); line-height: 1.55; }
.biz-info dt { font-weight: 700; }
.biz-info dd { margin: 0; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.biz-note { margin: 8px 0 0; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-soft); }
.biz-note.center { margin-top: 18px; text-align: center; }
.biz-copy { margin: 10px 0 0; font-size: var(--fs-2xs); font-weight: 600; }

/* 준비 중 화면(이용약관·개인정보처리방침) */
.ready { display: grid; justify-items: center; gap: 10px; margin-top: 30px; text-align: center; }
.ready img { width: 150px; }
.ready p { margin: 0; font-size: var(--fs-lg); font-weight: 600; color: var(--ink-soft); }
.ready b { display: block; margin-bottom: 2px; font-family: var(--sign); font-weight: 400; font-size: var(--fs-3xl); color: var(--ink); }

/* 보관함: 문의하기로 가는 줄 */
.help-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 22px 0 0;
  padding: 12px 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  text-align: left;
  font-size: var(--fs-lg);
  font-weight: 700;
}
.help-row b { color: var(--blue); font-weight: 900; }
.help-row .lucide:last-child { margin-left: auto; }

/* ---- 문의하기 게시판 ---- */
.inq-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.inq-row {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: var(--line);
  border-radius: 12px;
  background: var(--paper-hi);
  text-align: left;
}
.inq-row strong { font-size: var(--fs-lg2); font-weight: 800; line-height: 1.4; overflow-wrap: anywhere; }
.inq-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 0 8px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-size: var(--fs-xs);
  font-weight: 900;
  line-height: 1.7;
}
.inq-kind .lucide { width: 12px; height: 12px; }
.inq-meta { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.inq-st { padding: 0 8px; border: 1.5px solid var(--ink-soft); border-radius: 999px; font-size: var(--fs-xs); font-weight: 800; white-space: nowrap; }
.inq-st.done { border-color: var(--ink); background: var(--blue); color: var(--paper-hi); }
.inq-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.inq-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.inq-kinds label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: var(--fs-md);
  font-weight: 800;
  cursor: pointer;
}
.inq-kinds label .lucide { width: 15px; height: 15px; }
.inq-kinds input:checked + label { background: var(--yolk); box-shadow: var(--drop-sm); }
.inq-kinds input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.refund-rule {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 10px 0 0;
  padding: 8px 10px;
  border: 2px solid var(--red);
  border-radius: 10px;
  background: var(--paper-hi);
  color: var(--red);
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.5;
}
.refund-rule .lucide { width: 15px; height: 15px; margin-top: 2px; }
.inq-form .textarea { min-height: 150px; }
.photo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 64px;
  border: 2px dashed var(--ink);
  border-radius: 12px;
  background: var(--paper);
  font-size: var(--fs-md);
  font-weight: 700;
}
.privacy-line { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.privacy-line .lucide { width: 14px; height: 14px; }
.inq-doc {
  margin-top: 6px;
  padding: 16px;
  border: var(--line-thick);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
}
.inq-title { margin: 8px 0 4px; font-size: var(--fs-2xl); font-weight: 900; line-height: 1.4; overflow-wrap: anywhere; }
.inq-rel { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--blue); }
.inq-rel .lucide { width: 13px; height: 13px; }
.inq-body { margin: 12px 0 0; padding-top: 12px; border-top: 2px dashed var(--paper-lo); font-size: var(--fs-lg2); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.inq-ans {
  margin: 16px 0 0 18px;
  padding: 12px 14px;
  border: var(--line);
  border-radius: 4px 14px 14px 14px;
  background: var(--yolk);
}
.inq-ans p { margin: 0 0 8px; font-size: var(--fs-lg); line-height: 1.6; font-weight: 600; }
.inq-from { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.inq-ans .inq-from { font-size: var(--fs-md); font-weight: 900; }
.inq-from img { width: 28px; height: 30px; object-fit: contain; }
.inq-from span { margin-left: auto; font-size: var(--fs-xs); font-weight: 600; }
.inq-wait { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }
.inq-wait .lucide { width: 16px; height: 16px; }

/* ==================== 공개 베타 (2026-11-24) ==================== */

/* ---- 결과 끝: 다른 메뉴 카드(v10 그대로) ---- */
.more { margin-top: 6px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.more-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 6px 6px 6px;
  border: var(--line);
  border-radius: 14px;
  box-shadow: var(--drop-sm);
  text-align: left;
}
.more-art { display: grid; place-items: center; height: 70px; }
.more-art img { height: 66px; width: auto; max-width: 100%; object-fit: contain; }
.more-label { flex: 1 0 auto; margin-top: 6px; padding: 5px 7px 6px; border: 2px solid var(--ink); border-radius: 9px; background: var(--paper-hi); }
.more-name { display: block; font-family: var(--sign); font-size: var(--fs-lg2); line-height: 1.25; }
.more-line { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: 700; line-height: 1.35; color: var(--ink-soft); }

/* ---- 로그인 시트: 카카오 · 개발용 ---- */
.btn.kakao .lucide { width: 22px; height: 22px; }
.btn.kakao.is-off { background: var(--paper-lo); color: var(--ink-soft); box-shadow: var(--drop-sm); }
.off-chip {
  padding: 0 8px 1px;
  border: 2px solid var(--ink-soft);
  border-radius: 999px;
  background: var(--paper-hi);
  font-family: var(--body);
  font-size: var(--fs-sm);
  font-weight: 800;
}
.sheet.login > img { width: 120px; }
.sheet .login-note { margin: -4px 0 0; font-size: var(--fs-md); font-weight: 700; color: var(--red); }
.sheet .login-note:empty { display: none; }
.dev-form { text-align: left; }
.dev-form .form-error { margin-top: 8px; }
.ready .btn { margin-top: 16px; }

/* ---- 체크 상자(약관 동의·윤달) ---- */
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: var(--fs-lg2);
  font-weight: 700;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px; height: 26px;
  border: var(--line);
  border-radius: 7px;
  background: var(--paper);
  color: transparent;
}
.check-box .lucide { width: 16px; height: 16px; stroke-width: 3.5; }
.check input:checked + .check-box { background: var(--blue); color: var(--paper-hi); }
.check input:focus-visible + .check-box { outline: 3px solid var(--yolk); outline-offset: 2px; }
.check em { margin-right: 6px; font-style: normal; color: var(--red); font-size: var(--fs-md); font-weight: 900; }
.check.all { padding-bottom: 12px; margin-bottom: 4px; border-bottom: 2px solid var(--ink); font-size: var(--fs-xl); font-weight: 900; }
.agree-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1.5px dashed var(--paper-lo); }
.agree-more {
  display: inline-flex;
  align-items: center;
  flex: none;
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: var(--fs-md);
  font-weight: 800;
}
.agree-more .lucide { width: 14px; height: 14px; }
.agree .form-error { margin-top: 12px; }
.agree .btn[aria-disabled="true"] { background: var(--paper-lo); color: var(--ink-soft); box-shadow: var(--drop-sm); }
.check.leap { margin-top: 8px; min-height: 36px; font-size: var(--fs-lg); }
.seg.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg.five label { font-size: var(--fs-md); padding: 0 2px; }

/* ---- 약관 본문 ---- */
.policy { padding: 4px 2px 8px; }
.policy-sec { margin: 0 0 18px; }
.policy-sec h2 { margin: 0 0 6px; font-size: var(--fs-xl); font-weight: 900; }
.policy-sec p { margin: 0 0 8px; font-size: var(--fs-lg); line-height: 1.7; overflow-wrap: anywhere; }

/* ---- 홈: 오늘의 알 쪽지 이름 · 주역 한 괘 칸 ---- */
.ticket-who { margin-left: 6px; font-size: var(--fs-xs); font-weight: 800; color: var(--ink-soft); }
.yj-card { margin-top: 14px; }
.yj-card-btn {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  column-gap: 14px;
  align-items: center;
  width: 100%;
  padding: 12px 12px 12px 12px;
  border: var(--line-thick);
  border-radius: 18px;
  background: var(--paper-hi);
  box-shadow: 5px 5px 0 var(--ink);
  text-align: left;
}
.yj-card-btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.yj-card-btn .egg-title { display: block; }
.yj-card-btn .egg-line { display: block; }
.yj-card-art { position: relative; display: block; height: 70px; }
.mini-coin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #c98b4f;
  box-shadow: 2px 2px 0 var(--ink);
  color: var(--ink);
  font-size: var(--fs-md);
  font-weight: 900;
}
.mini-coin > span { display: grid; place-items: center; width: 30px; height: 30px; border: 1.5px solid rgba(30, 27, 58, 0.55); border-radius: 50%; }
.mini-coin.c0 { left: 0; top: 18px; transform: rotate(-12deg); }
.mini-coin.c1 { left: 26px; top: 0; transform: rotate(8deg); }
.mini-coin.c2 { left: 50px; top: 24px; transform: rotate(-4deg); }
.yj-more-art { position: relative; }
.yj-more-art .mini-coin.c0 { left: calc(50% - 40px); top: 18px; }
.yj-more-art .mini-coin.c1 { left: calc(50% - 6px); top: 6px; }

/* ---- 맛보기: 계산된 사실 · 잠긴 절 ---- */
.facts, .locked {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: var(--line-thick);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
}
.facts h2, .locked h2 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-family: var(--sign); font-weight: 400; font-size: var(--fs-2xl); }
.facts h2 .lucide { color: var(--red); }
.facts dl { margin: 0; display: grid; gap: 10px; }
.fact { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: center; }
.fact dt { font-size: var(--fs-md); font-weight: 900; line-height: 1.3; }
.fact dt small { display: block; font-size: var(--fs-2xs); font-weight: 600; color: var(--ink-soft); }
.fact dd { margin: 0; font-size: var(--fs-lg); font-weight: 700; }
.el-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.el-chip { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-lg); }
.el-chip b { font-weight: 900; font-variant-numeric: tabular-nums; }
.el-dot { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--ink); border-radius: 6px; font-size: var(--fs-md); font-weight: 900; }
.fact-dm { display: flex; align-items: center; gap: 8px; }
.glyph.sm { width: 40px; height: 40px; min-height: 0; font-size: var(--fs-3xl); border-radius: 8px; }
.glyph.sm small { display: none; }
.locked-list { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.locked-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px dashed var(--ink-soft); border-radius: 10px; font-size: var(--fs-lg); font-weight: 800; }
.locked-list .chapter-no { width: 24px; height: 24px; font-size: var(--fs-sm); background: var(--paper-lo); color: var(--ink); }
.locked-list .lucide { margin-left: auto; width: 16px; height: 16px; color: var(--red); }
.locked-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; font-size: var(--fs-lg); font-weight: 900; color: var(--red); }
.locked-note .lucide { width: 16px; height: 16px; }

/* ---- 풀이: 시연 띠 · 못 만듦 · 엔진 글 ---- */
.demo-strip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: var(--line-thick);
  border-radius: 12px;
  background: var(--blue);
  color: var(--paper-hi);
  font-size: var(--fs-lg);
  font-weight: 700;
  line-height: 1.5;
}
.demo-strip b { display: block; font-family: var(--sign); font-weight: 400; font-size: var(--fs-3xl); }
.demo-strip .lucide { width: 24px; height: 24px; margin-top: 4px; color: var(--yolk); }
.read-tag.fail { background: var(--paper-lo); }
.fail-box { display: grid; justify-items: center; gap: 8px; margin: 10px 0 20px; padding: 18px 16px; border: var(--line-thick); border-radius: 14px; background: var(--paper-hi); text-align: center; }
.fail-box img { width: 120px; }
.fail-msg { margin: 0; font-size: var(--fs-lg2); font-weight: 700; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.fail-egg { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 3px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--yolk); font-size: var(--fs-md); font-weight: 900; }
.fail-egg .lucide { width: 14px; height: 14px; }
.md p { margin: 0 0 12px; font-size: var(--fs-lg2); line-height: 1.8; overflow-wrap: anywhere; }
.md b { padding: 0 1px; background: linear-gradient(transparent 58%, rgba(246, 184, 26, 0.55) 58%); font-weight: 800; }
.md ul { margin: 0 0 12px; padding-left: 20px; }
.md li { margin: 0 0 6px; font-size: var(--fs-lg2); line-height: 1.7; }
.md .md-h { margin: 16px 0 8px; font-size: var(--fs-xl); font-weight: 900; line-height: 1.4; }
.md-pre { margin: 0 0 16px; padding: 0 2px; }
.chapters .chapter-body.md { padding: 14px 16px 6px 16px; }

/* ---- 기다리는 화면: 지금 단계 도장 · 단계 막대 ---- */
.seals li.now .seal { border: 2.5px solid var(--ink); border-style: dashed; background: var(--paper); }
.seals li.now .seal-name { background: var(--ink); color: var(--paper-hi); }
@media (prefers-reduced-motion: no-preference) {
  .seals li.now .seal { animation: sealSpin 4s linear infinite; }
}
@keyframes sealSpin { to { transform: rotate(360deg); } }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; height: 14px; }
.step-cell { border: 2px solid var(--ink); border-radius: 4px; background: var(--paper); }
.step-cell:first-child { border-radius: 999px 4px 4px 999px; }
.step-cell:last-child { border-radius: 4px 999px 999px 4px; }
.step-cell.done { background: var(--yolk); }
.step-cell.now { background: repeating-linear-gradient(135deg, var(--yolk) 0 6px, var(--paper) 6px 12px); }
@media (prefers-reduced-motion: no-preference) {
  .step-cell.now { background-size: 34px 34px; animation: stepSlide 1s linear infinite; }
}
@keyframes stepSlide { to { background-position: 34px 0; } }
.steps-label { margin: 8px 0 0; text-align: center; font-size: var(--fs-sm); font-weight: 800; color: var(--ink-soft); }

/* ---- 보관함 ---- */
h2.block-title.first { margin-top: 10px; }
.carton .cell { font: inherit; color: inherit; cursor: pointer; }
.badge-n { display: inline-block; margin-left: 6px; padding: 0 7px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--red); color: var(--paper-hi); font-size: var(--fs-xs); font-weight: 900; vertical-align: 2px; }
.help-row .badge-n { margin-left: 0; }
.hex-mini { display: grid; place-items: center; flex: none; width: 34px; height: 36px; }

/* ---- 충전: 입금할 분 · 입금 안내 ---- */
.payer-card { margin-bottom: 14px; }
.pay-how { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 14px; font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }
.pay-how .lucide { width: 16px; height: 16px; margin-top: 2px; }
.topup-st { display: flex; align-items: center; gap: 8px; margin: 2px 0 14px; font-size: var(--fs-lg); font-weight: 800; }
.state-chip { padding: 1px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: var(--fs-md); font-weight: 900; }
.state-chip.warm { background: var(--red); color: var(--paper-hi); }
.state-chip.full { background: var(--blue); color: var(--paper-hi); }
.state-chip.new { background: var(--yolk); }
.pay-card {
  margin: 0 0 14px;
  padding: 16px;
  border: var(--line-thick);
  border-radius: 16px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
}
.pay-card.dim { box-shadow: var(--drop-sm); }
.pay-big { display: grid; gap: 2px; margin-bottom: 12px; }
.pay-big span { font-size: var(--fs-md); font-weight: 800; color: var(--ink-soft); }
.pay-big b { font-family: var(--sign); font-weight: 400; font-size: var(--fs-8xl); line-height: 1.15; overflow-wrap: anywhere; }
.pay-big.name { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 10px 12px; border: var(--line); border-radius: 12px; background: var(--yolk); }
.pay-big.name span { grid-column: 1 / -1; color: var(--ink); }
.pay-big.name b { font-size: var(--fs-9xl); color: var(--ink); }
.pay-warn { display: flex; align-items: center; gap: 6px; margin: 0 0 14px; color: var(--red); font-size: var(--fs-lg); font-weight: 900; }
.pay-warn .lucide { width: 18px; height: 18px; }
.acct { margin: 0; border-top: 2px dashed var(--paper-lo); }
.acct > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-bottom: 2px dashed var(--paper-lo); }
.acct dt { font-size: var(--fs-md); font-weight: 800; color: var(--ink-soft); }
.acct dd { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; font-size: var(--fs-xl); font-weight: 800; overflow-wrap: anywhere; }
.acct dd b { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper-hi);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: var(--fs-md);
  font-weight: 900;
}
.copy-btn .lucide { width: 14px; height: 14px; }
.copy-btn:active { transform: translate(2px, 2px); box-shadow: none; }
.pay-note { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 10px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.55; }
.pay-note .lucide { width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }
.pay-note.hold { padding: 10px 12px; border: 2px solid var(--red); border-radius: 10px; background: var(--paper-hi); color: var(--red); }
.pay-note.hold .lucide { color: var(--red); }
.sheet .sheet-note { margin: -4px 0 16px; font-size: var(--fs-md); }

/* ---- 주역 한 괘 ---- */
.yj-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.yj-cats input { position: absolute; opacity: 0; pointer-events: none; }
.yj-cats label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: var(--line);
  border-radius: 999px;
  background: var(--paper-hi);
  font-size: var(--fs-md);
  font-weight: 800;
  cursor: pointer;
}
.yj-cats input:checked + label { background: var(--yolk); box-shadow: var(--drop-sm); }
.yj-cats input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.yj-cats input:disabled + label { opacity: 0.6; cursor: default; }
.yj-stage {
  position: relative;
  margin: 6px 0 10px;
  padding: 16px 12px 14px;
  border: var(--line-thick);
  border-radius: 18px;
  background: var(--ink);
  box-shadow: var(--drop);
  text-align: center;
  overflow: hidden;
}
.yj-stage.idle { background: var(--paper-hi); }
.yj-dangi { position: relative; display: block; width: min(56%, 200px); margin: 0 auto; padding: 0; border: 0; background: none; touch-action: manipulation; }
.yj-dangi .halo { position: absolute; inset: 8% 0 0; }
.yj-dangi .yj-body { position: relative; display: block; }
.yj-dangi img { position: relative; display: block; width: 100%; }
.yj-dangi:active .yj-body { transform: translateY(3px) scale(0.97); }
@media (prefers-reduced-motion: no-preference) {
  .yj-dangi .yj-body { animation: yjBob 2.4s ease-in-out infinite; }
}
/* 당이 가슴팍 명찰: 빨간 띠 + 흰 이름 칸, 살짝 기울임 */
.name-tag {
  position: absolute; left: 47%; top: 47%;
  transform: translate(-50%, 0) rotate(-6deg);
  display: flex; flex-direction: column; align-items: stretch;
  min-width: 25%;
  border: 2px solid var(--ink); border-radius: 6px;
  background: #fff; box-shadow: 2px 2px 0 var(--ink);
  overflow: hidden;
}
.name-tag::before { content: ""; height: 5px; background: var(--red); border-bottom: 2px solid var(--ink); }
.name-tag b { padding: 1px 8px 2px; font-family: var(--sign); font-size: var(--fs-lg); line-height: 1.2; color: var(--ink); letter-spacing: 0.04em; white-space: nowrap; }
@keyframes yjBob { 50% { transform: translateY(-5px); } }
.yj-tap { margin: 8px 0 0; font-size: var(--fs-md); font-weight: 800; color: var(--ink-soft); }
.coins { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; margin: 4px 0 14px; perspective: 600px; }
.coin-slot { display: grid; justify-items: center; gap: 4px; }
.coin-slot small { color: var(--paper-hi); font-family: var(--hanja); font-size: var(--fs-md); font-weight: 700; opacity: 0.8; }
.coin { --end: 0deg; position: relative; display: block; width: 44px; height: 44px; transform-style: preserve-3d; transform: rotateY(var(--end)); }
.coin.tails { --end: 180deg; }
.coin-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 2.5px solid var(--paper-hi);
  border-radius: 50%;
  background: #c98b4f;
  color: var(--ink);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  font-size: var(--fs-xl);
  font-weight: 900;
}
.coin-face .lucide { width: 22px; height: 22px; stroke-width: 2.25; }
.coin-face.back { transform: rotateY(180deg); background: #b07a45; }
@media (prefers-reduced-motion: no-preference) {
  .tossing .coin { animation: coinToss 0.95s cubic-bezier(.25, .7, .4, 1) both; animation-delay: calc(var(--i) * 0.28s); }
  .tossing .hex.build .hx { animation: lineIn 0.3s ease-out both; animation-delay: calc(var(--i) * 0.28s + 0.9s); }
}
@keyframes coinToss {
  0% { transform: translateY(-150px) rotateY(0deg) rotateX(40deg); opacity: 0; }
  10% { opacity: 1; }
  70% { transform: translateY(6px) rotateY(calc(var(--end) + 1440deg)) rotateX(0deg); }
  85% { transform: translateY(-6px) rotateY(calc(var(--end) + 1440deg)); }
  100% { transform: translateY(0) rotateY(calc(var(--end) + 1440deg)); }
}
@keyframes lineIn { from { opacity: 0; transform: scaleX(0.3); } }
.hex { display: inline-grid; gap: 6px; width: 120px; }
.hx { display: flex; justify-content: space-between; height: 12px; }
.hx i { display: block; height: 100%; border-radius: 2px; background: var(--paper-hi); }
.hx.yang i:first-child { width: 100%; }
.hx.yang i:last-child { display: none; }
.hx.yin i { width: 42%; }
.yj-stage .hex { margin: 0 auto; }
.hex.mini { gap: 3px; width: 28px; }
.hex.mini .hx { height: 3px; }
.hex.mini .hx i, .yj-title .hex .hx i { background: var(--ink); }
.yj-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin: 12px 0 0; color: var(--paper-hi); font-size: var(--fs-xs); font-weight: 700; opacity: 0.85; }
.yj-legend span { display: inline-flex; align-items: center; gap: 3px; }
.yj-legend .lucide { width: 13px; height: 13px; }
.yj-left { margin: 4px 0 14px; text-align: center; font-size: var(--fs-md); font-weight: 800; color: var(--ink-soft); }
.yj-result {
  margin: 12px 0 0;
  padding: 16px;
  border: var(--line-thick);
  border-radius: 16px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
}
@media (prefers-reduced-motion: no-preference) {
  .yj-result { animation: rise 0.4s ease-out; }
}
.yj-q { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: var(--fs-lg); font-weight: 900; }
.yj-q span { padding: 0 8px; border: 1.5px solid var(--ink); border-radius: 4px; background: var(--yolk); font-size: var(--fs-xs); }
.yj-title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.yj-hanja { display: grid; place-items: center; width: 60px; height: 60px; border: var(--line-thick); border-radius: 12px; background: var(--red); color: var(--paper-hi); font-family: var(--hanja); font-size: var(--fs-9xl); font-weight: 700; line-height: 1; }
.yj-title h2 { margin: 0; font-family: var(--sign); font-weight: 400; font-size: var(--fs-5xl); line-height: 1.2; }
.yj-title p { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.yj-title .hex { width: 46px; gap: 4px; }
.yj-title .hex .hx { height: 5px; }
.yj-read { margin: 14px 0 0; }
.yj-read p, .yj-sum p { margin: 0 0 10px; font-size: var(--fs-lg2); line-height: 1.8; overflow-wrap: anywhere; }
.yj-fallback { display: flex; gap: 6px; align-items: flex-start; padding: 8px 10px; border: 2px dashed var(--ink-soft); border-radius: 10px; font-size: var(--fs-md) !important; font-weight: 700; color: var(--ink-soft); }
.yj-fallback .lucide { width: 15px; height: 15px; margin-top: 3px; }
.yj-sum { margin: 6px 0 16px; padding: 12px 14px 4px; border-radius: 12px; background: var(--paper); }
.yj-sum h3 { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 900; }
.yj-result .btn + .btn { margin-top: 12px; }
.yj-result .yj-left { margin: 12px 0 0; }
.yj-foot { margin: 18px 0 0; text-align: center; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }
.screen-sub .price-chip { vertical-align: 1px; }

/* ---- 고친 것(흐름 시험 뒤) ---- */
.reveal .pillars, .view > .pillars { margin-bottom: 18px; }
.glyph.sm { margin-bottom: 0; }
.hex.build { display: inline-flex; flex-direction: column-reverse; }
.yj-hanja { width: auto; min-width: 60px; padding: 0 8px; font-size: var(--fs-6xl); }

/* ---------- 내년 운세 (0.3) ---------- */
.ym-line { margin: 0 0 10px; font-size: var(--fs-lg2); font-weight: 800; line-height: 1.5; }
.ym-list { margin: 0 0 8px; padding: 0; list-style: none; display: grid; gap: 6px; }
.ym-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper); }
.ym-m { font-weight: 900; font-variant-numeric: tabular-nums; font-size: var(--fs-lg); }
.ym-g { font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }
.ym-g small { margin-left: 6px; padding: 1px 5px; border-radius: 4px; background: var(--paper-lo); font-size: var(--fs-2xs); font-weight: 800; color: var(--ink); }
.ym-k { justify-self: end; padding: 2px 8px; border: 2px solid var(--ink); border-radius: 999px; font-size: var(--fs-sm); font-weight: 800; text-align: right; line-height: 1.35; }
/* 결 색은 뜻을 전하는 색(좋음 초록·섞임 노랑·무거움 빨강) */
.ym-k.k-good, .ym-k.t-good { background: var(--k-good); }
.ym-k.k-mixed, .ym-k.t-mixed, .ym-k.t-half { background: var(--k-mixed); }
.ym-k.k-heavy, .ym-k.t-heavy { background: var(--k-heavy); }
.ym-k.k-none, .ym-k.t-none, .ym-k.t-flat { background: var(--paper-hi); color: var(--ink-soft); }
.ym-foot { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 800; }
.ym-note { margin: 0; font-size: var(--fs-md); color: var(--ink-soft); }

/* ---- 내년 운세 맛보기 v2 (2026-11-24) ---- */
.year-facts .ym-note { margin-top: 8px; }
.yt-tally { margin: 0 0 12px; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 6px; }
.yt-tally li { display: grid; gap: 1px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.yt-tally li.t-good { background: var(--k-good); }
.yt-tally li.t-mixed, .yt-tally li.t-half { background: var(--k-mixed); }
.yt-tally li.t-heavy { background: var(--k-heavy); }
.yt-tally b { font-family: var(--sign); font-weight: 400; font-size: var(--fs-6xl); line-height: 1.05; }
.yt-tally span { font-size: var(--fs-md); font-weight: 900; line-height: 1.3; }
.yt-tally small { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); line-height: 1.35; word-break: keep-all; }

/* 열두 달 막대: 높이 = 결(좋음 높게 · 섞임 가운데 · 무거움 낮게), 막대 안 글자로도 구분(색만으로 나누지 않는다) */
.yband { margin: 0 0 4px; }
.yb-cols { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; align-items: end; }
.yb-col { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.yb-top { height: 14px; display: grid; place-items: end center; }
.yb-mark { width: 13px; height: 13px; stroke-width: 2.5; }
.yb-mark.good { color: var(--k-good-hi); fill: var(--k-good); }
.yb-mark.heavy { color: var(--red); }
.yb-well { width: 100%; height: 96px; display: flex; align-items: flex-end; border-bottom: 2px solid var(--ink); }
.yb-bar { width: 100%; height: 16%; display: grid; place-items: start center; padding-top: 3px; border: 2px solid var(--ink); border-bottom: 0; border-radius: 6px 6px 0 0; background: var(--paper-hi); }
.yb-ch { font-size: var(--fs-sm); font-weight: 900; line-height: 1; }
.t-good .yb-bar { height: 100%; background: var(--k-good); }
.t-mixed .yb-bar { height: 62%; background: repeating-linear-gradient(135deg, var(--k-mixed) 0 6px, var(--k-heavy) 6px 9px); }
.t-half .yb-bar { height: 62%; background: var(--k-mixed); }
.t-flat .yb-bar { height: 50%; background: var(--paper-lo); }
.t-heavy .yb-bar { height: 32%; background: var(--k-heavy); }
.t-none .yb-bar { border-style: dashed; color: var(--ink-soft); }
.yb-col.jan .yb-bar { border-style: dashed; opacity: 0.75; }
.yb-m { font-size: var(--fs-sm); font-weight: 900; font-variant-numeric: tabular-nums; }
.yb-col.jan .yb-m { color: var(--ink-soft); }
.yb-legend { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.yb-legend li { display: inline-flex; align-items: center; gap: 4px; }
.yb-key { display: grid; place-items: center; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 4px; background: var(--paper-hi); font-size: var(--fs-2xs); font-weight: 900; color: var(--ink); }
.yb-key.t-good { background: var(--k-good); }
.yb-key.t-mixed { background: repeating-linear-gradient(135deg, var(--k-mixed) 0 4px, var(--k-heavy) 4px 6px); }
.yb-key.t-half { background: var(--k-mixed); }
.yb-key.t-flat { background: var(--paper-lo); }
.yb-key.t-heavy { background: var(--k-heavy); }

.y-picks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.y-picks li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: baseline; gap: 2px 10px; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; }
.y-picks li.t-good { background: var(--k-good); }
.y-picks li.t-heavy { background: var(--k-heavy); }
.yp-name { font-size: var(--fs-md); font-weight: 800; }
.y-picks b { font-size: var(--fs-xl); font-weight: 900; }
.yp-lock { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.yp-lock .lucide, .ym-lock .lucide { width: 12px; height: 12px; color: var(--red); }

.yk + .yk { margin-top: 12px; padding-top: 12px; border-top: 2px dashed var(--ink-soft); }
.yk-title { margin: 0 0 8px; font-size: var(--fs-lg); font-weight: 900; line-height: 1.45; }
.yk-rows { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.yk-rows li { display: grid; grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "seat ch" "life ch"; gap: 2px 10px; align-items: center; padding: 8px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper); }
.yk-seat { grid-area: seat; font-size: var(--fs-sm); font-weight: 800; color: var(--ink-soft); }
.yk-ch { grid-area: ch; display: grid; place-items: center; width: 40px; height: 40px; border: 2px solid var(--ink); border-radius: 8px; background: var(--paper-hi); font-family: var(--sign); font-size: var(--fs-3xl); }
.yk-life { grid-area: life; font-size: var(--fs-md); font-weight: 600; line-height: 1.5; }
.yk-life b { font-weight: 900; }
.yk-use { display: inline-block; margin-left: 6px; padding: 0 6px; border: 2px solid var(--ink); border-radius: 999px; font-size: var(--fs-2xs); font-weight: 900; vertical-align: 1px; white-space: nowrap; }
.yk-use.u-good { background: var(--k-good); }
.yk-use.u-heavy { background: var(--k-heavy); }
.yk-note { display: flex; gap: 6px; margin: 8px 0 0; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.45; }
.yk-note .lucide { flex: none; width: 14px; height: 14px; margin-top: 1px; }

.ym-list.v2 li { grid-template-columns: 40px minmax(0, 1fr) auto; row-gap: 4px; padding: 8px; }
.ym-sides { grid-column: 2 / -1; margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; font-size: var(--fs-sm); font-weight: 600; line-height: 1.45; }
.ym-list.v2 .ym-sides li { display: block; padding: 0; border: 0; background: none; }
.ym-clash { grid-column: 2 / -1; display: flex; gap: 4px; margin: 0; font-size: var(--fs-sm); font-weight: 700; line-height: 1.45; }
.ym-clash .lucide { flex: none; width: 12px; height: 12px; margin-top: 2px; color: var(--red); }
.ym-lock { grid-column: 2 / -1; display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: var(--fs-2xs); font-weight: 700; color: var(--ink-soft); }

.yt-promise { margin: 0 0 10px; font-size: var(--fs-lg); font-weight: 700; line-height: 1.5; }
.yt-list li { align-items: flex-start; }
.yt-list .chapter-no { flex: none; margin-top: 1px; }
.yt-body { display: grid; gap: 3px; min-width: 0; flex: 1; }
.yt-key { font-size: var(--fs-lg); font-weight: 900; }
.yt-key small { margin-left: 6px; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.yt-desc { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); line-height: 1.4; }
.yt-skel { display: grid; gap: 4px; margin-top: 3px; }
.yt-skel span { display: block; height: 7px; border-radius: 4px; background: var(--paper-lo); }
.yt-skel span:last-child { width: 62%; }
.yt-list li > .lucide { flex: none; margin-top: 3px; }
.yt-list li.yt-note { border: 2px solid var(--ink); background: var(--yolk); }
.yt-list li.yt-note .yt-desc { color: var(--ink); }
.yt-list .yt-egg { flex: none; margin: 1px 0 0; width: 24px; height: 24px; color: var(--ink); }
.y-picks b { word-break: keep-all; }

.ask { display: grid; gap: 10px; padding-bottom: 24px; }
.ask-row { display: flex; align-items: flex-end; gap: 8px; }
.ask-row.mine { justify-content: flex-end; }
/* 대화 속 당이: 카톡 프로필처럼 동그란 틀에 얼굴을 크게 */
.ask-ava { flex: none; position: relative; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 50%; background: var(--yolk); overflow: hidden; }
.ask-ava img { position: absolute; left: -3px; top: 5px; width: 135%; max-width: none; }  /* 그림 속 몸통이 왼쪽에 치우쳐(오른손 흔듦) 왼쪽으로 당겨 얼굴을 가운데에 */
.ask-bub { margin: 0; max-width: 78%; padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px 14px 14px 4px; background: var(--paper-hi); font-size: var(--fs-lg2); font-weight: 700; line-height: 1.5; }
.ask-row.mine .ask-bub { border-radius: 14px 14px 4px 14px; background: var(--yolk); }
.ask-row.echo .ask-bub { background: var(--paper); font-weight: 600; color: var(--ink-soft); }
.ask-row.now .ask-bub { box-shadow: var(--drop-sm); }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 54px; }
.ask-chip { min-height: 44px; padding: 8px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-hi); font-size: var(--fs-lg); font-weight: 800; box-shadow: var(--drop-sm); }
.ask-chip:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ask-input { display: grid; gap: 8px; }
.ask-input textarea, .ask-input input { width: 100%; padding: 10px 12px; border: var(--line); border-radius: 12px; background: var(--paper-hi); font-size: var(--fs-xl); line-height: 1.5; resize: vertical; }
.ask-count { margin: -4px 0 0; text-align: right; font-size: var(--fs-sm); color: var(--ink-soft); }
.ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask-sum { margin: 0; padding: 12px 14px; border: var(--line-thick); border-radius: 14px; background: var(--paper-hi); display: grid; gap: 8px; }
.ask-sum div { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
.ask-sum dt { font-size: var(--fs-md); font-weight: 900; }
.ask-sum dd { margin: 0; font-size: var(--fs-lg); font-weight: 600; overflow-wrap: anywhere; }
.mine-sum h2 { margin: 0; font-family: var(--sign); font-weight: 400; font-size: var(--fs-xl); }
.chapter-key { justify-self: start; padding: 0 7px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper-hi); font-size: var(--fs-xs); font-weight: 900; line-height: 1.6; }

/* ---------- 내년 운세: 고민 알 고르기 + 소원 쪽지 (0.3) ----------
   알 그림은 오늘의 알과 같은 SVG(좌표는 px). 깬 알은 윗껍질이 살짝 들리고 노른자가 보인다 */
.egg-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 8px; }
.pick-egg {
  --egg: var(--shell);
  --egg-shade: var(--ink);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-height: 112px;
  padding: 8px 4px 8px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop-sm);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.pick-egg.on { background: var(--yolk); }
.pick-egg:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.mini-egg { width: 52px; height: 70px; overflow: visible; }
.mini-yolk { fill: var(--yolk); stroke: var(--ink); stroke-width: 4; }
.pick-egg.on .mini-yolk { fill: var(--paper-hi); }
.mini-top { transform: translate(-4px, -16px) rotate(-12deg); transform-origin: 80px 98px; }
.pick-name { font-size: var(--fs-lg); font-weight: 900; }
.egg-no {
  position: absolute;
  top: -8px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
  color: var(--paper-hi);
  font-size: var(--fs-md);
  font-weight: 900;
}
.egg-no.sm { position: static; flex: none; width: 22px; height: 22px; font-size: var(--fs-sm); }
@media (prefers-reduced-motion: no-preference) {
  .pick-egg.pop .mini-top { animation: miniCrack 0.38s ease-out; }
  .pick-egg.pop .mini-egg { animation: miniHop 0.38s ease-out; }
}
@keyframes miniCrack { 0% { transform: none; } 60% { transform: translate(-6px, -22px) rotate(-18deg); } 100% { transform: translate(-4px, -16px) rotate(-12deg); } }
@keyframes miniHop { 0% { transform: translateY(0); } 40% { transform: translateY(-6px); } 100% { transform: translateY(0); } }
.egg-sit { padding: 12px 12px 10px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper-hi); }
.egg-sit h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: var(--fs-lg2); font-weight: 900; }
.egg-sit .ask-chips { padding-left: 0; }
.ask-chip.on { background: var(--yolk); }
.sit-text { width: 100%; margin-top: 10px; padding: 10px 12px; border: var(--line); border-radius: 12px; background: var(--paper); font-size: var(--fs-xl); }
.wish-slip {
  position: relative;
  margin: 6px 4px 0;
  padding: 18px 14px 10px;
  border: 2px solid var(--ink);
  border-radius: 4px 4px 14px 14px;
  background: var(--paper);
  box-shadow: var(--drop-sm);
  transform: rotate(-1deg);
}
.wish-slip::before {   /* 소원나무에 거는 끈 */
  content: '';
  position: absolute;
  top: -12px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--red);
}
.wish-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: var(--fs-lg); font-weight: 900; }
.wish-head .lucide { width: 18px; height: 18px; color: var(--blue); }
.wish-slip textarea { width: 100%; padding: 8px 10px; border: 2px dashed var(--ink-soft); border-radius: 10px; background: var(--paper-hi); font-size: var(--fs-xl); line-height: 1.5; resize: none; }
.wish-text { margin: 0 0 6px; font-size: var(--fs-lg2); font-weight: 700; overflow-wrap: anywhere; }
.wish-empty { color: var(--ink-soft); font-weight: 600; }
.ask-next { width: 100%; }
.egg-sum { margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 8px; border: var(--line-thick); border-radius: 14px; background: var(--paper-hi); }
.egg-sum li { display: flex; align-items: center; gap: 8px; font-size: var(--fs-lg); }
.egg-sum li b { flex: none; font-weight: 900; }
.egg-sum li span:last-child { color: var(--ink-soft); font-weight: 700; overflow-wrap: anywhere; }
.egg-sum li.none { color: var(--ink-soft); font-weight: 700; }
.mine-sum { margin: 0 0 18px; display: grid; gap: 14px; }
/* 요즘 나(하는 일·만나는 사람·고민 글) — 알 고르기 앞 단계 (2026-11-24) */
.me-sec h3 .lucide { flex: none; width: 18px; height: 18px; color: var(--blue); }
.me-worry { width: 100%; padding: 10px 12px; border: var(--line); border-radius: 12px; background: var(--paper); font-size: var(--fs-xl); line-height: 1.5; resize: vertical; }
.me-sec .ask-count { margin: 6px 0 0; }
.me-sum div { grid-template-columns: 96px minmax(0, 1fr); }
/* 하는 일 한 줄 — 칩 아래, 고른 칩에 맞춘 안내 문구·예시 (2026-11-24) */
.job-line { margin-top: 12px; padding-top: 10px; border-top: 2px dashed var(--ink-soft); }
.job-guide { display: flex; align-items: center; gap: 6px; font-size: var(--fs-lg); font-weight: 800; }
.job-guide .lucide { flex: none; width: 16px; height: 16px; color: var(--blue); }
.job-line .sit-text { margin-top: 8px; min-width: 0; text-overflow: ellipsis; }
.job-line .sit-text::placeholder { color: var(--ink-soft); font-size: var(--fs-lg); }

/* ---------- 내년 운세 맛보기 맨 위 '내 얘기' (0.4) ----------
   올해의 알(고정 표 · 세운 천간 오행 색 배지) → 고민을 짚는 총평 → 고른 알 카드(첫 줄 + 글자 없는 뼈대) */
.yegg {
  position: relative;
  margin: 0 0 18px;
  padding: 16px 16px 14px;
  border: var(--line-thick);
  border-radius: 18px;
  background: var(--yolk);
  box-shadow: var(--drop);
  text-align: center;
}
.yegg-art { position: relative; width: 108px; margin: 0 auto 4px; }
.yegg-art img { width: 108px; height: 114px; object-fit: contain; }
.yegg-badge {
  position: absolute;
  right: -34px;
  bottom: 10px;
  padding: 2px 9px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: var(--fs-sm);
  font-weight: 900;
  white-space: nowrap;
  box-shadow: var(--drop-sm);
  transform: rotate(6deg);
}
.yegg-kicker { margin: 0; font-size: var(--fs-md); font-weight: 800; }
.yegg-name { margin: 2px 0 8px; font-family: var(--sign); font-weight: 400; font-size: var(--fs-7xl); line-height: 1.2; }
.yegg-tags, .ystory-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.yegg-tags li, .ystory-tags li { padding: 2px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-hi); font-size: var(--fs-md); font-weight: 800; }
.yegg-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; text-align: left; }
.yegg-rows li { display: grid; gap: 1px; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--paper-hi); }
.yegg-seat { font-size: var(--fs-sm); font-weight: 800; color: var(--ink-soft); }
.yegg-seat b { color: var(--ink); font-size: var(--fs-lg); }
.yegg-life { font-size: var(--fs-md); font-weight: 700; line-height: 1.45; }
.yegg-life small { margin-left: 2px; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); }

.ystory {
  margin: 0 0 18px;
  padding: 16px;
  border: var(--line-thick);
  border-radius: 14px;
  background: var(--paper-hi);
  box-shadow: var(--drop);
}
.ystory-kicker { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--fs-md); font-weight: 900; color: var(--red); }
.ystory-kicker .lucide { width: 16px; height: 16px; }
.ystory-demo { margin-left: auto; padding: 0 6px; border: 2px solid var(--ink); border-radius: 6px; background: var(--paper-lo); color: var(--ink); font-size: var(--fs-2xs); }
.ystory h2 { margin: 0 0 8px; font-family: var(--sign); font-weight: 400; font-size: var(--fs-3xl); line-height: 1.35; }
.ystory .ystory-tags { justify-content: flex-start; }
.ystory .ystory-tags li { background: var(--paper); }
.ystory-body { margin: 0; font-size: var(--fs-lg2); font-weight: 600; line-height: 1.75; }
.ystory.ask-cta { display: grid; gap: 10px; background: var(--paper); }

.ycards { margin: 0 0 18px; }
.ycards-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.ycards-head h2 { margin: 0; font-family: var(--sign); font-weight: 400; font-size: var(--fs-2xl); }
.ychange { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 4px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper-hi); font-size: var(--fs-md); font-weight: 800; box-shadow: var(--drop-sm); }
.ychange .lucide { width: 14px; height: 14px; }
.ychange:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ycard-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ycard { padding: 12px 14px; border: var(--line-thick); border-radius: 14px; background: var(--paper-hi); box-shadow: var(--drop-sm); }
.ycard-head { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: var(--fs-lg); }
.ycard-head b { font-weight: 900; }
.ycard-head span:last-child { font-weight: 700; color: var(--ink-soft); overflow-wrap: anywhere; }
.ycard-line { margin: 0 0 10px; font-size: var(--fs-lg2); font-weight: 800; line-height: 1.6; }
.ycard-lock { display: grid; gap: 8px; padding-top: 10px; border-top: 2px dashed var(--ink-soft); }
.ycard-lock .yt-skel { margin: 0; }
.ycard-lock .yt-skel span:nth-child(2) { width: 88%; }
.ycard-note { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 800; color: var(--red); }
.ycard-note .lucide { width: 13px; height: 13px; }
.ycards-none { margin: 0; font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }
.ask-foot { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 2px 0 0; font-size: var(--fs-md); font-weight: 700; color: var(--ink-soft); }
.ask-foot .lucide { width: 15px; height: 15px; color: var(--red); }
