@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/baloo-2-600.woff2") format("woff2");
}
@font-face {
  font-family: "Baloo 2";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/baloo-2-700.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/nunito-sans-600.woff2") format("woff2");
}

:root {
  font-family:
    "Nunito Sans",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f6f7f9;
  background: var(--bg);
  font-synthesis: none;
  --ink: #f6f7f9;
  --muted: #b0bac5;
  --line: #3b4651;
  --purple: #b49aff;
  --coral: #ff8c92;
  --teal: #62d7cb;
  --yellow: #f4c546;
  --heading-font: "Baloo 2", "Nunito Sans", sans-serif;
  --white: #fff;
  --bg: #202930;
  --surface: #29343e;
  --purple-fill: #7948d2;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--bg);
  color-scheme: dark;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--heading-font);
  font-weight: 600;
}
h1 {
  font-weight: 700;
  font-size: 25px;
  letter-spacing: 0;
  line-height: 1.35;
}
h2 {
  font-size: 19px;
  letter-spacing: 0;
  line-height: 1.4;
}
h3 {
  font-size: 14px;
  letter-spacing: 0;
}
.wrap {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  position: sticky;
  top: 0;
  z-index: 1100;
  background: var(--bg);
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  font-family: var(--heading-font);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  display: flex;
  gap: 8px;
  align-items: center;
}
.brand-symbol {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}
h1 em {
  font-synthesis: style;
  color: var(--purple);
  font-style: italic;
  font-weight: inherit;
}

