.finder-board { --header-map: none; }
.finder-head { padding-top: 27px; }
.finder-head::before { content: none; }
.finder-meadow {
    position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(100%, 740px); overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 36%, black 90%, transparent);
    pointer-events: none;
}
.finder-meadow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg,var(--bg),transparent 38%); }
.meadow-scene { position: absolute; inset: 0; }
.meadow-scene img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; }
@media (max-width: 620px) {
    .finder-board { --finder-scene: url("/art/finder/encounter-meadow-mobile.webp"); }
    @supports (background-image: image-set(url("") type("image/avif"))) {
        .finder-board {
            --finder-scene: image-set(url("/art/finder/encounter-meadow-mobile.avif") type("image/avif"), url("/art/finder/encounter-meadow-mobile.webp") type("image/webp"));
        }
    }
}
.finder-meadow > img { position: absolute; object-fit: contain; width: auto; transform: translateX(-50%); filter: drop-shadow(0 3px 2px #171d2470); }
.meadow-pokemon { left: 71%; bottom: 14%; height: 77%; max-height: 156px; }
.meadow-pikachu { left: 82%; bottom: 20%; height: 26%; }
.finder-head h1 { max-width: 68%; text-wrap: balance; overflow-wrap: anywhere; }
.finder-dex { display: inline-block; color: var(--muted); font: 600 .78rem/1.4 Sans,sans-serif; margin-bottom: 5px; }
.finder-dex ol { display: flex; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.finder-dex a:hover, .finder-queue-title a:hover, .finder-species-info a:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.finder-lede { max-width: min(65%, 45ch); margin: 7px 0; color: var(--muted); text-wrap: pretty; }
.finder-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 0; max-width: 70%; margin-top: 7px; color: #c2c6ca; font-size: .9rem; }
.finder-summary span + span::before { content: "·"; padding-inline: 8px; color: #a2a7ad; }
.finder-summary b { color: var(--paper); font-weight: 650; font-variant-numeric: tabular-nums; }
.finder-tabs { gap: 22px; margin-top: 12px; }
.finder-tabs a { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.finder-tabs small { font-size: .75rem; font-weight: 550; font-variant-numeric: tabular-nums; color: var(--muted); }
.finder-tabs a[aria-current] small { color: var(--gold); }
.iv-record {
    --iv-ink: #ffda85; --iv-edge: #78613a; --iv-tint: #3e3324;
    position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
    gap: clamp(12px, 2vw, 20px); margin-top: 14px; padding: 12px clamp(14px, 2vw, 24px);
    border: 1px solid var(--iv-edge); border-inline-start: 4px solid var(--iv-ink); border-radius: 9px;
    background: linear-gradient(105deg, var(--iv-tint), #21242c 72%);
}
.iv-record-zero { --iv-ink: #abdfff; --iv-edge: #48697d; --iv-tint: #233947; }
.iv-record::after {
    content: ""; position: absolute; z-index: -1; inset: 0 0 0 auto; width: min(35%, 230px); opacity: .3;
    background: repeating-radial-gradient(circle at 90% 120%, transparent 0 16px, var(--iv-edge) 17px 18px, transparent 19px 31px);
    mask-image: linear-gradient(90deg, transparent, black);
}
.iv-record-medal {
    flex: none; width: 48px; height: 48px; display: grid; align-content: center; justify-items: center;
    color: var(--iv-ink); border: 1px solid var(--iv-ink); border-radius: 50%;
    box-shadow: inset 0 0 0 3px var(--iv-tint), inset 0 0 0 4px var(--iv-edge);
    font: 750 1.25rem/1 Cond, sans-serif;
}
.iv-record-medal small { font: 700 .59rem/1.1 Sans, sans-serif; letter-spacing: .08em; }
.iv-record p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin: 0; }
.iv-record strong { color: var(--iv-ink); font: 750 clamp(1.6rem, 3vw, 2.25rem)/1.05 Cond, sans-serif; font-variant-numeric: tabular-nums; }
.iv-record p span { color: #e2e4e9; font-size: .9rem; }
.finder-species-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-block: 12px; color: var(--muted); font-size: .86rem; }
.finder-species-info a { color: #c5d9d3; }
.finder-hundo-options { align-items: center; }
.finder-hundo-options form { display: flex; align-items: center; margin: 0; }
.species-moves { margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.species-moves summary { padding: 10px 14px; font-weight: 700; cursor: pointer; }
.species-moves summary small { margin-left: .5em; font-weight: 400; color: var(--muted); }
.species-moves-body { padding: 0 14px 12px; }
.species-moves table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .88rem; }
.species-moves caption { text-align: left; padding: 14px 0 5px; color: var(--gold); font-weight: 700; }
.species-moves th, .species-moves td { text-align: left; vertical-align: top; padding: 6px 4px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.species-moves table small { display: block; color: var(--muted); font-weight: 400; }
.battle-facts, .reported-attacks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 8px 0; }
.battle-facts dt, .reported-attacks dt { color: var(--muted); font-size: .8rem; }
.battle-facts dd, .reported-attacks dd { margin: 0; }
@font-face {
    font-family: "Guide Flags"; src: url("/fonts/TwemojiCountryFlags.woff2") format("woff2");
    font-display: swap; unicode-range: U+1F1E6-1F1FF;
}
.species-field-guide {
    --guide-ink: #baead4; --guide-muted: #bfcec8; --guide-line: #3b504a;
    display: grid; grid-template-columns: minmax(0,2fr) minmax(240px,.86fr);
    margin: 30px 0 12px; border: 1px solid var(--guide-line); border-radius: 14px; overflow: hidden;
    background: linear-gradient(125deg,#263431,#1d2728 75%); scroll-margin-top: 18px;
}
#field-guide {
    content-visibility: auto;
    contain-intrinsic-block-size: auto 700px;
}
.field-guide-copy { min-width: 0; padding: clamp(16px,2.5vw,28px); }
.field-guide-copy:only-child { grid-column: 1 / -1; }
.field-guide-copy:only-child > p { margin: .55em 0 0; line-height: 1.5; }
.field-guide-copy h2 { font: 720 clamp(1.65rem,3vw,2.4rem)/1.08 Cond,sans-serif; letter-spacing: -.02em; text-wrap: balance; }
.field-guide-intro { max-width: 72ch; margin: 9px 0 0; color: #d5dfdb; font-size: .94rem; line-height: 1.48; }

.field-guide-copy > a, .field-guide-copy > p a, .field-guide-plate > a {
    color: var(--guide-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px;
}
.field-guide-copy > a { display: inline-block; margin: 6px 10px 0 0; font-size: .87rem; }
.field-guide-facts { margin-top: 18px; border-top: 1px solid var(--guide-line); padding-top: 13px; }
.field-guide-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.field-guide-heading h3 { font: 680 1.26rem/1.15 Cond,sans-serif; }
.field-guide-heading > span, .field-guide-weather h3 { color: var(--guide-ink); font: 680 .68rem/1.3 Sans,sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.field-guide-facts > p { color: var(--guide-muted); margin: 4px 0 0; font-size: .84rem; }
.field-guide-leaders { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.field-country-card {
    min-width: 0; display: grid; align-content: start; gap: 4px; padding: 11px 12px 9px;
    border: 1px solid var(--guide-line); border-radius: 9px; background: #26332f;
    color: #eff6f2; font-size: .83rem; font-variant-numeric: tabular-nums;
}
.field-country-card:hover, .field-country-card:focus-visible { background: #31433a; border-color: #86b69b; }
.field-country-card strong, .field-guide-countries a { display: flex; align-items: center; gap: 7px; line-height: 1.25; overflow-wrap: anywhere; }
/* The flag artwork sits below the visual center of the country-name capitals. */
.field-flag { flex: none; transform: translateY(-.11em); font: normal 1.13rem/1 "Guide Flags","Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.field-country-volume { display: flex; align-items: baseline; gap: 4px; color: var(--guide-muted); font-size: .78rem; }
.field-country-volume b { color: #fff; font: 680 1.42rem/1.2 Cond,sans-serif; }
.field-country-volume small { margin-inline-start: auto; font-size: .75rem; }
.field-country-card meter { appearance: none; width: 100%; height: 3px; border: 0; border-radius: 3px; background: #45564d; overflow: hidden; }
.field-country-card meter::-webkit-meter-bar { height: 3px; border: 0; border-radius: 3px; background: #45564d; }
.field-country-card meter::-webkit-meter-optimum-value { background: #8cd5ad; }
.field-country-card meter::-moz-meter-bar { background: #8cd5ad; }
.field-country-active { display: inline-flex; align-items: center; gap: 5px; color: var(--guide-muted); font-size: .74rem; }
.field-country-active::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #86948d; }
.field-country-active.has-pins { color: #bdeacb; }
.field-country-active.has-pins::before { background: #91dba8; }
.field-guide-more:has(> summary[hidden]) { display: none; }
.field-guide-more summary { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 36px; color: var(--guide-ink); cursor: pointer; font-size: .86rem; font-weight: 650; }
.field-guide-more summary::-webkit-details-marker { display: none; }
.field-guide-more summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.field-guide-more[open] summary::after { transform: translateY(2px) rotate(225deg); }
.field-guide-scroll { isolation: isolate; max-height: 14rem; overflow-y: auto; scrollbar-color: #738c7e #22302b; border: 1px solid var(--guide-line); border-radius: 7px; }
.field-guide-countries { width: 100%; border-spacing: 0; font-size: .84rem; font-variant-numeric: tabular-nums; }
.field-guide-countries :is(th,td) { text-align: right; padding: 6px 9px; }
.field-guide-countries th:first-child { text-align: left; }
.field-guide-countries thead th { position: sticky; top: 0; z-index: 1; background: #2c3934; color: var(--guide-muted); font-size: .76rem; }
.field-guide-countries tr:nth-child(even) { background: #ffffff06; }
.field-guide-countries a { color: var(--guide-ink); }
.field-guide-countries a:hover, .field-guide-more summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.field-guide-plate {
    display: grid; align-content: center; justify-items: center; gap: 12px; padding: 20px clamp(14px,2vw,24px);
    border-left: 1px solid var(--guide-line);
    background: radial-gradient(ellipse at 50% 26%,#435f4e,transparent 68%),repeating-radial-gradient(circle at 50% 31%,transparent 0 48px,#bbdfbf0b 49px 50px),#26362f;
}
.field-guide-art { display: flex; justify-content: center; width: 100%; }
.field-guide-art figure { min-width: 0; margin: 0; text-align: center; flex: 0 1 110px; }
.field-guide-art img { display: block; width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 6px 3px #14231d70); }
.field-guide-art figcaption { color: #e1eee4; font-size: .77rem; font-weight: 650; }
.field-guide-plate > a { text-align: center; font-size: .85rem; }
.field-guide-weather { width: 100%; max-width: 280px; padding-top: 11px; border-top: 1px solid #ffffff29; }
.field-guide-weather dl { margin: 5px 0 0; }
.field-guide-weather dl > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .83rem; }
.field-guide-weather dt { display: flex; align-items: center; gap: 5px; }
.field-guide-weather dd { margin: 0; color: var(--guide-muted); }
.field-guide-weather p { text-wrap: balance; margin: 7px 0 0; color: var(--guide-muted); font-size: .8rem; line-height: 1.45; }
@media (max-width: 780px) {
    .species-field-guide { grid-template-columns: minmax(0,1fr); }
    .field-guide-plate { grid-template-columns: 1fr 1fr; align-items: center; gap: 4px 18px; border: 0; border-top: 1px solid var(--guide-line); padding: 12px 16px; }
    .field-guide-art figure { flex-basis: 68px; }
    .field-guide-plate > a { grid-column: 1; font-size: .77rem; }
    .field-guide-weather { grid-column: 2; grid-row: 1 / 3; padding: 0 0 0 14px; border: 0; border-left: 1px solid #ffffff29; }
    .field-guide-weather dl > div { flex-wrap: wrap; justify-content: flex-start; gap: 0 6px; }
}
@media (max-width: 540px) {
    .field-guide-leaders { grid-template-columns: 1fr; gap: 4px; }
    .field-country-card { grid-template-columns: minmax(0,1fr) auto minmax(4.2rem,max-content); align-items: center; column-gap: 8px; padding: 7px 9px; }
    .field-country-volume { flex-wrap: wrap; justify-content: flex-end; max-width: 6.5em; gap: 1px 3px; line-height: 1.15; }
    .field-country-volume b { font-size: 1.05rem; }
    .field-country-volume small { font-size: .67rem; }
    .field-country-card meter { display: none; }
    .field-country-active { justify-self: end; white-space: nowrap; }
    .field-guide-countries :is(th,td) { padding: 6px; }
}
.finder-controls { --filter-width: 9.5rem; --tool-gap: 8px; margin: 15px 0 13px; }
.finder-query { display: flex; align-items: center; gap: var(--tool-gap); padding-right: calc(var(--filter-width) + var(--tool-gap)); }
.finder-query .board-search { flex: 1 1 auto; max-width: 470px; margin-right: auto; }
.finder-query .country-filter select, .finder-controls .hunt-options summary { min-height: 44px; }
.finder-query .country-filter { flex: none; }
.finder-query .country-filter select { width: auto; padding-right: 30px; }
.finder-controls .hunt-tools { display: block; margin: 0; }
.finder-controls .hunt-options { position: relative; }
/* Keep the toggle beside the country selector while the native disclosure expands below both. */
.finder-controls .hunt-options summary {
    position: absolute; right: 0; bottom: 100%; width: var(--filter-width);
    display: flex; justify-content: center; align-items: center; gap: 7px; padding: 6px 9px;
    color: #dddfe2; background: #24272e; border: 1px solid var(--edge); border-radius: 6px;
}
.finder-controls .hunt-options summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.finder-controls .hunt-options[open] summary::after { transform: translateY(2px) rotate(225deg); }
.finder-controls .hunt-options[open] summary, .finder-controls .hunt-options summary:hover { border-color: #9b885f; color: #ffde99; }
.finder-controls .hunt-options[open] { padding-top: var(--tool-gap); }
.finder-controls .hunt-fields { margin-top: 0; }
.finder-controls .hunt-save, .finder-controls .applied-hunt { margin: 8px 0 0; }
.finder-board .hunt-heading { gap: 8px 14px; margin-bottom: 8px; }
.finder-queue-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.finder-queue-title h2 { font: 700 1.7rem/1.1 Cond,sans-serif; letter-spacing: -.01em; }
.finder-queue-title a { font: 580 .84rem/1.3 Sans,sans-serif; color: #ccc4b3; }
.finder-board .allowance { margin: 0 0 10px; }
.finder-board .queue { border: 1px solid var(--edge); border-radius: 12px; background: var(--panel); }
.finder-board .queue > :first-child { border-radius: 11px 11px 0 0; }
.finder-board .queue > :last-child { border-bottom: 0; border-radius: 0 0 11px 11px; }
.finder-board .queue > .empty:only-child { border: 0; border-radius: 11px; }
.finder-board .row:has(.pick[aria-pressed="true"]) {
    background: linear-gradient(90deg,color-mix(in srgb,var(--type) 11%,#27292f),#282b32 80%); box-shadow: inset 3px 0 var(--gold);
}
.finder-board .thumb { background: radial-gradient(ellipse at 50% 65%,color-mix(in srgb,var(--type) 18%,#292d34),#292c32); }
.finder-board .pick:hover .identity strong { color: #ffdfa0; }
.finder-board .row-body {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "pick timer" "pick actions";
    gap: 6px 16px; padding: 12px 16px;
}
.finder-board .pick { grid-area: pick; gap: 12px; }
.finder-board .row-body > .timer { grid-area: timer; align-self: end; color: #cbcdd4; }
.finder-board .row-body > :is(.actions--compact, .locked) { grid-area: actions; justify-self: end; align-self: start; }
.finder-board .identity { grid-template-columns: minmax(0, 1fr); gap: 3px; }
.queue-name { display: flex; align-items: baseline; gap: .35em; overflow: hidden; }
.queue-name strong { flex: none; max-width: 100%; }
.queue-name strong, .finder-board .identity small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.queue-details { display: flex; flex-wrap: wrap; gap: 1px 10px; }
.queue-stats { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.queue-cp, .queue-level { color: var(--muted); font-weight: 500; }
.finder-board .actions--compact { gap: 6px; }
@container (width < 540px) {
    .finder-board .row-body {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "pick pick" "timer actions";
        gap: 9px 12px; padding: 12px;
    }
    .finder-board .row-body > .timer { align-self: center; text-align: left; }
    .finder-board .actions--compact { grid-template-columns: repeat(4, auto); }
    .finder-board .actions--compact > button { min-height: 44px; }
}
@container (width < 360px) {
    .finder-board .actions--compact .destination { min-width: 44px; }
    .finder-board .actions--compact .destination span { display: none; }
}
.finder-board .queue .pagination { padding-inline: 8px; }
@media (max-width: 760px) {
    .finder-head { padding-top: 20px; }
    .finder-head h1 { font-size: clamp(2.1rem, 7.8vw, 2.65rem); }
    .finder-summary { font-size: .82rem; }
    .finder-board .hunt-buttons { width: auto; }
    .finder-board .hunt-buttons button { min-width: max-content; }
    .finder-queue-title { display: grid; gap: 2px; }
}
@media (max-width: 600px) {
    body:has(.finder-board) .mast nav { flex-wrap: nowrap; justify-content: space-between; gap: 4px; }
    .finder-meadow { bottom: 20px; mask-image: linear-gradient(90deg, transparent 12%,#0003 41%,black 67%,black 93%,transparent); }
    .meadow-pokemon { left: 78%; bottom: 8%; height: 77%; }
    .meadow-pikachu { left: 90%; bottom: 15%; height: 24%; }
    .finder-tabs { gap: clamp(8px, 3vw, 18px); margin-top: 7px; }
    .finder-tabs a { font-size: .85rem; }
    .finder-controls { --filter-width: calc((100% - var(--tool-gap)) / 2); margin-block: 10px; }
    .finder-query { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; }
    .finder-query .board-search { grid-column: 1 / -1; width: 100%; max-width: none; }
    .finder-query .country-filter select { width: 100%; padding-left: 30px; }
    .finder-query .raid-country-select .pin { display: block; }
    .finder-queue-title h2 { font-size: 1.48rem; }
    .finder-board .thumb { width: 45px; height: 45px; }
}
@media (max-width: 370px) {
    .meadow-pokemon { left: 84%; height: 62%; }
    .meadow-pikachu { display: none; }
    .finder-summary { max-width: 77%; gap: 2px 9px; font-size: .78rem; }
    .finder-summary span + span::before { content: none; }
    .finder-tabs { justify-content: space-between; gap: 6px; }
    .finder-tabs a { font-size: .8rem; }
    .finder-tabs small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .finder-query .country-filter select { padding-inline: 24px 19px; }
    .finder-query .raid-country-select .pin { left: 8px; }
    .finder-board .hunt-heading { gap: 4px; }
    .finder-queue-title h2 { font-size: 1.35rem; }
    .finder-board .hunt-buttons { gap: 4px; }
    .finder-board .hunt-buttons :is(button,.refresh) { padding-inline: 6px; font-size: .79rem; }
}
