/* ============================================================
   午餐转盘 M2 · styles.css（M3 扩展：菜单/历史页；V1.1 MA：§2.7 app shell
   流内布局 + tab 栏流内化 + FR-4 双面签文卡/休业公告卡 + §2.5 资产占位管线；
   MA-FIX1：F1 签文卡定宽居中 / F2 解说占位行收缩；
   V1.1 MB：FR-7 补评卡（毛玻璃浮层）+ 待评价弱入口；
   V1.1 MC：FR-8 道具胶囊排/抽屉/预览特效（电光环 conic 环 + rotateLoop）/
   签文卡道具角标 + FR-6 历史行道具/评分标记——见文件尾 MC 区块）
   纪律（逐条对应验收条款）：
   - hex / rgba 只允许出现在下方 :root token 定义处（§2.2 / §14-8），使用处一律 var()
   - 毛玻璃（backdrop-filter）只用于浮层：签文卡 / 昵称弹窗 / 删除确认弹窗 / tab 栏
     / 统计卡（M3 唯一新增，§2.1 / §14-9），页面主干（背景/内容层）零 backdrop-filter；
     V1.1 §2.7 起 tab 栏为流内最后一个 flex 子项（毛玻璃参数不变）
   - 本文件零 CSS 关键帧动画（§2.4 转盘纪律）：转盘旋转 / 待机呼吸 / spring / 粒子 /
     逐字浮现 / count-up / 扇区重排 / 庆祝层全部由 js/fx.js、js/wheel/*（V1.2 卡片轮盘）的 rAF 驱动；
     CSS 只用 ≤300ms 的 transition 做群演（唯一例外：§2.4 明文规格的休业翻转 600ms）
   - 交互动画只动 transform / opacity（60fps 底线；出场 blur(2px) 为 §2.4 导航行明文规格）；
     时长阶梯照 §2.4
   - prefers-reduced-motion: reduce → CSS 侧全部直切（JS 侧见 fx.prefersReduced）
   - §2.7 禁止清单：100vh 不得作为 app shell 终值（降级链兜底除外）；body/#app 禁
     position:fixed；贴底 UI 一律流内（.tabbar）——fixed 仅存浮层四类（加载页/弹层
     容器/粒子层/toast）
   ============================================================ */

:root {
  /* —— §2.2 色彩 Token（全站唯一 hex / rgba 出处）—— */
  --bg-cream: #FFF8F0;        /* 奶油白页面底 */
  --orange-primary: #FF7A3C;  /* 主橙：按钮、转盘主色、强调 */
  --orange-deep: #E85D26;     /* 深橙：按压态 */
  --blue-secondary: #2B6CB0;  /* 辅蓝：链接、次要强调 */
  --ink-900: #2D3142;         /* 主文字（深灰蓝，非纯黑） */
  --ink-600: #4E5464;         /* 次级文字 */
  --ink-300: #B8BDC9;         /* 弱文字/占位 */
  --line-input: #6F7688;      /* 输入控件边界（D2#05：--ink-300 实测 1.79<3，WCAG 1.4.11；本档奶油底实测 4.31） */
  --glass-bg: rgba(255,255,255,0.72);
  --glass-bg-strong: rgba(255,255,255,0.96); /* D4#10：签文卡面收敛档（AUDIT1115-C1 N01/6.2 的 0.96 原值收编） */
  --glass-border: rgba(255,255,255,0.6);
  --shadow-float: 0 8px 32px rgba(31,45,61,0.12);
  --radius-card: 20px;
  --radius-btn: 999px;
  /* 转盘扇区循环色板（§2.2 --wheel-palette 六色；Canvas 经 getComputedStyle 读取） */
  --wheel-1: #FF7A3C;
  --wheel-2: #FFB347;
  --wheel-3: #2B6CB0;
  --wheel-4: #5FA8E8;
  --wheel-5: #F88280;         /* UI-03：提亮珊瑚（墨字 4.7:1；卡面文字默认墨色见 card-wheel） */
  --wheel-6: #FFD166;
  /* 扇区分隔线 / 扇区浅底文字用纯白（§2.2「白色分隔线 4px」token 化，供 Canvas 取用） */
  --wheel-divider: #FFFFFF;
  /* 转盘外圈投影（§2.6 盘体精修；Canvas 经字符串解析消费，零裸色值） */
  --wheel-ring-shadow: 0 4px 16px rgba(31,45,61,0.10);

  /* —— §2.2 V1.1 新增 token（MA 仅 --sleep-blue 实际生效，其余预置）—— */
  --bolt-gold: #FFB020;       /* 加概率卡/闪电光环 */
  --flame-soft: #FF5A36;      /* 火焰粒子（低调版特效用） */
  --veto-ink: #B8BDC9;        /* 被否决扇区灰显 */
  --star-gold: #FFC53D;       /* 评分星星 */
  --sleep-blue: #1F5A94;      /* 休眠倒计时（D2#04：原 #5FA8E8 实测 2.48:1 → 深一档 6.94:1；亮蓝仍由 --wheel-4 承载扇区色） */
  /* —— UI 审查 UI-03 · 对比度达标色（实测：white/#C2440F=5.09、#C2440F/cream=4.83、
     white/#C0392B=5.44；品牌亮橙 --orange-primary 保留为强调/描边/装饰用途）—— */
  --orange-strong: #C2440F;       /* 主操作底色/选中态文字 */
  --orange-strong-deep: #A93D0C;  /* 主操作按压态 */
  --danger-strong: #C0392B;       /* 危险操作底色 */

  /* —— §2.3 字体栈 token（body 与 Canvas 同源）—— */
  --font-stack: -apple-system, "PingFang SC", "HarmonyOS Sans", "Microsoft YaHei", sans-serif;

  /* —— UI 审查 UI-04 · 字体阶梯（移动端维持现值；≥768px 抬升，见文件尾媒体查询）—— */
  --fs-title: 20px;   /* 页面主标题 */
  --fs-body: 15px;    /* 正文/卡片标题/列表主文 */
  --fs-sub: 12px;     /* 辅助说明/标签/次要信息 */
  --fs-input: 16px;   /* D3#07 输入控件字号下限：iOS Safari 对 <16px 的 input/textarea
                         聚焦时自动放大整页且失焦不还原。此值不参与 ≥768px 字体阶梯
                         （抬升无意义，缩小则复发）。禁止用 viewport maximum-scale
                         或 transform:scale 绕过（无障碍/模糊）。 */

  /* —— 动效时长（§2.4 阶梯；CSS transition 用，连续动画在 JS rAF 中以 ms 常量驱动）—— */
  --t-micro: 160ms;    /* 微交互 100-200ms */
  --t-component: 300ms;/* 组件 300-500ms */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* —— D4#10 · spring 参数 token（格式 stiffness,damping；fx.readSpring 解析。
     数值为各处原裸值原样收编，零手感变更；逐字浮现沿用 --spring-card 家族但阻尼 18，
     由 revealChars 默认参数承载，不在 token 层另立档位）—— */
  --spring-soft: 260,26;   /* tab 图标微弹（原 fx.tabBounce 裸值） */
  --spring-card: 300,20;   /* 签文卡/弹层/道具抽屉弹入（原 springValue/springCardIn 默认与 app.js 抽屉裸值） */
  --spring-pop: 340,24;    /* 补评逐星 pop（原 fx.popStar 裸值） */
  --spring-cele: 380,30;   /* 庆祝层绵羊弹出（原 celebration.js 裸值） */

  /* —— V1.2 · 卡片轮盘 + 白纱罩 + 庆祝层 token（融合参考轮盘结构、皮肤品牌化；
     全站唯一 hex/rgba 出处纪律延续：消费处一律 var()，见 docs/implementation/wheel-integration-design.md）—— */
  --veil-bg: #FFFFFF;               /* spin 白纱罩 */
  --wheel-disc-bg: #FFFFFF;         /* 白盘 */
  --wheel-disc-glow: #FFF6EA;       /* 盘心奶油内晕 */
  --wheel-ring-1: #F7C948;          /* 外环锥形渐变六段（暖金→蜜橙→主橙→珊瑚→暖金→浅金） */
  --wheel-ring-2: #FFA24D;
  --wheel-ring-3: #FF7A3C;
  --wheel-ring-4: #FF9A6C;
  --wheel-ring-5: #F2B93B;
  --wheel-ring-6: #FBCC5C;
  --wheel-bulb: #FFFFFF;            /* 环带灯珠（白核 + 暖奶油晕，常亮不闪） */
  --wheel-bulb-halo: #FFF3D6;
  --wheel-backing-cream: #FFE9C8;   /* 菜品卡奶油衬卡 */
  --wheel-flame-1: #FFB35C;         /* 火焰指针：尖→基 */
  --wheel-flame-2: #FF7A3C;
  --wheel-flame-3: #F9551C;
  --center-ring-1: #FF7A3C;         /* 中心细环渐变 */
  --center-ring-2: #F26D6C;
  --center-hub-inset: inset 0 3px 8px rgba(232, 93, 38, 0.18); /* 盘心白圆底部内阴影弧 */
  --card-sheen: rgba(255, 255, 255, 0.24);   /* 卡面高光（叠 palette 纯色） */
  --card-sheen-0: rgba(255, 255, 255, 0);
  --cta-grad-1: #FF7A3C;            /* CTA 对角渐变（主橙→深橙→珊瑚收尾） */
  --cta-grad-2: #E85D26;
  --cta-grad-3: #F26D6C;
  --cta-glow: 0 6px 18px rgba(232, 93, 38, 0.32);
  --cele-wash-top: #FFF3DC;         /* 庆祝白幕：奶油暖白→白 */
  --cele-wash-bottom: #FFFFFF;
  --cele-ray: #FBEDCF;              /* 太阳光芒臂 / 间隙（低对比暖金） */
  --cele-gap: #FFF8EA;
  --cele-card-1: #FF9A5C;           /* 放大菜卡渐变（珊瑚→暖珊瑚） */
  --cele-card-2: #F26D6C;
  --cele-dash: rgba(255, 255, 255, 0.66);    /* 虚线裁切线 */
  --cele-hole: #FEFCF8;             /* 彩虹洞口白椭圆 */
  --cele-glow-a: rgba(235, 246, 223, 0.9);   /* 洞口柔光：绿/奶油/珊瑚（低饱和彩虹） */
  --cele-glow-b: rgba(252, 248, 232, 0.9);
  --cele-glow-c: rgba(255, 158, 133, 0.55);
}

