/* ==========================================================================
   《放学以后的深夜咖啡馆 (Pxlsan Midnight Cafe)》
   美术风格锁定：【方案 B2 · 暖调胡桃木 Lo-Fi 深夜咖啡馆风】
   对标代表作：《Coffee Talk》×《深夜食堂》×《小城暖色日常》
   核心色板：
     - 深胡桃木吧台: #1E130C
     - 焦糖拿铁主色: #D48C46
     - 羊皮纸奶泡色: #F5E6D3
     - 宇治抹茶绿:   #4A7C59
     - 暖钨丝灯琥珀光: #FFB347
   ========================================================================== */

:root {
  --walnut-deep: #1E130C;
  --walnut-mid: #281910;
  --walnut-card: #332015;
  --walnut-border: #5E3A22;
  --caramel: #D48C46;
  --caramel-bright: #E8A65D;
  --caramel-dark: #9B5D24;
  --foam-cream: #F5E6D3;
  --foam-muted: #CBB398;
  --matcha-green: #4A7C59;
  --chalk-bg: #1B241E;
  --chalk-border: #8A5629;
  --amber-glow: #FFB347;
  --berry-rose: #D9536F;
  --iced-cyan: #76C7D8;
  --shadow-deep: 0 14px 36px rgba(10, 5, 2, 0.72);
  --radius-wood: 14px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--walnut-deep);
  background-image:
    radial-gradient(circle at 22% 14%, rgba(255, 179, 71, 0.14), transparent 42%),
    radial-gradient(circle at 80% 18%, rgba(212, 140, 70, 0.12), transparent 45%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 230, 200, 0.012) 0px,
      rgba(255, 230, 200, 0.012) 2px,
      transparent 2px,
      transparent 9px
    ),
    linear-gradient(180deg, #160d08 0%, #1E130C 48%, #140c07 100%);
  color: var(--foam-cream);
  font-family: "Georgia", "Noto Serif SC", "Songti SC", "PingFang SC", "Microsoft YaHei", serif;
  overflow-x: hidden;
}

/* 暖钨丝灯环境光晕与暗角 */
.ambient-tungsten-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 179, 71, 0.13), transparent 46%),
    radial-gradient(circle at 75% 24%, rgba(212, 140, 70, 0.09), transparent 50%);
  pointer-events: none;
  z-index: 1;
  animation: tungstenPulse 6s ease-in-out infinite alternate;
}

@keyframes tungstenPulse {
  0% { opacity: 0.82; }
  100% { opacity: 1; }
}

.ambient-vignette {
  position: fixed;
  inset: 0;
  box-shadow: inset 0 0 90px rgba(8, 4, 2, 0.85);
  pointer-events: none;
  z-index: 2;
}

.hidden {
  display: none !important;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ================= 顶部胡桃木横梁导航栏 ================= */
.cafe-top-beam {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #2d1b11 0%, #1E130C 100%);
  border-bottom: 2px solid var(--caramel);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.65);
}

.beam-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wood-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3f2719 0%, #2a1910 100%);
  border: 1px solid var(--caramel);
  color: var(--foam-cream);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.wood-nav-btn:hover {
  transform: translateY(-1px);
  border-color: var(--amber-glow);
  background: linear-gradient(180deg, #4f311f 0%, #352014 100%);
}

.cafe-brand-plaque {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.plaque-badge {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--caramel);
  color: var(--walnut-deep);
  font-family: system-ui, -apple-system, sans-serif;
}

.plaque-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--foam-cream);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

.plaque-sub {
  font-size: 10px;
  color: var(--foam-muted);
  letter-spacing: 0.12em;
  font-family: system-ui, -apple-system, sans-serif;
}

/* 营业时段切换器 */
.beam-center {
  display: flex;
  align-items: center;
}

.shift-selector {
  display: flex;
  gap: 6px;
  background: #160d08;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--walnut-border);
}

.shift-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 9px;
  color: var(--foam-muted);
  transition: all 0.2s ease;
  text-align: left;
}

.shift-pill:hover {
  color: var(--foam-cream);
  background: rgba(212, 140, 70, 0.12);
}

.shift-pill.active {
  background: linear-gradient(135deg, #4b2e1b 0%, #331e11 100%);
  color: var(--amber-glow);
  border: 1px solid var(--caramel);
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.22);
}

.shift-icon {
  font-size: 16px;
}

.shift-info {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.shift-info strong {
  font-size: 12px;
}

.shift-info small {
  font-size: 10px;
  opacity: 0.8;
  font-family: system-ui, -apple-system, sans-serif;
}

/* 右侧音乐盒与营业账本 */
.beam-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lofi-music-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #170e09;
  border: 1px solid var(--caramel-dark);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
}

.lofi-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  font-size: 12px;
  color: var(--amber-glow);
}

.vinyl-disc {
  display: inline-block;
  font-size: 14px;
  transition: transform 0.3s linear;
}

.vinyl-disc.spinning {
  animation: vinylSpin 4s linear infinite;
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lofi-next-btn,
.lofi-sfx-btn {
  padding: 3px 6px;
  font-size: 12px;
  border-radius: 50%;
  transition: background 0.15s ease;
}

.lofi-next-btn:hover,
.lofi-sfx-btn:hover {
  background: rgba(212, 140, 70, 0.25);
}

.cafe-stats-ledger {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(43, 27, 18, 0.9);
  border: 1px solid var(--walnut-border);
  font-size: 12px;
  color: var(--foam-cream);
  font-family: system-ui, -apple-system, sans-serif;
}

.stat-chip strong {
  color: var(--amber-glow);
  font-weight: 800;
}

.beam-action-group {
  display: flex;
  gap: 6px;
}

.wood-action-btn {
  padding: 6px 12px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--caramel) 0%, var(--caramel-dark) 100%);
  color: var(--walnut-deep);
  font-weight: 800;
  font-size: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.wood-action-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ================= 主舞台布局 ================= */
.cafe-main-stage {
  position: relative;
  z-index: 5;
  max-width: 1460px;
  margin: 0 auto;
  padding: 14px 20px 24px;
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 18px;
  align-items: stretch;
}

/* ================= 左侧：双层动态窗景 + 看板娘吧台席 ================= */
.stage-left-counter {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #281910 0%, #1E130C 100%);
  border: 2px solid var(--walnut-border);
  border-radius: var(--radius-wood);
  padding: 12px;
  box-shadow: var(--shadow-deep);
}

.window-backdrop-wrap {
  position: relative;
  width: 100%;
  height: 410px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--caramel-dark);
  background: #120b07;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.scene-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.76) saturate(1.08) sepia(0.15);
  transition: filter 0.6s ease, opacity 0.4s ease;
}

.window-tint-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(25, 15, 10, 0.25) 0%, rgba(30, 19, 12, 0.55) 100%);
  pointer-events: none;
  transition: background 0.6s ease;
}

/* Layer 1: 窗外雨滴滑落与柔焦街灯 Bokeh Canvas */
.window-rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

/* 悬挂钨丝暖灯 */
.hanging-lamps {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  pointer-events: none;
  z-index: 3;
}

.pendant-lamp {
  position: absolute;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top center;
  animation: lampSway 5.5s ease-in-out infinite alternate;
}

.pendant-lamp.lamp-1 { left: 18%; }
.pendant-lamp.lamp-2 { right: 16%; animation-delay: -2.4s; }

@keyframes lampSway {
  0% { transform: rotate(-1.2deg); }
  100% { transform: rotate(1.2deg); }
}

.lamp-cord {
  width: 2px;
  height: 26px;
  background: #4a2f1d;
}

.lamp-shade {
  width: 38px;
  height: 14px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(180deg, #5c381e, #2b190d);
  border: 1px solid var(--caramel);
}

.lamp-bulb {
  width: 12px;
  height: 12px;
  margin-top: -3px;
  border-radius: 50%;
  background: #FFE5A3;
  box-shadow:
    0 0 14px 5px rgba(255, 179, 71, 0.85),
    0 0 42px 16px rgba(255, 160, 50, 0.38);
}

/* 窗景左上角天气签 */
.window-weather-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(24, 14, 9, 0.82);
  border: 1px solid rgba(212, 140, 70, 0.55);
  font-size: 11px;
  color: var(--foam-cream);
  backdrop-filter: blur(6px);
}

/* 右上角快捷操作栏 */
.counter-guest-toolbar {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  display: flex;
  gap: 6px;
}

.mini-wood-btn {
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(36, 22, 14, 0.88);
  border: 1px solid var(--caramel);
  color: var(--foam-cream);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(4px);
  transition: all 0.15s ease;
}

.mini-wood-btn:hover {
  background: var(--caramel);
  color: var(--walnut-deep);
}

/* 女主立绘舞台容器 */
.heroine-stage-box {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 310px;
  height: 335px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
}

.heroine-Warm-halo {
  position: absolute;
  bottom: 20px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 179, 71, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.heroine-portrait-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.78));
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), filter 0.3s ease;
}

.heroine-stage-box:hover .heroine-portrait-img {
  transform: translateY(-4px) scale(1.015);
}

.heroine-portrait-img.react-bounce {
  animation: heroineBounce 0.55s ease;
}

@keyframes heroineBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  35% { transform: translateY(-10px) scale(1.03); }
  70% { transform: translateY(-3px) scale(1.01); }
}

.emotion-bubble {
  position: absolute;
  top: 26px;
  right: 8px;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  background: rgba(30, 19, 12, 0.92);
  border: 1.5px solid var(--amber-glow);
  color: var(--amber-glow);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.55);
  animation: bubbleFloat 2.6s ease-in-out infinite alternate;
}

@keyframes bubbleFloat {
  from { transform: translateY(0px); }
  to { transform: translateY(-5px); }
}

/* Layer 2: 吧台咖啡杯热蒸汽粒子 Canvas */
.steam-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* 胡桃木吧台桌面 */
.walnut-counter-surface {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  z-index: 6;
  background: linear-gradient(180deg, #4A2C18 0%, #2C190E 38%, #1E130C 100%);
  border-top: 3px solid var(--caramel);
  box-shadow: 0 -8px 22px rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}

.counter-wood-grain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 24px,
    rgba(255, 195, 130, 0.04) 24px,
    rgba(255, 195, 130, 0.04) 26px
  );
  pointer-events: none;
}

.counter-coaster-spot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  z-index: 2;
}

.served-cup-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2b190f;
  border: 2.5px solid var(--foam-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease;
}

.counter-coaster-spot:hover .served-cup-mini {
  transform: scale(1.08) rotate(4deg);
}

.served-cup-liquid {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, #d48c46 20%, #633715 100%);
}

.served-cup-art {
  position: relative;
  z-index: 2;
  font-size: 18px;
}

.coaster-caption {
  font-size: 12px;
  color: var(--foam-cream);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

/* ================= 吧台下方：深度夜谈对话框 ================= */
.counter-dialogue-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #23150d;
  border: 1px solid var(--walnut-border);
  border-radius: 12px;
  padding: 12px 14px;
  flex: 1;
}

.dialogue-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.guest-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-avatar-img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--caramel);
  background: #160d08;
}

.guest-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guest-name {
  font-size: 16px;
  font-weight: 900;
  color: var(--amber-glow);
}

