/* 2435 Rust 2026 Website Styles */
:root {
  color-scheme: dark;
  --bg: #060810;
  --bg2: #0d111e;
  --surface: rgba(18, 24, 42, 0.72);
  --surface-strong: rgba(20, 28, 48, 0.88);
  --surface-soft: rgba(255, 255, 255, 0.055);
  --ink: #f0f2f6;
  --muted: #8b95a8;
  --muted2: #5a6478;
  --rule: rgba(255, 255, 255, 0.10);
  --accent: #f26b3a;
  --accent2: #2ec4e6;
  --accent3: #a8e063;
  --danger: #e84a6a;
  --safe: #3dd598;
  --warning: #f0c94c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  --shadow-accent: 0 20px 80px rgba(242, 107, 58, 0.20);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1280px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f0ea;
  --bg2: #fff8ef;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.88);
  --surface-soft: rgba(10, 15, 28, 0.055);
  --ink: #151923;
  --muted: #596273;
  --muted2: #788295;
  --rule: rgba(15, 20, 32, 0.12);
  --accent: #d85d35;
  --accent2: #168ca8;
  --accent3: #5d8f35;
  --danger: #c9415c;
  --safe: #228763;
  --warning: #b88412;
  --shadow: 0 24px 80px rgba(60, 45, 30, 0.16);
  --shadow-accent: 0 20px 80px rgba(216, 93, 53, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(242, 107, 58, 0.18), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(46, 196, 230, 0.14), transparent 30%),
    radial-gradient(circle at 52% 90%, rgba(168, 224, 99, 0.07), transparent 30%),
    linear-gradient(135deg, #060810 0%, #0a0f1a 48%, #060810 100%);
  overflow-x: hidden;
}

:root[data-theme="light"] body {
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 93, 53, 0.16), transparent 32%),
    radial-gradient(circle at 82% 0%, rgba(22, 140, 168, 0.12), transparent 30%),
    radial-gradient(circle at 52% 90%, rgba(93, 143, 53, 0.08), transparent 30%),
    linear-gradient(135deg, #f4f0ea 0%, #fff8ef 48%, #efe7dd 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 82%);
}

:root[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(15, 20, 32, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 20, 32, 0.055) 1px, transparent 1px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 28%, rgba(255, 255, 255, 0.03) 62%, transparent);
  opacity: 0.55;
}

:root[data-theme="light"] body::after {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.55), transparent 30%, rgba(216, 93, 53, 0.06) 62%, transparent);
  opacity: 0.8;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

.shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.glass {
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}

.glass-strong {
  border: 1px solid var(--rule);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    var(--surface-strong);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
}

.nav {
  position: sticky;
  top: 16px;
  z-index: 100;
  margin-top: 16px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-radius: 999px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #0b1019;
  background: conic-gradient(from 160deg, var(--accent), var(--warning), var(--accent2), var(--accent));
  box-shadow: 0 0 36px rgba(242, 107, 58, 0.32);
}

.brand-title {
  display: block;
  font-family: "Syncopate", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
  white-space: nowrap;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a,
.icon-btn,
.primary-link,
.ghost-btn,
.tab-btn,
.copy-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.nav-links a {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--rule);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-toggle {
  width: auto;
  min-width: 48px;
  padding: 0 12px;
  color: var(--ink);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 900;
}

.icon-btn {
  width: 40px;
  height: 40px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--rule);
}