/* —— 基础 —— */
* { box-sizing: border-box; }

[hidden] { display: none !important; }

/* —— P2-8 · 视觉隐藏但保留在读屏可访问树（禁止 display:none/visibility:hidden/aria-hidden）—— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--ink-900);
  font-family: var(--font-stack); /* §2.3 */
  font-size: 15px;   /* §2.3 正文 15px/400 */
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;         /* §14-14：375px 无横向滚动 */
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; }

.num { font-variant-numeric: tabular-nums; font-weight: 700; } /* §2.3 数字统计 */

/* —— §2.7 层 1 · app shell：flex 流内布局（iOS 微信工具栏适配的根治层）——
   .app 占满视口（高度降级链：基线 100vh → @supports 覆写 100svh → 再覆写 100dvh，
   后者优先）；.content 为唯一滚动容器（flex:1 + overflow-y），tab 栏是流内最后一个
   flex 子项（见 .tabbar），工具栏出现/消失时内容区自动收缩，tab 栏恒在可视区内。
   注意用 height 而非 min-height：min-height 会被长内容（历史页）撑破，.content
   内滚永不生效、tab 栏沉底——与「tab 栏永远处于可视区内」的效果条款矛盾。 */
.app {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
@supports (height: 100svh) {
  .app { height: 100svh; }
}
@supports (height: 100dvh) {
  .app { height: 100dvh; }
}
.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden; /* MC-FIX1：scroll 容器横向溢出兜底（boost 电光环方形 bbox 422px 挤出滚动条）——V1-11 375px 无横向滚动 */
  -webkit-overflow-scrolling: touch;
}

/* M4 · 浏览器原生面主题化（token 内）：选区反白 / 输入光标主橙 */
::selection { background: var(--orange-primary); color: var(--bg-cream); }

:focus-visible { outline: 2px solid var(--orange-strong); outline-offset: 2px; } /* UI-03：焦点边界 ≥3:1 */

/* —— §5 步骤 0 · 加载页 —— */
.view-loading {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: var(--bg-cream);
  transition: opacity var(--t-component) var(--ease-out);
}
.view-loading.is-out { opacity: 0; }
.loading-art { width: min(256px, 68vw); height: min(256px, 68vw); } /* §2.5：lz-loading 256×256 显示 */
.loading-copy { margin: 0; font-size: 12px; color: var(--ink-600); letter-spacing: 2px; }

/* §2.5 · 懒羊羊资产管线挂载位（assets.js mountAsset）：占位符 → 实图同一容器 */
.lz-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* —— §4 页面 1 · 转盘页（.content 内子项：撑满内容区做顶栏/居中/按钮三段布局；
   app shell 高度由 .app 统一接管，见 §2.7 层 1）—— */
.view-wheel {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  opacity: 0;
}
.view-wheel.is-in {
  opacity: 1;
  transition: opacity var(--t-component) var(--ease-out);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar-info { min-width: 0; }
.date { margin: 0; font-size: var(--fs-title); font-weight: 700; line-height: 1.3; } /* §2.3 页标题（UI-04 阶梯） */
.count { margin: 2px 0 0; font-size: var(--fs-sub); color: var(--ink-600); }       /* §2.3 辅助 */

.chip {
  flex: none;
  max-width: 40vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  appearance: none;
  border: 1px solid var(--ink-300);
  background: var(--bg-cream);
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1;
  min-height: 44px;                 /* M4 触达面积：28px → 44px（§14 可点元素触达） */
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out);
}
.chip:active { transform: scale(0.97); background-color: var(--glass-bg); } /* §14-13 */

/* 中央区（UI-06：富余高度让位于轮盘上方——转盘/道具/CTA 成组，间距收敛到 ~30px） */
.center {
  position: relative;   /* P1-5：全部选项浮层以中央区为定位上下文（不越出「转！」上方） */
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 0;
}

/* UI-07 · 轻量品牌行（不抢转盘视觉中心；与日期行同族排版） */
.brand-bar {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 2px 2px 6px;
}
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: 1px; color: var(--ink-900); flex: none; white-space: nowrap; }
.brand-slogan { font-size: var(--fs-sub); color: var(--ink-600); flex: none; white-space: nowrap; }
/* P1-5 · 长菜名全名入口（品牌行尾，非 hover-only；视觉高度克制，透明热区 ≥44px） */
.wheel-list-btn {
  position: relative;
  margin-left: auto;
  align-self: center;
  flex: none;
  white-space: nowrap;
  appearance: none;
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 2px;
  font-family: inherit;
  font-size: var(--fs-sub);
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  border-radius: 10px;
  transition: color var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
.wheel-list-btn::after { content: ''; position: absolute; inset: -10px -6px; } /* 透明热区上下外扩至 ≥44 高 */
.wheel-list-btn svg { display: block; }
.wheel-list-btn:active { transform: scale(0.97); color: var(--ink-900); } /* §14-13 */
@media (hover: hover) {
  .wheel-list-btn:hover { color: var(--ink-900); }
}
/* P2-1：320 窄屏品牌行不拆字——按钮收成图标（aria-label/title 保留可访问名），
   三件套 flex:none + nowrap 防中文被压行；390/1440 仍显示「查看全部选项」文字。 */
@media (max-width: 360px) {
  .wheel-list-btn { padding: 9px; }
  .wheel-list-btn-label { display: none; }
  .wheel-list-btn svg { width: 18px; height: 18px; }
}

.wheel-zone { position: relative; }
.wheel-breath {
  position: relative;
  width: min(86vw, 330px);
  aspect-ratio: 1;
  overflow: hidden; /* MC-FIX1：boost 环以旋转方形元素框驱动，裁到内切圆（环为内切圆视觉无损；.pick-sticker 在 .wheel-zone 层不受此裁剪） */
}

/* ============================================================
   V1.2 · 卡片式轮盘（参考轮盘结构 + 品牌融合；DOM 组件样式）
   结构：.wheel-stage（舞台=白盘底）> .wheel-rotor（旋转刚体：外环+灯珠+菜品卡）
   + .wheel-center（火焰指针/细环/绵羊盘心，永不旋转）。
   动画纪律：旋转/呼吸 rAF（card-wheel.js）；CSS transition 仅 ≤300ms 群演。
   ============================================================ */
.wheel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: none;              /* 拖拽转盘：劫持触摸滚动 */
  cursor: grab;
  user-select: none;
  -webkit-touch-callout: none;     /* 微信长按不弹菜单 */
}
.wheel-stage.is-dragging { cursor: grabbing; }
/* 白盘底（白盘无方向性不随转；奶油内晕 + 外圈投影承接 §2.6 精修语义） */
.wheel-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, var(--wheel-disc-glow) 0 30%, var(--wheel-disc-bg) 68%);
  box-shadow: var(--wheel-ring-shadow);
}
.wheel-rotor {
  position: absolute;
  inset: 0;
  will-change: transform;          /* 唯一 transform: rotate 层（GPU 合成） */
}
/* 金橙渐变外环（conic 六段品牌化；mask 收成环带，厚度 ≈ 参考实测 0.05R） */
.wheel-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--wheel-ring-1) 0deg 70deg,
    var(--wheel-ring-2) 70deg 120deg,
    var(--wheel-ring-3) 120deg 175deg,
    var(--wheel-ring-4) 175deg 230deg,
    var(--wheel-ring-5) 230deg 295deg,
    var(--wheel-ring-6) 295deg 360deg
  );
  -webkit-mask: radial-gradient(closest-side, transparent 0 92%, #000 93.5% 98.5%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 0 92%, #000 93.5% 98.5%, transparent 100%);
}
/* 灯珠（×n 与卡片同角位，白核 + 暖晕，常亮不闪——参考实测口径；随刚体旋转） */
.wheel-bulb {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--wheel-bulb) 0 55%, var(--wheel-bulb-halo) 100%);
}
/* —— 菜品卡 · N05 票签重绘（AUDIT1115-C4 · 报告 6.1 方案A「食物票签」）——
   88×52 比奶油票签：近水平（倾角钳制 ±6° 由 card-wheel 逐帧补偿）、左图标右店名、
   低饱和奶油底 + 统一深墨字、单层柔和阴影 + 细边框；衬卡层退役（单层口径）。 */
.dish-card {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  will-change: transform;           /* N05：卡体逐帧钳制补偿（同 rotor 合成层口径） */
}
.dish-breathe {
  position: absolute;
  inset: 0;
  transform-origin: 50% 88%;       /* 呼吸 scaleY 底部偏置（参考红包翻盖开合语义） */
  transition: opacity var(--t-component) var(--ease-out); /* 仅透明度（transform 由呼吸 rAF 驱动） */
}
.dish-card.is-enter .dish-breathe { opacity: 0; }
/* 衬卡退役：票签单层（元素保留为结构兼容，N05 前主卡+衬卡双层口径废止） */
.dish-backing {
  display: none;
}
/* 票面：低饱和奶油调底色由 JS 混色内联（palette→奶油 62%）；19% 圆角（88px 名义≈16.7px）；
   细边框色 JS 同色相半混；单层柔和阴影复用盘体投影 token */
.dish-face {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 13px;              /* 兜底值；实际随卡宽 19% 由 JS px 直投（% 在非正方形上成椭圆角） */
  background-image: none;          /* 票签平涂（旧高光渐变随双层卡面一并退役） */
  border: 1px solid transparent;
  box-shadow: var(--wheel-ring-shadow);
  transition:
    transform var(--t-component) var(--ease-out),
    filter var(--t-component) var(--ease-out),
    opacity var(--t-component) var(--ease-out),
    box-shadow var(--t-component) var(--ease-out);
}
/* UI-05：文字层独立于卡面——card-wheel.draw() 每帧反向旋转补偿，菜名恒水平可读；
   N05 票签行布局：左食物图标 + 右店名（≤两行截断） */
