/**
 * Cambridge Placement Engine — Frontend "futurista/tech oscuro" con la
 * paleta e identidad real de docsfun.com (mismo logo que en los resultados
 * de wlad-quiz). Diseño exclusivo del producto estrella del sitio: se
 * diferencia deliberadamente de cualquier quiz/test genérico.
 */

:root {
	--cpe-bg: #070d1e;
	--cpe-bg-alt: #0c1730;
	--cpe-panel: #101c38;
	--cpe-panel-border: rgba(120, 190, 255, 0.16);
	--cpe-cyan: #4fd8f0;
	--cpe-teal: #2bd9b8;
	--cpe-gold: #f5c451;
	--cpe-violet: #a06bff;
	--cpe-text: #eef3fc;
	--cpe-text-dim: #9aa8c9;
	--cpe-danger: #ff4d6d;
	--cpe-amber: #ffb545;
	--cpe-success: #35ffb0;
	--cpe-radius: 16px;
	--cpe-font-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--cpe-font-display: "Orbitron", "Space Grotesk", sans-serif;
	/* Misma familia serif del wordmark "DOCSFUN.COM" en la home page. */
	--cpe-font-brand: "Playfair Display", Georgia, "Times New Roman", serif;
}

.cpe-app {
	max-width: 900px;
	margin: 0 auto;
	font-family: var(--cpe-font-body);
	font-size: 21px;
	line-height: 1.6;
	color: var(--cpe-text);
}

/* -------------------------------------------------------------------- */
/* SHELL / HEADER                                                        */
/* -------------------------------------------------------------------- */

.cpe-shell {
	position: relative;
	background:
		radial-gradient(circle at 15% -10%, rgba(79, 216, 240, 0.18), transparent 45%),
		radial-gradient(circle at 100% 0%, rgba(43, 217, 184, 0.16), transparent 40%),
		linear-gradient(180deg, var(--cpe-bg) 0%, var(--cpe-bg-alt) 100%);
	border: 1px solid var(--cpe-panel-border);
	border-radius: 22px;
	padding: 24px 26px 30px;
	box-shadow: 0 30px 80px -30px rgba(10, 40, 90, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.04);
	overflow: hidden;
}

.cpe-shell::before {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background-image: linear-gradient(rgba(120, 190, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(120, 190, 255, 0.05) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: radial-gradient(circle at 50% 0%, black, transparent 75%);
	opacity: 0.6;
}

.cpe-shell__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--cpe-panel-border);
}

.cpe-shell__brand {
	display: flex;
	align-items: center;
	gap: 12px;
}

.cpe-shell__brand-mark {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: block;
	filter: drop-shadow(0 0 10px rgba(79, 216, 240, 0.55));
}

.cpe-shell__brand-mark--fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cpe-font-display);
	font-weight: 900;
	font-size: 19px;
	color: #06101f;
	background: linear-gradient(135deg, var(--cpe-cyan), var(--cpe-teal));
	box-shadow: 0 0 18px rgba(79, 216, 240, 0.55);
}

.cpe-shell__brand-text {
	font-family: var(--cpe-font-display);
	font-weight: 700;
	letter-spacing: 0.04em;
	font-size: 1.3rem;
	text-transform: uppercase;
	background: linear-gradient(90deg, #ffffff, var(--cpe-cyan) 55%, var(--cpe-gold));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.cpe-shell__body {
	position: relative;
}

/* -------------------------------------------------------------------- */
/* AVISO DE INTEGRIDAD — "no cambies de pestaña", igual que wlad-quiz    */
/* -------------------------------------------------------------------- */

.cpe-integrity-warning {
	text-align: center;
	background: rgba(255, 181, 69, 0.14);
	border: 1px solid rgba(255, 181, 69, 0.45);
	color: #ffd9a0;
	font-size: 0.95rem;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 10px;
	margin-bottom: 18px;
	box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.6);
	opacity: 1;
	max-height: 200px;
	overflow: hidden;
	transition: opacity 0.4s ease, max-height 0.4s ease, margin 0.4s ease, padding 0.4s ease;
}

