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

html, body {
  height: 100%;
  overflow: hidden;
  background: #1a1a2e;
  color: #e0e0e0;
  font-family: 'VT323', monospace;
}

.container {
  height: 100vh;
  width: 100vw;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  overflow-x: hidden;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: #ff6b6b;
  text-shadow: 3px 3px 0 #4a0000;
  margin-bottom: 0.25rem;
  letter-spacing: 0.3em;
  animation: wobble 2s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

.subtitle {
  color: #888;
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 1.5rem;
}

.ascii-frame {
  background: #0d0d1a;
  border: 3px solid #333;
  border-radius: 8px;
  padding: 1rem;
  margin: 0.75rem 0;
  width: min(90vw, 500px);
  box-shadow:
    inset 0 0 20px rgba(0,0,0,0.5),
    0 0 10px rgba(255,107,107,0.1);
}

.ascii-frame.wide {
  width: min(95vw, 700px);
}

.ascii-art {
  font-family: 'VT323', monospace;
  font-size: clamp(0.7rem, 1.5vw, 1rem);
  line-height: 1.2;
  color: #4ade80;
  white-space: pre;
  text-align: left;
  overflow-x: auto;
}

.ascii-art.blink {
  animation: colorshift 3s ease-in-out infinite;
}

@keyframes colorshift {
  0%, 100% { color: #4ade80; }
  33% { color: #60a5fa; }
  66% { color: #f472b6; }
}

.caption {
  text-align: center;
  color: #ff9f43;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  margin-top: 0.75rem;
  border-top: 1px dashed #444;
  padding-top: 0.5rem;
}

.footer {
  margin-top: auto;
  padding: 1rem;
  text-align: center;
  color: #666;
}

.footer p {
  font-size: clamp(0.8rem, 1.5vw, 1rem);
}

.footer .tiny {
  font-size: clamp(0.6rem, 1vw, 0.8rem);
  color: #444;
  margin-top: 0.25rem;
}
