@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Press+Start+2P&family=VT323&display=swap');

:root {
  /* High-Contrast Retro Cyber-Purple & Cyber-Cyan Terminal System */
  --bg-primary: #060212;             /* Deepest space purple background */
  --bg-secondary: #12082b;           /* Subtle dark purple accent background */
  --bg-glass: rgba(10, 4, 26, 0.95);  /* Heavy opaque dark purple terminal block */
  --bg-glass-hover: rgba(22, 8, 48, 0.98);
  --border-glass: #8b5cff;           /* Bright cyber-purple border */
  --border-glass-active: #00fff0;    /* Cyber cyan active state */
  --neon-cyan: #00fff0;              /* Cyber cyan phosphor */
  --neon-magenta: #ff0080;           /* Neon Pink/Magenta secondary warning */
  --neon-violet: #8b5cff;            /* Bright violet phosphor */

  --color-text-main: #b388ff;        /* All normal text is light violet */
  --color-text-muted: #6540b3;       /* Muted text is darker violet */

  --color-cyan: #00fff0;
  --color-purple: #b388ff;
  --color-pink: #ff0080;
  --color-gold: #ffb000;
  --color-white: #ffffff;
  --color-light-grey: #eadeff;
  --color-dark-grey: #0a041a;

  --shadow-neon-main: 0 0 10px rgba(139, 92, 255, 0.4);
  --shadow-neon-cyan: 0 0 10px rgba(0, 255, 240, 0.4);
  --synth-gradient: linear-gradient(135deg, rgba(10,4,26,0.95), rgba(20,8,48,0.98));
}

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

body,
.synthwave-body,
.neon-body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary) !important;
  color: var(--color-text-main);
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  position: relative;
}

/* Ambient glow system */
.ambient-glow-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.18;
  mix-blend-mode: screen;
}

.ambient-orb-1 {
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--neon-magenta) 0%, transparent 70%);
  top: -10vw;
  left: -10vw;
  animation: float-glow-1 25s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--neon-cyan) 0%, transparent 75%);
  bottom: -15vw;
  right: -10vw;
  animation: float-glow-2 30s ease-in-out infinite alternate;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vw) scale(1.15); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-10vw, -8vw) scale(0.9); }
}

.app-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 16px 24px;
  min-height: 100vh;
}

/* Header Section */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.logo-container {
  display: flex;
  flex-direction: column;
}

h1.logo-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #ffffff 35%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: logo-glow 3s ease-in-out infinite alternate;
}

h1.logo-title span {
  background: linear-gradient(90deg, var(--color-cyan) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-family: monospace;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
  letter-spacing: 1px;
}

@keyframes logo-glow {
  0% {
    filter: drop-shadow(0 0 1px rgba(0, 229, 255, 0.1));
  }
  100% {
    filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.4)) drop-shadow(0 0 12px rgba(179, 136, 255, 0.3));
  }
}

.logo-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  letter-spacing: 1.5px;
}

/* Wallet widget */
.wallet-widget {
  display: flex;
  align-items: center;
  gap: 15px;
}

.wallet-balance {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

/* Main Layout Grid */
.main-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
}

@media (max-width: 900px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* Panels (Synthwave chrome) */
.glass-panel {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px !important;
  padding: 24px;
  backdrop-filter: blur(14px) saturate(1.4) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 20px rgba(0, 229, 255, 0.03) !important;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-magenta), var(--neon-cyan));
  opacity: 0.4;
  border-radius: 12px 12px 0 0;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
}

.panel-title span.count {
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-text-muted);
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  gap: 12px;
}

.nav-tab {
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.01);
}

.nav-tab:hover {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.05);
}

.nav-tab.active {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .nav-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10px;
  }
}

/* Buttons */
.btn-primary {
  width: 100%;
  background: var(--color-white);
  border: 1px solid var(--color-white);
  color: #000000;
  padding: 14px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
  transition: all 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  background: #f0f0f5;
}

.btn-primary:disabled {
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--border-glass);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  color: var(--color-text-main);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-glass-active);
  transform: translateY(-1px);
}

.btn-secondary.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-white);
  color: var(--color-white);
}

/* Status Bars */
.status-bar-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-bar-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.status-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.status-bar-fill.energy {
  background: linear-gradient(90deg, #ffd700, #ff9100);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.status-bar-fill.nerve {
  background: linear-gradient(90deg, #ff1744, #d500f9);
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.5);
}

/* Console Terminal Logs */
.terminal-console {
  background: #060608;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  color: #39ff14; /* Matrix Green */
  height: 250px;
  overflow-y: auto;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.terminal-line {
  margin-bottom: 6px;
  line-height: 1.4;
}

.terminal-line .timestamp {
  color: var(--color-text-muted);
  margin-right: 8px;
}

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

.stat-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.stat-value {
  font-size: 1.45rem;
  font-weight: 700;
}

/* Forms */
.auth-page-layout {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  width: 100%;
}

.auth-panel {
  max-width: 500px;
  width: 100%;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.auth-tabs button {
  flex: 1;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-light-grey);
}

.form-group input,
.form-group select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-glass);
  border-radius: 10px;
  padding: 12px;
  color: var(--color-text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--border-glass-active);
  background: rgba(255, 255, 255, 0.05);
}

.form-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.password-input-wrapper {
  position: relative;
  display: flex;
}

.password-input-wrapper input {
  width: 100%;
  padding-right: 45px;
}

.password-toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 1rem;
}

.password-strength {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.strength-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

.strength-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: all 0.3s;
}

.strength-label {
  font-size: 0.72rem;
  font-weight: 600;
  align-self: flex-end;
}

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  margin-bottom: 20px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.legal-link {
  color: var(--color-text-main);
  text-decoration: underline;
}

.form-error-msg {
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: #ff1744;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  text-align: center;
  display: none;
}

/* Modals */
.auth-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.auth-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal-content {
  background: #0f0f12;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.auth-modal-overlay.visible .auth-modal-content {
  transform: translateY(0);
}

.auth-modal-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.auth-modal-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-modal-body {
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
  line-height: 1.6;
  font-size: 0.9rem;
  color: var(--color-light-grey);
}

.auth-modal-body h3 {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--color-white);
}

/* Active Profile Details */
.active-profile-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-avatar-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
}

.profile-avatar-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  opacity: 0.15;
  filter: blur(10px);
}

.profile-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.profile-stat-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-stat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.profile-stat-icon {
  font-size: 1.2rem;
}

.profile-stat-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-light-grey);
}

.profile-stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.profile-stat-label {
  color: var(--color-text-muted);
}

.profile-stat-value {
  font-weight: 700;
}

/* Gigs & Gym Forms */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 768px) {
  .action-grid {
    grid-template-columns: 1fr;
  }
}

.card-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.card-item:hover {
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.card-item-title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.card-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.card-item-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.card-item-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Development Console layout */
.develop-panel-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.develop-progress-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.dev-board-page-tagline {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: -8px 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.dev-board-intro { margin-bottom: 4px; }
.dev-board-tagline {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin: 0;
}

.dev-board-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.dev-board-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px;
}

.dev-board-card.compact { padding: 14px; }

.dev-board-sidebar {
  font-size: 0.8rem;
}

.dev-pipeline-guide { display: flex; flex-direction: column; gap: 10px; }
.dev-guide-step {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
.dev-guide-step strong { color: var(--color-light-grey); display: block; font-size: 0.82rem; }
.dev-guide-step p { margin: 2px 0 0; line-height: 1.35; }

.synergy-preview-box {
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.12);
  margin: 4px 0 8px;
}

.dev-board-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dev-board-title {
  font-size: 1.15rem;
  color: var(--color-cyan);
  margin: 0;
}

.dev-board-subtitle {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dev-synergy-badge {
  font-size: 0.72rem;
  padding: 6px 10px;
  border-radius: 20px;
  border: 1px solid;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dev-phase-pipeline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 4px 0 8px;
}

.dev-phase-step {
  flex: 1;
  min-width: 72px;
  text-align: center;
  padding: 8px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.45;
  transition: all 0.2s ease;
}

.dev-phase-step.active {
  opacity: 1;
  border-color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.15);
}

.dev-phase-step.done {
  opacity: 0.85;
  border-color: rgba(57, 255, 20, 0.35);
}

.dev-phase-icon { display: block; font-size: 1rem; }
.dev-phase-label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
  color: var(--color-text-muted);
}

.dev-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.dev-stat-card {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.dev-stat-card strong {
  display: block;
  font-size: 1rem;
  margin-top: 4px;
}

.dev-milestone-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.dev-milestone {
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}

.dev-milestone.hit {
  color: #39ff14;
  border-color: rgba(57, 255, 20, 0.3);
}

.dev-section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-purple);
  margin: 0 0 6px;
}

.dev-section-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin: 0 0 8px;
}

.dev-sprint-row, .dev-ship-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dev-sprint-btn { flex: 1; min-width: 90px; font-size: 0.8rem !important; }

.arcade-minigame {
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid var(--color-cyan);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.arcade-minigame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.arcade-minigame-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.arcade-badge {
  font-size: 0.62rem;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 229, 255, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 229, 255, 0.35);
  font-weight: 700;
}

.arcade-instructions {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 0 0 12px;
  line-height: 1.4;
}

.arcade-canvas-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #040408;
}

.arcade-start-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 8, 0.92);
  backdrop-filter: blur(2px);
  z-index: 2;
  transition: opacity 0.25s ease;
}

.arcade-start-overlay--gone {
  opacity: 0;
  pointer-events: none;
}

.arcade-start-panel {
  text-align: center;
  padding: 16px 20px;
  max-width: 92%;
}

.arcade-start-goal,
.arcade-start-controls {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 10px;
  line-height: 1.45;
}

.arcade-start-goal span,
.arcade-start-controls span {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 3px;
  font-weight: 700;
}

.arcade-start-btn {
  margin-top: 6px;
  padding: 12px 28px !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.5px;
}

.arcade-start-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.arcade-countdown {
  margin-top: 14px;
  font-family: 'Press Start 2P', monospace;
  font-size: 1.6rem;
  color: var(--color-gold);
  text-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
  animation: arcade-count-pulse 0.65s ease;
}

@keyframes arcade-count-pulse {
  0% { transform: scale(0.7); opacity: 0.4; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.arcade-timer-paused .status-bar-fill {
  opacity: 0.35;
  animation: arcade-timer-pulse 2s ease-in-out infinite;
}

@keyframes arcade-timer-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.55; }
}

.arcade-timer-label {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: -6px 0 10px;
  opacity: 0.85;
}

#arcade-canvas {
  display: block;
  max-width: 100%;
  height: auto;
  image-rendering: pixelated;
  cursor: crosshair;
  outline: none;
}

.arcade-canvas-wrap:focus-within {
  box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.35);
}

.arcade-controls-hint {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  text-align: center;
  margin: 0 0 10px;
  opacity: 0.85;
}

.arcade-timer {
  height: 6px;
  margin-bottom: 12px;
}

.arcade-cancel-btn {
  width: 100%;
  border-color: rgba(255, 23, 68, 0.3) !important;
  color: #ff1744 !important;
}

.arcade-pool-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.arcade-pool-chip {
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  line-height: 1.3;
}

.arcade-pool-card {
  border-color: rgba(0, 229, 255, 0.2) !important;
  background: rgba(0, 229, 255, 0.03) !important;
}

.hud-mandate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 0, 128, 0.08), rgba(139, 92, 255, 0.06));
  border: 1px solid rgba(255, 0, 128, 0.2);
}

.hud-mandate-label {
  font-family: 'VT323', monospace;
  font-size: 0.78rem;
  color: var(--neon-magenta);
  letter-spacing: 1px;
  white-space: nowrap;
}

.hud-mandate-text {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.35;
}

