/* 盛寰恋习：雾面玻璃写字楼。日常界面是浅色办公用品，剧情和弹层是暗场。 */
:root {
  --frost: #e6eaf0;      /* 雾面玻璃：页面底色 */
  --paper: #fbfcfd;      /* 纸面：工牌、工单、名片 */
  --ink: #1c2333;        /* 墨蓝：正文、深色面 */
  --suit: #7d8597;       /* 西装灰：次要文字 */
  --hair: #d5dbe4;       /* 分隔线 */
  --lip: #a3223b;        /* 口红：唯一强调色，好感、新剧情、主按钮 */
  --lip-soft: #f5e6e9;
  --gold: #bfa06a;       /* 香槟金：工牌金属件、晋升 */
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", serif;
  --sans: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --hand: "Kaiti SC", "STKaiti", "KaiTi", "BiauKai", serif;
  --shadow: 0 1px 0 rgba(28, 35, 51, 0.04), 0 8px 24px rgba(28, 35, 51, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--frost); color: var(--ink); font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; text-align: inherit; }
button:disabled { cursor: default; }
button:focus-visible { outline: 2px solid var(--lip); outline-offset: 2px; }
ul, ol { list-style: none; }
.hidden { display: none !important; }

.app-shell { position: relative; width: 100%; max-width: 430px; height: 100dvh; margin: 0 auto; overflow: hidden; background: var(--frost); }
@media (min-width: 600px) {
  body { display: grid; place-items: center; background: linear-gradient(160deg, #cfd6e0, #eef1f5 45%, #d6dce5); }
  .app-shell { height: min(920px, 96dvh); border-radius: 36px; box-shadow: 0 40px 90px rgba(28, 35, 51, 0.28), 0 0 0 9px #1c2333; }
}

/* ---------- 美术位与缺图占位 ---------- */
.art { background-size: cover; background-position: center 22%; background-repeat: no-repeat; }
.art.art-missing { background-image: linear-gradient(160deg, var(--art-color, #1d2433), #0d0e13) !important; }
.art.art-missing::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--serif); font-size: 28px; letter-spacing: 0.3em; color: rgba(255, 255, 255, 0.2);
}
.shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 18, 0.05) 30%, rgba(10, 12, 18, 0.9) 85%); pointer-events: none; }

/* ---------- 按钮 ---------- */
.primary-button {
  display: block; padding: 14px 20px; border-radius: 12px;
  background: var(--lip); color: #fff; font-weight: 600; text-align: center; letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(163, 34, 59, 0.28);
  transition: transform 0.12s, box-shadow 0.12s;
}
.primary-button:active { transform: translateY(1px); box-shadow: 0 3px 10px rgba(163, 34, 59, 0.3); }
.primary-button:disabled { background: #b7bdc8; box-shadow: none; }
.wide { width: 100%; margin-top: 20px; }
.small-button { padding: 6px 12px; border-radius: 999px; font-size: 12px; color: #fff; background: rgba(255, 255, 255, 0.14); }
.eyebrow { font-size: 12px; color: var(--gold); }

/* ---------- 开场（暗场） ---------- */
.intro-screen { position: absolute; inset: 0; background: #000; color: #f3ede4; }
.intro-image { position: absolute; inset: 0; animation: slowzoom 14s ease-out both; }
.intro-text { position: absolute; left: 28px; right: 28px; bottom: 140px; }
.intro-logo { font-family: var(--serif); font-weight: 900; font-size: 46px; letter-spacing: 0.22em; margin-bottom: 18px; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6); }
#introLines p { font-family: var(--serif); font-size: 18px; line-height: 1.9; opacity: 0; animation: rise 0.8s ease forwards; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.intro-button { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); min-width: 190px; border-radius: 999px; }
.intro-button:active { transform: translateX(-50%) translateY(1px); }

/* ---------- 主界面 ---------- */
.game-screen { position: absolute; inset: 0; display: flex; flex-direction: column; }
.topbar { padding: max(10px, env(safe-area-inset-top)) 16px 0; }

/* 挂绳与工具 */
.lanyard { display: flex; justify-content: space-between; align-items: center; height: 30px; }
.lanyard-strap {
  font-size: 10px; letter-spacing: 0.3em; color: #fff; padding: 3px 12px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 46px, #2c3650 46px 48px);
  border-radius: 3px;
}
.tools { display: flex; gap: 4px; }
.tool-btn { padding: 5px 10px; font-size: 12px; color: var(--suit); border-radius: 8px; }
.tool-btn:active { background: rgba(28, 35, 51, 0.06); }

/* 工牌：全页唯一的重点物件 */
.badge {
  --band: var(--suit);
  position: relative; margin-top: 8px; border-radius: 14px; background: var(--paper);
  box-shadow: var(--shadow); overflow: hidden;
}
.badge[data-level="1"] { --band: #3e5c8a; }
.badge[data-level="2"] { --band: #2f6b66; }
.badge[data-level="3"] { --band: var(--lip); }
.badge[data-level="4"] { --band: var(--ink); }
.badge-clip {
  position: absolute; top: 6px; left: 50%; width: 34px; height: 7px; transform: translateX(-50%);
  border-radius: 4px; background: linear-gradient(180deg, #e3cf9f, var(--gold)); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.2); z-index: 1;
}
.badge-band {
  display: flex; justify-content: space-between; padding: 8px 14px 6px;
  font-size: 11px; color: rgba(255, 255, 255, 0.92); background: var(--band); transition: background 0.6s;
}
.badge[data-level="4"] .badge-band { color: var(--gold); }
.badge-main { display: grid; grid-template-columns: 52px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px 14px; }
.badge-photo {
  width: 52px; height: 64px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 900; font-size: 24px; color: var(--ink);
  background: linear-gradient(170deg, #f4e7e3, #dfe5ee); border: 1px solid var(--hair);
}
.badge-id strong { display: block; font-family: var(--serif); font-weight: 900; font-size: 21px; letter-spacing: 0.08em; }
.badge-id span { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--band); transition: color 0.6s; }
.badge[data-level="4"] .badge-id span { color: #8a6d3b; }
.badge-id small { display: block; margin-top: 4px; font-size: 11px; color: var(--suit); font-variant-numeric: tabular-nums; }
.badge-cal { width: 62px; text-align: center; border-radius: 8px; overflow: hidden; border: 1px solid var(--hair); background: #fff; }
.badge-cal span { display: block; padding: 3px 0; font-size: 9px; color: #fff; background: var(--lip); }
.badge-cal strong { display: inline-block; font-family: var(--serif); font-weight: 900; font-size: 30px; line-height: 1.15; padding-top: 2px; }
.badge-cal em { font-style: normal; font-size: 11px; color: var(--suit); margin-left: 1px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.stats div { text-align: center; border-left: 1px solid var(--hair); }
.stats div:first-child { border-left: 0; }
.stats dt { font-size: 11px; color: var(--suit); }
.stats dd { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.energy-row { display: flex; align-items: center; gap: 8px; padding: 10px 2px 8px; font-size: 11px; color: var(--suit); }
.energy-bar { flex: 1; height: 5px; border-radius: 5px; background: #d3d9e2; overflow: hidden; }
.energy-bar i { display: block; height: 100%; background: var(--ink); border-radius: 5px; transition: width 0.4s; }
.energy-bar i.is-low { background: var(--lip); }
.energy-row > strong { width: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.money strong { color: var(--ink); font-variant-numeric: tabular-nums; }

/* 新邮件通知 */
.notice {
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  margin: 4px 16px 0; padding: 10px 14px; border-radius: 14px; background: var(--paper);
  box-shadow: var(--shadow); border-left: 3px solid var(--lip); animation: drop 0.4s ease;
}
.notice-from { font-size: 11px; color: var(--suit); }
.notice-subject { grid-row: 2; font-family: var(--serif); font-weight: 700; font-size: 15px; }
.notice strong { grid-row: 1 / span 2; grid-column: 2; font-size: 13px; color: var(--lip); }

.panels { flex: 1; overflow-y: auto; padding: 4px 16px 28px; scroll-behavior: smooth; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 10px; }
.section-head h2 { font-family: var(--serif); font-weight: 900; font-size: 18px; letter-spacing: 0.04em; }
.count { font-size: 12px; color: var(--suit); font-variant-numeric: tabular-nums; }
.note { margin: 8px 2px 0; font-size: 11px; line-height: 1.7; color: var(--suit); }

/* 工位 */
.home-art { position: relative; height: 250px; margin-top: 12px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.home-art figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 18px 16px; color: #fff; background: linear-gradient(180deg, transparent, rgba(16, 20, 30, 0.82)); }
.home-art h1 { font-family: var(--serif); font-weight: 900; font-size: 24px; letter-spacing: 0.04em; }
.home-art p { margin-top: 4px; font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); }

.todo { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.todo li + li { border-top: 1px solid var(--hair); }
.todo-item { width: 100%; display: grid; grid-template-columns: 20px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; font-size: 14px; }
.todo-item:active { background: #f1f3f7; }
.check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b3bac6; }
.todo-item.is-done .check { border-color: var(--ink); background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.todo-item.is-done .todo-text { color: var(--suit); text-decoration: line-through; text-decoration-color: #b3bac6; }
.todo-item.is-hot .check { border-color: var(--lip); background: radial-gradient(circle, var(--lip) 0 4px, transparent 5px); }
.todo-item.is-hot .todo-text { font-weight: 600; }
.todo-item small { font-size: 12px; color: var(--suit); }

/* 茶水间八卦 */
.gossip { margin-top: 14px; }
.gossip-from { display: flex; align-items: center; gap: 6px; margin-left: 4px; font-size: 11px; color: var(--suit); }
.gossip-dot { width: 7px; height: 7px; border-radius: 50%; background: #4caf7d; }
.bubble { position: relative; margin-top: 6px; padding: 12px 14px; max-width: 92%; border-radius: 4px 18px 18px 18px; background: var(--paper); box-shadow: var(--shadow); font-size: 15px; line-height: 1.6; }
.gossip-effect { margin: 8px 0 0 4px; font-size: 12px; color: var(--lip); }

/* 工单：右侧带撕边的存根 */
.tickets { display: grid; gap: 10px; }
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr 72px; min-height: 112px;
  background: var(--paper); border-radius: 8px; box-shadow: var(--shadow);
  transition: transform 0.12s;
}
.ticket:not(:disabled):active { transform: scale(0.985); }
.ticket.is-hot { box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(163, 34, 59, 0.35); }
.ticket:disabled:not(.is-done) { opacity: 0.45; }
.ticket.is-done { opacity: 0.62; }
.ticket-main { display: flex; flex-direction: column; gap: 4px; padding: 13px 14px; }
.ticket-tag { font-size: 11px; color: var(--suit); }
.ticket-tag b { margin-left: 6px; color: var(--lip); font-weight: 600; }
.ticket-main strong { font-family: var(--serif); font-weight: 900; font-size: 17px; }
.ticket-desc { font-family: var(--hand); font-size: 14px; color: #4b5366; }
.ticket-gain { margin-top: 4px; font-size: 12px; color: var(--ink); }
.ticket-gain em { font-style: normal; margin-left: 8px; color: var(--lip); }
.ticket-stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1.5px dashed var(--hair); }
.ticket-stub::before, .ticket-stub::after { content: ""; position: absolute; left: -8px; width: 14px; height: 14px; border-radius: 50%; background: var(--frost); }
.ticket-stub::before { top: -7px; }
.ticket-stub::after { bottom: -7px; }
.ticket-stub b { font-family: var(--serif); font-weight: 900; font-size: 24px; }
.ticket-stub small { font-size: 11px; color: var(--suit); }
.stamp {
  position: absolute; right: 86px; top: 14px; padding: 2px 10px; font-family: var(--serif); font-weight: 900; font-size: 15px;
  color: var(--lip); border: 2px solid var(--lip); border-radius: 6px; transform: rotate(-10deg); opacity: 0.85;
}

/* 下班以后：一张列表，不拆卡片 */
.after-list { background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.after { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 14px; }
.after + .after { border-top: 1px solid var(--hair); }
.after strong { font-size: 14px; font-weight: 600; white-space: nowrap; }
.after span { font-size: 12px; color: var(--suit); text-align: right; }
.after:disabled:not(.is-active) { opacity: 0.4; }
.after.is-active { background: var(--lip-soft); }
.after.is-active strong { color: var(--lip); }

/* 名片 */
.cards { display: grid; gap: 14px; }
.namecard { display: grid; grid-template-columns: 112px 1fr; min-height: 168px; background: var(--paper); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.namecard-photo { position: relative; background-color: #2a3042; }
.namecard.is-locked .namecard-photo { background: repeating-linear-gradient(135deg, #e9edf2 0 10px, #e2e7ee 10px 20px); }
.namecard-body { padding: 14px 16px; border-top: 3px solid var(--accent, var(--hair)); }
.namecard.is-locked .namecard-body { border-top-color: var(--hair); }
.namecard-org { font-size: 10px; color: var(--suit); }
.namecard h3 { margin-top: 4px; font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: 0.06em; }
.namecard.is-locked h3 { color: var(--suit); font-size: 18px; }
.namecard-title { font-size: 12px; color: var(--suit); }
.namecard-tags { margin-top: 8px; font-size: 12px; color: #4b5366; }
.namecard blockquote { margin-top: 8px; padding-left: 10px; border-left: 2px solid var(--lip); font-family: var(--serif); font-size: 14px; line-height: 1.6; }
.favor { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; margin-top: 12px; font-size: 11px; color: var(--suit); }
.favor-bar { height: 5px; border-radius: 5px; background: #e3e7ee; overflow: hidden; }
.favor-bar i { display: block; height: 100%; background: var(--lip); border-radius: 5px; }
.favor b { font-size: 13px; color: var(--lip); font-variant-numeric: tabular-nums; }
.namecard-foot { margin-top: 4px; font-size: 11px; color: var(--suit); }
.unlock-progress { margin-top: 12px; display: grid; gap: 6px; font-size: 12px; }
.unlock-progress li { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 6px; background: #eef1f5; color: #4b5366; }
.unlock-progress li span { color: var(--suit); font-variant-numeric: tabular-nums; }
.unlock-progress li.ok { background: #e6f2ec; color: #2f6b4f; }
.unlock-progress li.ok span { color: #2f6b4f; }

/* 收件箱 */
.mailbox { margin-bottom: 14px; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.mailbox-head { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.mailbox-avatar { position: relative; width: 36px; height: 36px; border-radius: 50%; background-color: #d9dee6; background-position: center 18%; }
.mailbox-head strong { display: block; font-family: var(--serif); font-weight: 900; font-size: 15px; }
.mailbox-head span { font-size: 11px; color: var(--suit); }
.mailbox-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.mailbox-locked { padding: 14px; font-size: 12px; line-height: 1.7; color: var(--suit); }
.mailbox.is-locked .mailbox-head strong { color: var(--suit); }
.mail { width: 100%; display: grid; grid-template-columns: 8px auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; align-items: baseline; padding: 11px 14px; }
.mailbox li + li .mail { border-top: 1px solid #edf0f4; }
.mail:active { background: #f1f3f7; }
.mail-dot { width: 8px; height: 8px; border-radius: 50%; align-self: center; }
.mail-no { font-size: 11px; color: var(--suit); font-variant-numeric: tabular-nums; }
.mail-subject { font-family: var(--serif); font-size: 15px; font-weight: 700; }
.mail-preview { grid-column: 2 / span 2; font-size: 12px; color: var(--suit); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail.is-ready .mail-dot { background: var(--lip); }
.mail.is-ready .mail-subject { font-weight: 900; }
.mail.is-ready .mail-preview { color: #4b5366; }
.mail.is-watched .mail-dot { border: 1.5px solid #c4cad4; }
.mail.is-watched .mail-subject { font-weight: 400; color: #4b5366; }
.mail.is-need-favor, .mail.is-need-month, .mail.is-locked { opacity: 0.5; }

/* 考核 */
.rank-table { counter-reset: rank; background: var(--paper); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.rank-table li { counter-increment: rank; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; padding: 11px 14px; font-size: 14px; }
.rank-table li + li { border-top: 1px solid #edf0f4; }
.rank-table li::before { content: counter(rank); font-family: var(--serif); font-weight: 900; color: var(--suit); }
.rank-table li:first-child::before { color: var(--gold); }
.rank-table li strong { font-variant-numeric: tabular-nums; }
.rank-table li small { margin-left: 6px; padding: 1px 6px; font-size: 10px; color: #fff; background: var(--lip); border-radius: 4px; }
.rank-table li.is-me { background: var(--lip-soft); }

.ladder { position: relative; padding-left: 26px; }
.ladder::before { content: ""; position: absolute; left: 8px; top: 16px; bottom: 16px; width: 2px; background: var(--hair); }
.ladder li { position: relative; display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: baseline; padding: 10px 4px; font-size: 12px; color: var(--suit); }
.ladder li::before { content: ""; position: absolute; left: -23px; top: 14px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid #b3bac6; background: var(--frost); }
.ladder li strong { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--suit); }
.ladder li.is-past::before { border-color: var(--ink); background: var(--ink); }
.ladder li.is-past strong { color: var(--ink); }
.ladder li.is-now::before { left: -25px; top: 12px; width: 14px; height: 14px; border-color: var(--lip); background: var(--lip); box-shadow: 0 0 0 4px var(--lip-soft); }
.ladder li.is-now strong { color: var(--ink); font-weight: 900; }
.ladder li em { grid-column: 1 / -1; margin-top: -6px; font-style: normal; font-size: 11px; color: var(--lip); }

.folders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin-top: 14px; }
.folder { position: relative; padding: 16px 12px 12px; border-radius: 0 10px 10px 10px; background: #d9dee6; min-height: 108px; }
.folder-tab { position: absolute; top: -12px; left: 0; padding: 2px 10px 0; font-size: 10px; color: var(--suit); background: #d9dee6; border-radius: 6px 6px 0 0; }
.folder strong { display: block; font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--suit); }
.folder p { margin-top: 6px; font-size: 11px; line-height: 1.6; color: var(--suit); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.folder.is-got, .folder.is-got .folder-tab { background: var(--paper); }
.folder.is-got { box-shadow: var(--shadow); }
.folder.is-got .folder-tab { color: #8a6d3b; }
.folder.is-got strong { color: var(--ink); }
.folder.is-got p { color: #4b5366; }

/* 底部导航 */
.bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 8px max(10px, env(safe-area-inset-bottom)); background: rgba(251, 252, 253, 0.92); backdrop-filter: blur(14px); border-top: 1px solid var(--hair); }
.nav-button { position: relative; padding: 12px 0 8px; font-size: 13px; color: var(--suit); text-align: center; }
.nav-button.is-active { color: var(--ink); font-weight: 600; }
.nav-button.is-active::before { content: ""; position: absolute; top: 0; left: 50%; width: 18px; height: 3px; transform: translateX(-50%); border-radius: 0 0 3px 3px; background: var(--lip); }
.nav-dot { position: absolute; top: 9px; right: calc(50% - 22px); width: 7px; height: 7px; border-radius: 50%; background: var(--lip); }

/* ---------- 剧情播放器（暗场） ---------- */
.player { position: absolute; inset: 0; z-index: 20; background: #000; color: #f3ede4; cursor: pointer; }
.player-strip { position: absolute; inset: 0; overflow: hidden; }
.panel-frame { position: relative; height: 100%; overflow: hidden; border-bottom: 10px solid #000; }
.panel-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; display: block; animation: slowzoom 12s ease-out both; }
.player-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0.3), transparent 22%, transparent 48%, rgba(6, 6, 9, 0.94) 80%); }
.player-skip { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 2; }
.player-dialog { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 22px max(30px, env(safe-area-inset-bottom)); }
.player-dialog .eyebrow { color: rgba(243, 237, 228, 0.6); }
#playerName { display: inline-block; margin: 10px 0 6px; font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: 0.1em; color: #fff; border-bottom: 2px solid var(--lip); padding-bottom: 2px; }
#playerLine { min-height: 90px; font-size: 16px; line-height: 1.9; text-shadow: 0 2px 8px #000; }
#playerLine.is-narration { font-family: var(--serif); color: #e2dbd0; }
#playerLine.fade { animation: rise 0.45s ease; }
.tap-hint { display: block; text-align: right; font-size: 11px; color: rgba(243, 237, 228, 0.5); animation: blink 1.4s infinite; }
.choice-list { display: grid; gap: 10px; margin-top: 12px; }
.choice { padding: 14px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; background: rgba(251, 252, 253, 0.94); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); animation: rise 0.4s ease both; }
.choice:nth-child(2) { animation-delay: 0.08s; }
.choice:active { background: var(--lip-soft); }

/* ---------- 弹层（暗场） ---------- */
.overlay { position: absolute; inset: 0; z-index: 30; background: #000; color: #f3ede4; animation: fadein 0.35s ease; }
.overlay-art { position: absolute; inset: 0; background-position: center 18%; }
.overlay-card { position: absolute; left: 16px; right: 16px; bottom: max(24px, env(safe-area-inset-bottom)); padding: 22px; border-radius: 18px; background: rgba(251, 252, 253, 0.96); color: var(--ink); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); animation: rise 0.5s ease; }
.overlay-card .eyebrow { color: var(--lip); }
.overlay-card h2 { margin: 6px 0 10px; font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: 0.04em; }
#overlayBody p { font-size: 13px; line-height: 1.8; color: #4b5366; }
#overlayBody .quote { font-family: var(--serif); font-size: 15px; color: var(--ink); padding-left: 10px; border-left: 2px solid var(--lip); margin-bottom: 8px; }
#overlayBody .note { margin-top: 10px; }
.settle { display: grid; gap: 8px; font-size: 14px; color: #4b5366; }
.settle b { color: var(--ink); }

/* ---------- 提示 ---------- */
.toast-layer { position: absolute; left: 0; right: 0; top: 96px; z-index: 50; display: grid; justify-items: center; gap: 6px; pointer-events: none; }
.toast { max-width: 86%; padding: 10px 16px; border-radius: 12px; font-size: 13px; line-height: 1.6; text-align: center; color: #fff; background: rgba(28, 35, 51, 0.94); box-shadow: 0 10px 30px rgba(28, 35, 51, 0.3); animation: rise 0.3s ease; transition: opacity 0.4s; }
.toast.out { opacity: 0; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes blink { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
