/* PIXEL PORTFOLIO - Main Stylesheet */
/* 8-bit/16-bit pixel game aesthetic - Personal Homepage */

/* ============ RESET & BASE ============ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-radius: 0 !important;
  image-rendering: pixelated;
}

:root {
  --bg-deep: #0f0e2a;
  --bg-dark: #1a1a2e;
  --bg-card: #16163a;
  --neon-green: #39ff14;
  --pixel-red: #ff2d2d;
  --bright-yellow: #ffd700;
  --electric-blue: #00d4ff;
  --blue-accent: #27a7ff;
  --blue-shadow: #005f73;
  --link-blue: var(--electric-blue);
  --link-blue-bg: rgba(0, 212, 255, 0.08);
  --text-white: #ffffff;
  --text-gray: #c0c0c0;
  --text-dim: #666688;
  --border-color: #3a3a5c;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --font-pixel: 'Press Start 2P', monospace;
  --font-terminal: 'VT323', monospace;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-pixel);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: unset;
}

main {
  position: relative;
  z-index: 1;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--bright-yellow);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 1001;
  transform: translateY(-200%);
  border: 3px solid var(--bright-yellow);
  background: var(--bg-deep);
  color: var(--bright-yellow);
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.4;
  padding: 8px 10px;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

/* ============ SCANLINE OVERLAY ============ */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.06) 2px,
    rgba(0, 0, 0, 0.06) 4px
  );
}

/* ============ STAR FIELD ============ */
.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.pixel-bg-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--text-white);
  animation: starBlink 2s steps(2) infinite;
}

.pixel-bg-star:nth-child(odd) { background: var(--bright-yellow); animation-delay: 0.5s; }
.pixel-bg-star:nth-child(3n) { background: var(--electric-blue); animation-delay: 1s; }

@keyframes starBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

/* ============ NAVIGATION ============ */
.pixel-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(15, 14, 42, 0.95);
  border-bottom: 4px solid var(--neon-green);
  box-shadow: 0 4px 0 #0a6b0a;
  padding: var(--space-sm) var(--space-md);
}

.nav-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-terminal);
  font-size: 1.8rem;
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

.nav-links {
  display: flex;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--text-gray);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  border: 2px solid transparent;
  transition: none;
}

.nav-link:hover {
  color: var(--neon-green);
  border-color: var(--neon-green);
  background: rgba(57, 255, 20, 0.1);
}

/* ============ HERO SECTION ============ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  padding-top: 6rem;
}

.hero-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

/* Pixel Avatar */
.pixel-avatar-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
}

.avatar-border {
  width: 120px;
  height: 120px;
  border: 4px solid var(--neon-green);
  box-shadow:
    4px 4px 0 #0a6b0a,
    inset 0 0 20px rgba(57, 255, 20, 0.1);
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.pixel-avatar {
  width: 96px;
  height: 64px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.avatar-label {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--bright-yellow);
  background: var(--bg-dark);
  border: 2px solid var(--bright-yellow);
  padding: 2px 8px;
  text-shadow: 1px 1px 0 #8b6914;
}

/* Hero Title */
.hero-title {
  font-size: 3rem;
  color: var(--neon-green);
  text-shadow:
    4px 4px 0 #0a6b0a,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000;
  letter-spacing: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.05em;
  justify-content: center;
}

.title-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(-30px);
  animation: letterDrop 0.4s steps(4) forwards;
}

.title-space { display: inline-block; width: 0.5em; }

.title-letter[data-delay="0"] { animation-delay: 0.1s; }
.title-letter[data-delay="1"] { animation-delay: 0.2s; }
.title-letter[data-delay="2"] { animation-delay: 0.3s; }
.title-letter[data-delay="3"] { animation-delay: 0.4s; }
.title-letter[data-delay="4"] { animation-delay: 0.5s; }
.title-letter[data-delay="5"] { animation-delay: 0.6s; }
.title-letter[data-delay="6"] { animation-delay: 0.65s; }
.title-letter[data-delay="7"] { animation-delay: 0.7s; }
.title-letter[data-delay="8"] { animation-delay: 0.8s; }
.title-letter[data-delay="9"] { animation-delay: 0.9s; }
.title-letter[data-delay="10"] { animation-delay: 1s; }

@keyframes letterDrop {
  0% { opacity: 0; transform: translateY(-30px) scale(1.3); }
  60% { opacity: 1; transform: translateY(3px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero class/subtitle */
.hero-class {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--electric-blue);
  letter-spacing: 0;
  text-shadow: 2px 2px 0 #003d4d;
}

.class-icon {
  font-size: 1.2em;
  color: var(--bright-yellow);
}

/* Update information */
.update-info {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--text-gray);
  letter-spacing: 0;
}

.update-icon {
  font-size: 1.2em;
  color: var(--neon-green);
}

/* Blink prompt */
.pixel-prompt {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.blink {
  color: var(--neon-green);
  animation: blinkAnim 1s steps(2) infinite;
}

.blink-text {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--text-white);
  animation: blinkAnim 1s steps(2) infinite;
  animation-delay: 0.1s;
}

@keyframes blinkAnim {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Scroll indicator */
.scroll-indicator {
  margin-top: var(--space-md);
  animation: scrollBounce 1.5s steps(4) infinite;
}

.scroll-arrow {
  font-size: 1.5rem;
  color: var(--neon-green);
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5);
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ============ SECTION COMMON ============ */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-xl) var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-pixel);
  font-size: 1rem;
  color: var(--bright-yellow);
  text-shadow: 3px 3px 0 #8b6914;
  margin-bottom: var(--space-lg);
  letter-spacing: 0;
  text-align: center;
}

