/* Lotto 081 — stile delle pagine dei giochi (SuperEnalotto, 10eLotto): riquadri, palline, tabellone, tabelle. */

.card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 16px; padding: 1.3rem; margin-bottom: 1.2rem; }
.card-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 0.4rem 1rem; margin-bottom: 1rem; }
.meta { font-size: 0.78rem; color: rgba(255,255,255,0.5); }
.nota { font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.6; margin-top: 0.9rem; }
.nota strong { color: rgba(255,255,255,0.75); }

/* PALLINE */
.palle { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.palla { width: 46px; height: 46px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; background: rgba(124,58,237,0.25); border: 1.5px solid var(--purple); color: #fff; flex-shrink: 0; }
.palla.base { background: linear-gradient(135deg, var(--orange), #e68a00); border-color: transparent; box-shadow: 0 0 14px rgba(255,153,0,0.4); }
.palla.grande { width: 62px; height: 62px; font-size: 1.4rem; }
.palla.jolly { background: rgba(236,72,153,0.2); border-color: var(--pink); color: #f9a8d4; }
.palla.star { background: rgba(255,215,0,0.12); border-color: var(--gold); color: var(--gold); }
.extra { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-left: 0.6rem; }

.pallina { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.74rem; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); color: rgba(255,255,255,0.75); margin: 1px; }
.pallina.presa { background: var(--green); border-color: var(--green); color: #fff; font-weight: 800; }
.pallina.jolly { border-color: var(--pink); color: #f9a8d4; }
.pallina.star { border-color: var(--gold); color: var(--gold); }

/* GIOCATA */
.giocata { border-color: rgba(255,153,0,0.45); background: linear-gradient(135deg, rgba(255,153,0,0.1), rgba(124,58,237,0.1)); }
.giocata .card-title { font-size: 1rem; }
.etichetta { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin-bottom: 0.6rem; }
.motivi { list-style: none; margin: 0.9rem 0 1.3rem; display: grid; gap: 0.35rem; }
.motivi li { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.motivi strong { color: var(--orange); }
.forti { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.8rem; }
.gradino { background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 0.8rem 1rem; }
.gradino-nome { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin-bottom: 0.5rem; }
.pallina.forte { width: 34px; height: 34px; font-size: 0.85rem; font-weight: 700; color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--orange), #e68a00); }
.pallina.jolly.forte { background: rgba(236,72,153,0.25); border-color: var(--pink); color: #f9a8d4; }
.forti-nota { font-size: 0.73rem; color: rgba(255,255,255,0.45); line-height: 1.5; margin: 0.6rem 0 1.3rem; }
.combi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1rem; }
.combi { background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.1); border-radius: 14px; padding: 1rem; }
/* sei palline sempre su una riga: su schermi stretti si rimpiccioliscono insieme */
.combi .palle { display: grid; grid-template-columns: repeat(6, minmax(0, 46px)); gap: 0.4rem; }
.combi .palla { width: 100%; height: auto; aspect-ratio: 1; }
.combi-nome { font-size: 0.82rem; font-weight: 700; margin-bottom: 0.7rem; }
.combi-nome span { color: var(--purple-light); font-weight: 600; }
.combi-desc { font-size: 0.73rem; color: rgba(255,255,255,0.45); line-height: 1.5; margin-top: 0.7rem; }

/* STUDIO */
.studio-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (max-width: 1000px) { .studio-grid { grid-template-columns: 1fr; } }
.circle-legend { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.72rem; color: rgba(255,255,255,0.5); }
.legend-item { display: flex; align-items: center; gap: 0.3rem; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-line { width: 16px; height: 0; border-top: 2px solid #00d4aa; }
#cerchio { display: block; margin: 0 auto; max-width: 100%; max-height: 520px; }

.lista-num { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.35rem; }
.voce { border-radius: 8px; text-align: center; padding: 0.35rem 0.2rem; }
.voce b { display: block; font-size: 0.95rem; }
.voce small { font-size: 0.64rem; color: rgba(255,255,255,0.5); }
.voce.rit { background: rgba(231,76,60,0.1); border: 1px solid rgba(231,76,60,0.25); }
.voce.rit b { color: #ef4444; }
.voce.freq { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.25); }
.voce.freq b { color: var(--green-light); }
.voce.coppia { background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.25); }
.voce.coppia b { color: var(--purple-light); font-size: 0.85rem; }

.figura { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-left: 3px solid var(--purple); border-radius: 12px; padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; }
.figura-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.figura-tipo { font-weight: 600; font-size: 0.8rem; color: var(--purple-light); }
.forza { background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.25); color: var(--green-light); font-size: 0.68rem; font-weight: 700; padding: 0.15rem 0.5rem; border-radius: 10px; white-space: nowrap; }
.figura-nums { margin: 0.4rem 0 0.2rem; }
.pallina.manca { background: rgba(255,153,0,0.15); border-color: var(--orange); color: var(--orange); }
.pallina.uscito { background: rgba(124,58,237,0.2); border-color: var(--purple); color: var(--purple-light); }

/* TABELLE */
.scorri { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: 0.55rem 0.7rem; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.1); text-align: left; white-space: nowrap; }
td { padding: 0.55rem 0.7rem; border-bottom: 1px solid rgba(255,255,255,0.05); font-size: 0.8rem; vertical-align: middle; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
td.data { color: rgba(255,255,255,0.75); text-transform: capitalize; }
td.data small { display: block; color: rgba(255,255,255,0.35); text-transform: none; }
.esito { font-size: 0.74rem; color: rgba(255,255,255,0.45); }
.esito.vinto { color: var(--green-light); font-weight: 700; }
.tab-storico { min-width: 980px; }
.tab-archivio { min-width: 560px; }

.riepilogo { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; margin-bottom: 1rem; }
.riquadro { background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.8rem 1rem; }
.riquadro b { display: block; font-size: 1.5rem; font-weight: 800; }
.riquadro span { display: block; font-size: 0.74rem; color: rgba(255,255,255,0.55); line-height: 1.4; }
.riquadro small { display: block; font-size: 0.68rem; color: rgba(255,255,255,0.35); margin-top: 0.25rem; line-height: 1.4; }

.btn-altre { display: block; margin: 1rem auto 0; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.75); padding: 0.6rem 1.4rem; border-radius: 30px; font-family: 'Outfit', sans-serif; font-size: 0.85rem; cursor: pointer; transition: all 0.2s; }
.btn-altre:hover { border-color: var(--orange); color: #fff; }

.info { font-size: 0.8rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.info strong { color: rgba(255,255,255,0.85); }
.info p { margin-bottom: 0.7rem; }
.info ul { margin: 0 0 0.7rem 1.1rem; }
.avvertenza { font-size: 0.75rem; color: rgba(255,255,255,0.45); text-align: center; line-height: 1.6; }

/* INDICE DELLA PAGINA */
.indice { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; margin-bottom: 1.4rem; }
.indice a { font-size: 0.78rem; color: rgba(255,255,255,0.7); text-decoration: none; border: 1px solid rgba(255,255,255,0.15); border-radius: 20px; padding: 0.35rem 0.9rem; transition: all 0.2s; }
.indice a:hover { color: #fff; border-color: var(--orange); }

/* TABELLONE */
.tab-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 1000px) { .tab-grid { grid-template-columns: 1fr; } }
.sfoglia { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.8rem; flex-wrap: wrap; font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.sfoglia button { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: #fff; border-radius: 10px; min-width: 34px; height: 34px; padding: 0 0.6rem; font-family: 'Outfit', sans-serif; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.sfoglia button:hover:not(:disabled) { border-color: var(--orange); }
.sfoglia button:disabled { opacity: 0.3; cursor: default; }
.sfoglia .quale { flex: 1; min-width: 150px; text-align: center; text-transform: capitalize; }
.tabellone { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)) 2.2rem; gap: 4px; max-width: 540px; }
.cella { aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); font-family: 'Outfit', sans-serif; font-size: clamp(0.62rem, 2.6vw, 0.82rem); font-weight: 600; cursor: pointer; padding: 0; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.cella:hover { border-color: var(--purple-light); color: #fff; }
.cella.uscito { background: rgba(124,58,237,0.5); border-color: var(--purple); color: #fff; }
.cella.compagno { background: rgba(39,174,96,0.4); border-color: var(--green); color: #fff; }
.cella.uscito.compagno { background: linear-gradient(135deg, rgba(124,58,237,0.65) 50%, rgba(39,174,96,0.55) 50%); }
.cella.giocata { box-shadow: inset 0 0 0 2px var(--orange); color: #fff; }
.cella.scelto { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 800; box-shadow: 0 0 12px rgba(255,153,0,0.5); }
.decina-conto { display: flex; align-items: center; justify-content: flex-end; font-size: 0.72rem; color: rgba(255,255,255,0.45); }
.decina-conto.calda { color: var(--green-light); font-weight: 700; }
.decina-conto.fredda { color: #ef4444; font-weight: 700; }
.legenda { display: flex; flex-wrap: wrap; gap: 0.5rem 0.9rem; font-size: 0.72rem; color: rgba(255,255,255,0.5); margin-top: 0.8rem; }
.legenda span { display: inline-flex; align-items: center; gap: 0.35rem; }
.legenda i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }

.scheda-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.scheda-dati { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.6; }
.scheda-dati strong { color: #fff; }
.lista-num.sei { grid-template-columns: repeat(6, 1fr); }
.voce.dopo { background: rgba(59,130,246,0.12); border: 1px solid rgba(59,130,246,0.3); }
.voce.dopo b { color: #93c5fd; }
.voce.compagno { background: rgba(39,174,96,0.1); border: 1px solid rgba(39,174,96,0.25); }
.voce.compagno b { color: var(--green-light); }
.blocco { margin-bottom: 1.1rem; }
.blocco .meta { margin-top: 0.4rem; }

.gruppi { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.5rem; }
.gruppo { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.45rem 0.7rem; }
.gruppo .meta { text-align: right; white-space: nowrap; }
.gruppo .meta b { color: var(--orange); font-size: 0.85rem; }
.tab-forma { min-width: 640px; }
.tab-forma td.nome { white-space: normal; min-width: 220px; }
.tab-forma td.nome small { display: block; color: rgba(255,255,255,0.4); }
.si { color: var(--green-light); font-weight: 700; }

@media (max-width: 600px) {
    .lista-num.sei { grid-template-columns: repeat(3, 1fr); }
    .card { padding: 1rem; }
    .palla { width: 40px; height: 40px; font-size: 0.9rem; }
    .palla.grande { width: 54px; height: 54px; font-size: 1.2rem; }
    .extra { margin-left: 0; }
}

/* ── Numeri in oro (10eLotto: Numero Oro e Doppio Oro) ed Extra ── */
.palla.oro { background: rgba(255,215,0,0.16); border-color: var(--gold); color: var(--gold); }
.pallina.oro { border-color: var(--gold); color: var(--gold); font-weight: 800; }
.pallina.extra { opacity: 0.6; }
.cella.oro { box-shadow: inset 0 0 0 2px var(--gold); }

/* ── Venti numeri su due righe da dieci: su schermi stretti si rimpiccioliscono insieme ── */
.palle.venti { display: grid; grid-template-columns: repeat(10, minmax(0, 46px)); gap: 0.4rem; }
.palle.venti .palla { width: 100%; height: auto; aspect-ratio: 1; font-size: clamp(0.7rem, 3vw, 1rem); }

/* ── Scelta di quanti numeri giocare ── */
.scelte { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; margin-bottom: 1rem; }
.scelte .etichetta { margin: 0 0.4rem 0 0; }
.scelta { width: 38px; height: 38px; border-radius: 50%; background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); font-family: 'Outfit', sans-serif; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.scelta:hover { border-color: var(--orange); color: #fff; }
.scelta.attiva { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 800; }
.palla.spenta { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.4); box-shadow: none; }
.pallina.spenta { opacity: 0.4; }
.pallina.giocata { border-color: var(--orange); color: #fff; }
.pallina.giocata.presa, .pallina.presa { border-color: var(--green); }
.tab-premi { max-width: 520px; }
.tab-premi td, .tab-premi th { padding: 0.4rem 0.7rem; }
.tab-dieci { min-width: 760px; }
.tab-archivio-dieci { min-width: 820px; }
.tab-archivio-dieci td.numeri { white-space: normal; min-width: 640px; }
.riga-extra { margin-top: 0.2rem; }

/* ── Scelta tra 10eLotto serale e ogni 5 minuti ── */
.versioni { display: flex; justify-content: center; gap: 0.4rem; margin: -1rem 0 1.4rem; }
.versione { font-size: 0.85rem; font-weight: 600; text-decoration: none; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); border-radius: 20px; padding: 0.45rem 1.1rem; transition: all 0.2s; }
.versione:hover { color: #fff; border-color: var(--orange); }
.versione.attiva { background: var(--orange); border-color: var(--orange); color: #fff; }
#conto { font-variant-numeric: tabular-nums; }

/* ── Opzioni di gioco del 10eLotto: Numero Oro, Doppio Oro, Extra ── */
.opzione { background: transparent; border: 1px solid rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); border-radius: 20px; padding: 0.4rem 0.9rem; font-family: 'Outfit', sans-serif; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.opzione:hover:not(:disabled) { border-color: var(--gold); color: #fff; }
.opzione.attiva { background: rgba(255,215,0,0.16); border-color: var(--gold); color: var(--gold); }
.opzione:disabled { cursor: default; opacity: 0.6; }
.opzione.attiva:disabled { opacity: 0.85; }
.scelte .meta strong { color: #fff; }
.tab-premi.larga { max-width: 820px; }
.pallina.presa.oro { background: var(--gold); border-color: var(--gold); color: #1a1a2e; }
.pallina.extra-presa { border-color: #60a5fa; box-shadow: 0 0 0 1px #60a5fa; color: #bfdbfe; }
.pallina.presa.extra-presa { color: #fff; }

/* ── Sistema ridotto (SuperEnalotto) ── */
.sis-passo { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); margin: 1.1rem 0 0.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.sis-passo span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--orange); }
.sis-griglia { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; max-width: 500px; margin-bottom: 0.8rem; }
.sis-num { aspect-ratio: 1; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.6); font-family: 'Outfit', sans-serif; font-size: clamp(0.62rem, 2.6vw, 0.82rem); font-weight: 600; cursor: pointer; padding: 0; transition: all 0.15s; }
.sis-num:hover { border-color: var(--orange); color: #fff; }
.sis-num.scelto { background: var(--orange); border-color: var(--orange); color: #fff; font-weight: 800; }
.sis-comandi { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.sis-garanzia { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.7rem; font-size: 0.85rem; color: rgba(255,255,255,0.75); margin-bottom: 1.2rem; }
.sis-garanzia .gruppo-scelte { display: inline-flex; gap: 0.3rem; }
.scelta:disabled { opacity: 0.25; cursor: default; }
.scelta:disabled:hover { border-color: rgba(255,255,255,0.2); color: rgba(255,255,255,0.7); }
.sis-sestine { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0.4rem; max-height: 430px; overflow-y: auto; padding-right: 0.3rem; margin-bottom: 0.4rem; }
.sis-sestina { display: flex; align-items: center; gap: 0.4rem; background: rgba(0,0,0,0.18); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0.35rem 0.6rem; }
.sis-sestina small { width: 1.7rem; text-align: right; font-size: 0.7rem; color: rgba(255,255,255,0.4); flex-shrink: 0; }
.sis-sestina .pallina { border-color: rgba(255,153,0,0.45); color: #fff; }
.tab-garanzie { max-width: 620px; }
.tab-garanzie td, .tab-garanzie th { white-space: normal; }
@media (max-width: 600px) { .tab-garanzie td, .tab-garanzie th { padding-left: 0.4rem; padding-right: 0.4rem; } }
