:root {
  --ink: #082d3d;
  --ink-deep: #041d29;
  --sea: #0d8aaa;
  --sea-bright: #64d7d5;
  --sky: #dff6f4;
  --sand: #f5e9ce;
  --paper: #fbf8ee;
  --coral: #e46f50;
  --moss: #4e7d62;
  --white: #fffefa;
  --line: rgba(8, 45, 61, 0.18);
  --shadow: 0 24px 70px rgba(3, 24, 35, 0.28);
  --topbar-h: 86px;
  --panel-w: 390px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  color: var(--ink);
  background: var(--ink-deep);
  font-family: "BIZ UDPGothic", "Yu Gothic UI", "Hiragino Kaku Gothic ProN", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--sea-bright);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.app-shell {
  position: relative;
  width: 100%;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
}

.topbar {
  position: absolute;
  z-index: 60;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(250px, 1fr);
  align-items: center;
  width: 100%;
  height: var(--topbar-h);
  padding: 0 28px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.19);
  background:
    linear-gradient(180deg, rgba(3, 30, 43, 0.94), rgba(3, 30, 43, 0.72)),
    radial-gradient(circle at 20% 0%, rgba(100, 215, 213, 0.2), transparent 35%);
  backdrop-filter: blur(18px) saturate(125%);
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.brand-mark svg {
  width: 31px;
  fill: none;
  stroke: var(--sea-bright);
  stroke-linecap: round;
  stroke-width: 2;
}

.brand-mark circle {
  fill: #ffe6a0;
  stroke: none;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-kicker {
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.brand-title {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.level-switcher {
  display: flex;
  gap: 4px;
  justify-self: center;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  background: rgba(1, 24, 34, 0.38);
}

.level-tab {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding: 0 17px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: 180ms ease;
}

.level-tab:hover {
  color: var(--white);
}

.level-tab.is-active {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.15);
}

.level-tab-index {
  opacity: 0.62;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
}

.topbar-tools {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-self: end;
}

.search-box {
  display: flex;
  align-items: center;
  width: clamp(190px, 21vw, 288px);
  height: 44px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  transition: 180ms ease;
}

.search-box:focus-within {
  border-color: rgba(100, 215, 213, 0.75);
  background: rgba(255, 255, 255, 0.14);
}

.search-box svg {
  width: 19px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.72);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  min-width: 0;
  flex: 1;
  padding: 0 9px;
  color: var(--white);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.58);
}

.search-box kbd {
  color: rgba(255, 255, 255, 0.47);
  font-family: inherit;
  font-size: 9px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  transition: 180ms ease;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--sea-bright);
  transform: rotate(8deg);
}

.map-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  padding-top: var(--topbar-h);
  background: #75b8c4;
  overflow: hidden;
}

.map-viewport {
  position: absolute;
  inset: var(--topbar-h) 0 0;
  overflow: hidden;
  background: #7dbcc4;
}

.map-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  transform: scale(1.015);
  transition: opacity 380ms ease, transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.map-image.is-switching {
  opacity: 0;
  transform: scale(1.04);
}

.map-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4, 29, 41, 0.2), transparent 25%, transparent 70%, rgba(4, 29, 41, 0.08)),
    linear-gradient(0deg, rgba(4, 29, 41, 0.35), transparent 28%),
    radial-gradient(circle at center, transparent 45%, rgba(4, 29, 41, 0.12) 100%);
  mix-blend-mode: multiply;
}

.map-hotspots {
  position: absolute;
  inset: 0;
}

.hotspot {
  --delay: 0s;
  position: absolute;
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 52px;
  min-height: 52px;
  padding: 6px;
  cursor: pointer;
  background: transparent;
  transform: translate(-50%, -50%);
  animation: hotspot-in 550ms both cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: var(--delay);
}

.hotspot-dot {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--white);
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 4px 12px rgba(4, 29, 41, 0.38);
  transition: 180ms ease;
}

.hotspot-dot::before {
  position: absolute;
  width: 42px;
  height: 42px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  animation: map-pulse 2.6s infinite ease-out;
}

.hotspot-dot::after {
  width: 5px;
  height: 5px;
  content: "";
  border-radius: 50%;
  background: var(--white);
}

