:root {
    --field-green: #2ecc71;
    --dirt-brown: #d35400;
    --ow-yellow: #f1c40f;
    --primary-blue: #0984e3;
    --bg-dark: #1a1a2e;
}

body,
html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--field-green);
    font-family: 'Fredoka', sans-serif;
    user-select: none;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* HUD Overlay */
#hud {
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    color: white;
}

#score-board {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid white;
    display: flex;
    gap: 30px;
}

.score-team {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
}

#hit-count {
    color: var(--ow-yellow);
}

#out-count {
    color: #e74c3c;
}

#batter-stats {
    text-align: right;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 10px;
    border: 2px solid white;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 1px;
}

.stat-value {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
}

#combo-display {
    position: absolute;
    top: 150px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e74c3c, #f1c40f);
    color: white;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 900;
    font-size: 2rem;
    animation: bounce 0.5s infinite alternate;
}

@keyframes bounce {
    from {
        transform: translateX(-50%) scale(1);
    }

    to {
        transform: translateX(-50%) scale(1.1);
    }
}

/* MENU OVERLAYS */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 39, 46, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.menu-box {
    text-align: center;
    background: #fff;
    padding: 60px;
    border-radius: 40px;
    border: 6px solid #2ecc71;
    max-width: 500px;
    width: 90%;
}

.logo {
    font-size: 6rem;
    margin-bottom: 20px;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 4rem;
    color: #2c3e50;
    font-weight: 900;
    margin-bottom: 10px;
}

.logo-text span {
    color: #2ecc71;
}

.controls-guide {
    background: #f1f2f6;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #555;
    font-weight: bold;
}

button {
    background: #2ecc71;
    color: white;
    font-size: 2rem;
    font-weight: 900;
    padding: 20px 60px;
    border-radius: 20px;
    box-shadow: 0 8px 0 #27ae60;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-5px);
    background: #27ae60;
    box-shadow: 0 12px 0 #219150;
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 4px 0 #219150;
}

.end-title {
    font-size: 4rem;
    color: #2c3e50;
    font-weight: 900;
}

.final-stats {
    margin: 30px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #555;
}

.hidden {
    display: none !important;
}