/* GameDetail-specific styles only. Shared utility classes are now in global CSS. */ .screen { position: absolute; top: 0; left: 0; width: 100%; min-height: 100vh; display: none; opacity: 0; transform: translateX(100%); transition: transform 0.3s ease, opacity 0.3s ease; } .screen.active { display: block; opacity: 1; transform: translateX(0); position: relative; } .screen-content { display: flex; flex-direction: column; height: 100%; padding: 20px; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; min-height: 0; } .game-detail { display: flex; flex-direction: column; height: 100%; overflow-y: auto; overflow-x: hidden; padding: var(--space-md); min-height: 0; } .game-title { font-size: 24px; color: #ccc; flex-shrink: 0; } .game-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; width: 100%; flex-shrink: 0; } .scores-container { display: flex; justify-content: space-between; gap: 32px; min-height: 0; flex-shrink: 0; } .player-score { flex: 1; text-align: center; padding: 30px 20px; border-radius: 20px; display: flex; flex-direction: column; min-height: 0; margin: 0 8px; position: relative; box-shadow: 0 8px 32px rgba(0,0,0,0.2); transition: all 0.3s ease; } .player-score:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); } .player-score:first-child { background-color: #43a047; } .player-score:nth-child(2) { background-color: #1565c0; } .player-score:nth-child(3) { background-color: #333; } .player-name { font-size: 28px; font-weight: 700; margin-bottom: 15px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; letter-spacing: 1px; } .progress-bar { width: 100%; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; margin: 10px 0; overflow: hidden; } .progress-fill { height: 100%; background: linear-gradient(90deg, #fff 0%, #f0f0f0 100%); border-radius: 4px; transition: width 0.5s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.2); } .game-status { position: absolute; top: 10px; right: 10px; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .game-status.active { background: #4caf50; color: #fff; } .game-status.completed { background: #ff9800; color: #222; } .score { font-size: 40vh; font-weight: 900; margin: 20px 0 30px 0; line-height: 1; color: #fff; text-shadow: 0 4px 16px rgba(0,0,0,0.6); text-align: center; display: block; min-height: 120px; display: flex; align-items: center; justify-content: center; } .score-buttons { display: flex; justify-content: center; gap: 10px; margin-top: auto; } .score-button { background: linear-gradient(135deg, #ff9800 0%, #ffa726 100%); color: #222; border: none; border-radius: 50%; padding: 0; font-size: 2.5rem; font-weight: 900; cursor: pointer; transition: all 0.3s ease; width: 80px; height: 80px; margin: 0 8px; box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3); display: flex; align-items: center; justify-content: center; touch-action: manipulation; } .score-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4); background: linear-gradient(135deg, #ffa726 0%, #ffb74d 100%); } .score-button:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3); } .score-button:disabled { background: #666; color: #999; cursor: not-allowed; transform: none; box-shadow: none; } .game-controls { display: flex; gap: 10px; margin-top: 20px; width: 100%; } .control-button { flex: 1; padding: 30px; background: #333; color: white; border: none; border-radius: 0; font-size: 24px; cursor: pointer; touch-action: manipulation; } .control-button.delete { background: #f44336; } .game-detail-controls { display: flex; flex-direction: row; gap: 24px; margin: 40px 0 0 0; padding-bottom: var(--space-xl); width: 100%; justify-content: center; flex-shrink: 0; } .franky .player-name { font-weight: bold; color: #ff8c00; /* Example color */ } .active-player { position: relative; border: 4px solid #ff9800; box-shadow: 0 0 32px 8px #ff9800, 0 0 0 8px rgba(255,152,0,0.15); background: linear-gradient(90deg, #ff9800 0 8px, rgba(255,152,0,0.15) 8px 100%); color: #222 !important; animation: activePulse 1.2s infinite alternate; z-index: 2; } .active-player .player-name, .active-player .score { color: #222 !important; text-shadow: 0 2px 8px rgba(255,255,255,0.25); } .active-player::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: #ff9800; border-radius: 8px 0 0 8px; } @keyframes activePulse { 0% { box-shadow: 0 0 32px 8px #ff9800, 0 0 0 8px rgba(255,152,0,0.15); } 100% { box-shadow: 0 0 48px 16px #ff9800, 0 0 0 16px rgba(255,152,0,0.22); } } .turn-indicator { margin: 20px 0; font-size: 1.2rem; text-align: center; } .potted-balls-container { margin-top: 2rem; padding: 1rem; background: #2a2a2a; border-radius: 8px; } .potted-balls-header { text-align: center; font-size: 1.1rem; margin-bottom: 1rem; font-weight: 600; } .potted-balls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 10px; } .potted-ball-btn { padding: 1rem; font-size: 1.2rem; font-weight: bold; border-radius: 8px; border: 1px solid #444; background-color: #333; color: #fff; cursor: pointer; transition: background-color 0.2s, transform 0.2s; } .potted-ball-btn:hover:not(:disabled) { background-color: #45a049; transform: translateY(-2px); } .potted-ball-btn:disabled { background-color: #222; color: #555; cursor: not-allowed; } .rerack-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; } .rerack-btn { padding: 0.8rem 1.5rem; font-size: 1rem; font-weight: bold; border-radius: 8px; border: 1px solid #444; background-color: #3a539b; color: #fff; cursor: pointer; transition: background-color 0.2s; } .rerack-btn:hover { background-color: #4a6fbf; } .foul-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem; } .foul-btn { flex-grow: 1; background-color: #ffc107; /* Amber */ color: #212529; border: none; padding: 0.75rem; border-radius: var(--border-radius); cursor: pointer; font-size: 1rem; transition: background-color 0.2s; } .foul-btn:hover { background-color: #ffca2c; } .foul-btn:disabled { background-color: #e0e0e0; color: #9e9e9e; cursor: not-allowed; } .foul-indicator { font-size: 1rem; font-weight: bold; color: #fff; background-color: #c0392b; padding: 4px 8px; border-radius: 4px; margin-top: 8px; display: inline-block; } .foul-warning { background-color: #f39c12; color: #000; } /* Game Log Styles */ .game-log { width: 100%; margin-top: 1.5rem; padding: 1rem; background-color: #f8f9fa; border-radius: var(--border-radius); border: 1px solid #dee2e6; } .log-title { margin-top: 0; margin-bottom: 0.5rem; font-size: 1.2rem; color: #495057; } .log-list { list-style-type: none; padding: 0; margin: 0; max-height: 200px; overflow-y: auto; font-size: 0.9rem; } .log-entry { padding: 0.5rem 0.25rem; border-bottom: 1px solid #e9ecef; color: #6c757d; } .log-entry:last-child { border-bottom: none; } .game-log-table-container { margin: 2.5rem auto 0 auto; max-width: 100vw; width: 100%; overflow-x: auto; background: #181818; border-radius: 12px; box-shadow: 0 2px 16px rgba(0,0,0,0.12); padding: 1.5rem 1rem; } .game-log-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; background: #222; color: #fff; } .game-log-table th, .game-log-table td { border: 1px solid #444; padding: 0.5rem 0.7rem; text-align: center; } .game-log-table th { background: #333; font-weight: 700; font-size: 1.1rem; } .game-log-table tr:nth-child(even) td { background: #232323; } .game-log-table tr:nth-child(odd) td { background: #181818; } .game-log-table .log-player-col { background: #222; color: #ff9800; font-size: 1.15rem; border-bottom: 2px solid #ff9800; } .turn-change-controls { display: flex; justify-content: center; margin: 2.5rem 0 1.5rem 0; } .turn-change-btn { background: #ff9800; color: #222; font-size: 2.2rem; font-weight: 900; padding: 2rem 4rem; border: none; border-radius: 18px; box-shadow: 0 4px 32px rgba(255,152,0,0.18), 0 2px 8px rgba(0,0,0,0.12); cursor: pointer; transition: background 0.2s, color 0.2s, box-shadow 0.2s; letter-spacing: 1px; margin: 0 auto; display: block; } .turn-change-btn:hover, .turn-change-btn:focus { background: #ffa726; color: #111; box-shadow: 0 6px 40px rgba(255,152,0,0.28), 0 2px 8px rgba(0,0,0,0.18); } .pending-foul-info { margin-left: 1.5rem; font-size: 1.2rem; color: #ffc107; font-weight: 700; } .selected { outline: 3px solid #ff9800 !important; background: #fff3e0 !important; color: #222 !important; }