@font-face {
  font-family: "PixelFallback";
  src: local("Unifont"), local("WenQuanYi Bitmap Song"), local("Courier New");
  font-display: swap;
}

:root {
  --bg: #090a0f;
  --bg-soft: #11121a;
  --panel: #151621;
  --panel-light: #1c1d29;
  --ink: #f5f3fa;
  --muted: #9a98aa;
  --dim: #5f5c6e;
  --line: #34313f;
  --purple: #7955c7;
  --purple-bright: #a988f0;
  --lavender: #c6b9e4;
  --cyan: #72d9d0;
  --green: #94c973;
  --red: #d86d78;
  --yellow: #dec27c;
  --white: #f5f3fa;
  --page: min(1180px, calc(100% - 48px));
  --pixel-border: 3px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: PixelFallback, "Microsoft YaHei", monospace;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0, rgba(255,255,255,.018) 1px, transparent 1px, transparent 4px);
  opacity: .35;
}

::selection { background: var(--purple-bright); color: var(--bg); }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  background: var(--white);
  color: var(--bg);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.boot-screen {
  position: fixed;
  z-index: 500;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  background: var(--bg);
  transition: opacity .3s steps(4), visibility .3s;
}
.boot-screen.is-hidden { opacity: 0; visibility: hidden; }
.boot-screen__mark {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 4px solid var(--purple-bright);
  box-shadow: 8px 8px 0 #281b43;
  color: var(--purple-bright);
  font-weight: 900;
  font-size: 24px;
}
.boot-screen__logo { width: 100%; height: 100%; image-rendering: pixelated; }
.boot-screen__fallback { display: none; place-items: center; }
.boot-screen__mark.is-failed .boot-screen__logo { display: none; }
.boot-screen__mark.is-failed .boot-screen__fallback { display: grid; }
.boot-screen__bar { width: 220px; height: 10px; border: 2px solid var(--line); padding: 2px; }
.boot-screen__bar span { display: block; height: 100%; background: var(--purple-bright); animation: boot 1s steps(8) forwards; }
.boot-screen p { margin: 0; color: var(--muted); font-size: 12px; }
@keyframes boot { from { transform: scaleX(0); transform-origin: left; } to { transform: scaleX(1); transform-origin: left; } }

.site-header {
  position: fixed;
  z-index: 80;
  top: 0;
  left: 0;
  display: grid;
  width: 100%;
  height: 72px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(9,10,15,.9);
  backdrop-filter: blur(10px);
}

