/* 心岛 v1.0.11 · 海图终版：原版底图（不重画） + 精准定位 6 marker */
.s-archipelago {
  background: var(--ink-deeper);
}

/* 玩家位置标记（v1.0.11 mockups 底图已自带 "YOU ARE HERE" 红色箭头，不再需要 CSS 玩家标记） */

/* 岛名标签（CSS 文字 overlay，强化游戏地图属性） */
.island-label {
  position: absolute;
  transform: translate(-50%, 0);
  z-index: 6;
  font-family: var(--font-display, "Cinzel", serif);
  font-size: 14px;
  letter-spacing: .15em;
  color: var(--paper, #f5e6a8);
  text-shadow: 0 0 8px rgba(26, 32, 40, .95), 0 1px 2px rgba(0, 0, 0, .8);
  padding: 3px 10px;
  background: rgba(15, 30, 45, .55);
  border: 1px solid rgba(212, 165, 116, .35);
  border-radius: 3px;
  pointer-events: none;
  white-space: nowrap;
}
.island-label--heart {
  color: var(--light, #d4a574);
  border-color: rgba(212, 165, 116, .65);
  box-shadow: 0 0 12px rgba(212, 165, 116, .25);
}

/* 蜜糖色虚线航线（CSS SVG path） */
.archipelago-route .route-path {
  fill: none;
  stroke: var(--light, #d4a574);
  stroke-width: 2.5;
  stroke-dasharray: 8 6;
  opacity: .8;
  filter: drop-shadow(0 0 6px rgba(212, 165, 116, .5));
  animation: route-flow 3s linear infinite;
}
@keyframes route-flow {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -28; }
}

/* 海图图例（v1.0.11 新增 · 强化游戏地图属性） */
.archipelago-legend {
  position: absolute;
  left: clamp(16px, 3vw, 46px);
  bottom: clamp(18px, 4vh, 42px);
  z-index: 8;
  padding: 10px 14px;
  background: rgba(15, 30, 45, .72);
  border: 1px solid rgba(212, 165, 116, .35);
  border-radius: 4px;
  color: var(--paper, #f5e6a8);
  font-family: var(--font-mono, monospace);
  font-size: 11px;
  letter-spacing: .08em;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: none;
}
.legend-row { display: flex; align-items: center; gap: 6px; }
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}
.legend-dot--unlocked {
  border: 1.5px dashed rgba(212, 165, 116, .95);
  background: radial-gradient(circle, rgba(212, 165, 116, .25) 0%, transparent 70%);
}
.legend-dot--locked {
  border: 1px dashed rgba(168, 181, 188, .5);
  background: transparent;
  filter: blur(.5px);
}
.legend-line {
  display: inline-block;
  width: 24px; height: 0;
  border-top: 1.5px dashed rgba(212, 165, 116, .85);
}

.s-archipelago .stage {
  z-index: 4;
}

.archipelago-route {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.archipelago-route path {
  fill: none;
  stroke: var(--light);
  stroke-width: .32;
  stroke-dasharray: .8 1.3;
  opacity: .48;
  filter: drop-shadow(0 0 4px var(--light-halo));
}

.archipelago-boat-marker {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 86px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .08em;
  transform: translate(-50%, -50%);
  animation: archipelago-boat-drift 5s ease-in-out infinite;
  pointer-events: none;
}
/* v1.0.11 旧船 marker 隐藏 —— 改用 CSS 圆圈高亮 */
.archipelago-boat-marker { display: none; }
.archipelago-boat-marker svg {
  display: block;
  width: 58px;
  height: 26px;
  color: var(--ink-deeper);
  filter: drop-shadow(0 2px 2px rgba(26, 32, 40, .42));
}
@keyframes archipelago-boat-drift {
  0%, 100% { transform: translate(-50%, -50%) rotate(-2deg); }
  50% { transform: translate(-50%, calc(-50% - 4px)) rotate(2deg); }
}

/* v1.0.11 海图标记：CSS 圆圈高亮 + 浮动箭头（不画建筑，底图已有） */
.archipelago-hot {
  position: absolute;
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  transition: transform var(--t-quick) var(--e-out);
  z-index: 5;  /* 标记在底图上方 */
}
.archipelago-hot .marker-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(212, 165, 116, .55);
  background: radial-gradient(circle, rgba(212, 165, 116, .14) 0%, transparent 70%);
  pointer-events: none;
  animation: marker-pulse 2.4s ease-in-out infinite;
}

.archipelago-hot .marker-ring.you-here {
  border-color: rgba(212, 165, 116, .95);
  border-style: solid;
  border-width: 2px;
  background: radial-gradient(circle, rgba(212, 165, 116, .22) 0%, transparent 65%);
  box-shadow: 0 0 24px rgba(212, 165, 116, .4);
}
@keyframes marker-pulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.12); opacity: 1; }
}
.archipelago-hot:hover,
.archipelago-hot:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
}
.archipelago-hot .marker-tooltip {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  background: rgba(15, 30, 45, .82);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: .12em;
  white-space: nowrap;
  border-radius: 3px;
  border: 1px solid rgba(212, 165, 116, .42);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-quick) var(--e-out), transform var(--t-quick) var(--e-out);
  z-index: 10;
}
.archipelago-hot .marker-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 30, 45, .82);
}
.archipelago-hot:hover .marker-tooltip,
.archipelago-hot:focus-visible .marker-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.archipelago-locked .marker-tooltip {
  color: var(--air);
  border-color: rgba(168, 181, 188, .35);
}
.archipelago-locked .marker-tooltip::after {
  border-top-color: rgba(15, 30, 45, .82);
}
.archipelago-locked {
  opacity: .5;
  filter: blur(.5px) saturate(.55);
  animation: archipelago-mist-float 7.5s ease-in-out infinite;
}
.archipelago-locked:hover { opacity: .78; }
.archipelago-locked:nth-of-type(4) { animation-delay: -1.6s; }
.archipelago-locked:nth-of-type(5) { animation-delay: -3.1s; }
.archipelago-locked:nth-of-type(6) { animation-delay: -4.7s; }
.archipelago-locked:nth-of-type(7) { animation-delay: -2.4s; }

