/* 七七自学堂考试结果手机版 v6：单个动态表情在独立网格列内，不遮文字。 */
/* 强制覆盖早期“全部不换行”“固定宽度”等补丁。 */
html body #app .study999-exam-emotions {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 108px !important;
  align-items: center !important;
  justify-items: stretch !important;
  column-gap: 12px !important;
  row-gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 9px 12px !important;
  margin: 6px 0 9px !important;
  overflow: visible !important;
}
/* 左侧所有文字只在自己的网格列内流动。 */
html body #app .study999-exam-emotions .study999-exam-emotions-copy {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: center !important;
  align-content: center !important;
  justify-content: flex-start !important;
  gap: 4px 10px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  flex: initial !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  position: relative !important;
  transform: none !important;
}
html body #app .study999-exam-emotions .study999-result-score {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(17px, 2.1vw, 24px) !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}
html body #app .study999-exam-emotions .study999-exam-emotions-message {
  display: block !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: clamp(12px, 1.5vw, 16px) !important;
  line-height: 1.5 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-overflow: clip !important;
  overflow: visible !important;
}
/* 右侧动画占有独立空间，绝不盖住评语。 */
html body #app .study999-exam-emotions .study999-exam-emotions-stage {
  grid-column: 2 !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
  align-self: center !important;
  flex: initial !important;
  width: 104px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  transform: none !important;
}
/* 保留 v5 动态单表情元素；不再恢复旧的四个重叠元素。 */
html body #app .study999-exam-emotions .study999-exam-emotions-stage > .study999-v5-selected-emoji {
  display: flex !important;
  position: relative !important;
  align-items: center !important;
  justify-content: center !important;
  width: 88px !important;
  min-width: 0 !important;
  height: 88px !important;
  min-height: 0 !important;
  font-size: 72px !important;
  line-height: 1 !important;
  flex: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
}
/* 手机：标题和评语允许分行，动画仍在右侧居中。 */
@media (max-width: 720px) {
  html body #app .study999-exam-emotions {
    grid-template-columns: minmax(0, 1fr) 74px !important;
    column-gap: 7px !important;
    padding: 8px 7px !important;
  }
  html body #app .study999-exam-emotions .study999-exam-emotions-copy {
    display: flex !important;
    flex-flow: column nowrap !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 5px !important;
  }
  html body #app .study999-exam-emotions .study999-result-score {
    width: 100% !important;
    font-size: clamp(16px, 4.8vw, 21px) !important;
    line-height: 1.25 !important;
    letter-spacing: 0 !important;
  }
  html body #app .study999-exam-emotions .study999-exam-emotions-message {
    width: 100% !important;
    font-size: clamp(12px, 3.3vw, 15px) !important;
    line-height: 1.45 !important;
    letter-spacing: 0 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
  html body #app .study999-exam-emotions .study999-exam-emotions-stage {
    grid-column: 2 !important;
    width: 74px !important;
    min-width: 0 !important;
    height: 82px !important;
    min-height: 0 !important;
  }
  html body #app .study999-exam-emotions .study999-exam-emotions-stage > .study999-v5-selected-emoji {
    width: 68px !important;
    height: 68px !important;
    font-size: 54px !important;
  }
}
@media (max-width: 340px) {
  html body #app .study999-exam-emotions {
    grid-template-columns: minmax(0, 1fr) 63px !important;
    column-gap: 5px !important;
    padding: 7px 5px !important;
  }
  html body #app .study999-exam-emotions .study999-exam-emotions-stage {
    width: 63px !important;
    height: 74px !important;
  }
  html body #app .study999-exam-emotions .study999-exam-emotions-stage > .study999-v5-selected-emoji {
    width: 60px !important;
    height: 60px !important;
    font-size: 48px !important;
  }
}
