/* ==========================================================================
   TRI WAHYUDI // 16-BIT RETRO CLASSIC PORTFOLIO
   Modular Tab-Based SPA (Responsive Across All Mobile, Tablet & Desktop Screens)
   ========================================================================== */

:root {
  /* 16-Bit Color Palette */
  --bg-deep: #090414;
  --bg-surface: #120924;
  --bg-card: #180e2e;
  --bg-card-alt: #221542;
  --border-dark: #000000;
  --border-light: #3d2b6b;

  /* Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-pink: #ff007f;
  --neon-yellow: #ffcc00;
  --neon-green: #39ff14;
  --neon-red: #ff3344;

  /* Typography */
  --font-pixel: 'Press Start 2P', monospace;
  --font-silk: 'Silkscreen', 'Press Start 2P', monospace;
  --font-vt: 'VT323', monospace;
}

/* CSS RESET */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  image-rendering: pixelated;
}

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

body {
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(181, 55, 242, 0.15), transparent 45%),
    linear-gradient(rgba(18, 9, 36, 0.95), rgba(9, 4, 20, 0.98)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.3) 2px, rgba(0, 0, 0, 0.3) 4px);
  color: #e5e5f0;
  font-family: var(--font-silk), var(--font-pixel), monospace;
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

/* CRT EFFECTS */
.crt-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.22) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.02),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.02)
  );
  background-size: 100% 3px, 6px 100%;
}

.crt-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9998;
  box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.6);
}

body.crt-active .crt-overlay {
  display: block;
}

/* NEON UTILITIES */
.neon-green  { color: var(--neon-green) !important; text-shadow: 0 0 6px rgba(57, 255, 20, 0.6); }
.neon-cyan   { color: var(--neon-cyan) !important; text-shadow: 0 0 6px rgba(0, 240, 255, 0.6); }
.neon-pink   { color: var(--neon-pink) !important; text-shadow: 0 0 6px rgba(255, 0, 127, 0.6); }
.neon-yellow { color: var(--neon-yellow) !important; text-shadow: 0 0 6px rgba(255, 204, 0, 0.6); }
.neon-red    { color: var(--neon-red) !important; text-shadow: 0 0 6px rgba(255, 51, 68, 0.6); }

/* TOP HUD */
.retro-hud {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(14, 8, 26, 0.98);
  border-bottom: 3px solid #000;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.hud-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #000;
  padding: 5px 8px;
  border: 1px solid #3d2b6b;
}

.hud-label {
  color: #8b7ca8;
  font-size: 0.5rem;
}

.hud-val {
  font-weight: bold;
}

.hud-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-btn {
  background: #251644;
  border: 2px solid #000;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 5px 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.1s;
}

.hud-btn:hover {
  background: var(--neon-pink);
  color: #000;
}

.hud-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

/* RETRO SCREEN NAVIGATION (SPA TABS) */
.retro-nav {
  background: #140b2b;
  border-bottom: 3px solid #000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 48px;
  z-index: 190;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 12px;
}

.nav-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-tab-btn {
  background: #0a0417;
  border: 2px solid #36225e;
  color: #a99aca;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.12s ease;
  user-select: none;
}

.nav-tab-btn .bracket {
  color: var(--neon-yellow);
}

.nav-tab-btn:hover {
  background: #231245;
  color: var(--neon-cyan);
  border-color: var(--neon-cyan);
  transform: translateY(-2px);
}

.nav-tab-btn.active {
  background: var(--neon-cyan);
  color: #000;
  border-color: #000;
  box-shadow: 2px 2px 0 #000, 0 0 10px rgba(0, 240, 255, 0.5);
  font-weight: bold;
}

.nav-tab-btn.active .bracket {
  color: #000;
}

/* SCREEN VIEW CONTAINER (MODULAR SPA) */
.page-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 12px 60px;
}

.view-screen {
  display: none;
  animation: screenWipe 0.25s ease-out;
}

.view-screen.active {
  display: block;
}

