/* Play mode (?play=1) HUD. Scoped under #play-hud / body.play-mode so the
   default viewer page is visually untouched.
   逛吃手账 20261002 冻结配色：瓷蓝 #244f68 / 浅玉 #71aaa0 / 米白 #fff7e8 /
   胭脂 #d56b70 / 蜂蜜 #deb26c。圆润细描边纸卡，中文系统字体。 */
body.play-mode {
  --pb-porcelain: #244f68;
  --pb-jade: #71aaa0;
  --pb-cream: #fff7e8;
  --pb-rouge: #d56b70;
  --pb-honey: #deb26c;
  --pb-ink: #2c4a5e;
  --pb-soft: rgba(36, 79, 104, 0.08);
}
body.play-mode #bar,
body.play-mode #hud { display: none !important; }

/* 空白区域指针穿透：只有按钮/面板本体可点，信息条不挡鼠标锁定 */
#play-hud {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
  font: 13px/1.6 system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color: var(--pb-ink);
}
#play-hud button {
  font: inherit;
  color: var(--pb-ink);
  background: var(--pb-cream);
  border: 1.5px solid var(--pb-porcelain);
  border-radius: 10px;
  padding: 5px 12px;
  cursor: pointer;
}
#play-hud button.active {
  background: var(--pb-porcelain);
  color: var(--pb-cream);
  border-color: var(--pb-porcelain);
}
#play-actions { display: flex; flex-wrap: wrap; max-width: calc(100vw - 24px); gap: 6px; pointer-events: auto; }

/* 左上：紧凑三味手账（宽约 240，不挡画面中心） */
#play-goal {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 30;
  width: 240px;
  box-sizing: border-box;
  pointer-events: auto;
  background: var(--pb-cream);
  border: 1.5px solid rgba(36, 79, 104, 0.85);
  border-radius: 14px;
  padding: 9px 12px 10px;
  box-shadow: 0 3px 10px rgba(36, 79, 104, 0.18);
}
#play-goal-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
#play-goal-title {
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pb-porcelain);
}
#play-goal-count { font-size: 11px; color: var(--pb-porcelain); font-weight: 600; }
#play-goal-sub { font-size: 12px; margin-top: 1px; }
#play-goal-next { color: var(--pb-ink); }
#play-goal-dist { color: rgba(44, 74, 94, 0.65); }
#play-goal-clue { margin-top: 2px; font-size: 11px; line-height: 1.35; color: rgba(44, 74, 94, 0.78); }
#play-goal-first-taste { margin-top: 4px; font-size: 11px; line-height: 1.35; color: rgba(44, 74, 94, 0.78); }
#play-vendor-wayfinding { position: fixed; inset: 0; z-index: 24; pointer-events: none; }
#play-vendor-wayfinding .play-vendor-wayfinding-tag {
  max-width: min(144px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 2px 7px;
  overflow: hidden;
  color: var(--pb-porcelain);
  background: rgba(255, 247, 232, 0.94);
  border: 1px solid rgba(36, 79, 104, 0.82);
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(36, 79, 104, 0.2);
  font: 600 11px/1.3 system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  pointer-events: none;
}
#play-vendor-wayfinding .play-vendor-wayfinding-tag.is-window { border-color: var(--pb-jade); }
#play-stamps { display: flex; gap: 7px; margin-top: 7px; }
.stamp {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--pb-jade);
  border-radius: 50%;
  color: var(--pb-jade);
  background: transparent;
}
.stamp svg { width: 18px; height: 18px; display: block; }
.stamp.full {
  border: 1.5px solid var(--pb-rouge);
  background: var(--pb-rouge);
  color: var(--pb-cream);
  box-shadow: inset 0 0 0 2px var(--pb-cream);
}
/* 落章动画：只在获得新章的一次重建上加类，不会每帧重播 */
.stamp.just { animation: pb-stamp-drop 0.45s ease-out; }
@keyframes pb-stamp-drop {
  0% { transform: scale(1.7) rotate(-12deg); opacity: 0.4; }
  60% { transform: scale(0.92) rotate(2deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); }
}

