/* ============================================================
   THE EMOTION LAB — EDUCATIONAL GAME
   Clean & Playful style for children
   ============================================================ */

/* Footer — match page background, no visible separator */
.elab-page .footer,
.elab-page .footer .footer-bottom {
  background-color: transparent;
  border-top: none;
}

/* Page + layout */
.elab-page {
  background: #F0F7FF;
  font-family: 'Nunito', 'Open Sans', sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.elab-page .main { flex: 1; }
.elab-page .footer { padding-top: 0; }

.elab-section {
  padding: 90px 0 60px;
  position: relative;
  overflow: hidden;
}

/* ── Background decorative shapes ── */
.elab-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.elab-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.55;
  animation: elabFloat 10s ease-in-out infinite alternate;
}
.sh-1 { width:320px;height:320px;background:radial-gradient(circle,rgba(79,156,249,.18),transparent);top:-60px;left:-80px;animation-duration:13s; }
.sh-2 { width:260px;height:260px;background:radial-gradient(circle,rgba(255,217,61,.22),transparent);top:10%;right:-60px;animation-duration:9s;animation-delay:-3s; }
.sh-3 { width:200px;height:200px;background:radial-gradient(circle,rgba(107,203,119,.18),transparent);bottom:15%;left:8%;animation-duration:14s;animation-delay:-6s; }
.sh-4 { width:180px;height:180px;background:radial-gradient(circle,rgba(255,107,107,.15),transparent);bottom:20%;right:10%;animation-duration:11s;animation-delay:-2s; }
.sh-5 { width:140px;height:140px;background:radial-gradient(circle,rgba(167,139,250,.15),transparent);top:40%;left:45%;animation-duration:16s;animation-delay:-8s; }
@keyframes elabFloat {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(25px,35px) scale(1.06); }
}

