:root {
  color-scheme: light;
  --bg: #f2f2f2;
  --ink: #000;
  --glow: #000;
  --sketch: #000;
  --paper: #f2f2f2;
  --map-rest: #e6e6e6;
  --note-fill: rgba(242, 242, 242, 0.88);
  --glow-rgb: 0, 0, 0;
  --chrome: #000;
  --chrome-ink: #f2f2f2;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(0.75rem, 0.9vw, 0.8125rem);
  line-height: 1.45;
}

a {
  color: inherit;
}

.bg-art {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  opacity: 0.38;
}

.home-layout,
.gate-inner {
  position: relative;
  z-index: 1;
}

.home-layout {
  box-sizing: border-box;
  min-height: 100vh;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: 22rem;
}

.home-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 36rem;
}

.map-stage {
  position: relative;
  display: flex;
  width: 100%;
}

.home-main.is-gate .map-stage {
  display: none;
}

.park-map {
  width: 100%;
  height: min(48vh, 26rem);
  min-height: 14rem;
  background: var(--map-rest);
  touch-action: none;
}

.park-map[hidden] {
  display: none;
}

.home-main.is-gate {
  align-self: stretch;
  align-items: stretch;
  justify-content: stretch;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 0;
  gap: 0;
}

.enter-orb {
  position: relative;
  isolation: isolate;
  width: min(92vw, 78vh, 46rem);
  height: min(92vw, 78vh, 46rem);
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  background: none;
  box-shadow: none;
}

.enter-orb::before,
.map-info:not([hidden])::before,
.map-close:not([hidden])::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(var(--glow-rgb), 0.82) 0%,
    rgba(var(--glow-rgb), 0.56) 16%,
    rgba(var(--glow-rgb), 0.28) 36%,
    rgba(var(--glow-rgb), 0.1) 54%,
    rgba(var(--glow-rgb), 0) 72%
  );
  transform-origin: center;
  animation: soft-pulse 3.6s ease-in-out infinite;
}

.map-info:not([hidden])::before,
.map-close:not([hidden])::before,
.home-main.is-found .chimera-about::before {
  animation-delay: -1.6s;
}

.map-info:not([hidden])::before,
.map-close:not([hidden])::before {
  background: radial-gradient(
    circle,
    rgba(var(--glow-rgb), 0.48) 0%,
    rgba(var(--glow-rgb), 0.3) 16%,
    rgba(var(--glow-rgb), 0.14) 36%,
    rgba(var(--glow-rgb), 0.05) 54%,
    rgba(var(--glow-rgb), 0) 72%
  );
}

.enter-orb:hover::before,
.enter-orb:focus-visible::before {
  background: radial-gradient(
    circle,
    rgba(var(--glow-rgb), 0.9) 0%,
    rgba(var(--glow-rgb), 0.64) 16%,
    rgba(var(--glow-rgb), 0.34) 36%,
    rgba(var(--glow-rgb), 0.14) 54%,
    rgba(var(--glow-rgb), 0) 72%
  );
}

#enter-orb::before,
#enter-orb:hover::before,
#enter-orb:focus-visible::before {
  background: #000;
  border-radius: 50%;
  animation: none;
}

#enter-orb {
  display: grid;
  place-items: center;
  width: 10.5rem;
  height: 10.5rem;
  outline: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#enter-orb[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  html,
  body:not(.is-map) {
    overflow-x: hidden;
  }

  #enter-orb {
    width: 10.5rem;
    height: 10.5rem;
  }
}

#enter-orb .enter-line {
  position: relative;
  z-index: 1;
  max-width: min(20rem, 72%);
  line-height: 1.45;
  letter-spacing: 0.03em;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

html:has(body:not(.is-map)),
body:not(.is-map) {
  background: #000;
}

body:not(.is-map) .bg-art {
  opacity: 0.55;
  filter: invert(1);
}

body:not(.is-map) .brand,
body:not(.is-map) .home-side,
body:not(.is-map) .site-chrome {
  display: none;
}

body:not(.is-map) .home-layout {
  display: flex;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.poster {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  background: transparent;
  color: #fff;
  border-radius: 0;
  padding:
    max(1.05rem, env(safe-area-inset-top))
    max(1.15rem, env(safe-area-inset-right))
    max(1.25rem, env(safe-area-inset-bottom))
    max(1.15rem, env(safe-area-inset-left));
  overflow: auto;
}

.poster-glow {
  position: fixed;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: 118vh;
  height: 118vh;
  transform: translate3d(-50%, -50%, 0);
  pointer-events: none;
  border-radius: 50%;
  animation: poster-glow 4.6s ease-in-out infinite;
}

.poster-glow-layer {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity 6.8s ease-in-out;
  background: radial-gradient(
    circle,
    rgba(114, 0, 179, 0.95) 0%,
    rgba(114, 0, 179, 0.7) 18%,
    rgba(114, 0, 179, 0.36) 38%,
    rgba(114, 0, 179, 0.12) 58%,
    rgba(114, 0, 179, 0) 76%
  );
}

.poster-glow-layer:first-child {
  opacity: 1;
}

.poster > :not(.poster-glow) {
  position: relative;
  z-index: 1;
}

@keyframes poster-glow {
  0%,
  100% {
    opacity: 0.7;
    transform: translate3d(-50%, -50%, 0) scale(0.9);
  }
  50% {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0) scale(1.06);
  }
}

