/**
 * TBT Test Maker — the student page ([tbt_test]).
 *
 * Follows docs/prototypes/student.html. Tokens only; the --tbttm-* values are
 * defined once in common.css.
 */

.tbttm--player {
	max-width: 1080px;
	margin: 0 auto;
}

.tbttm .tbttm-player {
	min-height: 200px;
}

/* ---------- The card ----------
   One stage card carries the whole sitting, with the plugin colour as a bar
   across its top, as the teacher page's numbered stages have. */

.tbttm .tbttm-player {
	border-top: 5px solid var(--tbttm-accent);
	overflow: hidden;
}

/* ---------- Title above the card (once the test has started) ----------
   No Tool Hero on this page: the Divi page carries the TBT header. Before
   the start, the title and introduction live on the cover inside the card,
   so this line stays hidden; once the student starts, the title alone
   stays above the questions. */

.tbttm .tbttm-head {
	display: none;
}

.tbttm.is-started .tbttm-head {
	display: block;
}

.tbttm.is-started .tbttm-head__intro {
	display: none;
}

.tbttm .tbttm-head .tbttm-head__title {
	font-size: 24px;
}

/* ---------- Start screen: the test's cover ---------- */

/* The feature picture runs edge to edge across the top of the card. */
.tbttm .tbttm-cover {
	margin: -40px -40px 0;
	padding: 0;
	aspect-ratio: 16 / 7;
	max-height: 380px;
	overflow: hidden;
	background: var(--tbt-selected-bg);
}

.tbttm .tbttm-cover img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
}

.tbttm .tbttm-start {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tbttm .tbttm-section-title.tbttm-start__title {
	font-size: 34px;
	line-height: 1.15;
	text-wrap: balance;
}

.tbttm .tbttm-start__intro {
	max-width: 62ch;
	margin: 4px 0 0;
	color: var(--tbt-muted);
	font-family: var(--tbt-font-content);
	font-size: 18px;
	line-height: 1.55;
}

.tbttm .tbttm-lead {
	max-width: 62ch;
	margin: 0;
	padding-top: 24px;
	border-top: 1px solid var(--tbt-border);
	color: var(--tbt-ink);
	font-size: 16px;
	line-height: 1.55;
}

/* Where a returning student stands: a pale panel with a progress bar. */
.tbttm .tbttm-resume {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 20px;
	border: 1px solid var(--tbt-border);
	border-radius: var(--tbt-radius-card);
	background: var(--tbt-selected-bg);
}

.tbttm .tbttm-resume p {
	margin: 0;
	color: var(--tbt-ink);
}

.tbttm .tbttm-meter {
	height: 8px;
	overflow: hidden;
	border-radius: var(--tbt-radius-pill);
	background: var(--tbt-surface);
	box-shadow: inset 0 0 0 1px var(--tbt-border);
}

.tbttm .tbttm-meter i {
	display: block;
	height: 100%;
	border-radius: var(--tbt-radius-pill);
	background: var(--tbt-blue);
}

/* The facts as quiet chips. */
.tbttm .tbttm-facts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbttm .tbttm-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 6px 14px;
	border: 1px solid var(--tbt-border);
	border-radius: var(--tbt-radius-pill);
	background: var(--tbt-surface);
	color: var(--tbt-muted);
	font-size: 14px;
	line-height: 1.3;
}

.tbttm .tbttm-chip strong {
	color: var(--tbt-ink);
	font-weight: 700;
}

.tbttm .tbttm-chip svg {
	color: var(--tbt-success);
}

.tbttm .tbttm-start__actions {
	padding-top: 8px;
}

/* A guest's name, asked above the START button on an open test. */
.tbttm .tbttm-name {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 420px;
}

.tbttm .tbttm-name__label {
	color: var(--tbt-ink);
	font-family: var(--tbt-font-content);
	font-size: 16px;
	font-weight: 700;
}

.tbttm .tbttm-name__input {
	display: block;
	width: 100%;
	height: 48px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid var(--tbt-border);
	border-radius: var(--tbt-radius-control);
	background: var(--tbt-input);
	color: var(--tbt-ink);
	font-family: var(--tbt-font-ui);
	font-size: 16px;
	line-height: 1.5;
	box-shadow: none;
}

