/* TropeOut - Synthwave/80s Computer Theme */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap');

:root {
  /* Synthwave Color Palette */
  --neon-pink: #ff0080;
  --neon-cyan: #00ffff;
  --neon-purple: #8000ff;
  --electric-blue: #0040ff;
  --laser-green: #00ff40;
  
  /* Dark Backgrounds */
  --bg-primary: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --bg-card: #0f0f23;
  
  /* Grid/Retro Colors */
  --grid-color: rgba(0, 255, 255, 0.2);
  --border-glow: rgba(255, 0, 128, 0.5);
  --text-primary: #ffffff;
  --text-secondary: #00ffff;
  --text-muted: #8892b0;
  
  /* Shadows */
  --neon-shadow: 0 0 20px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
}

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

body {
  font-family: 'Orbitron', monospace;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  
  /* Fixed background that doesn't scroll */
  background-image: 
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  background-attachment: fixed; /* This makes it not scroll */
  background-repeat: repeat;

 /* Add this for subtle animated effect */
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.02) 0%, transparent 50%),
    linear-gradient(rgba(0, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 400px 400px, 400px 400px, 50px 50px, 50px 50px;
  background-attachment: fixed;
  animation: subtle-bg-movement 30s ease-in-out infinite;
}

@keyframes subtle-bg-movement {
  0%, 100% { background-position: 0% 0%, 100% 100%, 0 0, 0 0; }
  50% { background-position: 100% 100%, 0% 0%, 0 0, 0 0; }
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
  position: relative;
  min-height: 100vh;
  
  /* Subtle background for content area */
  background: rgba(10, 10, 15, 0.8); /* Semi-transparent overlay */
  backdrop-filter: blur(1px); /* Subtle blur effect */
  
  /* Add subtle border */
  border-left: 1px solid rgba(0, 255, 255, 0.1);
  border-right: 1px solid rgba(0, 255, 255, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem 0.75rem;
    background: rgba(10, 10, 15, 0.9); /* More opaque on mobile */
    border-left: none;
    border-right: none;
  }
  
  body {
    background-size: 30px 30px; /* Smaller grid on mobile */
  }
}

/* Header */
.game-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.game-title {
  font-family: 'Orbitron', monospace;
  font-weight: 900;
  font-size: clamp(2.5rem, 8vw, 4rem);
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple));
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: neon-flow 3s ease-in-out infinite;
  text-shadow: var(--neon-shadow) var(--neon-pink);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.game-subtitle {
  font-family: 'Courier Prime', monospace;
  color: var(--text-secondary);
  font-size: 1.1rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes neon-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Trope Section */
.trope-section {
  margin-bottom: 2rem;
}

.trope-card {
  background: var(--bg-card);
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--box-shadow), inset 0 0 20px rgba(0, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.trope-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-cyan), var(--neon-purple), var(--electric-blue));
  border-radius: 12px;
  z-index: -1;
  animation: border-glow 4s linear infinite;
}

@keyframes border-glow {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

.trope-name {
    background: linear-gradient(45deg, #ff006e, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.trope-definition {
  font-family: 'Courier Prime', monospace;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Progress Section */
.progress-section {
  margin-bottom: 2rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.progress-text {
  font-family: 'Courier Prime', monospace;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* Progress layout updates */
.progress-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* Base attempts counter styles */
.attempts-text {
  font-family: 'Courier Prime', monospace;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  transition: color 0.3s ease;
}

/* Attempt warning states */
.attempts-text.attempts-warning {
  color: #ff8000; /* Orange warning */
  animation: subtle-pulse 2s ease-in-out infinite;
}

.attempts-text.attempts-danger {
  color: var(--neon-pink); /* Red danger */
  animation: urgent-pulse 1s ease-in-out infinite;
}

/* Warning animations */
@keyframes subtle-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes urgent-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hint-btn {
  background: linear-gradient(45deg, var(--neon-purple), var(--electric-blue));
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hint-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-shadow) var(--neon-purple);
}

.progress-bar {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--grid-color);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-pink), var(--laser-green));
  transition: width 0.5s ease;
  box-shadow: 0 0 10px rgba(0, 255, 64, 0.5);
}

/* Input Section */
.input-section {
  margin-bottom: 2rem;
}

.game-form {
  display: flex;
  gap: 1rem;
}

.input-group {
  display: flex;
  width: 100%;
  gap: 1rem;
}

.media-input {
  flex: 1;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--grid-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Courier Prime', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.media-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: var(--neon-shadow) rgba(0, 255, 255, 0.3);
}

.media-input::placeholder {
  color: var(--text-muted);
}

.submit-btn {
  padding: 1rem 2rem;
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
  border: none;
  border-radius: 8px;
  color: white;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-shadow) var(--neon-pink);
}