.poster-stage {
  display: contents;
}

.poster-lead {
  display: contents;
}

.poster-qr {
  display: none;
}

.poster-desktop {
  display: none;
}

.poster-title {
  display: block;
  width: 100%;
  height: auto;
}

.poster .poster-dates {
  margin: 0.4rem 0.95rem 0 0;
  text-align: right;
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.poster-eye {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 10.2rem;
  margin-top: auto;
  margin-bottom: auto;
  margin-left: calc(-1 * max(1.15rem, env(safe-area-inset-left)));
  margin-right: calc(-1 * max(1.15rem, env(safe-area-inset-right)));
}

.poster-eye-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.poster #enter-orb {
  width: 9.4rem;
  height: 9.4rem;
  margin: 0;
  background: #fff;
  border-radius: 50%;
  z-index: 1;
}

.poster #enter-orb::before,
.poster #enter-orb:hover::before,
.poster #enter-orb:focus-visible::before {
  z-index: 0;
  background: #fff;
}

.poster #enter-orb .enter-line {
  color: #000;
  -webkit-text-fill-color: #000;
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.poster-credits {
  font-family: var(--font-garamond);
  font-weight: 400;
  font-size: 0.98rem;
  line-height: 1.28;
}

.poster .poster-credits p {
  margin: 0;
  text-align: justify;
}

.poster .poster-credits p + p {
  margin-top: 1.35rem;
}

.poster .text-link {
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.poster .text-link:hover,
.poster .text-link:focus-visible {
  font-style: italic;
}

body.is-map .poster {
  display: none;
}

.enter-orb .enter-line,
.enter-orb .enter-label {
  transition: opacity 1200ms ease;
}

.enter-orb:disabled {
  cursor: progress;
  opacity: 0.7;
}

.enter-status {
  min-height: 1.2em;
  margin: 0;
  text-align: center;
}

.enter-status:empty {
  display: none;
}

.summon-link.enter-orb {
  position: absolute;
  z-index: 2000;
  left: 50%;
  top: 50%;
  width: min(16rem, 70vw);
  height: min(16rem, 70vw);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border-radius: 50%;
  text-decoration: none;
  text-align: center;
  pointer-events: auto;
  touch-action: manipulation;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  user-select: none;
  overflow: hidden;
}

.summon-link[hidden] {
  display: none !important;
}

.summon-link .ar-preview {
  position: absolute;
  left: 0;
  top: -100vh;
  z-index: 2;
  width: 100%;
  height: calc(100% + 100vh);
  margin: 0;
  opacity: 0.02;
  pointer-events: auto;
  object-fit: fill;
  transform: none;
}

#summon-viewer {
  display: none !important;
}

.park-map.maplibregl-map {
  font-family: var(--font-sans);
}

.you-pin,
.chimera-pin {
  border-radius: 50%;
  box-sizing: border-box;
}

.chimera-zone {
  pointer-events: none;
  background: none;
}

.chimera-zone-glow {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  pointer-events: none;
  transform-origin: center;
  background: radial-gradient(
    circle,
    rgba(var(--glow-rgb), 0.82) 0%,
    rgba(var(--glow-rgb), 0.56) 16%,
    rgba(var(--glow-rgb), 0.28) 36%,
    rgba(var(--glow-rgb), 0.1) 54%,
    rgba(var(--glow-rgb), 0) 72%
  );
  animation: chimera-pulse 3.6s ease-in-out infinite;
  will-change: opacity, scale;
}

@keyframes chimera-pulse {
  0%,
  100% {
    opacity: 0.45;
    scale: 0.84;
  }
  50% {
    opacity: 1;
    scale: 1.14;
  }
}

@keyframes soft-pulse {
  0%,
  100% {
    opacity: 0.62;
    scale: 0.9;
  }
  50% {
    opacity: 1;
    scale: 1;
  }
}

.you-pin {
  width: 14px;
  height: 14px;
  background: #000;
  border: 2px solid #000;
}

.chimera-pin {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  cursor: pointer;
  overflow: visible;
  container-type: size;
}

.chimera-pin-shape {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  background: none;
  pointer-events: none;
  filter: blur(10cqmin);
}

.chimera-pin-shape::before,
.chimera-pin-shape::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 112%;
  height: max(1.5px, 9%);
  border-radius: 999px;
  background: var(--pin, var(--ink));
  pointer-events: none;
}

