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

body {
  font-family: Arial, sans-serif;
  background: #f0f4f8;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  min-height: 100vh;
  padding: 32px 24px;
  animation: fadeIn 0.3s ease;
  text-align: center;
}
.screen.active { display: flex; }

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

.gap-logo {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: 8px;
  color: white;
  background: #0055a5;
  padding: 12px 32px;
  border-radius: 8px;
  margin-bottom: 28px;
}
.gap-logo.small {
  font-size: 28px;
  padding: 8px 20px;
  margin-bottom: 20px;
}

.welcome-title { font-size: 36px; color: #222; margin-bottom: 12px; }
.welcome-sub { font-size: 17px; color: #666; margin-bottom: 28px; max-width: 480px; line-height: 1.5; }

.name-input {
  width: 100%;
  max-width: 420px;
  padding: 16px 20px;
  font-size: 20px;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 24px;
  outline: none;
  transition: border-color 0.2s;
}
.name-input:focus { border-color: #0055a5; }

/* Progress */
.progress-bar {
  width: 100%;
  max-width: 560px;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: #0055a5;
  border-radius: 4px;
  transition: width 0.4s ease;
  width: 0%;
}

.question-num {
  font-size: 13px;
  font-weight: 700;
  color: #0055a5;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.question-text {
  font-size: 22px;
  font-weight: 700;
  color: #222;
  max-width: 560px;
  line-height: 1.4;
  margin-bottom: 28px;
}

/* Quiz options */
.options-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  margin-bottom: 28px;
}

.option-btn {
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  background: white;
  border: 3px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
}
.option-btn:hover:not(:disabled) { border-color: #0055a5; background: #f0f4ff; }
.option-btn.selected { border-color: #0055a5; background: #e8f0fb; }
.option-btn.correct { border-color: #27ae60; background: #eafaf1; color: #1a7a45; }
.option-btn.wrong { border-color: #e74c3c; background: #fdf2f2; color: #c0392b; }

/* Score / badge */
.score-box { margin-bottom: 24px; }
.score-num { font-size: 52px; font-weight: 900; color: #0055a5; line-height: 1; }
.badge-emoji { font-size: 56px; margin: 8px 0 4px; }
.badge-title { font-size: 22px; font-weight: 700; color: #222; margin-bottom: 20px; }

/* Certificate preview */
.cert-preview {
  width: 100%;
  max-width: 480px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0,0,0,0.12);
  margin-bottom: 28px;
  background: white;
}
.cert-preview img { width: 100%; display: block; }

/* Buttons */
.btn-primary {
  background: #0055a5;
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primary:hover { background: #0044cc; transform: translateY(-2px); }
.btn-primary:disabled { background: #aaa; cursor: not-allowed; transform: none; }
.btn-primary.big-btn { padding: 18px 48px; font-size: 20px; border-radius: 14px; }

.btn-secondary {
  background: white;
  color: #0055a5;
  border: 2px solid #0055a5;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: #e8f0fb; }

.result-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.nav-row { display: flex; gap: 16px; align-items: center; justify-content: center; }

.step-sub { font-size: 15px; color: #888; margin-bottom: 20px; }
.success-icon { font-size: 80px; margin-bottom: 16px; }
