@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Press+Start+2P&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  --bg: #050608;
  --fg: #e5e8ea;
  --fg-muted-1: rgba(194, 200, 203, 0.61);
  --fg-muted-2: rgba(220, 224, 226, 0.81);
  --bg-muted-1: rgba(194, 200, 203, 0.075);
  --bg-muted-2: rgba(194, 200, 203, 0.15);
  --surface-solid: #000;
  --surface-item: #090c0c;
  --surface-item-hover: #101414;
  --accent: #22d3ee;
  --accent-warm: #f59e0b;
  --red: #db4740;
  --accent-highlight: rgba(34, 211, 238, 0.38);
  --green-fg: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.1);
  --border: rgba(194, 200, 203, 0.14);
  --border-strong: rgba(194, 200, 203, 0.22);
  --dot-color: rgba(194, 200, 203, 0.1);
  --edge-highlight: inset 0 0 0 1px rgba(255, 255, 255, 0.055);
  --shadow: 0 0 0 1px rgba(194, 200, 203, 0.14), 0 .75rem 2.5rem rgba(0, 0, 0, 0.2);
  --shadow-glass: 0 .75rem 2rem rgba(0, 0, 0, 0.18);
  --font-sans: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-pixel: 'Press Start 2P', monospace;
  --tr: 0.2s;
  --tr-bezier: 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  --tr-long: 0.6s;
  --hover: translateY(-0.075rem);
  --active: scale(0.98);
  --sidebar-width: 15rem;
  --content-width: 52rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
  -webkit-font-smoothing: antialiased
}

body {
  font-family: var(--font-body);
  font-size: .938rem;
  line-height: 1.65;
  color: var(--fg);
  letter-spacing: -.015em;
  background: radial-gradient(circle, var(--dot-color) 1px, transparent 1.2px) 0 0/1.5rem 1.5rem, var(--bg);
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas: "sidebar main" "sidebar footer";
  min-height: 100vh;
}

a {
  color: var(--fg);
  text-decoration-color: rgba(184, 192, 196, 0.44);
  text-underline-offset: .2em
}

a:hover {
  color: #f2f4f5
}

img {
  max-width: 100%;
  display: block
}

ul,
ol {
  list-style: none
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-sans);
  letter-spacing: -.045em;
  color: var(--fg);
  line-height: 1.1
}

mark {
  background: 0;
  color: var(--red);
  font-weight: 600
}

/* Scroll Progress */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--red);
  z-index: 999;
  width: 0;
  transition: width 60ms linear
}

/* ===== SIDEBAR ===== */
#sidebar {
  grid-area: sidebar;
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 10;
  border-right: 1px solid var(--border);
  background: var(--surface-solid);
}


#sidebar-nav {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
  gap: .25rem;
  overflow: auto;
  justify-content: center;
}

#sidebar-nav a {
  display: flex;
  align-items: center;
  padding: .25rem;
  border: 1px solid transparent;
  background: 0;
  color: var(--fg-muted-1);
  text-decoration: none;
  transition: all var(--tr), transform var(--tr-bezier);
  white-space: nowrap;
}

#sidebar-nav a .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  margin-right: .5rem;
  border: 1px solid var(--border);
  background: var(--surface-item);
  transition: var(--tr);
}

#sidebar-nav a .icon svg {
  width: 1.1rem;
  height: 1.1rem;
  opacity: .7
}

#sidebar-nav a:hover {
  border-color: var(--border);
  background: var(--bg-muted-1);
  color: var(--fg-muted-2)
}

#sidebar-nav a:hover .icon {
  background: var(--bg-muted-2)
}

#sidebar-nav a:active {
  transform: var(--active)
}

#sidebar-nav a.active {
  border-color: var(--border-strong);
  background: var(--red);
  color: #fff
}

#sidebar-nav a.active .icon {
  background: rgba(0, 0, 0, .2);
  color: #fff;
  border-color: rgba(0, 0, 0, .1)
}

#sidebar-nav a.active .icon svg {
  opacity: 1
}

.sidebar-footer {
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--fg-muted-1);
  border-top: 1px solid var(--border)
}