.guest-role-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(212, 140, 70, 0.18);
  border: 1px solid rgba(212, 140, 70, 0.45);
  color: var(--foam-cream);
  font-family: system-ui, -apple-system, sans-serif;
}

.guest-affection-line {
  margin-top: 3px;
  font-size: 11px;
  color: var(--foam-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, -apple-system, sans-serif;
}

.heart-meter {
  color: #FF758F;
  letter-spacing: 1px;
}

.dialogue-utility-btns {
  display: flex;
  gap: 6px;
}

.chalk-hint-btn {
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--chalk-bg);
  border: 1px solid var(--matcha-green);
  color: #CFE8D5;
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.chalk-hint-btn:hover {
  background: var(--matcha-green);
  color: #fff;
}

.dialogue-body-box {
  background: rgba(20, 12, 7, 0.72);
  border-left: 3px solid var(--caramel);
  border-radius: 6px 10px 10px 6px;
  padding: 11px 14px;
  min-height: 76px;
  display: flex;
  align-items: center;
}

.dialogue-text {
  font-size: 14px;
  line-height: 1.68;
  color: var(--foam-cream);
}

.dialogue-text strong {
  color: var(--amber-glow);
  text-decoration: underline wavy rgba(255, 179, 71, 0.5);
  text-underline-offset: 3px;
}

/* 口味推理便签 */
.order-clue-drawer {
  background: var(--chalk-bg);
  border: 1.5px dashed rgba(212, 140, 70, 0.55);
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.clue-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.clue-badge {
  font-size: 11px;
  font-weight: 800;
  color: #A7D7B4;
}

.clue-order-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-glow);
}

.clue-autofill-btn {
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(212, 140, 70, 0.24);
  border: 1px solid var(--caramel);
  color: var(--foam-cream);
  font-size: 11px;
  font-weight: 700;
  transition: all 0.15s ease;
}

.clue-autofill-btn:hover {
  background: var(--caramel);
  color: var(--walnut-deep);
}

.clue-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clue-pill {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--foam-cream);
  font-family: system-ui, -apple-system, sans-serif;
}

/* 夜谈选项区 */
.night-talk-choices {
  background: rgba(74, 124, 89, 0.15);
  border: 1px solid var(--matcha-green);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choices-prompt {
  font-size: 12px;
  font-weight: 800;
  color: #A7D7B4;
}

.choices-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.talk-choice-btn {
  text-align: left;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(30, 19, 12, 0.85);
  border: 1px solid var(--caramel-dark);
  color: var(--foam-cream);
  font-size: 13px;
  transition: all 0.15s ease;
}

.talk-choice-btn:hover {
  border-color: var(--amber-glow);
  background: rgba(212, 140, 70, 0.22);
  transform: translateX(3px);
}

/* ================= 右侧：手写粉笔黑板菜单 + 三步交互调饮工作台 ================= */
.stage-right-workbench {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* 手写粉笔黑板菜单 */
.chalkboard-panel {
  background: var(--chalk-bg);
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.03), transparent 50%),
    radial-gradient(circle at 80% 75%, rgba(74, 124, 89, 0.10), transparent 55%);
  border: 4px solid var(--chalk-border);
  border-radius: var(--radius-wood);
  padding: 14px 18px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.7), var(--shadow-deep);
}

.chalkboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1.5px dashed rgba(245, 230, 211, 0.28);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.chalk-subtitle {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9BB8A3;
  font-family: system-ui, -apple-system, sans-serif;
}

.chalk-main-title {
  font-size: 17px;
  color: var(--foam-cream);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.step-progress-pills {
  display: flex;
  align-items: center;
  gap: 6px;
}

.step-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(245, 230, 211, 0.25);
  color: var(--foam-muted);
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.step-tab.active {
  background: var(--caramel);
  color: var(--walnut-deep);
  border-color: var(--amber-glow);
  box-shadow: 0 0 12px rgba(212, 140, 70, 0.45);
}

.step-num {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.step-arrow {
  color: rgba(245, 230, 211, 0.4);
  font-size: 12px;
}

/* 黑板杯身实时分层展示 */
.chalkboard-Cup-showcase {
  display: flex;
  align-items: center;
  gap: 18px;
}

.live-cup-vessel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}

.live-cup-vessel {
  position: relative;
  width: 78px;
  height: 92px;
}

.vessel-steam-wisps {
  position: absolute;
  top: -18px;
  left: 0;
  right: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(245, 230, 211, 0.75);
}

.vessel-steam-wisps span {
  animation: wispRise 2.2s ease-in-out infinite;
}
.vessel-steam-wisps span:nth-child(2) { animation-delay: 0.6s; }
.vessel-steam-wisps span:nth-child(3) { animation-delay: 1.2s; }

@keyframes wispRise {
  0% { transform: translateY(3px); opacity: 0.25; }
  50% { transform: translateY(-4px); opacity: 0.85; }
  100% { transform: translateY(-9px); opacity: 0.1; }
}

.vessel-inner {
  width: 68px;
  height: 86px;
  border: 3px solid var(--foam-cream);
  border-radius: 8px 8px 26px 26px;
  background: rgba(15, 20, 17, 0.75);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.6);
}

.vessel-layer {
  width: 100%;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease;
  height: 0%;
}

.vessel-ice-cubes {
  position: absolute;
  top: 18px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: center;
  gap: 2px;
  font-size: 13px;
  animation: iceFloat 2.4s ease-in-out infinite alternate;
}

@keyframes iceFloat {
  from { transform: translateY(0px); }
  to { transform: translateY(3px); }
}

.vessel-handle {
  position: absolute;
  right: -4px;
  top: 18px;
  width: 18px;
  height: 38px;
  border: 3px solid var(--foam-cream);
  border-left: none;
  border-radius: 0 14px 14px 0;
}

.vessel-temp-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--amber-glow);
  font-family: system-ui, -apple-system, sans-serif;
}

.chalk-recipe-summary {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chalk-drink-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chalk-drink-label {
  font-size: 12px;
  color: #A7C4B0;
}

.chalk-drink-name {
  font-size: 16px;
  color: var(--amber-glow);
}

.match-forecast-badge {
  margin-left: auto;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: rgba(212, 140, 70, 0.22);
  border: 1px solid var(--caramel);
  color: var(--foam-cream);
  font-family: system-ui, -apple-system, sans-serif;
}

.chalk-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.chalk-slot-item {
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(245, 230, 211, 0.28);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chalk-slot-item.filled {
  border-style: solid;
  border-color: var(--caramel);
  background: rgba(212, 140, 70, 0.14);
}

.slot-kind {
  font-size: 10px;
  color: #9BB8A3;
  font-family: system-ui, -apple-system, sans-serif;
}

.slot-val {
  font-size: 12px;
  color: var(--foam-cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chalk-quality-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.quality-chip {
  font-size: 11px;
  color: #CFE8D5;
  background: rgba(74, 124, 89, 0.22);
  border: 1px solid rgba(74, 124, 89, 0.5);
  padding: 3px 9px;
  border-radius: 6px;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ================= 三步工作台容器面板 ================= */
.workbench-steps-container {
  flex: 1;
  background: linear-gradient(180deg, #2B1B12 0%, #1E130C 100%);
  border: 2px solid var(--walnut-border);
  border-radius: var(--radius-wood);
  padding: 16px 18px;
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
}

.workbench-step-pane {
  display: none;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.workbench-step-pane.active {
  display: flex;
}

.pane-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(212, 140, 70, 0.25);
  padding-bottom: 10px;
}

.pane-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pane-icon {
  font-size: 24px;
}

.pane-title h3 {
  font-size: 16px;
  color: var(--amber-glow);
}

.pane-title p {
  font-size: 12px;
  color: var(--foam-muted);
  font-family: system-ui, -apple-system, sans-serif;
}

/* 温度切换按钮组 */
.temp-toggle-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.temp-btn {
  padding: 6px 13px;
  border-radius: 8px;
  background: #180f0a;
  border: 1px solid var(--walnut-border);
  color: var(--foam-muted);
  font-size: 12px;
  font-weight: 800;
  transition: all 0.16s ease;
}

.temp-btn[data-temp="hot"].active {
  background: linear-gradient(135deg, #C85A28, #8F3512);
  border-color: var(--amber-glow);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 179, 71, 0.35);
}

.temp-btn[data-temp="iced"].active {
  background: linear-gradient(135deg, #2B7A9B, #1B4E66);
  border-color: var(--iced-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(118, 199, 216, 0.35);
}

.reset-ing-btn {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(217, 83, 111, 0.15);
  border: 1px solid rgba(217, 83, 111, 0.45);
  color: #F7B2C0;
  font-size: 12px;
  font-weight: 700;
}

.reset-ing-btn:hover {
  background: rgba(217, 83, 111, 0.32);
}

/* 基底与配料网格 */
.ingredient-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.sec-title {
  font-weight: 800;
  color: var(--foam-cream);
}

.sec-hint {
  font-size: 11px;
  color: var(--foam-muted);
  font-family: system-ui, -apple-system, sans-serif;
}

.base-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
}

.ing-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #23150D;
  border: 1.5px solid var(--walnut-border);
  text-align: left;
  transition: all 0.16s ease;
}

.ing-card:hover {
  transform: translateY(-2px);
  border-color: var(--caramel);
  background: #2F1C11;
}

.ing-card.selected {
  background: linear-gradient(135deg, rgba(212, 140, 70, 0.26) 0%, rgba(138, 86, 41, 0.36) 100%);
  border-color: var(--amber-glow);
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.25);
}

.ing-swatch-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.ing-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.ing-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--foam-cream);
}

.ing-tags {
  font-size: 10px;
  color: var(--foam-muted);
  font-family: system-ui, -apple-system, sans-serif;
}

.ing-slot-badge {
  position: absolute;
  top: 5px;
  right: 6px;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--amber-glow);
  color: var(--walnut-deep);
  font-weight: 900;
  font-family: system-ui, -apple-system, sans-serif;
}

.pane-footer-nav {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(212, 140, 70, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.flavor-profile-preview,
.step-tip-text {
  font-size: 12px;
  color: var(--foam-muted);
  font-family: system-ui, -apple-system, sans-serif;
}

.primary-wood-cta {
  padding: 10px 20px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--amber-glow) 0%, var(--caramel) 100%);
  color: var(--walnut-deep);
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(212, 140, 70, 0.4);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.primary-wood-cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

/* ================= STEP 2: 胡桃木压力表黄金萃取 ================= */
.extraction-gauge-stage {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  flex: 1;
  padding: 10px 6px;
}

.walnut-pressure-meter {
  background: #1A100A;
  border: 2px solid var(--caramel-dark);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meter-header-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--foam-muted);
  font-family: system-ui, -apple-system, sans-serif;
}

.gold-zone-label {
  color: var(--amber-glow);
  font-weight: 800;
}

.meter-track-outer {
  position: relative;
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(90deg, #273847 0%, #3d2a18 45%, #5c3614 82%, #4a1919 100%);
  border: 2px solid var(--caramel);
  overflow: hidden;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.7);
}

.meter-zone {
  position: absolute;
  top: 0;
  bottom: 0;
}

.meter-zone.zone-good {
  left: 50%;
  width: 36%;
  background: rgba(74, 124, 89, 0.38);
  border-left: 1px dashed rgba(167, 215, 180, 0.6);
  border-right: 1px dashed rgba(167, 215, 180, 0.6);
}

.meter-zone.zone-perfect {
  left: 62%;
  width: 16%;
  background: linear-gradient(180deg, rgba(255, 179, 71, 0.75), rgba(212, 140, 70, 0.75));
  border-left: 2px solid #FFF3D1;
  border-right: 2px solid #FFF3D1;
  box-shadow: 0 0 18px rgba(255, 179, 71, 0.75);
}

.meter-ticks {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  padding-bottom: 4px;
  font-size: 10px;
  color: rgba(245, 230, 211, 0.55);
  font-family: monospace;
  pointer-events: none;
}

.meter-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  margin-left: -2px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.needle-head {
  font-size: 12px;
  color: #FFF;
  line-height: 1;
  text-shadow: 0 0 6px var(--amber-glow);
}

.needle-bar {
  flex: 1;
  width: 3px;
  background: #FFF;
  box-shadow: 0 0 10px 2px var(--amber-glow);
}

.meter-readout-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.readout-box {
  background: rgba(43, 27, 18, 0.75);
  border: 1px solid var(--walnut-border);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.readout-label {
  font-size: 11px;
  color: var(--foam-muted);
  font-family: system-ui, -apple-system, sans-serif;
}

.readout-value {
  font-size: 15px;
  color: var(--foam-cream);
}

.readout-value.highlight {
  color: var(--amber-glow);
}

.brew-control-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brew-hold-btn {
  flex: 1;
  padding: 15px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, #C8762E 0%, #8A4B16 100%);
  border: 2px solid var(--amber-glow);
  color: #FFF8EE;
  font-size: 16px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.brew-hold-btn:active,
.brew-hold-btn.brewing {
  transform: scale(0.985);
  background: linear-gradient(135deg, var(--amber-glow) 0%, #C8762E 100%);
  color: var(--walnut-deep);
  box-shadow: 0 0 24px rgba(255, 179, 71, 0.65);
}

.secondary-wood-btn {
  padding: 15px 18px;
  border-radius: 12px;
  background: #23150D;
  border: 1.5px solid var(--caramel);
  color: var(--foam-cream);
  font-size: 13px;
  font-weight: 700;
}

/* ================= STEP 3: 交互式奶泡拉花画布 ================= */
.latte-art-studio {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 20px;
  align-items: center;
  flex: 1;
}

.latte-canvas-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.cup-rim-outer {
  position: relative;
  width: 276px;
  height: 276px;
  border-radius: 50%;
  padding: 8px;
  background: linear-gradient(135deg, #FFF8EE 0%, #DCC5AC 100%);
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.75),
    inset 0 2px 6px rgba(0, 0, 0, 0.35);
}

.cup-ear-handle {
  position: absolute;
  right: -24px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 64px;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(90deg, #E5D0B8, #FFF8EE);
  box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.latte-art-canvas {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  cursor: crosshair;
  display: block;
  touch-action: none;
}

.latte-score-floating {
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: #1A100A;
  border: 1px solid var(--caramel);
  font-size: 12px;
  color: var(--foam-cream);
}

.latte-score-floating strong {
  color: var(--amber-glow);
  font-size: 14px;
}

.latte-controls-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.control-group-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-glow);
  margin-bottom: 7px;
}

.stencil-btns-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.stencil-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 9px 6px;
  border-radius: 10px;
  background: #22140C;
  border: 1.5px solid var(--walnut-border);
  transition: all 0.15s ease;
}

.stencil-btn:hover,
.stencil-btn.active {
  border-color: var(--amber-glow);
  background: rgba(212, 140, 70, 0.24);
  transform: translateY(-2px);
}

.st-icon {
  font-size: 20px;
}

.st-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--foam-cream);
}

.brush-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.brush-color-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 8px;
  background: #1F120B;
  border: 1px solid var(--walnut-border);
  font-size: 12px;
  color: var(--foam-cream);
}

.brush-color-btn.active {
  border-color: var(--amber-glow);
  background: rgba(212, 140, 70, 0.25);
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.brush-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--foam-muted);
}