.title-deco {
  color: var(--neon-green);
}

.action-link,
.note-link,
.paper-link,
.side-quest-link,
.side-quest-actions a,
.fiction-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  border: 2px solid var(--link-blue);
  background: var(--link-blue-bg);
  color: var(--link-blue);
  text-decoration: none;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  letter-spacing: 0;
  line-height: 1.45;
  padding: 8px;
}

.action-link:hover,
.note-link:hover,
.paper-link:hover,
.side-quest-link:hover,
.side-quest-actions a:hover,
.fiction-list a:hover {
  background: var(--link-blue);
  color: var(--bg-deep);
}

.compact-link {
  display: inline-flex;
  justify-content: center;
}

.action-link-arrow,
.note-link-arrow {
  font-size: 0.55rem;
}

/* ============ WHAT'S NEW SECTION ============ */
.news-container {
  display: flex;
  flex-direction: row;
  gap: var(--space-md);
}

.notice-board {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: var(--space-md);
  position: relative;
  border: 6px solid #6b3f16;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.04) 2px, transparent 2px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(0,0,0,0.08) 2px, transparent 2px) 0 0 / 18px 18px,
    #8b5a2b;
  box-shadow:
    6px 6px 0 #2c1708,
    inset 0 0 0 4px #d19a4a,
    inset 0 0 0 8px #4a2a0f;
}

.notice-board::before,
.notice-board::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--pixel-red);
  border: 2px solid #5f0000;
  box-shadow:
    2px 2px 0 rgba(0,0,0,0.35),
    inset -2px -2px 0 #b80000;
}

.notice-board::before { left: 18px; }
.notice-board::after { right: 18px; }

.notice-board .news-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: var(--space-sm);
  margin-bottom: var(--space-sm);
  position: relative;
  border: 4px solid #3a2410;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.04) 0,
      rgba(0, 0, 0, 0.04) 2px,
      transparent 2px,
      transparent 8px
    ),
    #f4d38d;
  box-shadow:
    4px 4px 0 rgba(0,0,0,0.35),
    inset 0 0 0 2px rgba(58, 36, 16, 0.25),
    inset -4px -4px 0 #c78d44,
    inset 4px 4px 0 #fff0b8;
  color: var(--bg-deep);
  transition: none;
}

.notice-board .news-item:last-child {
  margin-bottom: 0;
}

.notice-board .news-item::before {
  content: '';
  width: 10px;
  height: 10px;
  position: absolute;
  top: -7px;
  left: 18px;
  background: var(--electric-blue);
  border: 2px solid #005f73;
  box-shadow:
    2px 2px 0 rgba(0,0,0,0.35),
    inset -2px -2px 0 #0088a8;
  transform: rotate(45deg);
}

.notice-board .news-item:nth-child(2)::before {
  background: var(--neon-green);
  border-color: #2d6b34;
  box-shadow:
    2px 2px 0 rgba(0,0,0,0.35),
    inset -2px -2px 0 #1f4620;
}

.notice-board .news-item:nth-child(3)::before {
  background: var(--bright-yellow);
  border-color: #8b6914;
  box-shadow:
    2px 2px 0 rgba(0,0,0,0.35),
    inset -2px -2px 0 #b89300;
}

.notice-board .news-item:hover {
  transform: translate(-2px, -2px);
  box-shadow:
    6px 6px 0 rgba(0,0,0,0.42),
    inset 0 0 0 2px rgba(0, 95, 115, 0.25),
    inset -4px -4px 0 #c78d44,
    inset 4px 4px 0 #fff0b8;
}

.news-item {
  font-family: var(--font-pixel);
}

.news-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #730000;
  font-size: 0.52rem;
  line-height: 1;
  min-width: 28px;
}

.news-date {
  display: inline;
  color: #8b521d;
  font-size: 1.25rem;
  line-height: 1.35;
  white-space: nowrap;
  margin-right: 8px;
}

.news-line {
  font-family: var(--font-terminal);
  font-size: 1.25rem;
  line-height: 1.35;
  color: #1c1228;
  letter-spacing: 0;
}

.news-line a {
  color: #005f73;
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 95, 115, 0.45);
}

.news-line a:hover {
  color: #1c1228;
  border-bottom-color: #1c1228;
}

