/* 句子填空专属样式（公共组件、变量见 ../../style.css）
   复用护眼童趣主题：暖色底、降饱和柔和配色、大圆角 */

#app {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  align-items: start;
  width: 100%;
  max-width: 760px;
}

#sidebar {
  background: var(--panel);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.actions { display: flex; flex-direction: column; gap: 8px; }

/* 进度圆点 */
.progress-dots { display: flex; flex-wrap: wrap; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); transition: background .15s; }
.dot.current { background: var(--primary); opacity: 0.45; }
.dot.done { background: var(--primary); }

.stat-value.muted { color: var(--primary); opacity: 0.4; }

/* 主区 */
#play-area {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 26px;
  padding: 36px 24px;
  min-height: 360px;
  background: var(--panel);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/* 出题区固定高度：解析面板显隐不改变句子位置 */
.question-zone {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

/* 句子 */
.sentence {
  font-size: 22px;
  line-height: 2.2;
  text-align: center;
  color: var(--text);
  max-width: 440px;
}
.sent-text { white-space: pre-wrap; }
.blank-slot {
  display: inline-block;
  min-width: 70px;
  padding: 0 6px;
  margin: 0 2px;
  border-bottom: 2px dashed var(--primary);
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}
.blank-slot.filled {
  border-bottom-style: solid;
  background: #e8f5e9;
  border-radius: 6px 6px 0 0;
  color: #43a047;
}

/* 选项 */
.choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 380px;
}
.choice {
  padding: 14px 10px;
  font-size: 17px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 4px 12px -4px rgba(140, 100, 40, 0.18);
  transition: transform .12s, box-shadow .12s, background .12s, border-color .12s, color .12s;
}
@media (hover: hover) {
  .choice:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 20px -6px rgba(140, 100, 40, 0.28); background: #f0e9d6; }
}
.choice:active:not(:disabled) { transform: translateY(0); }
.choice.picked { border-color: #e57373; color: #e57373; background: #fdeaea; }
.choice.eliminated { opacity: 0.3; box-shadow: none; }
.choice.correct { border-color: #43a047; color: #43a047; background: #e8f5e9; }
.choice:disabled { cursor: default; }

/* 胜利弹窗记录行 */
.modal-content .win-record { color: var(--primary); font-size: 15px; min-height: 1.2em; }

/* 响应式 */
@media (max-width: 640px) {
  #app { grid-template-columns: 1fr; }
  #play-area { padding: 24px 16px; min-height: 300px; gap: 20px; }
  .question-zone { min-height: 210px; gap: 22px; }
  .sentence { font-size: 19px; }
  .choice { padding: 12px 8px; font-size: 15px; }
}