/* ===== MAIN ===== */
main {
  grid-area: main;
  width: 100%;
  max-width: var(--content-width);
  justify-self: center;
  padding: 0 1.5rem
}

section {
  padding: 3rem 0
}

section:first-child {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.section-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--red);
  text-decoration: underline;
  text-decoration-color: var(--bg-muted-1);
  text-decoration-thickness: .125em;
  letter-spacing: -.05em;
}

/* ===== MASONRY ===== */
.masonry {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .5rem;
  margin-top: 1.5rem;
  align-items: stretch;
}

.masonry>li {
  display: flex;
}

.masonry article {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0; /* Remove margin since grid gap handles spacing */
}

.masonry article,
.card,
.bento-card {
  break-inside: avoid;
  border: 2px solid #101414;
  background: var(--surface-solid);
  padding: 1rem;
  box-shadow: var(--edge-highlight);
  transition: all var(--tr), transform var(--tr-bezier);
}

.masonry article:hover,
.card:hover,
.bento-card:hover {
  background: var(--surface-item);
  transform: var(--hover)
}

.masonry article h3,
.card h3,
.bento-card h3 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: .5rem;
  letter-spacing: -.03em
}

/* ===== ABOUT SHOWCASE ===== */
.about-showcase {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.about-main-card {
  border: 2px solid #101414;
  background: var(--surface-solid);
  padding: 1.5rem;
  box-shadow: var(--edge-highlight);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.about-main-card img {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1.5rem;
  height: 240px;
  object-fit: cover;
  border-bottom: 2px solid #101414;
  opacity: 0.9;
}

.about-side {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-side .card {
  margin-bottom: 0;
  height: 100%;
}

@media (max-width: 800px) {
  .about-showcase {
    grid-template-columns: 1fr;
  }
}

/* ===== HERO ===== */
.hero-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  width: 100%
}

.hero-content-box {
  flex: 0 1 auto;
  min-width: 280px;
}

@property --wave-amplitude {
  syntax: "<length>";
  initial-value: -3px;
  inherits: true;
}

.hero-name {
  font-family: var(--font-pixel);
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  cursor: default;
  filter: drop-shadow(2px 0 0 white) drop-shadow(-2px 0 0 white) drop-shadow(0 2px 0 white) drop-shadow(0 -2px 0 white);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-name:hover {
  transform: scale(1.05);
}

.retro-letter {
  position: relative;
  color: transparent;
  z-index: 1;
  display: inline-block;
  --wave-amplitude: -3px;
  transition: --wave-amplitude 0.5s ease;
  animation: retro-wave 1s ease-in-out infinite running;
  animation-delay: calc(0.1s * var(--i));
}

.retro-letter::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10;
  background: url("../assets/retro-boil.svg") calc(var(--i) * 50px) center / auto 100% repeat-x, var(--red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 0;
}

.retro-letter::before {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  color: transparent;
  -webkit-text-stroke: 8px black;
  text-shadow: 0 12px 0 #000, 4px 12px 0 #000, -4px 12px 0 #000;
}

@keyframes retro-wave {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(var(--wave-amplitude));
  }
}

.hero-sub {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--fg-muted-2)
}

.hero-sub mark {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--red);
  padding: .25rem .5rem;
  font-family: var(--font-mono);
  font-size: .85rem;
  font-weight: 600;
  display: inline-block;
  border-radius: 2px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 0
}

.hero-tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  background: var(--surface-item);
  border: 1px solid var(--border);
  padding: .2rem .6rem;
  color: var(--fg-muted-2);
  box-shadow: var(--edge-highlight);
  transition: all var(--tr), transform var(--tr-bezier);
}

.hero-tag:hover {
  background: var(--surface-item-hover);
  color: var(--fg);
  transform: var(--hover)
}

