#verified-challenge.visual-lesson .challenge-header {
  padding-top: max(54px, calc(env(safe-area-inset-top) + 44px));
}
#verified-challenge.visual-lesson #v2-challenge-title {
  max-width: 480px;
  font-size: clamp(1.7rem, 6.4vw, 3rem);
  line-height: 1.04;
}
#verified-challenge.visual-lesson:has(.visual-play) #v2-challenge-title {
  font-size: clamp(1.32rem, 5.2vw, 2.4rem);
  letter-spacing: -.035em;
}
.visual-screen {
  gap: clamp(7px, 1.6dvh, 15px);
  padding-inline: clamp(10px, 4vw, 23px);
}
.visual-stage {
  position: relative;
  flex: none;
  width: min(100%, 435px, 62dvh);
  aspect-ratio: 4 / 3;
  border-radius: 25px;
  background: radial-gradient(ellipse at 50% 52%, #4d86ad25 0, transparent 73%);
}
.visual-art, .visual-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.visual-concept {
  margin: 0 0 8px;
  color: var(--sky);
  font-size: clamp(1.14rem, 4.7vw, 1.65rem);
  font-weight: 820;
}
.visual-fact { width: min(100%, 388px); }
.visual-fact .water-description {
  margin: 0;
  font-size: clamp(.97rem, 4.3vw, 1.15rem);
}
.visual-fact .visual-tray { margin: .75rem 0 0; }
.visual-feedback { min-height: 1.45em; text-wrap: balance; }
.visual-feedback:empty::after { content: '\00a0'; }
.visual-tools {
  display: grid;
  justify-items: center;
  gap: 7px;
  width: min(100%, 430px);
}
.visual-tray {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 8px;
  row-gap: 6px;
  width: 100%;
}
.visual-control {
  min-width: 44px;
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid #8ecce572;
  border-radius: 12px;
  background: linear-gradient(#326484, #16334f);
  box-shadow: 0 3px #0b1b32a8, inset 0 1px #d3f6ff35;
  color: #f2f9ff;
  font: 740 .95rem/1.15 system-ui, sans-serif;
  touch-action: manipulation;
}
.visual-control:hover { background: #3b7092; }
.visual-control:active { translate: 0 2px; }
.visual-control[aria-pressed="true"], .visual-target[aria-pressed="true"] {
  outline: 2px solid #b4f8ff;
  outline-offset: 2px;
  box-shadow: 0 0 15px #b4f8ff6e;
}
.visual-piece, .visual-sample {
  display: grid;
  justify-items: center;
  align-content: center;
  min-width: 58px;
  font-size: 1.9rem;
}
.visual-piece, [data-piece] {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.visual-piece img {
  display: block;
  width: 54px;
  height: 42px;
  object-fit: contain;
  pointer-events: none;
}
.visual-piece-label {
  margin-top: 4px;
  font-size: .74rem;
  line-height: 1.18;
}
.visual-land-tray .visual-piece {
  width: clamp(56px, 15vw, 90px);
  min-width: 0;
  min-height: 57px;
  padding: 3px 4px;
}
.visual-land-tray img { height: 26px; width: 43px; }
.visual-fragments .visual-piece { width: calc(50% - 7px); }
.visual-target {
  position: absolute;
  inset: auto;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: white;
  touch-action: manipulation;
}
.visual-target:disabled { pointer-events: none; }
.visual-target.visual-large-drop { width: 48%; height: 62%; border-radius: 24px; }
.visual-target.visual-dot { border-radius: 50%; }
.visual-target.visual-muscle { width: 57px; height: 44px; }
.visual-target.visual-organ { width: 17%; height: 21%; }
.visual-target.visual-row-drop { width: 67%; height: 15%; border-radius: 9px; }
.visual-target.visual-bin { width: 23%; height: 43%; border-radius: 15px; }
.visual-target.visual-breath-handle { width: 49%; height: 65%; }
.visual-target.visual-over, .visual-target.visual-reject {
  background: #aff8ff24;
  border-color: #b4f8ff;
}
.visual-target.visual-reject { border-color: #ffb1af; background: #ff99952f; }
.visual-lifted { opacity: .5; }
.visual-ghost {
  position: fixed;
  transform: none;
  translate: -50% -56%;
  min-width: 58px;
  min-height: 48px;
  inset: auto;
  opacity: .94;
  z-index: 4;
  pointer-events: none;
  filter: drop-shadow(0 7px 12px #021425bf);
}
.visual-ghost.visual-target {
  width: 27px;
  height: 27px;
  min-width: 0;
  min-height: 0;
  background: #fa947f;
  border: 3px solid #fff5b8;
}
.visual-reject { animation: water-shake .32s ease-out both; }
.visual-readout { margin: 0; color: var(--muted-water); font-weight: 700; }
.visual-biceps { border-color: #ff9eb2; }
.visual-triceps { border-color: #83edff; }
.visual-light[data-color="red"] { border-color: #ff7c80; }
.visual-light[data-color="green"] { border-color: #75ee9f; }
.visual-light[data-color="blue"] { border-color: #9badff; }
.visual-compass {
  display: grid;
  grid-template: repeat(3,44px) / repeat(3,58px);
  grid-template-areas: ". north ." "west . east" ". south .";
  gap: 3px;
}
.visual-compass [data-direction="north"] { grid-area: north; }
.visual-compass [data-direction="east"] { grid-area: east; }
.visual-compass [data-direction="south"] { grid-area: south; }
.visual-compass [data-direction="west"] { grid-area: west; }
.visual-won .visual-art { animation: water-celebrate .75s ease-out both; }
.visual-won .visual-stage { overflow:clip; background: radial-gradient(ellipse, #73ffde43, transparent 74%); }
.visual-won .visual-feedback { color: #bffbe6; }
@media (max-height: 650px) {
  .visual-play .visual-stage { width: min(100%, 435px, 56dvh); }
  .visual-feedback { font-size: .9rem; }
  .visual-screen { padding-bottom: 12px; }
}
.visual-piece img.visual-illustration, .visual-sample img.visual-illustration {
  width: 34px;
  height: 34px;
}
.visual-sample { position: relative; }
.visual-audio-mark {
  position: absolute;
  top: 3px;
  right: 5px;
  color: #b5f4ff;
  font: 740 .85rem/1 system-ui, sans-serif;
}
.visual-target[data-piece] { touch-action: none; }