.dish-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 6%;
  padding: 4% 6% 4% 5%;
  will-change: transform;
}
.dish-icon {
  flex: none;
  width: var(--icon-px, 30%);
  aspect-ratio: 1;
  display: block;
}
.dish-icon svg { display: block; width: 100%; height: 100%; }
.dish-name {
  flex: 1 1 auto;
  min-width: 0;                     /* flex 行内允许收缩，两行截断才生效 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.16;
  text-align: left;
  font-weight: 700;
}
/* UI-03 + P0-2：卡面文字默认墨色（六色票底实测 6.49–10.09:1）；深色卡底保奶油白
   （判色由 card-wheel.preferInkText 按 WCAG 对比度实算，不再用亮度阈值猜） */
.dish-content { color: var(--ink-900); }
.dish-face:not(.is-dark-ink) .dish-content { color: var(--bg-cream); }
/* N05 状态徽记：加概率 ⚡ / 指定 👑（右上角小圆徽，挂卡体层不受呼吸/灰显影响；
   默认隐藏，由 .is-boost / .is-pick 状态类点亮——bolt/crown 图标同源 app.js 道具角标） */
.dish-badge {
  position: absolute;
  top: -12%;
  right: -4%;
  height: 48%;
  aspect-ratio: 1;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wheel-disc-bg);
  box-shadow: var(--wheel-ring-shadow);
  z-index: 3;
}
.dish-badge svg { display: block; width: 66%; height: 66%; }
.dish-badge-bolt { color: var(--bolt-gold); }
.dish-badge-crown { color: var(--orange-strong); }
.dish-card.is-boost .dish-badge-bolt { display: flex; }
.dish-card.is-pick .dish-badge-crown { display: flex; }
/* 预览/回放态（veto 灰显塌缩 + N05 删除线 / boost 放大光环 + ⚡ 徽记——概率正确性在服务端） */
.dish-card.is-veto .dish-face {
  filter: grayscale(1);
  opacity: 0.45;
  transform: scale(0.88);
}
.dish-card.is-veto .dish-name {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}
.dish-card.is-boost {
  z-index: 3;
}
.dish-card.is-boost .dish-face {
  transform: scale(1.12);
  box-shadow: 0 0 0 3px var(--bolt-gold), var(--shadow-float);
}
/* —— 中心组（永不旋转；z 在环带之上，火焰盖环顶 2-3px 的参考遮挡关系）—— */
.wheel-center {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.center-flame {
  position: absolute;
  left: 50%;
  top: 2.2%;
  width: 6%;
  aspect-ratio: 1;
  border-radius: 0 55% 55% 55%;
  background: linear-gradient(135deg, var(--wheel-flame-1) 8%, var(--wheel-flame-3) 92%);
  transform: translateX(-50%) rotate(45deg); /* 水滴火焰尖朝 12 点 */
}
.center-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 31%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--center-ring-1), var(--center-ring-2), var(--center-ring-1));
  -webkit-mask: radial-gradient(closest-side, transparent 0 79%, #000 81% 97%, transparent 99%);
  mask: radial-gradient(closest-side, transparent 0 79%, #000 81% 97%, transparent 99%);
  transform: translate(-50%, -50%);
}
.center-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wheel-disc-bg);
  box-shadow: var(--center-hub-inset), var(--shadow-float);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hub-img {
  width: 92%;
  height: 92%;
  object-fit: cover;
  border-radius: 50%;
}

/* —— V1.2 · spin 白纱罩（盖除轮盘外全部；轮盘经 .is-veiled 提升至纱罩上保持鲜艳）—— */
.veil-spin {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--veil-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 500ms var(--ease-out);
}
.veil-spin.is-on { opacity: 0.96; pointer-events: auto; }
.veil-spin.is-out { opacity: 0; pointer-events: none; transition-duration: var(--t-component); } /* D4#10：300ms 原值恰好对齐既有档，零视觉变更 */
.view-wheel.is-veiled .wheel-zone { z-index: 45; } /* 纱罩之上（参考 z 序：轮盘 > 纱罩 > 页面内容） */

/* —— §3 FR-4 空状态 —— */
.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 12px 8px;
  opacity: 0;
}
.empty.is-in {
  opacity: 1;
  transition: opacity var(--t-component) var(--ease-out), transform var(--t-component) var(--ease-out);
  transform: translateY(0);
}
.empty:not(.is-in) { transform: translateY(12px); }
.empty-art {
  width: min(176px, 48vw);
  aspect-ratio: 1;
} /* §2.5 · lz-empty 资产挂载位（assets.js mountAsset；占位符 → 实图） */
.empty-copy { margin: 0; font-size: 15px; color: var(--ink-600); }

/* —— P1-5 · 全部选项浮层（长菜名全名入口；非模态、绝对定位于 .center 底部 ——
   宽度 ≤80vw、列表字号 16px（≥16 验收线）、实底奶油 + 深墨字（对比度 >4.5:1）；
   最大高度受 .center 约束，列表内部滚动；不进入「转！」所在的 .spin-row 区域。
   动画仅 opacity/transform ≤160ms，reduced-motion 由全局 0ms 规则直切。 */
.wheel-list-pop {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 6;
  width: min(340px, 80vw);
  max-height: min(56vh, calc(100% - 24px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 12px 6px;
  background: var(--bg-cream);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity var(--t-micro) var(--ease-out), transform var(--t-micro) var(--ease-out);
}
.wheel-list-pop.is-open { opacity: 1; transform: translate(-50%, 0); }
.wheel-list-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--glass-border);
}
.wheel-list-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-600);
  letter-spacing: 2px;
}
.wheel-list-close {
  appearance: none;
  border: none;
  background: none;
  flex: none;
  width: 44px;              /* 触达面积 */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out);
}
.wheel-list-close:active { transform: scale(0.97); background-color: var(--glass-bg); } /* §14-13 */
.wheel-list {
  list-style: none;
  flex: 1 1 auto;
  min-height: 0;
  margin: 4px 0 0;
  padding: 0 0 2px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.wheel-list li {
  padding: 9px 2px;
  font-size: 16px;          /* 验收：全名浮层字号 ≥16px */
  line-height: 1.45;
  color: var(--ink-900);    /* 奶油底对比度 >4.5:1 */
  overflow-wrap: anywhere;  /* 长名/kaomoji 不横向溢出 */
  border-bottom: 1px dashed var(--glass-border);
}
.wheel-list li:last-child { border-bottom: none; }

/* —— 按钮 —— */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--bg-cream);
  background: var(--orange-strong); /* UI-03：主操作底色（白字 5.09:1 达标；品牌亮橙保留为强调/描边） */
  border-radius: var(--radius-btn);
  transition: transform var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out), opacity var(--t-micro) var(--ease-out), filter var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out);
}
.btn:active { transform: scale(0.97); background-color: var(--orange-strong-deep); } /* §14-13 + UI-03 按压态 */
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-spin {
  padding: 14px 60px;
  font-size: calc(var(--fs-body) + 2px);
  letter-spacing: 2px;
  background: linear-gradient(105deg, var(--orange-strong) 0%, var(--orange-strong-deep) 60%, var(--orange-strong-deep) 100%);
  box-shadow: var(--cta-glow);
}
.btn-spin:active { background: linear-gradient(105deg, var(--orange-strong-deep) 0%, var(--orange-strong-deep) 60%, var(--orange-strong-deep) 100%); }
.spin-row { display: flex; justify-content: center; padding-top: 6px; }

/* —— AUDIT1115-C3 · N13 拖拽可发现性提示条（一次性；localStorage 已读标记，JS 控制显隐）——
   流内小胶囊（§2.7 禁 fixed 清单外）；透明度+8px 位移 200ms 浮现；
   reduced-motion 由全局 0ms 规则直切；热区 ≥44（N06 口径）。 */
.drag-hint {
  width: max-content;
  max-width: 100%;
  margin: 10px auto 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); /* §2.1 毛玻璃参数（同 .tabbar） */
  backdrop-filter: blur(16px) saturate(1.6);
  font-size: 13px;
  color: var(--ink-600);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.drag-hint.is-show { opacity: 1; transform: translateY(0); }

.btn-primary { padding: 12px 22px; }
.btn-block { display: block; width: 100%; }

/* —— §2.1 浮层 · 底部毛玻璃 tab 栏 ——
   §2.7 层 1（V1.1）：流内布局——.app 的最后一个 flex 子项，禁止 position:fixed
   贴视口底（iOS 微信前进/后退工具栏不属 safe-area 体系，fixed 底栏必被遮盖）；
   padding-bottom 兜 Home 小黑条；毛玻璃参数不变。 */
.tabbar {
  flex: none;
  margin: 10px auto 8px;
  display: flex;
  gap: 4px;
  padding: 8px 10px;
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  border-radius: var(--radius-card);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); /* §2.1 毛玻璃参数 */
  backdrop-filter: blur(16px) saturate(1.6);
}
.tab {
  appearance: none;
  border: none;
  background: none;
  color: var(--ink-600);
  min-width: 76px;
  padding: 5px 10px 4px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
}
.tab:active { transform: scale(0.97); }      /* §14-13 */
.tab.is-active { color: var(--orange-strong); cursor: default; } /* UI-03：选中态 4.83:1 */
.tab-icon { display: block; width: 24px; height: 24px; }
.tab-icon svg { display: block; }
.tab-label { font-size: var(--fs-sub); line-height: 1.2; } /* §2.3 辅助（桌面抬升见阶梯） */

