/* moviemole — 기본 스타일 */
/* 색은 전부 여기 토큰으로. 다크 모드는 아래에서 같은 이름의 값만 바꿔요. */
:root {
  color-scheme: light;
  --accent: #5B4BDB;        /* 버튼, 막대처럼 색으로 채우는 곳 */
  --accent-text: #5B4BDB;   /* 글자로 쓰는 강조색 */
  --accent-soft: #EFEDFB;
  --bg: #FFFFFF;
  --backdrop: #ECEEF2;
  --text: #191A1C;
  --muted: #6B7280;
  --sub: #4B5160;
  --line: #E3E5EA;
  --surface: #F4F5F7;
  --bar-bg: #E3E5EA;
  --track-off: #D5D8DE;
  --dashed: #C4C8D0;
  --disabled: #C4C8D0;
  --dot3: #8E83E8;
  --ring: rgba(91, 75, 219, .15);
  --phone-shadow: 0 20px 60px rgba(25, 26, 28, .12);
  --white: #FFFFFF;
  --earth: #A07B5A;
  --earth-soft: #F3ECE6;
  --gold: #FFB400;
  --gold-text: #D08A00;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* 다크 모드: 폰 설정을 따르고, 앱에서 직접 고르면 그걸 우선 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --accent: #6A5AE6;
    --accent-text: #A79DFF;
    --accent-soft: #26224A;
    --bg: #111214;
    --backdrop: #050506;
    --text: #ECEDEF;
    --muted: #9AA0AB;
    --sub: #C2C6CE;
    --line: #2A2C31;
    --surface: #1C1D21;
    --bar-bg: #2A2C31;
    --track-off: #3A3D44;
    --dashed: #4A4E57;
    --disabled: #3A3D44;
    --dot3: #7D72E0;
    --ring: rgba(167, 157, 255, .25);
    --phone-shadow: 0 0 0 1px #1F2024;
    --earth-soft: #3A3029;
  --gold: #FFC233;
  --gold-text: #FFC233;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --accent: #6A5AE6;
  --accent-text: #A79DFF;
  --accent-soft: #26224A;
  --bg: #111214;
  --backdrop: #050506;
  --text: #ECEDEF;
  --muted: #9AA0AB;
  --sub: #C2C6CE;
  --line: #2A2C31;
  --surface: #1C1D21;
  --bar-bg: #2A2C31;
  --track-off: #3A3D44;
  --dashed: #4A4E57;
  --disabled: #3A3D44;
  --dot3: #7D72E0;
  --ring: rgba(167, 157, 255, .25);
  --phone-shadow: 0 0 0 1px #1F2024;
  --earth-soft: #3A3029;
  --gold: #FFC233;
  --gold-text: #FFC233;
}