/* ===== RETRO AVATAR (Axetrine polaroid) ===== */
.retro-avatar-container {
  --avatar-glare-x: 50%;
  --avatar-glare-y: 0%;
  --avatar-tilt-x: 0deg;
  --avatar-tilt-y: 0deg;
  --avatar-size: 180px;
  --avatar-rotation: 6deg;
  background-color: #050608;
  border: 2px solid #101414;
  border-radius: 4px;
  display: inline-block;
  flex-shrink: 0;
  line-height: 0;
  overflow: hidden;
  padding: .75rem .75rem 3.25rem;
  position: relative;
  transform: perspective(1000px) rotate(var(--avatar-rotation)) rotateX(var(--avatar-tilt-x)) rotateY(var(--avatar-tilt-y));
  transform-style: preserve-3d;
  transition: transform 120ms ease-out;
  will-change: transform;
  box-shadow: none;
}

.retro-avatar-container::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(135deg, rgba(219, 71, 64, .15), transparent 38%), linear-gradient(to bottom, rgba(255, 255, 255, .03), transparent 45%);
  opacity: .6;
}

.retro-avatar-container::after {
  content: '';
  position: absolute;
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle at var(--avatar-glare-x) var(--avatar-glare-y), rgba(255, 255, 255, .2), transparent 52%);
  transition: opacity var(--tr);
}

.retro-avatar-container:hover::after {
  opacity: .4
}

.retro-avatar-frame {
  display: block;
  width: var(--avatar-size);
  height: var(--avatar-size);
  overflow: hidden;
  position: relative;
  transform: translateZ(1px);
  z-index: 1
}

.retro-avatar {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  margin: 0 !important
}

.retro-avatar-status {
  position: absolute;
  bottom: .8rem;
  left: .75rem;
  right: .75rem;
  z-index: 1;
  color: var(--fg-muted-2);
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: center;
  line-height: 1;
  text-transform: uppercase;
}

.retro-avatar-status strong {
  color: var(--red);
  font-weight: 800
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: var(--fg-muted-1);
  font-family: var(--font-mono);
  font-size: .7rem;
  animation: bounce-y 2s infinite;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--tr);
}

.scroll-indicator:hover {
  color: var(--fg)
}

.scroll-indicator svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2
}

@keyframes bounce-y {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  40% {
    transform: translateX(-50%) translateY(-8px)
  }

  60% {
    transform: translateX(-50%) translateY(-4px)
  }
}

.axie-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity var(--tr);
}

.axie-scroll:hover {
  opacity: 1
}

@keyframes fly-axolotl {

  0%,
  100% {
    transform: translateY(0) rotate(-2deg)
  }

  50% {
    transform: translateY(-8px) rotate(3deg)
  }
}

.fly-axolotl-img {
  animation: fly-axolotl 3s ease-in-out infinite;
}

.jiggly-text span {
  display: inline-block;
  --wave-amplitude: -3px;
  animation: retro-wave 1.5s ease-in-out infinite running;
  animation-delay: calc(0.08s * var(--i));
}

/* ===== BANNER IMAGE IN CARDS ===== */
.card-banner {
  width: calc(100% + 2rem);
  margin: -1rem -1rem 1rem;
  height: 128px;
  object-fit: cover;
  object-position: center
}

/* ===== AGE COUNTER ===== */
#age {
  display: inline-flex;
  position: relative;
  cursor: crosshair;
  box-shadow: var(--edge-highlight), var(--shadow);
  background: hsl(0, 0%, 20%);
  padding-inline: .375rem;
  height: 1.5rem;
  overflow-y: hidden;
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
  font-size: .85rem;
  vertical-align: middle;
}

#age::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(to bottom, black, transparent 25%, transparent 75%, black);
  content: '';
  pointer-events: none
}

#age:hover .char.digit {
  transform: translateY(calc(-100% + 1.5rem));
  transition-delay: var(--delay)
}

.char.digit {
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-long) cubic-bezier(.618, 0, .584, 1.126);
  height: fit-content
}

.char.digit span {
  opacity: .5;
  line-height: 1.5rem
}

.char.digit span.true {
  opacity: 1
}

.char.dot {
  line-height: 1.5rem
}

/* ===== CLOCK (blink from Ametrine) ===== */
#clock,
#clock2 {
  font-family: var(--font-mono);
  color: var(--accent);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  animation: clock-blink 1s infinite;
  box-shadow: var(--edge-highlight);
  background: var(--bg-muted-1);
  padding: .05rem .4rem;
  font-size: .85rem;
}

