/* GameList-specific styles using design system tokens */ .screen.active { display: block; opacity: 1; transform: translateX(0); position: relative; } .screen-content { display: flex; flex-direction: column; min-height: 100vh; padding: var(--space-lg); overflow-y: auto; -webkit-overflow-scrolling: touch; } .screen-title { font-size: var(--font-size-xxl); margin-bottom: var(--space-lg); font-weight: 700; } .game-list { width: 100%; flex: 1; overflow-y: auto; } /* Filter buttons with improved symmetry */ .filter-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); margin: var(--space-lg) 0 var(--space-md) 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); } .filter-button { background: var(--color-secondary); color: var(--color-text); border: none; font-size: var(--font-size-base); padding: var(--space-md) 0; cursor: pointer; font-weight: 500; transition: all var(--transition-base); min-height: var(--touch-target-comfortable); display: flex; align-items: center; justify-content: center; } .filter-button:hover { background: var(--color-secondary-hover); transform: translateY(-1px); } .filter-button.active { background: var(--color-primary); color: white; box-shadow: var(--shadow-md); } /* Games container with improved spacing */ .games-container { width: 100%; display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-lg); } /* Game item with better symmetry and spacing */ .game-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-md); padding: var(--space-lg); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: all var(--transition-base); cursor: pointer; background: var(--color-surface); border: 1px solid var(--color-border); } .game-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--color-primary); } .game-item.active { background: var(--color-success); border-color: var(--color-success); } .game-item.completed { background: var(--color-surface); opacity: 0.8; border-color: var(--color-border); } /* Game info with improved layout */ .game-info { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-lg); width: 100%; cursor: pointer; } .game-type { font-weight: 700; font-size: var(--font-size-lg); color: var(--color-text); white-space: nowrap; min-width: 120px; text-align: center; background: var(--color-secondary); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); } .player-names { color: var(--color-text); font-size: var(--font-size-lg); font-weight: 500; text-align: center; flex: 1; } .game-scores { font-size: var(--font-size-xl); font-weight: 700; text-align: center; color: var(--color-primary); min-width: 120px; background: var(--color-background); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-sm); } /* Delete button with improved touch target */ .delete-button { width: var(--touch-target-comfortable); height: var(--touch-target-comfortable); border: none; background: var(--color-danger); color: white; border-radius: 50%; font-size: var(--font-size-lg); display: flex; align-items: center; justify-content: center; transition: all var(--transition-base); cursor: pointer; box-shadow: var(--shadow-sm); } .delete-button::before { content: '🗑️'; font-size: var(--font-size-lg); } .delete-button:hover { background: #cc0000; transform: scale(1.05); box-shadow: var(--shadow-md); } .delete-button:active { transform: scale(0.95); } /* Empty state styling */ .empty-state { text-align: center; padding: var(--space-xxl); color: var(--color-text-muted); font-size: var(--font-size-lg); background: var(--color-surface); border-radius: var(--radius-lg); border: 2px dashed var(--color-border); } /* Page header */ .page-header { font-size: var(--font-size-xxxl); font-weight: 700; color: var(--color-text); background: var(--color-surface); padding: var(--space-lg) 0 var(--space-md) 0; margin-bottom: var(--space-sm); text-align: left; width: 100%; letter-spacing: 0.5px; border-radius: var(--radius-lg); } /* Tablet-specific improvements */ @media (min-width: 768px) and (max-width: 1024px) { .screen-content { padding: var(--space-xl); } .filter-buttons { gap: var(--space-md); margin: var(--space-xl) 0 var(--space-lg) 0; } .filter-button { font-size: var(--font-size-lg); padding: var(--space-lg) 0; min-height: var(--touch-target-comfortable); } .game-item { padding: var(--space-xl); gap: var(--space-lg); } .game-info { gap: var(--space-xl); } .game-type { font-size: var(--font-size-xl); min-width: 150px; padding: var(--space-md) var(--space-lg); } .player-names { font-size: var(--font-size-xl); } .game-scores { font-size: var(--font-size-xxl); min-width: 150px; padding: var(--space-md) var(--space-lg); } .delete-button { width: 64px; height: 64px; font-size: var(--font-size-xl); } .empty-state { font-size: var(--font-size-xl); padding: var(--space-xxl) var(--space-xl); } } /* Mobile adjustments */ @media (max-width: 767px) { .screen-content { padding: var(--space-md); } .game-info { grid-template-columns: 1fr; gap: var(--space-md); text-align: center; } .game-type, .game-scores { min-width: auto; width: 100%; } }