/* ==========================================================================
   《星露谷物语》硬边木纹 / 羊皮纸全局像素 UI 规范 (Zero Rounded, Zero Emoji)
   ========================================================================== */

/* 1. 全局清除现代圆角与虚线框 */
.chapter-overlay .chapter-card,
.chapter-overlay .bag-card,
.chapter-overlay .bag-split-card,
.chapter-overlay .rps-card,
.chapter-overlay .pl-studio,
.chapter-overlay .pl-album-card,
.chapter-overlay .note-card,
.chapter-overlay .route-choice-card,
.chapter-overlay .chapter-preview-card,
.tasting-dock,
.dialogue,
.dialogue .choices button,
.dialogue .next,
.dialogue-exit,
.treasure-scroll,
.treasure-scroll-icon,
.reward-banner,
.hud-icon,
.hud-replay,
.bag-count,
.wealth-bar,
.settings-menu,
.settings-menu button,
.sit-btn,
.primary-action,
.secondary-action,
.outline,
.route-btn,
.rps-btn,
.rps-arena,
.rps-hand-box,
.rps-result,
.taste-item,
.bag-top-stats,
.bag-stat-pill,
.bag-grid,
.bag-slot,
.bag-slot-qty,
.bag-detail,
.bag-detail-stage,
.bag-detail-qty,
.bag-location-tag,
.ach-summary,
.ach-item,
.ach-badge,
.ach-stamp,
.pl-photo-choice,
.pl-snap-btn,
.cafe-quest,
.world.cafe .hotspot.cafe-spot,
.world.cafe .hotspot.cafe-spot:after,
.world-map-card,
.wm-header-scroll,
.wm-stat-chip,
.wm-canvas-wrap,
.wm-plaque,
.wm-hotspot-ring,
.wm-fog-disc,
.wm-next-glow,
.wm-walker-avatar,
.wm-walker-tip,
.wm-toast,
.wm-dot {
  border-radius: 0 !important;
  border-style: solid !important;
}

/* 2. 主面板统一星露谷厚胡桃木外框 + 琥珀木纹内框 + 暖羊皮纸底 */
.chapter-overlay .chapter-card,
.chapter-overlay .bag-split-card,
.chapter-overlay .rps-card,
.chapter-overlay .pl-album-card,
.dialogue,
.treasure-scroll,
.reward-banner {
  background: #F4E2C1 !important;
  border: 4px solid #4A2E1B !important;
  outline: none !important;
  box-shadow:
    inset 0 0 0 2px #B87A3D,
    inset 0 0 0 4px #E8C794,
    0 8px 0 rgba(48, 28, 14, 0.48) !important;
  color: #4A2E1B;
  font-family: FusionPixel, 'Microsoft YaHei', sans-serif !important;
}

.chapter-overlay .chapter-card,
.chapter-overlay .bag-split-card,
.chapter-overlay .rps-card,
.chapter-overlay .pl-album-card {
  position: relative !important;
  transform: none !important;
  overflow: visible !important;
}

/* 独立定位底部品尝面板：保留居中 transform 不与右上 HUD 重叠 */
.tasting-dock {
  position: absolute !important;
  left: 50% !important;
  bottom: 16px !important;
  top: auto !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 96 !important;
  margin: 0 !important;
  background: #F4E2C1 !important;
  border: 4px solid #4A2E1B !important;
  outline: none !important;
  box-shadow:
    inset 0 0 0 2px #B87A3D,
    inset 0 0 0 4px #E8C794,
    0 8px 0 rgba(48, 28, 14, 0.48) !important;
  color: #4A2E1B;
  font-family: FusionPixel, 'Microsoft YaHei', sans-serif !important;
}

.chapter-overlay .chapter-card h2,
.chapter-overlay .bag-split-card h2,
.chapter-overlay .rps-card h2,
.chapter-overlay .pl-album-card h2 {
  margin: 4px 0 6px;
  color: #4A2E1B;
  font-size: 20px;
  text-shadow: 0 2px 0 #FFF4DB;
}

