* {
  -webkit-tap-highlight-color: transparent;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Light.woff2")
    format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-SemiBold.woff2")
    format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-sans/Geist-Bold.woff2")
    format("woff2");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Regular.woff2")
    format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("https://cdn.jsdelivr.net/npm/geist@1.3.1/dist/fonts/geist-mono/GeistMono-Medium.woff2")
    format("woff2");
  font-weight: 500;
  font-display: swap;
}
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --tt: background 0.3s, color 0.3s, border-color 0.3s;
}

/* ── TOOLTIP ── */
.tooltip {
  position: fixed;
  background: var(--bg2);
  border: 1px solid var(--border-pop);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
  color: var(--text);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  font-family: "Geist Mono", monospace;
}

/* ── THEMES ── */
[data-theme="dark"] {
  --bg: #13181f;
  --bg2: #181f2a;
  --card: #1c2433;
  --card2: #202c3f;
  --border: rgba(90, 120, 170, 0.13);
  --border-mid: rgba(90, 120, 170, 0.22);
  --border-pop: rgba(90, 120, 170, 0.4);
  --text: #e6ecf6;
  --sub: #8fa3be;
  --muted: #48596e;
  --faint: #1a2333;
  --blue: #4d8ef5;
  --blue-s: #93bbfd;
  --blue-g: rgba(77, 142, 245, 0.11);
  --blue-b: rgba(77, 142, 245, 0.3);
  --cyan: #36c2f0;
  --green: #34d399;
  --red: #ff7878;
  --green-s: #6ee7c0;
  --green-b: rgba(52, 211, 153, 0.28);
  --green-g: rgba(52, 211, 153, 0.09);
  --violet: #a78bfa;
  --violet-b: rgba(167, 139, 250, 0.28);
  --violet-g: rgba(167, 139, 250, 0.09);
  --amber: #fbbf24;
  --amber-b: rgba(251, 191, 36, 0.28);
  --amber-g: rgba(251, 191, 36, 0.08);
  --orange: #fb923c;
  --orange-b: rgba(251, 146, 60, 0.28);
  --orange-g: rgba(251, 146, 60, 0.08);

  --c0: #161e2b;
  --c1: rgba(77, 142, 245, 0.18);
  --c2: rgba(77, 142, 245, 0.38);
  --c3: rgba(77, 142, 245, 0.62);
  --c4: #4d8ef5;
  --nav-bg: rgba(19, 24, 31, 0.9);
  --ca0: #1a1a12;
  --ca1: rgba(251, 191, 36, 0.2);
  --ca2: rgba(251, 191, 36, 0.42);
  --ca3: rgba(251, 191, 36, 0.68);
  --ca4: #fbbf24;
  --profile-pic: url(profile-original.jpg) center/cover no-repeat;
}