.icon-btn:hover,
.primary-link:hover,
.ghost-btn:hover,
.copy-btn:hover {
  transform: translateY(-1px);
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  color: #140902;
  font-weight: 900;
  font-size: 0.86rem;
  background: linear-gradient(135deg, var(--accent), #f5a06a);
  box-shadow: 0 16px 36px rgba(242, 107, 58, 0.28);
}

.hero {
  padding: 88px 0 48px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 229, 255, 0.24);
  border-radius: 999px;
  color: var(--accent2);
  background: rgba(0, 229, 255, 0.08);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-family: "Syncopate", sans-serif;
  font-size: clamp(2.25rem, 7vw, 5.7rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.gradient-text {
  color: transparent;
  background: linear-gradient(100deg, #fff, #f8c8a8 35%, var(--accent) 62%, var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-desc {
  margin: 24px 0 28px;
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.connect-card {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 10px;
  border-radius: 20px;
}

.connect-code {
  flex: 1;
  overflow: auto hidden;
  color: #a8e063;
  font-family: "Fira Code", monospace;
  font-size: 0.86rem;
  white-space: nowrap;
}

.copy-btn,
.ghost-btn {
  cursor: pointer;
  border-color: var(--rule);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink);
  font-weight: 800;
}

.copy-btn {
  padding: 10px 14px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
}

.hero-panel {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.status-ring {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 390px;
  border-radius: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(255, 106, 42, 0.20), transparent 30%),
    radial-gradient(circle at center, rgba(0, 229, 255, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.035);
}

.status-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(5, 7, 12, 0.04), rgba(5, 7, 12, 0.16));
  pointer-events: none;
}

.map-ring-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.74);
  transform: scale(1.04);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.map-ring-link {
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.map-ring-link:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(242, 107, 58, 0.26), 0 24px 80px rgba(0, 0, 0, 0.22);
}

.map-ring-link:hover .map-ring-image {
  transform: scale(1.1);
  filter: saturate(1.02) contrast(1.08) brightness(0.84);
}

.status-ring::after {
  inset: 28%;
  animation-duration: 14s;
  animation-direction: reverse;
  border-color: rgba(0, 229, 255, 0.22);
}

.status-core {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 10px;
  min-width: min(76%, 360px);
  padding: 26px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
    var(--surface-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  text-align: center;
}

.core-number {
  display: block;
  font-family: "Syncopate", sans-serif;
  font-size: clamp(3.5rem, 9vw, 7rem);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 50px rgba(242, 107, 58, 0.55);
}

.core-label {
  color: var(--muted);
  font-family: "Fira Code", monospace;
  letter-spacing: 0.18em;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.stat {
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.stat b {
  display: block;
  font-family: "Fira Code", monospace;
  color: var(--ink);
  font-size: 1.06rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.72rem;
}

.section {
  padding: 52px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent2);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.section-note {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.55fr);
  gap: 18px;
  align-items: stretch;
}

.map-link-card {
  position: relative;
  display: block;
  min-height: 620px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
}

.map-link-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04) brightness(0.76);
  transform: scale(1.02);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.map-link-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 42%, transparent 28%, rgba(5, 7, 12, 0.56) 100%),
    linear-gradient(180deg, rgba(5, 7, 12, 0.18), rgba(5, 7, 12, 0.78));
  pointer-events: none;
}

.map-link-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.02) contrast(1.08) brightness(0.84);
}

.map-link-overlay {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  z-index: 2;
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 22px;
  border: 1px solid var(--rule);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(5, 7, 12, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.map-link-kicker {
  color: var(--accent2);
  font-family: "Fira Code", monospace;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.map-link-overlay strong {
  color: var(--ink);
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.map-link-overlay small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.map-card {
  position: relative;
  min-height: 720px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  user-select: none;
}

.map-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(5, 7, 12, 0.12), transparent 24%, rgba(5, 7, 12, 0.32)),
    radial-gradient(circle at 50% 48%, transparent 36%, rgba(5, 7, 12, 0.46) 100%);
}

.map-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: calc(var(--radius-lg) - 10px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 90px rgba(0, 229, 255, 0.08),
    inset 0 -80px 120px rgba(0, 0, 0, 0.38);
}

.map-viewport {
  position: absolute;
  inset: 0;
  background: #08111d;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.map-viewport.dragging {
  cursor: grabbing;
}

.map-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(96%, 820px);
  aspect-ratio: 1 / 1;
  transform-origin: center center;
  will-change: transform;
}

.map-base {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
  background: #07111a;
  filter: saturate(1.15) contrast(1.08) brightness(0.88);
  pointer-events: none;
}

.map-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(5, 7, 12, 0.05), rgba(5, 7, 12, 0.28)),
    radial-gradient(circle at center, transparent 36%, rgba(5, 7, 12, 0.36));
  pointer-events: none;
}

