/* Preferiresti (riusa mimica.css e probabile.css): due cartellini e una "o" in mezzo */

.dilemma {
  position: relative;
  display: grid; gap: 0; justify-items: stretch;
  margin-top: 4px;
  perspective: 800px;
}
.dilemma .attacco-domanda { justify-self: center; margin: 0 0 10px; color: #FFF6E6; font-size: 1.15rem; }

.scelta-a, .scelta-b {
  position: relative;
  min-height: 132px;
  display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 22px 20px;
  border: 0; border-radius: 20px;
  background: #FBF1DC; color: #2A1A12;
  text-align: center;
  touch-action: manipulation;
  transition: transform .15s ease, box-shadow .2s ease;
}
.scelta-a { box-shadow: inset 0 0 0 3px #C62828, 0 0 0 5px #FBF1DC, 0 14px 26px rgba(0,0,0,.3); transform: rotate(-1.2deg); }
.scelta-b { box-shadow: inset 0 0 0 3px #1F3FA6, 0 0 0 5px #FBF1DC, 0 14px 26px rgba(0,0,0,.3); transform: rotate(1deg); }
.scelta-a:active { transform: rotate(-1.2deg) scale(.98); }
.scelta-b:active { transform: rotate(1deg) scale(.98); }
.testo-scelta {
  font-family: var(--font-display);
  font-weight: 850; font-stretch: 95%;
  font-size: clamp(1.45rem, 6.6vw, 2.1rem);
  line-height: 1.1;
  text-wrap: balance;
}
.dilemma.lunga .testo-scelta { font-size: clamp(1.2rem, 5.4vw, 1.7rem); }
.voti { min-height: 1.4em; font-weight: 700; font-size: .95rem; padding: 0 12px; border-radius: 999px; }
.voti:empty { visibility: hidden; }
.scelta-a .voti { background: #C62828; color: #FFF6E6; }
.scelta-b .voti { background: #1F3FA6; color: #FFFFFF; }
.in-testa.scelta-a { box-shadow: inset 0 0 0 5px #C62828, 0 0 0 5px #FFE08A, 0 14px 26px rgba(0,0,0,.3); }
.in-testa.scelta-b { box-shadow: inset 0 0 0 5px #1F3FA6, 0 0 0 5px #FFE08A, 0 14px 26px rgba(0,0,0,.3); }
.tocca { animation: tocca .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes tocca { 0% { scale: .96; } 100% { scale: 1; } }

.dilemma .o {
  position: relative; z-index: 1;
  justify-self: center;
  width: 58px; height: 58px; margin: -14px 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #FFE08A; color: #2A1A12;
  font-family: var(--font-display); font-weight: 900; font-stretch: 100%; font-size: 1.6rem;
  line-height: 1;
  box-shadow: 0 0 0 5px #1E7A4E, 0 6px 14px rgba(0,0,0,.3);
}
.dilemma .conto { border-radius: 20px; z-index: 2; }

.aiuto-voti { margin: 2px 0 0; text-align: center; font-size: .9rem; color: var(--testo-tenue); }
.aiuto-voti[hidden], .esito-voti[hidden] { display: none; }
.esito-voti { display: grid; gap: 6px; justify-items: center; text-align: center; }
.esito-voti p { margin: 0; font-weight: 700; }
.barra-voti { display: flex; width: 100%; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(0,0,0,.2); }
.barra-voti span { transition: width .35s ease; }
.parte-a { background: #FF8A80; }
.parte-b { background: #8FA6F0; }
.esito-voti .link-sobrio { min-height: 36px; color: var(--testo-tenue); font-size: .9rem; }

.preferiresti .azioni-gioco { margin-top: 4px; }

@media (min-width: 900px) {
  .dilemma { grid-template-columns: 1fr auto 1fr; align-items: stretch; column-gap: 0; }
  .dilemma .attacco-domanda { grid-column: 1 / -1; }
  .scelta-a, .scelta-b { min-height: 260px; }
  .dilemma .o { margin: 0 -18px; align-self: center; }
  .testo-scelta { font-size: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { .tocca { animation: none; } .scelta-a, .scelta-b { transition: none; } }