[data-theme="light"] {
  --bg: #f0f3f8;
  --bg2: #e8ecf4;
  --card: #ffffff;
  --card2: #f7f9fd;
  --border: rgba(60, 90, 140, 0.1);
  --border-mid: rgba(60, 90, 140, 0.17);
  --border-pop: rgba(60, 90, 140, 0.3);
  --text: #0e1623;
  --sub: #445270;
  --muted: #8898b8;
  --faint: #e8edf7;
  --blue: #2563eb;
  --blue-s: #1e50c8;
  --blue-g: rgba(37, 99, 235, 0.07);
  --blue-b: rgba(37, 99, 235, 0.22);
  --cyan: #0891b2;
  --green: #059669;
  --red: #ff5353;
  --green-s: #047857;
  --green-b: rgba(5, 150, 105, 0.22);
  --green-g: rgba(5, 150, 105, 0.07);
  --violet: #7c3aed;
  --violet-b: rgba(124, 58, 237, 0.22);
  --violet-g: rgba(124, 58, 237, 0.07);
  --amber: #d97706;
  --amber-b: rgba(217, 119, 6, 0.22);
  --amber-g: rgba(217, 119, 6, 0.07);
  --orange: #f97316;
  --orange-b: rgba(249, 115, 22, 0.22);
  --orange-g: rgba(249, 115, 22, 0.07);

  --c0: #eaf0fb;
  --c1: rgba(37, 99, 235, 0.15);
  --c2: rgba(37, 99, 235, 0.32);
  --c3: rgba(37, 99, 235, 0.55);
  --c4: #2563eb;
  --ca0: #f5f0e8;
  --ca1: rgba(217, 119, 6, 0.18);
  --ca2: rgba(217, 119, 6, 0.38);
  --ca3: rgba(217, 119, 6, 0.65);
  --ca4: #d97706;
  --nav-bg: rgba(240, 243, 248, 0.92);
  --profile-pic: url(profile-light.jpg) center/cover no-repeat;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family:
    "Geist",
    -apple-system,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  transition: var(--tt);
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: var(--tt);
}
.nav-inner {
  max-width: 1020px;
  margin: 0 auto;
  padding: 0 24px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.nav-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.nav-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-slash {
  color: var(--muted);
  margin: 0 2px;
}
.nav-page {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--sub);
  letter-spacing: 0.04em;
  line-height: 1;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-btn {
  width: 32px;
  height: 32px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-mid);
  background: var(--card);
  color: var(--sub);
  cursor: pointer;
  border-radius: 6px;
  transition: var(--tt);
}
.theme-btn:hover {
  border-color: var(--border-pop);
  color: var(--text);
}
.theme-btn i {
  font-size: 13px;
}
[data-theme="dark"] .icon-sun {
  display: block;
}
[data-theme="dark"] .icon-moon {
  display: none;
}
[data-theme="light"] .icon-sun {
  display: none;
}
[data-theme="light"] .icon-moon {
  display: block;
}

/* ── LAYOUT ── */
.layout {
  max-width: 1020px;
  margin: 0 auto;
  padding: 78px 24px 64px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 70px;
}

.avatar-wrap {
  width: 100%;
  aspect-ratio: 1;
  max-width: 240px;
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    var(--blue) 0%,
    var(--cyan) 50%,
    var(--violet) 100%
  );
  padding: 3px;
  box-shadow: 0 0 32px var(--blue-g);
}
.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--profile-pic);
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* .avatar-inner-ea {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg2);
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
} */
.profile-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 2px;
}
.profile-handle {
  font-family: "Geist Mono", monospace;
  font-size: 14px;
  color: var(--sub);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.profile-bio {
  font-size: 13px;
  color: var(--sub);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: -0.003em;
}
.profile-bio strong {
  color: var(--text);
  font-weight: 500;
}
.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--sub);
}
.meta-row i {
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  width: 15px;
  text-align: center;
}
.meta-row a {
  color: var(--sub);
  text-decoration: none;
  transition: color 0.15s;
}
.meta-row a:hover {
  color: var(--blue-s);
}
.sidebar-divider {
  height: 1px;
  background: var(--border);
}