.map-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: 10% 10%;
  opacity: 0.34;
  pointer-events: none;
}

.map-marker-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.map-label-marker {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  cursor: pointer;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.map-label-marker::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.08), 0 0 24px currentColor;
}

.map-label-marker::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: ping 2.2s infinite;
  opacity: 0.7;
}

.map-label-marker .cn-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(5, 7, 12, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.map-label-marker[data-type="safe"] { color: var(--safe); }
.map-label-marker[data-type="danger"] { color: var(--danger); }
.map-label-marker[data-type="water"] { color: var(--accent2); }
.map-label-marker[data-type="normal"] { color: var(--warning); }
.map-label-marker.is-active .cn-label {
  border-color: rgba(255, 106, 42, 0.55);
  background: rgba(255, 106, 42, 0.18);
}

.map-zoom-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: flex;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.64);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.map-zoom-controls button {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.map-zoom-controls button:hover {
  background: rgba(255, 106, 42, 0.22);
  border-color: rgba(255, 106, 42, 0.42);
}

.map-help {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(5, 7, 12, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 0.78rem;
  font-weight: 800;
}

.map-hud {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--ink);
  background: rgba(5, 7, 12, 0.56);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-filters button,
.tab-btn {
  padding: 8px 11px;
  cursor: pointer;
  color: var(--muted);
  background: rgba(5, 7, 12, 0.52);
  border-color: var(--rule);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-weight: 800;
}

.map-filters button.active,
.tab-btn.active {
  color: #130800;
  background: linear-gradient(135deg, var(--accent), #ffbd77);
  border-color: rgba(255, 255, 255, 0.22);
}

.marker {
  position: absolute;
  z-index: 6;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.marker-dot {
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.08), 0 0 26px currentColor;
}

.marker::before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: ping 2s infinite;
  opacity: 0.75;
}

.marker-label {
  position: absolute;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(5, 7, 12, 0.78);
  border: 1px solid var(--rule);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.marker:hover .marker-label {
  opacity: 1;
  transform: translate(-50%, 2px);
}

.marker[data-type="safe"] { color: var(--safe); }
.marker[data-type="danger"] { color: var(--danger); }
.marker[data-type="water"] { color: var(--accent2); }
.marker[data-type="safe"] .marker-dot { background: var(--safe); }
.marker[data-type="danger"] .marker-dot { background: var(--danger); }
.marker[data-type="water"] .marker-dot { background: var(--accent2); }

.map-info {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.info-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.info-badge {
  color: var(--accent2);
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
}

.monument-name {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.18;
}

.info-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.info-item {
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.info-item small {
  display: block;
  margin-bottom: 6px;
  color: var(--muted2);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.info-item strong {
  color: var(--ink);
  line-height: 1.65;
}

.monument-desc {
  color: var(--muted);
  line-height: 1.85;
}

.map-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.meta-card {
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
}

.meta-card span {
  display: block;
  color: var(--muted2);
  font-size: 0.72rem;
}

.meta-card b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: "Fira Code", monospace;
}

.plugin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plugin-card {
  position: relative;
  min-height: 230px;
  padding: 20px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plugin-card::after {
  content: "";
  position: absolute;
  inset: auto -25% -45% 30%;
  height: 160px;
  background: radial-gradient(circle, rgba(255, 106, 42, 0.22), transparent 64%);
  pointer-events: none;
}

.plugin-card:hover {
  transform: translateY(-7px);
  border-color: rgba(255, 106, 42, 0.38);
  box-shadow: var(--shadow-accent);
}

.plugin-card:focus-visible {
  outline: 2px solid var(--accent2);
  outline-offset: 3px;
}

.plugin-card.is-selected {
  border-color: rgba(255, 106, 42, 0.58);
  box-shadow: var(--shadow-accent), inset 0 0 0 1px rgba(255, 106, 42, 0.18);
}

.plugin-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--accent);
  border-radius: 16px;
  background: rgba(255, 106, 42, 0.12);
}

.plugin-card h3 {
  margin: 0 0 5px;
  font-size: 1.05rem;
}

.plugin-card .tagline {
  margin: 0 0 13px;
  color: var(--accent2);
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
}

.plugin-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.plugin-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.command-chip {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--warning);
  background: rgba(255, 209, 102, 0.10);
  border: 1px solid rgba(255, 209, 102, 0.18);
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
}

.source-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent2);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.source-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.source-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.045);
}

