
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #17151a;
    color: #fff;
    font-family: 'Josefin sans', Arial, sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px 10px;
}

.game-container {
    width: 500px;
    max-width: 100%;
    text-align: center;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: 12px;
    color: #f5705e;
    margin: 5px 0 15px;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 12px;
    font-size: 1rem;
    font-weight: bold;
    color: #f5705e;
}

.stats span {
    color: white;
    font-size: 22px;
    margin-left: 8px;
}

.board {
    position: relative;
    width: 100%;
    border: 5px solid #b88b3d;
    border-radius: 12px;
    background: #182b32;
    overflow: hidden;
    box-shadow: 0 0 25px #000;
}

canvas {
    display: block;
    width: 100%;
    height: auto;
}

.message {
    position: absolute;
    top: 5%;
    left: 0;
    width: 100%;
    color: #ffe18a;
    font-weight: bold;
    font-size: 19px;
    text-shadow: 0 0 10px #ff8800;
    pointer-events: none;
}

.controls {
    display: flex;
    justify-content: space-around;
    gap: 12px;
    margin-top: 15px;
}

button {
    flex: 1;
    padding: 15px 5px;
    background: #a52d32;
    border: 2px solid #f5c75e;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    touch-action: none;
}

button:active {
    background: #ed9a35;
    transform: scale(0.96);
}

.instructions {
    color: #aaa;
    font-size: 12px;
    line-height: 1.8;
}

@media (min-width: 700px) {
    .controls {
        max-width: 400px;
        margin: 15px auto;
    }
}
