/*! Test Languages Popup 1.1.0 – English in Levels s.r.o. */
.tlp-root {
	/* Výchozí barvy (zelená Test Languages). JS je přepíše podle barvy webu – viz palette() v tl-popup.js. */
	--tlp-accent: #17824a;
	--tlp-accent-dark: #116a3b;
	--tlp-accent-rgb: 23, 130, 74;
	--tlp-ink: #14251c;
	--tlp-muted: #51625a;
	--tlp-soft: #eef3ee;
	--tlp-pressed: #e3f3e8;
	--tlp-line: #d5e0d8;
	--tlp-check-line: #b9c9be;
	--tlp-shade: rgba(15, 30, 22, .55);
	position: fixed;
	z-index: 2147483000;
	font-family: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
	color: var(--tlp-ink);
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}
.tlp-root *, .tlp-root *::before, .tlp-root *::after { box-sizing: border-box; }

/* ---- rozložení: roh ---- */
.tlp-corner { right: 24px; bottom: 24px; width: 380px; max-width: calc(100vw - 32px); }

/* ---- rozložení: uprostřed ---- */
.tlp-center { inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tlp-shade { position: absolute; inset: 0; background: var(--tlp-shade); opacity: 0; transition: opacity .3s ease; }
.tlp-center .tlp-box { width: 440px; max-width: 100%; }
.tlp-center.tlp-in .tlp-shade { opacity: 1; }

/* ---- karta ---- */
.tlp-box {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 22px 22px 14px;
	box-shadow: 0 24px 60px -12px rgba(15, 25, 20, .35), 0 2px 8px rgba(15, 25, 20, .08);
	border-top: 5px solid var(--tlp-accent);
	opacity: 0;
	transform: translateY(24px) scale(.98);
	transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
}
.tlp-in .tlp-box { opacity: 1; transform: none; }

.tlp-x {
	position: absolute; top: 10px; right: 10px;
	width: 34px; height: 34px; padding: 0; margin: 0;
	border: 0; border-radius: 50%; background: transparent; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	color: var(--tlp-muted);
}
.tlp-x:hover { background: var(--tlp-soft); color: var(--tlp-ink); }
.tlp-x svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; fill: none; }

.tlp-brand {
	display: inline-flex; align-items: center; gap: 8px;
	font-size: 13px; font-weight: 700; letter-spacing: .02em;
	color: var(--tlp-accent) !important; text-decoration: none !important;
	margin: 0 0 10px;
}
.tlp-brand svg { width: 30px; height: 30px; flex: none; }
.tlp-badge-back { fill: var(--tlp-accent); }
.tlp-badge-check { stroke: var(--tlp-ink); }

.tlp-title {
	margin: 0 30px 6px 0 !important; padding: 0 !important;
	font-family: inherit !important; font-size: 22px !important; font-weight: 800 !important; line-height: 1.2 !important;
	color: var(--tlp-ink) !important; letter-spacing: -.01em; text-transform: none !important;
	border: 0 !important; background: none !important;
	text-wrap: balance;
}
.tlp-text { margin: 0 0 14px !important; padding: 0; font-size: 14.5px; color: var(--tlp-muted); }

/* ---- vyzkoušej slova ---- */
.tlp-try { background: var(--tlp-soft); border-radius: 14px; padding: 12px 12px 10px; margin: 0 0 14px; }
.tlp-try-label { font-size: 13px; font-weight: 700; margin: 0 0 8px; color: var(--tlp-ink); }
.tlp-words { display: flex; flex-wrap: wrap; gap: 6px; }
.tlp-word {
	display: inline-flex; align-items: center; gap: 6px;
	margin: 0; padding: 6px 11px 6px 8px;
	font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.2;
	color: var(--tlp-ink); background: #fff;
	border: 1.5px solid var(--tlp-line); border-radius: 999px; cursor: pointer;
	transition: border-color .15s, background-color .15s, transform .1s;
	text-transform: none; letter-spacing: 0; box-shadow: none;
}
.tlp-word:hover { border-color: var(--tlp-accent); }
.tlp-word:active { transform: scale(.96); }
.tlp-check {
	width: 16px; height: 16px; border-radius: 5px; flex: none;
	border: 1.5px solid var(--tlp-check-line); background: #fff; position: relative;
	transition: background-color .15s, border-color .15s;
}
.tlp-word[aria-pressed="true"] { background: var(--tlp-pressed); border-color: var(--tlp-accent); }
.tlp-word[aria-pressed="true"] .tlp-check { background: var(--tlp-accent); border-color: var(--tlp-accent); }
.tlp-word[aria-pressed="true"] .tlp-check::after {
	content: ""; position: absolute; left: 4.5px; top: 1.5px; width: 4px; height: 8px;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.tlp-has-score .tlp-try-label { color: var(--tlp-accent-dark); }

/* ---- tlačítko ---- */
.tlp-cta {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	width: 100%; padding: 13px 18px;
	background: var(--tlp-accent); color: #fff !important;
	font-size: 16px; font-weight: 700; text-decoration: none !important;
	border-radius: 999px;
	box-shadow: 0 6px 16px -6px rgba(var(--tlp-accent-rgb), .7);
	transition: background-color .15s, transform .15s;
}
.tlp-cta:hover, .tlp-cta:focus-visible { background: var(--tlp-accent-dark); transform: translateY(-1px); }
.tlp-cta svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; transition: transform .15s; }
.tlp-cta:hover svg { transform: translateX(3px); }

.tlp-levels { margin: 10px 0 2px !important; padding: 0; text-align: center; font-size: 13px; color: var(--tlp-muted); }
.tlp-levels strong, .tlp-levels b { color: var(--tlp-ink); }

.tlp-later {
	display: block; margin: 4px auto 0; padding: 6px 10px;
	background: none; border: 0; cursor: pointer;
	font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.2; color: var(--tlp-muted);
	text-decoration: underline; text-underline-offset: 2px;
	text-transform: none; letter-spacing: 0; box-shadow: none;
}
.tlp-later:hover { color: var(--tlp-ink); background: none; }

.tlp-root :focus-visible { outline: 3px solid var(--tlp-accent); outline-offset: 2px; }

/* ---- mobil: panel dole ---- */
@media (max-width: 767px) {
	/* malý panel dole: bez slov a věty o levelech, ať nezakrývá článek */
	.tlp-corner { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
	.tlp-corner .tlp-box { padding: 14px 16px 6px; border-radius: 18px; border-top-width: 4px; }
	.tlp-corner .tlp-brand { margin-bottom: 6px; font-size: 12px; }
	.tlp-corner .tlp-brand svg { width: 24px; height: 24px; }
	.tlp-corner .tlp-try, .tlp-corner .tlp-levels { display: none; }
	.tlp-title { font-size: 19px !important; }
	.tlp-text { font-size: 13.5px; margin-bottom: 12px !important; }
	.tlp-word { font-size: 13px; padding: 5px 9px 5px 7px; }
	.tlp-cta { padding: 12px 16px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.tlp-box, .tlp-shade, .tlp-cta, .tlp-cta svg { transition: none; }
	.tlp-box { transform: none; }
}