.code-shell {
  padding: 16px;
}

.code-window {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: #060a12;
}

.code-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  background: #0c1220;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dots i:nth-child(1) { background: #ff5f57; }
.window-dots i:nth-child(2) { background: #ffbd2e; }
.window-dots i:nth-child(3) { background: #28c840; }

.source-filename {
  flex: 1;
  color: var(--muted);
  font-family: "Fira Code", monospace;
  font-size: 0.8rem;
}

.source-actions {
  display: flex;
  gap: 8px;
}

.source-actions a,
.source-actions button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.78rem;
  font-weight: 800;
}

.code-content {
  max-height: 620px;
  overflow: auto;
  padding: 18px;
  color: var(--ink);
  font-family: "Fira Code", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
}

:root[data-theme="light"] .code-window {
  background: #fffaf2;
}

:root[data-theme="light"] .code-titlebar {
  border-bottom-color: var(--rule);
  background: #f1e9df;
}

:root[data-theme="light"] .source-tabs {
  background: rgba(15, 20, 32, 0.035);
}

:root[data-theme="light"] .source-actions a,
:root[data-theme="light"] .source-actions button,
:root[data-theme="light"] .copy-btn,
:root[data-theme="light"] .ghost-btn,
:root[data-theme="light"] .tab-btn,
:root[data-theme="light"] .map-filters button {
  background: rgba(255, 255, 255, 0.56);
}

:root[data-theme="light"] .connect-code {
  color: #476d1e;
}

:root[data-theme="light"] .tok-key { color: #a13d52; }
:root[data-theme="light"] .tok-str { color: #1b6f8a; }
:root[data-theme="light"] .tok-com { color: #6b7280; }
:root[data-theme="light"] .tok-num { color: #8a5b00; }
:root[data-theme="light"] .tok-fn { color: #6f4ab2; }

.code-content pre {
  margin: 0;
  white-space: pre;
}

.tok-key { color: #ff7b72; }
.tok-str { color: #a5d6ff; }
.tok-com { color: #8b949e; font-style: italic; }
.tok-num { color: #79c0ff; }
.tok-fn { color: #d2a8ff; }

.footer {
  padding: 36px 0 48px;
  color: var(--muted2);
  text-align: center;
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(57, 229, 140, 0.30);
  border-radius: 16px;
  color: var(--ink);
  background: rgba(10, 22, 18, 0.82);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@keyframes ping {
  75%, 100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .map-layout {
    grid-template-columns: 1fr;
  }

  .plugin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-card {
    min-height: 620px;
  }
}

.leaflet-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(0, 229, 255, 0.10), transparent 42%),
    #07111a;
}

.leaflet-container {
  background: #07111a;
  font-family: "Noto Sans SC", Inter, system-ui, sans-serif;
}

.leaflet-container .leaflet-pane,
.leaflet-container .leaflet-top,
.leaflet-container .leaflet-bottom {
  z-index: 10;
}

.leaflet-container .leaflet-marker-pane,
.leaflet-container .leaflet-popup-pane {
  z-index: 25;
}

.leaflet-container .leaflet-control-container {
  position: relative;
  z-index: 30;
}

.leaflet-container .leaflet-top.leaflet-left {
  top: 92px;
  right: auto;
  bottom: auto;
  left: 18px;
}

.leaflet-container .leaflet-control-zoom {
  border: 1px solid var(--rule);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)),
    rgba(5, 7, 12, 0.72);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

.leaflet-container .leaflet-control-zoom a {
  width: 44px;
  height: 44px;
  line-height: 44px;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
  font-weight: 900;
  font-size: 1.22rem;
  text-shadow: 0 0 18px rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.leaflet-container .leaflet-control-zoom a:last-child {
  border-bottom: none;
}

.leaflet-container .leaflet-control-zoom a:hover {
  background: linear-gradient(135deg, rgba(255, 106, 42, 0.36), rgba(0, 229, 255, 0.16));
  color: var(--ink);
  transform: scale(1.03);
}

.leaflet-container .leaflet-control-zoom a.leaflet-disabled {
  color: var(--muted2);
  background: transparent;
}

.leaflet-popup-content-wrapper {
  border: 1px solid rgba(255, 106, 42, 0.30);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(5, 7, 12, 0.90);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.48), 0 0 36px rgba(255, 106, 42, 0.12);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  color: var(--ink);
}

.leaflet-popup-tip {
  background: rgba(10, 15, 24, 0.92);
  border: 1px solid rgba(255, 106, 42, 0.26);
  box-shadow: none;
}

.leaflet-popup-content {
  margin: 12px 18px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.leaflet-container a.leaflet-popup-close-button {
  top: 6px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 24px;
  text-align: center;
  border-radius: 50%;
  transition: color 0.2s ease, background 0.2s ease;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
}

.custom-marker-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  color: var(--ink);
  background: currentColor;
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.06),
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 28px currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.custom-marker-icon:hover {
  transform: rotate(45deg) scale(1.16);
  border-color: rgba(255, 255, 255, 0.98);
}

.custom-marker-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid currentColor;
  border-radius: 22px;
  animation: ping 2.2s infinite;
  opacity: 0.7;
}

.marker-symbol {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #061018;
  transform: rotate(-45deg);
  font-size: 1.03rem;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.28);
}

.marker-name {
  position: absolute;
  left: 38px;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(4, 8, 14, 0.78);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(-50%) rotate(-45deg) translateX(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.custom-marker-icon:hover .marker-name,
.leaflet-marker-icon.is-active .marker-name {
  opacity: 1;
  transform: translateY(-50%) rotate(-45deg) translateX(0);
  border-color: rgba(255, 106, 42, 0.42);
}

.marker-safe { background: var(--safe); color: var(--safe); }
.marker-danger { background: var(--danger); color: var(--danger); }
.marker-water { background: var(--accent2); color: var(--accent2); }
.marker-normal { background: var(--warning); color: var(--warning); }

.leaflet-marker-icon.is-active .custom-marker-icon {
  transform: rotate(45deg) scale(1.22);
  border-color: var(--accent);
  box-shadow:
    0 0 0 6px rgba(255, 106, 42, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.42),
    0 0 36px var(--accent);
}

.leaflet-marker-icon.is-active .custom-marker-icon::after {
  border-color: var(--accent);
}

.leaflet-control-attribution {
  display: none;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 24px, var(--max));
  }

  .nav {
    top: 8px;
    margin-top: 8px;
  }

  .nav-inner {
    border-radius: 24px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 4px;
  }

  .brand-title {
    font-size: 0.78rem;
  }

  .primary-link {
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .connect-card {
    width: 100%;
  }

  .status-ring {
    min-height: 290px;
  }

  .quick-stats,
  .map-meta,
  .plugin-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-card {
    min-height: 440px;
  }

  .map-link-card,
  .map-link-card img {
    min-height: 420px;
  }

  .map-link-overlay {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .map-hud {
    align-items: flex-start;
    flex-direction: column;
  }

  .marker-label {
    display: none;
  }

  .source-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