.cpe-integrity-warning--hide {
	opacity: 0;
	max-height: 0;
	margin-bottom: 0;
	padding-top: 0;
	padding-bottom: 0;
	border-width: 0;
}

/* -------------------------------------------------------------------- */
/* COUNTDOWN — "reloj digital futurista", esquina superior derecha       */
/* -------------------------------------------------------------------- */

.cpe-timer {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
	padding: 9px 18px;
	border-radius: 12px;
	background: rgba(6, 14, 30, 0.65);
	border: 1px solid rgba(79, 216, 240, 0.35);
	box-shadow: 0 0 22px rgba(79, 216, 240, 0.18), inset 0 0 12px rgba(79, 216, 240, 0.08);
}

.cpe-timer__label {
	font-family: var(--cpe-font-display);
	font-size: 0.8rem;
	letter-spacing: 0.22em;
	color: var(--cpe-text-dim);
	text-transform: uppercase;
}

.cpe-timer__digits {
	font-family: var(--cpe-font-display);
	font-weight: 700;
	font-size: 2.3rem;
	letter-spacing: 0.06em;
	color: var(--cpe-cyan);
	text-shadow: 0 0 12px rgba(79, 216, 240, 0.85), 0 0 28px rgba(79, 216, 240, 0.35);
	font-variant-numeric: tabular-nums;
}

.cpe-timer--warning {
	border-color: rgba(255, 181, 69, 0.45);
	box-shadow: 0 0 22px rgba(255, 181, 69, 0.22), inset 0 0 12px rgba(255, 181, 69, 0.1);
}

.cpe-timer--warning .cpe-timer__digits {
	color: var(--cpe-amber);
	text-shadow: 0 0 12px rgba(255, 181, 69, 0.85), 0 0 28px rgba(255, 181, 69, 0.35);
}

.cpe-timer--critical {
	border-color: rgba(255, 77, 109, 0.55);
	box-shadow: 0 0 26px rgba(255, 77, 109, 0.3), inset 0 0 12px rgba(255, 77, 109, 0.14);
	animation: cpe-timer-pulse 1s ease-in-out infinite;
}

.cpe-timer--critical .cpe-timer__digits {
	color: var(--cpe-danger);
	text-shadow: 0 0 14px rgba(255, 77, 109, 0.9), 0 0 30px rgba(255, 77, 109, 0.4);
}

@keyframes cpe-timer-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.035); }
}