.tbttm .tbttm-name__input:focus {
	border-color: var(--tbt-blue);
	background: var(--tbt-surface);
	box-shadow: var(--tbt-focus-ring);
	outline: none;
}

.tbttm .tbttm-name__hint {
	color: var(--tbt-muted);
	font-size: 15px;
	line-height: 1.5;
}

/* Your name, then Your email: the same field twice, a step apart. */
.tbttm .tbttm-name + .tbttm-name {
	margin-top: -8px;
}

.tbttm .tbttm-name.is-bad .tbttm-name__input {
	border-color: var(--tbt-error);
	background: var(--tbt-error-bg);
}

.tbttm .tbttm-name.is-bad .tbttm-name__hint {
	color: var(--tbt-error);
	font-weight: 600;
}

.tbttm .tbttm-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

/* ---------- Tiles ---------- */

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

.tbttm .tbttm-tiles {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tbttm .tbttm-tiles__row {
	display: grid;
	flex: 1;
	gap: 8px;
	min-width: 0;
}

.tbttm .tbttm-tiles__page {
	flex: none;
	width: 32px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--tbt-blue);
	font-size: 22px;
	line-height: 1;
}

.tbttm .tbttm-tiles__page:hover {
	background: var(--tbt-selected-bg);
}

.tbttm .tbttm-tiles__page:disabled {
	opacity: .3;
	cursor: default;
	background: none;
}

.tbttm .tbttm-tiles__page:focus-visible {
	box-shadow: var(--tbt-focus-ring);
	outline: none;
}

/* Question tiles, in the Matching Game's card style (tbt_matching_game,
   game.css .tbtmg-card): a raised card with a 2px blue border, a white-to-
   pale-blue gradient and a blue-tinted shadow while the question is open;
   flattened once it is answered, as a matched card is; green or red once it
   is checked. The Matching Game writes its shadows in rgba(); here they are
   built from the tokens with color-mix(), so no colour is defined. */
