﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e1b4b, #111827);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px;
}

.wrap {
    width: 100%;
    /*max-width: 1000px;*/
}

.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    padding: 20px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.title {
    font-size: 28px;
    font-weight: 800;
    color: #00e5ff;
}

.stats {
    display: flex;
    gap: 14px;
    font-size: 15px;
    color: #dbe4ff;
}

.sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

#status {
    color: #facc15;
    font-weight: 700;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

    .actions button,
    .ctrl {
        border: none;
        border-radius: 14px;
        padding: 10px 14px;
        font-weight: 700;
        cursor: pointer;
        color: #fff;
        background: linear-gradient(90deg, #00e5ff, #8b5cf6);
        transition: transform .2s ease;
    }

        .actions button:hover,
        .ctrl:hover {
            transform: translateY(-2px);
        }

#game {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    display: block;
    margin: 12px auto 14px;
    background: #0b1024;
    border-radius: 18px;
    border: 2px solid rgba(255,255,255,0.08);
    touch-action: none;
}

.help {
    text-align: center;
    color: #cbd5e1;
    font-size: 14px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.controls {
    width: 220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.up {
    grid-column: 2;
}

.left {
    grid-column: 1;
    grid-row: 2;
}

.down {
    grid-column: 2;
    grid-row: 2;
}

.right {
    grid-column: 3;
    grid-row: 2;
}

.ctrl {
    min-height: 54px;
    font-size: 20px;
}

@media (max-width: 480px) {
    .title {
        font-size: 24px;
    }

    .stats {
        font-size: 14px;
    }

    .card {
        padding: 16px;
    }
}
