.schede {
    display: flex;
    gap: 0.5rem;
    background: #F3F4F6;
    padding: 0.4rem;
    border-radius: 14px;
    margin-bottom: 2.5rem;
}

.scheda {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--gray);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.scheda .material-icons {
    font-size: 20px;
}

.scheda.attiva {
    background: var(--white);
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Il quadrante e' a larghezza fissa per cifra: con un font proporzionale i
   numeri ballano a ogni decimo e l'occhio non riesce a leggerli. */
.quadrante {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum';
    text-align: center;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
    color: var(--dark);
    margin-bottom: 2rem;
    line-height: 1.1;
}

.quadrante .decimi {
    font-size: 2.5rem;
    color: var(--gray);
    font-weight: 700;
}

.quadrante.in-corsa {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quadrante.agli-sgoccioli {
    color: var(--error);
}

.quadrante.finito {
    color: var(--error);
    animation: lampeggia 1s ease-in-out infinite;
}

@keyframes lampeggia {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

.comandi {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comandi .btn {
    flex: 1;
}

.comandi .btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.preimpostati {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.preimpostato {
    padding: 0.6rem 1.1rem;
    border: 2px solid #E5E7EB;
    border-radius: 999px;
    background: var(--white);
    color: var(--dark);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.preimpostato:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.impostazione {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.suono {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.suono label {
    margin: 0;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
}

.giri {
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
}

.giri li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
}

.giri li:nth-child(odd) {
    background: #F9FAFB;
}

.giri .numero {
    font-weight: 700;
    color: var(--gray);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.giri .parziale {
    font-weight: 700;
    color: var(--dark);
}

.giri .totale {
    font-size: 0.85rem;
    color: var(--gray);
}

.nota {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #E5E7EB;
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--gray);
}

@media (max-width: 768px) {
    .quadrante {
        font-size: 3.2rem;
    }

    .quadrante .decimi {
        font-size: 1.8rem;
    }

    .comandi {
        flex-direction: column;
    }

    .scheda {
        font-size: 0.85rem;
        padding: 0.75rem 0.5rem;
    }
}
