
/* Ultimate DieselPunk with Mist, Sparks, Quotes, Dynamic Status */

body {
  background: #000;
  font-family: 'Share Tech Mono', monospace;
  color: #e0d9c8;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

#background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.2;
}

.overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.15);
  z-index: 0;
  pointer-events: none;
}

.mist {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: url('https://www.transparenttextures.com/patterns/foggy-birds.png');
  background-repeat: repeat;
  opacity: 0.03;
  animation: mistMove 60s linear infinite;
  z-index: 1;
  pointer-events: none;
}

@keyframes mistMove {
  0% {transform: translate(0,0);}
  100% {transform: translate(-20%, -20%);}
}

.grid-container, .card, .title {
  position: relative;
  z-index: 2;
}

.title {
  text-align: center;
  margin-top: 20px;
  font-size: 3rem;
  text-shadow: 2px 2px #000;
}

.title .normal {
  color: #ffc87f;
}

.title .glitch-layer {
  color: #ff4444;
  position: absolute;
  top: 0;
  left: 2px;
  clip: rect(0, 0, 0, 0);
  animation: glitch 2s infinite;
}

.quote {
  text-align: center;
  font-size: 1.2rem;
  margin-top: 5px;
  font-style: italic;
  opacity: 0.7;
}

.grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin: 30px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.card {
  background: rgba(10,10,10,0.9);
  border: 2px solid #3b3b3b;
  border-radius: 12px;
  padding: 20px;
  flex: 1 1 45%;
  min-width: 300px;
  box-shadow: 0 0 20px rgba(255,191,63,0.3);
  position: relative;
}

.card.pulse {
  animation: pulse 6s infinite;
}

.spark-container::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #ffaa00;
  top: -10px;
  left: 50%;
  border-radius: 50%;
  opacity: 0.7;
  animation: spark 3s infinite;
}

@keyframes spark {
  0%, 100% { transform: translateX(0) translateY(0) scale(1);}
  50% { transform: translateX(20px) translateY(20px) scale(0);}
}

input, button {
  width: 100%;
  max-width: 400px;
  margin-bottom: 10px;
  border-radius: 8px;
  padding: 10px;
}

input {
  background: #222;
  color: #e0d9c8;
  border: 2px solid #555;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
}

input:focus {
  outline: none;
  border-color: #ff9933;
  box-shadow: 0 0 10px rgba(255,153,51,0.6);
}

button {
  background: linear-gradient(145deg, #cc6600, #b35400);
  color: white;
  font-weight: bold;
  border: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

button:hover {
  background: #ff9933;
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(255,153,51,0.5);
}

.status-area {
  font-weight: bold;
}

@keyframes pulseGreen {
  0%, 100% {text-shadow: 0 0 5px #00ff66;}
  50% {text-shadow: 0 0 15px #00ff66;}
}

@keyframes pulseRed {
  0%, 100% {text-shadow: 0 0 5px #ff4444;}
  50% {text-shadow: 0 0 15px #ff4444;}
}

@keyframes pulseOrange {
  0%, 100% {text-shadow: 0 0 5px #ff9933;}
  50% {text-shadow: 0 0 15px #ff9933;}
}

pre.log-window {
  background: #0f0f0f;
  color: #00ff99;
  border-radius: 10px;
  padding: 10px;
  min-height: 200px;
  overflow-y: auto;
  background-image: repeating-linear-gradient(0deg, rgba(0,255,100,0.03) 0px, transparent 3px);
  animation: scanline 6s linear infinite;
}

@keyframes scanline {
  0% {background-position: 0 0;}
  100% {background-position: 0 100px;}
}

footer {
  text-align: center;
  margin: 30px auto 10px;
  color: #666;
  font-size: 0.8rem;
}
