* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    background: #101820;
    color: #f8f8f8;
    font-family: Arial, sans-serif;
}

.game-shell {
    padding: 10px;
}

.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.score {
    min-width: 120px;
    text-align: right;
    font-size: 22px;
    font-weight: 700;
}

canvas {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 3px solid #f8f8f8;
    background: #000;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #dce7ee;
    font-size: 16px;
}

button {
    border: 0;
    border-radius: 6px;
    padding: 10px 16px;
    background: #2bd9fe;
    color: #061016;
    cursor: pointer;
    font-weight: 700;
}

button:hover,
button:focus-visible {
    background: #8feeff;
}

.touch-controls {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
    touch-action: none;
}

.arrow-btn {
    width: 72px;
    height: 56px;
    padding: 0;
    font-size: 34px;
    line-height: 1;
    user-select: none;
}

.arrow-btn:active {
    background: #f8f8f8;
}

@media (max-width: 520px) {
    .top-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .score {
        min-width: 0;
        text-align: left;
    }
}