/* Submissions Section */
.submissions-section h3 {
  font-family: 'Orbitron', monospace;
  color: var(--neon-cyan);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.submissions-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.submission-slot {
  padding: 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--grid-color);
  border-radius: 8px;
  font-family: 'Courier Prime', monospace;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.submission-slot.correct {
  border-color: var(--laser-green);
  background: rgba(0, 255, 64, 0.1);
  box-shadow: 0 0 10px rgba(0, 255, 64, 0.2);
}

.submission-slot.incorrect {
  border-color: var(--neon-pink);
  background: rgba(255, 0, 128, 0.1);
  box-shadow: 0 0 10px rgba(255, 0, 128, 0.2);
}

.slot-content {
  margin-left: 0.5rem;
  color: var(--text-muted);
}

.submission-slot.correct .slot-content {
  color: var(--laser-green);
}

.submission-slot.incorrect .slot-content {
  color: var(--neon-pink);
}

/* Typing Effect Styles */
.slot-content.typing {
  border-right: 2px solid var(--neon-cyan);
  animation: blink-cursor 1s infinite;
  min-width: 1ch; /* Ensures cursor is visible even with no text */
}

.slot-content.typing-complete {
  border-right: none;
  animation: none;
}

/* Blinking cursor animation */
@keyframes blink-cursor {
  0%, 50% { border-right-color: var(--neon-cyan); }
  51%, 100% { border-right-color: transparent; }
}

/* Optional: Fade-in effect when typing starts */
.submission-slot.typing-in {
  animation: slot-highlight 0.3s ease;
}

@keyframes slot-highlight {
  0% { 
    background: rgba(0, 255, 255, 0.2);
    transform: scale(1.02);
  }
  100% { 
    background: var(--bg-tertiary);
    transform: scale(1);
  }
}

/* Guess History Styles */
.guess-history-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--grid-color);
}

.guess-history-section h4 {
  font-family: 'Orbitron', monospace;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.guess-history {
  min-height: 2rem;
}

.no-guesses {
  color: var(--text-muted);
  font-family: 'Courier Prime', monospace;
  font-style: italic;
  margin: 0;
}

.guess-history-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.guess-item {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  border: 1px solid var(--grid-color);
  background: var(--bg-tertiary);
}

.guess-item.incorrect {
  border-color: var(--neon-pink);
  background: rgba(255, 0, 128, 0.1);
  color: var(--neon-pink);
}

.guess-count {
  color: var(--text-muted);
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  margin: 0;
  text-align: right;
}

/* Game Complete Section */
.game-complete {
  margin-top: 2rem;
}

.complete-card {
  background: var(--bg-card);
  border: 2px solid var(--laser-green);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--box-shadow), var(--neon-shadow) rgba(0, 255, 64, 0.3);
}