.hotspot-label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 160px;
  padding: 8px 11px 7px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px 12px 12px 12px;
  background: rgba(4, 36, 49, 0.82);
  box-shadow: 0 7px 20px rgba(3, 24, 35, 0.22);
  backdrop-filter: blur(8px);
  text-align: left;
  transition: 180ms ease;
}

.hotspot-label strong {
  overflow: hidden;
  width: 100%;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 13px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotspot-label small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hotspot:hover .hotspot-dot,
.hotspot:focus-visible .hotspot-dot,
.hotspot.is-active .hotspot-dot {
  background: var(--sea);
  transform: scale(1.2);
}

.hotspot:hover .hotspot-label,
.hotspot:focus-visible .hotspot-label,
.hotspot.is-active .hotspot-label {
  color: var(--ink);
  border-color: var(--white);
  background: rgba(255, 254, 250, 0.94);
  transform: translateX(3px);
}

.hotspot:hover .hotspot-label small,
.hotspot:focus-visible .hotspot-label small,
.hotspot.is-active .hotspot-label small {
  color: rgba(8, 45, 61, 0.58);
}

.hotspot[data-side="left"] {
  flex-direction: row-reverse;
}

.hotspot[data-side="left"] .hotspot-label {
  align-items: flex-end;
  border-radius: 12px 6px 12px 12px;
  text-align: right;
}

.hotspot[data-tone="green"] .hotspot-dot {
  background: var(--moss);
}

.hotspot[data-tone="blue"] .hotspot-dot {
  background: var(--sea);
}

.hotspot[data-tone="gold"] .hotspot-dot {
  background: #bd8635;
}

.map-heading {
  position: absolute;
  z-index: 5;
  left: 32px;
  bottom: 52px;
  width: min(480px, calc(100vw - 64px));
  padding: 22px 26px 24px;
  color: var(--white);
  border-left: 3px solid var(--sea-bright);
  background: linear-gradient(90deg, rgba(3, 30, 43, 0.85), rgba(3, 30, 43, 0.42), transparent);
  text-shadow: 0 2px 15px rgba(0, 0, 0, 0.28);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--sea-bright);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.map-heading h1 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: clamp(29px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.03em;
}

.map-heading p:last-child {
  max-width: 410px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  line-height: 1.7;
}

.map-compass {
  position: absolute;
  z-index: 4;
  right: 28px;
  bottom: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--white);
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));
}

.compass-n {
  font-family: Georgia, serif;
  font-size: 12px;
  font-style: italic;
}

.compass-line {
  position: relative;
  width: 1px;
  height: 51px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.75);
}

.compass-line::before {
  position: absolute;
  top: -2px;
  left: -4px;
  width: 9px;
  height: 9px;
  content: "";
  border-top: 1px solid white;
  border-left: 1px solid white;
  transform: rotate(45deg);
}

.compass-sea {
  font-size: 7px;
  letter-spacing: 0.24em;
}

.map-status {
  position: absolute;
  z-index: 6;
  right: 83px;
  bottom: 34px;
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 33px;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 30, 43, 0.66);
  backdrop-filter: blur(10px);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.06em;
}

.map-status strong {
  color: var(--white);
  font-size: 11px;
  font-style: normal;
}

.status-light {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sea-bright);
  box-shadow: 0 0 0 4px rgba(100, 215, 213, 0.15);
}

.status-divider {
  width: 1px;
  height: 12px;
  background: rgba(255, 255, 255, 0.25);
}

.mobile-list-button {
  display: none;
}

.explore-panel {
  position: absolute;
  z-index: 30;
  top: calc(var(--topbar-h) + 14px);
  right: 14px;
  bottom: 14px;
  width: var(--panel-w);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 23px;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(100% + 30px));
  transition: 350ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.explore-panel.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.panel-grab {
  display: none;
}

.panel-close {
  position: absolute;
  z-index: 4;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(3, 30, 43, 0.3);
  font-size: 20px;
  line-height: 1;
  transition: 180ms ease;
}

.panel-close:hover {
  color: var(--ink);
  background: var(--white);
  transform: rotate(90deg);
}

.panel-cover {
  position: relative;
  min-height: 210px;
  padding: 31px 31px 24px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(100, 215, 213, 0.34), transparent 32%),
    linear-gradient(145deg, #073448, #0a5364 68%, #137c88);
}