.chimera-pin-shape::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.chimera-pin-shape::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.chimera-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 2.75rem);
  height: max(100%, 2.75rem);
  transform: translate(-50%, -50%);
}

.map-credit {
  display: none;
  position: absolute;
  z-index: 2;
  left: 0.45rem;
  bottom: 0.35rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.55rem;
  line-height: 1.2;
  color: var(--ink);
}

.map-credit a {
  color: inherit;
}

.park-note {
  position: absolute;
  z-index: 2;
  left: 0.35rem;
  bottom: 1.4rem;
  margin: 0;
  padding: 0.2rem 0.35rem;
  background: var(--note-fill);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--ink);
}

.park-tip {
  background: var(--bg);
  border: 1px solid var(--ink);
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.15rem 0.4rem;
}

.park-tip::before {
  display: none;
}

.home-main p {
  margin: 0;
}

.home-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-top: auto;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.footer {
  margin-top: auto;
  padding-bottom: 1.4rem;
}

.build-version {
  font-variant-numeric: tabular-nums;
}

.site-chrome {
  position: fixed;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  margin: 0;
  background: var(--chrome);
  color: var(--chrome-ink);
}

.site-chrome-top {
  top: 0;
  z-index: 2400;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: calc(2.75rem + env(safe-area-inset-top));
  padding:
    max(0.2rem, env(safe-area-inset-top))
    max(0.35rem, env(safe-area-inset-right))
    0.2rem
    max(0.35rem, env(safe-area-inset-left));
}

.site-chrome-bottom {
  bottom: 0;
  z-index: 50;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: calc(2.4rem + env(safe-area-inset-bottom));
  padding:
    0.35rem
    max(0.85rem, env(safe-area-inset-right))
    max(0.35rem, env(safe-area-inset-bottom))
    max(0.85rem, env(safe-area-inset-left));
}