.brush-size-row input[type="range"] {
  accent-color: var(--caramel);
  flex: 1;
}

.serve-bell-cta {
  margin-top: 4px;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #FFB347 0%, #D48C46 55%, #9B5D24 100%);
  color: var(--walnut-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 26px rgba(212, 140, 70, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.serve-bell-cta:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 32px rgba(255, 179, 71, 0.6);
}

.bell-icon {
  font-size: 26px;
}

.bell-text-wrap {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.bell-text-wrap strong {
  font-size: 16px;
  font-weight: 900;
}

.bell-text-wrap small {
  font-size: 10px;
  opacity: 0.85;
  font-family: system-ui, -apple-system, sans-serif;
}

/* ================= 模态弹窗通用样式 ================= */
.cafe-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 5, 2, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cafe-modal-card {
  background: linear-gradient(180deg, #2D1C12 0%, #1E130C 100%);
  border: 2px solid var(--caramel);
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.88);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 26px;
  color: var(--foam-cream);
}

.cafe-modal-card.wide-modal {
  max-width: 1120px;
}

/* 品鉴反馈弹窗 */
.tasting-card-header {
  text-align: center;
  border-bottom: 1px dashed rgba(212, 140, 70, 0.4);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.tasting-stars {
  font-size: 26px;
  letter-spacing: 4px;
}

.tasting-verdict-title {
  font-size: 22px;
  color: var(--amber-glow);
  margin: 4px 0;
}

.tasting-subtitle {
  font-size: 12px;
  color: var(--foam-muted);
  font-family: system-ui, -apple-system, sans-serif;
}

.tasting-card-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: center;
}

.tasting-portrait-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tasting-portrait-frame {
  width: 190px;
  height: 250px;
  border-radius: 14px;
  border: 2px solid var(--caramel);
  background: radial-gradient(circle at 50% 60%, rgba(255, 179, 71, 0.22), #150c07);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.tasting-portrait-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.tasting-expr-tag {
  font-size: 12px;
  font-weight: 800;
  color: var(--amber-glow);
}

.tasting-details-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.served-recipe-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--chalk-bg);
  border: 1.5px solid var(--chalk-border);
  border-radius: 12px;
  padding: 10px 14px;
}

.tasting-latte-snapshot {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid var(--foam-cream);
  flex-shrink: 0;
}

.recipe-unlock-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--matcha-green);
  color: #fff;
  margin-bottom: 3px;
}

.served-recipe-meta h3 {
  font-size: 17px;
  color: var(--amber-glow);
}

.served-recipe-meta p {
  font-size: 12px;
  color: var(--foam-muted);
}

.tasting-score-breakdown {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(212, 140, 70, 0.16);
  border: 1px solid rgba(212, 140, 70, 0.45);
  font-family: system-ui, -apple-system, sans-serif;
}

.tasting-quote-box {
  background: rgba(18, 10, 6, 0.78);
  border-left: 3px solid var(--amber-glow);
  padding: 10px 14px;
  border-radius: 6px 10px 10px 6px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--foam-cream);
}

.tasting-note-postcard {
  background: rgba(245, 230, 211, 0.08);
  border: 1px dashed var(--caramel);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
}

.postcard-label {
  display: block;
  font-weight: 800;
  color: var(--amber-glow);
  margin-bottom: 3px;
}

.tasting-card-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(212, 140, 70, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reward-summary {
  font-size: 14px;
  font-weight: 800;
  color: var(--amber-glow);
}

/* 特调手账与熟客名册弹窗 */
.modal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(212, 140, 70, 0.3);
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.modal-kicker {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--caramel);
  font-family: system-ui, -apple-system, sans-serif;
}

.modal-top-bar h2 {
  font-size: 20px;
  color: var(--foam-cream);
}

.modal-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--walnut-border);
  font-size: 15px;
  color: var(--foam-cream);
}

.modal-close-btn:hover {
  background: var(--berry-rose);
  color: #fff;
}

.modal-intro-desc {
  font-size: 13px;
  color: var(--foam-muted);
  margin-bottom: 14px;
}

.recipe-book-grid,
.guest-book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 12px;
}

.recipe-card,
.guest-card {
  background: #23150D;
  border: 1.5px solid var(--walnut-border);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.recipe-card:hover,
.guest-card:hover {
  border-color: var(--caramel);
  transform: translateY(-2px);
}

.recipe-card.unlocked {
  border-color: var(--matcha-green);
  background: linear-gradient(180deg, rgba(27, 36, 30, 0.72) 0%, #23150D 100%);
}

.recipe-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recipe-num-tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--caramel);
  font-family: monospace;
}

.recipe-status-pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  font-family: system-ui, -apple-system, sans-serif;
}

.recipe-status-pill.is-unlocked {
  background: var(--matcha-green);
  color: #fff;
}

.recipe-status-pill.is-locked {
  background: rgba(255, 255, 255, 0.08);
  color: var(--foam-muted);
}

.recipe-title-with-thumb {
  display: flex;
  align-items: center;
  gap: 12px;
}

.recipe-drink-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  object-fit: cover;
  border: 1.5px solid var(--caramel);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.recipe-card h4 {
  font-size: 15px;
  color: var(--amber-glow);
  margin-bottom: 4px;
}

.recipe-formula-line {
  font-size: 12px;
  color: var(--foam-cream);
  background: rgba(0, 0, 0, 0.28);
  padding: 5px 8px;
  border-radius: 6px;
  font-family: system-ui, -apple-system, sans-serif;
}

.recipe-lore-text {
  font-size: 12px;
  color: var(--foam-muted);
  line-height: 1.5;
}

.recipe-card-foot,
.guest-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
}

.guest-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-card-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--caramel);
}

.guest-card-note {
  font-size: 12px;
  color: var(--foam-cream);
  background: rgba(0, 0, 0, 0.26);
  border-left: 2px solid var(--caramel);
  padding: 6px 9px;
  border-radius: 4px 8px 8px 4px;
  line-height: 1.5;
}

