:root {--map-down:#b73f3e;--map-up:#6fa55c;--map-flat:#394450}
.map-page {max-width:1280px;margin:0 auto;padding:28px clamp(14px,3vw,40px)}
.map-page h1 {font-size:clamp(25px,3vw,35px);line-height:1.2;margin:0}
.map-caption,.map-meta,.map-key,.map-options>span {color:var(--market-muted);font-size:13px}
.map-caption {margin:7px 0 16px}
.map-preview {margin:16px 0}
.map-toolbar,.map-options,.map-key,.map-meta {display:flex;align-items:center;gap:8px}
.map-toolbar,.map-meta {justify-content:space-between;flex-wrap:wrap}
.map-toolbar {margin:20px 0 12px}
.map-options button,.map-dialog button {font:inherit;color:var(--market-text);background:#19222c;border:1px solid var(--market-border);border-radius:6px;padding:6px 10px;cursor:pointer}
.map-options button[aria-pressed=true] {background:#233e35;color:#94f1ce;border-color:#476d5d}
#coin-map {position:relative;height:clamp(430px,61vh,690px);background:#10151c;border-radius:8px;overflow:hidden}
.map-preview #coin-map {height:clamp(220px,26vw,315px)}
.map-message {display:grid;place-items:center;height:100%;color:var(--market-muted)}
#coin-map .map-tile {position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;overflow:hidden;padding:0;border:1px solid #111820;border-radius:2px;color:#fff;text-shadow:0 1px 2px #0006;font:650 12px/1.2 system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.map-tile:hover,.map-tile:focus-visible {z-index:1;box-shadow:inset 0 0 0 2px white;outline-offset:-2px}
.map-tile img {width:24px;height:24px;object-fit:contain;margin-bottom:3px}
.map-tile b {max-width:calc(100% - 4px);white-space:normal;overflow-wrap:anywhere;font-weight:700;line-height:1.08;text-align:center}.map-tile.large span {font-size:14px}
.map-unweighted {margin-top:10px;font-size:12px;color:var(--market-muted)}
.map-unweighted button {font:inherit;color:var(--market-text);background:#202a34;border:0;border-radius:4px;margin:2px;padding:4px 7px;cursor:pointer}
.map-key {justify-content:flex-end;margin-top:10px;font-size:12px}
.map-key i {width:44px;height:6px;background:linear-gradient(90deg,var(--map-down),var(--map-flat));border-radius:2px}
.map-key i:last-of-type {background:linear-gradient(90deg,var(--map-flat),var(--map-up))}
.map-meta {justify-content:flex-end;margin-top:10px;font-size:12px}
.map-dialog {width:min(330px,90vw);padding:20px;border:1px solid var(--market-border);border-radius:10px;background:#18212b;color:var(--market-text)}
.map-dialog::backdrop {background:#0009}.map-dialog h2 {margin:0;font-size:20px}.map-dialog dl {display:grid;grid-template-columns:auto 1fr;gap:9px;margin:16px 0}.map-dialog dt {color:var(--market-muted)}.map-dialog dd {text-align:right;margin:0;font-variant-numeric:tabular-nums}
@media(max-width:600px){.map-toolbar{gap:10px}.map-options{gap:5px}.map-options button{font-size:13px}.map-preview #coin-map{height:245px}#coin-map{height:530px}}
