#quizScreen .quiz-body { padding-top: 12px !important; }
#quizScreen .qText { margin-top: 0 !important; }
.qText :is(.scratch-statement-toggle,.scratch-choice,.scratch-fallback-toggle):focus-visible { outline: 3px solid #2785b7; outline-offset: 3px; }
.qText .scratch-layout-item {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: .4em;
  align-items: start;
}
.qText :is(.scratch-item-content,.scratch-choice-body) { min-width: 0; overflow-wrap: anywhere; }
.qText .scratch-statement { cursor: pointer; }
.qText .scratch-statement-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  margin: 0;
  padding: 2px 7px;
  border: 1px solid #91b4cb;
  border-radius: 6px;
  background: #eef6fc;
  color: #173e58;
  font: 800 15px/1.3 -apple-system, BlinkMacSystemFont, "Yu Gothic", Meiryo, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.qText .scratch-statement-toggle .blankBox {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  box-shadow: none;
}
.qText .scratch-statement-toggle[data-scratch-state="yes"] { border-color: #308b6d; }
.qText .scratch-statement-toggle[data-scratch-state="no"] { border-color: #b95656; }
.qText .scratch-statement-toggle:not([data-scratch-state="unknown"])::after {
  content: attr(data-mark-symbol);
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: #fff;
  color: #a62e35;
  font: 800 16px/1 sans-serif;
}
.qText .scratch-statement-toggle[data-scratch-state="yes"]::after { color: #187351; }
.qText .scratch-statement[data-scratch-state="no"] > :is(.reading-item-content,.scratch-item-content),
.qText .scratch-continuation[data-scratch-state="no"] { opacity: .6; }
.qText .inlineChoice.scratch-choice {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-right: 28px !important;
  cursor: pointer;
}
.qText .scratch-choice-body { width: 100%; }
.qText .scratch-choice[data-scratch-state="no"]::after {
  content: "×";
  position: absolute;
  top: 5px;
  right: 6px;
  color: #aa303c;
  font: 800 18px/1 sans-serif;
  pointer-events: none;
}
.qText .scratch-choice[data-scratch-state="no"] .scratch-choice-body { opacity: .5; }
.qText .scratch-choice-fallback { display: flex; flex-wrap: wrap; gap: 12px; }
.qText .scratch-fallback-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #b7cbd7;
  border-radius: 6px;
  background: transparent;
  color: #526f82;
  font: 800 18px/1 sans-serif;
  cursor: pointer;
}
.qText .scratch-fallback-toggle::before { content: attr(data-choice-number); }
.qText .scratch-fallback-toggle[data-scratch-state="no"]::after { content: "×"; position: absolute; top: -9px; right: -5px; font-size: 18px; }
.dockList .choice.scratch-eliminated { position: relative; }
.dockList .choice.scratch-eliminated:not(.correct):not(.wrong) { color: #71818b; }
.dockList .choice.scratch-eliminated::after {
  content: attr(data-scratch-memo);
  position: absolute;
  top: 3px;
  right: 9px;
  color: #ab3540;
  font: 800 17px/1 sans-serif;
  pointer-events: none;
}
html[data-color-mode="dark"] .qText :is(.scratch-statement-toggle,.scratch-fallback-toggle) { color: #f2f2f2; background: #222; border-color: #606970; }
html[data-color-mode="dark"] .qText .scratch-statement-toggle::after { background: #292020; color: #ffb4b4; border-color: #b57878; }
html[data-color-mode="dark"] .qText .scratch-statement-toggle[data-scratch-state="yes"]::after { background: #173a2e; color: #9bddc2; border-color: #629b86; }
html[data-color-mode="dark"] .qText .scratch-choice[data-scratch-state="no"]::after { color: #ffb4b4; }
html[data-color-mode="dark"] .dockList .choice.scratch-eliminated::after { color: #ffb4b4; }
@media (hover: hover) {
  .qText :is(.scratch-statement-toggle,.scratch-fallback-toggle):hover { border-color: #4389ad; box-shadow: 0 0 0 2px #4389ad30; }
}
