/* =========================================================
   3 PILASTRI - CSS DEDICATO
   (estratto e isolato per evitare rotture da style.css)
   ========================================================= */

/* --- 3 pilastri: layout base --- */
.pr-wrap{
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 14px 10px;
}

.pr-stage{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.pr-center-title{
  position: absolute;
  z-index: 3;
  text-align: center;
  font-weight: 800;
  line-height: 1.15;
  font-size: clamp(18px, 3.2vw, 26px);
  padding: 10px 14px;
}

.pr-placeholder{
  width: 92%;
  height: 92%;
  border-radius: 999px;
  border: 2px dashed rgba(0,0,0,.18);
  display: grid;
  place-items: center;
  font-size: 14px;
  opacity: .7;
}

/* Puntatore fisso a ore 6 */
.pr-pointer{
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 16px solid #d43b3b;
  z-index: 5;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.25));
}

/* SVG roulette */
#pilastri-roulette svg{
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  display: block;
}

/* Ruota (gruppo che ruota) */
#pilastri-roulette #prWheel{
  transform-box: fill-box;
  transform-origin: 50% 50%;
}

/* UI */
.pr-ui{
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

.pr-spin, .pr-more, .pr-mute{
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.15);
  background: #fff;
  font-weight: 400;
  font-size: 17px;
}

.pr-more:disabled{
  opacity: .45;
}

.pr-result{
  grid-column: 1 / -1;
  font-size: 14px;
  opacity: .85;
  min-height: 18px;
}

/* Smartphone: font più piccolo */
@media (max-width: 768px) {
  .pr-spin, .pr-more, .pr-mute{
    font-size: 16px;
  }
}
