/* Direct-Manipulation Per-Chapter Visual Stages (Zero Emojis, All Sprites) */

/* CH01 Conveyor Belt + Swipeable Crate */
.belt-box {
  width: 100%;
  padding: 18px 12px;
  border-radius: 20px;
  border: 4px solid var(--ink);
  background: repeating-linear-gradient(90deg, #334155 0 22px, #475569 22px 44px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: beltMove 2s linear infinite;
}
@keyframes beltMove { from { background-position: 0 0; } to { background-position: 44px 0; } }

.crate-sprite-card {
  position: relative;
  width: 220px;
  padding: 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #FDE68A, #F2B863);
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--wood-dark);
  text-align: center;
  cursor: grab;
  touch-action: none;
}

.crate-sprite-card img { width: 44px; height: 38px; margin: 0 auto 4px; }
.crate-word { font-size: 1.15rem; color: var(--ink); line-height: 1.25; }
.crate-sub { font-size: 0.78rem; color: #6B4423; margin-top: 3px; }

.chutes-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.chute-btn {
  min-height: 74px;
  padding: 6px 8px;
  flex-direction: column;
  gap: 2px;
  font-size: 0.96rem;
}

.chute-btn small { font-size: 0.72rem; opacity: 0.92; text-shadow: none; }

/* CH02 Hat Shop Guest + Head Dropzone */
.hat-guest-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hat-head-drop {
  width: 140px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -16px;
  z-index: 4;
}

.hat-head-drop img { width: 92px; height: 64px; object-fit: contain; }
.hat-guest-img { width: 120px; height: 120px; object-fit: contain; }

/* CH03 Spotlight Theater */
.theater-box {
  width: 100%;
  padding: 16px 12px;
  border-radius: 20px;
  background: radial-gradient(circle at top, #334155 0%, #0F172A 100%);
  border: 4px solid var(--ink);
  text-align: center;
  color: #FFF8E7;
}

.theater-prop-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
}

.theater-prop-item {
  width: 68px;
  height: 68px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
}

.theater-prop-item.lit {
  background: radial-gradient(circle, rgba(255, 229, 107, 0.7), rgba(255, 229, 107, 0.1));
  box-shadow: 0 0 24px #FFE56B;
}

.theater-prop-item img { width: 100%; height: 100%; object-fit: contain; }

/* CH04 Parcel Packing */
.parcel-stage-box {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.parcel-visual-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.parcel-visual-row img { width: 64px; height: 64px; object-fit: contain; }

.parcel-tray-cols {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: center;
}

.parcel-opt-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* CH05 Casting Stage */
.casting-star-drop {
  width: 150px;
  height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.casting-star-drop img { width: 74px; height: 54px; }

/* CH06 Robot Garage */
.robot-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.robot-drop-frame {
  position: relative;
  width: 152px;
  height: 152px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.robot-drop-frame .robot-main { width: 146px; height: 146px; }
.robot-core-slot {
  position: absolute;
  bottom: 20px;
  width: 82px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* CH07 Train Switch */
.rail-cars-row {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  border-radius: 18px;
  background: rgba(255, 248, 231, 0.9);
  border: 3.5px solid var(--ink);
}

.rail-car-chip {
  padding: 7px 11px;
  border-radius: 12px;
  background: #38BDF8;
  border: 3px solid var(--ink);
  color: #FFFFFF;
  font-family: var(--font-en);
  font-weight: 800;
  text-shadow: 0 2px 0 var(--ink);
}

.rail-car-chip.hi { background: #FFD43B; color: var(--ink); text-shadow: none; }

/* CH08 Room Hotspots */
.room-canvas-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.room-spot-tile {
  min-height: 92px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(255, 248, 231, 0.94);
  border: 3.5px solid var(--ink);
  box-shadow: 0 5px 0 rgba(43, 27, 18, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.room-spot-tile:active { transform: translateY(3px); }
.room-spot-tile img { width: 52px; height: 46px; object-fit: contain; }
.room-spot-tile span { font-size: 0.84rem; color: var(--ink); }

/* CH09 Rotary Time Dial */
.dial-wheel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.dial-wheel-img {
  width: 118px;
  height: 118px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}

.dial-tray-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

/* CH10 Time Bridge */
.canyon-row {
  width: 100%;
  display: grid;
  grid-template-columns: 74px 1fr 74px;
  align-items: center;
  gap: 6px;
}

.cliff-pill {
  padding: 12px 6px;
  border-radius: 14px;
  background: #334155;
  border: 3px solid var(--ink);
  color: #FFF8E7;
  text-align: center;
  font-size: 0.88rem;
}

.canyon-drop {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.canyon-drop img { width: 92px; height: 54px; object-fit: contain; }

/* CH11 Potion Cauldron */
.cauldron-drop-zone {
  width: 170px;
  height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cauldron-drop-zone img { width: 118px; height: 96px; object-fit: contain; }

/* CH12 Olympic Podium */
.podium-bars-stage {
  width: 100%;
  height: 136px;
  padding: 10px 10px 6px;
  border-radius: 18px;
  background: rgba(255, 248, 231, 0.92);
  border: 3.5px solid var(--ink);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
}

.podium-bar-item {
  flex: 1;
  text-align: center;
}

.podium-bar-col {
  border-radius: 10px 10px 0 0;
  border: 3px solid var(--ink);
  background: #38BDF8;
  color: #FFFFFF;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.podium-bar-col.gold { background: #FFD43B; color: var(--ink); }

/* CH13 Capsule Launcher */
.capsule-tube-drop {
  width: 150px;
  height: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.capsule-tube-drop img { width: 64px; height: 74px; }

/* CH14 Mirror */
.mirror-stage-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 94px 1fr;
  align-items: center;
  gap: 6px;
}

.mirror-card {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.82rem;
}

.mirror-card.lit { background: #FFF3B0; border-color: var(--orange-mid); }

.mirror-drop {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mirror-drop img { width: 72px; height: 92px; }

/* CH15 Camera Viewfinder */
.camera-frame-box {
  width: 100%;
  padding: 12px;
  border-radius: 18px;
  background: #0F172A;
  border: 4px solid var(--ink);
  color: #FFF8E7;
  text-align: center;
}

.camera-lens-drop {
  width: 150px;
  height: 76px;
  margin: 8px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--ink);
}
.camera-lens-drop img { width: 58px; height: 46px; }

/* CH16 Sky Islands Lego Bridge */
.lego-islands-row {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  align-items: center;
  gap: 6px;
}

.island-card-box {
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 8px 6px;
  text-align: center;
  font-size: 0.84rem;
}

.lego-gap-drop {
  height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}
.lego-gap-drop img { width: 66px; height: 40px; }