/* —— 弹层通用（scrim + 卡）—— */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.scrim {
  position: absolute;
  inset: 0;
  background: var(--ink-900);
  opacity: 0.32;
  transition: opacity 200ms var(--ease-out);
}
.overlay:not(.is-open) .scrim { opacity: 0; }

/* §2.1 浮层 · 毛玻璃卡（签文卡 / 昵称弹窗专用，主干禁用） */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
}

.card {
  position: absolute;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 340px;
  padding: 22px 20px 20px;
  will-change: transform, opacity;   /* spring 由 JS rAF 驱动 */
}
.card-kicker {
  margin: 0;
  font-size: var(--fs-sub);
  color: var(--ink-600);
  letter-spacing: 4px;
  text-align: center;
}
.card-hint { margin: 6px 0 0; font-size: var(--fs-sub); color: var(--ink-600); text-align: center; } /* M4 对比度达标（7.4:1） */

/* §5 步骤 3 · 签文卡（V1.1 双面结构，FR-4 翻转仪式）：
   .card-stage 承接定位与 spring 弹入（JS 作用层）；.flipper 承接绕 X 轴翻转
   （§2.4：rotateX 0→180，600ms cubic-bezier(0.16,1,0.3,1)，容器透视 1200px，
   两面 backface-hidden）；grid 同格叠放 → 容器高 = 两面中较高者（背面内容
   溢出风险归零）。reduced-motion 由全局 0ms 规则直切（两面直切）。 */
.card-stage {
  position: absolute;
  left: 16px;
  right: 16px;
  margin: 0 auto;
  max-width: 340px;
  will-change: transform, opacity;
  transform-origin: 50% 100%;
  perspective: 1200px;
}
.card-stage-fortune { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.flipper {
  display: grid;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.flipper.is-flipped { transform: rotateX(180deg); }
.face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.card.face {
  /* MA-FIX1 F1：relative 下沿用基类 left/right 会过约束（宽度退化为 shrink-to-fit、
     margin:auto 居中失效，解说到货被顶宽跳变）。改定宽 + 解除 left/right，两面同宽
     （grid 同格叠放自动对齐）；margin:0 auto（.card 基类）随之恢复居中。
     断点：≥372px 视口恒 340px；更窄视口 = 100vw - 32（两侧 16px 边距）。
     MA-FIX1 F2 + MF-2：flex 列，.fortune-name 与 .fortune-row 双 margin-top:auto——
     grid 叠放两面等高（较高面撑格），正面按钮行钉在卡底（贴底间距=padding 恒 ≈21px），
     剩余空间在「店名以上 / 解说词以下」两处均分（短文案不再全部坠在解说与按钮间）；
     背面经 MF-2 压缩（-40px+）后若矮于正面，.dorm-count 的 auto 同款均分兜背面重心。 */
  position: relative;   /* 覆写 .card 的 absolute 定位（grid 叠放自然高度） */
  left: auto;
  right: auto;
  width: min(340px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  max-height: 80vh;     /* AUDIT1115-C1（N01/6.2）：旧视口单位回退 */
  max-height: 80dvh;    /* 卡高上限 ≈80dvh——正文区滚动（.fortune-text）、按钮区钉底 */
}

/* AUDIT1115-C1（N01/审查 6.2）双面签文卡收容与卡面收敛：
   ① 长签文下正面只压缩 .fortune-text（其余子项不收缩，配合其 overflow-y:auto 滚动）；
   ② 卡面不透明度 0.72 → 0.96（6.2 建议 94–97% 取中）——转盘彩面透卡的「脏玻璃」随之
     收敛；token --glass-bg 不动（昵称/确认/统计卡等其他浮层口径不变）；
   ③ 卡面装饰只留右上单只小羊水印（藏左下爪印，lz-mark 资产管线不动）。 */
.card-stage-fortune .card.face {
  background: var(--glass-bg-strong);
}
.card-stage-fortune .face-front > :not(.fortune-text) { flex: none; }
.card-stage-fortune .paw-bl { display: none; }
.face-back { transform: rotateX(180deg); }
/* 非当前面的按钮不吃指针（backface-hidden 不拦截 hit-testing） */
.flipper:not(.is-flipped) .face-back,
.flipper.is-flipped .face-front { pointer-events: none; }

/* FR-4 · 休业公告卡面（§2.4：插画占位 + 大字「休业 7 天」+ 副文案 + 倒计时）
   MF-2 方案 C：背面压缩（art 108→84、各 margin 收紧，见各值），卡高由背面固有高定义
   时正面短文案留白不失控（原背面撑高 339.4px → 压缩后 -44px）。art margin 与
   sub/count/title 收紧量在派单给定旋钮（108→84 / 8→6 / 10→8 / 10/14→8/10）之外
   补 6px：dorm-sub 4→0、dorm-art mt 6→4、dorm-title mt 8→6、dorm-count 底 10→8
   （全部背面部专用类，正面零波及；回执披露）。 */
.dorm-art { width: 84px; height: 84px; margin: 4px auto 0; } /* lz-dorm 挂载位（assets.js） */
.dorm-title {
  margin: 6px 0 0;
  font-size: 28px;       /* §2.3 签文结果字同档 28px/800 */
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}
.dorm-sub { margin: 0; font-size: 12px; color: var(--ink-600); text-align: center; }
.dorm-count { margin: 8px 0 8px; font-size: 15px; font-weight: 700; color: var(--sleep-blue); text-align: center; }
.fortune-name {
  /* MF-2 方案 C：margin-top auto——与 .fortune-row 的 auto 构成双自动边距，flex 列
     剩余空间在「店名以上 / 解说词以下」两处均分（视觉重心居中，短文案不再坠底留 100px+）。 */
  margin-top: auto;
  font-size: 28px;      /* §2.3 签文结果字 28px/800 */
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  display: -webkit-box;          /* AUDIT1115-C1（N01/6.2）：长标题最多两行 */
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* AUDIT1115-C1（N01/6.2）：长标题自适应字号（openCeremony 按店名长度挂档）——
   ≥13 字 26px / ≥18 字 24px（20 字名 24px 恰两行，两行内完整可读） */
.fortune-name.sz-m { font-size: 26px; }
.fortune-name.sz-l { font-size: 24px; }
.fortune-seq {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--ink-600);
  text-align: center;
}
/* P2-6 · 游客结果提示（弱字，不抢签文/按钮；不阻塞后续转动） */
.fortune-guest-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-600);
  text-align: center;
}
.fortune-text {
  margin: 14px 0 12px;  /* AUDIT1115-C1（N01/6.2）：底边距 0→12——正文与按钮区最小间距
                           （卡高触顶 auto 归零时兜底；短文案态 MF-2 双 auto 对称性随之
                           偏移 12px，mf-probe 仅测量无断言，回执披露） */
  min-height: 24px;     /* MA-FIX1 F2：占位收缩 48→24（一行 15px×1.6 行高）；空态由
                           占位文案真实占高（见 .is-waiting），不再悬空 48px 顶坠按钮行 */
  font-size: 15px;
  color: var(--ink-600);
  text-align: center;
  flex: 0 1 auto;       /* AUDIT1115-C1：卡 max-height 触顶时唯一下缩子项（其余 flex:none） */
  overflow-y: auto;     /* 正文区滚动（6.2：长签文收容，按钮行恒钉卡底不遮正文） */
  overscroll-behavior: contain;
}
.fortune-text.is-waiting {
  /* MA-FIX1 F2：解说未到空态——弱字占位（仅视觉占位，不入历史/分享图文案；
     到货后 JS 移除本类并逐字替换同一容器，卡宽已由 F1 锁定不跳变） */
  font-size: 12px;
  color: var(--ink-600); /* D2#05：占位文案承载信息，--ink-300 实测 1.84:1 → 7.39 */
}
/* 逐字浮现：单字符 span（spring + 淡入由 JS 驱动，§2.4） */
.char { display: inline-block; will-change: transform, opacity; }

/* §5 步骤 3 · 底部按钮行：「记下了」+「晒一晒」（CHG-006，M4）
   MA-FIX1 F2 + MF-2：margin-top:auto（与 .fortune-name 构成双自动边距）——两面等高
   stretch 下按钮行恒贴卡底（间距=padding ≈21px），剩余空间两处均分（重心居中） */
.fortune-row { display: flex; gap: 12px; margin-top: auto; }
.fortune-row .btn { flex: 1 1 1px; }

/* CHG-006 · 晒一晒浮层（毛玻璃弹窗 = §2.1 允许浮层，复用 .glass） */
.card-share { top: 50%; }
.share-img-wrap {
  margin-top: 14px;
  opacity: 0;
  transition: opacity var(--t-micro) var(--ease-out); /* 群演 ≤200ms；reduced-motion 由全局 0ms 直出 */
}
.share-img-wrap.is-in { opacity: 1; }
#share-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  -webkit-touch-callout: default;   /* 微信长按存图（不随转盘/卡片的禁长按规则） */
}
/* P2-7 · 显式保存入口（<a download> 视觉等同主按钮；≥44px、键盘可达） */
.share-save {
  margin-top: 14px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}
.share-save:active { transform: scale(0.97); background-color: var(--orange-strong-deep); }
/* P2-7 · 站点地址（可点击；长地址在 390px 下折行不横向溢出） */
.share-site {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-600);
  text-align: center;
  overflow-wrap: anywhere;
}
.share-site-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;         /* 触达面积 */
  padding: 6px 4px;
  color: var(--ink-900);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.share-site-link:active { color: var(--orange-strong); }
#btn-gen-share { margin-top: 14px; }

/* §2.5 · 签文卡角落水印（V1.1：lz-mark 资产管线，assets.js mountAsset 挂载；
   透明底低存在感由资产自身承担——替代 v1.0 简笔爪印） */
.paw {
  position: absolute;
  width: 40px;
  height: 40px;
  pointer-events: none;
}
.paw-tr { top: 12px; right: 12px; transform: rotate(18deg); }
.paw-bl { bottom: 12px; left: 12px; transform: rotate(-14deg); }

