/* ============================================================
   DMS BRIEFING GENERATOR — "Mission Control" Edition
   Turning soul-crushing Excel work into a launch sequence.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* --- Design Tokens --- */
:root {
  --void: #06060b;
  --surface: #0e0e16;
  --card: #13131e;
  --card-border: rgba(255, 255, 255, 0.06);
  --card-glow: rgba(0, 230, 150, 0.03);
  --neon: #00E696;
  --neon-dim: #00e69644;
  --neon-glow: 0 0 20px rgba(0, 230, 150, 0.3), 0 0 60px rgba(0, 230, 150, 0.1);
  --neon-glow-intense: 0 0 30px rgba(0, 230, 150, 0.5), 0 0 80px rgba(0, 230, 150, 0.2), 0 0 120px rgba(0, 230, 150, 0.1);
  --amber: #ffbe0b;
  --amber-dim: rgba(255, 190, 11, 0.15);
  --rose: #ff006e;
  --rose-dim: rgba(255, 0, 110, 0.15);
  --text: #e8e8ed;
  --text-muted: #6b6b80;
  --text-dim: #3d3d50;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* --- Ambient Background --- */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(0, 230, 150, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(120, 60, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 0, 110, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: ambientDrift 30s ease-in-out infinite alternate;
}

@keyframes ambientDrift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-3%, 2%) rotate(3deg); }
}

/* Scan line overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  opacity: 0.025;
  pointer-events: none;
  z-index: 9998;
  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)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* --- App Shell --- */
.app {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 2rem 3rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Header / Mission Branding --- */
.mission-header {
  text-align: center;
  padding: 3rem 0 1rem;
  position: relative;
}

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: rgba(0, 230, 150, 0.08);
  border: 1px solid rgba(0, 230, 150, 0.15);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--neon);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.6s var(--ease-out-expo) both;
}

.mission-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--neon);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--neon-dim); }
  50% { opacity: 0.5; box-shadow: 0 0 0 6px transparent; }
}

.mission-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(135deg, #ffffff 0%, #a0a0b0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  animation: fadeSlideDown 0.6s var(--ease-out-expo) 0.1s both;
}

.mission-subtitle {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
  animation: fadeSlideDown 0.6s var(--ease-out-expo) 0.2s both;
}

.mission-subtitle em {
  font-style: normal;
  color: var(--neon);
  font-weight: 500;
}

/* --- Streak Counter --- */
.streak-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  animation: fadeSlideDown 0.6s var(--ease-out-expo) 0.3s both;
}

.streak-stat {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.streak-stat .stat-value {
  color: var(--text);
  font-weight: 700;
  font-size: 0.85rem;
}

.streak-stat .stat-icon {
  font-size: 1rem;
  line-height: 1;
}

/* --- Upload Phase --- */
.upload-phase {
  transition: all 0.7s var(--ease-out-expo);
}

.upload-phase.collapsing {
  opacity: 0;
  transform: scale(0.95) translateY(-20px);
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* --- Drop Zones Grid --- */
.drop-zones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .drop-zones { grid-template-columns: 1fr; }
}

/* --- Individual Drop Zone --- */
.drop-zone {
  position: relative;
  background: var(--card);
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  animation: zoneAppear 0.6s var(--ease-out-expo) both;
}

.drop-zone:nth-child(1) { animation-delay: 0.35s; }
.drop-zone:nth-child(2) { animation-delay: 0.45s; }
.drop-zone:nth-child(3) { animation-delay: 0.55s; }

@keyframes zoneAppear {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Subtle grid pattern inside */
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.drop-zone:hover::before,
.drop-zone.drag-over::before {
  opacity: 1;
}

/* Glow border on hover */
.drop-zone::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1.5px;
  background: linear-gradient(135deg, transparent 0%, rgba(0,230,150,0.3) 50%, transparent 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.drop-zone:hover::after,
.drop-zone.drag-over::after {
  opacity: 1;
}

.drop-zone:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, var(--card) 0%, var(--card-glow) 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 230, 150, 0.08);
}

.drop-zone.drag-over {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--neon);
  background: linear-gradient(180deg, var(--card) 0%, rgba(0, 230, 150, 0.06) 100%);
  box-shadow: var(--neon-glow);
}