@keyframes clock-blink {
  25% {
    color: var(--bg-muted-1)
  }

  50% {
    color: var(--accent)
  }
}

/* ===== FANCY LIST ===== */
.fancy-list {
  border: 2px solid #101414;
  background: var(--surface-solid);
  padding: 1rem;
  box-shadow: var(--edge-highlight)
}

.fancy-list .title {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: .75rem;
  letter-spacing: -.03em
}

.fancy-list ul {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-top: .5rem
}

.fancy-list.online ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(9rem, 100%), 1fr));
  gap: .25rem
}

.fancy-list li {
  margin: 0
}

.fancy-list li a {
  display: flex;
  align-items: center;
  padding: .5rem .75rem;
  gap: .6rem;
  background: var(--surface-item);
  box-shadow: var(--edge-highlight);
  color: var(--fg-muted-2);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--tr), transform var(--tr-bezier);
}

.fancy-list li a:hover {
  background: var(--surface-item-hover);
  color: var(--fg);
  transform: scale(1.02)
}

.fancy-list li a:active {
  transform: var(--active)
}

/* ===== DROPDOWN ===== */
.dropdown-wrapper {
  position: relative;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  padding: .5rem .75rem;
  gap: .6rem;
  background: var(--surface-item);
  box-shadow: var(--edge-highlight);
  color: var(--fg-muted-2);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--tr), transform var(--tr-bezier);
}

.dropdown-trigger:hover, .dropdown-wrapper.open .dropdown-trigger {
  background: var(--surface-item-hover);
  color: var(--fg);
}

.dropdown-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: .7;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dropdown-trigger:hover svg, .dropdown-wrapper.open .dropdown-trigger svg {
  opacity: 1;
}

.dropdown-trigger .arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  opacity: .3;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}

.dropdown-wrapper.open .dropdown-trigger .arrow {
  transform: rotate(90deg);
  opacity: .7;
}

.dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #101414; /* Match surface solid or item */
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 !important;
  margin: 0 !important;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid transparent;
}

.dropdown-wrapper.open .dropdown-content {
  max-height: 10rem;
  opacity: 1;
  border-bottom-color: var(--border);
}

.dropdown-content li {
  margin: 0 !important;
}

.dropdown-content li a {
  padding: .5rem .75rem .5rem 1.2rem !important;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.dropdown-content li:last-child a {
  border-bottom: none;
}

.dropdown-content li a:hover {
  background: var(--surface-item-hover) !important;
  transform: translateX(3px) !important;
}
.fancy-list li a svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  opacity: .7;
  stroke: currentColor;
  fill: none;
  stroke-width: 2
}

.fancy-list li a:hover svg {
  opacity: 1
}

.fancy-list li a .arrow {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: .75rem;
  opacity: .3;
  transition: all var(--tr)
}

.fancy-list li a:hover .arrow {
  transform: translateX(3px);
  opacity: .7
}

/* ===== INTEREST LIST ===== */
.interest-list {
  display: flex;
  flex-direction: column;
  gap: .125rem;
  margin-top: .5rem
}

.interest-list li {
  padding: .4rem 0 .4rem .75rem;
  border-left: 2px solid rgba(219, 71, 64, .25);
  color: var(--fg-muted-2);
  font-size: .875rem;
  transition: all var(--tr);
}

.interest-list li:hover {
  border-left-color: var(--red);
  color: var(--fg);
  padding-left: 1rem
}

/* ===== STATS ===== */
.stats-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: .75rem
}

.stat {
  display: flex;
  align-items: baseline;
  gap: .35rem
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--fg-muted-1)
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--fg)
}

/* ===== LORE ===== */
.lore-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .8rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.lore-item {
  font-family: var(--font-sans);
  color: var(--fg-muted-1);
  transition: color .3s ease, transform .3s ease;
  cursor: default;
  white-space: nowrap;
  line-height: 1.8;
}