.chaos-panel {
  padding: 10px 12px !important;
  border-color: rgba(255, 0, 128, 0.25) !important;
  background: rgba(255, 0, 128, 0.04) !important;
}

.chaos-panel-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--neon-magenta);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.chaos-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
}

.chaos-btn {
  padding: 8px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  font-family: 'VT323', monospace;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(0, 255, 240, 0.25);
  border-radius: 4px;
  color: var(--neon-cyan);
  cursor: pointer;
  transition: all 0.2s;
}

.chaos-btn:hover {
  background: rgba(0, 255, 240, 0.1);
  box-shadow: 0 0 12px rgba(0, 255, 240, 0.25);
  transform: translateY(-1px);
}

.ceo-thought-bubble {
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(139, 92, 255, 0.08);
  border: 1px dashed rgba(139, 92, 255, 0.25);
  text-align: center;
}

.badge-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 0;
  padding: 4px 0;
}

.badge-chip {
  font-size: 0.6rem;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  color: #ffd700;
  cursor: help;
}

.chaos-activity-card {
  border-color: rgba(255, 0, 128, 0.15) !important;
  background: rgba(255, 0, 128, 0.02) !important;
}

.footer-sub {
  font-size: 0.72rem !important;
  opacity: 0.55;
  margin-top: 4px !important;
  font-style: italic;
}

.terminal-line.slack-line {
  border-left: 3px solid #ff0080 !important;
  background: rgba(255, 0, 128, 0.04) !important;
}

.synth-stats,
.hud-panel {
  box-shadow:
    0 0 20px rgba(0, 255, 240, 0.06),
    0 0 40px rgba(255, 0, 128, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.dev-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.dev-action-btn {
  font-size: 0.72rem !important;
  padding: 10px 6px !important;
  line-height: 1.35;
}

.dev-action-btn small { color: var(--color-text-muted); }

.dev-ship-btn { flex: 2; min-width: 180px; }

.dev-diary-feed {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dev-diary-entry {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dev-diary-time { color: var(--color-cyan); font-size: 0.68rem; }
.dev-diary-phase { color: var(--color-purple); font-size: 0.65rem; text-transform: uppercase; }

.post-release-hub { gap: 16px; }
.post-release-tag {
  font-size: 0.65rem;
  color: #39ff14;
  border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
}

.post-release-badges {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sentiment-badge {
  text-align: center;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid;
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.1;
}

.sentiment-badge small {
  display: block;
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  opacity: 0.8;
}

.post-release-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.post-release-col { display: flex; flex-direction: column; gap: 12px; }

.critic-line, .social-line {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}

.social-feed-scroll {
  max-height: 140px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sales-stat-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
}

.sales-stat-list div {
  display: flex;
  justify-content: space-between;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.support-ticket-list { display: flex; flex-direction: column; gap: 6px; }

.support-ticket {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 23, 68, 0.04);
  border: 1px solid rgba(255, 23, 68, 0.12);
  color: var(--color-text-muted);
}

.support-ticket.resolved {
  opacity: 0.5;
  background: rgba(57, 255, 20, 0.04);
  border-color: rgba(57, 255, 20, 0.12);
}

.roadmap-list { display: flex; flex-direction: column; gap: 6px; }

.roadmap-item {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.roadmap-item.done { color: #39ff14; }

.awards-row { display: flex; flex-wrap: wrap; gap: 6px; }

.award-chip {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #ffd700;
}

.award-chip-empty {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  background: transparent;
  border: none;
  padding: 4px 0;
}

.live-ops-hub {
  padding: 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(179, 136, 255, 0.2);
}

.live-ops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.live-ops-btn {
  font-size: 0.72rem !important;
  padding: 10px 6px !important;
  line-height: 1.3;
}

.live-ops-btn small { color: rgba(255, 255, 255, 0.55); }

.post-release-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ═══ PLAY GAME (POST-RELEASE) ═══ */
.play-game-hub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.08), rgba(179, 136, 255, 0.06));
  border: 1px solid rgba(0, 229, 255, 0.28);
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.06);
}

.play-game-hub-copy { flex: 1; min-width: 200px; }

.play-game-pitch {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: 6px 0 8px;
  line-height: 1.45;
  font-style: italic;
}

.play-game-stats {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  margin: 0;
}

.play-game-stats strong { color: var(--color-cyan); }

.play-game-launch-btn {
  font-size: 1rem !important;
  padding: 14px 28px !important;
  letter-spacing: 0.5px;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.play-game-fullscreen-hub {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.play-game-fullscreen-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.play-game-back-btn { font-size: 0.78rem !important; }

.play-game-fullscreen-hint {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.shipped-platformer.play-game-shell {
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid var(--color-cyan);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.play-game-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.play-game-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-cyan);
}

.play-game-tagline {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.play-game-canvas-wrap canvas {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  image-rendering: pixelated;
}

.post-release-telemetry-hub {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
}

.telemetry-list { display: flex; flex-direction: column; gap: 6px; }

.telemetry-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  font-size: 0.72rem;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.telemetry-label { color: var(--color-text-muted); }

.telemetry-value { color: var(--color-cyan); font-weight: 700; }

.telemetry-note {
  grid-column: 1 / -1;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.ceo-hot-take {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-gold);
  margin: 0;
  font-style: italic;
}

.speedrun-list { display: flex; flex-direction: column; gap: 5px; }

.speedrun-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 4px 8px;
  font-size: 0.7rem;
  align-items: center;
}

.speedrun-rank { color: var(--color-purple); font-weight: 700; }

.speedrun-name { color: var(--color-text-muted); }

.speedrun-time { color: var(--color-cyan); font-weight: 700; font-family: monospace; }

.speedrun-note {
  grid-column: 2 / -1;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
}

.known-issues-list { display: flex; flex-direction: column; gap: 6px; }

.known-issue-line {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.known-issue-status {
  font-size: 0.62rem;
  color: var(--color-gold);
  margin-left: 4px;
}

.player-review-list { display: flex; flex-direction: column; gap: 10px; }

.player-review-line {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.player-review-line p {
  margin: 4px 0;
  line-height: 1.4;
  font-style: italic;
}

.player-review-score {
  font-size: 0.68rem;
  color: var(--color-gold);
  font-weight: 700;
}

.player-review-time {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ═══ POST-RELEASE CLICKABLE CHAOS ═══ */
.clickable-detail-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, transform 0.12s ease;
  border-radius: 6px;
}

.clickable-detail-row:hover {
  background: rgba(0, 229, 255, 0.06);
  transform: translateX(2px);
}

.click-hint {
  font-size: 0.62rem;
  color: var(--color-cyan);
  opacity: 0.65;
  font-style: normal;
}

.post-release-badge-btn,
.post-release-tag-btn {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.post-release-badge-btn:hover,
.post-release-tag-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.2);
}

.post-release-tag-btn {
  font-size: 0.65rem;
  color: #39ff14;
  border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
  background: rgba(57, 255, 20, 0.06);
  font-weight: 700;
}

.mystery-desk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(179, 136, 255, 0.25);
}

.mystery-desk-chip {
  font-size: 0.68rem;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.35);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.mystery-desk-chip:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--color-cyan);
}

.mystery-rec { color: #ff1744; animation: mystery-rec-blink 1.4s step-end infinite; }
.mystery-ok { color: #39ff14; }
.mystery-fire { color: #ff9100; border-color: rgba(255, 145, 0, 0.35); }
.mystery-inbox { color: var(--color-gold); }
.mystery-spin { color: var(--color-purple); }

@keyframes mystery-rec-blink {
  50% { opacity: 0.35; }
}

.mystery-desk-hint {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  margin-left: auto;
}

.useless-features-hub {
  padding: 14px;
  border-radius: 12px;
  background: rgba(255, 23, 68, 0.04);
  border: 1px solid rgba(255, 23, 68, 0.15);
}

.useless-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.useless-feature-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.useless-feature-btn:hover {
  border-color: rgba(179, 136, 255, 0.35);
  background: rgba(179, 136, 255, 0.08);
}

.useless-feature-on {
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.06);
}

.useless-feature-emoji { font-size: 1.1rem; }
.useless-feature-label { font-size: 0.72rem; font-weight: 700; color: var(--color-text-muted); }
.useless-feature-state { font-size: 0.62rem; color: var(--color-cyan); font-weight: 800; letter-spacing: 1px; }

.detail-card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.detail-micro-btn {
  padding: 3px 8px !important;
  font-size: 0.62rem !important;
}

.sales-stat-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.post-release-detail-body {
  max-height: 50vh;
  overflow-y: auto;
  margin: 12px 0 16px;
  text-align: left;
}

.post-release-detail-modal { max-width: 520px; }

.detail-card {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--color-text-muted);
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-list strong { color: var(--color-cyan); white-space: nowrap; }

.detail-ol {
  margin: 6px 0 10px;
  padding-left: 18px;
  color: var(--color-text-muted);
}

.detail-label {
  font-size: 0.68rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin: 10px 0 4px;
  font-weight: 700;
}

.detail-quote {
  font-style: italic;
  color: var(--color-gold);
  margin: 0 0 8px;
}

.detail-formula {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--color-purple);
  background: rgba(0, 0, 0, 0.35);
  padding: 8px;
  border-radius: 6px;
}

.detail-footnote {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  font-style: italic;
  margin-top: 10px;
}

.telemetry-row.clickable-detail-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  padding: 4px 6px;
  margin-bottom: 2px;
}

.player-review-line.clickable-detail-row {
  padding: 4px 6px;
}

.critic-line.clickable-detail-row,
.social-line.clickable-detail-row,
.dev-diary-entry.clickable-detail-row,
.known-issue-line.clickable-detail-row {
  padding: 6px;
  margin-bottom: 4px;
  display: block;
}

.speedrun-row.clickable-detail-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 4px 8px;
  padding: 4px 6px;
  align-items: center;
}

.roadmap-item.clickable-detail-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 4px 6px;
  font-size: 0.75rem;
}

/* ═══ SITE-WIDE ZONE MINI-GAMES ═══ */
.zone-minigame-hub {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: rgba(179, 136, 255, 0.05);
  border: 1px dashed rgba(179, 136, 255, 0.28);
}

.zone-minigame-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.zone-minigame-hint {
  font-size: 0.74rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0 0 10px;
  line-height: 1.4;
}

.zone-minigame-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.zone-minigame-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.32);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.zone-minigame-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.12);
}

.zone-minigame-emoji { font-size: 1.15rem; }
.zone-minigame-label { font-size: 0.72rem; font-weight: 700; color: var(--color-text-muted); }
.zone-minigame-cost { font-size: 0.62rem; color: var(--color-gold); font-weight: 700; }

.zone-minigame-active { width: 100%; }

.hud-minigame-slot,
.staff-minigame-slot,
.leaderboard-minigame-slot {
  margin-bottom: 12px;
}

.hud-vital-chip.hud-vital-play {
  cursor: pointer;
  border: none;
  background: rgba(0, 0, 0, 0.22);
  transition: all 0.15s ease;
}

.hud-vital-chip.hud-vital-play:hover {
  border-color: rgba(0, 229, 255, 0.35);
  color: var(--color-cyan);
  transform: translateY(-1px);
}

.chaos-btn-arcade {
  border-color: rgba(0, 229, 255, 0.25) !important;
  color: var(--color-cyan) !important;
}

.site-minigame .arcade-canvas-wrap canvas {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  image-rendering: pixelated;
}

.signup-minigame-zone {
  margin: 14px 0 18px;
}

