:root {
  /* Core Colors - Black & Green Terminal Palette (Default: Matrix Green) */
  --bg-dark: #000000;
  --bg-darker: #0a0a0a;
  --panel-bg: #0d0d0d;
  --neon-green: #00d936;
  --neon-green-dark: #00a82a;
  --neon-green-light: #33e85c;
  --accent-primary: #00d936;
  --accent-secondary: #00a82a;
  --text-primary: #d0efd0;
  --text-muted: #4a7a4a;
  --border-color: #1a331a;
  
  /* Alpha versions for backgrounds/glows */
  --accent-alpha-80: var(--accent-alpha-80);
  --accent-alpha-70: rgba(0, 217, 54, 0.7);
  --accent-alpha-60: var(--accent-alpha-60);
  --accent-alpha-50: var(--accent-alpha-50);
  --accent-alpha-40: var(--accent-alpha-40);
  --accent-alpha-30: var(--accent-alpha-30);
  --accent-alpha-25: var(--accent-alpha-25);
  --accent-alpha-20: var(--accent-alpha-20);
  --accent-alpha-18: rgba(0, 217, 54, 0.18);
  --accent-alpha-15: var(--accent-alpha-15);
  --accent-alpha-12: rgba(0, 217, 54, 0.12);
  --accent-alpha-10: rgba(0, 217, 54, 0.1);
  --accent-alpha-08: rgba(0, 217, 54, 0.08);
  --accent-alpha-05: rgba(0, 217, 54, 0.05);
  --accent-alpha-04: rgba(0, 217, 54, 0.04);
  --accent-alpha-03: rgba(0, 217, 54, 0.03);
  --accent-alpha-015: rgba(0, 217, 54, 0.015);
  
  /* Pixel Grid */
  --pixel-size: 4px;
  --panel-padding: 20px;
}

/* Theme: Cyberpunk Pink */
[data-theme="cyberpunk"] {
  --neon-green: #ff006e;
  --neon-green-dark: #d90057;
  --neon-green-light: #ff4d9f;
  --accent-primary: #ff006e;
  --accent-secondary: #8338ec;
  --text-primary: #ffd0ed;
  --text-muted: #7a4a6a;
  --border-color: #331a2a;  
  --accent-alpha-80: rgba(255, 0, 110, 0.8);
  --accent-alpha-70: rgba(255, 0, 110, 0.7);
  --accent-alpha-60: rgba(255, 0, 110, 0.6);
  --accent-alpha-50: rgba(255, 0, 110, 0.5);
  --accent-alpha-40: rgba(255, 0, 110, 0.4);
  --accent-alpha-30: rgba(255, 0, 110, 0.3);
  --accent-alpha-25: rgba(255, 0, 110, 0.25);
  --accent-alpha-20: rgba(255, 0, 110, 0.2);
  --accent-alpha-18: rgba(255, 0, 110, 0.18);
  --accent-alpha-15: rgba(255, 0, 110, 0.15);
  --accent-alpha-12: rgba(255, 0, 110, 0.12);
  --accent-alpha-10: rgba(255, 0, 110, 0.1);
  --accent-alpha-08: rgba(255, 0, 110, 0.08);
  --accent-alpha-05: rgba(255, 0, 110, 0.05);
  --accent-alpha-04: rgba(255, 0, 110, 0.04);
  --accent-alpha-03: rgba(255, 0, 110, 0.03);
  --accent-alpha-015: rgba(255, 0, 110, 0.015);
}

/* Theme: Retro Amber */
[data-theme="amber"] {
  --neon-green: #ffb000;
  --neon-green-dark: #d99200;
  --neon-green-light: #ffc942;
  --accent-primary: #ffb000;
  --accent-secondary: #ff8800;
  --text-primary: #ffe8c0;
  --text-muted: #7a6a4a;
  --border-color: #332a1a;  
  --accent-alpha-80: rgba(255, 176, 0, 0.8);
  --accent-alpha-70: rgba(255, 176, 0, 0.7);
  --accent-alpha-60: rgba(255, 176, 0, 0.6);
  --accent-alpha-50: rgba(255, 176, 0, 0.5);
  --accent-alpha-40: rgba(255, 176, 0, 0.4);
  --accent-alpha-30: rgba(255, 176, 0, 0.3);
  --accent-alpha-25: rgba(255, 176, 0, 0.25);
  --accent-alpha-20: rgba(255, 176, 0, 0.2);
  --accent-alpha-18: rgba(255, 176, 0, 0.18);
  --accent-alpha-15: rgba(255, 176, 0, 0.15);
  --accent-alpha-12: rgba(255, 176, 0, 0.12);
  --accent-alpha-10: rgba(255, 176, 0, 0.1);
  --accent-alpha-08: rgba(255, 176, 0, 0.08);
  --accent-alpha-05: rgba(255, 176, 0, 0.05);
  --accent-alpha-04: rgba(255, 176, 0, 0.04);
  --accent-alpha-03: rgba(255, 176, 0, 0.03);
  --accent-alpha-015: rgba(255, 176, 0, 0.015);
}

/* Theme: Hacker Blue */
[data-theme="blue"] {
  --neon-green: #00d9ff;
  --neon-green-dark: #00a8cc;
  --neon-green-light: #42e8ff;
  --accent-primary: #00d9ff;
  --accent-secondary: #0088cc;
  --text-primary: #d0f0ff;
  --text-muted: #4a6a7a;
  --border-color: #1a2a33;  
  --accent-alpha-80: rgba(0, 217, 255, 0.8);
  --accent-alpha-70: rgba(0, 217, 255, 0.7);
  --accent-alpha-60: rgba(0, 217, 255, 0.6);
  --accent-alpha-50: rgba(0, 217, 255, 0.5);
  --accent-alpha-40: rgba(0, 217, 255, 0.4);
  --accent-alpha-30: rgba(0, 217, 255, 0.3);
  --accent-alpha-25: rgba(0, 217, 255, 0.25);
  --accent-alpha-20: rgba(0, 217, 255, 0.2);
  --accent-alpha-18: rgba(0, 217, 255, 0.18);
  --accent-alpha-15: rgba(0, 217, 255, 0.15);
  --accent-alpha-12: rgba(0, 217, 255, 0.12);
  --accent-alpha-10: rgba(0, 217, 255, 0.1);
  --accent-alpha-08: rgba(0, 217, 255, 0.08);
  --accent-alpha-05: rgba(0, 217, 255, 0.05);
  --accent-alpha-04: rgba(0, 217, 255, 0.04);
  --accent-alpha-03: rgba(0, 217, 255, 0.03);
  --accent-alpha-015: rgba(0, 217, 255, 0.015);
}

/* Theme: White Outline (black bg) */
[data-theme="white"] {
  --bg-dark: #000000;
  --bg-darker: #0a0a0a;
  --panel-bg: #0d0d0d;
  --neon-green: #ffffff;
  --neon-green-dark: #e5e7eb;
  --neon-green-light: #ffffff;
  --accent-primary: #ffffff;
  --accent-secondary: #e5e7eb;
  --text-primary: #f9fafb;
  --text-muted: #9ca3af;
  --border-color: #e5e7eb;
  --accent-alpha-80: rgba(255, 255, 255, 0.8);
  --accent-alpha-70: rgba(255, 255, 255, 0.7);
  --accent-alpha-60: rgba(255, 255, 255, 0.6);
  --accent-alpha-50: rgba(255, 255, 255, 0.5);
  --accent-alpha-40: rgba(255, 255, 255, 0.4);
  --accent-alpha-30: rgba(255, 255, 255, 0.3);
  --accent-alpha-25: rgba(255, 255, 255, 0.25);
  --accent-alpha-20: rgba(255, 255, 255, 0.2);
  --accent-alpha-18: rgba(255, 255, 255, 0.18);
  --accent-alpha-15: rgba(255, 255, 255, 0.15);
  --accent-alpha-12: rgba(255, 255, 255, 0.12);
  --accent-alpha-10: rgba(255, 255, 255, 0.1);
  --accent-alpha-08: rgba(255, 255, 255, 0.08);
  --accent-alpha-05: rgba(255, 255, 255, 0.05);
  --accent-alpha-04: rgba(255, 255, 255, 0.04);
  --accent-alpha-03: rgba(255, 255, 255, 0.03);
  --accent-alpha-015: rgba(255, 255, 255, 0.015);
}

