/* =====================================================================
   FFFF · 애플 스타일 디자인 시스템 (2026-10-19)
   style.css 위에 덮는다. 흰색·#f5f5f7 면, 시스템 서체(SF Pro / Apple SD Gothic Neo, 그 밖은 Pretendard),
   큰 굵은 제목, 넓은 여백, 반투명 내비, 파란 알약 버튼. 장식(파스텔 스티커·체커 테이프·픽셀 아이콘·떠다니는 배경)은 쓰지 않는다.
   색은 오행 5색만 의미 있는 곳에 쓰고, 그 외에는 무채색 + 애플 블루 하나.
   ===================================================================== */
:root {
  --bg: #f5f5f7; --bg2: #e8e8ed; --card: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --line: #d2d2d7; --ink: #1d1d1f;
  --blue: #0071e3; --blue-h: #0077ed; --blue-s: #e8f1fd; --link: #0066cc;
  --cobalt: var(--blue); --cobalt-s: var(--blue-s); --tangerine: #ff9f0a; --tangerine-s: #fff4e5;
  --lav: #f5f5f7; --lav-s: #f5f5f7; --pink: #f5f5f7; --pink-s: #f5f5f7; --mint: #f5f5f7; --mint-s: #eef7f1; --butter: #f5f5f7; --butter-s: #f5f5f7; --sky: #f5f5f7; --sky-s: #f5f5f7; --peach: #f5f5f7; --peach-s: #f5f5f7;
  --el0: #34a46a; --el1: #e5484d; --el2: #d99a1e; --el3: #8e8e93; --el4: #2f7de1;
  --shadow: 0 4px 24px rgba(0,0,0,.06); --shadow-s: 0 1px 4px rgba(0,0,0,.06);
  --r: 22px; --r-s: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Apple SD Gothic Neo', 'Pretendard Variable', Pretendard, 'Helvetica Neue', 'Malgun Gothic', sans-serif;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Apple SD Gothic Neo', 'Pretendard Variable', Pretendard, 'Helvetica Neue', sans-serif;
  --title: var(--display);
  --checker: var(--text);
  --rainbow: linear-gradient(90deg, #34a46a, #2f7de1 30%, #8e5cf6 55%, #e5484d 78%, #d99a1e);
}
html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; letter-spacing: -.01em; }
::selection { background: rgba(0,113,227,.18); }
a { color: var(--link); }
.mascot, #bg { display: none !important; }

