.discover-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .85rem;
  align-items: center;
  font-size: .78rem;
}
.discover-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 44px;
  padding: 0 .15rem;
  color: var(--signal);
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  pointer-events: auto;
  text-underline-offset: .25em;
}
.discover-tools .discover-link { text-decoration: underline; }
.discover-link:hover, .discover-link[aria-pressed=true] { text-decoration: underline; }
.scene-caption h1:not(.city-sign) { pointer-events: auto; cursor: pointer; }
.discovery-sheet {
  box-sizing: border-box;
  position: fixed;
  inset: auto auto max(1.3rem, env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left));
  width: min(29rem, calc(100% - 2 * var(--gutter)));
  max-width: 100%;
  max-height: min(72svh, 43rem);
  margin: 0;
  padding: clamp(1rem, 3vw, 1.65rem);
  border: 1px solid var(--glass-rim);
  border-radius: 1.1rem;
  background: var(--atlas-ui-surface);
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
}
.discovery-sheet::backdrop { background: rgb(5 7 10 / 35%); }
.discovery-sheet header, .discovery-sheet li, .shore-stops {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
}
.discovery-sheet header { align-items: start; }
.discovery-sheet header form { margin: 0; }
.discovery-sheet h2 {
  margin: 0;
  font: 400 clamp(2.15rem, 5vw, 3.4rem)/1.05 "Instrument Serif", Georgia, serif;
}
.discovery-sheet .field-caption, .discovery-sheet small {
  display: block;
  color: var(--atlas-ui-reflection);
  font: 400 .72rem/1.6 var(--mono);
}
.discovery-sheet .field-caption { margin: 0 0 .2rem; }
.discovery-sheet h3 { margin: 1.35rem 0 .3rem; font-size: .87rem; color: var(--muted); }
.discovery-sheet ul { margin: 0; padding: 0; list-style: none; }
.discovery-sheet li {
  min-height: 46px;
  padding: .38rem 0;
  border-top: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.discovery-sheet li > div { min-width: 0; }
.discovery-sheet a { color: var(--signal); text-underline-offset: .22em; }
.discovery-sheet .venue-action, .shore-stops button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .35rem .65rem;
  border: 1px solid var(--line);
  border-radius: 1.3rem;
  background: transparent;
  color: var(--ink);
  font-size: .77rem;
}
.discovery-sheet .discovery-empty, .discovery-sheet [data-shore-guide] p {
  line-height: 1.45;
  color: var(--muted);
  font-size: .9rem;
}
.discovery-message { color: var(--signal); margin: .5rem 0 0; }
.discovery-message:empty { display: none; }
.shore-stops { flex-wrap: wrap; justify-content: flex-start; margin-block-end: .75rem; }
[data-viewpoint="mirvish-village"], [data-district="mirvish-village"] { --district-ink: var(--atlas-map-building-brass); }
[data-district="mirvish-village"] #scene-title:not(.city-sign)::after {
  content: "";
  display: block;
  width: min(88%, 3.7em);
  height: 5px;
  margin-block-start: .12em;
  background: radial-gradient(circle closest-side, var(--atlas-status-favourite) 66%, transparent 98%) left/10px 5px repeat-x;
  opacity: .8;
}
.banknote-flight {
  position: absolute;
  z-index: 1;
  width: 1px;
  height: 1px;
  pointer-events: none;
  perspective: 200px;
}
.banknote-flight i {
  position: absolute;
  width: 23px;
  height: 10px;
  border: 1px solid currentColor;
  color: var(--atlas-map-building-brass);
  background: radial-gradient(ellipse 3px 4px at center, currentColor 55%, transparent 68%),
    repeating-linear-gradient(60deg, transparent 0 2px, color-mix(in srgb, currentColor 53%, transparent) 2px 3px),
    var(--atlas-ui-surface-raised);
  inset: -46px auto auto -18px;
  outline: 1px solid currentColor;
  outline-offset: -3px;
  opacity: 0;
}
.banknote-flight i:nth-child(2) { color: var(--atlas-ui-reflection); inset: -71px auto auto -4px; animation-delay: 110ms; }
.banknote-flight i:nth-child(3) { inset: -58px auto auto 9px; animation-delay: 230ms; }
@media (prefers-reduced-motion: no-preference) {
  .banknote-flight i { animation: banknote-fall 980ms ease-in both; }
  .marquee-arrival::after { animation: marquee-light 750ms ease-out; }
  @keyframes banknote-fall {
    0% { transform: translate(0, 0) rotate(-32deg) rotateX(65deg); opacity: 0; }
    14% { opacity: .92; }
    52% { transform: translate(12px, 28px) rotate(18deg) rotateX(25deg); opacity: .85; }
    100% { transform: translate(-1px, 73px) rotate(-24deg) rotateX(70deg); opacity: 0; }
  }
  @keyframes marquee-light { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
}
@media (min-width: 64.001rem) { .stop-line { grid-template-columns: repeat(9,minmax(0,1fr)); } }
@media (max-width: 650px) {
  .discovery-sheet {
    inset: auto 0 0;
    width: 100%;
    padding: 1.1rem max(var(--gutter),env(safe-area-inset-right)) max(1.1rem,env(safe-area-inset-bottom)) max(var(--gutter),env(safe-area-inset-left));
    border-radius: 1.25rem 1.25rem 0 0;
  }
  .discover-tools { gap: 0 .6rem; }
}