@media (max-width: 900px) {
  .dev-board-grid, .post-release-grid { grid-template-columns: 1fr; }
  .post-release-telemetry-hub { grid-template-columns: 1fr; }
  .dev-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .live-ops-grid { grid-template-columns: repeat(2, 1fr); }
  .dev-action-grid { grid-template-columns: repeat(2, 1fr); }
  .play-game-launch-btn { width: 100%; }
  .useless-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .mystery-desk-hint { width: 100%; margin-left: 0; }
  .zone-minigame-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══ STUDIO DASHBOARD ═══ */
.studio-dashboard-layout { width: 100%; }
.studio-dashboard-shell { grid-column: span 2; }

.studio-dashboard-hub { display: flex; flex-direction: column; gap: 14px; }

/* ═══ META PROGRESSION — Complete Web-Game Arc ═══ */
.meta-arc-hub {
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(0, 229, 255, 0.05));
  border: 1px solid rgba(255, 215, 0, 0.25);
  box-shadow: inset 0 0 24px rgba(255, 215, 0, 0.04);
}

.meta-arc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.meta-arc-header .dev-section-label { margin: 0; }

.meta-arc-pct {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  color: #ffd700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.meta-act-pipeline {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.meta-act-pip {
  flex: 1;
  min-width: 52px;
  text-align: center;
  padding: 6px 4px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.65rem;
}

.meta-act-pip span {
  display: block;
  font-weight: 700;
  color: var(--color-text-muted);
}

.meta-act-pip small { color: var(--color-text-muted); opacity: 0.8; }

.meta-act-current {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.2);
}

.meta-act-current span { color: var(--color-cyan); }

.meta-act-done {
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.06);
}

.meta-act-done span { color: #39ff14; }

.meta-engine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.meta-engine-row span { opacity: 0.65; }

.meta-engine-on {
  opacity: 1 !important;
  color: var(--color-cyan) !important;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.4);
}

.meta-arc-next {
  font-size: 0.78rem;
  color: var(--color-light-grey);
  margin: 0 0 8px;
  line-height: 1.4;
}

.meta-arc-actions { margin-bottom: 4px; }

.meta-goto-btn { font-size: 0.72rem !important; }

.meta-capstone-cta {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(179, 136, 255, 0.12), rgba(0, 229, 255, 0.08));
  border: 1px dashed rgba(179, 136, 255, 0.45);
}

.meta-capstone-cta p {
  font-size: 0.78rem;
  margin: 0 0 8px;
  line-height: 1.45;
}

.meta-capstone-banner {
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  background: linear-gradient(90deg, rgba(179, 136, 255, 0.15), rgba(255, 215, 0, 0.08));
  border: 1px solid rgba(179, 136, 255, 0.4);
  color: var(--color-light-grey);
}

.meta-step-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.meta-step-list.compact { font-size: 0.72rem; }

.meta-step-line {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 6px;
  align-items: baseline;
}

.meta-step-line.done { color: rgba(57, 255, 20, 0.85); }

.quest-tracker.quest-urgent {
  border-color: rgba(255, 23, 68, 0.5);
  background: linear-gradient(90deg, rgba(255, 23, 68, 0.1), rgba(255, 215, 0, 0.04));
}

.quest-tracker.quest-capstone {
  border-color: rgba(179, 136, 255, 0.5);
  background: linear-gradient(90deg, rgba(179, 136, 255, 0.1), rgba(0, 229, 255, 0.05));
}

.quest-tracker.quest-complete {
  border-color: rgba(57, 255, 20, 0.45);
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.08), rgba(255, 215, 0, 0.06));
}

.zone-node.quest-target,
.link-node.quest-target {
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.45), inset 0 0 8px rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.6) !important;
}

.studio-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.studio-dash-title {
  font-size: 1.35rem;
  color: var(--color-cyan);
  margin: 0;
  letter-spacing: 0.5px;
}

.studio-dash-sub {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 4px 0 0;
}

.studio-dash-badges { display: flex; gap: 8px; flex-wrap: wrap; }

.studio-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.studio-badge.cash { color: #39ff14; border-color: rgba(57, 255, 20, 0.25); }
.studio-badge.worth { color: #00e5ff; border-color: rgba(0, 229, 255, 0.25); }
.studio-badge.passive { color: #ffd700; border-color: rgba(255, 215, 0, 0.25); }

.studio-project-snap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 229, 255, 0.04);
  border: 1px solid rgba(0, 229, 255, 0.12);
}

.studio-project-snap.muted { opacity: 0.75; }

.studio-snap-phase {
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(179, 136, 255, 0.15);
  color: var(--color-purple);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.studio-pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.studio-meter-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.studio-stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

.studio-stat {
  text-align: center;
  padding: 10px 6px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 0.65rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.studio-stat strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-light-grey);
  margin-top: 4px;
}

.studio-board-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.studio-board-col { display: flex; flex-direction: column; gap: 12px; }

.studio-product-list, .studio-portfolio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
}

.studio-product-card, .studio-portfolio-card {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.studio-product-head, .studio-portfolio-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
}

.studio-product-meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.studio-income { color: #39ff14; font-weight: 700; font-size: 0.78rem; }

.studio-marketing-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.studio-mkt-btn {
  font-size: 0.62rem !important;
  padding: 6px 4px !important;
}

.studio-portfolio-stats { text-align: right; font-size: 0.72rem; }

.studio-empty {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
  line-height: 1.4;
}

.lease-body {
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--color-text-muted);
  margin: 0;
}

.opp-title { font-weight: 700; color: var(--color-cyan); font-size: 0.85rem; margin: 0 0 4px; }
.opp-blurb { font-size: 0.75rem; color: var(--color-text-muted); margin: 0 0 6px; line-height: 1.4; }
.opp-meta { font-size: 0.7rem; color: #ffd700; margin: 0; }

.studio-ops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.studio-ops-btn {
  font-size: 0.7rem !important;
  padding: 10px 6px !important;
  line-height: 1.35;
}

.studio-ops-btn small { color: var(--color-text-muted); }

@media (max-width: 900px) {
  .studio-board-grid { grid-template-columns: 1fr; }
  .studio-stats-grid { grid-template-columns: repeat(3, 1fr); }
  .studio-pulse-grid { grid-template-columns: 1fr; }
}

.dev-sliders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 15px;
}

@media (max-width: 600px) {
  .dev-sliders-grid {
    grid-template-columns: 1fr;
  }
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

.slider-input {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

/* Tables style */
.history-container {
  max-height: 400px;
  overflow-y: auto;
  border-radius: 12px;
  border: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.3);
}

.history-container::-webkit-scrollbar {
  width: 6px;
}

.history-container::-webkit-scrollbar-track {
  background: transparent;
}

.history-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
}

.history-table th {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--border-glass);
  position: sticky;
  top: 0;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1;
}

.history-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}

.history-table tr:hover {
  background: rgba(255, 255, 255, 0.005);
}

.history-table tr.highlight {
  background: rgba(0, 229, 255, 0.05);
  border-left: 3px solid var(--color-cyan);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: #0f0f12;
  border: 1px solid var(--border-glass);
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  font-size: 0.9rem;
  font-weight: 600;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: rgba(0, 230, 118, 0.3);
  color: #00e676;
}

.toast.error {
  border-color: rgba(255, 23, 68, 0.3);
  color: #ff1744;
}

/* Staff details */
.staff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.staff-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.staff-details {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Review Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(12, 12, 14, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  animation: fadeIn 0.3s ease;
}

.review-modal-content {
  width: 90%;
  max-width: 500px;
  background: linear-gradient(135deg, rgba(20, 20, 25, 0.95), rgba(10, 10, 12, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 229, 255, 0.15);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.reviewer-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s ease;
}

.reviewer-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.03);
}

.reviewer-info {
  flex: 1;
}

.reviewer-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.reviewer-comment {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.3;
}

.reviewer-score-badge {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(0, 229, 255, 0.1);
  border: 2px solid var(--color-cyan);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

/* --- Retro Gamey Aesthetics Override --- */

/* CRT scanlines */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 6px 100%;
  z-index: 99999;
  pointer-events: none;
  opacity: 0.4;
}

/* Global pixel styles for gaming feel */
h1.logo-title {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 1.6rem !important;
  letter-spacing: -1px;
}

.nav-tabs a {
  font-family: 'VT323', monospace !important;
  font-size: 1.35rem !important;
  letter-spacing: 0.5px;
}

.panel-title span {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.5px;
}

.wallet-balance, .stat-value, .status-bar-header, .card-item-title span, .reviewer-score-badge, .reviewer-name {
  font-family: 'VT323', monospace !important;
}

.stat-value {
  font-size: 1.8rem !important;
}

.status-bar-header span, .status-bar-header strong {
  font-family: 'VT323', monospace !important;
  font-size: 1.1rem !important;
}

/* Button pixel styles */
.btn-primary, .btn-secondary {
  font-family: 'VT323', monospace !important;
  font-size: 1.15rem !important;
  text-transform: uppercase;
  border-radius: 4px !important;
  border: 2px solid currentColor !important;
  box-shadow: 3px 3px 0 currentColor;
  transition: all 0.1s ease-in-out;
  cursor: pointer;
}

.btn-primary:active:not(:disabled), .btn-secondary:active:not(:disabled) {
  transform: translate(2px, 2px) !important;
  box-shadow: 1px 1px 0 currentColor !important;
}

.btn-primary:hover:not(:disabled), .btn-secondary:hover:not(:disabled) {
  filter: brightness(1.2);
}

/* Glow improvements for gamey indicators */
.status-bar-fill.energy {
  background: linear-gradient(90deg, #ffd700, #ff9100) !important;
  box-shadow: 0 0 10px rgba(255, 145, 0, 0.5);
}
.status-bar-fill.nerve {
  background: linear-gradient(90deg, #ff1744, #ff007f) !important;
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.5);
}

/* ═══ NEON GARAGE STUDIO BACKGROUND ═══ */
.studio-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #0a0812;
}

.studio-wall {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(30, 18, 48, 0.9) 0%, transparent 70%),
    linear-gradient(180deg, #14101c 0%, #0c0a14 45%, #080610 100%);
}

.studio-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 80px, rgba(255, 255, 255, 0.012) 80px 81px),
    repeating-linear-gradient(0deg, transparent 0 60px, rgba(255, 255, 255, 0.008) 60px 61px);
  opacity: 0.6;
}

.studio-ambient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 15% 85%, rgba(0, 229, 255, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 85% 80%, rgba(179, 136, 255, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 60% 30% at 50% 95%, rgba(255, 215, 0, 0.06) 0%, transparent 45%);
  animation: studio-ambient-pulse 8s ease-in-out infinite alternate;
}

@keyframes studio-ambient-pulse {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.studio-neon-sign {
  position: absolute;
  top: 6%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  opacity: 0.22;
  user-select: none;
}

.sign-main {
  display: block;
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  color: var(--neon-cyan);
  text-shadow:
    0 0 10px rgba(0, 229, 255, 0.8),
    0 0 30px rgba(0, 229, 255, 0.4),
    0 0 60px rgba(255, 0, 128, 0.25);
  letter-spacing: 4px;
  animation: sign-flicker 4s ease-in-out infinite;
}

.sign-sub {
  display: block;
  font-family: 'VT323', monospace;
  font-size: clamp(0.9rem, 1.8vw, 1.3rem);
  color: var(--neon-magenta);
  letter-spacing: 6px;
  margin-top: 8px;
  text-shadow: 0 0 12px rgba(255, 0, 128, 0.5);
}

@keyframes sign-flicker {
  0%, 92%, 100% { opacity: 1; }
  94% { opacity: 0.75; }
  96% { opacity: 1; }
  98% { opacity: 0.85; }
}

.studio-clutter {
  position: absolute;
  bottom: 14%;
  font-size: 2rem;
  opacity: 0.12;
  filter: grayscale(0.3);
  pointer-events: none;
}

.studio-clutter-left { left: 6%; transform: rotate(-12deg); }
.studio-clutter-right { right: 7%; transform: rotate(8deg); font-size: 1.8rem; }

.studio-code-fall {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
}

.code-fall-col {
  position: absolute;
  top: -20%;
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: rgba(0, 229, 255, 0.45);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  animation: code-fall-drift linear infinite;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
  will-change: transform;
  transform: translate3d(0, -10%, 0);
}

@keyframes code-fall-drift {
  from { transform: translate3d(0, -10%, 0); }
  to { transform: translate3d(0, 120vh, 0); }
}
  to { transform: translateY(120vh); }
}