/* ── Screen transitions ── */
.elab-screen { position: relative; z-index: 1; }
.elab-screen-enter { animation: elabEnter 0.45s ease forwards; }
@keyframes elabEnter {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════
   SCREEN 1: WELCOME
════════════════════════════════════════ */
.elab-title-badge {
  display: inline-block;
  background: rgba(79,156,249,0.12);
  color: #4F9CF9;
  border: 1px solid rgba(79,156,249,0.25);
  border-radius: 20px;
  padding: 5px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}
.elab-title {
  font-family: 'Nunito', sans-serif;
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 900;
  color: #2D3748;
  margin: 0 0 6px;
  text-align: center;
  line-height: 1.15;
}
.elab-title-accent {
  background: linear-gradient(135deg, #4F9CF9, #6BCB77);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.elab-tagline {
  text-align: center;
  font-size: 17px;
  color: #6B7280;
  margin: 0 0 36px;
}

/* Mascot area */
.mascot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.speech-bubble {
  background: #fff;
  border: 2px solid rgba(79,156,249,0.25);
  border-radius: 20px 20px 20px 4px;
  padding: 16px 22px;
  max-width: 300px;
  box-shadow: 0 6px 24px rgba(79,156,249,0.12);
  font-size: 14.5px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 8px;
  text-align: left;
}
.speech-bubble p { margin: 0 0 4px; }
.speech-bubble p:last-child { margin: 0; }

/* CSS Mascot — Lab Flask Robot */
.elab-mascot {
  position: relative;
  width: 110px;
  animation: mascotBounce 2.4s ease-in-out infinite;
}
@keyframes mascotBounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.mascot-flask-cap {
  width: 36px;
  height: 14px;
  background: linear-gradient(135deg, #4A5568, #718096);
  border-radius: 6px 6px 2px 2px;
  margin: 0 auto;
}
.mascot-flask-neck {
  width: 28px;
  height: 22px;
  background: linear-gradient(180deg, #bee3f8, #90cdf4);
  margin: 0 auto;
  border-left: 2px solid rgba(79,156,249,0.3);
  border-right: 2px solid rgba(79,156,249,0.3);
}
.mascot-flask-body {
  width: 100px;
  height: 90px;
  background: linear-gradient(160deg, #EBF8FF, #BEE3F8);
  border-radius: 50% 50% 44% 44% / 36% 36% 60% 60%;
  margin: 0 auto;
  border: 3px solid rgba(79,156,249,0.35);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(79,156,249,0.2);
}
.mascot-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 44%;
  background: linear-gradient(180deg, rgba(79,156,249,0.6), rgba(79,156,249,0.85));
  border-radius: 0 0 40% 40%;
  animation: liqWave 2s ease-in-out infinite alternate;
}
@keyframes liqWave {
  0%   { height: 38%; }
  100% { height: 50%; }
}
.mascot-liq-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.65);
  animation: liqBubble 1.8s ease-in-out infinite;
}
.lb1 { width:6px;height:6px;left:25%;bottom:8%;animation-delay:0s; }
.lb2 { width:4px;height:4px;left:55%;bottom:18%;animation-delay:.6s; }
.lb3 { width:5px;height:5px;left:40%;bottom:4%;animation-delay:1.1s; }
@keyframes liqBubble {
  0%   { transform:translateY(0);opacity:.8; }
  100% { transform:translateY(-28px);opacity:0; }
}
.mascot-face {
  position: absolute;
  top: 10px; left: 50%;
  transform: translateX(-50%);
  width: 70px;
}
.mascot-eyes {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  margin-bottom: 6px;
}
.mascot-eye {
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  border: 2px solid #4F9CF9;
  display: flex; align-items: center; justify-content: center;
}
.mascot-pupil {
  width: 8px; height: 8px;
  background: #2D3748;
  border-radius: 50%;
}
.mascot-cheeks {
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 4px;
}
.mascot-cheek {
  width: 14px; height: 8px;
  background: rgba(255,107,107,0.35);
  border-radius: 50%;
}
.mascot-mouth {
  width: 28px;
  height: 14px;
  border-bottom: 3px solid #4F9CF9;
  border-radius: 0 0 50% 50%;
  margin: 0 auto;
}
/* Sparkles around mascot */
.m-spark {
  position: absolute;
  animation: mSparkle 2s ease-in-out infinite;
  font-size: 14px;
  color: #FFD93D;
}
.sp1 { top:-8px; right:-4px; animation-delay:0s; }
.sp2 { top:20px; left:-14px; animation-delay:.7s; font-size:11px; }
.sp3 { bottom:10px; right:-12px; animation-delay:1.3s; font-size:12px; }
@keyframes mSparkle {
  0%,100% { opacity:0;transform:scale(.5)translateY(0); }
  50%      { opacity:1;transform:scale(1.2)translateY(-6px); }
}

/* Welcome card */
.elab-welcome-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgba(79,156,249,0.12), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(79,156,249,0.12);
  text-align: center;
}
.elab-welcome-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #344761;
  margin-bottom: 12px;
}
.elab-name-input {
  width: 100%;
  border: 2px solid rgba(79,156,249,0.3);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  color: #2D3748;
  background: #F8FBFF;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  text-align: center;
  margin-bottom: 20px;
}
.elab-name-input:focus {
  border-color: #4F9CF9;
  box-shadow: 0 0 0 4px rgba(79,156,249,.12);
  background: #fff;
}
.elab-name-input::placeholder { color: #9CA3AF; font-weight: 400; }
.elab-start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 28px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #4F9CF9, #3b82f6);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(79,156,249,0.45);
  transition: transform .2s, box-shadow .2s;
}
.elab-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,156,249,0.55);
}
.elab-start-icon { font-size: 20px; animation: rocketWiggle 1.5s ease-in-out infinite; }
@keyframes rocketWiggle {
  0%,100% { transform: rotate(0deg); }
  25%      { transform: rotate(-15deg); }
  75%      { transform: rotate(15deg); }
}

/* ════════════════════════════════════════
   SCREEN 2: QUESTION
════════════════════════════════════════ */

