/* Windows has no flag emoji; this font supplies just the country flags. */
@font-face {
  font-family: 'Twemoji Country Flags';
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  src: url('https://cdn.jsdelivr.net/npm/country-flag-emoji-polyfill@0.1.8/dist/TwemojiCountryFlags.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bg: #05070c;
  --glass: rgba(18, 22, 30, 0.62);
  --glass-strong: rgba(14, 17, 24, 0.86);
  --glass-line: rgba(255, 255, 255, 0.09);
  --text: #eef2f8;
  --text-dim: rgba(238, 242, 248, 0.62);
  --text-faint: rgba(238, 242, 248, 0.38);
  --accent: #8ab4f8;           /* Google-blue family, readable on dark */
  --accent-strong: #aecbfa;
  --warn: #fbbc04;
  --radius: 14px;
  --radius-pill: 999px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.35);
  --ui-font: 'Twemoji Country Flags', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 16px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ui-font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
svg { display: block; }

/* ---------- Globe ---------- */
#globe { position: fixed; inset: 0; cursor: grab; touch-action: none; }
#globe.dragging { cursor: grabbing; }
#globe .cesium-viewer, #globe .cesium-widget { width: 100%; height: 100%; }
.cesium-viewer-bottom {
  left: var(--gutter) !important;
  bottom: 8px !important;
  opacity: 0.85;
  z-index: 6;
}
.cesium-widget-credits { font-size: 10px !important; }
.cesium-credit-logoContainer img { max-height: 18px; }

/* ---------- Atmosphere overlays ---------- */
#weather { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }

#veil {
  position: fixed; inset: -10%; pointer-events: none; z-index: 3; opacity: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(240, 244, 250, 0.92), rgba(205, 214, 228, 0.96) 70%);
  mix-blend-mode: normal;
}
#veil i {
  position: absolute; inset: 0;
  background:
    radial-gradient(40% 30% at 30% 40%, rgba(255,255,255,0.9), transparent 70%),
    radial-gradient(35% 28% at 70% 60%, rgba(255,255,255,0.8), transparent 70%),
    radial-gradient(30% 25% at 50% 20%, rgba(190,200,215,0.7), transparent 70%);
  filter: blur(18px);
  animation: veil-drift 2.2s linear infinite;
}
#veil i:nth-child(2) { animation-duration: 1.5s; animation-direction: reverse; transform: scale(1.3); opacity: .7; }
#veil i:nth-child(3) { animation-duration: 0.9s; transform: scale(1.8); opacity: .5; }
@keyframes veil-drift {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(1.6) translate3d(0, 0, 0); opacity: 0; }
}

#frost {
  position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0;
  transition: opacity 3s ease;
  background:
    radial-gradient(ellipse 75% 65% at 50% 50%, transparent 55%, rgba(220, 238, 255, 0.28) 78%, rgba(235, 246, 255, 0.75) 100%);
  -webkit-mask: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 50%, #000 100%);
          mask: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 50%, #000 100%);
}
#frost::after {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.96  0 0 0 0 1  0 0 0 1.6 -0.55'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  opacity: .9; mix-blend-mode: screen;
}
body.frosty #frost { opacity: 0.55; }

.letterbox {
  position: fixed; left: 0; right: 0; height: 9vh; background: #000; z-index: 4;
  transform: scaleY(0); transition: transform 1.2s var(--ease-out); pointer-events: none;
}
.letterbox.top { top: 0; transform-origin: top; }
.letterbox.bottom { bottom: 0; transform-origin: bottom; }
body.is-flying .letterbox { transform: scaleY(1); }

