/* === Base === */
* {
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    user-select: none;
    margin: 0;
    padding: 0;
}

body {
    background: radial-gradient(circle at top, #0a0a0a 0%, #111 80%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}

/* === Title === */
h1 {
    margin-top: 16px;
    font-size: 2.2em;
    color: #00eaff;
    text-shadow: 0 0 15px #00eaff;
    letter-spacing: 1px;
}

/* === Game Area === */
#game {
    position: relative;
    width: 400px;
    height: 500px;
    border: 2px solid #00eaff;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 12px;
    box-shadow: 0 0 25px #00eaff22;
}

/* === Numbers === */
.number {
    position: absolute;
    font-size: 1.6em;
    background: #00eaff;
    color: #111;
    padding: 8px 14px;
    border-radius: 10px;
    box-shadow: 0 0 12px #00eaffcc;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

/* Click feedback */
.number:active {
    transform: scale(0.85);
}

/* When selected */
.number.selected {
    background: #00ffaa;
    box-shadow: 0 0 20px #00ffaaaa;
    transform: scale(1.05);
}

/* === HUD === */
#hud {
    margin-top: 10px;
    font-size: 1.1em;
    display: flex;
    justify-content: space-between;
    width: 400px;
}

#hud span {
    color: #00eaff;
    text-shadow: 0 0 6px #00eaff;
}

/* === Current Sum === */
#current {
    margin-top: 6px;
    font-size: 1.1em;
}

#current span {
    color: #00ffaa;
    text-shadow: 0 0 6px #00ffaa;
}

/* === Message === */
#message {
    margin-top: 8px;
    color: #00ffaa;
    font-weight: bold;
    height: 1.5em;
    text-shadow: 0 0 10px #00ffaa88;
    transition: opacity 0.3s ease;
}

/* === Optional floating effect === */
.number {
    animation: floaty 3s ease-in-out infinite alternate;
}

@keyframes floaty {
    0% { transform: translateY(0px); }
    100% { transform: translateY(3px); }
}