/* Toast 提示 */
.cafe-toast-container {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.cafe-toast {
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(30, 19, 12, 0.95);
  border: 1.5px solid var(--amber-glow);
  color: var(--foam-cream);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  animation: toastSlideIn 0.25s ease forwards;
}

@keyframes toastSlideIn {
  from { transform: translateY(12px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* 响应式适配 */
@media (max-width: 1120px) {
  .cafe-main-stage {
    grid-template-columns: 1fr;
  }
  .latte-art-studio {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

@media (max-width: 680px) {
  .base-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chalk-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tasting-card-body {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .stencil-btns-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   极简清爽重构层 (Coffee Talk × Pxlsan 轻柔日常美学)
   大幅缩减冗余按钮与密集说明字，把画面留给窗景、角色与调饮过程
   ========================================================================== */
body {
  font-family: -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.cafe-top-beam {
  max-width: 1420px;
  margin: 0 auto;
  padding: 12px 24px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

/* 顶部只保留「返回大厅」，隐藏多余的跨游戏跳转与英文副标题 */
.beam-left .wood-nav-btn:not(:first-child),
.plaque-badge,
.plaque-sub {
  display: none !important;
}

.wood-nav-btn {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
  padding: 6px 14px;
  font-size: 13px;
}

.plaque-title {
  font-size: 18px;
  font-weight: 800;
  text-shadow: none;
}

/* 时段切换胶囊：单行极简 */
.shift-selector {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 3px;
}

.shift-pill {
  border-radius: 999px;
  padding: 5px 14px;
  gap: 6px;
}

.shift-pill.active {
  background: var(--caramel);
  color: #1e130c;
  border: none;
  box-shadow: none;
}

.shift-info small {
  display: none !important;
}

/* 右侧工具栏瘦身：隐藏多余切歌/音效小按钮与重复的统计块 */
#btn-lofi-next,
#btn-sfx-toggle,
#lofi-track-name,
.cafe-stats-ledger .stat-chip:first-child,
.cafe-stats-ledger .stat-chip:last-child {
  display: none !important;
}

.lofi-music-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
}

.lofi-toggle-btn::after {
  content: "BGM";
  font-size: 12px;
  font-weight: 700;
  color: var(--foam-cream);
}

.wood-action-btn {
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(212, 140, 70, 0.2);
  border: 1px solid rgba(212, 140, 70, 0.5);
  color: var(--foam-cream);
  box-shadow: none;
}

.wood-action-btn:hover {
  background: var(--caramel);
  color: #1e130c;
}

/* 左侧窗景与看板娘舞台：去除遮挡视线的浮签与重复按钮 */
.cafe-main-stage {
  max-width: 1420px;
  padding: 12px 24px 24px;
  grid-template-columns: 540px 1fr;
  gap: 20px;
}

.stage-left-counter {
  background: rgba(34, 21, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 14px;
}

.window-backdrop-wrap {
  height: 430px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* 隐藏遮挡窗景的天气签、情绪气泡、重复的指定邀约按钮（顶部已有熟客名册） */
.window-weather-badge,
.emotion-bubble,
#btn-invite-modal {
  display: none !important;
}

.mini-wood-btn {
  border-radius: 999px;
  background: rgba(20, 12, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
}

/* 对话框区：极简 Coffee Talk 风格，隐藏繁杂的推理标签与闲聊按钮 */
.counter-dialogue-panel {
  background: rgba(20, 12, 8, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.dialogue-utility-btns,
.guest-affection-line .visit-count,
.clue-badge,
.clue-tags-row {
  display: none !important;
}

.order-clue-drawer {
  background: transparent;
  border: none;
  padding: 2px 0 0;
}

.clue-drawer-header {
  justify-content: space-between;
}

.clue-autofill-btn {
  border-radius: 999px;
  padding: 5px 14px;
  background: rgba(212, 140, 70, 0.22);
  border: 1px solid var(--caramel);
  font-size: 12px;
}

/* 右侧调饮工作台：精简黑板与配料卡文字 */
.chalkboard-panel {
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 14px 18px;
}

.chalk-subtitle,
.chalk-quality-bar,
.pane-icon,
.pane-title p,
.sec-hint,
.ing-tags,
.flavor-profile-preview {
  display: none !important;
}

.workbench-steps-container {
  background: rgba(34, 21, 14, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 18px;
}

.ing-card {
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.primary-wood-cta {
  border-radius: 999px;
  margin-left: auto;
  padding: 11px 28px;
}

/* Spine 60FPS 骨骼实时渲染画布 */
.cafe-spine-canvas {
  width: 310px;
  height: 335px;
  display: none;
  pointer-events: none;
  z-index: 5;
}

.heroine-stage-box.spine-active .cafe-spine-canvas {
  display: block;
}

.heroine-stage-box.spine-active .heroine-portrait-img {
  display: none !important;
}



/* ============================================================================
   POV BARISTA COOKING WORKBENCH OVERHAUL (第一人称咖啡店做饮品实景操作台)
   ============================================================================ */
body.pov-cafe-body {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #140c08;
}

.pov-cafe-viewport {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* 全屏第一人称咖啡店环境底图 */
.pov-room-bg-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.pov-room-bg-layer .scene-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.08) contrast(1.04);
}

.pov-room-bg-layer .window-tint-layer,
.pov-room-bg-layer .window-rain-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ================= 上半屏：顾客迎客与挂单小票区 ================= */
.pov-upper-customer-zone {
  position: relative;
  z-index: 2;
  flex: 0 0 43%;
  min-height: 270px;
  max-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 22px 0;
}

.pov-top-hud-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 5;
}

.pov-top-hud-bar .window-weather-badge,
.pov-top-hud-bar .counter-guest-toolbar {
  position: static;
}

.pov-customer-center-stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 24px;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 4px;
}

.pov-customer-center-stage .heroine-stage-box {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
  width: 310px;
  height: 100%;
  max-height: 340px;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.pov-customer-center-stage .heroine-portrait-img {
  max-height: 330px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.78));
}

.drop-to-serve-hint {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #d48c46);
  color: #1c1008;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(255, 179, 71, 0.65);
  border: 2px solid #fff8ee;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 15;
  white-space: nowrap;
}

.heroine-stage-box.awaiting-serve-drop .drop-to-serve-hint {
  opacity: 0.92;
  transform: translate(-50%, -50%) scale(1);
}

.heroine-stage-box.hover-serve-drop {
  transform: scale(1.05);
  filter: drop-shadow(0 0 24px rgba(255, 179, 71, 0.85));
}

.heroine-stage-box.hover-serve-drop .drop-to-serve-hint {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

/* 顾客右侧悬浮点单气泡与小票板 */
.pov-customer-order-board {
  flex: 1;
  max-width: 720px;
  background: rgba(24, 15, 10, 0.86);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(212, 140, 70, 0.55);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 235, 205, 0.16);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.pov-customer-order-board .dialogue-body-box {
  padding: 8px 12px;
  min-height: 0;
}

.pov-customer-order-board .dialogue-text {
  font-size: 13.5px;
  line-height: 1.55;
}

.pov-customer-order-board .order-clue-drawer {
  padding: 8px 12px;
}

/* ================= 下半屏：第一人称咖啡师实体操作台桌面 ================= */
.pov-lower-workbench {
  position: relative;
  z-index: 4;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(180deg, rgba(46, 26, 15, 0.94) 0%, rgba(28, 16, 10, 0.98) 28%, rgba(19, 11, 7, 0.99) 100%);
  border-top: 4px solid #b87338;
  box-shadow:
    0 -14px 38px rgba(0, 0, 0, 0.78),
    inset 0 2px 0 rgba(255, 224, 180, 0.28);
  padding: 8px 18px 12px;
  gap: 8px;
}

.workbench-hud-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 5px 14px;
  border-radius: 12px;
  background: rgba(16, 9, 6, 0.72);
  border: 1px solid rgba(212, 140, 70, 0.32);
}

.pov-guide-pill {
  font-size: 12px;
  color: #edd7be;
}

.pov-guide-pill strong {
  color: #ffb347;
}

.hud-strip-center {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 四大实体工位并排桌面 */
.pov-stations-deck {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.08fr 1.15fr 1.25fr 1.35fr;
  gap: 12px;
  align-items: stretch;
}

.pov-station {
  background:
    radial-gradient(circle at 50% 0%, rgba(212, 140, 70, 0.14), transparent 70%),
    rgba(33, 20, 13, 0.88);
  border: 1.5px solid rgba(184, 115, 56, 0.42);
  border-radius: 16px;
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 235, 205, 0.12), 0 8px 22px rgba(0, 0, 0, 0.45);
  position: relative;
  overflow: hidden;
}

.station-header-tag {
  font-size: 12px;
  font-weight: 900;
  color: #ffcf86;
  letter-spacing: 0.4px;
  padding-bottom: 6px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(212, 140, 70, 0.32);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.station-header-tag small {
  font-weight: 600;
  font-size: 10.5px;
  color: #c7ab8e;
}

/* ---------- 工位 1：意式咖啡机 + 杯具与冰桶 ---------- */
.station-machine-row {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 8px;
  align-items: center;
}

.espresso-machine-rig {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 6px;
}

.machine-img-wrap {
  position: relative;
  flex: 1;
  min-height: 120px;
  background: radial-gradient(circle at 50% 55%, rgba(255, 179, 71, 0.18), rgba(18, 10, 6, 0.65));
  border: 1.5px solid rgba(212, 140, 70, 0.45);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  padding: 4px;
}

.machine-img-wrap:hover {
  transform: translateY(-2px);
  border-color: #ffb347;
  box-shadow: 0 6px 18px rgba(255, 179, 71, 0.28);
}

.machine-img-wrap.brewing {
  border-color: #ffe066;
  box-shadow: 0 0 22px rgba(255, 179, 71, 0.65);
  animation: machineVibrate 0.12s infinite alternate;
}

@keyframes machineVibrate {
  0% { transform: translate(-1px, 0); }
  100% { transform: translate(1px, -1px); }
}

.prop-machine-img {
  max-height: 148px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.65));
}

.machine-espresso-stream {
  position: absolute;
  top: 56%;
  left: 41%;
  width: 6px;
  height: 0;
  border-radius: 99px;
  background: linear-gradient(180deg, #b87338 0%, #3b1e0e 60%, #ffb347 100%);
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.85);
  opacity: 0;
  transition: height 0.18s ease, opacity 0.15s ease;
  pointer-events: none;
}

.machine-espresso-stream.active {
  height: 36px;
  opacity: 1;
}

.machine-action-badge {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(20, 11, 7, 0.9);
  border: 1px solid #ffb347;
  color: #ffdf9e;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-pressure-gauge {
  background: rgba(17, 10, 6, 0.82);
  border: 1px solid rgba(212, 140, 70, 0.35);
  border-radius: 10px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gauge-top-line,
.gauge-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  color: #d6bca1;
}

.gauge-grade-text {
  color: #ffb347;
  font-size: 10.5px;
}

.gauge-bonus-pill {
  padding: 1px 6px;
  border-radius: 99px;
  background: rgba(212, 140, 70, 0.25);
  color: #ffd88a;
  font-weight: 800;
}

.mini-pressure-gauge .meter-track-outer {
  height: 12px;
  margin: 2px 0;
}

.gauge-reset-link {
  background: none;
  border: none;
  color: #ffb347;
  font-size: 10.5px;
  text-decoration: underline;
  cursor: pointer;
}

/* 右侧杯具与黄铜冰桶按钮列 */
.cups-and-ice-column {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  justify-content: space-between;
}

.prop-cup-switch-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(22, 13, 8, 0.78);
  border: 1.5px solid rgba(184, 115, 56, 0.35);
  color: #f3e2ce;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
  text-align: left;
}

.prop-cup-switch-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
  transition: transform 0.18s ease;
}

.prop-cup-switch-btn:hover img {
  transform: scale(1.12) rotate(-5deg);
}

.prop-cup-switch-btn.active {
  background: linear-gradient(135deg, rgba(212, 140, 70, 0.32), rgba(110, 58, 24, 0.45));
  border-color: #ffb347;
  box-shadow: 0 0 14px rgba(255, 179, 71, 0.28);
}

.prop-cup-switch-btn.ice-bucket-prop {
  border-color: rgba(110, 205, 245, 0.45);
  background: rgba(18, 32, 42, 0.65);
}

.prop-cup-switch-btn.ice-bucket-prop:hover {
  border-color: #7CE8FF;
  box-shadow: 0 0 14px rgba(124, 232, 255, 0.35);
}

/* ---------- 工位 2 & 工位 4：实体基底壶与糖浆泵瓶木架 ---------- */
.pov-props-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  align-content: stretch;
}

.station-addons-rack .pov-props-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ing-card.pov-prop-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 210, 150, 0.12), transparent 70%),
    rgba(22, 13, 8, 0.82);
  border: 1.5px solid rgba(184, 115, 56, 0.32);
  cursor: grab;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.18s ease, box-shadow 0.18s ease;
  text-align: center;
  gap: 3px;
}

.ing-card.pov-prop-item:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: #ffb347;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.55);
}

.ing-card.pov-prop-item:active {
  cursor: grabbing;
  transform: scale(0.96);
}

.ing-card.pov-prop-item.selected {
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 179, 71, 0.28), rgba(78, 42, 18, 0.88));
  border-color: #ffd166;
  box-shadow: 0 0 16px rgba(255, 179, 71, 0.36);
}

.pov-prop-thumb-wrap {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pov-prop-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.65));
  transition: transform 0.2s ease;
}