.panel-cover::after {
  position: absolute;
  right: -30px;
  bottom: -86px;
  width: 230px;
  height: 160px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.panel-cover-grid {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(135deg, black, transparent 65%);
}

.panel-number {
  position: absolute;
  right: 23px;
  bottom: 4px;
  color: rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
  font-size: 104px;
  font-style: italic;
  line-height: 1;
}

.panel-kicker,
.panel-cover h2,
.panel-cover p,
.panel-level-action {
  position: relative;
  z-index: 1;
}

.panel-kicker {
  margin: 0 0 15px;
  color: var(--sea-bright);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.panel-cover h2 {
  max-width: 290px;
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.28;
}

.panel-cover > p:not(.panel-kicker) {
  max-width: 290px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.65;
}

.panel-level-action {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 15px;
  padding: 9px 13px;
  cursor: pointer;
  color: var(--ink);
  border-radius: 999px;
  background: var(--sea-bright);
  font-size: 11px;
  font-weight: 800;
}

.panel-level-action[hidden] {
  display: none;
}

.panel-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 53px;
  padding: 0 24px;
  color: rgba(8, 45, 61, 0.57);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.42);
  font-size: 10px;
}

.panel-summary strong {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 17px;
  font-style: italic;
  font-weight: 400;
}

.location-list {
  height: calc(100% - 263px);
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 45, 61, 0.24) transparent;
}

.location-card {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr 26px;
  column-gap: 13px;
  row-gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 128px;
  margin-bottom: 8px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  border: 1px solid rgba(8, 45, 61, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  transition: 180ms ease;
}

.location-card:hover,
.location-card:focus-visible {
  border-color: rgba(13, 138, 170, 0.2);
  background: rgba(13, 138, 170, 0.07);
  transform: translateX(3px);
}

.location-thumb {
  position: relative;
  height: 70px;
  overflow: hidden;
  border-radius: 10px;
  background: #d7e8e6;
}

.location-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.location-card:hover .location-thumb img {
  transform: scale(1.07);
}

.location-thumb-count {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 20px;
  padding: 0 6px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(3, 30, 43, 0.78);
  font-family: Georgia, serif;
  font-size: 9px;
}

.location-thumb-label {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 3px 6px;
  color: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 30, 43, 0.66);
  font-family: Georgia, serif;
  font-size: 7px;
  letter-spacing: 0.14em;
}

.location-copy {
  min-width: 0;
}