.notice-empty {
  min-height: 96px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border: 4px dashed #3a2410;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.05) 0,
      rgba(0, 0, 0, 0.05) 2px,
      transparent 2px,
      transparent 8px
    ),
    #d7b875;
  color: #1c1228;
  box-shadow:
    inset -4px -4px 0 #a97836,
    inset 4px 4px 0 #ffe5a3;
}

.notice-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 3px solid #3a2410;
  background: var(--bg-deep);
  color: var(--text-dim);
  font-family: var(--font-pixel);
  font-size: 0.9rem;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.35);
}

.notice-empty-title {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: #005f73;
  margin-bottom: 6px;
}

.notice-empty p {
  font-family: var(--font-terminal);
  font-size: 1.25rem;
  line-height: 1.3;
  color: #1c1228;
}


/* ============ ABOUT SECTION ============ */
.about-container {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.about-character {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  flex-shrink: 0;
}

.about-profile {
  border: 4px solid var(--neon-green);
  background:
    linear-gradient(90deg, rgba(57, 255, 20, 0.05) 2px, transparent 2px) 0 0 / 16px 16px,
    var(--bg-card);
  padding: var(--space-sm);
  justify-content: center;
  box-shadow:
    4px 4px 0 #0a6b0a,
    inset 0 0 18px rgba(57, 255, 20, 0.06);
}

.npc-sprite {
  width: 72px;
  height: 48px;
  display: block;
  object-fit: contain;
  image-rendering: pixelated;
}

.npc-name-tag {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--neon-green);
  background: var(--bg-dark);
  border: 2px solid var(--neon-green);
  padding: 2px 6px;
}

.profile-status {
  width: 100%;
  border: 2px solid var(--border-color);
  background: var(--bg-deep);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--text-dim);
  letter-spacing: 0;
}

.status-value {
  font-family: var(--font-terminal);
  font-size: 1rem;
  color: var(--neon-green);
  line-height: 1;
}

/* Dialog box */
.pixel-dialog {
  flex: 1;
  min-width: 0;
}

.dialog-border {
  border: 4px solid var(--electric-blue);
  background: var(--bg-card);
  box-shadow:
    4px 4px 0 #005f73,
    inset 0 0 15px rgba(0, 212, 255, 0.05);
  padding: var(--space-sm);
}

.about-dialog .dialog-border {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.dialog-name {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: var(--bright-yellow);
}

.dialog-blink {
  color: var(--neon-green);
  animation: blinkAnim 0.8s steps(2) infinite;
}

.dialog-content {
  min-height: 60px;
}

.dialog-text {
  font-family: var(--font-terminal);
  font-size: 1.2rem;
  color: var(--text-white);
  line-height: 1.6;
  letter-spacing: 0;
}

.dialog-footer {
  text-align: right;
  margin-top: var(--space-sm);
  padding-top: var(--space-xs);
  border-top: 2px solid var(--border-color);
}

.dialog-next {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  color: var(--neon-green);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 2px solid var(--border-color);
}

.about-tag {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  color: var(--electric-blue);
  border: 2px solid var(--electric-blue);
  background: rgba(0, 212, 255, 0.08);
  padding: 4px 6px;
  line-height: 1.4;
}

.about-log {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
}

.about-info-card {
  min-height: 118px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: var(--space-sm);
  align-items: start;
  border: 4px solid var(--border-color);
  background: var(--bg-card);
  padding: var(--space-sm);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.3);
  position: relative;
}

.about-info-card::after {
  content: '';
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 6px;
  height: 6px;
  background: var(--border-color);
  box-shadow:
    8px 0 0 var(--border-color),
    0 8px 0 var(--border-color),
    8px 8px 0 var(--border-color);
  opacity: 0.7;
}

.about-info-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--electric-blue);
  box-shadow: 6px 6px 0 #005f73;
}

.about-contact-card,
.about-cv-card {
  min-height: 92px;
}

.about-education-card {
  grid-column: 1 / -1;
}

.about-card-icon {
  width: 34px;
  height: 34px;
  border: 2px solid var(--border-color);
  background: var(--bg-deep);
  position: relative;
  box-shadow: inset -2px -2px 0 rgba(0,0,0,0.3);
}

.about-card-icon::after {
  content: '';
  display: block;
  width: 4px;
  height: 4px;
  position: absolute;
  top: 7px;
  left: 7px;
  background: transparent;
}

.about-icon-visit::after {
  box-shadow:
    4px 0 0 var(--bright-yellow),
    8px 0 0 var(--bright-yellow),
    0 4px 0 var(--bright-yellow),
    4px 4px 0 var(--electric-blue),
    8px 4px 0 var(--electric-blue),
    12px 4px 0 var(--bright-yellow),
    0 8px 0 var(--bright-yellow),
    4px 8px 0 var(--electric-blue),
    8px 8px 0 var(--electric-blue),
    12px 8px 0 var(--bright-yellow),
    4px 12px 0 var(--bright-yellow),
    8px 12px 0 var(--bright-yellow);
}

