* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #66b3ff 0%, #3a6ea5 100%);
    min-height: 100vh;
    padding: 20px;
    color: #222;
}

header {
    max-width: 89%;
    margin: 0 auto 18px;
    display: flex;
    gap: 64px;
    align-items: center;
}

header h1 {
    color: white;
    font-size: 30px;
    text-shadow: 0 4px 6px rgba(0,0,0,0.25);
}

.partite {
    max-width: 89%;
    margin: 0 auto 18px;
    display: flex;
    gap: 16px;
}

button, .btn {
    background: linear-gradient(135deg, #ff6700 0%, #66b3ff 100%);
    color: white;
    border: 1px solid rgba(0, 0, 0);
    padding: 8px 14px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(102,179,255,0.18);
    transition: all 0.3s ease;
}

button:hover, .btn:hover { transform: translateY(-2px); }

.container {
    display: flex;
    justify-content: space-around;
    gap: 24px;
    max-width: 90%;
    margin: 0 auto;
    align-items: flex-start;
}

.sinistra, .destra {
    background: rgba(255,255,255,0.98);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    width: 48%;
}

.sinistra h2, .destra h2 {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    border-bottom: 4px solid #66b3ff;
    padding-bottom: 12px;
    text-align: center;
}

#elenco-sq1, #elenco-sq2 {
    margin: 12px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#elenco-sq1 li, #elenco-sq2 li {
    background: linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #d6dfe9;
    box-shadow: 0 4px 12px rgba(58,110,165,0.04);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

hr {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 18px 0;
}

input {
    width: 60px;
    padding: 1.3% 2.3%;
    border: 1px solid #c0c0c0;
    text-align: center;
    font-size: 14px;
    border-radius: 10px;
}

span {
    background-color:#41b776;
    padding: 1.3%;
    border-radius: 10px;
    padding-left: 2.3%;
    padding-right: 2.3%;
}

.salvaVoti {
    margin: 0 auto;
    display: block;
    margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 10px;
    }

    .sinistra, .destra {
        width: 100%;
        padding: 18px;
    }

    header {
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    header h1 { font-size: 18px; }
    button { padding: 8px 10px; font-size: 13px; }
    .sinistra h2, .destra h2 { font-size: 18px; padding-bottom: 10px; }
    #elenco-sq1 li, #elenco-sq2 li { padding: 10px; font-size: 14px; }
}