.studio-desk {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 22%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 2vw, 24px);
  padding: 0 4% 0;
  pointer-events: none;
  mask-image: linear-gradient(to top, black 30%, transparent 100%);
}

.desk-top {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18px;
  background: linear-gradient(180deg, #1a1428 0%, #0e0c16 100%);
  border-top: 1px solid rgba(0, 229, 255, 0.15);
  box-shadow: 0 -4px 24px rgba(0, 229, 255, 0.08);
}

.crt {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  opacity: 0.55;
}

.crt-left { transform: perspective(400px) rotateY(8deg); }
.crt-right { transform: perspective(400px) rotateY(-8deg); }

.crt-bezel {
  padding: 6px 8px 10px;
  background: linear-gradient(145deg, #2a2438, #12101a);
  border-radius: 8px 8px 4px 4px;
  border: 2px solid #3a3450;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.crt-left .crt-bezel { width: clamp(70px, 10vw, 110px); }
.crt-center .crt-bezel { width: clamp(100px, 14vw, 160px); }
.crt-right .crt-bezel { width: clamp(70px, 10vw, 110px); }

.crt-screen {
  height: clamp(48px, 8vw, 72px);
  background: #04060a;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.08);
}

.crt-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.15) 2px, rgba(0, 0, 0, 0.15) 3px);
  pointer-events: none;
  z-index: 2;
}

.crt-scroll {
  animation: crt-scroll 18s linear infinite;
  padding: 4px 6px;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.crt-line {
  font-family: 'VT323', monospace;
  font-size: clamp(0.55rem, 1vw, 0.72rem);
  line-height: 1.45;
  color: rgba(57, 255, 20, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crt-center .crt-line { color: rgba(0, 229, 255, 0.6); }
.crt-right .crt-line { color: rgba(255, 215, 0, 0.5); }

@keyframes crt-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -50%, 0); }
}
  to { transform: translateY(-50%); }
}

.studio-cables {
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 8%;
  background:
    radial-gradient(ellipse 30% 80% at 20% 100%, rgba(255, 0, 128, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 25% 70% at 80% 100%, rgba(0, 229, 255, 0.12) 0%, transparent 65%);
  opacity: 0.5;
  pointer-events: none;
}

.studio-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: radial-gradient(ellipse 80% 100% at 50% 100%, rgba(0, 229, 255, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.studio-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(0, 0, 0, 0.06) 3px, rgba(0, 0, 0, 0.06) 4px);
  pointer-events: none;
  opacity: 0.3;
}

.studio-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 85% 75% at 50% 45%, transparent 35%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}

/* ═══ STUDIO SHELL (interconnected layout) ═══ */
.studio-shell {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 14px;
  align-items: start;
  min-height: 0;
}

@media (max-width: 1100px) {
  .studio-shell {
    grid-template-columns: 1fr;
  }
  .zone-rail {
    flex-direction: row !important;
    flex-wrap: wrap;
  }
  .feed-rail {
    order: -1;
  }
}

.zone-main {
  min-width: 0;
  position: relative;
  transition: box-shadow 0.15s;
  min-height: 120px;
}

.zone-main.screen-flash {
  animation: zone-flash 0.45s ease-out;
}

@keyframes zone-flash {
  0% { box-shadow: 0 0 40px var(--flash-color, rgba(57, 255, 20, 0.4)); }
  100% { box-shadow: none; }
}

.zone-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px;
  background: rgba(8, 0, 20, 0.75);
  border: 1px solid rgba(255, 42, 154, 0.3);
  border-radius: 4px;
  box-shadow: 0 0 20px rgba(255, 42, 154, 0.1);
}

.zone-rail-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.55rem;
  color: var(--color-pink);
  letter-spacing: 2px;
  padding: 4px 6px 10px;
  text-shadow: 0 0 8px rgba(255, 42, 154, 0.6);
}

.zone-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 12px 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.2s;
  position: relative;
  text-decoration: none;
}

.zone-node:hover {
  border-left-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.06);
  color: #fff;
}

.zone-node.active {
  border-left-color: var(--color-pink);
  background: linear-gradient(90deg, rgba(255, 42, 154, 0.15), transparent);
  color: #fff;
  box-shadow: 0 0 16px rgba(255, 42, 154, 0.2);
}

.zone-icon { font-size: 1.1rem; }
.zone-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  letter-spacing: 1px;
  color: var(--color-cyan);
}
.zone-node.active .zone-label { color: var(--color-pink); }
.zone-desc { font-size: 0.68rem; opacity: 0.7; }

.zone-pulse {
  position: absolute;
  top: 10px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.zone-pulse.lit {
  background: #39ff14;
  box-shadow: 0 0 8px #39ff14;
  animation: pulse 1.2s infinite ease-in-out;
}

.zone-connector {
  flex: 1;
  min-height: 20px;
  margin: 8px 6px 0;
  border-left: 2px dashed rgba(255, 42, 154, 0.25);
}

.feed-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 16px;
}

.feed-panel {
  padding: 16px !important;
  max-height: calc(100vh - 200px);
}

.feed-title {
  font-size: 0.85rem !important;
}

.live-badge {
  font-size: 0.65rem;
  color: #39ff14;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
}

.live-dot {
  width: 7px;
  height: 7px;
  background: #39ff14;
  border-radius: 50%;
  box-shadow: 0 0 8px #39ff14;
  animation: pulse 1.2s infinite ease-in-out;
}

.terminal-console {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  line-height: 1.35;
}

.interconnect-map {
  padding: 12px;
  background: rgba(8, 0, 20, 0.75);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 4px;
}

.map-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  color: var(--color-cyan);
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.link-node {
  padding: 10px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.45rem;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.25);
  color: var(--color-cyan);
  cursor: pointer;
  transition: all 0.15s;
}

.link-node:hover,
.link-node.active {
  background: rgba(255, 42, 154, 0.15);
  border-color: var(--color-pink);
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 42, 154, 0.3);
}

/* Header & stats synth styling */
.synth-header {
  border-radius: 4px !important;
  border-color: rgba(255, 42, 154, 0.35) !important;
  background: rgba(10, 0, 24, 0.85) !important;
}

h1.logo-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.4rem !important;
  background: linear-gradient(90deg, #fff 20%, var(--color-pink) 60%, var(--color-cyan) 100%);
  -webkit-background-clip: text;
  filter: drop-shadow(0 0 8px rgba(255, 42, 154, 0.5));
}

.logo-subtitle {
  font-family: 'VT323', monospace;
  font-size: 1rem !important;
  color: var(--color-pink) !important;
  letter-spacing: 3px !important;
}

.synth-stats {
  border-color: rgba(0, 229, 255, 0.25) !important;
}

.hud-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hud-top-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) repeat(3, minmax(180px, 1.2fr));
  gap: 14px;
  align-items: start;
}

@media (max-width: 1100px) {
  .hud-top-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hud-top-row {
    grid-template-columns: 1fr;
  }
}

.hud-cash-card {
  box-shadow: none !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  flex-direction: column;
  align-items: flex-start !important;
}

.hud-bar-block {
  flex: 1;
  min-width: 0;
}

.hud-stat-flavor {
  display: block;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-top: 5px;
  font-style: italic;
  opacity: 0.9;
}

.hud-status-banner {
  font-size: 0.74rem;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 23, 68, 0.08);
  border: 1px dashed rgba(255, 23, 68, 0.25);
  color: #ff8a9b;
  line-height: 1.4;
  font-family: 'VT323', monospace;
  letter-spacing: 0.5px;
}

.hud-vitals-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hud-vital-chip {
  font-size: 0.65rem;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--color-text-muted);
  white-space: nowrap;
}

.hud-vital-chip strong {
  color: var(--color-cyan);
  font-weight: 700;
}

.hud-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(0, 229, 255, 0.12);
  overflow: hidden;
}

.hud-ticker-label {
  font-family: 'VT323', monospace;
  font-size: 0.75rem;
  color: var(--color-pink);
  letter-spacing: 2px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hud-ticker-track {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.hud-ticker-text {
  display: block;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  animation: hud-ticker-scroll 28s linear infinite;
  padding-left: 100%;
}

@keyframes hud-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-200%); }
}

.hud-sidebar-quip {
  font-size: 0.68rem;
  line-height: 1.4;
  color: var(--color-text-muted);
  padding: 8px 10px;
  border-radius: 6px;
  border: 1px dashed rgba(179, 136, 255, 0.2);
  background: rgba(179, 136, 255, 0.05);
  font-style: italic;
  text-align: center;
}

.nav-tabs-hidden {
  display: none !important;
}

.synth-btn-mini {
  padding: 8px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.synth-btn-mini:hover,
.synth-btn-mini.music-on {
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
}

.music-rail {
  width: 100%;
}

.now-playing {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  letter-spacing: 2px;
  color: var(--color-text-muted);
  text-align: center;
  padding: 6px 10px;
  border: 1px dashed rgba(255, 42, 154, 0.2);
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
}

.now-playing.playing {
  color: var(--color-cyan);
  border-color: rgba(0, 229, 255, 0.35);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
  animation: now-playing-pulse 2s ease-in-out infinite alternate;
}

@keyframes now-playing-pulse {
  from { opacity: 0.85; }
  to { opacity: 1; }
}

.hud-combo {
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(255, 145, 0, 0.08));
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: #ffd700;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.5rem;
  font-weight: 800;
  animation: combo-pulse 0.6s ease infinite alternate;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

@keyframes combo-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.03); }
}

.main-single {
  grid-template-columns: 1fr !important;
}

.synth-footer {
  text-align: center;
  padding: 16px;
  font-family: 'VT323', monospace;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  letter-spacing: 2px;
  border-top: 1px solid rgba(255, 42, 154, 0.2);
}

.toast.warning {
  border-color: rgba(255, 145, 0, 0.35);
  color: #ff9100;
}

.toast.info {
  border-color: rgba(0, 229, 255, 0.25);
  color: var(--color-cyan);
}

/* Synthwave button glow */
.btn-primary {
  background: linear-gradient(135deg, rgba(255, 42, 154, 0.25), rgba(0, 229, 255, 0.15)) !important;
  border-color: var(--color-pink) !important;
  text-shadow: 0 0 6px rgba(255, 42, 154, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(255, 42, 154, 0.35) !important;
}

.card-item {
  border-color: rgba(0, 229, 255, 0.15) !important;
  background: rgba(0, 0, 0, 0.25) !important;
}

.card-item:hover {
  border-color: rgba(255, 42, 154, 0.35) !important;
}

/* ═══ UI POLISH — NEON GARAGE UNIFIED SYSTEM ═══ */

/* Global scrollbars */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 255, 0.25) transparent;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.22);
  border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 42, 154, 0.35);
}

/* Section zone accents */
#company-section .glass-panel {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(0, 229, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(0, 229, 255, 0.05);
}

#develop-section .glass-panel {
  border-color: rgba(179, 136, 255, 0.3);
  box-shadow:
    0 0 0 1px rgba(179, 136, 255, 0.06) inset,
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(179, 136, 255, 0.05);
}

#gigs-section .glass-panel {
  border-color: rgba(255, 42, 154, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 42, 154, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 42, 154, 0.04);
}

.gigs-hub-panel { display: flex; flex-direction: column; gap: 16px; }

.gigs-zone-minigame-slot { margin-bottom: 4px; }

.gigs-hub-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 768px) {
  .gigs-hub-top { grid-template-columns: 1fr; }
}

.gigs-hub-block { display: flex; flex-direction: column; gap: 8px; }

.gigs-hub-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin: 0;
}

