/* Vocabulary SunePlay shell — layout overrides (load after sune-play-lesson.css) */

.sp-lesson-mount--enter {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.sp-lesson-mount--enter.sp-lesson-mount--enter-active {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .sp-lesson-mount--enter {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) {
  min-height: 100dvh;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) #app,
body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) .app-container,
body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) #main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) .dashboard-layout--lesson-focus {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
  padding: 0 !important;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) .dashboard-layout--lesson-focus > .dashboard-center.course-center--lesson-focus {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  max-width: 880px;
  margin-inline: auto;
  margin-left: auto;
  padding: 0;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) #feCenterSection.fe-section--vocab-exercise {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) #feCenterSection .sp-lesson-mount,
body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) #feCenterSection .sp-lesson,
body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) #feCenterSection .sp-practice-session {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  height: 100%;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) #feCenterSection .sp-practice-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-screen--conversation-gap) #feCenterSection .sp-practice-main,
body:has(#feCenterSection.fe-section--vocab-exercise .pv-conv-story-wrap--fill) #feCenterSection .sp-practice-main,
body:has(#feCenterSection.fe-section--vocab-exercise .pv-conv-story-wrap--drag) #feCenterSection .sp-practice-main,
body:has(#feCenterSection.fe-section--vocab-exercise .pv-conv-story-wrap--listen) #feCenterSection .sp-practice-main {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-screen--conversation-gap) #feCenterSection .sp-practice-body,
body:has(#feCenterSection.fe-section--vocab-exercise .pv-conv-story-wrap--drag) #feCenterSection .sp-practice-body,
body:has(#feCenterSection.fe-section--vocab-exercise .pv-conv-story-wrap--listen) #feCenterSection .sp-practice-body {
  flex: 1 1 0;
  height: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:has(#feCenterSection.fe-section--vocab-exercise .sp-screen--conversation-gap) #feCenterSection .sp-exercise-card,
body:has(#feCenterSection.fe-section--vocab-exercise .pv-conv-story-wrap--drag) #feCenterSection .sp-exercise-card,
body:has(#feCenterSection.fe-section--vocab-exercise .pv-conv-story-wrap--listen) #feCenterSection .sp-exercise-card {
  overflow: hidden;
  flex: 1 1 0;
  height: 0;
  min-height: 0;
}

@media (min-width: 768px) {
  body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) .dashboard-layout--lesson-focus > .dashboard-center.course-center--lesson-focus {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  body:has(#feCenterSection.fe-section--vocab-exercise .sp-lesson-mount) .dashboard-center.course-center--lesson-focus.fe-vocab-sp-center {
    min-height: 0;
    max-height: 100dvh;
  }
}
