/* Tela do jogo: placar, barra de calor, roleta e barra de baixo. */

/* ---- placar ---- */
#players {
  display: flex;
  gap: 8px;
}
.pl {
  flex: 1;
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  border: 2px solid rgb(140 130 255 / .12);
  transition: .3s;
  opacity: .55;
}
.pl.on { opacity: 1; }
.pl b {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pl small {
  color: var(--mut);
  font-size: 12px;
}
.pl.p0 b { color: var(--p0); }
.pl.p1 b { color: var(--p1); }
.pl.p0.on { border-color: var(--p0); box-shadow: 0 0 18px -6px var(--p0); }
.pl.p1.on { border-color: var(--p1); box-shadow: 0 0 18px -6px var(--p1); }

/* ---- barra de calor ---- */
#heat { margin: 12px 0 4px; }
#heat-label {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
}
#heat-bar {
  height: 12px;
  border-radius: 8px;
  background: var(--track);
  overflow: hidden;
}
#heat-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lv1), var(--lv2), var(--lv3), var(--lv4), var(--lv5));
  background-size: 520px 100%;
  transition: width .8s;
}

/* ---- roleta ---- */
#stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 0;
}
#turn {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0 10px;
  text-align: center;
}
#turn-name { color: var(--ac); }
#turn-warning {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--warn);
  min-height: 16px;
}

#wheel-box {
  position: relative;
  width: min(84vw, 46vh, 360px);
  aspect-ratio: 1;
}
#wheel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--ac), 0 0 40px -6px var(--ac);
  transition: box-shadow .4s;
}
#wheel-pointer {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 28px solid #fff;
  filter: drop-shadow(0 2px 3px #000);
  z-index: 2;
}
#wheel-hub {
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  /* centro escuro com anel neon na cor da vez (texto branco legível nas duas cores) */
  background: radial-gradient(circle at 50% 35%, #2c2672, #110e33);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 17px;
  box-shadow: 0 0 0 4px var(--ac), 0 0 24px var(--ac), 0 4px 14px #000a;
  transition: box-shadow .4s;
  padding: 0;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  z-index: 3;
}
#wheel-hub:active { transform: none; }

/* força do giro */
#power {
  width: min(70vw, 300px);
  height: 10px;
  border-radius: 6px;
  background: var(--track);
  margin-top: 16px;
  overflow: hidden;
}
#power-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lv1), var(--lv3), var(--lv5));
  background-size: 300px 100%;
}
#hint {
  font-size: 12px;
  color: var(--mut);
  margin-top: 6px;
  text-align: center;
  min-height: 16px;
}

/* ---- barra de baixo ---- */
#actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
#actions button {
  flex: 1;
  background: var(--card);
  font-size: 13px;
  padding: 12px 6px;
  font-weight: 600;
}