.gigs-compact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.gigs-crimes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.gigs-action-card,
.gigs-crime-card {
  padding: 12px 14px;
  border-radius: 4px !important;
  border: 3px double var(--border-glass) !important;
  background: #000000 !important;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gigs-action-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.gigs-action-cost {
  font-family: 'VT323', monospace !important;
  font-size: 1.15rem !important;
  color: var(--neon-magenta) !important;
  text-shadow: 0 0 5px rgba(255, 0, 128, 0.4) !important;
  white-space: nowrap;
}

.gigs-crime-meta {
  color: var(--color-text-muted);
}

.gigs-activities-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gigs-activity-chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 4px !important;
  border: 1px solid var(--border-glass) !important;
  background: transparent !important;
  font-size: 0.95rem !important;
  font-family: 'VT323', monospace !important;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.gigs-activity-chip:hover {
  background: var(--border-glass) !important;
  color: #000000 !important;
  box-shadow: 0 0 10px rgba(139, 92, 255, 0.5) !important;
}

.gigs-activity-chip:hover * {
  color: #000000 !important;
  text-shadow: none !important;
}

.gigs-activity-emoji {
  font-size: 1.4rem;
}

.gigs-activity-label {
  font-weight: 700;
}

.gigs-activity-reward {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 0.74rem !important;
  font-weight: 700 !important;
  color: var(--color-text-muted) !important;
  margin-top: 2px;
}

.gigs-active-hint {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 8px 0;
  margin: 0;
}

.dev-pipeline-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.dev-phase-chip {
  font-size: 0.68rem;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--color-text-muted);
}

.dev-sidebar-note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin: 8px 0 0;
}

.studio-product-card--compact .studio-product-head { margin-bottom: 6px; }

.studio-portfolio-card--compact {
  font-size: 0.78rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.telemetry-row--compact,
.critic-line--compact,
.social-line--compact {
  padding: 6px 8px !important;
  font-size: 0.78rem !important;
}

.play-game-hub--compact {
  padding: 10px 12px !important;
  gap: 10px !important;
}

#staff-section .glass-panel {
  border-color: rgba(57, 255, 20, 0.2);
  box-shadow:
    0 0 0 1px rgba(57, 255, 20, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(57, 255, 20, 0.03);
}

#leaderboard-section .glass-panel {
  border-color: rgba(255, 215, 0, 0.22);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.05) inset,
    0 8px 32px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(255, 215, 0, 0.04);
}

.zone-main .glass-panel {
  animation: panel-enter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panel-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.glass-panel {
  overflow: hidden;
}

.glass-panel::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  border-bottom: 2px solid rgba(0, 229, 255, 0.12);
  border-right: 2px solid rgba(0, 229, 255, 0.12);
  pointer-events: none;
  border-radius: 0 0 6px 0;
}

.panel-title {
  gap: 10px;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.panel-title-icon {
  font-size: 1rem;
  line-height: 1;
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.45));
}

