/* ==========================================================================
   崇明竖新镇手绘地图探索 & 如砚飞跃切面包小游戏 (Fruit Ninja版) 专属样式表
   文件名: css/shuxin-game.css
   规范：纯矢量SVG与手绘美学融合，100%无系统Emoji
   ========================================================================== */

/* 页面模式切换 Tab 栏 (对应用户截图第1行，使用自定义SVG图标) */
.game-view-tabs {
  display: flex;
  background: #E8F5E9;
  border-radius: 16px;
  padding: 5px;
  margin: 12px 14px;
  border: 1.5px solid #C8E6C9;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
}
.game-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 14px;
  border: none;
  background: transparent;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  color: #2D6A4F;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.game-tab-btn .tab-svg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.game-tab-btn.active {
  background: #FFFFFF;
  color: #166534;
  box-shadow: 0 3px 10px rgba(22, 101, 52, 0.14);
}

/* 手绘地图区块容器 (自适应手机视口高度，告别大片白屏) */
.shuxin-map-section {
  margin: 6px 12px 12px;
  background: #FFFFFF;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.09);
  border: 1.5px solid #D1FAE5;
  display: flex;
  flex-direction: column;
}

/* 地图顶部导引条 (对应用户截图第2行，使用自定义SVG图标) */
.shuxin-map-guide-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 11px 14px;
  background: linear-gradient(135deg, #F0FDF4 0%, #E6F4EA 100%);
  border-bottom: 1px solid #D1FAE5;
}
.shuxin-map-guide-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.guide-svg-icon {
  display: inline-flex;
  color: #15803D;
}
.shuxin-map-guide-left .guide-title {
  font-size: 13px;
  font-weight: 800;
  color: #166534;
  letter-spacing: 0.2px;
}
.btn-locate-ruyan {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  padding: 6px 13px;
  border-radius: 18px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-locate-ruyan .btn-icon-svg {
  display: inline-flex;
}
.btn-locate-ruyan:active {
  transform: scale(0.95);
}

/* 地图视口与背景底图 (支持双指缩放与自由全景平移拖拽，自适应全屏大窗口) */
.shuxin-map-viewport {
  position: relative;
  width: 100%;
  height: calc(100vh - 125px);
  height: calc(100dvh - 125px);
  min-height: 580px;
  max-height: 860px;
  overflow: hidden;
  background: #EEF8F1;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.shuxin-map-viewport.is-dragging {
  cursor: grabbing;
}
.shuxin-map-canvas-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.shuxin-map-base-img,
.shuxin-map-bg-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* 浮动缩放控制面板 */
.shuxin-map-controls,
.shuxin-map-zoom-controls {
  position: absolute;
  right: 12px;
  bottom: 215px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
}
.btn-map-ctrl,
.zoom-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1.5px solid #A7F3D0;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #15803D;
  cursor: pointer;
  transition: all 0.15s;
  padding: 0;
}
.btn-map-ctrl:active,
.zoom-btn:active {
  transform: scale(0.9);
  background: #E8F5E9;
}
.btn-map-ctrl .btn-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 浮动手势操作提示 */
.shuxin-map-gesture-hint {
  position: absolute;
  left: 12px;
  bottom: 215px;
  background: rgba(20, 83, 45, 0.75);
  backdrop-filter: blur(4px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 12px;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.5s;
}

/* 动态打卡地标容器 */
.shuxin-map-spots-layer,
.shuxin-spots-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 打卡点图钉 */
.shuxin-spot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.shuxin-spot-pin:active {
  transform: translate(-50%, -50%) scale(1.15);
}

/* 普通景点图钉 */
.spot-normal {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.spot-pin-dot {
  width: 9px;
  height: 9px;
  background: #059669;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.spot-pin-label {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  color: #14532D;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
  margin-top: 2px;
  white-space: nowrap;
  border: 1px solid #86EFAC;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* 如砚核心焦点地标 */
.spot-ruyan-special {
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ruyan-sonar-ring {
  position: absolute;
  width: 46px;
  height: 46px;
  top: 50%;
  left: 50%;
  margin-top: -23px;
  margin-left: -23px;
  border-radius: 50%;
  border: 2.5px solid #F59E0B;
  opacity: 0.8;
  animation: sonarPulse 2s infinite ease-out;
  pointer-events: none;
}
.ruyan-sonar-ring.delay {
  animation-delay: 1s;
}
@keyframes sonarPulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

.ruyan-pin-icon-wrap {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  border: 2px solid #F59E0B;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  animation: ruyanBobbing 2.4s infinite ease-in-out;
  color: #B45309;
}
@keyframes ruyanBobbing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.ruyan-svg-icon {
  display: inline-flex;
}
.ruyan-pin-bubble {
  margin-top: 3px;
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.35);
  border: 1px solid #FDE68A;
}
.ruyan-pin-bubble .bubble-sparkle {
  display: inline-flex;
  color: #FEF08A;
}
.ruyan-pin-bubble .bubble-tag {
  background: rgba(255, 255, 255, 0.25);
  font-size: 9px;
  padding: 1px 4px;
  border-radius: 6px;
}

.pin-spotlight {
  animation: spotlightGlow 1.2s ease-in-out 2;
}
@keyframes spotlightGlow {
  0%, 100% { transform: translate(-50%, -50%) scale(1); filter: drop-shadow(0 0 0px #F59E0B); }
  50% { transform: translate(-50%, -50%) scale(1.35); filter: drop-shadow(0 0 16px #F59E0B); }
}

/* 地图底栏说明条 */
.shuxin-map-foot-tip {
  padding: 10px 14px;
  background: #FDFBF7;
  border-top: 1px dashed #E2E8F0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shuxin-map-foot-tip .tip-badge {
  background: #FEF3C7;
  color: #92400E;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.shuxin-map-foot-tip .tip-text {
  font-size: 11px;
  color: #4B5563;
  line-height: 1.4;
}

/* ==========================================
   通规模态弹窗 (Modals)
   ========================================== */
.shuxin-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 16px;
  animation: modalFadeIn 0.25s ease-out;
}
#ninjaResultModal {
  z-index: 25000 !important;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.shuxin-spot-modal-card {
  width: 100%;
  max-width: 360px;
  background: #FFFFFF;
  border-radius: 22px;
  padding: 20px 18px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  border: 2px solid #D1FAE5;
  animation: cardPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes cardPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.shuxin-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: #F1F5F9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #64748B;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.shuxin-modal-close:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.modal-badge-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.modal-spot-tag {
  background: #E0F2FE;
  color: #0369A1;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
}
.modal-spot-badge {
  background: #FEF3C7;
  color: #B45309;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 8px;
}
.modal-spot-title {
  font-size: 18px;
  font-weight: 900;
  color: #14532D;
  margin: 0 0 4px;
}
.modal-spot-subtitle {
  font-size: 11.5px;
  color: #059669;
  font-weight: 700;
  margin-bottom: 12px;
}
.modal-spot-body {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 18px;
  background: #F8FAFC;
  padding: 12px;
  border-radius: 12px;
}
.modal-action-row {
  display: flex;
  gap: 8px;
}
.btn-spot-action {
  flex: 1;
  padding: 10px 0;
  border-radius: 14px;
  font-size: 12.5px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  background: #F1F5F9;
  color: #475569;
  transition: all 0.2s;
}
.btn-spot-action.primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-spot-action.disabled {
  background: #E2E8F0;
  color: #94A3B8;
  cursor: not-allowed;
}

/* ==========================================
   如砚窑烤面包切切乐 · 专属游戏开始封面页 (手绘温润风，布局清晰无遮挡)
   ========================================== */
.ruyan-game-cover-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FDF6E8;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out;
}

.ruyan-cover-container.warm-theme {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 16px 28px;
  box-sizing: border-box;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(120, 53, 15, 0.18);
}

.ruyan-cover-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 0;
}

/* 顶部操作栏 */
.cover-top-bar {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 30;
}

.btn-cover-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #78350F;
  border: 1.5px solid #E6D5B8;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(120, 53, 15, 0.1);
  transition: transform 0.15s;
}
.btn-cover-back:active {
  transform: scale(0.94);
}

.cover-top-score-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(254, 243, 199, 0.95);
  border: 1.5px solid #FDE68A;
  padding: 5px 12px;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}
.cover-top-score-badge .badge-title {
  font-size: 11px;
  font-weight: 800;
  color: #92400E;
}
.cover-top-score-badge .badge-num {
  font-size: 15px;
  font-weight: 900;
  color: #B45309;
  font-family: monospace, -apple-system, sans-serif;
}

/* 主舞台内容区 (垂直居中流动布局，绝无重叠遮挡) */
.cover-main-stage {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  padding: 6px 0;
  z-index: 20;
}

.cover-sign-wrap {
  width: 82%;
  max-width: 320px;
  transform-origin: top center;
  animation: signRopeSway 4.5s infinite ease-in-out;
}
.cover-title-sign-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(120, 53, 15, 0.22));
}

