/* Pulsante QR code stile coerente, ma compatto e con colori dedicati */
.btn-qr {
    background: #f6fffa;
    border: 2px solid #4ec08d;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2em;
    color: #24685a;
    padding: 2px 10px;
    margin-left: 4px;
    flex: 0 0 auto;
    transition: box-shadow 0.2s, background 0.2s, color 0.2s;
    box-shadow: none;
    display: inline-block;
}
.btn-qr:hover, .btn-qr:focus {
    box-shadow: 0 0 0 2px #b2f2dd;
    background: #e0f7f4;
    color: #191654;
}
@media (max-width: 600px) {
    .btn-qr {
        font-size: 1.1em;
        padding: 8px 14px;
        min-width: 44px;
        max-width: 220px;
        width: auto !important;
        display: inline-block;
    }
}
@media (max-width:600px) {
    table td, .sum-cell, .total-cell {
        background: #faffb4 !important;
    }
}
#modal-info button[title="Chiudi"] {
  width: auto !important;
  margin: 0 !important;
}
/* Forza la X della modale info sempre in alto a destra anche su mobile */
#modal-info button[title="Chiudi"] {
  position: absolute !important;
  right: 10px !important;
  top: 10px !important;
  left: auto !important;
  margin: 0 !important;
  transform: none !important;
}
/* Mostra solo su mobile/tablet, nasconde su desktop */
.mobile-only {
  display: none !important;
}
@media (max-width: 800px) {
  .mobile-only {
    display: block !important;
  }
}
@media (max-width: 800px) {
  .container {
    margin-bottom: 0 !important;
  }
}
/* Mostra solo su desktop, nasconde su mobile */
.desktop-only {
  display: block !important;
}
@media (max-width: 800px) {
  .desktop-only {
    display: none !important;
  }
}
/* Link semplici senza classe: colore #37c7ad, sottolineati, hover senza sottolineatura e colore #1e695b */
a:not([class]) {
  color: #37c7ad;
  text-decoration: underline;
  transition: color 0.2s, text-decoration 0.2s;
}
a:not([class]):hover, a:not([class]):focus {
  color: #1e695b;
  text-decoration: none;
}
.info-button {
    position:absolute; 
    right:0; 
    top:50%; 
    transform:translateY(-50%); 
    cursor:pointer; 
    color:#43c6ac; 
    font-size:1em; 
    padding:2px 4px;    
}