/* 临时消息：单条紧凑纸签，不占画面 */
#play-msg {
  background: rgba(36, 79, 104, 0.92);
  color: var(--pb-cream);
  border-radius: 10px;
  padding: 4px 11px;
  font-size: 12px;
  max-width: 300px;
}

/* 「慢慢品尝」进度卡（updateInteraction 接口渲染） */
#play-interact {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--pb-cream);
  border: 1.5px solid rgba(36, 79, 104, 0.85);
  border-radius: 12px;
  padding: 5px 10px;
  box-shadow: 0 3px 10px rgba(36, 79, 104, 0.16);
}
.pi-icon { width: 22px; height: 22px; color: var(--pb-rouge); display: inline-flex; }
.pi-icon svg { width: 100%; height: 100%; display: block; }
.pi-body { display: flex; flex-direction: column; gap: 3px; }
.pi-label { font-size: 11px; font-weight: 600; color: var(--pb-porcelain); letter-spacing: 1px; }
.pi-bar {
  width: 116px; height: 6px;
  border-radius: 3px;
  background: rgba(113, 170, 160, 0.3);
  overflow: hidden;
}
.pi-fill {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: var(--pb-rouge);
  transition: width 0.15s linear;
}

/* 单条上下文按键提示 */
#play-bottom {
  background: rgba(255, 247, 232, 0.92);
  border: 1px solid rgba(113, 170, 160, 0.9);
  color: var(--pb-ink);
  border-radius: 10px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
  max-width: 320px;
}
#play-bottom kbd,
#play-hud kbd {
  display: inline-block;
  font: 600 11px/1.5 inherit;
  font-family: inherit;
  color: var(--pb-porcelain);
  background: #fff;
  border: 1px solid var(--pb-jade);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  margin: 0 1px;
}
#play-hint { font-size: 11px; color: rgba(44, 74, 94, 0.72); padding: 0 2px; }

#play-asset-error {
  pointer-events: auto;
  background: var(--pb-cream);
  border: 1.5px solid var(--pb-rouge);
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 300px;
}
#play-asset-error p { margin: 0 0 8px; }
#play-asset-error button { border-color: var(--pb-rouge); color: var(--pb-rouge); background: #fff; }

/* 「操作」折叠弹层：打开时游戏暂停 */
#play-help {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 79, 104, 0.38);
  pointer-events: auto;
}
#play-help-card {
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  box-sizing: border-box;
  background: var(--pb-cream);
  border: 1.5px solid var(--pb-porcelain);
  border-radius: 16px;
  padding: 12px 14px 10px;
  box-shadow: 0 10px 30px rgba(36, 79, 104, 0.35);
}
#play-help-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pb-porcelain);
  margin-bottom: 8px;
}
#play-help-head button { padding: 2px 10px; font-size: 12px; }
.help-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  font-size: 12.5px;
}
.help-row kbd { min-width: 62px; text-align: center; }
#play-sound {
  margin-top: 8px;
  border-top: 1px dashed var(--pb-jade);
  padding-top: 7px;
}
#play-sound-title {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--pb-porcelain);
}
.play-sound-toggle,
.play-sound-volume {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.play-sound-toggle { justify-content: flex-start; min-height: 28px; }
.play-sound-toggle input { accent-color: var(--pb-porcelain); }
.play-sound-volume output { min-width: 38px; text-align: right; color: var(--pb-porcelain); font-variant-numeric: tabular-nums; }
#p-sound-volume { display: block; width: 100%; margin: 2px 0 0; accent-color: var(--pb-porcelain); }
#play-sound-note { margin: 3px 0 0; min-height: 0; font-size: 10.5px; line-height: 1.35; color: rgba(44, 74, 94, 0.75); }
#play-quality {
  margin-top: 8px;
  border-top: 1px dashed var(--pb-jade);
  padding-top: 7px;
}
#play-quality-title {
  margin: 0 0 5px;
  font-size: 12px;
  color: var(--pb-porcelain);
}
#play-quality-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
#play-quality-options button {
  padding: 5px 4px;
  font-size: 11px;
  line-height: 1.35;
}
#play-quality-options button:disabled { cursor: default; opacity: 1; }
#play-quality-note {
  margin: 5px 0 0;
  font-size: 11px;
  color: rgba(44, 74, 94, 0.68);
}
#play-help-note {
  margin: 8px 0 0;
  font-size: 11px;
  color: rgba(44, 74, 94, 0.6);
  border-top: 1px dashed var(--pb-jade);
  padding-top: 6px;
}