.cover-hero-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: mascotBob 2.8s infinite ease-in-out;
}
.cover-baker-img {
  height: 180px;
  width: auto;
  max-width: 70%;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.15));
}

.cover-btn-start {
  position: relative;
  width: 72%;
  max-width: 275px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: startBtnAttract 2.4s infinite ease-in-out;
  -webkit-tap-highlight-color: transparent;
}
.btn-start-game-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(120, 53, 15, 0.25));
  pointer-events: none;
}
.cover-btn-start:active {
  transform: scale(0.94) translateY(2px) !important;
}

/* 底部功能按键栏 */
.cover-bottom-links {
  position: relative;
  width: 80%;
  max-width: 300px;
  display: flex;
  justify-content: space-around;
  gap: 16px;
  z-index: 30;
}
.cover-sub-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s;
  outline: none;
}
.cover-sub-btn:active {
  transform: scale(0.92);
}
.cover-sub-btn img {
  width: 120px;
  height: auto;
  display: block;
  filter: drop-shadow(0 3px 8px rgba(120, 53, 15, 0.25));
}

@keyframes signRopeSway {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(1.6deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-1.6deg); }
  100% { transform: rotate(0deg); }
}

@keyframes mascotBob {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes startBtnAttract {
  0%, 100% {
    transform: scale(1) translateY(0);
    filter: drop-shadow(0 6px 12px rgba(120, 53, 15, 0.22));
  }
  50% {
    transform: scale(1.05) translateY(-3px);
    filter: drop-shadow(0 10px 20px rgba(217, 119, 6, 0.42));
  }
}

/* ==========================================
   如砚 · 柴窑飞跃切面包经典擂台 (清爽暖色调，无遮挡全屏)
   ========================================== */
.ruyan-ninja-fullscreen-layer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FDF6E8 url('../assets/images/ruyan_cutting_board_v3.jpg') center center / cover no-repeat;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}
.ninja-arena-container.warm-theme {
  width: 100%;
  max-width: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: url('../assets/images/ruyan_cutting_board_v3.jpg') center center / cover no-repeat;
  box-shadow: 0 0 35px rgba(120, 53, 15, 0.2);
  position: relative;
  overflow: hidden;
}

