body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    text-align: center;
    background-color: #f1f5f9;
    color: #1e293b;
    display: flex;
    align-items: center; 
    justify-content: center;
    min-height: 100vh; 
    margin: 0;
    touch-action: manipulation;
}

.container {
    background: #ffffff;
    padding: 24px;
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    width: 95%; 
    max-width: 420px;
    position: relative;
    box-sizing: border-box;
}

/* Selettore Lingua */
.lang-selector {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 8px;
}

.btn-lang {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    color: #64748b;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.flag-icon {
    width: 18px;
    height: 14px;
    border-radius: 3px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.btn-lang.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}

/* Area Logo (Ingrandito) */
.logo-area { 
    margin-bottom: 16px; 
    padding: 8px 0;
}

.main-logo { 
    max-width: 280px; 
    width: 85%;
    height: auto; 
    display: block;
    margin: 0 auto;
}

.section-title { 
    font-size: 0.95rem; 
    color: #d97706; 
    margin-bottom: 12px; 
    font-weight: 700; 
}

/* Pulsanti Aiuto */
.help-buttons { 
    display: flex; 
    gap: 8px; 
    margin-bottom: 20px; 
}

.btn-help {
    flex: 1; 
    background: #f8fafc; 
    border: 1.5px solid #cbd5e1; 
    color: #475569;
    padding: 12px 6px; 
    border-radius: 14px; 
    font-size: 0.78rem; 
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-help.active { 
    background: #d97706; 
    color: #ffffff; 
    border-color: #d97706; 
    font-weight: 700; 
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

/* Gruppi di Controllo */
.control-group { 
    margin-bottom: 16px; 
    background: #f8fafc; 
    padding: 16px; 
    border-radius: 18px; 
    border: 1px solid #e2e8f0;
}

.control-group label { 
    display: block; 
    font-size: 0.88rem; 
    color: #1e293b;
    margin-bottom: 10px; 
    line-height: 1.35; 
    font-weight: 600;
}

.control-group small { 
    color: #64748b; 
    font-size: 0.74rem; 
    font-weight: normal;
}

.horizontal-controls {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 16px;
}

/* Pulsanti + / - in Blu Indaco Vivace */
.btn-step {
    background: #3b82f6; 
    color: #ffffff; 
    font-size: 1.8rem;
    font-weight: bold;
    width: 52px; 
    height: 52px; 
    border-radius: 14px; 
    border: none; 
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.25);
    transition: all 0.2s ease;
}

.btn-step:hover {
    background: #2563eb;
}

.btn-step:active {
    transform: scale(0.95);
}

input {
    width: 65px; 
    background: transparent; 
    border: none;
    color: #0f172a; 
    font-size: 2.4rem; 
    font-weight: 800; 
    text-align: center;
}

/* Pulsante Avvio */
.btn-start { 
    background: #10b981; 
    color: #ffffff; 
    padding: 16px; 
    width: 100%; 
    border: none; 
    border-radius: 16px; 
    font-weight: 700; 
    font-size: 1.25rem; 
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
    transition: all 0.2s ease;
}

.btn-start:hover {
    background: #059669;
}

.btn-start:active {
    transform: scale(0.98);
}

.btn-reset { 
    background: #ef4444; 
    color: white; 
    padding: 16px; 
    width: 100%; 
    border: none; 
    border-radius: 16px; 
    font-weight: 700; 
    font-size: 1.1rem;
    display: none; 
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

#timer { 
    font-size: 5.5rem; 
    font-weight: 900; 
    color: #d97706; 
    font-family: monospace; 
}

.summary { 
    font-size: 0.95rem; 
    color: #475569; 
    margin-bottom: 10px; 
    font-weight: 600;
}