.letters-scene { display: grid; grid-template-columns: minmax(160px, 24%) minmax(0, 1fr); align-items: center; gap: 12px; }
.letters-guide { align-self: end; }
.letters-guide .letters-guide-sprite { display: block; width: 100%; height: auto; aspect-ratio: 427 / 627; }
.letters-activity { width: 100%; min-width: 0; max-width: 1000px; margin: 0 auto; text-align: center; }
.letters-progress { margin: .4rem; font-size: 1.05rem; font-weight: 800; }
.letter-train { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; padding: 10px 12px 34px; border-bottom: 9px double #735477; }
.wagon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; border: 5px solid #613488; border-radius: 30px 30px 22px 22px; background: #8de1fb; padding: 8px 8px 20px; box-shadow: inset 0 -12px 0 #54b9e0; }
.wagon:nth-child(2) { background: #d4abf6; box-shadow: inset 0 -12px 0 #af7cdd; }
.wagon:nth-child(3) { background: #ffa6c5; box-shadow: inset 0 -12px 0 #eb76ab; }
.wagon::after { content: ''; position: absolute; bottom: -23px; left: 13%; width: 36px; height: 36px; border: 5px solid #613488; border-radius: 50%; background: #ffc36b; box-shadow: 120px 0 0 -5px #ffc36b,120px 0 0 0 #613488; pointer-events: none; }
.wagon .sprite { width: min(100%,190px); height: auto; aspect-ratio: 1; }
.wagon-letter { width: 75%; border: 3px solid #a888aa; border-radius: 18px; background: #fff9e8; color: #6a238e; font-size: clamp(2.5rem,6vw,4.5rem); font-weight: 900; line-height: 1.1; }
.wagon-word { color: #3c2356; font-size: clamp(.95rem,2.8vw,1.5rem); font-weight: 900; }
.letters-next { margin: 24px auto 0; }
.letters-actions,.letter-tiles { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.build-model { display: flex; justify-content: center; align-items: center; gap: 20px; font-size: clamp(2rem,5vw,3.5rem); color: #65278e; }
.build-model .sprite { width: 120px; height: 120px; }
.letter-slots { display: flex; justify-content: center; gap: 8px; }
.letter-slots span,.letter-tile { display: grid; place-items: center; min-width: 58px; min-height: 62px; border: 3px solid #8f61ae; border-radius: 14px; background: #fff8df; color: #5c247d; font-size: 2rem; font-weight: 900; }
.letter-tile { background: #c7edff; }
.letter-tile.used { opacity: .45; }
.wagon,.letter-tile { touch-action: none; cursor: grab; user-select: none; }
.in-hand { pointer-events: none; position: relative; z-index: 2; }
.letter-slots.ready span { border-color: #31926b; background: #dcffe4; }
.letters-activity [aria-disabled=true] { cursor: default; }
.letters-next[aria-disabled=true] { opacity: .55; }
.letters-finish { padding: 36px 10px; background: #fff8df; border: 4px solid #b57cd5; border-radius: 28px; }
@media(max-width:600px) {
  .letters-scene { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .letters-guide { width: 112px; justify-self: center; pointer-events: none; }
  .letter-train { gap: 9px; padding: 6px 2px 24px; }
  .wagon { border-width: 3px; padding: 5px 2px 12px; border-radius: 18px; }
  .wagon::after { width: 21px; height: 21px; border-width: 3px; bottom: -15px; left: 10%; box-shadow: 47px 0 0 -3px #ffc36b,47px 0 0 0 #613488; }
  .wagon-letter { border-width: 2px; border-radius: 10px; }
  .build-model .sprite { width: 85px; height: 85px; }
  .letters-next { margin-top: 18px; }
}
