:root {
  --primary-red: #ff003c;
  --dark-red: #8b0000;
  --obsidian: #0d0d0d;
  --charcoal: #1a1a1a;
  --gold: #f1c40f;
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-color: #f5f5f5;
  --font-main: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background: url('assets/background.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  overflow: hidden;
  position: relative;
}

.overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle, rgba(0,0,0,0) 0%, rgba(0,0,0,0.85) 100%);
  z-index: 1;
}

.container {
  position: relative;
  z-index: 2;
  width: 90%;
  max-width: 500px;
  perspective: 1000px;
}

.card {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
  animation: fadeIn 0.8s ease-out;
}

.card.active {
  display: flex;
}

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

.glow-text {
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 2px;
  color: var(--text-color);
  text-shadow: 0 0 10px rgba(255, 0, 60, 0.5), 0 0 20px rgba(255, 0, 60, 0.3);
  margin-bottom: 10px;
  text-transform: uppercase;
}

p {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 30px;
  font-weight: 300;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: white;
  border: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(255, 0, 60, 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-transform: uppercase;
}

.primary-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(255, 0, 60, 0.5);
}

.primary-btn:active {
  transform: translateY(0) scale(0.98);
}

.secondary-btn {
  background: transparent;
  border: 2px solid var(--primary-red);
  color: var(--text-color);
  padding: 12px 30px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.secondary-btn:hover {
  background: var(--primary-red);
  color: white;
}

.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary-red);
  transition: width 0.4s cubic-bezier(0.445, 0.05, 0.55, 0.95);
  box-shadow: 0 0 10px var(--primary-red);
}

.question-count {
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 600;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 25px;
  line-height: 1.4;
}

.options {
  width: 100%;
  display: grid;
  gap: 12px;
}

.option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  font-size: 1rem;
}

.option:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-red);
  padding-left: 25px;
}

.option.correct {
  background: #27ae60 !important;
  border-color: #2ecc71 !important;
}

.option.wrong {
  background: #c0392b !important;
  border-color: #e74c3c !important;
}

.score {
  font-size: 3rem;
  font-weight: 800;
  color: var(--gold);
  margin: 20px 0;
}

.cta-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--primary-red);
  padding-bottom: 2px;
}

.cta-link:hover {
  filter: brightness(1.2);
}

@media (max-width: 480px) {
  .card {
      padding: 30px 20px;
  }
  .glow-text {
      font-size: 1.8rem;
  }
}
