:root {
  --bg: #0b0620; --panel: #130a2c; --panel2: #1b1040; --line: #2e1d5c; --txt: #f4eefe; --mut: #b9a8dd;
  --pink: #ff2e88; --cyan: #2ee6d6; --purple: #c13cff; --orange: #ff7a1a; --yellow: #ffd23f;
  --ok: #3ef08a; --mid: #ffd23f; --low: #ff5d5d; --top: 56px; --peek: 64px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--txt); font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--cyan); }
h2, h3, h4 { margin: 0; line-height: 1.2; }

.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); display: flex; align-items: center; gap: 10px; padding: 0 10px; z-index: 1100;
  background: linear-gradient(180deg, #1c0b42, #120830); border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--cyan)) 1; }
.brand { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; user-select: none; }
.logo { font: italic 900 22px/1 "Arial Black", Impact, system-ui, sans-serif; letter-spacing: .04em;
  background: linear-gradient(90deg, var(--pink), var(--orange) 60%, var(--yellow)); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 6px rgba(255, 46, 136, .55)); }
.logo2 { font: italic 800 15px/1 system-ui, sans-serif; color: var(--cyan); letter-spacing: .25em; text-shadow: 0 0 8px rgba(46, 230, 214, .8); }
.search { position: relative; flex: 1; min-width: 120px; max-width: 560px; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 999px; border: 1px solid #3a2873; background: #0e0726 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23b9a8dd' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px 50%; outline: none; }
.search input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 46, 136, .25); }
.results { position: absolute; top: 44px; left: 0; right: 0; max-height: min(65vh, 560px); overflow: auto; padding: 6px; background: #170c36; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .6); z-index: 1200; }
.results h5 { margin: 6px 8px 4px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.res { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 10px; background: none; text-align: left; }
.res:hover, .res:focus-visible { background: #261654; outline: none; }
.res b { display: block; font-weight: 600; }
.res small { display: block; color: var(--mut); font-size: 12px; }
.res .rc { margin-left: auto; font: 700 13px ui-monospace, Consolas, monospace; color: var(--yellow); }
.res .emo, .lcard .emo, .card .emo { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--c, var(--pink)); background: #0e0726; font-size: 15px; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-actions select { height: 36px; border-radius: 10px; border: 1px solid #3a2873; background: #0e0726; padding: 0 6px; }
.icon-btn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid #3a2873; background: #1b0f3f; font-size: 17px; }
.icon-btn:hover, .icon-btn.on { border-color: var(--cyan); box-shadow: 0 0 10px rgba(46, 230, 214, .35); }

main { position: fixed; inset: var(--top) 0 0 0; display: flex; }
.panel { position: relative; width: 430px; max-width: 46vw; display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); z-index: 1000; }
body.panel-hidden .panel { display: none; }
#map { flex: 1; height: 100%; background: #040b1b; isolation: isolate; }
.grab { display: none; }
.tabs { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab { flex: none; padding: 6px 11px; border: 1px solid transparent; border-radius: 999px; background: none; color: var(--mut); font-weight: 600; white-space: nowrap; }
.tab:hover { color: #fff; }
.tab.on { color: #fff; border-color: rgba(255, 46, 136, .7); background: linear-gradient(90deg, rgba(255, 46, 136, .28), rgba(193, 60, 255, .28)); box-shadow: 0 0 12px rgba(255, 46, 136, .25); }
.view { flex: 1; overflow-y: auto; padding: 14px 14px 60px; scrollbar-width: thin; }
.view > h2 { margin: 4px 0 10px; font-size: 20px; }
.sec { margin: 22px 0 10px; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); text-shadow: 0 0 8px rgba(46, 230, 214, .4); }
.hint { color: var(--mut); font-size: 13px; }
.fatal { padding: 20px; color: var(--low); }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; border: 1px solid #3a2873; background: #22144c; font-size: 13px; line-height: 1.2; }
.btn:hover { border-color: var(--pink); }
.btn.pri { border: 0; background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff; font-weight: 700; }
.btn.dark { border: 0; background: rgba(20, 6, 40, .82); color: #fff; font-weight: 600; }
.btn.on { border-color: var(--cyan); background: rgba(46, 230, 214, .14); color: var(--cyan); }
.btn[disabled] { opacity: .45; cursor: default; }
.link { border: 0; padding: 0; background: none; color: var(--cyan); text-decoration: underline; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 6px 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid #36246f; background: #221450; color: var(--mut); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.chip.ok { color: var(--ok); border-color: rgba(62, 240, 138, .45); background: rgba(62, 240, 138, .08); }
.chip.mid { color: var(--mid); border-color: rgba(255, 210, 63, .45); background: rgba(255, 210, 63, .08); }
.chip.low { color: var(--low); border-color: rgba(255, 93, 93, .5); background: rgba(255, 93, 93, .1); }
.chip.warn { color: #ffc2c2; border-color: rgba(255, 93, 93, .6); background: rgba(255, 93, 93, .14); }
.chip.ed { color: #9ff7ee; border-color: rgba(46, 230, 214, .45); }
.chip.later { color: #d9c7ff; border-style: dashed; }
.chip.pick { cursor: pointer; font-size: 12.5px; padding: 4px 10px; }
.chip.pick.on { color: #fff; border-color: var(--c, var(--pink)); background: color-mix(in srgb, var(--c, var(--pink)) 25%, transparent); }
.filter { margin: 10px 0; }

.hero { margin-bottom: 6px; padding: 14px; border-radius: 16px; color: #1a0526; background: linear-gradient(135deg, var(--pink) 0%, var(--orange) 55%, var(--yellow) 100%); box-shadow: 0 10px 30px rgba(255, 46, 136, .25); }
.hero h2 { font-size: 19px; margin: 2px 0 6px; }
.hero p { margin: 0 0 10px; font-weight: 500; }
.hero .kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hero-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tip { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--c); background: var(--panel2); }
.tip h4 { margin: 6px 0 4px; font-size: 15px; }
.tip p { margin: 0; color: #e6dcfb; }
.tip-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.prio { font-size: 12px; font-weight: 800; color: var(--c); text-transform: uppercase; letter-spacing: .05em; }
.refs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.ref { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 3px 9px; border-radius: 999px; border: 1px solid #3a2873; background: #120a2b; color: #e9defd; font-size: 12px; }
.ref:hover { border-color: var(--cyan); color: #fff; }
.rgrid { display: grid; gap: 8px; }
.rcard { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); border-left: 6px solid var(--c); background: var(--panel2); text-align: left; }
.rcard:hover, .rcard.on { box-shadow: 0 0 0 1px var(--c), 0 0 16px color-mix(in srgb, var(--c) 35%, transparent); }
.rcard span { color: #e6dcfb; font-size: 13px; }
.rcard small { color: var(--mut); }
.avoid, .conflicts { margin: 0; padding: 0; list-style: none; }
.avoid li, .conflicts li { margin-bottom: 8px; padding: 9px 11px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); }
.foot-note { margin-top: 18px; color: var(--mut); font-size: 12.5px; }

.topic-head p { margin: 6px 0; color: #e6dcfb; }
.meta { color: var(--mut); font-size: 12.5px; }
details { margin: 8px 0; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); }
details summary { cursor: pointer; font-weight: 700; }
details ul { margin: 8px 0 0; padding-left: 18px; }
details li { margin-bottom: 6px; }
.lcard { margin-bottom: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, #1b0f3f, #150a31); }
.lcard:hover { border-color: #4b3391; }
.lcard.done { opacity: .62; }
.lc-top { display: flex; align-items: center; gap: 10px; }
.lc-top h4 { flex: 1; font-size: 14.5px; }
.lc-place { margin: 6px 0 0; color: var(--mut); font-size: 12.5px; }
.lc-how { margin: 6px 0 0; color: #e6dcfb; font-size: 13px; }
.spoiler { width: 100%; margin-top: 8px; padding: 10px; border-radius: 10px; border: 1px dashed var(--purple); background: rgba(193, 60, 255, .1); color: #e8c8ff; }
.codegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 6px; }
.codetile { display: grid; gap: 3px; padding: 9px 10px; border-radius: 12px; border: 1px solid #3a2873; background: #0f0828; text-align: left; }
.codetile:hover { border-color: var(--yellow); box-shadow: 0 0 12px rgba(255, 210, 63, .2); }
.codetile small { color: var(--mut); font-size: 11.5px; line-height: 1.25; }
.codetile.done { opacity: .55; }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; padding: 8px 10px; border-radius: 10px; border: 1px dashed rgba(255, 210, 63, .55); background: #0e0726; }
.code { font: 800 22px/1.15 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; color: var(--yellow); text-shadow: 0 0 10px rgba(255, 210, 63, .45); word-break: break-word; }
.code.long { font-size: 14.5px; letter-spacing: .02em; }
.code.dpad { font-size: 19px; letter-spacing: .05em; }
.codetile .code { font-size: 19px; }
.codetile .code.long { font-size: 12.5px; }
.copy { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #4a3a1a; background: #2a1f08; color: var(--yellow); font-size: 16px; }

.card h3 { font-size: 16px; }
.card header { display: flex; align-items: center; gap: 10px; }
.card .sub { margin: 2px 0 0; color: var(--mut); font-size: 12px; }
.card .how { margin: 8px 0 0; }
.card .reward, .card .notes, .card .nav, .card .approx, .card .real, .card .aki-note, .lcard .aki-note { margin: 8px 0 0; padding: 7px 9px; border-radius: 9px; font-size: 13px; }
.card .reward { background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .25); }
.card .notes { background: rgba(193, 60, 255, .08); border: 1px solid rgba(193, 60, 255, .25); color: #e3d3fb; }
.card .nav { background: rgba(46, 230, 214, .1); border: 1px solid rgba(46, 230, 214, .35); }
.card .approx { background: rgba(255, 122, 26, .1); border: 1px solid rgba(255, 122, 26, .35); color: #ffd7b8; }
.card .real { color: var(--mut); }
.card .aki-note, .lcard .aki-note { background: rgba(255, 46, 136, .1); border: 1px solid rgba(255, 46, 136, .35); }
.card .shot { display: block; width: 100%; aspect-ratio: 16 / 9; margin-top: 8px; border-radius: 10px; object-fit: cover; background: #0e0726; }
.card .src { margin: 10px 0 0; color: var(--mut); font-size: 12px; }
.card .src a { margin-right: 6px; }
.stack-list { display: grid; gap: 6px; }
.stack-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border-radius: 10px; border: 1px solid var(--line); background: #1b0f3f; text-align: left; }
.stack-item:hover { border-color: var(--pink); }
.stack-item small { display: block; color: var(--mut); }

.missions { margin: 0; padding: 0; list-style: none; }
.mission { padding: 7px 8px; border-radius: 10px; border-bottom: 1px dashed #2a1a55; }
.mission > label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.mission.done > label b { color: var(--mut); text-decoration: line-through; }
.mission.next { background: rgba(46, 230, 214, .08); outline: 1px solid rgba(46, 230, 214, .45); }
.mtasks { margin: 4px 0 2px 26px; }
.task-wrap { margin: 6px 0; }
.task { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
.task .tt small { display: block; color: var(--cyan); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.task.done .tt { color: var(--mut); text-decoration: line-through; }
.task-wrap .refs { margin: 4px 0 0 26px; }
input[type="checkbox"] { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--pink); cursor: pointer; }
.progress { height: 10px; margin: 10px 0 6px; border-radius: 999px; background: #241650; overflow: hidden; }
.progress div { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow)); box-shadow: 0 0 10px rgba(255, 46, 136, .6); }
.now { margin-top: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(46, 230, 214, .45); background: rgba(46, 230, 214, .06); }
.now h3 { margin-bottom: 6px; font-size: 15px; color: var(--cyan); }
.warn-box { margin: 12px 0; padding: 9px 11px; border-radius: 10px; border: 1px solid rgba(255, 93, 93, .5); background: rgba(255, 93, 93, .1); }

.opts { display: grid; gap: 8px; margin: 6px 0 12px; }
.opt { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.group { margin-bottom: 12px; }
.group-head { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; }
.group-head h3 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--cyan); }
.layer { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 9px; cursor: pointer; }
.layer:hover { background: #1d1145; }
.layer .dot { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--c); background: #0e0726; font-size: 13px; box-shadow: 0 0 6px var(--c); }
.layer .ct { color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }
.steps { margin: 10px 0; padding: 0; list-style: none; }
.steps li { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.steps li > button:first-child { flex: 1; display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); text-align: left; }
.steps li > button:first-child:hover { border-color: var(--c, var(--pink)); }
.steps small { display: block; color: #d9cdf3; font-size: 12.5px; }
.num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #0b0620; font-weight: 800; }
.mini { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #3a2873; background: #1b0f3f; }
.mini.on { border-color: var(--ok); color: var(--ok); background: rgba(62, 240, 138, .1); }
.rhead { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border-left: 6px solid var(--c); background: var(--panel2); }
.rhead p { margin: 4px 0 0; color: #e6dcfb; }
.legend { display: grid; gap: 6px; margin: 8px 0; }
.howto { padding-left: 18px; }
.howto li { margin-bottom: 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 8px 0; }
.stats div { padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel2); text-align: center; }
.stats b { display: block; font-size: 20px; color: var(--yellow); }
.credits p { margin: 6px 0; color: #e0d5f7; font-size: 13px; }

.leaflet-container { background: #040b1b; font: inherit; }
.leaflet-bar a, .leaflet-bar a:hover { background: #170c36; color: #fff; border-bottom-color: var(--line); }
.leaflet-bar { border: 1px solid var(--line) !important; box-shadow: 0 6px 18px rgba(0, 0, 0, .5) !important; }
.leaflet-control-attribution { background: rgba(11, 6, 32, .78) !important; color: var(--mut); }
.leaflet-control-attribution a { color: var(--cyan); }
.quick { display: grid; }
.quick a { width: auto !important; padding: 0 9px; font-size: 13px; white-space: nowrap; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #160c33; color: var(--txt); box-shadow: 0 0 0 1px #3a2873, 0 12px 30px rgba(0, 0, 0, .65); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 12px 14px; font-size: 13.5px; line-height: 1.45; max-height: min(58vh, 520px); overflow-y: auto; scrollbar-width: thin; }
.leaflet-container a.leaflet-popup-close-button { color: var(--mut); }
.leaflet-popup-content .acts { position: sticky; bottom: 0; z-index: 1; padding: 10px 0 2px; margin-top: 0; background: linear-gradient(rgba(22, 12, 51, 0), #160c33 10px); }
.leaflet-container.placing, .leaflet-container.placing .leaflet-interactive { cursor: crosshair; }

.pin span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--c); background: rgba(12, 6, 30, .9); box-shadow: 0 0 8px var(--c); font-size: 13px; line-height: 1; }
.pin-guide span { border-width: 3px; font-size: 16px; box-shadow: 0 0 12px var(--c), 0 0 0 1px rgba(255, 255, 255, .6); }
.pin-approx span { border-style: dashed; }
.pin.found span { opacity: .5; filter: grayscale(.85); }
.pin.found::after { content: "✓"; position: absolute; right: -3px; bottom: -3px; width: 15px; height: 15px; border-radius: 50%; background: var(--ok); color: #04110a; font: 800 10px/15px system-ui; text-align: center; }
.pin .n { position: absolute; top: -7px; right: -7px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--pink); color: #fff; font: 800 11px/18px system-ui; text-align: center; box-shadow: 0 0 6px var(--pink); }
.pin.hl span { animation: glow 1s ease-in-out 3; }
.stop span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c); color: #0b0620; font: 800 13px/1 system-ui; box-shadow: 0 0 0 3px #0b0620, 0 0 14px var(--c); }
.me span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--cyan); box-shadow: 0 0 0 0 rgba(46, 230, 214, .7); animation: pulse 1.8s infinite; }
.map-label span { position: absolute; transform: translate(-50%, -50%); white-space: nowrap; color: #ffe1f1; font: italic 800 13px/1 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-shadow: 0 0 6px var(--pink), 0 0 2px #000, 0 0 14px var(--purple); opacity: .85; pointer-events: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 214, .7); } 70% { box-shadow: 0 0 0 16px rgba(46, 230, 214, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 214, 0); } }
@keyframes glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 45%, transparent), 0 0 22px var(--c); } }

dialog#detail { width: min(580px, calc(100% - 24px)); max-height: 88vh; padding: 16px; border: 1px solid #3a2873; border-radius: 16px; background: var(--panel); color: var(--txt); box-shadow: 0 20px 60px rgba(0, 0, 0, .7); }
dialog#detail::backdrop { background: rgba(5, 2, 15, .72); }
dialog .x { float: right; width: 34px; height: 34px; margin: -4px -4px 0 8px; border-radius: 50%; border: 1px solid #3a2873; background: #1b0f3f; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px; border: 1px solid var(--pink); background: #1c0d40; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); z-index: 3000; }

.cb-acts { display: flex; gap: 6px; }
.cb-label { display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.bigcode { padding: 34px 10px 26px; text-align: center; }
.bigcode .code { font-size: clamp(40px, 14vw, 96px); letter-spacing: .12em; }
.bigcode .code.long { font-size: clamp(26px, 7vw, 54px); }
.bigcode .code.dpad { font-size: clamp(34px, 9vw, 64px); }
.stop-head { margin: 0 0 6px; color: var(--c, var(--pink)); font-size: 12.5px; font-weight: 700; }
.stop-note { margin: 0 0 8px; padding: 7px 9px; border-radius: 9px; border: 1px solid rgba(255, 46, 136, .35); background: rgba(255, 46, 136, .1); font-size: 13px; }
.legend > div { display: flex; align-items: center; gap: 8px; }
.pin.demo { position: relative; display: inline-block; flex: none; width: 30px; height: 30px; }
.pin.demo.sm { width: 24px; height: 24px; }
.res-empty { padding: 8px 10px; }
.warn-box p { margin: 6px 0 0; }
.mini[disabled] { opacity: .35; cursor: default; }
.lcard .link.more { display: inline-block; margin-top: 8px; font-size: 13px; }
kbd { padding: 0 5px; border-radius: 4px; border: 1px solid #4a3a8a; background: #1b0f3f; font: 12px ui-monospace, Consolas, monospace; }

@media (max-width: 820px) {
  .topbar { gap: 6px; padding: 0 8px; }
  .logo { font-size: 18px; }
  .logo2, #btn-panel, #btn-full { display: none; }
  .search { min-width: 0; }
  .top-actions { gap: 4px; }
  .top-actions select { width: 70px; padding: 0 2px; }
  .icon-btn { width: 36px; height: 36px; }
  .leaflet-control-attribution { max-width: calc(100vw - 12px); font-size: 10px; line-height: 1.3; }
  main { display: block; }
  #map { position: absolute; inset: 0; }
  .panel { position: fixed; left: 0; right: 0; bottom: 0; width: auto; max-width: none; height: 66vh; height: 66dvh; border-right: 0; border-top: 2px solid var(--pink); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 30px rgba(0, 0, 0, .6); transform: translateY(calc(100% - var(--peek))); transition: transform .25s ease; }
  body.sheet-open .panel { transform: none; }
  body.panel-hidden .panel { display: flex; }
  .grab { display: block; flex: none; width: 100%; height: 14px; border: 0; background: none; }
  .grab::before { content: ""; display: block; width: 46px; height: 5px; margin: 5px auto 0; border-radius: 3px; background: #5a4796; }
  .tabs { padding-top: 2px; }
  .leaflet-bottom { bottom: var(--peek); }
  body.pop-open .leaflet-top.leaflet-right { visibility: hidden; }
  .toast { bottom: calc(var(--peek) + 14px); }
  .results { position: fixed; top: calc(var(--top) + 4px); left: 8px; right: 8px; }
}
@media (max-width: 420px) {
  .logo { font-size: 14px; letter-spacing: 0; }
  .icon-btn { width: 34px; height: 34px; font-size: 15px; }
  .top-actions select { width: 66px; font-size: 13px; }
}
@media (max-width: 340px) {
  .brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .me span, .pin.hl span { animation: none; }
  .panel { transition: none; }
}