/* Theme: Neon Purple */
[data-theme="purple"] {
  --neon-green: #a855f7;
  --neon-green-dark: #7c3aed;
  --neon-green-light: #c4b5fd;
  --accent-primary: #a855f7;
  --accent-secondary: #ec4899;
  --text-primary: #f5f3ff;
  --text-muted: #a78bfa;
  --border-color: #312e81;
  --accent-alpha-80: rgba(168, 85, 247, 0.8);
  --accent-alpha-70: rgba(168, 85, 247, 0.7);
  --accent-alpha-60: rgba(168, 85, 247, 0.6);
  --accent-alpha-50: rgba(168, 85, 247, 0.5);
  --accent-alpha-40: rgba(168, 85, 247, 0.4);
  --accent-alpha-30: rgba(168, 85, 247, 0.3);
  --accent-alpha-25: rgba(168, 85, 247, 0.25);
  --accent-alpha-20: rgba(168, 85, 247, 0.2);
  --accent-alpha-18: rgba(168, 85, 247, 0.18);
  --accent-alpha-15: rgba(168, 85, 247, 0.15);
  --accent-alpha-12: rgba(168, 85, 247, 0.12);
  --accent-alpha-10: rgba(168, 85, 247, 0.1);
  --accent-alpha-08: rgba(168, 85, 247, 0.08);
  --accent-alpha-05: rgba(168, 85, 247, 0.05);
  --accent-alpha-04: rgba(168, 85, 247, 0.04);
  --accent-alpha-03: rgba(168, 85, 247, 0.03);
  --accent-alpha-015: rgba(168, 85, 247, 0.015);
}

/* ============================================
   INVENTORY MODAL (Simple)
   ============================================ */
.inventory-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.inventory-modal * {
  cursor: auto !important;
}

.inventory-modal.active {
  opacity: 1;
  visibility: visible;
}

.inventory-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
}

.inventory-modal-content {
  position: relative;
  z-index: 10001;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: inventoryZoomIn 0.3s ease;
}

.inventory-modal.active .inventory-modal-content {
  animation: inventoryZoomIn 0.3s ease;
}

@keyframes inventoryZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.inventory-modal-close {
  position: absolute;
  top: -50px;
  right: 0;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--neon-green);
  border-radius: 4px;
  color: var(--neon-green);
  font-size: 24px;
  cursor: pointer !important;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
  line-height: 1;
}

.inventory-modal-close:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
}

.inventory-modal-img {
  max-width: 100%;
  max-height: 70vh;
  border: 3px solid var(--neon-green);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  image-rendering: pixelated;
}

.inventory-modal-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--neon-green);
  letter-spacing: 2px;
  text-shadow: none;
}

.item-slot:not(.empty) {
  cursor: pointer !important;
  transition: transform 0.2s ease;
}

.item-slot:not(.empty):hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .inventory-modal-close {
    top: 10px;
    right: 10px;
  }
  
  .inventory-modal-img {
    max-height: 60vh;
  }
  
  .inventory-modal-title {
    font-size: 12px;
  }
}

/* ============================================
   THEME SWITCHER
   ============================================ */
.theme-toggle-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--panel-bg);
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px var(--accent-alpha-30);
}

.theme-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent-alpha-50);
}

.theme-toggle-btn svg {
  width: 30px;
  height: 30px;
  fill: var(--neon-green);
}

.theme-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: var(--bg-darker);
  border: 3px solid var(--neon-green);
  border-radius: 8px;
  padding: 20px;
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  min-width: 280px;
}

.theme-popup.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.theme-popup-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  color: var(--neon-green);
  margin-bottom: 15px;
  letter-spacing: 1px;
  text-align: center;
}

.theme-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.theme-option {
  background: var(--panel-bg);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.theme-option:hover {
  border-color: var(--neon-green);
  transform: translateY(-2px);
}

.theme-option.active {
  border-color: var(--neon-green);
  background: var(--accent-alpha-10);
  box-shadow: 0 0 15px var(--accent-alpha-20);
}

.theme-option-name {
  font-family: 'VT323', monospace;
  font-size: 14px;
  color: var(--text-primary);
  text-align: center;
}

.theme-colors {
  display: flex;
  gap: 4px;
  justify-content: center;
}

.theme-color {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Mobile theme button */
@media (max-width: 768px) {
  .theme-toggle-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .theme-toggle-btn svg {
    width: 25px;
    height: 25px;
  }

  .theme-popup {
    bottom: 80px;
    right: 20px;
    left: 20px;
    min-width: auto;
  }

  .theme-options {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  pointer-events: none;
  z-index: 10000;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor-core {
  width: 100%;
  height: 100%;
  border: 2px solid var(--neon-green);
  border-radius: 50%;
  box-shadow: 
    0 0 8px var(--accent-alpha-60),
    inset 0 0 8px var(--accent-alpha-30);
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.cursor-core::before,
.cursor-core::after {
  content: '';
  position: absolute;
  background: var(--neon-green);
  box-shadow: 0 0 4px var(--accent-alpha-60);
}

.cursor-core::before {
  width: 2px;
  height: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.cursor-core::after {
  width: 8px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.custom-cursor.cursor-hover .cursor-core {
  width: 140%;
  height: 140%;
  margin: -20%;
  border-width: 3px;
  box-shadow: 
    0 0 12px var(--accent-alpha-80),
    inset 0 0 12px var(--accent-alpha-50);
}

.custom-cursor.cursor-hover .cursor-core::before {
  height: 12px;
}

.custom-cursor.cursor-hover .cursor-core::after {
  width: 12px;
}

.cursor-trail {
  position: fixed;
  width: 40px;
  height: 40px;
  pointer-events: none;
  z-index: 9999;
  top: 0;
  left: 0;
  will-change: transform;
}

.cursor-trail::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle,
    var(--accent-alpha-25) 0%,
    var(--accent-alpha-10) 30%,
    transparent 70%
  );
  border-radius: 50%;
  animation: trailPulse 1.5s ease-in-out infinite;
}

@keyframes trailPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.3; }
}

@media (hover: none) {
  .custom-cursor,
  .cursor-trail {
    display: none !important;
  }
}

/* ============================================
   SPLASH SCREEN
   ============================================ */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* CRT Power-On Line Effect */
.splash-crt-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--neon-green) 20%,
    var(--neon-green-light) 50%,
    var(--neon-green) 80%,
    transparent 100%
  );
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 
    0 0 20px var(--accent-alpha-80),
    0 0 40px var(--accent-alpha-50);
  
  /* Expand vertically from thin line */
  animation: crtExpand 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes crtExpand {
  0% {
    height: 2px;
    opacity: 1;
  }
  30% {
    height: 8px;
    opacity: 0.9;
  }
  60% {
    height: 100vh;
    opacity: 0.6;
  }
  100% {
    height: 100vh;
    opacity: 0;
  }
}

/* Content Container */
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  opacity: 0;
  animation: fadeInContent 0.4s ease 0.5s forwards;
}

@keyframes fadeInContent {
  to { opacity: 1; }
}

/* Logo */
.splash-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8);
  filter: drop-shadow(0 0 20px var(--accent-alpha-60));
}

.splash-logo-visible {
  animation: logoFlickerIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes logoFlickerIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  30% {
    opacity: 0.4;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  65% {
    opacity: 0.6;
    transform: scale(1.05);
  }
  80% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Text */
.splash-text {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--neon-green);
  text-shadow: 
    0 0 10px var(--accent-alpha-80),
    0 0 20px var(--accent-alpha-50);
  letter-spacing: 4px;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
}

.splash-text-visible {
  animation: typeOut 0.8s steps(20) forwards;
}

@keyframes typeOut {
  to {
    opacity: 1;
    max-width: 100%;
  }
}

/* Skip Instruction */
.splash-skip {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 20px;
  animation: blink 1.5s step-end infinite;
}

/* Exit Animation */
.splash-screen.splash-exit {
  animation: splashFadeOut 0.8s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes splashFadeOut {
  0% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.02);
  }
  100% {
    opacity: 0;
    transform: scaleY(0);
  }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .splash-logo {
    width: 100px;
    height: 100px;
  }

  .splash-text {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .splash-skip {
    font-size: 8px;
  }
}

/* ============================================
   BASE & RESET
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Orbitron', 'VT323', monospace;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
}

/* ============================================
   CRT SCREEN EFFECTS
   ============================================ */
.crt-overlay {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: 
    radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.3) 100%);
  animation: crtFlicker 0.15s infinite;
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: repeating-linear-gradient(
    0deg,
    var(--accent-alpha-015) 0px,
    transparent 1px,
    transparent 2px,
    var(--accent-alpha-015) 3px
  );
  animation: scanlineMove 8s linear infinite;
}

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

