/* Location browsing: isolated map, foreground position and place detail. */
#start-screen.location-browse { overflow: hidden; padding: 0; }
#start-screen .hunt-destination-picker.hidden { display: none !important; }

#start-screen .hunt-destination-picker {
    width: 100%; min-width: 0; margin: 0; padding: 0; display: flex; gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2); background: rgba(10, 10, 12, 0.75);
}

#start-screen .hunt-destination-picker button {
    min-width: 0; min-height: 44px; margin: 0; padding: 7px 9px; flex: 1 1 50%;
    border: 0; border-radius: 0; background: transparent; color: #b8b8be; box-shadow: none;
    font-size: 0.75rem; font-weight: 700; line-height: 1.35;
}

#start-screen .hunt-destination-picker button[aria-pressed="true"],
#start-screen .hunt-destination-picker button[aria-current="page"] {
    background: var(--ap-mint); color: var(--ap-ink);
}

#start-screen .hunt-destination-picker button:focus-visible,
.location-hunt-view button:focus-visible,
.location-hunt-view a:focus-visible,
.location-hunt-view summary:focus-visible { outline: 2px solid var(--ap-mint); outline-offset: -3px; }

.location-hunt-view {
    position: absolute; inset: 0; z-index: 3; display: flex; min-width: 0; min-height: 0;
    padding: 10px max(14px, env(safe-area-inset-right)) 14px max(14px, env(safe-area-inset-left));
    flex-direction: column; gap: 8px; overflow: hidden; background: #111113;
    color: var(--ap-paper); text-align: start;
}

.location-hunt-view[hidden], .location-hunt-view.hidden,
.location-hunt-map-panel[hidden], .location-hunt-list-panel[hidden],
.location-hunt-detail[hidden] { display: none !important; }

.location-hunt-view button, .location-hunt-view a { font: inherit; -webkit-tap-highlight-color: transparent; }

.location-hunt-header { display: flex; min-height: 44px; align-items: center; gap: 10px; flex: 0 0 auto; }
.location-hunt-header > div { min-width: 0; }
.location-hunt-header h1 {
    margin: 0; color: var(--ap-paper); font-family: "Lalezar", "Readex Pro", sans-serif;
    font-size: clamp(1.5rem, 7vw, 2rem); font-weight: 400; line-height: 1;
}

.location-hunt-eyebrow, .location-hunt-kicker {
    margin: 0 0 2px; color: var(--ap-mint); font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase;
}

.location-hunt-back, .location-hunt-detail-close {
    width: 44px; min-width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 50%; background: #171719;
    color: var(--ap-paper); box-shadow: none; font-size: 1.25rem; line-height: 1;
}

html[dir="rtl"] .location-hunt-back { transform: scaleX(-1); }

.location-hunt-banner {
    margin: 0; padding: 7px 9px; flex: 0 0 auto; border-inline-start: 3px solid var(--ap-mint);
    background: rgba(63, 227, 207, 0.08); color: #d8e9e7; font-size: 0.75rem; line-height: 1.45;
}

.location-hunt-tabs {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.16); background: #171719;
}

.location-hunt-tabs button {
    min-width: 44px; min-height: 44px; margin: 0; padding: 8px 12px; border: 0;
    border-radius: 0; background: transparent; color: #b8b8be; box-shadow: none;
    font-size: 0.75rem; font-weight: 700;
}

.location-hunt-tabs button[aria-pressed="true"] { background: var(--ap-mint); color: var(--ap-ink); }

