:root {
  color-scheme: dark;
  --bg: #101516; --panel: #171e20; --raised: #1d2527; --line: #303b3d;
  --text: #f1f2eb; --muted: #a5b1ad; --faint: #83918e;
  --salmon: #f17f61; --gold: #edbe76; --mint: #82d3ba; --blue: #9abfff; --lilac: #c9adf4;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: radial-gradient(ellipse at 34% 2%,#203131 0%,transparent 44%),var(--bg); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
a { color: var(--mint); text-underline-offset: 3px; }
svg.icon { display: block; width: 1em; height: 1em; flex: none; }
[data-icon] { display: inline-grid; place-items: center; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 30; transform: translateY(-160%); padding: 10px 14px; background: var(--panel); }
.skip:focus { transform: none; }
.site-header { height: 66px; padding: 0 clamp(16px,3vw,52px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #2b3738; background: #111819e8; }
.brand,.header-meta { display: flex; align-items: center; gap: 12px; }
.brand-mark { height: 35px; width: 35px; border-radius: 8px; background: var(--salmon); color: #181b1a; font-size: 24px; }
.brand strong,.brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 16px; letter-spacing: .12em; }
.brand small { font: 9px/1.2 var(--mono); color: var(--muted); letter-spacing: .19em; margin-top: 5px; }
.header-meta { gap: 17px; }
.game,.eyebrow,.snapshot,.map-caption,.map-scale,.region-text,.price-label,.result-count { font-family: var(--mono); }
.game { font-size: 11px; color: var(--muted); letter-spacing: .09em; white-space: nowrap; }
.game i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--salmon); margin: 0 5px 2px; }
.sources-button,.quiet-btn { background: transparent; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.sources-button:hover,.quiet-btn:hover { border-color: #71817b; color: var(--text); }
.quiet-btn[aria-pressed="true"] { background: #232e2f; color: #dce6dd; }
.main-shell { width: min(1720px,100%); padding: 0 clamp(16px,3vw,52px); margin: 0 auto; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 24px 0 21px; }
.eyebrow { color: var(--mint); letter-spacing: .15em; font-size: 10px; font-weight: 700; }
.eyebrow i { background: var(--mint); width: 15px; height: 1px; display: inline-block; vertical-align: 3px; margin-right: 3px; }
h1 { margin: 6px 0 4px; font-size: clamp(29px,4vw,58px); line-height: 1.03; letter-spacing: -.047em; }
h1 span { color: var(--salmon); }
.intro p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.snapshot { display: flex; align-items: flex-start; gap: 8px; padding: 0 0 3px; white-space: nowrap; }
.snapshot-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-top: 4px; box-shadow: 0 0 0 4px #82d3ba15; }
.snapshot b,.snapshot div > span { display: block; }
.snapshot b { color: var(--mint); font-size: 10px; letter-spacing: .11em; }
.snapshot div > span { color: var(--muted); font-size: 11px; margin-top: 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.modes { display: flex; gap: 6px; flex-wrap: wrap; }
.mode { display: flex; align-items: center; justify-content: center; gap: 7px; background: #1a2324; border: 1px solid #354344; border-radius: 8px; color: #d4dcd5; padding: 8px 12px; min-height: 38px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.mode svg { font-size: 16px; color: var(--mode-color,var(--muted)); }
.mode:hover { border-color: var(--mode-color,#71817b); }
.mode[aria-pressed="true"] { background: var(--salmon); color: #191c1a; border-color: var(--salmon); }
.mode[aria-pressed="true"] svg { color: inherit; }
.search { display: flex; align-items: center; min-height: 39px; gap: 9px; padding: 0 10px; width: clamp(245px,30vw,420px); border: 1px solid #354344; border-radius: 8px; background: #141d1e; color: var(--mint); }
.search:focus-within { border-color: var(--mint); }
.search input { outline: none; width: 100%; min-width: 0; padding: 8px 0; background: transparent; border: 0; font-size: 13px; }
.search input:focus-visible { outline: none; }
.search input::placeholder { color: var(--muted); }
kbd { font: 11px var(--mono); color: var(--muted); border: 1px solid #384747; border-radius: 4px; padding: 1px 5px; }
.workbench { display: grid; grid-template-columns: minmax(0,1fr) clamp(335px,30.5vw,462px); gap: 12px; align-items: stretch; --board-height: clamp(420px,calc(100dvh - 298px),900px); }
.map-panel,.list-panel { min-width: 0; height: var(--board-height); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.map-panel { display: flex; flex-direction: column; }
.panel-bar,.map-footer { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 13px; }
.panel-bar { min-height: 44px; border-bottom: 1px solid var(--line); }
.panel-bar > div { display: flex; align-items: center; gap: 9px; }
.panel-bar b { font-size: 13px; }
.map-indicator { color: var(--mint); font-size: 17px; }
.bar-divider { height: 14px; border-left: 1px solid var(--line); }
.map-caption { font-size: 10px; letter-spacing: .15em; color: var(--faint); }
.map-footer { min-height: 37px; border-top: 1px solid var(--line); }
.legend { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: #c2ccc5; font-size: 10.5px; }
.legend svg { color: var(--key-color); font-size: 14px; }
.map-hint { font-size: 10px; color: var(--faint); white-space: nowrap; }
.map-viewport { background: #15262a; position: relative; flex: 1; min-height: 0; overflow: hidden; isolation: isolate; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.map-viewport.is-zoomed { touch-action: none; }
.map-viewport.is-dragging { cursor: grabbing; }
.map-world { position: absolute; top: 0; left: 0; width: 1px; height: 1px; transform-origin: 0 0; }
.map-image,.districts,.markers { position: absolute; width: 100%; height: 100%; inset: 0; }
.map-image,.districts,.map-grid { pointer-events: none; }
.map-image { display: block; }
.map-grid { position: absolute; inset: 0; z-index: 1; background-image: linear-gradient(#a9ceca09 1px,transparent 1px),linear-gradient(90deg,#a9ceca09 1px,transparent 1px); background-size: 46px 46px; box-shadow: inset 0 0 75px #0a121940; }
.map-compass { z-index: 2; position: absolute; top: 11px; left: 12px; width: 38px; text-align: center; color: #b5d2c7; pointer-events: none; font: 11px var(--mono); }
.map-compass span { display: block; }
.map-compass svg { width: 24px; }
.district { position: absolute; transform: translate(-50%,-50%); font: 700 clamp(9px,1.1vw,14px) var(--mono); letter-spacing: .15em; text-transform: uppercase; color: #c2d0bd; text-shadow: 0 2px 3px #101b1b,0 0 6px #101b1b,0 0 5px #101b1b; white-space: nowrap; }
.districts:empty { display: none; }
.map-controls { position: absolute; z-index: 3; right: 11px; bottom: 12px; display: grid; border: 1px solid #516461; border-radius: 8px; background: #152022f2; overflow: hidden; }
.map-controls button { border: 0; border-bottom: 1px solid #384948; background: transparent; width: 36px; height: 35px; font-size: 18px; }
.map-controls button:last-child { border: 0; }
.map-controls button:hover { background: #324643; }
.map-scale { position: absolute; z-index: 2; left: 12px; bottom: 12px; color: #c0d3cc; background: #142021dc; border: 1px solid #415452; padding: 4px 7px; border-radius: 4px; font-size: 10px; pointer-events: none; }
.pin { position: absolute; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; transform: translate(-50%,-50%); color: var(--pin-color,#e0eee7); background: #172123; border: 1px solid var(--pin-color,#c1c9bf); border-radius: 50%; z-index: 2; box-shadow: 0 2px 6px #0009; }
.pin[data-strong="true"] { width: 30px; height: 30px; }
.pin svg { font-size: 14px; }
.pin[data-strong="true"] svg { font-size: 17px; }
.pin:hover,.pin:focus-visible,.pin.selected { z-index: 4; color: #151c1c; background: var(--pin-color,#c1c9bf); }
.pin.selected { box-shadow: 0 0 0 4px #ffffff35,0 2px 8px #000a; }
.subpin { position: absolute; transform: translate(-50%,-50%); display: grid; place-items: center; width: 20px; height: 20px; z-index: 3; background: #241e33; color: var(--lilac); border: 1px solid currentColor; border-radius: 4px; font-size: 12px; box-shadow: 0 1px 5px #0a0910bf; }
.subpin.focus-point { width: 32px; height: 32px; z-index: 5; font-size: 18px; box-shadow: 0 0 0 4px #c9adf444,0 1px 8px #05080bbb; }
.pin-label { display: none; position: absolute; top: 50%; left: calc(100% + 5px); transform: translateY(-50%); background: #121b1eeb; border: 1px solid #526561; padding: 3px 5px; border-radius: 4px; color: var(--text); font-size: 10px; line-height: 1.1; font-weight: 650; white-space: nowrap; pointer-events: none; }
.pin.left .pin-label { left: auto; right: calc(100% + 5px); }
.show-labels .pin[data-label="true"] .pin-label,.pin:hover .pin-label,.pin.selected .pin-label,.pin:focus-visible .pin-label { display: block; }
.map-viewport.is-dragging .pin { pointer-events: none; }
.list-panel { display: flex; flex-direction: column; }
.list-head { border-bottom: 1px solid var(--line); padding: 12px 12px 8px; flex: none; }
.list-title { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; }
.list-title h2 { font-size: 19px; line-height: 1.15; margin: 0; letter-spacing: -.025em; }
.result-count { background: #293634; color: #cce7db; border: 1px solid #3c4c46; border-radius: 20px; font-size: 10px; min-width: 26px; padding: 2px 5px; text-align: center; }
.refiners { display: flex; gap: 6px; }
.refiners label,.sort-row label { display: flex; align-items: center; min-width: 0; color: var(--muted); }
.refiners label { flex: 1; gap: 4px; border: 1px solid #3a4746; border-radius: 6px; padding: 0 5px 0 7px; background: #141c1d; }
.refiners label svg { font-size: 13px; color: var(--mint); }
.refiners select,.sort-row select { min-width: 0; padding: 6px 0; width: 100%; font-size: 11.5px; border: 0; background: transparent; }
select option { background: #1b2526; }
.sort-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding-top: 5px; color: var(--faint); font-size: 10.5px; }
.sort-row select { color: #b9c8c1; padding: 2px 0; }
.sort-row label { gap: 4px; }
.place-list { overflow-y: auto; min-height: 0; padding: 8px; overscroll-behavior: contain; scrollbar-color: #4b5f58 #171e20; scrollbar-width: thin; }
.place-card { padding: 10px 11px 8px; border-radius: 8px; border: 1px solid #364445; background: #1d2527; margin-bottom: 6px; transition: border-color .12s,background .12s; }
.place-card:hover,.place-card.selected { border-color: #60756e; background: #222c2d; }
.place-top { display: flex; align-items: flex-start; gap: 8px; }
.place-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid color-mix(in srgb,var(--spot-color) 50%,transparent); border-radius: 7px; color: var(--spot-color); background: color-mix(in srgb,var(--spot-color) 10%,transparent); font-size: 17px; }
.place-heading { min-width: 0; flex: 1; }
.place-heading h3 { margin: 0; font-size: 14px; line-height: 1.2; }
.region-text { color: var(--faint); font-size: 9px; line-height: 1.3; display: block; letter-spacing: .075em; text-transform: uppercase; margin: 3px 0 0; }
.price { text-align: right; white-space: nowrap; align-self: center; }
.price b { color: var(--gold); font-size: 14px; font-variant-numeric: tabular-nums; }
.price-label { font-size: 8px; display: block; color: var(--faint); }
.place-loot { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; border: 1px solid #435252; background: #172022; border-radius: 4px; color: #e2e8e0; font-size: 10.5px; line-height: 1.1; }
.chip::before { content: ""; height: 5px; width: 5px; border-radius: 50%; background: var(--rarity-color,#929e97); flex: none; }
.chip svg { color: var(--gold); font-size: 11px; }
.chip.possible { border-style: dashed; }
.chip sup { color: var(--muted); font: 9px var(--mono); }
.chip.more::before { display: none; }
.card-foot { border-top: 1px solid #384645; padding-top: 5px; display: flex; gap: 8px; justify-content: space-between; align-items: center; }
.access-info { color: #aebeb6; font-size: 10px; min-width: 0; display: inline-flex; align-items: center; gap: 4px; }
.access-info svg { color: var(--gold); font-size: 13px; }
.detail-button,.plain-btn { display: flex; align-items: center; gap: 5px; padding: 4px 0 4px 5px; border: 0; background: none; color: var(--mint); white-space: nowrap; font-size: 11px; font-weight: 650; }
.detail-button:hover,.plain-btn:hover { text-decoration: underline; }
.empty { text-align: center; color: var(--muted); padding: 38px 14px; font-size: 13px; }
.empty b { color: var(--text); display: block; margin-bottom: 6px; font-size: 16px; }
.empty button { margin: 10px auto 0; }
.site-footer { display: flex; justify-content: space-between; gap: 8px; padding: 11px 0; color: var(--faint); font-size: 10.5px; }
.site-footer button { display: flex; gap: 5px; border: 0; background: transparent; color: var(--muted); padding: 0; text-align: left; }
.site-footer button:hover { color: var(--mint); }
dialog { color: var(--text); background: var(--panel); border: 1px solid #576761; border-radius: 14px; padding: 0; width: min(690px,calc(100% - 22px)); max-height: min(86dvh,820px); box-shadow: 0 16px 65px #000a; }
dialog::backdrop { background: #090d0cba; backdrop-filter: blur(3px); }
.dialog-top { position: sticky; z-index: 2; top: 0; display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); background: #192223; padding: 16px 20px; }
.dialog-top h2 { font-size: clamp(20px,4vw,28px); line-height: 1.1; margin: 5px 0 0; }
.close { display: grid; place-items: center; background: #263233; border: 1px solid #4e5f5a; border-radius: 7px; width: 35px; height: 35px; font-size: 19px; flex: none; }
.close:hover { background: #465751; }
.dialog-body { padding: 14px 20px 22px; }
.dialog-body p { color: #bccac1; font-size: 13px; line-height: 1.55; margin: 0 0 11px; }
.dialog-body h3 { margin: 17px 0 8px; font-size: 16px; }
.full-detail { padding: 9px 11px; border: 1px solid #3d4d47; border-radius: 7px; }
.full-detail summary { color: var(--mint); cursor: pointer; font-size: 13px; }
.share-fallback { width: min(390px,100%); background: #121b1c; border: 1px solid var(--line); border-radius: 6px; padding: 7px; font-size: 12px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0 14px; }
.action { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border: 1px solid #52645e; border-radius: 7px; background: #222f2d; color: #dbece2; padding: 7px 9px; }
.action:hover { background: #344741; }
.callout { border: 1px solid #635239; border-left: 3px solid var(--gold); border-radius: 6px; padding: 9px 10px; background: #272522; margin-bottom: 9px; }
.callout strong { color: var(--gold); font-size: 13px; }
.callout p { margin: 4px 0 0; }
.detail-group { margin: 14px 0; }
.detail-group h3 { display: flex; align-items: center; gap: 6px; color: #dfe8df; }
.detail-group h3 svg { color: var(--mint); }
.loot-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; align-items: start; border-top: 1px solid #344240; padding: 8px 3px; }
.loot-row strong { font-size: 13px; line-height: 1.35; }
.loot-row small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.45; margin-top: 2px; overflow-wrap: anywhere; }
.loot-row .chip { white-space: nowrap; color: var(--rarity-color,#abb8b2); }
.loot-row .row-value { color: var(--gold); text-align: right; font: 11px var(--mono); display: block; margin-top: 4px; }
.spot-list { margin-top: 4px; font-size: 11px; color: var(--mint); }
.spot-list summary { cursor: pointer; }
.spot-list > div { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.source-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; }
.source-links a { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; }
.method-list { margin: 4px 0 14px; padding-left: 18px; color: #bccac1; font-size: 13px; line-height: 1.55; }
.method-list li { margin: 6px 0; }
.dialog-body .method-credit { margin-top: 16px; color: var(--faint); }
.noscript { padding: 12px; }
@media (max-width: 1040px) { .map-hint { display: none; } .mode { padding-inline: 9px; } }
@media (max-width: 770px) {
  .site-header { height: 55px; }
  .intro { padding: 17px 0 15px; align-items: center; }
  .snapshot { display: none; }
  .intro p { font-size: 13px; }
  .toolbar { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
  .search { width: 100%; }
  .workbench { display: flex; flex-direction: column; }
  .map-panel { height: clamp(315px,55vw,490px); }
  .list-panel { height: auto; min-height: 240px; }
  .place-list { overflow: visible; }
  .pin { width: 21px; height: 21px; }
  .pin[data-strong="true"] { width: 25px; height: 25px; }
  .pin-label { font-size: 9px; padding: 2px 3px; }
  .show-labels .pin[data-label="true"]:not(.selected):not(:hover):not(:focus-visible) .pin-label { display: none; }
}
@media (max-width: 415px) {
  .game { display: none; }
  .modes { gap: 4px; }
  .mode { min-height: 36px; padding: 6px; font-size: 11px; gap: 3px; }
  .mode svg { font-size: 13px; }
  .site-footer { flex-direction: column; }
  .dialog-body,.dialog-top { padding-left: 13px; padding-right: 13px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto!important; transition: none!important; } }
