:root {
  --bg: #0b0f19;
  --bg-alt: #12192a;
  --panel: rgba(17, 24, 39, 0.62);
  --panel-strong: rgba(11, 15, 25, 0.84);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f7fb;
  --text-soft: rgba(245, 247, 251, 0.72);
  --accent: #7c6cff;
  --accent-2: #49d2f2;
  --accent-3: #ff6480;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", sans-serif;
}

body {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(73, 210, 242, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(124, 108, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #090c15 0%, #0b0f19 44%, #0f1524 100%);
}

.background-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 38%, transparent 88%);
  pointer-events: none;
}

.globe-stage {
  position: relative;
  width: 100%;
  height: 100vh;
}

.globe-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  isolation: isolate;
}

.globe-canvas > * {
  z-index: 0 !important;
}

.globe-fallback-message {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, calc(100vw - 48px));
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(10, 15, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.globe-fallback-message strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.globe-fallback-message span {
  color: var(--text-soft);
  line-height: 1.5;
}

.glass-panel {
  background: rgba(10, 15, 25, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px) saturate(125%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.search-dock {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: min(460px, calc(100vw - 32px));
  z-index: 40;
}

.tap-hint-dock {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: min(440px, calc(100vw - 32px));
  z-index: 44;
  pointer-events: none;
}

.search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(10, 15, 25, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.tap-hint-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(10, 15, 25, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
  color: rgba(245, 247, 251, 0.76);
}

.search-shell i {
  flex: 0 0 auto;
  color: rgba(245, 247, 251, 0.78);
}

.tap-hint-shell i {
  flex: 0 0 auto;
  color: rgba(245, 247, 251, 0.82);
}

.tap-hint-shell span {
  font-size: 0.92rem;
  line-height: 1.35;
}

.search-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  outline: none;
}

.search-input::placeholder {
  color: rgba(245, 247, 251, 0.58);
}

.search-results {
  margin-top: 10px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(9, 14, 23, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.time-filter {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 8px;
  min-height: 0;
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(10, 15, 25, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}

.time-filter-content {
  flex: 1;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.time-filter-label {
  color: rgba(245, 247, 251, 0.64);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.time-filter-controls {
  display: grid;
  grid-template-columns: auto minmax(148px, 1.3fr) auto;
  grid-template-areas: "pre wheel input";
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.time-filter-actions {
  display: flex;
  justify-content: flex-end;
}

.time-filter-button {
  grid-area: pre;
  justify-self: start;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(245, 247, 251, 0.72);
  font-size: 0.84rem;
  font-weight: 600;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.time-filter-button--all {
  grid-area: auto;
  justify-self: auto;
  min-height: 28px;
  padding: 6px 12px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.time-filter-button:hover,
.time-filter-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.time-filter-button.active {
  background: rgba(97, 111, 255, 0.18);
  border-color: rgba(97, 111, 255, 0.3);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.year-wheel-shell {
  grid-area: wheel;
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 188px;
  height: 58px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(8, 12, 20, 0.3));
}

.year-wheel-shell::before,
.year-wheel-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 16px;
  z-index: 2;
  pointer-events: none;
}

.year-wheel-shell::before {
  top: 0;
  background: linear-gradient(180deg, rgba(10, 15, 25, 0.96), rgba(10, 15, 25, 0));
}

.year-wheel-shell::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(10, 15, 25, 0.96), rgba(10, 15, 25, 0));
}

.year-wheel-highlight {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 30px;
  transform: translateY(-50%);
  border-radius: 12px;
  border: 1px solid rgba(97, 111, 255, 0.26);
  background: rgba(97, 111, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  pointer-events: none;
  z-index: 1;
}

.year-wheel {
  position: relative;
  height: 100%;
  overflow-y: auto;
  padding: 14px 4px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  z-index: 0;
}

.year-wheel::-webkit-scrollbar {
  display: none;
}

.year-wheel-item {
  width: 100%;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(245, 247, 251, 0.48);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  scroll-snap-align: center;
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.year-wheel-item.active {
  color: var(--text);
  transform: scale(1.02);
}

.year-wheel-item:hover,
.year-wheel-item:focus-visible {
  color: rgba(245, 247, 251, 0.88);
  outline: none;
}

.year-type-input {
  grid-area: input;
  justify-self: end;
  width: 68px;
  height: 32px;
  padding: 0 7px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.year-type-input::placeholder {
  color: rgba(245, 247, 251, 0.42);
}

.year-type-input:focus {
  border-color: rgba(97, 111, 255, 0.32);
  background: rgba(97, 111, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(97, 111, 255, 0.08);
}

.search-result-item,
.search-empty {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
}

.search-result-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  text-align: left;
  transition: background 180ms ease;
}

.search-result-item:hover,
.search-result-item:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  outline: none;
}

.search-result-item strong {
  font-size: 0.96rem;
}

.search-result-item span,
.search-empty {
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.search-empty {
  display: block;
  padding: 12px 14px;
}

.topbar {
  position: absolute;
  top: 84px;
  left: 24px;
  right: 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-radius: var(--radius-xl);
  z-index: 30;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #616fff, #4aa4e8);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 22px rgba(73, 210, 242, 0.18);
}

.brand-block h1,
.status-card strong {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.brand-block h1 {
  font-size: 1.5rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--text-soft);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.category-filters,
.action-row,
.status-strip,
.detail-meta {
  display: flex;
  align-items: center;
}

.category-filters {
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip,
.ui-button,
.icon-button,
.icon-toggle {
  border: 1px solid transparent;
  color: var(--text);
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
}

.filter-chip:hover,
.filter-chip:focus-visible,
.ui-button:hover,
.ui-button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible,
.icon-toggle:hover,
.icon-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.14);
  outline: none;
}

.filter-chip.active {
  color: var(--text);
  background: rgba(97, 111, 255, 0.16);
  border-color: rgba(97, 111, 255, 0.34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.action-row {
  gap: 12px;
}

.ui-button,
.icon-button,
.icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.ui-button {
  padding: 12px 16px;
  border-radius: 16px;
}

.ui-button.primary {
  background: linear-gradient(135deg, rgba(97, 111, 255, 0.9), rgba(74, 164, 232, 0.72));
  box-shadow: 0 10px 24px rgba(73, 210, 242, 0.14);
}

.ui-button.secondary {
  border-color: var(--line);
}

.status-strip {
  position: absolute;
  top: 182px;
  left: 24px;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 20px;
  z-index: 25;
}

.status-card {
  min-width: 140px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.status-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.detail-panel {
  position: absolute;
  top: 210px;
  right: 24px;
  width: min(460px, calc(100vw - 48px));
  max-height: calc(100vh - 240px);
  overflow: auto;
  border-radius: var(--radius-xl);
  z-index: 60;
  isolation: isolate;
}

.nearby-picker {
  position: absolute;
  top: 210px;
  left: 24px;
  width: min(348px, calc(100vw - 48px));
  max-height: 320px;
  overflow: hidden;
  border-radius: var(--radius-xl);
  z-index: 62;
  isolation: isolate;
  background:
    radial-gradient(circle at top right, rgba(122, 168, 255, 0.09), transparent 28%),
    radial-gradient(circle at bottom left, rgba(124, 108, 255, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(6, 9, 16, 0.97), rgba(8, 12, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.42);
}

.nearby-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.nearby-picker-header h2 {
  margin: 0;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
}

.nearby-picker-list {
  display: grid;
  gap: 8px;
  max-height: 214px;
  overflow: auto;
  padding: 0 12px 12px;
}

.nearby-picker-item {
  width: 100%;
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(15, 21, 34, 0.9);
  color: var(--text);
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nearby-picker-item:hover,
.nearby-picker-item:focus-visible {
  background: rgba(97, 111, 255, 0.12);
  border-color: rgba(97, 111, 255, 0.28);
  transform: translateY(-1px);
  outline: none;
}

.nearby-picker-item strong {
  font-size: 0.96rem;
  line-height: 1.35;
}

.nearby-picker-item span {
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.45;
}

.nearby-picker-hint {
  margin: 0 10px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 20px);
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(10, 15, 25, 0.74));
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(245, 247, 251, 0.78);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.nearby-picker-hint span,
.nearby-picker-hint i {
  position: relative;
}

.detail-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 196px;
  max-height: 296px;
  overflow: hidden;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  z-index: 1;
  background:
    radial-gradient(circle at top, rgba(122, 168, 255, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(5, 9, 16, 0.98), rgba(8, 13, 22, 0.98));
}

.detail-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 296px;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.detail-media.is-loading img {
  opacity: 0;
}

.detail-media.is-loading::after {
  content: "Loading accurate image...";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(11, 15, 25, 0.86), rgba(11, 15, 25, 0.76));
  color: rgba(245, 247, 251, 0.76);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.46) 0%, rgba(11, 15, 25, 0) 55%);
  z-index: 2;
}

.detail-category {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
}

.icon-button,
.icon-toggle {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--line);
}

.detail-body {
  position: relative;
  z-index: 2;
  padding: 22px;
  background: rgba(9, 14, 23, 0.96);
}

.detail-year {
  margin: 0 0 10px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.detail-location {
  margin: 10px 0 0;
  color: rgba(245, 247, 251, 0.82);
  font-size: 0.95rem;
  font-weight: 600;
}

.detail-body h2 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.1;
}

.detail-description {
  margin: 14px 0 18px;
  color: rgba(245, 247, 251, 0.88);
  line-height: 1.72;
}

.detail-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.detail-tab {
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.detail-tab.active,
.detail-tab:hover,
.detail-tab:focus-visible {
  background: rgba(97, 111, 255, 0.18);
  border-color: rgba(97, 111, 255, 0.34);
  color: var(--text);
  outline: none;
}

.detail-sections {
  display: block;
  margin-bottom: 18px;
}

.detail-section {
  display: none;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-section.active {
  display: block;
}

.detail-section h3 {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
}

.detail-section p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.68;
}

.detail-meta {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.detail-actions {
  margin-top: 16px;
}

.detail-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.detail-link:hover,
.detail-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(97, 111, 255, 0.14);
  border-color: rgba(97, 111, 255, 0.3);
  box-shadow: 0 10px 24px rgba(7, 11, 19, 0.28);
  outline: none;
}

.detail-link i {
  color: rgba(245, 247, 251, 0.88);
}

.meta-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  line-height: 1.5;
}

.detail-panel.is-empty .detail-media {
  opacity: 0.72;
}

.detail-panel.is-empty .detail-location,
.detail-panel.is-empty .detail-tabs,
.detail-panel.is-empty .detail-sections,
.detail-panel.is-empty .detail-actions {
  display: none;
}

.globe-tooltip {
  min-width: 260px;
  max-width: 320px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(11, 15, 25, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
}

.globe-tooltip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.globe-tooltip p {
  margin: 6px 0 0;
  color: rgba(245, 247, 251, 0.74);
  line-height: 1.5;
}

.globe-marker {
  position: relative;
  width: 18px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}

.globe-marker:focus-visible {
  outline: none;
}

.globe-marker-shadow,
.globe-marker-pin,
.globe-marker-core {
  position: absolute;
  pointer-events: none;
}

.globe-marker-shadow {
  width: 8px;
  height: 3px;
  bottom: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  filter: blur(1px);
  opacity: 0.22;
}

.globe-marker-pin {
  width: 9px;
  height: 9px;
  top: 6px;
  border: 1.2px solid rgba(255, 255, 255, 0.88);
  border-radius: 9px 9px 9px 0;
  transform: rotate(-45deg);
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.2),
    0 0 8px rgba(255, 255, 255, 0.04);
}

.globe-marker-core {
  width: 3px;
  height: 3px;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(45deg);
  background: rgba(255, 255, 255, 0.92);
}

.globe-marker.is-selected .globe-marker-pin {
  width: 11px;
  height: 11px;
  top: 4px;
  box-shadow:
    0 5px 12px rgba(0, 0, 0, 0.22),
    0 0 10px rgba(124, 108, 255, 0.14);
}

.globe-marker--wars .globe-marker-pin {
  background: #ff5d73;
}

.globe-marker--science .globe-marker-pin {
  background: #4cc9f0;
}

.globe-marker--culture .globe-marker-pin {
  background: #f4b860;
}

.globe-marker--empires .globe-marker-pin {
  background: #8b7dff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.detail-panel::-webkit-scrollbar {
  width: 10px;
}

.detail-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.detail-panel::-webkit-scrollbar-track {
  background: transparent;
}

.nearby-picker-list::-webkit-scrollbar {
  width: 10px;
}

.nearby-picker-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.nearby-picker-list::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 1180px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .category-filters,
  .action-row {
    justify-content: flex-start;
  }

  .status-strip {
    top: 290px;
  }

  .detail-panel {
    top: 356px;
    max-height: calc(100vh - 396px);
  }

  .nearby-picker {
    top: 356px;
  }
}

@media (max-width: 820px) {
  .topbar,
  .status-strip {
    display: none;
  }

  .search-dock {
    top: 12px;
    width: min(520px, calc(100vw - 20px));
  }

  .tap-hint-dock {
    right: 10px;
    bottom: 12px;
    width: min(520px, calc(100vw - 20px));
  }

  .search-shell {
    height: 48px;
    padding: 0 14px;
    background: rgba(10, 15, 25, 0.12);
    box-shadow: none;
  }

  .time-filter {
    margin-top: 8px;
    min-height: 0;
    padding: 7px 8px;
    background: rgba(10, 15, 25, 0.12);
    box-shadow: none;
  }

  .time-filter-label {
    display: none;
  }

  .time-filter-content {
    gap: 6px;
  }

  .time-filter-controls {
    gap: 5px;
    grid-template-columns: auto minmax(132px, 1.35fr) auto;
  }

  .time-filter-button {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .time-filter-button--all {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 0.76rem;
  }

  .year-wheel-shell {
    width: 100%;
    max-width: 164px;
    height: 54px;
  }

  .year-type-input {
    flex-basis: 64px;
    width: 64px;
    height: 30px;
    font-size: 0.8rem;
  }

  .tap-hint-shell {
    min-height: 46px;
    padding: 0 14px;
    background: rgba(10, 15, 25, 0.12);
    box-shadow: none;
  }

  .globe-stage {
    height: 100dvh;
    min-height: 100dvh;
    padding-bottom: 0;
  }

  .detail-panel {
    left: 16px;
    right: 16px;
  }

  .nearby-picker {
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 112px;
    width: auto;
    max-height: 188px;
  }

  .detail-panel {
    position: absolute;
    top: auto;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-height: min(70vh, 640px);
    border-radius: 24px;
    background: rgba(9, 14, 23, 0.96);
  }

  .detail-panel.is-empty {
    display: none;
  }

  .detail-panel.is-empty .detail-media {
    display: none;
  }

  .detail-panel.is-empty .detail-body {
    padding: 16px 18px 18px;
  }

  .detail-panel.is-empty .detail-description,
  .detail-panel.is-empty .detail-meta,
  .detail-panel.is-empty .detail-location,
  .detail-panel.is-empty .detail-sections {
    display: none;
  }

  .detail-media {
    min-height: 152px;
    max-height: 228px;
  }

  .detail-media img {
    max-height: 228px;
  }

  .detail-overlay {
    padding: 14px;
  }

  .detail-body {
    padding: 14px 18px 18px;
  }

  .detail-year {
    margin-bottom: 8px;
    font-size: 0.72rem;
  }

  .detail-location {
    margin-top: 8px;
    font-size: 0.88rem;
  }

  .detail-body h2 {
    font-size: 1.12rem;
    line-height: 1.15;
  }

  .detail-description {
    margin: 10px 0 12px;
    font-size: 0.93rem;
    line-height: 1.45;
  }

  .detail-sections {
    margin-bottom: 12px;
  }

  .detail-section {
    padding: 12px 13px;
    border-radius: 14px;
  }

  .detail-section h3 {
    font-size: 0.72rem;
  }

  .detail-section p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .detail-tab {
    padding: 9px 11px;
    font-size: 0.82rem;
  }

  .detail-meta {
    gap: 8px;
  }

  .meta-pill {
    padding: 11px 12px;
    border-radius: 14px;
    font-size: 0.87rem;
  }
}

@media (max-width: 560px) {
  .search-dock {
    top: 10px;
    width: calc(100vw - 20px);
  }

  .tap-hint-dock {
    left: 10px;
    right: 10px;
    width: auto;
    bottom: 10px;
  }

  .search-shell {
    height: 44px;
    padding: 0 12px;
    border-radius: 18px;
  }

  .time-filter {
    gap: 6px;
    align-items: center;
    min-height: 0;
    padding: 6px 7px;
    border-radius: 20px;
  }

  .time-filter-controls {
    gap: 4px;
    grid-template-columns: auto minmax(112px, 1.4fr) auto;
  }

  .time-filter-button {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 0.74rem;
  }

  .time-filter-button--all {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.72rem;
  }

  .year-wheel-shell {
    width: 100%;
    max-width: 136px;
    height: 50px;
  }

  .year-type-input {
    width: 58px;
    height: 28px;
    padding: 0 6px;
    font-size: 16px;
  }

  .year-wheel-highlight {
    left: 6px;
    right: 6px;
    height: 26px;
  }

  .year-wheel {
    padding: 12px 3px;
  }

  .year-wheel-item {
    height: 26px;
    font-size: 0.78rem;
  }

  .tap-hint-shell {
    min-height: 44px;
    padding: 0 12px;
    gap: 8px;
    border-radius: 18px;
  }

  .tap-hint-shell span {
    font-size: 0.84rem;
  }

  .search-results {
    margin-top: 8px;
    padding: 6px;
    border-radius: 18px;
  }

  .detail-panel {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: min(56vh, 560px);
    border-radius: 20px;
  }

  .nearby-picker {
    left: 10px;
    right: 10px;
    bottom: 92px;
    max-height: 228px;
    border-radius: 20px;
  }

  .nearby-picker-list {
    max-height: 154px;
  }

  .nearby-picker-hint {
    min-height: 30px;
    font-size: 0.7rem;
  }

  .detail-panel.is-empty {
    display: none;
  }

  .detail-body {
    padding: 14px 14px 16px;
  }

  .detail-panel.is-empty .detail-body {
    padding: 14px;
  }

  .detail-body h2 {
    font-size: 1rem;
  }

  .detail-description {
    font-size: 0.88rem;
  }

  .detail-section p {
    font-size: 0.84rem;
  }

  .meta-pill {
    padding: 10px 11px;
    font-size: 0.82rem;
  }

  .icon-button,
  .icon-toggle {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .detail-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-height: min(74vh, 680px);
  }

  .detail-media {
    min-height: 144px;
    max-height: 208px;
  }

  .detail-media img {
    max-height: 208px;
  }
}