/* §3 FR-2 · 昵称弹层 */
.card-nick { top: 50%; }
.nick-input,
.add-input {
  display: block;
  width: 100%;
  margin: 16px 0 14px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: var(--fs-input); /* D3#07：15px → 16px（iOS 聚焦放大根治；占位符实测不截断） */
  color: var(--ink-900);
  background: var(--bg-cream);
  border: 1px solid var(--line-input); /* D2#05：控件边界 ≥3（实测 4.31） */
  border-radius: 14px;
  outline: none;
  caret-color: var(--orange-primary); /* M4 原生面主题化 */
}
.nick-input:focus,
.add-input:focus { border-color: var(--orange-primary); }
.nick-input::placeholder,
.add-input::placeholder { color: var(--ink-600); } /* D2#05：占位符是视觉唯一输入提示（aria-label 只兜读屏），1.79 → 7.18 */

/* —— §2.4 · 粒子层（全站唯一粒子；600ms 后 JS 移除 DOM）—— */
.particle-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 90;
}
.particle {
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  will-change: transform, opacity;
}

/* —— toast（tab 占位 / 错误提示；群演 ≤200ms）——
   D3 尾巴修复：原 left:50% 无 right → fixed 收缩到适应可用宽 = 视口−left = 50vw，
   max-width:78vw 上限大于可用宽等于没写（375 实际盒宽上限 187.5、320 仅 160，
   12 字短句在 320 折 2 行）。改 left/right:0 + margin-inline:auto + fit-content，
   包含块可用宽恢复 100vw，78vw 上限才真正生效；水平居中由 margin 承担，
   transform 只留 Y 轴群演（.is-show 的 translateX(-50%) 必须同步去掉，否则左偏半宽）。 */
.toast {
  position: fixed;
  left: 0;
  right: 0;
  margin-inline: auto;
  width: fit-content;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateY(8px);
  max-width: 78vw;
  padding: 9px 18px;
  border-radius: var(--radius-btn);
  background: var(--ink-900);
  color: var(--bg-cream);
  font-size: 12px;
  text-align: center;
  opacity: 0;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  z-index: 95;
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translateY(0); }

/* D3#03 · 浮层在场时 toast 让位到顶部（族级修复，不止补评卡）。
   根因：.toast z-index:95 恒高于 .overlay z-index:60，且 bottom:84px 与
   .card-rating / .card-stage-fortune 的 bottom:86px 几乎同底——实测（8320 基线）
   补评卡「记下了」被压 1872.75px²（按钮下缘 14.19px/44px 高）、周报「知道了」
   4908.75px²、道具抽屉列表 2231.25px²、签文卡「记下了」553.31px²。
   pointer-events:none 不变（原本就不拦点击，纯视觉误导）。
   选择器口径：#toast 是 index.html:421 的 body 直接子元素，9 个浮层全部
   同父前置兄弟 → ~ 可用（零 JS、零 :has() 兼容风险）。
   判据用 :not([hidden]) 而非 .is-open——实测「开→立即 Esc」竞态下
   hidden=true 但 is-open 残留（openXxx 的 rAF 补类晚于 close 的同步 remove，
   仅 #prop-overlay 存了句柄防护），用 .is-open 会把 toast 永久钉在顶部。
   top:16px 是唯一安全值：56/64/72px 会撞周报卡（卡顶 y≈60.6）。
   180ms 淡入 / transform 群演 / pointer-events:none 沿用 .toast 原声明；
   reduced-motion 由全局 0ms 规则直切。 */
.overlay:not([hidden]) ~ .toast,
.cele-overlay:not([hidden]) ~ .toast {
  top: calc(16px + env(safe-area-inset-top, 0px));
  bottom: auto;
}

/* ============================================================
   V1.2 · 中奖庆祝层（参考 §6 stagger 链的绵羊品牌版）
   全部连续动画由 wheel/celebration.js rAF 驱动（transform/opacity）；
   本区零关键帧；z：白纱罩(40) < 庆祝层(50) < 弹层族(60)。
   ============================================================ */
.cele-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  overflow: hidden;
}
.cele-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--cele-wash-top) 0%, var(--cele-wash-bottom) 78%);
  opacity: 0;
}
/* 太阳光芒：14 臂低对比暖金（repeating-conic 25.7° pitch）+ 径向淡出遮罩；旋转/脉冲由 JS */
.cele-sunburst {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(620px, 152vw);
  aspect-ratio: 1;
  margin-left: calc(min(620px, 152vw) / -2);
  margin-top: calc(min(620px, 152vw) / -2);
  border-radius: 50%;
  background: repeating-conic-gradient(var(--cele-ray) 0deg 12.85deg, var(--cele-gap) 12.85deg 25.7deg);
  -webkit-mask: radial-gradient(closest-side, #000 0 30%, rgba(0, 0, 0, 0.55) 46%, transparent 70%);
  mask: radial-gradient(closest-side, #000 0 30%, rgba(0, 0, 0, 0.55) 46%, transparent 70%);
  opacity: 0;
  will-change: transform, opacity;
}
/* 放大菜品卡（衬卡 + 竖构图：图标 → 虚线裁切线 → 菜名）——入场 transform 全由 JS 驱动 */
.cele-card-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 23%;
  display: flex;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
}
.cele-card-wrap { position: absolute; }
.cele-card-wrap .cele-backing,
.cele-card-wrap .cele-card { width: min(46vw, 180px); }
.cele-backing {
  position: absolute;
  top: 0;
  aspect-ratio: 176 / 224;
  border-radius: 18px;
  background: var(--wheel-backing-cream);
  transform: rotate(10deg) translate(9%, 6%);
}
.cele-card {
  position: relative;
  aspect-ratio: 176 / 224;
  border-radius: 18px;
  background: linear-gradient(170deg, var(--cele-card-1), var(--cele-card-2));
  box-shadow: var(--shadow-float);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9%;
  color: var(--ink-900); /* UI-03：珊瑚渐变底改墨字（名称为大字号 ≥3:1 达标且更稳） */
}
.cele-icon { width: 42%; aspect-ratio: 1; display: block; }
.cele-icon svg { display: block; width: 100%; height: 100%; }
.cele-dash {
  width: 68%;
  border-top: 2px dashed var(--cele-dash);
}
.cele-name {
  max-width: 84%;
  font-size: clamp(20px, 6vw, 24px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 1px;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
/* 彩虹洞口 + 绵羊吉祥物（洞口在吉祥物之上 → 弹出遮挡关系 = 参考 hole z < mascot 视觉翻转口径：
   绵羊从洞后钻出，下半被洞口白椭圆盖住） */
.cele-hole-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 68%;
  height: 44px;
  display: flex;
  justify-content: center;
  opacity: 0;
  will-change: transform, opacity;
}
.cele-hole-glow {
  position: absolute;
  top: -26px;
  left: 50%;
  width: min(360px, 92vw);
  height: 96px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse at center, var(--cele-glow-a) 0 32%, var(--cele-glow-b) 56% 74%, var(--cele-glow-c) 100%);
  filter: blur(6px);
  opacity: 0.85;
}
.cele-hole {
  position: relative;
  width: min(300px, 76vw);
  height: 44px;
  border-radius: 50%;
  background: var(--cele-hole);
  box-shadow: var(--shadow-float);
  z-index: 2;
}
.cele-mascot {
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 104px;
  height: 104px;
  margin-left: -52px;
  z-index: 1;
  will-change: transform, opacity;
}
.cele-mascot-rays {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--cele-ray) 0deg 15deg, transparent 15deg 30deg);
  -webkit-mask: radial-gradient(closest-side, transparent 0 55%, #000 62% 92%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 0 55%, #000 62% 92%, transparent 100%);
  opacity: 0.6;
}
.cele-mascot-bubble {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wheel-disc-bg);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cele-mascot-bubble img {
  width: 88%;
  height: 88%;
  object-fit: cover;
  border-radius: 50%;
}
/* 彩色星星（四角星 clip-path；闪烁循环由 JS rAF） */
.cele-star {
  position: absolute;
  width: 30px;
  height: 30px;
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  background: var(--star-gold);
  opacity: 0;
  will-change: transform, opacity;
}
.cele-star-a { top: 18%; left: 13%; }
.cele-star-b {
  top: 33%;
  right: 11%;
  width: 24px;
  height: 24px;
  background: var(--orange-primary);
}

/* —— §2.4 / §14-12：reduced motion → CSS 侧全部直切（JS 侧见 fx.prefersReduced）—— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0ms !important;
  }
}

/* —— UI 审查 MO-02 · 指针设备 hover/active 反馈（触屏不受影响；无布局位移，160ms）—— */
@media (hover: hover) {
  .btn:not(:disabled):hover { filter: brightness(1.06); box-shadow: var(--shadow-float); }
  .btn-ghost:not(:disabled):hover { background-color: var(--glass-bg); filter: none; }
  .chip:not(:disabled):hover,
  .btn-nav:not(:disabled):hover,
  .about-btn:not(:disabled):hover { background-color: var(--glass-bg); }
  .prop-capsule:not(:disabled):hover { color: var(--ink-900); }
}

/* ============================================================
   UI 审查 UI-01 / UI-04 · 桌面端布局与字体阶梯（≥768px）
   - P0-1（挑刺官 2026-12-06）：三页统一版心——菜单/历史 720px（规格 560–720 上限），
     轮盘页 480px（header/轮盘/主按钮同列，tabbar 流内居中）；均 margin-inline:auto
   - 字体阶梯抬升：标题 24 / 正文 16 / 辅助 14（移动端维持 20/15/12 不变）
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --fs-title: 24px;
    --fs-body: 16px;
    --fs-sub: 14px;
  }
  .view-menu,
  .view-history {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  /* UI-01 + P0-1：首页桌面收敛为 480px 居中窄列（品牌行/转盘/操作组成完整视觉模块；
     原 560px 下菜名与状态仍可横跨 500px+，按挑刺官规格收紧到建议值） */
  .view-wheel {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .brand-name { font-size: 22px; }
}