@keyframes scanlineMove {
  0% { transform: translateY(0); }
  100% { transform: translateY(10px); }
}

/* ============================================
   MAIN CONTAINER
   ============================================ */
.game-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: 
    radial-gradient(circle at 20% 20%, var(--accent-alpha-03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0, 204, 51, 0.03) 0%, transparent 50%);
}

/* ============================================
   ARCADE HEADER (UPDATED)
   ============================================ */
.arcade-header {
  display: flex;
  justify-content: space-between; 
  align-items: center;
  padding: 20px;
  width: 100%;
  position: relative; /* Ensure context for absolute children */
}

/* Static Background Layer - NO ANIMATION */
.header-bg-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--panel-bg) 0%, var(--bg-dark) 100%);
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  box-shadow: 
    0 0 10px var(--accent-alpha-15),
    inset 0 2px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  z-index: -1;
}

.player-hud {
  display: flex;
  align-items: flex-start; 
  gap: 20px;
  flex: 1; 
}

.logo-pixel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
  border: 2px solid var(--neon-green);
  background: var(--bg-darker);
  width: 65px;
  height: 65px;
  flex-shrink: 0;
  flex-grow: 0;
}

.header-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  aspect-ratio: 1 / 1;
}

.player-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.player-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--neon-green);
  margin-bottom: 4px;
}

.player-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 32px; 
  color: var(--neon-green);
  text-shadow: 0 0 12px var(--accent-alpha-60);
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.player-class {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   GAME MENU / NAVIGATION
   ============================================ */
.game-menu {
  margin-left: auto; 
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1001;
}

.menu-toggle:hover {
  border-color: var(--neon-green);
}

.menu-toggle.active {
  border-color: var(--neon-green);
  background: var(--accent-alpha-10);
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--neon-green);
  transition: all 0.3s ease;
  display: block;
}

/* Animation to turn Hamburger into X */
.menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

.menu-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Hide close button on desktop */
.menu-close {
  display: none;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  transition: all 0.2s ease;
  position: relative;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.menu-icon {
  color: var(--neon-green);
  font-size: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}

.menu-item:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  background: var(--accent-alpha-05);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px var(--accent-alpha-20);
}

.menu-item:hover .menu-icon {
  opacity: 1;
}

.menu-item.active {
  background: var(--neon-green);
  border-color: var(--neon-green-light);
  color: var(--bg-dark);
  box-shadow: 0 0 10px var(--accent-alpha-30);
}

.menu-item.active .menu-icon {
  opacity: 1;
  color: var(--bg-dark);
}

/* ============================================
   HOME PAGE LAYOUT
   ============================================ */
.game-screen {
  display: grid;
  grid-template-columns: 280px 1fr 240px;
  gap: 20px;
  min-height: 600px;
}

/* ============================================
   STATS PANEL (LEFT)
   ============================================ */
.stats-panel {
  background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px var(--accent-alpha-15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.panel-header {
  position: relative;
  margin-bottom: 10px;
}

.header-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--neon-green), transparent);
  margin-bottom: 8px;
}

.panel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--accent-alpha-40);
  letter-spacing: 2px;
}

.stat-box {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid var(--border-color);
  padding: 16px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.stat-value {
  font-size: 32px;
  font-weight: 900;
  color: var(--neon-green);
  line-height: 1;
}

.glow-text {
  text-shadow: 0 0 6px var(--accent-alpha-50);
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

.stat-bar {
  height: 12px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green-dark), var(--neon-green));
  box-shadow: 0 0 4px var(--accent-alpha-40);
  animation: fillPulse 1.5s ease-in-out infinite;
}

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

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 6px 10px;
  background: var(--accent-alpha-10);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  border-radius: 2px;
  text-shadow: 0 0 8px var(--neon-green);
}

/* ============================================
   ACTION BUTTONS
   ============================================ */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.game-btn {
  position: relative;
  padding: 14px 20px;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  text-decoration: none;
  text-align: center;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: all 0.3s ease;
}

.btn-text {
  position: relative;
  z-index: 1;
}

.btn-primary .btn-bg {
  background: linear-gradient(135deg, var(--neon-green-dark), var(--neon-green));
  box-shadow: 
    0 3px 0 #006622,
    0 5px 10px var(--accent-alpha-20);
}

.btn-primary .btn-text {
  color: var(--bg-dark);
  text-shadow: none;
}

.btn-primary:hover .btn-bg {
  transform: translateY(-2px);
  box-shadow: 
    0 5px 0 #006622,
    0 8px 15px var(--accent-alpha-30);
}

.btn-secondary .btn-bg {
  background: var(--accent-alpha-05);
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 6px var(--accent-alpha-15);
}

.btn-secondary .btn-text {
  color: var(--neon-green);
  text-shadow: none;
}

.btn-secondary:hover .btn-bg {
  background: var(--accent-alpha-10);
  box-shadow: 0 0 10px var(--accent-alpha-25);
}

/* ============================================
   MAIN VIEWPORT (CENTER)
   ============================================ */
.main-viewport {
  position: relative;
  background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px var(--accent-alpha-15);
}

.viewport-border {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}

.corner-tl, .corner-tr, .corner-bl, .corner-br {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--neon-green);
}

.corner-tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.corner-tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.corner-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.corner-br { bottom: 0; right: 0; border-left: none; border-top: none; }

.content-area {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.terminal-prompt {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  color: var(--neon-green);
  text-shadow: 0 0 10px var(--neon-green);
  animation: blink 1s step-end infinite;
}

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

.terminal-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--text-primary);
  flex: 1;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-alpha-40);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

.status-text {
  color: var(--neon-green);
  text-shadow: 0 0 4px var(--accent-alpha-30);
}

.mission-brief {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--neon-green);
}

/* ============================================
   FEATURED PROJECT
   ============================================ */
.featured-project {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-frame {
  position: relative;
  background: var(--bg-darker);
  border: 2px solid var(--neon-green);
  padding: 12px;
  box-shadow: 0 0 8px var(--accent-alpha-15);
}

.frame-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--neon-green-light);
}

.fc-tl { top: -3px; left: -3px; border-right: none; border-bottom: none; }
.fc-tr { top: -3px; right: -3px; border-left: none; border-bottom: none; }
.fc-bl { bottom: -3px; left: -3px; border-right: none; border-top: none; }
.fc-br { bottom: -3px; right: -3px; border-left: none; border-top: none; }

.project-display {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: var(--bg-darker);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-frame:hover .project-img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent 40%,
    var(--accent-alpha-10) 50%,
    transparent 60%
  );
  background-size: 200% 200%;
  animation: shineMove 3s linear infinite;
  pointer-events: none;
}

@keyframes shineMove {
  0% { background-position: 200% 200%; }
  100% { background-position: -200% -200%; }
}

.project-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.project-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 20px;
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--accent-alpha-40);
}

.project-meta {
  display: flex;
  gap: 8px;
}

.meta-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  padding: 6px 10px;
  background: var(--accent-alpha-05);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  text-shadow: 0 0 3px var(--accent-alpha-30);
  border-radius: 2px;
}

/* ============================================
   INVENTORY PANEL (RIGHT)
   ============================================ */
.inventory-panel {
  background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 0 10px var(--accent-alpha-15);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.item-slot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.item-frame {
  width: 100%;
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-color);
  padding: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.item-frame:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 8px var(--accent-alpha-25);
  transform: translateY(-4px);
}

.item-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.empty-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--border-color);
  font-family: 'Press Start 2P', monospace;
}

.item-slot.empty .item-frame {
  border-style: dashed;
}

.item-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 1px;
}

.item-slot:hover .item-label {
  color: var(--neon-green);
  text-shadow: 0 0 4px var(--accent-alpha-30);
}

/* ============================================
   PROJECT GALLERY
   ============================================ */
.project-gallery {
  padding: 20px;
  background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
  border: 2px solid var(--neon-green);
  border-radius: 8px;
  box-shadow: 0 0 10px var(--accent-alpha-10);
}

.gallery-header {
  margin-bottom: 24px;
  text-align: center;
}

.gallery-header .section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--accent-alpha-30);
  letter-spacing: 3px;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.gallery-header .title-bracket {
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--neon-green-dark);
  margin: 0 8px;
  line-height: 1;
  vertical-align: baseline;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--accent-alpha-30);
  letter-spacing: 3px;
  display: inline-block;
}