.location-hunt-position {
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center;
    flex-shrink: 0; padding-block: 2px 6px; border-bottom: 1px solid #39393d;
}
.location-hunt-view .location-hunt-locate {
    min-height: 44px; max-width: 144px; padding: 7px 10px; margin: 0;
    border: 1px solid var(--ap-mint); border-radius: 0; background: transparent;
    color: var(--ap-paper); font: inherit; font-size: .75rem; box-shadow: none;
}
.location-hunt-locate:disabled { opacity: .65; cursor: default; }
.location-hunt-position-status { margin: 0; color: #dedee1; font-size: .75rem; line-height: 1.5; }
.location-hunt-position-privacy { position: relative; color: #bcbcc3; font-size: .6875rem; line-height: 1.5; }
.location-hunt-position-privacy summary { cursor: pointer; padding-block: 5px; min-height: 44px; box-sizing: border-box; align-content: center; }
.location-hunt-position-privacy p {
    position: absolute; inset-inline-end: 0; top: 100%; z-index: 9; width: min(260px, 76vw);
    max-height: 160px; overflow: auto; box-sizing: border-box; margin: 0; padding: 12px;
    border: 1px solid #66666d; background: #171719; color: #dedee1;
}
.location-hunt-detail-position { border-inline-start: 2px solid var(--ap-mint); padding-inline-start: 8px; }
.location-hunt-detail-location { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; }
.location-hunt-place-copy .location-hunt-proximity { white-space: normal; color: #cbdbd9; }
.location-hunt-proximity[hidden] { display: none; }
.location-hunt-arrival {
    position: absolute; inset: 8px 8px auto; z-index: 6; margin: 0; padding: 8px 10px;
    border-inline-start: 2px solid var(--ap-mint); background: #171719; color: #fff;
    font-size: .75rem; line-height: 1.5; pointer-events: none;
    overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.location-hunt-arrival[hidden] { display: none; }

.location-hunt-content { position: relative; min-height: 0; flex: 1 1 auto; overflow: hidden; }
.location-hunt-map-panel, .location-hunt-list-panel { width: 100%; height: 100%; min-height: 0; }
.location-hunt-list-panel { padding: 2px; overflow-y: auto; overscroll-behavior: contain; }

.location-hunt-map-frame {
    position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden;
    border: 1px solid rgba(63, 227, 207, 0.5); background: #151719;
}

.location-hunt-view .location-hunt-map { position: absolute; inset: 0; }
.location-hunt-view .location-hunt-map:focus { outline: none; }

/* MapLibre owns the marker button transform; crop the first sprite frame inside it. */
#start-screen .location-hunt-view button.location-hunt-map-marker {
    width: 64px !important; min-width: 64px !important; height: 68px !important; min-height: 68px !important;
    margin: 0 !important; padding: 2px !important; box-sizing: border-box !important;
    border: 0 !important; border-radius: 0 !important; background: transparent !important;
    color: var(--ap-mint) !important; box-shadow: none !important; cursor: pointer;
    touch-action: manipulation; overflow: visible; display: grid; place-items: center;
}

#start-screen .location-hunt-view button.location-hunt-map-marker[data-selected="true"] {
    filter: drop-shadow(0 0 5px rgba(63, 227, 207, 0.9)) drop-shadow(0 4px 5px rgba(0, 0, 0, 0.7));
}

#start-screen .location-hunt-view button.location-hunt-map-marker:focus-visible {
    outline: 3px solid var(--ap-mint); outline-offset: 1px;
}

.location-hunt-map-ghost {
    position: relative; width: 60px; height: 60px; display: block; overflow: hidden;
    pointer-events: none; filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8)) drop-shadow(0 2px 2px #000);
}

.location-hunt-map-ghost[data-art-state="art"] img {
    display: block; width: calc(var(--ghost-frames, 1) * 100%); max-width: none; height: 100%;
    object-fit: fill; object-position: left top; user-select: none; -webkit-user-drag: none;
}

.location-hunt-map-ghost[data-art-state="fallback"]::before {
    content: ''; position: absolute; inset: 5px 7px 3px;
    background: #b8c8c6;
    clip-path: polygon(0 36%, 8% 18%, 24% 6%, 50% 0, 76% 6%, 92% 18%, 100% 36%, 100% 100%, 80% 82%, 60% 100%, 40% 82%, 20% 100%, 0 82%);
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.65));
}

.location-hunt-map-ghost[data-art-state="fallback"]::after {
    content: ''; position: absolute; top: 19px; left: 17px; width: 4px; height: 5px;
    border-radius: 50%; background: #202426; box-shadow: 11px 0 #202426;
}