.site-chrome-start {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.site-chrome-end {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.site-title-mark {
  display: grid;
  place-items: center;
  height: 2.15rem;
  width: auto;
  margin: 0 0.2rem 0 0.1rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.site-title-mark img {
  display: block;
  height: 2.15rem;
  width: auto;
  pointer-events: none;
  user-select: none;
}

.site-chrome-bottom .site-chrome-start {
  gap: 0.85rem;
}

.site-chrome .build-version {
  font: inherit;
  color: inherit;
}

.site-credit {
  margin: 0;
  font-family: var(--font-garamond);
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  line-height: 1;
  color: var(--chrome-ink);
  pointer-events: none;
  white-space: nowrap;
}

body.is-info .site-chrome-bottom,
body.is-map:has(.home-main.is-found) .site-chrome-bottom,
body.is-map.is-card .site-chrome-bottom {
  visibility: visible;
}

/* Compact marks on the header — no soft circles. */
.site-chrome-top .map-info::before,
.site-chrome-top .map-help::before,
.site-chrome-top .map-close::before {
  content: none;
  display: none;
}

.site-chrome-top .map-info:not([hidden]),
.site-chrome-top .map-help:not([hidden]),
.site-chrome-top .map-close:not([hidden]) {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  z-index: 1;
  margin: 0;
}

.site-chrome-top .map-info:not([hidden]),
.site-chrome-top .map-help:not([hidden]),
.site-chrome-top .map-close:not([hidden]) {
  width: auto;
  height: 2.6rem;
  padding: 0 0.45rem;
  color: var(--chrome-ink);
}

.site-chrome-top .map-info:hover,
.site-chrome-top .map-info:focus-visible,
.site-chrome-top .map-info:active,
.site-chrome-top .map-help:hover,
.site-chrome-top .map-help:focus-visible,
.site-chrome-top .map-help:active,
.site-chrome-top .map-close:hover,
.site-chrome-top .map-close:focus-visible,
.site-chrome-top .map-close:active {
  color: var(--chrome-ink);
}

.site-chrome-top .map-info:not([hidden]),
.site-chrome-top .map-help:not([hidden]) {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: lowercase;
}

.site-chrome-top .map-close:not([hidden]) {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: 1.05rem;
}

@media (max-width: 1000px) {
  .site-chrome-top .map-info:not([hidden]),
  .site-chrome-top .map-help:not([hidden]),
  .site-chrome-top .map-close:not([hidden]) {
    height: 2.4rem;
    padding: 0 0.35rem;
  }

  .site-chrome-top .map-info:not([hidden]),
  .site-chrome-top .map-help:not([hidden]) {
    font-size: 0.72rem;
  }
}

.text-link,
.text-button {
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(0.6875rem, 0.82vw, 0.8125rem);
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.enter {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0.06em;
}

.text-button.enter:hover,
.text-button.enter:focus-visible,
.text-button.enter:disabled {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
}

.text-link:hover,
.text-link:focus-visible,
.text-button:hover,
.text-button:focus-visible {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  text-decoration: underline;
}

body.is-info .map-info-panel .text-link,
.chimera-card-copy .text-link {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-style: normal;
  text-decoration: underline;
}

body.is-info .map-info-panel .text-link:hover,
body.is-info .map-info-panel .text-link:focus-visible,
.chimera-card-copy .text-link:hover,
.chimera-card-copy .text-link:focus-visible {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  font-style: italic;
  text-decoration: underline;
}

.text-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.04em;
}

.text-button:disabled {
  opacity: 0.45;
  cursor: progress;
  text-decoration: none;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
}

@media (max-width: 1000px) {
  .home-layout:has(.home-main:not(.is-gate):not(.is-found)) {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }

  .home-main:not(.is-gate) {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
  }

  .home-main:not(.is-gate) .map-stage,
  .home-main:not(.is-gate) .park-map {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
  }
}

@media (min-width: 1001px) {
  .home-layout {
    display: grid;
    grid-template-columns:
      minmax(160px, 18fr)
      minmax(0, 64fr)
      minmax(160px, 18fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: clamp(1.25rem, 2.5vw, 2.75rem);
    align-items: stretch;
    height: 100vh;
    min-height: 0;
    padding: clamp(0.75rem, 1.5vw, 1rem) clamp(1.25rem, 3vw, 3.75rem);
    overflow: hidden;
  }

  .home-main {
    justify-content: flex-end;
    padding-bottom: clamp(0.35rem, 1vh, 0.75rem);
    max-width: none;
    height: 100%;
    min-height: 0;
  }

  body:not(.is-map) .home-layout {
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    height: 100dvh;
    padding: 0;
    overflow: hidden;
  }

  body:not(.is-map) .site-chrome-bottom {
    display: flex;
  }

  body:not(.is-map) .home-main.is-gate {
    justify-content: stretch;
    width: 100%;
    height: 100%;
    max-width: none;
    flex: 1 1 auto;
    padding-bottom: 0;
  }

  .home-main.is-gate {
    justify-content: center;
  }

  .home-main:not(.is-gate) .map-stage {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 0.25rem;
  }

  body:not(.is-map) .home-main:not(.is-gate) .park-map {
    height: auto;
    min-height: 0;
  }

  body:not(.is-map) .bg-art {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.55;
    filter: invert(1);
  }

  body:not(.is-map) .poster {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: stretch;
    height: 100%;
    padding:
      max(1.6rem, env(safe-area-inset-top))
      max(2.25rem, env(safe-area-inset-right))
      calc(2.4rem + env(safe-area-inset-bottom, 0px) + 1.15rem)
      max(2.25rem, env(safe-area-inset-left));
  }

  body:not(.is-map) .poster-stage {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    width: fit-content;
    max-width: 100%;
    height: 100%;
    min-height: 0;
    justify-self: center;
  }

  body:not(.is-map) .poster-lead {
    display: flex;
    flex-direction: column;
    flex: none;
    width: fit-content;
    max-width: 100%;
  }

  body:not(.is-map) .poster-title {
    width: auto;
    height: min(32vh, 22rem);
    max-width: min(70vw, 40rem);
  }

  body:not(.is-map) .poster-eye {
    flex: 1 1 auto;
    width: 0;
    min-width: 100%;
    height: auto;
    min-height: 10.2rem;
    margin: 0;
  }

  body:not(.is-map) .poster-credits {
    flex: none;
    width: 0;
    min-width: 100%;
  }

  body:not(.is-map) .poster-eye-shape {
    width: 24.375rem;
    height: 10.2rem;
    max-width: 92%;
    inset: auto;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }

  body:not(.is-map) #enter-orb {
    display: none;
  }

  body:not(.is-map) .poster-qr {
    display: grid;
    place-items: center;
    position: relative;
    z-index: 1;
    width: 9.4rem;
    height: 9.4rem;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
  }

  body:not(.is-map) .poster-qr svg {
    display: block;
    width: 68%;
    height: 68%;
  }

  body:not(.is-map) .poster-desktop {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-column: 2;
    min-width: 0;
    max-width: 28rem;
    justify-self: start;
  }

  body:not(.is-map) .poster-desktop p {
    margin: 0;
    font-family: var(--font-garamond);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.05rem, 1.2vw, 1.28rem);
    line-height: 1.45;
    text-align: justify;
    color: #fff;
  }

  body:not(.is-map) .poster-desktop p + p {
    margin-top: 1.45rem;
  }

  body:not(.is-map) .poster-glow {
    width: 108vh;
    height: 108vh;
  }

  .home-side {
    align-items: flex-end;
    text-align: right;
    margin-top: 0;
    justify-content: space-between;
  }

  .footer {
    justify-content: flex-end;
  }
}

/* AR page */

html.ar-live .gate,
html.ar-live .ar-lost {
  display: none !important;
}

html:not(.ar-live) .gate,
html:not(.ar-live) .hud {
  display: none !important;
}

.ar-lost {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 30;
  margin: 0;
  padding:
    max(1.5rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(1.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  background: #000;
  color: #f2f2f2;
  text-align: center;
}

.ar-lost p {
  max-width: min(28rem, 86vw);
  margin: 0;
  font-family: var(--font-garamond);
  font-size: 1.45rem;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
}

.ar-lost .text-link {
  font-family: inherit;
  font-size: inherit;
  font-weight: 400;
  font-style: normal;
  line-height: inherit;
  color: #f2f2f2;
  text-decoration: underline;
}

.ar-lost .text-link:hover,
.ar-lost .text-link:focus-visible {
  font-family: var(--font-garamond);
  font-size: inherit;
  font-weight: 400;
  font-style: italic;
  color: #f2f2f2;
  text-decoration: underline;
}

.ar-page {
  background: var(--bg);
  overflow: hidden;
  height: 100%;
}

.ar-page html,
html:has(.ar-page) {
  background: var(--bg);
  height: 100%;
}

model-viewer#viewer {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: var(--bg);
  --poster-color: transparent;
}

model-viewer#viewer[hidden] {
  display: none !important;
}

.gate {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--bg);
  overflow: auto;
}

.gate[hidden],
.hud[hidden] {
  display: none;
}

.gate-inner {
  box-sizing: border-box;
  min-height: 100%;
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.15rem;
  max-width: 36rem;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.1rem;
}

.gate-status {
  min-height: 1.2em;
  margin: 0;
}

.hud {
  position: fixed;
  z-index: 5;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  box-sizing: border-box;
  max-width: 22rem;
  padding: 0.75rem 0.85rem 0.8rem;
  background: rgba(242, 242, 242, 0.9);
  color: var(--ink);
}

.hud p {
  margin: 0.35rem 0 0;
}

.hud p:first-of-type {
  margin-top: 0.55rem;
}

.hud .enter {
  display: inline-block;
  margin-top: 0.65rem;
}

.ar-close {
  position: fixed;
  z-index: 20;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.95rem, env(safe-area-inset-right));
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
}