.chapter-overlay .overline {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  background: #B87A3D;
  border: 2px solid #4A2E1B;
  color: #FFF6DE;
  font-size: 10px;
  letter-spacing: 1px;
}

/* 3. 四角像素黄铜铆钉装饰 */
.sdv-rivet {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #E2B04A;
  border: 2px solid #4A2E1B;
  box-shadow: inset 2px 2px 0 #FFF0A8, inset -1px -1px 0 #9E6920;
  z-index: 5;
  pointer-events: none;
}
.sdv-rivet.tl { left: 6px; top: 6px; }
.sdv-rivet.tr { right: 6px; top: 6px; }
.sdv-rivet.bl { left: 6px; bottom: 6px; }
.sdv-rivet.br { right: 6px; bottom: 6px; }

/* 面板有右上角 × 按钮时微调右上铆钉位置避免遮挡 */
.has-close .sdv-rivet.tr { right: 42px; }

/* 4. 右上角星露谷红色/木质像素 × 关闭按钮 */
.sdv-close {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 10;
  width: 28px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #C44234;
  border: 3px solid #4A2E1B;
  box-shadow: inset 2px 2px 0 #EE7D70, inset -2px -2px 0 #8E271C, 0 2px 0 #4A2E1B;
  color: #FFF7DF;
  font-family: FusionPixel, monospace;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}
.sdv-close:hover {
  background: #D95142;
  transform: translateY(-1px);
}
.sdv-close:active {
  transform: translateY(1px);
  box-shadow: inset 2px 2px 0 #8E271C;
}

/* 5. 通用硬边星露谷木牌按钮 */
.primary-action,
.outline,
.secondary-action,
.route-btn,
.pl-snap-btn,
.rps-btn {
  border: 3px solid #4A2E1B !important;
  background: #E8C07A !important;
  color: #4A2E1B !important;
  box-shadow: inset 0 2px 0 #FFF1BE, inset 0 -2px 0 #B87A3D, 0 3px 0 #4A2E1B !important;
  font-family: FusionPixel, 'Microsoft YaHei', sans-serif !important;
  font-weight: 700;
  cursor: pointer;
}
.primary-action:hover:not(:disabled),
.pl-snap-btn:hover:not(:disabled),
.rps-btn:hover:not(:disabled),
.route-btn:hover {
  background: #F4D28E !important;
  transform: translateY(-1px);
}
.primary-action:active:not(:disabled),
.pl-snap-btn:active:not(:disabled),
.rps-btn:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: inset 0 2px 0 #B87A3D !important;
}

/* 6. 顶部 HUD 财富栏 & 工具条统一像素硬边 */
.wealth-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 11px 0 8px;
  background: #F4E2C1;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #C88A4B, 0 3px 0 #4A2E1B;
  color: #4A2E1B;
}
.wealth-bar .coin-icon,
.px-ico-coin {
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: none;
  background: url(px-coin.png) center/contain no-repeat !important;
  border: 0 !important;
  box-shadow: none !important;
  image-rendering: pixelated;
  animation: sdv-coin-pulse 1.6s steps(2, end) infinite;
}
@keyframes sdv-coin-pulse {
  0%, 100% { transform: scaleX(1); filter: brightness(1); }
  50% { transform: scaleX(0.78); filter: brightness(1.16); }
}

.px-ico {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: none;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  vertical-align: middle;
}
.px-ico.lg { width: 28px; height: 28px; }
.px-ico.xl { width: 38px; height: 38px; }

.hud-icon,
.hud-replay {
  border: 3px solid #4A2E1B !important;
  background: #F4E2C1 !important;
  box-shadow: inset 0 0 0 2px #C88A4B, 0 2px 0 #4A2E1B !important;
}
.settings-menu {
  background: #F4E2C1 !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 0 0 0 2px #B87A3D, 0 4px 0 #4A2E1B !important;
}

/* 7. 小背包 / 旅行手账行囊 (星露谷 4x3 内凹方槽 + 详情展示台) */
.bag-card.bag-split-card {
  width: min(740px, 95vw);
  padding: 14px 20px 16px;
}