.about-icon-degree::after {
  box-shadow:
    4px 0 0 var(--neon-green),
    8px 0 0 var(--neon-green),
    0 4px 0 var(--neon-green),
    4px 4px 0 var(--neon-green),
    8px 4px 0 var(--neon-green),
    12px 4px 0 var(--neon-green),
    4px 8px 0 var(--bright-yellow),
    8px 8px 0 var(--bright-yellow),
    4px 12px 0 var(--bright-yellow),
    8px 12px 0 var(--bright-yellow);
}

.about-icon-research::after {
  box-shadow:
    4px 0 0 var(--electric-blue),
    8px 0 0 var(--electric-blue),
    0 4px 0 var(--electric-blue),
    12px 4px 0 var(--electric-blue),
    0 8px 0 var(--electric-blue),
    4px 8px 0 var(--bright-yellow),
    8px 8px 0 var(--bright-yellow),
    12px 8px 0 var(--electric-blue),
    4px 12px 0 var(--electric-blue),
    8px 12px 0 var(--electric-blue);
}

.about-icon-mail::after {
  box-shadow:
    0 0 0 var(--pixel-red),
    4px 0 0 var(--pixel-red),
    8px 0 0 var(--pixel-red),
    12px 0 0 var(--pixel-red),
    0 4px 0 var(--pixel-red),
    4px 4px 0 var(--bright-yellow),
    8px 4px 0 var(--bright-yellow),
    12px 4px 0 var(--pixel-red),
    0 8px 0 var(--pixel-red),
    4px 8px 0 var(--pixel-red),
    8px 8px 0 var(--pixel-red),
    12px 8px 0 var(--pixel-red);
}

.about-icon-cv::after {
  box-shadow:
    0 0 0 var(--text-white),
    4px 0 0 var(--text-white),
    8px 0 0 var(--text-white),
    12px 0 0 var(--electric-blue),
    0 4px 0 var(--text-white),
    12px 4px 0 var(--electric-blue),
    0 8px 0 var(--text-white),
    4px 8px 0 var(--bright-yellow),
    8px 8px 0 var(--bright-yellow),
    12px 8px 0 var(--electric-blue),
    0 12px 0 var(--text-white),
    4px 12px 0 var(--text-white),
    8px 12px 0 var(--text-white),
    12px 12px 0 var(--electric-blue);
}

.about-card-copy {
  min-width: 0;
}

.about-card-label {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.42rem;
  color: var(--bright-yellow);
  letter-spacing: 0;
  line-height: 1.6;
  margin-bottom: 6px;
}

.about-card-copy p {
  font-family: var(--font-terminal);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text-gray);
  letter-spacing: 0;
}

.about-card-copy p + p {
  margin-top: 8px;
}

.about-education-card .about-card-copy p {
  position: relative;
  padding-left: 1rem;
}

.about-education-card .about-card-copy p::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--text-gray);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  line-height: 1.9;
}

.about-card-copy a {
  color: var(--electric-blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 212, 255, 0.45);
}

.about-card-copy a:hover {
  color: var(--neon-green);
  border-bottom-color: var(--neon-green);
}

/* ============ NOTE SECTION ============ */
.note-panel {
  border: 4px solid var(--electric-blue);
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 2px, transparent 2px) 0 0 / 20px 20px,
    var(--bg-card);
  box-shadow:
    4px 4px 0 var(--blue-shadow),
    inset 0 0 18px rgba(39, 167, 255, 0.08);
}

.note-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-bottom: 4px solid var(--border-color);
  background: rgba(0, 212, 255, 0.06);
}

.note-panel-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--electric-blue);
  background: var(--bg-deep);
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--blue-shadow);
}

.note-panel-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  top: 8px;
  left: 8px;
  background: transparent;
  box-shadow:
    0 0 0 var(--electric-blue),
    4px 0 0 var(--electric-blue),
    8px 0 0 var(--electric-blue),
    12px 0 0 var(--electric-blue),
    16px 0 0 var(--blue-accent),
    0 4px 0 var(--electric-blue),
    16px 4px 0 var(--blue-accent),
    0 8px 0 var(--electric-blue),
    4px 8px 0 var(--text-white),
    8px 8px 0 var(--text-white),
    12px 8px 0 var(--text-white),
    16px 8px 0 var(--blue-accent),
    0 12px 0 var(--electric-blue),
    16px 12px 0 var(--blue-accent),
    0 16px 0 var(--electric-blue),
    4px 16px 0 var(--electric-blue),
    8px 16px 0 var(--electric-blue),
    12px 16px 0 var(--electric-blue),
    16px 16px 0 var(--blue-accent);
}

.note-panel-kicker {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--blue-accent);
  letter-spacing: 0;
  margin-bottom: 6px;
}

.note-panel-title {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--electric-blue);
  letter-spacing: 0;
  text-shadow: 2px 2px 0 var(--blue-shadow);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-sm);
  padding: var(--space-sm);
}

