/* ---------------------------------------------------------------------------
   The quiz
   ---------------------------------------------------------------------------
   Five seconds is not long. Everything here is arranged so that the question
   and its four choices can be read in one glance — nothing decorative, nothing
   that has to be looked past, and the clock where it cannot be missed.
   ------------------------------------------------------------------------ */
.ogou-quiz {
	max-width: 520px; margin: 0 auto; padding: 24px 20px 28px;
	background: #0f0f16; border: 1px solid #23232f; border-radius: 20px;
	color: #edecf3; font-family: 'Inter', -apple-system, system-ui, sans-serif;
}
.ogou-quiz * { box-sizing: border-box; }

/* ------------------------------------------------------------------- intro */

.ogou-quiz-intro h2 {
	margin: 0 0 12px !important; font-size: 21px !important;
	line-height: 1.25 !important; color: #fff !important;
}
.ogou-quiz-intro p {
	margin: 0 0 12px !important; font-size: 14.5px !important;
	line-height: 1.6 !important; color: #cfcfe0 !important;
}
.ogou-quiz-note { font-size: 13px !important; color: #8b8b9c !important; }

.ogou-quiz .ogou-btn {
	display: inline-block; margin-top: 6px;
	padding: 13px 30px; border: 0; border-radius: 999px;
	background: linear-gradient(135deg, #ff5a1f, #ffb020);
	color: #141014; font: inherit; font-size: 15px; font-weight: 700;
	text-decoration: none; cursor: pointer;
}
.ogou-quiz .ogou-btn[disabled] { opacity: .5; cursor: default; }

/* -------------------------------------------------------------------- play */

.ogou-quiz-top {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-bottom: 10px; font-size: 12.5px; color: #8b8b9c;
}
.ogou-quiz-score { font-size: 15px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }

.ogou-quiz-bar {
	height: 4px; border-radius: 99px; overflow: hidden;
	background: rgba(255, 255, 255, .09); margin-bottom: 18px;
}
.ogou-quiz-bar span {
	display: block; height: 100%; width: 100%;
	background: #ff5a1f; border-radius: 99px;
	/*
	 * Linear, and matched to the tick.
	 *
	 * An eased transition would make the bar lag the number beside it — and a
	 * clock that disagrees with itself is worse than no clock at all.
	 */
	transition: width .1s linear;
}

.ogou-quiz-clock { text-align: center; margin: 0 0 6px !important; }
.ogou-quiz-clock b {
	display: block; font-size: 34px; line-height: 1; font-weight: 800;
	color: #fff; font-variant-numeric: tabular-nums;
}
.ogou-quiz-clock i {
	display: block; margin-top: 4px; font-style: normal;
	font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: #8b8b9c;
}

.ogou-quiz-ask {
	margin: 18px 0 16px !important; font-size: 17px !important;
	line-height: 1.4 !important; color: #edecf3 !important; text-align: center;
}

.ogou-quiz-choices { display: flex; flex-direction: column; gap: 9px; }

.ogou-quiz-choice {
	width: 100%; padding: 14px 16px; text-align: left;
	border-radius: 12px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .09);
	color: #edecf3; font: inherit; font-size: 15px;
	cursor: pointer;
	transition: background .12s, border-color .12s;
}
.ogou-quiz-choice:active { background: rgba(255, 255, 255, .1); }
.ogou-quiz-choice[disabled] { cursor: default; }

/*
 * Right is green, wrong is red, and everything else dims.
 *
 * Somebody has under two seconds to read the result before the next question
 * arrives. Colour carries it faster than text — and the text is there for
 * anybody who cannot rely on the colour.
 */
.ogou-quiz-choice.is-right {
	background: rgba(126, 226, 168, .16) !important;
	border-color: rgba(126, 226, 168, .5) !important;
	color: #b6f0cf !important;
}
.ogou-quiz-choice.is-wrong {
	background: rgba(255, 90, 90, .14) !important;
	border-color: rgba(255, 90, 90, .45) !important;
	color: #ff9d9d !important;
}
.ogou-quiz-choice[disabled]:not(.is-right):not(.is-wrong) { opacity: .4; }

.ogou-quiz-verdict {
	margin: 10px 0 0 !important; text-align: center;
	font-size: 14px !important; font-weight: 700 !important;
}
.ogou-quiz-verdict.is-right { color: #7ee2a8 !important; }
.ogou-quiz-verdict.is-wrong { color: #ff9d9d !important; }

/* -------------------------------------------------------------------- done */

.ogou-quiz-done { text-align: center; padding: 10px 0; }
.ogou-quiz-total {
	margin: 0 !important; font-size: 46px !important; font-weight: 800 !important;
	line-height: 1 !important; color: #fff !important; font-variant-numeric: tabular-nums;
}
.ogou-quiz-sub { margin: 6px 0 20px !important; font-size: 13px !important; color: #8b8b9c !important; }
.ogou-quiz-gate {
	margin: 0 0 16px !important; font-size: 14.5px !important;
	line-height: 1.6 !important; color: #cfcfe0 !important;
}

.ogou-quiz-error {
	margin: 0 !important; padding: 14px 16px;
	background: rgba(255, 90, 122, .1); border: 1px solid rgba(255, 90, 122, .3);
	border-radius: 12px; font-size: 14px !important; color: #ffb6c4 !important;
}

@media (max-width: 480px) {
	.ogou-quiz { padding: 18px 15px 22px; border-radius: 16px; }
	.ogou-quiz-ask { font-size: 16px !important; }
	.ogou-quiz-choice { padding: 13px 14px; font-size: 14.5px; }
}

/* ---------------------------------------------------------------------------
   The board
   ------------------------------------------------------------------------ */
.ogou-quiz-rank {
	margin: 0 0 18px !important; font-size: 13.5px !important;
	color: #ff8a4c !important; font-weight: 700 !important;
}

.ogou-board { max-width: 520px; margin: 0 auto; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.ogou-board-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }

.ogou-board-row {
	display: flex; align-items: center; gap: 12px;
	padding: 11px 14px; margin-bottom: 5px;
	border-radius: 11px;
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .06);
	font-size: 14px; color: #edecf3;
}
.ogou-board-row.is-me {
	background: rgba(255, 90, 31, .1);
	border-color: rgba(255, 138, 76, .35);
}

.ogou-board-rank {
	flex: 0 0 26px; text-align: center;
	font-size: 13px; color: #8b8b9c; font-variant-numeric: tabular-nums;
}
.ogou-board-name {
	flex: 1 1 auto; min-width: 0;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ogou-board-level { flex: 0 0 auto; font-size: 11.5px; color: #8b8b9c; }
.ogou-board-score {
	flex: 0 0 auto; font-weight: 700;
	font-variant-numeric: tabular-nums; color: #fff;
}

.ogou-board-empty,
.ogou-board-note {
	margin: 0 !important; padding: 14px 0;
	font-size: 13.5px !important; color: #8b8b9c !important; text-align: center;
}
.ogou-board-me {
	margin: 12px 0 0 !important; padding: 11px 14px;
	border-radius: 11px; background: rgba(255, 255, 255, .04);
	font-size: 13.5px !important; color: #cfcfe0 !important; text-align: center;
}

/*
 * The top three, marked without a medal.
 *
 * A colour on the rank number is enough — three trophy glyphs in a list of
 * twenty is a decoration competing with the names, which are the thing
 * somebody is scanning for.
 */
.ogou-board-row:nth-child(1) .ogou-board-rank { color: #ffb020; font-weight: 800; }
.ogou-board-row:nth-child(2) .ogou-board-rank { color: #cfcfe0; font-weight: 700; }
.ogou-board-row:nth-child(3) .ogou-board-rank { color: #d8a06a; font-weight: 700; }

@media (max-width: 480px) {
	.ogou-board-level { display: none; }
	.ogou-board-row { padding: 10px 12px; }
}

/*
 * The button that moves on.
 *
 * Appears under the choices once an answer is in, and takes the full width so
 * it cannot be confused with one of them — a fifth thing in a column of four
 * would be tapped by mistake at least once by everybody.
 */
.ogou-quiz-next {
	width: 100%; margin-top: 12px; padding: 14px;
	border: 0; border-radius: 12px;
	background: linear-gradient(135deg, #ff5a1f, #ffb020);
	color: #141014; font: inherit; font-size: 15px; font-weight: 700;
	cursor: pointer;
}
.ogou-quiz-next:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