/* 顶部 HUD 仪表条 (极简清爽木纹设计) */
.ninja-top-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 14px 10px;
  width: 100%;
  box-sizing: border-box;
  background: rgba(254, 249, 238, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid #E6D5B8;
  box-shadow: 0 2px 10px rgba(120, 53, 15, 0.08);
  z-index: 100;
}
.btn-ninja-exit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFF8EE;
  color: #78350F;
  border: 1.5px solid #E6D5B8;
  padding: 6px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(120, 53, 15, 0.1);
  transition: transform 0.15s;
}
.btn-ninja-exit:active {
  transform: scale(0.95);
}

.ninja-hud-score-pill {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  padding: 4px 12px;
  border-radius: 14px;
}
.ninja-hud-score-pill .hud-score-lbl {
  font-size: 11px;
  font-weight: 800;
  color: #92400E;
}
.ninja-hud-score-pill .hud-score-num {
  font-size: 16px;
  font-weight: 900;
  color: #B45309;
  font-family: monospace, -apple-system, sans-serif;
}

.ninja-strikes-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 8px;
  border-radius: 14px;
  border: 1px solid #E6D5B8;
}
.strike-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.strike-slot.lost {
  animation: strikeHitPop 0.3s ease-out;
}
.hud-heart-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.hud-heart-img.lost {
  opacity: 0.5;
  filter: grayscale(0.85);
}