.lore-item:hover {
  color: var(--fg);
  transform: translateY(-2px);
}

/* Size variants */
.lore-item.xl {
  font-size: 2rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -.03em
}

.lore-item.lg {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg)
}

.lore-item.md {
  font-size: .95rem;
  font-weight: 500;
  color: var(--fg-muted-1)
}

.lore-item.sm {
  font-size: .75rem;
  font-weight: 400;
  color: var(--fg-muted-2);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em
}

/* Accent highlights */
.lore-item.accent {
  color: var(--red)
}

.lore-item.accent:hover {
  color: var(--fg)
}

/* Dot separators */
.lore-dot {
  color: var(--fg-muted-2);
  opacity: .3;
  font-size: .5rem;
  user-select: none;
  align-self: center;
}

/* ===== ARCADE ===== */
#arcade {
  margin-top: 4rem;
}
.game-container {
  border: 2px solid #101414;
  background: var(--surface-solid);
  box-shadow: var(--edge-highlight);
  height: 200px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
  user-select: none;
  cursor: pointer;
}
.game-ui {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  gap: 1.5rem;
}
.score-display {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  color: var(--fg-muted-1);
}
#score {
  color: var(--fg);
  margin-left: 0.5rem;
}
.game-area {
  flex-grow: 1;
  position: relative;
  background: linear-gradient(to bottom, transparent 80%, rgba(255, 62, 62, 0.05) 100%);
}
.game-area::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
}
.ground {
  position: absolute;
  bottom: 0;
  width: 200%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0, var(--border) 10px, transparent 10px, transparent 20px);
  animation: scroll-ground 0.4s linear infinite;
}
@keyframes scroll-ground {
  0% { transform: translateX(0); }
  100% { transform: translateX(-20px); }
}
.game-container.game-over .ground {
  animation-play-state: paused;
}
.player-wrap {
  position: absolute;
  bottom: 2px;
  left: 40px;
  width: 40px;
  z-index: 5;
  transition: transform 0.2s ease-out;
}
.player-wrap.jumping {
  transform: rotate(-15deg);
}
.player-sprite {
  width: 100%;
  height: auto;
  filter: invert(1);
}
.sunglasses {
  position: absolute;
  top: 4px;
  left: 6px;
  width: 22px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 0 3px var(--red));
}
.sunglasses.hidden {
  display: none;
}
.obstacle {
  position: absolute;
  bottom: 2px;
  color: var(--red);
  filter: drop-shadow(0 0 4px rgba(255, 62, 62, 0.6));
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.obstacle svg {
  width: 24px;
  height: 24px;
}
.obstacle.obs-sm svg { width: 16px; height: 16px; }
.obstacle.obs-md svg { width: 24px; height: 24px; }
.obstacle.obs-lg svg { width: 36px; height: 36px; }

.glitch-obs svg {
  animation: obs-glitch 0.2s linear infinite;
}
@keyframes obs-glitch {
  0% { transform: scale(1) skewX(0deg); opacity: 1; filter: drop-shadow(0 0 4px var(--red)); }
  20% { transform: scale(1.2) skewX(20deg); opacity: 0.8; filter: drop-shadow(-2px 0 0 blue) drop-shadow(2px 0 0 lime); }
  40% { transform: scale(0.8) skewX(-20deg); opacity: 1; filter: drop-shadow(0 0 4px var(--red)); }
  60% { transform: scale(1.5) translate(2px, -2px); opacity: 0.5; filter: none; }
  80% { transform: scale(0.9) translate(-2px, 2px); opacity: 1; filter: drop-shadow(0 0 4px var(--red)); }
  100% { transform: scale(1) skewX(0deg); opacity: 1; filter: drop-shadow(0 0 4px var(--red)); }
}

.game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 20;
  font-family: var(--font-mono);
  color: var(--fg);
}
.game-overlay.hidden {
  display: none;
}
.game-overlay p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.game-overlay .key {
  color: var(--red);
}
.game-overlay small {
  color: var(--fg-muted-1);
  font-size: 0.75rem;
}

