/* Quiz-only viewport tuning. Keep the user's v25 visual language intact. */
#stage .stage-wrap[data-step]{
  padding-bottom:calc(88px + env(safe-area-inset-bottom));
}

#stage .bottom-nav{
  position:fixed;
  z-index:25;
  left:0;
  right:0;
  bottom:0;
  max-width:none;
  margin:0;
  padding:10px max(20px,calc((100vw - 1052px)/2)) calc(10px + env(safe-area-inset-bottom));
  border-top:1px solid #b8ccbc;
  background:rgba(250,249,243,.97);
  box-shadow:0 -8px 24px rgba(31,62,40,.045);
  backdrop-filter:blur(14px);
}

@media (max-width:1000px){
  #stage .bottom-nav{padding-inline:clamp(18px,5vw,64px)}
}

@media (min-width:701px) and (max-height:1000px){
  #stage .stage-wrap[data-step]{padding-top:18px}
  #stage .progress-row{padding-bottom:10px;margin-bottom:18px}
  #stage .question-head .eyebrow{margin-bottom:8px}
  #stage .question-title{font-size:clamp(32px,3vw,42px);line-height:1.22;margin-bottom:10px}
  #stage .intro-line{font-size:14px;line-height:1.45}
  #stage .question-content{margin-top:18px}
  #stage .choice-grid{gap:10px}
  #stage .choice{min-height:112px;padding:15px 18px}
  #stage .choice .answer{font-size:17px;line-height:1.38}
  #stage .skip-choice{margin-top:6px;padding-block:9px}
  #stage .pattern-grid{max-width:730px;gap:10px}
  #stage .pattern-grid .visual-card img{aspect-ratio:1.85;object-fit:contain}
  #stage .pattern-grid .visual-label{min-height:38px;padding:8px 12px}
  #stage .palette-bars{height:135px}
  #stage .material-card img{aspect-ratio:1.85;object-fit:contain}
  #stage .acceptance{margin-top:18px;padding-top:15px}
  #stage .acceptance p{margin-bottom:9px}
}

@media (min-width:701px) and (max-height:760px){
  #stage .stage-wrap[data-step]{padding-top:14px}
  #stage .progress-row{margin-bottom:14px}
}

@media (max-width:700px){
  #stage .stage-wrap[data-step]{padding-top:17px;padding-bottom:calc(86px + env(safe-area-inset-bottom))}
  #stage .progress-row{padding-bottom:10px;margin-bottom:17px}
  #stage .question-head .eyebrow{margin-bottom:8px}
  #stage .question-title{font-size:clamp(29px,7.9vw,39px);line-height:1.26;margin-bottom:9px}
  #stage .intro-line{line-height:1.5}
  #stage .question-content{margin-top:16px}
  #stage .choice{min-height:94px;padding:13px 16px}
  #stage .choice .answer{font-size:16px;line-height:1.38}
  #stage .choice .letter{width:24px;height:24px}
  #stage .skip-choice{margin-top:7px}
  #stage .bottom-nav{padding-inline:18px}
  #stage .bottom-nav .nav-btn{min-height:46px}
}