.tbttm .tbttm-tile {
	--tbttm-tile-shadow: 0 8px 20px color-mix(in srgb, var(--tbt-blue) 16%, transparent),
		0 2px 5px color-mix(in srgb, var(--tbt-ink) 8%, transparent);
	--tbttm-tile-shadow-up: 0 11px 26px color-mix(in srgb, var(--tbt-blue) 22%, transparent),
		0 3px 7px color-mix(in srgb, var(--tbt-ink) 10%, transparent);
	--tbttm-tile-ring: 0 0 0 2px var(--tbt-surface), 0 0 0 4px var(--tbt-blue-dark);

	min-width: 0;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 2px solid var(--tbt-blue);
	border-radius: 14px;
	background: linear-gradient(145deg, var(--tbt-surface) 0%, var(--tbt-selected-bg) 100%);
	box-shadow: var(--tbttm-tile-shadow);
	color: var(--tbt-ink);
	font-family: var(--tbt-font-content);
	font-size: 15px;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tbttm .tbttm-tile:hover,
.tbttm .tbttm-tile:focus-visible {
	border-color: var(--tbt-blue-dark);
	box-shadow: var(--tbttm-tile-shadow-up);
	outline: none;
	transform: translateY(-2px);
}

.tbttm .tbttm-tile--gap {
	visibility: hidden;
}

/* Answered: filled solid blue, flat, so a glance at the row shows what is
   done and what is still open. */
.tbttm .tbttm-tile.is-done {
	border-color: var(--tbt-blue);
	background: var(--tbt-blue);
	box-shadow: none;
	color: var(--tbt-surface);
}

/* Checked and right: the matched card. */
.tbttm .tbttm-tile.is-good {
	border-color: color-mix(in srgb, var(--tbt-success) 65%, transparent);
	background: var(--tbt-success-bg);
	box-shadow: none;
	color: var(--tbt-success);
}

/* Checked and wrong: the card the Matching Game shakes on a wrong match. */
.tbttm .tbttm-tile.is-bad {
	border-color: var(--tbt-error);
	background: var(--tbt-error-bg);
	box-shadow: none;
	color: var(--tbt-error);
}

.tbttm .tbttm-tile.is-done:hover,
.tbttm .tbttm-tile.is-good:hover,
.tbttm .tbttm-tile.is-bad:hover {
	box-shadow: var(--tbttm-tile-shadow-up);
}

/* The current question keeps a ring outside the card, over whichever state. */
.tbttm .tbttm-tile.is-here,
.tbttm .tbttm-tile.is-here:hover {
	border-color: var(--tbt-blue-dark);
	box-shadow: var(--tbttm-tile-ring), var(--tbttm-tile-shadow-up);
}

.tbttm .tbttm-tile.is-here.is-done,
.tbttm .tbttm-tile.is-here.is-good,
.tbttm .tbttm-tile.is-here.is-bad {
	box-shadow: var(--tbttm-tile-ring);
}

.tbttm .tbttm-tile.is-here.is-good {
	border-color: var(--tbt-success);
}

.tbttm .tbttm-tile.is-here.is-bad {
	border-color: var(--tbt-error);
}

/* First answer: the Matching Game's match pop. */
.tbttm .tbttm-tile.is-pop {
	animation: tbttm-tilepop .42s ease;
}

.tbttm .tbttm-tile.is-pop.is-bad {
	animation: tbttm-tilejitter .38s ease;
}

@keyframes tbttm-tilepop {
	0% { transform: scale(.98); }
	55% { transform: scale(1.06); }
	100% { transform: scale(1); }
}

@keyframes tbttm-tilejitter {
	0%, 100% { transform: translateX(0); }
	18% { transform: translateX(-4px); }
	36% { transform: translateX(4px); }
	54% { transform: translateX(-3px); }
	72% { transform: translateX(2px); }
	90% { transform: translateX(-1px); }
}

/* ---------- Count line ---------- */

.tbttm .tbttm-count {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 16px;
	color: var(--tbttm-faint);
	font-size: 13px;
}

.tbttm .tbttm-saved {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--tbttm-faint);
}

.tbttm .tbttm-saved.is-off {
	color: var(--tbt-error);
	font-weight: 600;
}

/* ---------- Question ---------- */

.tbttm .tbttm-bull {
	display: block;
	width: 100%;
	border-radius: var(--tbt-radius-control);
}

.tbttm .tbttm-qnum {
	margin: 0;
	padding: 4px 0 4px 16px;
	border-left: 6px solid var(--tbttm-accent);
	color: var(--tbt-ink);
	font-family: var(--tbt-font-content);
	font-size: 28px;
	font-weight: 700;
	line-height: 1;
}

.tbttm .tbttm-qbody {
	display: flex;
	flex-direction: column;
	gap: 4px;
	color: var(--tbt-ink);
	font-family: var(--tbt-font-content);
	font-size: 20px;
	line-height: 1.6;
}

.tbttm .tbttm-qbody p {
	margin: 0;
	padding: 0;
	font: inherit;
	color: inherit;
}

.tbttm .tbttm-qbody .tbttm-qbody__gap {
	height: 12px;
}

.tbttm .tbttm-qbody strong {
	font-weight: 700;
}

.tbttm .tbttm-opts {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0;
	padding: 0;
	border: 0;
}

.tbttm .tbttm-opt {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--tbt-border);
	border-radius: var(--tbt-radius-control);
	background: var(--tbt-surface);
	color: var(--tbt-ink);
	font-family: var(--tbt-font-content);
	font-size: 18px;
	line-height: 1.4;
	cursor: pointer;
}

.tbttm .tbttm-opt:hover {
	background: var(--tbt-selected-bg);
}

.tbttm .tbttm-opt input {
	display: grid;
	flex: none;
	place-content: center;
	width: 20px;
	height: 20px;
	margin: 0;
	border: 2px solid var(--tbt-muted);
	border-radius: 50%;
	background: var(--tbt-surface);
	-webkit-appearance: none;
	appearance: none;
}

.tbttm .tbttm-opt input:checked {
	border-color: var(--tbt-blue);
}

