/* The contribute page. Dark chrome over the map, as on the live site. Fonts are served from fonts/ (see its README). */
@font-face { font-family: "Bricolage Grotesque"; src: url(fonts/bricolage-grotesque-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; src: url(fonts/figtree-latin-ext.woff2) format("woff2"); font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plex-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/plex-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0c131b; --panel: rgba(13, 20, 29, 0.94); --solid: #121b26; --raise: rgba(255, 255, 255, 0.055); --raise2: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.1); --line2: rgba(255, 255, 255, 0.2);
  --ink: #edf2f8; --muted: #9aaabb; --faint: #6a7a8c;
  --accent: #ffb547; --accent-ink: #1d1404; --link: #a8d4ff; --warn: #ff9b8a; --ok: #8fe0a6;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --body: "Figtree", system-ui, sans-serif; --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --panel-w: 468px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
svg.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--ink); text-decoration-color: rgba(237, 242, 248, .35); text-underline-offset: 2px; }
a:hover { text-decoration-color: currentColor; }
p { margin: 0; color: var(--muted); }
kbd { font: 500 11px/1 var(--mono); padding: 4px 6px; border-radius: 5px; border: 1px solid var(--line2); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.warn { color: var(--warn); }
.mobile-only { display: none; }

/* ---------------------------------------------------------------- the map */
.stage { position: fixed; inset: 0; }
#map { position: absolute; inset: 0; background: #1a2430; }
#map.drawing, #map.drawing .leaflet-interactive { cursor: crosshair; }
.leaflet-tile-pane { filter: saturate(.86); }
.leaflet-container { font: inherit; }
.leaflet-bar { border: 1px solid var(--line) !important; border-radius: 10px; overflow: hidden; box-shadow: 0 10px 28px -10px rgba(0, 0, 0, .55); }
.leaflet-bar a, .leaflet-bar a.leaflet-disabled { width: 36px; height: 36px; line-height: 34px; background: var(--solid); color: var(--ink); border-bottom-color: var(--line); font: 400 20px/34px var(--body); }
.leaflet-bar a:hover { background: #1c2836; color: #fff; }
.leaflet-bar a.leaflet-disabled { color: var(--faint); }
.leaflet-container .leaflet-control-attribution { background: rgba(13, 20, 29, .78); color: var(--muted); font-size: 11px; padding: 2px 8px; border-radius: 8px 0 0 0; }
.leaflet-container .leaflet-control-attribution a { color: var(--ink); }
.leaflet-tooltip { font: 13px/1.4 var(--body); border: 0; border-radius: 7px; background: var(--solid); color: var(--ink); box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .6); padding: 5px 9px; }
.leaflet-tooltip::before { display: none; }
.leaflet-tooltip.size-tag { background: var(--accent); color: var(--accent-ink); font: 500 12px/1 var(--mono); padding: 5px 7px; border-radius: 5px; white-space: nowrap; }
.camera-pin { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--accent-ink); box-shadow: 0 0 0 2px rgba(255, 255, 255, .85), 0 3px 10px rgba(0, 0, 0, .4); }
.camera-pin.fixed { background: #fff; }

.banner { position: absolute; top: 18px; left: calc(var(--panel-w) + 16px + (100% - var(--panel-w) - 16px) / 2); transform: translateX(-50%); z-index: 900; display: flex; align-items: center; gap: 10px;
  padding: 9px 10px 9px 16px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 600; white-space: nowrap; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); animation: drop .25s ease-out both; }
