:root {
  color-scheme: dark;
  --bg: #080a0d;
  --panel: #10151c;
  --panel-strong: #161d26;
  --gold: #e4ba68;
  --gold-bright: #ffda8d;
  --text: #e4dfd3;
  --strong: #fff2db;
  --muted: #b4ad9f;
  --line: #302d29;
  --border: #554435;
  --shadow: 0 22px 60px #0007;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); min-width: 280px; line-height: 1.5; background: radial-gradient(ellipse at 65% 0%, #1b1612 0%, #0c1015 43%, var(--bg) 77%) fixed; }
a { color: var(--gold); text-underline-offset: .2em; }
a:hover { color: var(--gold-bright); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.visually-hidden, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 20; padding: .7rem; margin: .5rem; background: var(--panel); }
.topbar { background: #090b0eed; border-bottom: 1px solid #a77d422c; }
.topbar-inner { min-height: 64px; max-width: 1600px; margin: auto; padding: 8px clamp(14px, 3.4vw, 42px); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--strong); font-family: Georgia, "Times New Roman", serif; font-size: 1.21rem; font-weight: bold; white-space: nowrap; }
.brand small { color: var(--muted); font-family: inherit; font-size: .8rem; margin-left: .16rem; }
.topbar nav { display: flex; gap: clamp(8px, 2vw, 25px); align-items: center; flex-wrap: wrap; justify-content: end; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: .88rem; }
.topbar nav a[aria-current="page"] { color: var(--gold-bright); }
.page { max-width: 1600px; margin: 0 auto; padding: 20px clamp(12px, 3.4vw, 42px) 0; }
.hero { min-height: 162px; padding: 16px clamp(18px, 3vw, 36px); display: flex; justify-content: space-between; align-items: end; gap: 16px; background: linear-gradient(90deg, #0f1116 23%, #151214d6 53%, #17121772), url(assets/season-2.jpg) 72% 24% / cover; border: 1px solid var(--border); border-radius: 19px; overflow: hidden; }
.hero h1 { font: 700 clamp(2.6rem, 4.5vw, 4rem)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.045em; color: var(--strong); margin: 5px 0 7px; }
.hero p:not(.eyebrow) { color: #ece0cd; max-width: 63ch; }
.eyebrow { color: var(--gold); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow a { text-decoration: none; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; border: 1px solid var(--line); background: #141820; border-radius: 9px; padding: .45rem .88rem; text-decoration: none; font-size: .88rem; font-weight: 650; }
.button-gold { color: var(--gold-bright); border-color: #987042; background: #2b2118f7; white-space: nowrap; }
.button:hover { background: #352a20; }
.map-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 13px 0; }
.map-picker button { text-align: left; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 9px 6px 6px; border: 1px solid var(--line); background: #11151b; border-radius: 11px; color: var(--text); font-weight: 650; font-size: .92rem; }
.map-picker button:hover { border-color: #866948; background: #1c1c20; }
.map-picker button[aria-pressed="true"] { border-color: #b78a4f; color: var(--strong); background: linear-gradient(120deg, #31251a, #1d1a19); }
.map-picker img { width: 48px; height: 42px; object-fit: cover; border-radius: 5px; }
.map-picker small { display: block; font-size: .76rem; color: var(--muted); font-weight: 450; }
.workspace { display: grid; align-items: start; grid-template-columns: minmax(0, 1fr) minmax(315px, 365px); gap: 14px; }
.card { background: linear-gradient(160deg, var(--panel-strong), var(--panel) 40%); border: 1px solid var(--line); border-radius: 15px; box-shadow: var(--shadow); }
.atlas { min-width: 0; position: relative; }
.map-head { padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.map-head h2, .inspector h2 { color: var(--strong); font: 700 1.45rem/1.13 Georgia, "Times New Roman", serif; }
.map-head a { font-size: .81rem; }
.variant { display: flex; gap: 5px; flex-wrap: wrap; justify-content: end; }
.variant button { font-size: .82rem; color: var(--muted); background: #11161d; border: 1px solid var(--line); border-radius: 7px; padding: 6px 9px; min-height: 34px; }
.variant button[aria-pressed="true"] { color: var(--gold-bright); border-color: #987042; background: #33261c; }
.viewport { height: clamp(510px, 67vh, 880px); overflow: hidden; background: radial-gradient(ellipse at center, #302820 1%, #101318 63%, #080a0d 100%); position: relative; isolation: isolate; touch-action: none; cursor: grab; overscroll-behavior: contain; }
.viewport.dragging { cursor: grabbing; }
.map-content { position: absolute; top: 0; left: 0; transform-origin: 0 0; pointer-events: none; user-select: none; }
.map-content > img { width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; }
.markers { position: absolute; inset: 0; pointer-events: none; }
.marker { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; padding: 4px; background: none; color: var(--strong); width: 34px; height: 34px; transform-origin: center 17px; transform: translate(-50%, -17px) scale(var(--marker-scale, 1)); pointer-events: auto; white-space: nowrap; z-index: 2; }
.marker-icon { width: 27px; height: 27px; flex: 0 0 auto; border: 1px solid #cba46d; border-radius: 8px; background: #1a1511ed; display: grid; place-items: center; box-shadow: 0 2px 10px #000e; }
.marker-icon img { width: 18px; height: 18px; object-fit: contain; }
.marker-label { position: absolute; top: 36px; pointer-events: none; padding: 2px 6px; border: 1px solid #7f624861; border-radius: 4px; background: #110f0fee; color: #ffe1a6; font-size: .73rem; font-weight: 750; line-height: 1.4; text-shadow: 0 1px 2px #000; }
.marker.landmark .marker-icon { width: 23px; height: 23px; border-color: #a9a9a0; background: #191f26f0; }
.landmark-dot { display: inline-block; width: 8px; height: 8px; border: 1.5px solid #e2d5c1; transform: rotate(45deg); border-radius: 1px; }
.map-foot .landmark-dot { margin: 0 3px; }
.marker.landmark { height: 31px; transform-origin: center 15.5px; transform: translate(-50%, -15.5px) scale(var(--marker-scale, 1)); }
.marker.landmark .marker-label { top: 32px; display: none; }
.marker:hover, .marker:focus-visible, .marker[aria-pressed="true"] { z-index: 4; }
.marker.landmark:hover .marker-label, .marker.landmark:focus-visible .marker-label { display: block; color: #f5eddb; }
.marker[aria-pressed="true"] .marker-icon { box-shadow: 0 0 0 4px #eaba6366, 0 2px 10px #000; border-color: #ffde9a; }
.marker[aria-pressed="true"] .marker-label { background: #392913; border-color: #d7a148; }
.marker.muted { opacity: .32; }
.encounter-marker {
  --pin-offset: 29px;
  z-index: 3;
  transform: translate(-50%, -17px) scale(var(--marker-scale, 1)) translate(var(--pin-offset), -9px);
}
.encounter-marker.challenge { --pin-offset: -29px; }
.encounter-marker:is(.underlord, .altar) {
  transform: translate(-50%, -17px) scale(var(--marker-scale, 1));
}
.encounter-marker.underlord .marker-icon { border-color: #eeaa87; background: #522528; }
.encounter-marker.altar .marker-icon { border-color: #85d7cc; background: #162d30; }
.encounter-marker.altar[aria-pressed="true"] .marker-icon { box-shadow: 0 0 0 4px #77d0c45e, 0 2px 10px #000; }
.encounter-marker.linked-soulgnawer .marker-icon { border-color: #f6a986; background: #471f27; }
.encounter-marker.altar .marker-label { color: #cefff5; border-color: #6fbaa98c; }
.encounter-marker.linked-soulgnawer .marker-label { color: #ffe0d1; border-color: #e9947a9e; }
.encounter-marker .marker-icon { border-color: #f1c374; background: #342315; }
.encounter-marker.challenge .marker-icon { border-color: #e9a08c; background: #371e21; }
.encounter-marker .marker-icon img { width: 21px; height: 21px; }
.encounter-marker .marker-label, .encounter-teaser {
  position: absolute;
  top: auto;
  bottom: 35px;
  display: none;
  pointer-events: none;
}
.encounter-marker:is(:hover, :focus-visible) .marker-label,
.viewport:is([data-zoom="names"], [data-zoom="rewards"]) .encounter-marker.boss .marker-label,
.viewport[data-zoom="rewards"] .encounter-marker.challenge .marker-label { display: block; }
.viewport[data-zoom="overview"] .encounter-marker:is(.challenge, .underlord) { display: none; }
.viewport:is([data-zoom="names"], [data-zoom="rewards"]) .encounter-marker:is(.underlord, .altar) .marker-label,
.encounter-marker.linked-soulgnawer .marker-label { display: block; }
.viewport[data-zoom="rewards"] .encounter-teaser { display: block; }
.viewport[data-zoom="rewards"] .encounter-marker .marker-label { bottom: 56px; }
.viewport .encounter-marker.linked-soulgnawer .marker-label { left: 38px; top: 4px; bottom: auto; }
.viewport .encounter-marker.linked-soulgnawer .encounter-teaser { left: 38px; top: 27px; bottom: auto; }
.viewport.showing-chest-spawns .encounter-marker.challenge:not(:hover, :focus-visible, [aria-pressed="true"])
  :is(.marker-label, .encounter-teaser) { display: none; }
.chest-pin {
  z-index: 1;
  width: 24px;
  height: 24px;
  transform: translate(-50%, -12px) scale(var(--marker-scale, 1));
  transform-origin: center 12px;
  border: 1px solid #dbb66f;
  border-radius: 50%;
  background: #272013f7;
  color: #ffe4aa;
  font-weight: 750;
  font-size: .71rem;
}
.chest-pin img { width: 14px; height: 14px; object-fit: contain; }
.chest-pin.cluster { background: #573b20f5; }
.chest-pin:hover, .chest-pin:focus-visible { z-index: 1; border-color: #fff0b8; background: #604723; }
.chest-spawn-choices { display: grid; gap: 4px; max-height: 170px; overflow: auto; margin-top: 7px; }
.chest-spawn-choice {
  display: flex;
  align-items: baseline;
  gap: 5px 8px;
  flex-wrap: wrap;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 4px 6px;
  background: #1e1a1a;
  color: var(--gold-bright);
}
.chest-spawn-choice:hover { border-color: #d7a148; }
.chest-spawn-choice small { color: var(--muted); }
.encounter-teaser {
  padding: 1px 6px;
  border-radius: 4px;
  background: #171011f5;
  color: #ffecd2;
  font-size: .67rem;
}
.encounter-marker[aria-pressed="true"] .marker-icon { border-color: #fff3cf; }
.encounter-preview {
  position: absolute;
  z-index: 5;
  left: 12px;
  bottom: 12px;
  width: min(270px, calc(100% - 80px));
  padding: 9px 12px;
  border: 1px solid #9c744f;
  border-radius: 9px;
  background: #151319f5;
  box-shadow: 0 5px 22px #000b;
  font-size: .82rem;
  cursor: default;
}
.preview-heading { display: grid; padding-right: 24px; line-height: 1.3; }
.preview-heading span { color: var(--gold); font-size: .71rem; }
.preview-heading strong { color: var(--strong); font-size: .95rem; }
.encounter-preview p { margin-top: 5px; color: var(--muted); }
.preview-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 5px; }
.preview-actions button, .preview-close { color: var(--gold-bright); background: transparent; border: 0; }
.preview-actions button { padding: 0; min-height: 28px; text-decoration: underline; text-underline-offset: .2em; }
.preview-close { position: absolute; top: 3px; right: 3px; width: 31px; height: 31px; font-size: 1.2rem; }
#panel-encounters { display: grid; gap: 7px; font-size: .86rem; }
#panel-encounters h3 { color: var(--strong); font: 700 1.1rem Georgia, "Times New Roman", serif; }
.encounter-list { display: grid; gap: 5px; margin-top: 6px; }
.encounter-choice {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  text-align: left;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #151a21;
}
.encounter-choice:hover, .encounter-choice[aria-pressed="true"] { color: var(--gold-bright); border-color: var(--gold); }
.encounter-choice small, .encounter-category { color: var(--muted); font-size: .78rem; }
.altar-details { display: grid; gap: 7px; padding: 9px; border: 1px solid #42615c; border-radius: 8px; background: #142224; }
.ritual-reward {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  border: 1px solid #6f7954;
  border-radius: 6px;
  background: #232b23;
}
.ritual-reward .ritual-reward-title { margin: 0; color: #e7cc8c; font-size: .75rem; }
.ritual-reward a { width: fit-content; max-width: 100%; font-weight: 700; color: #ffda8d; }
.encounter-preview .ritual-reward { margin-top: 6px; }
.prayer-shop {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid #574b37;
  border-radius: 8px;
  background: #1c1b1c;
}
.prayer-shop h4 { margin: 0; color: var(--strong); }
.prayer-coin-picker { display: grid; gap: 3px; margin-bottom: 8px; color: var(--muted); }
.prayer-coin-picker select {
  width: 100%;
  min-height: 35px;
  padding: 4px 6px;
  color: var(--strong);
  background: #10151c;
  border: 1px solid var(--border);
  border-radius: 6px;
}
.prayer-offers { display: grid; gap: 4px; }
.prayer-prices { width: 100%; border-collapse: collapse; font-size: .78rem; }
.prayer-prices th, .prayer-prices td { padding: 5px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prayer-prices th { text-align: left; color: var(--muted); }
.prayer-prices :is(th, td):not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.prayer-unlock { display: block; color: var(--muted); font-size: .72rem; }
.altar-details ol { margin: 0; padding-left: 21px; }
.altar-details li + li { margin-top: 3px; }
.altar-details .encounter-category { color: #a7e3db; }
.enemy-card { display: grid; gap: 6px; padding: 9px; border: 1px solid var(--line); border-radius: 8px; background: #141921; }
.enemy-card h4 { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.enemy-card h4 small { color: var(--muted); font-weight: 500; }
.combat-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 0; }
.combat-stats div { padding: 4px; background: #0f1118; border-radius: 4px; text-align: center; }
.combat-stats dt { color: var(--muted); font-size: .72rem; }
.combat-stats dd { margin: 0; font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--strong); }
.featured-drop { font-size: .82rem; }
.combat-pool summary small { font-size: .74rem; }

.map-tools { display: grid; position: absolute; top: 13px; right: 13px; border: 1px solid var(--border); background: #11131aee; border-radius: 9px; overflow: hidden; z-index: 5; cursor: default; }
.map-tools button { display: grid; place-items: center; width: 36px; min-height: 36px; padding: 0; color: var(--strong); background: transparent; border: 0; font-size: 1.35rem; line-height: 1; }
.map-tools button + button { border-top: 1px solid var(--line); }
.map-tools button:hover { background: #48311e; }
.map-tools button:focus-visible { outline-offset: -3px; }
.reset-icon { width: 13px; height: 13px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
.reset-icon::after { content: ""; position: absolute; inset: 4px; background: currentColor; border-radius: inherit; }
.expand-icon { width: 13px; height: 13px; border: 1.5px dashed currentColor; }
.map-scale { position: absolute; bottom: 12px; right: 14px; color: #f0d7a9; background: #151215df; padding: 3px 7px; border: 1px solid var(--border); border-radius: 5px; font-size: .75rem; }
.map-image-error { position: absolute; inset: 40% 15%; text-align: center; color: var(--gold-bright); }
.atlas:fullscreen { width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: 0; }
.atlas:fullscreen .viewport { flex: 1; min-height: 0; height: auto; }
.atlas:fullscreen #world-layers { max-height: 22vh; overflow: auto; }
.map-foot { display: flex; gap: 7px 14px; align-items: center; flex-wrap: wrap; padding: 9px 14px 0; font-size: .83rem; color: var(--muted); }
.map-foot span, .map-foot label { display: flex; align-items: center; gap: 5px; }
.map-foot a { margin-left: auto; }
.map-foot input { accent-color: var(--gold); }
.map-help { color: var(--muted); font-size: .8rem; padding: 4px 14px 10px; }
.inspector { min-height: 590px; min-width: 0; overflow: hidden; }
.inspector-header { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px 10px; }
.inspector-header p { margin-bottom: 3px; }
.filters { padding: 0 15px 12px; display: grid; gap: 8px; }
.filters label { min-width: 0; display: grid; gap: 3px; color: var(--muted); font-size: .84rem; }
.input-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.filters :is(input, select), .world-query :is(input, select) { width: 100%; min-height: 38px; background-color: #0d1219; border: 1px solid #453b30; border-radius: 7px; color: var(--strong); padding: 6px 8px; }
:is(.filters, .world-query) select { appearance: none; padding-right: 23px; background-image: linear-gradient(45deg, transparent 50%, #b49a71 50%),linear-gradient(135deg, #b49a71 50%, transparent 50%); background-size: 4px 4px; background-repeat: no-repeat; background-position: calc(100% - 12px) 52%, calc(100% - 8px) 52%; }
:is(.filters, .world-query) input::placeholder { color: #a39a8b; opacity: 1; font-size: .86rem; }
.tabs { display: flex; padding: 0 15px; gap: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 8px 2px 7px; font-size: .88rem; }
.tabs button[aria-selected="true"] { color: var(--gold-bright); font-weight: 700; border-bottom-color: var(--gold); }
.results-pane { padding: 10px 15px 13px; max-height: 430px; overflow: auto; scrollbar-color: #665037 #141820; scrollbar-width: thin; }
#status { font-size: .81rem; color: var(--muted); margin-bottom: 9px; }
#results { display: grid; gap: 7px; }
.result, .zone-result { border: 1px solid #44382d; border-radius: 8px; background: #151a21; }
.result summary { display: flex; justify-content: space-between; align-items: center; gap: 6px; cursor: pointer; list-style: none; min-height: 39px; padding: 6px 8px; color: var(--strong); font-size: .87rem; }
.result summary::-webkit-details-marker { display: none; }
.result summary::after { content: '+'; color: var(--gold); margin-left: 3px; }
.result[open] summary::after { content: '−'; }
.result summary strong { margin-right: auto; }
.result summary small { color: var(--muted); white-space: nowrap; }
.result-body { padding: 7px 9px 10px; border-top: 1px solid var(--line); }
.result-meta, .pool-note { font-size: .78rem; color: var(--muted); }
.result-meta a { margin-right: 5px; }
.pool-heading { font-size: .81rem; color: #f5d6a3; margin: 8px 0 4px; }
.item-list { display: grid; gap: 2px; list-style: none; margin: 0; padding: 0; }
.item-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 9px; font-size: .83rem; border-bottom: 1px solid #433a2b77; padding: 2px 0; }
.item-list a { color: var(--item-color, var(--text)); text-decoration: none; }
.item-list a:hover { text-decoration: underline; }
.item-list small { color: var(--muted); font-size: .73rem; }
.more-items, .more-results { margin-top: 7px; width: 100%; min-height: 34px; font-size: .8rem; }
.zone-result { color: var(--text); text-align: left; display: flex; justify-content: space-between; padding: 8px; gap: 8px; }
.zone-result:hover { border-color: var(--gold); }
.zone-result small { color: var(--muted); }
#panel-guide { display: grid; gap: 10px; font-size: .9rem; }
#panel-guide h3 { color: var(--strong); font: 700 1.16rem Georgia, "Times New Roman", serif; }
#panel-guide ul { margin: 0; padding-left: 19px; }
#panel-guide li + li { margin-top: 4px; }
#panel-guide .guide-links { display: flex; flex-wrap: wrap; gap: 8px 13px; }
.reference { margin-top: 14px; padding: 15px 17px; }
.reference h2 { color: var(--strong); font: 700 1.23rem Georgia, "Times New Roman", serif; margin-bottom: 4px; }
.reference p { color: var(--muted); font-size: .91rem; }
.reference details { margin-top: 9px; }
.reference summary { width: fit-content; cursor: pointer; font-size: .9rem; color: var(--gold); }
.reference details p { margin-top: 5px; }
.reference nav, footer { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.reference nav { margin-top: 9px; font-size: .86rem; }
footer { font-size: .8rem; color: var(--muted); justify-content: space-between; padding: 16px 1px 25px; }
.noscript { padding: 12px; margin-top: 13px; }
@media (min-width: 1400px) {
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(365px, 405px); }
}
@media (max-width: 950px) {
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(275px, 320px); gap: 9px; }
  .viewport { height: clamp(400px, 64vh, 680px); }
  .map-picker button { font-size: .84rem; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .viewport { height: clamp(300px, 58vh, 610px); }
  .inspector { min-height: 0; }
  .results-pane { max-height: 490px; }
  .map-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-picker img { width: 39px; height: 36px; }
  .map-picker small { font-size: .72rem; }
  .map-foot a { margin-left: 0; }
}
@media (max-width: 440px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: 3px; }
  .topbar nav { justify-content: start; padding: 1px 4px 4px; }
  .brand img { width: 30px; height: 30px; }
  .hero { flex-direction: column; align-items: start; padding: 14px; }
  .hero h1 { font-size: clamp(2rem, 12vw, 2.9rem); }
  .hero p:not(.eyebrow) { font-size: .92rem; }
  .map-head { align-items: flex-start; flex-direction: column; }
  .variant { justify-content: start; }
  .marker-label { font-size: .66rem; }
  .map-picker button { gap: 6px; line-height: 1.25; }
  .map-picker small { margin-top: 2px; }
}

.map-layers {
  margin: 8px 14px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #151921;
  font-size: .83rem;
}
.map-layers > summary { padding: 7px 10px; cursor: pointer; color: var(--strong); }
#world-layer-count { float: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.world-layer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 174px), 1fr));
  gap: 4px 9px;
  padding: 0 10px;
}
.world-layer-actions { display: flex; flex-wrap: wrap; gap: 5px 14px; align-items: center; padding: 6px 10px 8px; }
.world-layer-actions:empty { display: none; }
.world-toggle { display: flex; gap: 6px; align-items: center; min-height: 31px; cursor: pointer; }
.world-toggle small { margin-left: auto; padding-right: 4px; color: var(--muted); }
.world-toggle input { accent-color: var(--gold); }
.world-text-button { padding: 4px 0; border: 0; background: none; color: var(--gold-bright); text-decoration: underline; }
.world-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--point-color);
  border-radius: 6px;
  background: #151921;
  color: var(--point-color);
  font: 800 .88rem/1 system-ui, sans-serif;
  width: 21px;
  height: 21px;
}
.world-pin { z-index: 1; }
.world-pin .world-icon { width: 25px; height: 25px; font-size: 1rem; box-shadow: 0 2px 6px #000e; }
.world-pin.world-cluster .world-icon { min-width: 25px; width: auto; padding: 0 4px; border-radius: 50%; font-size: .72rem; }
.world-pin.mixed-cluster .world-icon { color: #f8dcab; border-color: #f8dcab; border-style: double; }
.world-pin[aria-pressed="true"], .world-pin:hover, .world-pin:focus-visible { z-index: 5; }
.world-pin[aria-pressed="true"] .world-icon { outline: 2px solid #fae8bd; outline-offset: 2px; }
.world-pin .marker-label { display: none; z-index: 1; }
.world-pin:is(:hover, :focus-visible, [aria-pressed="true"]) .marker-label,
.show-world-labels .world-pin .marker-label { display: block; }
.world-destination .world-icon { border-style: dashed; }
.world-route { position: absolute; height: calc(3px * var(--marker-scale)); transform-origin: left center; background: repeating-linear-gradient(90deg, #aaf3ee 0, #aaf3ee 5px, #0009 5px, #0009 8px); opacity: .8; }
#world-preview { width: min(310px, calc(100% - 64px)); }
#world-preview .chest-spawn-choices { max-height: min(135px, 28vh); }
.world-query { display: grid; gap: 7px; }
.world-query label { display: grid; gap: 3px; color: var(--muted); font-size: .84rem; }
#world-status { margin-top: 9px; color: var(--muted); font-size: .83rem; }
.world-choice { width: 100%; min-width: 0; align-items: center; }
.world-choice-name, .world-detail-heading { display: flex; min-width: 0; gap: 7px; align-items: center; }
.world-choice-name strong { overflow-wrap: anywhere; }
.world-choice small { flex: 0 0 auto; }
#world-detail { display: grid; gap: 6px; padding: 9px 10px; margin-bottom: 10px; background: #161a23; border: 1px solid var(--line); border-radius: 7px; font-size: .86rem; overflow-wrap: anywhere; }
#world-detail h3 { color: var(--strong); font: 700 1.1rem Georgia, serif; }
#world-detail p:not(.encounter-category) { color: var(--muted); }
.world-items summary { cursor: pointer; color: var(--gold-bright); }
.world-items ul { max-height: 180px; overflow: auto; display: grid; gap: 4px; padding-left: 1.2rem; margin: 5px 0 0; }
.tabs { gap: clamp(7px, 1.35vw, 14px); }

@media (max-width: 760px) {
  #panel-points { max-height: none; }
  #world-results { max-height: min(55vh, 410px); overflow: auto; padding: 0 3px 4px; }
  .chest-spawn-choices { touch-action: pan-y; }
}

