body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #1b5e20;
    color: white;
    text-align: center;
}

.header-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
}

h1 {
    margin-top: 20px;
    font-size: 24px;
    text-align: center;
}

.game-container {
    position: relative;
    width: 360px;
    height: 240px;
    margin: 20px auto;
    background: url('images/goal-net.png') center/cover no-repeat;
    border: 4px solid white;
    border-radius: 12px;
    overflow: hidden;
}

.goalie {
    position: absolute;
    bottom: 70px;
    left: 150px;
    width: 70px;
    height: 70px;
    background: url('images/goalkeeper.png') center/contain no-repeat;
    transition: all 0.3s ease-out;
}

.ball {
    position: absolute;
    bottom: 15px;
    left: 165px;
    width: 25px;
    height: 25px;
    background: url('images/ball.png') center/contain no-repeat;
    transition: all 0.5s ease;
}

.controls {
    margin-top: 10px;
}

.controls button {
    margin: 6px;
    padding: 10px 16px;
    font-size: 14px;
    background-color: #fbc02d;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.controls button:hover {
    background-color: #f9a825;
}

.scoreboard {
    margin-top: 10px;
    font-size: 16px;
}

.reset-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: #ef5350;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.reset-btn:hover {
    background: #e53935;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.modal-content {
    background: white;
    color: black;
    padding: 24px;
    border-radius: 10px;
    font-size: 22px;
    box-shadow: 0 0 10px #000;
    text-align: center;
}

.modal-content.success {
    color: green;
}

.modal-content.fail {
    color: red;
}