* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #4ec0ca 0%, #ffffff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c2e3c;
}

.game-shell {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    width: min(420px, 95vw);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: 0.1rem;
    margin-bottom: 1rem;
}

.hud {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.scoreboard {
    background: #f3fbff;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    flex: 1;
    border: 2px solid #c2e7f0;
}

.scoreboard span {
    display: block;
    font-size: 0.85rem;
    color: #4a7680;
}

.scoreboard strong {
    font-size: 1.75rem;
    font-weight: 700;
}

#play-btn {
    padding: 0.85rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: #ffb347;
    color: #0c2e3c;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 10px 20px rgba(255, 179, 71, 0.35);
}

#play-btn:hover {
    transform: translateY(-2px);
}

canvas {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 4px solid #0c2e3c;
    background: linear-gradient(180deg, #4ec0ca 0%, #cfeffc 100%);
}

.hint {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #35616b;
}

@media (max-width: 420px) {
    .game-shell {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem;
    }
}