/* Locked in state */
.drop-zone.has-files {
  border-color: rgba(0, 230, 150, 0.3);
  background: linear-gradient(180deg, var(--card) 0%, rgba(0, 230, 150, 0.04) 100%);
}

.drop-zone.has-files::after {
  opacity: 0.5;
}

.drop-zone input[type="file"] {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* Zone Icon */
.zone-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  color: var(--text-dim);
  transition: all 0.35s var(--ease-out-expo);
}

.drop-zone:hover .zone-icon,
.drop-zone.drag-over .zone-icon {
  color: var(--neon);
  filter: drop-shadow(0 0 8px var(--neon-dim));
  animation: iconFloat 1.8s ease-in-out infinite;
}

@keyframes iconFloat {
  0%, 100% { transform: scale(1.1) translateY(0); }
  50% { transform: scale(1.1) translateY(-4px); }
}

.drop-zone.has-files .zone-icon {
  color: var(--neon);
}

/* Zone labels */
.zone-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.zone-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

/* File count badge */
.zone-badge {
  display: none;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  background: rgba(0, 230, 150, 0.12);
  border: 1px solid rgba(0, 230, 150, 0.2);
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon);
  margin-top: 0.5rem;
  animation: badgePop 0.4s var(--ease-out-back) both;
}

.drop-zone.has-files .zone-badge {
  display: inline-flex;
}

@keyframes badgePop {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* File list pills */
.file-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 0.5rem;
  max-height: 80px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
}

.file-item {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  animation: itemFadeIn 0.3s var(--ease-out-expo) both;
}

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

/* --- Launch Button --- */
.launch-area {
  text-align: center;
  padding: 0.5rem 0 1rem;
  animation: fadeSlideDown 0.6s var(--ease-out-expo) 0.65s both;
}

.launch-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, var(--neon) 0%, #00c77e 100%);
  color: #06060b;
  border: none;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  overflow: hidden;
  min-width: 240px;
}

.launch-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.launch-btn:hover:not(:disabled)::before {
  opacity: 1;
}

.launch-btn:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--neon-glow-intense);
}

.launch-btn:active:not(:disabled) {
  transform: translateY(-1px) scale(0.99);
}

.launch-btn:disabled {
  background: var(--card);
  color: var(--text-dim);
  border: 1.5px solid var(--card-border);
  cursor: not-allowed;
  box-shadow: none;
}

.launch-btn:disabled:hover {
  transform: none;
}

/* Ready state — pulse glow */
.launch-btn.ready {
  animation: readyPulse 2.5s ease-in-out infinite;
}

@keyframes readyPulse {
  0%, 100% { box-shadow: 0 0 15px rgba(0, 230, 150, 0.2); }
  50% { box-shadow: 0 0 35px rgba(0, 230, 150, 0.4), 0 0 80px rgba(0, 230, 150, 0.15); }
}

/* Loading state */
.launch-btn.loading .btn-label { display: none; }
.launch-btn.loading .btn-spinner { display: block; }
.launch-btn.loading {
  pointer-events: none;
  animation: none;
}

.btn-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-spinner {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(6, 6, 11, 0.2);
  border-top-color: #06060b;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Processing Phase --- */
.processing-phase {
  animation: phaseIn 0.7s var(--ease-out-expo) both;
  transition: opacity 0.5s var(--ease-out-expo), transform 0.5s var(--ease-out-expo), max-height 0.6s var(--ease-out-expo);
}

.processing-phase.collapsing {
  opacity: 0;
  transform: scale(0.97) translateY(-10px);
  max-height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

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

/* Status ticker — dual-layer crossfade for Safari compat */
.status-ticker {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  height: 3.5rem;
  overflow: hidden;
}

.ticker-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

.ticker-slide.out {
  opacity: 0;
  transform: translateY(-8px);
}

.ticker-slide.in {
  opacity: 1;
  transform: translateY(0);
}

.ticker-message {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.ticker-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* XP Progress Bar */
.xp-bar-container {
  margin-bottom: 2rem;
}

.xp-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.xp-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.xp-value {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.xp-bar {
  height: 6px;
  background: var(--card);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.xp-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon) 0%, #00ffaa 100%);
  border-radius: 3px;
  transition: width 0.5s var(--ease-out-expo);
  position: relative;
}

.xp-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: -2px;
  bottom: -2px;
  width: 20px;
  background: var(--neon);
  border-radius: 3px;
  filter: blur(6px);
  opacity: 0.6;
}

/* Terminal Log */
.terminal {
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--card-border);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green { background: #28c840; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 1rem;
  max-height: 320px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-dim) transparent;
}

.terminal-body::-webkit-scrollbar {
  width: 6px;
}

.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: var(--text-dim);
  border-radius: 3px;
}