.bag-top-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 0;
  background: transparent;
  border: 0;
}

.bag-stat-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  background: #DFC08D;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #B87A3D, inset 2px 2px 0 rgba(255, 246, 214, 0.55);
  color: #4A2E1B;
  font-size: 13px;
}
.bag-stat-pill strong {
  color: #7D3B0E;
  font-size: 15px;
}

.bag-split {
  display: grid;
  grid-template-columns: 1.02fr 1fr;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 4px;
}

.bag-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background: #9B6435;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #C88A4B, inset 3px 3px 0 #6F431E;
  align-content: start;
  max-height: 310px;
  overflow-y: auto;
}

/* 每个格子做内凹深木色方槽 */
.bag-slot {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  min-height: 70px;
  background: #7A4C25 !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 3px 3px 0 #563215, inset -2px -2px 0 #A57141 !important;
  padding: 0;
  cursor: pointer;
}
.bag-slot.empty {
  background: #6B4220 !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 3px 3px 0 #4B2B11, inset -2px -2px 0 #8A5930 !important;
  cursor: default;
}
.bag-slot:not(.empty):hover {
  background: #8E5B30 !important;
  transform: none;
}

/* 选中态加上闪烁的金黄色像素选择框 */
.bag-slot.selected {
  background: #9B6838 !important;
  border: 3px solid #FFD84D !important;
  box-shadow:
    inset 0 0 0 2px #4A2E1B,
    0 0 0 2px #4A2E1B !important;
  animation: sdv-slot-blink .95s steps(2, end) infinite;
}
@keyframes sdv-slot-blink {
  0%, 100% { border-color: #FFD84D; filter: brightness(1.06); }
  50% { border-color: #FFF4AD; filter: brightness(1.16); }
}

.bag-slot-icon {
  position: absolute;
  inset: 12%;
  display: block;
  width: auto;
  height: auto;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(42, 22, 10, 0.55));
}
.bag-slot-icon.is-photo-slot {
  inset: 15% 8%;
  border: 2px solid #FFF7E0;
  box-shadow: 0 2px 0 #4A2E1B;
  background-size: cover;
}

.bag-slot-qty {
  position: absolute;
  right: 2px;
  bottom: 2px;
  top: auto;
  padding: 1px 4px;
  background: #4A2E1B;
  border: 1px solid #E8C07A;
  color: #FFF4CE;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.1;
}

.bag-detail {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background: #EFE0BC;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #C88A4B;
  min-height: 290px;
}

.bag-detail-stage {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 118px;
  margin-bottom: 10px;
  padding: 8px;
  background: #C99A60;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #FFD66E, inset 0 0 0 4px #7A4C25;
}
.bag-detail-stage .bag-detail-big-icon {
  width: 78px;
  height: 78px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 0 rgba(48, 26, 12, 0.5));
}
.bag-detail-stage.is-photo {
  padding: 6px;
  background: #7A4C25;
}

.bag-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 6px;
  margin-bottom: 7px;
  border-bottom: 2px solid #B87A3D !important;
}
.bag-detail-head strong {
  font-size: 16px;
  color: #4A2E1B;
}
.bag-detail-qty {
  padding: 2px 8px;
  background: #C88A4B;
  border: 2px solid #4A2E1B;
  color: #FFF7DF;
  font-size: 11px;
  font-weight: 700;
}

.bag-location-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 3px 8px;
  background: #E2C692;
  border: 2px solid #4A2E1B;
  color: #5C381B;
  font-size: 12px;
  font-weight: 700;
}

.bag-detail-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: #593B22;
  text-align: left;
}

/* 8. 成就图鉴 / 旅行足迹 (15 枚横幅木牌) */
.ach-card {
  width: min(680px, 95vw) !important;
  padding: 18px 20px !important;
}

