.map-ui {
  --find-strip-height: 54px;
  --find-session-height: 54px;
}
/* The map page reserves the strip's row in its HTML, so the map does not move when the strip mounts. */
#trophy-map[hidden] + #map-session-entry:not([hidden])[data-discovery-strip] { margin-bottom: var(--find-strip-height); }
.map-ui #trophy-map[hidden] + #map-session-entry:not([hidden])[data-discovery-strip] + .workspace {
  height: calc(100dvh - var(--pwa-mast,68px) - var(--find-session-height) - var(--find-strip-height));
}
@media (display-mode: standalone) {
  .map-ui #trophy-map[hidden] + #map-session-entry:not([hidden])[data-discovery-strip] + .workspace {
    height: calc(100dvh - var(--pwa-mast,68px) - var(--find-session-height) - var(--find-strip-height) - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}
#discovery-strip {
  --find-color: #ffc68e;
  position: absolute;
  inset: 100% 0 auto;
  height: var(--find-strip-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 clamp(12px, 2vw, 28px);
  background: #201725;
  border-block: 1px solid #57384e;
  color: #fff3f6;
}
#map-session-entry #discovery-strip .find-pick {
  display: flex; flex: 1; min-width: 0; height: 100%; gap: 10px;
  color: inherit; text-decoration: none;
}
.find-thumb, .find-art {
  position: relative; display: grid; place-items: center; overflow: hidden;
  color: var(--find-color); background: radial-gradient(ellipse at 80% 10%, #723752, #282039 68%);
}
.find-thumb { width: 58px; height: 37px; flex: none; border: 1px solid #755775; border-radius: 6px; }
.find-thumb img, .find-art img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; }
.find-copy { min-width: 0; display: grid; gap: 2px; }
.find-copy small, .find-copy b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.find-copy small { color: var(--find-color); font: 700 11px/1.15 BC, sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.find-copy b { font: 750 15px/1.2 DM, sans-serif; letter-spacing: -.015em; }
.find-arrow { display: grid; flex: none; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #251624; background: var(--find-color); line-height: 1; }
.find-arrow .ic { width: 16px; height: 16px; }
.find-pick:hover b { text-decoration: underline; text-underline-offset: 2px; }
.find-all {
  flex: none; display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; min-width: 44px; padding: 0 8px; color: #f7e6f2; font: 650 13px/1.1 DM, sans-serif;
}
.find-all .ic { width: 17px; height: 17px; }
#find-gallery {
  width: min(920px, calc(100% - 48px)); max-width: none; max-height: min(91dvh, 980px);
  padding: 0; overflow: hidden; border: 1px solid #74546b; border-radius: 18px;
  background: #15101c; color: #fff1ef; box-shadow: 0 20px 72px #0d081cd9;
  color-scheme: dark; font-family: DM, sans-serif;
}
#find-gallery[open] { display: flex; flex-direction: column; }
#find-gallery::backdrop { background: #110a1caa; }
.find-head, .find-tools { flex: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.find-head { padding: 12px 18px 8px; border-bottom: 1px solid #483440; }
.find-head > div { display: flex; gap: 16px; align-items: center; }
.find-head h2 { margin: 0; color: #fff3ec; font: italic 800 clamp(24px, 3vw, 36px)/1 Poster, Impact, sans-serif; }
.find-head button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; color: #fff0f7; }
.find-head button:hover { background: #382538; }
.find-tools { padding: 5px 20px; }
.find-total, .find-tools select { font: 650 13px/1.2 DM, sans-serif; }
.find-total { color: #dac8dc; }
.find-tools select { min-height: 44px; max-width: 60%; border: 0; padding: 3px 5px; color: #ffe7f2; background: #15101c; }
.find-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 18px 18px; scrollbar-width: thin; scrollbar-color: #896783 transparent; }
.find-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; }
.find-card {
  container-type: inline-size; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid #65495f; border-radius: 12px; background: #211824;
}
.find-cover { display: block; text-decoration: none; position: relative; isolation: isolate; aspect-ratio: 1.5; }
.find-art { position: absolute; inset: 0; z-index: -2; }
.find-art > .ic { width: 54px; height: 54px; }
.find-cover::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(#0e091c7a, transparent 27%, transparent 70%, #211824); }
.find-overline { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; }
.find-overline img { width: 68px; height: auto; filter: drop-shadow(0 2px 2px #140c1f); }
.find-overline small {
  padding: 3px 6px; color: #fff5ef; border: 1px solid #ffffff5c; border-radius: 4px;
  background: #1a1123d9; font: 700 10px/1.1 BC, sans-serif; text-transform: uppercase; letter-spacing: .07em;
}
.find-category {
  position: absolute; left: 16px; bottom: 2px; display: flex; gap: 6px; align-items: center; padding: 4px 10px;
  color: #191221; background: var(--find-color); border-radius: 2px; box-shadow: 3px 3px #18101f;
  transform: skew(-8deg); font: 700 13px/1 BC, sans-serif; text-transform: uppercase; letter-spacing: .07em;
}
.find-category .ic { width: 15px; height: 15px; }
.find-content { display: flex; flex-direction: column; flex: 1; gap: 8px; padding: 10px 16px 8px; }
.find-content h3 {
  margin: 0; color: #fff2e8; font: italic 800 clamp(29px, 8.9cqw, 45px)/1 Poster, Impact, sans-serif;
  text-transform: uppercase; text-shadow: 1px 2px #52334b; text-wrap: balance;
}
.find-content p { margin: 0; color: #eee1ed; font: 500 14px/1.42 DM, sans-serif; }
.find-content p.find-condition { padding-inline-start: 9px; border-inline-start: 2px solid var(--find-color); color: #dbcada; font-size: 12px; }
.find-maps { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: auto; padding-top: 4px; }
.find-locator { position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 2.05; border: 1px solid #846779; border-radius: 6px; background: #202139; }
.find-geo { position: absolute; inset: 0; width: 100%; height: 100%; filter: saturate(.85) brightness(.94); }
.find-locator::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,#151222ea,transparent 52%); }
.find-locator i {
  position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -100%); display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--find-color); color: #1b1220; box-shadow: 0 0 0 2px #1b1220;
}
.find-locator i::after { content: ""; position: absolute; bottom: -5px; border: 4px solid transparent; border-top: 5px solid var(--find-color); border-bottom: 0; }
.find-locator i .ic { width: 15px; height: 15px; }
.find-locator small { position: absolute; z-index: 1; bottom: 4px; left: 6px; right: 3px; color: #fff; font: 700 11px/1.1 BC,sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.find-cta {
  display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 8px 12px; border-radius: 7px;
  background: var(--find-color); color: #211323; text-decoration: none; font: 750 15px/1.15 DM, sans-serif;
}
.find-cta:hover { filter: brightness(1.08); }
.find-cta .ic:last-child { margin-inline-start: auto; }
.find-source, .find-sources summary { width: fit-content; min-height: 29px; color: #dfcadd; font: 550 12px/1.3 DM, sans-serif; }
.find-source { display: inline-flex; gap: 4px; align-items: center; text-underline-offset: 2px; }
.find-source .ic { width: 12px; height: 12px; }
.find-sources summary { cursor: pointer; padding-block: 6px; }
.find-sources .find-source { display: flex; }
.find-empty { margin: 12px 0; }
.find-art-credit { margin: 12px 0 2px; color: #c6afc7; font: 500 12px/1.4 DM, sans-serif; }
.find-point-note { margin: 12px 0; border-top: 1px solid #ffffff29; padding-top: 9px; font: 500 13px/1.45 DM, sans-serif; }
.find-point-note summary { cursor: pointer; font-weight: 700; }
.find-point-note p { margin: 5px 0; }
.find-together { display: flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 4px; text-decoration: underline; text-underline-offset: 3px; color: inherit; }
@media (max-width: 720px) {
  .map-ui { --find-session-height: 44px; }
  #map-session-entry #discovery-strip .find-pick { gap: 8px; }
  #discovery-strip { gap: 3px; padding-inline: 9px; }
  .find-copy { flex: 1; }
  .find-copy b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; font-size: 13px; line-height: 1.12; }
  .find-thumb { width: 47px; height: 34px; }
  .find-arrow .ic { width: 14px; height: 14px; }
  .find-all { flex-direction: column; gap: 2px; padding-inline: 3px; font-size: 11.5px; }
}
@media (max-width: 620px) {
  #find-gallery {
    position: fixed; inset: auto 0 0; width: 100%; margin: 0; max-height: 92dvh;
    border-radius: 17px 17px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom);
  }
  .find-head { padding: 5px 8px 4px 12px; }
  .find-head > div { gap: 10px; }
  .find-head img { width: 55px; }
  .find-tools { padding-inline: 13px; }
  .find-scroll { padding: 0 10px 12px; }
  .find-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
}

.find-editions { display: flex; align-items: center; gap: 4px; padding: 7px 18px 0; }
.find-editions button {
  display: inline-flex; gap: 6px; align-items: center; min-height: 44px; padding: 4px 12px;
  border: 1px solid transparent; border-radius: 7px; color: #dbcddd; font: 650 14px/1.2 DM, sans-serif;
}
.find-editions button[aria-pressed=true] { color: #fff3ed; background: #372639; border-color: #805573; }
.find-editions button .ic { width: 15px; height: 15px; color: #ffadce; }
.find-age { color: #ffaece; font: italic 800 25px/1 Poster, Impact, sans-serif; }
.find-cover.find-sealed {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 213px; background: radial-gradient(ellipse at 68% 13%, #8e3b68, #421f40 43%, #1d1729 83%);
}
.find-preview-art { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.find-sealed::before { background: linear-gradient(105deg,#190f20cf,#2013238c 45%,#21162519 83%), linear-gradient(0deg,#201423a6,transparent 60%,#2417296b); }
.find-door { display: grid; justify-items: start; gap: 6px; padding: 10px 16px 13px; }
.find-door > strong {
  color: #fff1f3; font: italic 800 clamp(52px,16.5cqw,83px)/.83 Poster, Impact, sans-serif;
  letter-spacing: -.035em; text-shadow: 2px 2px #8d305f, 0 0 14px #2b1028;
}
.find-door > strong span { color: #ffa5cd; }
.find-warning, .find-open-info > small { font: 700 13px/1.25 DM,sans-serif; }
.find-warning { color: #fff1f3; background: #241624de; border-radius: 3px; padding: 3px 5px; }
.find-media-choice, .find-save {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 7px;
  min-height: 44px; padding: 5px 10px; font: 700 13px/1.2 DM, sans-serif;
}
.find-media-choice { background: #2b2030; color: #ffdfed; border: 1px solid #9a738f; }
.find-door .find-media-choice { background: #ffe6ef; color: #271521; border-color: #ffe6ef; }
.find-media-choice .ic, .find-save .ic { width: 16px; height: 16px; flex: none; }
.find-open-info { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; }
.find-open-info strong, .find-open-info > small { color: #ffb6d6; }
.find-open-info .find-media-choice { padding: 5px 9px; }
.find-adult-note { margin: 6px 0 10px; padding: 8px 10px; border: 1px solid #845674; border-radius: 8px; background: #302134; }
.find-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.find-actions .find-cta { flex: 1 1 auto; }
.find-save { color: #ffe8f3; border: 1px solid #87627d; background: #332532; flex: 1 1 auto; }
.find-save[aria-pressed=true] { color: #ffc4df; background: #4e2840; border-color: #d88db4; }
.find-save[aria-pressed=true] .ic { fill: currentColor; }
@media (max-width: 620px) {
  .find-editions { padding: 4px 10px 0; }
  .find-cover.find-sealed { aspect-ratio: 1.7; }
  .find-actions:has(.find-save) {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .find-actions:has(.find-save) .find-cta { justify-content: center; gap: 5px; padding-inline: 6px; }
  .find-actions:has(.find-save) .find-cta > .ic:last-child { display: none; }
  .find-actions .find-save { padding-inline: 6px; }
}

.find-content p.find-place { display: flex; align-items: center; gap: 4px; color: #dbc8da; font-size: 12px; }
.find-place .ic { width: 14px; height: 14px; flex: none; }
.find-adult-note figure { margin: 5px 0 0; }
.find-adult-note figure img { display: block; width: 100%; aspect-ratio: 2; object-fit: cover; border-radius: 5px; }
.find-adult-note figcaption { padding-top: 3px; font-size: 11px; color: #d3c0d1; }
