/* 그림 먼저: 스티커 보기는 그림 오른쪽 세로로, 글·질문은 아래.
   css/ 의 파일은 index.html 에서 번호 순서대로 겹쳐 적용된다(뒤 파일이 앞 파일을 덮는다). 순서를 바꾸지 말 것. */

.board {
  scroll-margin-top: 16px;
}

/* Picture first, vertical choices to its right, story and question below. */
.reading-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: auto;
}
.picture-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 18px;
  grid-row: auto;
  align-items: start;
}
.item-rail {
  min-width: 0;
  background: #fff2d8;
  border-radius: 22px;
  padding: 10px;
}
.item-rail .step-tag {
  text-align: center;
  margin: 0 0 8px;
}
.choices {
  flex-direction: column;
  gap: 10px;
}
.choice {
  flex: none;
  width: 100%;
  padding: 7px;
}
.choice img {
  height: 82px;
  display: block;
}
.choice span {
  font-size: 16px;
  margin-top: 2px;
}
.choice.hinted {
  border-color: #68974b;
  box-shadow: 0 0 0 3px #d9edb8;
  background: #f5ffe8;
}
.item-rail .tray {
  flex-direction: column;
  padding: 0;
  gap: 10px;
  margin: 0;
  border: 0;
  background: none;
  min-height: 0;
}
.item-rail .sticker {
  width: 100%;
  min-width: 0;
}
.item-rail .tray-copy {
  text-align: center;
}
.item-rail .tray-copy p {
  font-size: 16px;
}
.item-rail .tray-copy > span:last-child {
  font-size: 12px;
}
.story-copy {
  grid-row: auto;
  padding: 0;
}
.story-copy h2 {
  font-size: 28px;
}
.story-copy #story-text {
  margin-top: 10px;
  font-size: 20px;
  line-height: 1.75;
}
.quiz {
  margin-top: 16px;
}
.quiz h3 {
  margin: 10px 0;
}
.quiz-heading .step-tag {
  font-size: 16px;
}
@media (max-width: 500px) {
  .picture-side {
    grid-template-columns: minmax(0, 1fr) 88px;
    gap: 8px;
  }
  .item-rail {
    padding: 5px;
    border-radius: 14px;
  }
  .item-rail .step-tag {
    font-size: 13px;
  }
  .choices {
    gap: 7px;
  }
  .choice {
    padding: 4px;
    border-width: 2px;
    border-radius: 12px;
  }
  .choice img {
    height: 49px;
  }
  .choice span {
    font-size: 13px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }
  .item-rail .sticker img {
    height: 58px;
  }
  .item-rail .sticker span {
    font-size: 13px;
  }
  .item-rail .tray-copy p {
    font-size: 13px;
  }
  .item-rail .tray-copy > span:last-child {
    font-size: 11px;
  }
  .story-copy h2 {
    font-size: 25px;
  }
  .story-copy #story-text {
    font-size: 18px;
  }
  .scene-status {
    font-size: 10px;
    top: 5px;
    right: 5px;
    padding: 3px 6px;
  }
}