.ar-phone {
  position: fixed;
  z-index: 6;
  left: max(1.25rem, env(safe-area-inset-left));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  width: 9.5rem;
  height: 9.5rem;
  box-sizing: border-box;
  padding: 0;
  background: transparent;
}

.ar-phone svg {
  display: block;
  width: 100%;
  height: 100%;
}

.ar-phone svg rect {
  fill: transparent !important;
}

.ar-phone svg path {
  fill: #fff !important;
}

.ar-phone[hidden] {
  display: none !important;
}

body.ar-desk,
body.ar-stage {
  background: #000;
}

body.ar-desk model-viewer#viewer,
body.ar-stage model-viewer#viewer {
  background-color: #000;
  --poster-color: #000;
}

body.ar-desk model-viewer#viewer::part(default-ar-button),
body.ar-stage model-viewer#viewer::part(default-ar-button) {
  display: none;
}

body.ar-desk .hud,
body.ar-stage .hud {
  background: none;
  padding: 0;
  max-width: none;
}

body.ar-desk .ar-close,
body.ar-stage .ar-close {
  color: #f2f2f2;
}

.ar-close:hover,
.ar-close:focus-visible {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  text-decoration: none;
}

body.ar-desk .ar-close:hover,
body.ar-desk .ar-close:focus-visible,
body.ar-stage .ar-close:hover,
body.ar-stage .ar-close:focus-visible {
  color: #f2f2f2;
  text-decoration: none;
}

body.ar-desk #place,
body.ar-desk #fix,
body.ar-desk #nearest,
body.ar-stage #place,
body.ar-stage #fix,
body.ar-stage #nearest {
  display: none !important;
}

.home-main.is-found {
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
}

.home-main.is-found .map-stage {
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}