.brand, .footer-brand { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 800; }
.brand__mark { position: relative; display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; }
.brand__logo { width: 30px; height: 30px; image-rendering: pixelated; }
.brand__pixel { display: none; width: 14px; height: 14px; background: var(--purple-bright); box-shadow: 5px 5px 0 #4c3183; clip-path: polygon(0 0,75% 0,75% 25%,100% 25%,100% 100%,25% 100%,25% 75%,0 75%); }
.brand__mark.is-failed .brand__logo { display: none; }
.brand__mark.is-failed .brand__pixel { display: block; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { position: relative; color: var(--muted); font-size: 12px; transition: color .15s steps(2); }
.site-nav a::after { position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; content: ""; background: var(--purple-bright); transition: right .2s steps(4); }
.site-nav a:hover, .site-nav a.is-active { color: var(--white); }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.header-status { justify-self: end; display: flex; align-items: center; gap: 8px; color: var(--green); font-size: 11px; }
.status-dot { width: 7px; height: 7px; background: var(--green); box-shadow: 0 0 0 3px rgba(148,201,115,.13); animation: status-pulse 2.2s steps(2) infinite; }
@keyframes status-pulse { 50% { opacity: .35; } }

.menu-button { display: none; }
.pixel-button {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--panel);
  box-shadow: 4px 4px 0 #000;
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform .1s steps(1), background .15s steps(2), border-color .15s steps(2);
}
.pixel-button:hover { border-color: var(--purple-bright); background: #201a2d; }
.pixel-button:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.pixel-button--primary { border-color: var(--purple-bright); background: var(--purple); color: #fff; }
.pixel-button--primary:hover { background: #6846b4; }
.menu-button.pixel-button { display: none; }

.hero {
  position: relative;
  display: grid;
  width: var(--page);
  min-height: min(850px, 92dvh);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  gap: 24px;
  padding: 118px 0 70px;
}
.hero::before {
  display: none;
}
.hero__grid {
  position: absolute;
  z-index: -3;
  inset: 72px -12vw 0;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, #000 24%, #000 72%, transparent);
}
.eyebrow, .section-index, .data-label { color: var(--purple-bright); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; }
.eyebrow span { padding: 4px 7px; background: var(--purple); color: #fff; }
.hero h1 { margin: 0; line-height: .96; }
.hero__prompt { display: block; margin-bottom: 12px; color: var(--muted); font-size: clamp(17px, 2.2vw, 25px); font-weight: 500; }
.hero__name { display: block; max-width: 9ch; overflow-wrap: anywhere; color: var(--white); font-family: Impact, PixelFallback, sans-serif; font-size: clamp(58px, 8.2vw, 112px); font-weight: 900; line-height: .9; text-transform: uppercase; }
.hero__name::after { display: inline-block; width: .11em; height: .74em; margin-left: .12em; background: var(--purple-bright); content: ""; animation: cursor-blink 1s steps(1) infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.hero__intro { max-width: 560px; margin: 28px 0; color: var(--muted); font-size: 15px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.quick-stats { display: grid; max-width: 540px; margin: 48px 0 0; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.quick-stats div { padding: 17px 18px 0 0; }
.quick-stats dt { color: var(--dim); font-size: 10px; }
.quick-stats dd { margin: 3px 0 0; color: var(--cyan); font-size: 13px; font-weight: 700; }

.hero__visual { position: relative; isolation: isolate; align-self: end; height: min(730px, calc(92dvh - 115px)); min-height: 520px; }
.hero__visual::before { position: absolute; z-index: 0; top: 50%; left: 50%; width: min(620px, 96%); aspect-ratio: 1; border: 1px solid rgba(169,136,240,.2); content: ""; transform: translate(-50%, -50%) rotate(45deg); }
.hero__visual::after { position: absolute; z-index: 0; top: 50%; left: 50%; width: min(470px, 74%); aspect-ratio: 1; border: 1px solid rgba(114,217,208,.07); content: ""; transform: translate(-50%, -50%) rotate(45deg); }
.character-art { position: absolute; z-index: 2; right: auto; bottom: -2px; left: 50%; width: min(660px, 100%); height: 100%; object-fit: contain; object-position: bottom center; image-rendering: pixelated; filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); transform: translateX(-50%); }
.character-shadow { position: absolute; z-index: 1; right: auto; bottom: 1.5%; left: 50%; width: 78%; height: 8%; background: rgba(0,0,0,.65); filter: blur(12px); transform: translateX(-50%) skewX(-18deg); }
.character-label { position: absolute; z-index: 3; right: 0; bottom: 8px; display: flex; flex-direction: column; align-items: flex-end; color: var(--dim); font-size: 9px; }
.pixel-star { position: absolute; z-index: 1; width: 22px; height: 22px; background: var(--purple-bright); clip-path: polygon(40% 0,60% 0,60% 40%,100% 40%,100% 60%,60% 60%,60% 100%,40% 100%,40% 60%,0 60%,0 40%,40% 40%); }
.pixel-star--one { top: 21%; right: 8%; animation: float-pixel 3s steps(3) infinite; }
.pixel-star--two { top: 42%; left: 5%; width: 12px; height: 12px; background: var(--cyan); animation: float-pixel 4s steps(4) infinite reverse; }
@keyframes float-pixel { 50% { transform: translateY(-12px); } }
.scroll-cue { position: absolute; bottom: 25px; left: 0; display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 10px; writing-mode: vertical-rl; }
.scroll-cue i { display: block; width: 2px; height: 36px; background: var(--purple-bright); transform-origin: top; animation: scroll-line 1.5s steps(5) infinite; }
@keyframes scroll-line { 0% { transform: scaleY(.1); } 50%,100% { transform: scaleY(1); } }

.system-strip { overflow: hidden; border-block: 2px solid var(--purple); background: #171121; transform: rotate(-1deg) scale(1.02); }
.system-strip__track { display: flex; width: max-content; align-items: center; gap: 24px; padding: 10px 0; color: var(--lavender); font-size: 11px; font-weight: 800; animation: marquee 24s linear infinite; }
.system-strip i { width: 7px; height: 7px; background: var(--cyan); }
@keyframes marquee { to { transform: translateX(-50%); } }

.section { width: var(--page); margin: 0 auto; padding: 120px 0; scroll-margin-top: 70px; }
.section-heading { position: relative; display: grid; margin-bottom: 54px; grid-template-columns: 1fr auto; align-items: end; border-bottom: 1px solid var(--line); }
.section-heading .section-index { grid-column: 1 / -1; margin: 0 0 10px; }
.section-heading h2 { margin: 0 0 22px; font-family: Impact, PixelFallback, sans-serif; font-size: clamp(36px, 6vw, 70px); line-height: 1; text-transform: uppercase; }
.section-heading > p:last-child { margin: 0 0 18px; color: rgba(255,255,255,.06); font-size: clamp(38px, 8vw, 92px); font-weight: 900; line-height: .7; }

.pixel-panel { border: var(--pixel-border) solid var(--line); background: var(--panel); box-shadow: 8px 8px 0 #050506; }
.profile-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 36px; }
.profile-card { display: grid; grid-template-columns: 150px 1fr; gap: 25px; padding: 28px; }
.avatar-frame { position: relative; overflow: hidden; width: 150px; aspect-ratio: 1; border: 3px solid var(--purple); background: #0e0d15; }
.avatar-frame::after { position: absolute; inset: 0; border: 6px solid rgba(255,255,255,.035); content: ""; pointer-events: none; }
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; image-rendering: pixelated; transform: scale(1.35); }
.avatar-frame__status { position: absolute; right: 0; bottom: 0; padding: 3px 7px; background: var(--purple); font-size: 10px; }
.profile-card__identity { align-self: center; min-width: 0; }
.profile-card__identity h3 { margin: 4px 0; overflow-wrap: anywhere; font-size: clamp(21px, 3vw, 32px); line-height: 1.2; }
.profile-card__identity p { margin: 0; color: var(--muted); font-size: 14px; }
.profile-email { display: inline-block; max-width: 100%; margin-top: 8px; overflow-wrap: anywhere; color: var(--cyan); font-size: 12px; line-height: 1.45; }
.profile-email:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.profile-data { grid-column: 1 / -1; display: grid; margin: 12px 0 0; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.profile-data div { min-width: 0; padding: 14px; border-bottom: 1px solid var(--line); }
.profile-data div:nth-child(odd) { border-right: 1px solid var(--line); }
.profile-data div:nth-last-child(-n+2) { border-bottom: 0; }
.profile-data dt { color: var(--dim); font-size: 11px; }
.profile-data dd { margin: 2px 0 0; overflow-wrap: anywhere; color: var(--lavender); font-size: 14px; font-weight: 700; }

.social-directory { border-top: 3px solid var(--line); }
.directory-head, .panel-title { display: flex; justify-content: space-between; padding: 11px 0; color: var(--dim); font-size: 10px; }
.social-row { display: grid; min-height: 70px; grid-template-columns: 32px 42px minmax(0, 1fr) auto 20px; align-items: center; gap: 12px; border-top: 1px solid var(--line); transition: background .14s steps(2), padding .14s steps(2); }
.social-row:last-child { border-bottom: 1px solid var(--line); }
.social-row:hover { padding-inline: 10px; background: var(--panel); }
.social-row__id { color: var(--dim); font-size: 10px; }
.social-row__icon { display: grid; width: 34px; height: 34px; place-items: center; border: 2px solid var(--line); background: #0c0d12; color: var(--purple-bright); font-size: 11px; font-weight: 900; }
.social-row strong, .social-row small { display: block; }
.social-row strong { font-size: 15px; }
.social-row small { color: var(--dim); font-size: 10px; }
.social-row__handle { color: var(--muted); font-size: 12px; }
.social-row__arrow { color: var(--purple-bright); }
.social-row.is-disabled { cursor: default; }

.gear-section { padding-bottom: 150px; }
.gear-list { border-top: 2px solid var(--line); }
.gear-item { display: grid; min-height: 118px; grid-template-columns: 48px 100px 100px minmax(0, 1fr) 140px; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); transition: background .16s steps(2), transform .16s steps(2); }
.gear-item:hover { background: var(--panel); transform: translateX(6px); }
.gear-item__number { color: var(--dim); font-size: 11px; }
.gear-item__type { color: var(--purple-bright); font-size: 11px; }
.gear-item h3 { margin: 0 0 4px; color: var(--white); font-size: 22px; }
.gear-item p { margin: 0; color: var(--lavender); font-size: 15px; }
.gear-item__meta { justify-self: end; display: flex; width: 142px; justify-content: space-between; border-bottom: 2px solid var(--line); color: var(--muted); font-size: 12px; }
.gear-item__meta strong { color: var(--cyan); font-size: 14px; }
.pixel-device { position: relative; width: 70px; height: 54px; color: var(--purple-bright); }
.pixel-device--mouse::before { position: absolute; top: 4px; left: 23px; width: 28px; height: 43px; border: 4px solid currentColor; content: ""; clip-path: polygon(25% 0,75% 0,100% 25%,100% 85%,85% 100%,15% 100%,0 85%,0 25%); }
.pixel-device--mouse i { position: absolute; z-index: 1; top: 7px; left: 36px; width: 4px; height: 12px; background: currentColor; }
.pixel-device--keyboard::before { position: absolute; top: 12px; left: 4px; width: 65px; height: 34px; border: 4px solid currentColor; content: ""; }
.pixel-device--keyboard i { position: absolute; top: 20px; left: 13px; width: 5px; height: 5px; background: currentColor; box-shadow: 10px 0 currentColor,20px 0 currentColor,30px 0 currentColor,40px 0 currentColor, 0 10px currentColor,10px 10px currentColor,20px 10px currentColor,30px 10px currentColor,40px 10px currentColor; }
.pixel-device--headset::before { position: absolute; top: 3px; left: 10px; width: 52px; height: 43px; border: 5px solid currentColor; border-bottom: 0; content: ""; clip-path: polygon(15% 0,85% 0,100% 24%,100% 100%,80% 100%,80% 28%,20% 28%,20% 100%,0 100%,0 24%); }
.pixel-device--headset i { position: absolute; top: 33px; left: 5px; width: 14px; height: 18px; border: 3px solid currentColor; box-shadow: 46px 0 0 -3px var(--bg),46px 0 0 0 currentColor; }
.pixel-device--pad::before { position: absolute; top: 9px; left: 3px; width: 65px; height: 40px; border: 4px solid currentColor; content: ""; transform: skewX(-8deg); }
.pixel-device--pad i { position: absolute; z-index: 1; right: 7px; bottom: 7px; width: 8px; height: 8px; background: var(--cyan); }

.crosshair-section { position: relative; width: 100%; max-width: none; padding-inline: max(24px, calc((100% - 1180px)/2)); background: #d7d2e0; color: #17131e; }
.crosshair-section::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(20,15,29,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(20,15,29,.05) 1px, transparent 1px); background-size: 24px 24px; content: ""; pointer-events: none; }
.section-heading--light { border-color: rgba(20,15,29,.22); }
.section-heading--light > p:last-child { color: rgba(20,15,29,.06); }
.crosshair-console { position: relative; display: grid; max-width: 1180px; margin: 0 auto; grid-template-columns: 1.2fr .8fr; border: 4px solid #17131e; background: var(--bg); box-shadow: 12px 12px 0 rgba(50,39,66,.25); color: var(--ink); }
.crosshair-preview { position: relative; min-height: 520px; border-right: 2px solid var(--line); background: #2d3440; }
.preview-hud, .preview-footer { position: absolute; z-index: 2; left: 18px; right: 18px; display: flex; justify-content: space-between; color: rgba(255,255,255,.55); font-size: 9px; }
.preview-hud { top: 16px; }
.preview-footer { bottom: 16px; }
.target-grid { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(135deg, #38424b 0 48%, #293038 48% 52%, #343b43 52%); }
.target-grid::before { position: absolute; left: 15%; right: 15%; bottom: -15%; height: 54%; border: 3px solid rgba(255,255,255,.12); content: ""; transform: perspective(400px) rotateX(58deg); background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 32px 32px; }
.target-grid__v, .target-grid__h { position: absolute; z-index: 1; top: 50%; left: 50%; background: rgba(255,255,255,.08); }
.target-grid__v { width: 1px; height: 70%; transform: translate(-50%,-50%); }
.target-grid__h { width: 70%; height: 1px; transform: translate(-50%,-50%); }
.crosshair-shape { position: absolute; z-index: 3; top: 50%; left: 50%; width: 10px; height: 10px; transform: translate(-50%,-50%); color: #f5f3fa; }
.crosshair-dot { position: absolute; inset: 0; display: none; border: 2px solid #111; border-radius: 50%; background: currentColor; }
.crosshair-line { position: absolute; display: none; background: currentColor; }
/* Match the supplied in-game references at their native pixel size. */
.crosshair-line--top,.crosshair-line--bottom { left: 4px; width: 2px; height: 3px; }
.crosshair-line--left,.crosshair-line--right { top: 4px; width: 3px; height: 2px; }
.crosshair-line--top { top: 0; }.crosshair-line--bottom { bottom: 0; }.crosshair-line--left { left: 0; }.crosshair-line--right { right: 0; }
.crosshair-shape[data-crosshair-shape="1322"] .crosshair-line { display: block; }
.crosshair-shape[data-crosshair-shape="solid"] { width: 8px; height: 8px; }
.crosshair-shape[data-crosshair-shape="solid"] .crosshair-line { display: block; }
.crosshair-shape[data-crosshair-shape="solid"] .crosshair-line--top,
.crosshair-shape[data-crosshair-shape="solid"] .crosshair-line--bottom { left: 3px; width: 2px; height: 4px; }
.crosshair-shape[data-crosshair-shape="solid"] .crosshair-line--left,
.crosshair-shape[data-crosshair-shape="solid"] .crosshair-line--right { top: 3px; width: 4px; height: 2px; }
.crosshair-shape[data-crosshair-shape="dot"] { width: 6px; height: 6px; }
.crosshair-shape[data-crosshair-shape="dot"] .crosshair-dot { display: block; }
.crosshair-controls { display: flex; min-width: 0; flex-direction: column; padding: 24px; }
.crosshair-tabs { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); }
.crosshair-tab { min-height: 44px; padding: 8px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; }
.crosshair-tab:last-child { border: 0; }
.crosshair-tab:hover, .crosshair-tab.is-active { background: var(--purple); color: #fff; }
.crosshair-info { padding: 40px 0 20px; }
.crosshair-info h3 { margin: 7px 0 25px; font-size: 24px; }
.crosshair-info dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; }
.crosshair-info dl div { padding: 11px; border-left: 2px solid var(--line); }
.crosshair-info dt { color: var(--dim); font-size: 10px; }
.crosshair-info dd { margin: 3px 0 0; color: var(--cyan); font-size: 12px; }
.code-box { margin-top: auto; min-width: 0; padding: 18px; border: 2px solid var(--line); background: #0b0c11; }
.code-box code { display: block; min-height: 64px; margin: 8px 0 18px; overflow-wrap: anywhere; color: var(--lavender); font-size: 13px; }
.pixel-button--copy { width: 100%; }
.copy-status { display: block; min-height: 18px; margin-top: 8px; color: var(--green); font-size: 10px; text-align: center; }

.github-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: 28px; }
.github-summary { grid-row: span 2; padding-right: 28px; border-right: 1px solid var(--line); }
.github-user { display: flex; align-items: center; gap: 18px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.github-mark { display: grid; width: 58px; height: 58px; flex: 0 0 auto; place-items: center; border: 3px solid var(--white); font-size: 15px; font-weight: 900; }
.github-user h3 { margin: 3px 0 0; overflow-wrap: anywhere; font-size: 20px; }
.github-metrics { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 32px; }
.github-metrics div { border-right: 1px solid var(--line); }
.github-metrics div:last-child { border: 0; padding-left: 13px; }
.github-metrics strong, .github-metrics span { display: block; }
.github-metrics strong { color: var(--purple-bright); font-size: 30px; }
.github-metrics span { color: var(--muted); font-size: 11px; }
.integration-note { display: flex; align-items: center; gap: 10px; margin-top: 45px; color: var(--yellow); font-size: 10px; }
.integration-note > span:first-child { width: 8px; height: 8px; flex: 0 0 auto; background: var(--yellow); }
.contribution-panel, .commit-panel { min-width: 0; padding: 20px; }
.contribution-panel .panel-title, .commit-panel .panel-title { padding-top: 0; border-bottom: 1px solid var(--line); }
.contribution-wrap { --contribution-width: 673px; overflow-x: auto; padding: 19px 0 10px; scrollbar-width: thin; }
.contribution-months { display: grid; width: var(--contribution-width); margin: 0 0 7px; grid-template-columns: repeat(12,1fr); color: var(--dim); font-size: 9px; }
.contribution-grid { display: grid; width: var(--contribution-width); grid-auto-flow: column; grid-template-rows: repeat(7, 10px); grid-auto-columns: 10px; gap: 3px; }
.contribution-grid i, .contribution-legend i { display: block; background: #262733; }
.contribution-grid i[data-level="1"],.contribution-legend i[data-level="1"] { background: #352758; }
.contribution-grid i[data-level="2"],.contribution-legend i[data-level="2"] { background: #543b86; }
.contribution-grid i[data-level="3"],.contribution-legend i[data-level="3"] { background: #7955c7; }
.contribution-grid i[data-level="4"],.contribution-legend i[data-level="4"] { background: #a988f0; }
.contribution-legend { display: flex; justify-content: flex-end; align-items: center; gap: 4px; color: var(--dim); font-size: 9px; }
.contribution-legend i { width: 10px; height: 10px; }
.commit-list { margin: 6px 0 0; padding: 0; list-style: none; }
.commit-list li { display: grid; grid-template-columns: 15px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.commit-list li:last-child { border: 0; }
.commit-node { width: 7px; height: 7px; background: var(--purple-bright); }
.commit-list strong, .commit-list small { display: block; }
.commit-list strong { font-size: 13px; }
.commit-list small, .commit-list time { color: var(--dim); font-size: 10px; }

.projects-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.projects-intro p { max-width: 65ch; margin: 0; color: var(--muted); font-size: 14px; }
.projects-directory { flex: 0 0 auto; padding: 10px 0; color: var(--lavender); font-size: 12px; }
.projects-directory:hover { color: var(--cyan); }
.projects-toolbar { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 2px solid var(--purple-bright); color: var(--muted); font-size: 10px; }
.projects-toolbar > span:last-child { color: var(--purple-bright); }
.project-list { display: grid; }
.project-card { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; align-items: start; gap: 32px; padding: 34px 20px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.project-card:nth-child(even) { background: var(--bg); }
.project-card__identity, .project-card__body { min-width: 0; }
.project-card__number { display: block; margin-bottom: 14px; color: var(--dim); font-size: 12px; }
.project-card h3 { margin: 8px 0 6px; overflow-wrap: anywhere; font-size: 21px; line-height: 1.4; }
.project-card h3 a:hover { color: var(--cyan); }
.project-card__repo { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.project-card__description { max-width: 65ch; margin: 0; color: var(--ink); font-size: 14px; line-height: 1.85; }
.project-card__highlights { display: grid; gap: 6px; margin: 16px 0 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.8; list-style-type: square; }
.project-card__highlights li::marker { color: var(--purple-bright); }
.project-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.project-card__tags li { padding: 3px 8px; border: 1px solid var(--line); color: var(--lavender); font-size: 10px; }
.project-card__link { margin-top: 28px; white-space: nowrap; font-size: 11px; }
.projects-empty { margin-top: 20px; padding: 28px; color: var(--muted); font-size: 14px; }
.projects-empty[hidden] { display: none; }

.activity-section { padding-top: 100px; }
.activity-feed { display: grid; min-height: 320px; gap: 14px; }
.feed-item { display: grid; min-height: 148px; grid-template-columns: 124px minmax(0,1fr) 94px; align-items: start; gap: 24px; padding: 22px 20px; border: 1px solid var(--line); background: rgba(21,22,33,.58); transition: transform .16s steps(2), background .16s steps(2), border-color .16s steps(2), opacity .18s; }
.feed-item:hover { border-color: #514967; background: var(--panel); transform: translateY(-2px); }
.feed-item__platform { display: grid; width: 48px; height: 48px; place-items: center; border: 2px solid currentColor; font-size: 13px; font-weight: 900; }
.feed-item__media { position: relative; display: grid; width: 124px; height: 78px; margin-top: 3px; place-items: center; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #111219; }
.feed-item__media img { width: 100%; height: 100%; object-fit: cover; }
.feed-item__media img[hidden] { display: none; }
.feed-item__media img:not([hidden]) + .feed-item__platform { position: absolute; right: 5px; bottom: 5px; width: 29px; height: 29px; border-width: 1px; background: rgba(9,10,15,.92); font-size: 10px; }
.feed-item__platform--bilibili { color: #73c8e6; }.feed-item__platform--weibo { color: #e5a359; }.feed-item__platform--netease { color: var(--red); }
.feed-item__meta { display: flex; align-items: center; gap: 12px; }
.feed-item__body { min-width: 0; }
.feed-item__meta strong { color: var(--lavender); font-size: 12px; }.feed-item__meta time { color: var(--dim); font-size: 10px; }
.feed-item h3 { margin: 8px 0 5px; font-size: 17px; line-height: 1.45; }
.feed-item h3 a:hover { color: var(--cyan); }
.feed-item p { max-width: 78ch; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.feed-item__type, .feed-item__link { justify-self: end; color: var(--dim); font-size: 10px; }
.feed-item__link { align-self: center; display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.feed-item__link:not([href]) { pointer-events: none; }
.feed-item__link[href]:hover { color: var(--cyan); }
.music-ranking { display: grid; margin: 14px 0 0; padding: 0; border-bottom: 1px dashed var(--line); list-style: none; }
.music-ranking li { display: grid; min-width: 0; grid-template-columns: 26px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); }
.music-ranking a { min-width: 0; }
.music-ranking strong, .music-ranking small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.music-ranking strong { color: var(--ink); font-size: 11px; }
.music-ranking small { color: var(--muted); font-size: 10px; }
.music-ranking__rank, .music-ranking__metric { color: var(--dim); font-size: 9px; }
.music-ranking a:hover strong { color: var(--cyan); }
.music-ranking__metric { white-space: nowrap; }

.site-footer { display: grid; width: var(--page); min-height: 160px; margin: 0 auto; grid-template-columns: 1fr auto auto; align-items: center; gap: 28px; border-top: 3px solid var(--line); color: var(--dim); font-size: 10px; }
.site-footer a { color: var(--purple-bright); }
.footer-copy { grid-column: 1 / -1; margin: -45px 0 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s steps(7), transform .55s steps(7); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 960px) {
  :root { --page: min(100% - 36px, 760px); }
  .site-header { grid-template-columns: 1fr auto auto; padding: 0 20px; }
  .menu-button.pixel-button { display: grid; width: 42px; height: 42px; place-content: center; gap: 4px; padding: 0; box-shadow: none; }
  .menu-button span { width: 18px; height: 2px; background: currentColor; }
  .site-nav { position: absolute; top: 72px; left: 0; display: none; width: 100%; padding: 18px 20px 24px; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 2px solid var(--purple); background: var(--bg); }
  .site-nav.is-open { display: grid; }
  .site-nav a { padding: 13px; border: 1px solid var(--line); }
  .header-status { margin-left: 13px; }
  .hero { grid-template-columns: .9fr 1.1fr; min-height: 780px; }
  .hero__visual { height: 610px; min-height: 0; }
  .character-art { right: auto; left: 50%; width: 100%; transform: translateX(-50%); }
  .profile-layout, .github-layout { grid-template-columns: 1fr; }
  .github-summary { grid-row: auto; padding: 0 0 28px; border-right: 0; border-bottom: 1px solid var(--line); }
  .crosshair-console { grid-template-columns: 1fr; }
  .crosshair-preview { min-height: 420px; border-right: 0; border-bottom: 2px solid var(--line); }
  .gear-item { grid-template-columns: 35px 80px 80px minmax(0,1fr); }
  .gear-item__meta { display: none; }
  .gear-item h3 { font-size: 18px; }
  .gear-item p { font-size: 14px; }
  .project-card { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 28px; }
  .project-card__link { grid-column: 2; justify-self: start; margin-top: 0; }
}

@media (max-width: 680px) {
  :root { --page: calc(100% - 28px); }
  .header-status { display: none; }
  .site-header { grid-template-columns: 1fr auto; height: 62px; }
  .site-nav { top: 62px; grid-template-columns: 1fr; }
  .hero { display: block; min-height: 880px; padding-top: 106px; }
  .hero__copy { position: relative; z-index: 4; }
  .hero__name { max-width: 100%; font-size: clamp(50px, 17vw, 72px); }
  .hero__intro { max-width: 90%; margin: 20px 0; font-size: 14px; }
  .quick-stats { margin-top: 28px; }
  .quick-stats div { padding-right: 7px; }
  .quick-stats dd { font-size: 11px; }
  .hero__visual { position: absolute; right: 0; bottom: 0; width: 100%; height: 470px; opacity: .88; overflow: hidden; }
  .character-art { right: auto; left: 50%; width: 108%; transform: translateX(-50%); }
  .character-label { display: none; }
  .scroll-cue { display: none; }
  .section { padding: 86px 0; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { margin-bottom: 16px; font-size: 38px; }
  .section-heading > p:last-child { margin-bottom: 14px; font-size: 38px; }
  .profile-layout { gap: 46px; }
  .profile-card { grid-template-columns: 105px minmax(0,1fr); gap: 16px; padding: 18px; }
  .avatar-frame { width: 105px; }
  .profile-data { grid-template-columns: 1fr; }
  .profile-data div:nth-child(odd) { border-right: 0; }
  .profile-data div:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .social-row { grid-template-columns: 23px 36px minmax(0,1fr) 18px; gap: 8px; }
  .social-row__handle { display: none; }
  .gear-item { min-height: 98px; grid-template-columns: 24px 62px minmax(0,1fr); gap: 10px; }
  .gear-item__type { display: none; }
  .pixel-device { transform: scale(.78); transform-origin: left center; }
  .crosshair-section { padding-inline: 14px; }
  .crosshair-preview { min-height: 330px; }
  .crosshair-controls { padding: 16px; }
  .crosshair-tab { font-size: 9px; }
  .crosshair-info { padding-top: 28px; }
  .crosshair-info h3 { font-size: 20px; }
  .contribution-panel, .commit-panel { padding: 14px; }
  .contribution-wrap { overflow-x: hidden; }
  .contribution-months, .contribution-grid { width: 100%; }
  .contribution-months { font-size: 8px; }
  .contribution-months span:nth-child(even) { visibility: hidden; }
  .contribution-grid {
    grid-template-columns: repeat(var(--week-count), minmax(0, 1fr));
    grid-template-rows: repeat(7, 5px);
    grid-auto-columns: auto;
    gap: 2px;
  }
  .github-metrics strong { font-size: 23px; }
  .projects-intro { align-items: start; flex-direction: column; gap: 10px; margin-bottom: 20px; }
  .project-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 26px 16px; }
  .project-card__number { margin-bottom: 10px; }
  .project-card h3 { font-size: 20px; }
  .project-card__link { grid-column: 1; }
  .feed-item { min-height: 0; grid-template-columns: 78px minmax(0,1fr); gap: 14px; padding: 16px 14px; }
  .feed-item__media { width: 78px; height: 62px; }
  .feed-item__platform { width: 42px; height: 42px; }
  .feed-item h3 { font-size: 16px; }
  .feed-item p { font-size: 12px; line-height: 1.65; }
  .music-ranking li { grid-template-columns: 22px minmax(0,1fr) auto; gap: 6px; }
  .feed-item__type, .feed-item__link { display: none; }
  .site-footer { padding: 42px 0; grid-template-columns: 1fr auto; }
  .site-footer > p:not(.footer-copy) { display: none; }
  .footer-copy { grid-column: 1 / -1; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
