@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(anton-latin.woff2) format("woff2");
  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: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(anton-latin-ext.woff2) format("woff2");
  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;
}

/* Vice City at dusk: a plum night sky, a pink-to-gold sunset and a teal sea. */
:root {
  --bg: #140a22;
  --panel: #1c1030;
  --panel-2: #29173f;
  --line: #3e2a5c;
  --text: #fff5f0;
  --muted: #c8b3d4;
  --pink: #ff4fa0;
  --coral: #ff7a59;
  --sun: #ffcf5c;
  --teal: #3ee0cf;
  --accent: var(--pink);
  --accent-2: var(--sun);
  --ok: #3ee0a1;
  --on-sunset: #2a0b1e;
  --sunset: linear-gradient(100deg, var(--pink) 0%, var(--coral) 52%, var(--sun) 100%);
  --display: "Anton", "Impact", "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --top-h: 56px;
  --escape-h: 44px;
  --radius: 14px;
  --shadow: 0 10px 32px rgba(8, 2, 18, 0.55);
  color-scheme: dark;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body.g6 {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent-2); }

button { font: inherit; color: inherit; }

.g6-top {
  position: relative;
  height: var(--top-h);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background:
    radial-gradient(120% 220% at 100% 0%, rgba(255, 79, 160, 0.38) 0%, rgba(255, 122, 89, 0.12) 38%, transparent 62%),
    linear-gradient(90deg, #0f0719 0%, #1d0d2e 60%, #2b1030 100%);
}

.g6-top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--sunset);
}

.g6-brand {
  flex: none;
  display: block;
  line-height: 0;
}

.g6-brand img { display: block; height: 38px; width: auto; }