@keyframes screenWipe {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* RETRO CARDS */
.retro-card {
  background: var(--bg-card);
  border: 3px solid #000;
  box-shadow: 
    inset 1px 1px 0px rgba(255, 255, 255, 0.1),
    inset -2px -2px 0px rgba(0, 0, 0, 0.6),
    3px 3px 0 #000;
  margin-bottom: 20px;
  position: relative;
}

.card-header-bar {
  background: linear-gradient(90deg, #251447, #150a2b);
  border-bottom: 2px solid #000;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
}

.sys-dot {
  width: 8px;
  height: 8px;
  border: 1px solid #000;
  display: inline-block;
}
.sys-dot.red { background: var(--neon-red); }
.sys-dot.yellow { background: var(--neon-yellow); }
.sys-dot.green { background: var(--neon-green); }

.window-title {
  color: #fff;
  flex: 1;
}

.cartridge-badge {
  background: #000;
  color: var(--neon-yellow);
  padding: 2px 6px;
  font-size: 0.5rem;
  border: 1px solid var(--neon-yellow);
}

.card-body {
  padding: 16px;
}

/* BUTTONS */
.retro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 10px 14px;
  text-decoration: none;
  cursor: pointer;
  text-transform: uppercase;
  border: 2px solid #000;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.08s ease;
  user-select: none;
}

.retro-btn:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.btn-primary {
  background: var(--neon-cyan);
  color: #000;
}
.btn-primary:hover {
  background: #4ef6ff;
  box-shadow: 2px 2px 0 #000, 0 0 10px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
  background: var(--neon-pink);
  color: #fff;
}
.btn-secondary:hover {
  background: #ff3399;
  box-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 0, 127, 0.4);
}

.btn-accent {
  background: var(--neon-yellow);
  color: #000;
}
.btn-accent:hover {
  background: #ffdd44;
  box-shadow: 2px 2px 0 #000, 0 0 10px rgba(255, 204, 0, 0.4);
}

.btn-block {
  width: 100%;
}

/* SECTION HEADERS */
.section-header {
  text-align: center;
  margin-bottom: 20px;
}

.stage-tag {
  display: inline-block;
  background: #000;
  color: var(--neon-cyan);
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 3px 8px;
  border: 1px solid var(--neon-cyan);
  margin-bottom: 6px;
}

.stage-tag.special-tag {
  color: var(--neon-pink);
  border-color: var(--neon-pink);
}

.section-title {
  font-family: var(--font-pixel);
  font-size: clamp(1rem, 2.8vw, 1.3rem);
  color: #fff;
  margin-bottom: 6px;
}

.title-bracket {
  color: var(--neon-yellow);
}

.section-desc {
  font-size: 0.8rem;
  color: #a494cc;
}

.grid-2-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

/* =========================================================================
   SCREEN 1: PROFIL & HERO STYLES
   ========================================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 16px;
}

.hero-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.avatar-wrapper {
  background: #100824;
  border: 3px solid #000;
  padding: 10px;
  box-shadow: 3px 3px 0 #000;
  width: 100%;
  max-width: 200px;
  text-align: center;
}

.pixel-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #18112d;
  border: 2px solid #2d1c54;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-svg {
  width: 100%;
  height: 100%;
  animation: avatarBounce 3s ease-in-out infinite;
}

@keyframes avatarBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.avatar-status {
  margin-top: 8px;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--neon-green);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background: var(--neon-green);
  display: inline-block;
}

.mini-console-badge {
  background: #000;
  border: 1px solid #3d2b6b;
  padding: 6px 8px;
  text-align: center;
  width: 100%;
  max-width: 200px;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
}
.mini-console-badge .badge-label { display: block; color: #887aab; }
.mini-console-badge .badge-val { color: var(--neon-yellow); }

.hero-info-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.tag-pill {
  display: inline-block;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 3px 8px;
  background: #000;
  color: var(--neon-green);
  border: 1px solid var(--neon-green);
  margin-bottom: 6px;
}

.hero-name {
  font-family: var(--font-pixel);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: #fff;
  text-shadow: 2px 2px 0 #000, -1px -1px 0 var(--neon-pink), 1px 1px 0 var(--neon-cyan);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 0.8rem;
  color: var(--neon-cyan);
  margin-top: 4px;
}

.pixel-bullet {
  color: var(--neon-pink);
  margin-right: 4px;
}

.dialogue-box {
  background: #080314;
  border: 3px solid #fff;
  outline: 3px solid #000;
  padding: 12px;
  box-shadow: 3px 3px 0 #000;
}

.dialogue-speaker {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.speaker-name { color: var(--neon-yellow); }
.speaker-status { color: #736494; font-size: 0.5rem; }

.dialogue-message {
  font-family: var(--font-vt), monospace;
  font-size: 1.2rem;
  line-height: 1.4;
  color: #f1edff;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.hero-stats-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px dashed #3c2a63;
}

.quick-stat {
  display: flex;
  flex-direction: column;
}
.stat-num { font-family: var(--font-pixel); font-size: 0.95rem; }
.stat-text { font-family: var(--font-pixel); font-size: 0.5rem; color: #887aab; }

.attribute-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
}

.attr-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  background: #0e0721;
  border: 1px solid #281a4a;
}
.attr-key { color: #8a7ca8; }
.attr-val { color: #fff; }

.card-heading {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.pixel-text {
  font-size: 0.8rem;
  color: #cfc6e8;
  line-height: 1.5;
  margin-bottom: 10px;
}

/* =========================================================================
   SCREEN 2: PROJECTS & GITHUB STYLES
   ========================================================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.project-stage-card {
  display: flex;
  flex-direction: column;
}

.stage-ribbon {
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--neon-yellow);
  color: #000;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  padding: 3px 8px;
  border: 2px solid #000;
  font-weight: bold;
}

.status-pill.clear {
  color: var(--neon-green);
  background: #000;
  padding: 2px 6px;
  border: 1px solid var(--neon-green);
  font-size: 0.5rem;
}

.project-title {
  font-family: var(--font-pixel);
  font-size: 0.85rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.repo-analysis {
  background: #0a0417;
  border-left: 3px solid var(--neon-cyan);
  padding: 6px 8px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.anal-label { font-family: var(--font-pixel); font-size: 0.5rem; color: var(--neon-cyan); }
.anal-text { font-size: 0.75rem; color: #dfd8f2; line-height: 1.3; }

.tech-stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 10px 0;
}

.tech-pill {
  background: #000;
  color: var(--neon-yellow);
  border: 1px solid #4a3475;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  padding: 3px 6px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* GITHUB REPO FILTER */