/* Native source disclosure: a quiet 44px info target, not a full-width banner. */
.location-hunt-view .maplibregl-ctrl-bottom-right { z-index: 6; }
.location-hunt-view .maplibregl-ctrl-attrib.maplibregl-compact {
    width: 44px; height: 44px; min-height: 44px; margin: 0; padding: 0;
    box-sizing: border-box; background: transparent; border-radius: 0;
    color: #dedee1; direction: ltr;
}
.location-hunt-view .maplibregl-ctrl-attrib.maplibregl-compact::after { display: none; }
.location-hunt-view .maplibregl-ctrl-attrib .maplibregl-ctrl-attrib-button {
    width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; color: #dedee1; box-shadow: none;
}
.location-hunt-view .maplibregl-ctrl-attrib-button::before {
    content: 'i'; position: absolute; inset: 9.5px; display: grid; place-items: center;
    border: 1px solid #77777e; border-radius: 50%; background: #171719;
    font: 700 13px/1 Georgia, serif;
}
/* The native 44px attribution target remains; only its visible glyph shrinks. */
.location-hunt-view .maplibregl-ctrl-attrib-button:focus-visible {
    outline: 2px solid var(--ap-mint); outline-offset: -4px;
}
.location-hunt-view .maplibregl-ctrl-attrib-inner {
    position: absolute; bottom: 44px; right: 4px; width: max-content; max-width: calc(100vw - 48px);
    padding: 2px 4px; box-sizing: border-box; border: 1px solid #55555c;
    border-radius: 4px; background: #171719; color: #dedee1;
    font: 3px/1.6 "Readex Pro", sans-serif; text-align: start;
}
.location-hunt-view .maplibregl-ctrl-attrib-inner a { color: #fff; text-decoration: underline; }
/* OpenFreeMap's provider credit is optional; retain both mandatory data credits. */
.location-hunt-view .maplibregl-ctrl-attrib-inner a:is([href="https://openfreemap.org"], [href="https://openfreemap.org/"]) { display: none; }

.location-hunt-map-status {
    position: absolute; inset: auto 8px 8px; z-index: 2; margin: 0; padding: 6px 8px;
    border-inline-start: 2px solid var(--ap-mint); background: rgba(12, 12, 14, 0.92);
    color: #dedee1; font-size: 0.75rem; line-height: 1.4; pointer-events: none;
}

.location-hunt-map-status[data-state="ready"] { opacity: 0; }
.location-hunt-map-status[data-state="error"] { color: var(--ap-paper); }

.location-hunt-list-heading {
    display: flex; margin: 4px 0 8px; align-items: baseline; justify-content: space-between; gap: 10px;
}

.location-hunt-list-heading h2 { margin: 0; color: var(--ap-paper); font-size: 1rem; line-height: 1.4; }
.location-hunt-list-heading span { color: #a5a5ac; font-size: 0.75rem; }
.location-hunt-place-list { display: grid; gap: 6px; }

.location-hunt-place {
    width: 100%; min-width: 0; min-height: 56px; margin: 0; padding: 7px 9px; display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 20px; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0; background: #171719;
    color: var(--ap-paper); box-shadow: none; text-align: start;
}

.location-hunt-place.is-selected { border-color: var(--ap-mint); background: rgba(63, 227, 207, 0.08); }
.location-hunt-place-index { color: var(--ap-mint); font-family: ui-monospace, monospace; font-size: 0.75rem; }
.location-hunt-place-copy { min-width: 0; }
.location-hunt-place-copy strong, .location-hunt-place-copy small {
    display: block; overflow: hidden; font-size: 0.75rem; text-overflow: ellipsis; white-space: nowrap;
}
.location-hunt-place-copy small { margin-top: 2px; color: #a5a5ac; }
.location-hunt-place-arrow { color: var(--ap-mint); text-align: end; }

.location-hunt-detail {
    position: absolute; inset: auto 14px 10px; z-index: 5; max-height: min(calc(100% - 66px), 520px); min-width: 0;
    padding: 0 12px 12px; overflow-y: auto; overscroll-behavior: contain;
    border: 1px solid rgba(63, 227, 207, 0.55); border-block-start: 3px solid var(--ap-mint);
    background: #171719; box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.52);
}

.location-hunt-detail-close {
    position: sticky; top: 8px; z-index: 2; margin: 8px 0 -42px auto; display: block;
    background: #111113; font-size: 1.35rem;
}

html[dir="rtl"] .location-hunt-detail-close { margin-inline: auto 0; }
.location-hunt-detail-body { padding-top: 12px; }
.location-hunt-detail h2 { margin: 0; padding-inline-end: 48px; color: var(--ap-paper); font-size: 1.3rem; line-height: 1.25; }
.location-hunt-detail h3 { margin: 12px 0 6px; color: var(--ap-paper); font-size: 0.8rem; line-height: 1.45; }
.location-hunt-detail p { max-width: none; color: #c0c0c5; font-size: 0.75rem; line-height: 1.55; }
.location-hunt-category { margin: 3px 0 0; color: var(--ap-mint) !important; }
.location-hunt-radius { margin: 7px 0 0; color: #aaaab0 !important; }

.location-hunt-identity { display: grid; grid-template-columns: minmax(118px, 38%) minmax(0, 1fr); gap: 10px; align-items: start; }
.location-hunt-photo { min-width: 0; }
.location-hunt-photo-media {
    position: relative; height: 120px; overflow: hidden;
    border: 1px solid rgba(63, 227, 207, 0.38); background: #101012;
}
.location-hunt-photo-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 70%; }
.location-hunt-photo-media img[hidden] { display: none; }
.location-hunt-photo-fallback {
    position: absolute; inset: 0; padding: 8px; display: none; place-content: center; gap: 5px;
    color: #b9c7c5; text-align: center;
}
.location-hunt-photo[data-state="fallback"] .location-hunt-photo-fallback { display: grid; }
.location-hunt-building-icon { color: var(--ap-mint); font-size: 1.5rem; line-height: 1; }
.location-hunt-photo-fallback strong { font-size: 0.7rem; line-height: 1.35; }
.location-hunt-photo-note {
    margin: 4px 0 0; color: #c9cfce !important; font-size: 0.625rem !important; line-height: 1.35 !important;
}
.location-hunt-identity-copy { min-width: 0; }
.location-hunt-address, .location-hunt-entrance { margin: 6px 0 0; }
.location-hunt-entrance { color: #e7ddaa !important; }

.location-hunt-ghosts {
    margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 6px; list-style: none;
}

.location-hunt-ghost {
    min-width: 0; min-height: 52px; padding: 6px; display: flex; align-items: center; gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1); background: #111113;
}

.location-hunt-ghost-art, .location-hunt-ghost-placeholder {
    width: 40px; min-width: 40px; height: 40px; aspect-ratio: 1; display: grid; place-items: center;
    border: 1px solid rgba(63, 227, 207, 0.35); background: #101012; color: var(--ap-mint);
}

.location-hunt-ghost-art {
    background-image: var(--ghost-sheet); background-repeat: no-repeat; background-position: left top;
    background-size: calc(var(--ghost-frames, 1) * 100%) 100%;
}

.location-hunt-ghost > span:last-child { min-width: 0; }
.location-hunt-ghost strong, .location-hunt-ghost small { display: block; font-size: 0.75rem; }
.location-hunt-ghost strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.location-hunt-ghost small { margin-top: 2px; color: #aaaab0; }

.location-hunt-offer {
    margin-top: 12px; padding: 10px; border: 1px solid rgba(63, 227, 207, 0.35);
    background: rgba(63, 227, 207, 0.06);
}

.location-hunt-offer h3 { margin-top: 0; color: var(--ap-mint); font-size: 0.9rem; }
.location-hunt-offer p { margin: 5px 0 0; }
.location-hunt-eligibility { color: var(--ap-paper) !important; }
.location-hunt-policy, .location-hunt-expiry { color: #c0d6d3 !important; }
.location-hunt-attempt { margin: 10px 0; padding-inline-start: 9px; border-inline-start: 2px solid var(--ap-mint); }

.location-hunt-directions { margin: 8px 0 4px; }
.location-hunt-directions h3 { margin: 0 0 7px; }
.location-hunt-direction-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.location-hunt-direction {
    min-height: 44px; padding: 8px; display: grid; place-items: center;
    border: 1px solid rgba(63, 227, 207, 0.45); color: var(--ap-paper);
    font-size: 0.75rem; text-align: center; text-decoration: none;
}

.location-hunt-disabled {
    width: 100%; min-height: 48px; margin: 10px 0 0; padding: 8px 10px;
    border: 1px dashed rgba(255, 255, 255, 0.25); border-radius: 0; background: transparent;
    color: #aaaab0; box-shadow: none; font-size: 0.75rem;
}

.location-hunt-disabled:disabled { opacity: 1; cursor: not-allowed; }
.location-hunt-practice {
    width: 100%; min-height: 48px; padding: 10px; margin-top: 8px;
    background: var(--ap-mint, #3fe3cf); color: #171719; border: 0;
    font: inherit; font-size: .875rem; white-space: normal;
}
.location-hunt-practice-error { color: #fff; font-size: .8125rem; line-height: 1.6; }
body[data-hunt-mode="location"] #score,
body[data-hunt-mode="location"] #radar-btn { display: none !important; }
body[data-hunt-mode="location"] #level-display { font-size: .8125rem; white-space: normal; max-width: calc(100% - 104px); }
.location-result {
    box-sizing: border-box; width: min(100% - 24px, 480px); max-height: calc(100dvh - 24px);
    overflow: auto; padding: 22px 22px 12px; color: #fff; background: #171719; border: 1px solid rgb(255 255 255 / 30%);
    font: inherit; text-align: start; overscroll-behavior: contain; scrollbar-gutter: stable;
}
.location-result::backdrop { background: rgb(23 23 25 / 94%); }
.location-result[open] { animation: location-result-enter 220ms cubic-bezier(.2, .75, .25, 1) both; }
.location-result[data-victory-fade="true"][open] { animation: location-result-victory-enter 2500ms ease-out both; }
.location-result[data-victory-fade="true"]::backdrop { animation: location-result-victory-backdrop 2500ms ease-out both; }
.location-result-achievement { padding-block-end: 14px; }
.location-result .screen-eyebrow { margin: 0; color: #bfc7c6; }
.location-result-stamp { display: none; }
.location-result[data-result-status="won"] .location-result-achievement { text-align: center; }
.location-result[data-result-status="won"] .location-result-stamp {
    display: grid; width: 48px; height: 48px; margin: 0 auto 9px; place-items: center;
    border: 1px solid rgb(63 227 207 / 65%); border-radius: 50%; color: #3fe3cf;
}
.location-result-stamp svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.location-result[data-result-status="won"] .screen-eyebrow,
.location-result[data-result-status="won"] h1 { color: #3fe3cf; }
.location-result h1 { color: #fff; font-size: clamp(1.5rem, 6vw, 1.9rem); line-height: 1.25; margin: 7px 0 0; }
.location-result h1:focus { outline: none; }
.location-result p, .location-result li { font-size: .9375rem; line-height: 1.8; overflow-wrap: anywhere; }
.location-result h2 { margin: 0; color: #bfc7c6; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.location-result-label { display: block; color: #bfc7c6; font-size: .75rem; font-weight: 700; letter-spacing: .08em; }
.location-result-venue { padding-block: 14px 10px; }
#location-result-place { margin: 2px 0 0; color: #fff; font-size: clamp(1.25rem, 5vw, 1.55rem); font-weight: 700; line-height: 1.35; }
.location-result-progress { padding-block: 6px 4px; }
#location-result-progress { margin: 0 0 3px; color: #fff; font-size: clamp(1.9rem, 9vw, 2.65rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
#location-result-progress-meter { display: block; width: 100%; height: 5px; margin: 0 0 12px; accent-color: #3fe3cf; }
.location-result ul { margin: 7px 0 0; padding-inline-start: 20px; }
.location-result li + li { margin-block-start: 2px; }
.location-result-mission-details { margin-top: 10px; color: #bfc7c6; }
.location-result-mission-details summary { color: #bfc7c6; cursor: pointer; font-size: .8125rem; min-height: 44px; align-content: center; }
.location-result-mission-details[open] summary { margin-bottom: 5px; }
.location-result-economy { margin: 0; color: #bfc7c6; font-size: .8125rem !important; }
.location-result button { width: 100%; min-height: 44px; white-space: normal; }
.location-result button:disabled { cursor: wait; opacity: .62; }
.location-result .primary-action { background: #3fe3cf; color: #171719; }
#location-result-notice { margin: 5px 0 0; color: #bfc7c6; font-size: .8125rem; }
.location-result-reward { margin-block: 12px; padding-block-start: 12px; border-block-start: 1px solid rgb(255 255 255 / 22%); }
.location-result-reward[hidden], .location-result-coupon[hidden], .location-result button[hidden] { display: none !important; }
.location-result-reward h2 { color: #3fe3cf; }
.location-result-reward-status { margin: 6px 0 0; }
.location-result-coupon { margin-top: 10px; }
.location-result-code-label { display: block; color: #bfc7c6; font-size: .75rem; }
.location-result-code { display: block; margin-block: 4px 8px; padding: 9px; color: #171719; background: #fff; font: 700 1.05rem/1.4 ui-monospace, monospace; letter-spacing: .06em; text-align: center; overflow-wrap: anywhere; }
#location-result-offer { color: #fff; font-weight: 700; }
.location-result-coupon p { margin-block: 4px; color: #bfc7c6; font-size: .75rem; }
.location-result-actions { position: sticky; z-index: 1; bottom: -12px; display: grid; gap: 8px; margin-top: 12px; padding-top: 10px; padding-bottom: 12px; background: #171719; }
.location-result-actions #location-result-retry { margin: 0; }
@keyframes location-result-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes location-result-victory-enter {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes location-result-victory-backdrop {
    from { background: rgb(23 23 25 / 0%); }
    to { background: rgb(23 23 25 / 94%); }
}
body[data-location-victory-fade="out"]::after,
body[data-location-victory-fade="in"]::after {
    content: ''; position: fixed; inset: 0; z-index: 2990; pointer-events: none;
    background: #171719;
}
body[data-location-victory-fade="out"]::after { animation: location-victory-scene-out 2500ms ease-in both; }
body[data-location-victory-fade="in"]::after { opacity: 1; }
@keyframes location-victory-scene-out {
    from { opacity: 0; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .location-result[open], .location-result[data-victory-fade="true"][open],
    .location-result[data-victory-fade="true"]::backdrop,
    body[data-location-victory-fade="out"]::after { animation: none; }
    body[data-location-victory-fade="out"]::after { opacity: 1; }
}
body.reduce-motion .location-result[open], body.reduce-motion .location-result[data-victory-fade="true"][open],
body.reduce-motion .location-result[data-victory-fade="true"]::backdrop,
body.reduce-motion[data-location-victory-fade="out"]::after { animation: none; }
body.reduce-motion[data-location-victory-fade="out"]::after { opacity: 1; }
.location-hunt-empty { margin: auto; padding: 28px 16px; text-align: center; }
.location-hunt-empty > span { color: var(--ap-mint); font-size: 2rem; }
.location-hunt-empty h2 { margin: 8px 0; color: var(--ap-paper); font-size: 1.3rem; }
.location-hunt-empty p { max-width: 32rem; margin: 0 auto; color: #aaaab0; font-size: 0.75rem; line-height: 1.65; }
.location-hunt-muted { color: #aaaab0 !important; }

@media (max-height: 680px) and (orientation: portrait) {
    .location-hunt-view { gap: 6px; padding-block: 7px 9px; }
    .location-hunt-header h1 { font-size: 1.5rem; }
    .location-hunt-banner { padding-block: 5px; line-height: 1.35; }
    .location-hunt-map-frame { min-height: 0; }
    .location-hunt-photo-media { height: 104px; }
}

@media (max-width: 359px) {
    .location-hunt-identity { grid-template-columns: 104px minmax(0, 1fr); gap: 8px; }
    .location-hunt-photo-media { height: 104px; }
    .location-hunt-photo-note { font-size: 0.5625rem !important; }
    .location-result { width: calc(100% - 16px); max-height: calc(100dvh - 16px); padding: 16px 16px 8px; }
    .location-result h1 { font-size: 1.45rem; }
    .location-result-actions { bottom: -8px; padding-bottom: 8px; }
}

@media (orientation: landscape) and (max-height: 620px) {
    .location-hunt-view {
        padding-block: 6px; gap: 6px; display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(160px, 240px);
        grid-template-rows: 44px auto minmax(0, 1fr);
    }
    .location-hunt-header { grid-column: 1; grid-row: 1; }
    .location-hunt-tabs { grid-column: 2; grid-row: 1; }
    .location-hunt-banner { grid-column: 2; grid-row: 2; }
    .location-hunt-position {
        grid-column: 2; grid-row: 3; grid-template-columns: minmax(0, 1fr); align-content: start;
        gap: 5px; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    }
    .location-hunt-position .location-hunt-locate { width: 100%; max-width: none; }
    .location-hunt-position-privacy p { position: static; width: auto; max-height: none; }
    .location-hunt-content { grid-column: 1; grid-row: 2 / 4; }
    .location-hunt-eyebrow { display: none; }
    .location-hunt-banner { padding-block: 4px; line-height: 1.3; }
    .location-hunt-tabs button, .location-hunt-back, .location-hunt-detail-close { min-height: 44px; height: 44px; }
    .location-hunt-map-frame { min-height: 0; }
    .location-hunt-detail { inset: 8px 14px 8px auto; width: min(60%, 420px); max-height: none; }
    .location-result { width: min(100% - 16px, 540px); max-height: calc(100dvh - 16px); padding: 16px 20px 8px; }
    .location-result-achievement { padding-block-end: 9px; }
    .location-result-venue { padding-block: 9px; }
    .location-result-progress { padding-block: 9px 2px; }
    #location-result-progress { font-size: 1.75rem; }
    #location-result-progress-meter { margin-bottom: 8px; }
    .location-result p, .location-result li { font-size: .875rem; line-height: 1.55; }
    .location-result-mission-details { margin-top: 6px; }
    .location-result-reward { margin-block: 9px; padding-block-start: 9px; }
    .location-result-actions { bottom: -8px; margin-top: 8px; padding-top: 8px; padding-bottom: 8px; }
}