.title-bracket {
  color: var(--neon-green-dark);
  margin: 0 8px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.project-card {
  position: relative;
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-glow {
  position: absolute;
  inset: -2px;
  background: var(--neon-green);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  filter: blur(8px);
}

.project-card:hover .card-glow {
  opacity: 0.3;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--neon-green);
  box-shadow: 0 4px 15px var(--accent-alpha-25);
}

.card-content {
  position: relative;
  z-index: 1;
  background: var(--bg-darker);
}

.card-image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: var(--bg-darker);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
  transform: scale(1.1);
}

.card-hover {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .card-hover {
  opacity: 1;
}

.hover-text {
  font-family: 'Press Start 2P', monospace;
  font-size: 12px;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--accent-alpha-50);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-color);
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}

.card-level {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--neon-green);
  text-shadow: 0 0 4px var(--accent-alpha-30);
  padding: 6px 10px;
  background: var(--accent-alpha-05);
  border: 1px solid var(--neon-green);
  border-radius: 2px;
}

/* ============================================
   FOOTER STATUS BAR
   ============================================ */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(90deg, var(--panel-bg), var(--bg-dark));
  border: 2px solid var(--border-color);
  border-radius: 4px;
  font-family: 'VT323', monospace;
  font-size: 16px;
  gap: 20px;
  flex-wrap: wrap;
}

.status-left, .status-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-icon {
  color: var(--neon-green);
  font-size: 20px;
  animation: pulse 1.5s ease-in-out infinite;
}

.status-msg {
  color: var(--text-muted);
}

.status-msg a {
  color: var(--neon-green);
  text-decoration: none;
  text-shadow: 0 0 4px var(--accent-alpha-30);
  transition: all 0.2s ease;
}

.status-msg a:hover {
  color: var(--neon-green-light);
  text-shadow: 0 0 6px var(--accent-alpha-40);
}

.blink-text {
  color: var(--neon-green);
  animation: blink 1s step-end infinite;
}

/* ============================================
   RESPONSIVE DESIGN (UPDATED)
   ============================================ */
@media (max-width: 1200px) {
  .game-screen {
    grid-template-columns: 1fr;
  }
  
  .stats-panel,
  .inventory-panel {
    max-width: 100%;
  }
  
  .item-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .game-container {
    padding: 8px;
    gap: 8px;
  }
  
  .arcade-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  
  .player-name {
    font-size: 18px;
  }

  .player-class {
    font-size: 10px;
  }

  /* Home page layout fixes for mobile */
  .game-screen {
    gap: 12px;
  }

  .stats-panel,
  .main-viewport,
  .inventory-panel {
    padding: 12px;
  }

  .main-viewport {
    min-height: auto;
  }

  /* Hide viewport corner decorations on mobile to save space */
  .viewport-border {
    display: none;
  }

  .terminal-header {
    padding-bottom: 8px;
    gap: 8px;
  }

  .terminal-title {
    font-size: 16px;
  }

  .terminal-prompt {
    font-size: 12px;
  }

  .terminal-status {
    font-size: 8px;
  }

  .mission-brief {
    font-size: 12px;
    line-height: 1.5;
    padding: 10px;
  }

  .featured-project {
    gap: 12px;
  }

  .project-frame {
    padding: 8px;
  }

  .project-display {
    height: 180px;
  }

  .project-name {
    font-size: 14px;
  }

  .meta-badge {
    font-size: 7px;
    padding: 4px 8px;
  }

  /* Stats panel mobile */
  .stat-box {
    padding: 12px;
    gap: 6px;
  }

  .stat-label {
    font-size: 8px;
  }

  .stat-value {
    font-size: 24px;
  }

  .panel-title {
    font-size: 12px;
  }

  /* Inventory mobile */
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .item-label {
    font-size: 7px;
  }

  /* Action buttons */
  .action-buttons {
    gap: 8px;
  }

  .game-btn {
    padding: 10px 14px;
    font-size: 9px;
  }
  
  /* Mobile Hamburger Menu Positioning */
  .game-menu {
    width: 100%;
    display: flex;
    justify-content: flex-end; /* Align hamburger to right */
    position: relative; /* Ensure dropdown anchors here */
  }
  
  .menu-toggle {
    display: flex;
    pointer-events: auto; 
  }
  
  .menu-items {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    
    /* Full screen overlay */
    background: rgba(0, 0, 0, 0.98); 
    border: none;
    border-radius: 0;
    padding: 0;
    
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
  }

  /* Close button for mobile menu */
  .menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: transparent;
    border: 2px solid var(--neon-green);
    border-radius: 4px;
    color: var(--neon-green);
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
  }

  .menu-close:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    transform: rotate(90deg);
  }
  
  /* Visible state via JS toggle */
  .menu-items.active {
    opacity: 1;
    visibility: visible;
    padding: 80px 20px;
  }
  
  .menu-item {
    width: 95%;
    height: 80px;
    justify-content: center;
    background: transparent;
    border: 3px solid var(--neon-green);
    border-radius: 8px;
    padding: 0;
    font-size: 28px;
    text-align: center;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
  }
  
  .menu-item:last-child {
    border-bottom: 3px solid var(--neon-green);
  }

  .menu-item:hover, .menu-item.active {
    background: var(--neon-green);
    color: var(--bg-dark);
  }

  .menu-icon {
    font-size: 20px;
    margin-right: 15px;
  }
  
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .status-bar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .player-name {
    font-size: 16px;
  }
  
  .menu-item {
    font-size: 10px;
    padding: 10px 12px;
  }
  
  .section-title {
    font-size: 18px;
  }
}

/* Main container for projects page */
.projects-screen {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 600px;
  padding: 20px 0;
}

/* --- Control/Filter Bar --- */
.control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(90deg, var(--panel-bg), var(--bg-darker));
  border: 2px solid var(--border-color);
  border-radius: 8px;
  flex-wrap: wrap;
  gap: 20px;
}

.filter-group {
  display: flex;
  gap: 10px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-muted);
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 0 8px var(--accent-alpha-20);
}

.filter-btn.active {
  background: var(--neon-green);
  border-color: var(--neon-green);
  color: var(--bg-dark);
  box-shadow: 0 0 10px var(--accent-alpha-40);
}

/* --- Mission Grid --- */
.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 24px;
}

/* --- Mission Card (The Cartridge) --- */
.mission-card {
  background: var(--bg-darker);
  border: 2px solid var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mission-card:hover {
  border-color: var(--neon-green);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--accent-alpha-15);
}

.mission-status {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: 'VT323', monospace;
  font-size: 14px;
  padding: 2px 8px;
  z-index: 10;
  backdrop-filter: blur(2px);
}

.mission-status.warning {
  border-color: #ffcc00;
  color: #ffcc00;
}

/* Visual Area */
.mission-visual {
  height: 200px;
  width: 100%;
  position: relative;
  border-bottom: 2px solid var(--border-color);
  overflow: hidden;
}

.mission-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: grayscale(80%); /* Retro feel: desaturated by default */
}

.mission-card:hover .mission-visual img {
  transform: scale(1.1);
  filter: grayscale(0%); /* Full color on hover */
}

/* Website Preview iframes in cards */
.mission-visual.website-preview {
  background: var(--bg-dark);
}

.website-iframe {
  width: 100%;
  height: 100%;
  border: none;
  pointer-events: none; /* Prevent interaction on card, only in modal */
  transform: scale(0.8);
  transform-origin: top left;
  width: 125%; /* Scale compensation */
  height: 125%;
}

.iframe-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 5;
  pointer-events: none;
}

/* Code Placeholder for non-image projects */
.code-placeholder {
  width: 100%;
  height: 100%;
  background: #050505;
  color: var(--neon-green-dark);
  font-family: monospace;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Scanline animation over image on hover */
.scan-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--accent-alpha-20), transparent);
  transform: translateY(-100%);
  transition: none;
}

.mission-card:hover .scan-overlay {
  animation: singleScan 0.5s linear;
}

@keyframes singleScan {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* Info Area */
.mission-intel {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.mission-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.mission-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
  line-height: 1.2;
}

.mission-lvl {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-green);
  opacity: 0.7;
}

.mission-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
}

/* Tech Stack Badges */
.tech-stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tech-badge {
  font-family: 'VT323', monospace;
  font-size: 14px;
  padding: 2px 8px;
  background: var(--accent-alpha-05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 2px;
}

.mission-card:hover .tech-badge {
  border-color: var(--neon-green-dark);
  color: var(--neon-green);
}

/* Action Button */
.mission-actions {
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px dashed var(--border-color);
}

.action-btn {
  display: block;
  text-align: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--neon-green);
  text-decoration: none;
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.btn-bracket {
  color: var(--text-muted);
  transition: color 0.2s;
}

.action-btn:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
}

