.app-shell > .panel.true-false {
  max-width: 900px !important;
  padding: clamp(18px, 3.2vw, 42px);
  color: #112a4c;
  background: #f9fcff;
  border-top: 4px solid color-mix(in srgb, var(--bq-mode-accent) 62%, #d9e5f1);
}

.true-false[hidden], .true-false [hidden], .true-false-result[hidden] { display: none !important; }

.true-false-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 18px;
  margin-bottom: 20px;
}

.true-false h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.2;
}

.true-false-mode-icon {
  flex: none;
  width: clamp(34px, 5.5vw, 48px);
  aspect-ratio: 1;
  object-fit: contain;
}

#true-false-cutoff {
  margin: 0;
  color: #496482;
  font-size: .82rem;
  font-weight: 650;
}

.true-false-start {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 240px;
  gap: 18px;
  text-align: center;
}

#true-false-instructions {
  margin: 0;
  color: #344b65;
  font-size: clamp(18px, 3vw, 23px);
  font-weight: 800;
}

#true-false-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.true-false-primary {
  min-width: min(100%, 216px);
  min-height: 50px;
}

.true-false-meter {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  min-height: 2.35rem;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
}

.true-false-meter time {
  grid-column: 3;
  justify-self: end;
  color: #155aa6;
  font-size: 1.55rem;
  font-weight: 900;
}