/* Stars bar */
.elab-stars-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 28px;
}
.elab-star-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.elab-star {
  font-size: 38px;
  color: #E5E7EB;
  transition: color .35s, transform .35s, filter .35s;
  display: block;
  line-height: 1;
}
.elab-star.star-active {
  color: #FFD93D;
  transform: scale(1.15);
  filter: drop-shadow(0 2px 8px rgba(255,217,61,.6));
  animation: starPulse 1.2s ease-in-out infinite;
}
.elab-star.star-done {
  color: #FFD93D;
  filter: drop-shadow(0 2px 6px rgba(255,217,61,.5));
}
@keyframes starPulse {
  0%,100% { transform: scale(1.15); }
  50%      { transform: scale(1.25); }
}
.elab-star-label {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: .03em;
}
.elab-star-connector {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #E5E7EB, #E5E7EB);
  border-radius: 2px;
  margin: 0 6px 20px;
  transition: background .35s;
}

/* Question card */
.elab-question-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px;
  max-width: 600px;
  margin: 0 auto 20px;
  box-shadow: 0 8px 40px rgba(79,156,249,0.12), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(79,156,249,0.1);
}
.elab-q-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.elab-q-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #4F9CF9;
  background: rgba(79,156,249,0.1);
  border-radius: 20px;
  padding: 4px 12px;
}
.elab-q-emoji { font-size: 28px; }
.elab-q-text {
  font-size: 20px;
  font-weight: 800;
  color: #2D3748;
  margin: 0 0 22px;
  line-height: 1.45;
}

/* Quick option buttons */
.elab-quick-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 6px;
}
.elab-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 2px solid rgba(79,156,249,0.2);
  border-radius: 16px;
  background: #F8FBFF;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Nunito', sans-serif;
}
.elab-quick-btn:hover {
  border-color: #4F9CF9;
  background: rgba(79,156,249,0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,156,249,0.15);
}
.elab-quick-btn.qb-selected {
  border-color: #4F9CF9;
  background: rgba(79,156,249,0.1);
  box-shadow: 0 0 0 3px rgba(79,156,249,0.2);
}
.qb-emoji { font-size: 30px; line-height: 1; }
.qb-label { font-size: 12px; font-weight: 700; color: #374151; text-align: center; line-height: 1.3; }

/* OR divider */
.elab-or-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 12px;
}
.elab-or-divider span {
  flex: 1;
  height: 1px;
  background: rgba(79,156,249,0.15);
}
.or-text {
  flex: none !important;
  height: auto !important;
  font-size: 12px;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: .04em;
  background: transparent !important;
}

/* Textarea */
.elab-textarea-wrap { margin-bottom: 20px; }
.elab-textarea {
  width: 100%;
  border: 2px solid rgba(79,156,249,0.25);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: 'Nunito', sans-serif;
  color: #374151;
  background: #F8FBFF;
  resize: none;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.elab-textarea:focus {
  border-color: #4F9CF9;
  box-shadow: 0 0 0 4px rgba(79,156,249,.1);
  background: #fff;
}
.elab-textarea::placeholder { color: #9CA3AF; }
.elab-textarea.elab-shake { animation: elabShake .4s ease; border-color: #FF6B6B !important; }
@keyframes elabShake {
  0%,100% { transform:translateX(0); }
  25%      { transform:translateX(-8px); }
  75%      { transform:translateX(8px); }
}

/* Submit button */
.elab-submit-btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, #4F9CF9, #3b82f6);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(79,156,249,0.4);
  transition: transform .2s, box-shadow .2s;
}
.elab-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79,156,249,0.5);
}

