/* The Odyssey — a 3D tour. Wine-dark sea, parchment, bronze. */

:root {
  --sea-deep: #0d2230;
  --sea-mid: #14384e;
  --parchment: #ece0c4;
  --parchment-dim: #cfc2a2;
  --ink: #17130c;
  --bronze: #c9a227;
  --bronze-dim: #8a6f2a;
  --wine: #5a2a34;
  --terracotta: #b0562f;
  --panel: rgba(10, 18, 24, 0.88);
  --panel-soft: rgba(12, 22, 30, 0.72);
  --hairline: rgba(201, 162, 39, 0.4);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--sea-deep);
  font-family: var(--serif);
  color: var(--parchment);
}

#app { position: fixed; inset: 0; }
#gl, #gl canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }

/* ---------- cartographic labels (annotation territory) ---------- */
.labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.map-label {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  background: none; border: none; cursor: pointer;
  pointer-events: auto;
  font-family: var(--serif);
  color: var(--parchment);
  text-shadow: 0 1px 3px rgba(5, 10, 14, 0.9), 0 0 12px rgba(5, 10, 14, 0.7);
  transition: opacity 0.25s;
  padding: 4px 6px;
}
.map-label .ml-name {
  font-variant: small-caps;
  letter-spacing: 0.16em;
  font-size: 15px;
  white-space: nowrap;
}
.map-label .ml-sub {
  font-style: italic;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--parchment-dim);
  max-width: 180px;
  white-space: normal;
  text-align: center;
  opacity: 0;
  transition: opacity 0.25s;
  line-height: 1.25;
}
.map-label .ml-rule {
  width: 34px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline), transparent);
  order: -1;
}
.map-label .ml-tick {
  width: 5px; height: 5px;
  background: var(--bronze);
  transform: rotate(45deg) translateY(4px);
  box-shadow: 0 0 6px rgba(201, 162, 39, 0.8);
}
.map-label:hover .ml-sub, .map-label.near .ml-sub { opacity: 1; }
.map-label.character .ml-name { font-size: 12.5px; letter-spacing: 0.1em; color: #f0e6cc; }
.map-label.character .ml-tick { width: 4px; height: 4px; background: var(--parchment); }
.map-label.poi .ml-name { font-size: 11.5px; color: var(--parchment-dim); }
.map-label:hover .ml-name { color: #fff3d8; }

/* ---------- UI chrome ---------- */
.ui { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.ui > * { pointer-events: auto; }

.topbar {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: linear-gradient(180deg, rgba(8, 14, 20, 0.85), transparent);
  z-index: 20;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-main { font-variant: small-caps; letter-spacing: 0.34em; font-size: 17px; color: var(--parchment); }
.brand-sub { font-style: italic; font-size: 11px; color: var(--parchment-dim); letter-spacing: 0.06em; }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.topnav button {
  font-family: var(--serif); font-size: 12.5px;
  font-variant: small-caps; letter-spacing: 0.12em;
  color: var(--parchment);
  background: var(--panel-soft);
  border: 1px solid var(--hairline);
  padding: 7px 12px; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.topnav button:hover { background: rgba(201, 162, 39, 0.16); border-color: var(--bronze); color: #fff3d8; }
.topnav button:active { transform: translateY(1px); }
.topnav button[aria-pressed="true"], .topnav button.on { background: rgba(201, 162, 39, 0.3); border-color: var(--bronze); }

/* ---------- depth rail ---------- */
.depthrail {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; transition: opacity 0.4s;
  z-index: 10;
}
.depthrail.visible { opacity: 1; }
.rail-title { font-variant: small-caps; letter-spacing: 0.2em; font-size: 11px; color: var(--parchment-dim); writing-mode: vertical-rl; transform: rotate(180deg); align-self: center; margin-bottom: 4px; }
.rail-step {
  display: flex; align-items: center; gap: 8px;
  border-left: 2px solid rgba(201, 162, 39, 0.25);
  padding: 4px 8px;
  opacity: 0.45;
  transition: opacity 0.4s, border-color 0.4s;
}
.rail-step.active { opacity: 1; border-left-color: var(--bronze); }
.rs-n { font-size: 15px; color: var(--bronze); font-style: italic; }
.rs-t { font-variant: small-caps; letter-spacing: 0.14em; font-size: 12px; }

/* ---------- cards ---------- */
.card {
  position: absolute; right: 16px; top: 64px; bottom: 150px;
  width: min(420px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(6px);
  overflow-y: auto;
  padding: 18px 20px 16px;
  z-index: 15;
  scrollbar-width: thin;
  scrollbar-color: var(--bronze-dim) transparent;
}
.card.hidden { display: none; }
.card header h2 { font-size: 30px; font-weight: 500; letter-spacing: 0.04em; margin: 2px 0; color: #f5ecd4; }
.sc-kicker { font-variant: small-caps; letter-spacing: 0.18em; font-size: 10.5px; color: var(--bronze); }
.sc-epithet { font-style: italic; color: var(--parchment-dim); font-size: 13.5px; margin-bottom: 4px; }
.sc-role { font-size: 12px; color: var(--parchment-dim); }
.sc-talemark {
  margin: 10px 0 2px; padding: 7px 10px;
  border-left: 2px solid var(--bronze);
  background: rgba(201, 162, 39, 0.08);
  font-style: italic; font-size: 12.5px; color: #e8d8a8;
}
.layer { margin-top: 14px; opacity: 0; max-height: 0; overflow: hidden; transform: translateY(6px); transition: opacity 0.7s, max-height 0.9s, transform 0.7s; }
.layer.revealed { opacity: 1; max-height: 1400px; transform: none; }
.layer h3 {
  font-variant: small-caps; letter-spacing: 0.16em; font-size: 13px;
  color: var(--bronze); font-weight: 500;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 4px; margin-bottom: 8px;
}
.layer h3 span { font-style: italic; margin-right: 6px; }
.layer p { font-size: 14px; line-height: 1.62; color: #e6dcc0; margin-bottom: 8px; }
.sc-tagline { font-style: italic; font-size: 15px !important; color: #f0e6cc !important; }
.sc-attribution { font-size: 11.5px !important; font-style: italic; color: var(--parchment-dim) !important; }
.sc-people { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-person {
  font-family: var(--serif); text-align: left;
  background: rgba(201, 162, 39, 0.08); border: 1px solid var(--hairline);
  color: var(--parchment); padding: 6px 10px; cursor: pointer;
  display: flex; flex-direction: column; min-width: 104px;
  transition: background 0.2s, border-color 0.2s;
}
.sc-person b { font-size: 13.5px; font-weight: 500; }
.sc-person span { font-size: 10.5px; font-style: italic; color: var(--parchment-dim); }
.sc-person:hover { background: rgba(201, 162, 39, 0.2); border-color: var(--bronze); }
.sc-moment { border: 1px solid rgba(201, 162, 39, 0.2); margin-bottom: 6px; }
.scm-head {
  width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  background: rgba(201, 162, 39, 0.06); border: none; color: var(--parchment);
  font-family: var(--serif); font-size: 13.5px; padding: 8px 10px; cursor: pointer; text-align: left;
}
.scm-head span { font-size: 10.5px; color: var(--parchment-dim); }
.scm-body { display: none; padding: 4px 10px 10px; }
.sc-moment.open .scm-body { display: block; }
.scm-body p { font-size: 13px; line-height: 1.6; color: #e2d8bc; }
.scm-body blockquote, blockquote {
  margin: 8px 0 4px; padding: 6px 10px;
  border-left: 2px solid var(--wine);
  font-style: italic; font-size: 12.5px; color: #d8c8a8;
  background: rgba(90, 42, 52, 0.18);
}
.sc-echoes { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sc-echoes > div { font-size: 12px; line-height: 1.55; color: var(--parchment-dim); }
.sc-echoes b { display: block; font-variant: small-caps; letter-spacing: 0.14em; color: var(--terracotta); font-weight: 500; }
.card footer, .charcard footer { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.card footer button, .charcard footer button {
  font-family: var(--serif); font-variant: small-caps; letter-spacing: 0.12em; font-size: 12.5px;
  background: rgba(201, 162, 39, 0.12); color: var(--parchment);
  border: 1px solid var(--hairline); padding: 8px 14px; cursor: pointer;
}
.card footer button:hover, .charcard footer button:hover { background: rgba(201, 162, 39, 0.26); }

.ch-voice { font-style: italic; color: #efe4c8 !important; }
.ties-count { font-style: normal; font-size: 11px; color: var(--parchment-dim); margin-left: 6px; }
.ch-ties { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow-y: auto; }
.ch-tie {
  display: grid; grid-template-columns: 10px 84px 110px 1fr; gap: 8px; align-items: baseline;
  background: rgba(201, 162, 39, 0.05); border: 1px solid rgba(201, 162, 39, 0.18);
  padding: 7px 9px; cursor: pointer; text-align: left;
  color: var(--parchment); font-family: var(--serif);
  transition: background 0.2s;
}
.ch-tie:hover { background: rgba(201, 162, 39, 0.16); }
.ch-tie i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.ch-tie b { font-size: 13px; font-weight: 500; }
.tie-type { font-variant: small-caps; letter-spacing: 0.08em; font-size: 11px; color: var(--bronze); }
.tie-note { font-size: 11px; color: var(--parchment-dim); line-height: 1.45; }

/* ---------- story bar ---------- */
.storybar {
  position: absolute; bottom: 158px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--hairline);
  padding: 9px 16px; z-index: 14; white-space: nowrap;
}
.storybar.hidden { display: none; }
.sb-label { font-variant: small-caps; letter-spacing: 0.16em; font-size: 11.5px; color: var(--bronze); }
.sb-progress { font-size: 13px; color: var(--parchment); }
.storybar button {
  font-family: var(--serif); font-size: 12.5px; font-variant: small-caps; letter-spacing: 0.1em;
  background: rgba(201, 162, 39, 0.16); color: var(--parchment); border: 1px solid var(--hairline);
  padding: 7px 14px; cursor: pointer;
}
.storybar button:hover { background: rgba(201, 162, 39, 0.3); }

/* ---------- timeline ---------- */
.timeline {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(6, 11, 16, 0.95), rgba(6, 11, 16, 0.75));
  border-top: 1px solid var(--hairline);
  padding: 6px 18px 10px;
  z-index: 16;
  transition: transform 0.3s;
}
.timeline.collapsed .tl-body { display: none; }
.tl-head { display: flex; align-items: baseline; gap: 12px; }
.tl-title { font-variant: small-caps; letter-spacing: 0.2em; font-size: 12px; color: var(--bronze); }
.tl-year { font-style: italic; font-size: 12.5px; color: var(--parchment); }
.tl-toggle { margin-left: auto; background: none; border: 1px solid var(--hairline); color: var(--parchment); width: 22px; height: 22px; cursor: pointer; font-family: var(--serif); }
.tl-body { display: grid; grid-template-columns: 1fr 300px; gap: 16px; margin-top: 4px; }
.tl-track-wrap { position: relative; padding: 10px 0 14px; }
.tl-track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: rgba(201, 162, 39, 0.25); }
.tl-lab { position: absolute; top: 58%; transform: translateX(-50%); font-size: 9.5px; letter-spacing: 0.08em; color: var(--parchment-dim); }
.tl-ticks { position: absolute; inset: 0; }
.tl-tick {
  position: absolute; top: 50%; width: 8px; height: 8px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(201, 162, 39, 0.5); border: none; cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.tl-tick.passed { background: var(--bronze); }
.tl-tick:hover, .tl-tick.near { background: #fff0c8; box-shadow: 0 0 8px rgba(255, 240, 200, 0.8); }
.tl-range {
  position: relative; width: 100%; appearance: none; -webkit-appearance: none;
  background: transparent; height: 24px; cursor: ew-resize; z-index: 2;
}
.tl-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 20px;
  background: var(--parchment); border: 1px solid var(--bronze);
  clip-path: polygon(50% 0, 100% 28%, 100% 100%, 0 100%, 0 28%);
}
.tl-range::-moz-range-thumb { width: 14px; height: 20px; background: var(--parchment); border: 1px solid var(--bronze); border-radius: 0; }
.tl-event { font-size: 11.5px; color: var(--parchment-dim); line-height: 1.45; border-left: 1px solid var(--hairline); padding-left: 12px; max-height: 74px; overflow-y: auto; }
.tl-event b { color: var(--parchment); font-variant: small-caps; letter-spacing: 0.08em; font-weight: 500; }
.tle-year { color: var(--bronze); font-style: italic; }
.tl-event p { margin-top: 3px; }

/* ---------- relations legend ---------- */
.relations-legend {
  position: absolute; left: 16px; bottom: 118px;
  width: 280px; background: var(--panel); border: 1px solid var(--hairline);
  padding: 12px 14px; z-index: 14;
}
.relations-legend.hidden { display: none; }
.lg-title { font-variant: small-caps; letter-spacing: 0.18em; font-size: 12px; color: var(--bronze); margin-bottom: 8px; }
.lg-types { display: flex; flex-wrap: wrap; gap: 5px 10px; margin-bottom: 8px; }
.lg-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--parchment-dim); letter-spacing: 0.06em; }
.lg-chip i { width: 16px; height: 2px; display: inline-block; }
.lg-note { font-size: 11px; line-height: 1.5; color: var(--parchment-dim); font-style: italic; }
.lg-close { margin-top: 8px; font-family: var(--serif); font-size: 11px; background: none; border: 1px solid var(--hairline); color: var(--parchment-dim); padding: 4px 10px; cursor: pointer; }

/* ---------- drawer ---------- */
.drawer {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(400px, 100vw);
  background: rgba(8, 13, 18, 0.96); border-left: 1px solid var(--hairline);
  z-index: 30; display: flex; flex-direction: column;
  transform: translateX(0); transition: transform 0.3s;
}
.drawer.hidden { transform: translateX(102%); }
.dw-head { display: flex; align-items: center; border-bottom: 1px solid var(--hairline); padding: 8px; gap: 4px; }
.dw-tab {
  flex: 1; font-family: var(--serif); font-variant: small-caps; letter-spacing: 0.12em; font-size: 12.5px;
  background: none; border: none; color: var(--parchment-dim); padding: 8px; cursor: pointer;
  border-bottom: 2px solid transparent;
}
.dw-tab.active { color: var(--parchment); border-bottom-color: var(--bronze); }
.dw-close { background: none; border: none; color: var(--parchment-dim); font-size: 15px; cursor: pointer; padding: 4px 8px; }
.dw-body { overflow-y: auto; padding: 12px 14px 24px; flex: 1; }
.dw-group { font-variant: small-caps; letter-spacing: 0.16em; font-size: 12px; color: var(--bronze); margin: 10px 0 8px; }
.dw-list { display: flex; flex-direction: column; gap: 5px; }
.dw-row {
  display: grid; grid-template-columns: 30px 110px 1fr; gap: 8px; align-items: baseline;
  background: rgba(201, 162, 39, 0.04); border: 1px solid rgba(201, 162, 39, 0.14);
  color: var(--parchment); font-family: var(--serif); text-align: left;
  padding: 8px 10px; cursor: pointer; transition: background 0.2s;
}
.dw-row.char { grid-template-columns: 110px 1fr; }
.dw-row:hover { background: rgba(201, 162, 39, 0.14); }
.dw-order { font-style: italic; color: var(--bronze); font-size: 13px; }
.dw-name { font-size: 14px; }
.dw-epi { font-size: 11px; font-style: italic; color: var(--parchment-dim); line-height: 1.4; }
.tales-frame { font-size: 12px; line-height: 1.55; color: var(--parchment-dim); font-style: italic; margin: 8px 0; }
.tales-intro { margin: 10px 0; padding: 10px 12px; background: rgba(90, 42, 52, 0.2); border-left: 2px solid var(--wine); font-style: italic; font-size: 13px; line-height: 1.6; color: #e8d8b8; }
.tales-book { margin: 12px 0; border: 1px solid rgba(201, 162, 39, 0.18); padding: 10px; }
.tb-head { font-variant: small-caps; letter-spacing: 0.1em; font-size: 12.5px; color: var(--parchment); margin-bottom: 6px; }
.tb-eps { display: flex; flex-direction: column; gap: 4px; }
.tb-ep { text-align: left; background: rgba(201, 162, 39, 0.06); border: none; color: var(--parchment-dim); font-family: var(--serif); font-size: 12.5px; padding: 6px 8px; cursor: pointer; }
.tb-ep:hover { color: var(--parchment); background: rgba(201, 162, 39, 0.16); }

/* ---------- overlays ---------- */
.overlay {
  position: absolute; inset: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center;
  background: rgba(4, 8, 12, 0.72);
  backdrop-filter: blur(4px);
}
.overlay.hidden { display: none; }
.ov-card {
  max-width: 720px; width: calc(100% - 40px); max-height: 84vh; overflow-y: auto;
  background: linear-gradient(160deg, rgba(16, 26, 34, 0.98), rgba(10, 16, 22, 0.98));
  border: 1px solid var(--hairline); padding: 28px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ov-card h2 { font-size: 24px; font-weight: 500; letter-spacing: 0.06em; margin-bottom: 12px; color: #f5ecd4; }
.help-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.help-cols h3 { font-variant: small-caps; letter-spacing: 0.14em; font-size: 13px; color: var(--bronze); margin: 10px 0 4px; }
.help-cols ul { list-style: none; }
.help-cols li { font-size: 12.5px; color: #ded2b4; line-height: 1.7; }
.help-cols b { color: var(--parchment); background: rgba(201, 162, 39, 0.12); border: 1px solid rgba(201, 162, 39, 0.3); padding: 0 5px; font-size: 11.5px; }
.help-cols p { font-size: 12.5px; line-height: 1.65; color: #ded2b4; }
.help-note { margin-top: 14px; font-size: 11px; font-style: italic; color: var(--parchment-dim); }
.ov-close {
  margin-top: 16px; font-family: var(--serif); font-variant: small-caps; letter-spacing: 0.14em; font-size: 14px;
  background: rgba(201, 162, 39, 0.16); border: 1px solid var(--bronze); color: var(--parchment);
  padding: 10px 22px; cursor: pointer;
}
.ov-close:hover { background: rgba(201, 162, 39, 0.3); }

.intro-card { text-align: center; padding: 40px 44px; }
.intro-kicker { letter-spacing: 0.5em; font-size: 12px; color: var(--bronze); margin-bottom: 6px; }
.intro-card h1 { font-size: 52px; font-weight: 500; letter-spacing: 0.08em; color: #f5ecd4; margin-bottom: 8px; }
.intro-sub { font-style: italic; font-size: 15px; line-height: 1.6; color: var(--parchment-dim); max-width: 460px; margin: 0 auto 26px; }
.intro-choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.intro-choices button {
  font-family: var(--serif); font-variant: small-caps; letter-spacing: 0.1em; font-size: 15px;
  color: var(--parchment); background: rgba(201, 162, 39, 0.08); border: 1px solid var(--hairline);
  padding: 18px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; align-items: center;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.intro-choices button span { font-size: 10.5px; font-style: italic; letter-spacing: 0.02em; color: var(--parchment-dim); text-transform: none; }
.intro-choices button:hover { background: rgba(201, 162, 39, 0.2); border-color: var(--bronze); transform: translateY(-2px); }
.intro-hint { margin-top: 18px; font-size: 11px; color: var(--parchment-dim); font-style: italic; }

/* ---------- toasts ---------- */
.toasts { position: absolute; bottom: 190px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; align-items: center; z-index: 18; pointer-events: none; }
.toast {
  background: var(--panel); border: 1px solid var(--hairline);
  font-style: italic; font-size: 13px; color: var(--parchment);
  padding: 8px 18px; opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.4s; white-space: nowrap;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- sail HUD ---------- */
.sailhud { position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%); z-index: 13; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sailhud.hidden { display: none; }
.sh-readout { display: flex; gap: 14px; font-variant: small-caps; letter-spacing: 0.14em; font-size: 12px; color: var(--parchment); background: var(--panel-soft); border: 1px solid var(--hairline); padding: 4px 14px; }
.sh-pad { display: none; grid-template-columns: 56px 64px 56px; gap: 6px; align-items: center; justify-content: center; }
.sh-pad button {
  width: 56px; height: 56px; font-size: 20px;
  background: var(--panel-soft); border: 1px solid var(--hairline); color: var(--parchment);
  cursor: pointer; touch-action: none;
}
.sh-pad button:active { background: rgba(201, 162, 39, 0.3); }
.sh-mid { display: flex; flex-direction: column; gap: 6px; }
.sh-mid button { width: 64px; height: 40px; font-size: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .brand-sub { display: none; }
  .topnav button { padding: 6px 8px; font-size: 11.5px; }
  .card { right: 8px; left: 8px; width: auto; top: 56px; bottom: 128px; padding: 14px; }
  .card header h2 { font-size: 24px; }
  .depthrail { display: none; }
  .tl-body { grid-template-columns: 1fr; }
  .tl-event { display: none; }
  .relations-legend { display: none !important; }
  .drawer { width: 100vw; }
  .storybar { bottom: 208px; max-width: calc(100vw - 16px); flex-wrap: wrap; white-space: normal; }
  .intro-card h1 { font-size: 34px; }
  .intro-choices { grid-template-columns: 1fr; }
  .help-cols { grid-template-columns: 1fr; }
  .sh-pad { display: grid; }
  .sailhud { bottom: 176px; }
}
@media (max-width: 560px) {
  .topnav { gap: 2px; }
  .topnav button { font-size: 10.5px; padding: 5px 6px; }
  .map-label .ml-name { font-size: 12px; }
  .map-label .ml-sub { display: none; }
}