.ing-card.pov-prop-item:hover .pov-prop-img {
  transform: rotate(-8deg) scale(1.1);
}

.prop-color-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid #fff8ee;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

.ing-card.pov-prop-item .ing-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.ing-card.pov-prop-item .ing-name {
  font-size: 11.5px;
  font-weight: 800;
  color: #fff5e6;
  line-height: 1.15;
}

.ing-card.pov-prop-item .ing-tags {
  font-size: 9.5px;
  color: #c5a88a;
}

.ing-card.pov-prop-item .ing-slot-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 1px 6px;
  font-size: 9.5px;
  border-radius: 99px;
}

/* ---------- 工位 3：正中央第一人称主调制杯垫 + 动态倾倒动画 ---------- */
.station-center-prep-mat {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 179, 71, 0.22), rgba(26, 15, 10, 0.94));
  border: 2px solid rgba(255, 179, 71, 0.62);
}

.station-center-prep-mat.drag-over-cup {
  border-color: #ffe066;
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.65), inset 0 0 22px rgba(255, 179, 71, 0.28);
}

.prep-mat-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 10px;
  padding: 4px 6px;
}

.center-interactive-cup-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: grab;
}

.center-interactive-cup-wrap:active {
  cursor: grabbing;
}

.center-interactive-cup-wrap .live-cup-vessel {
  position: relative;
  width: 124px;
  height: 142px;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.live-cup-prop-bg {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.75));
  pointer-events: none;
}

/* 杯腹中央半透明分层液位视窗 */
.center-interactive-cup-wrap .vessel-inner {
  position: relative;
  z-index: 2;
  width: 64px;
  height: 82px;
  margin-top: 8px;
  border-radius: 10px 10px 22px 22px;
  border: 1.5px solid rgba(255, 248, 238, 0.55);
  background: rgba(16, 9, 6, 0.48);
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.center-interactive-cup-wrap .vessel-handle {
  display: none;
}

.cup-top-latte-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  z-index: 5;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff8ee 30%, #d48c46 100%);
  border: 2px solid #3b1e0e;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
  display: grid;
  place-items: center;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.cup-top-latte-badge:hover {
  transform: scale(1.16);
}

/* 飞入倾倒道具壶与液流瀑布动画 */
.flying-pour-prop {
  position: absolute;
  top: -10px;
  left: 16px;
  z-index: 20;
  width: 78px;
  height: 78px;
  pointer-events: none;
}

.flying-pour-prop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.75));
}

.flying-pour-prop.pouring-now {
  animation: pitcherTiltPour 0.66s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pitcherTiltPour {
  0% {
    opacity: 0;
    transform: translate(-24px, -14px) rotate(0deg) scale(0.85);
  }
  28% {
    opacity: 1;
    transform: translate(4px, 0px) rotate(38deg) scale(1.05);
  }
  75% {
    opacity: 1;
    transform: translate(6px, 2px) rotate(44deg) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(-12px, -16px) rotate(10deg) scale(0.9);
  }
}

.pour-liquid-stream {
  position: absolute;
  top: 34px;
  left: 72px;
  z-index: 18;
  width: 7px;
  height: 0;
  border-radius: 99px;
  pointer-events: none;
}

.pour-liquid-stream.streaming-now {
  animation: liquidWaterfall 0.62s ease-out forwards;
}

@keyframes liquidWaterfall {
  0% { height: 0; opacity: 0; }
  22% { height: 68px; opacity: 0.95; }
  78% { height: 72px; opacity: 0.95; }
  100% { height: 0; opacity: 0; transform: translateY(34px); }
}

.falling-ice-fx {
  position: absolute;
  top: 6px;
  left: 52px;
  z-index: 19;
  display: flex;
  gap: 4px;
  font-size: 18px;
  pointer-events: none;
}

.falling-ice-fx.dropping-now {
  animation: iceDropSplash 0.62s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

@keyframes iceDropSplash {
  0% { opacity: 0; transform: translateY(-22px) scale(0.8); }
  35% { opacity: 1; transform: translateY(18px) scale(1.1); }
  100% { opacity: 0; transform: translateY(58px) scale(0.9); }
}

.cup-splash-bounce {
  animation: cupBounce 0.36s ease;
}

@keyframes cupBounce {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.07, 0.94); }
  75% { transform: scale(0.97, 1.03); }
}

/* 杯垫右侧：拉花钢杯按钮 + 推杯奉茶按钮 */
.prep-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 148px;
}

.latte-pitcher-trigger-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(64, 38, 22, 0.92), rgba(34, 19, 11, 0.95));
  border: 1.5px solid rgba(255, 209, 102, 0.55);
  color: #fff6e8;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
}

.latte-pitcher-trigger-btn:hover {
  transform: translateY(-2px);
  border-color: #ffd166;
  box-shadow: 0 8px 18px rgba(255, 179, 71, 0.32);
}

.latte-pitcher-trigger-btn img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.pitcher-btn-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pitcher-btn-meta strong {
  font-size: 12px;
  color: #ffd88a;
}

.pitcher-btn-meta small {
  font-size: 10px;
  color: #cbb094;
}

.pov-serve-cta {
  padding: 10px 12px !important;
  border-radius: 14px !important;
}

.pov-serve-cta .bell-text-wrap strong {
  font-size: 13.5px;
}

.pov-serve-cta .bell-text-wrap small {
  font-size: 10px;
}

.pov-slots-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 4px;
}

.pov-slots-bar .chalk-slot-item {
  padding: 4px 6px;
  border-radius: 8px;
}

.pov-slots-bar .slot-kind {
  font-size: 9.5px;
}

.pov-slots-bar .slot-val {
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 俯视拉花放大镜弹窗 */
.latte-loupe-modal {
  max-width: 780px;
  width: 94%;
}

.latte-loupe-footer-btns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.latte-loupe-footer-btns .primary-wood-cta,
.latte-loupe-footer-btns .serve-bell-cta {
  flex: 1;
}


/* ============================================================================
   V3 UPGRADE: 超大号实体道具 + 按住左键拿起实时跟随倾倒 + Lv.1~Lv.4 渐进解锁
   ============================================================================ */

/* 顶部吧台等级与下一级解锁提示徽章 */
.hud-strip-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.barista-level-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 140, 70, 0.28), rgba(74, 38, 18, 0.85));
  border: 1.5px solid #ffb347;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.barista-level-badge .lv-tag {
  font-size: 12.5px;
  font-weight: 900;
  color: #ffe082;
}

.barista-level-badge .lv-next-hint {
  font-size: 11.5px;
  color: #f3DEC6;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 209, 102, 0.38);
}

.unlock-all-props-btn {
  padding: 5px 12px !important;
  font-size: 11.5px !important;
  border-color: rgba(255, 209, 102, 0.6) !important;
  color: #ffe082 !important;
}

/* 大幅放大所有桌面道具尺寸 */
.prop-machine-img {
  max-height: 164px !important;
}

.prop-cup-switch-btn img {
  width: 56px !important;
  height: 56px !important;
}

.latte-pitcher-trigger-btn img {
  width: 58px !important;
  height: 58px !important;
}

.center-interactive-cup-wrap .live-cup-vessel {
  width: 148px !important;
  height: 164px !important;
}

.center-interactive-cup-wrap .vessel-inner {
  width: 76px !important;
  height: 96px !important;
}

/* 根据当前已解锁道具数量自动放大网格与器具图标 (Lv.1 初期 2茶2料 超大立体陈列！) */
#base-grid[data-unlocked-count="2"],
#addon-grid[data-unlocked-count="2"] {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 10px !important;
}

#base-grid[data-unlocked-count="2"] .pov-prop-thumb-wrap,
#addon-grid[data-unlocked-count="2"] .pov-prop-thumb-wrap {
  width: 112px !important;
  height: 112px !important;
}

#base-grid[data-unlocked-count="4"] .pov-prop-thumb-wrap,
#addon-grid[data-unlocked-count="4"] .pov-prop-thumb-wrap,
#base-grid[data-unlocked-count="5"] .pov-prop-thumb-wrap {
  width: 92px !important;
  height: 92px !important;
}

/* 满级 6茶 7料 时也保持 84px 大图标 (比原先 58px 放大近 1.5 倍！) */
.pov-prop-thumb-wrap {
  width: 84px !important;
  height: 84px !important;
}