.home-main.is-found .park-map {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.home-main.is-found .summon-link.enter-orb {
  position: fixed;
  z-index: 2000;
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  margin: 0;
  transform: translate(-50%, -50%);
  width: min(92vw, 78dvh, 46rem);
  height: min(92vw, 78dvh, 46rem);
  border-radius: 0;
}

.chimera-about {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 1.35rem;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.chimera-about[hidden] {
  display: none !important;
}

.home-main.is-found .chimera-about {
  position: fixed;
  z-index: 2001;
  left: calc(50% + min(26vw, 15dvh, 7.5rem));
  top: calc(50% + min(30vw, 18dvh, 8.5rem));
  right: auto;
  bottom: auto;
  margin: 0;
  border-radius: 0;
  transform: translate(-50%, -50%);
  width: min(34vw, 22dvh, 11rem);
  height: min(34vw, 22dvh, 11rem);
}

body.is-map:has(.home-main.is-found) .map-close,
body.is-map.is-card .map-close {
  z-index: 2300;
}

body.is-map {
  overflow: hidden;
}

body.is-map .brand,
body.is-map .home-side {
  display: none;
}

body.is-map .home-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100dvh;
  min-height: 100dvh;
  padding: 0;
  overflow: hidden;
}

body.is-map .home-main {
  position: relative;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.is-map .home-main::before {
  content: none;
}

body.is-map .home-main.is-found::before {
  display: none;
}

body.is-map .home-main .map-stage {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  flex: none;
}

body.is-map .home-main .park-map,
body.is-map .home-main .park-map .maplibregl-canvas-container,
body.is-map .home-main .park-map .maplibregl-canvas {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: none;
  border-radius: 0;
  -webkit-mask-image: none;
  mask-image: none;
}

body.is-map .home-main .park-map {
  overflow: visible;
  clip-path: none;
}

body.is-map .map-credit {
  display: block;
  left: 50%;
  bottom: 0.85rem;
  width: max-content;
  transform: translateX(-50%);
  animation: map-credit-out 0.7s ease 1s forwards;
}

@keyframes map-credit-out {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

body.is-map .home-main.is-found .map-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  touch-action: none;
  overscroll-behavior: none;
}

body.is-map .home-main.is-found .map-credit {
  display: none;
}

.map-hint,
.map-info-panel {
  display: none;
}

body.is-map .map-hint {
  display: grid;
  place-items: center;
  position: fixed;
  z-index: 30;
  inset: 0;
  width: auto;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding:
    calc(4.6rem + env(safe-area-inset-top))
    max(12vw, 1.5rem)
    calc(4.2rem + env(safe-area-inset-bottom))
    max(12vw, 1.5rem);
  transform: none;
  text-align: center;
  text-wrap: balance;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: clamp(1.2rem, 3.4vw, 1.9rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #000;
  -webkit-text-fill-color: #000;
  background-color: #fff;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)),
    url("../media/images/becoming_chimeric_svg.svg?v=185");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 4800ms ease;
}

body.is-map .map-hint.is-on,
body.is-map .map-hint.is-hold {
  pointer-events: auto;
}

body.is-map .map-hint.is-on {
  opacity: 1;
  transition: opacity 4800ms ease;
}

@media (prefers-reduced-motion: reduce) {
  body.is-map .map-hint,
  body.is-map .map-hint.is-on {
    transition: none;
  }
}

.map-search {
  display: none;
}

body.is-map .map-search {
  display: block;
  position: fixed;
  z-index: 20;
  top: calc(env(safe-area-inset-top) + 3.2rem);
  left: max(0.7rem, env(safe-area-inset-left));
  width: 2.5rem;
  transition: width 220ms ease;
}

body.is-map.is-card .map-search,
body.is-map.is-info .map-search,
body.is-map:has(.home-main.is-found) .map-search {
  display: none;
}

body.is-map .map-search.is-open {
  width: min(24rem, calc(100% - 1.4rem - env(safe-area-inset-left)));
}

.map-search-bar {
  display: flex;
  align-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
  transition: width 220ms ease;
}

.map-search.is-open .map-search-bar {
  width: 100%;
}

.map-search-toggle {
  flex: 0 0 2.5rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #000;
  cursor: pointer;
}

.map-search-toggle svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

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

.map-search:not(.is-open) input,
.map-search:not(.is-open) .map-search-results,
.map-search:not(.is-open) .map-search-note {
  display: none;
}

.map-search input {
  display: block;
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 0 0.9rem 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
  text-align: left;
}

.map-search input::-webkit-search-decoration,
.map-search input::-webkit-search-cancel-button,
.map-search input::-webkit-search-results-button,
.map-search input::-webkit-search-results-decoration {
  display: none;
}

.map-search input::placeholder {
  color: rgba(0, 0, 0, 0.45);
}

.map-search input:focus {
  outline: none;
}

.map-search-toggle:focus-visible {
  outline: 1px solid #000;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .map-search,
  .map-search-bar {
    transition: none;
  }
}

.map-search-results {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.2rem 0;
  background: #fff;
  border-radius: 0.85rem;
  max-height: 14rem;
  overflow: auto;
}

.map-search-results button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.95rem;
  border: 0;
  background: none;
  color: #000;
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.map-search-results button:hover,
.map-search-results button:focus-visible,
.map-search-results button[aria-selected="true"] {
  background: #f2f2f2;
}

.map-search-note {
  margin: 0.5rem 0 0;
  text-align: center;
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.35;
  color: #000;
}

.search-pin {
  width: 14px;
  height: 14px;
  box-sizing: border-box;
  border: 2px solid #000;
  border-radius: 50%;
  background: #000;
  pointer-events: none;
}

.map-info:not([hidden]),
.map-help:not([hidden]) {
  display: grid;
  place-items: center;
  position: fixed;
  z-index: 6;
  top: 3.6rem;
  right: 0.35rem;
  left: auto;
  width: 8rem;
  height: 8rem;
  margin: 0;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: #000;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  font-size: 2.4rem;
  letter-spacing: 0;
  line-height: 1;
  background: none;
  isolation: isolate;
}

.map-info:hover,
.map-info:focus-visible,
.map-info:active,
.map-help:hover,
.map-help:focus-visible,
.map-help:active {
  color: #000;
}

.map-info[hidden],
.map-help[hidden],
.map-info-panel[hidden] {
  display: none !important;
}

body.is-info .map-info-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: fixed;
  z-index: 5;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding:
    max(6.75rem, calc(env(safe-area-inset-top) + 5.5rem))
    max(1.5rem, env(safe-area-inset-right))
    max(2.5rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
  overflow: auto;
  border-radius: 0;
  transform: none;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 400;
  font-style: normal;
  font-size: 1.05rem;
  letter-spacing: 0;
  line-height: 1.55;
  color: #f2f2f2;
  cursor: pointer;
  background: #000;
}

body.is-info .map-info-panel::before,
body.is-map.is-card .chimera-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../media/images/becoming_chimeric_svg.svg?v=185") center / cover no-repeat;
  filter: brightness(0) invert(1);
  opacity: 0.42;
  pointer-events: none;
}

body.is-map.is-card .chimera-card.is-light::before {
  filter: none;
  opacity: 0.22;
}

/* On phones, keep the SVG quieter so the white text stays flat. */
@media (max-width: 700px) {
  body.is-info .map-info-panel::before,
  body.is-map.is-card .chimera-card::before {
    opacity: 0.28;
  }
}

body.is-info .map-info-panel > *,
body.is-map.is-card .chimera-card > * {
  position: relative;
  z-index: 1;
}

body.is-info .map-info-panel hr,
.chimera-card-story hr,
.ar-lost hr {
  width: min(8rem, 32%);
  height: 0;
  margin: 0.15rem auto 1.15rem;
  padding: 0;
  border: 0;
  border-top: 1px solid #f2f2f2;
  color: #f2f2f2;
  opacity: 0.75;
  background: none;
}

body.is-map.is-card .chimera-card-story hr {
  border-top-color: currentColor;
  color: currentColor;
}

body.is-info .map-info-panel p {
  flex: none;
  width: auto;
  max-width: min(36rem, 86vw);
  margin: 0 0 0.95em;
}

body.is-info .map-info-panel:not([hidden]) {
  font-family: var(--font-garamond);
  font-size: 1.25rem;
  line-height: 1.45;
}

body.is-info .map-info-panel p {
  width: min(36rem, 86vw);
  text-align: justify;
}

body.is-info .map-info-panel p:first-child {
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-align: center;
}

body.is-info .map-info-panel p:first-child + p {
  text-align: center;
}

body.is-info .map-info-panel p.text-attribute {
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.35;
  text-align: center;
}

body.is-info .map-info-panel em {
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
}

body.is-info .map-info-panel p:last-child {
  margin-bottom: 0;
}

body.is-info .map-info-panel ul {
  width: min(36rem, 86vw);
  margin: 0;
  padding: 0 0 0 1.15rem;
  list-style: disc;
  text-align: left;
}

body.is-info .map-info-panel li {
  margin: 0 0 0.75em;
}

body.is-info .map-info-panel li:last-child {
  margin-bottom: 0;
}

body.is-map.is-info .map-hint {
  visibility: hidden;
}

body.is-info .map-close {
  color: var(--chrome-ink);
}

body.is-info .map-close:hover,
body.is-info .map-close:focus-visible,
body.is-map.is-card .map-close:hover,
body.is-map.is-card .map-close:focus-visible {
  color: var(--chrome-ink);
}

.chimera-card[hidden] {
  display: none !important;
}

body.is-map.is-card,
body.is-map:has(.home-main.is-found) {
  overscroll-behavior: none;
}

body.is-map.is-card .chimera-card:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  z-index: 2200;
  inset: 0;
  overflow: hidden;
  background: var(--card, #000);
  color: var(--card-ink, #f2f2f2);
  touch-action: auto;
  overscroll-behavior: none;
  /* Match the top and bottom bars so the story clears both edges. */
  padding-top: calc(2.75rem + env(safe-area-inset-top, 0px));
  padding-bottom: calc(2.4rem + env(safe-area-inset-bottom, 0px));
}

body.is-map.is-card .chimera-card model-viewer {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  flex: 0 0 calc(66.666vh - 2.75rem - env(safe-area-inset-top, 0px));
  min-height: 0;
  background-color: var(--card, #000);
  --poster-color: var(--card, #000);
  touch-action: none;
}

body.is-map.is-card .chimera-card model-viewer::part(default-ar-button) {
  display: none;
}

.chimera-card-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-height: 0;
  width: auto;
  max-height: none;
  box-sizing: border-box;
  margin: 0;
  padding:
    0.85rem
    max(1.85rem, env(safe-area-inset-right))
    max(1.75rem, env(safe-area-inset-bottom))
    max(1.85rem, env(safe-area-inset-left));
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  color: var(--card-ink, #f2f2f2);
  text-align: left;
}

.chimera-card-copy[hidden] {
  display: none !important;
}

.chimera-card-name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  line-height: 1.2;
}

.chimera-card-credit {
  margin: 0;
  font-family: var(--font-garamond);
  font-style: italic;
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1.35;
}

.chimera-card-story {
  margin-top: 1.75rem;
  text-align: justify;
}

.chimera-card-story p {
  margin: 0 0 0.65rem;
  font-family: var(--font-garamond);
  font-weight: 400;
  font-style: normal;
  font-size: 1.2rem;
  line-height: 1.4;
}

.chimera-card-story p:last-child {
  margin-bottom: 0;
}

@media (max-width: 899px) {
  body.is-map.is-card .chimera-card:not([hidden]) {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  body.is-map.is-card .chimera-card model-viewer {
    flex: none;
    height: 62vh;
  }

  .chimera-card-copy {
    flex: none;
    overflow: visible;
    min-height: 0;
    overscroll-behavior: auto;
  }
}

@media (min-width: 900px) {
  body.is-map.is-card .chimera-card:not([hidden]) {
    flex-direction: row-reverse;
    align-items: stretch;
    padding-bottom: 0;
  }

  body.is-map.is-card .chimera-card model-viewer {
    width: auto;
    height: auto;
    flex: 1 1 66.666%;
    min-height: 0;
    align-self: stretch;
  }

  .chimera-card-copy {
    width: 33.333%;
    flex: 0 0 33.333%;
    align-self: stretch;
    padding:
      1.35rem
      max(1.5rem, env(safe-area-inset-right))
      max(1.5rem, env(safe-area-inset-bottom))
      1.15rem;
  }
}

body.is-map.is-card .map-hint,
body.is-map.is-card .rehearse-note,
body.is-map.is-card .rehearse-reset,
body.is-map.is-card .summon-link,
body.is-map.is-card .chimera-about {
  visibility: hidden;
}

body.is-map.is-card #summon-viewer,
body.is-map.is-card .park-map {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 1000px) {
  .map-info:not([hidden]) {
    width: 7rem;
    height: 7rem;
  }
}

@media (max-width: 700px) {
  .map-search {
    top: calc(env(safe-area-inset-top) + 3rem);
  }
}

body.is-map .home-main.is-found .map-hint,
body.is-map .home-main.is-found .map-info-panel {
  display: none !important;
}

.map-close {
  display: grid;
  place-items: center;
  position: fixed;
  z-index: 40;
  top: 0.35rem;
  right: 0.35rem;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--chrome-ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-style: normal;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}

.map-close:hover,
.map-close:focus-visible,
.map-close:active {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 400;
  text-decoration: none;
  color: var(--chrome-ink);
}

.map-close[hidden] {
  display: none;
}

.rehearse-button {
  position: relative;
  z-index: 1;
  left: auto;
  bottom: auto;
  min-height: 0;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0.2rem 0;
  color: var(--chrome-ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.rehearse-button:hover,
.rehearse-button:focus-visible {
  color: var(--chrome-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

body.is-rehearse .rehearse-button,
body.is-info .rehearse-button {
  display: none;
}

body.is-rehearse .rehearse-note {
  position: fixed;
  z-index: 6;
  left: max(0.8rem, env(safe-area-inset-left));
  bottom: max(3rem, calc(env(safe-area-inset-bottom) + 2.5rem));
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--ink);
  pointer-events: none;
}

body.is-rehearse.is-info .rehearse-note {
  display: none;
}

.rehearse-reset {
  position: fixed;
  z-index: 2100;
  right: max(0.85rem, env(safe-area-inset-right));
  bottom: max(2.15rem, calc(env(safe-area-inset-bottom) + 1.45rem));
  margin: 0;
  padding: 0.35rem 0.15rem;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  font-style: normal;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rehearse-reset:hover,
.rehearse-reset:focus-visible {
  color: var(--glow);
}

body.is-rehearse.is-info .rehearse-reset {
  display: none;
}

body.is-rehearse:has(.home-main.is-found:not(.is-marked)) .rehearse-reset {
  color: #f2f2f2;
}

.roam {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: max(0.85rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 2.5rem);
  justify-items: center;
  align-items: center;
  gap: 0.1rem 0.2rem;
  transform: translateX(-50%);
  color: var(--glow);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  line-height: 1;
}

.roam[hidden] {
  display: none;
}

.roam p,
.roam-reset {
  grid-column: 1 / -1;
  margin: 0;
}

.roam button {
  border: 0;
  padding: 0.35rem;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.roam button[data-n="1"] {
  grid-column: 2;
  grid-row: 2;
}

.roam button[data-e="-1"] {
  grid-column: 1;
  grid-row: 3;
}

.roam button[data-e="1"] {
  grid-column: 3;
  grid-row: 3;
}

.roam button[data-n="-1"] {
  grid-column: 2;
  grid-row: 4;
}

.rehearse-button[hidden] {
  display: none !important;
}

.roam-reset {
  grid-row: 5;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