.cpe-app .cpe-loading {
	text-align: center;
	padding: 50px 0;
	color: var(--cpe-text-dim);
	font-size: 1.3rem;
	letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------- */
/* PROGRESS                                                              */
/* -------------------------------------------------------------------- */

.cpe-progress {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 22px;
}

.cpe-progress-bar {
	flex: 1;
	background: rgba(120, 190, 255, 0.12);
	border-radius: 999px;
	height: 9px;
	overflow: hidden;
	position: relative;
}

.cpe-progress-bar__fill {
	background: linear-gradient(90deg, var(--cpe-cyan), var(--cpe-teal));
	height: 100%;
	border-radius: 999px;
	transition: width 0.35s ease;
	box-shadow: 0 0 10px rgba(79, 216, 240, 0.6);
}

.cpe-progress__count {
	font-family: var(--cpe-font-display);
	font-size: 1rem;
	letter-spacing: 0.06em;
	color: var(--cpe-text-dim);
	white-space: nowrap;
}

/* -------------------------------------------------------------------- */
/* ITEM CARD                                                             */
/* -------------------------------------------------------------------- */

.cpe-item {
	background: var(--cpe-panel);
	border: 1px solid var(--cpe-panel-border);
	border-radius: var(--cpe-radius);
	padding: 26px;
	box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

.cpe-item__meta {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
	flex-wrap: wrap;
}

.cpe-chip {
	display: inline-flex;
	align-items: center;
	font-family: var(--cpe-font-display);
	font-size: 0.85rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(79, 216, 240, 0.1);
	border: 1px solid rgba(79, 216, 240, 0.3);
	color: var(--cpe-cyan);
}

.cpe-chip--accent {
	background: rgba(43, 217, 184, 0.12);
	border-color: rgba(43, 217, 184, 0.35);
	color: #a6f2e3;
}

.cpe-item__passage {
	background: rgba(6, 14, 30, 0.55);
	border: 1px solid var(--cpe-panel-border);
	padding: 18px;
	border-radius: 12px;
	margin-bottom: 18px;
	white-space: pre-wrap;
	color: var(--cpe-text-dim);
	font-size: 1.25rem;
}

/*
 * Ítems image_mcq: marco de proporción fija (4:3) para la imagen, en vez de
 * dejar que el <img> se renderice a su tamaño nativo (1200x900/1200x1500px,
 * ver convención de nombres de archivo). Sin esto, en pantallas angostas la
 * imagen se veía "enorme y cortada" — el ancho se limitaba a 100% pero el
 * alto quedaba fijo en px (max-height), descuadrando la proporción real de
 * la imagen y forzando un recorte feo. Con aspect-ratio, el marco escala
 * siempre en proporción al ancho disponible, en cualquier dispositivo.
 */
.cpe-item__image-wrap {
	width: 100%;
	aspect-ratio: 4 / 3;
	margin-bottom: 20px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--cpe-panel-border);
	background: rgba(6, 14, 30, 0.55);
}

.cpe-item__image-wrap img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Prioriza el tercio superior del encuadre (donde suele estar la parte
	   más relevante de la foto: caras, objetos principales) en vez del
	   centro geométrico, para minimizar recortes molestos con 'cover'. */
	object-position: center 30%;
}

.cpe-item__question {
	font-size: 1.5rem;
	font-weight: 600;
	margin: 0 0 20px;
	color: #fff;
}

.cpe-item__options {
	display: grid;
	gap: 10px;
	margin-bottom: 4px;
	font-size: 1.3rem;
}

.cpe-item__options label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 13px 16px;
	border: 1px solid var(--cpe-panel-border);
	border-radius: 10px;
	cursor: pointer;
	background: rgba(255, 255, 255, 0.015);
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.cpe-item__options label:hover {
	border-color: rgba(79, 216, 240, 0.45);
	background: rgba(79, 216, 240, 0.06);
}

.cpe-item__options input {
	accent-color: var(--cpe-cyan);
	width: 18px;
	height: 18px;
}

.cpe-item__options label:has(input:checked) {
	border-color: var(--cpe-cyan);
	background: rgba(79, 216, 240, 0.1);
	box-shadow: 0 0 0 1px rgba(79, 216, 240, 0.35) inset;
}

.cpe-item__input {
	width: 100%;
	padding: 13px 16px;
	/* Borde blanco bien visible: el borde sutil anterior (rgba azul al 16%)
	 * se perdía contra el fondo oscuro de la interfaz y el campo no se leía
	 * como un cuadro de texto. */
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 10px;
	font-size: 1.25rem;
	background: rgba(6, 14, 30, 0.6);
	color: var(--cpe-text);
	font-family: var(--cpe-font-body);
	box-sizing: border-box;
}

.cpe-item__input:focus {
	outline: none;
	border-color: var(--cpe-cyan);
	box-shadow: 0 0 0 3px rgba(79, 216, 240, 0.18);
}

.cpe-item__input::placeholder {
	color: var(--cpe-text-dim);
}

/* -------------------------------------------------------------------- */
/* BUTTONS                                                               */
/* -------------------------------------------------------------------- */

.cpe-submit-btn {
	margin-top: 22px;
	background: linear-gradient(90deg, var(--cpe-cyan), var(--cpe-teal));
	color: #061019;
	border: none;
	border-radius: 10px;
	padding: 13px 28px;
	font-size: 1.3rem;
	font-weight: 700;
	font-family: var(--cpe-font-body);
	cursor: pointer;
	box-shadow: 0 8px 24px -8px rgba(79, 216, 240, 0.55);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.cpe-submit-btn:hover:not(:disabled) {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px -8px rgba(79, 216, 240, 0.7);
}

.cpe-submit-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

/* -------------------------------------------------------------------- */
/* INTRO / NAME FORM                                                     */
/* -------------------------------------------------------------------- */

.cpe-intro {
	text-align: center;
	padding: 10px 4px 4px;
}

.cpe-intro__eyebrow {
	font-family: var(--cpe-font-display);
	font-size: 0.9rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--cpe-cyan);
	margin-bottom: 12px;
}