.true-false-streak {
  grid-column: 2;
  color: #ce203c;
  font-size: clamp(.875rem, 2.8vw, 1.125rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.true-false-streak[data-level="2"] { font-size: clamp(1.0625rem, 3.3vw, 1.4375rem); }
.true-false-streak[data-level="3"] { font-size: clamp(1.25rem, 3.8vw, 1.75rem); }

@media (prefers-reduced-motion: no-preference) {
  .true-false-streak[data-pulse] { animation: true-false-streak-pulse .3s ease-out both; }
  @keyframes true-false-streak-pulse {
    0% { transform: translateY(3px) scale(.86); opacity: .5; }
    50% { transform: translateY(-2px) scale(1.13); opacity: 1; }
    100% { transform: none; opacity: 1; }
  }
}

.true-false-meter time::after { content: 's'; margin-left: .22em; font-size: .65em; }
.true-false-play[data-urgent="true"] time { color: #a82437; }

.true-false-track {
  height: 9px;
  margin-block: 7px 14px;
  overflow: hidden;
  border-radius: 9px;
  background: #dce7f3;
}

.true-false-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: #278be8;
  transform-origin: left center;
}

.true-false-play[data-urgent="true"] .true-false-track span { background: #d33e50; }

.true-false-question {
  display: block;
  min-height: 4.2em;
  align-content: center;
  margin: 0;
  padding: 12px 4px;
  font-size: clamp(20px, 3.4vw, 30px);
  line-height: 1.55;
  font-weight: 750;
  overflow-wrap: anywhere;
  line-break: strict;
}

.true-false-subject { color: #0d57a9; font-weight: 900; }
.true-false:lang(ja) .bquiz-team-name { white-space: nowrap; }
.true-false-letter { visibility: hidden; }
.true-false-letter[data-visible] { visibility: visible; }

.true-false-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

.true-false-action-area {
  --true-false-answer-height: clamp(76px, 10vw, 96px);
  display: grid;
  min-height: var(--true-false-answer-height);
}
.true-false-action-area > * { grid-area: 1 / 1; min-width: 0; }

.true-false-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 16px);
}

.true-false-actions button {
  min-height: var(--true-false-answer-height);
  padding: 0 .16em .08em;
  border: 2px solid currentColor;
  border-radius: 16px;
  color: #1168b8;
  background: #e8f4ff;
  box-shadow: 0 3px 0 #cfe3fa;
  font: inherit;
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  cursor: pointer;
  touch-action: manipulation;
}

.true-false-actions button[data-choice="no"] {
  color: #a23049;
  background: #ffeef2;
  box-shadow: 0 3px 0 #f4d9df;
}

.true-false-actions button:disabled { cursor: default; }
.true-false-play[data-phase="reveal"] button { opacity: .5; }
.true-false-play[data-phase="answer"] button:hover,
.true-false-play[data-phase="answer"] button:active { color: #fff; background: #1269bc; }

.true-false-play[data-phase="answer"] button[data-choice="no"]:hover,
.true-false-play[data-phase="answer"] button[data-choice="no"]:active { background: #ac3048; }

.true-false-play[data-phase="feedback"] .true-false-actions { display: none; }

.true-false-feedback {
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 7px 12px;
  border: 2px solid transparent;
  border-radius: 16px;
  pointer-events: none;
  overflow-wrap: anywhere;
}

.true-false-feedback[data-result="correct"] {
  color: #146348;
  border-color: #5ab895;
  background: #effbf4;
}

.true-false-feedback[data-result="miss"] {
  color: #a3243f;
  border-color: #dc8795;
  background: #fff1f3;
}

.true-false-verdict {
  font-size: clamp(27px, 5vw, 42px);
  font-weight: 950;
  line-height: 1.05;
}

.true-false-feedback-details {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 9px;
  text-align: center;
  font-size: .88rem;
  font-weight: 750;
}

.true-false-evidence { color: #425c76; }

.true-false-result .result-answer-card__facts { display: block; }
.true-false-result .result-answer-card__group-title { justify-self: start; text-align: start; }
#true-false-review-title:focus { outline: none; }

.true-false-review {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#true-false-review { gap: 8px; }

@media (max-width: 900px) {
  .true-false-result .result-summary-card { grid-row: 1; }
}

.true-false-review-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 10px;
  padding: 8px 2px;
  border-top: 1px solid #d8e3ef;
  overflow-wrap: anywhere;
}

.true-false-review-row[data-result] {
  grid-template-columns: 2.8ch minmax(0, 1fr);
  padding: 9px 12px;
  border: 3px solid;
  border-radius: 12px;
  background: #fff;
}

.true-false-review-row[data-result="correct"] { border-color: #07964e; }
.true-false-review-row[data-result="miss"] { border-color: #dc304c; }

.true-false-review-row p { margin: 0; line-height: 1.45; font-weight: 700; }
.true-false-review-number {
  color: #395579;
  font-variant-numeric: tabular-nums;
  font-size: .86rem;
  line-height: 1.6;
  white-space: nowrap;
}
.true-false-review-answers {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 4px 12px;
  max-width: 19rem;
  margin: 4px 0 2px;
  color: #395579;
  font-size: .82rem;
  line-height: 1.3;
  font-weight: 700;
}

.true-false-review-answers > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 7px;
}

.true-false-review-answers dd {
  margin: 0;
  color: #112a4c;
  font-size: .95rem;
  font-weight: 900;
}

.true-false-sign[data-truth="true"] { color: #1562a8; }
.true-false-sign[data-truth="false"] { color: #a02642; }

.true-false-sample-group { padding: 12px 0 16px; }
.true-false-sample-group h2 { margin: 0 0 7px; font-size: 1.14rem; }
.true-false-sample-list h3 { margin: 0 0 4px; font-size: .9rem; font-weight: 800; }

.true-false-sample-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.true-false-sample-list {
  padding: 10px 12px;
  border: 1px solid #dce8f5;
  border-radius: 12px;
  background: #f0f7ff;
}

.true-false-sample-list[data-truth="false"] { background: #fff4f6; border-color: #f4dce4; }

.true-false-link {
  display: inline-block;
  margin-top: 11px;
  color: #185d9d;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .22em;
}

@media (max-width: 540px) {
  .true-false-heading { margin-bottom: 12px; }
  .true-false-question { min-height: 5.6em; }
  .true-false-feedback { flex-direction: column; }
  .true-false-sample-columns { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

@media (max-height: 480px) and (orientation: landscape) {
  .true-false-start { min-height: 145px; }
  .true-false-question { min-height: 3.7em; font-size: clamp(18px, 3vw, 25px); }
  .true-false-action-area { --true-false-answer-height: 60px; }
}