.lang-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lang-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.lang-left {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.lang-name {
  font-size: 12px;
  color: var(--sub);
}
.lang-pct {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── MAIN ── */
.main {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.sec-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.sec-link {
  font-size: 12px;
  color: var(--blue-s);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s;
}
.sec-link:hover {
  opacity: 0.75;
}

/* ── PINNED ── */
.pinned-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pin-card {
  border: 1px solid var(--border-mid);
  background: var(--card);
  border-radius: 8px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.pin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pin-accent, var(--blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px 8px 0 0;
}
.pin-card:hover {
  border-color: var(--border-pop);
  background: var(--card2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.pin-card:hover::before {
  transform: scaleX(1);
}
.pin-card.empty {
  border-style: dashed;
  background: transparent;
  cursor: default;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.pin-card.empty:hover {
  border-color: var(--border-mid);
  background: transparent;
  box-shadow: none;
}
.pin-card.empty::before {
  display: none;
}
.pin-empty-text {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.pin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.pin-icon-name {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pin-repo-icon {
  color: var(--muted);
}
.pin-repo-icon i {
  font-size: 13px;
}
.pin-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--blue-s);
  transition: color 0.15s;
}
.pin-card:hover .pin-name {
  color: var(--blue);
}

.pin-badge {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  flex-shrink: 0;
}
.b-live {
  border: 1px solid var(--green-b);
  background: var(--green-g);
  color: var(--green-s);
}
.b-wip {
  border: 1px solid var(--amber-b);
  background: var(--amber-g);
  color: var(--amber);
}

.pin-desc {
  font-size: 12px;
  color: var(--sub);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.003em;
  flex: 1;
}
.pin-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}
.pin-lang {
  display: flex;
  align-items: baseline;
  gap: 5px;
  font-size: 11px;
  color: var(--sub);
}
.pin-lang-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.pin-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.ptag {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  padding: 2px 7px;
  border: 1px solid var(--border-mid);
  color: var(--muted);
  border-radius: 3px;
  background: transparent;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.pin-card:hover .ptag {
  border-color: var(--border-pop);
  color: var(--sub);
}

/* ── CONTRIBUTION GRAPH ── */
.contrib-wrap {
  border: 1px solid var(--border-mid);
  background: var(--card);
  border-radius: 8px;
  padding: 20px;
  overflow: hidden;
}
.contrib-label {
  font-size: 13px;
  color: var(--sub);
  font-weight: 300;
}
.contrib-label strong {
  color: var(--text);
  font-weight: 600;
}

/* FIX: grid columns are set dynamically in JS to match week count */
.contrib-grid {
  display: grid;
  gap: 3px;
}
.contrib-months {
  display: grid;
  gap: 3px;
  margin-bottom: 4px;
}

.contrib-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--c0);
  cursor: pointer;
  position: relative;
  transition:
    transform 0.1s,
    box-shadow 0.1s,
    background 0.15s;
}
.contrib-cell:hover {
  filter: brightness(1.3);
  transform: scale(1.5);
  z-index: 10;
}

.month-label {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
  grid-column: var(--col);
}

/* ── ACTIVITY ── */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 6px;
  transition:
    border-color 0.18s,
    background 0.18s;
}
.activity-item:hover {
  border-color: var(--border-mid);
  background: var(--card2);
}
.activity-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--faint);
  border-radius: 6px;
  flex-shrink: 0;
  color: var(--sub);
}
.activity-icon i {
  font-size: 13px;
}
.activity-text {
  flex: 1;
  min-width: 0;
}
.activity-main {
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.activity-main .repo {
  color: var(--blue-s);
  font-weight: 500;
}
.activity-sub {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

/* ── CONTACT ── */
.contact-wrap {
  border: 1px solid var(--border-mid);
  background: var(--card);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-intro {
  font-size: 13px;
  color: var(--sub);
  font-weight: 300;
  line-height: 1.7;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-mid);
  border-radius: 8px;
  background: var(--card2);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.18s,
    background 0.18s,
    box-shadow 0.18s;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.2s;
  background: linear-gradient(135deg, var(--blue-g), transparent);
}
.contact-card:hover {
  border-color: var(--border-pop);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.contact-card:hover::before {
  opacity: 1;
}
.contact-card:active {
  border-color: var(--border-pop);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.contact-card:active::before {
  opacity: 1;
}

.contact-card--hint {
  cursor: default;
}
.contact-card--hint:hover::before {
  opacity: 0;
}
.contact-card--hint:hover {
  border-color: var(--border-mid);
  box-shadow: none;
}
.contact-card--hint {
  cursor: default;
}
.contact-card--hint:active::before {
  opacity: 0;
}
.contact-card--hint:active {
  border-color: var(--border-mid);
  box-shadow: none;
}
/* tap-to-unlock on mobile */
.contact-card--hint {
  cursor: pointer;
  user-select: none;
}

.contact-card--pigeon {
  cursor: pointer;
  user-select: none;
}
.contact-card--pigeon:hover {
  border-color: var(--border-pop);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

@keyframes pigeonfly {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(3px) rotate(-8deg);
  }
  50% {
    transform: translateX(0) rotate(0deg);
  }
  75% {
    transform: translateX(3px) rotate(8deg);
  }
  100% {
    transform: translateX(0) rotate(0deg);
  }
}
.pigeon-fly {
  animation: pigeonfly 0.6s ease-in-out infinite;
}

.contact-card-icon {
  font-size: 18px;
  color: var(--blue-s);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.contact-card-label {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card-val {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-arrow {
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  transition:
    color 0.15s,
    transform 0.15s;
}
.contact-card:hover .contact-arrow {
  color: var(--sub);
  transform: translate(2px, -2px);
}

.contact-availability {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.avail-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  position: relative;
}
.avail-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.25;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.7);
    opacity: 0;
  }
}
.avail-text {
  font-size: 12px;
  color: var(--sub);
  font-weight: 300;
}

/* ── KONAMI OVERLAY ── */
.konami-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.konami-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.konami-box {
  background: var(--card);
  border: 1px solid var(--border-pop);
  border-radius: 12px;
  padding: 40px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 440px;
  width: 90%;
  box-shadow: 0 0 60px rgba(77, 142, 245, 0.2);
}

.konami-glitch {
  font-family: "Geist Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--blue-s);
  text-shadow:
    2px 0 var(--violet),
    -2px 0 var(--cyan);
  animation: glitch-shift 3s infinite;
}
@keyframes glitch-shift {
  0%,
  90%,
  100% {
    text-shadow:
      2px 0 var(--violet),
      -2px 0 var(--cyan);
  }
  92% {
    text-shadow:
      -3px 0 var(--cyan),
      3px 0 var(--violet);
    clip-path: inset(20% 0 60% 0);
  }
  94% {
    text-shadow:
      3px 0 var(--violet),
      -3px 0 var(--cyan);
    clip-path: inset(60% 0 10% 0);
  }
  96% {
    text-shadow:
      2px 0 var(--violet),
      -2px 0 var(--cyan);
    clip-path: none;
  }
}

.konami-sub {
  font-size: 13px;
  color: var(--sub);
  font-weight: 300;
}

.konami-icons {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.konami-icons span {
  font-family: "Geist Mono", monospace;
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--border-pop);
  border-radius: 4px;
  color: var(--muted);
  background: var(--faint);
}

.konami-close {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border-mid);
  border-radius: 4px;
  padding: 6px 14px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    color 0.15s;
}
.konami-close:hover {
  border-color: var(--border-pop);
  color: var(--sub);
}

/* ── FOOTER ── */
footer {
  max-width: 1020px;
  margin: 0 auto;
  padding: 16px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--border);
}
.foot-left {
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.foot-links {
  display: flex;
  gap: 16px;
  list-style: none;
}
.foot-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.15s;
}
.foot-links a:hover {
  color: var(--text);
}
.foot-links i {
  font-size: 13px;
}

/* ── MOBILE ── */
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
    padding-top: 66px;
  }
  .sidebar {
    position: static;
  }
  .avatar-wrap {
    max-width: 100px;
  }
  .pinned-grid {
    grid-template-columns: 1fr;
  }

  /* FIX: grid columns are driven by JS, these just remove the old hardcoded overrides */
  .contrib-grid,
  .contrib-months {
    /* intentionally left empty — JS sets grid-template-columns dynamically */
  }

  /* contact grid stacks on mobile */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ── GLITCH (legacy) ── */
.glitch {
  font-weight: bold;
  color: #ff00ea;
  text-shadow: 2px 2px #00ffff;
  animation: shake 0.5s infinite;
}
@keyframes shake {
  0% {
    transform: translate(1px, 1px) rotate(0deg);
  }
  20% {
    transform: translate(-1px, -2px) rotate(-1deg);
  }
  100% {
    transform: translate(1px, 1px) rotate(0deg);
  }
}

/* contrib footer rows (fun/serious swappable blocks) */
.contrib-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}
.contrib-footer-note {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
}
.contrib-legend {
  display: flex;
  align-items: center;
  gap: 6px;
}
.contrib-legend-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  color: var(--muted);
}
.contrib-legend-cells {
  display: flex;
  gap: 3px;
}

/* ── STAT GRID ── */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat-cell {
  background: var(--card2);
  border: 1px solid var(--border-mid);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: border-color 0.15s;
}
.stat-cell:hover {
  border-color: var(--border-pop);
}
.stat-value {
  font-family: "Geist Mono", monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--blue-s);
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.3;
}

