/* ======================================================
   PARTITA – CREAZIONE
   ====================================================== */

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    color: #eef4f8;
    overflow: hidden;
}

/* Canvas neve */
#snow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle at top, #0f2f44, #081b28);
}

/* Contenitore */
.game-container {
    position: relative;
    z-index: 1;

    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* Box centrale */
.game-box {
    background: rgba(8, 27, 40, 0.88);
    padding: 48px 40px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    text-align: center;

    max-width: 420px;
    width: 90%;
}

/* Titolo */
.game-title {
    font-size: 2rem;
    margin: 0 0 32px 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Form */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

label {
    text-align: left;
    font-size: 0.95rem;
    color: #a9c0d4;
}

input {
    padding: 12px 14px;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    outline: none;
}

input::placeholder {
    color: #8aa2b5;
}

/* Pulsanti */
.primary-btn {
    margin-top: 12px;
    padding: 14px 24px;
    border-radius: 10px;
    border: none;
    cursor: pointer;

    background: linear-gradient(135deg, #1c4e68, #163c52);
    color: #eef4f8;

    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.3px;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Sezione successo */
#game-info {
    margin-top: 24px;
}

.success-text {
    margin: 12px 0 20px 0;
    color: #b6e3c7;
}

/* Bottone secondario */
.secondary-btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 10px;
    text-decoration: none;

    background: linear-gradient(135deg, #2c3e50, #1f2f3a);
    color: #eef4f8;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.secondary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 480px) {
    .game-box {
        padding: 40px 28px;
    }

    .game-title {
        font-size: 1.8rem;
    }
}