.ach-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 12px;
  padding: 8px 12px;
  background: #DFC08D;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #B87A3D;
  font-size: 14px;
  color: #4A2E1B;
}
.ach-summary strong {
  color: #823E0E;
  font-size: 16px;
}

.ach-list {
  display: grid;
  gap: 9px;
  max-height: min(330px, 46vh);
  overflow-y: auto;
  padding: 4px 4px 4px 2px;
  margin: 0;
}

.ach-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: #EAD1A3 !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 0 0 0 2px #C88A4B, 0 3px 0 rgba(74, 46, 27, 0.35) !important;
}
.ach-item.locked {
  opacity: 0.92 !important;
  background: #D4BF98 !important;
  border-color: #4A2E1B !important;
  box-shadow: inset 0 0 0 2px #9C7D53 !important;
}

.ach-badge {
  flex: none;
  width: 48px !important;
  height: 48px !important;
  display: grid;
  place-items: center;
  background: #7A4C25 !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 2px 2px 0 #523015, inset -2px -2px 0 #B87A3D !important;
}
.ach-item.locked .ach-badge {
  background: #6B5035 !important;
}
.ach-badge img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
}

.ach-info {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-right: 68px;
}
.ach-item strong {
  display: block;
  font-size: 14px;
  color: #4A2E1B;
}
.ach-item.locked strong {
  color: #5C432B;
  letter-spacing: 1px;
}
.ach-item small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #6B4B2D;
  line-height: 1.45;
}

.ach-stamp {
  position: absolute;
  right: 10px;
  top: 10px;
  padding: 2px 6px;
  background: #C43B2B;
  border: 2px solid #4A2E1B;
  box-shadow: inset 1px 1px 0 #F28B7D;
  color: #FFF7DF;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
}
.ach-item.locked .ach-stamp {
  background: #7D684E;
  box-shadow: none;
  color: #E5D6BC;
}

/* 9. 重写像素风【品尝美食面板】 */
.tasting-dock {
  width: min(610px, 94%);
  padding: 14px 16px 14px;
}
.tasting-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #4A2E1B;
  margin-bottom: 10px;
}
.tasting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.taste-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 8px;
  background: #DFC08D;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 0 0 0 2px #C88A4B, 0 3px 0 #4A2E1B !important;
  color: #4A2E1B;
  cursor: pointer;
}
.taste-item:hover:not(:disabled) {
  background: #F4D89C;
  box-shadow: inset 0 0 0 2px #FFD84D, 0 4px 0 #4A2E1B !important;
  transform: translateY(-2px);
}
.taste-item.active-next:not(:disabled) {
  box-shadow: inset 0 0 0 2px #FFD84D, 0 3px 0 #4A2E1B !important;
}
.taste-item.done {
  background: #CEBD9B;
  color: #7A674C;
  box-shadow: inset 2px 2px 0 #A59373 !important;
  cursor: default;
}
.taste-ico-img {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 0 rgba(74, 46, 27, 0.35));
}
.taste-cursor-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #9A331C;
}
.taste-cursor-row img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
  animation: sdv-cursor-hop .65s steps(2, end) infinite;
}
@keyframes sdv-cursor-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* 10. 极简 3 选 1 闺蜜大头贴相册面板 */
.pl-album-card {
  width: min(740px, 95vw);
  padding: 18px 20px 18px;
  text-align: center;
}
.pl-album-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 14px;
}
.pl-photo-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px;
  background: #DFC08D;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #B87A3D, 0 4px 0 #4A2E1B;
  cursor: pointer;
}
.pl-photo-choice:hover {
  background: #ECD09C;
  transform: translateY(-2px);
}
.pl-photo-choice.selected {
  background: #F7DEA4;
  border: 3px solid #FFD84D !important;
  box-shadow: inset 0 0 0 2px #4A2E1B, 0 0 0 2px #4A2E1B !important;
}
.pl-photo-mat {
  width: 100%;
  padding: 5px 5px 8px;
  background: #FFF9EB;
  border: 2px solid #4A2E1B;
  box-shadow: inset 0 0 0 1px #D9BA84;
}
.pl-photo-mat img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid #4A2E1B;
  image-rendering: pixelated;
}
.pl-photo-title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #4A2E1B;
}
.pl-photo-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #704B2B;
}