/* ============================================================
   D1#01（P0）· 手机横屏兜底（高度 ≤500px 且宽 > 高）
   根因：.wheel-breath 只按宽取 min(86vw,330px)，矮视口下 330px 盘塞不进
   ~130px 的 .center；flex-end 对齐把盘顶推出滚动端口（stage top ≈ −186px），
   而 .view-wheel height:100% 钉死内容高 → .content scrollHeight==clientHeight
   永不可滚，火焰指针/上半圈菜品卡永久丢失。
   修法：① 盘尺寸改 min(86vw,330px,52vh) 随矮视口收缩（375/390/430 高分别
   ≈195/203/224px，恒小于 .content 可视高，整盘必有一屏完整可见的滚动位）；
   ② .view-wheel 改 min-height:100%（自然高下限撑满），极端矮屏由 .content
   既有 overflow-y 内滚兜底找回；③ .center 改 flex-start——富余空间留底部，
   任何情况下不再向上溢出；④ 品牌行/统计副行让位（信息在关于层/历史页仍可查）。
   竖屏（高 >500px）不进本断点，零回归；尺寸重算走既有唯一
   viewport handler + CardWheel ResizeObserver → recompute()，零新增监听。
   ============================================================ */
@media (orientation: landscape) and (max-height: 500px) {
  .view-wheel {
    height: auto;
    min-height: 100%;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .brand-bar { display: none; } /* 品牌行让位矮视口（品牌仍在加载页/关于层） */
  .view-wheel .count { display: none; } /* 统计副行让位（历史页仍完整可查） */
  .center {
    flex: 1 0 auto;
    align-items: flex-start;
    padding-top: 4px;
  }
  .wheel-breath {
    width: min(86vw, 330px, 52vh);
  }
  .spin-row { padding-top: 4px; }
  .btn-spin { padding-top: 10px; padding-bottom: 10px; } /* 触达仍 ≥44px（18px 字行高 + 20px） */
}

/* ============================================================
   M3 · 菜单页 / 历史页 / 三页轻路由
   纪律延续：hex/rgba 零新增（全部 var() 既有 token）；零 CSS 关键帧；
   毛玻璃唯一新增消费点 = 统计卡（复用 .glass，§2.1/派单白名单）；
   其余卡片一律无 backdrop-filter（内容层）。
   ============================================================ */

/* —— 三页通用（菜单/历史；转盘页沿用 .view-wheel 规则）——
   V1.1 §2.7：app shell 高度由 .app 接管；本区自然高度，超高由 .content 内滚。 */
.view-page {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  opacity: 0;
}
.view-page.is-in {
  opacity: 1;
  transition: opacity var(--t-component) var(--ease-out);
}
/* §2.4 底部导航行：页面交叉淡化 + blur(2px)——出场 180ms，合计 ≤500ms 转场 */
.view-wheel.is-out,
.view-page.is-out {
  opacity: 0;
  filter: blur(2px);
  transition: opacity 180ms var(--ease-out), filter 180ms var(--ease-out);
}

.page-title { margin: 0; font-size: var(--fs-title); font-weight: 700; line-height: 1.3; } /* §2.3 页标题（UI-04 阶梯） */
.page-sub { margin: 2px 0 0; font-size: var(--fs-sub); color: var(--ink-600); }          /* §2.3 辅助 */

/* —— 菜单页 —— */
.menu-scroll { flex: 1 1 auto; min-height: 0; }

.opt-list,
.dormant-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 左滑删除：删除钮垫底（右侧），卡片覆盖其上左移露出（transform/transition，无关键帧）。
   UI-02：wrap 裁剪滑出部分；展开态卡内 padding-left 补偿 → 菜名/标签回位可读，不再被挤出。 */
.swipe-wrap { position: relative; overflow: hidden; border-radius: 14px; }
.swipe-del {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 76px;
  appearance: none;
  border: none;
  background: var(--danger-strong); /* UI-03：危险操作底色（白字 5.44:1 达标） */
  color: var(--bg-cream);
  font-size: var(--fs-body);
  font-weight: 700;
  border-radius: 14px;
  cursor: pointer;
  /* UI-02：静止态整层隐藏（可见性延迟过渡=回弹完成后再藏，不突兀）；展开态由 .is-open 显示 */
  visibility: hidden;
  transition: transform var(--t-micro) var(--ease-out), visibility 0s linear 220ms;
}
.swipe-wrap.is-open .swipe-del {
  visibility: visible;
  transition-delay: 0s, 0s;
}
.swipe-del:active { transform: scale(0.97); } /* §14-13 */

.opt-card {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  background: var(--glass-bg);   /* 内容层卡片：只借半透白 token，无 backdrop-filter */
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  cursor: grab;
  touch-action: pan-y;           /* 竖向让位页面滚动，横向归左滑手势 */
  user-select: none;
  -webkit-touch-callout: none;
  transition: transform 200ms var(--ease-out), padding-left 200ms var(--ease-out); /* 松手吸附 + UI-02 内容回位 */
}
.swipe-wrap.is-open .opt-card { padding-left: calc(14px + 76px); } /* UI-02：滑开后菜名/标签回到可视区 */
.opt-card.is-drag { transition: none; cursor: grabbing; }
.opt-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--fs-body);
  font-weight: 700;
}

/* streak 徽标（FR-4）：连出 1 中性；连出 ≥2 橙色预警（再中即休眠） */
.streak-chip {
  flex: none;
  font-size: 12px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: var(--radius-btn);
  background: var(--bg-cream);
  color: var(--ink-600);
  border: 1px solid var(--ink-300);
}
.streak-chip.is-warn {
  background: var(--orange-strong); /* UI-03：警示 chip 底色达标（白字 5.09:1） */
  color: var(--bg-cream);
  border-color: var(--orange-strong-deep);
}

.menu-empty,
.hist-empty { margin: 26px 0; text-align: center; font-size: 12px; color: var(--ink-600); } /* M4 对比度：空态文案 1.8:1 → 7.2:1 */

/* —— UI 审查 FN-01/02/09 · 历史 loading 骨架 / 错误态 / 富空态 ——
   骨架为静态灰块（零关键帧纪律：不加脉冲动画，loading 语义由「日期行+骨架」+ aria-busy 承担）；
   错误态与空态构图同族（.hist-state），重试/回今天复用 .btn-ghost。 */
.hist-skeleton {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.sk-row {
  height: 64px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.hist-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 26px 8px 10px;
}
.hist-state-art { width: 120px; height: 120px; } /* lz-empty 资产管线挂载位 */
.hist-state-title { margin: 4px 0 0; font-size: 16px; font-weight: 700; color: var(--ink-900); }
.hist-state-copy { margin: 0; font-size: 13px; color: var(--ink-600); }
.hist-state .btn { margin-top: 10px; min-height: 44px; }
.nick-skip { margin-top: 10px; position: relative; } /* FN-03 先逛逛：主次按钮层次（主=就这个） */
/* AUDIT1115-C3 · N06：先逛逛视觉高度 ~24px 不变，透明热区上下外扩 10px 至 ≥44 高 */
.nick-skip::after {
  content: '';
  position: absolute;
  inset: -10px -6px;
}

/* 休眠区（灰显 + 倒计时 + 提前复活） */
.dormant { margin-top: 20px; }
.dormant-title { margin: 0 0 8px; font-size: 12px; color: var(--ink-600); letter-spacing: 2px; }
.dormant-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px dashed var(--ink-300);
  opacity: 0.85; /* 灰显（D2#04：0.62 把任何前景压到 <3:1；0.85 保留灰显且倒计时达标。非明度线索：虚线边框 + 「休眠」角标 + 倒计时/复活钮） */
}
.dormant-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dormant-info .opt-name { color: var(--ink-600); }
/* D2#04 守卫：opacity 提到 .85 后补「休眠」文字角标——与正常行的非明度区分线索
   （虚线边框之外的第二条；纯 CSS 文字，零图形资源、零 JS）。
   D3 追加修复：角标原挂 .opt-name::after，但 .opt-name 是 nowrap+ellipsis 截断容器，
   行内伪元素随文字一起被裁（20 字名裁半、30 字名整个吃进省略号——守卫恰在最需要的
   长名行失效）。挪到 .dormant-count::before（倒计时行不截断，角标恒完整）；
   margin-right 6px 与原 margin-left 6px 同距，vertical-align 1px 沿用。 */
.dormant-info .dormant-count::before {
  content: '休眠';
  margin-right: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-600);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-btn);
  vertical-align: 1px;
}
/* V1.1 FR-4：倒计时样式与休业公告卡对齐（--sleep-blue 同款） */
.dormant-count { font-size: 12px; font-weight: 700; color: var(--sleep-blue); }

