/* Landing page styles */

body.landing-body {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: 'VT323', monospace;
  min-height: 100vh;
  overflow: hidden;
}

.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
}

/* Scanline overlay */
.landing-container::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
  pointer-events: none;
  z-index: 100;
}

.usb-art {
  position: relative;
  width: 320px;
  height: 180px;
  margin-bottom: 2rem;
  animation: glitch 3s infinite;
}

.usb-body {
  width: 240px;
  height: 120px;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 3px solid #e94560;
  border-radius: 8px;
  position: absolute;
  top: 30px;
  left: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 20px rgba(233, 69, 96, 0.4),
    inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.usb-connector {
  width: 60px;
  height: 40px;
  background: linear-gradient(90deg, #888, #aaa, #888);
  border: 2px solid #666;
  border-left: none;
  position: absolute;
  right: -22px;
  top: 40px;
  border-radius: 0 4px 4px 0;
}

.usb-connector::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 35px;
  height: 6px;
  background: #333;
  border-radius: 2px;
}

.usb-connector::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 8px;
  width: 35px;
  height: 6px;
  background: #333;
  border-radius: 2px;
}

.usb-label {
  color: #e94560;
  font-family: 'Special Elite', cursive;
  font-size: 1.4rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 0 0 10px rgba(233, 69, 96, 0.6);
}

.usb-label small {
  display: block;
  font-size: 0.7rem;
  color: #00ff41;
  letter-spacing: 5px;
  margin-top: 4px;
}

.usb-sticker {
  position: absolute;
  top: 35px;
  left: 45px;
  width: 80px;
  height: 25px;
  background: #ff6b35;
  transform: rotate(-5deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: #000;
  font-weight: bold;
  font-family: 'Special Elite', cursive;
}

.led {
  position: absolute;
  bottom: 8px;
  right: 15px;
  width: 6px;
  height: 6px;
  background: #00ff41;
  border-radius: 50%;
  animation: blink 1.5s infinite;
  box-shadow: 0 0 8px #00ff41;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

@keyframes glitch {
  0%, 94%, 100% { transform: translate(0); }
  95% { transform: translate(-2px, 1px); }
  96% { transform: translate(2px, -1px); }
  97% { transform: translate(-1px, -2px); }
}

.title {
  font-family: 'Special Elite', cursive;
  font-size: 3rem;
  color: #e94560;
  text-shadow:
    3px 3px 0 #0f3460,
    0 0 20px rgba(233, 69, 96, 0.5);
  margin-bottom: 0.5rem;
  letter-spacing: 4px;
}

.subtitle {
  font-size: 1.2rem;
  color: #00ff41;
  margin-bottom: 2rem;
  letter-spacing: 8px;
  text-transform: uppercase;
}

.challenge-area {
  text-align: center;
  margin-top: 1rem;
}

.challenge-prompt {
  font-size: 1.1rem;
  color: #888;
  margin-bottom: 1rem;
}

.challenge-prompt .hint {
  color: #e94560;
  font-style: italic;
}

.challenge-input {
  background: transparent;
  border: 2px solid #333;
  border-bottom-color: #e94560;
  color: #00ff41;
  font-family: 'VT323', monospace;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  text-align: center;
  outline: none;
  width: 280px;
  letter-spacing: 4px;
  caret-color: #e94560;
}

.challenge-input:focus {
  border-color: #e94560;
  box-shadow: 0 0 15px rgba(233, 69, 96, 0.3);
}

.challenge-input::placeholder {
  color: #333;
  letter-spacing: 2px;
}

.enter-btn {
  display: none;
  margin-top: 1.5rem;
  background: transparent;
  border: 2px solid #e94560;
  color: #e94560;
  font-family: 'VT323', monospace;
  font-size: 1.3rem;
  padding: 0.6rem 2rem;
  cursor: pointer;
  letter-spacing: 4px;
  text-transform: uppercase;
  transition: all 0.3s;
}

.enter-btn:hover {
  background: #e94560;
  color: #0a0a0a;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.enter-btn.visible {
  display: inline-block;
  animation: fadeIn 0.5s ease;
}

.error-msg {
  color: #e94560;
  margin-top: 1rem;
  font-size: 1rem;
  min-height: 1.5em;
}

.noise {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 99;
}

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

.footer-text {
  position: fixed;
  bottom: 1rem;
  font-size: 0.8rem;
  color: #333;
  letter-spacing: 2px;
}

/* ==================== USB Carousel ==================== */

.usb-carousel {
  position: relative;
  width: 320px;
  height: 144px;
  margin-bottom: 2rem;
  animation: glitch 3s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}

.usb-carousel__img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: auto;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.18s ease-in-out;
  filter: drop-shadow(0 0 14px rgba(233, 69, 96, 0.35));
}

.usb-carousel__img.usb-carousel__active {
  opacity: 1;
}
