:root {
  --bg: #000000;
  --panel: #0a0d0f;
  --panel-2: #0c0f12;
  --metal: #1c2024;
  --metal-edge: #33373b;
  --line: #1a1d20;
  --green: #2bbd79;
  --green-bright: #3fe39a;
  --green-dim: #163a28;
  --text: #cfe9dd;
  --text-soft: #9fb8ad;
  --text-mute: #4a564f;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.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;
}

/* Board */
.board-wrap { width: 100%; max-width: 960px; }
svg.board { width: 100%; height: auto; display: block; }

/* Clickable component groups */
.link { cursor: pointer; }
.link .panel { transition: stroke .18s ease, stroke-opacity .18s ease, filter .18s ease; }
.link:hover .panel,
.link:focus-visible .panel {
  stroke: var(--green-bright);
  stroke-opacity: 1;
  filter: drop-shadow(0 0 6px rgba(63, 227, 154, .55));
}
.link:focus-visible { outline: none; }
.link .lbl { transition: fill .18s ease; }
.link:hover .lbl,
.link:focus-visible .lbl { fill: var(--green-bright); }

/* CMOS easter egg stays quiet until hovered */
.egg .panel { stroke-opacity: .35; }
.egg:hover .panel,
.egg:focus-visible .panel {
  stroke: var(--green-bright);
  stroke-opacity: 1;
  filter: drop-shadow(0 0 5px rgba(63, 227, 154, .5));
}

footer {
  margin-top: 18px;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--text-mute);
}

/* Mobile: swap to a stacked nav */
.mobile-nav { display: none; width: 100%; max-width: 380px; }
.mobile-nav .id { text-align: center; margin-bottom: 22px; }
.mobile-nav .id .avatar {
  width: 64px;
  height: 64px;
  max-width: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--green);
  display: block;
  margin: 0 auto 10px;
  cursor: pointer;
}
.mobile-nav .id .name { font-size: 18px; letter-spacing: 3px; color: var(--text); }
.mobile-nav .id .title { font-size: 12px; letter-spacing: 2px; color: var(--text-soft); margin-top: 4px; }
.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  margin-bottom: 10px;
  border: 1px solid rgba(43, 189, 121, .45);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 1px;
}
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  border-color: var(--green-bright);
  outline: none;
  box-shadow: 0 0 8px rgba(63, 227, 154, .35);
}
.mobile-nav a .arrow { color: var(--green-bright); }
.mobile-nav a.reserved {
  border-style: dashed;
  border-color: #2a2a2a;
  color: var(--text-mute);
  pointer-events: none;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  align-items: center;
  justify-content: center;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  border: 2px solid var(--green);
  object-fit: contain;
}
.lb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
.lb-close:hover { color: var(--green-bright); }

@media (max-width: 640px) {
  .board-wrap { display: none; }
  .mobile-nav { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