.btn-mini {
  min-height: 44px;                 /* M4 触达面积：32px → 44px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 12px;
  flex: none;
}

/* 底部添加框（sticky 常驻滚动视口底部；奶油底遮住下穿内容。
   V1.1 §2.7：tab 栏已流内化，sticky 基准从 fixed-tabbar 避让改为 .content 滚动容器底） */
.add-row {
  position: sticky;
  bottom: 6px;
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 10px 4px;
  background: var(--bg-cream);
  z-index: 5;
}
.add-input { flex: 1 1 auto; min-width: 0; margin: 0; }
.btn-add { flex: none; padding: 12px 22px; }

/* —— 删除二次确认弹层（毛玻璃弹窗 = §2.1 允许浮层，复用 .glass）—— */
.card-confirm { top: 50%; }
.confirm-name {
  margin: 12px 0 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  overflow-wrap: anywhere;
}
.confirm-row { display: flex; gap: 12px; margin-top: 18px; }
.confirm-row .btn { flex: 1 1 1px; padding: 12px 0; }
.btn-ghost { background: var(--bg-cream); color: var(--ink-600); border: 1px solid var(--ink-300); }
.btn-ghost:active { background-color: var(--ink-300); }
.btn-danger { background: var(--danger-strong); } /* UI-03 */
.btn-danger:active { background-color: var(--danger-strong); } /* 保持红色按压（仅 scale 反馈） */

/* —— 历史页 —— */

/* FR-6 统计卡（毛玻璃浮层——M3 全站唯一新增 backdrop-filter 消费点，经 .glass） */
.stat-card { margin-top: 14px; padding: 16px 16px 14px; }
.stat-month { margin: 0 0 12px; font-size: 12px; color: var(--ink-600); letter-spacing: 2px; }
.stat-label { margin: 0 0 6px; font-size: 12px; color: var(--ink-600); }
.stat-top3 { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.top3-item { display: flex; align-items: center; gap: 8px; min-width: 0; }
.top3-rank {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--orange-strong); /* UI-03 */
  color: var(--bg-cream);
  font-size: var(--fs-sub);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.top3-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}
.top3-count { flex: none; font-size: 15px; } /* .num 自带 tabular-nums + 700（§2.3） */
.top3-empty { font-size: 12px; color: var(--ink-600); } /* M4 对比度：1.8:1 → 7.2:1 */
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.stat-block { min-width: 0; }
.stat-big { margin: 0; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.stat-big-name {
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stat-num { font-size: 28px; line-height: 1.1; } /* §2.3 统计大数字 700 字重（.num） */
.stat-unit { font-size: 12px; color: var(--ink-600); }

/* 日期切换器 */
.date-nav { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; }
.btn-nav {
  appearance: none;
  border: 1px solid var(--ink-300);
  background: var(--bg-cream);
  color: var(--ink-900);
  width: 44px;                      /* M4 触达面积：36px → 44px + ‹› 字形改 SVG 图标 */
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), opacity var(--t-micro) var(--ease-out);
}
.btn-nav svg { display: block; }
.btn-nav:active { transform: scale(0.97); } /* §14-13 */
.btn-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.hist-date { flex: 1 1 auto; margin: 0; min-width: 0; font-size: 15px; font-weight: 700; text-align: center; }
.chip-today { flex: none; }

/* 记录流 */
.hist-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hist-row {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.hist-line { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.hist-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
}
.seq-chip {
  flex: none;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-600);
  background: var(--bg-cream);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-btn);
  padding: 2px 8px;
}
.restated-chip {
  flex: none;
  font-size: 12px;
  line-height: 1.4;
  color: var(--bg-cream);
  background: var(--blue-secondary);
  border-radius: var(--radius-btn);
  padding: 2px 8px;
}
.hist-meta { margin: 4px 0 0; font-size: var(--fs-sub); color: var(--ink-600); }
.hist-fortune { margin: 6px 0 0; font-size: var(--fs-sub); color: var(--ink-600); line-height: 1.55; }

/* —— §2.4 微交互：列表项入场 stagger 0.05s/项 ≤10 项（transition 由 JS 加 .row-in 触发）—— */
.row-anim { opacity: 0; transform: translateY(8px); }
.row-anim.row-in {
  opacity: 1;
  transform: none;
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

/* ============================================================
   V1.1 MB · FR-7 补评卡 + 待评价弱入口（§2.4 补评卡动效 / §2.1 毛玻璃浮层）
   纪律延续：hex/rgba 零新增（全 var() 既有 token）；零 CSS 关键帧
   （星级 pop / 卡弹入由 js/fx.js rAF 驱动）；毛玻璃经 .glass 复用；
   MA-FIX1 F1 定宽 / F2 按钮行贴底口径沿用。
   ============================================================ */

/* —— 弱入口（V1.1 ME 迁入关于弹层）：文字按钮克制呈现（FR-7「不许显眼」：
   无强调色/无徽标底；N=0 隐藏由 JS 控制；触达 44px 高）—— */
.date-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; }
.pending-link {
  appearance: none;
  border: none;
  background: none;
  display: block;
  margin: 0 auto;
  min-height: 44px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-600);
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out);
}
.pending-link:active { transform: scale(0.97); } /* §14-13 可点按钮 */

/* —— 补评卡：毛玻璃浮层（族系同签文卡），底部定位 + spring(300,20) 从底部弹入（§2.4）。
   F1 口径：width:min(340px,100vw-32px)；left:50% + JS baseTransform translateX(-50%) 居中
   （同 .card-nick 的 translateY(-50%) 技法）；F2 口径：flex 列 + .rating-row margin-top:auto
   按钮行贴卡底。 */
.card-rating {
  top: auto;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px)); /* 与签文卡舞台同高（tab 栏上方） */
  left: 50%;
  right: auto;
  width: min(340px, calc(100vw - 32px)); /* MA-FIX1 F1 */
  display: flex;                        /* MA-FIX1 F2 */
  flex-direction: column;
  transform: translateX(-50%);          /* 静止位居中（JS 动画以 baseTransform 起步） */
}
.rating-name {
  margin: 10px 0 0;
  font-size: 16px;        /* 派单口径：店名 16px/600 --ink-900 */
  font-weight: 600;
  color: var(--ink-900);
  line-height: 1.4;
  text-align: center;
  overflow-wrap: anywhere;
}
.rating-date {
  margin: 4px 0 0;
  font-size: 12px;        /* §2.3 辅助 12/400 */
  color: var(--ink-600);
  text-align: center;
}
/* 星级点选：32px/星 + gap≥6px（领导者裁决：选择器非按钮，32px 合规）；
   未选 --ink-600 空心 / 选中 --orange-strong 实心（D2#06：形状+颜色双信号，WCAG 1.4.11；
   原 --ink-300/--star-gold 两态玻璃底实测均 <1.4:1）；
   逐星 pop 由 JS popStar（spring(340,24)，stagger index×20ms）驱动 */
.star-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 18px;
}
.star-btn {
  appearance: none;
  border: none;
  background: none;
  width: 32px;
  height: 32px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600); /* D2#06：未选空心描边 ≥3（玻璃底实测 5.35） */
  cursor: pointer;
  will-change: transform;
  position: relative; /* AUDIT1115-C3 · N06：视觉 32px 不变，热区外扩 ≥44×44 */
}
/* N06：透明热区四周外扩 6px（32+12=44；相邻 gap 6px，热区相接不重叠） */
.star-btn::after {
  content: '';
  position: absolute;
  inset: -6px;
}
.star-btn.is-on { color: var(--orange-strong); } /* D2#06：选中实心 ≥3（玻璃底实测 3.60）；形状信号=空心→实心 */
/* D2#06：path 自带 fill 呈现属性，CSS 优先级高于呈现属性 → 零 HTML/JS 改动实现两态形状 */
.star-btn svg path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.star-btn.is-on svg path { fill: currentColor; }
.star-btn svg { display: block; pointer-events: none; }
/* 按钮行贴卡底（F2）；「稍后再说」= 文字按钮 14px --ink-600 无强调色（§2.4 原文弱字口径，D2#05 提对比度） */
.rating-row { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rating-row .btn { flex: 1 1 1px; padding: 12px 22px; }
.rating-later {
  appearance: none;
  border: none;
  background: none;
  flex: none;
  min-height: 44px;       /* 触达面积 */
  padding: 10px 4px;
  font-family: inherit;
  font-size: 14px;        /* §2.4：文字按钮无强调色 */
  color: var(--ink-600);  /* D2#05：补评卡唯一退出路径，1.58 → 6.36；克制口径由字号/无底色承担 */
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out);
}
.rating-later:active { transform: scale(0.97); } /* §14-13 可点按钮 */

/* ============================================================
   V1.1 MC · FR-8 道具系统（§2.4 道具抽屉/加概率/否决特效 / §3 FR-8 UI 流 / FR-6 标记）
   纪律延续：hex/rgba 零新增（全 var() 既有 token）；零 CSS 关键帧
   （电光环旋转 = fx.rotateLoop rAF 驱动）；毛玻璃胶囊/抽屉为 FR-8 原文指定浮层族
   （胶囊排沿 tab 栏先例：.glass 参数复用）；reduced-motion 全直切（光环静止呈现）。
   ============================================================ */

/* —— 道具胶囊排（「转！」上方；数量 0 隐藏不占位 / 无卡整排隐藏由 JS 控制；
   UI-06：上边距 30px = 转盘→操作区目标间距，收紧为连续操作组）—— */
.prop-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;      /* 375px 窄屏可换行，不溢出 */
  gap: 10px;
  padding: 30px 6px 8px;
}
.prop-capsule {
  position: relative;
  appearance: none;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(1.6); /* §2.1 毛玻璃参数（FR-8 原文指定胶囊） */
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: var(--shadow-float);
  border-radius: var(--radius-btn);
  min-height: 44px;                          /* 触达面积 */
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  color: var(--ink-600);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
}
.prop-capsule:active { transform: scale(0.97); } /* §14-13 */
.prop-capsule.is-armed {
  box-shadow: 0 0 0 2px var(--bolt-gold), var(--shadow-float); /* §2.4 选中态描边 2px */
  color: var(--ink-900);
}
.prop-capsule.is-armed .cap-icon { color: var(--bolt-gold); }
.cap-icon { display: block; color: var(--orange-primary); }
.cap-icon svg { display: block; }
.cap-count {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-btn);
  background: var(--bolt-gold);
  color: var(--ink-900);
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

/* —— 道具抽屉（底部毛玻璃，spring(300,20) 上滑由 JS 驱动 transform）—— */
#prop-overlay .drawer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 480px;
  margin: 0 auto;
  max-height: 72%;
  overflow-y: auto;                    /* 目标多时可滚（.content 外的自有滚动容器，非视口监听） */
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  will-change: transform;
}
.prop-desc {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-600);
  text-align: center;
}
.prop-target-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.prop-target {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;                    /* 触达面积 */
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-family: inherit;
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), box-shadow var(--t-micro) var(--ease-out);
}
.prop-target:active { transform: scale(0.97); } /* §14-13 */
.prop-target.is-selected {
  box-shadow: 0 0 0 2px var(--bolt-gold), var(--shadow-float); /* 选中态描边 2px --bolt-gold */
}
.prop-target-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink-900);
  text-align: left;
}
.prop-target-go {
  flex: none;
  font-size: 12px;
  color: var(--bolt-gold);
  font-weight: 700;
}
/* 抽屉空状态（无卡；lz-prop-empty 资产管线挂载位，占位符兜底） */
.prop-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 0 8px;
}
.prop-empty-art { width: 108px; height: 108px; }
.prop-empty-copy { margin: 0; font-size: 12px; color: var(--ink-600); }

