/* Earth map UI. Layout like the Leonida overlay (text straight on the map, few floating controls); colours are Mineplus: yellow #fac81c on dark
   brown #1a0c04. Panels and buttons are Minecraft-GUI grey (light, darker in dark mode) with a pixel bevel drawn in CSS.
   Monocraft (SIL OFL 1.1, fonts/OFL.txt) everywhere; system UI only as glyph fallback. */
@font-face { font-family: Monocraft; src: url(/earth-map/fonts/Monocraft.woff2) format('woff2'); font-display: swap; }
:root {
  --y: #fac81c; --y2: #ffdc58; --yi: #1a0c04;
  --bg: #c6c6c6; --bgh: #d8d8d8; --hi: #fff; --lo: #555; --ink: #202020; --mut: #5a5a5a; --field: #1b1b1b; --sel: rgb(250 200 28 / .4); --track: #7d7d7d; --acc: #7a5200; --line: rgb(0 0 0 / .2);
  --ok: #2e8b2e; --warn: #b87500; --bad: #c0392b;
  --px: 'Monocraft', ui-monospace, 'Segoe UI', system-ui, monospace;
  --px1: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000, 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
  --bevel: inset 2px 2px 0 var(--hi), inset -2px -2px 0 var(--lo);
  --dw: 0px; --gap: 12px; --b: calc(8px + max(8px, env(safe-area-inset-bottom))); color-scheme: light;
}
:root[data-theme=dark] { --bg: #3c3c3c; --bgh: #4b4b4b; --hi: #6f6f6f; --lo: #1a1a1a; --ink: #f2f2f2; --mut: #b6b6b6; --field: #101010; --sel: rgb(250 200 28 / .26); --track: #232323; --acc: #fac81c; --line: rgb(255 255 255 / .16); --ok: #6fe07a; --warn: #ffc14a; --bad: #ff7b6b; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #223a2c; color: var(--ink); font: 14px/1.4 var(--px); }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--y); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.muted { color: var(--mut); } .num { font-variant-numeric: tabular-nums; }
svg { display: block; }

/* ---- pixel scrollbars: grey track, bevelled thumb ---- */
@supports (-moz-appearance: none) { * { scrollbar-width: auto; scrollbar-color: var(--bg) var(--track); } }
::-webkit-scrollbar { width: 16px; height: 16px; background: var(--track); }
::-webkit-scrollbar-track { background: var(--track); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgb(0 0 0 / .5); }
::-webkit-scrollbar-thumb { background: var(--bg); border: 2px solid #000; box-shadow: var(--bevel); min-height: 32px; min-width: 32px; }
::-webkit-scrollbar-thumb:hover { background: var(--bgh); }
::-webkit-scrollbar-button, ::-webkit-scrollbar-corner { display: none; background: var(--track); }

/* ---- Minecraft GUI grey: 2px black frame, light top-left / dark bottom-right bevel ---- */
.mc { background: var(--bg); color: var(--ink); border: 2px solid #000; border-radius: 0; box-shadow: var(--bevel); }
button.mc, a.mc { cursor: pointer; text-decoration: none; transition: background .12s; }
@media (hover: hover) { button.mc:hover, a.mc:hover { background: var(--bgh); } button.mc:is(.pcopy, .accent, [data-k][aria-pressed=true]):hover { background: var(--y2); color: var(--yi); } }
button.mc:active { box-shadow: inset 2px 2px 0 var(--lo), inset -2px -2px 0 var(--hi); }
.ib { width: 48px; height: 48px; display: grid; place-items: center; padding: 0; }
.ib[aria-pressed=true], .ib[aria-expanded=true] { background: var(--y); color: var(--yi); box-shadow: inset 2px 2px 0 var(--y2), inset -2px -2px 0 #b98a00; }
.accent, button.accent { background: var(--y); color: var(--yi); box-shadow: inset 2px 2px 0 var(--y2), inset -2px -2px 0 #b98a00; }
button.accent:hover { background: var(--y2); } button.accent:active { box-shadow: inset 2px 2px 0 #b98a00, inset -2px -2px 0 var(--y2); }

/* Minecraft-style switch: grey track when off, yellow when on */
.sw { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px; line-height: 1; white-space: nowrap; width: 172px; }
.sw .lbl { flex: 1; text-align: left; }
.knob { position: relative; flex: none; width: 36px; height: 20px; border: 2px solid #000; background: var(--track); box-shadow: inset 2px 2px 0 rgb(0 0 0 / .45); transition: background .15s; }
.knob::after { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 16px; background: #c6c6c6; border: 2px solid #000; box-shadow: inset 2px 2px 0 #fff, inset -2px -2px 0 #6b6b6b; margin: -2px; transition: transform .15s cubic-bezier(.2, .8, .2, 1); }
.sw[aria-checked=true] .knob { background: var(--y); box-shadow: inset 2px 2px 0 #b98a00; } .sw[aria-checked=true] .knob::after { transform: translateX(20px); }

/* ---------- map ---------- */
#map { position: fixed; inset: 0; background: #223a2c; }
:root[data-theme=light] #map { background: #86b34a; }
.maplibregl-canvas { outline: none; }
#map .maplibregl-canvas { cursor: grab; } #map:active .maplibregl-canvas { cursor: grabbing; }
#map.pix .maplibregl-canvas-container canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
.overlay { position: absolute; left: 0; top: 0; pointer-events: none; }
.maplibregl-ctrl-attrib { display: none; }

/* ---------- title and readouts (top left, text on the map) ---------- */
.tl { position: fixed; z-index: 12; left: 16px; top: max(14px, env(safe-area-inset-top)); display: flex; align-items: flex-start; gap: 12px; pointer-events: none; }
.tl > * { pointer-events: auto; }
.title { display: grid; gap: 8px; line-height: 1; pointer-events: none; justify-items: start; }
.title h1 { margin: 0; font: 400 48px/1 var(--px); letter-spacing: .04em; color: var(--y); -webkit-text-stroke: 8px var(--yi); paint-order: stroke fill; text-shadow: 0 4px 0 var(--yi), 0 7px 0 rgb(0 0 0 / .3); padding-bottom: 4px; }
.title h1 small { font-size: 16px; margin-left: 10px; color: #fff; -webkit-text-stroke: 5px var(--yi); letter-spacing: .18em; text-shadow: none; }
.title h1.art { padding: 0; -webkit-text-stroke: 0; text-shadow: none; line-height: 0; } .title h1.art img { width: 240px; height: auto; display: block; }
.t-sub { font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: #fff; text-shadow: var(--px1); }
.stat { display: flex; gap: 14px; align-items: center; font-size: 14px; color: #fff; text-shadow: var(--px1); white-space: pre; min-height: 18px; margin: 0; }

/* ---------- controls (top right) ---------- */
.ctrl { position: fixed; z-index: 12; right: 16px; top: max(14px, env(safe-area-inset-top)); display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ctrl .sep { height: 4px; }

/* ---------- bottom row: card above; search | credits | the character's corner (one grid: nothing can overlap) ---------- */
.bottom { position: fixed; z-index: 10; left: var(--dw); right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "s f c"; align-items: end; gap: var(--gap); padding: 0 max(16px, env(safe-area-inset-right)) var(--b) max(16px, env(safe-area-inset-left)); pointer-events: none; transition: left .25s ease; }
.bottom > * { pointer-events: auto; }
.search { grid-area: s; position: relative; }
.card { grid-area: c; justify-self: end; width: min(380px, 100%); margin-right: calc(48px + var(--gap)); padding: 14px 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; max-height: 60vh; overflow: auto; }
.foot { grid-area: f; margin: 0 0 -8px; font-size: 10px; line-height: 1; color: #fff; text-shadow: var(--px1); white-space: nowrap; }
.foot a, .foot button { display: inline-block; padding: 7px 2px; color: #fff; background: none; border: 0; text-shadow: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; cursor: pointer; }
.foot a:hover, .foot button:hover { color: var(--y); }
/* in the free middle: above the bottom row (and the character on phones), below the title and the buttons; the place card steps aside while it is open */
.credcard { position: fixed; z-index: 16; left: calc(50% + var(--dw) / 2); bottom: calc(var(--b) + 56px); width: min(360px, calc(100vw - 24px)); max-height: calc(100dvh - 176px); overflow: auto; transform: translateX(-50%); padding: 14px 16px; font-size: 13px; }
.credcard h2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; font: 400 16px/1.2 var(--px); } .credcard .x { width: 32px; height: 32px; flex: none; } .credcard dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; } .credcard dt { color: var(--mut); } .credcard dd { margin: 0; overflow-wrap: anywhere; } .credcard a { display: inline-block; padding: 3px 0; }
body.cred-open #card { visibility: hidden; }

.search .box { position: relative; }
.search input { width: 100%; height: 48px; padding: 0 88px 0 50px; background: var(--field); color: #fff; border: 2px solid #000; border-radius: 0; box-shadow: inset 2px 2px 0 rgb(0 0 0 / .6), inset -2px -2px 0 rgb(255 255 255 / .25); font: 400 14px var(--px); outline-offset: 2px; }
.search input:placeholder-shown { padding-right: 8px; }
.search input::placeholder { color: #a8a8a8; }
.search input::-webkit-search-cancel-button { display: none; }
.search .mag { color: #e8e8e8; position: absolute; left: 12px; top: 0; bottom: 0; display: grid; place-items: center; pointer-events: none; }
.search .clr { position: absolute; right: 4px; top: 6px; width: 36px; height: 36px; }
.search .spin { position: absolute; right: 48px; top: 17px; width: 14px; height: 14px; border: 3px solid #a8a8a8; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.search .box.busy .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.results { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); list-style: none; margin: 0; padding: 4px 0; max-height: min(56vh, 460px); overflow: auto; overscroll-behavior: contain; }
.results:empty { display: none; }
.results .grp { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
.results .grp button { background: none; border: 0; padding: 4px 6px; color: var(--mut); cursor: pointer; font-size: 11px; } .results .grp button:hover { color: var(--ink); text-decoration: underline; }
.results .opt { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 8px 14px; cursor: pointer; min-height: 52px; }
.results .opt[aria-selected=true] { background: var(--sel); box-shadow: inset 4px 0 0 var(--y); }
.results .ic { display: grid; place-items: center; }
.results .tx { display: grid; min-width: 0; } .results .tx b { font-weight: 400; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.results .tx span { font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .results .tx em { font-style: normal; color: var(--acc); }
.results .di { font-size: 12px; color: var(--mut); white-space: nowrap; }
.results .msg { padding: 12px 14px; color: var(--mut); font-size: 13px; display: flex; gap: 10px; align-items: center; } .results .msg.err { color: var(--warn); }
.spin-s { width: 12px; height: 12px; border: 3px solid var(--mut); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; flex: none; }

/* ---------- place card ---------- */
.card h2 { margin: 0; font: 400 20px/1.2 var(--px); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; overflow-wrap: anywhere; }
.card .x { width: 32px; height: 32px; flex: none; margin: -6px -8px 0 0; }
.kind svg { flex: none; } .kind { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--acc); text-transform: uppercase; letter-spacing: .1em; }
.card .loc { color: var(--mut); font-size: 13px; min-height: 1.4em; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 14px; margin: 2px 0; font-size: 13px; } .card dt { color: var(--mut); } .card dd { margin: 0; overflow-wrap: anywhere; }
.go { display: flex; gap: 8px; margin-top: 2px; }
.go code { flex: 1; min-width: 0; padding: 4px 8px; min-height: 40px; display: flex; align-items: center; background: var(--field); color: #fff; border: 2px solid #000; box-shadow: inset 2px 2px 0 rgb(0 0 0 / .6); font: 400 12px/1.35 var(--px); overflow-wrap: anywhere; user-select: all; }
.go button { height: 40px; padding: 0 12px; }
.card.msgc { padding: 12px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.tip { position: fixed; z-index: 9; transform: translate(-50%, -100%); padding: 6px 10px; font-size: 13px; pointer-events: none; white-space: nowrap; }
.demo-flag { position: fixed; z-index: 13; left: 50%; top: 0; transform: translateX(-50%); padding: 3px 14px; background: var(--y); color: var(--yi); font-size: 13px; border: 2px solid #000; border-top: 0; pointer-events: none; }

@media (max-width: 1240px) { /* no room for search, credits and card in one row: the credits step above the search while the card is open */
  body:not(.drawer-open):has(#card:not([hidden])) .bottom { grid-template-columns: minmax(0, 1fr) min(420px, 58%); grid-template-areas: "f c" "s c"; grid-template-rows: 1fr auto; gap: 0 var(--gap); }
  body:not(.drawer-open):has(#card:not([hidden])) .foot { justify-self: start; margin: 0; } body:not(.drawer-open) .card { width: auto; justify-self: stretch; }
}
@media (max-width: 760px) {
  .tl { left: 14px; } .title h1 { font-size: 38px; } .title h1.art img { width: 160px; } .t-sub { font-size: 12px; }
  .ctrl { right: 14px; } .stat { font-size: 11px; }
  :root { --b: max(4px, env(safe-area-inset-bottom)); }
  .bottom, body:not(.drawer-open):has(#card:not([hidden])) .bottom { grid-template-columns: minmax(0, 1fr); grid-template-areas: "c" "s" "f"; grid-template-rows: none; padding: 0 max(var(--gap), env(safe-area-inset-right)) var(--b) max(var(--gap), env(safe-area-inset-left)); left: 0; gap: 4px; }
  .bottom .card, body:not(.drawer-open) .card { max-height: 42vh; width: auto; justify-self: stretch; margin: 0 0 calc(var(--gap) + 24px); }
  .foot, body:not(.drawer-open):has(#card:not([hidden])) .foot { justify-self: center; margin: 0; } .credcard { left: 50%; bottom: calc(var(--b) + 112px); max-height: calc(100dvh - 464px); }
  body.sr-open .card { display: none; }
  .results { max-height: 52vh; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- login ---------- */
body.login { display: grid; place-items: center; overflow: auto; background: #1a0c04 repeating-linear-gradient(0deg, transparent 0 15px, rgb(250 200 28 / .05) 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, rgb(250 200 28 / .05) 15px 16px); }
body.login .card { grid-area: auto; position: relative; grid-template-columns: minmax(0, 1fr); width: min(380px, calc(100vw - 32px)); padding: 24px; gap: 16px; max-height: none; overflow: visible; }
.lhead { display: flex; align-items: center; gap: 14px; } .lhead .logo svg { width: 48px; height: 48px; image-rendering: pixelated; }
.lhead img { width: 170px; height: auto; display: block; image-rendering: pixelated; }
.lhead h1 { margin: 0; font: 400 36px/1 var(--px); color: var(--y); -webkit-text-stroke: 7px var(--yi); paint-order: stroke fill; text-shadow: 0 3px 0 var(--yi); }
.lhead h1 small { display: block; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); -webkit-text-stroke: 0; text-shadow: none; margin-top: 10px; }
.card label { display: grid; gap: 6px; font-size: 13px; color: var(--mut); }
body.login input { width: 100%; min-width: 0; height: 48px; padding: 0 12px; background: var(--field); border: 2px solid #000; border-radius: 0; color: #fff; font: 400 15px var(--px); box-shadow: inset 2px 2px 0 rgb(0 0 0 / .6), inset -2px -2px 0 rgb(255 255 255 / .25); }
body.login button { height: 48px; background: var(--y); color: var(--yi); border: 2px solid #000; font: 400 16px var(--px); cursor: pointer; box-shadow: inset 2px 2px 0 var(--y2), inset -2px -2px 0 #b98a00; }
body.login button:hover { background: var(--y2); }
.err { margin: 0; color: var(--bad); min-height: 1.4em; font-size: 13px; }

/* ---------- admin: full-screen map + left drawer ---------- */
body.adm.drawer-open { --dw: min(420px, 92vw); }
body.adm.drawer-open.drawer-wide { --dw: min(980px, calc(100vw - 240px)); }
.drawer { position: fixed; z-index: 11; left: 0; top: 0; bottom: 0; width: min(420px, 92vw); padding: 84px 18px 24px; overflow: auto; background: var(--bg); border: 0; border-right: 2px solid #000; border-radius: 0; box-shadow: inset 2px 0 0 var(--hi), inset -2px 0 0 var(--lo); transform: translateX(-102%); transition: transform .25s ease, visibility .25s; visibility: hidden; }
body.drawer-open .drawer { transform: none; visibility: visible; }
.drawer section { padding: 14px 0; border-top: 2px solid var(--line); } .drawer section:first-of-type { border-top: 0; padding-top: 0; }
.drawer h2 { margin: 0 0 10px; font: 400 14px var(--px); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); display: flex; justify-content: flex-start; align-items: baseline; gap: 8px; }
.drawer h2::before { content: ''; width: 10px; height: 10px; background: var(--y); border: 2px solid #000; margin-right: 8px; align-self: center; flex: none; }
.drawer h2 small { margin-left: auto; font-size: 12px; color: var(--mut); letter-spacing: 0; text-transform: none; }
.alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.alerts li { display: flex; gap: 10px; align-items: baseline; } .alerts b { font-weight: 400; font-size: 11px; padding: 1px 6px; border: 2px solid #000; color: #fff; }
.alerts .bad b { background: #c0392b; } .alerts .warn b { background: #b87500; } .alerts .ok b { background: #2e8b2e; }
.srv { padding: 8px 0; border-top: 2px solid var(--line); } .srv:first-of-type { border-top: 0; }
.srv header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; } .srv header b { font-weight: 400; font-size: 15px; } .srv header .c { width: 12px; height: 12px; border: 2px solid #000; flex: none; } .srv header .sp { flex: 1; }
.kv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 10px; } .kv small { display: block; color: var(--mut); font-size: 11px; } .kv strong { font-weight: 400; font-size: 15px; } .kv .warn strong { color: var(--warn); } .kv .bad strong { color: var(--bad); }
.dot { display: inline-block; width: 10px; height: 10px; background: #e04a3a; border: 2px solid #000; } .dot.on { background: #4fe05a; }
.meter { height: 10px; background: var(--field); border: 2px solid #000; position: relative; margin-top: 6px; } .meter i { position: absolute; inset: 0 auto 0 0; background: #4fe05a; } .meter.warn i { background: #ffc14a; } .meter.bad i { background: #ff6b5b; }
.wbars { display: grid; grid-template-columns: repeat(40, 1fr); gap: 2px; align-items: end; height: 84px; border-bottom: 2px solid #000; }
.wbars i { display: block; min-height: 2px; border: 1px solid #000; border-bottom: 0; cursor: default; }
.wl { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); margin-top: 4px; }
.key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 12px; color: var(--mut); } .key i { display: inline-block; width: 12px; height: 12px; border: 2px solid #000; vertical-align: -2px; margin-right: 5px; }
.bar { display: grid; grid-template-columns: 70px 1fr 28px; gap: 10px; align-items: center; font-size: 13px; margin-bottom: 6px; } .bar .meter { margin: 0; height: 14px; } .bar .meter i { background: var(--c, var(--y)); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 0; border: 0; border-top: 2px solid var(--line); cursor: pointer; font-size: 13px; background: none; width: 100%; text-align: left; color: var(--ink); } .row:first-of-type { border-top: 0; } .row:hover { text-decoration: underline; }
.row small { color: var(--mut); display: block; font-size: 11px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; } th { text-align: left; font-weight: 400; font-size: 11px; color: var(--mut); padding: 2px 4px; } td { padding: 5px 4px; border-top: 2px solid var(--line); }
tr.pl { cursor: pointer; } tr.pl:hover, tr.pl:focus-visible { background: var(--sel); }
.sq { display: inline-block; width: 10px; height: 10px; border: 2px solid #000; margin-right: 5px; vertical-align: -1px; }
.demo-pill { padding: 3px 10px; background: var(--y); color: var(--yi); font-size: 12px; border: 2px solid #000; align-self: center; }
.ctrl form { margin: 0; }
body.adm .title h1.art img { width: 150px; }
body.adm .title { gap: 4px; }
.ctrl .lg { height: 44px; padding: 0 12px; font-size: 13px; width: 150px; }
.ctrl select.lg { appearance: none; padding-right: 12px; cursor: pointer; }
.layers { display: grid; gap: 8px; justify-items: end; }
@media (max-width: 760px) {
  body.adm.drawer-open { --dw: 0px; }
  .drawer { width: 100vw; padding-top: 88px; border-right: 0; }
  .tl .title h1 small { display: none; }
}

.ctrl .duo { display: flex; gap: 8px; }
body.adm .ctrl .duo .ib { width: 82px; }
#discord { background: #5865f2; color: #fff; box-shadow: inset 2px 2px 0 #8891f7, inset -2px -2px 0 #3b45b5; } #discord:hover { background: #6d78f5; } #discord[hidden] { display: none; }
.ctrl > [hidden] { display: none; }
body.adm .sw { height: 40px; } body.adm .sw small { display: block; margin-top: 3px; font-size: 11px; }
body.adm .ctrl { gap: 6px; }
body.drawer-open .tl .stat { color: var(--ink); text-shadow: none; }
body.drawer-open .tl .t-sub { color: var(--ink); text-shadow: none; }

body.drawer-wide .drawer { width: min(980px, calc(100vw - 240px)); }
.dedge { position: fixed; z-index: 11; top: 50%; left: 0; width: 22px; height: 72px; margin-top: -36px; padding: 0; display: grid; place-items: center; cursor: ew-resize; touch-action: none; transition: left .25s ease; }
.dedge span { display: block; width: 6px; height: 28px; border-left: 2px solid var(--lo); border-right: 2px solid var(--hi); }
body.drawer-open .dedge { left: var(--dw); }
.wcols { display: grid; gap: 14px; margin-top: 10px; } body.drawer-wide .wcols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wcol header { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; } .wcol header b { font-weight: 400; } .wcol header .c { width: 12px; height: 12px; border: 2px solid #000; flex: none; } .wcol header .sp { flex: 1; }
.wrow { display: grid; grid-template-columns: 44px 24px 46px 12px minmax(96px, 1fr); gap: 4px 8px; align-items: center; padding: 5px 0; border-top: 2px solid var(--line); font-size: 12px; } .wrow .rg { grid-column: 1 / -1; font-size: 11px; } .wrow b { font-weight: 400; }
select.mv, .pf { height: 30px; font-size: 12px; padding: 0 4px; max-width: 100%; cursor: pointer; } .pf { width: 100%; height: 38px; font-size: 13px; padding: 0 10px; margin-bottom: 8px; background: var(--field); color: #fff; cursor: text; }
.sbar { position: relative; display: flex; height: 18px; border: 2px solid #000; background: var(--field); } .sbar i { display: block; height: 100%; } .sbar b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }
.drawer h3 { margin: 12px 0 6px; font: 400 13px var(--px); } .drawer h3 small { color: var(--mut); font-size: 11px; }
.req { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 2px solid var(--line); font-size: 12px; } .req small { display: block; }
.req button { height: 28px; padding: 0 10px; font-size: 12px; }
.state { padding: 1px 6px; border: 2px solid #000; background: var(--bg); font-size: 11px; } .s-queued, .s-waiting-restart { background: var(--y); color: var(--yi); } .s-done { background: #4fb04a; color: #fff; } .s-failed { background: #c0392b; color: #fff; } .s-moving { background: #3d78e0; color: #fff; }
.note { font-size: 12px; color: var(--mut); margin: 8px 0 0; min-height: 1.4em; } .note.bad { color: var(--bad); }
.mvl { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut); }
th button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline dotted; } th button:hover { color: var(--ink); }
dialog#mdlg { max-width: min(440px, 92vw); padding: 18px; color: var(--ink); } dialog::backdrop { background: rgb(0 0 0 / .55); } #mtxt { margin: 0 0 14px; font-size: 14px; line-height: 1.5; }
.dact { display: flex; gap: 10px; justify-content: flex-end; } .dact button { height: 40px; padding: 0 16px; cursor: pointer; }
@media (max-width: 760px) { body.drawer-open .dedge { left: calc(100vw - 22px); } .wrow { grid-template-columns: 40px 22px 44px 12px minmax(0, 1fr); } body.drawer-wide .wcols { grid-template-columns: 1fr; } }

.dhead { position: sticky; top: -84px; height: 84px; margin: -84px -18px 6px; background: var(--bg); border-bottom: 2px solid var(--line); z-index: 2; }
.search { max-width: 440px; }
body.adm.drawer-wide.drawer-open .bottom { grid-template-columns: minmax(0, 1fr); grid-template-areas: "c" "s" "f"; padding-right: 84px; }
@media (max-width: 1400px) { body.adm.drawer-open .bottom { grid-template-columns: minmax(0, 1fr); grid-template-areas: "c" "s" "f"; padding-right: 84px; } body.adm.drawer-open .card { margin-right: 0; } body.adm.drawer-open .card { max-height: 40vh; } }
@media (max-width: 760px) { .demo-flag { display: none; } }
@media (max-width: 760px) {
  body.adm .sw { width: 48px; padding: 0; justify-content: center; }
  body.adm .sw .lbl, body.adm .sw .knob { display: none; }
  body.adm .sw[aria-checked=true] { background: var(--y); box-shadow: inset 2px 2px 0 var(--y2), inset -2px -2px 0 #b98a00; }
  body.adm .sw[aria-checked=false] { opacity: .8; }
  body.adm .ctrl .lg { width: 124px; }
  body.adm .demo-pill { display: none; }
}
@media (max-width: 760px) { body.adm.drawer-open .ctrl { display: none; } }

/* ---------- admin split view ---------- */
.skey { position: fixed; z-index: 11; right: 84px; bottom: 34px; padding: 10px 12px; display: grid; gap: 4px; font-size: 12px; max-height: max(120px, calc(100vh - 650px)); overflow: auto; min-width: 190px; }
.skey b { font-weight: 400; color: var(--acc); }
.skey span { display: flex; align-items: center; gap: 8px; } .skey i { width: 12px; height: 12px; border: 2px solid #000; flex: none; box-sizing: content-box; } .skey em { margin-left: auto; padding-left: 12px; font-style: normal; color: var(--mut); }
body:has(#card:not([hidden])) .skey { display: none; }
@media (max-width: 760px) { .skey { display: none; } }
.rt { overflow-x: auto; } .rmx { font-size: 12px; white-space: nowrap; } .rmx td, .rmx th { text-align: right; padding: 0 4px; } .rmx th:first-child, .rmx td:first-child { text-align: left; }
.rmx button { min-height: 28px; width: 100%; border: 0; background: none; color: inherit; font: inherit; text-align: right; cursor: pointer; padding: 0 4px; } .rmx td:first-child button { text-align: left; }
.rmx button:hover { outline: 2px solid var(--acc); } .rmx .on { background: var(--acc); color: #1b1510; } .rmx tr.tot td { border-top: 2px solid currentColor; } #rmb { width: 80px; height: 32px; padding: 0 6px; font-size: 12px; }
.ramp { display: flex; border: 2px solid #000; } .skey .ramp i { flex: 1; width: auto; height: 10px; border: 0; }

/* ---------- drag-and-drop character ---------- */
.peg { position: fixed; z-index: 14; right: max(16px, env(safe-area-inset-right)); bottom: max(8px, env(safe-area-inset-bottom)); transition: bottom .25s ease; width: 48px; height: 80px; padding: 4px; border: 0; background: none; cursor: grab; touch-action: none; user-select: none; }
.peg svg { position: absolute; left: -76px; top: -76px; max-width: none; pointer-events: none; } /* 2 px per pixel, the body is inside the button */
.peg.pop { animation: pegpop .3s cubic-bezier(.3,1.6,.5,1); transform-origin: 50% 90%; } @keyframes pegpop { from { transform: scale(0); } }
body .peg[data-s]:not([data-s="home"]) { transition: none; left: 0; top: 0; right: auto !important; bottom: auto; transform-origin: 24px 72px; }
.peg[data-s="held"] { cursor: grabbing; } .peg:is([data-s="hover"], [data-s="clutch"], [data-s="glide"], [data-s="lost"], [data-s="hop"], [data-s="pearl"], [data-s="stand"], [data-s="splash"]) { z-index: 5; } /* above the map, below cards and controls */ .peg:is([data-s="lift"], [data-s="cruise"], [data-s="glide"], [data-s="drop"]) { z-index: 14; } /* wings over the buttons, not behind them */ .peg[data-s="splash"] { pointer-events: none; }
.peg[data-s="stand"] { pointer-events: none; } .peg[data-s="stand"] svg g { pointer-events: auto; }
/* the only ground marker: a dark pixel shadow (2px grid, corners cut in two steps); blue with a stepped ripple only while the character goes under */
.pegspot:not([hidden])::after { animation: pegshade .18s; } @keyframes pegshade { from { opacity: 0; } }
.pegspot { position: fixed; z-index: 4; left: 0; top: 0; pointer-events: none; }
.pegspot::after { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / .45); } .pegspot.water::after { background: rgb(30 90 220 / .75); }
.pegspot::after, .pegspot.water::before { clip-path: polygon(4px 0, calc(100% - 4px) 0, calc(100% - 4px) 2px, calc(100% - 2px) 2px, calc(100% - 2px) 4px, 100% 4px, 100% calc(100% - 4px), calc(100% - 2px) calc(100% - 4px), calc(100% - 2px) calc(100% - 2px), calc(100% - 4px) calc(100% - 2px), calc(100% - 4px) 100%, 4px 100%, 4px calc(100% - 2px), 2px calc(100% - 2px), 2px calc(100% - 4px), 0 calc(100% - 4px), 0 4px, 2px 4px, 2px 2px, 4px 2px); }
.pegspot.water::before { content: ""; position: absolute; inset: 0; background: rgb(124 196 255 / .6); z-index: -1; animation: pegripple .8s steps(1) infinite; }
@keyframes pegripple { 0% { inset: 0; } 33% { inset: -2px -4px; } 66% { inset: -4px -8px; } }
.pegspot[hidden], .pegslot[hidden] { display: none; }
.pegslot { z-index: 12; cursor: pointer; } .pegslot:hover, .pegslot.near { filter: brightness(1.3); } .pegslot.near { scale: 1.12; }
.pegsplash { position: fixed; z-index: 15; width: 6px; height: 6px; margin: -3px; background: #6eacff; box-shadow: inset 0 -2px #2f6ad8; pointer-events: none; animation: pegsplash .6s steps(9) forwards; } .pegsplash:nth-of-type(3n) { background: #d8ecff; width: 4px; height: 4px; }
@keyframes pegsplash { 45% { transform: translate(calc(var(--x) * .6), var(--y)); } 100% { transform: translate(var(--x), 4px) scale(.34); opacity: .4; } }
.pegpuff { position: fixed; z-index: 6; width: 6px; height: 6px; margin: -3px; background: #fac81c; border: 1px solid #000; pointer-events: none; animation: pegpuff .55s ease-out forwards; } @keyframes pegpuff { to { transform: translate(var(--x), var(--y)) scale(.2); opacity: 0; } }
.pegwind { position: fixed; z-index: 13; width: 5px; height: 5px; margin: -2px; background: #fff; border: 1px solid rgb(0 0 0 / .45); pointer-events: none; animation: pegwind .6s ease-out forwards; } @keyframes pegwind { to { transform: scale(.2); opacity: 0; } }
.pegspark, .pegsmoke { position: fixed; z-index: 6; margin: -2px; pointer-events: none; animation: pegbit .6s ease-out forwards; } .pegspark { box-shadow: 0 0 0 1px rgb(120 20 10 / .45); } .pegsmoke { background: #e9e9ec; border: 1px solid rgb(0 0 0 / .25); animation-duration: .8s; } @keyframes pegbit { 60% { opacity: 1; } to { transform: translate(var(--x), var(--y)) scale(.25); opacity: 0; } }
.pegender { position: fixed; z-index: 6; margin: -2px; background: #b04ae0; pointer-events: none; animation: pegbit .7s ease-out forwards; } .pegender:nth-child(3n) { background: #7a1fb0; } .pegpearl { position: fixed; left: 0; top: 0; z-index: 14; width: 20px; height: 20px; pointer-events: none; image-rendering: pixelated; } .pegpearl[hidden] { display: none; }
.peg .rkt, .peg .flm { display: none; } .peg.rocket .rkt, .peg.burn .flm { display: inline; } .peg .flm { animation: pegflame .12s steps(1) infinite; } @keyframes pegflame { 50% { transform: scaleY(.65); } }
.pegcloud { position: fixed; left: 0; top: 0; pointer-events: none; image-rendering: pixelated; } .pegcloud.gone { opacity: 0 !important; transition: opacity .25s; } .peg.inair:is([data-s="glide"], [data-s="drop"]) { z-index: 6; } /* between the clouds */
.peg [data-p="lw"], .peg [data-p="rw"] { display: none; } .peg.wings [data-p="lw"], .peg.wings [data-p="rw"] { display: inline; } .peg .bk { display: none; } .peg.wings .bk { display: inline; }
.peg .wg { transform-origin: 8px 8px; } .peg.wings .wg { animation: pegequip .26s cubic-bezier(.3,1.6,.5,1); } .peg.wings.off .wg { animation: pegequip .17s ease-in reverse forwards; } @keyframes pegequip { from { transform: scale(.3); opacity: 0; } }
.pegsay { position: fixed; z-index: 13; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--b) + 88px); max-width: min(230px, calc(100vw - 32px)); padding: 10px 12px; font-size: 13px; line-height: 1.35; cursor: pointer; animation: pegpop .25s cubic-bezier(.3,1.6,.5,1); transform-origin: 90% 100%; }
.pegsay::after { content: ""; position: absolute; right: 20px; top: 100%; width: 12px; height: 12px; background: linear-gradient(#000 0 0) 0 0 / 2px 2px, linear-gradient(#000 0 0) 100% 0 / 2px 4px, linear-gradient(#000 0 0) 2px 2px / 2px 2px, linear-gradient(#000 0 0) 4px 4px / 2px 2px, linear-gradient(#000 0 0) 8px 4px / 2px 2px, linear-gradient(#000 0 0) 6px 6px / 2px 2px, linear-gradient(var(--bg) 0 0) 2px 0 / 8px 2px, linear-gradient(var(--bg) 0 0) 4px 2px / 6px 2px, linear-gradient(var(--bg) 0 0) 6px 4px / 2px 2px; background-repeat: no-repeat; }
body:has(#card:not([hidden])) .pegsay, body.cred-open .pegsay, body.sr-open .pegsay { display: none; }
.pegsay.hi { margin-bottom: 52px; } .pegsay.hi::after { display: none; }
.pegarrow { position: absolute; right: 6px; top: calc(100% + 2px); overflow: visible; animation: pegarrow .7s steps(5) infinite alternate; } @keyframes pegarrow { to { transform: translateY(8px); } } @media (prefers-reduced-motion: reduce) { .pegarrow { animation: none; } }
.peg .dots { display: none; } .peg[aria-pressed="true"] .dots { display: inline; } .peg[aria-pressed="true"] { filter: brightness(1.15); }
.peg:is([data-s="hover"], [data-s="cruise"], [data-s="lift"], [data-s="pearl"], [data-s="glide"], [data-s="lost"], [data-s="drop"], [data-s="clutch"]) { pointer-events: none; }
.peg .bkt, .peg .wtr { display: none; } .peg.bucket .bkt, .peg.bucket.full .wtr { display: inline; }
.pegwater { position: fixed; left: 0; top: 0; z-index: 4; pointer-events: none; image-rendering: pixelated; } .pegwater[hidden] { display: none; }
@media (max-width: 760px) and (max-height: 779px) { .credcard { left: 12px; transform: none; width: calc(100vw - 224px); bottom: calc(var(--b) + 84px); max-height: calc(100dvh - 190px); padding: 8px; } .credcard dl { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .pegsay { right: max(12px, env(safe-area-inset-right)); bottom: calc(var(--b) + 108px); } body .peg { right: max(var(--gap), env(safe-area-inset-right)); bottom: calc(var(--b) + 20px); } body:not(.adm) .search { max-width: none; margin-right: calc(48px + var(--gap)); } }
@media (prefers-reduced-motion: reduce) { .pegspot::before { display: none; } }

/* ---------- public: drawer with the important places ---------- */
body.pub .title { position: fixed; z-index: 11; left: 50%; top: max(12px, env(safe-area-inset-top)); transform: translateX(-50%); } body.pub .title h1.art img { width: clamp(180px, 24vw, 340px); }
body.pub .ctrl.lft { right: auto; left: 16px; align-items: flex-start; }
body.pub .pegsay { padding: 10px 14px; font-size: 15px; white-space: nowrap; }
#places, body.pub #discord, body.pub #home { width: 168px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 14px; text-decoration: none; } #places { background: #3c8527; color: #fff; box-shadow: inset 2px 2px 0 #6cc349, inset -2px -2px 0 #1e4d10; } #places:hover { background: #458f2e; } #places[aria-expanded=true] { box-shadow: inset 2px 2px 0 #1e4d10, inset -2px -2px 0 #6cc349; } #places .lbl, #discord .lbl { font-size: 15px; }
/* the place card stands over the search, left */
body.pub .bottom, body.pub:not(.drawer-open):has(#card:not([hidden])) .bottom { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "c c c" "s f ."; grid-template-rows: auto auto; gap: 8px var(--gap); }
body.pub .search { width: 100%; max-width: 440px; justify-self: start; } body.pub .card, body.pub:not(.drawer-open) .card { width: 100%; max-width: 440px; justify-self: start; margin: 0; padding: 10px 12px; gap: 5px; } body.pub .card h2 { font-size: 17px; } body.pub .card .x { margin: -2px -4px 0 0; }
body.pub .foot, body.pub:not(.drawer-open):has(#card:not([hidden])) .foot { justify-self: center; margin: 0 0 -8px; }
body.sr-open.pub .card { display: none; }
@media (max-width: 760px) {
  body.pub .title h1.art img { width: 172px; } body.pub .ctrl { right: 10px; gap: 6px; } body.pub .ctrl.lft { left: 10px; right: auto; gap: 6px; }
  body.pub .ctrl .ib { width: 42px; height: 42px; } body.pub .ctrl #places, body.pub .ctrl #discord, body.pub .ctrl #home { width: 42px; padding: 0; justify-content: center; } #places .lbl, #discord .lbl, #home .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  body.pub .bottom, body.pub:not(.drawer-open):has(#card:not([hidden])) .bottom { grid-template-columns: minmax(0, 1fr); grid-template-areas: "c" "s" "f"; grid-template-rows: none; gap: 6px; }
  body.pub .card, body.pub:not(.drawer-open) .card { max-width: none; margin: 0; max-height: 34vh; padding: 8px 10px; gap: 3px; } body.pub .card h2 { font-size: 15px; } .card .go code { min-height: 36px; font-size: 11px; } .card .go button { height: 36px; padding: 0 10px; font-size: 12px; } body.pub .kind { font-size: 11px; }
  body.pub .foot, body.pub:not(.drawer-open):has(#card:not([hidden])) .foot { justify-self: center; margin: 0; } body.pub:not(.adm) .search { max-width: none; margin-right: 0; }
  /* the character waits under the Discord button, its words under it */
  body.pub .peg { right: 7px; bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 104px); }
  body.pub .pegsay { right: 10px; bottom: auto; top: calc(max(12px, env(safe-area-inset-top)) + 196px); transform-origin: 90% 0; } body.pub .pegsay.hi { margin: 52px 0 0; }
  body.pub .pegsay::after { top: auto; bottom: 100%; rotate: 180deg; right: 16px; } body.pub .pegarrow { top: auto; bottom: calc(100% + 4px); right: 1px; scale: 1 -1; }
  /* Explore slides over the buttons, they stay under it */
  body.pub #discord svg { width: 22px; height: 22px; }
}
body.pub .drawer { z-index: 20; padding: 0 16px 24px; width: min(380px, 100vw); scrollbar-gutter: stable; will-change: transform; transition: transform var(--slide), visibility .38s; }
body.pub { --slide: .38s cubic-bezier(.22, 1, .36, 1); } body.pub .bottom, body.pub .ctrl.lft { transition: left var(--slide); } body.pub .title { transition: left var(--slide), opacity .2s, visibility .2s; }
/* the hint next to Explore, and the dot on the button until it was opened once */
#places { position: relative; } #places.new::after { content: ""; position: absolute; right: -5px; top: -5px; width: 10px; height: 10px; background: #ff3b30; border: 2px solid #000; }
body.pub .pegsay.exsay { left: auto; bottom: auto; right: 228px; overflow: visible; top: calc(max(14px, env(safe-area-inset-top)) + 58px); margin: 0; animation: exfly .7s cubic-bezier(.22, 1, .36, 1); }
body.pub .pegsay.exsay::after { display: none; } .exarrow { position: absolute; left: calc(100% + 8px); top: calc(50% - 13px); animation: exarrow .7s steps(3) infinite alternate; } @keyframes exarrow { to { transform: translateX(6px); } } body.drawer-open .exsay { display: none; }
@keyframes exfly { from { transform: translateX(260px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body.pub { --slide: 0s; } body.pub .pegsay.exsay, .exarrow { animation: none; } }
.phead { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; margin: 0 -16px 12px; padding: 10px 10px 10px 16px; background: var(--bg); border-bottom: 2px solid var(--line); }
.drawer .phead h2 { margin: 0; } .phead .x { width: 40px; height: 40px; flex: none; }
.pjoin { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 8px 8px 8px 12px; background: #1c1c1c; color: var(--y); border: 2px solid #000; box-shadow: inset 2px 2px 0 #0c0c0c, inset -2px -2px 0 #4a4a4a; } .pjoin > span { color: var(--y); } .pjoin code { flex: 1; min-width: 0; font: inherit; overflow-wrap: anywhere; user-select: all; } .pcopy { height: 38px; padding: 0 12px; flex: none; background: var(--y); color: var(--yi); box-shadow: inset 2px 2px 0 var(--y2), inset -2px -2px 0 #b98a00; } @media (max-width: 760px) { .pjoin { gap: 6px; padding: 6px 6px 6px 8px; font-size: 13px; } .pjoin code { white-space: nowrap; } .pcopy { padding: 0 8px; font-size: 13px; } }
.pkind { display: flex; gap: 6px; margin: 0 0 8px; } .pkind button { flex: 1 1 auto; height: 36px; padding: 0 6px; font-size: 12px; } .pkind [aria-pressed=true] { background: var(--y); color: var(--yi); box-shadow: inset 2px 2px 0 var(--y2), inset -2px -2px 0 #b98a00; }
.plist summary { padding: 12px 0; cursor: pointer; border-top: 2px solid var(--line); font-size: 15px; } .plist summary small { float: right; color: var(--mut); font-size: 12px; }
.drawer .plist section { padding: 0 0 8px; border: 0; } .drawer .plist h3 { margin: 6px 0 2px; color: var(--mut); font-size: 12px; }
.plist ul { list-style: none; margin: 0; padding: 0; }
.plist a { display: flex; align-items: center; gap: 10px; padding: 6px; text-decoration: none; min-height: 48px; }
.plist a:hover, .plist a:focus-visible { background: var(--sel); }
.plist b, .plist a small { display: block; font-weight: 400; line-height: 1.3; } .plist b { font-size: 14px; } .plist a small { font-size: 12px; color: var(--mut); }
@media (min-width: 761px) { body.pub.drawer-open { --dw: 380px; } body.pub.drawer-open .title { left: calc(50% + 190px); } body.pub.drawer-open .ctrl.lft { left: 396px; } }
@media (min-width: 761px) and (max-width: 1100px) { body.pub.drawer-open .title { visibility: hidden; opacity: 0; } }
/* a place page shows the map as a picture (?embed=1) */
body.embed > :not(#map):not(.peg):not(.pegspot):not(.pegpearl), body.embed .pegslot, body.embed .pegsay { display: none !important; }
/* phone: Explore comes in from the right, next to its button, and the map stays in sight */
@media (max-width: 760px) {
  body.pub .drawer { left: auto; right: 0; width: min(380px, calc(100vw - 56px)); border-left: 2px solid #000; transform: translateX(102%); } body.pub.drawer-open .drawer { transform: none; }
  body.pub::before { content: ""; position: fixed; inset: 0; z-index: 19; background: rgb(0 0 0 / .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; } body.pub.drawer-open::before { opacity: 1; visibility: visible; }
  body.pub .pegsay.exsay { right: 96px; top: calc(max(14px, env(safe-area-inset-top)) + 53px); padding: 7px 10px; font-size: 13px; } .pkind button { padding: 0 4px; font-size: 11px; }
}
@media (min-width: 761px) and (max-width: 1100px) { body.pub .pegsay.exsay { padding: 8px 10px; font-size: 12px; } }
/* links to the place pages (mineplus.net) */
.plist li { display: flex; align-items: center; } .plist li[hidden] { display: none; } .plist li > a:first-child { flex: 1; min-width: 0; } .plist .pg { flex: none; width: 44px; min-height: 44px; padding: 0; justify-content: center; color: var(--mut); } .plist .pg:hover { color: var(--ink); }
.pall { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; margin: 0 0 10px; text-decoration: none; }
body.pub .ctrl > [hidden] { display: none !important; } #home .lbl { font-size: 15px; } .ctrl .ib svg { display: block; flex: none; }
.title a { display: block; pointer-events: auto; }
body.pub:where(:has(#home:not([hidden]))) .pegsay.exsay { top: calc(max(14px, env(safe-area-inset-top)) + 114px); }
@media (max-width: 760px) { body.pub .pegsay.exsay { top: calc(max(14px, env(safe-area-inset-top)) + 51px); } body.pub:where(:has(#home:not([hidden]))) .pegsay.exsay { top: calc(max(14px, env(safe-area-inset-top)) + 99px); } body.pub .ctrl #home svg, body.pub .ctrl #places svg, body.pub .ctrl #theme svg { width: 24px; height: 24px; } }
@media (max-width: 760px) { body.pub:where(:has(#home:not([hidden]))) .peg { top: calc(max(12px, env(safe-area-inset-top)) + 152px); } body.pub:where(:has(#home:not([hidden]))) .pegsay:not(.exsay) { top: calc(max(12px, env(safe-area-inset-top)) + 244px); } }
/* light: the fields are light too */
:root[data-theme=light] body.pub { --field: #f3f3f3; }
:root[data-theme=light] body.pub :is(.search input, .go code) { color: #222; box-shadow: inset 2px 2px 0 #9a9a9a, inset -2px -2px 0 #fff; } :root[data-theme=light] body.pub .search input::placeholder { color: #5a5a5a; }
:root[data-theme=light] body.pub .search .mag { color: #444; }
/* card: info next to the close button; the command and long names break into lines of about the same length */
.card h2 .hb { display: flex; flex: none; gap: 14px; } .card h2 .hb a { text-decoration: none; } .card h2 .nm { display: flex; gap: 8px; align-items: center; min-width: 0; min-height: 28px; } .card h2 .nm svg { flex: none; color: var(--acc); }
.go code, .card .nm span, .pegsay span { text-wrap: balance; } .go code { justify-content: flex-start; }
/* the buttons on the right, top to bottom */
#home { order: 1; } #discord { order: 2; } #places { order: 3; } #store { order: 4; }
body.pub #store { width: 168px; display: flex; align-items: center; justify-content: flex-start; gap: 12px; padding: 0 14px; text-decoration: none; font-size: 15px; background: #fac81c; color: #1a0c04; box-shadow: inset 2px 2px 0 #ffe27a, inset -2px -2px 0 #b98a00; } @media (max-width: 760px) { body.pub .ctrl #store { width: 42px; padding: 0; justify-content: center; } #store .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } body.pub:where(:has(#store)) .peg { top: calc(max(12px, env(safe-area-inset-top)) + 200px); } }
/* dark mode on the map page: buttons and cards only */
:root body.pub #map { background: #86b34a; }
/* Explore drawer: the same info button as on the card, at the end of each place */
.plist a.pg.mc { width: 36px; min-height: 36px; height: 36px; margin: 0 2px 0 8px; padding: 0; color: var(--ink); background: var(--bg); } .plist a.pg.mc:hover, .plist a.pg.mc:focus-visible { background: var(--sel); }