/* Event Overlays */
.game-event {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-pixel);
  font-size: 1.5rem;
  color: var(--red);
  z-index: 25;
  text-align: center;
  pointer-events: none;
  animation: flash-text 1s infinite;
}
.game-event.hidden {
  display: none;
}
@keyframes flash-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* God Mode */
.player-wrap.god-mode .player-sprite {
  filter: invert(1) drop-shadow(0 0 6px rgba(255, 62, 62, 0.8));
}

/* Difficulty Events */
.game-container.night-mode {
  background: #000;
}
.game-container.night-mode .game-area::before {
  opacity: 0.1;
}
.game-container.night-mode .ground {
  opacity: 0;
}
.game-container.night-mode .player-sprite {
  filter: invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.game-container.matrix-rain::before {
  content: '01001 10101 01010 11100';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 200%;
  font-family: var(--font-pixel);
  font-size: 10px;
  color: rgba(0, 255, 0, 0.15);
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  pointer-events: none;
  animation: matrix-fall 2s linear infinite;
  z-index: 1;
}
@keyframes matrix-fall {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}
}

.hint-card {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.25rem;
  border: 2px solid #101414;
  border-left: 4px solid var(--red);
  background: var(--surface-solid);
  padding: 1.5rem;
  align-items: start;
}
.hint-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 62, 62, 0.08);
  border-radius: 50%;
  color: var(--red);
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.hint-card-icon:hover {
  background: var(--red);
  color: var(--bg);
}
.hint-card-content h4 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--fg);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.hint-card-content p {
  color: var(--fg-muted-1);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Hint Popup */
.hint-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 0.2s ease;
}
.hint-popup-backdrop.hidden {
  display: none;
}
.hint-popup {
  background: var(--surface-solid);
  border: 2px solid #101414;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: popup-in 0.25s ease;
}
.hint-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--fg-muted-1);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.hint-popup-close:hover {
  color: var(--red);
}
.hint-popup-icon {
  color: var(--red);
  margin-bottom: 1rem;
}
.hint-popup h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.hint-popup p {
  color: var(--fg-muted-1);
  font-size: 0.85rem;
  line-height: 1.6;
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes popup-in {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== BLOG POSTS ===== */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.blog-post {
  display: flex;
  flex-direction: column;
  border: 2px solid #101414;
  border-left: 4px solid var(--red);
  background: var(--surface-solid);
  padding: 1.25rem;
  box-shadow: var(--edge-highlight);
  transition: all var(--tr), transform var(--tr-bezier);
}

.blog-post:hover {
  background: var(--surface-item);
  transform: var(--hover);
  border-left-color: var(--accent);
}

.blog-post:active {
  transform: var(--active);
}

.blog-post h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .25rem;
  letter-spacing: -.03em;
}

.blog-post h3 a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--tr);
}

.blog-post:hover h3 a {
  color: var(--accent);
}

.blog-post p {
  color: var(--fg-muted-2);
  font-size: .85rem;
  line-height: 1.6;
}

.blog-post-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--fg-muted-1);
}

.blog-tag {
  color: var(--red);
}
.blog-tag::before {
  content: '#';
}

/* ===== PROJECT CARDS (Axenide style — accent left border + preview image) ===== */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: 1.5rem
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  border: 2px solid #101414;
  border-left: 4px solid var(--red);
  background: var(--surface-solid);
  padding: 1.25rem;
  box-shadow: var(--edge-highlight);
  transition: all var(--tr), transform var(--tr-bezier);
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  background: var(--surface-item);
  transform: var(--hover);
  border-left-color: var(--accent)
}

.project-card:active {
  transform: var(--active)
}

.project-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: .25rem;
  letter-spacing: -.03em;
  color: var(--red);
  transition: color var(--tr)
}

.project-card:hover h3 {
  color: var(--accent)
}

.project-card p {
  color: var(--fg-muted-2);
  font-size: .85rem;
  line-height: 1.6;
  margin-bottom: .5rem
}

.project-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--fg-muted-1)
}

.project-meta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0
}

.project-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: .6rem
}

.project-tag {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--fg-muted-1)
}

.project-tag::before {
  content: '#';
  color: var(--red)
}