#logOutput {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #8b8ba0;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  line-height: 1.7;
}

#logOutput .error {
  color: var(--rose);
}

#logOutput .highlight {
  color: var(--neon);
}

/* Terminal spinner */
.terminal-spinner {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--neon);
  min-width: 1.2em;
}

/* --- Completion Phase --- */
.completion-phase {
  animation: completionReveal 0.8s var(--ease-out-expo) both;
}

@keyframes completionReveal {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Permanent final quote above achievement */
.final-quote {
  text-align: center;
  margin-bottom: 1.5rem;
  animation: fadeSlideDown 0.6s var(--ease-out-expo) 0.1s both;
}

.final-quote-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.final-quote-sub {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.achievement-card {
  position: relative;
  background: var(--card);
  border: 1.5px solid rgba(0, 230, 150, 0.2);
  border-radius: var(--radius);
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  overflow: hidden;
  margin-top: 1.5rem;
}

/* Shimmer effect on achievement */
.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 230, 150, 0.05), transparent);
  animation: shimmer 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.achievement-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  background: rgba(0, 230, 150, 0.1);
  border: 2px solid rgba(0, 230, 150, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPop 0.6s var(--ease-out-back) 0.3s both;
}

@keyframes iconPop {
  from { opacity: 0; transform: scale(0) rotate(-180deg); }
  to { opacity: 1; transform: scale(1) rotate(0deg); }
}

.achievement-icon svg {
  width: 32px;
  height: 32px;
  color: var(--neon);
}

.achievement-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--neon);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  animation: fadeSlideDown 0.5s var(--ease-out-expo) 0.5s both;
}

.achievement-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  animation: fadeSlideDown 0.5s var(--ease-out-expo) 0.6s both;
}

.achievement-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  animation: fadeSlideDown 0.5s var(--ease-out-expo) 0.7s both;
}

.achievement-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
  animation: fadeSlideDown 0.5s var(--ease-out-expo) 0.75s both;
}

.ach-stat {
  text-align: center;
}

.ach-stat-value {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

.ach-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Action buttons */
.achievement-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  animation: fadeSlideDown 0.5s var(--ease-out-expo) 0.85s both;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--neon) 0%, #00c77e 100%);
  color: #06060b;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.download-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--neon-glow);
}

.download-btn svg {
  width: 18px;
  height: 18px;
}

.reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.5rem;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
}

.reset-btn:hover {
  border-color: var(--text-dim);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

/* --- Footer --- */
.app-footer {
  text-align: center;
  padding: 2.5rem 0 0;
  margin-top: auto;
}

.footer-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.footer-text a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-text a:hover {
  color: var(--neon);
}

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

/* --- Animations --- */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Typing cursor blink for terminal */
.cursor-blink::after {
  content: '█';
  animation: blink 1s step-end infinite;
  color: var(--neon);
  font-size: 0.8em;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* --- Responsive --- */
@media (max-width: 700px) {
  .app {
    padding: 1rem 1rem 2rem;
  }

  .mission-title {
    font-size: 1.8rem;
  }

  .drop-zones {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .drop-zone {
    min-height: 160px;
    padding: 1.5rem 1rem;
  }

  .achievement-stats {
    gap: 1rem;
  }

  .achievement-actions {
    flex-direction: column;
  }

  .streak-bar {
    gap: 0.75rem;
    flex-wrap: wrap;
  }
}

/* --- Scroll animations for elements entering view --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