/* ---------- 글로벌 내비: 반투명 흰 막대 ---------- */
.top { height: 52px; padding: 0 max(22px, calc((100vw - 1040px) / 2)); gap: 28px; background: rgba(255,255,255,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.logo { gap: 10px; }
.logo .wm { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .04em; gap: 1px; color: var(--text); }
.logo .wm span { color: var(--text); -webkit-text-stroke: 0; }
.logo .slogan { font-family: var(--font); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
nav { background: transparent; box-shadow: none; padding: 0; gap: 4px; }
nav a { color: var(--muted); font-size: 13px; font-weight: 400; padding: 6px 10px; border-radius: 8px; transition: color .2s; }
nav a:hover:not(.on) { background: transparent; color: var(--text); }
nav a.on { background: transparent; color: var(--text); font-weight: 600; }
nav .nav-ind { display: none; }
.status .wallet-chip { background: transparent; box-shadow: none; padding: 0; font-weight: 400; color: var(--muted); font-size: 12px; }
.status .wallet-chip b { font-family: var(--display); font-weight: 600; color: var(--text); }
body[data-view=home] nav, body[data-view=home] .status, body[data-view=start] .top { display: none; }
body[data-view=home] .top { justify-content: center; }
body[data-view=home] main, body[data-view=start] main { max-width: none; padding: 0; }

/* ---------- 본문 ---------- */
main { max-width: 1040px; padding: 40px 24px 120px; }
.view.on { animation: pagein .5s cubic-bezier(.16,1,.3,1) both; }
.h1 { font-family: var(--display); font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.12; }
.h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -.025em; margin: 56px 0 18px; }
.h2::before { display: none !important; }
.h2 .muted { font-size: 15px; font-weight: 400; letter-spacing: -.01em; }
.muted { color: var(--muted); }

/* 카드: 흰 면, 그림자 없음, 장식 테이프 없음 */
.panel { background: var(--card); border-radius: var(--r); padding: 28px 30px; box-shadow: none; margin-bottom: 20px; }
.panel::before { display: none !important; }
.panel-title { font-size: 19px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 14px; }
.panel-title .muted { font-size: 13px; font-weight: 400; }

/* 버튼: 애플 블루 알약 / 회색 보조 */
.btn { background: var(--blue); color: #fff; box-shadow: none; font-weight: 500; font-size: 15px; padding: 10px 20px; letter-spacing: -.01em; transition: background .2s, opacity .2s; }
.btn:hover { background: var(--blue-h); transform: none; box-shadow: none; } .btn:active { transform: none; opacity: .85; }
.btn.ghost { background: var(--bg2); color: var(--text); } .btn.ghost:hover { background: #dedee3; }
.btn.big { font-size: 17px; padding: 14px 28px; } .btn.sm { font-size: 13px; padding: 7px 14px; }

/* 칩·세그먼트 */
.chip, .tchip { background: var(--bg); box-shadow: none; border: 0; font-weight: 500; }
.chip.on, .tchip.high { background: var(--text); color: #fff; }
.seg { background: var(--bg2); padding: 3px; border-radius: 10px; } .seg button { border-radius: 8px; font-weight: 500; } .seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.subtabs { background: var(--bg2); box-shadow: none; padding: 3px; border-radius: 10px; } .subtabs button { border-radius: 8px; font-weight: 500; } .subtabs button.on { background: #fff !important; color: var(--text) !important; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.chip.on, .tchip.high, .pillar.me, .pm.me, .rd-dm, .mg-tag { background: var(--text); }
nav a.on, nav a.on:hover { background: transparent !important; color: var(--text) !important; }

/* 입력 */
label { font-size: 13px; font-weight: 500; color: var(--muted); }
input, select, textarea { background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 17px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,113,227,.18); }

/* 토스트: 반투명 검정 */
.toast { background: rgba(29,29,31,.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 14px; font-weight: 500; font-size: 14px; padding: 12px 18px; }
.toast.err { background: rgba(215,0,21,.92); }

/* 픽셀 아이콘은 쓰지 않는다 */
.tag .ic, .cat-ic, #rec-tag canvas, .weather .wx-icon, .hero-left canvas, .loader canvas { display: none !important; }

/* ---------- 오늘 ---------- */
.hero-card { padding: 40px 44px; gap: 40px; }
.hero-card .brandmark { display: none; }
#today-date { font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
#today-greet { font-family: var(--display); font-size: clamp(30px, 3.4vw + 10px, 52px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; margin: 8px 0 12px; }
#today-greet b { font-weight: 800; background: none; color: inherit; }
#today-greet b.el0 { color: var(--el0); } #today-greet b.el1 { color: var(--el1); } #today-greet b.el2 { color: var(--el2); } #today-greet b.el3 { color: var(--el3); } #today-greet b.el4 { color: var(--el4); }
.kin b { animation: ink .9s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--d0, 0ms) + var(--n, 6) * 75ms + 200ms); }
.hero-sub { font-size: 15px; }
.lk { background: var(--bg); font-weight: 500; font-size: 13px; padding: 7px 12px; }
.ring circle { stroke: #f0f0f2; stroke-width: 7; }
.ring-num b { font-family: var(--display); font-weight: 700; font-size: 52px; letter-spacing: -.04em; }
.hero-right .weather { background: var(--bg); border-radius: 16px; }
.weather { box-shadow: none; } .weather .temp { font-family: var(--display); font-weight: 600; }
.tk { font-family: var(--display); font-weight: 700; color: #d2d2d7; letter-spacing: -.035em; }
.tk.fill { font-weight: 800; } .tk.hj { color: var(--text); font-weight: 600; }
.tk-sep { width: 6px; height: 6px; border-radius: 50%; background: #d2d2d7; transform: none; margin: 0 .6em; }
.compact { padding: 18px 22px; }
.pm { background: var(--bg); border-radius: 10px; font-weight: 600; }
.mg-headline, .rd-title { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; }
.mg-headline { font-size: 22px; }
.mg-map { background: var(--bg); border-radius: 16px; }
.mg-row .bar { height: 6px; background: #fff; } .mg-row .bar i { border-radius: 3px; }
.mg-rel li { background: var(--bg); border-left-width: 3px; }
.mg-rxrow { background: var(--bg); border-radius: 12px; }
.rd-item { background: var(--bg); }
.tags { gap: 16px; }
.tag { border-radius: var(--r); box-shadow: none; padding: 22px 22px 24px; transition: transform .35s cubic-bezier(.16,1,.3,1); }
.tag:hover { transform: scale(1.015); box-shadow: none; }
.tag::before, .tag::after { display: none !important; }
.tag .score b { font-family: var(--display); font-weight: 700; letter-spacing: -.04em; }
.tag .lbl { font-family: var(--display); font-weight: 700; }
.tag .lv { background: var(--bg); font-weight: 600; } .tag .lv.상 { background: var(--text); }
.tag .meter { height: 4px; background: var(--bg2); border-radius: 2px; } .tag .meter i { border-radius: 2px; }
.cat { background: var(--card); box-shadow: none; border-radius: 18px; }

/* ---------- 추천 ---------- */
.rec-tag { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
.sw { border: 0; box-shadow: none; border-radius: 18px; }
.sw.accent::before { background: var(--text); }

/* ---------- 보관함 ---------- */
.closet-bar .chips .chip { background: #fff; border: 1px solid var(--line); font-weight: 500; }
.closet-bar .chips .chip.on { background: var(--text); border-color: var(--text); }
.item::before { background: var(--line); height: 2px; box-shadow: none; }
.item .pic img { border-width: 0; border-radius: 16px; box-shadow: none; }
.item .nm { font-weight: 600; }

/* ---------- 기록 ---------- */
.cal .day { background: #fff; border-radius: 12px; }
.cal .day.today { background: var(--blue-s); box-shadow: inset 0 0 0 2px var(--blue); }
.cal .day.has { box-shadow: none; } .cal .day.has:hover { transform: scale(1.03); }
.cal .day .n { font-family: var(--display); }

/* 공통 숫자 */
.ring-num b, .tag .score b, .frec .sc, .pairline .sc, .plan-head .sc, .cal .day .n, .wallet-n { font-family: var(--display); }

/* ---------- 모바일 탭 막대 ---------- */
@media (max-width: 760px) {
  .top { height: 48px; padding: 0 16px; backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.94); } /* 블러가 있으면 안의 고정 탭 막대가 헤더 기준이 된다 */
  nav { position: fixed; left: 0; right: 0; bottom: 0; border-radius: 0; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-top: 1px solid rgba(0,0,0,.08); box-shadow: none; }
  nav a { font-size: 11px; padding: 8px 4px; }
  main { padding: 20px 16px 110px; }
  .h1 { font-size: 30px; } .h2 { font-size: 22px; margin-top: 40px; }
  .panel { padding: 20px 18px; border-radius: 18px; }
  .hero-card { padding: 24px 20px; gap: 20px; }
}

/* =====================================================================
   랜딩
   ===================================================================== */
.dk { display: none; } @media (min-width: 761px) { .dk { display: inline; } }
#view-home { background: #fff; }
.hm-hero { min-height: calc(100vh - 52px); min-height: calc(100svh - 52px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 22px 80px; }
.hm-eyebrow { font-size: 19px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; margin: 0 0 14px; }
.hm-title { font-family: var(--display); font-size: clamp(52px, 10vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: 1.02; margin: 0; background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hue 12s ease-in-out infinite alternate; padding-bottom: .06em; }
.hm-title .w, .hm-title .wi { background: inherit; -webkit-background-clip: text; background-clip: text; }
.hm-title.kin .w { background: none; } .hm-title.kin .wi { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes hue { to { background-position: 100% 0 } }
.hm-sub { font-size: clamp(19px, 1.6vw + 10px, 26px); line-height: 1.45; letter-spacing: -.02em; color: var(--text); font-weight: 500; margin: 26px 0 34px; max-width: 760px; }
.hm-cta { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.g-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--text); color: #fff; text-decoration: none; font-size: 17px; font-weight: 500; letter-spacing: -.01em; padding: 15px 28px 15px 22px; border-radius: 999px; transition: background .2s, transform .2s; }
.g-btn:hover { background: #000; } .g-btn:active { transform: scale(.98); }
.g-btn .g-logo { width: 20px; height: 20px; background: #fff; border-radius: 50%; padding: 3px; box-sizing: content-box; }
.g-btn.no-g { padding-left: 28px; } .g-btn.no-g .g-logo { display: none; }
.g-btn.light { background: #fff; color: var(--text); } .g-btn.light:hover { background: #f5f5f7; }
.g-btn:focus-visible, .hm-link:focus-visible { outline: 3px solid rgba(0,113,227,.5); outline-offset: 3px; }
.hm-link { color: var(--link); text-decoration: none; font-size: 17px; } .hm-link:hover { text-decoration: underline; }
.hm-note { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

.hm-sec { padding: 120px 22px; text-align: center; }
#hm-sample { background: var(--bg); }
.hm-h2 { font-family: var(--display); font-size: clamp(36px, 5.4vw, 64px); font-weight: 700; letter-spacing: -.04em; line-height: 1.06; margin: 0 0 18px; }
.hm-lead { font-size: 21px; color: var(--muted); margin: 0 0 56px; letter-spacing: -.015em; }

/* 사주 카드 샘플 */
.hm-card-wrap { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 360px); gap: 64px; justify-content: center; align-items: center; text-align: left; }
.s-card { background: #fff; border-radius: 34px; padding: 30px 28px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.04); }
.s-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.s-badge { background: var(--bg); color: var(--text); font-weight: 600; font-size: 11px; padding: 4px 10px; border-radius: 999px; }
.s-score { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 4px; }
.s-score b { font-family: var(--display); font-size: 96px; font-weight: 700; letter-spacing: -.05em; line-height: .95; font-variant-numeric: tabular-nums; }
.s-score b.odo span { font-size: inherit; margin: 0; color: inherit; }
.s-score > span { font-size: 15px; color: var(--muted); }
.s-head { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; margin: 6px 0 20px; }
.s-head em { font-style: normal; color: var(--el0); }
.s-tags { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.s-tags li { display: grid; grid-template-columns: 112px 1fr 28px; gap: 10px; align-items: center; font-size: 14px; }
.s-tags i { display: block; height: 6px; border-radius: 3px; background: var(--bg2); position: relative; overflow: hidden; }
.s-tags i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--text); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 1.1s cubic-bezier(.16,1,.3,1); }
.s-tags li:first-child i::after { background: var(--el0); }
.s-card.play .s-tags i::after { transform: none; }
.s-card.play .s-tags li:nth-child(2) i::after { transition-delay: .08s } .s-card.play .s-tags li:nth-child(3) i::after { transition-delay: .16s } .s-card.play .s-tags li:nth-child(4) i::after { transition-delay: .24s }
.s-tags b { font-family: var(--display); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.s-pal { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.s-pal i { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.s-pal span { margin-left: 6px; }
.s-fit { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 500; }
.s-fit .k { display: block; font-size: 12px; color: var(--muted); font-weight: 400; margin-bottom: 2px; }
.s-foot { display: flex; justify-content: space-between; margin-top: 18px; font-size: 12px; color: var(--muted); }
.s-foot span:first-child { font-weight: 700; color: var(--text); letter-spacing: .04em; }
.s-notes { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 30px; }
.s-notes li { counter-increment: n; display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.s-notes li::before { content: counter(n); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--text); color: #fff; font-size: 14px; font-weight: 600; display: grid; place-items: center; }
.s-notes b { color: var(--text); font-size: 19px; font-weight: 700; letter-spacing: -.02em; display: block; margin-bottom: 2px; }

/* 하루의 흐름: 벤토 */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1040px; margin: 56px auto 0; text-align: left; }
.bt { background: var(--bg); border-radius: 30px; padding: 36px 34px; min-height: 340px; display: flex; flex-direction: column; overflow: hidden; }
.bt-wide { grid-column: 1 / -1; min-height: 0; }
.bt-step { font-size: 14px; font-weight: 600; color: var(--muted); margin: 0 0 8px; }
.bt h3 { font-family: var(--display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 10px; }
.bt p { font-size: 17px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 520px; }
.bt-bars { display: grid; gap: 12px; margin-top: 30px; }
.bt-bars div { display: grid; grid-template-columns: 140px 1fr 40px; gap: 14px; align-items: center; font-size: 15px; font-weight: 500; }
.bt-bars i { height: 10px; border-radius: 5px; background: var(--bg2); position: relative; overflow: hidden; }
.bt-bars i::after { content: ''; position: absolute; inset: 0; width: var(--w); background: var(--text); border-radius: 5px; transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.16,1,.3,1) .2s; }
.bt-bars div:first-child i::after { background: var(--el0); }
.bt.in .bt-bars i::after { transform: none; }
.bt-bars b { font-family: var(--display); font-size: 20px; font-weight: 700; text-align: right; }
.bt-rail { margin-top: auto; padding-top: 34px; display: flex; gap: 14px; position: relative; justify-content: center; }
.bt-rail::before { content: ''; position: absolute; left: 0; right: 0; top: 34px; height: 2px; background: var(--line); }
.bt-rail i { width: 56px; height: 76px; margin-top: 12px; background: var(--c); border-radius: 10px 10px 6px 6px; clip-path: polygon(22% 0, 38% 6%, 62% 6%, 78% 0, 100% 16%, 90% 34%, 80% 30%, 80% 100%, 20% 100%, 20% 30%, 10% 34%, 0 16%); transform-origin: 50% -12px; }
.bt.in .bt-rail i { animation: hangin 1.2s cubic-bezier(.16,1,.3,1) backwards; } .bt.in .bt-rail i:nth-child(2) { animation-delay: .1s } .bt.in .bt-rail i:nth-child(3) { animation-delay: .2s } .bt.in .bt-rail i:nth-child(4) { animation-delay: .3s }
.bt-friends { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; }
.bt-friends span { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 10px 14px; font-size: 15px; font-weight: 600; }
.bt-friends i { width: 34px; height: 34px; border-radius: 50%; background: var(--text); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.bt-friends span:nth-child(2) i { background: var(--el4); } .bt-friends span:nth-child(3) i { background: var(--el1); }
.bt-friends b { margin-left: auto; font-family: var(--display); font-size: 20px; }
.bt-dark { background: #000 !important; color: #f5f5f7; }
.bt-dark p, .bt-dark .bt-step { color: #a1a1a6; }
.bt-plan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.bt-plan div { background: #1d1d1f; border-radius: 16px; padding: 14px 16px; font-size: 17px; font-weight: 600; }
.bt-plan .k { display: block; font-size: 12px; font-weight: 500; color: #a1a1a6; margin-bottom: 2px; }
.bt-plan div:first-child { background: var(--blue); } .bt-plan div:first-child .k { color: rgba(255,255,255,.75); }

.hm-final { background: #000; color: #f5f5f7; text-align: center; padding: 140px 22px 120px; }
.hm-final .hm-h2 { color: #f5f5f7; margin-bottom: 36px; }
.hm-final .hm-note { color: #a1a1a6; }
.hm-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px max(22px, calc((100vw - 1040px) / 2)); background: var(--bg); font-size: 12px; color: var(--muted); }
.hm-foot a { color: var(--muted); }

/* 스크롤 등장 */
.rv-up { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.16,1,.3,1), transform .9s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--k, 0) * 90ms); }
.rv-up.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .hm-card-wrap { grid-template-columns: minmax(0, 400px); gap: 40px; }
  .bento { grid-template-columns: 1fr; }
  .bt { min-height: 0; padding: 28px 24px; }
  .bt h3 { font-size: 25px; }
  .bt-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bt-bars div { grid-template-columns: 100px 1fr 34px; font-size: 14px; }
  .hm-sec { padding: 80px 18px; }
  .hm-lead { font-size: 17px; margin-bottom: 36px; }
  .s-score b { font-size: 80px; }
  .s-tags li { grid-template-columns: 96px 1fr 26px; }
}

/* =====================================================================
   설정 도우미(처음 정보 입력)
   ===================================================================== */
#view-start { background: #fff; min-height: 100vh; min-height: 100svh; }
.ob { max-width: 600px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 18px 24px calc(28px + env(safe-area-inset-bottom)); }
.ob-top { display: grid; grid-template-columns: 80px 1fr 80px; align-items: center; gap: 12px; height: 44px; }
.ob-back, .ob-skip { background: none; border: 0; font: inherit; font-size: 17px; color: var(--link); cursor: pointer; padding: 6px 0; }
.ob-back { text-align: left; } .ob-skip { text-align: right; }
.ob-prog { height: 4px; background: var(--bg2); border-radius: 2px; overflow: hidden; }
.ob-prog i { display: block; height: 100%; background: var(--blue); border-radius: 2px; transform-origin: left; transform: scaleX(0); transition: transform .5s cubic-bezier(.16,1,.3,1); }
.ob-steps { position: relative; flex: 1; margin: 0; padding: 0; border: 0; min-height: 440px; }
.ob-step { position: absolute; inset: 0; border: 0; margin: 0; padding: 9vh 0 0; opacity: 0; pointer-events: none; transform: translateX(48px); transition: opacity .45s cubic-bezier(.16,1,.3,1), transform .55s cubic-bezier(.16,1,.3,1); visibility: hidden; }
.ob-step[data-dir=l] { transform: translateX(-48px); }
.ob-step.on { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.ob-step.out-l { transform: translateX(-48px); visibility: visible; } .ob-step.out-r { transform: translateX(48px); visibility: visible; }
.ob-step.shake { animation: nudge .45s cubic-bezier(.65,0,.35,1); }
.ob-q { font-family: var(--display); font-size: clamp(30px, 4vw + 12px, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; margin: 0 0 12px; }
.ob-hint { font-size: 17px; color: var(--muted); margin: 0 0 34px; line-height: 1.45; }
.ob-input { width: 100%; font-size: 22px; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid transparent; margin: 0; color: var(--text); }
.ob-input:focus { background: #fff; border-color: var(--blue); }
.ob-input:disabled { opacity: .4; }
.ob-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ob-choice button { height: 128px; border-radius: 20px; border: 2px solid transparent; background: var(--bg); font: inherit; font-size: 22px; font-weight: 600; color: var(--text); cursor: pointer; transition: border-color .2s, background .2s, transform .2s; }
.ob-choice button:hover { background: #ededf0; } .ob-choice button:active { transform: scale(.98); }
.ob-choice button.on { border-color: var(--blue); background: var(--blue-s); color: var(--blue); }
.ob-switch { display: flex; align-items: center; gap: 14px; margin-top: 22px; font-size: 17px; color: var(--text); font-weight: 400; cursor: pointer; }
.ob-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw-ui { width: 51px; height: 31px; border-radius: 16px; background: #e9e9eb; position: relative; flex: none; transition: background .25s; }
.sw-ui::after { content: ''; position: absolute; left: 2px; top: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15), 0 1px 1px rgba(0,0,0,.16); transition: transform .25s cubic-bezier(.16,1,.3,1); }
.ob-switch input:checked + .sw-ui { background: #34c759; } .ob-switch input:checked + .sw-ui::after { transform: translateX(20px); }
.ob-switch input:focus-visible + .sw-ui { box-shadow: 0 0 0 4px rgba(0,113,227,.3); }
.ob-list, .ob-group { margin-top: 14px; background: var(--bg); border-radius: 14px; overflow: hidden; }
.ob-list:empty { display: none; }
.ob-row { display: flex; width: 100%; align-items: center; gap: 12px; background: transparent; border: 0; border-top: 1px solid var(--line); font: inherit; font-size: 17px; color: var(--text); text-align: left; padding: 14px 16px; cursor: pointer; }
.ob-row:first-child { border-top: 0; } .ob-row:hover { background: #ececf0; }
.ob-row b { margin-left: auto; font-weight: 400; color: var(--muted); text-align: right; }
.ob-row i { font-style: normal; color: #c7c7cc; font-size: 20px; }
.ob-ghost { margin-top: 14px; background: none; border: 0; font: inherit; font-size: 17px; color: var(--link); cursor: pointer; padding: 6px 0; }
.ob-picked { margin: 12px 0 0; font-size: 17px; font-weight: 600; color: #248a3d; min-height: 1.4em; }
.ob-foot { padding-top: 16px; }
.ob-next { width: 100%; height: 54px; border: 0; border-radius: 14px; background: var(--blue); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; transition: background .2s, opacity .2s; }
.ob-next:hover { background: var(--blue-h); } .ob-next:disabled { opacity: .6; cursor: wait; }
.ob-next:focus-visible, .ob-choice button:focus-visible, .ob-row:focus-visible { outline: 3px solid rgba(0,113,227,.5); outline-offset: 2px; }
.ob-legal { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.ob-legal a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hm-title, .hm-title.kin .wi { animation: none !important; }
  .rv-up { opacity: 1; transform: none; }
}

/* 개발자 칩: 설정 도우미에서는 숨기고, 모바일에서는 탭 막대 위 오른쪽 */
body[data-view=start] .dev-chip { display: none; }
@media (max-width: 760px) { .dev-chip { top: auto; left: auto; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); } body[data-view=home] .dev-chip { bottom: 12px; } }
.ob-searching { padding: 14px 16px; font-size: 15px; color: var(--muted); }
.sw { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
a.btn, a.btn:hover { text-decoration: none; }
#card { border-radius: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.12); transform: none; background: #f5f5f7; }
