/* TP Kvíz – nyilvános felület */

@font-face {
	font-family: "TPK Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/inter-latin-ext-wght-normal.woff2) format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "TPK Inter";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(../fonts/inter-latin-wght-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.tpk {
	--tpk-bg: #f3f0ef;
	--tpk-card: #fdfcfc;
	--tpk-ink: #26353a;
	--tpk-muted: #6a5f5c;
	--tpk-line: #e3dcdb;
	--tpk-line-strong: #c9bfbe;
	--tpk-accent: #395159;
	--tpk-accent-dark: #2b3e44;
	--tpk-accent-soft: #e2ebf1;
	--tpk-green: #395159;
	--tpk-green-soft: #e2ebf1;
	--tpk-ok: #3f7a5c;
	--tpk-ok-soft: #e4f0e9;
	--tpk-ok-line: #a9cdb8;
	--tpk-sand: #ebe5e4;
	--tpk-radius: 18px;
	--tpk-shadow: 0 1px 2px rgba(38, 53, 58, .05), 0 8px 24px -12px rgba(38, 53, 58, .18);
	--tpk-sans: "TPK Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--tpk-serif: "TPK Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; /* címsorok is Inter */

	max-width: 780px;
	margin: 0 auto;
	color: var(--tpk-ink);
	font-family: var(--tpk-sans);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.tpk *, .tpk *::before, .tpk *::after { box-sizing: border-box; }
.tpk [hidden] { display: none !important; }
/* A téma lista-stílusai (pontok, számok) ne jelenjenek meg a kvízben, ha oldalba van ágyazva. */
.tpk ul, .tpk ol, .tpk li { list-style: none !important; background-image: none; }
.tpk li::marker { content: none; }
.tpk ul, .tpk ol { padding-left: 0; }
.tpk button { font-family: inherit; }

/* Önálló oldal */
.tpk-body {
	margin: 0;
	background: #f3f0ef;
	background-image: radial-gradient(1200px 500px at 85% -10%, #dfe8ef 0%, rgba(223, 232, 239, 0) 60%), radial-gradient(900px 500px at -10% 110%, #e6dfde 0%, rgba(230, 223, 222, 0) 60%);
	background-attachment: fixed;
	min-height: 100vh;
}
.tpk-page { padding: 40px 16px 32px; }

/* Kártyák */
.tpk-card {
	background: var(--tpk-card);
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	box-shadow: var(--tpk-shadow);
	padding: 32px;
	margin: 0 0 18px;
}
.tpk-eyebrow {
	margin: 0 0 10px;
	font-size: 12.5px;
	font-weight: 650;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--tpk-accent);
}
.tpk-title {
	margin: 0 0 14px;
	font-family: var(--tpk-serif);
	font-weight: 750;
	font-size: clamp(28px, 4.6vw, 38px);
	line-height: 1.15;
	letter-spacing: -.025em;
	color: var(--tpk-ink);
}
.tpk-intro-text { color: var(--tpk-muted); margin: 0 0 22px; }

.tpk-facts {
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
.tpk-facts li {
	background: var(--tpk-sand);
	border-radius: 14px;
	padding: 12px 14px;
	color: var(--tpk-muted);
	font-size: 14px;
	margin: 0;
}
.tpk-facts__num {
	font-variant-numeric: lining-nums;
	display: block;
	font-family: var(--tpk-serif);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--tpk-ink);
}
.tpk-deadline { margin: 16px 0 0; font-size: 14.5px; color: var(--tpk-muted); }
.tpk-deadline strong { color: var(--tpk-ink); }

/* Űrlap */
.tpk-form { display: grid; grid-template-columns: 1fr 160px; gap: 16px 14px; }
.tpk-field { display: flex; flex-direction: column; gap: 6px; }
.tpk-field label { font-weight: 600; font-size: 14.5px; }
.tpk-field input {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	font: inherit;
	color: var(--tpk-ink);
	background: #fff;
	border: 1.5px solid var(--tpk-line-strong);
	border-radius: 12px;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}
.tpk-field input:focus { border-color: var(--tpk-accent); box-shadow: 0 0 0 4px var(--tpk-accent-soft); }
.tpk-field input.tpk-invalid { border-color: #c2412d; }
.tpk-form .tpk-btn, .tpk-form-error, .tpk-privacy { grid-column: 1 / -1; }
.tpk-form-error { margin: 0; color: #b4321f; font-weight: 600; font-size: 15px; }
.tpk-privacy { margin: 0; font-size: 13.5px; color: var(--tpk-muted); text-align: center; }
.tpk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Gombok */
.tpk-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 650;
	cursor: pointer;
	text-decoration: none;
	transition: background .15s, transform .1s, box-shadow .15s;
}
.tpk-btn:active { transform: translateY(1px); }
.tpk-btn--primary { background: var(--tpk-accent); color: #fff; box-shadow: 0 6px 16px -8px rgba(57, 81, 89, .55); }
.tpk-btn--primary:hover { background: var(--tpk-accent-dark); }
.tpk-btn--primary:disabled { opacity: .6; cursor: progress; }
.tpk-btn--ghost { background: transparent; color: var(--tpk-ink); border: 1.5px solid var(--tpk-line-strong); }
.tpk-btn--ghost:hover { background: var(--tpk-sand); }
.tpk-btn--lg { min-height: 56px; font-size: 17px; width: 100%; }
.tpk-btn:focus-visible, .tpk-link:focus-visible { outline: 3px solid var(--tpk-accent); outline-offset: 2px; }
.tpk-link {
	background: none;
	border: 0;
	padding: 4px;
	color: var(--tpk-muted);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
	font-size: 14px;
}

.tpk-notice {
	background: var(--tpk-accent-soft);
	border: 1px solid #c8d7e2;
	color: #2b3e44;
	border-radius: 12px;
	padding: 16px 18px;
	font-weight: 550;
}

/* Felső sáv kitöltés közben */
.tpk-bar {
	position: sticky;
	top: 0;
	z-index: 20;
	margin: 0 0 18px;
	padding: 10px 0;
	background: rgba(243, 240, 239, .86);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
body.admin-bar .tpk-bar { top: 32px; }
.tpk-bar__inner {
	display: flex;
	align-items: center;
	gap: 16px;
	background: var(--tpk-card);
	border: 1px solid var(--tpk-line);
	border-radius: 14px;
	padding: 10px 14px;
	box-shadow: var(--tpk-shadow);
}
.tpk-bar__who { font-weight: 650; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 34%; }
.tpk-bar__who small { font-weight: 500; color: var(--tpk-muted); margin-left: 6px; }
.tpk-bar__progress { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tpk-progress { flex: 1; height: 8px; background: var(--tpk-sand); border-radius: 99px; overflow: hidden; }
.tpk-progress span { display: block; height: 100%; width: 0; background: var(--tpk-green); border-radius: 99px; transition: width .3s ease; }
.tpk-bar__count { font-size: 14px; color: var(--tpk-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tpk-timer {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border-radius: 99px;
	background: var(--tpk-green-soft);
	color: var(--tpk-green);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	font-size: 15px;
}
.tpk-timer.is-warning { background: var(--tpk-accent-soft); color: var(--tpk-accent-dark); animation: tpk-pulse 1s ease-in-out infinite; }
@keyframes tpk-pulse { 50% { box-shadow: 0 0 0 6px rgba(57, 81, 89, .18); } }

/* Feladatok */
.tpk-questions { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.tpk-q {
	position: relative;
	margin: 0 0 18px;
	padding: 28px 30px 30px;
	background: var(--tpk-card);
	border: 1px solid var(--tpk-line);
	border-radius: var(--tpk-radius);
	box-shadow: var(--tpk-shadow);
	transition: border-color .2s;
}
.tpk-q.is-done { border-color: #bccfdc; }
.tpk-q__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tpk-q__num {
	flex: none;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--tpk-sand);
	color: var(--tpk-ink);
	font-weight: 700;
	font-size: 15px;
	transition: background .2s, color .2s;
}
.tpk-q.is-done .tpk-q__num { background: var(--tpk-green); color: #fff; }
.tpk-q__type { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--tpk-muted); }
.tpk-q__pts { margin-left: auto; font-size: 13.5px; font-weight: 650; color: var(--tpk-accent-dark); background: var(--tpk-accent-soft); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.tpk-q__text { margin: 0 0 16px; font-size: 19px; font-weight: 600; line-height: 1.45; white-space: pre-line; }
.tpk-q__img { margin: 0 0 18px; }
.tpk-q__img button { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; max-width: 100%; }
.tpk-q__img img { display: block; max-width: 100%; max-height: 420px; width: auto; height: auto; border-radius: 14px; border: 1px solid var(--tpk-line); }
.tpk-q__hint { margin: -6px 0 14px; font-size: 14px; color: var(--tpk-muted); }

/* Választós */
.tpk-options { display: grid; gap: 10px; }
.tpk-opt {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	border: 1.5px solid var(--tpk-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
	user-select: none;
}
.tpk-opt:hover { border-color: var(--tpk-line-strong); background: #f7f9fb; }
.tpk-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tpk-opt__mark {
	flex: none;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1.5px solid var(--tpk-line-strong);
	font-weight: 700;
	font-size: 14px;
	color: var(--tpk-muted);
	background: #fff;
	transition: all .15s;
}
.tpk-opt--multi .tpk-opt__mark { border-radius: 9px; }
.tpk-opt__text { flex: 1; }
.tpk-opt input:checked ~ .tpk-opt__mark { background: var(--tpk-accent); border-color: var(--tpk-accent); color: #fff; }
.tpk-opt:has(input:checked) { border-color: var(--tpk-accent); background: var(--tpk-accent-soft); }
.tpk-opt.is-checked { border-color: var(--tpk-accent); background: var(--tpk-accent-soft); }
.tpk-opt input:focus-visible ~ .tpk-opt__mark { box-shadow: 0 0 0 4px var(--tpk-accent-soft), 0 0 0 6px var(--tpk-accent); }

/* Párosítás */
.tpk-match { display: grid; gap: 10px; }
.tpk-match__row {
	display: grid;
	grid-template-columns: 1fr 28px 1fr;
	align-items: center;
	gap: 10px;
	padding: 10px 10px 10px 16px;
	border: 1.5px solid var(--tpk-line);
	border-radius: 14px;
	background: #fff;
}
.tpk-match__row.is-set { border-color: #bccfdc; background: #f7fafc; }
.tpk-match__left { font-weight: 600; }
.tpk-match__arrow { color: var(--tpk-line-strong); text-align: center; }
.tpk-select {
	width: 100%;
	min-height: 46px;
	padding: 0 40px 0 14px;
	font: inherit;
	font-size: 16px;
	color: var(--tpk-ink);
	border: 1.5px solid var(--tpk-line-strong);
	border-radius: 11px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%236a5f5c' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.tpk-select:focus { outline: none; border-color: var(--tpk-accent); box-shadow: 0 0 0 4px var(--tpk-accent-soft); }
.tpk-select.is-empty { color: var(--tpk-muted); }

/* Mondatkiegészítés */
.tpk-sentences { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 8px; }
.tpk-sentence { margin: 0; font-size: 18px; line-height: 2.5; }
.tpk-blank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	vertical-align: middle;
	min-width: 104px;
	min-height: 40px;
	margin: 2px 3px;
	padding: 0 8px;
	border: 2px dashed var(--tpk-line-strong);
	border-radius: 10px;
	background: #f8fafb;
	color: var(--tpk-muted);
	font: inherit;
	font-size: 16px;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color .15s, background .15s, transform .15s;
}
.tpk-blank:hover { border-color: var(--tpk-accent); }
.tpk-blank.is-target { border-color: var(--tpk-accent); background: var(--tpk-accent-soft); transform: scale(1.04); }
.tpk-blank.is-armed { border-color: var(--tpk-accent); }
.tpk-blank.is-filled { border-style: solid; border-color: transparent; background: transparent; padding: 0; }
.tpk-blank:focus-visible { outline: 3px solid var(--tpk-accent); outline-offset: 2px; }

.tpk-bank {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	min-height: 64px;
	padding: 14px;
	border-radius: 14px;
	background: var(--tpk-sand);
	border: 1.5px dashed transparent;
	transition: border-color .15s, background .15s;
}
.tpk-bank.is-target { border-color: var(--tpk-line-strong); background: #e4dcdb; }
.tpk-bank__label { width: 100%; margin: 0 0 2px; font-size: 12.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--tpk-muted); }
.tpk-bank__empty { color: var(--tpk-muted); font-size: 14px; align-self: center; }

.tpk-chip {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1.5px solid var(--tpk-line-strong);
	border-radius: 10px;
	background: #fff;
	color: var(--tpk-ink);
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	cursor: grab;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	box-shadow: 0 2px 0 rgba(38, 53, 58, .06);
	transition: border-color .15s, box-shadow .15s, transform .1s, opacity .15s;
}
.tpk-chip:hover { border-color: var(--tpk-accent); }
.tpk-chip.is-selected { border-color: var(--tpk-accent); background: var(--tpk-accent-soft); box-shadow: 0 0 0 3px var(--tpk-accent-soft); }
.tpk-chip.is-dragging-src { opacity: .35; }
.tpk-chip:focus-visible { outline: 3px solid var(--tpk-accent); outline-offset: 2px; }
.tpk-blank .tpk-chip { background: var(--tpk-green-soft); border-color: #b7cbd9; color: var(--tpk-green); min-width: 104px; justify-content: center; }
.tpk-chip--ghost {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 9999;
	pointer-events: none;
	cursor: grabbing;
	border-color: var(--tpk-accent);
	box-shadow: 0 14px 30px -10px rgba(38, 53, 58, .45);
	transform: rotate(-2deg) scale(1.06);
}

/* Beküldés */
.tpk-submit { text-align: center; }
.tpk-submit__hint { margin: 0 0 14px; color: var(--tpk-muted); font-size: 15px; }

/* Eredmény */
.tpk-result__card { text-align: center; padding: 40px 32px 34px; }
.tpk-result__title { margin: 0 0 22px; font-family: var(--tpk-serif); font-size: clamp(24px, 4vw, 32px); font-weight: 650; line-height: 1.2; }
.tpk-ring { position: relative; width: 200px; height: 200px; margin: 0 auto 14px; }
.tpk-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tpk-ring__bg { fill: none; stroke: var(--tpk-sand); stroke-width: 10; }
.tpk-ring__fg { fill: none; stroke: var(--tpk-green); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); }
.tpk-ring__label { font-variant-numeric: lining-nums tabular-nums; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--tpk-serif); font-weight: 700; font-size: 58px; line-height: 1; }
.tpk-ring__label small { font-size: 26px; margin-left: 2px; color: var(--tpk-muted); }
.tpk-result__score { margin: 0 0 24px; font-size: 20px; color: var(--tpk-muted); }
.tpk-result__score strong { color: var(--tpk-ink); font-size: 26px; }
.tpk-result__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.tpk-result__meta div { background: var(--tpk-sand); border-radius: 14px; padding: 12px; }
.tpk-result__meta dt { font-size: 12px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--tpk-muted); }
.tpk-result__meta dd { margin: 2px 0 0; font-weight: 650; word-break: break-word; }
.tpk-result__note { margin: 18px 0 0; color: var(--tpk-accent-dark); font-weight: 600; }
.tpk-reset { text-align: center; margin: 8px 0 0; }
.tpk-confirm { max-width: 520px; margin: 10px auto 0; padding: 18px; background: var(--tpk-card); border: 1px solid var(--tpk-line); border-radius: 14px; text-align: center; }
.tpk-confirm p { margin: 0 0 12px; font-size: 15px; }
.tpk-confirm__actions, .tpk-modal__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Felugró ablak */
.tpk-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 16px; background: rgba(38, 53, 58, .45); animation: tpk-fade .15s ease; }
.tpk-modal__box { width: 100%; max-width: 460px; background: var(--tpk-card); border-radius: var(--tpk-radius); padding: 28px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .4); text-align: center; }
.tpk-modal__box h3 { margin: 0 0 10px; font-family: var(--tpk-serif); font-size: 26px; }
.tpk-modal__box p { margin: 0 0 20px; color: var(--tpk-muted); }
@keyframes tpk-fade { from { opacity: 0; } }

.tpk-lightbox { position: fixed; inset: 0; z-index: 10001; display: grid; place-items: center; padding: 24px; background: rgba(20, 28, 31, .85); cursor: zoom-out; }
.tpk-lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; }
.tpk-lightbox__close { position: absolute; top: 14px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

.tpk-spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; border-radius: 50%; animation: tpk-spin .7s linear infinite; }
@keyframes tpk-spin { to { transform: rotate(360deg); } }

/* Mobil */
@media (max-width: 640px) {
	.tpk { font-size: 16px; }
	.tpk-page { padding: 20px 12px 24px; }
	.tpk-card { padding: 22px 18px; }
	.tpk-q { padding: 20px 16px 22px; }
	.tpk-q__text { font-size: 17.5px; }
	.tpk-form { grid-template-columns: 1fr; }
	.tpk-facts__num {
	font-variant-numeric: lining-nums; font-size: 22px; }
	.tpk-facts li { padding: 10px; font-size: 13px; }
	.tpk-bar__who { display: none; }
	.tpk-match__row { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
	.tpk-match__arrow { display: none; }
	.tpk-sentence { font-size: 17px; }
	.tpk-blank, .tpk-blank .tpk-chip { min-width: 84px; }
	.tpk-result__meta { grid-template-columns: 1fr; }
	.tpk-ring { width: 170px; height: 170px; }
	.tpk-ring__label { font-size: 48px; }
}
@media (max-width: 782px) { body.admin-bar .tpk-bar { top: 46px; } }
@media (prefers-reduced-motion: reduce) { .tpk * { transition: none !important; animation: none !important; } }

.tpk.is-locked .tpk-questions { pointer-events: none; opacity: .65; transition: opacity .2s; }

/* Rövidkóddal, a téma oldalán: a felső sáv háttér nélkül */
.tpk:not(.tpk--standalone) .tpk-bar { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* Megoldások a végén */
.tpk-review { margin: 6px 0 18px; }
.tpk-review__title { margin: 26px 0 14px; font-family: var(--tpk-serif); font-size: 26px; font-weight: 650; text-align: center; }
.tpk-review__list { list-style: none; margin: 0; padding: 0; }
.tpk-rv { margin: 0 0 14px; padding: 20px 24px 22px; background: var(--tpk-card); border: 1px solid var(--tpk-line); border-left-width: 5px; border-radius: var(--tpk-radius); box-shadow: var(--tpk-shadow); }
.tpk-rv--ok { border-left-color: var(--tpk-ok); }
.tpk-rv--partial { border-left-color: #d9a441; }
.tpk-rv--bad { border-left-color: #c2553a; }
.tpk-rv__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.tpk-rv__num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tpk-sand); font-weight: 700; font-size: 14px; flex: none; }
.tpk-rv__pts { margin-left: auto; padding: 4px 11px; border-radius: 99px; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.tpk-rv--ok .tpk-rv__pts { background: var(--tpk-ok-soft); color: var(--tpk-ok); }
.tpk-rv--partial .tpk-rv__pts { background: #fbf0d9; color: #85600f; }
.tpk-rv--bad .tpk-rv__pts { background: #fbe6e0; color: #9b3420; }
.tpk-rv__text { margin: 0 0 12px; font-weight: 600; font-size: 17px; white-space: pre-line; }
.tpk-rv__empty { margin: 0 0 10px; color: #9b3420; font-weight: 600; font-size: 14.5px; }

.tpk-rv__opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tpk-rv__opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; border: 1.5px solid var(--tpk-line); color: var(--tpk-muted); }
.tpk-rv__ico { width: 20px; text-align: center; font-weight: 800; flex: none; }
.tpk-rv__otext { flex: 1; }
.tpk-rv__tag { font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.tpk-rv__opt.is-good { border-color: var(--tpk-ok-line); background: var(--tpk-ok-soft); color: var(--tpk-ok); }
.tpk-rv__opt.is-wrong { border-color: #e6b1a3; background: #fcefeb; color: #9b3420; }
.tpk-rv__opt.is-missed { border-style: dashed; border-color: var(--tpk-ok-line); color: var(--tpk-ok); }

.tpk-rv__pairs { display: grid; gap: 6px; }
.tpk-rv__pair { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 11px; border: 1.5px solid var(--tpk-line); }
.tpk-rv__pair.is-good { border-color: var(--tpk-ok-line); background: var(--tpk-ok-soft); color: var(--tpk-ok); }
.tpk-rv__pair.is-wrong { border-color: #e6b1a3; background: #fcefeb; color: #9b3420; }
.tpk-rv__left { font-weight: 650; color: var(--tpk-ink); }
.tpk-rv__arrow { color: var(--tpk-muted); }
.tpk-rv__pair.is-wrong .tpk-rv__given { text-decoration: line-through; }
.tpk-rv__fix { margin-left: auto; font-size: 13.5px; font-weight: 650; color: var(--tpk-ok); background: #fff; border-radius: 8px; padding: 2px 8px; }

.tpk-rv__sents { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.tpk-rv__sent { line-height: 2.2; font-size: 16.5px; }
.tpk-rv__w { display: inline-block; padding: 0 9px; margin: 0 2px; border-radius: 8px; line-height: 1.7; font-weight: 650; font-size: 15px; }
.tpk-rv__w.is-good { background: var(--tpk-ok-soft); color: var(--tpk-ok); }
.tpk-rv__w.is-wrong { background: #fcefeb; color: #9b3420; text-decoration: line-through; }
.tpk-rv__w.is-correct { background: #fff; color: var(--tpk-ok); border: 1.5px dashed var(--tpk-ok-line); }
.tpk-rv__wfix { white-space: nowrap; }

@media (max-width: 640px) {
	.tpk-rv { padding: 16px 14px 18px; }
	.tpk-rv__tag { display: none; }
	.tpk-rv__fix { margin-left: 28px; }
}

/* Jelszóval védett kvíz – a WordPress saját jelszóűrlapja */
.tpk-password .post-password-form p { margin: 0 0 14px; color: var(--tpk-muted); }
.tpk-password .post-password-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--tpk-ink); }
.tpk-password .post-password-form input[type="password"] { height: 52px; padding: 0 16px; font: inherit; border: 1.5px solid var(--tpk-line-strong); border-radius: 12px; background: #fff; }
.tpk-password .post-password-form input[type="password"]:focus { outline: none; border-color: var(--tpk-accent); box-shadow: 0 0 0 4px var(--tpk-accent-soft); }
.tpk-password .post-password-form input[type="submit"] { margin-top: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 12px; background: var(--tpk-accent); color: #fff; font: inherit; font-weight: 650; cursor: pointer; }
.tpk-password .post-password-form input[type="submit"]:hover { background: var(--tpk-accent-dark); }

/* Szerzői jelzés */
.tpk-credit { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 30px 0 4px; text-align: center; color: #9a8e8e; font-size: 13px; line-height: 1.5; letter-spacing: .01em; }
.tpk-credit__name { font-weight: 650; color: var(--tpk-muted); }
.tpk-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(154, 142, 142, .4); }
.tpk-credit a:hover { color: var(--tpk-accent); border-bottom-color: currentColor; }

/* Érdemjegy az eredménynél */
.tpk-grade { display: inline-flex; align-items: center; gap: 14px; margin: -8px auto 24px; padding: 10px 22px 10px 12px; border-radius: 99px; background: var(--tpk-accent-soft); color: var(--tpk-accent-dark); }
.tpk-grade__label { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; order: 2; }
.tpk-grade__num { order: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--tpk-accent); color: #fff; font-size: 28px; font-weight: 800; font-variant-numeric: lining-nums; }
.tpk-grade__name { order: 3; font-size: 20px; font-weight: 700; color: var(--tpk-ink); }
.tpk-grade--1 .tpk-grade__num { background: #9b3420; }
.tpk-grade--1 { background: #fbe6e0; }