/* Forza stile bottone per i link .main-btn anche su desktop */
a.main-btn {
    background: linear-gradient(90deg, #43c6ac 0%, #191654 100%);
    color: #fff !important;
    border: none;
    border-radius: 8px;
    padding: 16px 38px;
    font-size: 1.15em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(67, 100, 90, 0.13);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
    min-width: 220px;
    max-width: 360px;
    width: auto;
    display: block;
    text-align: center;
    margin: 0 auto 0 auto;
}
a.main-btn:hover, a.main-btn:focus {
    background: linear-gradient(90deg, #368e7d 0%, #191654 100%);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-2px) scale(1.03);
}
/* Nascondi i pulsanti Torna alla home su mobile se il menu mobile è visibile */
@media (max-width: 800px) {
  .btn-torna-home, .torna-home-btn, .torna-home, .btn-torna-alla-home {
    display: none !important;
  }
/* --- Menu mobile fisso in basso --- */
#mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: #e0f7f4;
    border-top: 2px solid #266f61;
    box-shadow: 0 -2px 12px 0 rgba(67,100,90,0.07);
    z-index: 2000;
    /* Forza i pulsanti .btn-qr a non occupare tutta la larghezza su mobile */
    .btn-qr {
        width: auto !important;
        display: inline-block !important;
        max-width: 220px;
    }
    justify-content: space-around;
    align-items: center;
    padding: 0 0;
    height: 58px;
}
#mobile-bottom-nav .nav-btn {
    flex: 1 1 0;
    text-align: center;
    color: #24685a;
    text-decoration: none;
    font-size: 1.32em;
    padding: 7px 0 2px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    border: none;
    background: none;
}
#mobile-bottom-nav .nav-btn:active, #mobile-bottom-nav .nav-btn.active {
    background: #b2dfdb;
    color: #1b4d3e;
}
#mobile-bottom-nav .nav-btn i {
    font-size: 1.35em;
    margin-bottom: 2px;
}
#mobile-bottom-nav .nav-btn span {
    font-size: 0.82em;
    margin-top: 0px;
    display: block;
    line-height: 1.1;
}
@media (max-width: 800px) {
    #mobile-bottom-nav {
        display: flex;
    }
    body {
        padding-bottom: 62px !important;
    }
}
/* Stile coerente con il sito per i link */
.container a {
    color: #43c6ac;
    text-decoration: underline;
    transition: color 0.2s, text-decoration 0.2s;
}
.container a:hover, .container a:focus {
    color: #2d7e6b;
    text-decoration: none;
}
/* Stili generali e pulsanti da index.html */
.container {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    padding: 32px 18px 38px 18px;
    border-radius: 0 !important;
    margin-top: 0 !important;
}
.intro {
    font-size: 1.15em;
    color: #333;
    text-align: center;
    margin-bottom: 32px;
}
.btn-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 30px;
}
.main-btn {
    background: linear-gradient(90deg, #43c6ac 0%, #191654 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 16px 38px;
    font-size: 1.15em;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(67, 100, 90, 0.13);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none !important;
    min-width: 220px;
    max-width: 360px;
    width: auto;
    display: inline-block;
    text-align: center;
}

/* Nessuna sottolineatura per il testo dei pulsanti */
.main-btn, .main-btn * {
    text-decoration: none !important;
}

/* Forza il colore bianco per il testo del pulsante taccuino dei Punti */
a.main-btn[href="punti_burraco.html"] {
    color: #fff !important;
}
}
.main-btn:hover {
    background: linear-gradient(90deg, #368e7d 0%, #191654 100%);
    transform: translateY(-2px) scale(1.03);
    text-decoration: none;
}
.main-btn i {
    margin-right: 10px;
}
.main-btn.secondary-btn {
    background: #f5f5f5;
    color: #368e7d;
    border: 2px solid #43c6ac;
    box-shadow: none;
    font-weight: 500;
    width: 100%;
    margin: 0 auto;
    display: block;
}
.main-btn.secondary-btn:hover {
    background: #e0f7f4;
    color: #191654;
    border-color: #368e7d;
    transform: translateY(-1px) scale(1.01);
}
@media (max-width: 600px) {
    .container { padding: 12px 2vw; margin-top: 10vw; }
    h1 { font-size: 1.3em; }
    .btn-salva {
        font-size: 1em;
        padding: 13px 18px;
        width: auto !important;
        min-width: 80px;
        max-width: 98vw;
        display: inline-block;
    }
}
@media (max-width: 800px) {
    #mobile-bottom-nav {
        display: flex;
    }
}
@media (min-width: 801px) {
    #mobile-bottom-nav {
        display: none !important;
    }
    .main-btn { width: auto; }
}
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f8ffae 0%, #43c6ac 100%);
    min-height: 100vh;
    margin: 0;
}
.container {
    max-width: 520px;
    margin: 60px auto;
    background: #fff;
    padding: 32px 24px 24px 24px;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(67,198,172,0.15);
}
h1 {
    color: #368e7d;
    text-align: center;
}
h2 {
    text-align: center;
    color: #368e7d;
    margin-bottom: 28px;
    letter-spacing: 1px;
}
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px 10px;
    margin-bottom: 18px;
}
th, td {
    text-align: center;
    padding: 10px 6px;
}
th {
    background: #43c6ac;
    color: #fff;
    border-radius: 8px 8px 0 0;
    font-size: 1.1em;
}
td {
    background: #f8ffae;
    border-radius: 6px;
    font-size: 1em;
}
input[type="text"], input[type="number"] {
    width: 90%;
    padding: 8px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #43c6ac;
    background: #fff;
    color: #333;
    outline: none;
    text-align: center;
}
input[type="tel"] {
    width: 90%;
    padding: 8px;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #43c6ac;
    background: #fff;
    color: #333;
    outline: none;
    text-align: center;
}
input[type="checkbox"].checkbox-large {
    width: 1.5em;
    height: 1.5em;
    accent-color: #43c6ac;
    vertical-align: middle;
}
.radio-group {
    justify-content: center;
    gap: 10px;
}
/* Celle colorate per Punti Mano e Punti Partita */
.sum-cell, td.sum-cell {
    background: #e0e0e0 !important;
    font-weight: bold;
    color: #368e7d;
    border-radius: 6px;
    padding: 8px 0;
    text-align: center;
}
.total-cell, td.total-cell {
    background: #43c6ac !important;
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 6px;
    padding: 8px 0;
    text-align: center;
}
button {
    padding: 12px 22px;
    font-size: 1em;
    border: none;
    border-radius: 8px;
    background: #43c6ac;
    color: #fff;
    cursor: pointer;
    margin: 10px 8px 0 0;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px rgba(67,198,172,0.08);
}
button:hover {
    background: #368e7d;
    transform: scale(1.05);
}
.reset {
    background: #f44336;
}
.reset:hover {
    background: #b71c1c;
}
.button-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.button-row button {
    margin: 0;
}
@media (max-width: 600px) {
    .container { max-width: 100vw; padding: 2vw; }
    table { border-spacing: 2px 4px; table-layout: fixed; }
    th, td { display: table-cell; width: auto; min-width: 80px; max-width: 1fr; box-sizing: border-box; font-size: 0.95em; padding: 6px 2px; background: none; }
    th { background: #43c6ac !important; color: #fff !important; }
    tr { display: table-row; width: 100%; }
    th input[type="text"] { width: 90%; font-size: 1em; padding: 6px; }
    td input[type="number"] { width: 80%; font-size: 1em; padding: 6px; }
    .sum-cell, td.sum-cell { width: 100%; font-size: 1em; padding: 8px 0; }
    .total-cell, td.total-cell { width: 100%; font-size: 1.05em; padding: 8px 0; }
    .radio-group { flex-direction: row; justify-content: flex-start; gap: 6px; }
    label { width: auto; font-size: 0.95em; }
    button { padding: 10px 6px; font-size: 0.95em; width: 100%; margin: 8px 0 0 0; }
    .button-row {
        flex-direction: column;
        gap: 8px;
    }
    .button-row button {
        width: 100%;
    }
}
#victory-row {
    background: transparent !important;
}
#victory-row td {
    background: transparent !important;
}