.pl-snap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 15px;
  background: #E8B85B !important;
}
.pl-snap-btn img {
  width: 22px;
  height: 22px;
  image-rendering: pixelated;
}

/* 背包详情内放大展示选中闺蜜大头贴 */
.sdv-photo-frame {
  width: min(214px, 100%);
  padding: 7px 7px 10px;
  background: #FFF9EB;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #C88A4B, 0 4px 0 rgba(48, 26, 12, 0.4);
  text-align: center;
}
.sdv-photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border: 2px solid #4A2E1B;
  image-rendering: pixelated;
}
.sdv-photo-cap {
  margin-top: 6px;
  font-size: 11px;
  color: #5C3D22;
  line-height: 1.4;
}

/* 11. 猜拳面板 & 通用硬边按钮内像素图 */
.rps-card {
  width: min(500px, 94vw);
  padding: 18px 20px;
}
.rps-arena {
  background: #DFC08D !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 0 0 0 2px #B87A3D;
}
.rps-avatar-shan,
.rps-avatar-cust3 {
  display: block;
  width: 68px;
  height: 68px;
  image-rendering: pixelated;
}
.rps-avatar-shan {
  background: url(shanshan-v3.png) center / contain no-repeat;
}
.rps-avatar-cust3 {
  background: url(cafe-cust3.png) 0 0 / 200% 100% no-repeat;
}
.rps-hand-box {
  width: 56px;
  height: 56px;
  background: #FFF8E6 !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 0 0 0 2px #C88A4B;
}
.rps-fighter .rps-hand-box img,
.rps-hand-box img,
.rps-btn img {
  width: 34px;
  height: 34px;
  image-rendering: pixelated;
  vertical-align: middle;
}
.rps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px !important;
}
.rps-result {
  background: #E2F0C8 !important;
  border: 3px solid #4A2E1B !important;
  box-shadow: inset 0 0 0 2px #78A152;
  color: #2E4B19 !important;
}

/* 12. 全景像素世界大地图 & 自由选章枢纽 (Zero Rounded, Zero Emoji, Zero Cats) */
.world-map-overlay {
  padding: 10px 14px !important;
  background: rgba(24, 16, 10, 0.78) !important;
}

.world-map-card {
  width: min(1030px, 95vw, calc((100vh - 148px) * 1.7916)) !important;
  max-width: none !important;
  max-height: none !important;
  padding: 12px 16px 10px !important;
  text-align: center;
}

.wm-header-scroll {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 42px 6px 12px;
  margin-bottom: 8px;
  background: #E8C790;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #B87A3D, inset 0 2px 0 #FFF3CE;
}

.wm-scroll-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-scroll-title h2 {
  margin: 0 !important;
  font-size: clamp(14px, 1.8vw, 19px) !important;
  color: #4A2E1B;
  text-shadow: 0 2px 0 #FFF3CE;
}

.wm-header-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wm-stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: #F4E2C1;
  border: 2px solid #4A2E1B;
  box-shadow: inset 0 0 0 1px #C88A4B;
  font-size: 12px;
  color: #4A2E1B;
}
.wm-stat-chip strong {
  color: #823E0E;
}

.wm-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1376 / 768;
  border: 4px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #C88A4B, 0 4px 0 rgba(48, 28, 14, 0.35);
  background: #2C6F8C;
  overflow: hidden;
  user-select: none;
}

.wm-bg-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  pointer-events: none;
}