@media (max-width: 820px) {
  .archipelago-hot { width: 72px; height: 72px; }
}

@keyframes archipelago-mist-float {
  0%, 100% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-5px); }
}
@keyframes archipelago-shake {
  0%, 100% { transform: translate(-50%, -50%); }
  20% { transform: translate(calc(-50% - 6px), -50%); }
  40% { transform: translate(calc(-50% + 6px), -50%); }
  60% { transform: translate(calc(-50% - 4px), -50%); }
  80% { transform: translate(calc(-50% + 4px), -50%); }
}

/* 右下角的航海定位窗，借用 v0.x 的地图 inset 比例。 */
.archipelago-mini-map {
  position: absolute;
  right: clamp(16px, 3vw, 46px);
  bottom: clamp(18px, 4vh, 42px);
  z-index: 8;
  width: clamp(132px, 16vw, 210px);
  padding: 10px;
  border: 1px solid rgba(247, 241, 227, .32);
  border-radius: 4px;
  background: rgba(26, 32, 40, .58);
  box-shadow: 0 12px 30px rgba(26, 32, 40, .3);
  color: var(--paper);
  pointer-events: none;
}
.mini-map-label {
  display: block;
  margin-bottom: 7px;
  color: var(--light);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
}
.mini-map-sea {
  position: relative;
  height: clamp(72px, 9vw, 108px);
  overflow: hidden;
  border: 1px solid rgba(168, 181, 188, .22);
  background:
    repeating-linear-gradient(12deg, transparent 0 11px, rgba(168, 181, 188, .1) 12px 13px),
    rgba(63, 78, 90, .72);
}
.mini-map-island {
  position: absolute;
  width: 18px;
  height: 13px;
  border-radius: 50% 42% 48% 38%;
  background: var(--light);
  box-shadow: 0 0 12px var(--light-halo);
}
.mini-map-home { left: 30%; bottom: 22%; }
.mini-map-heron { right: 19%; top: 22%; background: var(--paper); }
.mini-map-line {
  position: absolute;
  left: 38%;
  bottom: 28%;
  width: 47%;
  border-top: 1px dashed var(--light);
  transform: rotate(-35deg);
  transform-origin: left center;
  opacity: .75;
}
.mini-map-boat {
  position: absolute;
  left: 48%;
  bottom: 42%;
  width: 8px;
  height: 5px;
  border-radius: 0 0 8px 8px;
  background: var(--light);
  box-shadow: 0 0 8px var(--light);
  transform: rotate(-25deg);
}












/* v1.0.21 建筑悬停光效：覆盖通用矩形热区样式 */
.s-archipelago .stage-hot[data-hot] {
  border: 0;
  outline: 0 !important;
  box-shadow: none;
  background: radial-gradient(ellipse at center, var(--light-faint) 0%, rgba(212, 165, 116, .06) 36%, transparent 70%);
  opacity: .08;
  filter: blur(1px);
  transform: scale(.94);
  transition: opacity var(--t-quick) var(--e-out), filter var(--t-quick) var(--e-out), transform var(--t-quick) var(--e-out);
}
.s-archipelago .stage-hot[data-hot]:hover,
.s-archipelago .stage-hot[data-hot]:focus-visible {
  opacity: 1;
  box-shadow: none;
  filter: blur(0) drop-shadow(0 0 18px var(--light-halo));
  transform: scale(1.035);
  outline: 0 !important;
}
.s-archipelago .stage-hot[data-hot]:active { transform: scale(1.01); }
