/* STT Humanistic 20Q — mobile visual bridge
   Presentation only. Preserve approved artwork, questions and submission behavior. */
:root{
  --stt-paper:#fffdfa;
  --stt-ink:#252525;
  --stt-soft:#5f5a54;
  --stt-gold:#c4a67a;
  --stt-gold-deep:#8b642f;
  --stt-line:#e7dfd2;
}
html,body{background:var(--stt-paper)!important;color:var(--stt-ink)!important}
#nl-badge-frame{display:none!important}
@media(max-width:700px){
  .app{background:var(--stt-paper)!important;color:var(--stt-ink)!important}
  .topbar{
    min-height:64px!important;
    padding:0 12px!important;
    gap:8px!important;
    background:rgba(255,255,255,.97)!important;
    border-bottom:1px solid var(--stt-line)!important;
    box-shadow:none!important;
    backdrop-filter:blur(10px);
  }
  .stt-return-home{
    flex:0 0 auto!important;
    color:var(--stt-gold-deep)!important;
    text-decoration:none!important;
    font-size:11px!important;
    line-height:1!important;
    font-weight:700!important;
    letter-spacing:.04em!important;
    white-space:nowrap!important;
  }
  .topbar .brand{
    color:var(--stt-gold-deep)!important;
    font-size:12px!important;
    line-height:1.4!important;
    font-weight:600!important;
    letter-spacing:.08em!important;
    max-width:27vw!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .topbar .step-label{
    color:var(--stt-soft)!important;
    font-size:12px!important;
  }
  .screen{
    width:100%!important;
    max-width:none!important;
    padding:24px 24px 96px!important;
    box-sizing:border-box!important;
  }
  .screen.landing.active{
    width:100%!important;
    max-width:none!important;
    padding:24px 24px 96px!important;
    box-sizing:border-box!important;
  }
  .screen.landing.active .visual-card{
    width:100%!important;
    max-width:none!important;
    aspect-ratio:4/5!important;
    min-height:0!important;
    height:auto!important;
    margin:0 0 30px!important;
    border-radius:18px!important;
    background-position:center center!important;
    background-size:cover!important;
    box-shadow:none!important;
  }
  .screen.landing.active .copy-panel{
    width:100%!important;
    max-width:none!important;
    padding:0!important;
    margin:0!important;
  }
  .screen.landing.active .eyebrow{
    margin:0 0 18px!important;
    color:var(--stt-gold-deep)!important;
    font-size:10.5px!important;
    line-height:1.6!important;
    font-weight:600!important;
    letter-spacing:.18em!important;
  }
  .screen.landing.active h1{
    display:block!important;
    margin:0!important;
    color:var(--stt-ink)!important;
    font-family:"Noto Serif TC","Songti TC","PMingLiU",Georgia,serif!important;
    font-size:clamp(32px,8.4vw,38px)!important;
    line-height:1.42!important;
    font-weight:500!important;
    letter-spacing:.008em!important;
    text-wrap:pretty!important;
    line-break:strict!important;
    word-break:normal!important;
  }
  .screen.landing.active .lead{
    margin:20px 0 0!important;
    color:var(--stt-soft)!important;
    font-size:15.5px!important;
    line-height:1.9!important;
  }
  .screen.landing.active .soft-note{
    margin-top:16px!important;
    color:#746d64!important;
    font-size:12.5px!important;
    line-height:1.75!important;
  }
  .screen.landing.active .nav-row.end{
    margin-top:28px!important;
  }
  .screen.landing.active .primary{
    min-height:48px!important;
    padding:11px 20px!important;
    border-radius:999px!important;
    border:1px solid var(--stt-gold-deep)!important;
    background:var(--stt-gold-deep)!important;
    color:#fff!important;
    font-size:14px!important;
    font-weight:600!important;
    box-shadow:none!important;
  }
  .question-page-header{
    margin-bottom:22px!important;
    font-size:10.5px!important;
    line-height:1.6!important;
    letter-spacing:.1em!important;
  }
  .question-stack{gap:20px!important}
  .question-card{
    min-height:0!important;
    padding:24px!important;
    border-radius:18px!important;
    box-shadow:none!important;
  }
  .qnum{
    font-size:28px!important;
    line-height:1.15!important;
  }
  .qbody h3{
    margin:0 0 12px!important;
    font-size:clamp(22px,6vw,25px)!important;
    line-height:1.6!important;
    font-weight:500!important;
    line-break:strict!important;
    text-wrap:pretty!important;
  }
  .tip{
    margin:0 0 18px!important;
    font-size:15px!important;
    line-height:1.85!important;
  }
  textarea{
    min-height:220px!important;
    padding:16px!important;
    border-radius:14px!important;
    font-size:16px!important;
    line-height:1.85!important;
  }
  .nav-row{
    margin-top:24px!important;
    padding:8px!important;
  }
  .nav-row .primary,
  .nav-row .ghost{
    min-height:48px!important;
    padding:11px 16px!important;
    font-size:14px!important;
  }
  .review-item,
  .optional-note,
  .backup-note,
  .consent,
  .submit-status,
  .post-submit-note{
    font-size:14.5px!important;
    line-height:1.8!important;
  }
  .bottom-tools{
    right:12px!important;
    bottom:max(12px,env(safe-area-inset-bottom))!important;
    gap:6px!important;
  }
  .bottom-tools .tool-btn{
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    border:1px solid var(--stt-gold)!important;
    background:rgba(255,255,255,.94)!important;
    color:var(--stt-gold-deep)!important;
    box-shadow:0 8px 24px rgba(36,34,31,.07)!important;
  }
}


/* Humanistic editorial pacing: landing is narrative-first; tools enter with the interview. */
@media(max-width:700px){
  .screen.landing.active .lead,
  .screen.landing.active .soft-note{
    max-width:24em!important;
  }
  .app:has(#welcome.active) .bottom-tools{
    display:none!important;
  }
  .question-card .qbody{
    max-width:100%!important;
  }
  .qbody h3,
  .tip,
  .qbody textarea{
    max-width:100%!important;
  }
}