.cpe-intro__title {
	font-size: 2.4rem;
	font-weight: 700;
	color: #fff;
	margin: 0 0 12px;
}

.cpe-intro__subtitle {
	color: var(--cpe-text-dim);
	max-width: 500px;
	margin: 0 auto 28px;
	font-size: 1.3rem;
}

.cpe-intro__stats {
	display: flex;
	justify-content: center;
	gap: 28px;
	margin-bottom: 28px;
	flex-wrap: wrap;
}

.cpe-intro__stat {
	text-align: center;
}

.cpe-intro__stat-value {
	font-family: var(--cpe-font-display);
	font-size: 1.7rem;
	font-weight: 700;
	color: var(--cpe-cyan);
	text-shadow: 0 0 10px rgba(79, 216, 240, 0.5);
}

.cpe-intro__stat-label {
	font-size: 0.88rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cpe-text-dim);
}

.cpe-name-form {
	max-width: 380px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.cpe-name-form__error {
	color: var(--cpe-danger);
	font-size: 1.1rem;
	margin: 0;
}

.cpe-name-form__hint {
	color: var(--cpe-text-dim);
	font-size: 1.05rem;
	margin: -4px 0 2px;
	line-height: 1.4;
}

.cpe-verify__code-input {
	text-align: center;
	font-family: var(--cpe-font-display);
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 0.5em;
	padding-left: 0.5em; /* compensa el letter-spacing para centrar visualmente */
}

.cpe-verify__resend {
	background: none;
	border: none;
	color: var(--cpe-cyan);
	font-size: 1.05rem;
	cursor: pointer;
	padding: 6px 0;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cpe-verify__resend:disabled {
	color: var(--cpe-text-dim);
	cursor: default;
	text-decoration: none;
}

/* -------------------------------------------------------------------- */
/* RESULT                                                                */
/* -------------------------------------------------------------------- */

/* El degradé vive en el FONDO de toda la tarjeta (no en el texto del
 * nombre): así, si alguien intenta recortar el nombre y pegar uno distinto,
 * el parche necesitaría reproducir con exactitud el color del degradé en
 * esa posición exacta — cualquier discontinuidad se nota a simple vista.
 * El nombre en sí queda en un color sólido y muy legible sobre ese fondo. */
.cpe-result {
	position: relative;
	text-align: center;
	padding: 22px 6px 6px;
	overflow: hidden;
	border-radius: 14px;
	/* Degradé real (colores opacos, no una superposición translúcida sobre
	 * el fondo oscuro) para que se note claramente a simple vista: azul
	 * marino oscuro -> verde, tomado del logo de docsfun.com. */
	background: linear-gradient(135deg,
		#081428 0%,
		#0b2e4a 28%,
		#0c4a49 58%,
		#12805f 100%);
}

/* Marca de agua diagonal repetida ("docsfun.com · verificado") de baja
 * opacidad, cubriendo toda la tarjeta. Combinada con el degradé de fondo,
 * dificulta recortar/editar el nombre en un editor de imágenes sin que se
 * note la discontinuidad del patrón. */
.cpe-result__watermark {
	position: absolute;
	inset: -30px;
	pointer-events: none;
	z-index: 0;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='300'%20height='300'%20viewBox='0%200%20300%20300'%3E%3Ctext%20x='0'%20y='160'%20font-family='Space%20Grotesk,sans-serif'%20font-size='20'%20font-weight='700'%20fill='%234fd8f0'%20fill-opacity='0.028'%20transform='rotate(-28%20150%20150)'%3Edocsfun.com%20%C2%B7%20verificado%3C/text%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 300px 300px;
}

/* Marca de agua promocional, mucho más visible que la de anti-manipulación
 * de arriba a propósito: invita a "desbloquear" la versión sin marca de
 * agua. Vive en el mismo elemento .cpe-result que se ve en pantalla Y que
 * se captura al descargar (ver renderResult()/downloadResultCard() en
 * public.js), así que aplica igual a ambas versiones automáticamente. */
.cpe-result__upsell-watermark {
	position: absolute;
	inset: -30px;
	pointer-events: none;
	z-index: 0;
	background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='460'%20height='460'%20viewBox='0%200%20460%20460'%3E%3Ctext%20x='0'%20y='240'%20font-family='Space%20Grotesk,sans-serif'%20font-size='22'%20font-weight='700'%20fill='%23ffffff'%20fill-opacity='0.16'%20transform='rotate(-28%20230%20230)'%3EUNLOCK%20THE%20WATERMARK-FREE%20VERSION%3C/text%3E%3C/svg%3E");
	background-repeat: repeat;
	background-size: 460px 460px;
}

.cpe-result__inner {
	position: relative;
	z-index: 1;
}

.cpe-result__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-bottom: 4px;
}

.cpe-result__brand-logo {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	filter: drop-shadow(0 0 12px rgba(79, 216, 240, 0.55));
}

/* Mismo wordmark serif + mayúsculas + reparto de color (blanco / dorado /
 * blanco) que el logo real de la home page de docsfun.com, en vez de la
 * tipografía "tech" (Orbitron) usada en el resto de la interfaz — este es
 * el elemento de marca más visible del resultado, así que debe coincidir
 * exactamente con la identidad del sitio. */
.cpe-result__brand-title {
	font-family: var(--cpe-font-brand);
	font-size: 2.3rem;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	margin: 0;
	color: #fff;
}

.cpe-result__brand-title span {
	color: var(--cpe-gold);
}

.cpe-result__brand-subtitle {
	color: var(--cpe-text-dim);
	font-size: 1.05rem;
	letter-spacing: 0.04em;
	margin: 0 0 22px;
}

/* Nombre del usuario: color sólido y muy legible (ver el degradé real en
 * el FONDO de .cpe-result). Un texto sólido sobre un fondo degradado es,
 * en la práctica, más difícil de falsificar de forma invisible que un
 * texto con degradé propio — porque el "parche" pegado tendría que además
 * imitar el color exacto del fondo detrás de él en esa posición. */
.cpe-result__user-name {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 0 0 4px;
	color: #ffffff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55), 0 0 18px rgba(0, 0, 0, 0.35);
}

.cpe-result__user-email {
	color: var(--cpe-text-dim);
	font-size: 1.15rem;
	margin: 0 0 6px;
}

.cpe-result__eyebrow {
	font-family: var(--cpe-font-display);
	font-size: 0.92rem;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--cpe-text-dim);
	margin: 22px 0 18px;
	font-weight: 400;
}

.cpe-result__badge {
	width: 160px;
	height: 160px;
	margin: 0 auto 22px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cpe-font-display);
	font-size: 3.6rem;
	font-weight: 900;
	color: #fff;
	background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 60%),
		conic-gradient(from 220deg, var(--cpe-cyan), var(--cpe-teal), var(--cpe-gold), var(--cpe-cyan));
	box-shadow: 0 0 50px rgba(79, 216, 240, 0.35), 0 0 0 6px rgba(255, 255, 255, 0.03) inset;
	animation: cpe-badge-in 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes cpe-badge-in {
	from { transform: scale(0.6); opacity: 0; }
	to { transform: scale(1); opacity: 1; }
}

