/* 课堂卡片随机冷测；cct- 命名空间避免影响其他学生页面。 */

.cct-intro {
  text-align: center;
}

.cct-kicker {
  margin-bottom: 6px;
  color: #a29bfe;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.cct-entry {
  border-color: rgba(116, 185, 255, .28);
  background:
    linear-gradient(145deg, rgba(116, 185, 255, .09), transparent 58%),
    rgba(34, 34, 64, .96);
}

.cct-entry-title {
  color: var(--text, #e8e8f0);
  font-size: 16px;
  font-weight: 900;
}

.cct-entry .ccs-muted {
  margin-bottom: 14px;
}

.cct-question {
  padding: 16px;
}

.cct-progress {
  margin-bottom: 14px;
  color: var(--muted, #8888aa);
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.cct-html {
  overflow-wrap: anywhere;
  color: var(--text, #e8e8f0);
  line-height: 1.65;
}

.cct-html p,
.cct-html div {
  margin: .2em 0;
}

.cct-question-html {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px 18px;
  border: 1px solid rgba(162, 155, 254, .2);
  border-radius: 15px;
  background: rgba(15, 15, 26, .48);
  font-size: clamp(18px, 5vw, 26px);
}

.cct-options {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}

.cct-button {
  min-height: 46px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.cct-button:focus-visible {
  outline: 3px solid rgba(162, 155, 254, .58);
  outline-offset: 3px;
}

.cct-button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.cct-option {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid rgba(162, 155, 254, .24);
  background: rgba(255, 255, 255, .045);
  color: var(--text, #e8e8f0);
  text-align: left;
}

.cct-option-letter {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(162, 155, 254, .13);
  color: #dcd8ff;
  font-size: 13px;
  font-weight: 900;
}

.cct-option-html {
  min-width: 0;
  font-size: 15px;
}

.cct-forgot {
  width: 100%;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px dashed rgba(253, 203, 110, .38);
  background: rgba(253, 203, 110, .07);
  color: #ffe09a;
  font-weight: 850;
}

.cct-waiting {
  margin: 9px 0 0;
  color: var(--muted, #8888aa);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cct-result {
  text-align: center;
}

.cct-result.is-correct {
  border-color: rgba(0, 184, 148, .38);
}

.cct-result.is-incorrect {
  border-color: rgba(253, 203, 110, .38);
}

.cct-result.is-contaminated {
  border-color: rgba(167, 139, 250, .42);
}

.cct-result-title,
.cct-error-title {
  color: var(--text, #e8e8f0);
  font-size: 18px;
  font-weight: 900;
}

.cct-reference-label {
  margin-top: 16px;
  color: #8ff0d3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}

.cct-reference {
  margin-top: 7px;
  padding: 15px;
  border-radius: 12px;
  background: rgba(0, 184, 148, .08);
  color: #d9fff5;
  font-size: 17px;
}

.cct-result-note {
  margin: 12px 0 0;
  color: var(--muted, #8888aa);
  font-size: 12px;
  line-height: 1.55;
}

.cct-primary,
.cct-secondary {
  width: 100%;
  margin-top: 15px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 850;
}

.cct-primary {
  border: 0;
  background: linear-gradient(135deg, #6c5ce7, #8275ef);
  color: #fff;
}

.cct-secondary {
  border: 1px solid var(--border, #2d2d5a);
  background: transparent;
  color: var(--muted, #8888aa);
}

.cct-complete,
.cct-empty,
.cct-error {
  text-align: center;
}

.cct-complete-icon {
  margin-bottom: 10px;
  color: #8ff0d3;
  font-size: 38px;
  line-height: 1;
}

.cct-score {
  margin-top: 14px;
  color: #a29bfe;
  font-size: 34px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.cct-error {
  border-color: rgba(255, 107, 107, .4);
}

@media (max-width: 390px) {
  .cct-question {
    padding: 13px;
  }

  .cct-question-html {
    padding: 18px 14px;
  }
}