/* 右上小地图：精致圆角外框 + 「附近街巷」小标题，底图温和蓝灰/水绿 */
#play-map {
  position: fixed;
  right: 12px;
  top: 12px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}
#play-map-title {
  pointer-events: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--pb-porcelain);
  background: rgba(255, 247, 232, 0.92);
  border: 1px solid rgba(36, 79, 104, 0.5);
  border-radius: 8px;
  padding: 2px 9px;
}
#play-map-canvas {
  width: 210px;
  height: 210px;
  border: 2px solid var(--pb-porcelain);
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(36, 79, 104, 0.22);
  background: var(--pb-cream);
  cursor: pointer;
}
#play-map-bar { display: flex; gap: 4px; }
#play-map-bar button {
  font: 12px/1.4 system-ui, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: rgba(255, 247, 232, 0.92);
  border: 1px solid var(--pb-jade);
  border-radius: 8px;
  padding: 3px 10px;
  cursor: pointer;
  color: var(--pb-ink);
}

@media (max-width: 720px) {
  #play-map-canvas { width: 140px; height: 140px; }
  #play-goal { width: 196px; padding: 7px 9px 8px; }
  #play-goal-sub { font-size: 11px; }
  .stamp { width: 26px; height: 26px; }
  .stamp svg { width: 15px; height: 15px; }
  #play-hud { left: 8px; bottom: 8px; gap: 6px; }
  #play-bottom { max-width: 240px; }
}