.cpe-result__score {
	color: var(--cpe-text-dim);
	font-size: 1.3rem;
	margin-bottom: 8px;
}

.cpe-result__score strong {
	color: #fff;
	font-family: var(--cpe-font-display);
	font-size: 1.4rem;
}

.cpe-result__section-title {
	font-family: var(--cpe-font-display);
	font-size: 0.88rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--cpe-text-dim);
	margin: 30px 0 14px;
	font-weight: 700;
}

.cpe-skills {
	display: grid;
	gap: 10px;
	max-width: 440px;
	margin: 0 auto;
	text-align: left;
	font-size: 1.2rem;
}

.cpe-skills__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	border: 1px solid var(--cpe-panel-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.015);
}

.cpe-skills__name {
	font-size: 1.1rem;
	color: var(--cpe-text-dim);
	text-transform: capitalize;
}

.cpe-skills__level {
	font-family: var(--cpe-font-display);
	font-weight: 700;
	color: var(--cpe-teal);
}

.cpe-result__cta {
	margin-top: 30px;
	font-size: 1.1rem;
	color: var(--cpe-text-dim);
}

.cpe-result__profile {
	max-width: 560px;
	margin: 0 auto;
	text-align: left;
	padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	background: rgba(6, 14, 30, 0.28);
}