.action-btn:hover .btn-bracket {
  color: var(--bg-dark);
}

/* Mobile Adjustments for Projects */
@media (max-width: 768px) {
  .control-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-group {
    width: 100%;
    overflow-x: auto; /* Allow scrolling if too many tags */
    padding-bottom: 5px;
  }
  
  .filter-btn {
    flex-shrink: 0;
  }
  
  .mission-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
}


/* ============================================
   ABOUT PAGE - STACKED LAYERED LAYOUT
   ============================================ */
.about-stacked {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Character Showcase at Top */
.character-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.8), rgba(10, 10, 10, 0.6));
  border: 3px solid var(--neon-green);
  border-radius: 8px;
  box-shadow: 0 0 20px var(--accent-alpha-15);
  overflow: hidden;
}

.showcase-glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, var(--accent-alpha-08), transparent 70%);
  animation: glowPulse 4s ease-in-out infinite;
  z-index: 0;
}

/* Big Centered Samurai */
.samurai-display {
  width: 256px;
  height: 256px;
  background: center/contain no-repeat;
  image-rendering: pixelated;
  position: relative;
  z-index: 5;
  filter: drop-shadow(0 10px 30px var(--accent-alpha-25));
  animation: characterFloat 4s ease-in-out infinite;
  margin-bottom: 30px;
}

/* Character Title & Subtitle */
.character-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: var(--neon-green);
  text-shadow: 0 0 15px var(--accent-alpha-50);
  letter-spacing: 6px;
  margin-bottom: 10px;
  z-index: 5;
  position: relative;
}

.title-bracket {
  color: var(--neon-green-dark);
  font-size: 36px;
}

.character-subtitle {
  font-family: 'VT323', monospace;
  font-size: 24px;
  color: var(--text-muted);
  letter-spacing: 3px;
  z-index: 5;
  position: relative;
}

/* Info Sections - Common Styles */
.info-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-section {
  background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
  border: 2px solid var(--border-color);
  border-radius: 6px;
  padding: 25px 30px;
  transition: all 0.3s ease;
}

.info-section:hover {
  border-color: var(--neon-green);
  box-shadow: 0 0 12px var(--accent-alpha-10);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-color);
}

.header-icon {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--neon-green);
  animation: blink 1.5s step-end infinite;
}

.section-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  color: var(--neon-green);
  letter-spacing: 2px;
  text-shadow: 0 0 6px var(--accent-alpha-30);
}

.section-content {
  font-family: 'VT323', monospace;
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-primary);
}

.section-content p {
  margin-bottom: 15px;
}

.section-content p:last-child {
  margin-bottom: 0;
}

/* Stats Row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.stat-item {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--border-color);
  padding: 20px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  border-color: var(--neon-green);
  background: var(--accent-alpha-04);
}

.stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.stat-value {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--neon-green);
  text-shadow: 0 0 6px var(--accent-alpha-40);
}

/* Skills Grid */
.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.skill-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-name {
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.skill-bar {
  height: 14px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-green-dark), var(--neon-green));
  box-shadow: 0 0 6px var(--accent-alpha-40);
  animation: fillPulse 1.5s ease-in-out infinite;
  transition: width 1s ease;
}

/* Tech List */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tech-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 10px 16px;
  background: var(--accent-alpha-04);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  border-radius: 3px;
  text-shadow: 0 0 4px var(--accent-alpha-30);
  transition: all 0.2s ease;
}

.tech-badge:hover {
  background: var(--accent-alpha-10);
  box-shadow: 0 0 10px var(--accent-alpha-20);
  transform: translateY(-2px);
}

/* Actions Section */
.action-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.action-link {
  font-family: 'Press Start 2P', monospace;
  font-size: 11px;
  padding: 14px 24px;
  background: var(--accent-alpha-04);
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  display: inline-block;
  min-width: 200px;
  text-align: center;
}

.action-link:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
  box-shadow: 0 0 15px var(--accent-alpha-30);
  transform: translateY(-3px);
}

.action-link .btn-bracket {
  color: var(--text-muted);
  transition: color 0.3s;
}

.action-link:hover .btn-bracket {
  color: var(--bg-dark);
}

/* About Page Mobile */
@media (max-width: 768px) {
  .about-stacked { padding: 12px; gap: 20px; }
  .character-showcase { padding: 40px 20px; }
  .samurai-display { width: 180px; height: 180px; margin-bottom: 20px; }
  .character-title { font-size: 28px; letter-spacing: 3px; }
  .title-bracket { font-size: 22px; }
  .character-subtitle { font-size: 18px; text-align: center; }
  .info-section { padding: 20px; }
  .section-title { font-size: 12px; }
  .section-content { font-size: 18px; }
  .stats-row { grid-template-columns: 1fr; gap: 15px; }
  .stat-item { padding: 15px; }
  .stat-value { font-size: 18px; }
  .skill-name { font-size: 9px; }
  .tech-badge { font-size: 8px; padding: 8px 12px; }
  .action-buttons { flex-direction: column; }
  .action-link { width: 100%; font-size: 10px; padding: 12px 20px; }
}


/* ============================================
   MODAL SYSTEM
   ============================================ */

/* --- Backdrop (the dark layer behind everything) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-backdrop.modal-active {
  opacity: 1;
  visibility: visible;
}

/* --- "ACCESSING FILE..." flash text --- */
.modal-access-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--neon-green);
  text-shadow: 0 0 12px var(--accent-alpha-70);
  letter-spacing: 4px;
  z-index: 5010;

  /* Hidden */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-access-text.access-visible {
  opacity: 1;
  visibility: visible;
  animation: accessFlicker 0.08s step-end infinite;
}

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

/* --- The CRT Shell (the box that does the power-on expand) --- */
.modal-shell {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  max-height: 88vh;
  background: var(--bg-darker);
  border: 2px solid var(--neon-green);
  border-radius: 6px;
  box-shadow:
    0 0 20px var(--accent-alpha-25),
    0 0 60px var(--accent-alpha-08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  z-index: 5005;

  /* CRT power-off state: collapsed to a horizontal line */
  transform: scaleY(0.008);
  opacity: 0.4;
  transition: none; /* animations handle it */
}

/* --- OPEN animation: the CRT powering ON --- */
.modal-shell.modal-open {
  animation: crtPowerOn 0.45s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}

@keyframes crtPowerOn {
  0%   { transform: scaleY(0.008); opacity: 0.4; }
  30%  { transform: scaleY(0.06);  opacity: 0.9; } /* quick initial stretch */
  45%  { transform: scaleY(1.04);  opacity: 1; }   /* slight overshoot */
  60%  { transform: scaleY(0.97);  opacity: 1; }   /* settle back */
  75%  { transform: scaleY(1.01);  opacity: 1; }   /* tiny bounce */
  100% { transform: scaleY(1);     opacity: 1; }   /* locked */
}

/* --- CLOSE animation: the CRT powering OFF --- */
.modal-shell.modal-closing {
  animation: crtPowerOff 0.35s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes crtPowerOff {
  0%   { transform: scaleY(1);     opacity: 1; }
  40%  { transform: scaleY(0.04);  opacity: 0.8; }
  70%  { transform: scaleY(0.012); opacity: 0.3; }
  100% { transform: scaleY(0.008); opacity: 0; }
}

/* --- Green scanline flash that sweeps across on open --- */
.modal-scanline-flash {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--accent-alpha-18) 45%,
    var(--accent-alpha-25) 50%,
    var(--accent-alpha-18) 55%,
    transparent 100%
  );
  transform: translateY(-100%);
  opacity: 0;
}

.modal-shell.modal-open .modal-scanline-flash {
  animation: modalScanFlash 0.6s ease-out 0.15s forwards;
}

@keyframes modalScanFlash {
  0%   { transform: translateY(-100%); opacity: 1; }
  100% { transform: translateY(100%);  opacity: 0; }
}

/* --- Inner layout: image left, info right --- */
.modal-inner {
  display: flex;
  height: 100%;
  max-height: 88vh;
  position: relative;
}

/* --- Close button (top-right corner) --- */
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 20;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 7px 12px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.2s ease;
}

.modal-close .btn-bracket {
  color: var(--text-muted);
  transition: color 0.2s;
}

.modal-close:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
  box-shadow: 0 0 10px var(--accent-alpha-40);
}

.modal-close:hover .btn-bracket {
  color: var(--bg-dark);
}

