/* 飛び出す絵本の地図（試作）。既存の案内パネルの見た目はそのまま使う */
#mapWrap { background: #140d1e; overflow: hidden; }
#mapWrap #city.ehon-canvas {
  display: block; position: absolute; inset: 0; width: 100%; height: 100%;
  touch-action: none; cursor: grab; -webkit-tap-highlight-color: transparent; border-radius: inherit;
}
#mapWrap #city.ehon-canvas:active { cursor: grabbing; }
#mapWrap .labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; border-radius: inherit; }
#mapWrap .ehon-label { pointer-events: auto; white-space: nowrap; max-width: none; }
#mapWrap .ehon-label .map-label-name { display: block; }
#mapWrap .ehon-label.is-spot { white-space: normal; text-align: center; line-height: 1.35; cursor: pointer; }
#mapWrap .map-zoom-btn:disabled { opacity: .45; cursor: default; }
/* 画面上の地図が小さいとき（スマホの全景など）の名前札。名前だけを小さく出す。押すと建物へ寄る。
   見た目は小さくするが、::before で押せる範囲を上下に広げてある */
#mapWrap .ehon-label.is-compact { min-height: 0; font-size: 10px; line-height: 1.25; padding: 3px 6px; border-radius: 7px; white-space: normal; max-width: 10.6em; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
#mapWrap .ehon-label.is-compact::before { content: ""; position: absolute; inset: -10px -3px; }
#mapWrap .ehon-label.is-compact::after { width: 5px; height: 5px; bottom: -3.5px; }
#mapWrap .ehon-label.is-compact .map-label-count { display: none; }
#mapWrap .ehon-label.is-compact.is-spot { font-size: 9px; }

/* 足元の手前に出す名前札（新仮面舞踏会）。吹き出しの角を上向きにする */
#mapWrap .ehon-label.is-below::after { bottom: auto; top: -5px; transform: translateX(-50%) rotate(225deg); }
#mapWrap .ehon-label.is-compact.is-below::after { bottom: auto; top: -3.5px; }
