/* Release layout: reserve separate space for result controls and the campaign. */
.personal-record-row{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);font-size:19px}
.personal-record-row strong{white-space:nowrap}
body #moleResult .mr-record{display:block!important;width:100%;box-sizing:border-box;margin:8px 0 0;padding:7px 0;background:transparent!important;border:0;color:#30493d!important;text-align:center}
body #moleResult .mr-record strong{color:#30493d!important;font-size:17px}
body #moleResult .mr-record small{color:#465d50!important;font-size:15px}
@media(max-width:767px){
 body:has(#moleResult:not([hidden])) .app{display:block!important;min-height:0!important;padding-bottom:0!important}
 body #moleResult:not([hidden]){display:block!important;min-height:0!important;padding-bottom:calc(var(--mole-actions-height,162px) + 16px)!important;overflow:visible!important}
 body #moleResult .mr-dock{position:fixed!important;left:50%!important;bottom:var(--ad-space)!important;transform:translateX(-50%)!important;box-sizing:border-box;display:grid!important;grid-template-columns:minmax(0,1fr);width:100%;max-width:600px;margin:0!important;padding:6px 12px!important;gap:6px!important;background:var(--bg)!important;z-index:80}
 body #moleResult .mr-dock>button{box-sizing:border-box;width:100%!important;max-width:100%;min-width:0;position:static!important;transform:none!important;margin:0!important;height:auto!important;min-height:44px!important;padding:7px 10px!important;font-size:17px!important;line-height:1.3!important}
 body #moleResult .mr-dock>#mrAgain{min-height:50px!important;order:2}
 body #moleResult .mr-dock>#mrShare{order:1}
 body #moleResult .mr-dock>.next-game-invite{order:0}
 body #moleResult .mr-hero{display:flex!important;flex-direction:row!important;justify-content:center;align-items:center;gap:12px!important;margin:4px 0 8px!important}
 body #moleResult .mr-hero h1{font-size:24px!important;margin:0!important}
 body #moleResult .mr-hero .mr-mascot{margin:0!important;height:54px!important;width:66px!important}
 body #moleResult .composed-result .mr-grade{min-height:0!important}
 body #moleResult .mr-score-card{padding:10px 16px!important}
 body #moleResult .mole-review-fold{margin:6px 0!important}
 body #moleResult .mole-review-fold summary{min-height:32px;padding:4px 0}
 body #game:not([hidden]){display:flex!important;flex-direction:column;gap:6px;min-height:0!important;padding-bottom:16px!important}
 body #game:not(.answered)>.qcard{margin-top:0!important;flex:none!important}
 body #game:not(.answered) .qcard{padding:10px!important}
 body #game:not(.answered) #qtext{font-size:24px!important;line-height:1.3!important;margin:6px 0 10px!important;overflow-wrap:anywhere}
 body #game:not(.answered) #opts:not(.ox){gap:8px!important;margin:0!important}
 body #game:not(.answered) #opts:not(.ox) .opt{min-height:52px!important;height:auto!important;padding:7px 9px!important;line-height:1.3!important;font-size:20px!important;white-space:normal;overflow-wrap:anywhere}
 body #game #opts .opt .mk{flex-shrink:0}
 body #game .quiz-top{min-height:0!important;grid-template-rows:68px 20px!important;margin-bottom:0!important}
 body #game .quiz-top:has(.progress-note:not([hidden])){grid-template-rows:68px 20px 20px!important}
 body #game .hud{min-height:0!important}
 body #game .qcard{min-width:0;max-width:100%;box-sizing:border-box}
 body #game #nextBtn{margin-top:8px!important}
 body #moleResult,body #result,body #league{min-width:0;max-width:100%;box-sizing:border-box}
}
@media(max-width:767px){body:has(#game:not([hidden])) .app{position:fixed!important;inset:0 0 var(--ad-space) 0!important;height:auto!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain;padding-bottom:16px!important;box-sizing:border-box}body #game:not(.answered):not([hidden]){height:auto!important;max-height:none!important;overflow:visible!important}}
@media(max-width:767px){body #game.answered #nextBtn{scroll-margin-bottom:8px}}

@media (max-width:767px) and (max-height:700px) {
  body:has(#start:not([hidden])) .app {
    position:fixed!important; inset:0 0 var(--ad-space) 0!important;
    height:auto!important; min-height:0!important; max-height:none!important;
    overflow-y:auto!important; box-sizing:border-box; padding-bottom:12px!important;
  }
  body #start:not([hidden]) { height:auto!important; max-height:none!important; overflow:visible!important; }
  body #start:not([hidden])>.actions { position:sticky!important; bottom:0!important; background:var(--bg); z-index:10; }
}
