/* scentsquare — 모바일 우선. 색은 :root 토큰만 쓴다(다크 모드 값 함께). */
:root {
  --bg: #FAF7F2;
  --card: #FFFFFF;
  --card-2: #F4EFE6;
  --ink: #2B2420;
  --muted: #6F6A63;
  --line: #E8E2D8;
  --accent: #2E3A59;
  --accent-ink: #FAFAF7;
  --coral: #E0735E;
  --ok: #7FA37A;
  --warn: #D98B3C;
  --office: #5B7DB1;
  --cafe: #C98B5B;
  --home: #7FA37A;
  --shadow: 0 6px 20px rgba(43, 36, 32, .08);
  --radius: 16px;
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171A24;
    --card: #222636;
    --card-2: #2B3042;
    --ink: #F2EEE8;
    --muted: #A9A49C;
    --line: #343A4E;
    --accent: #9FB6E0;
    --accent-ink: #171A24;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6; -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
button { font: inherit; color: inherit; }
img, svg { max-width: 100%; display: block; }
.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 18px; }
.brand-mark { width: 22px; height: 22px; border-radius: 7px; background: var(--accent); position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 6px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--card-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 13px; color: var(--muted); cursor: pointer; }
.chip-weather svg { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.chip-lang { font-weight: 800; letter-spacing: .02em; padding: 6px 9px; color: var(--accent); }
.user-chip { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); padding: 0; overflow: hidden; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.user-chip img { width: 100%; height: 100%; object-fit: cover; }
.user-chip .ini { font-weight: 800; font-size: 14px; color: var(--accent); }
.lang-note { font-size: 12.5px; color: var(--muted); background: var(--card-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.login-card .gsi-btn { min-height: 44px; display: flex; justify-content: center; }
@media (max-width: 380px) { .chip-weather span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.tag { cursor: default; font-size: 12.5px; padding: 4px 9px; }
.chip.tag.family { color: var(--ink); background: var(--card-2); border-color: transparent; }

/* 본문 */
.view { padding: 8px 16px 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h2, .card h3 { margin: 0 0 8px; letter-spacing: -.01em; }
h1 { font-size: 24px; line-height: 1.3; margin: 8px 0 10px; letter-spacing: -.02em; }
h2 { font-size: 19px; line-height: 1.35; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.lead { font-size: 17px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.center { text-align: center; }
.stack > * + * { margin-top: 10px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; text-decoration: none; min-height: 46px; transition: transform .08s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }
.link { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; padding: 0; white-space: nowrap; }

/* 히어로·광장 */
.hero { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); margin-bottom: 12px; }
.scene-wrap { position: relative; }
.scene-wrap .sq-scene { width: 100%; height: auto; display: block; }
.avatar-on-scene { position: absolute; width: 54px; height: auto; transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 4px 6px rgba(0,0,0,.25)); transition: left .6s cubic-bezier(.2,.8,.2,1), top .6s cubic-bezier(.2,.8,.2,1); }
.avatar-on-scene.walk { animation: bob .6s ease-in-out infinite; }
@keyframes bob { 0%,100% { margin-top: 0 } 50% { margin-top: -4px } }
.pin { position: absolute; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; }
.pin::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid currentColor; opacity: .45; animation: pulse 1.6s ease-out infinite; }
.pin.done { background: var(--ok); }
.pin.done::before { animation: none; opacity: 0; }
.pin.office { background: var(--office); } .pin.cafe { background: var(--cafe); } .pin.home { background: var(--home); }
.pin.done { background: var(--ok); }
@keyframes pulse { 0% { transform: scale(.7); opacity: .6 } 100% { transform: scale(1.5); opacity: 0 } }
.pin-label { position: absolute; transform: translate(-50%, 24px); font-size: 11px; font-weight: 700; color: #fff; background: rgba(43,36,32,.6); padding: 2px 7px; border-radius: 6px; white-space: nowrap; pointer-events: none; }

.district-list { display: grid; gap: 10px; }
.district-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); text-decoration: none; }
.district-card .dot { width: 38px; height: 38px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; }
.district-card .meta { flex: 1; min-width: 0; }
.district-card .meta b { display: block; font-size: 16px; }
.district-card .meta span { font-size: 13px; color: var(--muted); }
.progress { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 6px; }
.progress > i { display: block; height: 100%; background: var(--ok); border-radius: 999px; transition: width .4s ease; }

/* 이야기 */
.story p { font-size: 16.5px; line-height: 1.8; margin: 0 0 14px; }
.fade-in { animation: fadeIn .5s ease both; }
.fade-in.d1 { animation-delay: .25s } .fade-in.d2 { animation-delay: .5s } .fade-in.d3 { animation-delay: .75s } .fade-in.d4 { animation-delay: 1s }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px) } to { opacity: 1; transform: none } }
.scene-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.scene-head .k { font-size: 12.5px; font-weight: 700; padding: 3px 8px; border-radius: 6px; color: #fff; }
.k.office { background: var(--office) } .k.cafe { background: var(--cafe) } .k.home { background: var(--home) }
.choice { display: block; width: 100%; text-align: left; padding: 14px 14px 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); margin-bottom: 10px; cursor: pointer; position: relative; line-height: 1.55; }
.choice::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: var(--accent); opacity: .6; }
.choice:hover { background: var(--card-2); }
.choice .axis { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.npc { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.npc .bubble { flex: 1; background: var(--card-2); border-radius: 4px 16px 16px 16px; padding: 12px 14px; font-size: 15.5px; line-height: 1.65; }
.npc .who { font-size: 12px; color: var(--muted); margin-bottom: 2px; }

/* 추천 카드 */
.reco { position: relative; }
.reco .badge { position: absolute; top: -10px; left: 14px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; background: var(--accent); }
.reco.bold .badge { background: var(--coral); }
.reco.signature .badge { background: var(--ok); }
.reco .head { display: flex; gap: 12px; align-items: center; margin-top: 4px; }
.reco .head .name b { display: block; font-size: 16.5px; }
.reco .head .name span { color: var(--muted); font-size: 13.5px; }
.reco .dir { font-weight: 700; margin: 8px 0 4px; }
.reco .reason { color: var(--muted); font-size: 14.5px; }
.meters { display: flex; gap: 14px; margin: 8px 0; font-size: 12.5px; color: var(--muted); }
.meter { display: inline-flex; gap: 3px; align-items: center; margin-left: 6px; }
.meter i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.meter i.on { background: var(--accent); }
.notes { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.notes span { font-size: 12.5px; padding: 3px 8px; border-radius: 999px; background: var(--card-2); }
.notes .t { opacity: .95 } .notes .m { opacity: .85 } .notes .b { opacity: .75 }
.reco .actions { display: flex; gap: 8px; margin-top: 10px; }
.reco .actions .btn { flex: 1; }

/* 하단 메뉴 */
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: center; background: color-mix(in srgb, var(--card) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-inner { display: flex; width: 100%; max-width: 520px; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px; font-size: 11.5px; color: var(--muted); text-decoration: none; min-height: var(--nav-h); justify-content: center; }
.nav a.active { color: var(--accent); font-weight: 700; }
.nav a .n { position: relative; }
.nav a .dotn { position: absolute; top: -2px; right: -6px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }

/* 캐릭터 편집 */
.editor-preview { display: flex; justify-content: center; padding: 10px 0 0; background: linear-gradient(180deg, transparent, var(--card-2)); border-radius: 14px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin: 10px 0; }
.tabs button { flex: none; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; cursor: pointer; }
.tabs button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch.active { border-color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-size: 14.5px; }
.opt.active { border-color: var(--accent); background: var(--card-2); font-weight: 700; }
.opt.locked { opacity: .5; }
.input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font-size: 16px; color: var(--ink); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
label.lbl { display: block; font-size: 13.5px; color: var(--muted); margin: 10px 0 4px; }
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: auto; }

/* 프로필·여권·선반 */
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.profile-grid .kv { background: var(--card-2); border-radius: 12px; padding: 10px 12px; }
.profile-grid .kv small { display: block; color: var(--muted); font-size: 12px; }
.stamps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; justify-items: center; }
.stamps figure { margin: 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.level { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; }
.shelf-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.shelf-item:last-child { border-bottom: 0; }
.shelf-item .meta { flex: 1; min-width: 0; }
.shelf-item .meta b { display: block; }
.shelf-item .meta span { font-size: 13px; color: var(--muted); }
.share-card { width: 100%; border-radius: 14px; border: 1px solid var(--line); }

/* 공방 채팅 */
.chat { display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.6; font-size: 15.5px; white-space: pre-wrap; word-break: break-word; }
.msg.ai { align-self: flex-start; background: var(--card-2); border-top-left-radius: 4px; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-top-right-radius: 4px; }
.msg.sys { align-self: center; font-size: 13px; color: var(--muted); background: transparent; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; }
.chat-input .input { flex: 1; }
.typing i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 3px; animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s } .typing i:nth-child(3) { animation-delay: .4s }
@keyframes blink { 0%,100% { opacity: .2 } 50% { opacity: 1 } }
.plan { border: 2px solid var(--ok); }
.plan h3 { color: var(--ok); }

/* 기타 */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.modal[hidden] { display: none; }
.modal .sheet { width: 100%; max-width: 520px; background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 85dvh; overflow: auto; }
.weather-chip-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.stat-row { display: flex; gap: 8px; }
.stat { flex: 1; background: var(--card-2); border-radius: 12px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 20px; }
.stat small { color: var(--muted); font-size: 12px; }
.badge-new { font-size: 11px; background: var(--coral); color: #fff; padding: 2px 6px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.ribbon { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
/* 이야기: 한 문장씩 */
.story-stage { cursor: pointer; user-select: none; -webkit-user-select: none; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; outline: none; }
.story-stage:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.story-progress { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.story-progress i { display: block; height: 100%; background: var(--accent); transition: width .3s ease; }
.story-sentence { font-size: 19px; line-height: 1.9; margin: 14px 0; min-height: 6.5em; display: flex; align-items: center; letter-spacing: -.005em; }
.story-ctl { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.story-ctl .link { text-decoration: none; font-weight: 600; }
.story-ctl .link[disabled] { opacity: .3; cursor: default; }
/* 추천 카드 덱 */
.deck { position: relative; overflow: hidden; margin: 12px -4px 0; padding: 0 4px; }
.deck-track { display: flex; transition: transform .45s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.deck-item { flex: 0 0 100%; padding: 12px 0 0; opacity: .35; transform: scale(.96); transition: opacity .35s ease, transform .35s ease; }
.deck-item.active { opacity: 1; transform: none; }
.deck-item.active .reco { animation: pop .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.deck-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 4px; }
.deck-nav .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; margin: 0 3px; }
.deck-nav .dots i.on { background: var(--accent); }
.mood { border-radius: 12px; overflow: hidden; margin: 10px 0 12px; aspect-ratio: 320 / 120; }
.mood svg { width: 100%; height: 100%; display: block; }
.steps { display: inline-flex; gap: 5px; margin-left: 6px; }
.steps i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.steps i.done { background: var(--ok); } .steps i.now { background: var(--accent); }
.footer-note { font-size: 12px; color: var(--muted); text-align: center; margin: 22px 0 0; line-height: 1.6; }
/* 상황 바로 고르기 */
.sit-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sit-row:last-child { border-bottom: 0; }
.sit-row .meta { flex: 1; min-width: 0; }
.sit-row .meta b { display: block; }
.sit-row .meta span { font-size: 12.5px; color: var(--muted); display: block; }
.sit-row .btn { flex: none; }
.sit-kw { font-size: 12px; color: var(--muted); }
/* 정적 상황 페이지(/situations/) */
.static h1 { font-size: 22px; }
.static .choice-block { margin-top: 14px; }
.static .pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.static .pick .tag { flex: none; font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--accent); margin-top: 2px; }
.static .pick .tag.bold { background: var(--coral); } .static .pick .tag.sig { background: var(--ok); }
.static .pick b { display: block; }
.static .pick small { color: var(--muted); display: block; margin-top: 2px; }
.static nav.crumbs { font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.static nav.crumbs a { color: var(--muted); }
/* ---- 움직임: 캐릭터·광장 ---- */
.sq-char .sq-breathe { transform-box: fill-box; transform-origin: 50% 100%; animation: breathe 3.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.012) translateY(-1px); } }
.sq-char .sq-eyes { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 4.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.sq-scene .sq-clouds { animation: drift 48s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-22px); } }
.sq-scene .sq-water { animation: water 1.6s ease-in-out infinite; }
@keyframes water { 0%, 100% { opacity: .95; } 50% { opacity: .55; } }
.sq-scene .sq-drops { animation: drops 1.6s ease-in infinite; }
@keyframes drops { 0% { transform: translateY(-6px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(10px); opacity: 0; } }
.sq-scene .sq-rain { animation: rainfall .7s linear infinite; }
@keyframes rainfall { from { transform: translateY(0); } to { transform: translateY(26px); } }
.sq-scene .sq-star { animation: twinkle 2.8s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.sq-scene .sq-glow { animation: glow 3s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.avatar-on-scene { animation: settle .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes settle { from { opacity: 0; transform: translate(-50%, -94%); } to { opacity: 1; transform: translate(-50%, -100%); } }
/* ---- 화면 전환·미세 인터랙션 ---- */
.view.view-enter > * { animation: viewIn .42s cubic-bezier(.2,.8,.2,1) both; }
.view.view-enter > *:nth-child(2) { animation-delay: .04s; } .view.view-enter > *:nth-child(3) { animation-delay: .08s; } .view.view-enter > *:nth-child(4) { animation-delay: .12s; } .view.view-enter > *:nth-child(5) { animation-delay: .16s; } .view.view-enter > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.btn { transition: transform .12s ease, box-shadow .2s ease, background .15s ease; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(43,36,32,.10); } .choice:hover { transform: translateX(2px); } .district-card:hover, .wheel-card:hover { box-shadow: 0 10px 24px rgba(43,36,32,.12); } }
.choice { transition: transform .15s ease, background .15s ease; }
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
/* ---- 구역 휠 ---- */
.wheel { margin: 0 -16px; }
.wheel-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 14% 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.wheel-track::-webkit-scrollbar { display: none; }
.wheel-card { flex: 0 0 72%; max-width: 330px; scroll-snap-align: center; border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; transform: scale(.9) translateY(6px); opacity: .55; transition: transform .4s cubic-bezier(.2,.8,.2,1), opacity .4s ease, box-shadow .3s ease; position: relative; }
.wheel-card.is-center { transform: none; opacity: 1; }
.wheel-art { aspect-ratio: 390 / 200; overflow: hidden; background: var(--card-2); }
.wheel-art svg { width: 100%; height: 100%; display: block; object-fit: cover; }
.wheel-body { padding: 12px 14px 14px; }
.wheel-body b { display: block; font-size: 17px; letter-spacing: -.01em; }
.wheel-body span { font-size: 13px; color: var(--muted); }
.wheel-body .progress { margin-top: 8px; }
.wheel-body small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.wheel-badge { position: absolute; top: 10px; left: 10px; background: var(--c, var(--accent)); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.wheel-dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.wheel-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); display: inline-block; transition: transform .3s, background .3s; }
.wheel-dots i.on { background: var(--accent); transform: scale(1.3); }
@media (min-width: 560px) { .view { padding: 12px 20px 30px; } .wheel { margin: 0 -20px; } }
@media (prefers-reduced-motion: reduce) { .fade-in, .pin::before, .avatar-on-scene, .sq-char .sq-breathe, .sq-char .sq-eyes, .sq-scene .sq-clouds, .sq-scene .sq-water, .sq-scene .sq-drops, .sq-scene .sq-rain, .sq-scene .sq-star, .sq-scene .sq-glow, .view.view-enter > *, .deck-item.active .reco { animation: none !important; } }