.tbttm .tbttm-opt input:checked::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--tbt-blue);
}

.tbttm .tbttm-opt.is-chosen {
	border-color: var(--tbt-blue);
	background: var(--tbt-selected-bg);
}

.tbttm .tbttm-opt:has(input:focus-visible) {
	box-shadow: var(--tbt-focus-ring);
}

.tbttm .tbttm-opts.is-locked .tbttm-opt {
	cursor: default;
}

.tbttm .tbttm-opts.is-locked .tbttm-opt:hover {
	background: var(--tbt-surface);
}

.tbttm .tbttm-opts.is-locked .tbttm-opt.is-right,
.tbttm .tbttm-opts.is-locked .tbttm-opt.is-right:hover {
	border-color: var(--tbt-success);
	background: var(--tbt-success-bg);
}

.tbttm .tbttm-opts.is-locked .tbttm-opt.is-wrong,
.tbttm .tbttm-opts.is-locked .tbttm-opt.is-wrong:hover {
	border-color: var(--tbt-error);
	background: var(--tbt-error-bg);
}

.tbttm .tbttm-opt__tag {
	margin-left: auto;
	font-family: var(--tbt-font-ui);
	font-size: 14px;
	font-weight: 600;
}

.tbttm .tbttm-opt.is-right .tbttm-opt__tag {
	color: var(--tbt-success);
}

.tbttm .tbttm-opt.is-wrong .tbttm-opt__tag {
	color: var(--tbt-error);
}

/* ---------- Notices ---------- */

.tbttm .tbttm-notice {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	padding: 16px;
	border: 1px solid var(--tbt-border);
	border-radius: var(--tbt-radius-control);
	background: var(--tbt-selected-bg);
	color: var(--tbt-ink);
}

.tbttm .tbttm-notice p {
	flex: 1;
	min-width: 220px;
	margin: 0;
}

.tbttm .tbttm-notice--ok {
	border-color: var(--tbt-success);
	background: var(--tbt-success-bg);
	color: var(--tbt-success);
}

.tbttm .tbttm-notice--error {
	border-color: var(--tbt-error);
	background: var(--tbt-error-bg);
	color: var(--tbt-error);
}

.tbttm .tbttm-notice--error .tbttm-btn {
	border-color: var(--tbt-error);
	color: var(--tbt-error);
}

/* ---------- Result ---------- */

.tbttm .tbttm-pill {
	display: inline-block;
	margin-bottom: 12px;
	padding: 4px 12px;
	border-radius: var(--tbt-radius-pill);
	font-family: var(--tbt-font-ui);
	font-size: 14px;
	font-weight: 600;
}

.tbttm .tbttm-pill--pass {
	background: var(--tbt-success-bg);
	color: var(--tbt-success);
}

.tbttm .tbttm-pill--fail {
	background: var(--tbt-error-bg);
	color: var(--tbt-error);
}

