/* Names stay editable on phones; game buttons keep their gesture protection. */
.player-profile{position:relative;z-index:3;display:grid;gap:7px;width:min(230px,100%);margin:16px auto 0;text-align:left}
.player-profile label{display:grid;gap:4px;font-size:11px;color:inherit;letter-spacing:0;font-weight:500}
#app .player-profile input{width:100%;min-width:0;min-height:34px;padding:6px 9px;border:1px solid #94ac9180;border-radius:6px;background:#173332e8;color:#fff5dd;font:inherit;font-size:16px;user-select:text;-webkit-user-select:text;-webkit-touch-callout:default;touch-action:manipulation}
#character-unlock{display:flex;align-items:center;gap:5px;font-size:11px;margin:0;padding:3px 7px;background:#314a38eb;border:1px solid #b5c295;color:#f6eccb;border-radius:5px}
#character-unlock img{width:25px;height:25px;object-fit:contain}
.battle-screen #punch{position:absolute;right:0;bottom:calc(100% + 8px);height:42px;width:100%;border:1px solid #e8c799;background:#85674ddf;color:#fff2d7;border-radius:9px;font-size:13px;font-weight:700;pointer-events:auto;touch-action:none}
.battle-screen #punch small{font-size:10px;margin-left:8px;font-weight:400}
.battle-screen #punch:disabled{opacity:.6}
#battle-screen.walrus-controlled .quick-loadout{bottom:calc(max(12px,env(safe-area-inset-bottom)) + 155px)}
@media(orientation:landscape) and (max-height:440px){.player-profile{width:min(190px,100%);margin:9px auto 0;gap:5px}.player-profile label{font-size:10px;gap:2px}#app .player-profile input{min-height:29px;padding:4px 7px;font-size:16px}#character-unlock{font-size:10px;padding:0 4px}#character-unlock img{width:20px;height:20px}}
@media(max-height:350px){.player-profile{margin-top:6px;width:min(175px,100%)}.player-profile label{font-size:9px}#app .player-profile input{min-height:27px;padding:2px 6px}.battle-screen #punch{height:34px;bottom:calc(100% + 5px)}}

@media(orientation:landscape) and (max-height:440px){.gorilla-game #top-menu .menu-panel{padding:9px 16px;gap:24px}.gorilla-game #top-menu .menu-setup{gap:5px}.gorilla-game #top-menu .menu-title .menu-tank{max-height:95px;object-fit:contain;margin:4px auto}.gorilla-game #top-menu .menu-note{display:none}.gorilla-game #top-menu .online-open{min-height:31px;margin-top:2px}.gorilla-game #top-menu .menu-utilities button{min-height:25px;padding:3px 6px}}
@media(orientation:landscape) and (max-height:350px){.gorilla-game #top-menu{padding:6px}.gorilla-game #top-menu .menu-panel{padding:7px 12px;gap:15px}.gorilla-game #top-menu .menu-setup{gap:3px}.gorilla-game #top-menu .menu-title h1{font-size:30px}.gorilla-game #top-menu .menu-title .menu-tank{max-height:65px}.gorilla-game #top-menu .mode-switch button,.gorilla-game #top-menu .edition-switch button{min-height:26px;font-size:11px}.gorilla-game #top-menu .stage-preview{min-height:43px;padding:5px 7px}.gorilla-game #top-menu .stage-preview>img{height:29px;width:52px}.gorilla-game #top-menu .menu-options{min-height:36px}.gorilla-game #top-menu .menu-options select{min-height:26px}.gorilla-game #top-menu .start-btn{min-height:38px;padding:6px 10px;font-size:15px}.gorilla-game #top-menu .online-open{min-height:27px}.gorilla-game #top-menu .menu-utilities button{min-height:22px;font-size:10px}}

@media(orientation:landscape) and (max-height:440px){.gorilla-game #top-menu .menu-panel{width:min(820px,100%);grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr)}.gorilla-game #top-menu .menu-title{display:block;min-width:0}.gorilla-game #top-menu .player-profile{max-width:100%}}
@media(orientation:portrait){.gorilla-game #top-menu .menu-title{display:block}.gorilla-game #top-menu .menu-tank{max-height:100px;object-fit:contain}.gorilla-game #top-menu .menu-note{display:none}}