.wm-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.wm-path-bg {
  fill: none;
  stroke: rgba(74, 46, 27, 0.28);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wm-path {
  fill: none;
  stroke: rgba(255, 245, 214, 0.85);
  stroke-width: 2.2;
  stroke-dasharray: 6 7;
  stroke-linecap: round;
}
.wm-path.is-done {
  stroke: #FFE58A;
  stroke-width: 3;
  stroke-dasharray: none;
  opacity: 0.92;
}
.wm-path.is-active {
  stroke: #FFD84D;
  stroke-width: 3.2;
  stroke-dasharray: 8 6;
  animation: wm-dash-flow 1.1s linear infinite;
}
.wm-path-bg.is-locked,
.wm-path.is-locked {
  stroke: rgba(255, 248, 228, 0.34);
  stroke-width: 1.8;
  stroke-dasharray: 4 7;
}
.wm-path-bg.is-locked {
  stroke: rgba(58, 36, 20, 0.22);
  stroke-width: 3.2;
  stroke-dasharray: none;
}
.wm-path.is-free {
  stroke: rgba(154, 240, 255, 0.78);
  stroke-width: 2.2;
  stroke-dasharray: 5 6;
}
@keyframes wm-dash-flow {
  from { stroke-dashoffset: 28; }
  to { stroke-dashoffset: 0; }
}

.wm-flow-dot {
  fill: #FFF8BA;
  stroke: #8A4512;
  stroke-width: 1.5;
}

.wm-nodes-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
}

.wm-node {
  position: absolute;
  transform: translate(-50%, -50%);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: FusionPixel, 'Microsoft YaHei', sans-serif;
}

/* 精巧地面小地标锚点（不覆盖遮挡建筑物本体的屋顶与风景，正向像素无旋转锯齿） */
.wm-hotspot-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  background: transparent;
  transition: transform .15s steps(2, end);
}

.wm-pin-gem {
  width: 12px;
  height: 12px;
  background: #FFF0BE;
  border: 2px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55), 0 2px 0 rgba(48, 28, 14, 0.55);
}

.wm-node.is-done .wm-pin-gem {
  background: #9CE06E;
  border-color: #2B4D18;
}

.wm-node.is-next .wm-pin-gem,
.wm-node.is-current .wm-pin-gem {
  background: #FFD84D;
  border-color: #6B3209;
  width: 14px;
  height: 14px;
}

.wm-node.is-free .wm-pin-gem {
  background: #87E5FF;
  border-color: #194A63;
}

.wm-node.is-locked .wm-pin-gem {
  width: 10px;
  height: 10px;
  background: rgba(215, 224, 236, 0.85);
  border-color: #425166;
}

.wm-node:hover {
  z-index: 12;
}
.wm-node:hover .wm-hotspot-ring {
  transform: scale(1.18);
}

.wm-next-glow {
  position: absolute;
  inset: -4px;
  border: 2px solid #FFD84D;
  box-shadow: 0 0 10px rgba(255, 216, 77, 0.9);
  animation: wm-next-pulse 1.1s steps(2, end) infinite;
  pointer-events: none;
}
@keyframes wm-next-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.22); opacity: 0.55; }
}

/* 极简紧凑手账小吊牌（大幅减体积，透出精美小岛插画） */
.wm-plaque {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  background: rgba(248, 234, 202, 0.92);
  border: 2px solid #4A2E1B;
  box-shadow: inset 0 0 0 1px #D49A5A, 0 2px 0 rgba(48, 28, 14, 0.55);
  color: #4A2E1B;
  white-space: nowrap;
  pointer-events: none;
  transition: transform .14s ease, background .14s ease;
}
.wm-node:hover .wm-plaque {
  transform: translateX(-50%) scale(1.06);
  background: #FFF8E6;
}
.wm-node.wm-tag-top .wm-plaque {
  bottom: calc(100% + 5px);
}
.wm-node.wm-tag-bottom .wm-plaque {
  top: calc(100% + 5px);
}
.wm-node.is-current .wm-plaque,
.wm-node.is-next .wm-plaque {
  background: rgba(255, 243, 198, 0.96);
  border-color: #9A480B;
  box-shadow: inset 0 0 0 1px #FFD84D, 0 2px 0 #4A2E1B;
}
.wm-node.is-locked .wm-plaque {
  background: rgba(232, 236, 242, 0.84);
  border-color: #4A5A70;
  box-shadow: inset 0 0 0 1px rgba(154, 170, 192, 0.65), 0 2px 0 rgba(28, 37, 50, 0.45);
  color: #364559;
}
.wm-node.is-free .wm-plaque {
  background: rgba(226, 247, 255, 0.92);
  border-color: #215B78;
  box-shadow: inset 0 0 0 1px #7EC8E3, 0 2px 0 #19455B;
}

