/* ==========================================================================
   LLC Dating Slang Quiz
   Brand: #0F172A (brand + text) · #7C3AED (alternate brand)
   Light surface. All tokens scoped to .dsq-app.
   ========================================================================== */

.dsq-app {
	--dsq-font: inherit;
	--dsq-display: 'Outfit', ui-sans-serif, system-ui, -apple-system, sans-serif;

	--dsq-ink: #0f172a;
	--dsq-ink-soft: #1e293b;

	--dsq-violet: #7c3aed;
	--dsq-violet-d: #6d28d9;
	--dsq-violet-l: #a78bfa;
	--dsq-violet-soft: #f5f3ff;
	--dsq-violet-line: #ddd6fe;

	--dsq-surface: #ffffff;
	--dsq-surface-2: #f8fafc;
	--dsq-border: #e2e8f0;
	--dsq-muted: #475569;
	--dsq-dim: #94a3b8;

	--dsq-good: #10b981;
	--dsq-good-d: #047857;
	--dsq-good-soft: #ecfdf5;
	--dsq-good-line: #a7f3d0;

	--dsq-bad: #e11d48;
	--dsq-bad-d: #9f1239;
	--dsq-bad-soft: #fff1f2;
	--dsq-bad-line: #fecdd3;

	--dsq-r: 14px;
}

.dsq-app,
.dsq-app *,
.dsq-app *::before,
.dsq-app *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.dsq-app {
	max-width: 620px;
	margin: 32px auto;
	font-family: var(--dsq-font);
	color: var(--dsq-ink);
	background: var(--dsq-surface);
	border: 1px solid var(--dsq-border);
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .07);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

/* font inherits, colour deliberately NOT set here so button rules can win */
.dsq-app button { font-family: inherit; }

.dsq-app :focus-visible {
	outline: 2px solid var(--dsq-violet);
	outline-offset: 2px;
	border-radius: 8px;
}

.dsq-start[hidden],
.dsq-quiz[hidden],
.dsq-results[hidden],
.dsq-block[hidden],
.dsq-feedback[hidden] { display: none; }

/* ============ START SCREEN ============ */

.dsq-start {
	padding: 46px 28px 34px;
	text-align: center;
	background: linear-gradient(180deg, var(--dsq-violet-soft) 0%, var(--dsq-surface) 62%);
}

.dsq-title {
	font-family: var(--dsq-display);
	font-size: 34px;
	font-weight: 700;
	letter-spacing: -.025em;
	line-height: 1.1;
	margin-bottom: 10px;
}

.dsq-sub {
	font-size: 15.5px;
	color: var(--dsq-muted);
	max-width: 40ch;
	margin: 0 auto 26px;
}

.dsq-facts {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 26px;
}

.dsq-facts li {
	flex: 1 1 0;
	max-width: 120px;
	padding: 14px 8px;
	background: var(--dsq-surface);
	border: 1px solid var(--dsq-border);
	border-radius: 12px;
	font-size: 12.5px;
	color: var(--dsq-muted);
}

.dsq-facts li span {
	display: block;
	font-family: var(--dsq-display);
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -.03em;
	color: var(--dsq-violet-d);
	line-height: 1.2;
}

/* ============ SHARED BUTTON ============ */

.dsq-go {
	display: block;
	width: 100%;
	padding: 16px;
	border: none;
	border-radius: 11px;
	background: var(--dsq-violet);
	color: #fff;
	font-family: var(--dsq-display);
	font-size: 16.5px;
	font-weight: 600;
	letter-spacing: -.01em;
	cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s;
	box-shadow: 0 4px 14px rgba(124, 58, 237, .25);
}

.dsq-go:hover {
	background: var(--dsq-violet-d);
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(124, 58, 237, .32);
}

.dsq-go[hidden] { display: none; }

.dsq-note {
	margin-top: 14px;
	text-align: center;
	font-size: 12px;
	line-height: 1.55;
	color: var(--dsq-dim);
}

/* ============ QUIZ ============ */

.dsq-quiz,
.dsq-results { padding: 24px 26px 28px; }

.dsq-bar { margin-bottom: 18px; }

.dsq-bar-meta {
	display: flex;
	justify-content: space-between;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--dsq-dim);
	margin-bottom: 7px;
}

.dsq-bar-track {
	height: 6px;
	background: var(--dsq-border);
	border-radius: 3px;
	overflow: hidden;
}

.dsq-bar-fill {
	height: 100%;
	width: 0;
	border-radius: 3px;
	background: var(--dsq-violet);
	transition: width .4s cubic-bezier(.4, 0, .2, 1);
}

.dsq-card {
	background: var(--dsq-surface-2);
	border: 1px solid var(--dsq-border);
	border-radius: 18px;
	padding: 24px 22px;
	margin-bottom: 16px;
}

.dsq-prompt {
	font-family: var(--dsq-display);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: -.015em;
	line-height: 1.35;
	margin-bottom: 18px;
}

/* options */
.dsq-opts { display: grid; gap: 9px; }

.dsq-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	padding: 14px 15px;
	text-align: left;
	background: var(--dsq-surface);
	border: 1.5px solid var(--dsq-border);
	border-radius: 11px;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--dsq-ink);
	cursor: pointer;
	transition: border-color .16s, background .16s, opacity .16s;
}

.dsq-opt:hover:not(:disabled) {
	border-color: var(--dsq-violet);
	background: var(--dsq-violet-soft);
}

.dsq-opt:disabled { cursor: default; }

.dsq-opt-mark {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
	border: 2px solid var(--dsq-border);
	border-radius: 50%;
	transition: all .16s;
}

.dsq-opt:hover:not(:disabled) .dsq-opt-mark { border-color: var(--dsq-violet-l); }