.panel-divider {
  border: none !important;
  padding-top: 16px !important;
  margin-top: 8px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.section-tagline,
.panel-tagline {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: -6px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  font-style: italic;
}

.section-gap {
  gap: 16px !important;
}

.section-gap-tight {
  gap: 12px !important;
}

/* Layout grids */
.gigs-zone-layout {
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 16px !important;
}

.staff-zone-layout {
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}

.action-grid-single {
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.staff-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.staff-capacity-bar {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(57, 255, 20, 0.04);
  border: 1px solid rgba(57, 255, 20, 0.12);
  font-family: 'VT323', monospace;
  letter-spacing: 0.5px;
}

.staff-capacity-bar strong {
  color: var(--color-cyan);
}

@media (max-width: 900px) {
  .training-grid,
  .activities-grid,
  .gigs-zone-layout {
    grid-template-columns: 1fr !important;
  }

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

/* Card system */
.card-compact {
  padding: 14px !important;
}

.card-title-lg .card-item-title,
.card-item-title.card-title-lg {
  font-size: 0.95rem;
}

.card-title-md .card-item-title,
.card-item-title.card-title-md {
  font-size: 0.9rem;
}

.card-desc-sm {
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}

.card-footnote {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  line-height: 1.4;
}

.card-dossier {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: 6px;
  font-style: italic;
  line-height: 1.4;
}

.cost-gold { color: #ffd700 !important; }
.cost-green { color: #39ff14 !important; }
.cost-red { color: #ff1744 !important; }
.cost-cyan { color: var(--color-cyan) !important; }
.cost-free { color: #39ff14 !important; font-weight: 700; }

.cost-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-owned {
  border-color: var(--color-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.12) !important;
}

.gig-card {
  border-left: 3px solid rgba(255, 23, 68, 0.4) !important;
}

.gig-card:hover {
  border-left-color: var(--color-pink) !important;
}

.training-card-code {
  border-left: 3px solid rgba(0, 229, 255, 0.45) !important;
}

.training-card-design {
  border-left: 3px solid rgba(179, 136, 255, 0.45) !important;
}

.training-card-mgmt {
  border-left: 3px solid rgba(255, 215, 0, 0.45) !important;
}

.store-card {
  border-left: 3px solid rgba(57, 255, 20, 0.3) !important;
}

.activity-card {
  border-left: 3px solid rgba(255, 42, 154, 0.25) !important;
}

.arcade-pool-card {
  grid-column: 1 / -1;
}

.btn-sm {
  padding: 10px !important;
  font-size: 0.85rem !important;
}

.btn-inline {
  padding: 4px 10px !important;
  font-size: 0.68rem !important;
  width: auto !important;
}

.btn-danger-outline {
  border-color: rgba(255, 23, 68, 0.35) !important;
  color: #ff1744 !important;
}

.btn-flex-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.btn-flex-row .btn-primary,
.btn-flex-row .btn-secondary {
  flex: 1;
}

/* Mini-game legacy panels */
.mini-game-panel {
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid var(--color-cyan);
  padding: 20px;
  border-radius: 12px;
  grid-column: span 1;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.mini-game-panel--gold { border-color: var(--color-gold); box-shadow: 0 0 24px rgba(255, 215, 0, 0.1); }
.mini-game-panel--purple { border-color: var(--color-purple); box-shadow: 0 0 24px rgba(179, 136, 255, 0.1); }
.mini-game-panel--red { border-color: #ff1744; box-shadow: 0 0 24px rgba(255, 23, 68, 0.12); }

.mini-game-title {
  color: var(--color-cyan);
  margin: 0 0 8px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.72rem;
  line-height: 1.5;
}

.mini-game-panel--gold .mini-game-title { color: var(--color-gold); }
.mini-game-panel--purple .mini-game-title { color: var(--color-purple); }
.mini-game-panel--red .mini-game-title { color: #ff1744; }

.mini-game-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0 0 15px;
  line-height: 1.4;
}

.mini-game-track {
  position: relative;
  height: 30px;
  background: #12101a;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin-bottom: 20px;
  overflow: hidden;
}

.mini-game-zone {
  position: absolute;
  height: 100%;
  background: #39ff14;
  opacity: 0.55;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.mini-game-needle {
  position: absolute;
  width: 6px;
  height: 100%;
  border-radius: 3px;
  transform: translateX(-50%);
  transition: left 0.05s linear;
}

.mini-game-needle--cyan {
  background: #00e5ff;
  box-shadow: 0 0 8px #00e5ff;
}

.mini-game-needle--red {
  background: #ff1744;
  box-shadow: 0 0 8px #ff1744;
}

.mini-game-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.mini-game-actions .btn-primary,
.mini-game-actions .btn-secondary {
  flex: 1;
  padding: 12px !important;
}

.mini-game-timer {
  height: 6px;
}

.mini-game-counter {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
  margin-bottom: 15px;
  font-family: 'VT323', monospace;
  letter-spacing: 2px;
}

.mini-game-ping-btn {
  width: 100%;
  padding: 20px !important;
  font-size: 1.2rem !important;
  margin-bottom: 15px;
  background: #ffd700 !important;
  color: #000 !important;
  border-color: #ffd700 !important;
}

.trace-board {
  position: relative;
  height: 180px;
  background: #08080a;
  border: 2px dashed #ff1744;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.trace-node {
  position: absolute;
  padding: 8px 14px !important;
  font-size: 1.1rem !important;
  border-radius: 50% !important;
  min-width: 40px !important;
  min-height: 40px !important;
  transform: translate(-50%, -50%);
  transition: all 0.2s ease-in-out;
  width: auto !important;
  border-color: #ff1744 !important;
  color: #ff1744 !important;
}

.trace-node.next {
  box-shadow: 0 0 10px #39ff14;
  border-color: #39ff14 !important;
  color: #39ff14 !important;
}

.trace-node.done {
  opacity: 0.2;
  pointer-events: none;
}

.binary-target {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffd700;
  margin-bottom: 20px;
  font-family: monospace;
  letter-spacing: 2px;
}

.binary-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.binary-options .btn-primary {
  padding: 12px !important;
  font-family: monospace !important;
}

.studio-meter-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.studio-meter-track {
  height: 5px;
}

.staff-empty {
  text-align: center;
  font-style: italic;
  color: var(--color-text-muted);
  padding: 24px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  font-family: 'VT323', monospace;
  font-size: 1rem;
}

.staff-hire-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.staff-hire-count {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Forms */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.input-row {
  display: flex;
  gap: 10px;
}

.input-row input {
  flex: 1;
}

.form-section-title {
  margin-bottom: 12px;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  color: var(--color-cyan);
  letter-spacing: 0.5px;
}

@media (max-width: 600px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

/* Header & wallet polish */
.wallet-balance {
  background: rgba(0, 0, 0, 0.35) !important;
  border: 2px solid rgba(0, 229, 255, 0.35) !important;
  font-family: 'VT323', monospace !important;
  letter-spacing: 2px;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.15);
}

.stat-value.cash-green {
  color: #39ff14 !important;
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.45);
}

.hud-panel {
  padding: 14px 20px !important;
}

/* Modals */
.modal-overlay .review-modal-content {
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow:
    0 0 40px rgba(0, 229, 255, 0.15),
    0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-title {
  color: var(--color-cyan);
  text-align: center;
  margin-bottom: 5px;
  font-size: 1.4rem;
  font-family: 'Press Start 2P', monospace;
  line-height: 1.5;
}

.modal-title--danger {
  color: #ff1744;
  text-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

.modal-meta {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
  font-weight: 500;
}

.modal-nuke {
  border-color: #ff1744 !important;
  box-shadow: 0 0 25px rgba(255, 23, 68, 0.25) !important;
}

.modal-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.modal-btn-danger {
  width: 100%;
  background: #ff1744 !important;
  border: 1px solid #ff1744 !important;
  color: #fff !important;
  box-shadow: 0 4px 15px rgba(255, 23, 68, 0.35) !important;
}

/* Leaderboard */
.history-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.015);
}

.history-table td:last-child {
  text-align: right;
  font-family: 'VT323', monospace;
  font-size: 1rem;
  color: #39ff14;
}

/* Terminal log variants */
.terminal-line.log-success { color: #39ff14; }
.terminal-line.log-error { color: #ff1744; }
.terminal-line.log-info { color: var(--color-cyan); }
.terminal-line.log-gold { color: #ffd700; }

/* Feed panel */
.feed-panel {
  border-color: rgba(0, 229, 255, 0.2) !important;
}

.terminal-console {
  background: #040408 !important;
  border-color: rgba(0, 229, 255, 0.15) !important;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.6);
}

/* Toast neon */
.toast {
  font-family: 'VT323', monospace;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

/* Develop full-width */
#develop-section .glass-panel,
#leaderboard-section .glass-panel {
  grid-column: span 2;
}

/* Auth page (signup) shared with garage theme */
.auth-studio-wrap {
  min-height: 100vh;
}

.auth-studio-wrap .glass-panel {
  border-color: rgba(255, 42, 154, 0.25);
}

/* ═══ VIDEO GAME FEEL — RPG HUD, FLOAT TEXT, ZONE WARPS ═══ */

.quest-tracker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.06), rgba(0, 229, 255, 0.04));
  border: 1px solid rgba(255, 215, 0, 0.22);
  box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.03);
}

.quest-tracker-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.42rem;
  color: #ffd700;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  white-space: nowrap;
}

.quest-tracker-text {
  font-family: 'VT323', monospace;
  font-size: 1.05rem;
  color: var(--color-light-grey);
  flex: 1;
  min-width: 180px;
}

.quest-tracker-sub {
  width: 100%;
  font-size: 0.68rem;
  color: var(--color-text-muted);
  font-style: italic;
  padding-left: 2px;
}

.quest-tracker.quest-urgent .quest-tracker-label { color: #ff1744; }
.quest-tracker.quest-capstone .quest-tracker-label { color: #b388ff; }
.quest-tracker.quest-complete .quest-tracker-label { color: #39ff14; }

.hud-rpg-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .hud-rpg-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rpg-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rpg-stat-label {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.38rem;
  color: var(--color-cyan);
  letter-spacing: 1px;
}

.rpg-stat-bar {
  height: 6px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.rpg-stat-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.rpg-stat-fill.rpg-luk {
  background: linear-gradient(90deg, #b388ff, #ffd700);
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

.rpg-stat-fill.rpg-debt {
  background: linear-gradient(90deg, #ff1744, #ff9100);
  box-shadow: 0 0 8px rgba(255, 23, 68, 0.35);
}

.rpg-stat-fill.rpg-grind {
  background: linear-gradient(90deg, #00e5ff, #39ff14);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
}

.rpg-stat-fill.rpg-save {
  background: linear-gradient(90deg, #39ff14, #00e5ff);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.35);
}

.zone-loading {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(4, 0, 12, 0.88);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  pointer-events: none;
}

.zone-loading[hidden] {
  display: none !important;
}

.zone-loading-pixel {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--color-pink);
  animation: zone-blink 0.6s step-end infinite;
}

.zone-loading-text {
  font-family: 'VT323', monospace;
  font-size: 1.35rem;
  color: var(--color-cyan);
  letter-spacing: 3px;
  text-align: center;
  padding: 0 16px;
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
}

@keyframes zone-blink {
  50% { opacity: 0.2; }
}

.float-text-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2500;
  overflow: hidden;
}

.float-text {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translateX(-50%);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.8);
  animation: float-rise 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: none;
}

.float-text--xp { color: #39ff14; }
.float-text--gold { color: #ffd700; }
.float-text--cyan { color: #00e5ff; }
.float-text--red { color: #ff1744; }
.float-text--purple { color: #b388ff; }
.float-text--big {
  font-size: 0.85rem;
  top: 38%;
}

@keyframes float-rise {
  0% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.7); }
  15% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-70px) scale(1); }
}

body.screen-shake {
  animation: screen-shake 0.35s ease;
}

@keyframes screen-shake {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4px, 2px); }
  40% { transform: translate(4px, -2px); }
  60% { transform: translate(-3px, -1px); }
  80% { transform: translate(3px, 1px); }
}

.toast.game-toast {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.5rem !important;
  line-height: 1.6 !important;
  letter-spacing: 0.5px;
  border-width: 2px !important;
  border-radius: 4px !important;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.footer-quest-hint {
  font-size: 0.72rem !important;
  opacity: 0.45;
  margin-top: 6px !important;
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
}

.chaos-btn-grid {
  grid-template-columns: 1fr 1fr !important;
}

.zone-node[data-tab]::after {
  content: "▸";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.6rem;
  color: var(--color-cyan);
  opacity: 0;
  transition: opacity 0.2s;
}

.zone-node.active[data-tab]::after {
  opacity: 1;
  animation: zone-blink 1s step-end infinite;
}

.terminal-line.log-quest { border-left-color: #ffd700 !important; background: rgba(255, 215, 0, 0.04) !important; }
.terminal-line.log-loot { border-left-color: #39ff14 !important; background: rgba(57, 255, 20, 0.04) !important; }
.terminal-line.log-warn { border-left-color: #ff1744 !important; background: rgba(255, 23, 68, 0.04) !important; }
.terminal-line.log-arcade { border-left-color: #b388ff !important; background: rgba(179, 136, 255, 0.04) !important; }

.panel-title span::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 10px;
  margin-left: 6px;
  background: var(--color-cyan);
  opacity: 0.35;
  animation: cursor-blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.hud-vital-chip {
  transition: transform 0.15s, border-color 0.15s;
}

.hud-vital-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 229, 255, 0.2);
}

/* --- Quest Roadmap Modal Styling --- */
.roadmap-modal-content {
  max-width: 850px;
  width: 90%;
  border-color: var(--color-purple);
  box-shadow: 0 0 35px rgba(179, 136, 255, 0.2);
}

.roadmap-dashboard {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 16px;
  margin-top: 10px;
}

.roadmap-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roadmap-overall-pct {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-cyan);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
}

.roadmap-overall-track {
  height: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.roadmap-acts-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roadmap-acts-tabs .act-tab-btn {
  flex: 1;
  min-width: 80px;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-color: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
}

.roadmap-acts-tabs .act-tab-btn.active {
  background: rgba(179, 136, 255, 0.12);
  border-color: var(--color-purple);
  color: var(--color-white);
  box-shadow: 0 0 10px rgba(179, 136, 255, 0.25);
}

.roadmap-content-wrapper {
  margin: 10px 0 20px;
}

.roadmap-act-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-purple);
  text-shadow: 0 0 8px rgba(179, 136, 255, 0.3);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  margin-bottom: 15px;
}

.roadmap-steps-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 15px;
  max-height: 40vh;
  overflow-y: auto;
  padding-right: 5px;
}

.roadmap-step-card {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease-in-out;
}

.roadmap-step-card.completed {
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.02);
}

.roadmap-step-card.active {
  border-color: var(--color-cyan);
  background: rgba(0, 229, 255, 0.03);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.12);
  animation: card-pulse 2s infinite alternate;
}

.roadmap-step-card.locked {
  opacity: 0.5;
  border-color: rgba(255, 255, 255, 0.02);
}

@keyframes card-pulse {
  0% { box-shadow: 0 0 6px rgba(0, 229, 255, 0.05); }
  100% { box-shadow: 0 0 16px rgba(0, 229, 255, 0.18); }
}

.roadmap-step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.roadmap-step-status-icon {
  font-family: monospace;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.72rem;
}

.roadmap-step-card.completed .roadmap-step-status-icon {
  background: rgba(57, 255, 20, 0.15);
  color: #39ff14;
  border: 1px solid rgba(57, 255, 20, 0.4);
}

.roadmap-step-card.active .roadmap-step-status-icon {
  background: rgba(0, 229, 255, 0.15);
  color: var(--color-cyan);
  border: 1px solid rgba(0, 229, 255, 0.4);
}

.roadmap-step-card.locked .roadmap-step-status-icon {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.roadmap-step-label {
  flex: 1;
  color: var(--color-white);
  line-height: 1.2;
}

.roadmap-step-card.completed .roadmap-step-label {
  text-decoration: line-through;
  color: var(--color-text-muted);
}

.roadmap-step-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.roadmap-step-card.completed .roadmap-step-badge {
  background: rgba(57, 255, 20, 0.15);
  color: #39ff14;
}

.roadmap-step-card.active .roadmap-step-badge {
  background: rgba(0, 229, 255, 0.15);
  color: var(--color-cyan);
}

.roadmap-step-card.locked .roadmap-step-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
}

.roadmap-step-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  padding-left: 26px;
}

.roadmap-step-hint {
  line-height: 1.35;
}

.roadmap-go-btn {
  align-self: flex-start;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.quest-roadmap-btn {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3) !important;
  color: var(--color-gold) !important;
}

.quest-roadmap-btn:hover {
  background: rgba(255, 215, 0, 0.2) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* --- Cohesive UI Polish Enhancements --- */

/* Retro Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--color-purple);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-pink);
  box-shadow: 0 0 6px var(--color-pink);
}

/* Scrollbar support for Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-purple) rgba(0, 0, 0, 0.3);
}

/* Panic button header */
.panic-btn {
  background: rgba(255, 23, 68, 0.15) !important;
  border-color: rgba(255, 23, 68, 0.5) !important;
  color: #ff1744 !important;
  animation: panic-glow 2s infinite alternate;
}
.panic-btn:hover {
  background: rgba(255, 23, 68, 0.3) !important;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.6) !important;
}
@keyframes panic-glow {
  0% { box-shadow: 0 0 2px rgba(255, 23, 68, 0.2); }
  100% { box-shadow: 0 0 8px rgba(255, 23, 68, 0.5); }
}

/* --- Game Guide / Wiki Modal Styles --- */
.guide-scroll-container {
  max-height: 45vh;
  overflow-y: auto;
  padding-right: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 15px 0;
  text-align: left;
}
.guide-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px;
}
.guide-section h3 {
  font-size: 1rem;
  color: var(--color-cyan);
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
  text-transform: uppercase;
}
.guide-section p {
  font-size: 0.85rem;
  color: var(--color-light-grey);
  line-height: 1.45;
}
.guide-btn {
  background: rgba(0, 229, 255, 0.08) !important;
  border-color: rgba(0, 229, 255, 0.3) !important;
  color: var(--color-cyan) !important;
}
.guide-btn:hover {
  background: rgba(0, 229, 255, 0.18) !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25) !important;
}

/* ==========================================================================
   RETRO CRT & PIXEL-ART TERMINAL REDESIGN
   ========================================================================== */

/* CRT Glass Vignette Overlay */
body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.65) 100%);
  z-index: 999998;
  pointer-events: none;
}

/* CRT Scanline Grid Overlay */
body::before {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.32) 50%), 
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  z-index: 999999;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
  opacity: 0.9;
}

/* CRT Flicker & Screen Curved Frame */
.app-wrapper {
  border: 12px solid #140826 !important;
  border-radius: 24px !important;
  box-shadow: inset 0 0 60px rgba(0, 255, 240, 0.22), 
              0 0 40px rgba(139, 92, 255, 0.5) !important;
  position: relative;
  overflow: hidden;
  animation: crt-phosphor-flicker 0.2s infinite;
  background: #05020d !important;
}

@keyframes crt-phosphor-flicker {
  0% { opacity: 0.985; }
  50% { opacity: 0.995; }
  100% { opacity: 0.99; }
}

/* Retro Typography conversion */
h1, h2, h3, h4, h5, h6,
.dev-section-label,
.modal-title,
.roadmap-act-title,
.stat-label {
  font-family: 'VT323', monospace !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Larger headings for readability in VT323 */
h2, .modal-title {
  font-size: 2.2rem !important;
}
h3, .roadmap-act-title {
  font-size: 1.8rem !important;
}
h4, .dev-section-label {
  font-size: 1.5rem !important;
}

/* Navigation Tabs */
.nav-tab {
  font-family: 'VT323', monospace !important;
  font-size: 1.4rem !important;
  text-transform: uppercase;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.synth-btn-mini,
.detail-micro-btn,
.meta-goto-btn {
  font-family: 'VT323', monospace !important;
  font-size: 1.35rem !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Statistics Values */
.stat-value,
.wallet-balance,
.rpg-stat-label,
.status-bar-header span {
  font-family: 'VT323', monospace !important;
  font-size: 1.5rem !important;
  letter-spacing: 0.5px;
}
.stat-value {
  font-size: 2.4rem !important;
}

/* Logo Title using Press Start 2P */
.logo-title {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 2.3rem !important;
  text-shadow: 4px 4px 0px var(--neon-magenta), -3px -3px 0px var(--neon-cyan) !important;
  letter-spacing: -2px;
}
.logo-subtitle {
  font-family: 'VT323', monospace !important;
  font-size: 1.15rem !important;
  color: var(--color-cyan) !important;
  letter-spacing: 1px;
}

/* Quest Tracker */
.quest-tracker-label {
  font-family: 'VT323', monospace !important;
  font-size: 1.2rem !important;
}

/* Green Phosphor Cash stats */
.cash-green {
  color: #39ff14 !important;
  text-shadow: 0 0 10px rgba(57, 255, 20, 0.4) !important;
}

/* ═══════════════════════════════════════
   IN-GAME CONFIRM TOAST
   ═══════════════════════════════════════ */
.toast.confirm-toast {
  background: linear-gradient(135deg, rgba(6, 2, 26, 0.98) 0%, rgba(12, 4, 38, 0.98) 100%) !important;
  border: 2px solid var(--neon-cyan) !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), 0 0 8px rgba(255, 0, 128, 0.2) !important;
  padding: 14px 16px !important;
  max-width: 380px !important;
  width: 380px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.82rem !important;
  color: var(--color-text-main) !important;
  /* Don't auto-dismiss — user must click */
  cursor: default !important;
  pointer-events: all !important;
}

.confirm-toast-msg {
  margin-bottom: 12px;
  line-height: 1.5;
  font-size: 0.85rem;
  color: var(--color-text-main);
}

.confirm-toast-msg strong {
  color: var(--neon-cyan);
  font-weight: 700;
}

.confirm-toast-msg small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.confirm-toast-btns {
  display: flex;
  gap: 8px;
}

.confirm-toast-yes,
.confirm-toast-no {
  flex: 1;
  padding: 7px 12px;
  border-radius: 6px;
  border: 1px solid;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confirm-toast-yes {
  background: rgba(57, 255, 20, 0.15);
  border-color: #39ff14;
  color: #39ff14;
}
.confirm-toast-yes:hover {
  background: rgba(57, 255, 20, 0.28);
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.confirm-toast-no {
  background: rgba(255, 23, 68, 0.12);
  border-color: #ff1744;
  color: #ff1744;
}
.confirm-toast-no:hover {
  background: rgba(255, 23, 68, 0.25);
  box-shadow: 0 0 10px rgba(255, 23, 68, 0.4);
}

/* ═══════════════════════════════════════
   ENHANCED TOAST STYLES FOR BETTER READING
   ═══════════════════════════════════════ */
.toast-container {
  gap: 8px !important;
}

.toast {
  font-size: 0.84rem !important;
  line-height: 1.45 !important;
}

/* Ensure game-toast confirm shows on top */
#game-confirm-toast {
  z-index: 9999;
  order: -1;
}

/* ═══════════════════════════════════════
   IN-GAME PROMPT TOAST
   ═══════════════════════════════════════ */
.toast.prompt-toast {
  background: linear-gradient(135deg, rgba(6, 2, 26, 0.98) 0%, rgba(12, 4, 38, 0.98) 100%) !important;
  border: 2px solid var(--neon-cyan) !important;
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), 0 0 8px rgba(255, 0, 128, 0.2) !important;
  padding: 14px 16px !important;
  max-width: 380px !important;
  width: 380px !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.82rem !important;
  color: var(--color-text-main) !important;
  cursor: default !important;
  pointer-events: all !important;
  z-index: 9999;
  order: -1;
}

.prompt-toast-msg {
  margin-bottom: 8px;
  line-height: 1.5;
  font-size: 0.85rem;
  color: var(--color-text-main);
}

.prompt-toast-msg strong {
  color: var(--neon-cyan);
  font-weight: 700;
}

.prompt-toast-msg small {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.prompt-toast-input:focus {
  outline: none !important;
  border-color: var(--neon-magenta) !important;
  box-shadow: 0 0 8px rgba(255, 0, 128, 0.5) !important;
}

/* ═══════════════════════════════════════
   CRT SCREEN SHAKE & GLITCH ANIMATIONS
   ═══════════════════════════════════════ */
.crt-screen-shake {
  animation: crt-shake 0.4s cubic-bezier(.36,.07,.19,.97) both !important;
}

@keyframes crt-shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(3px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-5px, 0, 0); }
  40%, 60% { transform: translate3d(5px, 0, 0); }
}

.rgb-shift-glitch {
  text-shadow: 3px 0 0 rgba(255,0,128,0.6), -3px 0 0 rgba(0,229,255,0.6) !important;
  animation: rgb-flicker 0.15s infinite alternate !important;
}

@keyframes rgb-flicker {
  0% { text-shadow: 2px 0 0 rgba(255,0,128,0.6), -2px 0 0 rgba(0,229,255,0.6); }
  100% { text-shadow: -2px 0 0 rgba(255,0,128,0.6), 2px 0 0 rgba(0,229,255,0.6); }
}

/* ═══════════════════════════════════════
   NARRATIVE CHOICE DIALOGS
   ═══════════════════════════════════════ */
.narrative-modal-content {
  max-width: 550px !important;
  border: 3px double var(--neon-magenta) !important;
  box-shadow: 0 0 35px rgba(255, 0, 128, 0.4) !important;
  background: linear-gradient(135deg, #0e041a 0%, #03000b 100%) !important;
}

.narrative-body-text {
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--color-light-grey);
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 0, 128, 0.3);
  padding: 14px;
  border-radius: 8px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
}

.narrative-choices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
}

.narrative-choice-card {
  background: rgba(6, 2, 18, 0.85);
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  padding: 12px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: 'Outfit', sans-serif;
}

.narrative-choice-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.25);
  transform: translateY(-2px);
  background: rgba(12, 4, 32, 0.95);
}

