/* main variables - change colors here if needed */
:root {
  --bg: #0a0a0f;
  --bg2: #0f0f1a;
  --panel: #12121f;
  --neon: #00fff7;
  --neon2: #ff003c;
  --neon3: #ffe600;
  --neon4: #a855f7;
  --text: #e0e0ff;
  --dim: #5a5a8a;
}

/* light mode overrides */
body.light {
  --bg: #e8e0f0;
  --bg2: #d0c8e8;
  --panel: #f0ecff;
  --neon: #007bff;
  --neon2: #cc0033;
  --neon3: #cc9900;
  --neon4: #7c3aed;
  --text: #1a1a2e;
  --dim: #6060a0;
}

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

body {
  font-family: 'Orbitron', 'Courier New', monospace;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

/* background image */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url('fighter.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: -1;
  pointer-events: none;
}

/* scanline effect - pure css, no images needed */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.07) 2px,
    rgba(0, 0, 0, 0.07) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* NAV */
nav {
  background: var(--panel);
  border-bottom: 2px solid var(--neon);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 0 20px var(--neon);
}

.logo {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon), 0 0 30px var(--neon);
  letter-spacing: 2px;
}

.logo span {
  color: var(--neon2);
  text-shadow: 0 0 10px var(--neon2);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 1px;
  transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon3);
  text-shadow: 0 0 8px var(--neon3);
}

/* page switching - only .active is shown */
.page {
  display: none;
  padding: 40px 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.page.active {
  display: block;
}

/* HERO */
.hero {
  text-align: center;
  padding: 50px 20px 36px;
}

.hero h1 {
  font-family: 'Courier New', monospace;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon), 0 0 40px var(--neon);
  line-height: 1.6;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--neon2);
  text-shadow: 0 0 10px var(--neon2);
}

.hero p {
  color: var(--dim);
  font-size: 0.72rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

/* blinking coin text - if this annoys you just remove the animation */
.insert-coin {
  font-family: 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--neon3);
  animation: blink 1s step-end infinite;
  letter-spacing: 2px;
}

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

.sec-title {
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--neon3);
  text-shadow: 0 0 8px var(--neon3);
  margin-bottom: 6px;
  letter-spacing: 2px;
}

.sec-sub {
  color: var(--dim);
  font-size: 0.68rem;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

/* each feature lives in one of these panels */
.arcade-panel {
  background: var(--panel);
  border: 1px solid var(--neon4);
  border-radius: 8px;
  padding: 28px;
  margin-bottom: 36px;
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.25), inset 0 0 30px rgba(0, 0, 0, 0.3);
  position: relative;
}

.panel-tag {
  position: absolute;
  top: -12px;
  left: 20px;
  background: var(--neon4);
  color: #000;
  font-family: 'Courier New', monospace;
  font-size: 0.55rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

/* FEATURE 1 - escape button zone */
#escape-zone {
  position: relative;
  width: 100%;
  height: 260px;
  background: radial-gradient(ellipse at center, #1a0a2e 0%, #0a0a0f 70%);
  border: 2px solid var(--neon4);
  border-radius: 8px;
  overflow: hidden;
}

#escape-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  background: transparent;
  color: var(--neon2);
  border: 2px solid var(--neon2);
  padding: 12px 20px;
  cursor: pointer;
  border-radius: 4px;
  box-shadow: 0 0 14px var(--neon2), inset 0 0 10px rgba(255, 0, 60, 0.1);
  transition: box-shadow 0.15s;
  letter-spacing: 1px;
  white-space: nowrap;
}

#escape-btn:hover {
  box-shadow: 0 0 28px var(--neon2);
}

.score-bar {
  text-align: center;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--neon3);
  letter-spacing: 1px;
}

/* FEATURE 2 - cursor chaser box */
#chaser-zone {
  position: relative;
  width: 100%;
  height: 260px;
  background: radial-gradient(ellipse at center, #0a1a0a 0%, #0a0a0f 70%);
  border: 2px solid var(--neon);
  border-radius: 8px;
  overflow: hidden;
  cursor: crosshair;
}

#chaser-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  font-size: 0.5rem;
  background: transparent;
  border: none;
  cursor: none;
  /* transition handles the smooth fleeing movement */
  transition: left 0.18s ease-out, top 0.18s ease-out;
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--neon));
  pointer-events: none;
  user-select: none;
}

#chaser-zone .hint {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 0.5rem;
  color: var(--dim);
  pointer-events: none;
}

/* FEATURE 3 - peekaboo zone */
#peekaboo-zone {
  text-align: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, #1a1a0a 0%, #0a0a0f 70%);
  border: 2px solid var(--neon3);
  border-radius: 8px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

#peek-sprite {
  font-size: 5rem;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.3s, filter 0.3s;
  filter: drop-shadow(0 0 12px var(--neon3));
  user-select: none;
  line-height: 1;
}

#peek-sprite:hover {
  transform: scale(1.15);
}

/* hidden state for peekaboo - toggled via JS */
#peek-sprite.hidden-sprite {
  opacity: 0;
  transform: scale(0.2) translateY(40px);
}