/* 主画布视口 (全屏宽敞无阻碍视界) */
.ninja-canvas-viewport {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
}
#ninjaGameCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
}

/* 柴窑连击浮动横幅 */
.ninja-combo-banner {
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translate(-50%, 0);
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  z-index: 150;
}
.combo-badge-img {
  width: 110px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 16px rgba(217, 119, 6, 0.45));
}
.combo-pop {
  animation: comboPop 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes comboPop {
  0% { transform: translate(-50%, 25px) scale(0.5); opacity: 0; }
  25% { transform: translate(-50%, -5px) scale(1.2); opacity: 1; }
  50% { transform: translate(-50%, 0) scale(1.0); opacity: 1; }
  80% { transform: translate(-50%, 0) scale(1.0); opacity: 1; }
  100% { transform: translate(-50%, -25px) scale(0.85); opacity: 0; }
}
.combo-num {
  font-size: 20px;
  font-weight: 900;
  color: #FEF08A;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.combo-text {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #FFFFFF;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.ninja-cheer-mascot {
  position: absolute;
  bottom: 16px;
  left: 14px;
  z-index: 140;
  pointer-events: none;
}
.cheer-boy-img {
  width: 88px;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}
.mascot-cheer-anim {
  animation: mascotCheer 1.05s ease-out forwards;
}
@keyframes mascotCheer {
  0% { transform: translateY(70px) rotate(-8deg); opacity: 0; }
  25% { transform: translateY(-10px) rotate(4deg); opacity: 1; }
  55% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(60px) rotate(-4deg); opacity: 0; }
}

/* 底部轻量切断计数器 (极简微弱水印，绝不遮挡) */
.ninja-bottom-crumb-tip {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  pointer-events: none;
  z-index: 50;
}
.ninja-bottom-crumb-tip span {
  font-size: 11px;
  font-weight: 700;
  color: rgba(120, 53, 15, 0.55);
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 12px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(120, 53, 15, 0.08);
}

.ruyan-rules-card {
  max-width: 350px;
}
.ruyan-rules-body {
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.rule-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FAF5EE;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #FDE68A;
}
.rule-icon {
  display: inline-flex;
  margin-top: 2px;
  flex-shrink: 0;
}
.rule-text {
  font-size: 12px;
  color: #334155;
  line-height: 1.45;
}
.rule-text strong {
  color: #92400E;
}

@keyframes kilnBombShake {
  0% { transform: translate(0, 0); }
  15% { transform: translate(-10px, 8px); }
  30% { transform: translate(12px, -6px); }
  45% { transform: translate(-8px, -8px); }
  60% { transform: translate(10px, 6px); }
  75% { transform: translate(-6px, 4px); }
  100% { transform: translate(0, 0); }
}

@keyframes kilnDetonationFlash {
  0% { filter: brightness(4.0) contrast(1.6); }
  30% { filter: brightness(2.5) contrast(1.3); }
  100% { filter: brightness(1.0) contrast(1.0); }
}

@keyframes strikeHitPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* ==========================================
   柴窑熄火结算弹窗 (零Emoji)
   ========================================== */