/* ---------- Generic UI ---------- */
.ui { transition: opacity .6s ease, transform .6s var(--ease-out); z-index: 10; }
body.is-intro .ui, body.is-flying .ui { opacity: 0; pointer-events: none; }
body.is-flying .topbar { opacity: 1; pointer-events: none; }
body.is-flying .topbar .top-actions, body.is-flying .topbar .brand { opacity: 0; }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text); cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, 0.1); }
.icon-btn:active { transform: scale(0.94); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: fixed; top: max(12px, env(safe-area-inset-top)); left: var(--gutter); right: var(--gutter);
  display: grid; grid-template-columns: 1fr minmax(280px, 560px) 1fr; gap: 12px; align-items: start;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  height: 48px; padding: 0 16px 0 12px; border-radius: var(--radius-pill);
  background: var(--glass); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--glass-line); color: var(--text); text-decoration: none; box-shadow: var(--shadow);
  font-weight: 600; letter-spacing: .01em; white-space: nowrap; transition: opacity .6s ease;
}
.brand svg { width: 22px; height: 22px; color: var(--accent); }
.brand em { font-style: normal; font-family: 'Noto Sans Arabic', sans-serif; color: var(--text-dim); font-weight: 400; }

.search {
  position: relative; display: flex; align-items: center; gap: 4px;
  height: 48px; padding: 0 6px 0 16px; border-radius: 24px;
  background: var(--glass-strong); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow);
}
.search:focus-within { border-color: rgba(138, 180, 248, 0.6); }
.search-icon { width: 20px; height: 20px; color: var(--text-dim); flex: none; }
.search input {
  flex: 1; min-width: 0; height: 100%; padding: 0 8px; border: 0; outline: 0; background: transparent;
  color: var(--text); font-size: 15px;
}
.search input::placeholder { color: var(--text-faint); }
.search.has-crumbs input { position: absolute; opacity: 0; pointer-events: none; }
.search.has-crumbs input:focus { position: static; opacity: 1; pointer-events: auto; }
.search.has-crumbs input:focus ~ .crumbs { display: none; }

.crumbs {
  flex: 1; min-width: 0; display: none; align-items: center; gap: 2px; padding: 0 8px;
  white-space: nowrap; overflow: hidden; font-size: 14px; color: var(--text-dim); cursor: text;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18px); mask: linear-gradient(90deg, transparent, #000 18px);
  direction: rtl; /* keep the newest crumb visible when it overflows */
}
.search.has-crumbs .crumbs { display: flex; }
.crumbs > span { direction: ltr; display: inline-flex; align-items: center; animation: crumb-in .5s var(--ease-out) both; }
.crumbs > span + span::before { content: '›'; margin: 0 7px; color: var(--text-faint); }
.crumbs > span:last-child { color: var(--text); font-weight: 500; }
@keyframes crumb-in { from { opacity: 0; transform: translateY(6px); } }

#suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none;
  background: var(--glass-strong); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--glass-line); border-radius: var(--radius); box-shadow: var(--shadow);
}
#suggestions li {
  display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px; cursor: pointer;
}
#suggestions li[aria-selected="true"], #suggestions li:hover { background: rgba(138, 180, 248, 0.14); }
#suggestions .sg-flag { font-size: 20px; }
#suggestions .sg-main { font-size: 14px; }
#suggestions .sg-main small { display: block; color: var(--text-dim); font-size: 12px; margin-top: 2px; }
#suggestions .sg-key { font-size: 11px; color: var(--text-faint); border: 1px solid var(--glass-line); border-radius: 6px; padding: 2px 6px; }

.top-actions {
  justify-self: end; display: flex; gap: 2px; padding: 4px; border-radius: var(--radius-pill);
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: opacity .6s ease;
}
#btn-sound .off { display: none; }
#btn-sound[aria-pressed="false"] .on { display: none; }
#btn-sound[aria-pressed="false"] .off { display: block; }