.repo-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #3d2b6b;
}

.filter-btn {
  background: #0a0417;
  color: #bfaedc;
  border: 2px solid #3d2b6b;
  padding: 6px 10px;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  transition: all 0.1s;
}

.filter-btn:hover { background: var(--neon-pink); color: #fff; border-color: #000; }
.filter-btn.active {
  background: var(--neon-cyan);
  color: #000;
  border-color: #000;
  box-shadow: 2px 2px 0 #000, 0 0 8px rgba(0, 240, 255, 0.4);
}

.github-repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.repo-card-box {
  background: #110826;
  border: 2px solid #000;
  padding: 12px;
  box-shadow: 2px 2px 0 #000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.1s;
}

.repo-card-box:hover { border-color: var(--neon-yellow); }
.repo-card-box.hidden { display: none !important; }

.repo-header { display: flex; align-items: center; gap: 6px; }
.repo-type-icon { font-size: 1.1rem; }
.repo-name { font-family: var(--font-pixel); font-size: 0.65rem; color: #fff; flex: 1; word-break: break-all; }

.repo-badge {
  font-family: var(--font-pixel);
  font-size: 0.45rem;
  padding: 2px 5px;
  border: 1px solid #000;
}
.repo-badge.public { background: rgba(57, 255, 20, 0.2); color: var(--neon-green); border-color: var(--neon-green); }
.repo-badge.private { background: rgba(255, 0, 127, 0.2); color: var(--neon-pink); border-color: var(--neon-pink); }

.repo-desc { font-size: 0.75rem; color: #cac0e3; line-height: 1.35; }
.repo-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #281b47;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: #a496c4;
}

.lang-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 3px; }
.lang-dot.css { background: #563d7c; }
.lang-dot.php { background: #4f5d95; }
.lang-dot.kotlin { background: #a97bff; }
.lang-dot.js { background: #f1e05a; }
.lang-dot.ts { background: #2b7489; }
.lang-dot.cpp { background: #f34b7d; }

.repo-link { color: var(--neon-yellow); text-decoration: none; }
.repo-link:hover { color: var(--neon-cyan); }
.repo-status-note { color: #887aab; font-size: 0.45rem; }

/* =========================================================================
   SCREEN 3: SKILLS & STATS
   ========================================================================= */
.bar-stat-group { margin-bottom: 12px; }
.stat-bar-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  margin-bottom: 4px;
}
.stat-name { color: #d0c4eb; }
.stat-val { color: var(--neon-yellow); }

.stat-gauge-track {
  background: #000;
  border: 1px solid #332255;
  height: 14px;
  padding: 2px;
}

.stat-gauge-fill { height: 100%; transition: width 0.6s ease; }
.stat-gauge-fill.fill-green { background: var(--neon-green); }
.stat-gauge-fill.fill-cyan { background: var(--neon-cyan); }
.stat-gauge-fill.fill-pink { background: var(--neon-pink); }
.stat-gauge-fill.fill-yellow { background: var(--neon-yellow); }

.pixel-divider {
  height: 2px;
  background: repeating-linear-gradient(90deg, #473177 0, #473177 4px, transparent 4px, transparent 8px);
  margin: 14px 0;
}

.perk-list { display: flex; flex-direction: column; gap: 8px; font-size: 0.75rem; color: #d1c8e8; }
.perk-item { display: flex; gap: 6px; }
.perk-bullet { color: var(--neon-yellow); }

.inventory-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.inv-slot {
  background: #0f0724;
  border: 2px solid #000;
  padding: 10px 6px;
  text-align: center;
  box-shadow: 2px 2px 0 #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.slot-icon { font-size: 1.4rem; }
.slot-title { font-family: var(--font-pixel); font-size: 0.5rem; color: #fff; }
.slot-level { font-family: var(--font-pixel); font-size: 0.45rem; color: var(--neon-green); background: #000; padding: 2px 5px; }

.xp-progress-box { background: #0f0724; border: 1px solid #2d1c52; padding: 10px; }
.xp-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  margin-bottom: 6px;
  color: #8b7ca8;
}

/* =========================================================================
   SCREEN 4: ARCADE GAME
   ========================================================================= */
.arcade-cabinet-wrapper {
  background: #180e2e;
  border: 4px solid #000;
  box-shadow: 4px 4px 0 #000;
  max-width: 680px;
  margin: 0 auto;
}

.cabinet-marquee {
  background: linear-gradient(90deg, #ff007f, #b537f2, #00f0ff);
  border-bottom: 3px solid #000;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-pixel);
  font-size: clamp(0.65rem, 2vw, 0.85rem);
  color: #fff;
}

.marquee-bulb { color: var(--neon-yellow); animation: blink 0.5s infinite alternate; }

.arcade-screen-frame { background: #000; padding: 12px; }
.game-hud-bar {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  background: #0d071a;
  padding: 6px 10px;
  border: 1px solid #332255;
  margin-bottom: 6px;
}

.canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 2px solid #222;
  overflow: hidden;
}

#gameCanvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }

.game-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 5, 20, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  z-index: 10;
}
.game-overlay.hidden { display: none; }
.overlay-content { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.overlay-content h3 { font-family: var(--font-pixel); font-size: clamp(0.85rem, 2.5vw, 1.2rem); }
.overlay-content p { font-size: 0.8rem; color: #b7a9db; }
.controls-guide { background: #000; border: 1px dashed #443366; padding: 6px 10px; font-family: var(--font-pixel); font-size: 0.55rem; color: var(--neon-cyan); }
.mobile-note { font-size: 0.45rem; color: #7b6d9c; margin-top: 3px; }

.mobile-arcade-controls { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.arcade-touch-btn {
  flex: 1;
  max-width: 120px;
  background: #251644;
  border: 2px solid #000;
  color: #fff;
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  padding: 12px 8px;
  cursor: pointer;
  box-shadow: 2px 2px 0 #000;
  touch-action: manipulation;
}
.arcade-touch-btn:active { background: var(--neon-cyan); color: #000; transform: translate(2px, 2px); box-shadow: none; }
.jump-btn { background: #ff007f; }

.cabinet-coin-slot {
  background: #100824;
  border-top: 2px solid #000;
  padding: 8px;
  text-align: center;
  font-family: var(--font-pixel);
  font-size: 0.5rem;
  color: #7b6d9c;
}

/* =========================================================================
   SCREEN 5: CONTACT & SAVE POINT
   ========================================================================= */
.retro-form { display: flex; flex-direction: column; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-family: var(--font-pixel); font-size: 0.6rem; color: #d1c8e8; display: flex; align-items: center; gap: 4px; }
.input-bullet { color: var(--neon-cyan); }

.retro-input {
  background: #080312;
  border: 2px solid #3d2b6b;
  color: #fff;
  font-family: var(--font-vt), monospace;
  font-size: 1.2rem;
  padding: 8px 10px;
  outline: none;
}
.retro-input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 8px rgba(0, 240, 255, 0.4); }
.retro-select { font-family: var(--font-silk), monospace; font-size: 0.75rem; cursor: pointer; }

.save-status-box {
  background: rgba(57, 255, 20, 0.15);
  border: 2px solid var(--neon-green);
  color: var(--neon-green);
  padding: 10px;
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.save-status-box.hidden { display: none; }

.channel-buttons-list { display: flex; flex-direction: column; gap: 10px; }
.channel-item {
  background: #110826;
  border: 2px solid #000;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  box-shadow: 2px 2px 0 #000;
  transition: transform 0.08s, border-color 0.1s;
}
.channel-item:hover { transform: translate(-2px, -2px); border-color: var(--neon-cyan); }
.ch-icon { font-size: 1.2rem; }
.ch-meta { flex: 1; }
.ch-name { font-family: var(--font-pixel); font-size: 0.6rem; display: block; color: var(--neon-cyan); }
.ch-sub { font-size: 0.7rem; color: #a494cc; }
.ch-arrow { color: var(--neon-yellow); font-weight: bold; }

.retro-quote-box {
  background: #080312;
  border: 1px dashed #443366;
  padding: 12px;
  font-size: 0.75rem;
  color: #bbb2d6;
  line-height: 1.4;
}
.quote-symbol { font-size: 1.6rem; color: var(--neon-pink); font-family: var(--font-pixel); float: left; margin-right: 6px; }

/* MODALS */
.retro-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 14px;
}
.retro-modal.open { display: flex; }
.modal-backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); }
.modal-dialog { position: relative; z-index: 2; width: 100%; max-width: 580px; max-height: 85vh; display: flex; flex-direction: column; }
.modal-scroll { overflow-y: auto; padding: 18px; }
.modal-close-btn { background: transparent; border: none; color: var(--neon-pink); font-family: var(--font-pixel); font-size: 1.1rem; cursor: pointer; }

.modal-hero-badge { display: inline-block; background: #000; color: var(--neon-yellow); font-family: var(--font-pixel); font-size: 0.55rem; padding: 3px 6px; border: 1px solid var(--neon-yellow); margin-bottom: 8px; }
.modal-title { font-family: var(--font-pixel); font-size: 0.85rem; margin-bottom: 10px; line-height: 1.35; }
.modal-subtitle { font-family: var(--font-pixel); font-size: 0.65rem; margin: 12px 0 8px; }
.modal-bullet-list { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.8rem; color: #dfd7f5; }
.modal-bullet-list li { position: relative; padding-left: 16px; }
.modal-bullet-list li::before { content: "►"; position: absolute; left: 0; color: var(--neon-cyan); }
.modal-footer-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px dashed #443366; }

/* FOOTER */
.retro-footer {
  background: #060210;
  border-top: 3px solid #000;
  padding: 24px 12px;
  text-align: center;
}
.footer-container { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-status { font-family: var(--font-pixel); font-size: 0.55rem; color: var(--neon-green); }
.footer-copy { font-family: var(--font-pixel); font-size: 0.65rem; color: #fff; }
.footer-credits { font-size: 0.7rem; color: #887aab; }

.blink { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* =========================================================================
   RESPONSIVE DESIGN (ALL SCREENS: MOBILE, TABLET, DESKTOP)
   ========================================================================= */
@media (max-width: 850px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-avatar-col { margin: 0 auto; }
  .hero-info-col { align-items: center; }
  .dialogue-speaker, .dialogue-message { text-align: left; }
  .hero-buttons, .hero-stats-quick { justify-content: center; }
}

@media (max-width: 650px) {
  html { font-size: 13px; }
  .hud-container { justify-content: center; }
  .nav-tabs-wrapper {
    gap: 4px;
    justify-content: stretch;
  }
  .nav-tab-btn {
    flex: 1 1 calc(50% - 6px);
    font-size: 0.52rem;
    padding: 7px 6px;
    justify-content: center;
  }
  .nav-tab-btn:last-child {
    flex: 1 1 100%;
  }
  .projects-grid { grid-template-columns: 1fr; }
  .github-repo-grid { grid-template-columns: 1fr; }
  .retro-btn { font-size: 0.58rem; padding: 8px 10px; }
}

@media (max-width: 400px) {
  html { font-size: 12px; }
  .hud-item { font-size: 0.5rem; padding: 4px 5px; }
  .nav-tab-btn { font-size: 0.48rem; padding: 6px 4px; }
  .hero-name { font-size: 1.3rem; }
}
