/* V7.0 — Mobile ergonomics; preserve game logic and 300-level UI */
@media(max-width:640px){
  #game .game-card,#game .game-panel,#careerPath .career-card,#profile .profile-panel{padding:clamp(12px,3.7vw,19px)}
  #game input,#careerPath input,#ranking input{font-size:16px}
  #game button,#careerPath button,#modeSelect button,#modeSetup button,#levels button{min-height:43px;touch-action:manipulation}
  .view{padding-bottom:max(84px,calc(env(safe-area-inset-bottom) + 76px))}
  .fm7-card{max-width:100%;min-width:0}
}
#search,#fm7RankInput{background:#ffffff;color:#111827;caret-color:#111827}
#search::placeholder,#fm7RankInput::placeholder{color:#64748b}
#suggestions button,#fm7RankSuggestions button{color:#101827!important}
.fm7-cta,.fm7-account-tools button{transition:transform .16s ease, filter .16s ease}
.fm7-cta:active,.fm7-account-tools button:active{transform:scale(.985)}
@media(prefers-reduced-motion:reduce){.fm7-cta,.fm7-account-tools button{transition:none!important}}
