/* GRATTA E VINCI della home principale (gratta-e-vinci.js): copia del CSS dello shop
   (GrattaEVinci.css), stessi colori; z-index sopra a tutta la pagina. */
.gev-velo {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(4, 5, 9, 0.78);
    backdrop-filter: blur(6px);
    animation: gev-entra 0.25s ease-out;
}

.gev-dialogo {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 30px 26px 24px;
    border-radius: 26px;
    border: 1px solid rgba(223, 255, 0, 0.25);
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(223, 255, 0, 0.16), transparent 55%),
        radial-gradient(90% 80% at 100% 100%, rgba(56, 189, 248, 0.12), transparent 60%),
        #111318;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #fff;
    text-align: center;
    animation: gev-sale 0.35s cubic-bezier(.2, .9, .3, 1.2);
}

.gev-chiudi {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.gev-occhiello {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(223, 255, 0, 0.12);
    color: #dfff00;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gev-titolo,
.gev-fatto h2 {
    margin: 12px 0 8px;
    font-family: "Space Grotesk", var(--font-family-heading, Inter), sans-serif;
    font-size: clamp(1.55rem, 5vw, 1.9rem);
    line-height: 1.15;
}

.gev-titolo span { color: #dfff00; }

.gev-testo,
.gev-fatto p {
    margin: 0 0 18px;
    color: #c8d0e6;
    font-size: 0.95rem;
    line-height: 1.55;
}

.gev-carta {
    position: relative;
    height: 170px;
    border-radius: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 35% 30%, #f1ff6b, #dfff00 45%, #b8d400 100%);
    box-shadow: 0 8px 0 #6c8000, 0 22px 50px rgba(223, 255, 0, 0.25);
    margin-bottom: 22px;
}

.gev-premio {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #0a0d00;
}

.gev-premio-cifra {
    font-family: "Space Grotesk", var(--font-family-heading, Inter), sans-serif;
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
}

.gev-premio-testo {
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.gev-carta-scoperta .gev-premio { animation: gev-batte 0.6s ease-out; }

.gev-tela {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: grab;
    transition: opacity 0.5s ease;
}

.gev-tela-via { opacity: 0; pointer-events: none; }

.gev-scintille { position: absolute; inset: 0; pointer-events: none; }

.gev-scintille i {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: hsl(calc(var(--i) * 26), 90%, 60%);
    animation: gev-scoppia 0.9s ease-out forwards;
    --a: calc(var(--i) * 25.7deg);
}

.gev-modulo {
    display: grid;
    gap: 12px;
    text-align: left;
}

.gev-modulo input[type="email"] {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 16px;
    box-sizing: border-box;
}

.gev-modulo input[type="email"]:focus { outline: 2px solid #dfff00; outline-offset: 1px; }

.gev-consenso {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: #b9c0d4;
    font-size: 0.8rem;
    line-height: 1.45;
}

.gev-consenso input { margin-top: 2px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #dfff00; }
.gev-consenso a { color: #dfff00; }

.gev-pulsante { width: 100%; min-height: 56px; font-size: 1.02rem; }

.gev-errore { margin: 0; color: #ff8a8a; font-size: 0.85rem; }

.gev-nota { margin: 0; color: #8d95ab; font-size: 0.72rem; line-height: 1.45; text-align: center; }

.gev-sr,
.gev-trappola {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.gev-fatto-icona {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(223, 255, 0, 0.14);
    color: #dfff00;
}

/* il biglietto in basso a sinistra per riaprirlo */
.gev-biglietto {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147482000;
    display: flex;
    align-items: flex-start;
    animation: gev-entra 0.3s ease-out;
}

.gev-biglietto-apri {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f1ff6b, #dfff00);
    color: #0a0d00;
    box-shadow: 0 6px 0 #6c8000, 0 16px 34px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    text-align: left;
    animation: gev-dondola 3s ease-in-out infinite;
}

.gev-biglietto-apri span { display: grid; line-height: 1.15; }
.gev-biglietto-apri strong { font-size: 0.95rem; }
.gev-biglietto-apri small { font-size: 0.75rem; font-weight: 700; opacity: 0.8; }

.gev-biglietto-via {
    margin-left: -10px;
    margin-top: -8px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #1b1e26;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

@keyframes gev-entra { from { opacity: 0; } to { opacity: 1; } }
@keyframes gev-sale { from { opacity: 0; transform: translateY(24px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes gev-batte { 0% { transform: scale(0.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes gev-scoppia {
    from { transform: translate(-50%, -50%) rotate(var(--a)) translateY(0); opacity: 1; }
    to { transform: translate(-50%, -50%) rotate(var(--a)) translateY(-110px); opacity: 0; }
}
@keyframes gev-dondola { 0%, 100% { rotate: -2deg; } 50% { rotate: 2deg; } }

@media (max-width: 480px) {
    .gev-dialogo { padding: 26px 18px 20px; }
    .gev-carta { height: 150px; }
    .gev-premio-cifra { font-size: 3.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .gev-biglietto-apri, .gev-dialogo, .gev-velo { animation: none; }
}

.gev-modulo { animation: gev-sale 0.35s ease-out; }

/* Il codice sbloccato, con il pulsante per copiarlo */
.gev-codice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 6px 0 14px;
    padding: 12px 12px 12px 16px;
    border: 2px dashed #dfff00;
    border-radius: 14px;
    background: rgba(223, 255, 0, 0.07);
}
.gev-codice-testo {
    font: 900 1.25rem/1.1 "Space Grotesk", Inter, sans-serif;
    letter-spacing: 0.06em;
    color: #dfff00;
    word-break: break-all;
    user-select: all;
}
.gev-copia {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 9px 12px;
    border: 0;
    border-radius: 10px;
    background: #dfff00;
    color: #0b0f1a;
    font: 800 0.85rem/1 Inter, sans-serif;
    cursor: pointer;
}

/* Solo sulle pagine statiche: qui non c'e' cta-3d.css e styles.min.css
   da' regole proprie a button, input e titoli. */
.gev-velo, .gev-velo *, .gev-biglietto, .gev-biglietto * { box-sizing: border-box; }
.gev-velo { font-family: Inter, system-ui, -apple-system, sans-serif; }
.gev-velo[hidden], .gev-biglietto[hidden], .gev-errore[hidden] { display: none !important; }
.gev-dialogo h2 { color: #fff; letter-spacing: normal; text-transform: none; }
.gev-pulsante {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    padding: 14px 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(180deg, #eaff4d, #dfff00 55%, #c4e000);
    box-shadow: 0 6px 0 #8fa300, 0 14px 30px rgba(223, 255, 0, 0.25);
    color: #0b0f1a;
    font-weight: 900;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease;
}
.gev-pulsante:active { transform: translateY(4px); box-shadow: 0 2px 0 #8fa300, 0 8px 18px rgba(223, 255, 0, 0.2); }
.gev-pulsante:disabled { opacity: .7; cursor: wait; }
.gev-fatto-icona svg { width: 28px; height: 28px; }

/* trascinando il dito non si seleziona il testo del premio */
.gev-carta { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