.narrative-choice-text {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.narrative-choice-reward {
  font-size: 0.76rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.narrative-choice-card:hover .narrative-choice-text {
  color: var(--color-cyan);
}

/* ═══════════════════════════════════════
   ACT COMPLETION OVERLAY
   ═══════════════════════════════════════ */
.act-completion-content {
  max-width: 600px !important;
  border: 3px double var(--neon-cyan) !important;
  box-shadow: 0 0 45px rgba(0, 229, 255, 0.4) !important;
  background: #020008 !important;
  text-align: center;
}

.retro-ascii-banner {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.52rem;
  line-height: 1.2;
  color: #39ff14;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.6);
  background: #000000;
  padding: 16px;
  border: 1px solid #39ff14;
  border-radius: 6px;
  overflow-x: auto;
  text-align: left;
  margin: 15px 0;
}

.act-complete-details-text {
  font-size: 1.15rem;
  font-family: 'VT323', monospace;
  color: var(--color-light-grey);
  margin: 18px 0;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════
   ASCII PROGRESS BARS
   ═══════════════════════════════════════ */
.ascii-bar {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  color: var(--color-cyan) !important;
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.4);
}

.ascii-bar.done {
  color: #39ff14 !important;
  text-shadow: 0 0 5px rgba(57, 255, 20, 0.4);
}

.ascii-bar.warn {
  color: #ff1744 !important;
  text-shadow: 0 0 5px rgba(255, 23, 68, 0.4);
}

/* ═══════════════════════════════════════
   PREMIUM CYBERPUNK DESIGN SYSTEM OVERRIDES
   ═══════════════════════════════════════ */

/* 1. Header Design Overhaul */
.synth-header {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  padding: 16px 24px !important;
  margin-bottom: 8px !important;
}

h1.logo-title {
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35) !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 1.6rem !important;
}

.logo-subtitle {
  font-family: 'VT323', monospace !important;
  font-size: 1rem !important;
  color: var(--color-text-muted) !important;
  letter-spacing: 0.5px !important;
  margin-top: 4px !important;
}

/* Header Action Buttons */
.synth-btn-mini {
  background: rgba(26, 8, 40, 0.6) !important;
  border: 1px solid var(--border-glass) !important;
  color: var(--color-cyan) !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.3) !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05) !important;
}

.synth-btn-mini:hover {
  background: var(--bg-glass-hover) !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45) !important;
  transform: translateY(-1px) !important;
}

.synth-btn-mini.panic-btn {
  border-color: #ff1744 !important;
  color: #ff1744 !important;
}
.synth-btn-mini.panic-btn:hover {
  background: rgba(255, 23, 68, 0.15) !important;
  box-shadow: 0 0 12px rgba(255, 23, 68, 0.5) !important;
}

.synth-btn-mini.quest-roadmap-btn {
  border-color: var(--color-gold) !important;
  color: var(--color-gold) !important;
}
.synth-btn-mini.quest-roadmap-btn:hover {
  background: rgba(255, 215, 0, 0.12) !important;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.45) !important;
}

#header-profile-badge {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.12) 0%, rgba(139, 92, 255, 0.15) 100%) !important;
  border: 1px solid var(--neon-magenta) !important;
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.35) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.65rem !important;
  letter-spacing: 0.5px !important;
}

/* 2. HUD Telemetry Overhaul */
.hud-panel {
  border: 1px solid var(--border-glass) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  padding: 16px 20px !important;
}

.hud-top-row {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
}

.stat-card.hud-cash-card {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(57, 255, 20, 0.2) !important;
  box-shadow: inset 0 0 8px rgba(57, 255, 20, 0.05) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
}

.stat-card.hud-cash-card .stat-value {
  font-family: 'VT323', monospace !important;
  font-size: 2.2rem !important;
  color: #39ff14 !important;
  text-shadow: 0 0 8px rgba(57, 255, 20, 0.5) !important;
  margin: 2px 0 !important;
}

.status-bar-container.hud-bar-block {
  background: rgba(0, 0, 0, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  display: flex !important;
  flex-direction: column !important;
}

.status-bar-header {
  font-family: 'VT323', monospace !important;
  font-size: 1rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--color-text-muted) !important;
}

.status-bar-track {
  background: rgba(0,0,0,0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 4px !important;
  height: 8px !important;
  overflow: hidden !important;
  margin: 6px 0 !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5) !important;
}

.status-bar-fill {
  border-radius: 4px !important;
  box-shadow: 0 0 8px currentColor !important;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.status-bar-fill.energy {
  background: linear-gradient(90deg, #ff1744, #ff8f00) !important;
  color: #ff8f00 !important;
}

.status-bar-fill.nerve {
  background: linear-gradient(90deg, #b388ff, #ff0080) !important;
  color: #ff0080 !important;
}

.hud-stat-flavor {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.72rem !important;
  color: var(--color-text-muted) !important;
  opacity: 0.8 !important;
  font-style: italic !important;
}

.quest-tracker {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.06) 0%, rgba(0, 0, 0, 0) 100%) !important;
  border-left: 3px solid var(--color-gold) !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 8px 14px !important;
  margin-top: 10px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.quest-tracker-label {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.58rem !important;
  color: var(--color-gold) !important;
  letter-spacing: 0.5px !important;
}

.quest-tracker-text {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

/* 3. Navigation Rail Design */
.studio-shell {
  display: flex !important;
  gap: 16px !important;
  width: 100% !important;
}

.zone-rail {
  background: var(--bg-glass) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 140px !important;
  flex-shrink: 0 !important;
}

.zone-rail-title {
  font-family: 'Press Start 2P', monospace !important;
  font-size: 0.6rem !important;
  color: var(--color-text-muted) !important;
  text-align: center !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.zone-node {
  background: rgba(0,0,0,0.15) !important;
  border: 1px solid rgba(255,255,255,0.05) !important;
  border-radius: 8px !important;
  padding: 10px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  position: relative !important;
}

.zone-node:hover {
  background: var(--bg-glass-hover) !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.18) !important;
}

.zone-node.active {
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.1) 0%, rgba(139, 92, 255, 0.12) 100%) !important;
  border-color: var(--neon-magenta) !important;
  box-shadow: 0 0 12px rgba(255, 0, 128, 0.25) !important;
}

.zone-icon {
  font-size: 1.4rem !important;
}

.zone-label {
  font-family: 'VT323', monospace !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  color: var(--color-text-main) !important;
}

.zone-node.active .zone-label {
  color: var(--neon-magenta) !important;
  text-shadow: 0 0 8px rgba(255,0,128,0.4) !important;
}

.zone-desc {
  font-size: 0.65rem !important;
  color: var(--color-text-muted) !important;
  text-align: center !important;
  opacity: 0.7 !important;
}

/* 4. Crew Dossiers and Store Grid Design */
.staff-stack {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 16px !important;
  margin-top: 10px !important;
}

.employee-card,
.upgrade-card {
  background: rgba(10, 6, 22, 0.65) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  transition: all 0.25s ease !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
  position: relative;
  overflow: hidden;
}

.employee-card:hover,
.upgrade-card:hover {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 4px 18px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  transform: translateY(-2px) !important;
}

/* Action button inside cards */
.employee-card button,
.upgrade-card button {
  font-family: 'VT323', monospace !important;
  font-size: 1.15rem !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  text-transform: uppercase !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

/* Compiling styling for lists and scrollbars */
.terminal-console {
  background: rgba(2, 0, 8, 0.8) !important;
  border: 1px dashed var(--border-glass) !important;
  border-radius: 8px !important;
  font-family: 'Courier New', Courier, monospace !important;
  padding: 12px !important;
  font-size: 0.74rem !important;
}

/* Neon Scrollbar customization */
.terminal-console::-webkit-scrollbar,
.guide-scroll-container::-webkit-scrollbar,
.roadmap-steps-list::-webkit-scrollbar {
  width: 6px !important;
  height: 6px !important;
}

.terminal-console::-webkit-scrollbar-track,
.guide-scroll-container::-webkit-scrollbar-track,
.roadmap-steps-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35) !important;
}