/* ---------- Pin ---------- */
#pin {
  position: fixed; left: 0; top: 0; z-index: 5; pointer-events: none; opacity: 0;
  transition: opacity .5s ease; will-change: transform;
}
#pin.show { opacity: 1; }
.pin-dot {
  position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: #ea4335; border: 2.5px solid #fff; box-shadow: 0 0 0 4px rgba(234, 67, 53, 0.25), 0 4px 14px rgba(0,0,0,.5);
}
.pin-ring {
  position: absolute; left: -36px; top: -36px; width: 72px; height: 72px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85); animation: pin-pulse 1.6s ease-out infinite;
}
@keyframes pin-pulse { from { transform: scale(0.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.pin-label {
  position: absolute; left: 16px; top: -14px; white-space: nowrap; padding: 5px 10px; border-radius: 8px;
  background: rgba(10, 12, 18, 0.75); font-size: 13px; font-weight: 500; letter-spacing: .01em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* ---------- Altimeter ---------- */
.altimeter {
  position: fixed; left: 50%; bottom: calc(9vh + 22px); transform: translate(-50%, 20px);
  z-index: 11; text-align: center; opacity: 0; pointer-events: none;
  transition: opacity .6s ease, transform .8s var(--ease-out);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.7);
}
body.is-flying .altimeter { opacity: 1; transform: translate(-50%, 0); }
.alt-value { font-size: clamp(38px, 6vw, 64px); font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.alt-value small { font-size: 0.38em; margin-left: 6px; color: var(--text-dim); font-weight: 400; letter-spacing: 0; }
.alt-label { margin-top: 8px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim); }
.alt-speed { margin-top: 4px; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }

/* ---------- Place card ---------- */
.placecard {
  position: fixed; left: var(--gutter); top: 76px; width: min(360px, calc(100vw - 2 * var(--gutter)));
  padding: 16px; border-radius: 18px;
  background: var(--glass-strong); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  transform: translateX(0); opacity: 1;
}
.placecard[hidden] { display: block; opacity: 0; transform: translateX(-24px); pointer-events: none; }
.pc-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.pc-flag { font-size: 30px; line-height: 1; }
.pc-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.pc-head p { margin: 3px 0 0; font-size: 13px; color: var(--text-dim); }
.pc-close { width: 32px; height: 32px; }
.pc-message {
  margin: 14px 0 12px; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-line);
}
.pc-lang { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong); }
.pc-original { margin: 6px 0 4px; font-size: 19px; line-height: 1.45; }
.pc-original[lang="ar"] { font-family: 'Aref Ruqaa', 'Noto Sans Arabic', serif; font-size: 22px; }
.pc-original[lang="ja"] { font-family: 'Yuji Syuku', 'Noto Sans JP', serif; }
.pc-original[lang="el"] { font-family: 'GFS Didot', serif; }
.pc-original[lang="it"] { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 21px; }
.pc-original[lang="de"] { font-family: 'Cinzel', serif; font-size: 17px; }
.pc-translation { margin: 0; font-size: 13px; color: var(--text-dim); }
.pc-facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 13px; }
.pc-facts dt { color: var(--text-faint); }
.pc-facts dd { margin: 0; color: var(--text); }
.pc-coords { margin-top: 10px; font-size: 12px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px;
  border-radius: var(--radius-pill); border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.06);
  cursor: pointer; font-size: 13px; font-weight: 500; transition: background .2s ease;
}
.chip svg { width: 16px; height: 16px; }
.chip:hover { background: rgba(255, 255, 255, 0.12); }
.chip.primary { margin-left: auto; background: var(--accent); color: #0b1424; border-color: transparent; }
.chip.primary:hover { background: var(--accent-strong); }

/* ---------- Controls ---------- */
.controls {
  position: fixed; right: var(--gutter); bottom: 132px; display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.compass, .zoom, .icon-btn.solo {
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow);
}
.compass { width: 48px; height: 48px; padding: 0; border-radius: 50%; cursor: pointer; color: var(--text); }
.compass svg { width: 100%; height: 100%; }
#needle { transform-origin: 24px 24px; transition: transform .08s linear; }
.zoom { display: flex; flex-direction: column; border-radius: 22px; padding: 2px; }
.icon-btn.solo { width: 44px; height: 44px; }

/* ---------- Dock ---------- */
.dock {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  display: flex; gap: 10px; padding: 8px; max-width: calc(100vw - 2 * var(--gutter));
  overflow-x: auto; scrollbar-width: none; border-radius: 20px;
  background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow);
}
.dock::-webkit-scrollbar { display: none; }
.card {
  position: relative; flex: none; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px;
  width: 172px; padding: 10px 12px; border-radius: 14px; text-align: left; cursor: pointer;
  border: 1px solid transparent; background: rgba(255, 255, 255, 0.04);
  transition: background .25s ease, border-color .25s ease, transform .25s var(--ease-out);
}
.card:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.card[aria-current="true"] { border-color: rgba(138, 180, 248, 0.55); background: rgba(138, 180, 248, 0.12); }
.card .c-flag { grid-row: span 2; font-size: 26px; line-height: 1; align-self: center; }
.card .c-country { font-size: 14px; font-weight: 600; }
.card .c-landmark { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .c-key {
  position: absolute; top: 8px; right: 9px; font-size: 10px; color: var(--text-faint);
  border: 1px solid var(--glass-line); border-radius: 5px; padding: 0 5px; line-height: 16px;
}

/* ---------- Status bar ---------- */
.statusbar {
  position: fixed; right: var(--gutter); bottom: 8px; display: flex; align-items: center; gap: 16px;
  font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}
body.is-flying .statusbar { opacity: 1; }
.st-stream { display: inline-flex; align-items: center; gap: 6px; }
.st-stream i {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--accent); border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.st-stream b { font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-scale { display: inline-flex; align-items: center; gap: 6px; }
.st-scale i { display: block; height: 6px; border: 1.5px solid currentColor; border-top: 0; }
.st-scale b { font-weight: 500; }

#loadbar {
  position: fixed; top: 0; left: 0; height: 2px; width: 0; z-index: 30;
  background: linear-gradient(90deg, #4285f4, #34a853, #fbbc04, #ea4335);
  transition: width .4s ease, opacity .6s ease;
}

#toast {
  position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 40;
  padding: 10px 16px; border-radius: 10px; background: var(--glass-strong); border: 1px solid var(--glass-line);
  font-size: 13px; box-shadow: var(--shadow);
}

/* ---------- Intro ---------- */
.intro {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 24px var(--gutter);
  background: radial-gradient(ellipse at 50% 50%, rgba(5, 7, 12, 0.5), rgba(5, 7, 12, 0.35) 45%, rgba(5, 7, 12, 0.75) 80%);
  transition: opacity 1.4s ease, visibility 1.4s;
}
body:not(.is-intro) .intro { opacity: 0; visibility: hidden; pointer-events: none; }
.intro-inner { max-width: 640px; text-align: center; }
.intro-kicker { margin: 0; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--text-dim); }
.intro h1 {
  margin: 14px 0 22px; font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(54px, 10vw, 104px); line-height: .95; letter-spacing: -0.01em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.6);
}
.intro-lines { display: grid; gap: 6px; margin: 0 0 34px; font-size: 15px; color: var(--text-dim); }
.intro-lines span { opacity: 0; animation: line-in 1s var(--ease-out) forwards; }
.intro-lines span:nth-child(1) { animation-delay: .3s; font-family: 'Aref Ruqaa', serif; font-size: 19px; }
.intro-lines span:nth-child(2) { animation-delay: .6s; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; }
.intro-lines span:nth-child(3) { animation-delay: .9s; font-family: 'GFS Didot', serif; }
.intro-lines span:nth-child(4) { animation-delay: 1.2s; font-family: 'Cinzel', serif; font-size: 13px; }
.intro-lines span:nth-child(5) { animation-delay: 1.5s; font-family: 'Yuji Syuku', serif; }
@keyframes line-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.begin {
  position: relative; height: 54px; padding: 0 30px; border-radius: var(--radius-pill); cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08);
  color: var(--text); font-size: 15px; font-weight: 500; letter-spacing: .02em;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .3s ease, border-color .3s ease, transform .3s var(--ease-out);
}
.begin:not(:disabled):hover { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.5); transform: translateY(-1px); }
.begin:disabled { cursor: progress; color: var(--text-dim); }
.intro-hint { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; font-size: 12px; color: var(--text-faint); }
.intro-hint svg { width: 16px; height: 16px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto; }
  .brand { display: none; }
  .search { grid-column: 1; }
  /* Keep a lane on the right for the map buttons so the card's ✕ never sits under them. */
  .placecard {
    top: auto; bottom: 118px; left: var(--gutter);
    width: calc(100vw - 2 * var(--gutter) - 58px); max-height: 44vh; overflow: auto;
    padding: 12px;
  }
  .pc-head { gap: 10px; }
  .pc-head h2 { font-size: 16px; }
  .pc-close { width: 36px; height: 36px; }
  .pc-message { margin: 10px 0 8px; padding: 10px 12px; }
  .pc-original { font-size: 17px; }
  .pc-facts, .pc-coords { display: none; }   /* keep the card short enough for its buttons */
  .pc-actions { margin-top: 10px; }
  .chip { height: 32px; padding: 0 10px; }
  .controls { bottom: auto; top: 72px; right: 10px; gap: 8px; }
  .compass { width: 42px; height: 42px; }
  .zoom .icon-btn, .icon-btn.solo { width: 40px; height: 40px; }
  .dock { bottom: 32px; justify-content: flex-start; }
  .card { width: 150px; }
  .card .c-key { display: none; }
  .statusbar { left: var(--gutter); right: var(--gutter); justify-content: flex-end; gap: 10px; }
  #st-coords { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #veil i, .pin-ring, .intro-lines span { animation: none; opacity: 1; }
}