.location-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 14px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-copy small {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: rgba(8, 45, 61, 0.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-arrow {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: var(--sea);
  border: 1px solid rgba(13, 138, 170, 0.2);
  border-radius: 50%;
  font-family: Georgia, serif;
}

.location-variant-strip {
  grid-column: 1 / -1;
  display: flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
  padding: 7px 3px 1px;
  border-top: 1px solid rgba(8, 45, 61, 0.09);
}

.location-variant-kicker {
  flex: 0 0 37px;
  color: rgba(8, 45, 61, 0.42);
  font-family: Georgia, serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.location-variant-preview {
  position: relative;
  flex: 0 0 45px;
  height: 28px;
  overflow: hidden;
  border: 1px solid rgba(8, 45, 61, 0.14);
  border-radius: 6px;
  background: #d7e8e6;
  box-shadow: 0 3px 8px rgba(8, 45, 61, 0.1);
  transition: 160ms ease;
}

.location-variant-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-variant-preview > span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  overflow: hidden;
  padding: 2px 3px;
  color: var(--white);
  border-radius: 3px;
  background: rgba(3, 30, 43, 0.72);
  font-size: 6px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-card:hover .location-variant-preview {
  border-color: rgba(13, 138, 170, 0.34);
}

.location-variant-preview:hover {
  z-index: 1;
  transform: translateY(-2px) scale(1.05);
}

.location-variant-more,
.location-variant-empty {
  display: grid;
  place-items: center;
  height: 28px;
  color: rgba(8, 45, 61, 0.58);
  border: 1px dashed rgba(8, 45, 61, 0.2);
  border-radius: 6px;
  font-size: 8px;
  font-weight: 800;
}

.location-variant-more {
  flex: 0 0 28px;
}

.location-variant-empty {
  flex: 1;
  letter-spacing: 0.08em;
}

.panel-empty {
  display: none;
  padding: 36px 38px;
  color: rgba(8, 45, 61, 0.55);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.panel-empty.is-visible {
  display: block;
}

.panel-empty-mark {
  display: block;
  margin-bottom: 12px;
  color: var(--sea);
  font-size: 26px;
}

.search-highlight {
  color: var(--coral);
}

.scene-viewer {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.scene-viewer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 17, 25, 0.88);
  backdrop-filter: blur(20px) saturate(75%);
}

.viewer-shell {
  position: relative;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) 118px;
  width: min(1500px, 100%);
  height: min(940px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: #061f2c;
  box-shadow: 0 38px 120px rgba(0, 0, 0, 0.54);
  transform: translateY(18px) scale(0.985);
  transition: transform 330ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scene-viewer.is-open .viewer-shell {
  transform: translateY(0) scale(1);
}

.viewer-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 22px;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: #062634;
}

.viewer-map-back {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 0 13px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  transition: 180ms ease;
}

.viewer-map-back:hover {
  color: var(--ink);
  background: var(--sea-bright);
}

.viewer-map-back span {
  font-family: Georgia, serif;
  font-size: 18px;
}

.viewer-heading {
  min-width: 280px;
  text-align: center;
}

.viewer-heading p {
  margin: 0 0 4px;
  color: var(--sea-bright);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.viewer-heading h2 {
  margin: 0;
  overflow: hidden;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 20px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.viewer-counter {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
  color: rgba(255, 255, 255, 0.42);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.viewer-counter span:first-child {
  color: var(--white);
  font-size: 17px;
}

.viewer-counter i {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.viewer-stage {
  --split: 50%;
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #03151e;
  touch-action: pan-y;
}

.viewer-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #03151e;
  user-select: none;
}

.compare-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--split)) 0 0);
  opacity: 0;
  transition: opacity 180ms ease;
}

.viewer-stage.is-comparing .compare-layer {
  opacity: 1;
}

.compare-line {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: var(--split);
  display: none;
  width: 2px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.6);
  pointer-events: none;
}

.viewer-stage.is-comparing .compare-line {
  display: block;
}

.compare-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--ink);
  border: 2px solid white;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: 15px;
  transform: translate(-50%, -50%);
}

.image-vignette {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 17, 25, 0.2), transparent 12%, transparent 88%, rgba(2, 17, 25, 0.2));
}

.compare-label {
  position: absolute;
  z-index: 8;
  top: 17px;
  display: none;
  min-height: 26px;
  padding: 6px 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(3, 30, 43, 0.66);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 700;
}

.viewer-stage.is-comparing .compare-label {
  display: block;
}

.compare-label-base {
  right: 18px;
}

.compare-label-variant {
  left: 18px;
}

.viewer-arrow {
  position: absolute;
  z-index: 10;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 68px;
  cursor: pointer;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(3, 30, 43, 0.38);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: 180ms ease;
}

.viewer-arrow:hover {
  color: var(--ink);
  background: var(--sea-bright);
}

.viewer-arrow span {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.viewer-arrow-prev {
  left: 0;
  border-left: 0;
  border-radius: 0 14px 14px 0;
}

.viewer-arrow-next {
  right: 0;
  border-right: 0;
  border-radius: 14px 0 0 14px;
}

.image-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  background: #03151e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.image-loading.is-visible {
  opacity: 1;
}

.image-loading span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sea-bright);
  animation: loader-bounce 900ms infinite ease-in-out;
}

.image-loading span:nth-child(2) {
  animation-delay: 120ms;
}

.image-loading span:nth-child(3) {
  animation-delay: 240ms;
}

.viewer-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  min-height: 0;
  padding: 16px 22px;
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(100, 215, 213, 0.05), transparent 35%),
    #062634;
}

.control-label {
  margin: 0 0 9px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.24em;
}

.variant-rail-wrap {
  min-width: 0;
}

.variant-rail {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 2px;
  scrollbar-width: none;
}

.variant-rail::-webkit-scrollbar {
  display: none;
}

.variant-button {
  position: relative;
  flex: 0 0 auto;
  min-width: 65px;
  min-height: 40px;
  padding: 0 13px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  font-weight: 700;
  transition: 180ms ease;
}

.variant-button:hover {
  color: var(--white);
  border-color: rgba(100, 215, 213, 0.46);
}

.variant-button.is-active {
  color: var(--ink);
  border-color: var(--sea-bright);
  background: var(--sea-bright);
}