.note-card {
  min-height: 255px;
  display: flex;
  flex-direction: column;
  border: 4px solid var(--border-color);
  background: var(--bg-deep);
  padding: var(--space-sm);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
  position: relative;
}

.note-card::before {
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  background: var(--border-color);
  box-shadow:
    -10px 0 0 var(--border-color),
    0 10px 0 var(--border-color);
  opacity: 0.7;
}

.note-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--electric-blue);
  box-shadow: 6px 6px 0 #005f73;
}

.note-card-progress {
  border-color: var(--bright-yellow);
}

.note-card-progress:hover {
  border-color: var(--bright-yellow);
  box-shadow: 6px 6px 0 #8b6914;
}

.note-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.note-file-icon {
  width: 34px;
  height: 34px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  position: relative;
  flex-shrink: 0;
}

.note-file-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  top: 7px;
  left: 7px;
  background: transparent;
}

.note-icon-linear::after {
  box-shadow:
    4px 0 0 var(--electric-blue),
    8px 0 0 var(--electric-blue),
    0 4px 0 var(--electric-blue),
    12px 4px 0 var(--electric-blue),
    0 8px 0 var(--electric-blue),
    4px 8px 0 var(--text-white),
    8px 8px 0 var(--text-white),
    12px 8px 0 var(--electric-blue),
    4px 12px 0 var(--electric-blue),
    8px 12px 0 var(--electric-blue);
}

.note-icon-birational::after {
  box-shadow:
    0 0 0 var(--blue-accent),
    4px 0 0 var(--blue-accent),
    12px 0 0 var(--electric-blue),
    0 4px 0 var(--blue-accent),
    4px 4px 0 var(--text-white),
    8px 4px 0 var(--text-white),
    12px 4px 0 var(--electric-blue),
    0 8px 0 var(--blue-accent),
    4px 8px 0 var(--text-white),
    8px 8px 0 var(--text-white),
    12px 8px 0 var(--electric-blue),
    0 12px 0 var(--blue-accent),
    8px 12px 0 var(--electric-blue),
    12px 12px 0 var(--electric-blue);
}

.note-icon-dynamics::after {
  box-shadow:
    4px 0 0 var(--bright-yellow),
    8px 0 0 var(--bright-yellow),
    0 4px 0 var(--bright-yellow),
    12px 4px 0 var(--bright-yellow),
    4px 8px 0 var(--electric-blue),
    8px 8px 0 var(--electric-blue),
    0 12px 0 var(--neon-green),
    4px 12px 0 var(--neon-green),
    8px 12px 0 var(--neon-green),
    12px 12px 0 var(--neon-green);
}

.note-status {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--electric-blue);
  border: 2px solid var(--electric-blue);
  background: rgba(0, 212, 255, 0.06);
  padding: 3px 6px;
}

.status-progress {
  color: var(--bright-yellow);
  border-color: var(--bright-yellow);
  background: rgba(255, 215, 0, 0.08);
  animation: blinkAnim 1.6s steps(2) infinite;
}

.note-title {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  line-height: 1.7;
  color: var(--text-white);
  letter-spacing: 0;
  margin-bottom: var(--space-xs);
}

.note-desc {
  font-family: var(--font-terminal);
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--text-gray);
  letter-spacing: 0;
  margin-bottom: var(--space-sm);
}

.note-link {
  margin-top: auto;
}

/* ============ RESEARCH SECTION ============ */
.research-board {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: var(--space-md);
}

.research-main,
.research-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
}

.research-panel {
  border: 4px solid var(--electric-blue);
  background: var(--bg-card);
  box-shadow:
    4px 4px 0 #005f73,
    inset 0 0 18px rgba(0, 212, 255, 0.05);
}

.research-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
  border-bottom: 4px solid var(--border-color);
  background: rgba(0, 212, 255, 0.06);
}

.research-panel-header h3 {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--electric-blue);
  letter-spacing: 0;
}

.research-icon {
  width: 28px;
  height: 28px;
  border: 2px solid var(--border-color);
  background: var(--bg-deep);
  position: relative;
  flex-shrink: 0;
}

.research-icon::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 3px;
  top: 6px;
  left: 6px;
  background: transparent;
}

.research-icon-scroll::after {
  box-shadow:
    0 0 0 var(--electric-blue),
    3px 0 0 var(--electric-blue),
    6px 0 0 var(--electric-blue),
    9px 0 0 var(--electric-blue),
    0 3px 0 var(--electric-blue),
    9px 3px 0 var(--electric-blue),
    0 6px 0 var(--electric-blue),
    3px 6px 0 var(--text-white),
    6px 6px 0 var(--text-white),
    9px 6px 0 var(--electric-blue),
    0 9px 0 var(--blue-accent),
    9px 9px 0 var(--blue-accent),
    0 12px 0 var(--blue-accent),
    3px 12px 0 var(--blue-accent),
    6px 12px 0 var(--blue-accent),
    9px 12px 0 var(--blue-accent);
}