#peek-msg {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  color: var(--neon3);
  letter-spacing: 1px;
  min-height: 20px;
}

/* FEATURE 4 - gif upload area */
.upload-area {
  border: 2px dashed var(--neon);
  border-radius: 8px;
  padding: 36px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
  border-color: var(--neon3);
  background: rgba(255, 230, 0, 0.04);
}

.upload-area input {
  display: none;
}

.upload-area .icon {
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.upload-area p {
  color: var(--dim);
  font-size: 0.68rem;
  letter-spacing: 1px;
}

#gif-preview {
  display: none;
  margin-top: 20px;
  text-align: center;
}

#gif-preview img {
  max-width: 100%;
  max-height: 280px;
  border-radius: 8px;
  border: 2px solid var(--neon);
  box-shadow: 0 0 20px var(--neon);
}

#gif-preview p {
  margin-top: 8px;
  color: var(--dim);
  font-size: 0.62rem;
}

.arcade-btn {
  font-family: 'Courier New', monospace;
  font-size: 0.6rem;
  background: transparent;
  color: var(--neon3);
  border: 2px solid var(--neon3);
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 4px;
  margin-top: 14px;
  box-shadow: 0 0 10px var(--neon3);
  letter-spacing: 1px;
  transition: box-shadow 0.2s;
}

.arcade-btn:hover {
  box-shadow: 0 0 22px var(--neon3);
}

/* FEATURE 5 - day/night toggle */
.mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.mode-info {
  font-size: 0.7rem;
  color: var(--dim);
  letter-spacing: 1px;
}

.mode-info strong {
  color: var(--neon);
  font-size: 0.8rem;
  display: block;
  margin-bottom: 4px;
}

.switch {
  position: relative;
  width: 70px;
  height: 36px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #222;
  border: 2px solid var(--neon4);
  border-radius: 36px;
  transition: 0.3s;
}

.slider:before {
  content: '';
  position: absolute;
  height: 24px;
  width: 24px;
  left: 5px;
  bottom: 4px;
  background: var(--neon4);
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 0 8px var(--neon4);
}

.switch input:checked + .slider {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--neon3);
}

.switch input:checked + .slider:before {
  transform: translateX(32px);
  background: var(--neon3);
  box-shadow: 0 0 8px var(--neon3);
}

/* ABOUT PAGE */
.about-hero {
  text-align: center;
  padding: 40px 20px;
  border: 2px solid var(--neon);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 0 30px rgba(0, 255, 247, 0.12);
  margin-bottom: 32px;
}

.about-hero h2 {
  font-family: 'Courier New', monospace;
  font-size: clamp(0.8rem, 2vw, 1.3rem);
  color: var(--neon);
  text-shadow: 0 0 10px var(--neon);
  margin-bottom: 10px;
}

.about-hero p {
  color: var(--dim);
  font-size: 0.7rem;
  letter-spacing: 1px;
  line-height: 2;
}

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

.stat-card {
  background: var(--panel);
  border: 1px solid var(--neon4);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.2);
}

.stat-card .icon {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.stat-card h3 {
  font-size: 0.7rem;
  color: var(--neon4);
  margin-bottom: 6px;
  letter-spacing: 1px;
}

.stat-card p {
  font-size: 0.65rem;
  color: var(--dim);
  line-height: 1.8;
}

/* STATS TABLE */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  letter-spacing: 1px;
  margin-bottom: 32px;
}

.stats-table thead tr {
  background: var(--neon4);
  color: #000;
}

.stats-table th {
  padding: 14px 20px;
  text-align: left;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.stats-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--neon4);
  color: var(--text);
}

/* alternate row shading */
.stats-table tbody tr:nth-child(even) {
  background: rgba(168, 85, 247, 0.08);
}

.stats-table tbody tr:hover {
  background: rgba(168, 85, 247, 0.18);
}

.stats-table td:first-child {
  color: var(--neon3);
  font-family: 'Courier New', monospace;
}

/* FOOTER */
footer {
  background: var(--panel);
  border-top: 2px solid var(--neon2);
  box-shadow: 0 0 20px var(--neon2);
  padding: 32px;
  text-align: center;
}

.footer-title {
  font-family: 'Courier New', monospace;
  font-size: 0.75rem;
  color: var(--neon2);
  text-shadow: 0 0 8px var(--neon2);
  margin-bottom: 20px;
  letter-spacing: 2px;
}

.contact-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.contact-card {
  background: var(--bg2);
  border: 1px solid var(--neon4);
  border-radius: 8px;
  padding: 18px 28px;
  text-align: center;
  min-width: 200px;
}

.contact-card .c-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.contact-card .c-role {
  font-size: 0.58rem;
  color: var(--neon3);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.contact-card .c-name {
  font-size: 0.7rem;
  color: var(--text);
  letter-spacing: 1px;
}

.footer-copy {
  font-size: 0.55rem;
  color: var(--dim);
  letter-spacing: 1px;
  margin-top: 10px;
}
