body {
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #0f0f0f, #1f1f1f);
  color: white;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  text-align: center;
  padding: 2rem;
}

.subtitle {
  color: #aaa;
  margin-bottom: 1.5rem;
}

.card {
  background-color: #111;
  padding: 1.5rem;
  border-radius: 1rem;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

input[type="file"] {
  display: block;
  margin: 1rem auto;
}

.preview {
  max-width: 100%;
  border-radius: 1rem;
  margin-top: 1rem;
}

.result {
  margin-top: 1.5rem;
}

.speed {
  font-size: 2rem;
  color: limegreen;
  font-weight: bold;
}

.caption {
  color: #ccc;
  font-style: italic;
  margin-top: 0.5rem;
}

.start-btn {
  background: linear-gradient(90deg, #2ecc40, #27ae60);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-size: 1.2rem;
  cursor: pointer;
  margin-bottom: 1.5rem;
  transition: background 0.3s;
}

.start-btn:hover {
  background: linear-gradient(90deg, #27ae60, #2ecc40);
}

.loader {
  border: 6px solid #222;
  border-top: 6px solid #2ecc40;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 1rem auto;
  animation: spin 1s linear infinite;
  display: none;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

.mystery {
  color: #ffeb3b;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.hint {
  color: #ff5252;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.progress-container {
  width: 90%;
  background: #222;
  border-radius: 1rem;
  margin: 1.5rem auto 1rem auto;
  padding: 0.5rem 0;
  box-shadow: 0 0 10px #0008;
}

.progress-bar {
  width: 0%;
  height: 18px;
  background: linear-gradient(90deg, #2ecc40, #27ae60, #f1c40f, #e67e22);
  border-radius: 1rem;
  transition: width 0.3s;
}

.analyzing {
  color: #aaa;
  font-style: italic;
  margin-top: 0.5rem;
}

.drumroll {
  animation: drumroll 1.2s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes drumroll {
  0% { letter-spacing: 0.2em; opacity: 0.2; }
  60% { letter-spacing: 0.5em; opacity: 0.7; }
  80% { letter-spacing: 0.1em; opacity: 1; }
  100% { letter-spacing: normal; opacity: 1; }
}