.ninja-result-card {
  width: 100%;
  max-width: 340px;
  background: #FFFFFF;
  border-radius: 26px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 24px 48px rgba(0,0,0,0.35);
  border: 3px solid #FCD34D;
  animation: cardPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.result-trophy-box {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.result-title {
  font-size: 18px;
  font-weight: 900;
  color: #1E293B;
  margin: 0 0 6px;
}
.result-reason-tag {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 14px;
}
.result-reason-tag.bomb {
  background: #FEF2F2;
  color: #DC2626;
  border: 1px solid #FECACA;
}
.result-reason-tag.misses {
  background: #FFFBEB;
  color: #D97706;
  border: 1px solid #FDE68A;
}

.result-stats-box {
  width: 100%;
  background: #FAF5EE;
  border: 1px solid #FDE68A;
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 18px;
}
.result-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  margin-bottom: 6px;
}
.result-stat-row .stat-lbl {
  color: #64748B;
}
.result-stat-row .stat-val {
  font-weight: 800;
  color: #1E293B;
}
.result-stat-row .stat-val.highlight {
  color: #D97706;
  font-size: 16px;
}
.result-reward-grid {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #E5DFD5;
}
.reward-pill {
  flex: 1;
  background: #FEF3C7;
  color: #92400E;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 4px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.reward-pill .pill-svg {
  display: inline-flex;
}

.result-action-btns {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.btn-result-primary {
  width: 100%;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  border: none;
  padding: 11px 0;
  border-radius: 16px;
  font-size: 13.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.15s;
}
.btn-result-primary:active {
  transform: scale(0.97);
}
.btn-result-primary .btn-arrow-svg {
  display: inline-flex;
}
.btn-result-secondary {
  width: 100%;
  background: #F1F5F9;
  color: #475569;
  border: none;
  padding: 9px 0;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.btn-result-secondary:active {
  background: #E2E8F0;
}


/* ==========================================================================
   手绘乡趣地图 Header HUD & 底部探索卡片抽屉 (100% 还原用户设计稿)
   ========================================================================== */

/* 1. 顶部 Header HUD (Image 1) */
.shuxin-map-header {
  background: #FDFEFC;
  padding: 10px 14px 12px;
  border-bottom: 1px solid #E6EFE8;
  position: relative;
  z-index: 80;
  box-shadow: 0 2px 10px rgba(20, 83, 45, 0.04);
}

.map-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.map-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #FFFFFF;
  border: 1.2px solid #D1E7D6;
  color: #064E3B;
  font-size: 12.5px;
  font-weight: 800;
  padding: 5px 13px;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(6, 78, 59, 0.05);
  transition: transform 0.15s, background 0.15s;
}
.map-btn-back:active {
  transform: scale(0.96);
  background: #F0FDF4;
}
.map-btn-back .nav-chevron {
  display: inline-flex;
  margin-right: 2px;
}

.map-nav-logos {
  display: flex;
  align-items: center;
  gap: 6px;
}
.map-nav-logos .logo-item {
  height: 26px;
  width: auto;
  max-width: 50px;
  object-fit: contain;
}
.map-nav-logos .logo-times {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 600;
}

.map-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.map-header-title-box {
  flex: 1;
  min-width: 0;
}

.map-main-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-main-title {
  font-size: 20px;
  font-weight: 900;
  color: #064E3B;
  letter-spacing: 0.3px;
  margin: 0;
  line-height: 1.2;
}

.map-leaf-icon {
  display: inline-flex;
  align-items: center;
  animation: leafFloat 3s infinite ease-in-out;
}
@keyframes leafFloat {
  0%, 100% { transform: rotate(0deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-2px); }
}

.map-main-subtitle {
  font-size: 12px;
  color: #52796F;
  margin: 4px 0 0;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* 右侧探索统计卡片 */
.map-stats-badge-card {
  display: flex;
  align-items: center;
  background: #F0FDF4;
  border: 1.2px solid #BBF7D0;
  border-radius: 14px;
  padding: 6px 10px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.07);
  flex-shrink: 0;
}

.badge-col {
  display: flex;
  align-items: center;
  gap: 5px;
}
.badge-col .badge-icon-pin,
.badge-col .badge-icon-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.badge-info {
  display: flex;
  flex-direction: column;
}
.badge-label {
  font-size: 9.5px;
  color: #64748B;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}
.badge-value {
  font-size: 14px;
  font-weight: 900;
  color: #064E3B;
  line-height: 1.1;
}
.badge-col:last-child .badge-value {
  font-size: 13px;
  color: #1E293B;
}

.badge-divider {
  width: 1px;
  height: 24px;
  background: #CBD5E1;
  margin: 0 8px;
}


/* 2. 底部 POI 抽屉卡片 (Image 2) */
.shuxin-spot-drawer {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.16);
  border: 1.5px solid #E2E8F0;
  z-index: 75;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.25s, box-shadow 0.25s;
  will-change: transform;
}

.shuxin-spot-drawer.is-collapsed {
  transform: translateY(calc(100% - 22px)) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  cursor: pointer;
}

.drawer-drag-handle-wrap {
  width: 100%;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.drawer-drag-handle {
  width: 40px;
  height: 4.5px;
  background: #CBD5E1;
  border-radius: 3px;
  transition: background 0.2s, width 0.2s;
}

.shuxin-spot-drawer.is-collapsed .drawer-drag-handle {
  background: #059669;
  width: 50px;
}

/* 渐进式秒开双层底图 (先秒显轻量占位图，5K超清大图平滑淡入，告别白屏) */
.shuxin-map-base-img.placeholder-layer {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  filter: blur(1.5px);
  transform: scale(1.008);
}

.shuxin-map-base-img.hd-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}

.drawer-content-body {
  display: flex;
  gap: 10px;
  padding: 0 10px 10px;
}

.drawer-left-visual {
  width: 110px;
  min-width: 110px;
  height: 155px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
  border: 1.5px solid #E2E8F0;
  background: #F8FAFC;
}
.drawer-spot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.drawer-explored-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #15803D;
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.4);
}

