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

body {
  font-family: Arial, sans-serif;
  background: #fff8f0;
  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); }
}

/* Cricket logo block */
.cricket-logo {
  font-size: 64px;
  line-height: 1;
  background: #f96d00;
  border-radius: 16px;
  padding: 14px 28px;
  margin-bottom: 24px;
  display: inline-block;
}
.cricket-logo.small {
  font-size: 36px;
  padding: 8px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.welcome-title {
  font-size: 38px;
  font-weight: 900;
  color: #1a1a1a;
  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;
  background: white;
}
.name-input:focus { border-color: #f96d00; }

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

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

.question-text {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  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: #f96d00; background: #fff4ed; }
.option-btn.correct { border-color: #16a34a; background: #f0fdf4; color: #15803d; font-weight: 700; }
.option-btn.wrong   { border-color: #dc2626; background: #fef2f2; color: #b91c1c; }

/* Score / badge */
.score-box { margin-bottom: 24px; }
.score-num  { font-size: 56px; font-weight: 900; color: #f96d00; line-height: 1; }
.badge-emoji { font-size: 60px; margin: 10px 0 6px; }
.badge-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 20px; }

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

/* Buttons */
.btn-primary {
  background: #f96d00;
  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: #e05d00; 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: #f96d00;
  border: 2px solid #f96d00;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-secondary:hover { background: #fff4ed; }

.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; }