/* —— §2.4 加概率电光环：conic 25% 弧（透明→--bolt-gold→透明，90° 张角），
   mask 收成外缘环带；旋转由 fx.rotateLoop rAF 驱动（4s/圈），仅 spin 就绪前显示 —— */
.boost-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(transparent 0deg, var(--bolt-gold) 45deg, transparent 90deg, transparent 360deg);
  /* 验收 V-1：外沿 91%-100% 收窄为 88%-97%——渐变尾不再画到元素最外缘，
     Chrome conic 柔边光晕溢出环带外缘的量减半（97%-100% 完全不落笔） */
  -webkit-mask: radial-gradient(closest-side, transparent 0 76%, black 77% 87%, transparent 88% 97%);
  mask: radial-gradient(closest-side, transparent 0 76%, black 77% 87%, transparent 88% 97%);
  will-change: transform;
}

/* —— FR-8 指定卡 · 盘心「这顿钦定了」CSS 贴纸（非插画依赖；底部小尖指向盘心） —— */
.pick-sticker {
  position: absolute;
  top: 22%;
  left: 50%;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 12px;
  background: var(--bg-cream);
  border: 2px solid var(--bolt-gold);
  color: var(--ink-900);
  font-size: 13px;
  font-weight: 700;
  transform: translateX(-50%) rotate(-6deg);
  box-shadow: var(--shadow-float);
  pointer-events: none;
}
.pick-sticker::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: var(--bg-cream);
  border-right: 2px solid var(--bolt-gold);
  border-bottom: 2px solid var(--bolt-gold);
  transform: translateX(-50%) rotate(45deg);
}

/* —— FR-8 签文卡已用道具角标（👑 指定 / ⚡ 加概率——内联 SVG 版） —— */
.used-item-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.used-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--bolt-gold);
  color: var(--ink-900);
  font-size: 12px;
  font-weight: 600;
}
.used-badge svg { display: block; }

/* —— FR-6 V1.1 历史记录行道具/评分标记（内联 SVG 小徽记，纯 token 色） —— */
.mark-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-600);
  background: var(--bg-cream);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-btn);
  padding: 2px 8px;
}
.mark-chip svg { display: block; }
.mark-chip.is-gold { color: var(--ink-900); border-color: var(--bolt-gold); }
.mark-chip.is-star { color: var(--ink-900); border-color: var(--star-gold); }

/* ============================================================
   V1.1 MD · FR-9 周度天命报告 / FR-10 关于弹层前置壳
   纪律延续：hex/rgba 零新增（全部 var() token）；零 CSS 关键帧
   （整段淡入 = transition，reduced-motion 由全局 0ms 规则直切）；
   两卡均复用 .glass / .overlay 弹层族，375px 无横向滚动。
   ============================================================ */

/* —— 顶栏右侧动作组：昵称 chip + 关于 ⓘ（FR-10 入口）—— */
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.about-btn {
  appearance: none;
  border: none;
  background: none;
  flex: none;
  width: 44px;                 /* 触达面积（§14 可点元素） */
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-600);
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out);
}
.about-btn:active { transform: scale(0.97); background-color: var(--glass-bg); } /* §14-13 */

/* —— 周报卡 / 关于卡：居中定宽 + 视口内自滚（内容最长 = 周报三段）—— */
.card-weekly,
.card-about {
  top: 50%;
  left: 50%;
  right: auto;
  margin: 0;
  transform: translate(-50%, -50%); /* 静止位居中；JS spring 以同值 baseTransform 起步 */
  width: min(340px, calc(100vw - 32px)); /* MA-FIX1 F1 定宽口径 */
  max-height: calc(100% - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

/* ME P2 修复：周报卡自身不再滚动——滚动收进 .weekly-scroll（flex:1 + min-height:0），
   「知道了」行 = 普通 flex 尾项；卡体 overflow:hidden 兜底，正文绝不漏到按钮条下缘。 */
.card-weekly { overflow: hidden; }
.weekly-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* —— 周报卡 —— */
.weekly-title {
  margin: 4px 0 0;
  font-size: 22px;   /* §2.3 V1.1 周报标题 22px/800 */
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.weekly-art { width: 96px; height: 96px; margin: 8px auto 0; } /* lz-weekly 挂载位（assets.js） */
.weekly-section {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--glass-border);
}
.weekly-section-title {
  margin: 0 0 4px;
  font-size: 12px;   /* §2.3 辅助 12/400 */
  font-weight: 400;
  color: var(--ink-600);
  letter-spacing: 2px;
}
.weekly-top3 { list-style: none; margin: 0; padding: 0; }
.weekly-rank-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 15px;
  line-height: 1.7;
  min-width: 0;
}
.weekly-rank {
  flex: none;
  width: 16px;
  text-align: center;
  color: var(--orange-primary);
  font-weight: 800;
}
.weekly-player {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.weekly-count { flex: none; font-size: 12px; color: var(--ink-600); }
.weekly-empty { font-size: 12px; color: var(--ink-600); } /* 空态：仅「—」，不发明文案 */
.weekly-line {
  margin: 3px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-600);
  overflow-wrap: anywhere;
}
.weekly-total { color: var(--ink-900); font-weight: 600; }
.weekly-content {
  margin: 6px 0 0;
  font-size: 15px;   /* §2.3 正文 15/400 */
  line-height: 1.75;
  color: var(--ink-900);
  overflow-wrap: anywhere;
  transition: opacity var(--t-component) var(--ease-out); /* ready 整段淡入；reduced 直切 */
}
.weekly-content.is-waiting { font-size: 12px; color: var(--ink-600); } /* 骨架：弱字占位同语言（D2#05：1.48 → 5.95） */
.weekly-content.is-failed { color: var(--ink-600); }
.weekly-row {
  flex: none;          /* ME P2：普通 flex 尾项（原 sticky 贴底已收进 .weekly-scroll） */
  margin-top: 16px;
  display: flex;
  padding: 10px 0 2px;
  background: var(--bg-cream);          /* 不透明条：滚动正文不穿透按钮 */
  border-top: 1px solid var(--glass-border);
}
.weekly-row .btn { flex: 1 1 1px; }

/* —— 关于弹层 —— */
.about-art { width: 112px; height: 112px; margin: 8px auto 0; } /* lz-about 挂载位 */
.about-name {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
}
.about-slogan {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-600);
  letter-spacing: 2px;
  text-align: center;
}
.about-version {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--ink-600);  /* 辅助信息弱字（D2#05：版本号 1.56:1 等于没写 → 6.27；同 .rating-later 克制口径） */
  text-align: center;
}
/* 周报入口 = 文字按钮（FR-9 回看入口；UI-08 起样式统一收口到文件尾 .weekly-entry 块） */
.weekly-entry:active { transform: scale(0.97); } /* §14-13 */

/* —— V1.1 ME · FR-10 反馈框（关于层内；textarea ≤200 字 + 提交）—— */
.feedback-block { margin-top: 6px; display: flex; flex-direction: column; gap: 8px; }
.feedback-input {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 1px solid var(--line-input); /* D2#05：控件边界 ≥3（实测 4.31） */
  border-radius: var(--radius-card);
  background: var(--bg-cream);
  color: var(--ink-900);
  font-family: inherit;
  font-size: var(--fs-input); /* D3#07：14px → 16px（textarea 同受 iOS 聚焦放大；关于卡 +9px 实测不触发滚动） */
  line-height: 1.5;
  resize: none;
}
.feedback-input::placeholder { color: var(--ink-600); } /* D2#05：1.79 → 7.18 */
.feedback-input:focus { outline: 2px solid var(--orange-primary); outline-offset: 1px; }
.btn-feedback { width: 100%; padding: 12px 22px; }
.btn-feedback:active { transform: scale(0.97); } /* §14-13 可点按钮 */

/* —— V1.1 ME-FIX1 · CHG-011 掌柜公告栏（关于层内、反馈框上方）——
   克制扁平：浅底 + 1px 细边 + 迷你小标；零强调色、零动画（隐藏由 [hidden] 直切）。 */
.notice-block {
  margin-top: 14px;
  padding: 10px 12px;
  background: var(--bg-cream);
  border: 1px solid var(--ink-300);
  border-radius: var(--radius-card);
}
.notice-label {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--ink-600);
  letter-spacing: 2px;
}
.notice-content {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-900);
  white-space: pre-wrap;    /* 保留作者换行（仍是纯文本渲染，零 HTML 解析） */
  overflow-wrap: anywhere;  /* 长串/注入串不撑破 375px */
}

/* ME-FIX1 ②：反馈组（textarea + 提交）组内 8px 已收紧；与「知道了」留 20px 呼吸。 */
#btn-about-close { margin-top: 20px; }

/* —— UI 审查 UI-08 · 关于层按钮体系统一 ——
   层内唯一主按钮 = 「知道了」（主橙）；提交反馈 = ghost 次级；周报/待评价 = 同款文字链接
   （去蓝色强调，避免三色争夺注意力）；hover 下划线仅指针设备。 */
.weekly-entry,
.pending-link {
  appearance: none;
  border: none;
  background: none;
  display: block;
  min-height: 44px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--ink-600);
  cursor: pointer;
  transition: transform var(--t-micro) var(--ease-out), color var(--t-micro) var(--ease-out);
}
.weekly-entry { margin: 14px auto 10px; }
.pending-link { margin: 0 auto; }
@media (hover: hover) {
  .weekly-entry:hover, .pending-link:hover { color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }
}
.weekly-entry:active, .pending-link:active { transform: scale(0.97); } /* §14-13 */
