/* ICONICA · lo scontrino dei cookie (27/10/2026): vedi cookie/scontrino.js. La carta è una foto vera (scontrino.webp,
   Higgsfield, scontornata); sopra si "stampa" il testo in JMH Typewriter, grigio scuro come la stampa termica.
   Sul telefono esce dal fondo al centro, sul computer in basso a destra. "Accetta" è verde (Matteo: "per il cervello è più
   cliccabile"), grande; "Rifiuta" e "Scelgo io" restano sempre ben visibili. */
.scontrino-cookie { --stampa: #2b2a27; --verde-sc: #1E5B45; --crema-sc: #f6efe2;
  position: fixed; z-index: 50; bottom: 0; left: 50%; width: min(94vw, 380px); translate: -50% 0; container-type: inline-size;
  filter: drop-shadow(0 -2px 3px rgba(0, 0, 0, .25)) drop-shadow(0 10px 24px rgba(0, 0, 0, .5)); }
.scontrino-cookie[hidden] { display: none; }
@media (min-width: 700px) { .scontrino-cookie { left: auto; right: max(190px, 14vw); translate: none; width: 360px; } }   /* a sinistra dell'adesivo della privacy */
/* largo e basso (Matteo, 30/10: "ancora troppo alto, anche un po' più largo, ma più basso"): la frase sta su due righe e il
   tasto è più sottile; sul telefono il fondo (codice a barre) resta dentro la "stampante", sotto il bordo dello schermo */
@media (max-width: 699px) {
  /* 6/11, Matteo: "è staccata dalla parte bassa dello schermo, deve arrivare proprio dal basso". Su iPhone il fondo della pagina si ferma
     sopra la barra di Safari. I tasti restano dove sono, sempre visibili; sotto continua la carta (la foto è lunghissima), oltre la barra. */
  .scontrino-cookie { --coda: 160px; bottom: calc(-6.5cqw - var(--coda)); }
}
.sc-carta { position: relative; padding: 5.6cqw 5.5cqw 1.4cqw; background: url("/cookie/scontrino.webp") top center / 100% auto no-repeat;
  font: 400 3.15cqw/1.38 "JMH Typewriter", "Special Elite", "Courier New", monospace; color: var(--stampa); }
.sc-carta > * { margin: 0; }
@media (max-width: 699px) { .sc-carta { padding-bottom: calc(1.4cqw + 160px); } }   /* la coda di carta, vedi sopra */
/* Accetta su tutta la larghezza e sotto le altre scelte (Matteo, 30/10); con "Scelgo io" i due tasti affiancati */
.sceglie .sc-tasti { grid-template-columns: 1fr 1fr; align-items: stretch; }
.sceglie .sc-si, .sceglie .sc-conferma { font-size: 3.4cqw; padding-inline: 1.5cqw; }
.sc-carta > :not(.sc-tasti) { mix-blend-mode: multiply; }
.sc-riga { display: flex; justify-content: space-between; gap: 2cqw; padding: 1.2cqw 0; border-block: .4cqw dashed rgba(43, 42, 39, .55); }
.sc-tit { font-size: 3.1cqw; font-weight: 700; letter-spacing: .05em; border-top: 0; }
.sc-voci { list-style: none; padding: 1.6cqw 0 2.2cqw; margin: 0; }
.sc-voci li { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; padding: .4cqw 0; }
.sc-voci small { font-size: 2.6cqw; }
.sc-nota { font-size: 2.95cqw; line-height: 1.38; padding: 1.6cqw 0 2.4cqw; }
.sc-nota[hidden], .sc-voci[hidden], .sc-scelgo[hidden], .sc-scelgo[hidden] + span, .sc-conferma[hidden] { display: none; }
/* le caselle compaiono solo con "Scelgo io", vuote */
.sc-box { display: none; width: 2.8cqw; height: 2.8cqw; margin-right: 1.4cqw; border: .4cqw solid var(--stampa); vertical-align: -.4cqw; position: relative; }
.sceglie .sc-box { display: inline-block; }
.sceglie .sc-voce { cursor: pointer; border-radius: 1cqw; }
.sceglie .sc-voce:focus-visible { outline: .6cqw solid var(--verde-sc); outline-offset: .6cqw; }
.sc-voce.spuntata .sc-box::after { content: ""; position: absolute; left: 22%; top: -18%; width: 34%; height: 70%; border: solid var(--stampa); border-width: 0 .7cqw .7cqw 0; rotate: 42deg; }
/* ACCETTA: il tasto verde, grande come un timbro, con la stessa consumatura degli sticker */
.sc-tasti { display: grid; gap: 1.8cqw; }
.sc-si, .sc-conferma { width: 100%; border: 0; cursor: pointer; border-radius: 1.2cqw; font: 900 4.4cqw/1 var(--sans, "Archivo", sans-serif); font-stretch: 112%;
  letter-spacing: .06em; text-transform: uppercase; padding: 2.7cqw 3cqw 2.5cqw; }
.sc-si { background: var(--verde-sc); color: var(--crema-sc); rotate: -1.2deg;
  box-shadow: inset 0 0 0 .8cqw var(--verde-sc), inset 0 0 0 1.2cqw var(--crema-sc), 0 1px 2px rgba(0, 0, 0, .35);
  -webkit-mask: url("/assets/rumore.webp") 0 0 / 240px; mask: url("/assets/rumore.webp") 0 0 / 240px;
  animation: sc-invito 4.5s ease-in-out 3s infinite; }
.sc-si:hover { filter: brightness(1.08); }
.sc-si:active { scale: .97; }
.sc-si:focus-visible, .sc-conferma:focus-visible, .sc-altro button:focus-visible { outline: .7cqw solid var(--verde-sc); outline-offset: .8cqw; }
@keyframes sc-invito { 0%, 84%, 100% { transform: none; } 88% { transform: rotate(-2deg) scale(1.03); } 92% { transform: rotate(1.5deg) scale(1.03); } }
.sc-conferma { background: transparent; color: var(--stampa); font-size: 3.4cqw; padding: 2.2cqw; box-shadow: inset 0 0 0 .45cqw var(--stampa); }
.sc-altro { display: flex; justify-content: center; flex-wrap: wrap; gap: .4cqw 1.8cqw; padding: 2cqw 0 0; font-size: 3.05cqw; line-height: 1.5; }
.sc-altro a { color: var(--stampa); text-underline-offset: .25em; }
.sc-altro button { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--stampa); }
.sc-altro button { text-decoration: underline; text-underline-offset: .25em; }
.sc-codice { display: block; height: 5.5cqw; margin: 2.6cqw 18cqw 0; mix-blend-mode: multiply;
  background: repeating-linear-gradient(90deg, var(--stampa) 0 .6cqw, transparent .6cqw 1.4cqw, var(--stampa) 1.4cqw 1.8cqw, transparent 1.8cqw 2.9cqw, var(--stampa) 2.9cqw 4.1cqw, transparent 4.1cqw 4.7cqw); opacity: .85; }

/* ------------------------------------------------------------ i movimenti */
/* l'uscita la fa scontrino.js (un solo movimento dal bordo dello schermo); qui la stampa termica */
.sc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sc-carta > p:not(.sc-altro), .sc-voci { filter: url(#sc-termico); }
@media (prefers-reduced-motion: reduce) { .scontrino-cookie, .scontrino-cookie * { animation: none !important; } }
