body, html {
  margin: 0;
  padding: 0;
  background: black;
  font-family: monospace;
  color: #33ff33;
}

@media (max-width: 1280px) {
  #ai-game-wrapper {
    width: 90vw;
    height: 90vw;
  }

  #ai-game-terminal {
    font-size: 1rem;
  }

  #ai-game-wrapper::before {
    background: repeating-linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4),
      rgba(0, 0, 0, 0.3) 1px,
      transparent 2px,
      transparent 4px
    );
  }
}

#ai-game-wrapper::before {
  background-position: 0 0;
  animation: scanline-shift 1.5s linear infinite;
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.5),
    rgba(0, 0, 0, 0.4) 1px,
    transparent 3px,
    transparent 5px
  );
}

#ai-game-wrapper {
  position: relative;
  width: 1024px;
  height: 1024px;
  margin: 0 auto;
  background: black;
  font-family: monospace;
  color: #33ff33;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 0 60px #0f0 inset;
}

#crt-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('green-background.jpg') no-repeat center center;
  background-size: cover;
  z-index: 0;
}

#ai-game-terminal {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 75%;
  overflow-y: auto;
  padding: 10px;
  background: transparent;
  z-index: 1;
  font-size: 1.75rem;
  line-height: 1.4;
  text-shadow: none;
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
}

#ai-game-log {
  white-space: pre-wrap;
  margin-bottom: 1em;
}

#ai-game-form {
  display: flex;
}

#ai-game-input {
  background: radial-gradient(circle, #003300 0%, #000000 100%);
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #33ff33;
  color: #33ff33;
  font-size: 1.75rem;
  outline: none;
  caret-color: #33ff33;
}

#ai-game-menu {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 30px;
}

.game-icon {
  width: 48px;
  height: 48px;
  cursor: pointer;
  filter: drop-shadow(0 0 2px #33ff33);
  transition: transform 0.2s;
}

.game-icon:hover {
  transform: scale(1.2);
}

@keyframes scanline-shift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 4px;
  }
}

#ai-loader {
  color: #33ff33 !important;
  font-family: monospace;
  padding: 10px;
  text-align: center;
  font-size: 1.1rem;
  animation: crtFade 2s ease-in-out infinite;
}

@keyframes crtFade {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 0.3; }
}

.system-message {
  color: #33ff33;
  font-family: monospace;
}