.ing-card.pov-prop-item {
  padding: 6px 4px !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.ing-card.pov-prop-item .ing-name {
  font-size: 12.5px !important;
  font-weight: 900 !important;
}

/* 被按住左键拿在手里的原位半透明残影 */
.is-picked-up-ghost {
  opacity: 0.25 !important;
  transform: scale(0.92) !important;
  filter: grayscale(0.5);
}

/* 下一级待解锁剪影预告卡 */
.ing-card.pov-prop-item.locked-prop-teaser {
  opacity: 0.58;
  cursor: not-allowed;
  border-style: dashed;
  border-color: rgba(212, 140, 70, 0.35);
  background: rgba(15, 9, 6, 0.55);
}

.ing-card.pov-prop-item.locked-prop-teaser:hover {
  transform: none;
  box-shadow: none;
}

.pov-prop-img.locked-silhouette {
  filter: brightness(0.25) sepia(0.6) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

.lock-overlay-badge {
  position: absolute;
  inset: auto auto 6px auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(18, 10, 6, 0.92);
  border: 1px solid #ffb347;
  color: #ffd88a;
  font-size: 10.5px;
  font-weight: 900;
  white-space: nowrap;
}

/* 当手持道具时，中央杯垫发光引导圈 */
.station-center-prep-mat.awaiting-prop-drop {
  border-color: #ffd166;
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.38);
}

/* ================= 按住左键「手持实体道具」60FPS 跟随鼠标浮层 ================= */
.hand-held-prop-follower {
  position: fixed;
  left: 0;
  top: 0;
  width: 146px;
  height: 146px;
  transform: translate(-50%, -62%) rotate(var(--hand-tilt, -10deg)) scale(1.16);
  pointer-events: none;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hand-held-prop-follower.hidden {
  display: none !important;
}

.hand-held-prop-follower img {
  width: 136px;
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(0 22px 28px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 14px rgba(255, 179, 71, 0.42));
}

/* 当手持茶壶/糖浆瓶移到中央杯口上方时，自动倾斜 44 度倒出液流！ */
.hand-held-prop-follower.pouring-in-hand {
  transform: translate(-58%, -72%) rotate(42deg) scale(1.22) !important;
}

.hand-held-pour-stream {
  position: absolute;
  top: 78%;
  left: 68%;
  width: 8px;
  height: 82px;
  border-radius: 99px;
  transform: rotate(-42deg);
  transform-origin: top center;
  animation: streamPulse 0.16s infinite alternate;
}

@keyframes streamPulse {
  0% { width: 7px; opacity: 0.92; }
  100% { width: 10px; opacity: 1; }
}

.hand-held-prop-label {
  margin-top: -4px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(20, 11, 7, 0.94);
  border: 1.5px solid #ffb347;
  color: #ffe5a8;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.75);
}


/* ============================================================================
   V4 IMMERSIVE BAR COUNTER SCENE: 彻底去除纯色底框，所有器具直接立于手绘胡桃木吧台台面！
   ============================================================================ */

/* 减轻环境遮罩，让全屏手绘吧台与窗景100%清晰透亮 */
.ambient-vignette {
  opacity: 0.35 !important;
}

.pov-room-bg-layer .scene-backdrop-img {
  object-position: center center !important;
  filter: saturate(1.12) contrast(1.04) brightness(1.04) !important;
}

.pov-room-bg-layer .window-tint-layer {
  opacity: 0.32 !important;
}

/* 顶部导航横梁改为半透明木纹毛玻璃，不压暗画面 */
.cafe-top-beam {
  background: rgba(24, 14, 9, 0.72) !important;
  backdrop-filter: blur(10px) !important;
  border-bottom: 1px solid rgba(255, 190, 105, 0.32) !important;
}

/* 下半屏操作台：彻底去掉纯色深棕背景块，直接露出全屏背景图下半部分的真实手绘木吧台台面！ */
.pov-lower-workbench {
  background: linear-gradient(
    180deg,
    rgba(20, 11, 6, 0.0) 0%,
    rgba(24, 13, 7, 0.18) 22%,
    rgba(18, 10, 5, 0.32) 100%
  ) !important;
  border-top: none !important;
  box-shadow: none !important;
  padding: 4px 22px 14px !important;
}

/* 顶部细长引导条：悬浮半透明胶囊，不遮挡吧台 */
.workbench-hud-strip {
  background: rgba(20, 11, 7, 0.62) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 196, 110, 0.35) !important;
  border-radius: 999px !important;
  padding: 4px 16px !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45) !important;
}

/* 四大工位容器：去掉所有黑棕色纯色方框与边框，让器具直接摆在木头吧台上！ */
.pov-station,
.station-center-prep-mat {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 2px 6px 6px !important;
  overflow: visible !important;
}

/* 工位底部增加一道立体木质托盘/台面阴影垫，增强器具立在木桌上的真实感 */
.pov-station::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 4px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(10, 5, 2, 0.55) 0%, rgba(10, 5, 2, 0) 75%);
  z-index: 0;
  pointer-events: none;
}

.pov-station > * {
  position: relative;
  z-index: 1;
}

/* 工位小标题：做成精致的悬浮黄铜铭牌，不占面积 */
.station-header-tag {
  align-self: center;
  display: inline-flex !important;
  padding: 2px 12px !important;
  margin-bottom: 2px !important;
  border-radius: 999px !important;
  background: rgba(22, 12, 7, 0.68) !important;
  border: 1px solid rgba(255, 196, 110, 0.42) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45) !important;
  font-size: 11.5px !important;
}

/* ================= 器具去方框化：咖啡机、茶壶、糖浆瓶、杯具直接立在木吧台上 ================= */
.machine-img-wrap {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.machine-img-wrap:hover {
  box-shadow: none !important;
  filter: drop-shadow(0 0 16px rgba(255, 195, 90, 0.65));
}

.prop-machine-img {
  max-height: 182px !important;
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.82)) !important;
}

.mini-pressure-gauge {
  background: rgba(20, 11, 7, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(255, 190, 100, 0.45) !important;
}

/* 冷热杯具与黄铜冰桶：无框直接陈列在吧台木面上 */
.prop-cup-switch-btn {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 2px !important;
  padding: 2px !important;
}

.prop-cup-switch-btn img {
  width: 68px !important;
  height: 68px !important;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.8)) !important;
}

.prop-cup-switch-btn span {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(20, 11, 7, 0.78);
  border: 1px solid rgba(212, 140, 70, 0.45);
  font-size: 11px;
  white-space: nowrap;
}

.prop-cup-switch-btn.active img {
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 14px rgba(255, 190, 80, 0.85)) !important;
  transform: scale(1.08);
}

.prop-cup-switch-btn.active span {
  background: linear-gradient(135deg, #d48c46, #7a4216);
  border-color: #ffe082;
  color: #fff;
}

/* 6款基底茶壶 & 7款糖浆泵瓶：去掉纯色方框，直接立在木吧台上 + 底部椭圆桌面接触阴影！ */
.ing-card.pov-prop-item {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  position: relative;
}

/* 每个茶壶/瓶子底部的真实木桌面接触投影 */
.ing-card.pov-prop-item .pov-prop-thumb-wrap::before {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 14%;
  right: 14%;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(8, 4, 1, 0.78) 0%, rgba(8, 4, 1, 0) 75%);
  z-index: 0;
  pointer-events: none;
}

.ing-card.pov-prop-item .pov-prop-img {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.78)) !important;
}

.ing-card.pov-prop-item:hover {
  box-shadow: none !important;
  transform: translateY(-6px) scale(1.06) !important;
}

.ing-card.pov-prop-item:hover .pov-prop-img {
  filter: drop-shadow(0 14px 16px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 14px rgba(255, 200, 95, 0.75)) !important;
}

.ing-card.pov-prop-item.selected .pov-prop-img {
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.82)) drop-shadow(0 0 16px rgba(255, 210, 90, 0.95)) !important;
}

/* 壶底小木牌名称签 */
.ing-card.pov-prop-item .ing-meta {
  background: rgba(22, 12, 7, 0.82);
  border: 1px solid rgba(212, 140, 70, 0.5);
  border-radius: 999px;
  padding: 2px 10px;
  margin-top: -4px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.ing-card.pov-prop-item.selected .ing-meta {
  background: linear-gradient(135deg, #c87d32, #6e3b14);
  border-color: #ffe082;
}

.ing-card.pov-prop-item .ing-tags {
  display: none !important; /* 隐藏繁琐小字标签，保持桌面像真实做菜游戏一样清爽 */
}

/* 中央调制主杯与拉花钢杯：同样无边框立在吧台中央杯垫上 */
.latte-pitcher-trigger-btn {
  background: rgba(24, 13, 7, 0.65) !important;
  backdrop-filter: blur(6px) !important;
  border: 1.5px solid rgba(255, 209, 102, 0.55) !important;
  border-radius: 16px !important;
}

.pov-slots-bar .chalk-slot-item {
  background: rgba(20, 11, 7, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  border: 1px solid rgba(212, 140, 70, 0.4) !important;
}

/* 顾客点单区：改为通透的暖木毛玻璃挂牌，不挡背景窗景与黑胶架 */
.pov-customer-order-board {
  background: rgba(24, 14, 9, 0.72) !important;
  backdrop-filter: blur(10px) !important;
  border: 1.5px solid rgba(255, 195, 110, 0.48) !important;
}


/* 精准对齐 49% 吧台木台远端边缘：女主立在吧台后缘，所有器具立在下半屏实木吧台台面上 */
.pov-upper-customer-zone {
  flex: 0 0 45% !important;
  max-height: 46% !important;
  padding-bottom: 0 !important;
}

.pov-customer-center-stage {
  padding-bottom: 0 !important;
}


/* V5: 正面大号意式浓缩咖啡机尺寸放大与正面双嘴液流对齐 */
.pov-stations-deck {
  grid-template-columns: 1.24fr 1.12fr 1.22fr 1.28fr !important;
}

.station-machine-row {
  grid-template-columns: 1.48fr 0.72fr !important;
  gap: 6px !important;
}

.prop-machine-img {
  max-height: 206px !important;
  width: auto !important;
  transform: scale(1.06);
}

.machine-espresso-stream {
  left: 50% !important;
  top: 63% !important;
  width: 8px !important;
  transform: translateX(-50%);
}


/* ============================================================================
   V6: 陶瓷杯纯净无遮挡展示 + 独立竖向分层容量进度管 + 四分区嵌入式咖啡师工作台对齐
   ============================================================================ */

.cup-and-side-meter-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

/* 陶瓷杯与玻璃杯本体 100% 干净呈现，不再在杯腹叠加半透明矩形框 */
.center-interactive-cup-wrap .live-cup-vessel {
  position: relative;
  width: 152px !important;
  height: 166px !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center-interactive-cup-wrap .live-cup-prop-bg {
  position: relative !important;
  inset: auto !important;
  width: 150px !important;
  height: 150px !important;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.82)) !important;
}

/* 冰块浮于杯口上方，不遮挡杯身 */
.center-interactive-cup-wrap .vessel-ice-cubes {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 3px;
  font-size: 16px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

/* 杯子旁边的独立竖向分层容量进度管 */
.side-capacity-meter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 7px 8px;
  border-radius: 14px;
  background: rgba(20, 11, 7, 0.78);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 195, 105, 0.52);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 240, 210, 0.2);
}

.capacity-meter-head {
  font-size: 10.5px;
  font-weight: 900;
  color: #ffd88a;
  letter-spacing: 0.5px;
}

.capacity-tube-wrap {
  display: flex;
  align-items: stretch;
  gap: 5px;
  height: 108px;
}

.capacity-ticks {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 9px;
  font-weight: 800;
  color: #c9ae91;
  text-align: right;
  padding: 2px 0;
}

.vessel-inner.capacity-progress-tube {
  position: relative !important;
  width: 22px !important;
  height: 108px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  border: 2px solid rgba(255, 224, 166, 0.75) !important;
  background: rgba(10, 5, 3, 0.85) !important;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.85), 0 0 10px rgba(255, 179, 71, 0.22) !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* 玻璃量管高光条 */
.vessel-inner.capacity-progress-tube::after {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 3px;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.vessel-inner.capacity-progress-tube .vessel-layer {
  width: 100%;
  transition: height 0.38s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.28s ease;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.capacity-pct-text {
  font-size: 11.5px;
  font-weight: 900;
  color: #ffe082;
}


/* ============================================================================
   V7: 多客排队倒计时冲刺 + 实时手把手发光下一步指引 + 30秒图文教程弹窗
   ============================================================================ */

.highlight-tut-btn {
  background: linear-gradient(135deg, #f59e0b, #b45309) !important;
  border-color: #fde68a !important;
  color: #fff !important;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.45);
}

.active-rush-pill {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(180, 83, 9, 0.55)) !important;
  border-color: #fca5a5 !important;
  color: #fef2f2 !important;
}

/* 顶部中央：手把手实时下一步指引横幅 */
.live-step-guide-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 16px;
  border-radius: 999px;
  background: rgba(20, 11, 6, 0.86);
  backdrop-filter: blur(10px);
  border: 1.5px solid #ffd166;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.65), 0 0 16px rgba(255, 209, 102, 0.32);
  max-width: 680px;
}

.guide-step-pulse {
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffb347, #e07a18);
  color: #1c0f06;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
  animation: guidePulse 1.1s infinite alternate;
}

@keyframes guidePulse {
  0% { transform: scale(0.97); }
  100% { transform: scale(1.04); box-shadow: 0 0 12px rgba(255, 179, 71, 0.8); }
}

.guide-step-text {
  font-size: 12.5px;
  color: #fff8ee;
  line-height: 1.3;
}

.guide-step-text strong {
  color: #ffd166;
}

/* 桌面上当前下一步需要操作的茶壶/咖啡机/杯子发光高亮 + 浮动手指标签 */
.guide-target-glow {
  position: relative !important;
  filter: drop-shadow(0 0 16px rgba(255, 209, 102, 0.92)) !important;
}

.prop-step-pointer-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe066, #f59e0b);
  color: #1c0f05;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  border: 1.5px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.78);
  pointer-events: none;
  animation: pointerFloat 0.75s ease-in-out infinite alternate;
}

