:root {
  --bg: #050505;
  --cyan: #00f6ff;
  --pink: #ff2bd6;
  --text: #efefef;
  --gray: #222222;
  --card-bg: rgba(20, 20, 20, 0.7);
  --font-display: 'Bebas Neue', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

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

/* Utility */
.hidden { display: none !important; }

/* Layout */
.main-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- HERO SECTION --- */
.hero {
  padding: 60px 0 30px;
  text-align: center;
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto 30px;
}

.glitch-img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 0 30px rgba(0, 246, 255, 0.2), 0 0 50px rgba(255, 43, 214, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Floating Captions */
.floating-caption {
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
  animation: float 4s ease-in-out infinite alternate;
  z-index: 10;
}
.cap-1 { top: 10%; left: -5%; animation-delay: 0s; border-color: var(--cyan); box-shadow: 0 0 10px rgba(0,246,255,0.3); }
.cap-2 { top: 50%; right: -10%; animation-delay: 1s; }
.cap-3 { bottom: 20%; left: -10%; animation-delay: 0.5s; border-color: var(--pink); box-shadow: 0 0 10px rgba(255,43,214,0.3); }
.cap-4 { bottom: 5%; right: 5%; animation-delay: 1.5s; }

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  100% { transform: translateY(-15px) rotate(2deg); }
}

/* Typography */
.hero-text { margin-bottom: 20px; }

h1.glitch-text {
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 1.05;
  margin-bottom: 15px;
  position: relative;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 2px 2px 0px var(--cyan), -2px -2px 0px var(--pink);
}

.subtitle {
  font-size: 1rem;
  color: var(--cyan);
  letter-spacing: 2px;
  margin-bottom: 20px;
}

/* Pulse Counter */
.pulse-counter {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 43, 214, 0.1);
  border: 1px solid var(--pink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 0 15px rgba(255, 43, 214, 0.2);
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--pink);
  border-radius: 50%;
  margin-right: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 43, 214, 0.7); }
  70% { transform: scale(1.1); opacity: 0.8; box-shadow: 0 0 0 6px rgba(255, 43, 214, 0); }
  100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 43, 214, 0); }
}

/* --- ENTRY STEPS --- */
.steps-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.step-card {
  display: flex;
  background: var(--card-bg);
  border: 1px solid var(--gray);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}

.step-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.1);
  margin-right: 20px;
}

.step-content {
  flex-grow: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: var(--text);
}

.step-content p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #aaa;
}

.step-content strong { color: var(--text); }

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 15px;
  opacity: 0.8;
}

/* Form Styles */
.form-card {
  border: 1px solid var(--cyan);
  box-shadow: 0 0 20px rgba(0, 246, 255, 0.1) inset;
}

#entry-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group { position: relative; }

/* Chrome Metallic Input */
.chrome-input {
  width: 100%;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  border: 2px solid var(--text);
  border-radius: 8px;
  background: linear-gradient(135deg, #e0e0e0 0%, #ffffff 20%, #888888 50%, #ffffff 80%, #e0e0e0 100%);
  background-size: 200% 200%;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  outline: none;
}

.chrome-input::placeholder { color: #555; font-weight: 400; }
.chrome-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 246, 255, 0.5), inset 0 2px 5px rgba(0,0,0,0.5);
}

/* Submit Button */
.submit-btn {
  width: 100%;
  padding: 18px;
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: var(--text);
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  background-size: 200% auto;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background-position: right center;
  transform: scale(1.02);
  box-shadow: 0 10px 20px rgba(255, 43, 214, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Error Messages */
.error-message {
  background: rgba(255, 0, 0, 0.1);
  border-left: 4px solid #ff3333;
  padding: 12px;
  font-size: 0.85rem;
  color: #ff9999;
  border-radius: 4px;
}

/* Status / Ended Card */
.status-card {
  text-align: center;
  padding: 60px 20px;
  background: var(--card-bg);
  border: 1px solid var(--gray);
  border-radius: 16px;
  margin-top: 40px;
}
.status-card h2 { font-family: var(--font-display); font-size: 3rem; color: var(--pink); }

/* --- SUCCESS STATE --- */
.success-state {
  text-align: center;
  padding: 60px 20px;
  animation: fadeIn 0.5s ease-out;
}

.success-icon { font-size: 4rem; margin-bottom: 20px; animation: bounce 2s infinite; }

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-20px); }
  60% { transform: translateY(-10px); }
}

.success-state h2 {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.success-state p { font-size: 1rem; color: #ccc; line-height: 1.6; }

/* Bonus Panel */
.bonus-card {
  margin-top: 40px;
  background: rgba(0, 246, 255, 0.05);
  border: 1px dashed var(--cyan);
  border-radius: 16px;
  padding: 30px 20px;
}

.bonus-card h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cyan);
  margin-bottom: 10px;
}

.share-input-group {
  display: flex;
  margin-top: 20px;
  gap: 10px;
}

.share-input {
  flex-grow: 1;
  padding: 12px;
  font-size: 0.85rem;
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 1.2rem;
  padding: 0 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.secondary-btn:hover { background: var(--cyan); color: var(--bg); }

/* SDK Placement */
#wbx-powered-by-slot { margin-top: auto; padding-top: 30px; text-align: center; }

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

@media (max-width: 480px) {
  h1.glitch-text { font-size: 2.8rem; }
  .step-number { font-size: 2rem; margin-right: 15px; }
  .step-card { padding: 20px 15px; }
  .floating-caption { display: none; } /* Hide on small mobile to avoid clutter */
}