.rally-map {
  padding-block: clamp(24px, 4vw, 48px) clamp(32px, 5vw, 65px);
}
.rally-map__heading { margin-bottom: 18px; }
.rally-map__heading h1 {
  margin: 3px 0 6px;
  color: var(--ink, #172f34);
  font: 700 clamp(1.65rem, 5vw, 2.85rem)/1.3 var(--serif, serif);
  letter-spacing: .03em;
}
.rally-map__heading p:not(.overline) {
  color: var(--muted, #4d605e);
  font-size: .88rem;
}
.odaiba-map__layout {
  display: grid;
  align-items: start;
  gap: 18px;
}
.odaiba-map__visual { min-width: 0; }
.odaiba-map__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.odaiba-map__bar button {
  min-height: 44px;
  padding: 4px 14px;
  border: 1px solid var(--rule, #d4d4c7);
  border-radius: 3px;
  background: var(--card, #fffef9);
  color: var(--ink, #172f34);
  font-size: .84rem;
  font-weight: 750;
  cursor: pointer;
}
.odaiba-map__bar button:hover { background: #eeefe7; }
.odaiba-map__canvas {
  z-index: 0;
  height: clamp(390px, 63svh, 600px);
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #bbc9bf;
  border-radius: 6px;
  background: #e7ebe6;
}
.odaiba-map__canvas:focus-visible { outline-offset: 4px; }
.odaiba-map__canvas.leaflet-container {
  color: var(--ink, #172f34);
  font-family: inherit;
}
.odaiba-map__canvas.leaflet-container .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  color: var(--ink, #172f34);
}
.odaiba-map__canvas .leaflet-control-attribution { color: #263e37; }
.odaiba-map__canvas .leaflet-control-attribution a { color: #15483c; text-decoration: underline; text-underline-offset: .12em; }

.odaiba-map__station-marker {
  border: 1px solid #628ca2;
  border-radius: 50%;
  background: #fff;
}
.odaiba-map__station {
  position: absolute;
  top: 50%;
  left: calc(100% + 4px);
  width: max-content;
  max-width: 122px;
  transform: translateY(-50%);
  color: #385368;
  font: 750 clamp(10px, 2.9vw, 13px)/1.2 "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  paint-order: stroke fill;
  -webkit-text-stroke: 3px #fffef9;
  pointer-events: none;
}
.odaiba-map__station--above { top: -2px; left: 50%; transform: translate(-50%, -100%); }
.odaiba-map__station--below { top: calc(100% + 2px); left: 50%; transform: translateX(-50%); }
.odaiba-map__bay {
  display: block;
  width: max-content;
  transform: translate(-50%, -50%);
  color: #416d83;
  font: 700 clamp(11px, 2.9vw, 14px)/1.25 var(--serif, serif);
  letter-spacing: .12em;
  pointer-events: none;
}

.odaiba-map__canvas.leaflet-container .odaiba-map__pin {
  position: relative;
  display: grid;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #2c4542;
  text-decoration: none;
  touch-action: manipulation;
}
.odaiba-map__pin-disc {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #e6e9e4;
  box-shadow: 0 0 0 1px #6a7c71, 0 1px 5px #172f3438;
  overflow: hidden;
}
.odaiba-map__pin:hover .odaiba-map__pin-disc,
.odaiba-map__pin:focus-visible .odaiba-map__pin-disc,
.odaiba-map__pin.is-selected .odaiba-map__pin-disc {
  box-shadow: 0 0 0 2px #225c4e, 0 2px 7px #172f3438;
}
.odaiba-map__pin-feet { width: 26px; height: 26px; }
.odaiba-map__pin-stamp { display: none; width: 35px; height: 35px; object-fit: contain; }
.odaiba-map__pin.is-collected .odaiba-map__pin-disc {
  border-color: #fffaf3;
  background: #fff8eb;
  box-shadow: 0 0 0 1px #a63828, 0 1px 4px #67272044;
}
.odaiba-map__pin.is-collected .odaiba-map__pin-stamp {
  display: block;
  filter: brightness(0) saturate(100%) invert(24%) sepia(72%) saturate(1750%) hue-rotate(341deg) brightness(88%);
}
.odaiba-map__pin.is-collected .odaiba-map__pin-feet { display: none; }
.odaiba-map__pin-label {
  position: absolute;
  top: 42px;
  left: 50%;
  width: max-content;
  max-width: 116px;
  padding: 3px 5px;
  transform: translateX(-50%);
  border: 1px solid #c2cec2;
  border-radius: 5px;
  background: #fffef9;
  color: #283c34;
  font: 800 clamp(11px, 3vw, 13px)/1.16 "Yu Gothic", "Hiragino Sans", Meiryo, sans-serif;
  text-align: center;
}
.odaiba-map__pin.is-collected .odaiba-map__pin-label { border-color: #bb877b; color: #803426; }
.odaiba-map__pin.is-selected .odaiba-map__pin-label { border-color: #1c6455; }
.odaiba-map__pin--liberty .odaiba-map__pin-label { top: auto; bottom: 42px; }
.odaiba-map__pin--fuji-tv .odaiba-map__pin-label { top: 10px; left: 42px; transform: none; }
.odaiba-map__pin--festival-plaza .odaiba-map__pin-label {
  left: 42px;
  top: 10px;
  max-width: none;
  transform: none;
  white-space: nowrap;
}
.odaiba-map__pin--yume-bridge .odaiba-map__pin-label { top: auto; bottom: 42px; }
.odaiba-map__badge[hidden], .odaiba-map__status[hidden] { display: none; }
.odaiba-map__status {
  margin: 8px 0 0;
  color: var(--muted, #4d605e);
  font-size: .85rem;
}

.odaiba-map__list {
  min-width: 0;
  margin: 0;
  padding: 0 14px;
  list-style: none;
  border: 1px solid var(--rule, #d4d4c7);
  border-radius: 6px;
  background: var(--card, #fffef9);
}
.odaiba-map__list li {
  display: grid;
  min-width: 0;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 6px 0;
}
.odaiba-map__list li + li { border-top: 1px solid var(--rule, #d4d4c7); }
.odaiba-map__list-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #eee5d7;
  color: #823125;
  font: 800 .83rem/1 system-ui, sans-serif;
}
.odaiba-map__spot { display: flex; min-width: 0; flex-wrap: wrap; }
.odaiba-map__spot-link {
  display: grid;
  min-height: 44px;
  place-items: center start;
  font-size: .88rem;
  font-weight: 750;
  overflow-wrap: anywhere;
}
.odaiba-map__spot-link:hover { color: var(--red, #a63828); text-decoration: underline; text-underline-offset: 3px; }
.odaiba-map__badge {
  display: inline-block;
  align-self: flex-start;
  margin-top: -4px;
  padding: 0 4px;
  border-radius: 2px;
  background: #e8f0e8;
  color: #205447;
  font-size: .71rem;
  font-weight: 800;
}
.odaiba-map__external {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  color: #255b50;
  font-size: .73rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

@media (max-width: 540px) {
  .rally-map { padding-block-start: 20px; }
  .rally-map__heading { margin-bottom: 13px; }
  .odaiba-map__visual { position: relative; }
  .odaiba-map__bar { position: absolute; z-index: 1; right: 10px; bottom: 44px; margin: 0; }
  .odaiba-map__canvas { height: clamp(330px, calc(100svh - 226px), 555px); }
  .odaiba-map__canvas .leaflet-control-attribution { margin-bottom: 18px; }
}

@media (max-width: 375px) {
  .odaiba-map__canvas { height: clamp(305px, calc(100svh - 242px), 555px); }
  .odaiba-map__pin--festival-plaza .odaiba-map__pin-label {
    top: 42px;
    left: 50%;
    transform: translateX(-50%);
  }
  .odaiba-map__canvas .leaflet-bottom.leaflet-left { top: 3px; bottom: auto; }
  .odaiba-map__canvas .leaflet-control-attribution { margin-bottom: 0; }
}

@media (min-width: 850px) {
  .odaiba-map__layout { grid-template-columns: minmax(0, 2.25fr) minmax(285px, 1fr); gap: 22px; }
  .odaiba-map__canvas { height: clamp(350px, calc(100svh - 450px), 555px); }
  .odaiba-map__list { margin-top: 52px; }
  .odaiba-map__list li { padding: 7px 0; }
}