.wm-plaque-main {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.wm-plaque-num {
  display: inline-block;
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  padding: 0 4px;
  background: #C88A4B;
  color: #FFFDF5;
  line-height: 1.4;
}
.wm-node.is-locked .wm-plaque-num {
  background: #7A8A9E;
}
.wm-node.is-free .wm-plaque-num {
  background: #2C82A6;
}
.wm-node.is-done .wm-plaque-num {
  background: #538D34;
}
.wm-plaque-name {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}
.wm-here-dot {
  font-style: normal;
  font-size: 8px;
  padding: 0 3px;
  background: #D94E28;
  color: #FFFDF5;
}

.wm-plaque-prog {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding-left: 4px;
  border-left: 1px solid rgba(74, 46, 27, 0.25);
  font-size: 9px;
  font-weight: 700;
  color: #6B4423;
}
.wm-node.is-locked .wm-plaque-prog {
  border-left-color: rgba(54, 69, 89, 0.25);
  color: #4B5B72;
}
.wm-mini-ico {
  width: 11px;
  height: 11px;
  image-rendering: pixelated;
}
.wm-chip-free {
  font-size: 9px;
  color: #1F6E8C;
}

/* 透明底全身 Q 版像素行进小人（融入石板路面，去掉大头贴方框） */
.wm-walker {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -88%);
  pointer-events: none;
}
.wm-walker-avatar {
  display: block;
  width: 34px;
  height: 34px;
  background: url(shanshan-v3.png) center center / contain no-repeat;
  filter: drop-shadow(0 2px 0 rgba(36, 20, 10, 0.72));
  image-rendering: pixelated;
}
.wm-walker::after {
  content: "";
  display: block;
  width: 18px;
  height: 5px;
  margin: -3px auto 0;
  background: rgba(34, 20, 10, 0.35);
}
.wm-walker.walking .wm-walker-avatar {
  animation: wm-hop .26s steps(2, end) infinite;
}
@keyframes wm-hop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.wm-walker-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  padding: 2px 7px;
  background: #FFE896;
  border: 2px solid #4A2E1B;
  color: #4A2E1B;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 0 #4A2E1B;
}

/* 迷雾锁点击提示条 */
.wm-toast {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  background: #F4E2C1;
  border: 3px solid #4A2E1B;
  box-shadow: inset 0 0 0 2px #C88A4B, 0 4px 0 rgba(48, 28, 14, 0.55);
  color: #4A2E1B;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.wm-toast img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}

.wm-footer-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 11px;
  color: #5C3D22;
}
.wm-footer-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.wm-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid #4A2E1B;
}
.wm-dot.is-done { background: #8AD060; }
.wm-dot.is-next { background: #FFD84D; }
.wm-dot.is-locked { background: #5B6F8A; }
.wm-dot.is-free { background: #65C8EE; }

.wm-preview-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

@media (max-width: 660px) {
  .bag-split,
  .pl-album-grid {
    grid-template-columns: 1fr;
  }
  .bag-top-stats {
    grid-template-columns: 1fr;
  }
  .wm-header-scroll {
    flex-direction: column;
    align-items: flex-start;
  }
}

.pl-album-card.is-cafe-album {
  width: min(620px, 94vw, 105vh);
  max-height: 94vh;
  overflow: auto;
}
.pl-album-grid.is-cafe-four {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.is-cafe-four .pl-photo-choice { padding: 5px; }
.is-cafe-four .pl-photo-mat { padding: 3px; }
.is-cafe-four .pl-photo-mat img { aspect-ratio: 3 / 2; }
.is-cafe-four .pl-photo-sub { display: none; }
