.scene--map { background: #040a18; }

.mapstage {
  position: relative;
  isolation: isolate;
  height: max(560px, calc(100svh - var(--chrome-h)));
  overflow: hidden;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(160px 30px at 62% calc(100% - 12px), rgba(255, 240, 230, .7), transparent),
    radial-gradient(520px 110px at 62% 100%, rgba(238, 122, 88, .55), transparent),
    radial-gradient(1200px 260px at 58% 100%, rgba(52, 128, 204, .5), transparent),
    radial-gradient(80% 70% at 60% 55%, rgba(14, 44, 104, .55), transparent 75%),
    radial-gradient(50% 70% at 0% 0%, rgba(34, 8, 46, .6), transparent),
    linear-gradient(180deg, #060818 0%, #04102a 70%, #061a3c 100%);
}
.mapstage .sky { opacity: .7; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 92%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 60%, transparent 92%); }
.mapview { position: absolute; inset: 0; cursor: grab; touch-action: none; user-select: none; }
.mapview:focus-visible { outline: 2px solid var(--white); outline-offset: -4px; }
.mapview.is-dragging { cursor: grabbing; }
.mapmove { position: absolute; top: 0; left: 0; width: 600px; height: 600px; transform-origin: 0 0; will-change: transform; opacity: 0; transition: opacity .3s ease; }
.is-ready .mapmove { opacity: 1; transition: opacity .7s var(--ease-out); }
.mapmove > .roria-box { position: absolute; inset: 0; aspect-ratio: auto; }
.is-flying .pin-label, .is-flying .pin-dot { transition: none; }

html:not(.motion) .mapmove { opacity: 1; top: 70px; left: 440px; width: min(calc(100% - 460px), calc(100% - 140px)); height: auto; aspect-ratio: 1; max-width: calc(100svh - var(--chrome-h) - 90px); }

.lchip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(7, 12, 26, .66);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
  color: #fff;
  font: 400 12.5px/1 var(--mono);
  letter-spacing: .02em;
  white-space: nowrap;
}
.lchip-dot { width: 9px; height: 9px; border-radius: 50%; background: rgb(var(--pc)); box-shadow: 0 0 8px rgba(var(--pc), .9); transition: background-color var(--t-mid) var(--ease-out), box-shadow var(--t-mid) var(--ease-out), scale var(--t-mid) var(--ease-spring); }
.lchip-n { color: var(--ink-3); }
.lchip[aria-pressed="true"] { border-color: rgba(var(--pc), .45); }
.lchip[aria-pressed="false"] { color: var(--ink-3); }
.lchip[aria-pressed="false"] .lchip-dot { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(var(--pc), .6); scale: .8; }
.lchip:hover { background: rgba(20, 28, 50, .8); }

.mfilters {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  left: 440px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  pointer-events: none;
}
.mfilters .lchip { pointer-events: auto; }

.mpanel {
  position: absolute;
  z-index: 6;
  top: 16px;
  bottom: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  width: 404px;
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(150, 175, 235, .07), rgba(150, 175, 235, .02)), rgba(6, 11, 24, .74);
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
          backdrop-filter: blur(22px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.sheet-grip { display: none; }
.mfind {
  position: relative;
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin: 14px 14px 0;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  background: rgba(2, 7, 14, .5);
  color: var(--ink-3);
}
.mfind input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #fff; font: 400 14.5px/1 var(--sans); }
.mfind input::placeholder { color: rgba(200, 212, 236, .6); }
.mfind input::-webkit-search-cancel-button { display: none; }
.mfind:focus-within { border-color: rgba(127, 210, 246, .7); box-shadow: 0 0 0 3px rgba(127, 210, 246, .16); }
html:not(.motion) .mfind { display: none; }
.mfind-list {
  position: absolute;
  z-index: 3;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(6, 10, 22, .97);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .9);
}
.mfind-list[hidden] { display: none; }
.mfind-list:not([hidden]) { animation: panel-in .35s var(--ease-out); }
.mfind-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #fff;
  font: 400 14px/1.2 var(--sans);
  text-align: left;
}
.mfind-list button span:last-child { margin-left: auto; color: var(--ink-3); font: 400 11.5px/1 var(--mono); }
.mfind-list button:hover, .mfind-list button:focus-visible { background: rgba(255, 255, 255, .07); }
.mfind-list .none { padding: 10px 12px; color: var(--ink-3); font-size: 13px; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: rgb(var(--pc)); box-shadow: 0 0 6px rgba(var(--pc), .9); }