.terminal-console::-webkit-scrollbar-thumb,
.guide-scroll-container::-webkit-scrollbar-thumb,
.roadmap-steps-list::-webkit-scrollbar-thumb {
  background: var(--neon-magenta) !important;
  border-radius: 3px !important;
  box-shadow: 0 0 6px var(--neon-magenta) !important;
}

/* Live dot animation */
.live-dot {
  width: 6px !important;
  height: 6px !important;
  background: #ff1744 !important;
  border-radius: 50% !important;
  display: inline-block !important;
  margin-right: 6px !important;
  box-shadow: 0 0 8px #ff1744 !important;
  animation: live-blink 1s ease-in-out infinite alternate !important;
}

@keyframes live-blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* ═══════════════════════════════════════
   CARD ITEM & LIST OVERRIDES
   ═══════════════════════════════════════ */
.card-item {
  background: rgba(12, 4, 32, 0.45) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 10px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  transition: all 0.25s ease !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03), 0 4px 12px rgba(0,0,0,0.3) !important;
  position: relative !important;
}

.card-item:hover {
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 4px 20px rgba(0, 229, 255, 0.22), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  transform: translateY(-2px) !important;
  background: rgba(22, 8, 48, 0.6) !important;
}

.card-item.card-owned {
  border-color: var(--neon-magenta) !important;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.08) 0%, rgba(139, 92, 255, 0.08) 100%) !important;
  box-shadow: 0 0 14px rgba(255, 0, 128, 0.15) !important;
}

.card-item-title {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  color: #ffffff !important;
}

.card-item-desc {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.78rem !important;
  color: var(--color-text-muted) !important;
  line-height: 1.4 !important;
}

.cost-green {
  color: #39ff14 !important;
  font-family: 'VT323', monospace !important;
  font-size: 1.1rem !important;
  text-shadow: 0 0 4px rgba(57, 255, 20, 0.3) !important;
}

.cost-cyan {
  color: var(--color-cyan) !important;
  font-family: 'VT323', monospace !important;
  font-size: 1.1rem !important;
  text-shadow: 0 0 4px rgba(0, 229, 255, 0.3) !important;
}

/* Active staff rows */
.staff-row {
  background: rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 8px !important;
  transition: all 0.2s ease !important;
}

.staff-row:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.staff-name {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  color: #ffffff !important;
  display: block !important;
}

.staff-details {
  font-family: 'Outfit', sans-serif !important;
  font-size: 0.74rem !important;
  color: var(--color-text-muted) !important;
  display: block !important;
  margin-top: 2px !important;
}

/* ═══════════════════════════════════════
   PREMIUM RETRO CYBER-PURPLE OVERRIDES
   ═══════════════════════════════════════ */

/* Global Readability Overrides */
body, 
p, 
span, 
div, 
h1, h2, h3, h4, h5, h6,
button, 
a, 
table, 
td, 
th, 
input, 
textarea {
  font-family: 'VT323', monospace !important;
  color: var(--color-text-main) !important;
  text-shadow: 0 0 5px rgba(139, 92, 255, 0.4) !important;
}

/* Set readable larger font size for VT323 monospaced elements */
body {
  font-size: 1.35rem !important;
  line-height: 1.4 !important;
}

/* Make body descriptions, details, help lines and guides use a crisp Courier layout for absolute readability */
.card-item-desc, 
.hud-stat-flavor, 
.roadmap-step-hint, 
.guide-section p, 
.narrative-body-text, 
.confirm-toast-msg, 
.prompt-toast-msg,
.history-table td, 
.history-table th, 
.terminal-line,
.modal-meta,
.dev-section-hint,
.employee-card .card-item-desc {
  font-family: 'Courier New', Courier, monospace !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  color: var(--color-text-main) !important;
  text-shadow: none !important;
}

/* Clean double line retro borders for panels */
.glass-panel {
  background: var(--bg-primary) !important;
  border: 3px double var(--border-glass) !important;
  border-radius: 4px !important;
  box-shadow: 0 0 18px rgba(139, 92, 255, 0.25) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.glass-panel::before {
  display: none !important;
}

/* Soften scanline overlay to keep text extremely crisp and readable */
body::before {
  opacity: 0.18 !important;
  background-size: 100% 3px, 3px 100% !important;
}

/* CRT Screen bezel framing adjustments */
.app-wrapper {
  border: 10px solid #1a083a !important;
  border-radius: 12px !important;
  box-shadow: 0 0 35px rgba(139, 92, 255, 0.35) !important;
  background: var(--bg-primary) !important;
}

/* Header Adjustments */
.synth-header {
  border: 3px double var(--border-glass) !important;
  border-radius: 4px !important;
  background: var(--bg-primary) !important;
  box-shadow: 0 0 12px rgba(139, 92, 255, 0.2) !important;
}

h1.logo-title {
  color: var(--neon-cyan) !important;
  font-size: 2rem !important;
}

h1.logo-title span {
  -webkit-text-fill-color: initial !important;
  -webkit-background-clip: initial !important;
  color: var(--neon-magenta) !important;
  text-shadow: 0 0 10px rgba(255, 0, 128, 0.4) !important;
}

/* Zone navigation rail buttons */
.zone-rail {
  border: 3px double var(--border-glass) !important;
  border-radius: 4px !important;
  background: var(--bg-primary) !important;
}

.zone-node {
  border: 1px solid var(--border-glass) !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--border-glass) !important;
  transition: all 0.12s ease !important;
}

.zone-node:hover {
  background: rgba(139, 92, 255, 0.15) !important;
  box-shadow: 0 0 8px rgba(139, 92, 255, 0.3) !important;
}

.zone-node.active {
  background: var(--border-glass) !important;
  color: #000000 !important;
  box-shadow: 0 0 12px rgba(139, 92, 255, 0.5) !important;
}

.zone-node.active .zone-label,
.zone-node.active .zone-icon,
.zone-node.active .zone-desc {
  color: #000000 !important;
  text-shadow: none !important;
}

/* Stat telemetry adjustments */
.stat-card.hud-cash-card {
  border: 1px solid var(--border-glass) !important;
  background: transparent !important;
}

.status-bar-container.hud-bar-block {
  border: 1px solid var(--border-glass) !important;
  background: transparent !important;
}

.status-bar-track {
  background: #000000 !important;
  border: 1px solid var(--border-glass) !important;
}

.status-bar-fill {
  background: var(--border-glass) !important;
  box-shadow: 0 0 8px var(--border-glass) !important;
}

/* Specific bar overrides for cash metrics */
.stat-card.hud-cash-card .stat-value {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 8px rgba(0, 255, 240, 0.5) !important;
}

/* Card item grid boxes */
.card-item {
  border: 3px double var(--border-glass) !important;
  border-radius: 4px !important;
  background: #000000 !important;
  box-shadow: none !important;
}

.card-item:hover {
  background: rgba(139, 92, 255, 0.08) !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.25) !important;
}

.card-item.card-owned {
  border-color: var(--neon-magenta) !important;
  background: rgba(255, 0, 128, 0.06) !important;
}

.card-item-title span {
  color: var(--neon-cyan) !important;
}

/* Crew list items and grids */
.staff-row {
  border: 1px solid var(--border-glass) !important;
  border-radius: 4px !important;
  background: transparent !important;
}

.staff-row:hover {
  background: rgba(139, 92, 255, 0.08) !important;
}

.staff-name, .staff-details {
  color: var(--border-glass) !important;
}

/* Button UI */
.btn-primary,
.btn-secondary {
  border: 1px solid var(--border-glass) !important;
  background: transparent !important;
  color: var(--border-glass) !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.btn-primary:hover,
.btn-secondary:hover {
  background: var(--border-glass) !important;
  color: #000000 !important;
  box-shadow: 0 0 10px rgba(139, 92, 255, 0.5) !important;
}

.btn-primary:hover *,
.btn-secondary:hover * {
  color: #000000 !important;
  text-shadow: none !important;
}

/* Scrollbars overrides in Cyber Cyan */
::-webkit-scrollbar-thumb {
  background: var(--neon-cyan) !important;
  box-shadow: 0 0 6px var(--neon-cyan) !important;
}

/* Warnings and highlights */
.cost-green, .cost-cyan, .cash-green {
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 5px rgba(0, 229, 255, 0.4) !important;
}

.cost-pink, .cost-gold, .log-warn, .log-error, .modal-title--danger, .modal-title--warning {
  color: var(--neon-magenta) !important;
  text-shadow: 0 0 5px rgba(255, 0, 128, 0.4) !important;
}

.confirm-toast-yes, .confirm-toast-no {
  background: transparent !important;
  border-radius: 4px !important;
}
.confirm-toast-yes {
  border-color: var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
}
.confirm-toast-yes:hover {
  background: var(--neon-cyan) !important;
  color: #000000 !important;
}
.confirm-toast-no {
  border-color: var(--neon-magenta) !important;
  color: var(--neon-magenta) !important;
}
.confirm-toast-no:hover {
  background: var(--neon-magenta) !important;
  color: #000000 !important;
}

/* Turn-Based Action Styles */
.advance-day-btn {
  border-color: var(--neon-cyan) !important;
  color: var(--neon-cyan) !important;
  box-shadow: 0 0 10px rgba(0, 255, 240, 0.2) !important;
  animation: pulse-advance-btn 2s infinite ease-in-out;
}

.advance-day-btn:hover {
  background: var(--neon-cyan) !important;
  color: #000000 !important;
  box-shadow: 0 0 15px rgba(0, 255, 240, 0.6) !important;
}

@keyframes pulse-advance-btn {
  0% { box-shadow: 0 0 5px rgba(0, 255, 240, 0.2); }
  50% { box-shadow: 0 0 15px rgba(0, 255, 240, 0.5); }
  100% { box-shadow: 0 0 5px rgba(0, 255, 240, 0.2); }
}

.turn-summary-block {
  margin: 12px 0;
  padding: 8px 12px;
  border-left: 4px solid var(--neon-cyan);
  background: rgba(0, 255, 240, 0.03);
}