.variant-button small {
  display: block;
  margin-top: 2px;
  opacity: 0.58;
  font-family: Georgia, serif;
  font-size: 7px;
  font-style: italic;
  font-weight: 400;
}

.compare-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.compare-toggle {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 10px;
  font-weight: 700;
  transition: 180ms ease;
}

.compare-toggle:hover:not(:disabled) {
  color: var(--white);
  border-color: rgba(100, 215, 213, 0.58);
}

.compare-toggle[aria-pressed="true"] {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
}

.compare-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.compare-toggle-icon {
  position: relative;
  width: 19px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.compare-toggle-icon::after {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 1px;
  content: "";
  background: currentColor;
}

.compare-range-wrap {
  display: none;
  width: 100px;
}

.compare-range-wrap.is-visible {
  display: block;
}

.compare-range-wrap input {
  width: 100%;
  accent-color: var(--sea-bright);
}

.viewer-meta {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
  min-width: 84px;
}

.viewer-format {
  color: rgba(255, 255, 255, 0.38);
  font-family: Georgia, serif;
  font-size: 9px;
  font-style: italic;
}

.viewer-quality {
  display: flex;
  gap: 7px;
  align-items: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.viewer-quality i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #72d5a6;
  box-shadow: 0 0 0 4px rgba(114, 213, 166, 0.12);
}

.viewer-quality.is-format-warning i {
  background: #efb35d;
  box-shadow: 0 0 0 4px rgba(239, 179, 93, 0.12);
}

.help-dialog {
  position: fixed;
  z-index: 150;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.help-dialog.is-open {
  opacity: 1;
  pointer-events: auto;
}

.help-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 17, 25, 0.72);
  backdrop-filter: blur(14px);
}

.help-card {
  position: relative;
  width: min(520px, 100%);
  padding: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(100, 215, 213, 0.18), transparent 32%),
    var(--paper);
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 250ms ease;
}

.help-dialog.is-open .help-card {
  transform: translateY(0);
}

.help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
}

.help-card h2 {
  margin: 0;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 31px;
  font-weight: 600;
}

.help-card ol {
  display: grid;
  gap: 0;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.help-card li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: center;
  min-height: 61px;
  border-bottom: 1px solid var(--line);
}

.help-card li:first-child {
  border-top: 1px solid var(--line);
}

.help-card li span {
  color: var(--sea);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
}

.help-card li p {
  margin: 0;
  color: rgba(8, 45, 61, 0.7);
  font-size: 12px;
  line-height: 1.7;
}

.help-primary {
  width: 100%;
  min-height: 52px;
  cursor: pointer;
  color: var(--white);
  border-radius: 13px;
  background: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: 180ms ease;
}

.help-primary:hover {
  background: var(--sea);
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(26px + var(--safe-bottom));
  max-width: min(420px, calc(100vw - 30px));
  padding: 11px 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(3, 30, 43, 0.85);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(12px);
  font-size: 10px;
  transform: translate(-50%, 10px);
  transition: 220ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}





@keyframes map-pulse {
  0% {
    opacity: 0.8;
    transform: scale(0.64);
  }
  75%,
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@keyframes hotspot-in {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 9px)) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes loader-bounce {
  0%,
  100% {
    opacity: 0.4;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-7px);
  }
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
  }

  .level-switcher {
    justify-self: end;
    margin-right: 8px;
  }

  .topbar-tools {
    justify-self: end;
  }

  .search-box {
    width: 44px;
    padding: 0 12px;
    cursor: pointer;
  }

  .search-box:focus-within {
    position: absolute;
    right: 80px;
    width: min(310px, calc(100vw - 220px));
    background: rgba(3, 30, 43, 0.95);
  }

  .search-box input,
  .search-box kbd {
    opacity: 0;
    pointer-events: none;
  }

  .search-box:focus-within input,
  .search-box:focus-within kbd {
    opacity: 1;
    pointer-events: auto;
  }

  .viewer-controls {
    gap: 15px;
  }
}

