/**
 * Golf Balls Stack Styles
 * Clean, minimal design with subtle shadows and gradients
 */

.golf-balls-stack {
    padding: 0;
    margin: 0;
}

/* Game Container - Smaller height to show header and footer */
.game-container {
    position: relative;
    width: 100vw;
    height: 60vh; /* Reduced height */
    min-height: 400px;
    overflow: hidden;
    background: linear-gradient(180deg, #e8f4f8 0%, #f0f9ff 50%, #e0f2fe 100%);
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* UI Overlay */
.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Stats Panel */
.stats-panel {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    pointer-events: none;
}

.stat-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 0.75rem 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 100px;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}

.stat-value.record {
    color: #f59e0b;
}

/* Controls Panel */
.controls-panel {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    pointer-events: all;
}

.control-btn {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: #1e293b;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.control-btn:active {
    transform: translateY(0);
}

.control-btn.primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #059669;
    color: white;
}

.control-btn.primary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.control-btn.secondary {
    background: rgba(255, 255, 255, 0.95);
}

/* Instructions Below Canvas */
.instructions-bottom {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin: 1.5rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #475569;
}

.instructions-bottom strong {
    color: #1e293b;
    font-weight: 600;
}

.instructions-bottom kbd {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 0.125rem 0.375rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #1e293b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .game-container {
        height: 50vh;
        min-height: 350px;
    }
    
    .ui-overlay {
        padding: 0.75rem;
    }
    
    .stats-panel {
        gap: 0.5rem;
    }
    
    .stat-item {
        padding: 0.5rem 0.75rem;
        min-width: 80px;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .controls-panel {
        gap: 0.5rem;
    }
    
    .control-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .instructions-bottom {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        margin: 1rem auto;
    }
}

@media (max-width: 480px) {
    .stats-panel {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 200px;
    }
    
    .controls-panel {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }
    
    .control-btn {
        width: 100%;
        justify-content: center;
    }
    
    .instructions-bottom {
        font-size: 0.75rem;
    }
}
