/* ============================================
 * PROFILIS — PASIEKIMAI (#pasiekimai)
 *
 * Dizainas: claude.ai artifact „viktorina.live parduotuvė", lenta
 * „Pasiekimai". Kiekviena šeima — kelias su pakopomis; uždirbtas ženkliukas
 * metalinis ir paspaudžiamas, neuždirbtas — pilkas.
 * Kontrastas ant #161526: #9B98BB 6,1:1 · #A9A6C6 7,2:1 · #D9B661 8,4:1.
 * ============================================ */

.ach {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

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

.ach__intro {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ach__intro .card-title {
	margin: 0;
}

.ach__intro p {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #a9a6c6;
}

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

.ach__shown-text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.ach__lbl {
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #9b98bb;
}

.ach__shown-text strong {
	font-size: 14px;
	color: var(--color-accent-gold, #f5b82e);
}

.ach__avatar {
	position: relative;
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: #2e2b4a;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.ach__avatar img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 14px;
}

.ach__avatar .uc-medal--pin {
	position: absolute;
	right: -4px;
	bottom: -4px;
	width: 22px;
	height: 22px;
}

.ach__empty {
	margin: 0;
	color: #a9a6c6;
	font-size: 14px;
}

.ach__tracks {
	display: flex;
	flex-direction: column;
}

.ach-track {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 12px 0 0;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ach-track__info {
	flex: none;
	width: 180px;
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-top: 4px;
}

.ach-track__info strong {
	font-size: 16px;
	font-weight: 800;
	color: var(--color-text-primary, #eceaf6);
}

.ach-track__info span {
	font-size: 12px;
	color: #a9a6c6;
}

.ach-track__info .ach-track__next {
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	color: #d9b661;
}

.ach-track__line {
	position: relative;
	flex: 1;
	min-width: 0;
	height: 82px;
	margin-right: 34px;
}

.ach-track__bar {
	position: absolute;
	left: 0;
	right: 0;
	top: 18px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.08);
	overflow: hidden;
}

.ach-track__bar i {
	display: block;
	height: 100%;
	background: var(--color-accent-gold, #f5b82e);
}

/* Mazgas — tas pats .uc-medal žetonas, tik didesnis ir mygtukas. */
.ach-node {
	appearance: none;
	position: absolute;
	top: 2px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	transform: translateX(-50%);
	cursor: pointer;
	box-shadow: 0 0 0 2px #161526, 0 1px 3px rgba(0, 0, 0, 0.5);
}

.ach-node.is-shown {
	cursor: default;
	box-shadow: 0 0 0 3px #161526, 0 0 0 5px var(--color-accent-gold, #f5b82e);
}

.ach-node:focus-visible {
	outline: 2px solid var(--color-accent-gold, #f5b82e);
	outline-offset: 4px;
}

/* Neuždirbtas — pilkas diskas be piešinio. */
.ach-node--off {
	border-radius: 50%;
	background: #1c1b30;
	box-shadow: inset 0 0 0 2px #3a3857;
	cursor: not-allowed;
}

.ach-label {
	position: absolute;
	top: 44px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	white-space: nowrap;
}

.ach-label b {
	font-size: 12px;
	font-weight: 700;
	color: #dad7ee;
}

.ach-label span {
	font-family: var(--font-mono, 'JetBrains Mono', monospace);
	font-size: 11px;
	color: #9b98bb;
}

.ach-label.is-off b {
	color: #9b98bb;
}

/* Siaurai: informacija virš kelio, ilgi pavadinimai — dviem eilutėmis. */
@media (max-width: 640px) {
	.ach-track {
		flex-direction: column;
		gap: 8px;
	}

	.ach-track__info {
		width: auto;
	}

	/* Stulpelyje flex: 1 virstų pagrindu 0 — kelias susitrauktų iki nulio. */
	.ach-track__line {
		flex: none;
		width: calc(100% - 34px);
		margin-left: 18px;
		margin-right: 16px;
		height: 92px;
	}

	.ach-label {
		white-space: normal;
		width: 84px;
		text-align: center;
	}

	.ach-label b {
		font-size: 11px;
	}
}
