html {
  scroll-behavior: smooth;
}

body {
  font-family: 'JetBrains Mono', monospace;
  margin: 0;
  background-color: #000;
  color: #00ff9c;
  overflow-x: hidden;
}

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Sticky Menu & Mobile */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid #003b25;
}

/* Animations */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  visibility: hidden;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
  visibility: visible;
}

/* Game Styles */
#game-container {
  width: 100%;
  max-width: 600px;
  margin: 40px auto;
  border: 1px solid #003b25;
  background: #010101;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  height: 400px;
  user-select: none;
}
.falling-letter {
  position: absolute;
  color: #00ff9c;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.falling-letter:hover {
  text-shadow: 0 0 8px #00ff9c;
}
#game-ui {
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
#game-sequence {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  text-align: center;
  font-size: 20px;
  letter-spacing: 4px;
  color: #7dffca;
}
.game-over-screen {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
}
#game-catcher {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 15px;
  background: #00ff9c;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 -2px 10px rgba(0,255,156,0.4);
  z-index: 5;
}