.cpe-result__profile-group {
	font-family: var(--cpe-font-display);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	color: var(--cpe-gold);
	margin: 0 0 10px;
}

.cpe-result__profile-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.cpe-result__profile-item {
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--cpe-text-dim);
}

.cpe-result__profile-label {
	color: #ffffff;
	font-weight: 700;
}

.cpe-result__verify {
	margin-top: 14px;
	font-family: var(--cpe-font-display);
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	color: rgba(154, 168, 201, 0.55);
}

.cpe-result__partial {
	max-width: 480px;
	margin: 14px auto 22px;
	padding: 11px 16px;
	border-radius: 10px;
	background: rgba(255, 181, 69, 0.1);
	border: 1px solid rgba(255, 181, 69, 0.35);
	color: #ffd9a0;
	font-size: 1.05rem;
	text-align: left;
}

.cpe-result__meta {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-width: 500px;
	margin: 0 auto;
}

.cpe-result__meta-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 13px 10px;
	border: 1px solid var(--cpe-panel-border);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.015);
}

/* Detalles del intento (Fecha/Hora local/Duración/Preguntas): +3pt sobre el
 * tamaño anterior, a pedido del cliente. */
.cpe-result__meta-label {
	font-size: 1.05rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cpe-text-dim);
}

.cpe-result__meta-value {
	font-family: var(--cpe-font-display);
	font-size: 1.45rem;
	font-weight: 700;
	color: var(--cpe-text);
}

.cpe-download-btn {
	display: block;
	margin: 24px auto 0;
	background: transparent;
	border: 1px solid rgba(79, 216, 240, 0.4);
	color: var(--cpe-cyan);
	box-shadow: none;
	position: relative;
	z-index: 1;
}

.cpe-download-btn:hover:not(:disabled) {
	background: rgba(79, 216, 240, 0.08);
	box-shadow: none;
}

/* -------------------------------------------------------------------- */
/* ERROR                                                                 */
/* -------------------------------------------------------------------- */

.cpe-error {
	color: #ffd7dd;
	background: rgba(255, 77, 109, 0.12);
	border: 1px solid rgba(255, 77, 109, 0.4);
	padding: 15px 18px;
	border-radius: 12px;
	font-size: 1.2rem;
}

/* -------------------------------------------------------------------- */
/* RESPONSIVE                                                            */
/* -------------------------------------------------------------------- */

@media (max-width: 560px) {
	.cpe-app {
		font-size: 19px;
	}

	.cpe-shell {
		padding: 18px 16px 22px;
		border-radius: 16px;
	}

	.cpe-shell__header {
		justify-content: flex-start;
	}

	.cpe-timer {
		align-items: flex-start;
	}

	.cpe-result__badge {
		width: 128px;
		height: 128px;
		font-size: 2.8rem;
	}

	.cpe-result__brand-title {
		font-size: 1.7rem;
	}

	.cpe-result__user-name {
		font-size: 1.8rem;
	}

	.cpe-intro__stats {
		gap: 16px;
	}

	.cpe-result__meta {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.cpe-item__image-wrap {
		aspect-ratio: 1 / 1;
	}
}
