/* ===== PONG GAME STYLES ===== */

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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #d2691e 0%, #8b4513 50%, #654321 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.app-header {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    z-index: 100;
    background: #2f1810;
    border-bottom: 4px solid #f4a460;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.5);
}

.header-title {
    font-size: 32px;
    font-weight: bold;
    color: #ffcc00;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    font-style: italic;
}

.header-controls {
    display: flex;
    gap: 15px;
}

.header-btn {
    background: #f4a460;
    border: 3px solid #ff8c00;
    color: #2f1810;
    padding: 8px 14px;
    border-radius: 0;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.2s;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.header-btn:hover {
    background: #ff8c00;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.game-container {
    margin-top: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 20px;
}

.score-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.score-box {
    background: #3d2817;
    border: 4px solid #f4a460;
    padding: 25px;
    border-radius: 0;
    min-width: 160px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.6);
}

.score-label {
    font-size: 14px;
    color: #ffcc00;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    font-weight: bold;
}

.score-value {
    font-size: 64px;
    font-weight: bold;
    color: #ff8c00;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
}

#gameCanvas {
    background: #1a1410;
    border: 6px solid #f4a460;
    border-radius: 0;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.8);
    display: block;
    margin-bottom: 40px;
    max-width: 90vw;
    max-height: 60vh;
}

.game-info {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.info-badge {
    background: #3d2817;
    border: 3px solid #f4a460;
    padding: 12px 18px;
    border-radius: 0;
    font-size: 12px;
    color: #ffcc00;
    font-weight: bold;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.5);
}

.controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 30px;
    max-width: 600px;
    width: 100%;
}

button {
    padding: 16px 28px;
    border: 4px solid #ff8c00;
    background: #f4a460;
    color: #2f1810;
    border-radius: 0;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 1px;
    font-family: 'Courier New', monospace;
}

button:hover {
    background: #ff8c00;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.8);
}

button:active {
    transform: translate(0, 0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.8);
}

.btn-primary {
    grid-column: 1 / -1;
    background: #ffcc00;
    border-color: #ff8c00;
    color: #2f1810;
    font-size: 14px;
}

.btn-primary:hover {
    background: #ff8c00;
    border-color: #ffcc00;
}

.game-over-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #3d2817 0%, #2f1810 100%);
    border: 6px solid #f4a460;
    border-radius: 0;
    padding: 50px;
    text-align: center;
    max-width: 400px;
    box-shadow: 12px 12px 0 rgba(0, 0, 0, 0.8);
}

.modal-title {
    font-size: 40px;
    margin-bottom: 20px;
    color: #ffcc00;
    text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

.modal-score {
    font-size: 48px;
    margin: 20px 0;
    color: #ff8c00;
    font-weight: bold;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.8);
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.modal-buttons button {
    flex: 1;
}