.research-icon-talk::after {
  box-shadow:
    3px 0 0 var(--blue-accent),
    6px 0 0 var(--blue-accent),
    0 3px 0 var(--blue-accent),
    9px 3px 0 var(--blue-accent),
    0 6px 0 var(--blue-accent),
    3px 6px 0 var(--electric-blue),
    6px 6px 0 var(--electric-blue),
    9px 6px 0 var(--blue-accent),
    3px 9px 0 var(--blue-accent),
    6px 9px 0 var(--blue-accent),
    6px 12px 0 var(--blue-accent);
}

.research-icon-book::after {
  box-shadow:
    0 0 0 var(--pixel-red),
    3px 0 0 var(--pixel-red),
    6px 0 0 var(--pixel-red),
    9px 0 0 var(--pixel-red),
    0 3px 0 var(--pixel-red),
    3px 3px 0 var(--text-white),
    6px 3px 0 var(--text-white),
    9px 3px 0 var(--pixel-red),
    0 6px 0 var(--pixel-red),
    3px 6px 0 var(--text-white),
    6px 6px 0 var(--text-white),
    9px 6px 0 var(--pixel-red),
    0 9px 0 var(--pixel-red),
    9px 9px 0 var(--pixel-red),
    0 12px 0 var(--pixel-red),
    3px 12px 0 var(--pixel-red),
    6px 12px 0 var(--pixel-red),
    9px 12px 0 var(--pixel-red);
}

.research-icon-party::after {
  box-shadow:
    0 0 0 var(--electric-blue),
    9px 0 0 var(--blue-accent),
    0 3px 0 #ffcc99,
    3px 3px 0 #ffcc99,
    9px 3px 0 #ffcc99,
    12px 3px 0 #ffcc99,
    0 6px 0 var(--electric-blue),
    3px 6px 0 var(--electric-blue),
    9px 6px 0 var(--blue-accent),
    12px 6px 0 var(--blue-accent),
    3px 9px 0 var(--electric-blue),
    12px 9px 0 var(--blue-accent);
}

.paper-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-sm);
}

.paper-card {
  border: 4px solid var(--border-color);
  background:
    linear-gradient(90deg, rgba(0, 212, 255, 0.035) 2px, transparent 2px) 0 0 / 18px 18px,
    var(--bg-deep);
  padding: var(--space-sm);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.32);
}

.paper-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--electric-blue);
  box-shadow: 6px 6px 0 #005f73;
}

.paper-meta {
  display: flex;
  justify-content: space-between;
  gap: var(--space-xs);
  align-items: center;
  margin-bottom: var(--space-xs);
}

.paper-index,
.paper-year {
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  letter-spacing: 0;
}

.paper-index {
  color: var(--electric-blue);
}

.paper-year {
  color: var(--blue-accent);
  border: 2px solid var(--blue-accent);
  padding: 3px 6px;
}

.paper-title {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  line-height: 1.8;
  color: var(--text-white);
  letter-spacing: 0;
  margin-bottom: var(--space-xs);
}

.paper-authors,
.talk-card p,
.collaborator-card p {
  font-family: var(--font-terminal);
  color: var(--text-gray);
  letter-spacing: 0;
}

.paper-authors {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: var(--space-sm);
}

.paper-link {
  width: fit-content;
}

.research-talks {
  border-color: var(--blue-accent);
  box-shadow:
    4px 4px 0 var(--blue-shadow),
    inset 0 0 18px rgba(39, 167, 255, 0.06);
}

.talk-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-sm);
}

.talk-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border: 2px solid var(--border-color);
  background: var(--bg-deep);
  padding: var(--space-sm);
}

.talk-card:hover {
  border-color: var(--electric-blue);
}

.talk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.talk-date,
.talk-venue {
  display: inline-flex;
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: var(--blue-accent);
  border: 2px solid var(--blue-accent);
  padding: 4px 6px;
}

.talk-venue {
  color: var(--text-gray);
  border-color: var(--border-color);
}

.talk-title {
  font-family: var(--font-pixel);
  font-size: 0.62rem;
  line-height: 1.8;
  color: var(--text-white);
  letter-spacing: 0;
}

.talk-card p {
  font-size: 1.1rem;
  line-height: 1.4;
}

.talk-link {
  margin-top: var(--space-xs);
  width: fit-content;
}

.publication-panel {
  border-color: var(--pixel-red);
  box-shadow:
    4px 4px 0 #7a1010,
    inset 0 0 18px rgba(255, 45, 45, 0.05);
}

.publication-empty {
  padding: var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.publication-empty img {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border: 4px solid var(--border-color);
  background: var(--bg-deep);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
}

.publication-empty span {
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  line-height: 1.7;
  color: var(--pixel-red);
  letter-spacing: 0;
}

.collaborator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xs);
  padding: var(--space-sm);
}

.collaborator-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 2px solid var(--border-color);
  background: var(--bg-deep);
  padding: var(--space-xs);
}

