:root {
  --paper: #f7f4ef;
  --paper-2: #efebe5;
  --ink: #1f1c1a;
  --muted: #6e675f;
  --line: #e8e1d7;
  --blue: #7a2632;
  --blue-soft: #f1e4e5;
  --green: #3a7a63;
  --gold: #c4a26a;
  --orange: #b8674b;
  --white: #fff;
  --shadow: 0 12px 32px rgba(31, 37, 39, .08);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #ddd7cd;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #ddd7cd; }
body { min-height: 100vh; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid rgba(38,119,213,.45); outline-offset: 3px; }

.preview-ribbon { max-width: 520px; margin: 0 auto; height: 28px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; background: var(--ink); color: #edf4f2; font-size: 11px; letter-spacing: .5px; }
.preview-ribbon button { background: transparent; color: #b7cbc8; font-size: 11px; text-decoration: underline; padding: 3px; }
.app { width: min(100%, 520px); min-height: calc(100vh - 28px); margin: 0 auto; background: radial-gradient(circle at 100% 0%, rgba(122,38,50,.07), transparent 30%), var(--paper); position: relative; overflow: hidden; box-shadow: 0 0 60px rgba(31,37,39,.12); }
.topbar { height: 74px; padding: 17px 18px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; background: transparent; padding: 2px 0; font-weight: 800; font-size: 16px; letter-spacing: -.3px; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: #fff; font-size: 20px; }
.top-stats { display: flex; align-items: center; gap: 7px; }
.stat-chip { min-height: 32px; display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,253,250,.7); font-size: 13px; }
.stat-chip small { font-size: 10px; color: var(--muted); }
.flame { color: var(--orange); font-size: 16px; line-height: 1; }
.coin-chip { padding-right: 10px; }
.coin-dot { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e6b65d; color: #6a451c; font-size: 10px; font-weight: 800; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; font-size: 13px; }

#main { min-height: calc(100vh - 160px); padding: 0 18px 108px; outline: none; }
.eyebrow { font-size: 11px; color: var(--muted); letter-spacing: 1.5px; font-weight: 800; text-transform: uppercase; }
.page-intro { padding: 2px 2px 14px; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.page-intro h1 { margin: 5px 0 0; font-size: 29px; line-height: 1.15; letter-spacing: -1.2px; }
.page-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.date-label { color: var(--muted); font-size: 12px; white-space: nowrap; }

.goal-card { position: relative; overflow: hidden; border: 1px solid #d7b5b8; border-radius: 18px; padding: 18px; background: linear-gradient(135deg,#f3e6e7,#ead4d7); box-shadow: var(--shadow); }
.goal-card:after { content: ""; position: absolute; width: 148px; height: 148px; right: -45px; top: -52px; border: 18px solid rgba(122,38,50,.1); border-radius: 50%; }
.goal-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.goal-title { font-size: 18px; font-weight: 850; letter-spacing: -.5px; }
.goal-percent { color: var(--blue); font-size: 12px; font-weight: 800; }
.goal-card p { position: relative; z-index: 1; margin: 8px 0 13px; color: #6e5759; font-size: 13px; }
.progress-track { height: 7px; border-radius: 999px; overflow: hidden; background: rgba(31,37,39,.13); }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .4s ease; }
.goal-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: #56636c; font-size: 12px; }
.goal-foot button { background: transparent; color: var(--blue); font-weight: 700; font-size: 12px; padding: 0; }

.journey-banner { position: relative; min-height: 188px; margin: 0 0 13px; overflow: hidden; border-radius: 18px; color: #fff; background: #2a2020; box-shadow: var(--shadow); }
.journey-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 63% 50%; }
.journey-overlay { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(35,19,21,.96) 0%, rgba(75,29,36,.77) 48%, rgba(30,27,25,.18) 100%); }
.journey-copy { position: relative; z-index: 1; max-width: 72%; padding: 20px 18px; }
.banner-kicker { display: inline-block; color: #e8cfd1; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.journey-copy h2 { margin: 10px 0 7px; font-size: 24px; line-height: 1.25; letter-spacing: -.8px; }
.journey-copy p { margin: 0 0 16px; color: #f2e5e5; font-size: 12px; line-height: 1.55; }
.journey-copy button { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 800; }
.journey-copy button span { font-size: 16px; line-height: 1; }

.mini-entry-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin: 12px 0 18px; }
.mini-entry { display: flex; align-items: center; gap: 8px; padding: 11px 12px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; text-align: left; }
.mini-entry strong { display: block; font-size: 12px; }
.mini-entry small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.entry-icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; background: var(--paper-2); color: var(--blue); font-weight: 800; }

.unit-block { margin: 18px 0 24px; }
.unit-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 12px; }
.unit-head h2 { margin: 0; font-size: 16px; letter-spacing: -.3px; }
.unit-head span { color: var(--muted); font-size: 11px; }
.path { position: relative; padding: 4px 0 10px; }
.path-line { position: absolute; top: 27px; bottom: 28px; left: 50%; border-left: 2px dashed #d2d7d6; transform: translateX(-50%); }
.node-row { min-height: 76px; position: relative; display: flex; align-items: center; justify-content: center; }
.node-row:nth-child(2) { transform: translateX(-34px); }
.node-row:nth-child(3) { transform: translateX(42px); }
.node-row:nth-child(4) { transform: translateX(21px); }
.node-row:nth-child(5) { transform: translateX(-32px); }
.node-row:nth-child(6) { transform: translateX(-45px); }
.node-row:nth-child(7) { transform: translateX(-18px); }
.node-row:nth-child(8) { transform: translateX(38px); }
.node { position: relative; z-index: 1; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); color: var(--muted); font-size: 17px; font-weight: 850; transition: transform .2s, box-shadow .2s; }
.node small { position: absolute; width: max-content; max-width: 145px; top: 65px; color: var(--muted); font-size: 10px; font-weight: 600; white-space: nowrap; }
.node.done { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 5px 12px rgba(38,119,213,.2); }
.node.done:before { content: "✓"; font-size: 22px; }
.node.done span { display: none; }
.node.current { width: 70px; height: 70px; background: var(--blue); border-color: #1b66bf; color: #fff; box-shadow: 0 0 0 7px rgba(38,119,213,.12), 0 12px 22px rgba(38,119,213,.25); animation: breathe 2.1s ease-in-out infinite; }
.node.current small { top: 78px; color: var(--blue); font-weight: 800; }
.node.locked { background: #e6e5e1; border-color: #d4d3ce; color: #aaa9a3; }
.node.task { border-radius: 18px; transform: rotate(45deg); }
.node.task span, .node.task small { transform: rotate(-45deg); }
.node.chest { border-radius: 16px; color: var(--gold); border-color: #e3c789; background: #fff9e8; font-size: 25px; }
.node.milestone { border-color: var(--gold); color: var(--gold); background: #fff9e8; font-size: 25px; }
.node.rejected { border-color: var(--orange); color: var(--orange); }
.unit-divider { margin: 25px 0 8px; padding: 8px 11px; border-radius: 10px; background: var(--ink); color: #f4f0e9; display: flex; align-items: center; justify-content: space-between; }
.unit-divider strong { font-size: 12px; }
.unit-divider span { font-size: 10px; color: #b9c8c4; }
.path-note { padding: 13px 14px; border: 1px dashed #cbc8c0; border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.55; background: rgba(255,253,250,.55); }

.continue-wrap { position: fixed; z-index: 15; bottom: 77px; left: 50%; width: min(calc(100% - 36px), 484px); transform: translateX(-50%); pointer-events: none; }
.continue { width: 100%; padding: 15px 18px; border-radius: 16px; background: var(--blue); color: #fff; box-shadow: 0 12px 26px rgba(38,119,213,.25); text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: auto; }
.continue strong { display: block; font-size: 15px; }
.continue small { display: block; margin-top: 2px; color: #dbeaff; font-size: 11px; }
.continue .arrow { font-size: 22px; }

.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; width: min(100%, 520px); transform: translateX(-50%); display: grid; grid-template-columns: repeat(4,1fr); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: rgba(255,253,250,.94); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.bottom-nav button { min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; color: var(--muted); font-size: 11px; }
.bottom-nav button.active { color: var(--blue); font-weight: 800; }
.nav-icon { width: 31px; height: 25px; display: grid; place-items: center; font-size: 22px; line-height: 1; }
.bottom-nav button.active .nav-icon { border-radius: 9px; background: var(--blue-soft); }

.section-title { display: flex; align-items: center; justify-content: space-between; margin: 20px 2px 10px; }
.section-title h2 { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.section-title span { color: var(--muted); font-size: 11px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 6px 16px rgba(31,37,39,.04); }
.task-list { display: grid; gap: 9px; }
.task-card { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); text-align: left; }
.task-check { width: 26px; height: 26px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid #d3d1ca; border-radius: 50%; color: transparent; font-size: 15px; }
.task-card.done .task-check { border-color: var(--green); background: var(--green); color: #fff; }
.task-card strong { display: block; font-size: 13px; }
.task-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.task-arrow { margin-left: auto; color: var(--muted); }
.outfit-card { display: flex; gap: 14px; align-items: center; padding: 15px; border-radius: 16px; color: #fff; background: linear-gradient(110deg, rgba(31,22,20,.96) 0%, rgba(53,35,28,.72) 54%, rgba(57,39,30,.32) 100%), url('./img/outfit-banner.jpg') center/cover; }
.outfit-art { width: 76px; height: 94px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.13); color: #f5e8d7; font-size: 44px; font-weight: 900; }
.outfit-card h3 { margin: 3px 0 5px; font-size: 17px; }
.outfit-card p { margin: 0 0 10px; color: #d4e1dd; font-size: 11px; line-height: 1.45; }
.light-button { padding: 8px 11px; border-radius: 9px; background: rgba(255,255,255,.14); color: #fff; font-size: 11px; }
.league { display: flex; align-items: center; gap: 11px; }
.league-badge { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #e8edf8; color: #5873a4; font-size: 19px; font-weight: 900; }
.league b { display: block; font-size: 14px; }
.league small { color: var(--muted); font-size: 11px; }

.change-hero { position: relative; overflow: hidden; padding: 18px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, rgba(46,27,27,.96), rgba(83,42,48,.73)), url('./img/ritual-banner.jpg') center/cover; }
.change-hero h1 { margin: 5px 0 7px; font-size: 28px; letter-spacing: -1px; }
.change-hero p { margin: 0; color: #cbd8d5; font-size: 13px; line-height: 1.55; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.compare div { min-height: 108px; display: flex; flex-direction: column; justify-content: end; padding: 10px; border-radius: 12px; background: linear-gradient(155deg,#d6d1c8,#a69e94); }
.compare div:last-child { background: linear-gradient(155deg,#c7959a,#7a2632); }
.compare span { color: rgba(255,255,255,.8); font-size: 10px; }
.compare strong { color: #fff; font-size: 13px; }
.post-card { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.post-head { display: flex; gap: 9px; align-items: center; }
.post-head .avatar-mini { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 800; }
.post-head strong { font-size: 13px; }
.post-head small { display: block; color: var(--muted); font-size: 10px; }
.post-card p { margin: 11px 0; font-size: 13px; line-height: 1.55; }
.post-actions { display: flex; gap: 8px; }
.post-actions button { padding: 7px 10px; border-radius: 8px; background: var(--paper-2); color: var(--muted); font-size: 11px; }
.post-actions button:first-child { color: var(--blue); }
.float-post { position: fixed; right: max(18px, calc((100% - 520px)/2 + 18px)); bottom: 150px; z-index: 10; width: 50px; height: 50px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 25px; box-shadow: 0 9px 18px rgba(38,119,213,.25); }

.profile-card { display: flex; align-items: center; gap: 13px; padding: 18px; border-radius: 18px; background: linear-gradient(105deg, rgba(31,28,26,.97), rgba(57,31,35,.78)), url('./img/guide-banner.jpg') center/cover; color: #fff; }
.profile-big { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--blue); font-size: 22px; font-weight: 900; }
.profile-card h1 { margin: 0 0 3px; font-size: 20px; }
.profile-card p { margin: 0; color: #c1cfcb; font-size: 12px; }
.profile-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 11px; }
.profile-stat { padding: 12px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-align: center; }
.profile-stat strong { display: block; font-size: 20px; }
.profile-stat small { color: var(--muted); font-size: 10px; }
.menu-list { display: grid; gap: 8px; }
.menu-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--white); text-align: left; }
.menu-row .menu-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--paper-2); color: var(--blue); }
.menu-row strong { font-size: 13px; }
.menu-row small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.menu-row .menu-arrow { margin-left: auto; color: var(--muted); }

.flow-layer { position: fixed; inset: 0; z-index: 40; display: flex; justify-content: center; align-items: stretch; background: rgba(31,37,39,.48); backdrop-filter: blur(6px); }
.flow { width: min(100%,520px); display: flex; flex-direction: column; background: var(--paper); padding: 18px 18px calc(26px + env(safe-area-inset-bottom)); overflow-y: auto; }
.flow-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.flow-top button { padding: 7px 0; color: var(--muted); background: transparent; font-size: 13px; }
.flow-progress { display: flex; gap: 5px; margin: 17px 0 22px; }
.flow-progress i { height: 4px; flex: 1; border-radius: 4px; background: #ddd8cf; }
.flow-progress i.on { background: var(--blue); }
.flow h1 { margin: 0; font-size: 27px; line-height: 1.22; letter-spacing: -1px; }
.flow-lead { margin: 9px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.choice-list { display: grid; gap: 9px; }
.choice { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: var(--white); text-align: left; }
.choice span { font-size: 14px; }
.choice small { color: var(--muted); font-size: 11px; }
.choice:active { transform: scale(.985); }
.result-card { margin: 13px 0 18px; padding: 17px; border: 1px solid #d7b5b8; border-radius: 16px; background: var(--blue-soft); }
.result-card strong { display: block; font-size: 20px; }
.result-card p { margin: 7px 0 0; color: #56636c; font-size: 13px; line-height: 1.6; }
.thumb-path { display: flex; align-items: center; gap: 4px; overflow: hidden; margin-top: 14px; }
.thumb-path i { width: 24px; height: 24px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--blue); color: #fff; font-size: 9px; font-style: normal; font-weight: 800; }
.thumb-path i:nth-child(n+5) { background: #d9dde0; color: #7d8589; }
.primary { width: 100%; padding: 14px 16px; border-radius: 13px; background: var(--blue); color: #fff; font-weight: 800; }
.secondary { width: 100%; padding: 13px 16px; border-radius: 13px; border: 1px solid var(--line); background: var(--white); font-weight: 700; }
.flow-actions { display: grid; gap: 9px; margin-top: auto; }

.play-layer { position: fixed; inset: 0; z-index: 45; display: flex; justify-content: center; background: rgba(31,37,39,.55); }
.play { width: min(100%,520px); min-height: 100%; display: flex; flex-direction: column; background: var(--paper); }
.play-top { padding: 18px 18px 14px; display: flex; align-items: center; gap: 12px; }
.play-close { width: 32px; height: 32px; border-radius: 50%; background: var(--paper-2); color: var(--muted); font-size: 19px; }
.play-top .progress-track { flex: 1; }
.play-menu { padding: 4px; background: transparent; color: var(--muted); font-size: 20px; }
.play-body { flex: 1; padding: 14px 18px 26px; overflow-y: auto; }
.play-body h1 { margin: 4px 0 7px; font-size: 25px; line-height: 1.28; letter-spacing: -.8px; }
.play-body > p { margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.lesson-card { min-height: 235px; margin: 12px 0 18px; padding: 22px; display: flex; flex-direction: column; justify-content: end; border-radius: 18px; background: linear-gradient(150deg,#2c4145,#1e292b); color: #fff; }
.lesson-card .card-mark { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: auto; border-radius: 13px; background: rgba(255,255,255,.13); color: #d9e9e5; font-size: 20px; }
.lesson-card h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.35; }
.lesson-card p { margin: 0; color: #c7d4d1; font-size: 13px; line-height: 1.6; }
.question { padding: 15px; border-radius: 15px; border: 1px solid var(--line); background: var(--white); }
.question h3 { margin: 0 0 11px; font-size: 15px; line-height: 1.5; }
.answers { display: grid; gap: 8px; }
.answer { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); text-align: left; font-size: 13px; }
.answer.correct { border-color: #72bf9f; background: #e9f8f0; color: #1f6a4e; }
.answer.wrong { border-color: #eda37d; background: #fff0e8; color: #a94f21; }
.explain { margin: 10px 0 0; padding: 10px; border-radius: 10px; background: var(--paper-2); color: var(--muted); font-size: 12px; line-height: 1.55; }
.play-actions { padding: 12px 18px calc(22px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,250,.96); }
.settle { padding-top: 10px; text-align: center; }
.settle-mark { width: 82px; height: 82px; display: grid; place-items: center; margin: 15px auto 20px; border-radius: 50%; background: #e5f5ee; color: var(--green); font-size: 44px; font-weight: 800; }
.settle h1 { font-size: 27px; }
.reward-row { display: flex; justify-content: center; gap: 10px; margin: 20px 0; }
.reward { min-width: 102px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.reward strong { display: block; font-size: 21px; color: var(--blue); }
.reward small { color: var(--muted); font-size: 11px; }

.sheet-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(31,37,39,.43); }
.bottom-sheet { position: fixed; z-index: 51; left: 50%; bottom: 0; width: min(100%,520px); transform: translateX(-50%); padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--paper); box-shadow: 0 -12px 40px rgba(31,37,39,.16); animation: sheet-in .25s ease-out; }
.grabber { width: 42px; height: 4px; margin: 0 auto 16px; border-radius: 4px; background: #cec9c0; }
.sheet-head { display: flex; gap: 12px; align-items: center; }
.sheet-node { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-size: 18px; font-weight: 800; }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.sheet-copy { margin: 17px 0; color: #5d6666; font-size: 13px; line-height: 1.65; }
.sheet-rewards { display: flex; gap: 8px; margin: 10px 0 17px; }
.sheet-rewards span { padding: 6px 9px; border-radius: 8px; background: var(--paper-2); color: var(--muted); font-size: 11px; }
.sheet-buttons { display: grid; gap: 8px; }
.notice { padding: 13px 14px; border-radius: 12px; background: #fff9e8; color: #7d632d; font-size: 12px; line-height: 1.55; }

#toast { position: fixed; left: 50%; bottom: 145px; z-index: 80; transform: translate(-50%, 12px); max-width: calc(100% - 36px); padding: 10px 15px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes sheet-in { from { transform: translate(-50%, 100%); } to { transform: translate(-50%, 0); } }
@media (min-width: 700px) { .app { margin: 24px auto 0; border-radius: 22px 22px 0 0; min-height: calc(100vh - 24px); } .preview-ribbon { margin-top: 12px; border-radius: 8px 8px 0 0; } }
@media (max-width: 360px) { .topbar { padding-left: 14px; padding-right: 14px; } #main { padding-left: 14px; padding-right: 14px; } .brand { font-size: 14px; } .stat-chip { padding-left: 6px; padding-right: 6px; } .journey-copy { max-width: 80%; padding: 18px 15px; } .journey-copy h2 { font-size: 21px; } .node-row:nth-child(2) { transform: translateX(-26px); } .node-row:nth-child(3) { transform: translateX(30px); } .node-row:nth-child(4) { transform: translateX(16px); } .node-row:nth-child(5) { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* path-v2: content first, quiet vertical route */
.goal-photo-card { color:#fff; border-color:#4c252b; background:linear-gradient(105deg,rgba(31,28,26,.96),rgba(80,30,39,.76)),url('./img/journey-banner.jpg') center/cover; }
.goal-photo-card:after { border-color:rgba(196,162,106,.18); }
.goal-photo-card p,.goal-photo-card .goal-foot { color:#f2e4e4; }
.goal-photo-card .goal-percent,.goal-photo-card .goal-foot button { color:#f2d6d8; }
.goal-photo-card .progress-track { background:rgba(255,255,255,.22); }
.goal-photo-card .progress-track i { background:#c4a26a; }
.vertical-path { position:relative; display:grid; gap:4px; padding:2px 0 6px 0; }
.vertical-line { position:absolute; left:24px; top:18px; bottom:18px; width:1px; background:#d6c3a0; }
.path-row-wrap { position:relative; z-index:1; }
.path-row { width:100%; min-height:60px; display:flex; align-items:center; gap:11px; padding:10px 6px 10px 0; border:0; border-bottom:1px solid var(--line); border-radius:0; background:transparent; text-align:left; }
.path-row:hover { background:rgba(239,233,225,.45); }
.path-icon { width:48px; height:48px; flex:0 0 auto; display:grid; place-items:center; border:1px solid var(--line); border-radius:50%; background:var(--paper); color:var(--muted); font-size:17px; font-weight:800; }
.path-copy { min-width:0; flex:1; display:grid; gap:3px; }
.path-copy strong { font-size:14px; line-height:1.35; font-weight:700; }
.path-copy small { color:var(--muted); font-size:11px; }
.path-status { flex:0 0 auto; color:var(--muted); font-size:11px; }
.path-row.done .path-icon { color:var(--muted); border-color:#cfc6b9; }
.path-row.done .path-copy strong { color:#8b837b; font-weight:600; }
.path-row.current .path-icon { border-color:var(--blue); color:var(--blue); box-shadow:0 0 0 4px var(--blue-soft); }
.path-row.current .path-copy strong { color:var(--ink); }
.path-row.locked .path-icon { color:#aaa39b; background:#f0ede8; }
.path-row.locked .path-copy strong { color:#77716b; }
.path-row.chest .path-icon,.path-row.milestone .path-icon { border-radius:14px; color:var(--gold); border-color:#d6c3a0; }
.current-card { margin:0 0 8px 59px; padding:15px; border:1px solid #d7b5b8; border-radius:16px; background:var(--surface, #fcfaf7); }
.current-card-kicker { color:var(--blue); font-size:10px; font-weight:800; letter-spacing:1.2px; }
.current-card p { margin:7px 0 10px; color:var(--muted); font-size:13px; line-height:1.55; }
.current-card-reward { margin-bottom:11px; color:var(--muted); font-size:11px; }
.current-card .primary { width:100%; }
.ring-card { margin:14px 0 18px; padding:17px; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.ring-card-head { display:flex; align-items:end; justify-content:space-between; gap:10px; margin-bottom:11px; }
.ring-card-head h2 { margin:4px 0 0; font-size:19px; }
.ring-card-head>span { color:var(--muted); font-size:11px; }
.ring-condition { display:grid; grid-template-columns:22px minmax(0,1fr) auto; gap:8px; align-items:center; padding:10px 0; border-top:1px solid var(--line); }
.ring-check { color:var(--muted); font-size:17px; }
.ring-condition.done .ring-check { color:var(--green); }
.ring-condition strong { display:block; font-size:12px; line-height:1.4; }
.ring-condition small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.ring-condition button { padding:0; background:transparent; color:var(--blue); font-size:10px; }
.choice-groups { display:grid; gap:11px; }
.choice-group-title { color:var(--muted); font-size:11px; font-weight:800; letter-spacing:.4px; }
.choice-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.choice-grid .choice { min-height:48px; padding:10px; }
.choice.selected { border-color:#b2767d; background:var(--blue-soft); }
.mini-result-path { display:grid; grid-template-columns:repeat(2,1fr); gap:7px; margin-top:14px; }
.mini-result-path span { padding:8px 9px; border-radius:9px; background:#fff; color:var(--muted); font-size:10px; }
.reader-link { display:inline-flex; margin:0 0 12px; padding:0; background:transparent; color:var(--blue); font-size:13px; font-weight:800; }
.reader-sheet { max-height:82vh; }
.reader-body { max-height:52vh; margin:12px 0; overflow:auto; padding:0 3px 0 0; color:var(--ink); font-size:14px; line-height:1.75; }
.reader-body p { margin:0 0 12px; }
.ask-input,.task-label textarea { width:100%; min-height:105px; margin:4px 0 12px; padding:11px; resize:vertical; border:1px solid var(--line); border-radius:10px; background:var(--white); color:var(--ink); }
.task-label { display:grid; gap:5px; margin-top:13px; color:var(--muted); font-size:12px; }
.task-label textarea { min-height:86px; margin:0; }
.look-card { overflow:hidden; border:1px solid var(--line); border-radius:16px; background:var(--white); }
.look-media { position:relative; aspect-ratio:1.4/1; background:var(--paper-2); }
.look-media img { width:100%; height:100%; display:block; object-fit:cover; }
.look-switch { position:absolute; right:10px; bottom:10px; padding:7px 10px; border:1px solid rgba(255,255,255,.75); border-radius:999px; background:rgba(31,28,26,.65); color:#fff; font-size:11px; }
.look-copy { padding:14px; }
.look-copy h3 { margin:6px 0; font-size:17px; }
.look-copy p { margin:0 0 12px; color:var(--muted); font-size:13px; line-height:1.55; }
.look-actions { display:flex; gap:8px; flex-wrap:wrap; }
.look-copy .light-button { background:var(--paper-2); color:var(--ink); }
.external-button { padding:8px 11px; border:1px solid var(--gold); border-radius:999px; background:transparent; color:var(--ink); font-size:11px; }
.profile-card { position:relative; }
.rank-pill { margin-left:auto; align-self:flex-start; padding:4px 8px; border:1px solid var(--gold); border-radius:999px; color:#f0dfb4; font-size:10px; }
.invite-card { display:grid; gap:11px; margin-top:11px; padding:16px; border:1px solid var(--gold); border-radius:16px; background:#fffaf1; }
.invite-card h2 { margin:4px 0; font-size:16px; }
.invite-card p { margin:0; color:var(--muted); font-size:12px; }
.invite-code { width:max-content; padding:7px 10px; border-radius:8px; background:var(--paper-2); color:var(--ink); font:700 12px/1.2 ui-monospace,monospace; letter-spacing:.5px; }
.invite-card .secondary { width:max-content; padding:8px 11px; font-size:11px; }
.profile-details { display:grid; border:1px solid var(--line); border-radius:16px; overflow:hidden; background:var(--white); }
.profile-row { display:grid; grid-template-columns:1.1fr 1.3fr auto; gap:8px; align-items:center; padding:12px 13px; border-bottom:1px solid var(--line); }
.profile-row:last-child { border-bottom:0; }
.profile-row strong { display:block; font-size:12px; }
.profile-row small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.profile-row>b { font-size:12px; font-weight:600; }
.profile-row button { padding:0; background:transparent; color:var(--blue); font-size:10px; }
.honors { display:grid; gap:8px; }
.honor-item { display:flex; align-items:center; gap:10px; padding:12px 13px; border:1px solid var(--line); border-radius:13px; background:var(--white); }
.honor-icon { width:30px; height:30px; display:grid; place-items:center; border-radius:10px; background:var(--paper-2); color:var(--blue); }
.honor-item strong { display:block; font-size:12px; }
.honor-item small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.league-levels { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; margin:8px 0 12px; }
.league-levels span { padding:6px 3px; border-radius:7px; background:var(--paper-2); color:var(--muted); text-align:center; font-size:10px; }
.league-levels span.on { background:var(--blue-soft); color:var(--blue); font-weight:800; }
.leaderboard-list { display:grid; gap:6px; }
.leaderboard-row { display:grid; grid-template-columns:24px 1fr auto; gap:8px; align-items:center; padding:9px 10px; border:1px solid var(--line); border-radius:9px; background:var(--white); font-size:12px; }
.leaderboard-row span small { display:block; margin-top:2px; color:var(--muted); font-size:10px; }
.leaderboard-row b { color:var(--blue); font-size:11px; }
.page-intro h1,.goal-title,.journey-copy h2,.current-card h2,.ring-card h2,.look-copy h3,.flow h1,.play-body h1,.settle h1,.profile-card h1,.profile-details strong,.invite-card h2 { font-family:"Songti SC","Noto Serif SC","STSong",serif; }