/* 减少动态：关掉落章/进度条等非必要动效 */
@media (prefers-reduced-motion: reduce) {
  #play-hud *,
  #play-map * {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep development landmark labels off the character during play. */
body.play-mode:not(.play-viewing) #labels { display: none; }

/* Author display rules must never override the native hidden contract. */
#play-hud [hidden] { display: none !important; }
body.play-eating #play-bottom { display: none; }
#play-hint { background:rgba(255,247,232,.8);padding:2px 7px;border-radius:6px; }
#play-hud button:focus-visible {outline:3px solid var(--pb-honey);outline-offset:2px;}
#play-help input:focus-visible {outline:3px solid var(--pb-honey);outline-offset:2px;}

/* 当次散步游记：纸页手账样式，独立于图鉴状态与收藏。 */
#pb-walk-journal[hidden] { display: none !important; }
#pb-walk-journal {
  --pb-journal-blue: var(--pb-porcelain, #244f68);
  --pb-journal-jade: var(--pb-jade, #71aaa0);
  --pb-journal-cream: var(--pb-cream, #fff7e8);
  --pb-journal-rouge: var(--pb-rouge, #d56b70);
  --pb-journal-honey: var(--pb-honey, #deb26c);
  --pb-journal-ink: var(--pb-ink, #2c4a5e);
  --pb-journal-card: #fffcf5;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-sizing: border-box;
  color: var(--pb-journal-ink);
  font: 15px/1.55 system-ui, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  isolation: isolate;
}
#pb-walk-journal::before { position: absolute; inset: 0; z-index: 0; background: rgba(22, 38, 48, .67); content: ''; backdrop-filter: blur(3px); }
#pb-walk-journal *, #pb-walk-journal *::before, #pb-walk-journal *::after { box-sizing: inherit; }
.pb-journal-backdrop {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(760px, calc(100vw - 28px));
  max-height: min(780px, calc(100dvh - 28px));
  overflow: hidden;
  flex-direction: column;
  border: 2px solid var(--pb-journal-honey);
  border-radius: 18px;
  background: var(--pb-journal-cream) radial-gradient(rgba(222, 178, 108, .1) 1px, transparent 0);
  background-size: auto, 17px 17px;
  box-shadow: 0 18px 52px rgba(12, 25, 34, .35);
}
.pb-journal-dialog { display: flex; min-height: 0; flex-direction: column; }
.pb-journal-header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 2px solid var(--pb-journal-honey);
  background: var(--pb-journal-blue);
  color: var(--pb-journal-cream);
}
.pb-journal-title { margin: 0; color: inherit; font-size: 22px; letter-spacing: .06em; }
.pb-journal-header button, .pb-journal-footer button {
  min-height: 42px;
  border: 1.5px solid var(--pb-journal-blue);
  border-radius: 10px;
  padding: 7px 14px;
  background: var(--pb-journal-cream);
  color: var(--pb-journal-blue);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.pb-journal-header button { border-color: var(--pb-journal-honey); background: transparent; color: var(--pb-journal-cream); }
.pb-journal-header button:focus-visible, .pb-journal-footer button:focus-visible { outline: 3px solid var(--pb-journal-honey); outline-offset: 3px; }
.pb-journal-content { min-height: 0; overflow: auto; padding: 14px 18px 18px; }
.pb-journal-route {
  margin: 0 0 12px;
  border-left: 4px solid var(--pb-journal-jade);
  padding: 6px 10px;
  background: rgba(113, 170, 160, .14);
  font-weight: 650;
}
.pb-journal-route.is-complete { border-left-color: var(--pb-journal-rouge); background: rgba(213, 107, 112, .12); }
.pb-journal-section { margin-top: 12px; border: 1px solid rgba(36, 79, 104, .18); border-radius: 13px; padding: 10px 12px; background: rgba(255, 252, 245, .86); }
.pb-journal-section h3 { margin: 0 0 7px; color: var(--pb-journal-blue); font-size: 16px; }
.pb-journal-photo-content { display: flex; align-items: flex-start; gap: 12px; }
.pb-journal-photo-image { display: block; width: min(220px, 42vw); max-height: 210px; border: 2px solid var(--pb-journal-honey); border-radius: 9px; object-fit: cover; }
.pb-journal-caption, .pb-journal-empty { margin: 4px 0; }
.pb-journal-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pb-journal-item { display: flex; min-width: 136px; align-items: center; gap: 8px; border: 1px solid rgba(113, 170, 160, .55); border-radius: 9px; padding: 6px 9px; background: #fff; }
.pb-journal-thumb { width: 50px; height: 50px; flex: 0 0 auto; border-radius: 7px; background: var(--pb-journal-jade); object-fit: cover; }
.pb-journal-name { overflow-wrap: anywhere; }
.pb-journal-status { min-height: 1.5em; margin: 8px 0 0; color: var(--pb-journal-rouge); }
.pb-journal-footer { display: flex; flex: 0 0 auto; justify-content: flex-end; gap: 8px; border-top: 1px solid rgba(36, 79, 104, .2); padding: 10px 14px; background: rgba(255, 252, 245, .94); }
.pb-journal-footer .pb-journal-save { border-color: var(--pb-journal-blue); background: var(--pb-journal-blue); color: var(--pb-journal-cream); }
.pb-journal-footer button:disabled { cursor: wait; opacity: .65; }
@media (max-width: 520px) {
  #pb-walk-journal { padding: 8px; }
  .pb-journal-backdrop { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .pb-journal-header { padding: 10px 12px; }
  .pb-journal-content { padding: 10px 11px 14px; }
  .pb-journal-photo-content { align-items: flex-start; flex-direction: column; }
  .pb-journal-photo-image { width: min(100%, 320px); max-height: 240px; }
  .pb-journal-item { min-width: min(100%, 142px); flex: 1 1 142px; }
  .pb-journal-footer { justify-content: stretch; padding: 9px; }
  .pb-journal-footer button { flex: 1 1 0; padding-inline: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  #pb-walk-journal *, #pb-walk-journal *::before, #pb-walk-journal *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; }
}

#play-hud.is-paused .pi-fill { transition:none; }
#play-hud.is-paused .stamp.just { animation-play-state:paused; }

/* ---- 路线推荐弹层与卡片（工单 U08） ---- */
#play-route-panel {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(36, 79, 104, 0.38);
  pointer-events: auto;
}
#play-route-card {
  width: min(440px, calc(100vw - 24px));
  max-height: min(580px, calc(100vh - 40px));
  overflow-y: auto;
  box-sizing: border-box;
  background: var(--pb-cream);
  border: 1.5px solid var(--pb-porcelain);
  border-radius: 16px;
  padding: 14px 16px 14px;
  box-shadow: 0 10px 30px rgba(36, 79, 104, 0.35);
}
#play-route-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--pb-porcelain);
  margin-bottom: 4px;
}
.prh-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
}
.prh-icon { font-size: 16px; }
#p-route-close { padding: 2px 10px; font-size: 12px; }
#play-route-intro {
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(44, 74, 94, 0.75);
}
#play-route-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pr-card {
  background: #fff;
  border: 1.5px solid rgba(113, 170, 160, 0.5);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pr-card:hover {
  border-color: var(--pb-porcelain);
  transform: translateY(-1px);
}
.pr-card.active {
  border-color: var(--pb-porcelain);
  background: linear-gradient(180deg, #fff7e8 0%, #f7efe0 100%);
  box-shadow: 0 2px 8px rgba(36, 79, 104, 0.14);
}
.pr-card.completed {
  border-color: var(--pb-jade);
}
.pr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.pr-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pr-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--pb-porcelain);
}
.pr-sub {
  font-size: 11px;
  color: rgba(44, 74, 94, 0.65);
}
.pr-status-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 6px;
  background: rgba(36, 79, 104, 0.08);
  color: var(--pb-porcelain);
}
.pr-status-tag.badge-gold {
  background: var(--pb-honey);
  color: #fff;
}
.pr-status-tag.badge-active {
  background: var(--pb-porcelain);
  color: var(--pb-cream);
}
.pr-desc {
  margin: 3px 0 2px;
  font-size: 12px;
  color: var(--pb-ink);
  line-height: 1.45;
}
.pr-seq {
  font-size: 11px;
  font-weight: 600;
  color: var(--pb-porcelain);
  background: rgba(113, 170, 160, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  margin: 3px 0;
  line-height: 1.4;
}
.pr-clue {
  margin: 3px 0;
  font-size: 11px;
  line-height: 1.4;
  color: var(--pb-porcelain);
}
.pr-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed rgba(113, 170, 160, 0.3);
}
.pr-note {
  font-size: 11px;
  color: rgba(44, 74, 94, 0.7);
}
.pr-btn {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid var(--pb-porcelain);
  background: var(--pb-cream);
  cursor: pointer;
  color: var(--pb-porcelain);
  font-weight: 600;
}
.pr-btn:hover:not(:disabled) {
  background: var(--pb-porcelain);
  color: var(--pb-cream);
}
.pr-btn:disabled {
  opacity: 0.65;
  cursor: default;
}
.stamp.current-station {
  border-style: solid;
  border-width: 2px;
  border-color: var(--pb-porcelain);
  box-shadow: 0 0 0 2px rgba(36, 79, 104, 0.2);
}

/* ---- W1 街坊 NPC 对话气泡（非模态；text 插入走 textContent） ---- */
.pb-npc-bubble {
  position: fixed;
  transform: translate(-50%, -100%);
  max-width: 300px;
  padding: 9px 12px 7px;
  background: rgba(255, 247, 232, 0.96);
  border: 1.5px solid rgba(93, 127, 144, 0.55);
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(36, 79, 104, 0.18);
  font: 13px/1.55 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #2c4a5e;
  pointer-events: none;
  z-index: 60;
}
.pb-npc-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -7px;
  width: 10px;
  height: 10px;
  background: inherit;
  border-right: 1.5px solid rgba(93, 127, 144, 0.55);
  border-bottom: 1.5px solid rgba(93, 127, 144, 0.55);
  transform: translateX(-50%) rotate(45deg);
}
.pb-npc-bubble-name {
  font-weight: 600;
  margin-right: 2px;
  color: #4e7b68;
}
.pb-npc-bubble-more {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: rgba(44, 74, 94, 0.55);
}

/* ---- W3 合影模式（photo-w3-20261015）：取景框 + 提示 + 白闪光 ---- */
#play-photo {
  position: fixed;
  inset: 0;
  z-index: 55;
  pointer-events: none;
}
#play-photo-frame {
  position: absolute;
  inset: 7vh 6vw;
}
#play-photo-frame .pf-corner {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 247, 232, 0.85);
  filter: drop-shadow(0 1px 3px rgba(36, 79, 104, 0.45));
}
#play-photo-frame .pf-tl { left: 0; top: 0; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
#play-photo-frame .pf-tr { right: 0; top: 0; border-left: none; border-bottom: none; border-radius: 0 8px 0 0; }
#play-photo-frame .pf-bl { left: 0; bottom: 0; border-right: none; border-top: none; border-radius: 0 0 0 8px; }
#play-photo-frame .pf-br { right: 0; bottom: 0; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
#play-photo-hint {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(36, 79, 104, 0.72);
  color: #fff7e8;
  font: 14px/1.4 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