.collaborator-card:hover {
  border-color: var(--electric-blue);
}

.collaborator-card-top {
  min-height: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-xs);
}

.collaborator-card h4 {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  line-height: 1.5;
  color: var(--text-white);
  letter-spacing: 0;
}

.collaborator-card p {
  font-size: 0.95rem;
  line-height: 1.25;
}

.collaborator-card a {
  font-family: var(--font-pixel);
  font-size: 0.35rem;
  letter-spacing: 0;
  color: var(--electric-blue);
  text-decoration: none;
  border-bottom: 2px solid rgba(0, 212, 255, 0.45);
}

.collaborator-card a:hover {
  color: var(--text-white);
  border-bottom-color: var(--text-white);
}

/* ============ SIDE QUESTS SECTION ============ */
.side-quests-panel {
  border: 4px solid var(--blue-accent);
  background:
    linear-gradient(90deg, rgba(39, 167, 255, 0.05) 2px, transparent 2px) 0 0 / 18px 18px,
    var(--bg-card);
  box-shadow:
    4px 4px 0 var(--blue-shadow),
    inset 0 0 18px rgba(39, 167, 255, 0.06);
}

.side-quests-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm);
  border-bottom: 4px solid var(--border-color);
  background: rgba(39, 167, 255, 0.06);
}

.side-quests-icon {
  width: 38px;
  height: 38px;
  border: 2px solid var(--blue-accent);
  background: var(--bg-deep);
  position: relative;
  flex-shrink: 0;
  box-shadow: 2px 2px 0 var(--blue-shadow);
}

.side-quests-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  top: 8px;
  left: 8px;
  background: transparent;
  box-shadow:
    4px 0 0 var(--electric-blue),
    8px 0 0 var(--electric-blue),
    0 4px 0 var(--electric-blue),
    4px 4px 0 var(--blue-accent),
    8px 4px 0 var(--blue-accent),
    12px 4px 0 var(--electric-blue),
    0 8px 0 var(--electric-blue),
    4px 8px 0 var(--blue-accent),
    8px 8px 0 var(--blue-accent),
    12px 8px 0 var(--electric-blue),
    4px 12px 0 var(--electric-blue),
    8px 12px 0 var(--electric-blue);
}

.side-quests-kicker {
  display: block;
  font-family: var(--font-pixel);
  font-size: 0.4rem;
  color: var(--text-dim);
  letter-spacing: 0;
  margin-bottom: 6px;
}

.side-quests-title {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--blue-accent);
  letter-spacing: 0;
  text-shadow: 2px 2px 0 var(--blue-shadow);
}

.side-quests-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-sm);
  padding: var(--space-sm);
}

.side-quest-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  border: 4px solid var(--border-color);
  background: var(--bg-deep);
  padding: var(--space-sm);
  box-shadow: 4px 4px 0 rgba(0,0,0,0.35);
  position: relative;
}

.side-quest-card:hover {
  transform: translate(-2px, -2px);
  border-color: var(--electric-blue);
  box-shadow: 6px 6px 0 #005f73;
}

.side-quest-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.side-quest-icon {
  width: 34px;
  height: 34px;
  border: 2px solid var(--border-color);
  background: var(--bg-card);
  position: relative;
  flex-shrink: 0;
}

.side-quest-icon::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  top: 7px;
  left: 7px;
  background: transparent;
}

.side-icon-blog::after {
  box-shadow:
    0 0 0 var(--electric-blue),
    4px 0 0 var(--electric-blue),
    8px 0 0 var(--electric-blue),
    12px 0 0 var(--electric-blue),
    0 4px 0 var(--electric-blue),
    4px 4px 0 var(--text-white),
    8px 4px 0 var(--text-white),
    12px 4px 0 var(--electric-blue),
    0 8px 0 var(--electric-blue),
    4px 8px 0 var(--text-white),
    8px 8px 0 var(--text-white),
    12px 8px 0 var(--electric-blue),
    0 12px 0 var(--electric-blue),
    4px 12px 0 var(--electric-blue),
    8px 12px 0 var(--electric-blue),
    12px 12px 0 var(--electric-blue);
}

.side-icon-tex::after {
  box-shadow:
    0 0 0 var(--blue-accent),
    4px 0 0 var(--blue-accent),
    8px 0 0 var(--blue-accent),
    12px 0 0 var(--blue-accent),
    4px 4px 0 var(--text-white),
    8px 4px 0 var(--text-white),
    4px 8px 0 var(--text-white),
    8px 8px 0 var(--text-white),
    4px 12px 0 var(--electric-blue),
    8px 12px 0 var(--electric-blue);
}

.side-icon-link::after {
  box-shadow:
    0 4px 0 var(--text-dim),
    4px 4px 0 var(--text-dim),
    8px 4px 0 var(--text-dim),
    4px 8px 0 var(--text-dim),
    8px 8px 0 var(--text-dim),
    12px 8px 0 var(--text-dim);
}