.g6-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g6-title span {
  display: block;
  font-size: 12px;
  letter-spacing: 0.24em;
  background: var(--sunset);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.g6-toguide {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 207, 92, 0.55);
  color: var(--sun);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.g6-toguide:hover { background: rgba(255, 207, 92, 0.12); }

@media (max-width: 420px) {
  .g6-brand img { height: 32px; }
  .g6-title { padding-left: 10px; font-size: 18px; }
  .g6-toguide { padding: 6px 11px; font-size: 13px; }
}

/* The map is kept shorter than the viewport so a strip of page is always on screen to scroll
   by: a full-height map would swallow every touch drag and trap the reader on it. */
.g6-app {
  position: relative;
  height: calc(100vh - var(--top-h) - var(--escape-h));
  height: calc(100svh - var(--top-h) - var(--escape-h));
  min-height: 420px;
  overflow: hidden;
  background: #015790;
}

.g6-map { position: absolute; inset: 0; }

.g6-map:focus-visible { outline: 3px solid var(--accent-2); outline-offset: -3px; }

.g6-noscript { padding: 24px; }

.g6-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.g6-attrib {
  position: absolute;
  z-index: 3;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(20, 10, 34, 0.78);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.g6-attrib a { color: var(--text); }

.g6-ctrls {
  position: absolute;
  z-index: 4;
  right: 10px;
  bottom: calc(var(--sheet-h, 140px) + 12px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  transition: opacity 0.2s, bottom 0.25s;
}



.g6-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(28, 16, 48, 0.94);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.g6-btn:hover { background: var(--panel-2); }
.g6-btn:focus-visible, .g6-chip:focus-visible, .g6-row:focus-visible, .g6-result:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.g6-btn.is-primary { background: var(--sunset); border-color: transparent; color: var(--on-sunset); }
.g6-btn.is-primary:hover { filter: brightness(1.06); }
.g6-btn.is-done { background: var(--ok); border-color: var(--ok); color: #06251a; }
.g6-btn.is-ghost { background: transparent; box-shadow: none; }

.g6-zoom { display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.g6-zoom .g6-btn { border-radius: 0; box-shadow: none; width: 44px; padding: 0; font-size: 22px; font-weight: 500; }
.g6-zoom .g6-btn + .g6-btn { border-top: 0; }

/* Panel: a bottom sheet on phones, a side panel on desktop. */
.g6-panel {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--sheet-h, 66px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #231339 0%, var(--panel) 160px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 -10px 30px rgba(8, 2, 18, 0.5);
  overflow: clip;
}

.g6-grip {
  flex: none;
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
  touch-action: none;
}

.g6-grip::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border: solid var(--pink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.g6-toolbar { flex: none; }
.g6-mobile-filters { display: none; }

.g6-search {
  flex: none;
  position: relative;
  padding: 0 12px;
}

.g6-search input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #120920;
  color: var(--text);
  font-size: 16px;
}

.g6-search input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.g6-search svg { position: absolute; left: 25px; top: 14px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }

.g6-clear {
  position: absolute;
  right: 16px;
  top: 4px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.g6-chips {
  flex: none;
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  touch-action: pan-x;
}

.g6-chips::-webkit-scrollbar { display: none; }

.g6-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.g6-chip b { font-weight: 600; opacity: 0.75; font-size: 12px; }
.g6-chip.is-on { color: #fff; border-color: transparent; background: rgba(255, 79, 160, 0.22); box-shadow: inset 0 0 0 1.5px var(--pink); }
.g6-chip.is-part { color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 79, 160, 0.5); }
.g6-chip.is-filters { color: var(--on-sunset); background: var(--sunset); border-color: transparent; }
.g6-chip.is-collapse { display: none; }

/* A marker's card needs the room more than the category chips do on a phone. */
.g6-panel.is-detail .g6-chips { display: none; }

.g6-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 12px calc(24px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}

.g6-view-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 6px 0 10px;
}

.g6-view-title h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: 0.03em; text-transform: uppercase; }

.g6-note { margin: 6px 0 12px; color: var(--muted); font-size: 13px; }

.g6-progress {
  display: grid;
  gap: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 79, 160, 0.16), rgba(255, 207, 92, 0.08));
  border: 1px solid rgba(255, 122, 89, 0.35);
}

.g6-progress strong { font-family: var(--display); font-weight: 400; font-size: 20px; letter-spacing: 0.02em; }

.g6-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.g6-bar i { display: block; height: 100%; border-radius: 4px; background: var(--sunset); }

.g6-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.g6-actions .g6-btn { box-shadow: none; min-height: 40px; }

.g6-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}

.g6-switch input { width: 22px; height: 22px; accent-color: var(--accent); }

.g6-group {
  margin-bottom: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.g6-group > header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 4px;
}

.g6-group-toggle {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: none;
  text-align: left;
  font-family: var(--display);
  font-weight: 400;
  font-size: 17px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
}

.g6-group-toggle .g6-caret { transition: transform 0.2s; color: var(--muted); }
.g6-group.is-open .g6-caret { transform: rotate(90deg); }
.g6-group-count { margin-left: auto; color: var(--muted); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 600; font-size: 13px; letter-spacing: 0; text-transform: none; }

.g6-mini {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.g6-types { display: none; padding: 0 6px 8px; }
.g6-group.is-open .g6-types { display: block; }

.g6-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 4px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.g6-row:hover { background: var(--panel-2); }
.g6-row.is-off { opacity: 0.5; }
.g6-row.is-off .g6-icon { filter: grayscale(1); }

.g6-icon { flex: none; width: 28px; height: 32px; }

.g6-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.g6-row-text small { color: var(--muted); font-size: 12px; }
.g6-row-count { flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.g6-row-count.is-done { color: var(--ok); }

.g6-check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #6a5585;
  display: grid;
  place-items: center;
}

.g6-row:not(.is-off) .g6-check { background: var(--pink); border-color: var(--pink); }
.g6-row:not(.is-off) .g6-check::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }

.g6-results h3 {
  margin: 14px 4px 6px;
  color: var(--sun);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.g6-result {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  text-align: left;
  cursor: pointer;
}

.g6-result:hover, .g6-result.is-active { background: var(--panel-2); }
.g6-result .g6-row-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g6-found-tag { flex: none; color: var(--ok); font-size: 12px; font-weight: 700; }

.g6-empty { padding: 18px 6px; color: var(--muted); }

/* Detail */
.g6-detail { display: grid; gap: 12px; padding-top: 2px; }

.g6-detail-head { display: flex; gap: 12px; align-items: flex-start; }
.g6-detail-head h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1.15; letter-spacing: 0.02em; text-transform: uppercase; overflow-wrap: anywhere; }
.g6-detail-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.g6-detail-head .g6-close { margin-left: auto; }

.g6-close {
  flex: none;
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.g6-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; padding: 12px; border-radius: var(--radius); background: var(--panel-2); border: 1px solid var(--line); }
.g6-facts dt { color: var(--muted); }
.g6-facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

.g6-hint { margin: 0; padding: 10px 12px; border-left: 3px solid var(--teal); background: rgba(62, 224, 207, 0.08); border-radius: 0 10px 10px 0; }
.g6-hint b { display: block; font-size: 12px; color: var(--teal); letter-spacing: 0.04em; text-transform: uppercase; }

.g6-real { margin: 0; color: var(--muted); font-size: 13px; }
.g6-real b { color: var(--text); font-weight: 600; }

.g6-detail .g6-actions .g6-btn { flex: 1 1 auto; min-height: 46px; }

.g6-stack { display: grid; gap: 4px; }

.g6-toast {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--sunset);
  color: var(--on-sunset);
  font-weight: 700;
  box-shadow: var(--shadow);
}

.g6-dialog {
  position: absolute;
  z-index: 10;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 4, 20, 0.62);
}

