:root{
  --blue:#35a1e8;
  --blue-dark:#1689d2;
  --yellow:#ffdc59;
  --bg:#f4f5f7;
  --text:#15202b;
  --muted:#6d7782;
  --white:#fff;
  --red:#d95858;
  --green:#23a860;
}
*{box-sizing:border-box}
html,body{min-height:100%}
body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  background:var(--bg);
  color:var(--text);
}
button{font:inherit}
img{display:block;max-width:100%}
.splash{
  min-height:100dvh;
  display:grid;
  place-items:center;
  background:var(--bg);
  overflow:hidden;
  padding:24px;
}
.splash-logo{
  width:min(72vw,440px);
  animation:logoIn 1.5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes logoIn{
  0%{opacity:0;transform:scale(.82) rotate(-2deg)}
  60%{opacity:1;transform:scale(1.04) rotate(1deg)}
  100%{opacity:1;transform:scale(1) rotate(0)}
}
.page{
  min-height:100dvh;
  padding:28px;
  max-width:900px;
  margin:auto;
}
.intro,.result{
  display:flex;
  flex-direction:column;
  align-items:center;
}
.mini-logo{
  width:140px;
  align-self:flex-start;
}
.intro-card,.result-card{
  margin:auto;
  width:100%;
  max-width:720px;
  text-align:center;
  padding:30px 28px 40px;
}
.portrait-wrap{
  width:min(66vw,300px);
  aspect-ratio:1;
  margin:8px auto 24px;
  border-radius:50%;
  overflow:hidden;
  box-shadow:0 14px 35px rgba(29,55,75,.13);
}
.portrait-wrap img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.eyebrow{
  font-size:.76rem;
  font-weight:800;
  letter-spacing:.14em;
  color:var(--blue-dark);
}
h1{
  font-size:clamp(2rem,6vw,4.2rem);
  line-height:1.03;
  margin:18px 0 22px;
  letter-spacing:-.055em;
}
p{line-height:1.65;color:var(--muted)}
.intro-card h1{
  font-size:clamp(1.9rem,5.4vw,3.55rem);
  max-width:680px;
  margin-left:auto;
  margin-right:auto;
}
.intro-card p{
  font-size:1.08rem;
  max-width:600px;
  margin:0 auto 30px;
}
.primary{
  border:0;
  border-radius:18px;
  background:var(--yellow);
  color:var(--text);
  font-weight:800;
  padding:18px 24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  cursor:pointer;
  box-shadow:0 7px 0 rgba(215,178,36,.28);
  transition:.18s transform,.18s box-shadow;
}
.primary:hover{
  transform:translateY(-2px);
  box-shadow:0 9px 0 rgba(215,178,36,.28);
}
.primary:active{
  transform:translateY(3px);
  box-shadow:0 3px 0 rgba(215,178,36,.28);
}
small{
  display:block;
  color:var(--muted);
  margin-top:22px;
}
.quiz header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-weight:800;
  color:var(--blue-dark);
}
.header-logo{width:105px}
.progress{
  height:8px;
  background:#dde3e8;
  border-radius:99px;
  overflow:hidden;
  margin:18px 0 34px;
}
.progress i{
  display:block;
  height:100%;
  background:var(--blue);
  border-radius:99px;
  transition:width .3s;
}
.question-card{
  background:var(--white);
  border-radius:28px;
  padding:clamp(24px,5vw,50px);
  box-shadow:0 12px 40px rgba(29,55,75,.07);
}
h2{
  font-size:clamp(1.65rem,4vw,2.7rem);
  line-height:1.12;
  letter-spacing:-.04em;
  margin:15px 0 30px;
}
.answers{
  display:grid;
  gap:14px;
}
.answers button{
  min-height:68px;
  border:2px solid #e7ebef;
  background:#fff;
  border-radius:17px;
  padding:16px 20px;
  text-align:left;
  font-weight:700;
  font-size:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  cursor:pointer;
  transition:.18s;
}
.answers button:hover:not(:disabled){
  border-color:var(--blue);
  transform:translateY(-1px);
}
.answers button.correct{
  background:var(--blue);
  border-color:var(--blue);
  color:white;
}
.answers button.wrong{
  border-color:var(--red);
  color:var(--red);
  background:#fff7f7;
}
.answers button.muted{opacity:.45}
.answer-icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  font-weight:900;
}
.correct .answer-icon{
  background:#fff;
  color:var(--blue);
}
.wrong .answer-icon{
  color:var(--red);
}
.reveal{animation:reveal .35s ease both}
@keyframes reveal{
  from{opacity:0;transform:translateY(12px)}
  to{opacity:1;transform:none}
}
.result-label{
  font-weight:800;
  margin:25px 0 15px;
  display:flex;
  align-items:center;
  gap:8px;
}
.is-good{color:var(--green)}
.is-bad{color:var(--red)}
.fact{
  background:var(--bg);
  border-radius:18px;
  padding:20px 22px;
  margin-bottom:22px;
}
.fact strong{
  font-size:.75rem;
  letter-spacing:.1em;
  color:var(--blue-dark);
}
.fact p{
  margin:7px 0 0;
  color:#4d5964;
}
.next{width:100%}
.result-card{
  background:white;
  border-radius:30px;
  box-shadow:0 12px 40px rgba(29,55,75,.07);
  margin-top:auto;
  margin-bottom:auto;
}
.score{
  display:flex;
  justify-content:center;
  align-items:baseline;
  color:var(--blue);
  margin-top:16px;
}
.score strong{
  font-size:clamp(5rem,20vw,9rem);
  letter-spacing:-.08em;
  line-height:.9;
}
.score span{
  font-size:2rem;
  font-weight:800;
}
.result-card h1{
  font-size:clamp(1.8rem,5vw,3rem);
  max-width:600px;
  margin-left:auto;
  margin-right:auto;
}
.result-card .primary{margin-top:18px}
.fade-in{animation:fadeIn .32s ease both}
@keyframes fadeIn{
  from{opacity:0}
  to{opacity:1}
}
@media(max-width:600px){
  .page{padding:18px}
  .mini-logo{width:105px}
  .intro-card{padding:18px 4px 28px}
  .portrait-wrap{width:min(65vw,250px);margin-bottom:20px}
  .question-card{border-radius:22px}
  .answers button{min-height:64px}
  .result-card{padding:32px 20px}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.01ms!important;
    animation-iteration-count:1!important;
    transition-duration:.01ms!important;
  }
}
