.profile-chip{margin:0 0 16px;padding:10px 12px;text-align:left;max-width:100%;overflow-wrap:anywhere}
.profile-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-links button{font-size:12px;padding:10px}
.profile-form{text-align:left;width:100%}.profile-form h2{font-size:25px}.profile-form label{display:block;margin:16px 0 6px;font-size:13px}
.profile-form input{width:100%;min-height:44px}.profile-form .center-actions{margin-top:20px}
.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.stat-card{padding:16px;background:#e5ebe1;border:1px solid #afbeaa}.stat-card p{font-size:14px;line-height:1.5;margin:8px 0}
.match-history{padding-left:20px;font-size:13px;line-height:1.8}.leaderboard-scroll{overflow-x:auto;margin:18px 0}.leaderboard{border-collapse:collapse;width:100%;font-size:13px;text-align:left}
.leaderboard th,.leaderboard td{padding:12px 8px;border-bottom:1px solid #b9c6b4}.leaderboard th{background:#e0e8db}.leaderboard td:nth-child(2){overflow-wrap:anywhere;max-width:240px}
#resultSync{line-height:1.5;max-width:480px}.fighter-name span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fighter-name span[id^=hpText]{flex-shrink:0}
/* Keyboard-style arrows on every screen: one up key over left/down/right. */
:root{--pad-size:min(var(--button-preferred),calc((100vw - var(--safe-left) - var(--safe-right) - 60px)/5))}
.directions{grid-template-columns:repeat(3,var(--pad-size));grid-template-rows:repeat(2,var(--pad-size))}
.directions .jump{grid-column:2;grid-row:1}.directions .left{grid-column:1;grid-row:2}.directions .crouch{grid-column:2;grid-row:2}.directions .right{grid-column:3;grid-row:2}
.touch-ui #touchControls button span{font-size:9px;letter-spacing:0}.touch-ui .profile-chip{font-size:12px;padding:8px;margin-bottom:10px}
@media(max-width:600px){.stats-grid{grid-template-columns:1fr}.leaderboard{font-size:11px}.leaderboard th,.leaderboard td{padding:9px 5px}.touch-ui .profile-links button{font-size:11px}}
@media(orientation:landscape) and (max-height:500px){.touch-ui .menu-actions{gap:4px}.touch-ui .profile-links button{padding:6px;font-size:10px}.touch-ui .menu-layout{gap:18px}.touch-ui .profile-form{max-width:600px}.touch-ui #profileMenu.active{justify-content:flex-start}.touch-ui .profile-form h2{font-size:20px;margin:5px 0}.touch-ui .profile-form label{margin-top:8px}}
