/* ASADIVINÁ 1.4.5-hub.2 — keyboard compact mode only.
   A single fixed *frame* contains timer + scrollable prompt + form.
   The input stays in its original DOM position to preserve iOS focus.
   Overrides only keyboard-open mobile presentation from styles.css. */
@media (max-width:680px){
 html:has(body.mobile-question.mobile-keyboard-open),
 body.mobile-question.mobile-keyboard-open{overflow:hidden;overscroll-behavior:none}
 body.mobile-question.mobile-keyboard-open #backdrop,
 body.mobile-question.mobile-keyboard-open #veil{visibility:hidden}
 body.mobile-question.mobile-keyboard-open{background:#080d21}
 body.mobile-question.mobile-keyboard-open .app-shell{
  position:fixed;z-index:20;
  top:var(--compact-vv-top,0px);left:var(--compact-vv-left,0px);
  width:var(--compact-vv-width,100vw);height:var(--compact-vv-height,100dvh);
  min-height:0;max-width:none;max-height:none;margin:0;
  padding:6px max(9px,env(safe-area-inset-right)) 6px max(9px,env(safe-area-inset-left));
  overflow:hidden;display:flex;flex-direction:column;
 }
 body.mobile-question.mobile-keyboard-open .topbar,
 body.mobile-question.mobile-keyboard-open .footer,
 body.mobile-question.mobile-keyboard-open .question-buttons,
 body.mobile-question.mobile-keyboard-open .question-intro,
 body.mobile-question.mobile-keyboard-open .question-panel .eyebrow{display:none}
 body.mobile-question.mobile-keyboard-open .stats{
  position:relative;top:auto;z-index:1;display:flex;flex:0 0 auto;
  align-items:center;gap:9px;width:100%;min-height:29px;
  padding:3px 9px;margin:0 0 5px;border:1px solid #ffffff2b;
  border-radius:9px;background:#111b34;backdrop-filter:none;
 }
 body.mobile-question.mobile-keyboard-open .stat:not(#timeStat){display:none}
 body.mobile-question.mobile-keyboard-open #timeStat{
  flex:1 0 auto;min-width:90px;min-height:22px;
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  background:transparent;border:0;border-radius:0;padding:0;backdrop-filter:none;
 }
 body.mobile-question.mobile-keyboard-open #timeStat span{font-size:10px}
 body.mobile-question.mobile-keyboard-open #timeStat strong{font-size:16px;line-height:1.1}
 body.mobile-question.mobile-keyboard-open .timer-track{
  width:30%;max-width:110px;flex:0 1 110px;grid-column:auto;
  height:4px;min-height:4px;margin:0;
 }
 body.mobile-question.mobile-keyboard-open .stage{
  display:flex;flex:1 1 0;min-height:0;max-height:none;
  padding:0;margin:0;overflow:hidden;place-items:initial;
 }
 body.mobile-question.mobile-keyboard-open .question-panel{
  width:100%;height:100%;min-height:0;max-height:100%;
  display:flex;flex:1 1 0;flex-direction:column;
  padding:9px 11px 7px;margin:0;overflow:hidden;
  border-radius:13px;background:#0c1428;box-shadow:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
 }
 body.mobile-question.mobile-keyboard-open .question-copy{
  display:block;flex:1 1 auto;min-height:0;max-height:none;
  overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;scrollbar-width:thin;
  padding:0 2px 8px 0;margin:0;
 }
 body.mobile-question.mobile-keyboard-open .question-panel h1{
  font-size:clamp(18px,5.25vw,25px);line-height:1.22;
  font-weight:850;letter-spacing:-.025em;
  margin:0;overflow-wrap:anywhere;hyphens:auto;
 }
 body.mobile-question.mobile-keyboard-open .answer-dock{
  position:static;z-index:auto;left:auto;right:auto;bottom:auto;
  display:block;flex:0 0 auto;width:100%;
  padding:5px 0 0!important;margin:0;
  border:0;border-top:1px solid #ffffff24;
  border-radius:0;background:none;box-shadow:none;
  backdrop-filter:none;-webkit-backdrop-filter:none;
 }
 body.mobile-question.mobile-keyboard-open .answer-dock::before{display:none}
 body.mobile-question.mobile-keyboard-open .answer-dock-head{
  display:flex;min-height:26px;height:26px;margin:0 0 4px;
  justify-content:space-between;align-items:center;
 }
 body.mobile-question.mobile-keyboard-open .answer-dock-label{font-size:9px;margin:0}
 body.mobile-question.mobile-keyboard-open .mobile-dock-pass{
  display:inline-flex;min-width:65px;min-height:27px;
  padding:2px 8px;margin:0;font-size:11px;border-radius:7px;
 }
 body.mobile-question.mobile-keyboard-open #answerForm{display:block;margin:0}
 body.mobile-question.mobile-keyboard-open .answer-form-row{
  display:flex;flex-direction:row;gap:6px;align-items:stretch;
 }
 body.mobile-question.mobile-keyboard-open #answerInput{
  min-width:0;min-height:44px;height:44px;flex:1 1 0;
  padding:8px 10px;font-size:16px;line-height:1.2;border-radius:9px;
 }
 body.mobile-question.mobile-keyboard-open #answerForm .button{
  width:auto;min-width:89px;min-height:44px;height:44px;
  padding:7px 8px;flex:0 0 auto;font-size:12px;border-radius:9px;
 }
 body.mobile-question.mobile-keyboard-open #feedback{
  max-height:min(55px,16vh);overflow-y:auto;
  min-height:0;margin:4px 0 0;line-height:1.25;font-size:11px;
 }
 body.mobile-question.mobile-keyboard-open #feedback:empty{display:none}
}
@media(max-width:355px){
 body.mobile-question.mobile-keyboard-open .question-panel h1{font-size:18px}
 body.mobile-question.mobile-keyboard-open #answerForm .button{min-width:77px;font-size:11px;padding:6px}
 body.mobile-question.mobile-keyboard-open #answerInput{padding:7px 8px}
}