.drawer-right-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.drawer-spot-title {
  font-size: 16.5px;
  font-weight: 900;
  color: #064E3B;
  margin: 0;
  line-height: 1.2;
}
.drawer-btn-learn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #4B5563;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.15s;
}
.drawer-btn-learn:active {
  background: #F3F4F6;
  transform: scale(0.95);
}

.drawer-spot-sub {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 2px;
}
.drawer-spot-desc {
  font-size: 10.5px;
  color: #374151;
  line-height: 1.35;
  margin-bottom: 5px;
}

/* 挑战小卡片 (橘色温润渐变) */
.drawer-challenge-card {
  background: #FFF7ED;
  border: 1px solid #FFEDD5;
  border-radius: 12px;
  padding: 5px 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 5px;
}
.challenge-icon-img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.challenge-text-wrap {
  flex: 1;
  min-width: 0;
}
.challenge-title {
  font-size: 12px;
  font-weight: 900;
  color: #1E293B;
  line-height: 1.2;
}
.challenge-sub {
  font-size: 9.5px;
  color: #64748B;
  margin-top: 1px;
}
.drawer-btn-start-game {
  background: #1B4332;
  color: #FFFFFF;
  border: none;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 8px rgba(27, 67, 50, 0.28);
  transition: transform 0.15s, background 0.15s;
  white-space: nowrap;
}
.drawer-btn-start-game:active {
  transform: scale(0.95);
  background: #14532D;
}

/* 奖励条 */
.drawer-reward-strip {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9.5px;
}
.reward-strip-left {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #451A03;
}
.reward-medal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.reward-badge-name {
  color: #92400E;
  font-weight: 800;
}
.reward-strip-right {
  color: #B45309;
  font-weight: 700;
}

/* 选中高亮图钉动效 */
.shuxin-spot-pin.is-active .spot-pin-dot {
  background: #F59E0B;
  transform: scale(1.4);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.35);
}
.shuxin-spot-pin.is-active .spot-pin-label {
  background: #1B4332;
  color: #FEF08A;
  border-color: #F59E0B;
}
