/* Consistent touch targets and stable navigation outside active rounds. */
html{scroll-padding-top:14px}body{padding-bottom:max(14px,env(safe-area-inset-bottom))}
main{min-width:0}.arcade,.below,.below>section{min-width:0;max-width:100%}
.game-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;padding:5px;border:1px solid #ba8bdd40;background:#190f25;border-radius:13px;margin:16px 0}
.game-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;font-size:11px;border-radius:9px;color:#ddc4ed}
.game-nav a:hover,.game-nav a:focus-visible{background:#503161;color:#ffe2a4}
body.in-round .game-nav,body.entering .game-nav{display:none}
.lobby-links{display:flex;justify-content:center;gap:8px;width:100%;flex-shrink:0}
#intro .history-shortcut,#intro #learn-game,#intro .opening-how summary,#intro .quick-start{min-height:44px;display:flex;align-items:center;justify-content:center}
#intro #learn-game{font-size:12px}#intro .quick-start{font-size:11px}#intro #ranked-mode{font-size:11px!important;line-height:1.45}
#lobby-sound,#entrance-sound{min-height:44px}
body.round-finale #result #again{position:sticky;bottom:max(10px,env(safe-area-inset-bottom));z-index:10;box-shadow:0 4px 0 #8c622a,0 0 0 7px #180d23,0 12px 25px #0008}
#result #back-lobby{min-height:44px;padding:10px;font-size:12px;color:#cdb3e0;background:transparent;border-color:transparent}
#result #score-submit{max-width:100%;overflow-wrap:anywhere}
#game-stage,#leaderboard,#my-runs,#daily-progress{scroll-margin-top:14px}
body.round-finale #result{animation:result-settle .3s ease-out both}
@keyframes result-settle{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){body.round-finale #result{animation:none}}