/* Whose result it is, above the score. */
.tbttm .tbttm-result__name {
	margin: 12px 0 0;
	color: var(--tbt-ink);
	font-family: var(--tbt-font-content);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.tbttm .tbttm-score {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px 24px;
	margin-top: 16px;
}

.tbttm .tbttm-score__big {
	color: var(--tbt-blue);
	font-family: var(--tbt-font-content);
	font-size: 64px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.tbttm .tbttm-score__pct {
	color: var(--tbt-muted);
	font-family: var(--tbt-font-content);
	font-size: 22px;
	font-weight: 600;
}

.tbttm .tbttm-comment {
	margin: 16px 0 0;
}

.tbttm .tbttm-review {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tbttm .tbttm-review__item {
	display: grid;
	grid-template-columns: 32px 1fr;
	gap: 4px 12px;
	margin: 0;
	padding: 16px 0;
	border-top: 1px solid var(--tbt-border);
}

.tbttm .tbttm-review__mark {
	display: grid;
	place-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	font-size: 15px;
	font-weight: 700;
}

.tbttm .tbttm-review__item.is-ok .tbttm-review__mark {
	background: var(--tbt-success-bg);
	color: var(--tbt-success);
}

.tbttm .tbttm-review__item.is-bad .tbttm-review__mark {
	background: var(--tbt-error-bg);
	color: var(--tbt-error);
}

.tbttm .tbttm-review__q {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-family: var(--tbt-font-content);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}

.tbttm .tbttm-review__q p {
	margin: 0;
}

.tbttm .tbttm-review__a {
	grid-column: 2;
	min-width: 0;
	color: var(--tbt-muted);
	font-size: 15px;
}

.tbttm .tbttm-review__a b {
	font-weight: 600;
}

.tbttm .tbttm-review__item.is-ok .tbttm-review__a b,
.tbttm .tbttm-review__a b.is-right {
	color: var(--tbt-success);
}

.tbttm .tbttm-review__a b.is-yours {
	color: var(--tbt-error);
}

/* ---------- Fill in the gaps ---------- */

/* The instruction above a one-question gap test. */
.tbttm .tbttm-ask {
	margin: 0 0 -16px;
	font-size: 16px;
	line-height: 1.5;
}

/* Room for the fields between the lines. */
.tbttm .tbttm-qbody--gaps p {
	line-height: 2.3;
}

/* The gap: a text field inside the sentence, in the body's own font. Its
   width is set inline from what is typed (at least 9 characters), never
   from the answer. Divi styles text inputs heavily, so every property it
   touches is set here, with enough specificity to win without !important. */
.tbttm .tbttm-qbody input.tbttm-gap {
	display: inline-block;
	width: 9ch;
	min-width: 9ch;
	max-width: 100%;
	height: 1.9em;
	margin: 0 2px;
	padding: 0 10px;
	border: 1px solid var(--tbt-border);
	border-bottom: 2px solid var(--tbt-blue);
	border-radius: 8px;
	background: var(--tbt-input);
	box-shadow: none;
	color: var(--tbt-blue-dark);
	font-family: var(--tbt-font-content);
	font-size: 1em;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	vertical-align: baseline;
	-webkit-appearance: none;
	appearance: none;
}

.tbttm .tbttm-qbody input.tbttm-gap:focus {
	border-color: var(--tbt-blue);
	background: var(--tbt-surface);
	box-shadow: var(--tbt-focus-ring);
	color: var(--tbt-blue-dark);
	outline: none;
}

/* A checked gap keeps its full colour: browsers fade disabled fields. */
.tbttm .tbttm-qbody input.tbttm-gap:disabled {
	opacity: 1;
	-webkit-text-fill-color: currentColor;
	cursor: default;
}

.tbttm .tbttm-qbody input.tbttm-gap.is-right {
	border-color: var(--tbt-success);
	background: var(--tbt-success-bg);
	color: var(--tbt-success);
}

.tbttm .tbttm-qbody input.tbttm-gap.is-wrong {
	border-color: var(--tbt-error);
	background: var(--tbt-error-bg);
	color: var(--tbt-error);
}

/* The result: the text with the student's words put back in. */
.tbttm .tbttm-review__q--gaps {
	font-weight: 400;
	line-height: 1.9;
}

@media (max-width: 640px) {
	.tbttm .tbttm-cover {
		margin: -24px -24px 0;
		aspect-ratio: 16 / 9;
	}

	.tbttm .tbttm-section-title.tbttm-start__title {
		font-size: 28px;
	}

	.tbttm .tbttm-start__intro {
		font-size: 17px;
	}

	.tbttm .tbttm-qbody {
		font-size: 18px;
	}

	.tbttm .tbttm-opt {
		font-size: 16px;
	}

	.tbttm .tbttm-tiles,
	.tbttm .tbttm-tiles__row {
		gap: 4px;
	}

	.tbttm .tbttm-tiles__page {
		width: 24px;
	}

	.tbttm .tbttm-tile {
		height: 40px;
		border-radius: 10px;
		font-size: 13px;
	}

	.tbttm .tbttm-row .tbttm-btn {
		flex: 1 1 auto;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tbttm .tbttm-tile {
		transition: none;
	}

	.tbttm .tbttm-tile:hover,
	.tbttm .tbttm-tile:focus-visible {
		transform: none;
	}

	.tbttm .tbttm-tile.is-pop {
		animation: none;
	}
}

/* ---------- Teacher Mode (0.7.0) ----------
   Follows docs/prototypes/teacher-mode.html, with the spec's tokens. Only a
   test manager sees the switch; Teacher Mode frames the card in blue and
   shows the answers read-only. */

.tbttm .tbttm-modebar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
}

/* The cover runs to the card's edges, but never over the switch. */
.tbttm .tbttm-modebar + .tbttm-cover {
	margin-top: 0;
}

.tbttm .tbttm-seg {
	display: inline-flex;
	padding: 4px;
	border: 1px solid var(--tbt-border);
	border-radius: var(--tbt-radius-pill);
	background: var(--tbt-input);
}

.tbttm .tbttm-seg .tbttm-seg__btn {
	height: 32px;
	margin: 0;
	padding: 0 16px;
	border: 0;
	border-radius: var(--tbt-radius-pill);
	background: none;
	box-shadow: none;
	color: var(--tbt-muted);
	font-family: var(--tbt-font-ui);
	font-size: 13px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}

.tbttm .tbttm-seg .tbttm-seg__btn:not([aria-pressed="true"]):hover {
	background: none;
	color: var(--tbt-blue-dark);
}

.tbttm .tbttm-seg .tbttm-seg__btn[aria-pressed="true"],
.tbttm .tbttm-seg .tbttm-seg__btn[aria-pressed="true"]:hover {
	background: var(--tbt-blue);
	color: var(--tbt-surface);
}

.tbttm .tbttm-seg .tbttm-seg__btn:focus-visible {
	box-shadow: var(--tbt-focus-ring);
	outline: none;
}

.tbttm .tbttm-tnote {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 12px;
	border-radius: var(--tbt-radius-pill);
	background: var(--tbt-selected-bg);
	color: var(--tbt-blue-dark);
	font-family: var(--tbt-font-ui);
	font-size: 13px;
}

.tbttm .tbttm-tnote::before {
	content: "";
	flex: none;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tbt-blue);
}

.tbttm .tbttm-modebar__hint {
	color: var(--tbt-muted);
	font-family: var(--tbt-font-ui);
	font-size: 13px;
}

/* The frame: a blue border and an extra ring over the card's own shadow. */
.tbttm .tbttm-player {
	transition: border-color .2s ease, box-shadow .2s ease;
}

.tbttm .tbttm-player.is-teacher {
	border-color: var(--tbt-blue);
	box-shadow: 0 0 0 4px var(--tbt-selected-bg), var(--tbt-shadow);
}

.tbttm .tbttm-keylead {
	margin: 0;
}

/* Multiple choice, read-only: a letter, the option, the key marked. */
.tbttm .tbttm-opts.is-key .tbttm-opt,
.tbttm .tbttm-opts.is-key .tbttm-opt:hover {
	cursor: default;
}

.tbttm .tbttm-opts.is-key .tbttm-opt:not(.is-right):hover {
	background: var(--tbt-surface);
}

.tbttm .tbttm-opt__letter {
	flex: none;
	width: 20px;
	color: var(--tbttm-faint);
	font-family: var(--tbt-font-ui);
	font-size: 15px;
	font-weight: 600;
	text-align: center;
}

.tbttm .tbttm-opt.is-right .tbttm-opt__letter {
	color: var(--tbt-success);
}

/* Gap-fill: each gap shows its answer in a green chip, the other accepted
   answers lighter after " / ". */
.tbttm .tbttm-keygap {
	display: inline-block;
	margin: 0 2px;
	padding: 0 10px;
	border: 1px solid var(--tbt-success);
	border-bottom-width: 2px;
	border-radius: 8px;
	background: var(--tbt-success-bg);
	color: var(--tbt-success);
	font-family: var(--tbt-font-content);
	font-weight: 600;
	line-height: 1.7;
}

.tbttm .tbttm-keygap__alt {
	font-weight: 400;
	opacity: .8;
}

@media (prefers-reduced-motion: reduce) {
	.tbttm .tbttm-player {
		transition: none;
	}
}