.complete-title {
  font-family: 'Orbitron', monospace;
  color: var(--laser-green);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.complete-score {
  font-family: 'Courier Prime', monospace;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* Updated Complete Section Styles */
.complete-message {
  font-family: 'Courier Prime', monospace;
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0.5rem 0 1rem 0;
  line-height: 1.4;
}

.database-notice {
  background: var(--bg-tertiary);
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.disclaimer {
  color: var(--text-secondary);
  font-family: 'Courier Prime', monospace;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

.disclaimer strong {
  color: var(--neon-cyan);
}

.complete-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.share-btn, .stats-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.share-btn {
  background: linear-gradient(45deg, var(--neon-cyan), var(--electric-blue));
  color: white;
}

.stats-btn {
  background: linear-gradient(45deg, var(--neon-purple), var(--neon-pink));
  color: white;
}

.share-btn:hover, .stats-btn:hover {
  transform: translateY(-2px);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-card);
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--box-shadow), var(--neon-shadow) rgba(0, 255, 255, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--grid-color);
}

.modal-header h3 {
  font-family: 'Orbitron', monospace;
  color: var(--neon-cyan);
  text-transform: uppercase;
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--neon-pink);
}

.modal-body {
  padding: 1.5rem;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-family: 'Courier Prime', monospace;
}

.stat-label {
  color: var(--text-muted);
}

.stat-value {
  color: var(--neon-cyan);
  font-weight: 700;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .game-form {
    flex-direction: column;
  }
  
  .input-group {
    flex-direction: column;
  }
  
  .complete-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .progress-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Mobile Responsive Updates for New Elements */
  .guess-history-list {
    gap: 0.25rem;
  }

  .guess-item {
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
  }

  .database-notice {
    padding: 0.75rem;
  }

  .disclaimer {
    font-size: 0.8rem;
  }

  /* Mobile responsive for new progress layout */
  .progress-info {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    align-items: center;
  }

  .progress-left {
    align-items: center;
  }
}

/* Alpha Testing Link */
.alpha-link {
  position: fixed;
  bottom: 1rem;
  left: 1rem; /* Move to left side to avoid overlap */
  z-index: 999;
}

.alpha-link a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem; /* Smaller on mobile */
  background: var(--bg-secondary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  border: 1px solid var(--neon-cyan);
  transition: all 0.3s ease;
  display: block;
  opacity: 0.7; /* Less prominent */
}

.alpha-link a:hover {
  color: var(--bg-primary);
  background: var(--neon-cyan);
  box-shadow: 0 0 10px var(--neon-cyan);
  opacity: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .alpha-link {
    bottom: 0.5rem;
    left: 0.5rem;
  }
  
  .alpha-link a {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
}

/* NEW: Suggestion Feature Styles - Add to your styles.css */

.suggest-btn {
  background: linear-gradient(45deg, var(--neon-cyan), var(--electric-blue));
  border: none;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.suggest-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-shadow) rgba(0, 255, 255, 0.5);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Changed from center to flex-start */
  z-index: 1000;
  padding: 1rem; /* Add padding for breathing room */
  overflow-y: auto; /* Enable vertical scrolling */
  box-sizing: border-box;
}

.modal-content {
  background: var(--bg-card);
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: calc(100vh - 2rem); /* Ensure it fits in viewport with padding */
  box-shadow: var(--box-shadow), var(--neon-shadow) rgba(0, 255, 255, 0.3);
  margin: auto; /* Center horizontally, but allow vertical scrolling */
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent content overflow */
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto; /* Make modal body scrollable if content is too tall */
  flex: 1; /* Allow body to take remaining space */
}
.suggestion-instructions {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--neon-cyan);
}

.suggestion-instructions h4 {
  color: var(--neon-cyan);
  margin: 0 0 0.5rem 0;
  text-transform: uppercase;
  font-family: 'Orbitron', monospace;
  font-size: 1rem;
}

.suggestion-instructions p {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
  font-family: 'Courier Prime', monospace;
}

/* Form Styles */
.form-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--neon-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--grid-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: 'Courier Prime', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: var(--neon-shadow) rgba(0, 255, 255, 0.3);
}