.dsq-opt-text { min-width: 0; }

/* answered states */
.dsq-opt.is-right {
	border-color: var(--dsq-good);
	background: var(--dsq-good-soft);
	color: var(--dsq-good-d);
	font-weight: 600;
}

.dsq-opt.is-right .dsq-opt-mark {
	border-color: var(--dsq-good);
	background: var(--dsq-good);
	position: relative;
}

.dsq-opt.is-right .dsq-opt-mark::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.dsq-opt.is-wrong {
	border-color: var(--dsq-bad);
	background: var(--dsq-bad-soft);
	color: var(--dsq-bad-d);
	font-weight: 600;
}

.dsq-opt.is-wrong .dsq-opt-mark {
	border-color: var(--dsq-bad);
	background: var(--dsq-bad);
	position: relative;
}

.dsq-opt.is-wrong .dsq-opt-mark::after,
.dsq-opt.is-wrong .dsq-opt-mark::before {
	content: "";
	position: absolute;
	left: 6px;
	top: 2.5px;
	width: 2px;
	height: 9px;
	background: #fff;
	border-radius: 1px;
}

.dsq-opt.is-wrong .dsq-opt-mark::after  { transform: rotate(45deg); }
.dsq-opt.is-wrong .dsq-opt-mark::before { transform: rotate(-45deg); }

.dsq-opt.is-muted { opacity: .5; }

/* feedback */
.dsq-feedback {
	margin-top: 16px;
	padding: 15px 16px;
	background: var(--dsq-surface);
	border: 1px solid var(--dsq-border);
	border-radius: 12px;
}

.dsq-fb-verdict {
	font-family: var(--dsq-display);
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 5px;
}

.dsq-fb-verdict.is-right { color: var(--dsq-good-d); }
.dsq-fb-verdict.is-wrong { color: var(--dsq-bad-d); }

.dsq-fb-text {
	font-size: 14px;
	line-height: 1.62;
	color: var(--dsq-ink-soft);
}

/* ============ RESULTS ============ */

.dsq-score-card {
	background: var(--dsq-ink);
	border-radius: 18px;
	padding: 30px 24px 28px;
	text-align: center;
	margin-bottom: 12px;
}

.dsq-score-kicker {
	font-size: 13px;
	font-weight: 600;
	color: var(--dsq-violet-l);
	margin-bottom: 4px;
}

.dsq-score-num {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 8px;
	font-family: var(--dsq-display);
	color: #fff;
	margin-bottom: 14px;
}

.dsq-score-num > span:first-child {
	font-size: 64px;
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1;
}

.dsq-score-of { font-size: 24px; font-weight: 500; color: #94a3b8; }

.dsq-rank {
	font-family: var(--dsq-display);
	font-size: 23px;
	font-weight: 700;
	letter-spacing: -.02em;
	color: #fff;
	margin-bottom: 8px;
	line-height: 1.25;
}

.dsq-rank-text {
	font-size: 14.5px;
	line-height: 1.62;
	color: #cbd5e1;
	max-width: 46ch;
	margin: 0 auto;
}

/* recap block */
.dsq-block {
	background: var(--dsq-surface);
	border: 1px solid var(--dsq-border);
	border-radius: var(--dsq-r);
	padding: 20px 22px;
	margin-bottom: 12px;
}

.dsq-block h4 {
	font-family: var(--dsq-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: -.01em;
	margin-bottom: 4px;
}

.dsq-block-text {
	font-size: 14px;
	line-height: 1.62;
	color: var(--dsq-muted);
}

.dsq-missed { list-style: none; margin-top: 8px; }

.dsq-missed li {
	padding: 14px 0;
	border-top: 1px solid var(--dsq-border);
	font-size: 14px;
	line-height: 1.62;
	color: var(--dsq-muted);
}

.dsq-missed li:first-child { border-top: none; }
.dsq-missed li:last-child { padding-bottom: 0; }

.dsq-missed strong {
	display: block;
	font-family: var(--dsq-display);
	font-size: 15.5px;
	font-weight: 600;
	color: var(--dsq-ink);
	margin-bottom: 3px;
}

/* actions */
.dsq-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

.dsq-btn {
	flex: 1 1 160px;
	padding: 14px;
	border-radius: 11px;
	font-family: var(--dsq-display);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s;
}

.dsq-btn-share {
	border: none;
	background: var(--dsq-violet);
	color: #fff;
	box-shadow: 0 4px 14px rgba(124, 58, 237, .22);
}

.dsq-btn-share:hover { background: var(--dsq-violet-d); transform: translateY(-1px); }

.dsq-btn-ghost {
	background: var(--dsq-surface);
	border: 1.5px solid var(--dsq-border);
	color: var(--dsq-muted);
}

.dsq-btn-ghost:hover { border-color: var(--dsq-violet); color: var(--dsq-violet-d); }

/* ============ RESPONSIVE ============ */

@media (max-width: 560px) {
	.dsq-app { margin: 20px auto; border-radius: 16px; }
	.dsq-start { padding: 34px 18px 26px; }
	.dsq-title { font-size: 27px; }
	.dsq-facts { gap: 7px; }
	.dsq-facts li { padding: 11px 4px; font-size: 11.5px; }
	.dsq-facts li span { font-size: 22px; }
	.dsq-quiz, .dsq-results { padding: 20px 16px 24px; }
	.dsq-card { padding: 20px 16px; }
	.dsq-prompt { font-size: 18px; }
	.dsq-score-num > span:first-child { font-size: 54px; }
	.dsq-rank { font-size: 20px; }
}

/* ============ MOTION PREFERENCES ============ */

@media (prefers-reduced-motion: reduce) {
	.dsq-app *,
	.dsq-app *::before,
	.dsq-app *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