nav {
  font-family: var(--heading-font);
  font-weight: 600;
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--muted);
}
nav a:hover {
  color: var(--purple);
}
.map-section {
  padding-top: 30px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 19px;
}
.section-heading p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 7px;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.map-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}
.map-panel {
  height: 460px;
  width: 100%;
  background: var(--surface);
  z-index: 0;
}
.map-reset {
  position: absolute;
  z-index: 450;
  top: 12px;
  right: 12px;
  background: #29343ef2;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 13px;
  color: var(--ink);
  box-shadow: 0 1px 3px #0001;
  min-height: 34px;
}
.color-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stone-color);
  flex-shrink: 0;
}
.map-status {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
  color: #ead09c;
}
.stones-section {
  padding-top: 35px;
}
.section-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 1px;
}
.theme-sun {
  background: #3b3a2e;
}
.theme-moon {
  background: #373244;
}
.theme-leaf {
  background: #2d3e37;
}
.theme-heart {
  background: #433336;
}
.theme-wave {
  background: #2d3c49;
}
.demo-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 16px;
}
.about-section {
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-block: 29px 35px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 23px;
}
.steps article {
  position: relative;
  padding-left: 30px;
}
.steps article > span {
  background: #443d2b;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 1px;
  left: 0;
  font-size: 12px;
  color: var(--yellow);
}
.steps article:nth-child(1) h3 {
  color: var(--purple);
}
.steps article:nth-child(2) h3 {
  color: var(--coral);
}
.steps article:nth-child(3) h3 {
  color: var(--teal);
}
.steps h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.steps p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 310px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-block: 22px;
  font-size: 12px;
  color: var(--muted);
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 2000;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--purple);
}
.skip-link:focus {
  top: 10px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Leaflet maps share the same OpenStreetMap basemap as the reference. */
.leaflet-container {
  font-family: inherit;
  font-size: 13px;
}
.leaflet-control-zoom {
  border: 1px solid var(--line) !important;
  box-shadow: 0 1px 4px #0001 !important;
}
.leaflet-control-zoom a {
  font-size: 17px !important;
  font-weight: 400 !important;
  color: var(--ink) !important;
}
.leaflet-control-attribution {
  font-size: 11px !important;
}
.stone-pin {
  background: none;
  border: 0;
}
.pin-core {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--stone-color);
  border: 2px solid var(--purple);
  box-shadow:
    0 0 0 1px #b49aff25,
    0 1px 6px #0004;
  display: grid;
  place-items: center;
  color: white;
  font-size: 12px;
  font-weight: 650;
}
.stone-pin.is-new .pin-core {
  color: var(--bg);
  width: 32px;
  height: 32px;
  left: 1px;
  top: 1px;
  border: 2px solid var(--purple);
  box-shadow:
    0 0 0 6px #b49aff35,
    0 2px 8px #0003;
}
.stone-tooltip {
  padding: 5px 8px !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 2px 7px #0001 !important;
  font-size: 12px !important;
  color: var(--ink) !important;
}
.leaflet-popup-content {
  font-size: 14px;
  line-height: 1.7;
}
.leaflet-popup-content strong {
  font-weight: 600;
}
.map-popup-link {
  display: inline-block;
  color: var(--purple);
  margin-top: 5px;
}
.map-popup-note {
  font-size: 12px;
  color: var(--muted);
}
.leaflet-tile-pane {
  filter: grayscale(1) invert(1) brightness(0.85) contrast(0.85) sepia(0.6)
    hue-rotate(215deg) saturate(1.2);
}
/* Map-first stone detail. */
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  width: min(1000px, calc(100% - 50px));
  max-height: 93dvh;
  overscroll-behavior: contain;
  box-shadow: 0 20px 90px #080d1570;
}
dialog::backdrop {
  background: #0b101bb3;
  backdrop-filter: blur(3px);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.detail-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 22px;
}
.detail-topbar h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16px;
}
.detail-topbar h2 small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  width: 32px;
  height: 32px;
  background: var(--surface);
  color: var(--ink);
  font-size: 20px;
}
.detail-body {
  padding: 20px 22px 25px;
}
.journey-map {
  height: 310px;
}
.journey-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 9px;
}
.journey-caption .new-find-key {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--purple);
}
.detail-summary {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-top: 23px;
}
.detail-image {
  width: 135px;
  min-width: 135px;
  height: 120px;
  border-radius: 5px;
  position: relative;
  display: grid;
  place-items: center;
}
.detail-image img {
  width: 140px;
  max-width: 100%;
  height: 120px;
}
.detail-copy {
  flex: 1;
  min-width: 0;
}
.detail-copy h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.detail-story {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 720px;
}
.origin-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
  line-height: 1.7;
}
.detail-stats {
  display: flex;
  gap: 22px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 13px;
}
.detail-stats strong {
  font-weight: 600;
  color: var(--ink);
  margin-right: 3px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 38px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
}
.primary {
  background: var(--purple-fill);
  color: #fff;
}
.primary:hover {
  background: #875ce0;
}
.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}
.desktop-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 11px;
}
.detail-section {
  margin-top: 26px;
}
.detail-section h3 {
  font-size: 16px;
  margin-bottom: 6px;
}
.section-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 15px;
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.local-badge {
  font-size: 11px;
  display: inline-block;
  color: var(--purple);
  background: #403452;
  padding: 1px 5px;
  border-radius: 3px;
  margin-top: 5px;
}
.accuracy-note {
  font-size: 11px;
  color: var(--muted);
}
.detail-footnote {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 17px;
}
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #42505d;
  color: white;
  border-radius: 5px;
  padding: 13px 18px;
  z-index: 2000;
  font-size: 14px;
  max-width: calc(100% - 32px);
}
/* Mobile find preview. */
.find-panel {
  border: 1px solid #514362;
  background: #2c2b3a;
  border-radius: 6px;
  padding: 20px;
  margin-top: 23px;
}
.find-panel h3 {
  font-size: 17px;
}
.find-panel > p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 7px;
}
.find-steps {
  display: flex;
  gap: 19px;
  margin-block: 18px;
  font-size: 12px;
  color: var(--muted);
}
.find-steps .active {
  color: var(--purple);
  font-weight: 600;
}
.find-steps .done {
  color: var(--teal);
}
.field {
  display: block;
  margin-block: 15px;
  font-size: 13px;
  font-weight: 500;
}
.field small {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 16px;
}
.field textarea {
  resize: vertical;
  min-height: 80px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #97a3af;
}
.field-hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: -6px;
}
.form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.error {
  color: #ff9b9b;
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}
.location-status {
  font-size: 13px;
  line-height: 1.8;
  margin-top: 12px;
}
.location-status.ready {
  color: var(--teal);
}
.location-separator {
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-top: 17px;
}
.location-consent {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 13px;
}
.location-preview-frame {
  margin-top: 12px;
}
.location-preview-map {
  height: 180px;
}
.review-location {
  border-radius: 4px;
  background: var(--surface);
  padding: 11px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--teal);
  margin-top: 14px;
}
.success-panel h3 {
  font-size: 17px;
}
.success-panel p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  margin-block: 10px 16px;
}
.success-icon {
  color: var(--teal);
  display: inline-block;
  margin-bottom: 7px;
  font-size: 20px;
}
.share-fallback {
  margin-top: 12px;
}
.share-fallback input {
  width: 100%;
  font-size: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
@media (max-width: 1000px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .map-panel {
    height: 420px;
  }
  .journey-map {
    height: 310px;
  }
  .location-preview-map {
    height: 180px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 63px;
  }
  .wordmark {
    font-size: 15px;
  }
  .brand-symbol {
    width: 32px;
    height: 32px;
  }
  nav {
    gap: 17px;
    font-size: 13px;
  }
  .map-section {
    padding-top: 23px;
  }
  .section-heading {
    gap: 10px;
    margin-bottom: 15px;
    align-items: flex-start;
  }
  .map-section .section-heading {
    display: block;
  }
  h1 {
    font-size: 22px;
    letter-spacing: 0;
  }
  h2 {
    font-size: 17px;
  }
  .section-heading p {
    font-size: 14px;
    max-width: 320px;
  }
  .map-panel {
    height: 380px;
  }
  .map-reset {
    font-size: 12px;
    padding: 8px 10px;
  }
  .section-label {
    display: none;
  }
  .stones-section {
    padding-top: 27px;
  }
  .demo-note {
    font-size: 11px;
  }
  .about-section {
    margin-top: 27px;
    padding-block: 24px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 19px;
  }
  .steps p {
    font-size: 13px;
    max-width: none;
  }
  .steps h3 {
    font-size: 14px;
  }
  .steps article {
    padding-left: 27px;
  }
  footer {
    font-size: 11px;
    padding-block: 20px;
    gap: 10px;
  }
  dialog {
    width: calc(100% - 16px);
    max-height: 96dvh;
    border-radius: 7px;
  }
  .detail-topbar {
    padding: 12px 14px;
  }
  .detail-topbar h2 {
    font-size: 15px;
  }
  .detail-body {
    padding: 14px;
  }
  .journey-map {
    height: 260px;
  }
  .journey-caption {
    font-size: 11px;
    flex-wrap: wrap;
  }
  .detail-summary {
    gap: 13px;
    padding-top: 20px;
  }
  .detail-image {
    width: 82px;
    min-width: 82px;
    height: 90px;
  }
  .detail-image img {
    width: 100px;
    height: 90px;
  }
  .detail-copy h3 {
    font-size: 15px;
  }
  .detail-story {
    font-size: 13px;
    line-height: 1.8;
  }
  .origin-note {
    font-size: 12px;
  }
  .detail-stats {
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
  }
  .detail-actions {
    margin-left: -95px;
    margin-top: 22px;
  }
  .detail-actions .button {
    font-size: 13px;
    min-height: 42px;
  }
  .desktop-note {
    margin-left: -95px;
    font-size: 12px;
  }
  .detail-section {
    margin-top: 24px;
  }
  .detail-section h3 {
    font-size: 15px;
  }
  .find-panel {
    padding: 15px;
  }
  .find-panel h3 {
    font-size: 16px;
  }
  .find-steps {
    gap: 14px;
    font-size: 11px;
  }
  .button {
    min-height: 42px;
  }
  .location-preview-map {
    height: 180px;
  }
  .map-status {
    font-size: 12px;
  }
  .leaflet-control-attribution {
    font-size: 10px !important;
  }
}
@media (max-width: 360px) {
  .wrap {
    width: calc(100% - 24px);
  }
  .wordmark {
    font-size: 14px;
  }
  nav {
    gap: 13px;
    font-size: 12px;
  }
  h1 {
    font-size: 21px;
  }
  .map-panel {
    height: 355px;
  }
  .journey-map {
    height: 245px;
  }
  .location-preview-map {
    height: 180px;
  }
  .detail-topbar h2 {
    font-size: 14px;
  }
  .detail-topbar h2 small {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

.map-notice {
  position: absolute;
  left: 10px;
  bottom: 24px;
  z-index: 450;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  background: #29343ef2;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #ead09c;
  font-size: 11px;
  line-height: 1.6;
  pointer-events: none;
}

/* Compact overview rows: swap image paths for real photos without changing layout. */
.intro-copy {
  max-width: 865px;
}
.map-section .section-heading {
  align-items: flex-start;
}
.intro-copy p {
  max-width: 850px;
  line-height: 1.8;
}
.intro-copy p + p {
  margin-top: 9px;
}
.stone-table-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.stone-table {
  --table-primary: 14px;
  --table-secondary: 12px;
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  table-layout: fixed;
  font-size: var(--table-primary);
}
.stone-table th {
  background: #303944;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  font-size: var(--table-primary);
  font-weight: 700;
  text-transform: none;
  letter-spacing: .25px;
  color: var(--muted);
}
/* Equal numeric columns; the last visible information column aligns right. */
.stone-table th:nth-child(1) { width: 22%; }
.stone-table th:nth-child(2) { width: 14%; }
.stone-table th:nth-child(3), .stone-table th:nth-child(4), .stone-table th:nth-child(5) { width: 10%; }
.stone-table th:nth-child(6) { width: 17%; }
.stone-table th:nth-child(7) { width: 15%; }
.stone-table th:nth-child(8) { width: 2%; }
.stone-row { cursor: pointer; transition: background .15s; }
.stone-row:hover, .stone-row:focus-within { background: #343c4b; }
.stone-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  text-align: center;
  line-height: 1.5;
}
.stone-row:last-child td { border-bottom: 0; }
.stone-table th { text-align: center; }
.stone-table th:first-child, .stone-table .overview-stone { text-align: left; }
.stone-table th:nth-child(7), .stone-table .overview-latest { text-align: right; }
.stone-table td strong, .stone-table td time {
  display: block;
  color: var(--ink);
  font-size: var(--table-primary);
  font-weight: 700;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stone-table td small {
  display: block;
  margin-top: 2px;
  font-size: var(--table-secondary);
  font-weight: 400;
  color: var(--muted);
  line-height: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stone-link { display: flex; gap: 10px; align-items: center; width: 100%; }
.stone-visual { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.stone-thumbnail { display: block; width: 38px; height: 38px; border-radius: 5px; overflow: hidden; }
.stone-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stone-identity { min-width: 0; }
.stone-table .stone-born, .born-compact { display: none; }
.stone-table .last-place { display: flex; justify-content: center; align-items: center; gap: 4px; }
.stone-table .last-recency { white-space: nowrap; color: var(--purple); }
.stone-table .overview-location time { white-space: normal; }
.stone-table th small { display: block; font-size: max(8px, calc(var(--table-secondary) - 2px)); font-weight: 400; line-height: 1.5; margin-top: 2px; }
.stone-table .overview-latest strong { color: var(--yellow); }
.sorted-heading { display: inline-flex; align-items: center; gap: 6px; }
.heading-copy { display: block; white-space: nowrap; }
.sorted-heading .sort-indicator { margin: 0; flex: none; }
.stone-table .overview-arrow { padding-inline: 0; color: var(--purple); text-align: right; }
@media (max-width: 1100px) {
  .stone-table th:nth-child(7), .overview-latest { display: none; }
  .stone-table th:nth-child(1) { width: 28%; }
  .stone-table th:nth-child(2) { width: 18%; }
  .stone-table th:nth-child(3) { width: 10%; }
  .stone-table th:nth-child(4) { width: 10%; }
  .stone-table th:nth-child(5) { width: 10%; }
  .stone-table th:nth-child(6) { width: 22%; text-align: right; }
  .stone-table .overview-location { text-align: right; }
  .stone-table .last-place { justify-content: flex-end; }
}
@media (max-width: 800px) {
  .stone-table th:nth-child(2), .overview-start { display: none; }
  .stone-table .stone-born { display: block; }
  .stone-table th:nth-child(1) { width: 36%; }
  .stone-table th:nth-child(3) { width: 12%; }
  .stone-table th:nth-child(4) { width: 12%; }
  .stone-table th:nth-child(5) { width: 12%; }
  .stone-table th:nth-child(6) { width: 26%; }
  .stone-table th, .stone-table td { padding-inline: 8px; }
}
@media (max-width: 600px) {
  .intro-copy p { max-width: none; font-size: 14px; }
  .stone-table th:nth-child(8), .overview-arrow { display: none; }
  .stone-table { --table-primary: 12px; --table-secondary: 10px; }
  .stone-table th:nth-child(1) { width: 30%; }
  .stone-table th:nth-child(3), .stone-table th:nth-child(4), .stone-table th:nth-child(5) { width: 16%; padding-inline: 0; }
  .stone-table th:nth-child(6) { width: 22%; padding-inline: 1px; }
  .sorted-heading { gap: 1px; }
  .stone-table th { font-size: var(--table-primary); letter-spacing: 0; line-height: 1.5; padding: 9px 2px; }
  .stone-table td { padding-inline: 2px; }
  .stone-table .overview-location { padding-inline: 2px; }
  .stone-link { gap: 5px; }
  .stone-table .stone-identity > strong { white-space: normal; }
  .stone-thumbnail { width: 27px; height: 27px; border-radius: 4px; }
  .stone-table td strong, .stone-table td time { font-size: var(--table-primary); line-height: 18px; }
  .stone-table td small { font-size: var(--table-secondary); line-height: 14px; }
  .born-full { display: none; }
  .born-compact { display: inline; }
}

/* Compact totals lead the map; all values come from the repository. */
.map-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-block: 0 17px;
}
.journey-totals {
  display: flex;
  gap: 34px;
  margin: 0;
}
.journey-totals > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.journey-totals dt {
  order: 2;
  color: var(--muted);
  font-size: 13px;
}
.journey-totals dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 600;
  font-size: 22px;
  line-height: 1;
}
.journey-totals > div:nth-child(2) dd {
  color: var(--teal);
}
.journey-totals > div:nth-child(3) dd {
  color: var(--yellow);
}
.journey-totals > div:nth-child(4) dd {
  color: var(--purple);
}
.map-hint {
  font-size: 12px;
  color: var(--muted);
}
.demo-badge {
  display: inline-block;
  border: 1px solid #8e70c4;
  background: #403452;
  color: #d9c6ff;
  border-radius: 3px;
  padding: 0 3px;
  font-size: 7px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.1px;
}
/* Only the raster tiles are recoloured: stone pins retain their identities. */
.leaflet-bar a,
.leaflet-bar a:hover,
.leaflet-container .leaflet-control-attribution,
.leaflet-tooltip,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: var(--surface);
  color: var(--ink);
}
.leaflet-bar a {
  border-bottom-color: var(--line);
}
.leaflet-control-attribution a {
  color: var(--purple);
}
.leaflet-tooltip-top::before {
  border-top-color: var(--surface);
}
.leaflet-tooltip-bottom::before {
  border-bottom-color: var(--surface);
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--muted);
}
.leaflet-popup-content a {
  color: var(--purple);
}
.leaflet-tooltip {
  opacity: 1;
}
.leaflet-container {
  background: var(--surface);
}
@media (max-width: 700px) {
  .map-overview {
    margin-block: 0 14px;
  }
  .journey-totals {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .journey-totals > div {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 4px;
  }
  .journey-totals dt {
    font-size: 11px;
  }
  .journey-totals dd {
    font-size: 18px;
  }
  .map-hint {
    display: none;
  }
}

@media (max-width: 700px) {
  #world-map {
    height: 304px;
  }
}
@media (max-width: 360px) {
  #world-map {
    height: 284px;
  }
}

.place-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.country-flag {
  display: block;
  flex-shrink: 0;
  width: 15px;
  height: 10px;
  border-radius: 1px;
  box-shadow: 0 0 0 1px #ffffff20;
}
.story-count {
  color: var(--purple);
}
.adventure-count {
  color: var(--coral);
}
.hello-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.hello-stat strong {
  color: var(--yellow);
  font-weight: 600;
}
@media (max-width: 700px) {
  .stones-section .section-heading {
    flex-wrap: wrap;
    gap: 5px;
  }
  .stones-section .section-heading h2 {
    width: 100%;
  }
  .hello-stat {
    font-size: 11px;
  }
}
/* Saved moments use the existing compact, accessible layout. */
.real-badge {
  color: var(--teal, #62d7cb);
  border-color: #62d7cb;
  background: #213b3b;
}
.data-status {
  padding: 12px 0;
  color: #b0bac5;
}
.data-status .button {
  margin-left: 8px;
}
/* A stone introduces itself before its route and its newest memories. */
.detail-summary {
  padding-top: 0;
}
.detail-intro {
  margin-bottom: 20px;
}
.detail-copy .origin-note {
  margin-top: 9px;
}
.birth-place {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  vertical-align: baseline;
}
.life-summary {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 8px;
}
.origin-note strong,
.life-summary strong {
  font-weight: 600;
  color: var(--ink);
}
.stone-backstory {
  margin-top: 12px;
}
.detail-stats {
  flex-wrap: wrap;
}
.detail-actions,
.desktop-note {
  margin-left: 0;
}
.story-feed {
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.story-entry {
  padding: 17px 18px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.story-entry:last-child {
  border-bottom: 0;
}
.story-entry.new-find {
  background: #303944;
  box-shadow: inset 3px 0 var(--purple);
}
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-width: 0;
}
.entry-meta time {
  color: var(--muted);
  font-size: 12px;
}
.entry-location {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.entry-location strong,
.entry-finder {
  font-weight: 600;
  color: var(--ink);
}
.entry-finder {
  text-align: right;
  max-width: 30%;
  flex-shrink: 0;
}
.entry-address {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.entry-message {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
  white-space: pre-wrap;
  margin-top: 8px;
}
.entry-message.no-message {
  color: var(--muted);
  font-size: 13px;
}
.entry-kind {
  font-size: 11px;
  color: var(--purple);
}
@media (max-width: 700px) {
  .detail-summary {
    display: block;
  }
  .detail-summary::after {
    content: "";
    display: table;
    clear: both;
  }
  .detail-image {
    float: left;
    margin: 0 13px 7px 0;
  }
  .detail-intro .detail-story {
    font-size: 14px;
  }
  .detail-intro .origin-note,
  .life-summary {
    font-size: 12px;
  }
  .story-entry {
    padding: 14px 12px;
  }
  .entry-header {
    gap: 10px;
    font-size: 12px;
  }
  .entry-meta {
    gap: 3px 8px;
  }
  .entry-meta time {
    font-size: 11px;
  }
}

/* Compact introduction and a single line of actions before the route. */
.detail-topbar h2 {
  min-width: 0;
}
.detail-pebble {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}
.detail-title-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}
.detail-topbar h2 small {
  white-space: nowrap;
}
.detail-intro .detail-story {
  max-width: none;
  font-size: 14px;
  line-height: 1.8;
}
.detail-story strong {
  color: var(--ink);
  font-weight: 600;
}
.find-help {
  font-size: 12px;
  line-height: 1.7;
  color: var(--purple);
  margin-top: 14px;
}
.detail-actions {
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 9px;
}
.detail-actions .button {
  white-space: nowrap;
}
.detail-actions .share-button {
  flex-shrink: 0;
  width: 42px;
  padding-inline: 0;
}
.detail-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.detail-history-heading h3 {
  margin-bottom: 0;
}
.detail-history-heading .note-button {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 9px;
}
.entry-place {
  min-width: 0;
  flex: 1;
}
.entry-address {
  margin-top: 2px;
}
.entry-author {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  max-width: 30%;
  text-align: right;
}
.entry-finder {
  max-width: none;
}
.entry-author .local-badge {
  margin-top: 3px;
  font-size: 10px;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .detail-actions {
    gap: 6px;
  }
  .detail-actions .button {
    font-size: 12px;
    padding-inline: 9px;
    gap: 5px;
  }
  .detail-actions .share-button {
    width: 38px;
    padding-inline: 0;
  }
}
@media (max-width: 360px) {
  .detail-actions .button {
    font-size: 11px;
    padding-inline: 7px;
  }
  .detail-actions .share-button {
    width: 36px;
    padding-inline: 0;
  }
}

.entry-address .local-badge {
  margin: 0 0 0 6px;
  font-size: 10px;
  white-space: nowrap;
  vertical-align: baseline;
}

.detail-stats .stat-alive strong {
  color: var(--teal);
}
.detail-stats .stat-finds strong {
  color: var(--yellow);
}
.detail-stats .stat-countries strong {
  color: var(--purple);
}
.detail-stats > span {
  white-space: nowrap;
}
.journey-caption-end {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  gap: 4px 14px;
  margin-left: auto;
}
.stone-views {
  white-space: nowrap;
}
.stone-views strong {
  color: var(--purple);
  font-weight: 600;
}

.journey-explanation {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 9px;
}
.entry-finder {
  color: var(--yellow);
}
@media (max-width: 600px) {
  .journey-explanation {
    font-size: 11px;
  }
}

.manual-location-toggle {
  display: block;
  border: 0;
  padding: 0;
  margin: 12px 0;
  background: none;
  color: var(--purple);
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.city-results {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
}
.city-result {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 9px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.city-result:hover,
.city-result:focus-visible {
  border-color: var(--purple);
}

.detail-pebble {
  width: 48px;
  height: 48px;
}
.detail-topbar h2 {
  font-size: 20px;
}
.detail-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  cursor: default;
  opacity: 1;
}
.site-header nav {
  align-items: center;
}
.success-panel h3 {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .site-header nav {
    gap: 10px;
  }
  .detail-topbar {
    gap: 8px;
  }
  .detail-topbar h2 {
    font-size: 18px;
    gap: 8px;
  }
  .detail-pebble {
    width: 44px;
    height: 44px;
  }
  .detail-header-actions {
    gap: 6px;
  }
}
@media (max-width: 360px) {
  .site-header nav {
    gap: 8px;
  }
  .language-switch {
    width: 32px;
    padding-inline: 5px;
  }
  .language-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.stone-overview-popup .leaflet-popup-content-wrapper {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 28px #0b101b55;
}
.stone-overview-popup .leaflet-popup-content {
  margin: 17px;
  min-width: 200px;
  font-family: "Nunito Sans", system-ui, sans-serif;
}
.stone-popup-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 8px;
}
.stone-popup-heading img {
  flex-shrink: 0;
  object-fit: contain;
}
.stone-popup-heading strong {
  font-family: var(--heading-font);
  font-size: 18px;
  line-height: 1.3;
}
.stone-popup-facts {
  display: grid;
  gap: 9px;
  margin: 13px 0 15px;
  font-size: 12px;
  line-height: 1.5;
}
.stone-popup-facts > div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}
.stone-popup-facts dt {
  color: var(--muted);
}
.stone-popup-facts dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.stone-popup-age {
  color: var(--teal);
  font-weight: 700;
}
.stone-popup-city {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 3px;
  font-weight: 700;
}
.stone-popup-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #b49aff55;
  border-radius: 5px;
  background: #b49aff0a;
  font-size: 12px;
  font-weight: 700;
}
.stone-popup-action:hover {
  background: #b49aff18;
}
@media (max-width: 600px) {
  .stone-overview-popup .leaflet-popup-content {
    margin: 12px;
  }
  .stone-popup-heading {
    gap: 8px;
  }
  .stone-popup-heading img {
    width: 32px;
    height: 32px;
  }
  .stone-popup-heading strong {
    font-size: 16px;
  }
  .stone-popup-facts {
    gap: 6px;
    margin: 8px 0 10px;
    font-size: 11px;
    line-height: 1.4;
  }
  .stone-popup-facts > div {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 8px;
  }
  .stone-popup-city {
    gap: 3px;
    margin-top: 2px;
  }
  .stone-popup-action {
    padding: 6px 9px;
    font-size: 11px;
  }
}

.language-switch {
  cursor: pointer;
}
.language-switch:hover,
.language-switch[aria-expanded="true"] {
  color: var(--purple);
  border-color: #b49aff66;
}
.language-menu {
  position: fixed;
  inset: auto;
  width: 176px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  font-family: "Nunito Sans", system-ui, sans-serif;
  box-shadow: 0 10px 28px #0b101b55;
}
.language-menu:popover-open {
  display: grid;
  gap: 2px;
}
.language-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 4px;
  padding: 9px 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}
.language-menu button:hover,
.language-menu button[aria-current="true"] {
  background: #b49aff12;
  color: var(--purple);
}
.success-heading {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.success-heading .success-icon {
  margin: 0;
  flex-shrink: 0;
  line-height: 1;
}
.success-heading h3 {
  min-width: 0;
}

.sort-indicator {
  color: var(--purple);
  font-weight: 700;
  margin-left: 3px;
}
.language-flag {
  width: 18px;
  height: 12px;
  flex-shrink: 0;
  border-radius: 2px;
  box-shadow: 0 0 0 1px #ffffff20;
}
.language-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.language-code {
  color: var(--muted);
  font-size: 11px;
  margin-left: 10px;
}
.language-switch {
  width: auto;
  padding-inline: 8px;
}
.language-label {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
}
@media (max-width: 360px) {
 .stone-table { --table-primary: 11px; --table-secondary: 9px; }
 .stone-table th:nth-child(1) { width: 30%; }
 .stone-table th:nth-child(3), .stone-table th:nth-child(4), .stone-table th:nth-child(5) { width: 16%; padding-inline: 0; }
 .stone-table th:nth-child(6) { width: 22%; padding-inline: 1px; }
 .sorted-heading { gap: 1px; max-width: 100%; }
 .heading-copy { min-width: 0; }
}