.side-icon-fiction::after {
  box-shadow:
    0 0 0 var(--blue-accent),
    4px 0 0 var(--blue-accent),
    8px 0 0 var(--blue-accent),
    12px 0 0 var(--blue-accent),
    0 4px 0 var(--blue-accent),
    12px 4px 0 var(--blue-accent),
    0 8px 0 var(--blue-accent),
    4px 8px 0 var(--electric-blue),
    8px 8px 0 var(--electric-blue),
    12px 8px 0 var(--blue-accent),
    0 12px 0 var(--blue-accent),
    4px 12px 0 var(--blue-accent),
    8px 12px 0 var(--blue-accent),
    12px 12px 0 var(--blue-accent);
}

.side-quest-badge {
  font-family: var(--font-pixel);
  font-size: 0.38rem;
  color: var(--electric-blue);
  border: 2px solid var(--electric-blue);
  background: rgba(0, 212, 255, 0.08);
  padding: 3px 6px;
}

.badge-template {
  color: var(--blue-accent);
  border-color: var(--blue-accent);
  background: rgba(39, 167, 255, 0.08);
}

.badge-fiction {
  color: var(--blue-accent);
  border-color: var(--blue-accent);
  background: rgba(39, 167, 255, 0.08);
}

.side-quest-title {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  line-height: 1.65;
  color: var(--text-white);
  letter-spacing: 0;
  margin-bottom: var(--space-xs);
}

.side-quest-desc {
  font-family: var(--font-terminal);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--text-gray);
  letter-spacing: 0;
  margin-bottom: var(--space-sm);
}

.side-quest-link,
.side-quest-actions a,
.fiction-list a {
  font-size: 0.4rem;
}

.side-quest-link {
  margin-top: auto;
}

.side-quest-actions,
.fiction-list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* ============ FOOTER ============ */
.pixel-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-md);
  border-top: 4px solid var(--border-color);
  margin-top: var(--space-lg);
}

.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-text {
  font-family: var(--font-terminal);
  font-size: 1rem;
  color: var(--text-gray);
  letter-spacing: 0;
  margin-bottom: var(--space-xs);
}

.footer-sub {
  font-family: var(--font-terminal);
  font-size: 0.9rem;
  color: var(--text-dim);
}

/* ============ EASTER EGG WALKER ============ */
.easter-egg-walker {
  position: fixed;
  bottom: 8px;
  left: -96px;
  z-index: 998;
  animation: walkerMove 20s linear infinite;
  pointer-events: none;
}

.walker-sprite {
  width: 72px;
  height: 48px;
  background: url("../figs/Characters/Archer/Green/Walk/Walk.gif") center / contain no-repeat;
  image-rendering: pixelated;
}

@keyframes walkerMove {
  0% { left: -96px; }
  100% { left: calc(100% + 96px); }
}

/* ============ REVEAL STATES ============ */
.is-reveal-pending {
  opacity: 0;
  transform: translateY(16px);
}

.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.35s steps(4),
    transform 0.35s steps(4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .pixel-nav {
    padding: var(--space-xs) var(--space-sm);
  }

  .nav-inner {
    gap: var(--space-sm);
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
  }

  .nav-link {
    font-size: 0.4rem;
    padding: 4px 6px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .notice-board {
    padding: var(--space-sm);
    padding-top: calc(var(--space-sm) + 28px);
  }

  .notice-board .news-item {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: var(--space-xs);
  }

  .about-container {
    grid-template-columns: 1fr;
  }

  .about-profile {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  .about-log {
    grid-template-columns: 1fr;
    grid-auto-flow: row;
  }

  .about-info-card {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
  }

  .about-education-card {
    grid-column: auto;
  }

  .about-card-icon {
    grid-column: 1;
    grid-row: 1;
  }

  .about-card-copy {
    display: contents;
  }

  .about-card-label {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 0;
  }

  .about-card-copy p {
    grid-column: 1 / -1;
  }

  .about-card-copy p:first-of-type {
    margin-top: var(--space-xs);
  }

  .note-grid {
    grid-template-columns: 1fr;
  }

  .research-board {
    grid-template-columns: 1fr;
  }

  .side-quests-grid {
    grid-template-columns: 1fr;
  }

  .pixel-footer {
    padding-bottom: calc(var(--space-md) + 48px + env(safe-area-inset-bottom, 0px));
  }

  .easter-egg-walker {
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    left: -80px;
  }

  .walker-sprite {
    width: 60px;
    height: 40px;
  }

  @keyframes walkerMove {
    0% { left: -80px; }
    100% { left: calc(100% + 80px); }
  }
}

@media (max-width: 480px) {
  .section { padding: var(--space-lg) var(--space-sm); }

  .hero {
    padding-top: 7.5rem;
  }

  .hero-title {
    font-size: 1.25rem;
  }

  .hero-class,
  .update-info {
    align-items: flex-start;
    text-align: left;
    max-width: 280px;
  }

  .publication-empty {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