@media (max-width: 820px) {
  :root {
    --topbar-h: 70px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    padding: 0 14px;
  }

  .brand-mark {
    width: 39px;
    height: 39px;
  }

  .brand-copy {
    display: none;
  }

  .level-switcher {
    justify-self: center;
    margin: 0;
  }

  .level-tab {
    min-height: 44px;
    padding: 0 12px;
    font-size: 10px;
  }

  .level-tab-index {
    display: none;
  }

  .search-box {
    display: none;
  }

  .map-viewport {
    inset: var(--topbar-h) 0 0;
  }

  .map-image {
    object-position: center;
  }

  .hotspot {
    min-width: 48px;
    min-height: 48px;
  }

  .hotspot-label {
    display: none;
  }

  .hotspot-dot {
    width: 25px;
    height: 25px;
  }

  .hotspot.is-active .hotspot-label {
    position: absolute;
    top: 38px;
    left: 50%;
    display: flex;
    align-items: center;
    min-width: 122px;
    transform: translateX(-50%);
    text-align: center;
  }

  .map-heading {
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 45px 20px 76px;
    border-left: 0;
    background: linear-gradient(0deg, rgba(3, 30, 43, 0.9), rgba(3, 30, 43, 0.5), transparent);
  }

  .map-heading h1 {
    font-size: 27px;
  }

  .map-heading p:last-child {
    display: none;
  }

  .map-compass,
  .map-status {
    display: none;
  }

  .mobile-list-button {
    position: absolute;
    z-index: 8;
    right: 16px;
    bottom: calc(18px + var(--safe-bottom));
    display: flex;
    gap: 8px;
    align-items: center;
    min-height: 44px;
    padding: 0 15px;
    cursor: pointer;
    color: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 999px;
    background: var(--paper);
    box-shadow: 0 8px 22px rgba(3, 24, 35, 0.22);
    font-size: 10px;
    font-weight: 800;
  }

  .explore-panel {
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    height: min(72vh, 660px);
    border-radius: 22px 22px 17px 17px;
    transform: translateY(calc(100% + 20px));
  }

  .explore-panel.is-open {
    transform: translateY(0);
  }

  .panel-grab {
    position: absolute;
    z-index: 5;
    top: 8px;
    left: 50%;
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transform: translateX(-50%);
  }

  .panel-cover {
    min-height: 160px;
    padding: 30px 25px 20px;
  }

  .panel-close {
    width: 44px;
    height: 44px;
  }

  .panel-cover h2 {
    font-size: 23px;
  }

  .panel-cover > p:not(.panel-kicker) {
    max-width: 82%;
  }

  .panel-number {
    font-size: 80px;
  }

  .location-list {
    height: calc(100% - 213px);
  }

  .location-card {
    grid-template-columns: 105px 1fr 24px;
  }

  

  .scene-viewer {
    padding: 0;
  }

  .viewer-shell {
    grid-template-rows: 64px minmax(0, 1fr) auto;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
  }

  .viewer-header {
    grid-template-columns: auto 1fr auto;
    padding: 0 10px;
  }

  .viewer-map-back {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .viewer-map-back span {
    font-size: 22px;
  }

  .viewer-map-back {
    font-size: 0;
  }

  .viewer-heading {
    min-width: 0;
    padding: 0 8px;
  }

  .viewer-heading h2 {
    font-size: 15px;
  }

  .viewer-counter i {
    width: 12px;
  }

  .viewer-arrow {
    width: 44px;
    height: 56px;
  }

  .viewer-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "variants variants"
      "compare meta";
    gap: 12px;
    padding: 13px 14px calc(13px + var(--safe-bottom));
  }

  .variant-rail-wrap {
    grid-area: variants;
  }

  .compare-controls {
    grid-area: compare;
  }

  .viewer-meta {
    grid-area: meta;
  }

  .variant-button {
    min-height: 44px;
  }

  .compare-toggle {
    min-height: 44px;
  }

  .compare-range-wrap {
    width: 76px;
  }

  .help-card {
    padding: 36px 25px 26px;
  }
}

@media (max-height: 680px) and (min-width: 821px) {
  .map-heading {
    bottom: 25px;
    padding: 15px 21px 17px;
  }

  .map-heading h1 {
    font-size: 28px;
  }

  .map-heading p:last-child {
    display: none;
  }

  .panel-cover {
    min-height: 170px;
    padding-top: 25px;
  }

  .location-list {
    height: calc(100% - 223px);
  }

  .viewer-shell {
    grid-template-rows: 60px minmax(0, 1fr) 98px;
  }

  .viewer-controls {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