.form-control::placeholder {
  color: var(--text-muted);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.submit-suggestion {
  background: linear-gradient(45deg, var(--neon-pink), var(--neon-purple));
  border: none;
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  font-size: 1rem;
}

.submit-suggestion:hover {
  transform: translateY(-2px);
  box-shadow: var(--neon-shadow) rgba(255, 0, 128, 0.5);
}

.submit-suggestion:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.success-message {
  background: rgba(0, 255, 64, 0.1);
  border: 2px solid var(--laser-green);
  color: var(--laser-green);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin-top: 1rem;
  font-family: 'Courier Prime', monospace;
  font-weight: 700;
}

/* Update complete actions to accommodate new button */
.complete-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.complete-actions .suggest-btn {
  background: linear-gradient(45deg, var(--laser-green), var(--neon-cyan));
}

.complete-actions .suggest-btn:hover {
  box-shadow: var(--neon-shadow) rgba(0, 255, 64, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .complete-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .complete-actions .suggest-btn,
  .complete-actions .share-btn,
  .complete-actions .stats-btn {
    width: 100%;
    max-width: 300px;
  }
  
  /* Mobile modal adjustments */
  .modal {
    padding: 0.5rem;
    align-items: flex-start; /* Ensure modal starts at top on mobile */
  }
  
  .modal-content {
    max-height: calc(100vh - 1rem); /* Less padding on mobile */
    margin-top: 0.5rem; /* Small top margin on mobile */
  }
  
  .modal-body {
    padding: 1rem; /* Reduce padding on mobile */
  }
  
  .suggestion-instructions {
    padding: 1rem; /* Reduce padding on mobile */
  }
}

.input-help {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 0.75rem;
            padding: 0.75rem 1rem;
            background: rgba(0, 255, 255, 0.05);
            border: 1px solid rgba(0, 255, 255, 0.2);
            border-radius: 8px;
            font-family: 'Courier Prime', monospace;
            font-size: 0.875rem;
            color: var(--text-muted);
            transition: all 0.3s ease;
        }

.input-help:hover {
    background: rgba(0, 255, 255, 0.08);
    border-color: rgba(0, 255, 255, 0.3);
}

.help-icon {
    font-size: 1rem;
    color: var(--neon-cyan);
    flex-shrink: 0;
}

.help-text {
    line-height: 1.4;
}

.help-text strong {
    color: var(--text-secondary);
}

/* Responsive design */
@media (max-width: 768px) {
    .input-help {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }
}

/* Optional: Subtle animation on page load */
.input-help {
    animation: fadeInUp 0.6s ease 0.3s both;
}

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

/* Enhanced header logo styles */
.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 1rem;
    flex-direction: row;
}

.header-hex-target {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 20px rgba(255, 0, 110, 0.4));
}

.header-hex-target .hex-ring {
    position: absolute;
    background: transparent;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    border: 3px solid;
}

.header-hex-target .hex-ring:nth-child(1) {
    width: 75px;
    height: 75px;
    border-color: #ff006e;
    filter: drop-shadow(0 0 15px rgba(255, 0, 110, 0.6));
    animation: logo-pulse 3s ease-in-out infinite;
}

.header-hex-target .hex-ring:nth-child(2) {
    width: 50px;
    height: 50px;
    border-color: #00d4ff;
    border-width: 2px;
    animation: logo-pulse 3s ease-in-out infinite 0.5s;
}

.header-hex-target .hex-ring:nth-child(3) {
    width: 25px;
    height: 25px;
    border-color: #ff006e;
    border-width: 2px;
    animation: logo-pulse 3s ease-in-out infinite 1s;
}

.header-hex-target .hex-center {
    width: 10px;
    height: 10px;
    background: linear-gradient(45deg, #ff006e, #00d4ff);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 10;
    filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.8));
    animation: logo-center-glow 2s ease-in-out infinite;
}

.header-glitch-text {
    font-size: clamp(3rem, 8vw, 4.5rem);
    font-weight: 900;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    color: #ffffff;
    line-height: 0.85;
    margin: 0;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.header-glitch-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 2px;
    width: 100%;
    height: 100%;
    color: #ff006e;
    z-index: -1;
    animation: glitch-shift 4s infinite linear;
}

.header-glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: -2px;
    width: 100%;
    height: 100%;
    color: #00d4ff;
    z-index: -2;
    animation: glitch-shift 4s infinite linear reverse;
}

@keyframes logo-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.02);
    }
}

@keyframes logo-center-glow {
    0%, 100% { 
        filter: drop-shadow(0 0 8px rgba(255, 0, 110, 0.8));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.9));
    }
}

@keyframes glitch-shift {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-1px); }
    40% { transform: translateX(1px); }
    60% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
}

@media (max-width: 768px) {
    .logo-header {
        gap: 15px;
        flex-direction: row;
    }
    
    .header-hex-target {
        width: 50px;
        height: 50px;
    }
    
    .header-hex-target .hex-ring:nth-child(1) {
        width: 45px;
        height: 45px;
        border-width: 2px;
    }
    
    .header-hex-target .hex-ring:nth-child(2) {
        width: 30px;
        height: 30px;
        border-width: 2px;
    }
    
    .header-hex-target .hex-ring:nth-child(3) {
        width: 15px;
        height: 15px;
        border-width: 1px;
    }
    
    .header-hex-target .hex-center {
        width: 6px;
        height: 6px;
    }
}