.place {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  scrollbar-color: rgba(255, 255, 255, .18) transparent;
  scrollbar-width: thin;
}
.place > * { flex: none; }
.place-foot { flex: none; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.place-foot .go { margin-top: 0; }
.place-kick { display: flex; flex-wrap: wrap; align-items: center; color: var(--cyan); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; }
.place-kick span + span::before { display: inline-block; width: 3px; height: 3px; margin: 0 9px; border-radius: 50%; background: var(--cantaloupe); vertical-align: middle; translate: 0 -1px; content: ""; }
.place-kick .kick-gym { color: #ffc2ad; }
.place-name { margin-top: 10px; color: #fff; font: 400 46px/1 var(--serif); letter-spacing: -.008em; overflow-wrap: anywhere; }
.place-name em { font-style: italic; }
.place-pic { position: relative; margin-top: 18px; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: #0a1222 center / cover; }
.place-pic img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.place-lede { margin-top: 16px; color: rgba(226, 233, 248, .86); font: 400 14.5px/1.6 var(--sans); }
.place-sec { margin-top: 22px; }
.place-sec h3 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; color: var(--ink-3); font: 400 11.5px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.place-sec h3 span { color: #fff; }
.place-mons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.place-mons a, .place-mons li > span, .place-mons .more {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out);
}
.place-mons a:hover { border-color: rgba(127, 210, 246, .45); background: rgba(127, 210, 246, .07); }
.place-mons .spr { width: 92%; transition: opacity .6s var(--ease-out), scale .5s var(--ease-spring), translate var(--t-mid) var(--ease-spring); }
.place-mons a:hover .spr { translate: 0 -3px; scale: 1.08; }
.place-mons .more { color: var(--ink-2); font-size: 13px; }
.place-none { color: var(--ink-2); font: 400 13.5px/1.5 var(--sans); }
.exits { display: flex; flex-wrap: wrap; gap: 6px; }
.exit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font: 400 13px/1 var(--sans);
}
.exit span { color: var(--ink-3); font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.exit:hover { border-color: rgba(127, 210, 246, .55); background: rgba(127, 210, 246, .08); }
.go--inline { display: none; }
.place-trip { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.trip {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: transparent;
  color: #fff;
  font: 400 18px/1.1 var(--serif);
  text-align: left;
}
.trip span { color: var(--ink-3); font: 400 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.trip--next { text-align: right; }
.trip--prev span::before { content: "← "; }
.trip--next span::after { content: " →"; }
.trip:hover { border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }

.mzoom { position: absolute; z-index: 5; right: 16px; bottom: 16px; display: grid; gap: 8px; }
html:not(.motion) .mzoom, html:not(.motion) .mhint { display: none; }
.mhint { position: absolute; z-index: 4; right: 76px; bottom: 26px; margin: 0; color: rgba(226, 232, 248, .7); font-size: 11.5px; letter-spacing: .04em; text-shadow: 0 1px 8px rgba(0, 0, 0, .8); pointer-events: none; }

.place.is-out > :not(.place-pic) { opacity: 0; translate: 0 -6px; transition: opacity .16s ease-in, translate .16s ease-in; }
@keyframes panel-in { from { opacity: 0; translate: 0 14px; } }
@keyframes sprite-in { from { opacity: 0; scale: .5; translate: 0 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .place.is-in > :not(.place-pic) { animation: panel-in .6s var(--ease-out) calc(var(--i, 0) * 42ms) backwards; }
  .place.is-in .place-mons li { animation: sprite-in .55s var(--ease-spring) calc(240ms + var(--j, 0) * 30ms) backwards; }
}
[data-go-text] { display: inline-block; transition: opacity .18s ease-in, translate .18s ease-in; }
.go.is-swap [data-go-text] { opacity: 0; translate: 0 6px; }

.page--map {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-block: 88px clamp(64px, 8vw, 110px);
}
.page--map::before {
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 700px;
  background: radial-gradient(800px 360px at 62% 0%, rgba(2, 128, 222, .14), transparent 70%);
  pointer-events: none;
  content: "";
}
.chaps { columns: 4 230px; column-gap: 36px; }
.chap { break-inside: avoid; margin-bottom: 28px; }
.chap-h { margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: #fff; font: 400 22px/1.1 var(--serif); }
.pl {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: rgba(232, 238, 252, .9);
  font: 400 14px/1.3 var(--sans);
  transition: color var(--t-fast) var(--ease-out);
}
.pl-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: rgb(var(--pc)); box-shadow: 0 0 6px rgba(var(--pc), .8); transition: box-shadow var(--t-mid) var(--ease-out); }
.pl--off .pl-dot { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(var(--pc)); }
.pl-kind { margin-left: auto; color: var(--ink-3); font: 400 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.pl:hover { color: #fff; }
.pl:hover .pl-dot { box-shadow: 0 0 0 3px rgba(var(--pc), .25), 0 0 10px rgba(var(--pc), 1); }
.anote { margin-top: 18px; color: var(--ink-3); font: 400 13px/1.6 var(--sans); }

@media (max-width: 899px) {
  .mfilters { top: 10px; right: 0; left: 0; flex-wrap: nowrap; justify-content: flex-start; padding-inline: 10px; overflow-x: auto; scrollbar-width: none; pointer-events: auto; }
  .mfilters::-webkit-scrollbar { display: none; }
  .mpanel { top: 56px; right: 8px; bottom: 8px; left: 8px; width: auto; border-radius: 24px; transform: translateY(calc(100% - 280px)); transition: transform .6s var(--ease-sheet); will-change: transform; }
  .mpanel.is-dragging { transition: none; }
  .sheet-grip { display: block; flex: none; width: 100%; height: 30px; padding: 0; border: 0; background: transparent; cursor: grab; touch-action: none; }
  .sheet-grip::before { display: block; width: 44px; height: 4px; margin: 12px auto 0; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: background-color var(--t-fast) var(--ease-out), width var(--t-fast) var(--ease-out); content: ""; }
  .sheet-grip:hover::before, .mpanel.is-dragging .sheet-grip::before { width: 56px; background: rgba(255, 255, 255, .6); }
  .go--inline { display: flex; order: 2; margin-top: 14px; }
  .place-foot { display: none; }
  .mfind { order: 3; margin: 0 12px 12px; }
  .mpanel:not(.is-open) .mfind { display: none; }
  .mfind-list { top: auto; bottom: calc(100% + 6px); }
  .place { padding: 4px 18px 14px; }
  .place-name { font-size: 38px; }
  .place-pic { order: 4; }
  .place-lede { margin-top: 10px; }
  .place-sec { order: 5; }
  .place-trip { order: 6; }
  .mzoom { top: 58px; right: 10px; bottom: auto; }
  .mhint { display: none; }
  html:not(.motion) .mpanel { position: relative; inset: auto; transform: none; margin: 56px 8px 8px; }
  html:not(.motion) .mapstage { height: auto; }
  html:not(.motion) .mapmove { position: relative; top: auto; left: auto; width: 100%; max-width: none; }
}
@media (max-width: 760px) {
  .block-head { flex-direction: column; align-items: flex-start; }
  .block-stat { justify-items: start; text-align: left; }
  .mfilters {
    top: 12px;
    padding: 0 44px 0 16px;
    overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 44px), transparent);
  }
  .lchip { height: 44px; padding: 0 16px 0 14px; border-top-color: rgba(255, 255, 255, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); font-size: 13px; }
  .mzoom { top: 68px; right: 12px; }
  .mpanel { top: 66px; }
  html:not(.motion) .mpanel { margin-top: 66px; }
  .sheet-grip { height: 44px; }
  .sheet-grip::before { margin-top: 14px; }
  .place-name { font-size: 40px; }
  .exit { height: 44px; padding: 0 16px; font-size: 14px; }
  .exit span, .trip span, .pl-kind, .place-kick, .place-sec h3 { font-size: 12px; }
  .mfind { height: 48px; }
  .mfind-list button { min-height: 48px; font-size: 15px; }
  .mfind-list button span:last-child { font-size: 12px; }
  .pl { min-height: 44px; padding: 0; font-size: 15px; }
}
@media (max-width: 640px) {
  .page--map { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .mpanel { transition: none; }
}
