:root {
  --bg: #f4efe6;
  --paper: rgba(255, 252, 246, 0.86);
  --paper-solid: #fffcf6;
  --ink: #3f362e;
  --ink-2: #7d6f61;
  --ink-3: #a99b8b;
  --line: rgba(120, 96, 70, 0.14);
  --line-2: rgba(120, 96, 70, 0.24);
  --accent: #d9897d;
  --accent-deep: #c4746a;
  --sage: #8fb46a;
  --wood: #c9a27a;
  --shadow: 0 18px 48px rgba(110, 86, 60, 0.13), 0 2px 8px rgba(110, 86, 60, 0.06);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
.hidden { display: none !important; }

#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; outline: none; touch-action: none; }
body.pointer #scene { cursor: pointer; }
body.walking #scene { cursor: grab; }
body.walking.dragging #scene { cursor: grabbing; }

/* ——— 通用 ——— */
.eyebrow { font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3); }
.btn { height: 42px; padding: 0 20px; border-radius: 21px; border: 1px solid var(--line-2); background: var(--paper-solid); font-size: 13px; transition: transform 0.15s, background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn:hover { border-color: rgba(120, 96, 70, 0.4); transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: #fffaf2; border-color: var(--ink); }
.btn.primary:hover { background: #2f2822; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.ghost { background: rgba(255, 252, 246, 0.7); backdrop-filter: blur(8px); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.glass { background: var(--paper); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: var(--shadow); }

/* ——— 加载与首次进入 ——— */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; align-content: center; gap: 18px; background: var(--bg); transition: opacity 0.6s; }
.loader p { margin: 0; font-size: 13px; color: var(--ink-2); }
.loader b { font-weight: 500; color: var(--ink); }
.loader-seed { width: 46px; height: 58px; position: relative; margin: 0 auto; }
.loader-seed span { position: absolute; inset: 0; border-radius: 50% 50% 46% 46%; background: #f5c6cb; animation: breathe 1.6s ease-in-out infinite; }
.loader.fade { opacity: 0; pointer-events: none; }
@keyframes breathe { 50% { transform: scale(1.08) translateY(-3px); } }

.intro { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: flex-start; padding: 0 0 9vh 7vw; background: linear-gradient(90deg, rgba(244, 239, 230, 0.92) 0%, rgba(244, 239, 230, 0.55) 38%, rgba(244, 239, 230, 0) 62%); transition: opacity 0.7s; }
.intro.fade { opacity: 0; pointer-events: none; }
.intro-card { max-width: 440px; }
.intro h1 { font-family: var(--serif); font-weight: 600; font-size: 46px; line-height: 1.22; margin: 14px 0 18px; letter-spacing: 0.02em; }
.intro p { font-size: 14px; line-height: 1.95; color: var(--ink-2); margin: 0 0 30px; }
.intro-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.intro .btn { height: 50px; padding: 0 32px; border-radius: 25px; font-size: 15px; }
.hint { font-size: 12px; color: var(--ink-3); }

/* ——— HUD ——— */
.hud { position: fixed; inset: 0; pointer-events: none; z-index: 20; transition: opacity 0.6s; }
.hud > * { pointer-events: auto; }
.hud.off { opacity: 0; }
.hud.off > * { pointer-events: none; }

.season-plate { position: absolute; left: 24px; top: 20px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--paper); backdrop-filter: blur(12px); border: 1px solid var(--line); }
.season-mark { width: 28px; height: 32px; border-radius: 12px; background: var(--wood); opacity: 0.7; position: relative; }
.season-mark::after { content: ""; position: absolute; left: 8px; top: 7px; width: 12px; height: 17px; border-radius: 50% 50% 46% 46%; background: var(--paper-solid); }
.season-plate strong { display: block; font-family: var(--serif); font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }
.season-plate span { display: block; margin-top: 3px; font-size: 11px; color: var(--ink-3); }

.status-row { position: absolute; right: 24px; top: 28px; display: flex; gap: 8px; }
.chip { height: 30px; padding: 0 10px; border-radius: 15px; display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line); }
.chip span { color: var(--ink); font-weight: 500; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.flower-dot { background: #f4c7c3; box-shadow: 0 0 0 3px rgba(244, 199, 195, 0.35); }
.wind-dot { background: var(--sage); opacity: 0.7; }

.view-switch { position: absolute; left: 50%; top: 26px; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border-radius: 24px; background: var(--paper); backdrop-filter: blur(12px); border: 1px solid var(--line-2); box-shadow: 0 4px 16px rgba(110, 86, 60, 0.06); }
.view-choice { min-width: 110px; min-height: 38px; padding: 0 18px; border-radius: 20px; font-size: 13px; color: var(--ink-2); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.view-choice:hover { background: rgba(201, 162, 122, 0.12); }
.view-choice.active { color: var(--ink); background: rgba(201, 162, 122, 0.24); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
button:focus-visible { outline: 2px solid var(--ink-2); outline-offset: 3px; }
.view-rail { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 46px; padding: 4px 0; border-radius: 16px; display: flex; flex-direction: column; align-items: center; gap: 1px; background: rgba(255, 252, 246, 0.7); backdrop-filter: blur(10px); border: 1px solid var(--line); }
.rail-btn { width: 40px; min-height: 39px; padding: 6px 0; border-radius: 12px; display: grid; place-items: center; gap: 2px; font-size: 9px; color: var(--ink-2); transition: background 0.2s; }
.rail-btn:hover { background: rgba(201, 162, 122, 0.14); color: var(--ink); }
.rail-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.mode-hint { position: absolute; left: 50%; bottom: 146px; transform: translateX(-50%); max-width: calc(100vw - 120px); padding: 8px 16px; border-radius: 18px; font-size: 13px; color: var(--ink-2); background: rgba(255, 252, 246, 0.72); backdrop-filter: blur(10px); white-space: nowrap; transition: opacity 0.5s; pointer-events: none; }
.mode-hint kbd { font-family: var(--sans); font-size: 13px; padding: 2px 9px; border-radius: 7px; border: 1px solid var(--line-2); background: #fff; margin: 0 2px; color: var(--ink); }
.mode-hint.dim { opacity: 0; }

.dock { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 10px; padding: 8px 14px; border-radius: 30px; background: var(--paper); backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 5px 18px rgba(110, 86, 60, 0.07); }
.tool { position: relative; width: 98px; height: 92px; border-radius: 22px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--ink-2); transition: transform 0.2s, background 0.2s; }
.tool:hover { background: rgba(201, 162, 122, 0.12); transform: translateY(-2px); color: var(--ink); }
.tool:active { transform: scale(0.97); }
.tool span { white-space: nowrap; }
.tool[data-tab="luck"] { width: 104px; }
.ico { width: 60px; height: 60px; object-fit: contain; transition: transform 0.25s cubic-bezier(.2,.9,.3,1.3); filter: drop-shadow(0 3px 4px rgba(110, 86, 60, 0.14)); -webkit-user-drag: none; user-select: none; }
.tool:hover .ico { transform: translateY(-3px) scale(1.06) rotate(-2deg); }
.badge { position: absolute; right: 14px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-style: normal; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--paper-solid); }

/* ——— 场景标签 ——— */
.garden-labels { position: fixed; inset: 0; z-index: 18; pointer-events: none; }
.garden-labels span { position: absolute; transform: translate(-50%,-50%); padding: 5px 10px; background: rgba(255,252,246,.82); color: #70634f; border: 1px solid rgba(255,255,255,.65); border-radius: 16px; font-size: 11px; letter-spacing: .06em; white-space: nowrap; }

.hover-label { position: fixed; z-index: 25; pointer-events: none; transform: translate(-50%, -100%); padding: 7px 12px; border-radius: 12px; font-size: 12px; color: var(--ink); background: rgba(255, 252, 246, 0.94); box-shadow: 0 8px 24px rgba(110, 86, 60, 0.14); white-space: nowrap; }
.hover-label small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 10px; }
.hover-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; transform: rotate(45deg); background: rgba(255, 252, 246, 0.94); }

/* ——— 故事卡 ——— */
.story { position: fixed; z-index: 40; right: 28px; top: 84px; width: 360px; max-height: calc(100vh - 230px); overflow: auto; padding: 26px 26px 22px; border-radius: 24px; background: rgba(255, 252, 246, 0.94); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.8); box-shadow: var(--shadow); animation: cardIn 0.45s cubic-bezier(.2, .9, .3, 1.1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.story .close, .sheet-close { position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); background: rgba(120, 96, 70, 0.06); font-size: 18px; line-height: 1; }
.story .close:hover, .sheet-close:hover { background: rgba(120, 96, 70, 0.12); color: var(--ink); }
.story h2 { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.38; margin: 10px 30px 12px 0; }
.story p { font-size: 13px; line-height: 1.8; color: var(--ink-2); margin: 0 0 16px; }
.quote { position: relative; padding: 20px 20px 18px; border-radius: 18px; background: linear-gradient(160deg, #fbf3e6, #f6ece0); font-family: var(--serif); font-size: 17px; line-height: 1.75; margin: 0 0 16px; color: var(--ink); }
.quote small { display: block; margin-top: 10px; font-family: var(--sans); font-size: 11px; color: var(--ink-3); }
.flower-figure { display: flex; gap: 14px; align-items: flex-end; margin: 4px 0 16px; }
.flower-figure img { width: 84px; height: 112px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(110, 86, 60, 0.15)); animation: sway 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.flower-figure .meta { font-size: 12px; color: var(--ink-3); line-height: 1.8; padding-bottom: 6px; }
.flower-figure .meta b { color: var(--ink); font-weight: 500; }
@keyframes sway { 50% { transform: rotate(3deg); } }
.thumb { width: 100%; max-height: 160px; object-fit: cover; border-radius: 14px; margin-bottom: 14px; border: 1px solid var(--line); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { flex: 1 1 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.chip-btn { height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line-2); background: #fff; font-size: 12px; color: var(--ink-2); transition: 0.18s; }
.chip-btn:hover { border-color: var(--accent); color: var(--ink); }
.chip-btn.active { background: #fbe9e5; border-color: var(--accent); color: var(--accent-deep); }
.notes { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 6px; }
.notes li { padding: 9px 12px; border-radius: 12px; background: #f8f1e6; font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.notes li time { display: block; font-size: 10px; color: var(--ink-3); }
.note-input { display: flex; gap: 8px; margin-bottom: 14px; }
.note-input input { flex: 1; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; outline: none; }
.note-input input:focus { border-color: var(--accent); }
.divider { height: 1px; background: var(--line); margin: 6px 0 16px; }
.tiny { font-size: 11px !important; color: var(--ink-3) !important; }

/* 花苞揭晓动画 */
.reveal-stage { position: relative; height: 150px; display: grid; place-items: center; margin-bottom: 8px; }
.reveal-bud { width: 64px; height: 78px; border-radius: 50% 50% 46% 46%; background: radial-gradient(circle at 40% 30%, #fde2e2, #f2b8be); box-shadow: 0 10px 30px rgba(242, 184, 190, 0.6); animation: budOpen 1.1s cubic-bezier(.3, 1.4, .5, 1) forwards; }
.reveal-stage::before { content: ""; position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 228, 205, 0.9), rgba(255, 228, 205, 0)); animation: halo 2.4s ease-in-out infinite; }
@keyframes budOpen { 0% { transform: scale(0.6); } 60% { transform: scale(1.15) rotate(-4deg); border-radius: 50%; } 100% { transform: scale(1); border-radius: 50% 50% 46% 46%; } }
@keyframes halo { 50% { transform: scale(1.12); opacity: 0.7; } }

/* ——— 弹层 ——— */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 30px; background: rgba(244, 239, 230, 0.45); backdrop-filter: blur(6px); animation: fadeIn 0.3s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { position: relative; width: min(560px, 94vw); max-height: 88vh; overflow: auto; padding: 30px; border-radius: 26px; background: var(--paper-solid); box-shadow: var(--shadow); animation: cardIn 0.4s cubic-bezier(.2, .9, .3, 1.1); }
.sheet h2 { font-family: var(--serif); font-size: 26px; font-weight: 600; margin: 10px 0 8px; }
.sheet > p, .sheet-body > p { font-size: 13px; line-height: 1.8; color: var(--ink-2); margin: 0 0 16px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.dropzone { position: relative; width: 100%; min-height: 190px; border-radius: 20px; border: 1.5px dashed rgba(201, 162, 122, 0.6); background: repeating-linear-gradient(135deg, #fbf5ec 0 12px, #f8f0e4 12px 24px); display: grid; place-items: center; text-align: center; padding: 18px; transition: 0.2s; }
.dropzone.over { border-color: var(--accent); background: #fbebe6; }
.dropzone strong { display: block; font-size: 15px; font-weight: 500; }
.dropzone span { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.dropzone img { max-width: 100%; max-height: 220px; border-radius: 12px; }
.dropzone .link { color: var(--accent-deep); text-decoration: underline; cursor: pointer; }
.dz-icon { width: 54px; height: 54px; margin: 0 auto 10px; }
.seed-row { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; margin: 0 0 6px; }
.seed { flex: 0 0 64px; height: 84px; border-radius: 16px; border: 1.5px solid transparent; background: #f8f1e6; display: grid; place-items: center; transition: 0.2s; }
.seed img { width: 46px; height: 64px; object-fit: contain; }
.seed.active { border-color: var(--accent); background: #fbe9e5; }
.seed:hover { transform: translateY(-2px); }
.privacy { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; color: var(--ink-3); line-height: 1.6; margin-top: 12px; }
.privacy i { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--sage); margin-top: 2px; }

/* 旧花册 */
.book { position: relative; width: min(1020px, 94vw); height: min(660px, 86vh); border-radius: 22px; background: #f8f0e3; box-shadow: var(--shadow), inset 0 0 0 10px #efe2cf; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; animation: cardIn 0.45s cubic-bezier(.2, .9, .3, 1.1); }
.book::before { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 26px; margin-left: -13px; background: linear-gradient(90deg, rgba(120, 96, 70, 0), rgba(120, 96, 70, 0.12), rgba(120, 96, 70, 0)); pointer-events: none; }
.page { padding: 40px 42px; overflow: auto; }
.page h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; margin: 8px 0 6px; }
.page > p { font-size: 12px; color: var(--ink-3); margin: 0 0 20px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.tab { height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.month { font-family: var(--serif); font-size: 15px; margin: 18px 0 10px; color: var(--ink-2); }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.album-card { position: relative; padding: 12px 10px 10px; border-radius: 14px; background: #fffaf2; text-align: left; transition: 0.2s; box-shadow: 0 2px 6px rgba(110, 86, 60, 0.06); }
.album-card:hover { transform: translateY(-3px) rotate(-0.6deg); box-shadow: 0 10px 22px rgba(110, 86, 60, 0.12); }
.album-card.active { outline: 2px solid var(--accent); }
.album-card img { width: 100%; height: 86px; object-fit: contain; }
.album-card b { display: block; font-size: 12px; font-weight: 500; margin-top: 6px; line-height: 1.4; }
.album-card span { display: block; font-size: 10px; color: var(--ink-3); margin-top: 3px; }
.album-card .type { position: absolute; left: 8px; top: 8px; font-size: 9px; padding: 2px 6px; border-radius: 6px; background: #f3e6d4; color: var(--ink-2); }
.album-card .type.fragment { background: #e5eedb; }
.detail-empty { height: 100%; display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 13px; line-height: 1.9; }
.detail-figure { text-align: center; margin: 4px 0 14px; }
.detail-figure img { height: 200px; animation: sway 3.4s ease-in-out infinite; transform-origin: 50% 100%; filter: drop-shadow(0 12px 14px rgba(110, 86, 60, 0.16)); }

/* 季节历 */
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; font-size: 11px; color: var(--ink-3); text-align: center; margin-bottom: 6px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day { position: relative; aspect-ratio: 1; border-radius: 12px; background: rgba(255, 250, 242, 0.6); font-size: 11px; color: var(--ink-3); display: grid; place-items: center; align-content: center; gap: 2px; border: 1px solid transparent; }
.cal-day.has { background: #fffaf2; color: var(--ink); box-shadow: 0 2px 6px rgba(110, 86, 60, 0.06); }
.cal-day.has:hover { border-color: var(--accent); }
.cal-day.today { border-color: var(--accent); }
.cal-day.blank { background: transparent; }
.cal-day .pips { display: flex; gap: 3px; }
.cal-day .pips i { width: 6px; height: 6px; border-radius: 50%; background: #f4c7c3; }
.cal-day .pips i.fragment { background: #b8d49a; }
.cal-legend { display: flex; gap: 16px; font-size: 11px; color: var(--ink-3); margin-top: 14px; }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 6px 0 20px; }
.stat { padding: 14px; border-radius: 14px; background: #fffaf2; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.stat span { font-size: 11px; color: var(--ink-3); }

/* 随身包 */
.pack-list { display: grid; gap: 10px; }
.pack-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; border-radius: 16px; background: #f8f1e6; }
.pack-item b { display: block; font-size: 13px; font-weight: 500; }
.pack-item span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.seg { display: flex; padding: 3px; border-radius: 14px; background: #efe4d4; }
.seg button { height: 28px; padding: 0 11px; border-radius: 11px; font-size: 11px; color: var(--ink-2); }
.seg button.active { background: #fff; color: var(--ink); box-shadow: 0 2px 6px rgba(110, 86, 60, 0.12); }
.switch { width: 44px; height: 26px; border-radius: 13px; background: #e2d6c4; position: relative; transition: 0.2s; flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: 0.2s; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.switch.on { background: var(--sage); }
.switch.on::after { left: 21px; }
input[type="range"] { accent-color: var(--accent); width: 130px; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.keys kbd { font-family: var(--sans); font-size: 11px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); white-space: nowrap; }

/* ——— 安静模式 ——— */
.quiet-layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 9vh; gap: 22px; background: radial-gradient(ellipse at center, rgba(255, 240, 220, 0) 40%, rgba(120, 96, 70, 0.16) 100%); animation: fadeIn 1.2s; }
.quiet-copy { margin: 0; text-align: center; font-family: var(--serif); font-size: 22px; line-height: 1.8; color: var(--ink); text-shadow: 0 2px 18px rgba(255, 250, 240, 0.9); }
.quiet-copy span { font-size: 14px; color: var(--ink-2); }
.quiet-layer .btn { pointer-events: auto; }

#toast { position: fixed; z-index: 95; left: 50%; top: 90px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); pointer-events: none; text-align: center; }
.toast { padding: 11px 20px; border-radius: 20px; background: rgba(63, 54, 46, 0.92); color: #fffaf2; font-size: 13px; box-shadow: var(--shadow); animation: toastIn 2.4s ease forwards; }
@keyframes toastIn { 0% { opacity: 0; transform: translateY(-10px); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

.webgl-error { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: var(--bg); font-size: 14px; color: var(--ink-2); }

@media (max-width: 1100px) {
  .story { width: 320px; }
  .status-row .chip:last-child { display: none; }
}
@media (max-width: 820px) {
  .season-plate { left: 12px; top: 12px; padding: 8px 10px; }
  .season-plate strong { font-size: 16px; }
  .season-plate span { font-size: 10px; }
  .season-mark { display: none; }
  .status-row { right: 12px; top: 18px; }
  .view-switch { top: auto; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .view-choice { min-height: 40px; min-width: 112px; }
  .view-rail { left: 10px; }
  .story { left: 50%; right: auto; top: auto; bottom: calc(142px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(420px, 92vw); max-height: calc(100dvh - 226px); animation: none; padding: 22px; }
  .dock { width: min(440px, calc(100vw - 20px)); padding: 6px; gap: 2px; bottom: max(12px, env(safe-area-inset-bottom)); }
  .tool, .tool[data-tab="luck"] { flex: 1; width: auto; min-width: 0; height: 78px; font-size: 11px; }
  .ico { width: 46px; height: 46px; }
  .book { grid-template-columns: 1fr; height: min(760px, 86dvh); overflow-y: auto; }
  .book::before { display: none; }
  .page { padding: 24px; overflow: visible; }
  .book .page + .page { border-top: 1px solid var(--line-2); }
  .intro h1 { font-size: 34px; }
  .mode-hint { display: none; }
  .note-input input { min-width: 0; }
}
@media (max-width: 390px) {
  .status-row { display: none; }
  .view-rail { width: 42px; left: 6px; }
  .rail-btn { width: 36px; }
}
@media (max-height: 560px) {
  .intro { padding: 24px; }
  .intro h1 { font-size: 28px; margin: 8px 0; }
  .intro p { font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
  .view-rail { gap: 0; }
  .rail-btn { min-height: 30px; padding: 3px 0; }
  .story { top: 74px; bottom: 88px; max-height: none; }
  .mode-hint { display: none; }
}
@media (max-height: 560px) and (max-width: 820px) {
  .story { bottom: calc(142px + env(safe-area-inset-bottom)); }
}

/* ===================== v0.5 四大景观 ===================== */
.chip-btn-round { cursor: pointer; transition: background .2s, color .2s; }
.chip-btn-round:hover { background: rgba(255, 252, 246, 0.98); color: var(--ink); }
.chip-btn-round svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.chip-btn-round .moon { display: none; fill: #F2DFA2; stroke: #C9B47A; }
.chip-btn-round.on .sun { display: none; }
.chip-btn-round.on .moon { display: block; }
.chip-btn-round.on { background: rgba(40, 48, 84, 0.86); color: #F3EEDC; border-color: rgba(255,255,255,.18); }
.chip-btn-round.on span { color: #F3EEDC; }
.chip.icon-only { padding: 0 8px; }

/* 幸运收件箱 tab：今日未领取时的强引导 */
.dock { overflow: visible; }
/* v0.7.5：tab 上的幸运收件箱不再持续晃动、不再波纹扩散，减少视野干扰（新信提示交给角标与引导气泡） */
@keyframes calling { 0% { box-shadow: 0 0 0 0 rgba(217, 137, 125, 0.5); background: rgba(251, 233, 229, 0.7); } 70% { box-shadow: 0 0 0 12px rgba(217, 137, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 137, 125, 0); background: rgba(251, 233, 229, 0); } }
@keyframes hop { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-4px) rotate(-4deg); } }
.badge.soft { background: #C9B497; }
.tab-guide { position: absolute; right: calc(100% + 12px); bottom: 6px; width: max-content; max-width: 230px; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: #FFF7EC; font-size: 12px; line-height: 1.5; box-shadow: var(--shadow); cursor: pointer; animation: guideIn .5s cubic-bezier(.2,.9,.3,1.2), float 2.6s ease-in-out .5s infinite; }
.tab-guide b { display: block; font-weight: 600; font-size: 13px; color: #FFE2B8; }
.tab-guide::after { content: ""; position: absolute; right: -6px; bottom: 20px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); border-radius: 2px; }
@keyframes guideIn { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes float { 50% { transform: translateY(-4px); } }

/* 靠近池塘 / 山洞时出现的入口按钮 */
.near-action { position: absolute; left: 50%; bottom: 182px; transform: translate(-50%, 16px); height: 46px; padding: 0 22px 0 16px; border-radius: 23px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: #fff; background: linear-gradient(135deg, #4FB3C2, #6FCAC4); box-shadow: 0 10px 30px rgba(60, 140, 150, 0.35); opacity: 0; pointer-events: none; transition: opacity .45s, transform .45s cubic-bezier(.2,.9,.3,1.2); white-space: nowrap; }
.near-action.show { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.near-action.cave { background: linear-gradient(135deg, #A27C58, #C99A6A); box-shadow: 0 10px 30px rgba(140, 100, 60, 0.32); }
.near-action.disabled { background: linear-gradient(135deg, #4A557F, #6A6F9A); box-shadow: 0 10px 30px rgba(40, 50, 90, 0.35); }
.near-action:hover { filter: brightness(1.05); }
.near-action i { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); position: relative; flex: 0 0 auto; }
.na-fish::after { content: ""; position: absolute; left: 5px; top: 7px; width: 10px; height: 8px; border-radius: 50%; background: #FFD08A; box-shadow: 6px 0 0 -3px #FFD08A; }
.na-door::after { content: ""; position: absolute; left: 6px; top: 4px; width: 10px; height: 14px; border-radius: 6px 6px 1px 1px; background: #FFE2B0; }
.na-moon::after { content: ""; position: absolute; left: 5px; top: 4px; width: 12px; height: 12px; border-radius: 50%; box-shadow: -3px 2px 0 0 #F2DFA2; }

/* 幸运收件箱 · 来信（参照设计稿「幸运来信UI卡」） */
.lt-card { position: relative; width: min(372px, 92vw); padding: 34px 26px 18px; border-radius: 30px; background: #FAF7F0; box-shadow: 0 30px 80px rgba(90, 64, 40, 0.2), 0 2px 10px rgba(90, 64, 40, 0.06); animation: letterIn .55s cubic-bezier(.2,.9,.3,1.08); }
@keyframes letterIn { from { opacity: 0; transform: translateY(26px) scale(.96); } }
.lt-card > *:not(.lt-dove) { animation: ltRise .55s cubic-bezier(.2,.9,.3,1) both; }
.lt-card > :nth-child(5), .lt-card > :nth-child(6) { animation-delay: .1s; } .lt-card > :nth-child(n+7) { animation-delay: .18s; }
@keyframes ltRise { from { opacity: 0; transform: translateY(10px); } }
.lt-dove { position: absolute; right: -14px; top: -58px; width: 168px; height: auto; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(90, 64, 40, 0.14)); transform-origin: 70% 90%; animation: doveIn .9s .05s cubic-bezier(.2,.9,.3,1.4) both, doveWave 3.2s 1s ease-in-out infinite; }
@keyframes doveIn { from { opacity: 0; transform: translate(18px, -12px) rotate(8deg) scale(.85); } }
@keyframes doveWave { 50% { transform: rotate(-3deg) translateY(-2px); } }
.lt-head { padding-right: 140px; }
.lt-date { font-size: 21px; font-weight: 700; color: #1F1A16; letter-spacing: .01em; }
.lt-sub { margin-top: 6px; font-size: 15px; color: #8A7E72; }
.lt-rule { border: 0; border-top: 1px solid rgba(214, 170, 110, 0.55); margin: 18px 0 16px; }
.lt-rule.short { width: 74%; margin-top: 20px; }
.lt-kicker { font-size: 15px; font-weight: 500; color: #D29A4E; letter-spacing: .02em; }
.story .lt-keyword, .lt-keyword { margin: 4px 0 14px; font-family: var(--sans); font-size: 44px; font-weight: 800; letter-spacing: .06em; line-height: 1.2; color: #BC7516; }
.lt-box { padding: 20px 18px; border-radius: 16px; background: #F4ECE0; font-size: 16px; line-height: 1.9; color: #B5761E; letter-spacing: .02em; }
.lt-box span { display: block; }
.lt-ask { font-size: 14px; color: #8A7E72; margin-bottom: 12px; }
.lt-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.lt-pill { position: relative; display: grid; place-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; border: 1px solid rgba(40, 32, 26, 0.55); background: #FFFDF9; font-size: 14px; color: #2B2420; text-align: center; cursor: pointer; transition: background .18s, border-color .18s, color .18s, transform .15s; }
.lt-pill:hover:not(.static) { transform: translateY(-1px); border-color: #2B2420; }
.lt-pill.active { background: #FBEDE8; border-color: #9E4B40; color: #9E4B40; font-weight: 600; box-shadow: inset 0 0 0 0.5px #9E4B40; }
.lt-pill.static { cursor: default; }
.lt-pill.static:not(.active) { opacity: .55; }
.lt-write { border: 1px dashed rgba(214, 160, 90, 0.9); background: transparent; color: #D29A4E; cursor: text; }
.lt-write input { width: 100%; height: 42px; border: 0; outline: none; background: transparent; font-size: 14px; color: #9E4B40; text-align: center; }
.lt-write input::placeholder { color: #D29A4E; }
.lt-write.active { border-style: solid; border-color: #9E4B40; background: #FBEDE8; }
.lt-primary { display: block; width: 84%; height: 54px; margin: 24px auto 0; border-radius: 27px; background: #924D43; border: 1px solid #5E2F28; color: #fff; font-size: 16px; font-weight: 600; letter-spacing: .06em; box-shadow: 0 10px 22px rgba(146, 77, 67, 0.22); transition: transform .15s, background .2s, opacity .2s; }
.lt-primary:hover:not(:disabled) { background: #82443B; transform: translateY(-1px); }
.lt-primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.lt-secondary { display: block; margin: 12px auto 0; padding: 6px 18px; font-size: 15px; color: #7B726A; border-radius: 12px; }
.lt-secondary:hover { color: #1F1A16; background: rgba(120, 96, 70, 0.06); }

/* 贴着点击位置弹出的面板：不遮挡场景，点外部收起 */
.sheet-wrap.anchored { display: block; padding: 0; background: rgba(40, 32, 24, 0.06); backdrop-filter: none; }
.sheet-wrap.anchored > .popover { position: absolute; margin: 0; max-height: calc(100vh - 84px); overflow: visible; }
.sheet-wrap.anchored > .sheet.popover { overflow: auto; }
.sheet-wrap.anchored > .lt-card.popover { max-height: none; }
.story.anchored { right: auto; bottom: auto; transition: none; }
.story.as-card.anchored { top: auto; }

/* 信箱上方的操作牌 */
.mailbox-panel { position: fixed; z-index: 24; width: 248px; padding: 14px 14px 12px; border-radius: 20px; background: rgba(255, 252, 246, 0.95); backdrop-filter: blur(14px); box-shadow: 0 18px 46px rgba(110, 70, 50, 0.2); transform: translate(-50%, calc(-100% - 18px)) scale(.94); transform-origin: 50% 100%; opacity: 0; pointer-events: none; transition: opacity .35s, transform .4s cubic-bezier(.2,.9,.3,1.2); }
.mailbox-panel.show { opacity: 1; pointer-events: auto; transform: translate(-50%, calc(-100% - 18px)) scale(1); }
.mailbox-panel::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; margin-left: -7px; background: rgba(255, 252, 246, 0.95); transform: rotate(45deg); border-radius: 3px; }
.mb-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 30px 10px 2px; }
.mb-close { position: absolute; right: 8px; top: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: var(--ink-3); background: rgba(120, 96, 70, 0.07); transition: background .2s, color .2s; }
.mb-close:hover { background: rgba(120, 96, 70, 0.14); color: var(--ink); }
body.night .mb-close { color: #C9C6D8; background: rgba(255,255,255,.1); }
.tab-guide .tg-close { position: absolute; right: 4px; top: 3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; color: rgba(255,247,236,.7); }
.tab-guide .tg-close:hover { color: #fff; background: rgba(255,255,255,.12); }
.tab-guide { padding-right: 28px; }
.mb-title b { white-space: nowrap; font-family: var(--serif); font-size: 17px; font-weight: 600; letter-spacing: .06em; color: #3F362E; }
.mb-title span { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.mb-primary { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 44px; border-radius: 13px; background: linear-gradient(135deg, #E2645A, #D45248); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .04em; box-shadow: 0 8px 20px rgba(212, 82, 72, 0.3); transition: transform .15s, filter .2s; }
.mb-primary:hover { transform: translateY(-1px); filter: brightness(1.05); }
.mb-primary.soft { background: #EFE6DA; color: #8A7B6C; box-shadow: none; font-weight: 500; }
.mb-primary:not(.soft)::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(226, 100, 90, .5); animation: calling 2s ease-out infinite; }
.mb-dove { width: 20px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 16'%3E%3Cpath d='M2 9c3-1 5-4 6-7 1 3 1 5 0 7 3-2 7-2 10 0-2 0-3 1-4 2l-3 3c-3 1-7 0-9-2z' fill='white'/%3E%3Ccircle cx='15.5' cy='9.6' r='.9' fill='%23D45248'/%3E%3C/svg%3E") center/contain no-repeat; }
.mailbox-panel.soft .mb-dove, .mb-primary.soft .mb-dove { display: none; }
.mb-secondary { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 38px; margin-top: 8px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; color: var(--ink-2); transition: background .2s, color .2s; }
.mb-secondary:hover { background: #F8F1E6; color: var(--ink); }
.mb-secondary em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E2645A; color: #fff; font-size: 10px; line-height: 18px; }

/* 查看信箱 */
.inbox-sheet { width: min(540px, 94vw); padding-bottom: 18px; }
.inbox-sheet h2 { margin-bottom: 14px; }
.ib-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.ib-stats div { padding: 12px 14px; border-radius: 14px; background: #F8F1E6; }
.ib-stats b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.1; color: #3F362E; }
.ib-stats span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); }
.ib-list { max-height: min(54vh, 520px); overflow: auto; margin: 0 -8px; padding: 0 8px; }
.ib-day h4 { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 14px 0 8px; background: var(--paper-solid); }
.ib-day h4 b { font-size: 13px; font-weight: 600; color: var(--ink); }
.ib-day h4 span { font-size: 11px; color: var(--ink-3); }
.ib-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; width: 100%; margin-bottom: 8px; padding: 11px 14px 11px 11px; border-radius: 14px; background: #FBF6EE; border: 1px solid transparent; text-align: left; transition: background .2s, transform .15s; }
.ib-row:hover { background: #F5ECDF; transform: translateX(2px); }
.ib-row.waiting { background: #fff; border: 1px dashed rgba(201, 103, 90, 0.42); }
.ib-stamp { position: relative; display: grid; place-items: center; width: 42px; height: 50px; border-radius: 6px; background: var(--seed); box-shadow: inset 0 0 0 3px rgba(255,255,255,.75), inset 0 0 0 4px rgba(120, 96, 70, .12); }
.ib-stamp::before { content: ""; position: absolute; inset: -3px; border-radius: 8px; background: radial-gradient(circle, transparent 2px, #FBF6EE 2.4px) -3px -3px / 6px 6px; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); padding: 3px; pointer-events: none; }
.ib-row.waiting .ib-stamp::before { background: radial-gradient(circle, transparent 2px, #fff 2.4px) -3px -3px / 6px 6px; }
.ib-row.unread .ib-no::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #E2645A; vertical-align: 1px; }
.ib-stamp b { font-family: var(--serif); font-size: 20px; font-weight: 600; color: rgba(63, 54, 46, 0.72); }
.ib-main { min-width: 0; }
.ib-main b { display: block; font-family: var(--serif); font-size: 16px; font-weight: 600; color: #3F362E; letter-spacing: .04em; }
.ib-line { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-reply, .ib-wait { display: block; margin-top: 4px; font-size: 11px; }
.ib-reply { color: #9E4A40; }
.ib-wait { color: #B08A5A; }
.ib-wait.now { color: #D45248; font-weight: 500; }
.ib-no { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
body.night .mailbox-panel, body.night .mailbox-panel::after { background: rgba(38, 44, 78, 0.9); }
body.night .mb-title b { color: #FFF7E6; }
body.night .mb-title span { color: #C9C6D8; }
body.night .mb-secondary { background: rgba(255,255,255,.08); color: #E9E4D6; border-color: rgba(255,255,255,.16); }

.today-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.today-list li { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #F8F1E6; cursor: pointer; }
.today-list img { width: 34px; height: 44px; object-fit: contain; }
.today-list b { display: block; font-size: 13px; }
.today-list span { display: block; font-size: 11px; color: var(--ink-3); }

/* 生活花田面板 */
.field-sheet { width: min(620px, 94vw); }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
.field-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 16px; }
.action-card { position: relative; text-align: left; padding: 14px 14px 14px 58px; border-radius: 16px; background: #F8F1E6; transition: transform .2s, background .2s; min-height: 68px; }
.action-card:hover { transform: translateY(-2px); background: #F4EADB; }
.action-card b { display: block; font-size: 14px; font-weight: 600; }
.action-card span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.ai { position: absolute; left: 14px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 10px; }
.ai-mood { background: radial-gradient(circle at 35% 35%, #F2D88C 0 6px, transparent 7px), radial-gradient(circle at 68% 45%, #EDBCC2 0 6px, transparent 7px), radial-gradient(circle at 45% 72%, #C9B4E6 0 6px, transparent 7px), #fff; }
.ai-frag { background: linear-gradient(135deg, #3b4a5e, #8a6f86); }
.ai-frag::after { content: ""; position: absolute; left: 7px; right: 7px; top: 14px; height: 3px; border-radius: 2px; background: #fff; box-shadow: 0 6px 0 rgba(255,255,255,.5); }
.ai-album { background: #EFE3CF; box-shadow: inset 16px 0 0 #F6ECDC; }
.ai-cal { background: #F6EEDF; box-shadow: inset 0 9px 0 #E6AFA2; }
.visit-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1px dashed var(--line-2); font-size: 12px; line-height: 1.7; color: var(--ink-2); }
.visit-note b { display: block; color: var(--ink); font-size: 13px; }
.mini-ico svg { width: 38px; height: 46px; }

/* 心情选择 */
.mood-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 14px; }
.mood { height: 44px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font-size: 13px; color: var(--ink-2); display: flex; align-items: center; justify-content: center; gap: 7px; transition: .18s; }
.mood i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255,255,255,.9), 0 0 0 4px rgba(120,96,70,.12); }
.mood:hover { border-color: var(--accent); color: var(--ink); }
.mood.active { background: #FBE9E5; border-color: var(--accent); color: var(--accent-deep); font-weight: 600; }

/* 雕塑图标 / 记录卡 */
.sculpt-ico { display: inline-grid; place-items: center; width: 100%; height: 86px; }
.sculpt-ico svg { height: 100%; width: auto; }
.sculpt-ico.big { width: 84px; height: 112px; }
.detail-figure .sculpt-ico.big { width: 100%; height: 200px; }
.place { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); margin: -4px 0 12px; }
.place i { width: 9px; height: 9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--accent); }
.scan-tag { display: inline-block; margin-top: 4px; padding: 1px 7px; border-radius: 6px; background: #E5EEDB; color: #5F7F4E; font-style: normal; font-size: 10px; }
.album-card .type.luck { background: #FBE6DF; }
.album-card .type.mood { background: #F3EBD2; }
.album-card .type.visit { background: #DDEBE6; }
.cal-day .pips i.luck, .cal-legend i.luck { background: #F4C7C3; }
.cal-day .pips i.mood, .cal-legend i.mood { background: #F2D88C; }
.cal-day .pips i.fragment, .cal-legend i.fragment { background: #B8D49A; }
.cal-day .pips i.visit, .cal-legend i.visit { background: #7FB8A6; }

/* 内景：水下 / 山洞 */
.interior-ui { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.interior-title { position: absolute; left: 24px; top: 22px; padding: 12px 16px; border-radius: 16px; background: rgba(255, 252, 246, 0.82); backdrop-filter: blur(12px); }
.interior-title b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.interior-title span { display: block; font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.interior-ui .btn { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); pointer-events: auto; height: 46px; padding: 0 26px; border-radius: 23px; font-size: 14px; }
.curtain { position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: 0; transition: opacity .6s ease; }
.curtain.on { opacity: 1; pointer-events: auto; }
body.inside .garden-labels, body.inside .hover-label { display: none; }

/* 夜晚：HUD 换成深一点的玻璃，保持可读 */
body.night { --paper: rgba(36, 42, 74, 0.72); --ink-hud: #F3EEDC; }
body.night .season-plate, body.night .chip, body.night .view-switch, body.night .view-rail, body.night .dock, body.night .mode-hint { background: rgba(38, 44, 78, 0.74); border-color: rgba(255,255,255,0.12); color: #E9E4D6; }
body.night .season-plate strong, body.night .chip span, body.night .view-choice.active, body.night .tool:hover { color: #FFF7E6; }
body.night .season-plate span, body.night .view-choice, body.night .tool, body.night .rail-btn { color: #C9C6D8; }
body.night .view-choice.active { background: rgba(255, 236, 200, 0.16); }
body.night .tool:hover, body.night .rail-btn:hover { background: rgba(255, 236, 200, 0.12); }
body.night .garden-labels span { background: rgba(38, 44, 78, 0.8); color: #F3EEDC; border-color: rgba(255,255,255,.14); }
body.night .mode-hint kbd { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.2); }

@media (max-width: 820px) {
  .field-actions, .stat-grid.four { grid-template-columns: 1fr 1fr; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
  .lt-keyword { font-size: 44px; }
  .lt-card { padding: 24px 22px 18px; }
  .near-action { bottom: 160px; }
  .tab-guide { right: auto; left: 0; bottom: calc(100% + 12px); }
  .tab-guide::after { right: auto; left: 30px; bottom: -6px; }
}

/* 漫游模式：方向操作提示常驻 */
body.walking .mode-hint.dim { opacity: 1; }

/* ——— v0.7 漫游提示条：一键视角复位 ——— */
.mode-hint { display: flex; align-items: center; gap: 4px; }
.mode-hint .hint-reset { pointer-events: auto; display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 4px 11px 4px 9px; border-radius: 12px; background: var(--ink); color: #FFF7EC; font-size: 12px; font-weight: 500; transition: transform .15s, background .2s; }
.mode-hint .hint-reset:hover { background: #2F2822; transform: translateY(-1px); }
.mode-hint .hint-reset svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.night .mode-hint .hint-reset { background: #FFE2B8; color: #2B2F4A; }

/* 俯瞰时的景观标签可以直接点 */
.garden-labels span { pointer-events: auto; cursor: pointer; transition: transform .2s, background .2s; }
.garden-labels span:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; color: var(--ink); }

/* 花田旁的入口按钮 */
.near-action.field { background: linear-gradient(135deg, #8DB46A, #A8C67F); box-shadow: 0 10px 30px rgba(110, 150, 80, 0.32); }
.na-seed::after { content: ""; position: absolute; left: 7px; top: 4px; width: 8px; height: 12px; border-radius: 50% 50% 45% 45%; background: #FFF3D6; box-shadow: 4px -2px 0 -2px #DDF0C2; }

/* ——— v0.7 花田记录卡（参照设计稿） ——— */
.story.as-card { width: 352px; padding: 0; overflow: visible; background: transparent; box-shadow: none; backdrop-filter: none; border: 0; max-height: none; top: 124px; }
.rc-card { position: relative; padding: 30px 28px 14px; border-radius: 28px; background: #FAF6EF; box-shadow: 0 26px 70px rgba(90, 64, 40, 0.18), 0 2px 10px rgba(90, 64, 40, 0.06); animation: rcIn .55s cubic-bezier(.2,.9,.3,1.1); max-height: calc(100vh - 140px); overflow: visible; }
@keyframes rcIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.rc-hero { position: absolute; right: 2px; top: -46px; width: 158px; height: 168px; object-fit: contain; object-position: 50% 100%; pointer-events: none; filter: drop-shadow(0 10px 14px rgba(90, 64, 40, 0.16)); animation: rcHero .8s .1s cubic-bezier(.2,.9,.3,1.3) both; }
.rc-hero.flower { width: 150px; height: 200px; right: 4px; top: -70px; transform-origin: 50% 100%; }
.rc-hero.sculpt { width: 172px; height: 182px; right: -6px; top: -62px; }
@keyframes rcHero { from { opacity: 0; transform: translateY(14px) scale(.92); } }
.rc-head { padding-right: 150px; min-height: 70px; }
.rc-date { font-size: 21px; font-weight: 700; color: #1F1A16; letter-spacing: .01em; }
.rc-type { margin-top: 6px; font-size: 15px; color: #8A7E72; }
.rc-rule { border: 0; border-top: 1px solid rgba(201, 162, 110, 0.55); margin: 22px 0 18px; width: 72%; }
.rc-kicker { font-size: 15px; font-weight: 500; color: #D29A4E; letter-spacing: .02em; }
.story .rc-title, .rc-title { margin: 6px 0 16px; font-size: 34px; font-weight: 700; line-height: 1.25; color: #BC7516; letter-spacing: .04em; font-family: var(--sans); }
.story .rc-title.long, .rc-title.long { font-size: 27px; letter-spacing: .02em; }
.rc-box { padding: 18px 18px 16px; border-radius: 14px; background: #F4ECE0; }
.rc-box p { margin: 0; font-size: 15px; line-height: 1.75; color: #B5761E; }
.rc-box span { display: block; margin-top: 14px; font-size: 13px; color: #B6ADA2; }
.rc-thumb { display: block; width: 100%; max-height: 120px; object-fit: cover; border-radius: 10px; margin-bottom: 12px; }
.rc-like { display: grid; place-items: center; width: 64%; height: 48px; margin: 22px auto 0; border-radius: 26px; border: 1px solid rgba(40, 32, 26, 0.5); background: #FFFDF9; transition: background .2s, border-color .2s, transform .15s; }
.rc-like:hover { background: #fff; transform: translateY(-1px); }
.rc-like svg { width: 26px; height: 26px; fill: none; stroke: #7B726A; stroke-width: 2; transition: fill .2s, stroke .2s; }
.rc-like.on { border-color: rgba(214, 92, 82, 0.6); background: #FFF3F0; }
.rc-like.on svg { fill: #E06A5E; stroke: #E06A5E; }
.rc-like.pop svg { animation: heartPop .45s cubic-bezier(.2,.9,.3,1.6); }
@keyframes heartPop { 40% { transform: scale(1.35); } }
.rc-close { display: block; margin: 14px auto 0; padding: 8px 24px; font-size: 15px; color: #7B726A; border-radius: 12px; }
.rc-close:hover { color: #1F1A16; background: rgba(120, 96, 70, 0.06); }
body.night .rc-card { background: #FAF6EF; }
@media (max-width: 820px) {
  .story.as-card { width: min(352px, 92vw); top: auto; }
  .rc-card { max-height: calc(100dvh - 240px); overflow: auto; padding-top: 24px; }
  .rc-hero { width: 110px; height: 120px; top: -30px; }
  .rc-head { padding-right: 100px; }
}

/* 花册 / 面板里的摆件小图 */
.sculpt-img { width: 100%; height: 86px; object-fit: contain; }
.sculpt-img.big { height: 200px; }
.mini-sculpt { width: 44px; height: 48px; object-fit: contain; flex: 0 0 auto; }
.wish-input { margin-top: 8px; }

/* ——— v0.7.2 好事花生 · 种下一段生活片段 ——— */
.field-sheet { width: min(460px, 94vw); padding: 26px 26px 20px; }
.field-sheet h2 { font-size: 22px; margin: 6px 30px 8px 0; }
.fs-intro { margin: 0 0 16px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }
.fs-label { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.field-sheet .mood-grid { margin-bottom: 12px; }
.fs-compose { display: grid; grid-template-columns: 1fr 92px; gap: 10px; }
.fs-compose .reply-input { height: 92px; }
.fs-photo { position: relative; display: grid; place-items: center; align-content: center; gap: 2px; height: 92px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: #FBF7F0; color: var(--ink-3); cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s; }
.fs-photo:hover { border-color: var(--accent); background: #FDF3EE; color: var(--accent-deep); }
.fs-plus { font-size: 32px; line-height: 1; font-weight: 300; }
.fs-photo em { font-style: normal; font-size: 11px; }
.fs-photo.has { border-style: solid; padding: 0; }
.fs-photo img { width: 100%; height: 100%; object-fit: cover; }
.fs-photo-x { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(30, 24, 20, 0.6); color: #fff; font-size: 14px; line-height: 1; display: grid; place-items: center; }
.field-sheet .wish-input { display: block; width: 100%; margin-top: 10px; height: 42px; }
.field-sheet .sheet-foot .btn.primary { flex: 1; height: 46px; border-radius: 23px; font-size: 15px; }

/* ——— v0.7.2 景观入口按钮：深色实底 + 场景色图标 + 呼吸光圈，在水面 / 山洞 / 花丛上都醒目 ——— */
.near-action, .near-action.cave, .near-action.field, .near-action.pond { height: 56px; padding: 0 28px 0 10px; border-radius: 28px; gap: 12px; font-size: 16px; font-weight: 600; letter-spacing: .04em; color: #FFF8EC; background: #2B2420; border: 2px solid rgba(255, 248, 236, 0.92); box-shadow: 0 14px 34px rgba(30, 22, 16, 0.38), 0 0 0 0 rgba(255, 214, 140, 0.55); }
.near-action.show { animation: naPulse 2.2s ease-out infinite; }
@keyframes naPulse { 0% { box-shadow: 0 14px 34px rgba(30, 22, 16, 0.38), 0 0 0 0 rgba(255, 214, 140, 0.6); } 70% { box-shadow: 0 14px 34px rgba(30, 22, 16, 0.38), 0 0 0 16px rgba(255, 214, 140, 0); } 100% { box-shadow: 0 14px 34px rgba(30, 22, 16, 0.38), 0 0 0 0 rgba(255, 214, 140, 0); } }
.near-action:hover { filter: none; background: #3A302A; transform: translate(-50%, -2px); }
.near-action i { width: 38px; height: 38px; }
.near-action.pond i { background: linear-gradient(135deg, #4FB3C2, #7FD3DA); }
.near-action.cave i { background: linear-gradient(135deg, #C98A4E, #E6B070); }
.near-action.field i { background: linear-gradient(135deg, #7FB25A, #A8D07C); }
.near-action.disabled, .near-action.pond.disabled { background: #2E3458; animation: none; }
.near-action.disabled i { background: #4A557F; }
.na-fish::after { left: 10px; top: 13px; transform: scale(1.4); }
.na-door::after { left: 13px; top: 9px; width: 12px; height: 18px; }
.na-seed::after { left: 14px; top: 9px; width: 10px; height: 16px; }
.na-moon::after { left: 10px; top: 9px; width: 16px; height: 16px; }

/* 末日小屋：避世的氛围说明（进门时缓缓浮现，几秒后收成一行） */
.interior-title em { display: block; margin-top: 6px; font-style: normal; font-family: var(--serif); font-size: 15px; color: #8E5A36; letter-spacing: .04em; }
.interior-title p { margin: 10px 0 8px; max-width: 360px; font-family: var(--serif); font-size: 13px; line-height: 1.95; color: #5E4A3A; animation: descIn 1.6s .5s ease both; }
.interior-title em:empty, .interior-title p:empty { display: none; }
.interior-ui.has-desc .interior-title { padding: 18px 22px 14px; max-width: 420px; background: rgba(255, 248, 236, 0.86); border: 1px solid rgba(190, 140, 90, 0.25); box-shadow: 0 16px 40px rgba(90, 60, 30, 0.15); }
.interior-ui.has-desc .interior-title b { font-size: 24px; letter-spacing: .1em; }
@keyframes descIn { from { opacity: 0; transform: translateY(6px); filter: blur(2px); } }