@keyframes pointerFloat {
  0% { transform: translate(-50%, 0px); }
  100% { transform: translate(-50%, -6px); }
}

/* ================= 上半屏：1~3位客人并排吧台候餐舞台 ================= */
.multi-customer-seats-row {
  width: 100%;
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  padding: 0 10px;
}

.customer-seat-card {
  position: relative;
  flex: 1;
  max-width: 465px;
  height: 96%;
  max-height: 295px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 8px 10px 0;
  border-radius: 18px 18px 0 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.customer-seat-card:hover {
  transform: translateY(-2px);
}

.customer-seat-card.is-focused-seat .seat-ticket-col {
  border-color: #ffd166;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75), 0 0 18px rgba(255, 209, 102, 0.36);
}

.customer-seat-card.is-ready-to-serve .seat-ticket-col {
  border-color: #4ade80;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.75), 0 0 22px rgba(74, 222, 128, 0.48);
}

/* 左侧客人半身立绘列 */
.seat-portrait-col {
  position: relative;
  width: 165px;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.seat-heroine-img {
  max-height: 275px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.82));
  transition: transform 0.2s ease;
}

.customer-seat-card.is-focused-seat .seat-heroine-img {
  transform: scale(1.04);
}

.seat-drop-serve-badge {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  color: #071c0e;
  font-size: 12.5px;
  font-weight: 900;
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(22, 163, 74, 0.75);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.18s ease;
  z-index: 20;
}

.customer-seat-card.awaiting-serve-drop .seat-drop-serve-badge {
  opacity: 0.88;
  transform: translate(-50%, -50%) scale(1);
}

.customer-seat-card.hover-serve-drop {
  transform: scale(1.05);
  filter: drop-shadow(0 0 24px rgba(74, 222, 128, 0.85));
}

.customer-seat-card.hover-serve-drop .seat-drop-serve-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.12);
}

/* 出餐瞬间的星级与赏金爆字横幅 */
.seat-celebrate-burst {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  padding: 6px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #1c0f05;
  font-size: 14px;
  font-weight: 900;
  border: 2px solid #fff;
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.85);
  white-space: nowrap;
  animation: burstPopUp 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes burstPopUp {
  0% { opacity: 0; transform: translate(-50%, 16px) scale(0.75); }
  100% { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* 右侧可视化配方小票与倒计时卡 */
.seat-ticket-col {
  flex: 1;
  min-width: 0;
  margin-bottom: 10px;
  padding: 9px 11px;
  border-radius: 16px;
  background: rgba(22, 13, 8, 0.82);
  backdrop-filter: blur(10px);
  border: 1.5px solid rgba(212, 140, 70, 0.45);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seat-ticket-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.seat-guest-name-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.seat-focus-dot {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.22);
  border: 1px solid rgba(255, 179, 71, 0.5);
  color: #ffd88a;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.customer-seat-card.is-focused-seat .seat-focus-dot {
  background: #ffb347;
  color: #1c0f05;
}

.seat-guest-name {
  font-size: 14px;
  font-weight: 900;
  color: #fff6e8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 倒计时胶囊与彩色进度条 */
.seat-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
}

.seat-timer-pill.timer-green {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid #4ade80;
  color: #86efac;
}

.seat-timer-pill.timer-amber {
  background: rgba(245, 158, 11, 0.26);
  border: 1px solid #fbbf24;
  color: #fde68a;
}

.seat-timer-pill.timer-red {
  background: rgba(239, 68, 68, 0.35);
  border: 1px solid #f87171;
  color: #fecaca;
  animation: guidePulse 0.45s infinite alternate;
}

.seat-patience-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.seat-patience-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.25s linear;
}

.seat-patience-fill.timer-green {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.seat-patience-fill.timer-amber {
  background: linear-gradient(90deg, #f59e0b, #fde047);
}

.seat-patience-fill.timer-red {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

/* 一目了然的图标配方单 */
.seat-visual-formula {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.ticket-formula-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(12, 7, 4, 0.72);
  border: 1px solid rgba(212, 140, 70, 0.42);
  color: #f3e2ce;
  font-size: 11px;
  font-weight: 800;
}

.ticket-formula-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.ticket-formula-chip.is-done {
  background: rgba(22, 101, 52, 0.55);
  border-color: #4ade80;
  color: #bbf7d0;
}

.chip-check {
  color: #4ade80;
  font-weight: 900;
}

.seat-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 2px;
  border-top: 1px dashed rgba(212, 140, 70, 0.25);
}

.seat-short-quote {
  font-size: 11px;
  color: #d6bca1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.seat-quick-serve-btn {
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d48c46, #8c4f1c);
  border: 1px solid #ffd166;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease;
}

.seat-quick-serve-btn:hover {
  transform: scale(1.06);
}

.seat-quick-serve-btn.ready-pulse {
  background: linear-gradient(135deg, #22c55e, #15803d);
  border-color: #bbf7d0;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
  animation: guidePulse 0.6s infinite alternate;
}

/* ================= 30秒图文上手教程弹窗 ================= */
.tutorial-modal-card {
  max-width: 860px;
}

.tutorial-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 14px 0 18px;
}

.tut-step-card {
  background: rgba(20, 12, 7, 0.78);
  border: 1.5px solid rgba(212, 140, 70, 0.45);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tut-step-card.highlight {
  background: linear-gradient(135deg, rgba(84, 44, 16, 0.75), rgba(32, 17, 9, 0.9));
  border-color: #ffd166;
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.22);
}

.tut-step-num {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 179, 71, 0.22);
  border: 1px solid rgba(255, 179, 71, 0.55);
  color: #ffd88a;
  font-size: 11.5px;
  font-weight: 900;
}

.tut-step-body strong {
  display: block;
  font-size: 15px;
  color: #fff6e8;
  margin-bottom: 6px;
}

.tut-step-body p {
  font-size: 13px;
  line-height: 1.6;
  color: #e2cbb2;
}

.tut-step-body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 179, 71, 0.2);
  color: #ffe082;
  font-weight: 800;
}

.tutorial-modal-footer {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   触屏拖拽：所有用 pointer 事件拿起的道具禁止浏览器触摸手势抢占（滚动/缩放）
   ========================================================================== */
.prop-cup-switch-btn,
#btn-temp-hot,
#btn-temp-iced,
#btn-ice-bucket-scoop,
#center-draggable-cup,
.center-interactive-cup-wrap,
.cup-and-side-meter-group,
#btn-open-latte-loupe,
.latte-pitcher-trigger-btn,
#btn-brew-hold {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* ==========================================================================
   移动端 (≤ 768px)：改为纵向自然滚动布局；≥ 769px 桌面布局不受影响
   ========================================================================== */
@media (max-width: 768px) {
  body.pov-cafe-body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* 顶部横梁：允许换行，按钮保持正常横排文字 */
  .cafe-top-beam {
    position: relative !important;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 12px !important;
  }
  .beam-left,
  .beam-center,
  .beam-right {
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }
  .shift-selector {
    flex-wrap: nowrap;
    max-width: 100%;
  }
  .shift-pill,
  .wood-action-btn,
  .wood-nav-btn,
  .stat-chip,
  .mini-wood-btn {
    white-space: nowrap;
    writing-mode: horizontal-tb;
  }
  .beam-action-group,
  .cafe-stats-ledger {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* 主舞台：不再锁死 100vh，上下两区按内容高度排列 */
  .pov-cafe-viewport {
    flex: none;
    overflow: visible;
    justify-content: flex-start;
  }
  .pov-upper-customer-zone {
    flex: none !important;
    max-height: none !important;
    min-height: 0;
    padding: 8px 12px 0 !important;
    gap: 8px;
  }
  .hanging-lamps {
    display: none;
  }

  /* 指引横幅 + 客人工具栏：纵向排列，文字正常横排 */
  .pov-top-hud-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .live-step-guide-banner {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    max-width: none;
    min-width: 0;
    border-radius: 16px;
    padding: 8px 12px;
  }
  .live-step-guide-banner > * {
    min-width: 0;
  }
  .guide-step-text {
    flex: 1 1 180px;
    min-width: 160px;
    word-break: normal;
  }
  .pov-top-hud-bar .counter-guest-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    position: static !important;
  }
  .counter-guest-toolbar .mini-wood-btn {
    flex: 0 0 auto;
    min-width: 72px;
    height: auto;
    padding: 6px 10px;
  }

  /* 客人席位：横向滚动一排，每位客人一张卡片 */
  .pov-customer-center-stage {
    flex: none;
    width: 100%;
    max-width: 100%;
    display: block;
  }
  .multi-customer-seats-row {
    height: auto;
    justify-content: flex-start;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    padding: 4px 2px 8px;
  }
  .customer-seat-card {
    flex: 0 0 min(340px, 92%);
    min-width: 0;
    max-width: 340px;
    height: auto;
    max-height: none;
    min-height: 210px;
    align-items: flex-end;
    scroll-snap-align: start;
    padding: 6px 6px 0;
  }
  .seat-portrait-col {
    width: 84px;
    height: auto;
    align-self: stretch;
  }
  .seat-heroine-img {
    max-height: 190px;
  }
  .seat-drop-serve-badge {
    font-size: 10px;
  }

  /* 下半屏操作台：四个工位纵向堆叠，道具保持可点按尺寸 */
  .pov-lower-workbench {
    flex: none;
    padding: 6px 12px 16px !important;
  }
  .workbench-hud-strip {
    border-radius: 16px !important;
    padding: 8px 12px !important;
    flex-direction: column;
    align-items: stretch;
  }
  .hud-strip-left,
  .hud-strip-center {
    flex-wrap: wrap;
    min-width: 0;
  }
  .pov-stations-deck {
    flex: none;
    display: flex !important;
    flex-direction: column;
    gap: 14px;
  }
  .pov-station,
  .station-center-prep-mat {
    width: 100%;
    min-width: 0;
    height: auto;
  }
  .station-header-tag {
    flex-wrap: wrap;
    white-space: normal;
    writing-mode: horizontal-tb;
  }
  .station-machine-row {
    grid-template-columns: 1fr 1fr !important;
    align-items: stretch;
  }
  .espresso-machine-rig {
    height: auto;
  }
  .machine-img-wrap {
    min-height: 160px;
  }
  .prop-machine-img {
    max-height: 170px !important;
    transform: none;
  }
  .cups-and-ice-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .prop-cup-switch-btn {
    min-height: 56px;
    height: auto;
  }
  .prop-cup-switch-btn img {
    max-height: 44px;
  }
  .pov-props-grid,
  .station-addons-rack .pov-props-grid,
  .base-grid,
  .addon-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)) !important;
    gap: 8px !important;
    height: auto;
  }
  .ing-card.pov-prop-item {
    width: auto !important;
    min-width: 0;
    min-height: 96px;
    height: auto !important;
  }
  .pov-prop-thumb-wrap {
    width: 64px !important;
    height: 64px !important;
    margin: 0 auto;
  }
  .ing-meta {
    width: 100% !important;
    text-align: center;
    white-space: normal;
  }
  .prep-mat-stage {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    height: auto;
  }
  .prep-side-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .latte-pitcher-trigger-btn,
  .serve-bell-cta {
    min-height: 52px;
  }
  .chalk-slots-grid.pov-slots-bar {
    grid-template-columns: repeat(2, 1fr) !important;
    width: 100%;
  }

  /* 教程弹窗：单列卡片，避免窄屏下两列挤成竖排 */
  .tutorial-steps-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ==========================================================================
   营业时段回合 HUD（⏳ 时钟 / 🎯 营业额目标 / ❤️ 口碑）
   ========================================================================== */