.project-links {
  display: flex;
  gap: 1rem
}

.project-links a {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .8rem;
  color: var(--fg-muted-1);
  text-decoration: none;
  transition: color var(--tr);
  font-weight: 500
}

.project-links a:hover {
  color: var(--accent)
}

.project-links a svg {
  width: 14px;
  height: 14px
}

.project-preview {
  width: 180px;
  height: 120px;
  object-fit: cover;
  border: 2px solid #101414;
  box-shadow: var(--edge-highlight);
  flex-shrink: 0;
  align-self: center;
  transition: transform var(--tr-bezier), box-shadow var(--tr);
}

.project-card:hover .project-preview {
  transform: scale(1.03);
  box-shadow: var(--shadow)
}

/* ===== GITHUB GRID ===== */
.github-grid-container {
  border: 2px solid #101414;
  background: var(--surface-solid);
  padding: 1rem;
  box-shadow: var(--edge-highlight)
}

.github-stats {
  font-family: var(--font-sans);
  font-size: .9rem;
  text-align: center;
  margin-bottom: .75rem
}

.github-grid {
  display: grid;
  grid-template-rows: repeat(7, 10px);
  grid-auto-flow: column;
  gap: 3px;
  justify-content: center;
  overflow-x: auto
}

.github-day {
  width: 10px;
  height: 10px;
  background: rgba(128, 128, 128, .1);
  transition: all var(--tr)
}

.github-day:hover {
  transform: scale(1.4);
  z-index: 2
}

.github-day.l1 {
  background: var(--red);
  opacity: .2
}

.github-day.l2 {
  background: var(--red);
  opacity: .4
}

.github-day.l3 {
  background: var(--red);
  opacity: .7
}

.github-day.l4 {
  background: var(--red);
  opacity: 1
}

.github-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: .5rem;
  font-size: .7rem;
  color: var(--fg-muted-1);
  font-family: var(--font-mono)
}

/* ===== ONLINE INDICATOR ===== */
.online-indicator {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: var(--green-bg);
  padding: .05rem .4rem;
  color: var(--green-fg);
  font-weight: 600;
  font-size: .85rem
}

.online-dot {
  width: 8px;
  height: 8px;
  background: var(--green-fg);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, .4)
  }

  50% {
    box-shadow: 0 0 0 5px rgba(34, 197, 94, 0)
  }
}

/* ===== FOOTER ===== */
footer {
  grid-area: footer;
  border-top: 1px solid var(--border);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--fg-muted-1);
  flex-wrap: wrap;
  gap: 1rem
}

footer a {
  color: var(--fg-muted-1);
  text-decoration: none
}

footer a:hover {
  color: var(--red)
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.2, .8, .2, 1)
}

.reveal.visible {
  opacity: 1;
  transform: none
}

/* ===== MOBILE ===== */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface-solid);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: .25rem 0;
  justify-content: space-around
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: .55rem;
  color: var(--fg-muted-1);
  padding: .35rem .5rem;
  text-decoration: none;
  font-family: var(--font-mono)
}

.mobile-nav a.active {
  color: var(--red)
}

.mobile-nav a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2
}

@media(max-width:960px) {
  body {
    grid-template-columns: 0 1fr
  }

  #sidebar {
    transform: translateX(-100%);
    visibility: hidden
  }

  .mobile-nav {
    display: flex
  }

  main {
    padding-bottom: 4rem
  }

  .hero-container {
    flex-direction: column-reverse;
    gap: 2rem;
    padding-top: 3rem
  }

  .hero-content-box {
    text-align: center
  }

  .hero-tags {
    justify-content: center
  }

  .retro-avatar-container {
    --avatar-size: 150px
  }

  .masonry {
    columns: 1
  }

  section:first-child {
    min-height: 100vh
  }

  footer {
    flex-direction: column;
    text-align: center
  }

  .project-card {
    grid-template-columns: 1fr
  }

  .project-preview {
    width: 100%;
    height: 160px
  }
}

@media(max-width:480px) {
  .stats-row {
    flex-direction: column;
    gap: .75rem
  }
}