/* Match the 749×2348 map coordinate space and keep each tap zone inside its own island. */
#pinyinRoadmap .kp197-artwork{aspect-ratio:749 / 2348}
#pinyinRoadmap .kp197-map-image{width:100%;height:100%;object-fit:fill}
#pinyinRoadmap .kp197-hotspot{box-sizing:border-box;padding:0;margin:0}
#pinyinRoadmap .kp197-artwork.is-image-failed{aspect-ratio:auto;display:grid;gap:12px;padding:12px;box-sizing:border-box}
#pinyinRoadmap .is-image-failed>.kp197-map-image{display:none}
#pinyinRoadmap .is-image-failed>.kp197-hotspot{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:64px;padding:16px!important;border:1px solid #cce4d7;border-radius:18px;background:#fffefa;color:#315f52;text-align:left;box-shadow:0 4px 0 #dcebe2}
#pinyinRoadmap .is-image-failed .kp197-screenreader{position:static;width:auto;height:auto;overflow:visible;clip-path:none;white-space:normal;font-weight:750}
#pinyinRoadmap .is-image-failed .kp197-clear{position:static;display:inline-block;margin-left:8px}
#pinyinRoadmap .kp197-map-retry{min-height:48px;padding:12px;border:1px solid #cce4d7;border-radius:16px;background:#eef8f1;color:#315f52;font:700 15px system-ui;cursor:pointer}
#pinyinRoadmap .kp197-map-retry[hidden]{display:none}
/* Only the six printed island-padlock glyphs are hidden. Chapter-level locks remain active. */
#pinyinRoadmap .kp197-island-lock-cover{position:absolute;z-index:1;display:block;width:3.85%;height:1.58%;pointer-events:none;border-radius:5px;background:linear-gradient(110deg,#fffdfa,#f9fbf9);box-shadow:0 0 2px 1px #fafbf9}
#pinyinRoadmap .is-image-failed>.kp197-island-lock-cover{display:none}

/* The pier and boat are part of the map. Its transparent hit area also includes the label. */
#pinyinRoadmap .kp197-tone-dock {
  position: absolute;
  top: 4.3%;
  left: 12%;
  width: 84%;
  height: 9.3%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
#pinyinRoadmap .kp197-tone-dock span {
  position: absolute;
  left: 30%;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 10px;
  background: #fffdf3;
  box-shadow: 0 2px 3px #13597755;
  color: #165575;
  font: 700 clamp(12px,3vw,16px)/1.3 system-ui;
}
#pinyinRoadmap .kp197-tone-dock:active span { transform: translate(-50%, 2px); }
#pinyinRoadmap .is-image-failed > .kp197-tone-dock {
  position: static;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 48px;
}

#pinyinRoadmap .is-image-failed > .kp197-tone-dock span { position: static; transform: none; }
