/* The picture stage (js/ui/QuizAnswers.js → renderPicture): "Tap the picture" questions. The picture fills the
   answers area; spots are round buttons placed in percent of the picture's size (--r, the spot's reach in percent
   of the width, is used when spots are hidden and the player taps the picture). After answering, every spot shows its label and the right one turns green. */
.hs-pic {
  position: relative;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: calc(18px * var(--rs, 1));
  overflow: hidden;
  border: 2px solid var(--line);
  background: var(--soft2);
  user-select: none;
  -webkit-user-select: none;
}
.hs-pic img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(var(--main-h, 900px) - 340px);
  object-fit: contain;
}
.hs-pic.free {
  cursor: crosshair;
}
.hs-spot {
  position: absolute;
  width: 44px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 3px solid #fff;
  background: color-mix(in srgb, var(--navy) 55%, transparent);
  box-shadow: 0 4px 14px rgba(10, 25, 40, 0.35);
  color: #fff;
  transition:
    transform 0.15s,
    background 0.15s;
}
.hs-spot:not([disabled]):hover {
  transform: translate(-50%, -50%) scale(1.08);
}
.hs-spot.hidden {
  opacity: 0;
  pointer-events: none;
}
.hs-n {
  font-size: 17px;
  font-weight: 900;
}
.hs-spot.sel {
  background: var(--orange);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--orange) 35%, transparent),
    0 4px 14px rgba(10, 25, 40, 0.35);
}
.hs-spot.ok {
  background: var(--green);
}
.hs-spot.bad {
  background: var(--red);
}
.hs-spot.dim {
  background: color-mix(in srgb, var(--navy) 35%, transparent);
}
.hs-spot.gone {
  opacity: 0.25;
}
/* The label beside a spot once chosen or answered. */
.hs-lbl {
  position: absolute;
  top: 50%;
  inset-inline-start: calc(100% + 8px);
  transform: translateY(-50%);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(10, 25, 40, 0.2);
  pointer-events: none;
}
.hs-spot.ok .hs-lbl {
  color: color-mix(in srgb, var(--green) 70%, #000);
}
