:root {
  --ink: #29413b;
  --muted: #73827d;
  --paper: #f8f2e8;
  --card: rgba(255, 253, 247, .86);
  --line: rgba(103, 123, 115, .14);
  --green: #508b78;
  --green-2: #dff0e7;
  --orange: #e69468;
  --orange-2: #fbe3d4;
  --blue: #7e9fbd;
  --blue-2: #e1ecf4;
  --lavender: #a89bc6;
  --shadow: 0 18px 48px rgba(63, 87, 77, .10);
}
* { box-sizing: border-box; }
html { background: var(--paper); }
body { position: relative; margin: 0; color: var(--ink); background: radial-gradient(circle at 10% 8%, rgba(255,218,184,.56) 0, transparent 28%), radial-gradient(circle at 92% 28%, rgba(196,220,211,.55) 0, transparent 30%), linear-gradient(165deg, #fbf5eb 0%, #f5f0e9 58%, #eef5ef 100%); font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
body::before, body::after { content: ""; position: fixed; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(1px); }
body::before { width: 120px; height: 120px; left: -48px; top: 46%; background: rgba(183,168,210,.18); }
body::after { width: 72px; height: 72px; right: -18px; bottom: 8%; background: rgba(244,184,142,.22); }
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { position: relative; z-index: 1; width: min(100%, 480px); min-height: 100dvh; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.brand { font-size: 18px; font-weight: 760; letter-spacing: -.3px; }
.step { color: var(--muted); font-size: 13px; }
.eyebrow { color: var(--orange); font-size: 12px; font-weight: 750; letter-spacing: 1px; text-transform: uppercase; }
h1 { margin: 10px 0 12px; font-size: clamp(30px, 8.6vw, 40px); font-weight: 760; line-height: 1.13; letter-spacing: -1.2px; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.7px; }
p { color: var(--muted); line-height: 1.65; }
.hero { margin: 54px 0 38px; }
.hero-mark { position: relative; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 32px 44px 30px 46px; background: linear-gradient(145deg, #6fa48e, #4d8373); color: white; font-size: 38px; box-shadow: 0 18px 35px rgba(80,139,120,.22); transform: rotate(-8deg); animation: breathe 4.5s ease-in-out infinite; }
.hero-mark::after { content: ""; position: absolute; width: 10px; height: 10px; right: -18px; top: 8px; border-radius: 50%; background: var(--orange); box-shadow: 19px 26px 0 -2px rgba(168,155,198,.75); }
.mascot-hero { margin-top: 24px; }
.mascot-scene { display: grid; grid-template-columns: 72px minmax(0,1fr) 72px; align-items: center; gap: 6px; min-height: 126px; margin: 14px 0 18px; padding:0 8px; overflow: hidden; border: 1px solid rgba(255,255,255,.7); border-radius: 26px; background: rgba(255,253,247,.58); }
.mascot-character { justify-self:center; width: 76px; aspect-ratio: 1; background-image: url('assets/turtle-mascots-v2.png'); background-repeat: no-repeat; background-size: 400% 200%; filter: drop-shadow(0 8px 10px rgba(66,88,79,.08)); }
.pose-0 { background-position: 0 0; }
.pose-1 { background-position: 33.333% 0; }
.pose-2 { background-position: 66.666% 0; }
.pose-3 { background-position: 100% 0; }
.pose-4 { background-position: 0 100%; }
.pose-5 { background-position: 33.333% 100%; }
.pose-6 { background-position: 66.666% 100%; }
.pose-7 { background-position: 100% 100%; }
.mascot-scene .mascot-character:last-child { width:66px; height:82px; aspect-ratio:auto; background-image:url('assets/xiaoban-wheel-expect.png'); background-size:contain; background-position:center; border-radius:18px; mix-blend-mode:multiply; }
.mascot-scene.scene-5 { grid-template-columns:72px minmax(0,1fr) 72px; overflow:hidden; }
.mascot-scene.scene-5 .mascot-character:last-child { width:66px; height:82px; }
.mascot-copy { align-self: center; padding: 12px 2px; text-align: center; }
.mascot-copy strong { display: block; font-size: 14px; line-height:1.45; }
.mascot-copy strong span { display:block; white-space:normal; text-wrap:balance; }
.mascot-copy p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.mascot-copy p span { display: block; white-space: normal; text-wrap:balance; }
.celebrate h1 { text-wrap: balance; }
.return-scene { position: relative; height: 190px; margin: 18px 0 28px; overflow: hidden; border-radius: 36px; background: linear-gradient(160deg, #dfece7 0%, #e8e2ef 55%, #fae7d8 100%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6), 0 18px 42px rgba(78,101,93,.09); }
.return-scene::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 140px; border-radius: 50%; background: rgba(255,253,247,.75); }
.return-moon { position: absolute; left: 48px; top: 32px; color: #fff9e8; font-family: Georgia, serif; font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 12px rgba(120,110,145,.12)); transform: rotate(-12deg); }
.return-cloud { position: absolute; right: 38px; bottom: 35px; z-index: 1; color: rgba(255,255,255,.86); font-size: 64px; letter-spacing: -18px; }
.return-scene i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: white; box-shadow: 0 0 10px white; }
.return-scene i:nth-of-type(1) { left: 56%; top: 32px; }
.return-scene i:nth-of-type(2) { left: 76%; top: 68px; width: 3px; height: 3px; }
.return-scene i:nth-of-type(3) { left: 43%; top: 95px; width: 4px; height: 4px; }
.return-scene .mascot-scene { position: absolute; inset: auto 8px -3px; z-index: 2; grid-template-columns: 128px 1fr; min-height: 112px; margin: 0; background: rgba(255,253,247,.62); backdrop-filter: blur(8px); }
.return-scene .mascot-state { width: 128px; height: 112px; }
.return-scene .mascot-character { width: 76px; }
.return-memory { display: grid; gap: 4px; margin: 24px 0 18px; padding: 17px 18px; border: 1px solid rgba(255,255,255,.75); border-radius: 22px; background: var(--card); box-shadow: 0 10px 28px rgba(63,87,77,.055); }
.return-memory span, .return-memory small { color: var(--muted); font-size: 12px; }
.return-memory strong { font-size: 17px; }
.joy-hero { position: relative; min-height: 430px; margin: -22px -20px 14px; overflow: hidden; border-radius: 0 0 36px 36px; background: linear-gradient(165deg,#fff8ed 0%,#f9e8d7 58%,#e6f1eb 100%); }
.joy-hero img { position: absolute; left: 50%; top: 8px; width: 82%; transform: translateX(-50%); mix-blend-mode: multiply; }
.joy-copy { position: absolute; left: 22px; right: 22px; bottom: 16px; z-index: 1; padding: 16px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 24px; background: rgba(255,253,247,.86); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.joy-copy h1 { margin-top: 3px; font-size: 39px; }
.joy-copy p { font-size: 14px; line-height:1.55; }
.joy-copy p { margin-bottom: 0; }
.intro-stage { position: relative; display: grid; grid-template-columns: 1fr 54px 1fr; align-items: center; gap: 4px; margin: 12px 0 26px; }
.intro-stage figure { margin: 0; text-align: center; }
.intro-stage img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 30px; box-shadow: 0 12px 30px rgba(68,87,79,.08); }
.intro-stage figcaption { margin-top: 7px; color: var(--muted); font-size: 10px; }
.intro-wheel { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 25px; transform: rotate(-25deg); box-shadow: 0 8px 18px rgba(80,139,120,.2); }
.ready-summary { display: grid; gap: 8px; margin: 18px 0; }
.ready-summary div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); }
.ready-summary small { color: var(--muted); }
.wheel-invite-card { display: grid; justify-items:center; align-items: center; min-height: 190px; margin: 12px 0 16px; overflow: hidden; padding:14px 18px; border-radius: 24px; background: var(--card); text-align:center; }
.wheel-invite-card img { width: 128px; height: 128px; object-fit: cover; border-radius:50%; mix-blend-mode: multiply; }
.wheel-invite-card div { padding: 4px 8px 8px; }
.wheel-invite-card strong { font-size: 14px; }
.wheel-invite-card p { margin: 5px 0 0; font-size: 12px; line-height: 1.5; }
.primary, .secondary, .ghost { min-height: 54px; border-radius: 20px; border: 0; padding: 0 20px; font-weight: 720; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.primary { width: 100%; background: linear-gradient(135deg, #5d9682, #4a806f); color: white; box-shadow: 0 12px 26px rgba(80,139,120,.22); }
.secondary { width: 100%; background: var(--green-2); color: var(--green); }
.ghost { background: transparent; color: var(--muted); }
button:active { transform: scale(.98); }
.trust-note { text-align: center; font-size: 12px; margin-top: 14px; }
.safe-note { margin: 14px 0 4px; padding: 11px 13px; border-radius: 13px; background: var(--green-2); color: var(--green); font-size: 12px; font-weight: 700; }
.reset-link { width: 100%; display: grid; grid-template-columns: 34px 1fr; margin-top: 12px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,248,.55); text-align: left; cursor: pointer; }
.reset-link span { grid-row: 1 / 3; align-self: center; color: var(--green); font-size: 24px; }
.reset-link strong { font-size: 14px; }
.reset-link small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.login-hero { margin: 54px 0 26px; }
.login-symbol { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 18px; background: var(--orange-2); color: var(--orange); font-size: 28px; transform: rotate(-5deg); }
.login-card { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.login-card label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.login-card input { width: 100%; min-height: 54px; margin-bottom: 14px; padding: 0 16px; border: 1px solid var(--line); border-radius: 15px; outline: 0; background: #fff; color: var(--ink); }
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(29,89,68,.1); }
.category-grid { display: grid; gap: 12px; margin: 24px 0; }
.category-card { padding: 19px; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: var(--card); box-shadow: 0 10px 28px rgba(63,87,77,.055); backdrop-filter: blur(12px); }
.category-card strong { display: block; margin-bottom: 7px; }
.category-card b { display: block; margin-bottom: 5px; font-size: 14px; }
.category-card span { color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; }
.dot.dopamine, .tag.dopamine { background: var(--orange-2); color: #965027; }
.dot.endorphin, .tag.endorphin { background: var(--blue-2); color: #355e7b; }
.dot.serotonin, .tag.serotonin { background: #ece6f4; color: #675985; }
.pick-count { display:flex; justify-content:space-between; align-items:center; margin:18px 0 10px; padding:13px 15px; border-radius:16px; background:var(--green-2); }
.pick-count span { color:var(--muted); font-size:11px; }
.action-library { display:grid; gap:18px; margin-bottom:100px; }
.library-group h2 { margin:0 0 9px; font-size:17px; }
.group-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }
.group-head h2 { margin:0; }
.group-head button { padding:7px 10px; border:0; border-radius:12px; background:var(--orange-2); color:#965027; font-size:11px; font-weight:750; cursor:pointer; }
.library-action { display:grid; grid-template-columns:1fr auto; align-items:center; margin:8px 0; border:1px solid var(--line); border-radius:18px; background:rgba(255,253,247,.66); }
.library-action.selected { border-color:rgba(80,139,120,.45); background:rgba(223,240,231,.72); }
.check-action { display:flex; align-items:center; gap:11px; min-width:0; padding:13px; border:0; background:transparent; text-align:left; cursor:pointer; }
.checkmark { flex:0 0 28px; width:28px; height:28px; display:grid; place-items:center; border-radius:10px; background:#eee9e1; color:var(--muted); font-weight:800; }
.selected .checkmark { background:var(--green); color:white; }
.check-action strong, .check-action small { display:block; }
.check-action strong { font-size:14px; }
.check-action small { margin-top:4px; color:var(--muted); font-size:11px; }
.primary:disabled { opacity:.45; box-shadow:none; cursor:not-allowed; }
.action-list { display: grid; gap: 10px; margin: 18px 0 92px; }
.selected-list { display:grid; gap:10px; margin:20px 0 24px; }
.selected-row { display:grid; grid-template-columns:32px 1fr auto; align-items:center; gap:11px; padding:14px; border:1px solid var(--line); border-radius:18px; background:var(--card); }
.selected-row > span { width:32px; height:32px; display:grid; place-items:center; border-radius:11px; background:var(--green-2); color:var(--green); font-size:12px; font-weight:850; }
.selected-row div { min-width:0; }
.selected-row strong, .selected-row small { display:block; }
.selected-row strong { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:14px; }
.selected-row small { margin-top:4px; color:var(--muted); font-size:11px; }
.action-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 15px; border: 1px solid rgba(255,255,255,.76); border-radius: 22px; background: var(--card); box-shadow: 0 8px 24px rgba(63,87,77,.045); backdrop-filter: blur(10px); }
.action-index { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); background: #f0ece5; font-size: 12px; font-weight: 800; }
.action-main { min-width: 0; }
.action-title { font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-meta { margin-top: 5px; color: var(--muted); font-size: 12px; }
.tag { display: inline-block; margin-right: 6px; padding: 3px 7px; border-radius: 999px; font-size: 11px; }
.edit-btn { border: 0; background: transparent; color: var(--green); padding: 8px; cursor: pointer; }
.sticky { position: fixed; left: 50%; bottom: 0; z-index: 10; width: min(100%, 480px); transform: translateX(-50%); padding: 12px 18px max(16px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 18%); }
.wheel-wrap { position: relative; width: min(82vw, 360px); aspect-ratio: 1; margin: 28px auto 24px; }
.pointer { position: absolute; left: 50%; top: -7px; z-index: 3; width: 0; height: 0; transform: translateX(-50%); border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 30px solid var(--ink); }
.wheel { --label-radius: clamp(102px, 29vw, 124px); position: relative; width: 100%; height: 100%; overflow: hidden; border: 11px solid rgba(255,253,247,.92); border-radius: 50%; box-shadow: 0 24px 60px rgba(74,103,91,.16); transition: transform 2.5s cubic-bezier(.12,.72,.18,1); background: conic-gradient(#88a9c3 0 40deg, #eea178 40deg 80deg, #79a590 80deg 120deg, #a99dc4 120deg 160deg, #efb589 160deg 200deg, #a5c6b5 200deg 240deg, #7d9bb6 240deg 280deg, #e9936b 280deg 320deg, #6f9a87 320deg 360deg); }
.wheel-label { position: absolute; left: 50%; top: 50%; z-index: 1; width: 76px; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(calc(var(--label-radius) * -1)) rotate(var(--counter)); color: white; font-size: clamp(9px, 2.5vw, 11px); font-weight: 800; line-height: 1.25; letter-spacing: -.2px; text-align: center; text-wrap: balance; text-shadow: 0 1px 4px rgba(19,35,29,.6); pointer-events: none; }
.wheel::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 68px; height: 68px; transform: translate(-50%,-50%); border: 6px solid var(--card); border-radius: 50%; background-color: #f8ead8; background-image: url('assets/xiaogui-wheel-invite.png'); background-repeat: no-repeat; background-size: cover; background-position: center; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.wheel-caption { text-align: center; margin: 0 0 20px; }
.result-card { margin: 24px 0 18px; padding: 28px 23px; border: 1px solid rgba(255,255,255,.76); border-radius: 30px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.result-card .tag { margin-bottom: 16px; }
.result-card h2 { font-size: 30px; line-height: 1.2; }
.duration { margin: 12px 0 18px; color: var(--ink); font-weight: 750; }
.reason { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.button-stack { display: grid; gap: 10px; }
.timer { margin: 22px auto 24px; text-align: center; }
.timer-ring { width: 220px; height: 220px; display: grid; place-items: center; margin: 0 auto 28px; border: 12px solid var(--green-2); border-top-color: var(--green); border-radius: 50%; }
.timer-time { font-size: 46px; font-weight: 850; letter-spacing: -2px; }
.timer small { color: var(--muted); }
.calendar-card { margin-top: 22px; padding: 21px; border: 1px solid rgba(255,255,255,.76); border-radius: 28px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(14px); }
.calendar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.calendar-head span { color: var(--muted); font-size: 12px; }
.weekdays, .calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.weekdays { margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: 12px; }
.day.done { background: var(--green); color: white; font-weight: 800; }
.day.today { box-shadow: inset 0 0 0 1.5px var(--orange); }
.celebrate { text-align: center; padding: 28px 4px 12px; }
.celebrate .mascot-scene { text-align: left; }
.celebrate-icon { font-size: 46px; }
.pause-page { margin-top: 40px; text-align: center; }
.pause-page .mascot-scene { text-align: left; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stat { padding: 15px; border-radius: 18px; background: rgba(255,253,248,.72); }
.stat strong { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 12px; }
.month-list { margin: 14px 0; padding: 17px; border-radius: 22px; background: var(--card); }
.month-list > span { color: var(--muted); font-size: 12px; }
.month-list div { display: flex; justify-content: space-between; gap: 12px; padding-top: 11px; }
.month-list small { color: var(--muted); }
.month-cheer { margin-top: 16px; padding: 17px; border-radius: 20px; background: var(--green-2); color: var(--green); font-size: 13px; line-height: 1.7; }
.leaderboard { margin:20px 0; padding:18px; border:1px solid rgba(255,255,255,.76); border-radius:24px; background:var(--card); box-shadow:var(--shadow); }
.leaderboard-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.leaderboard-head span { color:var(--muted); font-size:11px; }
.leaderboard-head h2 { margin-top:3px; font-size:19px; }
.leaderboard-head em { padding:5px 8px; border-radius:999px; background:#ece6f4; color:#675985; font-size:10px; font-style:normal; }
.rank-summary { display:flex; justify-content:space-between; align-items:baseline; margin:15px 0 9px; padding:12px 14px; border-radius:15px; background:var(--green-2); }
.rank-summary strong { font-size:20px; }
.rank-summary span { color:var(--muted); font-size:12px; }
.rank-list > div { display:grid; grid-template-columns:24px 1fr auto; gap:8px; padding:9px 5px; border-bottom:1px solid var(--line); font-size:13px; }
.rank-list > div.me { margin:2px -5px; padding:9px 10px; border:0; border-radius:12px; background:var(--orange-2); }
.rank-list small { color:var(--muted); }
.leaderboard > p { margin:12px 0 0; font-size:10px; line-height:1.5; }
.reward-card { position:relative; overflow:hidden; margin:18px 0; padding:24px; border:1px solid rgba(255,255,255,.8); border-radius:28px; background:linear-gradient(145deg,#fff7e9,#efe9f7); box-shadow:var(--shadow); text-align:center; }
.reward-card::after { content:""; position:absolute; width:100px; height:100px; right:-35px; top:-35px; border-radius:50%; background:rgba(239,181,137,.22); }
.reward-icon { width:58px; height:58px; display:grid; place-items:center; margin:0 auto 12px; border-radius:20px; background:white; font-size:30px; box-shadow:0 10px 25px rgba(75,78,92,.09); }
.reward-card h2 { margin:5px 0 7px; font-size:25px; }
.reward-card p { margin:0 0 15px; font-size:13px; }
.reward-balance { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-radius:15px; background:rgba(255,255,255,.72); color:#675985; font-size:12px; }
.reward-card > small { display:block; margin-top:10px; color:var(--muted); font-size:10px; }
.share-card { margin:18px 0 12px; padding:22px; overflow:hidden; border-radius:26px; background:linear-gradient(155deg,#365d52,#628e7f); color:white; box-shadow:0 16px 35px rgba(41,65,59,.18); text-align:left; }
.share-card > span { color:#f6c19f; font-size:11px; letter-spacing:1px; }
.share-card > strong { display:block; margin-top:24px; font-size:12px; opacity:.8; }
.share-card h2 { margin:5px 0 7px; font-size:27px; line-height:1.25; }
.share-card p { margin:0 0 22px; color:rgba(255,255,255,.78); font-size:12px; }
.share-card > div { padding-top:13px; border-top:1px solid rgba(255,255,255,.2); font-size:11px; }
.instant-hero { text-align:center; }
.instant-hero h1 { margin:5px 0 8px; font-size:40px; line-height:1.05; }
.instant-hero p { max-width:330px; margin:0 auto; font-size:13px; line-height:1.65; }
.demo-wheel-wrap { position:relative; width:min(61vw,258px); aspect-ratio:1; margin:12px auto 12px; }
.demo-wheel-wrap .pointer { z-index:3; }
.demo-wheel { --label-radius:min(22vw,84px); width:100%; height:100%; border-width:9px; box-shadow:0 16px 35px rgba(53,76,67,.14); }
.demo-wheel .wheel-label { font-size:10px; }
.hero-spin { display:block; width:min(100%,360px); margin:0 auto; }
.quick-story { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin:13px 0 2px; }
.quick-story > div { min-width:0; padding:11px 7px; border:1px solid rgba(255,255,255,.88); border-radius:17px; background:rgba(255,252,246,.72); text-align:center; }
.quick-story b { display:grid; width:26px; height:26px; place-items:center; margin:0 auto 6px; border-radius:9px; background:var(--orange-2); color:#9a5b37; }
.quick-story strong,.quick-story small { display:block; }
.quick-story strong { font-size:11px; }
.quick-story small { margin-top:3px; color:var(--muted); font-size:9px; line-height:1.35; }
.time-return { margin:14px 0; padding:16px; border-radius:20px; background:#e5f1ec; text-align:center; }
.time-return span,.time-return strong { display:block; }
.time-return span { color:var(--muted); font-size:11px; }
.time-return strong { margin-top:5px; color:var(--green-dark); font-size:20px; }
.level-card { display:grid; grid-template-columns:1fr auto; gap:9px 12px; margin:14px 0; padding:17px; border:1px solid rgba(255,255,255,.8); border-radius:22px; background:rgba(255,252,246,.78); box-shadow:var(--shadow); }
.level-card span,.level-card strong { display:block; }
.level-card span { color:var(--muted); font-size:10px; }
.level-card strong { margin-top:3px; font-size:19px; }
.level-card > b { align-self:center; color:#675985; font-size:12px; }
.level-track { grid-column:1/-1; height:8px; overflow:hidden; border-radius:99px; background:#e7e0eb; }
.level-track i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#7da994,#9178ad); }
.level-card > small { grid-column:1/-1; color:var(--muted); font-size:10px; }
.squad-card { margin:18px 0; padding:20px; border-radius:24px; background:linear-gradient(145deg,#fff3e7,#eeebf6); }
.squad-card > span { color:var(--orange); font-size:11px; font-weight:800; }
.squad-card h2 { margin:5px 0; }
.squad-card p { margin:0 0 13px; font-size:12px; }
.squad-card button:disabled { opacity:.55; cursor:not-allowed; }
.feedback-card { margin:18px 0; padding:20px; border:1px solid rgba(80,139,120,.18); border-radius:24px; background:rgba(255,253,247,.78); text-align:center; }
.feedback-card > span { color:var(--green); font-size:11px; font-weight:800; }
.feedback-card h2 { margin:6px 0; }
.feedback-card p { margin:0 0 14px; font-size:12px; }
.feedback-link { display:grid; min-height:52px; place-items:center; border-radius:18px; background:var(--green-2); color:var(--green); font-size:14px; font-weight:800; text-decoration:none; }
.feedback-card small { display:block; margin-top:9px; color:var(--muted); font-size:10px; }
.peek-link { width:100%; margin-top:14px; padding:13px; border:0; border-radius:14px; background:#ece6f4; color:#675985; font-weight:750; cursor:pointer; }
.diary-list { display:grid; gap:12px; margin:20px 0; }
.diary-card { overflow:hidden; border:1px solid var(--line); border-radius:20px; background:var(--card); }
.diary-card summary { display:grid; grid-template-columns:42px 1fr auto; align-items:center; gap:11px; padding:15px; list-style:none; cursor:pointer; }
.diary-card summary::-webkit-details-marker { display:none; }
.diary-card summary span strong, .diary-card summary span small { display:block; }
.diary-card summary span small { margin-top:3px; color:var(--muted); font-size:11px; }
.diary-card summary > b { color:var(--green); font-size:12px; }
.avatar { width:42px; height:42px; display:grid!important; place-items:center; border-radius:15px; background:var(--orange-2); color:#965027; font-weight:850; }
.diary-card > div { padding:0 15px 12px; }
.diary-card > div p { display:flex; justify-content:space-between; margin:0; padding:10px 0; border-top:1px solid var(--line); font-size:13px; }
.diary-card > div small { color:var(--muted); }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; background: rgba(15,25,20,.38); }
.modal { width: min(100%, 480px); margin: 0 auto; padding: 22px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--card); }
.modal label { display: block; margin: 15px 0 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.modal input, .modal select { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.modal-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 20px; }
.toast { position: fixed; left: 50%; bottom: 30px; z-index: 40; transform: translate(-50%, 20px); padding: 11px 16px; border-radius: 999px; background: var(--ink); color: white; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%,0); }
@keyframes breathe { 0%,100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-5px); } }
@media (min-width: 700px) { body { padding: 28px 0; } .app-shell { min-height: calc(100dvh - 56px); border: 1px solid rgba(255,255,255,.7); border-radius: 36px; background: rgba(255,252,246,.36); box-shadow: var(--shadow); backdrop-filter: blur(18px); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 360px) { .mascot-scene,.mascot-scene.scene-5 { grid-template-columns: 62px minmax(0,1fr) 62px; padding:0 6px; gap:4px; } .mascot-character { width: 60px; } .mascot-scene .mascot-character:last-child,.mascot-scene.scene-5 .mascot-character:last-child { width:58px; height:72px; } .mascot-copy strong { font-size:13px; } .mascot-copy p { font-size:11px; } .joy-hero { min-height: 400px; } .joy-copy h1 { font-size:36px; } }
