/* A full slide: stable scene above a compact caption and input band. */
body.math-slides {
  background: #f5f8fa;
  color: #18302b;
}
.math-slides .mast,
.math-slides #questEye,
.math-slides #questTitle,
.math-slides #questFixes,
.math-slides #questKept,
.math-slides #questWhere,
.math-slides .class-link-row,
.math-slides .world-caption,
.math-slides .world-status,
.math-slides .world-hotspots,
.math-slides #worldZoom,
.math-slides #questVoice {
  display: none;
}
body.math-slides .quest-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  gap: 0;
  width: 100%;
  max-width: 1440px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 0;
}
.math-slides .quest-world {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, calc((100svh - 260px) * 16 / 9));
  margin: 0 auto;
  min-width: 0;
  position: relative;
  top: auto;
}
.math-slides .world-stage {
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  width: 100%;
}
.math-slides .world-stage canvas {
  width: 100%;
  height: 100%;
}
.math-slides .quest-conversation {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: 820px;
  min-width: 0;
  margin: 0 auto;
  padding: 12px 20px 20px;
  box-sizing: border-box;
  height: 260px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
.math-slides .quest-beat {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.math-slides .guide-line {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}
.math-slides .beat-body {
  margin: 0;
}
.math-slides .check-talk {
  display: none;
}
.math-slides .check-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.math-slides .check-row {
  margin: 0;
  width: 170px;
  min-width: 0;
}
.math-slides #checkValue {
  min-width: 0;
  width: 92px;
  height: 44px;
  box-sizing: border-box;
}
.math-slides .cta-row {
  margin: 0;
  gap: 8px;
  min-height: 44px;
  flex-wrap: wrap;
}
.math-slides .beat-acts {
  margin-top: 8px;
}
.math-slides .hint {
  margin: 0;
  font-size: 16px;
}
.math-slides .hint:empty {
  display: none;
}
.math-slides .check-note {
  min-height: 20px;
  margin: 4px 0;
}
.math-slides .math-slide-captions {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
}
.math-slides .math-slide-captions summary {
  cursor: pointer;
  width: fit-content;
  padding: 4px 0;
}
.math-slides .math-slide-captions p {
  margin: 8px 0 0;
  max-width: 64ch;
  overflow-wrap: anywhere;
}
.math-slides .math-slide-solution {
  font-size: 24px;
  line-height: 1.2;
  min-height: 29px;
  margin: 4px 0;
}
.math-slides .stage-equation {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: 0;
}
@media (max-width: 700px) {
  .math-slides .quest-conversation {
    padding: 12px 16px 16px;
  }
  .math-slides .guide-line {
    font-size: 22px;
  }
}
@media (max-height: 600px) {
  .math-slides .quest-world {
    width: 100%;
    max-width: 640px;
  }
}