.g6-dialog > div {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.g6-dialog h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 21px; letter-spacing: 0.02em; text-transform: uppercase; }
.g6-dialog p { margin: 0; color: var(--muted); }

.g6-card { display: none; }

/* Page content under the map */
.g6-escape {
  height: var(--escape-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--sun);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: linear-gradient(180deg, #1d0d2e, var(--bg));
  border-bottom: 1px solid var(--line);
}

.g6-guide { max-width: 1040px; margin: 0 auto; padding: 22px 16px 40px; }
.g6-guide > header { margin: 4px 0 22px; }
.g6-kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; color: var(--pink); }
.g6-guide-title { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 6vw, 48px); line-height: 1.02; letter-spacing: 0.01em; text-transform: uppercase; }
.g6-guide-title span { background: var(--sunset); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g6-lede { font-size: 17px; margin: 12px 0 0; max-width: 70ch; color: #f0e2ea; }
.g6-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.g6-stats li { padding: 10px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.g6-stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--text); letter-spacing: 0.02em; }
.g6-jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.g6-jump a { padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; }
.g6-jump a:hover { border-color: var(--pink); color: var(--sun); }
.g6-guide section { scroll-margin-top: 12px; }
.g6-guide h2 {
  margin: 36px 0 14px;
  padding-bottom: 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  border-image: var(--sunset) 1;
}
.g6-guide h3 { font-size: 16px; margin: 0 0 8px; display: flex; justify-content: space-between; gap: 8px; }
.g6-guide p { max-width: 75ch; }
.g6-how { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.g6-how dt { font-weight: 800; color: var(--sun); }
.g6-how dd { margin: 0; }
.g6-cats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.g6-cat { padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--pink); }
.g6-cat:nth-child(3n + 2) { border-top-color: var(--coral); }
.g6-cat:nth-child(3n) { border-top-color: var(--teal); }
.g6-cat h3 { font-family: var(--display); font-weight: 400; font-size: 19px; letter-spacing: 0.03em; text-transform: uppercase; }
.g6-cat p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.g6-cat ul, .g6-districts, .g6-news { list-style: none; margin: 0; padding: 0; }
.g6-cat li, .g6-districts li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #35244f; }
.g6-cat li:last-child { border-bottom: 0; }
.g6-cat a, .g6-districts a { color: var(--text); text-decoration-color: rgba(255, 207, 92, 0.5); text-underline-offset: 3px; }
.g6-cat a:hover, .g6-districts a:hover { color: var(--sun); }
.g6-count { color: var(--muted); font-family: system-ui, sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0; }
.g6-en { color: var(--muted); font-size: 0.86em; }
.g6-districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; }
.g6-faq details { border-bottom: 1px solid var(--line); }
.g6-faq summary { cursor: pointer; padding: 12px 0; font-weight: 700; list-style-position: inside; }
.g6-faq summary::marker { color: var(--pink); }
.g6-faq details p { margin: 0 0 14px; color: #f0e2ea; }
.g6-news li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.g6-news a { color: var(--text); font-weight: 600; text-decoration: none; }
.g6-news a:hover { color: var(--sun); }
.g6-news time { display: block; color: var(--muted); font-size: 13px; }
.g6-more { margin-top: 12px; }
.g6-about { color: var(--muted); font-size: 14px; }
.g6-foot { padding: 22px 16px 30px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; background: #0f0719; }
.g6-foot img { display: block; height: 40px; width: auto; margin: 0 auto 12px; }
.g6-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 8px; }
.g6-foot a { color: var(--muted); }

.maplibregl-canvas:focus-visible { outline: none; }

@media (max-width: 999px) {
  :root {
    --top-h: calc(52px + env(safe-area-inset-top));
    --escape-h: calc(44px + env(safe-area-inset-bottom));
  }

  .g6-top {
    gap: 8px;
    padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
  }
  .g6-toguide { display: grid; align-items: center; min-height: 44px; border-color: transparent; }
  .g6-app {
    height: calc(var(--viewport-h, 100dvh) - var(--top-h) - var(--escape-h));
    min-height: 0;
    overflow: clip;
  }
  .g6-escape { padding-bottom: env(safe-area-inset-bottom); }
  .g6-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left));
  }
  .g6-search { flex: 1; min-width: 0; padding: 0; }
  .g6-search svg { left: 13px; }
  .g6-clear { top: 1px; right: 1px; width: 44px; height: 44px; }
  .g6-mobile-filters {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--sunset);
    color: var(--on-sunset);
    font-weight: 750;
    cursor: pointer;
  }
  .g6-mobile-filters::before {
    content: "";
    width: 14px;
    height: 12px;
    background: linear-gradient(currentColor, currentColor) center top / 14px 2px,
                linear-gradient(currentColor, currentColor) center / 10px 2px,
                linear-gradient(currentColor, currentColor) center bottom / 5px 2px;
    background-repeat: no-repeat;
  }
  .g6-app.is-short .g6-panel[data-sheet="full"] { display: grid; grid-template: auto minmax(0, 1fr) / auto minmax(0, 1fr); }
  .g6-app.is-short .g6-panel[data-sheet="full"] .g6-body { grid-column: 1 / -1; }
  .g6-app.is-short .g6-grip { padding-inline: 12px; }
  .g6-app.is-short .g6-chips { display: none; }
  .g6-app.is-short .g6-panel.is-detail .g6-grip { grid-column: 1 / -1; }
  .g6-search input::placeholder { color: var(--muted); opacity: 1; }
  .g6-panel[data-sheet="peek"] > :not(.g6-toolbar),
  .g6-panel.is-detail .g6-toolbar,
  .g6-panel[data-view="results"] .g6-chips,
  .g6-panel[data-view="stack"] .g6-chips,
  .g6-chip.is-filters { display: none; }
  .g6-panel { border-radius: 16px 16px 0 0; }
  .g6-panel[data-sheet="full"] { border-radius: 12px 12px 0 0; }
  .g6-body { min-height: 0; padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right)); }
  .g6-chips { padding-top: 0; scrollbar-width: thin; }
  .g6-chip, .g6-mini, .g6-close { min-height: 44px; }
  .g6-ctrls { right: max(8px, env(safe-area-inset-right)); gap: 6px; transition: none; }
  .g6-attrib { left: max(8px, env(safe-area-inset-left)); }
  .g6-detail-head > .g6-stack { min-width: 0; }
  .g6-facts { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .g6-dialog { overflow-y: auto; }
  .g6-guide { padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right)); }
  .g6-guide .g6-guide-title { font-size: clamp(30px, 7vw, 46px); margin-top: 10px; }
  .g6-jump a, .g6-foot nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .g6-cat li { align-items: center; min-height: 44px; position: relative; }
  .g6-cat li a::after { content: ""; position: absolute; inset: 0; }
  .g6-news a { display: block; padding: 4px 0; }
  .g6-back { position: sticky; z-index: 2; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; justify-content: flex-end; pointer-events: none; }
  .g6-back a { pointer-events: auto; text-decoration: none; }
}