.banner kbd { border-color: rgba(29, 20, 4, .35); color: var(--accent-ink); }
.legend { position: absolute; left: calc(var(--panel-w) + 32px); bottom: 16px; z-index: 900; display: flex; gap: 14px; padding: 7px 12px; border-radius: 9px; background: rgba(13, 20, 29, .82); font-size: 12px; color: var(--muted); pointer-events: none; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 30%, transparent); }
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- the panel */
.panel { position: fixed; left: 16px; top: 16px; bottom: 16px; width: var(--panel-w); z-index: 1000; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line2) transparent;
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.head { position: relative; z-index: 2; padding: 24px 26px 20px; }
.head::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 190px; pointer-events: none; border-radius: 18px 18px 0 0;
  background: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px) 0 6px / 10px 10px, linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px) 6px 0 / 10px 10px;
  -webkit-mask-image: radial-gradient(120% 100% at 100% 0, #000 10%, transparent 70%); mask-image: radial-gradient(120% 100% at 100% 0, #000 10%, transparent 70%); }
.head > * { position: relative; }
.brand { display: flex; gap: 9px; align-items: center; font: 500 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.brand a { color: var(--accent); text-decoration: none; }
.brand span::before { content: "/"; margin-right: 9px; color: var(--line2); }
.pixels { position: absolute !important; right: 26px; top: 48px; display: grid; grid-template-columns: repeat(13, 7px); }
.pixels i { width: 7px; height: 7px; background: var(--c); animation: pop .3s ease-out backwards; animation-delay: calc(var(--i) * 14ms + 250ms); }
.pixels i.sea { animation: pop .3s ease-out backwards, ripple 5s ease-in-out infinite; animation-delay: calc(var(--i) * 14ms + 250ms), calc(var(--i) * 90ms); }
h1 { margin: 34px 0 8px; font: 700 40px/1 var(--display); letter-spacing: -.025em; }
.lede { font-size: 16px; line-height: 1.45; max-width: 34ch; }

/* the city search */
.finder { position: relative; margin-top: 20px; }
.combo { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 10px 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line2); transition: border-color .15s, background .15s, box-shadow .15s; }
.combo:focus-within { border-color: var(--accent); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(255, 181, 71, .16); }
.combo > .ico { color: var(--muted); width: 20px; height: 20px; }
.combo:focus-within > .ico { color: var(--accent); }
.combo input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 500 17px var(--body); }
.combo input::placeholder { color: var(--faint); font-weight: 400; }
.combo .clear { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border-radius: 8px; background: none; color: var(--muted); }
.combo .clear:hover { background: var(--raise2); color: var(--ink); }
.combo .slash { margin-right: 6px; }
.combo:focus-within .slash, .combo.filled .slash { display: none; }
.spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--accent); animation: spin .7s linear infinite; }
.combo.busy .spin { display: block; }
.menu { position: absolute; left: 0; right: 0; top: 58px; z-index: 5; padding: 6px; border-radius: 14px; background: #162130; border: 1px solid var(--line2); box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .75); animation: drop .16s ease-out both; }
.menu .group { padding: 8px 10px 4px; font: 500 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
.opt > .ico { color: var(--faint); }
.opt .main { flex: 1; min-width: 0; display: grid; }
.opt .main b { font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .main b mark { background: none; color: var(--accent); }
.opt .main small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt .tag { font: 500 11px/1 var(--mono); color: var(--faint); white-space: nowrap; }
.opt .tag.on { color: var(--ok); }
.opt[aria-selected="true"] { background: rgba(255, 181, 71, .13); }
.opt[aria-selected="true"] > .ico { color: var(--accent); }
.opt.more { color: var(--muted); }
.opt.more b { color: var(--ink); font-weight: 500; }
.menu .empty { padding: 10px; color: var(--muted); font-size: 14px; }
.menu .group + .empty { padding-top: 4px; }

.known { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--faint); }
.known button { padding: 5px 11px; border-radius: 999px; font-size: 13px; background: none; border: 1px solid var(--line2); color: var(--ink); }
.known button:hover { border-color: var(--accent); background: rgba(255, 181, 71, .1); }
.known button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); font-weight: 600; }
.notice { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(168, 212, 255, .08); color: var(--ink); font-size: 14px; line-height: 1.4; }

/* buttons and fields */
button { appearance: none; border: 0; font: inherit; color: var(--ink); cursor: pointer; }
button.primary, button.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 12px; font-weight: 600; font-size: 15.5px; white-space: nowrap; transition: transform .08s, background .15s; }
button.primary { background: var(--accent); color: var(--accent-ink); }
button.primary:hover:not(:disabled) { background: #ffc569; }
button.primary:active:not(:disabled) { transform: translateY(1px); }
button.primary[aria-pressed="true"] { background: var(--raise2); color: var(--ink); }
button.primary.again { background: var(--raise2); color: var(--ink); }
button.primary.again:hover { background: rgba(255, 255, 255, .16); }
button.ghost { background: none; color: var(--muted); padding: 0 12px; font-weight: 500; }
button.ghost:hover { color: var(--ink); background: var(--raise); }
button.wide { width: 100%; margin-top: 16px; }
button:disabled { opacity: .4; cursor: not-allowed; }
button.link { background: none; padding: 0; color: var(--link); text-decoration: underline; text-decoration-color: rgba(168, 212, 255, .4); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.combo input:focus-visible { outline: 0; }
.row { display: flex; gap: 6px; align-items: center; }
label { display: grid; gap: 5px; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
input { font: inherit; font-size: 15px; color: var(--ink); background: var(--raise); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; min-width: 0; }
input::placeholder { color: var(--faint); }
label input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 181, 71, .16); }
input[readonly] { color: var(--muted); }
input[type="number"] { font-family: var(--mono); font-size: 14px; padding: 9px 8px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 8px; }

/* ---------------------------------------------------------------- the steps */
.body { padding: 4px 26px 22px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 0 0 26px 42px; counter-increment: step; }
.step::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; border: 1.5px solid var(--line2); font: 500 13px/1 var(--mono); color: var(--muted); }
.step::after { content: ""; position: absolute; left: 12px; top: 34px; bottom: 8px; border-left: 1.5px dashed var(--line2); }
.step:last-child { padding-bottom: 8px; }
.step:last-child::after { display: none; }
.step.now::before { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.step h2 { margin: 0 0 4px; font: 600 19px/26px var(--display); letter-spacing: -.01em; }
/* Later steps show their title only; finished steps show a tick and one line. */
.step.later { padding-bottom: 14px; }
.step.later h2 { font-size: 16px; font-weight: 500; color: var(--faint); }
.step.later .open, .step.done .open { display: none; }
.step.done.keep .open { display: block; }
.step.later::after { top: 32px; bottom: 4px; }
.step.done { padding-bottom: 16px; }
.step.done::before { content: "\2713"; border-color: var(--ok); color: var(--ok); }
.step.done h2 { font-size: 16px; font-weight: 500; color: var(--muted); }
.summary { margin-top: 0; font-size: 14px; color: var(--muted); }
button.link { padding: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#claimStatus { font-size: 14.5px; }
#claimStatus.ok { color: var(--ok); }
.step > p { font-size: 14.5px; }
.step .row { margin-top: 10px; }

.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; margin: 16px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--raise); animation: drop .25s ease-out both; }
.stats > div { padding: 12px 12px 12px 14px; min-width: 0; }
.stats > div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: 12px; color: var(--muted); }
.stats dd { margin: 3px 0 2px; font: 600 23px/27px var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stats dd.est::before { content: "\2248"; margin-right: 3px; font-weight: 400; color: var(--faint); }
.stats span { display: block; font-size: 11.5px; line-height: 1.3; color: var(--faint); }
.stats span b { display: inline-block; font-weight: inherit; white-space: nowrap; }
.stats span b:first-child { margin-right: 6px; }
.hint { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.hint.ok { color: var(--ok); }
.hint.warn { color: var(--warn); }
.problem { margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 155, 138, .1); color: var(--warn); font-size: 14px; line-height: 1.4; white-space: pre-line; }
details.more { margin-top: 14px; }
details.more summary, details.credits summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; font: 400 15px/1 var(--mono); width: 10px; }
details[open] summary::before { content: "\2212"; }
details summary:hover { color: var(--ink); }
details.more .hint { font-size: 12.5px; }