/* 테마를 바꾸는 순간만 색이 부드럽게 넘어가요 */
.theme-anim, .theme-anim * {
  transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease !important;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
p, h1, h2 { margin: 0; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  background: var(--backdrop);
  color: var(--text);
  font-family: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* 데스크톱에서만 보이는 화면 바로가기 */
.switcher { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.switcher a {
  padding: 8px 14px; border-radius: 99px;
  background: var(--bg); color: var(--sub);
  font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.switcher a[aria-current="page"] { background: var(--text); color: var(--bg); }

/* 폰 프레임 */
.phone {
  position: relative;
  width: 390px; height: 844px; max-width: 100%;
  background: var(--bg);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--phone-shadow);
}
@media (max-width: 480px) {
  body { padding: 0; background: var(--bg); }
  .switcher { display: none; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* 화면 전환 */
.screen {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  background: var(--bg);
}
.screen.active { display: flex; }
.screen.in-forward { animation: inForward .42s var(--ease) both; }
.screen.in-back { animation: inBack .42s var(--ease) both; }
@keyframes inForward { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes inBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.screen.active .rise { animation: rise .55s var(--ease) both; }
.d1 { animation-delay: .06s !important; }
.d2 { animation-delay: .13s !important; }
.d3 { animation-delay: .2s !important; }
.d4 { animation-delay: .27s !important; }
.d5 { animation-delay: .34s !important; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 설정에서 움직임 줄이기를 켰을 때만 */
html.calm *, html.calm *::before, html.calm *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important;}

/* 누르는 느낌 */
.press { transition: transform .16s ease, background-color .22s ease, color .22s ease, border-color .22s ease; }
.press:active { transform: scale(.96); }

/* 상단 바 */
.topbar { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.topbar.spread { justify-content: space-between; padding-left: 24px; }
.topbar-label { font-size: 14px; font-weight: 500; }
.topbar-title { font-size: 17px; font-weight: 700; }
.icon-btn {
  width: 44px; height: 44px; border: none; border-radius: 12px;
  background: transparent; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}

/* 본문 */
.body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 8px 24px 8px;
  display: flex; flex-direction: column; gap: 26px;
}
.group { display: flex; flex-direction: column; gap: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.h-page { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.h-section { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.h-question { font-size: 17px; font-weight: 700; }
.row-title { font-size: 16px; font-weight: 700; }
.accent-text { color: var(--accent-text); }

/* 작품 정보 */
.show { display: flex; gap: 16px; align-items: center; }
.poster {
  width: 64px; height: 92px; flex-shrink: 0; border-radius: 10px;
  background: #2E3B4E; color: var(--white);
  display: flex; align-items: flex-end; padding: 8px;
  font-size: 11px; font-weight: 700; line-height: 1.3;
}
.show-meta { display: flex; flex-direction: column; gap: 4px; }
.show-title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }

/* 선택 버튼 */
.pill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pill, .chip {
  border: 1.5px solid var(--line); background: var(--bg); color: var(--text);
  font-weight: 700;
}
.pill { height: 52px; border-radius: 14px; font-size: 15px; }
.pill[aria-pressed="true"], .chip[aria-pressed="true"] {
  background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text);
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 44px; padding: 0 16px; border-radius: 22px; font-size: 15px; font-weight: 600; }
.chip-dashed { border-style: dashed; border-color: var(--dashed); color: var(--sub); }
.small-chip { height: 40px; padding: 0 14px; border-radius: 20px; font-size: 14px; font-weight: 500; white-space: nowrap; flex-shrink: 0; }

.own-field { animation: rise .4s var(--ease) both; }
.text-input {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--bg);
  font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease;
}
.text-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

/* 결과 카드 */
.result {
  background: var(--surface); border-radius: 20px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.result .muted { font-size: 14px; font-weight: 500; }
.result-title { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.bar { height: 8px; border-radius: 99px; background: var(--bar-bg); overflow: hidden; }
.bar.thin { height: 6px; flex: 1; background: var(--bar-bg); }
.bar-fill { height: 100%; border-radius: 99px; background: var(--accent); transition: width .55s var(--ease); }
.bar-labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -6px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { padding: 8px 12px; border-radius: 10px; background: var(--bg); font-size: 13px; font-weight: 500; color: var(--sub); }
.progress { display: flex; align-items: center; gap: 10px; }

/* 행 + 스위치 */
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row .muted { margin-top: 2px; }
.switch { width: 60px; height: 44px; border: none; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; }
.track {
  width: 52px; height: 32px; padding: 3px; border-radius: 99px;
  background: var(--track-off); display: flex; align-items: center;
  transition: background-color .25s ease;
}
.knob {
  width: 26px; height: 26px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .25s var(--ease);
}
.switch[aria-checked="true"] .track { background: var(--accent); }
.switch[aria-checked="true"] .knob { transform: translateX(20px); }

/* 슬라이더 */
.slider { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); }

/* 링크 행 */
.link-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px;
  background: var(--surface); text-decoration: none;
}
.link-icon {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
}
.link-text { flex: 1; display: flex; flex-direction: column; gap: 1px; }
.link-text .row-title { font-size: 15px; }

/* 하단 버튼 */
.footer { flex-shrink: 0; padding: 12px 20px 24px; }
.footer.stack { display: flex; flex-direction: column; gap: 6px; padding-bottom: 20px; }
.cta {
  width: 100%; height: 56px; border: none; border-radius: 16px;
  background: var(--accent); color: var(--white);
  font-size: 17px; font-weight: 700; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}
.ghost {
  width: 100%; height: 44px; border-radius: 12px;
  color: var(--sub); font-size: 15px; font-weight: 500; text-decoration: none;
  display: flex; align-items: center; justify-content: center;
}

/* 토스트 */
.toast {
  position: absolute; left: 50%; bottom: 140px;
  transform: translateX(-50%);
  padding: 12px 18px; border-radius: 14px;
  background: var(--text); color: var(--white);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
  animation: toastIn .4s var(--ease) both;
}
.toast[hidden] { display: none; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* 묻기 화면 */
.badge-wrap { padding: 0 20px; flex-shrink: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-text);
  font-size: 13px; font-weight: 700;
}
.chat {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 20px 20px 12px;
  display: flex; flex-direction: column; gap: 14px;
}
.bubble { font-size: 15px; line-height: 1.6; padding: 12px 16px; }
.bubble.me {
  align-self: flex-end; max-width: 78%;
  border-radius: 20px 20px 6px 20px;
  background: var(--accent); color: var(--white);
}
.ai-block { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: 6px; }
.bubble.ai {
  padding: 14px 16px; border-radius: 20px 20px 20px 6px;
  background: var(--surface); line-height: 1.65;
  display: flex; flex-direction: column; gap: 10px;
}
.bubble.ai .sub { color: var(--sub); }
.bubble.new { animation: rise .45s var(--ease) both; }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: .15s; }
.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.keep {
  align-self: flex-start; height: 36px; padding: 0 12px;
  border: none; border-radius: 10px; background: transparent;
  color: var(--sub); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.keep[aria-pressed="true"] { color: var(--accent-text); }
.keep[aria-pressed="true"] svg { fill: currentColor; }

.suggestions {
  flex-shrink: 0; display: flex; gap: 8px;
  padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none;
}
.suggestions::-webkit-scrollbar { display: none; }

.composer {
  flex-shrink: 0; margin: 0 16px 24px;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 16px; border-radius: 20px;
  border: 1.5px solid var(--line); background: var(--bg);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.composer-input { flex: 1; min-width: 0; height: 40px; border: none; background: transparent; font-size: 15px; }
.composer-input:focus { outline: none; }
.send {
  width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: 14px;
  background: var(--accent); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.send:disabled { background: var(--disabled); cursor: default; }

/* 연말 결산 */
.recap { background: var(--accent); color: var(--white); }
.recap .icon-btn { color: var(--white); }
.recap :focus-visible { outline-color: var(--white); }
.story-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 14px 20px 0; }
.story-bars span { height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.story-bars span.on { background: var(--white); }
.recap-top { height: 48px; }
.recap-kicker { font-size: 14px; font-weight: 700; color: #ECEAFB; }
.recap-body { gap: 22px; }
.recap-title { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.recap-sub { font-size: 15px; color: #ECEAFB; margin-top: -4px; }
.month-bars, .month-labels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.month-bars { height: 104px; align-items: end; }
.month-bars span { border-radius: 4px; background: rgba(255, 255, 255, .38); transform-origin: bottom; }
.month-bars span.max { background: var(--white); }
.screen.active .month-bars span { animation: grow .7s var(--ease) both; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.month-labels { font-size: 11px; color: #ECEAFB; text-align: center; margin-top: -4px; }
.recap-note { font-size: 14px; font-weight: 500; }
.recap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.recap-card {
  padding: 16px; border-radius: 18px;
  background: rgba(20, 12, 70, .28);
  display: flex; flex-direction: column; gap: 6px;
}
.recap-label { font-size: 12px; color: #ECEAFB; }
.recap-value { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.word-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.word { padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: 14px; font-weight: 600; }
.word.top { background: var(--white); color: var(--accent); font-weight: 700; }
.cta.inverse { background: var(--white); color: var(--accent); }

/* ---------- 두더지 캐릭터 ---------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
.avatar {
  width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
  background: var(--earth-soft); overflow: hidden;
  display: inline-flex; align-items: flex-end; justify-content: center;
}
.avatar svg { width: 100%; height: 100%; display: block; }
.brand-avatar { width: 40px; height: 40px; background: var(--bg); }
.small-avatar { width: 28px; height: 28px; }
.avatar.tiny { width: 24px; height: 24px; background: #2E2F33; }
@media (max-width: 480px) { .brand { display: none; } }

.result-wrap { position: relative; margin-top: 34px; }
.result-wrap .result { position: relative; z-index: 1; }
.peek {
  position: absolute; right: 18px; bottom: calc(100% - 16px);
  width: 76px; height: 76px; z-index: 0;
}
.peek svg { width: 100%; height: 100%; display: block; }
.screen.active .mole-pop, .mole-pop.again { animation: pop .6s var(--ease) .35s both; }
@keyframes pop {
  0% { transform: translateY(40px); }
  60% { transform: translateY(-5px); }
  100% { transform: none; }
}

.hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hello-text { display: flex; flex-direction: column; gap: 4px; }
.hello-mole { width: 64px; height: 64px; flex-shrink: 0; margin-bottom: -6px; }
.bob { animation: bob 3.2s ease-in-out infinite; transform-origin: bottom center; }
@keyframes bob { 0%, 100% { transform: none; } 50% { transform: translateY(-3px) rotate(-2deg); } }

.ai-name { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--sub); }
.digging { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.digging .typing span { background: var(--earth); }

/* ---------- 연말 결산 스토리 ---------- */
.recap { transition: background-color .5s ease; }
.story-bars span { position: relative; overflow: hidden; }
.story-bars i {
  position: absolute; inset: 0; width: 0;
  background: var(--white); border-radius: 2px;
}
.stories { position: relative; flex: 1; min-height: 0; }
.tap {
  position: absolute; top: 0; bottom: 0; z-index: 1;
  border: none; background: transparent; padding: 0; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tap:focus-visible { outline-offset: -4px; }
.tap-prev { left: 0; width: 30%; }
.tap-next { right: 0; width: 70%; }
.story {
  position: absolute; inset: 0; z-index: 2;
  padding: 8px 24px 0;
  display: none; flex-direction: column; gap: 18px;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
.story.active { display: flex; animation: storyIn .45s var(--ease) both; }
@keyframes storyIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.story.active .rise { animation: rise .55s var(--ease) both; }
.story a, .story button { pointer-events: auto; }

.story-kicker { font-size: 15px; font-weight: 700; color: #ECEAFB; }
.story-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.story-intro { justify-content: center; padding-bottom: 60px; }
.intro-mole { width: 150px; height: 150px; margin-left: -10px; }
.big-number { font-size: 88px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.big-number span { font-size: 28px; letter-spacing: -.02em; margin-left: 6px; }

.stat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.stat {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px; border-radius: 16px; background: rgba(20, 12, 70, .28);
}
.stat .recap-label { font-size: 14px; }
.stat-value { font-size: 16px; font-weight: 800; text-align: right; }

.story.active .month-bars span { animation: grow .7s var(--ease) both; }
.month-labels { margin-top: 6px; }
.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.season-title { font-size: 16px; font-weight: 800; }

.deep { display: flex; gap: 16px; align-items: center; }
.big-poster { width: 92px; height: 132px; font-size: 14px; padding: 10px; border-radius: 12px; background: #2E3B4E; }

.story-persona { align-items: center; text-align: center; }
.persona-mole { width: 168px; height: 168px; margin: -6px 0 -10px; }
.persona-desc { font-size: 16px; line-height: 1.6; color: #ECEAFB; max-width: 300px; }
.type-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 4px; }
.type-chips .word { font-size: 13px; }

.badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.badge-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px; border-radius: 16px; background: rgba(255, 255, 255, .1);
  font-size: 13px; font-weight: 700; text-align: center; line-height: 1.35;
}
.badge-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: #FFD66B; color: #3B2C23;
  display: flex; align-items: center; justify-content: center;
}

.story-summary { justify-content: center; gap: 14px; padding-bottom: 24px; }
.summary-card {
  /* 공유용 카드라 다크 모드에서도 항상 밝게 */
  --accent-text: #5B4BDB; --muted: #6B7280; --line: #E3E5EA;
  background: #FFFFFF; color: #191A1C;
  border-radius: 24px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 16px 40px rgba(20, 12, 70, .3);
}
.summary-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.summary-label { font-size: 12px; color: var(--muted); }
.summary-value { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-text); }
.summary-top {
  margin: 0; padding: 14px 0 0 20px; border-top: 1px solid var(--line);
  font-size: 15px; font-weight: 600; display: flex; flex-direction: column; gap: 6px;
}
.ask-year {
  align-self: center; display: flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 18px 0 10px; border-radius: 24px;
  background: rgba(255, 255, 255, .16); color: var(--white);
  font-size: 15px; font-weight: 700; text-decoration: none;
}
.outline {
  width: 100%; height: 48px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .5); background: transparent;
  color: var(--white); font-size: 15px; font-weight: 600;
}

/* ---------- 디자인 벤치마킹 반영 ---------- */

/* 한 화면에 질문 하나 (토스: One Thing per One Page) */
.ep-top { padding-left: 8px; gap: 8px; }
.ep-progress { flex: 1; display: flex; }
.ep-progress .bar { flex: 1; }
#ep-prev[data-hidden="true"] { visibility: hidden; }
.steps { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.step {
  position: absolute; inset: 0;
  display: none; flex-direction: column; gap: 28px;
  padding: 16px 24px 24px; overflow-y: auto;
}
.step.active { display: flex; }
.step.go-next { animation: stepNext .38s var(--ease) both; }
.step.go-prev { animation: stepPrev .38s var(--ease) both; }
@keyframes stepNext { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes stepPrev { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: none; } }
.step.active .rise { animation: rise .5s var(--ease) both; }
.step-head { display: flex; flex-direction: column; gap: 12px; }
.who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--sub); }
.h-page { line-height: 1.35; }

.choice-list { display: flex; flex-direction: column; gap: 10px; }
.choice {
  height: 60px; padding: 0 20px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--bg);
  display: flex; align-items: center; gap: 12px;
  font-size: 17px; font-weight: 600; text-align: left;
}
.choice[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.choice-dashed { border-style: dashed; border-color: var(--dashed); color: var(--sub); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.dot-4 { background: var(--accent); }
.dot-3 { background: var(--dot3); }
.dot-2 { background: var(--dashed); }
.dot-1 { background: var(--bar-bg); border: 1.5px solid var(--dashed); }
.own-field { display: flex; flex-direction: column; gap: 10px; }
.cta:disabled { background: var(--disabled); cursor: default; }

.feel-box { display: flex; flex-direction: column; gap: 14px; padding: 24px 20px; border-radius: 20px; background: var(--surface); }
.feel-label { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-text); text-align: center; transition: color .2s ease; }
.big-slider { height: 36px; }
.feel-box .bar-labels { margin-top: 0; }
.step-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

/* 완료: 축하하는 순간은 크게 (토스: 행복한 순간은 축하) */
.step-done { align-items: center; text-align: center; padding-top: 32px; }
.done-stage { position: relative; width: 168px; height: 168px; }
.done-mole { width: 100%; height: 100%; }
.step-done.active .done-mole { animation: jump .9s var(--ease) .1s both; transform-origin: bottom center; }
@keyframes jump {
  0% { transform: translateY(60px) scaleY(.8); opacity: 0; }
  45% { transform: translateY(-14px) scaleY(1.06); opacity: 1; }
  70% { transform: translateY(2px) scaleY(.97); }
  100% { transform: none; }
}
.done-title { font-size: 28px; }
.done-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.done-chips span { padding: 8px 14px; border-radius: 99px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--sub); }
.done-foot { width: 100%; text-align: left; }

/* 흙 폭죽 */
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.confetti i {
  position: absolute; left: 50%; top: 55%;
  width: 8px; height: 8px; border-radius: 2px;
  animation: burst 1.1s cubic-bezier(.15, .6, .35, 1) forwards;
}
.confetti i.round { border-radius: 50%; }
@keyframes burst {
  0% { transform: translate(-50%, -50%) rotate(0); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)); opacity: 0; }
}

/* 기다리는 시간은 귀엽게 (토스: 대기 지루함 완화) */
.dig-mole { animation: dig .5s ease-in-out infinite; }
@keyframes dig { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg) translateY(1px); } }
.dirt { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.dirt i { width: 5px; height: 5px; border-radius: 50%; background: var(--earth); animation: hop .6s ease-in-out infinite; }
.dirt i:nth-child(2) { animation-delay: .12s; }
.dirt i:nth-child(3) { animation-delay: .24s; }
@keyframes hop { 0%, 100% { transform: none; opacity: .5; } 50% { transform: translateY(-7px); opacity: 1; } }

/* 결산: 카드 하나에 큰 숫자 하나 (스포티파이) */
.story-ban { justify-content: center; padding-bottom: 120px; gap: 14px; }
.story-ban .big-number { font-size: 120px; }
.story-ban .big-number .unit { font-size: 30px; margin-left: 8px; letter-spacing: -.02em; }
.ban-line { font-size: 24px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }

/* 넘길수록 깊어지는 땅 — moviemole만의 시각 장치 */
.soil {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: var(--depth, 60px);
  display: flex; flex-direction: column;
  pointer-events: none;
  transition: height .9s var(--ease);
}
.soil-top { display: block; width: 100%; height: 24px; flex-shrink: 0; }
.soil-top path { fill: rgba(16, 10, 40, .26); }
.soil-body { position: relative; flex: 1; background: rgba(16, 10, 40, .26); overflow: hidden; }
.soil-body i { position: absolute; width: 10px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.recap-foot { position: relative; z-index: 3; }
.own-field[hidden] { display: none; }
.big-number .count { font-size: inherit; margin: 0; letter-spacing: inherit; }

/* ---------- 다크 모드 ---------- */
.chev { color: var(--muted); }
.theme-btn {
  height: 36px; padding: 0 12px 0 10px; border: none; border-radius: 18px;
  background: var(--surface); color: var(--sub);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600;
}
.theme-btn svg { display: none; }
.theme-btn[data-mode="system"] .ic-system,
.theme-btn[data-mode="light"] .ic-light,
.theme-btn[data-mode="dark"] .ic-dark { display: block; }
.theme-wrap { height: 44px; display: flex; align-items: center; }
.topbar.between { justify-content: space-between; padding-right: 16px; }

/* ---------- 홈 ---------- */
.home-top { padding-left: 20px; }
.home-brand { display: flex; align-items: center; gap: 8px; }
.home-name { font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.home-body { gap: 22px; padding-top: 12px; }
.cta svg { margin-right: 6px; }
.section-head { display: flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 700; color: var(--sub); }
.section-head b { color: var(--accent-text); }

.show-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px; border-radius: 20px; background: var(--surface);
}
.show-card-top { display: flex; gap: 14px; align-items: center; }
.show-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sc-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-next { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.show-card-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.mini-btn {
  height: 44px; padding: 0 14px; border-radius: 12px;
  border: none; background: var(--bg); color: var(--text);
  font-size: 15px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.mini-btn.primary { background: var(--accent); color: var(--white); }

/* 포스터 (TMDB 이미지 또는 예시용 색 블록) */
.poster-img { object-fit: cover; display: block; background: var(--bar-bg); }
.poster.p-sm, .poster-img.p-sm { width: 56px; height: 80px; border-radius: 10px; font-size: 10px; padding: 6px; }
.poster.p-xs, .poster-img.p-xs { width: 40px; height: 58px; border-radius: 8px; font-size: 8px; padding: 4px; }
.poster.p-md, .poster-img.p-md { width: 64px; height: 92px; border-radius: 10px; }
.poster { word-break: keep-all; }

.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 28px 20px 24px; border-radius: 24px; background: var(--surface);
}
.empty-mole { width: 120px; height: 120px; }
.empty-title { font-size: 18px; font-weight: 800; }

.recap-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 12px;
  padding: 18px 18px; border-radius: 20px;
  background: #5B4BDB; color: #FFFFFF; text-decoration: none;
}
.recap-banner-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.recap-banner-title { font-size: 17px; font-weight: 800; }
.recap-banner-sub { font-size: 13px; color: #ECEAFB; }
.recap-banner svg { width: 64px; height: 64px; margin: -10px -6px -18px 0; }

.done-list { display: flex; flex-direction: column; gap: 4px; }
.done-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 4px;
  text-decoration: none; border-radius: 12px;
}
.done-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.done-row-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 작품 찾기 ---------- */
.search-top { gap: 4px; padding-right: 16px; }
.search-box {
  flex: 1; display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 14px; border-radius: 14px;
  background: var(--surface); color: var(--muted);
  transition: box-shadow .2s ease;
}
.search-box:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search-box input { flex: 1; min-width: 0; border: none; background: transparent; font-size: 16px; color: var(--text); }
.search-box input:focus { outline: none; }
.search-tabs { display: flex; gap: 6px; padding: 8px 20px 4px; flex-shrink: 0; }
.tab {
  height: 36px; padding: 0 14px; border-radius: 18px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--sub);
  font-size: 14px; font-weight: 600;
}
.tab[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.search-body { gap: 8px; padding-top: 12px; }
.result-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 8px; border: none; border-radius: 14px; background: transparent;
  text-align: left;
}
.result-row:hover { background: var(--surface); }
.result-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.result-row .result-title { font-size: 16px; font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.result-sub { font-size: 13px; color: var(--muted); }
.added-tag { font-size: 12px; font-weight: 700; color: var(--accent-text); }
.notice {
  display: flex; gap: 12px; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: var(--accent-soft);
  font-size: 14px; line-height: 1.5; color: var(--text);
}
.notice a { color: var(--accent-text); font-weight: 700; }
.search-hint { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 0; text-align: center; color: var(--muted); }
.search-hint svg { width: 96px; height: 96px; }
.list-label { font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 4px 0; }
.loading-row { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 0; color: var(--muted); font-size: 14px; }

/* ---------- 정주행 등록 ---------- */
.result-labels { margin-top: 6px; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 14px; padding: 2px; }
.step-btn {
  width: 44px; height: 44px; border: none; border-radius: 12px; background: transparent; color: var(--text);
  display: flex; align-items: center; justify-content: center;
}
.step-btn:disabled { color: var(--dashed); cursor: default; }
.step-value { min-width: 48px; text-align: center; font-size: 16px; font-weight: 800; }

/* ---------- 설정 ---------- */
.settings-body { gap: 28px; padding-bottom: 32px; }
.set-group { display: flex; flex-direction: column; gap: 10px; }
.set-title { font-size: 17px; font-weight: 800; margin: 0; }
.set-desc { line-height: 1.6; }
.set-desc a { color: var(--accent-text); font-weight: 600; }
.field-label { font-size: 13px; font-weight: 700; color: var(--sub); margin-top: 4px; }
.key-row { display: flex; gap: 8px; }
.key-row .text-input { flex: 1; min-width: 0; }
.key-row .mini-btn { height: 48px; flex-shrink: 0; }
.key-status { font-size: 13px; min-height: 18px; color: var(--muted); }
.key-status.ok { color: #1E8E5A; }
.key-status.bad { color: #D14343; }
:root[data-theme="dark"] .key-status.ok { color: #5BD39A; }
:root[data-theme="dark"] .key-status.bad { color: #FF8A8A; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .key-status.ok { color: #5BD39A; }
  :root:not([data-theme="light"]) .key-status.bad { color: #FF8A8A; }
}
.select { appearance: auto; color: var(--text); }
.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface); }
.seg { height: 40px; border: none; border-radius: 10px; background: transparent; color: var(--sub); font-size: 15px; font-weight: 600; }
.seg[aria-pressed="true"] { background: var(--bg); color: var(--text); font-weight: 800; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.row-btn {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; padding: 14px 16px; border: none; border-radius: 16px;
  background: var(--surface); text-align: left;
}
.row-btn.danger .row-title { color: #D14343; }
:root[data-theme="dark"] .row-btn.danger .row-title { color: #FF8A8A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .row-btn.danger .row-title { color: #FF8A8A; } }
.row-btn.confirm { box-shadow: 0 0 0 2px #D14343 inset; }
.set-note { line-height: 1.6; }

/* ---------- 공통 ---------- */
.toast { bottom: 108px; z-index: 20; }
.avatar.tiny { background: var(--earth-soft); }
:root[data-theme="dark"] .toast { background: #ECEDEF; color: #111214; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toast { background: #ECEDEF; color: #111214; } }
.sample-pill {
  position: relative; z-index: 3; align-self: flex-start;
  margin: 0 20px 4px; padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, .16); color: #FFFFFF; font-size: 12px; font-weight: 600;
}
.sample-pill[hidden] { display: none; }
.ai-text p { margin: 0; }
.ai-text p + p { margin-top: 8px; }
.ai-text a { color: var(--accent-text); font-weight: 700; }
.bubble.error { background: var(--accent-soft); }
.badge-item.locked { opacity: .55; }
.badge-item small { font-size: 11px; font-weight: 500; }
.row[hidden], .group[hidden], #result-bar-wrap[hidden], .tag[hidden] { display: none; }

/* 내용이 길어도 카드가 찌그러지지 않게 */
.body > *, .step > * { flex-shrink: 0; }

/* ---------- 담기 / 보는 중 / 다 봤어요 ---------- */
.overview {
  font-size: 14px; line-height: 1.6; color: var(--sub);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.overview:empty { display: none; }
.status-seg { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.seg[hidden] { display: none; }
.status-hint { line-height: 1.5; }
.result-wrap[hidden] { display: none; }

.card-open {
  display: flex; gap: 14px; align-items: center; width: 100%;
  padding: 0; border: none; background: transparent; text-align: left;
}
.check-btn svg { margin-right: 2px; }
.want-row {
  display: flex; gap: 12px; overflow-x: auto;
  margin: 0 -24px; padding: 2px 24px 6px; scrollbar-width: none;
}
.want-row::-webkit-scrollbar { display: none; }
.want-tile {
  flex-shrink: 0; width: 104px; padding: 0; border: none; background: transparent;
  display: flex; flex-direction: column; gap: 4px; text-align: left;
}
.want-tile .poster, .want-tile .poster-img { width: 104px; height: 150px; border-radius: 12px; font-size: 12px; padding: 8px; }
.want-tile .poster-img { padding: 0; }
.want-title { font-size: 14px; font-weight: 700; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 체크한 뒤 뜨는 감상 시트 */
.sheet-backdrop {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(10, 10, 12, .42); opacity: 0; transition: opacity .25s ease;
}
.sheet-backdrop.open { opacity: 1; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 31;
  display: flex; flex-direction: column; gap: 16px;
  padding: 10px 20px 22px; border-radius: 24px 24px 0 0;
  background: var(--bg); box-shadow: 0 -8px 30px rgba(0, 0, 0, .14);
  transform: translateY(100%); transition: transform .34s var(--ease);
}
.sheet.open { transform: none; }
.sheet[hidden], .sheet-backdrop[hidden] { display: none; }
.sheet-handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); align-self: center; }
.sheet-head { display: flex; align-items: center; gap: 12px; }
.sheet-stage { position: relative; width: 68px; height: 68px; flex-shrink: 0; }
.sheet-stage svg { width: 100%; height: 100%; display: block; }
.sheet.open .sheet-stage svg { animation: pop .55s var(--ease) .1s both; }
.sheet-title { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sheet-moods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sheet-moods .choice { height: 56px; padding: 0 14px; font-size: 16px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-actions .mini-btn { background: var(--surface); }
.sheet-undo {
  align-self: center; height: 36px; padding: 0 8px; border: none; background: transparent;
  color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- 재관람 ---------- */
.history { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.history li {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface);
}
.round-badge {
  flex-shrink: 0; min-width: 44px; height: 28px; padding: 0 10px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-text);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.history-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.history-main { font-size: 15px; font-weight: 700; }
.date-input { width: auto; min-width: 160px; height: 44px; color: var(--text); }
.round-tag {
  display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text); font-size: 12px; font-weight: 700; vertical-align: 1px;
}
#history-group[hidden], #date-row[hidden], #setup-ask[hidden] { display: none; }
button.done-row { width: 100%; border: none; background: transparent; text-align: left; }
button.done-row:hover { background: var(--surface); }
.segmented[hidden] { display: none; }

/* ---------- 캘린더 ---------- */
.top-actions { display: flex; align-items: center; }
.cal-top { padding-right: 12px; }
.month-nav { display: flex; align-items: center; gap: 0; }
.cal-title { min-width: 108px; text-align: center; font-variant-numeric: tabular-nums; }
.cal-today { height: 32px; padding: 0 12px; font-size: 13px; }
.cal-body { gap: 18px; padding-left: 16px; padding-right: 16px; }

.cal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cal-stat { padding: 12px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-stat-label { font-size: 12px; color: var(--muted); }
.cal-stat-value { font-size: 17px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-stat-value.accent { color: var(--accent-text); }
.cal-empty-note { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; color: var(--sub); }
.cal-empty-note .avatar { width: 32px; height: 32px; }

.cal-month { touch-action: pan-y; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week { margin-bottom: 6px; }
.cal-week span { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-week span:first-child { color: #D14343; }
.cal-grid.slide-next { animation: calNext .32s var(--ease) both; }
.cal-grid.slide-prev { animation: calPrev .32s var(--ease) both; }
@keyframes calNext { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes calPrev { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.cal-cell {
  position: relative; aspect-ratio: 5 / 7; min-width: 0;
  padding: 0; border: none; border-radius: 10px; background: transparent;
  display: flex; flex-direction: column; align-items: stretch; overflow: hidden;
  color: var(--text);
}
.cal-cell.blank { visibility: hidden; }
.cal-num {
  position: absolute; top: 4px; left: 0; right: 0; z-index: 2;
  font-size: 12px; font-weight: 600; text-align: center;
}
.cal-cell.has .cal-num {
  left: 4px; right: auto; top: 4px; min-width: 18px; padding: 1px 4px; border-radius: 6px;
  background: rgba(0, 0, 0, .55); color: #FFFFFF; font-size: 11px;
}
.cal-cell.future .cal-num { color: var(--dashed); }
.cal-cell .thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }
.cal-cell .thumb.block {
  display: flex; align-items: flex-end; padding: 4px; box-sizing: border-box;
  color: #FFFFFF; font-size: 9px; font-weight: 700; line-height: 1.2; word-break: keep-all; overflow: hidden;
}
.cal-more {
  position: absolute; right: 3px; bottom: 3px; z-index: 2;
  padding: 1px 5px; border-radius: 6px; background: var(--accent); color: #FFFFFF;
  font-size: 10px; font-weight: 800;
}
.cal-cell.today::after {
  content: ""; position: absolute; inset: 0; border-radius: 10px; z-index: 3; pointer-events: none;
  box-shadow: inset 0 0 0 2px var(--accent);
}
.cal-cell[aria-pressed="true"] { background: var(--accent-soft); }
.cal-cell[aria-pressed="true"]::before {
  content: ""; position: absolute; inset: 0; border-radius: 10px; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--accent-text);
}
.cal-cell:not(.has):hover { background: var(--surface); }

.cal-day { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.cal-day-title { font-size: 17px; font-weight: 800; }
.cal-add { height: 48px; margin-top: 2px; font-size: 15px; gap: 7px; }
.cal-entry {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px; border: none; border-radius: 14px; background: var(--surface); text-align: left;
}
.cal-entry-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cal-entry-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-mood { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.cal-today[hidden] { visibility: hidden; display: inline-flex; }

/* ---------- 오프닝 ---------- */
.home-top { justify-content: flex-end; padding-right: 8px; }
.splash {
  position: absolute; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: #5B4BDB; color: #FFFFFF; cursor: pointer;
  /* 스크립트가 없어도 저절로 사라지게 */
  animation: splashOut .45s ease 2.6s forwards;
}
.splash.out { animation: splashOut .35s ease forwards; }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }
.splash-center { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: -40px; }
.splash-mole {
  width: 150px; height: 150px; margin-bottom: 4px;
  animation: splashPop .7s cubic-bezier(.2, .8, .2, 1) .15s both;
}
@keyframes splashPop {
  0% { transform: translateY(46px) scale(.85); opacity: 0; }
  55% { transform: translateY(-10px) scale(1.04); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.splash-name {
  font-size: 40px; font-weight: 800; letter-spacing: -.04em;
  animation: rise .5s var(--ease) .55s both;
}
.splash-sub {
  font-size: 15px; font-weight: 500; color: #ECEAFB;
  animation: rise .5s var(--ease) .7s both;
}
.splash-foot {
  position: absolute; bottom: 40px;
  font-size: 12px; font-weight: 700; letter-spacing: .3em; color: rgba(255, 255, 255, .7);
  animation: rise .5s var(--ease) .85s both;
}
/* 설정에서 움직임 줄이기를 켰을 때만 */
html.calm .splash { animation: splashOut .2s ease .6s forwards !important;}

/* ---------- moviemole 플러스 ---------- */
.plus-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px; border-radius: 20px; background: var(--accent-soft);
}
.plus-head { display: flex; align-items: center; gap: 12px; }
.plus-mole { width: 64px; height: 64px; flex-shrink: 0; }
.plus-name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.plus-status { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-top: 2px; }
.plus-list[hidden] { display: none; }
.plus-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--sub); line-height: 1.5; }
.plus-note { line-height: 1.5; }
.plus-card .cta[aria-disabled="true"] { background: var(--disabled); pointer-events: none; }
.ask-quota { flex-shrink: 0; margin: 0 20px 6px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: right; min-height: 16px; }
.paywall { display: flex; flex-direction: column; gap: 10px; }
.paywall .cta { height: 48px; font-size: 15px; }
.ai-text .paywall a.cta { color: var(--white); text-decoration: none; }
.cta[hidden] { display: none; }

/* =========================================================
   PC 버전 — 폰은 그대로, 넓은 화면(1024px 이상)에서만 바뀌어요
   ========================================================= */
/* 폰에서는 숨기는 것들 */
.side-nav, .recap-arrow { display: none; }
.card-grid { display: flex; flex-direction: column; gap: 22px; }
.detail-side { display: flex; flex-direction: column; gap: 26px; }

/* 결산: 스토리를 감싼 틀 (폰에서는 화면 가득) */
.recap-frame {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--accent); transition: background-color .5s ease;
}


/* 별점 (왓챠피디아처럼 0.5점 단위) */
.rate { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rate-stars { display: flex; gap: 2px; cursor: pointer; touch-action: manipulation; border-radius: 8px; }
.rate-stars:focus-visible { outline: 3px solid var(--ring); outline-offset: 4px; }
.star {
  width: 38px; height: 38px; background: var(--bar-bg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.4l-5.8 3.1 1.1-6.5L2.6 9.4l6.5-.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .15s var(--ease), background .15s ease;
}
.star.full { background: var(--gold); }
.star.half { background: linear-gradient(90deg, var(--gold) 50%, var(--bar-bg) 50%); }
.rate-stars:active .star { transform: scale(.94); }
.rate-label { font-size: 15px; font-weight: 700; color: var(--muted); }
.rate-label.on { color: var(--gold-text); }
.mini-rate { color: var(--gold-text); font-weight: 700; }

/* 홈: 요즘 뜨는 작품 줄 */
.home-lead { margin-top: -8px; font-size: 15px; line-height: 1.5; }
.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-row {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 24px;
  margin: 0 -24px; padding: 2px 24px 6px; scrollbar-width: none;
}
.feed-row::-webkit-scrollbar { display: none; }
.feed-tile {
  flex-shrink: 0; width: 118px; padding: 0; border: none; background: transparent; color: inherit; font: inherit;
  display: flex; flex-direction: column; gap: 2px; text-align: left; scroll-snap-align: start; cursor: pointer;
}
.feed-poster { position: relative; display: block; margin-bottom: 6px; }
.feed-tile .poster, .feed-tile .poster-img { width: 118px; height: 170px; border-radius: 12px; font-size: 12px; padding: 8px; }
.feed-tile .poster-img { padding: 0; box-shadow: 0 1px 0 var(--line); }
.feed-rank {
  position: absolute; left: 0; bottom: 0; padding: 4px 9px 3px 8px; border-radius: 0 10px 0 12px;
  background: rgba(10, 10, 12, .78); color: #FFFFFF; font-size: 15px; font-weight: 800; letter-spacing: -.02em;
}
.feed-mine {
  position: absolute; right: 6px; top: 6px; padding: 3px 8px; border-radius: 999px;
  background: var(--accent); color: #FFFFFF; font-size: 11px; font-weight: 700;
}
.feed-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-meta { font-size: 12px; color: var(--muted); }
.feed-score { font-size: 12px; font-weight: 600; color: var(--sub); }
.feed-score.mine { color: var(--gold-text); }

/* 오프닝: 요즘 작품 포스터 벽 */
.splash { overflow: hidden; }
.splash-wall {
  position: absolute; inset: -30% -40%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
  transform: rotate(-14deg); opacity: 0; animation: wallIn .9s ease .05s forwards;
}
.splash-col { display: flex; flex-direction: column; gap: 12px; animation: colUp 4s linear both; }
.splash-col:nth-child(even) { animation-name: colDown; }
.splash-col img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; display: block; }
.splash-shade {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 42%, rgba(91, 75, 219, .78) 0%, rgba(58, 44, 160, .7) 45%, rgba(20, 15, 64, .9) 100%);
}
.splash-center { position: relative; z-index: 1; }
.splash-foot { position: absolute; z-index: 1; }
@keyframes wallIn { to { opacity: 1; } }
@keyframes colUp { from { transform: translateY(4%); } to { transform: translateY(-8%); } }
@keyframes colDown { from { transform: translateY(-8%); } to { transform: translateY(4%); } }
/* 설정에서 움직임 줄이기를 켰을 때만 */
html.calm .splash-col { animation: none;}


/* 두더지가 곳곳에서 움직여요 */
.splash-mole-wrap { display: block; animation: moleDig 1.3s ease-in-out .9s 2; transform-origin: 50% 90%; }
@keyframes moleDig {
  0%, 100% { transform: none; }
  20% { transform: translateY(10px) rotate(-6deg); }
  40% { transform: translateY(-6px) rotate(5deg); }
  60% { transform: translateY(8px) rotate(-4deg); }
  80% { transform: translateY(-3px) rotate(2deg); }
}
.splash-dirt { position: relative; width: 150px; height: 0; margin-top: -26px; }
.splash-dirt i {
  position: absolute; bottom: 0; width: 9px; height: 9px; border-radius: 50%; background: #C79B72; opacity: 0;
  animation: dirtFly 1.3s ease-out .95s 2;
}
.splash-dirt i:nth-child(1) { left: 18%; --dx: -46px; --dy: -54px; }
.splash-dirt i:nth-child(2) { left: 30%; --dx: -24px; --dy: -78px; animation-delay: 1.05s; }
.splash-dirt i:nth-child(3) { left: 50%; --dx: 6px; --dy: -86px; animation-delay: 1.15s; width: 7px; height: 7px; }
.splash-dirt i:nth-child(4) { left: 66%; --dx: 30px; --dy: -70px; animation-delay: 1s; }
.splash-dirt i:nth-child(5) { left: 80%; --dx: 50px; --dy: -50px; animation-delay: 1.2s; width: 6px; height: 6px; }
@keyframes dirtFly {
  0% { opacity: 0; transform: none; }
  15% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)); }
}
.home-hello { position: relative; padding-right: 78px; }
.hello-mole {
  position: absolute; right: 0; bottom: -8px; width: 72px; height: 72px;
  animation: peekUp .9s var(--ease) .25s both, wave 2.4s ease-in-out 1.3s 2, bob 3.2s ease-in-out 6.2s infinite;
  transform-origin: 50% 100%;
}
@keyframes peekUp { from { transform: translateY(40px) scale(.7); opacity: 0; } 60% { transform: translateY(-8px) scale(1.05); opacity: 1; } to { transform: none; opacity: 1; } }
@keyframes wave { 0%, 100% { transform: none; } 25% { transform: rotate(-9deg); } 50% { transform: rotate(7deg) translateY(-3px); } 75% { transform: rotate(-4deg); } }
.feed-head { align-items: center; }
.head-mole { width: 22px; height: 22px; flex-shrink: 0; }
.feed:hover .head-mole, .feed:focus-within .head-mole { animation: wave 1.2s ease-in-out; }
.feed-row:active ~ * .head-mole { animation: none; }
.rate-mole { position: absolute; right: 0; bottom: calc(100% + 6px); width: 52px; height: 52px; opacity: 0; transform-origin: 50% 100%; pointer-events: none; }
.rate-mole.jump { animation: rateJump 1.1s var(--ease) both; }
.rate-mole.happy { animation: rateHappy 1.6s var(--ease) both; }
.rate-mole.sad { animation: rateSad 1.4s ease both; }
@keyframes rateJump { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 35% { opacity: 1; transform: translateY(-8px) scale(1.05); } 60% { transform: none; } 100% { opacity: 1; transform: none; } }
@keyframes rateHappy {
  0% { opacity: 0; transform: translateY(20px) scale(.6); } 25% { opacity: 1; transform: translateY(-12px) scale(1.1) rotate(-8deg); }
  45% { transform: translateY(0) rotate(8deg); } 65% { transform: translateY(-8px) rotate(-6deg); } 85% { transform: rotate(4deg); } 100% { opacity: 1; transform: none; }
}
@keyframes rateSad { 0% { opacity: 0; transform: translateY(20px); } 30% { opacity: 1; transform: none; } 60% { transform: translateY(6px) rotate(-6deg); } 100% { opacity: 1; transform: translateY(4px) rotate(-4deg); } }
.toast:not([hidden]) .avatar svg { animation: wave 1s ease-in-out .15s; transform-origin: 50% 100%; }
/* 설정에서 움직임 줄이기를 켰을 때만 */
html.calm .splash-mole-wrap, html.calm .splash-dirt i, html.calm .hello-mole, html.calm .rate-mole, html.calm .toast .avatar svg { animation: none !important; opacity: 1;}


/* 언제 봤어요? 빠르게 고르기 */
.date-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.date-chips[hidden] { display: none; }
.date-chip {
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  color: var(--sub); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.date-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: transparent; color: var(--accent-text); }
.date-note { width: 100%; margin-top: 2px; line-height: 1.5; }


/* 두더지 추천 */
.rec { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 16px; margin: 0 -6px; border-radius: 22px; background: var(--accent-soft); }
.rec-head { display: flex; align-items: center; gap: 10px; }
.rec-mole { width: 54px; height: 54px; flex-shrink: 0; transform-origin: 50% 100%; animation: wave 2.4s ease-in-out .6s 2; }
.rec-mole.dig { animation: moleDig 1s ease-in-out; }
.rec-kicker { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.rec-title { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.rec-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.rec-chips::-webkit-scrollbar { display: none; }
.rec-chips .date-chip { flex-shrink: 0; }
.rec .date-chip[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }
.rec-kind { background: var(--bg); }
.rec .feed-row { margin: 0 -18px; padding: 2px 18px 4px; scroll-padding-inline: 18px; min-height: 60px; }
.rec .loading-row { padding: 18px 0; }
.rec-because { margin-top: 6px; }
.rec-seed { color: var(--text); }
.similar { margin-top: 8px; }
.similar[hidden] { display: none; }


/* 결산 자세히 보기 */
.stats-link { display: block; margin-top: 12px; text-align: center; color: #FFFFFF; font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.year-switch { display: flex; align-items: center; gap: 2px; }
.year-switch .icon-btn:disabled { opacity: .25; }
.stats-body { gap: 14px; padding-bottom: 40px; }
.stat-hero { position: relative; padding: 22px 20px 18px; border-radius: 22px; background: var(--accent); color: #FFFFFF; overflow: hidden; }
.stat-hero-mole { position: absolute; right: 10px; top: 8px; width: 74px; height: 74px; animation: peekUp .9s var(--ease) .2s both; }
.stat-kicker { font-size: 14px; font-weight: 600; opacity: .85; }
.stat-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 4px 0 16px; }
.stat-big b { font-size: 46px; }
.stat-rank { margin: -10px 0 16px; }
.gauge { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.5)); }
.gauge-avg { position: absolute; top: -4px; width: 2px; height: 18px; background: rgba(255,255,255,.7); transform: translateX(-1px); }
.gauge-me { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 0 0 5px rgba(255,255,255,.28); transform: translate(-50%, -50%); animation: gaugeIn 1s var(--ease) .3s both; }
@keyframes gaugeIn { from { left: 0; } }
.gauge-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 600; opacity: .75; }
.stat-sub { margin-top: 14px; font-size: 14px; line-height: 1.5; }
.stat-foot { margin-top: 10px; font-size: 11px; line-height: 1.5; opacity: .7; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat-cell { padding: 14px 16px; border-radius: 16px; background: var(--surface); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.stat-cell .stat-value { font-size: 22px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; text-align: left; }
.stat-mini { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat-card { padding: 18px 18px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); }
.stat-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.stat-note { font-size: 14px; color: var(--sub); margin-bottom: 14px; }
.stat-note b { color: var(--text); }
.time-list { display: flex; flex-direction: column; }
.time-row { display: grid; grid-template-columns: 18px 40px minmax(0, 1fr) 86px; align-items: center; gap: 10px; padding: 8px 0; border: none; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.time-row[hidden] { display: none; }
.time-rank { font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; }
.time-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.time-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time-meta { font-size: 12px; color: var(--muted); }
.time-bar { display: block; height: 5px; border-radius: 999px; background: var(--bar-bg); overflow: hidden; }
.time-bar span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.time-val { font-size: 13px; font-weight: 700; color: var(--sub); white-space: nowrap; text-align: right; }
.more-btn { width: 100%; margin-top: 6px; padding: 10px; border: none; border-radius: 12px; background: var(--surface); color: var(--sub); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.bars { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 6px; height: 132px; align-items: end; }
.bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; min-width: 0; }
.bar-stick { width: 100%; max-width: 26px; border-radius: 6px 6px 3px 3px; background: var(--bar-bg); transform-origin: bottom; animation: growUp .7s var(--ease) both; }
.bar-col.hi .bar-stick { background: var(--accent); }
.bar-val { font-size: 11px; font-weight: 800; color: var(--accent-text); white-space: nowrap; min-height: 14px; }
.bar-lab { font-size: 11px; color: var(--muted); white-space: nowrap; }
.bar-col.hi .bar-lab { color: var(--text); font-weight: 700; }
@keyframes growUp { from { transform: scaleY(0); } }
.two-bars { display: grid; grid-template-columns: 1fr; gap: 18px; }
.bars-cap { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tag { padding: 7px 12px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 700; }
.tag em { font-style: normal; font-weight: 600; color: var(--muted); margin-left: 2px; }
.tag.top { background: var(--accent-soft); color: var(--accent-text); }
.facts { display: flex; flex-direction: column; margin: 0; }
.facts > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: none; padding-top: 2px; }
.facts dt { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.facts dd { margin: 0; font-size: 14px; font-weight: 700; text-align: right; min-width: 0; }
.facts dd span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
/* 설정에서 움직임 줄이기를 켰을 때만 */
html.calm .bar-stick, html.calm .gauge-me, html.calm .stat-hero-mole { animation: none;}

@media (min-width: 1024px) {
  :root { --side: 248px; --content: 1040px; }

  /* 폰 틀 → 창 전체 */
  body { padding: 0; display: block; background: var(--bg); }
  .switcher, .brand { display: none; }
  .phone { width: 100%; height: 100vh; height: 100dvh; max-width: none; border-radius: 0; box-shadow: none; }
  .screen { left: var(--side); }
  .top-back { display: none; }

  /* 왼쪽 메뉴 */
  .side-nav {
    position: absolute; left: 0; top: 0; bottom: 0; width: var(--side); z-index: 10;
    display: flex; flex-direction: column; gap: 4px;
    padding: 24px 16px; border-right: 1px solid var(--line); background: var(--bg);
  }
  .side-logo { width: 56px; height: 56px; margin: 0 0 18px 8px; display: block; border-radius: 16px; }
  .side-logo svg { width: 100%; height: 100%; }
  .side-link {
    display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 12px;
    color: var(--sub); font-size: 16px; font-weight: 600; text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
  }
  .side-link:hover { background: var(--surface); color: var(--text); }
  .side-link[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); font-weight: 800; }
  .side-add { margin-top: auto; height: 52px; font-size: 16px; }

  /* 공통: 가운데 정렬된 넓은 본문 */
  .topbar { height: 72px; padding: 0 32px; }
  .topbar.spread { padding-left: 40px; }
  .body { padding: 8px 40px 40px; gap: 32px; width: 100%; max-width: var(--content); margin: 0 auto; }
  .footer { width: 100%; max-width: var(--content); margin: 0 auto; padding: 16px 40px 32px; display: flex; justify-content: flex-end; gap: 10px; }
  .footer .cta { width: auto; min-width: 280px; padding: 0 28px; }
  .footer.stack { flex-direction: row-reverse; justify-content: flex-start; align-items: center; }
  .footer.stack .ghost { width: auto; padding: 0 16px; }
  .h-page { font-size: 34px; }
  .press:active { transform: scale(.98); }
  .toast { left: calc(50% + var(--side) / 2); bottom: 40px; }

  /* 홈 */
  .home-top { display: none; }
  .screen[data-screen="home"] > .footer { display: none; } /* 왼쪽 메뉴에 작품 추가가 있어요 */
  .home-body { padding-top: 48px; }
  .card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
  .show-card { transition: box-shadow .2s ease, transform .2s ease; }
  .show-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
  .feed-row { margin: 0; padding: 2px 0 8px; gap: 18px; scroll-padding-inline: 0; }
  .rec { padding: 24px; margin: 0; }
  .stats-body { max-width: 860px; display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; }
  .stats-body > .stat-hero, .stats-body > .stat-grid, .stats-body > .empty { grid-column: 1 / -1; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .two-bars { grid-template-columns: 1fr 1fr; }
  .rec .feed-row, .rec-chips { margin: 0; padding-left: 0; padding-right: 0; }
  .feed-tile { width: 150px; }
  .feed-tile .poster, .feed-tile .poster-img { width: 150px; height: 216px; transition: transform .2s ease, box-shadow .2s ease; }
  .feed-tile:hover .poster, .feed-tile:hover .poster-img { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
  .want-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .want-tile { width: auto; }
  .want-tile .poster, .want-tile .poster-img { width: 100%; height: auto; aspect-ratio: 2 / 3; font-size: 14px; padding: 12px; transition: transform .2s ease, box-shadow .2s ease; }
  .want-tile .poster-img { padding: 0; }
  .want-tile:hover .poster, .want-tile:hover .poster-img { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
  .recap-banner { padding: 24px 28px; }
  .recap-banner-title { font-size: 20px; }
  .recap-banner svg { width: 84px; height: 84px; }
  .done-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 16px; }

  /* 캘린더: 달력 + 그날 기록 나란히 */
  .cal-top { padding-left: 40px; }
  .cal-body {
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto 1fr;
    column-gap: 40px; row-gap: 24px; align-items: start;
  }
  .cal-summary { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 220px)); }
  .cal-month { grid-column: 1; }
  .cal-grid, .cal-week { gap: 8px; }
  .cal-cell { aspect-ratio: 3 / 4; border-radius: 12px; }
  .cal-cell .thumb, .cal-cell.today::after, .cal-cell[aria-pressed="true"]::before { border-radius: 12px; }
  .cal-num { font-size: 14px; }
  .cal-cell .thumb.block { font-size: 12px; padding: 8px; }
  .cal-day { grid-column: 2; grid-row: 2; position: sticky; top: 0; padding: 20px; border-radius: 20px; background: var(--surface); }
  .cal-entry { background: var(--bg); }

  /* 작품 찾기: 포스터 격자 */
  .search-top { padding-left: 40px; padding-right: 40px; max-width: var(--content); margin: 0 auto; width: 100%; height: 88px; }
  .search-box { height: 52px; max-width: 640px; }
  .search-tabs { padding: 0 40px 8px; max-width: var(--content); margin: 0 auto; width: 100%; }
  .search-body { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 24px 20px; align-content: start; padding-top: 20px; }
  .search-body > .notice, .search-body > .list-label, .search-body > .search-hint, .search-body > .loading-row { grid-column: 1 / -1; }
  .result-row { flex-direction: column; align-items: stretch; gap: 10px; padding: 0; border-radius: 14px; }
  .result-row:hover { background: transparent; }
  .result-row .poster, .result-row .poster-img { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 12px; font-size: 14px; padding: 12px; transition: transform .2s ease, box-shadow .2s ease; }
  .result-row .poster-img { padding: 0; }
  .result-row:hover .poster, .result-row:hover .poster-img { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }

  /* 작품 상세: 왼쪽 포스터, 오른쪽 선택 */
  .detail-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); column-gap: 56px; row-gap: 28px; align-content: start; padding-top: 16px; }
  .detail-side { grid-column: 1; grid-row: 1 / span 12; position: sticky; top: 0; align-self: start; gap: 20px; }
  .detail-body > :not(.detail-side) { grid-column: 2; }
  .detail-side .show { flex-direction: column; align-items: flex-start; gap: 18px; }
  .detail-side .poster.p-md, .detail-side .poster-img.p-md { width: 300px; height: 450px; border-radius: 18px; font-size: 22px; padding: 20px; }
  .detail-side .poster-img.p-md { padding: 0; }
  .detail-side .show-title { font-size: 28px; }
  .detail-side .overview { -webkit-line-clamp: 8; font-size: 15px; }
  .result-wrap { margin-top: 48px; }

  /* 감상 질문: 가운데 좁게 */
  .ep-top { max-width: 760px; margin: 0 auto; width: 100%; }
  .steps { max-width: 640px; margin: 0 auto; width: 100%; }
  .step { padding: 24px 24px 40px; }

  /* 두더지 대화: 가운데 */
  .screen[data-screen="ask"] .topbar,
  .badge-wrap, .chat, .suggestions, .ask-quota, .composer { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
  .badge-wrap, .suggestions { padding-left: 32px; padding-right: 32px; }
  .chat { padding: 24px 32px 12px; }
  .ask-quota { padding-right: 12px; }
  .composer { margin-bottom: 32px; width: calc(100% - 64px); }
  .bubble.me { max-width: 70%; }
  .ai-block { max-width: 78%; }
  .suggestions { flex-wrap: wrap; overflow: visible; }

  /* 연말 결산: 가운데 스토리 카드 + 양옆 화살표 */
  .recap { background: #0E0D16; align-items: center; justify-content: center; flex-direction: row; gap: 28px; padding: 28px; }
  .recap-frame { flex: 0 0 auto; width: min(440px, calc((100dvh - 56px) * 9 / 16)); height: calc(100dvh - 56px); max-height: 900px; border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
  .recap-arrow {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 52px; height: 52px; border: none; border-radius: 50%;
    background: rgba(255, 255, 255, .12); color: #FFFFFF;
  }
  .recap-arrow:hover { background: rgba(255, 255, 255, .22); }

  /* 설정: 가운데 좁게 */
  .settings-body { max-width: 720px; }
  .screen[data-screen="settings"] .topbar { max-width: 720px; margin: 0 auto; width: 100%; padding-left: 40px; }
  .screen[data-screen="settings"] .topbar-title { font-size: 28px; }

  /* 체크 시트 → 가운데 창 */
  .sheet-backdrop { left: var(--side); }
  .sheet {
    left: calc(var(--side) + (100% - var(--side)) / 2); right: auto; bottom: auto; top: 50%;
    width: 440px; border-radius: 24px; padding: 20px 24px 24px;
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .28s var(--ease), opacity .2s ease;
  }
  .sheet.open { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-handle { display: none; }
}

/* 아주 넓은 화면에선 숫자만 조금 더 크게 */
@media (min-width: 1440px) {
  :root { --content: 1160px; }
}

/* =========================================================
   층으로 나눈 두더지 (땅은 가만히, 두더지만 움직여요)
   a 쏙 나오기 · b 땅 파기 · c 숨었다 빼꼼 · d 흙 털기 · e 가만히 숨쉬기
   ========================================================= */
.lm { display: block; overflow: visible; }
.lm .lm-mole, .lm .lm-head, .lm .lm-paw, .lm .lm-eyes, .lm .lm-nose, .lm .lm-ground, .lm .lm-pile, .lm circle { transform-box: fill-box; }
.lm .lm-mole, .lm .lm-head, .lm .lm-ground, .lm .lm-pile { transform-origin: 50% 100%; }
.lm .lm-eyes, .lm .lm-nose { transform-origin: center; }
.lm-eyes { animation: lmBlink 4s infinite; }
@keyframes lmBlink { 0%, 44%, 50%, 100% { transform: none; } 47% { transform: scaleY(.1); } }
@keyframes lmBreath { 0%, 100% { transform: none; } 50% { transform: scaleY(1.025) translateY(-1px); } }
@keyframes lmSniff { 0%, 60%, 100% { transform: none; } 66% { transform: scale(1.12) translateY(-1px); } 72% { transform: none; } 78% { transform: scale(1.12) translateY(-1px); } }

/* a. 쏙 나오기: 흙을 튀기며 올라와서 한 번 둘러보고, 그다음엔 숨쉬기 */
.lm-a .lm-mole { animation: lmRise 1.3s cubic-bezier(.2, .8, .2, 1) .15s both, lmBreath 3.2s ease-in-out 1.6s infinite; }
@keyframes lmRise { 0% { transform: translateY(72px); } 60% { transform: translateY(-6px); } 78% { transform: translateY(2px); } 100% { transform: none; } }
.lm-a .lm-head { animation: lmLook 1.4s ease-in-out 1.5s 1; }
@keyframes lmLook { 0%, 100% { transform: none; } 30% { transform: rotate(-7deg); } 70% { transform: rotate(7deg); } }
.lm-a .lm-paw { animation: lmPawIn 1.3s cubic-bezier(.2, .8, .2, 1) .15s both; }
@keyframes lmPawIn { 0%, 30% { transform: translateY(16px); opacity: 0; } 60% { transform: translateY(-3px); opacity: 1; } 100% { transform: none; opacity: 1; } }
.lm-a .lm-dirt circle { animation: lmDirt .9s ease-out .35s both; }
@keyframes lmDirt { 0% { opacity: 0; transform: none; } 12% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)); } }

/* b. 땅 파기: 앞발을 번갈아 긁고, 영차 할 때 눈을 질끈 */
.lm-b .lm-mole { animation: lmBob .5s ease-in-out infinite alternate; }
@keyframes lmBob { from { transform: translateY(4px) rotate(-1.5deg); } to { transform: translateY(-1px) rotate(1.5deg); } }
.lm-b .lm-paw.l { transform-origin: 80% 20%; animation: lmScrapeL .5s ease-in-out infinite; }
.lm-b .lm-paw.r { transform-origin: 20% 20%; animation: lmScrapeR .5s ease-in-out .25s infinite; }
@keyframes lmScrapeL { 0%, 100% { transform: none; } 50% { transform: translateY(5px) rotate(18deg); } }
@keyframes lmScrapeR { 0%, 100% { transform: none; } 50% { transform: translateY(5px) rotate(-18deg); } }
.lm-b .lm-eyes { animation: lmDigEyes 2s ease-in-out infinite; }
@keyframes lmDigEyes { 0%, 30% { transform: none; } 36%, 62% { transform: scaleY(.1); } 68%, 100% { transform: none; } }
.lm-b .lm-dirt circle { opacity: 0; animation: lmDirt 1s ease-out infinite; }
.lm-b .lm-dirt circle:nth-child(2) { animation-delay: .25s; }
.lm-b .lm-dirt circle:nth-child(3) { animation-delay: .5s; }
.lm-b .lm-dirt circle:nth-child(4) { animation-delay: .75s; }
.lm-b .lm-dirt circle:nth-child(5) { animation-delay: .12s; }
.lm-b .lm-dirt circle:nth-child(6) { animation-delay: .62s; }

/* c. 숨었다 빼꼼 */
.lm-c .lm-mole { animation: lmPeek 4.2s cubic-bezier(.3, .7, .2, 1) infinite; }
@keyframes lmPeek { 0%, 10% { transform: none; } 18%, 40% { transform: translateY(70px); } 52%, 64% { transform: translateY(38px); } 72% { transform: translateY(-8px); } 78%, 100% { transform: none; } }
.lm-c .lm-paw { animation: lmPeekPaw 4.2s cubic-bezier(.3, .7, .2, 1) infinite; }
@keyframes lmPeekPaw { 0%, 10% { transform: none; opacity: 1; } 16%, 64% { transform: translateY(16px); opacity: 0; } 74%, 100% { transform: none; opacity: 1; } }
.lm-c .lm-eyes { animation: lmPeekEyes 4.2s infinite; }
@keyframes lmPeekEyes { 0%, 52% { transform: none; } 55% { transform: translateX(-4px); } 59% { transform: translateX(4px); } 63%, 100% { transform: none; } }
.lm-c .lm-ground { animation: lmWobble 4.2s ease-out infinite; }
@keyframes lmWobble { 0%, 15% { transform: none; } 18% { transform: scaleY(1.12); } 22%, 70% { transform: none; } 73% { transform: scaleY(1.1); } 77%, 100% { transform: none; } }

/* d. 흙 털기: 부르르 → 흙이 우수수 → 양옆에 소복이, 그다음엔 숨쉬기 */
.lm-d .lm-mole { animation: lmShake 1.4s ease-in-out .25s both, lmBreath 3.2s ease-in-out 1.9s infinite; }
@keyframes lmShake { 0%, 8% { transform: none; } 15% { transform: rotate(-8deg); } 25% { transform: rotate(8deg); } 35% { transform: rotate(-6deg); } 45% { transform: rotate(5deg); } 55% { transform: rotate(-2deg); } 65%, 100% { transform: none; } }
.lm-d .lm-eyes { animation: lmSquint 1.4s .25s both, lmBlink 4s 2s infinite; }
@keyframes lmSquint { 0%, 10% { transform: none; } 15%, 55% { transform: scaleY(.12); } 65%, 100% { transform: none; } }
.lm-d .lm-dust circle { opacity: 0; animation: lmDust 1.6s cubic-bezier(.3, .5, .6, 1) both; animation-delay: calc(.3s + var(--dl, 0s)); }
@keyframes lmDust { 0%, 8% { opacity: 0; transform: none; } 14% { opacity: 1; } 45% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(var(--dx), var(--fall, 40px)); } }
.lm-d .lm-pile { animation: lmPile 2.6s ease-out .3s both; }
@keyframes lmPile { 0%, 35% { transform: scale(.4); opacity: 0; } 50%, 80% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }

/* e. 가만히 숨쉬기 + 코 킁킁 */
.lm-e .lm-mole { animation: lmBreath 3.2s ease-in-out infinite; }
.lm-e .lm-nose { animation: lmSniff 3.2s ease-in-out infinite; }

/* 예전처럼 그림 전체를 흔들던 움직임은 끄고, 층별 움직임만 남겨요 */
.splash-mole, .hello-mole, .rec-mole, .rec-mole.dig, .stat-hero-mole, .step-done.active .done-mole,
.sheet.open .sheet-stage svg, .toast:not([hidden]) .avatar svg, .feed:hover .head-mole, .feed:focus-within .head-mole { animation: none; }
.splash-mole { width: 160px; height: 160px; margin-bottom: 2px; }
.hello-mole { bottom: -14px; width: 76px; height: 76px; }
.rate-mole { opacity: 0; transition: opacity .2s ease; animation: none; }
.rate-mole.on { opacity: 1; }
.rate-mole.happy .lm-head { animation: lmHappy .9s ease-in-out 1.3s 2; }
@keyframes lmHappy { 0%, 100% { transform: none; } 25% { transform: rotate(-10deg) translateY(-3px); } 75% { transform: rotate(10deg) translateY(-3px); } }
.rate-mole.sad .lm-head { animation: lmSad .8s ease 1.4s both; }
@keyframes lmSad { to { transform: rotate(-8deg) translateY(4px); } }
.load-mole { display: inline-block; width: 34px; height: 34px; vertical-align: middle; flex-shrink: 0; }
.loading-row .load-mole { width: 40px; height: 40px; }
.hint-mole { width: 120px; height: 120px; margin: 0 auto; }
.peek .lm { width: 100%; height: 100%; }
/* 설정에서 움직임 줄이기를 켰을 때만 */
html.calm .lm *, html.calm .lm { animation: none !important;}
html.calm .lm .lm-dirt, html.calm .lm .lm-dust, html.calm .lm .lm-pile { display: none;}

/* 결산 아래: 공유 버튼 밑에 '통계 자세히 보기'를 한 줄로 */
.recap-foot { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 8px; }
.recap-foot .cta { width: 100%; }
.stats-link { display: block; flex: none; width: 100%; margin-top: 0; padding: 6px 0; white-space: nowrap; text-align: center; writing-mode: horizontal-tb; }

.done-row[hidden] { display: none !important; }
.done-list .more-btn { margin-top: 2px; }

/* 스크롤하면 섹션이 아래에서 올라와요 */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal .feed-tile, .reveal .time-row, .reveal .stat-cell, .reveal .done-row, .reveal .want-tile {
  opacity: 0; transform: translateX(26px); transition: opacity .5s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + .12s);
}
.reveal .time-row, .reveal .done-row { transform: translateY(12px); }
.reveal.in .feed-tile, .reveal.in .time-row, .reveal.in .stat-cell, .reveal.in .done-row, .reveal.in .want-tile { opacity: 1; transform: none; }
.reveal .bar-stick { animation: none; transform: scaleY(0); }
.reveal.in .bar-stick { transform: none; animation: growUp .8s var(--ease) .25s both; }
.reveal .time-bar span { transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .3s; }
.reveal.in .time-bar span { transform: none; }
/* 설정에서 움직임 줄이기를 켰을 때만 */
html.calm .reveal, html.calm .reveal * { opacity: 1 !important; transform: none !important; transition: none !important;}

/* 계정 */
.acct-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 18px; background: var(--surface); }
.acct-lead { font-size: 15px; font-weight: 700; }
.acct-form { display: flex; flex-direction: column; gap: 8px; }
.acct-form .text-input { width: 100%; }
.acct-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.acct-btns .cta { height: 48px; }
.cta.ghost { background: var(--bg); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--line); }
.acct-err { min-height: 0; font-size: 13px; font-weight: 600; color: #E5484D; }
.acct-err:empty { display: none; }
.acct-row { display: flex; align-items: center; gap: 12px; }
.acct-mole { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--earth-soft); }
.acct-info { min-width: 0; }
.acct-name { font-size: 17px; font-weight: 800; }
.acct-tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 11px; font-weight: 700; vertical-align: 2px; }
.acct-out { margin-top: 2px; background: var(--bg); }

/* 결산 카드의 한 줄 정보: 이름표는 한 줄, 값은 제목 아래 날짜 */
.stat .recap-label { white-space: nowrap; flex-shrink: 0; }
.stat .stat-value { min-width: 0; overflow-wrap: anywhere; word-break: keep-all; }
.stat .stat-value small { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; opacity: .72; }

/* 월간·연간 결산 */
.stats-mode-wrap { padding: 0 24px 8px; flex-shrink: 0; }
.stats-mode { max-width: 280px; }
.lock-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--surface); color: inherit; text-decoration: none; }
.lock-card .lock-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); flex-shrink: 0; }
.lock-card .lock-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.lock-card .lock-text b { font-size: 14px; }
.lock-card .lock-text span { font-size: 12px; color: var(--muted); }
.lock-card .chev { color: var(--muted); flex-shrink: 0; }
.stat-days .bars { gap: 2px; }
.stat-days .bar-lab { font-size: 10px; }
@media (min-width: 1024px) {
  .stats-mode-wrap { width: 100%; max-width: var(--content); margin: 0 auto; padding: 0 40px 8px; }
  .stats-body > .lock-card { grid-column: 1 / -1; }
}

/* 날짜 고르기 (앱 모양) */
.date-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.date-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.date-btn svg { color: var(--accent-text); }
.date-btn[aria-expanded="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.date-pop { padding: 14px 14px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); animation: rise .25s var(--ease) both; }
.date-pop[hidden] { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dp-head .icon-btn:disabled { opacity: .25; }
.dp-title { font-size: 16px; font-weight: 800; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-w { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.dp-w.sun, .dp-d.sun { color: #E5484D; }
.dp-d { aspect-ratio: 1; max-height: 44px; border: none; border-radius: 12px; background: transparent; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.dp-d:hover:not(:disabled) { background: var(--surface); }
.dp-d.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.dp-d.on { background: var(--accent); color: #FFFFFF; font-weight: 800; }
.dp-d:disabled { color: var(--disabled); cursor: default; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 6px; }
.dp-link { border: none; background: none; color: var(--accent-text); font: inherit; font-size: 14px; font-weight: 700; padding: 8px 6px; cursor: pointer; }

/* 처음 소개 카드 */
.onb { position: absolute; inset: 0; z-index: 45; display: flex; align-items: stretch; justify-content: center; background: rgba(10, 10, 14, 0); transition: background .26s ease; }
.onb[hidden] { display: none; }
.onb.open { background: rgba(10, 10, 14, .45); }
.onb-panel { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; background: var(--bg); overflow: hidden; transform: translateY(24px); opacity: 0; transition: transform .35s var(--ease), opacity .25s ease; }
.onb.open .onb-panel { transform: none; opacity: 1; }
.onb-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.onb-dots { display: flex; gap: 6px; }
.onb-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--bar-bg); transition: width .3s var(--ease), background .3s; }
.onb-dots i.on { width: 22px; background: var(--accent); }
.onb-skip { border: none; background: none; color: var(--muted); font: inherit; font-size: 14px; font-weight: 700; padding: 8px; cursor: pointer; }
.onb-skip[hidden] { visibility: hidden; display: block; }
.onb-track { flex: 1; display: flex; transition: transform .45s var(--ease); touch-action: pan-y; }
.onb-slide { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 8px 28px; gap: 10px; }
.onb-stage { width: 150px; height: 150px; }
.onb-mole { width: 100%; height: 100%; }
.onb-title { font-size: 28px; font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
.onb-sub { font-size: 15px; color: var(--muted); }
.onb-slide > * { opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .5s var(--ease); }
.onb-slide.active > * { opacity: 1; transform: none; }
.onb-slide.active > :nth-child(2) { transition-delay: .08s; }
.onb-slide.active > :nth-child(3) { transition-delay: .14s; }
.onb-slide.active > :nth-child(4) { transition-delay: .24s; }
.onb-card { width: 100%; max-width: 320px; margin-top: 14px; padding: 16px; border-radius: 18px; background: var(--surface); text-align: left; }
.onb-mini { font-size: 13px; }
.onb-q { font-size: 17px; font-weight: 800; margin: 4px 0 12px; }
.onb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.onb-chips span { padding: 7px 12px; border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 700; color: var(--sub); }
.onb-chips span.on { background: var(--accent); color: #FFFFFF; }
.onb-calc { margin-top: 14px; font-size: 15px; line-height: 1.5; }
.onb-calc b { color: var(--accent-text); font-size: 20px; }
.onb-chat { width: 100%; max-width: 320px; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.onb-chat p { padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; max-width: 86%; }
.onb-chat .me { align-self: flex-end; background: var(--accent); color: #FFFFFF; border-bottom-right-radius: 6px; }
.onb-chat .mole-say { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.onb-card.recapish { background: var(--accent); color: #FFFFFF; text-align: center; }
.onb-card.recapish .onb-mini { opacity: .85; }
.onb-big { font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0; }
.onb-foot { display: flex; flex-direction: column; gap: 6px; padding: 12px 20px 24px; }
.onb-ghost { border: none; background: none; color: var(--sub); font: inherit; font-size: 15px; font-weight: 700; padding: 12px; cursor: pointer; }
@media (min-width: 1024px) {
  .onb { position: fixed; align-items: center; }
  .onb-panel { width: 440px; height: min(720px, 90vh); border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
}

/* 본 작품 가져오기 */
.import-body { gap: 16px; }
.import-intro { display: flex; gap: 12px; align-items: center; }
.import-mole { width: 64px; height: 64px; flex-shrink: 0; }
.import-title { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.import-text { width: 100%; min-height: 150px; resize: vertical; line-height: 1.6; padding: 14px 16px; font: inherit; font-size: 15px; }
.import-list { display: flex; flex-direction: column; gap: 6px; }
.import-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 24px; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.import-row.loading, .import-row.miss { display: flex; justify-content: space-between; cursor: default; padding: 12px 14px; }
.import-row.miss .import-name { color: var(--muted); text-decoration: line-through; }
.import-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.import-name { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); }
.import-row.on { border-color: var(--accent); background: var(--accent-soft); }
.import-row.on .import-check { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat; }
.import-foot { display: flex; flex-direction: column; gap: 10px; }
.import-foot[hidden] { display: none; }
.import-when { display: flex; gap: 8px; flex-wrap: wrap; }
.import-foot .cta:disabled { opacity: .45; }
.import-unsure { font-size: 12px; font-weight: 600; color: #D08A00; }
.import-link { display: inline-block; margin-top: 14px; padding: 10px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 14px; font-weight: 700; text-decoration: none; }

.seg-lock { display: none; margin-left: 4px; vertical-align: -2px; }
.seg.locked { color: var(--muted); }
.seg.locked .seg-lock { display: inline-block; }
.seg.shake { animation: segShake .4s ease; }
@keyframes segShake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 75% { transform: translateX(-2px); } }
.recap-banner .banner-chev { width: 22px; height: 22px; flex-shrink: 0; opacity: .85; }

/* 홈: 왓챠피디아에서 가져오기 */
.watcha-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); color: inherit; text-decoration: none; }
.watcha-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-text); }
.watcha-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.watcha-text b { font-size: 15px; }
.watcha-text span { font-size: 13px; color: var(--muted); }
.watcha-btn > svg { color: var(--muted); flex-shrink: 0; }

/* 감상 카드: 고르면 두더지가 반응하고 나서 닫혀요 */
.sheet.reacting .sheet-mood:not([aria-pressed="true"]), .sheet.reacting .sheet-actions, .sheet.reacting #sheet-undo { opacity: .35; pointer-events: none; transition: opacity .2s ease; }
.sheet.reacting .sheet-title { animation: rise .35s var(--ease) both; }
.lm.react-happy .lm-mole { animation: reactHop .5s cubic-bezier(.3,.7,.3,1) 3 !important; }
.lm.react-happy .lm-head { animation: lmHappy .75s ease-in-out .1s 2 !important; }
.lm.react-happy .lm-paw { animation: reactPaw .5s ease-in-out 3 !important; }
.lm.react-ok .lm-head { animation: reactNod .7s ease-in-out 2 !important; }
.lm.react-sad .lm-mole { animation: reactSink 1.2s ease both !important; }
.lm.react-sad .lm-head { animation: lmSad .8s ease .3s both !important; }
.lm.react-sad .lm-eyes { animation: reactSadEyes 1.4s ease both !important; }
@keyframes reactHop { 0%, 100% { transform: none; } 45% { transform: translateY(-14px); } 70% { transform: translateY(2px); } }
@keyframes reactPaw { 0%, 100% { transform: none; } 45% { transform: translateY(-10px) rotate(-12deg); } }
@keyframes reactNod { 0%, 100% { transform: none; } 30% { transform: rotate(6deg) translateY(2px); } 65% { transform: rotate(-4deg); } }
@keyframes reactSink { 0% { transform: none; } 40%, 100% { transform: translateY(12px); } }
@keyframes reactSadEyes { 0%, 20% { transform: none; } 40%, 100% { transform: scaleY(.45) translateY(1px); } }

/* 추천 두더지 (AI) */
.ai-rec-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: none; border-radius: 16px; background: var(--bg); color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--accent); }
.ai-rec-btn > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-rec-btn b { font-size: 15px; color: var(--accent-text); }
.ai-rec-btn span span { font-size: 12px; color: var(--muted); }
.ai-rec-mole { width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--earth-soft); }
.ai-rec { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg); animation: rise .35s var(--ease) both; }
.ai-rec[hidden] { display: none; }
.ai-rec .loading-row { padding: 10px 0; }
.ai-say { font-size: 14px; line-height: 1.5; }
.ai-pick { display: grid; grid-template-columns: 26px minmax(0, 1fr) 16px; align-items: center; gap: 10px; padding: 10px 12px; border: none; border-radius: 12px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ai-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #FFFFFF; font-size: 13px; font-weight: 800; }
.ai-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ai-body b { font-size: 15px; }
.ai-body b em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 13px; }
.ai-body > span { font-size: 13px; color: var(--sub); line-height: 1.45; }
.ai-pick > svg { color: var(--muted); }
.ai-left { text-align: right; }

/* 별점 카드: 오른쪽 위에서 바로 보이게 */
.rate-card { padding: 16px 18px; border-radius: 18px; background: var(--surface); gap: 10px 14px; }
.rate-q { width: 100%; font-size: 16px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rate-q .muted { font-weight: 500; }
.rate-card .rate-mole { bottom: 8px; right: 12px; }

/* 다 봤어요 → 별점 카드 */
.rate-pop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.42); opacity: 0; transition: opacity .2s ease; }
.rate-pop[hidden] { display: none; }
.rate-pop.open { opacity: 1; }
.rate-pop-card { position: relative; width: min(360px, 100%); padding: 22px 20px 14px; border-radius: 24px; background: var(--surface); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.28); transform: translateY(16px) scale(.96); transition: transform .32s var(--ease); }
.rate-pop.open .rate-pop-card { transform: none; }
.rate-pop-mole { width: 76px; height: 76px; }
.rate-pop-kicker { font-size: 13px; font-weight: 700; color: var(--accent-text); }
.rate-pop-title { font-size: 19px; font-weight: 800; line-height: 1.35; word-break: keep-all; }
.rate-pop-stars { margin-top: 6px; }
.rate-pop-stars .star { width: 42px; height: 42px; }
.rate-pop-skip { margin-top: 4px; padding: 10px 14px; border: none; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; border-radius: 10px; }

/* 구글 로그인 */
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.google-btn:disabled { opacity: .6; cursor: default; }
.acct-or { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; font-size: 12px; color: var(--muted); }
.acct-or::before, .acct-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ===== 취향 분석 · 평가한 작품들 ===== */
.taste-body, .rated-body { gap: 14px; padding-bottom: 40px; }
.taste-body > *, .rated-body > * { max-width: 760px; width: 100%; margin-left: auto; margin-right: auto; }
.taste-entry { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--surface); color: inherit; text-decoration: none; margin-bottom: 14px; box-shadow: inset 0 0 0 1.5px var(--accent); }
.taste-entry .lock-text b { color: var(--accent-text); }
.taste-entry .chev { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.taste-entry-mole { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--earth-soft); }
.taste-hero { position: relative; padding: 22px 20px 20px; border-radius: 24px; background: var(--surface); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; }
.taste-hero-mole { width: 96px; height: 96px; }
.taste-type { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent-text); }
.taste-counts { text-decoration: none; color: inherit; display: block; }
.taste-counts .stat-title { display: flex; align-items: center; justify-content: space-between; }
.taste-counts .chev { color: var(--muted); }
.count-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; margin-top: 4px; }
.count-row b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.count-row span { font-size: 13px; color: var(--muted); }
.count-row.small { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.count-row.small b { font-size: 20px; }
.taste-note { color: var(--accent-text); font-weight: 700; }
.pref-list { display: flex; flex-direction: column; margin-top: 8px; }
.pref-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pref-row:last-child { border-bottom: none; }
.pref-rank { font-size: 13px; font-weight: 800; color: var(--muted); text-align: center; }
.pref-name { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pref-meta { font-size: 13px; color: var(--sub); }
.rated-tabs { display: grid; grid-template-columns: 1fr 1fr; max-width: 760px; margin: 0 auto; width: calc(100% - 48px); border-bottom: 1px solid var(--line); }
.rated-tab { padding: 12px 0; border: none; background: none; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rated-tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }
.rated-kinds { display: flex; gap: 8px; max-width: 760px; margin: 12px auto 4px; width: calc(100% - 48px); }
.rated-kinds .chip { height: 36px; padding: 0 14px; font-size: 14px; }
.rated-count { font-size: 13px; color: var(--muted); }
.rated-group { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rated-head { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 10px; }
.rated-head h2 { font-size: 18px; font-weight: 800; }
.rated-head h2 em { font-style: normal; color: var(--accent-text); margin-left: 4px; }
.text-btn { border: none; background: none; color: var(--sub); font: inherit; font-size: 14px; cursor: pointer; padding: 6px 4px; }
.rated-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.rated-strip::-webkit-scrollbar { display: none; }
.rated-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 12px; }
.rated-tile { display: flex; flex-direction: column; gap: 6px; border: none; background: none; padding: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.rated-tile .poster-img, .rated-tile .poster { width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: 10px; object-fit: cover; }
.rated-name { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rated-star { font-size: 12px; color: var(--sub); }
