/* Detective — noir, carta e sughero. Niente variabili CSS né grid: i browser delle TV sono vecchi. */

* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; }
html.salotto { font-size: 140%; }
body {
  margin: 0; min-height: 100vh; color: #ece3d0;
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif; line-height: 1.55;
  background-color: #14110f;
  background-image: radial-gradient(ellipse at 50% -10%, rgba(201, 162, 39, .16), transparent 60%),
                    radial-gradient(ellipse at 100% 100%, rgba(164, 22, 26, .12), transparent 55%);
  background-attachment: fixed;
}
body.bloccato { overflow: hidden; }
html, body { overflow-x: hidden; }
h1, h2 { word-wrap: break-word; overflow-wrap: break-word; }
a { color: #e0b84a; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; line-height: 1.15; margin: 0 0 .4em; }
h1 { font-size: 2.2rem; font-weight: 900; }
h2 { font-size: 1.4rem; }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible, .tastiera :focus { outline: 3px solid #e0b84a; outline-offset: 3px; }
a:focus, button:focus, summary:focus { box-shadow: 0 0 0 3px #e0b84a; }
button { font: inherit; color: inherit; cursor: pointer; }

/* testata */
.testata {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
  -webkit-justify-content: space-between; justify-content: space-between;
  padding: 14px 16px; max-width: 1200px; margin: 0 auto;
}
.marchio {
  font-family: "Playfair Display", Georgia, serif; font-weight: 900; font-size: 1.5rem;
  color: #ece3d0; text-decoration: none; letter-spacing: .02em;
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center;
}
.lente {
  width: 22px; height: 22px; border: 3px solid #e0b84a; border-radius: 50%; margin-right: 12px;
  position: relative; display: inline-block;
  -webkit-animation: scruta 6s ease-in-out infinite; animation: scruta 6s ease-in-out infinite;
}
.lente:after {
  content: ""; position: absolute; width: 11px; height: 3px; background: #e0b84a;
  right: -10px; bottom: -4px; -webkit-transform: rotate(45deg); transform: rotate(45deg);
}
.tasto-salotto {
  background: transparent; border: 1px solid rgba(236, 227, 208, .35); border-radius: 8px;
  padding: 6px 12px; font-family: "Playfair Display", serif; font-weight: 700;
}
.tasto-salotto[aria-pressed="true"] { background: #e0b84a; color: #14110f; }

.app { max-width: 1200px; margin: 0 auto; padding: 8px 16px 48px; }
.piede { text-align: center; font-size: .8rem; color: #8f8574; padding: 24px 16px 32px; }
.carica { text-align: center; color: #8f8574; padding: 80px 0; }
.sovra { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: #e0b84a; margin: 0 0 .5em; }
.motto { color: #c9bea9; font-size: 1.1rem; max-width: 40em; }
.nota { color: #a99e8a; font-size: .9rem; }

/* tasti */
.tasto {
  display: inline-block; padding: 12px 20px; border-radius: 10px; margin: 6px 6px 6px 0;
  border: 1px solid rgba(236, 227, 208, .35); background: rgba(255, 255, 255, .04);
  color: #ece3d0; text-decoration: none; font-weight: 600; min-height: 48px;
}
.tasto.primario { background: #a4161a; border-color: #a4161a; color: #fff; }
.tasto.primario:hover { background: #c01d22; }
.tasto.pericolo { border-color: #e06666; color: #ffb3b3; }
.tasto[disabled] { opacity: .4; cursor: not-allowed; }

#audio { margin-right: 8px; min-width: 44px; }
.pannello-narra { margin: 0 0 24px; padding: 16px 20px; border: 2px dashed #e0b84a; border-radius: 10px; background: rgba(224, 184, 74, .07); }
.pannello-narra h2 { font-size: 1.15rem; margin-top: .6em; }
.pannello-narra summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.pannello-narra li { margin-bottom: .5em; }
.narra-invito { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(236, 227, 208, .12); }
.narra-invito h2 { font-size: 1.05rem; }

/* invito */
.invito { position: relative; max-width: 900px; margin: 0 auto; padding: 36px 24px; background: #f3ead8; color: #2a221a; border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); }
.qr-griglia { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; -webkit-justify-content: center; justify-content: center; }
.qr-scheda { margin: 10px; padding: 12px 12px 8px; background: #fff; text-align: center; box-shadow: 0 6px 14px rgba(0, 0, 0, .25); }
.qr-scheda figcaption { font-family: "Special Elite", monospace; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }
.qr { width: 176px; min-height: 176px; word-break: break-all; font-size: .75rem; }
.codice-stanza { text-align: center; font-size: 1.1rem; margin: 16px 0 0; }
.codice-stanza strong { font-family: "Special Elite", monospace; font-size: 1.6rem; letter-spacing: .2em; color: #a4161a; }
.qr img, .qr canvas { display: block; margin: 0 auto; }

/* catalogo */
.hero { padding: 40px 0 28px; }
.hero h1 { font-size: 2.6rem; }
.filtri { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 0 12px; }
.filtro {
  margin: 0 8px 8px 0; padding: 8px 16px; min-height: 44px; border-radius: 99px;
  background: transparent; border: 1px solid rgba(236, 227, 208, .35); font-weight: 600;
}
.filtri.generi .filtro { font-weight: 400; min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.genere { text-transform: uppercase; font-weight: 700; }
.filtro.attiva { background: #e0b84a; border-color: #e0b84a; color: #14110f; }
.casi { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin: 0 -10px; }
.caso-card {
  width: 100%; margin: 10px; text-decoration: none; color: #2a221a; background: #f3ead8;
  border-radius: 4px; overflow: hidden; box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  -webkit-transition: -webkit-transform .25s; transition: transform .25s;
}
.caso-card:hover, .caso-card:focus { -webkit-transform: rotate(0) translateY(-4px) scale(1.02); transform: rotate(0) translateY(-4px) scale(1.02); }
.copertina { position: relative; height: 200px; background: #2b241d linear-gradient(135deg, #3a2f25, #1d1814); }
.copertina img { width: 100%; height: 100%; object-fit: cover; display: block; }
.caso-card .info { padding: 16px 18px 18px; }
.caso-card h2 { color: #1d1712; font-size: 1.5rem; }
.caso-card p { margin: 0 0 .6em; }
.ambiente { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: #a4161a; font-weight: 600; }
.meta { list-style: none; padding: 0; margin: 10px 0 0; display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.meta li.eta { border-color: #a4161a; color: #a4161a; opacity: 1; font-weight: 600; }
.meta li.eta.tutti { border-color: #2b6e4f; color: #2b6e4f; }
.scheda .meta li.eta { color: #ff9b9b; border-color: #ff9b9b; }
.scheda .meta li.eta.tutti { color: #8fd6b0; border-color: #8fd6b0; }
.meta li { font-size: .8rem; border: 1px solid currentColor; border-radius: 99px; padding: 2px 10px; margin: 0 6px 6px 0; opacity: .8; }
@media (min-width: 700px) { .caso-card { width: calc(50% - 20px); } }
@media (min-width: 1050px) { .caso-card { width: calc(33.333% - 20px); } }

/* rotazioni casuali per carte e polaroid */
.r0 { -webkit-transform: rotate(-1.5deg); transform: rotate(-1.5deg); }
.r1 { -webkit-transform: rotate(1deg); transform: rotate(1deg); }
.r2 { -webkit-transform: rotate(-.5deg); transform: rotate(-.5deg); }
.r3 { -webkit-transform: rotate(2deg); transform: rotate(2deg); }
.r4 { -webkit-transform: rotate(-2.2deg); transform: rotate(-2.2deg); }

/* scheda caso */
.scheda { max-width: 760px; }
.scheda-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 4px; margin: 12px 0 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.riquadro { margin-top: 24px; padding: 20px; border: 1px solid rgba(236, 227, 208, .15); border-radius: 12px; background: rgba(0, 0, 0, .25); }
.riquadro h2 { font-size: 1.15rem; margin-top: .6em; }
.scelte { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; margin-bottom: 10px; }
.scelta {
  min-width: 56px; min-height: 56px; margin: 0 8px 8px 0; padding: 8px 16px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(236, 227, 208, .3); font-size: 1.2rem; font-weight: 600;
}
.scelta small { display: block; font-size: .72rem; font-weight: 400; opacity: .75; }
.scelte.larghe .scelta { font-size: 1rem; text-align: left; }
.scelta.attiva { background: #e0b84a; color: #14110f; border-color: #e0b84a; }

/* partita */
.barra { padding: 12px 0 8px; border-bottom: 1px solid rgba(236, 227, 208, .12); margin-bottom: 16px; }
.barra h1 { font-size: 1.8rem; }
.fasi-segno { list-style: none; padding: 0; margin: 8px 0 12px; display: -webkit-flex; display: flex; }
.fasi-segno li { -webkit-flex: 1; flex: 1; text-align: center; font-size: .8rem; padding: 6px 4px; margin-right: 4px; border-bottom: 3px solid rgba(236, 227, 208, .15); color: #8f8574; }
.fasi-segno li.fatta { border-color: #7a6a4a; color: #c9bea9; }
.fasi-segno li.ora { border-color: #a4161a; color: #fff; font-weight: 600; }
.chi-sono { font-size: .85rem; color: #e0b84a; margin: 4px 0 0; }
.intro { margin: 10px 0 20px; padding: 0 18px; border-left: 3px solid #a4161a; background: rgba(0, 0, 0, .2); }
.intro summary { padding: 12px 0; font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.testo { font-size: 1.05rem; }
.fase { margin: 28px 0 8px; }
.fase h2 span { display: block; font-family: "Special Elite", monospace; font-size: .8rem; color: #e0b84a; letter-spacing: .15em; text-transform: uppercase; }
.tavolo {
  display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; padding: 18px 8px;
  margin: 12px -8px 0; border-radius: 6px;
  background: #3b2a1c radial-gradient(ellipse at 30% 20%, rgba(255, 220, 160, .12), transparent 60%);
  box-shadow: inset 0 0 60px rgba(0, 0, 0, .55);
}
.prova {
  position: relative; width: calc(50% - 16px); margin: 8px; padding: 14px 12px 12px; min-height: 150px;
  background: #efe5cf; color: #2a221a; border: 0; border-radius: 2px; text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-transition: -webkit-transform .2s; transition: transform .2s;
}
.prova:hover, .prova:focus { -webkit-transform: rotate(0) scale(1.04); transform: rotate(0) scale(1.04); z-index: 2; }
.prova img { width: 100%; height: 90px; object-fit: cover; margin-bottom: 8px; }
.prova .icona { width: 34px; height: 34px; margin-bottom: 10px; border-radius: 50%; background: #a4161a; opacity: .85; }
.prova-messaggio .icona { border-radius: 10px 10px 10px 2px; background: #2f7d5b; }
.prova-foto, .prova-foto img { background: #fbfaf6; }
.prova-foto { padding-bottom: 26px; }
.prova-foto .icona { border-radius: 2px; width: 100%; height: 60px; background: #2b241d; }
.prova-piantina { background: #1f3b5a; color: #dbe7f3; }
.prova-piantina .icona { background: transparent; border: 2px dashed #9cc0e4; border-radius: 2px; }
.prova-referto .icona { background: #fff; border: 3px solid #a4161a; }
.prova-lettera { background: #f7efdf; }
.prova-lettera .icona { border-radius: 0; height: 22px; background: #c9b48a; }
.prova .tipo { font-family: "Special Elite", monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
.prova .titolo { font-weight: 600; font-size: .95rem; line-height: 1.3; margin-top: 4px; }
.prova.nuova:after {
  content: "nuova"; position: absolute; top: -8px; right: -6px; padding: 2px 8px;
  background: #a4161a; color: #fff; font-size: .7rem; border-radius: 99px;
  font-family: "Special Elite", monospace;
}
@media (min-width: 700px) { .prova { width: calc(33.333% - 16px); } }
@media (min-width: 1050px) { .prova { width: calc(25% - 16px); } }
.avanti { margin: 32px 0; text-align: center; }

/* overlay e documenti */
.overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 50; overflow-y: auto;
  -webkit-overflow-scrolling: touch; padding: 24px 12px; background: rgba(8, 6, 5, .86);
  -webkit-animation: appare .25s ease-out; animation: appare .25s ease-out;
}
.chiudi {
  position: absolute; top: 8px; right: 8px; width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: rgba(0, 0, 0, .1); font-size: 1.8rem; line-height: 1; color: inherit;
}
.documento, .taccuino {
  position: relative; max-width: 760px; margin: 0 auto; padding: 36px 24px 48px; color: #2a221a;
  background: #f3ead8; border-radius: 2px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  -webkit-animation: posa .45s cubic-bezier(.2, .9, .3, 1.2); animation: posa .45s cubic-bezier(.2, .9, .3, 1.2);
}
.documento h2 { font-size: 1.5rem; padding-right: 40px; }
.doc-tipo { font-family: "Special Elite", monospace; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: #a4161a; margin: 0 0 .6em; }
.doc-pianta { display: block; width: 100%; height: auto; margin: 6px 0 16px; border-radius: 4px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.doc-img { width: 100%; max-height: 420px; object-fit: cover; margin: 6px 0 16px; border: 10px solid #fff; border-bottom-width: 36px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.corpo p { margin: 0 0 .85em; }
.corpo .intest { font-weight: 600; margin-bottom: .3em; }
.corpo table { width: 100%; border-collapse: collapse; margin: 10px 0 16px; font-size: .92rem; display: block; overflow-x: auto; }
.corpo th, .corpo td { text-align: left; padding: 7px 10px; border-bottom: 1px solid rgba(42, 34, 26, .2); vertical-align: top; }
.corpo th { font-family: "Special Elite", monospace; font-weight: 400; font-size: .8rem; text-transform: uppercase; }
.corpo ul, .corpo ol { padding-left: 1.3em; }
.corpo li { margin-bottom: .45em; }
.doc-verbale .corpo, .doc-registro .corpo, .doc-documento .corpo { font-family: "Special Elite", "Courier New", monospace; font-size: .98rem; }
.doc-referto { background: #fdfcf8; border-top: 8px solid #a4161a; }
.doc-lettera { background: #f7efdf; }
.doc-lettera .corpo { font-family: "Caveat", cursive; font-size: 1.45rem; line-height: 1.35; }
.doc-piantina { background: #1f3b5a; color: #e3edf7; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; }
.doc-piantina .doc-tipo { color: #9cc0e4; }
.doc-messaggio { background: #e9e4dc; }
.doc-messaggio .corpo .intest { display: inline-block; font-size: .8rem; color: #6b6255; margin-top: .8em; }
.doc-messaggio .corpo p:not(.intest) { background: #fff; padding: 10px 14px; border-radius: 16px 16px 16px 4px; max-width: 88%; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.doc-foto { background: #fbfaf6; }
.entra { -webkit-animation: batti .5s both; animation: batti .5s both; }

/* timbri */
.timbro {
  position: absolute; display: inline-block; padding: 4px 14px; border: 4px double #b3171c; color: #b3171c;
  font-family: "Special Elite", monospace; font-size: 1.3rem; letter-spacing: .14em; text-transform: uppercase;
  opacity: .82; pointer-events: none; mix-blend-mode: multiply;
}
.timbro-doc { top: 22px; right: 70px; -webkit-transform: rotate(-12deg); transform: rotate(-12deg); -webkit-animation: timbra .5s .35s both; animation: timbra .5s .35s both; }
.timbro-piccolo { top: 12px; right: 12px; font-size: .9rem; background: rgba(243, 234, 216, .85); -webkit-transform: rotate(8deg); transform: rotate(8deg); }
.doc-piantina .timbro { mix-blend-mode: normal; color: #ff8a8a; border-color: #ff8a8a; }

/* lavagna */
.lavagna { max-width: 1200px; margin: 0 auto; position: relative; color: #ece3d0; padding: 10px 0 90px; }
.lavagna .chiudi { color: #ece3d0; background: rgba(255, 255, 255, .1); }
.sughero-scorri { overflow: auto; -webkit-overflow-scrolling: touch; margin: 12px 0 24px; border-radius: 6px; border: 12px solid #5a3d24; box-shadow: 0 20px 50px rgba(0, 0, 0, .6); }
.sughero {
  position: relative; min-width: 960px; height: 720px;
  background: #b98a55; background-image: radial-gradient(rgba(0, 0, 0, .13) 1px, transparent 1.6px), radial-gradient(rgba(255, 255, 255, .1) 1px, transparent 1.6px);
  background-size: 9px 9px, 13px 13px; box-shadow: inset 0 0 60px rgba(0, 0, 0, .45);
  -webkit-user-select: none; user-select: none;
}
.fili { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: visible; }
.fili path { fill: none; stroke: #b3171c; stroke-width: 2.5px; vector-effect: non-scaling-stroke; stroke-linecap: round; -webkit-filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35)); filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35)); }
.fili path.nuovo { stroke-dasharray: 400; stroke-dashoffset: 400; -webkit-animation: filo .7s ease-out forwards; animation: filo .7s ease-out forwards; }
@-webkit-keyframes filo { to { stroke-dashoffset: 0; } }
@keyframes filo { to { stroke-dashoffset: 0; } }
.puntata {
  position: absolute; z-index: 2; width: 120px; margin: -60px 0 0 -60px; padding: 8px 8px 10px; border: 0;
  background: #fbfaf6; color: #2a221a; text-align: center; font-size: .78rem; line-height: 1.25;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .45); cursor: grab; touch-action: none;
  -webkit-transition: box-shadow .2s, -webkit-transform .2s; transition: box-shadow .2s, transform .2s;
}
.puntata img, .puntata .senza-foto { width: 100%; height: 92px; object-fit: cover; display: -webkit-flex; display: flex; margin-bottom: 6px; pointer-events: none; }
.puntata strong, .puntata small, .puntata .tipo, .puntata .titolo { display: block; pointer-events: none; }
.puntata small { opacity: .7; }
.foglio { background: #efe5cf; text-align: left; width: 132px; margin-left: -66px; }
.foglio img { height: 70px; }
.foglio .tipo { font-family: "Special Elite", monospace; font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.foglio .titolo { font-weight: 600; }
.foglio.prova-piantina { background: #1f3b5a; color: #dbe7f3; }
.foglio.prova-messaggio { background: #e3f1e8; }
.foglio.prova-referto { background: #fff; border-top: 5px solid #a4161a; }
.foto-p.vittima { width: 150px; margin: -78px 0 0 -75px; }
.foto-p.vittima img, .foto-p.vittima .senza-foto { height: 120px; -webkit-filter: grayscale(1) contrast(1.1); filter: grayscale(1) contrast(1.1); }
.foto-p.vittima:after { content: "Vittima"; position: absolute; left: 0; right: 0; top: 104px; font-family: "Special Elite", monospace; color: #fff; background: rgba(0, 0, 0, .65); letter-spacing: .15em; text-transform: uppercase; font-size: .7rem; padding: 2px 0; }
.puntina {
  position: absolute; z-index: 4; top: -9px; left: 50%; margin-left: -9px; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff6b6b, #b3171c 55%, #6d0d10); box-shadow: 0 3px 4px rgba(0, 0, 0, .5); cursor: crosshair; touch-action: none;
}
.puntina:before { content: ""; position: absolute; top: -14px; left: -14px; right: -14px; bottom: -14px; border-radius: 50%; }
.fili path.tira { stroke-dasharray: 6 4; opacity: .85; }
.timbro.in-pausa { color: #e0b84a; border-color: #e0b84a; }
.puntata.scelto { box-shadow: 0 0 0 4px #e0b84a, 0 14px 26px rgba(0, 0, 0, .55); z-index: 5; }
.puntata.trascinato { cursor: grabbing; z-index: 6; box-shadow: 0 22px 40px rgba(0, 0, 0, .6); -webkit-transform: scale(1.06) rotate(0); transform: scale(1.06) rotate(0); }
.senza-foto { -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center; background: #3a2f25; color: #e0b84a; font-family: "Playfair Display", serif; font-size: 1.6rem; font-weight: 900; display: -webkit-flex; display: flex; }
.senza-foto.mini, img.mini { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; -webkit-flex: none; flex: none; font-size: 1rem; }
.segno-sospetto { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; line-height: 30px; border-radius: 50%; background: #b3171c; color: #fff; font-weight: 900; font-size: 1.1rem; display: none; }
.sospettato .segno-sospetto { display: block; -webkit-animation: timbra .35s both; animation: timbra .35s both; }
.sospettato { box-shadow: 0 0 0 4px #b3171c, 0 8px 16px rgba(0, 0, 0, .45); }
.timbro-scagionato { display: none; top: 40px; left: -4px; font-size: .78rem; padding: 2px 6px; border-width: 3px; color: #2b6e4f; border-color: #2b6e4f; background: rgba(251, 250, 246, .8); -webkit-transform: rotate(-16deg); transform: rotate(-16deg); }
.scagionato .timbro-scagionato { display: block; -webkit-animation: timbra .35s both; animation: timbra .35s both; }
.scagionato img, .scagionato .senza-foto { opacity: .45; }
.comandi {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; padding: 10px 16px 14px; text-align: center;
  background: rgba(20, 17, 15, .96); border-top: 1px solid rgba(224, 184, 74, .4); box-shadow: 0 -10px 30px rgba(0, 0, 0, .5);
  -webkit-animation: appare .2s; animation: appare .2s;
}
.comandi p { margin: 0 0 4px; font-size: .9rem; }
.comandi .tasto { padding: 8px 14px; min-height: 42px; font-size: .9rem; }
.schede { background: rgba(0, 0, 0, .3); border-radius: 8px; padding: 6px 16px; }
.scheda-p { display: -webkit-flex; display: flex; padding: 12px 0; border-bottom: 1px solid rgba(236, 227, 208, .1); }
.scheda-p > div { margin-left: 14px; }
.scheda-p p { margin: .3em 0 0; color: #c9bea9; }

.taccuino textarea {
  width: 100%; font: 1.3rem/1.6 "Caveat", cursive; color: #1f2a44; padding: 8px 12px; border: 0; resize: vertical;
  background: #fffdf5 repeating-linear-gradient(transparent, transparent 33px, #b9cbe4 33px, #b9cbe4 34px);
  background-attachment: local; line-height: 34px;
}

/* busta */
.busta-scena {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 80; background: rgba(8, 6, 5, .94);
  display: -webkit-flex; display: flex; -webkit-flex-direction: column; flex-direction: column;
  -webkit-align-items: center; align-items: center; -webkit-justify-content: center; justify-content: center;
  -webkit-animation: sfuma 3.2s both; animation: sfuma 3.2s both; -webkit-perspective: 900px; perspective: 900px;
}
.busta { position: relative; width: 300px; height: 190px; }
.busta .retro, .busta .fronte { position: absolute; left: 0; right: 0; bottom: 0; }
.busta .retro { top: 0; background: #b48e5c; border-radius: 4px; }
.busta .fronte {
  top: 0; z-index: 3; border-radius: 4px; background: transparent;
  border-left: 150px solid #c9a46e; border-right: 150px solid #c39d66; border-bottom: 110px solid #d2ae78; border-top: 80px solid transparent;
}
.busta .patta {
  position: absolute; top: 0; left: 0; z-index: 4; width: 0; height: 0;
  border-left: 150px solid transparent; border-right: 150px solid transparent; border-top: 105px solid #bf9862;
  -webkit-transform-origin: top; transform-origin: top; -webkit-animation: patta .6s .5s both; animation: patta .6s .5s both;
}
.busta .sigillo {
  position: absolute; z-index: 5; left: 50%; top: 88px; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  background: #a4161a; box-shadow: 0 0 0 4px rgba(164, 22, 26, .4); -webkit-animation: sigillo .4s .3s both; animation: sigillo .4s .3s both;
}
.busta .lettera {
  position: absolute; z-index: 2; left: 18px; right: 18px; top: 12px; height: 160px; padding: 18px; background: #f3ead8; color: #2a221a;
  text-align: center; -webkit-animation: esce .8s 1.1s both; animation: esce .8s 1.1s both;
}
.lettera span { display: block; font-family: "Special Elite", monospace; letter-spacing: .2em; text-transform: uppercase; color: #a4161a; font-size: .8rem; }
.lettera strong { display: block; font-family: "Playfair Display", serif; font-size: 1.35rem; margin-top: 8px; line-height: 1.2; }
.salta { color: #8f8574; font-size: .8rem; margin-top: 150px; }

/* accusa */
.domanda { border: 0; padding: 0; margin: 28px 0; }
.domanda legend { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.3rem; margin-bottom: 12px; }
.opzioni { display: -webkit-flex; display: flex; -webkit-flex-wrap: wrap; flex-wrap: wrap; }
.opzione {
  display: -webkit-flex; display: flex; -webkit-align-items: center; align-items: center; text-align: left;
  width: 100%; margin: 0 0 8px; padding: 12px 14px; min-height: 56px; border-radius: 10px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(236, 227, 208, .25);
}
.opzione .mini { margin-right: 12px; }
.opzione.attiva { background: #e0b84a; color: #14110f; border-color: #e0b84a; }
@media (min-width: 700px) { .opzioni.volti .opzione { width: calc(50% - 8px); margin-right: 8px; } }

/* verdetto */
.verdetto { max-width: 820px; margin: 0 auto; }
.punteggio { font-family: "Playfair Display", serif; font-weight: 900; font-size: 4.5rem; margin: 0; color: #e0b84a; line-height: 1; }
.punteggio small { font-size: 1.6rem; color: #8f8574; }
.esiti { list-style: none; padding: 0; }
.esiti li { padding: 12px 16px; margin-bottom: 8px; border-radius: 8px; border-left: 5px solid; background: rgba(0, 0, 0, .25); }
.esiti li span { display: block; font-size: .95rem; color: #c9bea9; }
.esiti .giusta { border-color: #3c9a6c; }
.esiti .sbagliata { border-color: #b3171c; }
.ricostruzione { padding-left: 1.4em; }
.passo { display: none; margin-bottom: 18px; padding: 16px 18px; background: #f3ead8; color: #2a221a; border-radius: 2px; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.passo.visto { display: list-item; -webkit-animation: posa .5s both; animation: posa .5s both; }
.passo p { margin: 0 0 .5em; }
.rimandi { margin: 8px 0 0; }
.rimandi span { display: inline-block; font-family: "Special Elite", monospace; font-size: .75rem; padding: 2px 8px; margin: 0 6px 6px 0; border: 1px solid rgba(42, 34, 26, .35); border-radius: 3px; }
.smascherato { position: relative; text-align: center; margin: 40px auto 10px; width: 260px; }
.polaroid { background: #fbfaf6; padding: 12px 12px 18px; color: #2a221a; box-shadow: 0 16px 40px rgba(0, 0, 0, .6); -webkit-animation: lancio .7s both; animation: lancio .7s both; }
.polaroid img, .polaroid .senza-foto { width: 100%; height: 240px; object-fit: cover; display: -webkit-flex; display: flex; margin-bottom: 10px; }
.polaroid strong { font-family: "Caveat", cursive; font-size: 1.6rem; }
.timbro-colpevole { top: 110px; left: 10px; font-size: 2rem; background: rgba(251, 250, 246, .5); -webkit-transform: rotate(-14deg); transform: rotate(-14deg); -webkit-animation: timbra .5s .8s both; animation: timbra .5s .8s both; }

.vuoto { text-align: center; padding: 80px 0; }

/* carte lanciate sul tavolo */
.lancia { -webkit-animation: lancio .6s both; animation: lancio .6s both; }

/* animazioni */
@-webkit-keyframes appare { from { opacity: 0; } to { opacity: 1; } }
@keyframes appare { from { opacity: 0; } to { opacity: 1; } }
@-webkit-keyframes posa { from { opacity: 0; -webkit-transform: translateY(40px) rotate(3deg) scale(.96); } to { opacity: 1; -webkit-transform: none; } }
@keyframes posa { from { opacity: 0; transform: translateY(40px) rotate(3deg) scale(.96); } to { opacity: 1; transform: none; } }
@-webkit-keyframes batti { from { opacity: 0; -webkit-transform: translateX(-8px); } to { opacity: 1; -webkit-transform: none; } }
@keyframes batti { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@-webkit-keyframes timbra { 0% { opacity: 0; -webkit-transform: scale(2.6) rotate(-30deg); } 60% { opacity: .9; } 100% { opacity: .82; } }
@keyframes timbra { 0% { opacity: 0; transform: scale(2.6) rotate(-30deg); } 60% { opacity: .9; } 100% { opacity: .82; } }
@-webkit-keyframes lancio { from { opacity: 0; -webkit-transform: translate(60px, -120px) rotate(25deg) scale(1.15); } }
@keyframes lancio { from { opacity: 0; transform: translate(60px, -120px) rotate(25deg) scale(1.15); } }
@-webkit-keyframes patta { to { -webkit-transform: rotateX(180deg); z-index: 1; } }
@keyframes patta { to { transform: rotateX(180deg); z-index: 1; } }
@-webkit-keyframes sigillo { to { opacity: 0; -webkit-transform: scale(1.6); } }
@keyframes sigillo { to { opacity: 0; transform: scale(1.6); } }
@-webkit-keyframes esce { to { -webkit-transform: translateY(-130px); z-index: 6; } }
@keyframes esce { to { transform: translateY(-130px); z-index: 6; } }
@-webkit-keyframes sfuma { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sfuma { 0% { opacity: 0; } 8% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }
@-webkit-keyframes scruta { 0%, 100% { -webkit-transform: translate(0, 0); } 30% { -webkit-transform: translate(3px, -2px); } 60% { -webkit-transform: translate(-2px, 2px); } }
@keyframes scruta { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(3px, -2px); } 60% { transform: translate(-2px, 2px); } }

@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { -webkit-animation: none !important; animation: none !important; -webkit-transition: none !important; transition: none !important; }
  .fili path { stroke-dashoffset: 0; }
}