.code { position: relative; margin-top: 12px; border-radius: 14px; background: rgba(0, 0, 0, .34); border: 1px solid var(--line); }
.code pre { margin: 0; padding: 44px 16px 16px; white-space: pre-wrap; word-break: break-word; font: 12.5px/1.6 var(--mono); color: #d5deea; }
.code button { position: absolute; top: 8px; right: 8px; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: #26313f; font-size: 13px; font-weight: 500; }
.code button:hover { background: #313e4f; }
.code button .ico { width: 15px; height: 15px; }
.code button.done { background: var(--ok); color: #06210f; }
.code pre::first-line { color: var(--ink); }

.need { margin: 2px 0 24px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); }
.need h3, .credits summary { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.need h3 { margin: 0 0 10px; }
.need ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.need b { color: var(--ink); font-weight: 600; }
.need small { display: block; font-size: 12px; color: var(--faint); }
.need li.wide { grid-column: 1 / -1; }
.donate { display: flex; align-items: center; gap: 14px; margin-top: 10px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; transition: border-color .15s, background .15s; }
.donate:hover { border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .06); }
.donate > .ico:first-child { width: 22px; height: 22px; color: var(--accent); }
.donate span { flex: 1; display: grid; }
.donate b { font-weight: 600; }
.donate small { font-size: 12.5px; color: var(--muted); }
.donate .out { color: var(--faint); width: 16px; height: 16px; }
details.credits { margin-top: 16px; }
details.credits ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
details.credits b { color: var(--ink); font-weight: 600; }
footer { margin-top: 16px; font-size: 12.5px; color: var(--faint); }

.head > *, .body > * { animation: rise .5s ease-out backwards; }
.head > :nth-child(3) { animation-delay: .04s; } .head > :nth-child(4) { animation-delay: .08s; } .head > .finder { animation-delay: .12s; z-index: 5; }
.body > * { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } }
.banner { animation-name: dropc; }
@keyframes dropc { from { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes pop { from { opacity: 0; transform: scale(.2); } }
@keyframes ripple { 0%, 70%, 100% { background: var(--c); } 85% { background: #0b5596; } }
@keyframes spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 760px) {
  html, body { height: auto; }
  body { display: flex; flex-direction: column; }
  .panel { display: contents; }
  .head { order: 1; padding: 18px 18px 16px; background: var(--bg); z-index: 1001; }
  .head::before { border-radius: 0; height: 150px; }
  .stage { order: 2; position: relative; height: 56vh; height: 56svh; }
  .body { order: 3; padding: 22px 18px 28px; background: var(--bg); }
  .pixels { right: 18px; top: 42px; grid-template-columns: repeat(13, 5px); }
  .pixels i { width: 5px; height: 5px; }
  h1 { margin-top: 26px; font-size: 34px; }
  .lede { font-size: 15px; }
  .finder { margin-top: 16px; }
  .slash { display: none; }
  .banner { top: 12px; left: 50%; font-size: 14px; }
  .banner kbd { display: none; }
  .banner { padding-right: 16px; }
  .legend { left: 10px; top: 10px; bottom: auto; gap: 10px; font-size: 11.5px; padding: 6px 9px; }
  .mobile-only { display: block; }
  .stats dd { font-size: 19px; line-height: 23px; }
  .need ul { grid-template-columns: 1fr; }
}