/* ── EXPERIENCE TIMELINE ── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 18px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border-mid);
}
.tl-item {
  position: relative;
  padding-bottom: 18px;
  display: flex;
  gap: 12px;
}
.tl-item:last-child {
  padding-bottom: 0;
}
.tl-dot {
  position: absolute;
  left: -18px;
  top: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--bg);
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--blue);
}
.tl-dot--muted {
  background: var(--border-pop);
  box-shadow: 0 0 0 1px var(--border-pop);
}
.tl-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.tl-role {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tl-company {
  font-size: 11px;
  color: var(--sub);
  font-weight: 300;
}
.tl-period {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}
.tl-tag {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  padding: 1px 6px;
  border: 1px solid var(--border-mid);
  border-radius: 3px;
  color: var(--muted);
  background: var(--faint);
}

/* ── MODE TRANSITION FLASH ── */
.mode-flash {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.mode-flash.flash-in {
  opacity: 1;
  pointer-events: all;
}
.mode-flash-inner {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: "Geist Mono", monospace;
  font-size: 13px;
  color: var(--sub);
  letter-spacing: 0.04em;
}
.mode-flash-inner::before {
  content: "$ ";
  color: var(--muted);
  margin-right: 6px;
}
.mode-flash-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--blue);
  margin-left: 3px;
  animation: blink 0.7s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ── MODE BUTTON ── */
.mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  height: 32px;
  border: 1px solid var(--border-mid);
  background: var(--card);
  color: var(--sub);
  cursor: pointer;
  border-radius: 6px;
  font-family: "Geist", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition:
    background 0.25s,
    border-color 0.18s,
    color 0.18s;
  white-space: nowrap;
}
.mode-btn:hover {
  border-color: var(--border-pop);
  color: var(--text);
}
.mode-btn i {
  font-size: 11px;
}

/* icon swap */
[data-mode="fun"] .mode-icon-serious {
  display: inline-block;
  color: var(--amber);
}
[data-mode="fun"] .mode-icon-fun {
  display: none;
}
[data-mode="serious"] .mode-icon-serious {
  display: none;
}
[data-mode="serious"] .mode-icon-fun {
  display: inline-block;
  color: var(--amber);
}

/* button tint in serious mode */
[data-mode="serious"] .mode-btn {
  border-color: var(--blue-b);
  color: var(--blue-s);
  background: var(--blue-g);
}
[data-mode="fun"] .mode-btn {
  border-color: var(--blue-b);
  color: var(--blue-s);
  background: var(--blue-g);
}
/* ── FUN / SERIOUS VISIBILITY ──
   Elements start display:none (no phantom space).
   JS adds .mode-entering to trigger the fade-in on next frame,
   and removes it + sets display:none again on transitionend for hide.
*/
.fun-only,
.serious-only {
  display: none;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.fun-only.mode-visible,
.serious-only.mode-visible {
  display: flex; /* lang-section and activity-list are flex cols */
}

/* block-level overrides (dividers, contrib-footer, etc.) */
.sidebar-divider.fun-only.mode-visible,
.sidebar-divider.serious-only.mode-visible,
.contrib-footer.fun-only.mode-visible,
.contrib-footer.serious-only.mode-visible {
  display: flex;
}

.fun-only.mode-animate,
.serious-only.mode-animate {
  opacity: 1;
  transform: translateY(0);
}

/* inline spans (heatmap labels) — different treatment, no layout impact */
span.fun-only,
span.serious-only {
  display: inline !important;
  transform: none;
  transition: opacity 0.25s ease;
}
span.fun-only {
  opacity: 1;
}
span.serious-only {
  opacity: 0;
}
[data-mode="serious"] span.fun-only {
  opacity: 0;
}
[data-mode="serious"] span.serious-only {
  opacity: 1;
}

.mode-btn {
  position: relative;
}

.mode-btn::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 8px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    var(--amber) 40deg,
    transparent 80deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  opacity: 0;
  pointer-events: none;
}

.mode-btn.attention::after {
  opacity: 1;
  animation: trail-spin 1.5s ease-out 2 forwards;
}

@keyframes trail-spin {
  from {
    --angle: 0deg;
    opacity: 1;
  }
  100% {
    --angle: 360deg;
    opacity: 1;
  }
  to {
    --angle: 360deg;
    opacity: 0;
  }
}

@property --angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

/* #eye-svg {
  width: 260px;
  height: 260px;
}

.eye-outline {
  fill: var(--text);
  stroke: var(--text);
  stroke-width: 21px;
  paint-order: stroke;
}

.eye-pupil {
  fill: var(--text);
} */


.context {
    display: none !important;
    visibility: hidden;
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    pointer-events: none;
  }