/* Mini mascot speech */
.elab-mascot-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}
.mascot-mini-body {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #BEE3F8, #90cdf4);
  border-radius: 50%;
  border: 2px solid rgba(79,156,249,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  animation: mascotBounce 2.4s ease-in-out infinite;
}
.mm-eye {
  width: 7px; height: 7px;
  background: #2D3748;
  border-radius: 50%;
}
.mascot-mini-speech {
  background: #fff;
  border: 1.5px solid rgba(79,156,249,0.2);
  border-radius: 12px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 2px 10px rgba(79,156,249,0.08);
}

/* ════════════════════════════════════════
   SCREEN 3: LOADING — BUBBLING LAB
════════════════════════════════════════ */
#screenLoading { text-align: center; padding: 40px 0; }

.bubbling-lab { position: relative; display: inline-block; margin-bottom: 28px; }

.lab-beaker { position: relative; display: inline-block; }
.beaker-rim {
  width: 80px;
  height: 16px;
  background: linear-gradient(135deg, #718096, #4A5568);
  border-radius: 6px 6px 2px 2px;
  margin: 0 auto;
}
.beaker-body {
  width: 100px;
  height: 120px;
  background: rgba(235,248,255,0.8);
  border: 3px solid rgba(79,156,249,0.5);
  border-top: none;
  border-radius: 8px 8px 28px 28px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}
.beaker-liquid {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(180deg, rgba(79,156,249,0.5), rgba(59,130,246,0.85));
  animation: beakerLiq 1.8s ease-in-out infinite alternate;
}
@keyframes beakerLiq {
  0%   { height: 50%; }
  100% { height: 72%; }
}
.beaker-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.75);
  animation: bBubble 2s ease-in-out infinite;
}
.bb1 { width:10px;height:10px;left:20%;bottom:5%;animation-delay:0s; }
.bb2 { width: 7px;height: 7px;left:50%;bottom:15%;animation-delay:.5s; }
.bb3 { width:12px;height:12px;left:65%;bottom:8%;animation-delay:1s; }
.bb4 { width: 8px;height: 8px;left:35%;bottom:25%;animation-delay:1.4s; }
@keyframes bBubble {
  0%   { transform:translateY(0);opacity:.8; }
  100% { transform:translateY(-90px);opacity:0; }
}

/* Rising bubbles outside beaker */
.rising-bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(79,156,249,0.25);
  border: 2px solid rgba(79,156,249,0.4);
  animation: rise 2.5s ease-in infinite;
}
.rb1 { width:14px;height:14px;left:8px; bottom:130px;animation-delay:0s; }
.rb2 { width:10px;height:10px;left:20px;bottom:130px;animation-delay:.6s; }
.rb3 { width:18px;height:18px;right:10px;bottom:130px;animation-delay:1.1s; }
.rb4 { width: 8px;height: 8px;left:40px;bottom:130px;animation-delay:1.7s; }
.rb5 { width:12px;height:12px;right:22px;bottom:130px;animation-delay:.4s; }
@keyframes rise {
  0%   { transform:translateY(0);opacity:.7; }
  100% { transform:translateY(-100px);opacity:0; }
}

.elab-loading-text {
  font-size: 20px;
  font-weight: 800;
  color: #2D3748;
  margin: 0 0 8px;
  font-family: 'Nunito', sans-serif;
}
.elab-loading-sub {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

/* ════════════════════════════════════════
   SCREEN 4: CERTIFICATE
════════════════════════════════════════ */
.elab-certificate {
  max-width: 520px;
  margin: 0 auto 24px;
  background: #fff;
  border-radius: 28px;
  padding: 0 0 28px;
  box-shadow: 0 12px 48px rgba(79,156,249,0.15), 0 4px 16px rgba(0,0,0,0.06);
  border: 2px solid rgba(79,156,249,0.15);
  position: relative;
  overflow: visible;
  text-align: center;
}

/* Top ribbon badge */
.cert-ribbon {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #FFD93D, #F6AD55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(255,217,61,0.5);
  border: 3px solid #fff;
  z-index: 2;
}

.cert-header {
  padding: 44px 24px 20px;
  background: linear-gradient(160deg, #EBF8FF, #F0FFF4);
  border-radius: 26px 26px 0 0;
  border-bottom: 1px solid rgba(79,156,249,0.1);
}
.cert-lab-icon { margin-bottom: 10px; }
.cert-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 6px rgba(92,153,238,0.15));
}
.cert-title {
  font-size: 28px;
  font-weight: 900;
  color: #2D3748;
  margin: 0 0 2px;
  letter-spacing: .02em;
}
.cert-subtitle {
  font-size: 14px;
  font-weight: 700;
  color: #4F9CF9;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0;
}