@media (max-width: 540px) {
  .g6-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g6-how { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .g6-how dd + dt { margin-top: 8px; }
  .g6-cats { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 999px) and (max-height: 540px) {
  .g6-ctrls { flex-direction: row; align-items: flex-end; }
  .g6-zoom { flex-direction: row; }
  .g6-zoom .g6-btn + .g6-btn { border-top: 1px solid var(--line); }
}

@media (min-width: 1000px) {
  :root { --top-h: 62px; --escape-h: 40px; }

  .g6-brand img { height: 44px; }
  .g6-title { font-size: 22px; }

  .g6-panel {
    top: 12px;
    left: 12px;
    right: auto;
    bottom: 12px;
    width: 380px;
    height: auto;
    border-radius: 18px;
    transform: none;
    touch-action: auto;
    box-shadow: var(--shadow);
    transition: transform 0.25s;
  }

  .g6-panel.is-collapsed { transform: translateX(calc(-100% - 24px)); }

  /* The whole map is narrower than a desktop window at the opening zoom and MapLibre will not pan
     past its edge, so a panel floating over the map hid the west coast. */
  .g6-map { left: 404px; }
  .g6-app.is-panel-hidden .g6-map { left: 0; }

  .g6-grip, .g6-back { display: none; }

  .g6-search { padding-top: 12px; }

  .g6-chips { flex-wrap: wrap; overflow: visible; }
  .g6-panel.is-detail .g6-chips { display: flex; }

  .g6-chip.is-collapse { display: inline-flex; }

  .g6-attrib { left: auto; right: 8px; top: auto; bottom: 8px; max-width: 520px; }

  .g6-ctrls { bottom: 48px; right: 12px; }

  .g6-chip.is-collapse { margin-left: auto; color: var(--muted); }

  .g6-panel-open {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 12px;
  }

  .g6-card {
    position: absolute;
    z-index: 6;
    top: 12px;
    right: 76px;
    width: 360px;
    max-height: calc(100% - 60px);
    overflow-y: auto;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, #231339 0%, var(--panel) 140px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .g6-card.is-open { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .g6-panel, .g6-ctrls { transition: none; }
}

.g6-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

.g6-app.is-unavailable > :not(.g6-loading) { display: none; }
.g6-app.is-unavailable .g6-loading {
  align-content: center;
  gap: 12px;
  padding: 16px;
  background: var(--panel);
  text-align: center;
  pointer-events: auto;
}
.g6-app.is-unavailable .g6-loading p { margin: 0; }
