Polish mobile bottom bar buttons and drawer transitions

- Redesign bottom bar buttons as pill-shaped with subtle glass border
- Active state: warm gradient fill with glow shadow
- Tap feedback: scale(0.95) press effect
- Drawer panels: iOS-style cubic-bezier spring curve, drop shadow
- Backdrop transition matches drawer timing
- Darker bottom bar background with softer border for depth

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
adlee-was-taken 2026-02-21 23:17:53 -05:00
parent 3227c92d63
commit aa2093d6c8

View File

@ -5181,9 +5181,10 @@ body.mobile-portrait .side-panel {
padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
z-index: 600; z-index: 600;
transform: translateY(100%); transform: translateY(100%);
transition: transform 0.3s ease-out; transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
overflow-y: auto; overflow-y: auto;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.4);
} }
body.mobile-portrait .side-panel.left-panel, body.mobile-portrait .side-panel.left-panel,
@ -5218,7 +5219,7 @@ body.mobile-portrait .drawer-backdrop {
z-index: 599; z-index: 599;
opacity: 0; opacity: 0;
pointer-events: none; pointer-events: none;
transition: opacity 0.3s ease-out; transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1);
} }
body.mobile-portrait .drawer-backdrop.visible { body.mobile-portrait .drawer-backdrop.visible {
@ -5254,40 +5255,45 @@ body.mobile-portrait .game-buttons {
/* --- Mobile: Bottom bar --- */ /* --- Mobile: Bottom bar --- */
body.mobile-portrait #mobile-bottom-bar { body.mobile-portrait #mobile-bottom-bar {
display: flex; display: flex;
justify-content: space-around; justify-content: center;
align-items: center; align-items: center;
background: rgba(0, 0, 0, 0.5); gap: 12px;
backdrop-filter: blur(10px); background: rgba(10, 10, 20, 0.7);
padding: 6px 16px; backdrop-filter: blur(12px);
padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px)); -webkit-backdrop-filter: blur(12px);
padding: 8px 20px;
padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
width: 100%; width: 100%;
z-index: 500; z-index: 500;
flex-shrink: 0; flex-shrink: 0;
border-top: 1px solid rgba(244, 164, 96, 0.2); border-top: 1px solid rgba(255, 255, 255, 0.08);
} }
body.mobile-portrait #mobile-bottom-bar .mobile-bar-btn { body.mobile-portrait #mobile-bottom-bar .mobile-bar-btn {
background: none; background: rgba(255, 255, 255, 0.06);
border: none; border: 1px solid rgba(255, 255, 255, 0.1);
color: rgba(255, 255, 255, 0.8); color: rgba(255, 255, 255, 0.65);
font-size: 0.75rem; font-size: 0.7rem;
font-weight: 600; font-weight: 600;
padding: 6px 16px; padding: 7px 20px;
cursor: pointer; cursor: pointer;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.08em; letter-spacing: 0.1em;
border-radius: 6px; border-radius: 20px;
transition: background 0.15s, color 0.15s; transition: all 0.25s ease;
position: relative;
-webkit-tap-highlight-color: transparent;
} }
body.mobile-portrait #mobile-bottom-bar .mobile-bar-btn:active { body.mobile-portrait #mobile-bottom-bar .mobile-bar-btn:active {
background: rgba(244, 164, 96, 0.3); transform: scale(0.95);
color: #f4a460;
} }
body.mobile-portrait #mobile-bottom-bar .mobile-bar-btn.active { body.mobile-portrait #mobile-bottom-bar .mobile-bar-btn.active {
color: #f4a460; color: #1a1a2e;
background: rgba(244, 164, 96, 0.15); background: linear-gradient(135deg, #f4a460, #e8935a);
border-color: transparent;
box-shadow: 0 2px 12px rgba(244, 164, 96, 0.4);
} }
/* --- Mobile: Non-game screens --- */ /* --- Mobile: Non-game screens --- */