/* Ornament divider */
.cert-ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 32px;
  font-size: 14px;
  color: #FFD93D;
}
.cert-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,156,249,0.2), transparent);
}

.cert-given-to {
  font-size: 13px;
  color: #9CA3AF;
  margin: 0 0 4px;
  font-weight: 600;
  letter-spacing: .04em;
}
.cert-name {
  font-size: 32px;
  font-weight: 900;
  color: #2D3748;
  margin: 0 0 12px;
}

/* Certificate stars */
.cert-stars { margin-bottom: 4px; }
.cert-star {
  font-size: 32px;
  color: #E5E7EB;
  display: inline-block;
  margin: 0 4px;
  transition: color .3s, transform .3s, filter .3s;
}
.cert-star-pop {
  color: #FFD93D !important;
  filter: drop-shadow(0 2px 8px rgba(255,217,61,.7));
  animation: starPopAnim .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes starPopAnim {
  0%   { transform: scale(0.4); }
  100% { transform: scale(1.1); }
}

/* Power box */
.cert-power-label {
  font-size: 13px;
  font-weight: 700;
  color: #6B7280;
  margin: 4px 0 10px;
  letter-spacing: .03em;
}
.cert-power-box {
  background: linear-gradient(135deg, rgba(79,156,249,0.06), rgba(107,203,119,0.06));
  border: 1.5px solid rgba(79,156,249,0.18);
  border-radius: 16px;
  padding: 14px 20px;
  margin: 0 24px 16px;
}
.cert-power-text {
  font-size: 18px;
  font-weight: 800;
  color: #2D3748;
  margin: 0;
  line-height: 1.4;
}

/* Badge row */
.cert-badge-row { margin-bottom: 16px; }
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4F9CF9, #2563EB);
  border-radius: 50px;
  padding: 8px 28px;
  box-shadow: 0 4px 14px rgba(79,156,249,0.4);
}
.cert-badge-icon { font-size: 20px; }
.cert-badge-text {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: .06em;
  line-height: 1.3;
}

/* Footer */
.cert-footer {
  font-size: 12px;
  color: #9CA3AF;
  font-weight: 600;
  padding: 0 24px;
}
.cert-footer-sep { margin: 0 8px; }

/* Action buttons */
.cert-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto 14px;
}
.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-cert-download {
  background: linear-gradient(135deg, #d4980e, #feb319);
  color: #344761;
  box-shadow: 0 4px 14px rgba(254,179,25,0.4);
}
.btn-cert-download:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(254,179,25,0.55);
}
.btn-cert-download:disabled { opacity:.65; cursor:not-allowed; }
.btn-cert-cta {
  background: linear-gradient(135deg, #4F9CF9, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,156,249,0.4);
}
.btn-cert-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(79,156,249,0.55);
  color: #fff;
}
.cert-replay-btn {
  display: block;
  margin: 0 auto;
  background: transparent;
  border: 2px solid rgba(79,156,249,0.3);
  border-radius: 50px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #4F9CF9;
  font-family: 'Nunito', sans-serif;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.cert-replay-btn:hover {
  background: rgba(79,156,249,0.06);
  border-color: #4F9CF9;
}

/* Responsive */
@media (max-width: 576px) {
  .elab-certificate { border-radius: 20px; margin: 0 8px 24px; }
  .elab-question-card { padding: 22px 18px; border-radius: 20px; }
  .elab-quick-options { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .qb-emoji { font-size: 24px; }
  .qb-label { font-size: 11px; }
  .cert-actions { flex-direction: column; align-items: center; }
  .cert-btn { width: 100%; justify-content: center; }
}
