/* Pong Game Styles - Dark Theme */

:root {
    --pong-bg: #0a0f1a;
    --pong-card: rgba(15, 23, 42, 0.95);
    --pong-border: rgba(0, 212, 255, 0.2);
    --pong-accent: #00d4ff;
    --pong-gold: #fbbf24;
    --pong-green: #22c55e;
    --pong-red: #ef4444;
    --pong-purple: #a855f7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.pong-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--pong-bg) 0%, #1a1a2e 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

.pong-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 100px;
}

.pong-header {
    text-align: center;
    margin-bottom: 30px;
}

.pong-header h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--pong-accent), var(--pong-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.pong-header p {
    color: #94a3b8;
}

.game-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 25px;
}

@media (max-width: 900px) {
    .game-layout {
        grid-template-columns: 1fr;
    }
}

/* Game Area */
.game-area {
    background: var(--pong-card);
    border-radius: 16px;
    border: 1px solid var(--pong-border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.score-display {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

.score-player,
.score-ai {
    text-align: center;
}

.score-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 5px;
}

.score-value {
    font-size: 3rem;
    font-weight: 700;
}

.score-player .score-value {
    color: var(--pong-green);
}

.score-ai .score-value {
    color: var(--pong-red);
}

#pongCanvas {
    background: #000;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
    max-width: 100%;
}

.game-controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.pong-btn {
    padding: 12px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pong-btn-primary {
    background: linear-gradient(135deg, var(--pong-accent), #0099cc);
    color: #fff;
}

.pong-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.4);
}

.pong-btn-secondary {
    background: rgba(100, 116, 139, 0.3);
    border: 1px solid rgba(100, 116, 139, 0.5);
    color: #94a3b8;
}

.pong-btn-secondary:hover {
    background: rgba(100, 116, 139, 0.5);
    color: #fff;
}

/* Side Panel */
.side-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel-card {
    background: var(--pong-card);
    border-radius: 16px;
    border: 1px solid var(--pong-border);
    padding: 20px;
}

.panel-card h3 {
    color: var(--pong-accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

/* Difficulty */
.difficulty-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.difficulty-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.difficulty-option:hover {
    background: rgba(168, 85, 247, 0.1);
}

.difficulty-option.selected {
    border-color: var(--pong-purple);
    background: rgba(168, 85, 247, 0.15);
}

.difficulty-option input {
    display: none;
}

.difficulty-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.difficulty-icon {
    font-size: 1.2rem;
}

.difficulty-name {
    font-weight: 600;
}

.difficulty-reward {
    color: var(--pong-gold);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Stats */
.pong-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pong-purple);
}

.stat-label {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 5px;
}

/* Instructions */
.instructions {
    color: #94a3b8;
    line-height: 1.8;
}

.instructions kbd {
    background: rgba(0, 212, 255, 0.2);
    padding: 3px 8px;
    border-radius: 4px;
    color: var(--pong-accent);
    font-family: monospace;
}

/* Victory Modal */
.victory-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.victory-content {
    background: var(--pong-card);
    border-radius: 20px;
    border: 2px solid var(--pong-gold);
    padding: 40px;
    text-align: center;
    max-width: 400px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.victory-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.victory-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.victory-title.win {
    color: var(--pong-gold);
}

.victory-title.lose {
    color: var(--pong-red);
}

.victory-subtitle {
    color: #94a3b8;
    margin-bottom: 20px;
}

.reward-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pong-gold);
    margin: 15px 0;
}

.claim-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--pong-gold), #f59e0b);
    color: #000;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    margin-top: 10px;
}

.claim-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(251, 191, 36, 0.4);
}

.claim-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Game Over Overlay */
.game-status-text {
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 8px;
}

.game-status-text.playing {
    color: var(--pong-green);
}

.game-status-text.paused {
    color: var(--pong-gold);
}