#play-photo-flash {
  position: absolute;
  inset: 0;
  background: #ffffff;
  opacity: 0;
  transition: opacity 0.28s ease-out;
}
#play-photo-flash.is-on {
  opacity: 0.92;
  transition: none;
}
/* 合影期间隐藏主 HUD 的提示/操作（保留暂停按钮以便退出卡死时自救） */
body.play-photo-active #play-hint,
body.play-photo-active #play-goal,
body.play-photo-active #play-actions > #p-view,
body.play-photo-active #play-actions > #p-food-view {
  display: none;
}

/* W5 original fortune slip: long bordered paper, reference kauchim-01/02/06/07. */
.pb-fortune-shade{position:fixed;inset:0;z-index:2500;display:grid;place-items:center;background:rgba(24,16,12,.62);backdrop-filter:blur(5px)}
.pb-fortune-shade[hidden]{display:none}
.pb-fortune-paper{box-sizing:border-box;width:min(290px,85vw);min-height:min(520px,85vh);max-height:90vh;overflow:auto;padding:32px 25px 24px;display:flex;flex-direction:column;align-items:center;gap:24px;background:#fff3d4;color:#652f22;border:7px double #a34e38;box-shadow:0 18px 70px #130b0980;font-family:serif}
.pb-fortune-paper h2{font-size:21px;letter-spacing:.1em;margin:0;padding-bottom:16px;border-bottom:1px solid #ba8967;text-align:center}
.pb-fortune-text{writing-mode:vertical-rl;font-size:23px;line-height:1.9;letter-spacing:.12em;max-height:300px;margin:0;flex:1;white-space:normal}
.pb-fortune-paper button{font:inherit;font-size:18px;padding:10px 38px;background:#913f30;color:#fff6de;border:1px solid #683628;border-radius:5px;cursor:pointer}
.pb-fortune-paper button:focus-visible{outline:3px solid #ca9039;outline-offset:4px}
