/* Both interactive objects share the stage on desktop and touch screens. */
#garment-tray:empty { display: none; }

.game[data-screen='body'] #garment-tray {
  position: absolute;
  z-index: 3;
  left: 3%;
  bottom: 19%;
}

#garment-tray .garment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: clamp(104px, 11vw, 146px);
  height: auto;
  padding: 10px 8px 12px;
  color: #183e3c;
  background: #fffaf0;
  border: 1px solid #a6b5a4;
  border-radius: 14px;
  box-shadow: 0 6px 18px #345c4f26;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#garment-tray .garment-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.garment-name { font-size: 15px; font-weight: 700; line-height: 1.2; }
.garment-hint { color: #42625a; font-size: 12px; line-height: 1.3; }
.garment-selected, .garment-card.selected .garment-default { display: none; }
.garment-card.selected .garment-selected { display: inline; }

#garment-tray .garment-card.selected {
  outline: 3px solid #ae5938;
  outline-offset: 2px;
  border-radius: 14px;
}

.game[data-screen='body'] .actor {
  left: 64%;
  width: min(68%, 480px, 65svh);
  bottom: 8%;
}
.game[data-screen='body'] .character-shadow { left: 64%; width: 34%; }
.game:is([data-screen='body'], [data-screen='zip']) :is(.scene-caption, .stage-badge) { display: none; }
.game:is([data-screen='body'], [data-screen='zip']) #celebration { pointer-events: none; }

.game[data-screen='body'] .drop-target {
  border-color: #ac6747;
  background: #ffe5b62b;
}
.game[data-screen='body'] .drop-target:is(.selected, .over) {
  border-color: #884422;
  background: #ffcb8875;
}

.game[data-screen='zip'] .zip-control { left: 50%; transform: translateX(-50%); width: 44px; }
.game[data-screen='zip'] .zip-control input { width: 44px; accent-color: #28584d; }
.game[data-screen='zip'] .zip-control label { display: none; }

.care-copy .care-alternative { min-height: 44px; }
.game .care-copy .care-credit {
  max-width: 310px;
  margin: 20px 0 0;
  padding-left: 12px;
  border-left: 2px solid #839b8d;
  color: #3e5c54;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 800px) {
  .game:is([data-screen='body'], [data-screen='zip']) .stage {
    height: clamp(226px, 34svh, 300px);
    min-height: 0;
  }
  .game[data-screen='body'] #garment-tray { left: 1.5%; bottom: 8%; }
  #garment-tray .garment-card {
    width: clamp(82px, 25vw, 112px);
    gap: 3px;
    padding: 7px 4px 9px;
  }
  .garment-name { font-size: 13px; }
  .garment-hint { font-size: 11px; }
  .game[data-screen='body'] .actor {
    width: min(72%, 32svh, 285px);
    left: 66%;
    bottom: 0;
  }
  .game[data-screen='body'] .character-shadow { left: 66%; bottom: 1%; }
  .game[data-screen='zip'] .actor { width: min(88%, 33svh, 292px); left: 50%; bottom: 0; }
  .game:is([data-screen='body'], [data-screen='zip']) .story { padding: 15px 0 22px; min-height: 0; }
  .game .care-copy .care-credit { margin-top: 16px; font-size: 13px; }
  .game .care-copy .care-instruction { max-width: 420px; }
}