.beam-center {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.shift-pill {
  cursor: default;
}

/* 时段随营业时钟推进，非当前时段的胶囊不再有可点击的悬停高亮 */
.shift-pill:not(.active):hover {
  background: transparent;
  color: var(--foam-muted);
}


.shift-round-hud {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: system-ui, -apple-system, sans-serif;
}

.round-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--foam-cream);
  font-size: 12px;
  white-space: nowrap;
}

.round-chip strong {
  color: var(--amber-glow);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.round-chip small {
  color: var(--foam-muted);
  font-size: 11px;
}

.round-clock strong {
  min-width: 34px;
  display: inline-block;
}

.shift-round-hud.is-urgent .round-clock {
  border-color: #f87171;
  background: rgba(127, 29, 29, 0.55);
  animation: guidePulse 0.6s infinite alternate;
}

.shift-round-hud.is-urgent .round-clock strong {
  color: #fecaca;
}

.round-goal {
  position: relative;
  padding-bottom: 7px;
}

.round-goal-bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 3px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.round-goal-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d48c46, #ffd166);
  transition: width 0.3s ease;
}

.shift-round-hud.goal-met .round-goal {
  border-color: #4ade80;
}

.shift-round-hud.goal-met .round-goal strong {
  color: #86efac;
}

.shift-round-hud.goal-met .round-goal-bar i {
  background: linear-gradient(90deg, #22c55e, #86efac);
}

.round-rep {
  letter-spacing: 1px;
  font-size: 12px;
}

.round-rep.rep-shake {
  animation: repShake 0.45s ease;
}

@keyframes repShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

/* ==========================================================================
   出餐后的吧台夜谈气泡（替换该客人的配方小票，不遮挡操作台）
   ========================================================================== */
.seat-talk-col {
  border-color: rgba(255, 209, 102, 0.7) !important;
  background: rgba(36, 20, 10, 0.9);
  overflow: hidden;
  gap: 5px;
}

.seat-talk-reward {
  min-width: 0;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fde047, #f59e0b);
  color: #1c0f05;
  font-size: 11.5px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: talkRewardPop 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes talkRewardPop {
  0% { opacity: 0; transform: scale(0.75); }
  100% { opacity: 1; transform: scale(1); }
}

.seat-talk-line strong {
  color: #ffd166;
}

.seat-talk-timer {
  font-size: 11px;
  font-weight: 800;
  color: var(--foam-muted);
  font-variant-numeric: tabular-nums;
}

.seat-talk-line {
  font-size: 12px;
  line-height: 1.45;
  color: #fff3df;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.seat-talk-col.is-answered .seat-talk-line {
  -webkit-line-clamp: 4;
  color: #ffd9e2;
}

.seat-talk-choices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.seat-talk-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  text-align: left;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(20, 12, 7, 0.85);
  border: 1px solid rgba(212, 140, 70, 0.7);
  color: var(--foam-cream);
  font-size: 11.5px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.seat-talk-choice:hover,
.seat-talk-choice:focus-visible {
  background: rgba(212, 140, 70, 0.3);
  border-color: #ffd166;
}

.seat-talk-choice .talk-choice-text {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.seat-talk-choice small {
  flex-shrink: 0;
  color: #ffb3c1;
  font-size: 10.5px;
  font-weight: 800;
}

.seat-talk-skip {
  align-self: flex-end;
  padding: 2px 8px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--foam-muted);
  font-size: 10.5px;
  cursor: pointer;
}

.seat-talk-skip:hover {
  color: var(--foam-cream);
  border-color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   时段结算弹窗
   ========================================================================== */
.shift-summary-card {
  max-width: 560px;
}

.summary-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffe082;
}

.summary-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(20, 12, 7, 0.78);
  border: 1px solid rgba(212, 140, 70, 0.4);
  font-size: 12px;
  color: var(--foam-muted);
}

.summary-stat strong {
  font-size: 17px;
  color: var(--foam-cream);
}

.summary-stat strong.is-met {
  color: #86efac;
}

.summary-stat strong.is-miss {
  color: #fca5a5;
}

.summary-goal-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.summary-goal-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d48c46, #ffd166);
}

.summary-affection {
  margin-bottom: 12px;
}

.summary-aff-title {
  font-size: 12px;
  color: var(--foam-muted);
  margin-bottom: 6px;
}

.summary-aff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.summary-aff-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(217, 83, 111, 0.2);
  border: 1px solid rgba(255, 141, 161, 0.55);
  color: #ffc2cf;
  font-size: 12px;
  font-weight: 700;
}

.summary-upgrade {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.summary-upgrade:empty {
  display: none;
}

.summary-upgrade-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.summary-upgrade-info strong {
  font-size: 13px;
  color: #ffe082;
}

.summary-upgrade-info small,
.summary-upgrade-note {
  font-size: 11.5px;
  color: var(--foam-muted);
}

.summary-upgrade-btn {
  flex-shrink: 0;
  padding: 7px 14px !important;
  font-size: 12px !important;
}

.summary-upgrade-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.summary-actions .mini-wood-btn {
  padding: 8px 16px;
  font-size: 13px;
}

/* 教程：营业规则卡片横跨两列；段落内的强调字保持行内显示 */
.tut-rules-card {
  grid-column: 1 / -1;
}

.tut-step-body p strong {
  display: inline;
  font-size: inherit;
  margin: 0;
}

@media (max-width: 768px) {
  .shift-round-hud {
    flex-wrap: wrap;
    justify-content: center;
  }
  .seat-talk-choice .talk-choice-text {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .seat-talk-line {
    -webkit-line-clamp: 3;
  }
  .summary-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cafe-modal-card.shift-summary-card {
    padding: 16px 14px;
  }
}

/* ==========================================================================
   玩法说明（精简速查弹窗）
   ========================================================================== */
.howto-card {
  max-width: 820px;
}
.howto-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}
.howto-section {
  background: rgba(20, 12, 7, 0.78);
  border: 1.5px solid rgba(212, 140, 70, 0.45);
  border-radius: 14px;
  padding: 12px 14px;
}
.howto-section h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: #ffd88a;
}
.howto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.howto-list li {
  display: flex;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: #ead6bf;
}
.howto-list li b {
  flex: 0 0 auto;
  width: 1.4em;
  text-align: center;
}
.howto-footer {
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 768px) {
  .howto-sections {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   新手引导「带你做第一杯」：聚光灯暗幕 + 脉冲光圈 + 手势 + 一句话气泡
   ========================================================================== */
.onb-root {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
}
.onb-root.hidden,
.onb-root.onb-yield {
  display: none;
}
.onb-root .hidden {
  display: none;
}
.onb-shade {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  overflow: visible;
}
.onb-shade-path {
  fill: rgba(8, 4, 2, 0.72);
  pointer-events: visiblePainted;
  cursor: default;
}
.onb-drag-line {
  stroke: #ffd166;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 10;
  opacity: 0.85;
  pointer-events: none;
  animation: onb-dash 0.9s linear infinite;
}
@keyframes onb-dash {
  to {
    stroke-dashoffset: -36;
  }
}
.onb-blocker {
  position: fixed;
  pointer-events: auto;
  background: transparent;
}
.onb-ring {
  position: fixed;
  border: 3px solid #ffd166;
  border-radius: 14px;
  pointer-events: none;
  animation: onb-ring-pulse 1.3s ease-out infinite;
}
@keyframes onb-ring-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.75), 0 0 18px rgba(255, 209, 102, 0.5);
  }
  100% {
    box-shadow: 0 0 0 16px rgba(255, 209, 102, 0), 0 0 18px rgba(255, 209, 102, 0.5);
  }
}
.onb-hand {
  position: fixed;
  width: 44px;
  height: 44px;
  margin-left: -16px;
  margin-top: -2px;
  font-size: 40px;
  line-height: 1;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.6));
  will-change: transform;
}
.onb-hand.onb-hand-tap {
  animation: onb-hand-tap 1.1s ease-in-out infinite;
}
.onb-hand.onb-hand-drag {
  animation: onb-hand-drag 2s ease-in-out infinite;
}
@keyframes onb-hand-tap {
  0%,
  100% {
    transform: translate(0, 14px) scale(1);
  }
  45% {
    transform: translate(0, 0) scale(0.86);
  }
}
@keyframes onb-hand-drag {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0;
  }
  12% {
    transform: translate(0, 0) scale(0.84);
    opacity: 1;
  }
  72% {
    transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.84);
    opacity: 1;
  }
  86% {
    transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(1);
    opacity: 0;
  }
}
.onb-bubble {
  position: fixed;
  left: 0;
  top: 0;
  max-width: calc(100vw - 16px);
  padding: 10px 16px;
  border-radius: 14px;
  background: #fff6e8;
  color: #3a1f0f;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 0 0 2px #ffd166;
  pointer-events: auto;
  cursor: default;
  transition: opacity 0.15s ease;
}
.onb-bubble::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  bottom: -8px;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  background: #fff6e8;
  transform: rotate(45deg);
  box-shadow: 2px 2px 0 0 #ffd166;
}
.onb-bubble.arrow-up::after {
  bottom: auto;
  top: -8px;
  box-shadow: -2px -2px 0 0 #ffd166;
}
.onb-bubble.is-callout {
  cursor: pointer;
}
.onb-bubble.onb-nudge {
  animation: onb-nudge 0.4s ease;
}
@keyframes onb-nudge {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.onb-skip {
  position: fixed;
  left: 12px;
  bottom: 12px;
  pointer-events: auto;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.6);
  color: #f3dcc0;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.onb-skip:hover {
  color: #fff;
}
.onb-root.onb-dragging .onb-hand,
.onb-root.onb-dragging .onb-drag-line,
.onb-root.onb-dragging .onb-bubble {
  opacity: 0;
}
body.cafe-onboarding-on .prop-step-pointer-tag,
body.cafe-onboarding-on .live-step-guide-banner {
  visibility: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .onb-ring,
  .onb-drag-line,
  .onb-hand.onb-hand-tap {
    animation: none;
  }
}