/* ---------- Added for hud.js ---------- */
/* The status-bar items set display, which would beat the [hidden] attribute. */
.st-stream[hidden], .st-scale[hidden] { display: none; }

/* A flex row with direction: rtl reverses the crumbs, so lay them out left to
   right; hud.js scrolls the row to its end so the newest crumb stays visible,
   and the edge fade only shows once older crumbs are clipped. */
.crumbs { direction: ltr; -webkit-mask: none; mask: none; }
.crumbs.clipped {
  -webkit-mask: linear-gradient(90deg, transparent, #000 18px); mask: linear-gradient(90deg, transparent, #000 18px);
}
.crumbs > span { flex: none; }

/* "No match" row in the suggestions. */
#suggestions li[aria-disabled="true"], #suggestions li[aria-disabled="true"]:hover { cursor: default; background: none; color: var(--text-dim); }

/* Letter-spacing breaks up joined Arabic script. */
.pc-lang:lang(ar) { letter-spacing: 0; }

/* ---------- Credits ---------- */
.st-link {
  border: 0; padding: 0; background: none; cursor: pointer; color: var(--text-dim); font: inherit;
  text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(238, 242, 248, 0.35);
}
.st-link:hover { color: var(--text); }

#credits {
  width: min(560px, calc(100vw - 2 * var(--gutter))); max-width: none; max-height: none;
  padding: 0; overflow: hidden; color: var(--text);
  border: 1px solid var(--glass-line); border-radius: 18px; box-shadow: var(--shadow);
  background: var(--glass-strong); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3);
}
#credits::backdrop { background: rgba(3, 5, 9, 0.55); }
.credits-inner {
  max-height: min(78vh, 720px); overflow: auto; padding: 16px 20px 20px;
  color-scheme: dark; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.credits-head { display: flex; align-items: center; justify-content: space-between; }
.credits-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
#credits h3 {
  margin: 18px 0 6px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-strong);
}
#credits p { margin: 0 0 8px; font-size: 13px; line-height: 1.55; color: var(--text-dim); }
#credits a { color: var(--accent); }
#credits a:hover { color: var(--accent-strong); }
.credits-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.credits-list li {
  padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.04);
  font-size: 13px; line-height: 1.45; color: var(--text-dim);
}
.credits-list small { display: block; margin-top: 2px; font-size: 11px; color: var(--text-faint); }

/* Phones: the map providers' credits get their own strip at the very bottom
   (their height is measured in credits.js); everything else stacks above it. */
@media (max-width: 760px) {
  .cesium-viewer-bottom { left: 8px !important; right: 8px !important; bottom: 4px !important; }
  .cesium-widget-credits { font-size: 9px !important; line-height: 1.35; }
  .statusbar { bottom: calc(var(--map-credits-h, 40px) + 8px); }
  .dock { bottom: calc(var(--map-credits-h, 40px) + 28px); }
  .placecard { bottom: calc(var(--map-credits-h, 40px) + 108px); }
}
