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

html { color-scheme: light only; }
html, body { height: 100%; }
body {
  font-family: 'Roboto', sans-serif;
  background-color: #F3F7FA;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 12px;
  -webkit-tap-highlight-color: transparent;
}

button, .answer { touch-action: manipulation; -webkit-user-select: none; user-select: none; }

.app { width: 100%; max-width: 500px; }

.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
  position: relative;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  background: #fff;
  min-height: 750px;
  padding-bottom: 28px;
}
.screen[hidden] { display: none; }

.screen-pad-tight { padding: 20px 16px; }

/* Top logo: centered, with breathing room around it */
.logo-zoom-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}
.logo-zoom-wrap--small { margin: 70px 0 16px; }
.logo-zoom-wrap--big { margin: 70px 0 16px; }
.logo-top {
  width: 56%;
  max-width: 260px;
  height: auto;
  display: block;
}

/* Footer logo: ~20% smaller than the top logo, footer-style.
   margin-top:auto pushes it toward the bottom of the screen's min-height,
   so the gap above it self-adjusts per screen instead of a fixed value. */
.logo-plain {
  width: 45%;
  max-width: 208px;
  height: auto;
  display: block;
  margin: auto auto 0;
}

.btn-center-wrap { display: flex; justify-content: center; }

/* Intro */
.intro-body h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 19px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 14px;
}
.intro-body p {
  font-size: 15px;
  color: #444;
  margin-bottom: 16px;
  line-height: 1.45;
}

.btn {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .03em;
  border: none;
  border-radius: 4px;
  padding: 14px 28px;
  cursor: pointer;
  transition: opacity .15s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
}
.btn:hover { opacity: .9; }
.btn-primary { background: #0046B0; color: #fff; text-transform: uppercase; }
.btn-secondary { background: #fff; color: #555; text-transform: none; border: 1px solid #d8d8d8; }

#startBtn { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Quiz */
.progress {
  text-align: left;
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}
.question {
  font-family: 'Poppins', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  margin-bottom: 16px;
  line-height: 1.4;
}
.answers { list-style: none; margin-bottom: 16px; }
.answer {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  padding: 16px;
  margin-bottom: 10px;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
  position: relative;
}
.answer:hover { background-color: #fafbfc; }
.answer.selected.correct { background-color: #f2faf3; }
.answer.selected.incorrect { background-color: #fbf8ee; }
.answer.disabled { cursor: default; pointer-events: none; }
.answer-label {
  font-size: 14px;
  color: #1a1a1a;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.answer-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #6fcf75;
  color: #fff;
  font-size: 13px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.answer.selected.correct .answer-check { display: flex; }
.answer-feedback {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.answer.selected.correct .answer-feedback { color: #4caf50; }
.answer.selected.incorrect .answer-feedback { color: #8a6d1a; }

/* Result */
.result-banner-wrap {
  width: 100%;
  aspect-ratio: 500 / 375;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.result-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.screen-pad-tight.result-body{
  margin: -50px 20px 0;
  background: #fff;
  color: #555;
  text-transform: none;
  border-radius: 15px;
  z-index: 1;
  box-shadow: 0 4px 20px rgb(35 33 33 / 41%);
}

.score-box-wrap {
  display: flex;
  justify-content: center;
  margin-top: -12px;
  position: relative;
  z-index: 1;
}
.score-box {
  background: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  border-radius: 4px;
  padding: 12px 32px;
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin: -25px auto 0;
}
.result-text {
  font-size: 32px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 10px;
}