/* ===== LEFT PANEL: Image ===== */
.modal-image-panel {
  flex: 1.7;
  min-width: 0;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-right: 2px solid var(--border-color);
}

.modal-image-frame {
  position: relative;
  width: 100%;
  height: 100%;
  max-height: calc(88vh - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Corner decorations on the image frame */
.modal-frame-corner {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid var(--neon-green-light);
  z-index: 5;
  pointer-events: none;
}
.modal-frame-corner.fc-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.modal-frame-corner.fc-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.modal-frame-corner.fc-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.modal-frame-corner.fc-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* The actual image */
.modal-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 2px solid var(--border-color);

  /* Starts greyscale, transitions to color after shell opens */
  filter: grayscale(100%);
  transition: filter 0.6s ease 0.3s;
}

.modal-image.modal-img-reveal {
  filter: grayscale(0%);
}

/* Modal iframe for websites */
.modal-iframe {
  display: none;
  width: 100%;
  height: 100%;
  border: 2px solid var(--border-color);
  background: var(--bg-dark);
}

/* Subtle scanline overlay on the modal image */
.modal-image-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
  z-index: 3;
}

/* ===== RIGHT PANEL: Info ===== */
.modal-info-panel {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
  padding: 40px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

/* Title row with blinking cursor */
.modal-info-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 16px;
}

.modal-cursor {
  font-family: 'Press Start 2P', monospace;
  font-size: 18px;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--accent-alpha-60);
  animation: blink 1s step-end infinite;
  flex-shrink: 0;
}

.modal-title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--neon-green);
  text-shadow: 0 0 8px var(--accent-alpha-40);
  letter-spacing: 2px;
  line-height: 1.2;
}

/* Status + Level badges row */
.modal-meta-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.modal-status-badge {
  font-family: 'VT323', monospace;
  font-size: 15px;
  color: var(--neon-green);
  letter-spacing: 1px;
}

.modal-lvl-badge {
  font-family: 'Press Start 2P', monospace;
  font-size: 8px;
  color: var(--neon-green);
  padding: 5px 10px;
  background: var(--accent-alpha-08);
  border: 1px solid var(--neon-green);
  border-radius: 2px;
  text-shadow: 0 0 4px var(--accent-alpha-30);
}

/* Description text */
.modal-desc {
  font-family: 'VT323', monospace;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 14px;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--neon-green-dark);
  border-radius: 0 4px 4px 0;
}

/* "TECH STACK" label above tags */
.modal-tags-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 2px;
  margin-top: 4px;
}

/* Tag container */
.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Individual tag — staggered pop-in */
.modal-tag {
  font-family: 'Press Start 2P', monospace;
  font-size: 9px;
  padding: 8px 14px;
  background: var(--accent-alpha-08);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  border-radius: 3px;
  text-shadow: 0 0 6px var(--accent-alpha-50);
  box-shadow: 0 0 8px var(--accent-alpha-12);

  /* Start invisible, animate in with stagger (delay set inline by JS) */
  opacity: 0;
  transform: translateY(10px) scale(0.9);
  animation: tagPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes tagPopIn {
  0%   { opacity: 0; transform: translateY(10px) scale(0.9); }
  60%  { opacity: 1; transform: translateY(-3px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtle glow pulse on tags after they pop in */
.modal-tag {
  animation: tagPopIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             tagGlow 2s ease-in-out 0.7s infinite;
}

@keyframes tagGlow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-alpha-12); }
  50%      { box-shadow: 0 0 14px var(--accent-alpha-30); }
}


/* ============================================
   MODAL RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .modal-shell {
    width: 95vw;
    max-width: 95vw;
  }

  .modal-inner {
    flex-direction: column;
  }

  .modal-image-panel {
    flex: none;
    height: 45vh;
    border-right: none;
    border-bottom: 2px solid var(--border-color);
    padding: 16px;
  }

  .modal-info-panel {
    flex: none;
    min-width: unset;
    max-width: 100%;
    max-height: 40vh;
    padding: 20px;
    overflow-y: auto;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
    font-size: 8px;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .modal-image-panel {
    height: 38vh;
  }

  .modal-info-panel {
    max-height: 42vh;
    padding: 16px;
  }

  .modal-title {
    font-size: 15px;
  }

  .modal-tag {
    font-size: 8px;
    padding: 6px 10px;
  }
}

/* ============================================
   CONTACT PAGE - SIMPLE CARD DESIGN
   ============================================ */
.contact-screen {
  padding: 30px 15px;
  min-height: calc(100vh - 150px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-page-container {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.contact-page-title {
  font-family: 'Press Start 2P', monospace;
  font-weight: 900;
  font-size: 56px;
  color: var(--neon-green);
  letter-spacing: 8px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  max-width: 100%;
  overflow: visible;
  padding: 0 12px;
  box-sizing: border-box;
}

.title-bracket {
  color: var(--neon-green);
  font-size: 64px;
  font-family: 'Press Start 2P', monospace;
}

.card-instruction {
  font-family: 'VT323', monospace;
  font-size: 20px;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 2px;
  animation: blink 2s step-end infinite;
}

/* ===== BUSINESS CARD - REDESIGNED ===== */
.business-card-wrapper {
  perspective: 2000px;
  width: 100%;
  max-width: 700px;
  height: 450px;
}

.business-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.business-card.is-flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: linear-gradient(135deg, #0f0f0f 0%, #050505 100%);
  border: 3px solid var(--neon-green);
  border-radius: 16px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.9),
    0 0 50px var(--accent-alpha-30),
    inset 0 2px 0 rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.card-back {
  transform: rotateY(180deg);
  transform-style: preserve-3d;
}


.card-decorative-stripe {
  display: none;
}

.card-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 50px 60px;
  display: flex;
  align-items: center;
  gap: 50px;
}

/* FRONT SIDE - Logo left, text centered vertically on right */
.card-front .card-inner {
  flex-direction: row;
}

.card-logo-circle {
  width: 160px;
  height: 160px;
  min-width: 160px;
  border: 3px solid var(--neon-green);
  border-radius: 50%;
  padding: 30px;
  background: rgba(0, 0, 0, 0.9);
  box-shadow: 
    0 0 40px var(--accent-alpha-40),
    inset 0 0 30px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px var(--neon-green));
}

.card-text-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.card-name {
  font-family: 'Pixelify Sans', 'Press Start 2P', monospace;
  font-size: 42px;
  font-weight: 700;
  color: var(--neon-green);
  text-shadow: 
    0 0 20px var(--neon-green),
    0 0 40px var(--accent-alpha-50);
  letter-spacing: 3px;
  line-height: 1.2;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 12px 0;
  border-top: 2px solid var(--border-color);
  border-bottom: 2px solid var(--border-color);
}

.card-tagline {
  font-family: 'VT323', monospace;
  font-size: 18px;
  color: var(--text-muted);
  letter-spacing: 4px;
}

/* BACK SIDE - Contact Info */
.card-back .card-inner {
  width: 100%;
  box-sizing: border-box;
  flex-direction: column;
  justify-content: flex-start;
  padding: 35px 25px 25px;
  gap: 0;
}

.card-back-header {
  font-family: 'Pixelify Sans', 'Press Start 2P', monospace;
  font-size: 32px;
  font-weight: 600;
  color: var(--neon-green);
  text-shadow: 0 0 20px var(--neon-green);
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: 28px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 18px 28px;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-color);
  border-left: 4px solid var(--neon-green);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.contact-row:hover {
  border-color: var(--neon-green);
  background: var(--accent-alpha-08);
  transform: translateX(10px);
  box-shadow: 0 0 20px var(--accent-alpha-20);
}

.contact-icon {
  font-size: 28px;
  filter: grayscale(100%) brightness(0.7);
  min-width: 28px;
}

.contact-row span,
.contact-row a {
  font-family: 'Orbitron', sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.contact-row a:hover {
  color: var(--neon-green);
}

/* ===== SOCIAL LINKS ROW - LinkedIn, GitHub, Instagram (all viewports: PC, tablet, mobile) ===== */
.social-links-row {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 35px;
  margin-top: 30px;
  padding-top: 0;
  border-top: none;
  width: 100%;
  max-width: 700px;
  position: relative;
  z-index: 20;
}

.social-link {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-muted);
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
  z-index: 25;
}

.social-link:hover {
  transform: translateY(-8px) scale(1.2);
  border-color: var(--neon-green);
  color: var(--neon-green);
  box-shadow: 0 15px 40px var(--accent-alpha-50);
}

.social-link svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* LinkedIn specific color */
.social-link.linkedin-link:hover {
  border-color: #0077b5;
  color: #0077b5;
  box-shadow: 0 15px 40px rgba(0, 119, 181, 0.5);
}

/* GitHub specific color */
.social-link.github-link:hover {
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
}

/* Instagram hover color */
.social-link.instagram-link:hover {
  border-color: #e4405f;
  color: #e4405f;
  box-shadow: 0 15px 40px rgba(228, 64, 95, 0.5);
}

/* ===== ACTION BUTTONS - CLEAN GAME STYLE ===== */
.contact-action-buttons {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

.contact-btn {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 40px;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 3px solid var(--neon-green);
}

.contact-btn.primary {
  background: var(--neon-green);
  color: var(--bg-dark);
  box-shadow: 0 0 20px var(--accent-alpha-40);
}

.contact-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-alpha-60);
}

.contact-btn.primary .btn-bracket {
  color: var(--bg-dark);
  font-size: 16px;
}

.contact-btn.secondary {
  background: transparent;
  color: var(--neon-green);
  box-shadow: 0 0 15px var(--accent-alpha-20);
}

.contact-btn.secondary:hover {
  background: var(--neon-green);
  color: var(--bg-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-alpha-60);
}

.contact-btn.secondary:hover .btn-bracket {
  color: var(--bg-dark);
}

.btn-bracket {
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 1024px) {
  .contact-page-title {
    font-size: 42px;
    gap: 12px;
    letter-spacing: 4px;
  }

  .title-bracket {
    font-size: 50px;
  }

  .business-card-wrapper {
    max-width: 95%;
    height: 420px;
  }

  .card-inner {
    padding: 30px 40px;
    gap: 30px;
  }

  .card-logo-circle {
    width: 130px;
    height: 130px;
    padding: 20px;
  }

  .card-name {
    font-size: 32px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-tagline {
    font-size: 14px;
  }

  .card-back-header {
    font-size: 66px;
    margin-bottom: 20px;
  }

  .contact-row {
    padding: 14px 20px;
  }

  .contact-row span,
  .contact-row a {
    font-size: 17px;
  }

  .social-links-row {
    gap: 28px;
  }

  .social-link {
    width: 56px;
    height: 56px;
  }

  .social-link svg {
    width: 30px;
    height: 30px;
  }

  .contact-btn {
    padding: 14px 35px;
    font-size: 12px;
  }
}

@media (max-width: 768px) {
  .contact-screen {
    padding: 25px 12px;
  }

  .contact-page-container {
    gap: 20px;
  }

  .contact-page-title {
    font-size: 24px;
    gap: 6px;
    letter-spacing: 2px;
    line-height: 1.2;
  }

  .contact-page-title .title-bracket {
    font-size: 22px;
  }

  .card-instruction {
    font-size: 13px;
    margin-bottom: 8px;
    display: none;
  }

  .business-card-wrapper {
    width: 100%;
    max-width: 100%;
    height: 450px;
  }

  /* Mobile: no 3D flip — swap front/back with opacity so back text is never mirrored */
  .business-card {
    transform: none !important;
    transform-style: flat;
  }
  .business-card.is-flipped {
    transform: none !important;
  }
  .card-face {
    backface-visibility: visible;
    -webkit-backface-visibility: visible;
    transition: opacity 0.35s ease;
  }
  .card-front {
    opacity: 1;
    z-index: 2;
  }
  .business-card.is-flipped .card-front {
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }
  .card-back {
    transform: none !important;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
  }
  .business-card.is-flipped .card-back {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
  }

  .card-front .card-inner {
    flex-direction: column;
    padding: 30px 20px;
    gap: 20px;
  }

  .card-logo-circle {
    width: 150px;
    height: 150px;
    padding: 18px;
  }

  .card-name {
    font-size: 32px;
    letter-spacing: 2px;
  }

  .card-title {
    font-size: 17px;
    padding: 10px 0;
  }

  .card-tagline {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .card-back .card-inner {
    padding: 28px 18px 20px;
  }

  .card-back-header {
    font-size: 35px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    margin-top: 15px;
  }

  .contact-list {
    gap: 11px;
    margin-top: 15px;
  }

  .contact-row {
    padding: 14px 16px;
    gap: 16px;
    border-radius: 6px;
    border-left-width: 3px;
  }

  .contact-row span,
  .contact-row a {
    font-size: 17px;
    letter-spacing: 0.5px;
  }

  .contact-icon {
    font-size: 24px;
    min-width: 24px;
  }

  .social-links-row {
    gap: 24px;
    margin-top: 18px;
    max-width: 100%;
    width: 100%;
    padding: 0;
    display: flex;
  }

  .social-link {
    width: 54px;
    height: 54px;
  }

  .social-link svg {
    width: 28px;
    height: 28px;
  }

  .contact-action-buttons {
    flex-direction: column;
    width: 100%;
    margin: 15px 0 0 0;
    padding: 0;
    gap: 12px;
    display: none;
  }

  .contact-btn {
    width: 100%;
    padding: 14px 20px;
    font-size: 12px;
    letter-spacing: 1px;
    border: 2px solid var(--neon-green);
  }

  .btn-bracket {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contact-screen {
    padding: 20px 12px;
  }

  .contact-page-container {
    gap: 15px;
  }

  .contact-page-title {
    font-size: 28px;
    gap: 4px;
    letter-spacing: 1px;
  }

  .contact-page-title .title-bracket {
    font-size: 23px;
  }

  .card-instruction {
    display: none;
  }

  .business-card-wrapper {
    width: 100%;
    height: 450px;
  }

  .card-front .card-inner {
    padding: 28px 20px;
    gap: 18px;
  }

  .card-logo-circle {
    width: 140px;
    height: 140px;
    padding: 16px;
  }

  .card-name {
    font-size: 30px;
    letter-spacing: 1px;
  }

  .card-title {
    font-size: 16px;
    padding: 8px 0;
  }

  .card-tagline {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .card-back .card-inner {
    padding: 24px 18px 18px;
  }

  .card-back-header {
    font-size: 31px;
    margin-bottom: 16px;
  }

  .contact-list {
    gap: 10px;
  }

  .contact-row {
    padding: 13px 14px;
    gap: 14px;
    border-left-width: 3px;
  }

  .contact-row span,
  .contact-row a {
    font-size: 16px;
  }

  .contact-icon {
    font-size: 22px;
  }

  .social-links-row {
    margin-top: 20px;
    gap: 20px;
  }

  .social-link {
    width: 50px;
    height: 50px;
  }

  .social-link svg {
    width: 26px;
    height: 26px;
  }

  .contact-action-buttons {
    display: flex;
    flex-direction: column;
    margin-top: 18px;
    gap: 12px;
  }

  .contact-btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 11px;
    border: 2px solid var(--neon-green);
  }

  .btn-bracket {
    font-size: 12px;
  }
}

@keyframes blink {
  0%, 49% {
    opacity: 1;
  }
  50%, 100% {
    opacity: 0;
  }
}
 /* ── ABOUT PAGE BASE ── */
    .about-screen {
      padding: 20px 0 40px;
      min-height: auto;
      display: block;
      position: relative;
    }

    #matrixCanvas {
      position: fixed;
      inset: 0;
      z-index: 0;
      pointer-events: none;
      opacity: 0.07;
    }

    /* ── CHARACTER SHEET LAYOUT ── */
    .char-sheet {
      display: grid;
      grid-template-columns: 300px 1fr;
      gap: 24px;
      width: 100%;
      position: relative;
      z-index: 1;
    }

    /* ── LEFT COLUMN ── */
    .char-card {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .char-portrait {
      background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
      border: 2px solid var(--neon-green);
      border-radius: 8px;
      padding: 28px 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      box-shadow: 0 0 20px var(--accent-alpha-15);
      position: relative;
      overflow: hidden;
    }

    .portrait-frame {
      width: 140px; height: 140px;
      border: 3px solid var(--neon-green);
      border-radius: 4px;
      padding: 12px;
      background: rgba(0,0,0,0.7);
      box-shadow: 0 0 20px var(--accent-alpha-25), inset 0 0 20px rgba(0,0,0,0.5);
    }

    .portrait-img {
      width: 100%; height: 100%;
      object-fit: contain;
      image-rendering: pixelated;
      filter: drop-shadow(0 0 10px var(--accent-alpha-40));
    }

    .portrait-img.glitching {
      animation: logoGlitch 0.4s steps(2) forwards;
    }

    @keyframes logoGlitch {
      0%  { clip-path: inset(5% 0 85% 0);  transform: translateX(-6px); filter: hue-rotate(90deg)  saturate(3) drop-shadow(0 0 10px var(--accent-alpha-40)); }
      15% { clip-path: inset(40% 0 40% 0); transform: translateX(6px);  filter: hue-rotate(180deg) saturate(3) drop-shadow(0 0 10px var(--accent-alpha-40)); }
      30% { clip-path: inset(70% 0 10% 0); transform: translateX(-4px); filter: hue-rotate(270deg) saturate(3) drop-shadow(0 0 10px var(--accent-alpha-40)); }
      45% { clip-path: inset(20% 0 60% 0); transform: translateX(4px);  filter: hue-rotate(0deg)   saturate(1) drop-shadow(0 0 10px var(--accent-alpha-40)); }
      60% { clip-path: inset(80% 0 5% 0);  transform: translateX(-3px); filter: hue-rotate(120deg) saturate(2) drop-shadow(0 0 10px var(--accent-alpha-40)); }
      75% { clip-path: inset(10% 0 70% 0); transform: translateX(3px);  filter: hue-rotate(240deg) saturate(2) drop-shadow(0 0 10px var(--accent-alpha-40)); }
      100%{ clip-path: none;               transform: translateX(0);    filter: drop-shadow(0 0 10px var(--accent-alpha-40)); }
    }

    /* ── NAME GLITCH ── */
    .char-name {
      font-family: 'Orbitron', sans-serif;
      font-weight: 900;
      font-size: 18px;
      color: var(--neon-green);
      text-shadow: 0 0 10px var(--accent-alpha-60);
      letter-spacing: 2px;
      text-align: center;
      position: relative;
      cursor: default;
    }

    .char-name::before,
    .char-name::after {
      content: attr(data-text);
      position: absolute;
      inset: 0;
      clip-path: inset(0 0 100% 0);
    }

    .char-name.glitch-active::before {
      color: #ff006e;
      transform: translateX(-3px);
      animation: glitchSlice1 0.3s steps(3) forwards;
    }
    .char-name.glitch-active::after {
      color: #00d9ff;
      transform: translateX(3px);
      animation: glitchSlice2 0.3s steps(3) forwards;
    }

    @keyframes glitchSlice1 {
      0%  { clip-path: inset(10% 0 70% 0); transform: translateX(-4px); }
      33% { clip-path: inset(40% 0 40% 0); transform: translateX(-2px); }
      66% { clip-path: inset(70% 0 10% 0); transform: translateX(-6px); }
      100%{ clip-path: inset(0 0 100% 0);  transform: translateX(0); }
    }
    @keyframes glitchSlice2 {
      0%  { clip-path: inset(60% 0 20% 0); transform: translateX(4px); }
      33% { clip-path: inset(20% 0 60% 0); transform: translateX(2px); }
      66% { clip-path: inset(5%  0 80% 0); transform: translateX(6px); }
      100%{ clip-path: inset(0 0 100% 0);  transform: translateX(0); }
    }

    .char-class-tag {
      font-family: 'Press Start 2P', monospace;
      font-size: 8px;
      color: var(--bg-dark);
      background: var(--neon-green);
      padding: 6px 14px;
      border-radius: 2px;
      letter-spacing: 1px;
    }

    .char-level-row { display: flex; align-items: center; gap: 10px; width: 100%; }
    .lvl-label { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--text-muted); white-space: nowrap; }
    .lvl-bar { flex: 1; height: 12px; background: rgba(0,0,0,0.6); border: 1px solid var(--border-color); border-radius: 2px; overflow: hidden; }
    .lvl-fill { height: 100%; width: 72%; background: linear-gradient(90deg, var(--neon-green-dark), var(--neon-green)); }

    .char-attrs {
      background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
      border: 2px solid var(--border-color);
      border-radius: 8px;
      padding: 16px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 10px;
    }

    .attr-box {
      background: rgba(0,0,0,0.4);
      border: 1px solid var(--border-color);
      border-radius: 4px;
      padding: 12px 8px;
      display: flex;
      flex-direction: column;
      gap: 4px;
      text-align: center;
      transition: all 0.2s ease;
    }
    .attr-box:hover { border-color: var(--neon-green); background: var(--accent-alpha-05); }

    .attr-label { font-family: 'Press Start 2P', monospace; font-size: 7px; color: var(--text-muted); }
    .attr-value { font-family: 'Orbitron', sans-serif; font-weight: 900; font-size: 22px; color: var(--neon-green); text-shadow: 0 0 8px var(--accent-alpha-50); line-height: 1; }
    .attr-sub   { font-family: 'VT323', monospace; font-size: 12px; color: var(--text-muted); }

    /* ── RIGHT COLUMN ── */
    .char-info { display: flex; flex-direction: column; gap: 16px; }

    .info-block {
      background: linear-gradient(180deg, var(--panel-bg), var(--bg-darker));
      border: 2px solid var(--border-color);
      border-radius: 8px;
      padding: 20px 24px;
      box-shadow: 0 0 10px var(--accent-alpha-08);
      transition: border-color 0.3s ease;
    }
    .info-block:hover { border-color: var(--neon-green); }

    .block-label {
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      color: var(--neon-green);
      letter-spacing: 2px;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .block-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--neon-green-dark), transparent); }

    /* ── TYPEWRITER BIO ── */
    .bio-text {
      font-family: 'VT323', monospace;
      font-size: 20px;
      line-height: 1.7;
      color: var(--text-primary);
      padding: 16px 18px;
      background: rgba(0,0,0,0.35);
      border-left: 3px solid var(--neon-green);
      border-radius: 0 4px 4px 0;
      min-height: 100px;
    }

    .bio-cursor {
      display: inline-block;
      width: 10px; height: 18px;
      background: var(--neon-green);
      vertical-align: middle;
      margin-left: 2px;
      animation: blink 0.8s step-end infinite;
    }

    /* ── SKILLS ── */
    .skill-bars { display: flex; flex-direction: column; gap: 14px; }
    .skill-row  { display: flex; flex-direction: column; gap: 6px; }
    .skill-row-top { display: flex; justify-content: space-between; align-items: baseline; }
    .skill-name-label { font-family: 'Press Start 2P', monospace; font-size: 8px; color: var(--text-primary); letter-spacing: 1px; }
    .skill-pct        { font-family: 'VT323', monospace; font-size: 18px; color: var(--neon-green); }

    .skill-track { height: 14px; background: rgba(0,0,0,0.6); border: 1px solid var(--border-color); border-radius: 2px; overflow: hidden; }
    .skill-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--neon-green-dark), var(--neon-green));
      box-shadow: 0 0 6px var(--accent-alpha-40);
      border-radius: 2px;
    }

    /* ── TECH PILLS ── */
    .tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
    .tech-pill {
      font-family: 'Press Start 2P', monospace;
      font-size: 8px;
      padding: 8px 12px;
      background: var(--accent-alpha-05);
      border: 1px solid var(--neon-green);
      color: var(--neon-green);
      border-radius: 2px;
      transition: all 0.2s ease;
      cursor: default;
    }
    .tech-pill:hover { background: var(--neon-green); color: var(--bg-dark); transform: translateY(-3px); }

    /* ── CTA ── */
    .cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
    .cta-btn {
      flex: 1; min-width: 140px;
      text-align: center;
      font-family: 'Press Start 2P', monospace;
      font-size: 9px;
      padding: 14px 20px;
      text-decoration: none;
      letter-spacing: 1px;
      border-radius: 4px;
      transition: all 0.3s ease;
    }
    .cta-primary  { background: var(--neon-green); color: var(--bg-dark); border: 2px solid var(--neon-green-light); box-shadow: 0 0 15px var(--accent-alpha-25); }
    .cta-primary:hover  { box-shadow: 0 0 25px var(--accent-alpha-50); transform: translateY(-3px); }
    .cta-secondary { background: transparent; color: var(--neon-green); border: 2px solid var(--neon-green); }
    .cta-secondary:hover { background: var(--neon-green); color: var(--bg-dark); transform: translateY(-3px); }

    /* ── RESPONSIVE ── */
    @media (max-width: 960px) {
      .char-sheet { grid-template-columns: 1fr; }
      .char-card  { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
    }
    @media (max-width: 600px) {
      .char-card  { grid-template-columns: 1fr; }
      .char-name  { font-size: 14px; }
      .bio-text   { font-size: 17px; }
      .cta-row    { flex-direction: column; }
      .cta-btn    { min-width: unset; width: 100%; }
    }
