/* LEAD Linguistic: free English level check. Every rule is scoped under .tl-levelcheck. */

.tl-levelcheck {
	--lc-hd: var(--hd, 78px);
	--lc-line: rgba(30, 20, 48, .16);
	--lc-gap: clamp(18px, 3cqi, 34px);
	container: lc / inline-size;
	position: relative;
	display: block;
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	text-align: left;
	scroll-margin-top: calc(var(--lc-hd) + 14px);
}
.tl-levelcheck *, .tl-levelcheck *::before, .tl-levelcheck *::after { box-sizing: border-box; }
.tl-levelcheck p { margin: 0 0 1em; }
.tl-levelcheck h2, .tl-levelcheck h3 { margin: 0; font-weight: 400; }
.tl-levelcheck ul, .tl-levelcheck ol { margin: 0; padding: 0; list-style: none; }
.tl-levelcheck button { font: inherit; color: inherit; }
.tl-levelcheck svg { display: inline-block; max-width: none; }
.tl-levelcheck [hidden] { display: none !important; }
.tl-levelcheck :focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; border-radius: 4px; }
.tl-levelcheck .lc-vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.tl-levelcheck .lc-hand { font-family: var(--f-hand); font-weight: 400; color: var(--red); line-height: 1.25; }
.tl-levelcheck .lc-small { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.tl-levelcheck .lc-flip { transform: scaleX(-1); }
.tl-levelcheck .btn { touch-action: manipulation; }

/* Paper: margin line and punched holes, as on the home page sheet */
.tl-levelcheck .lc-sheet {
	position: relative;
	background-color: var(--sheet);
	border-radius: 4px 4px 6px 6px;
	box-shadow: var(--shadow-paper);
	padding: clamp(24px, 3.4cqi, 40px) clamp(18px, 3.6cqi, 44px) clamp(26px, 3.4cqi, 40px) 88px;
}
.tl-levelcheck .lc-sheet::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	pointer-events: none;
	background-image:
		linear-gradient(90deg, transparent 60px, var(--margin) 60px, var(--margin) 62px, transparent 62px),
		radial-gradient(circle at 28px 18%, var(--paper-2) 8px, transparent 9px),
		radial-gradient(circle at 28px 50%, var(--paper-2) 8px, transparent 9px),
		radial-gradient(circle at 28px 82%, var(--paper-2) 8px, transparent 9px);
}
.tl-levelcheck .lc-sheet > * { position: relative; }

.tl-levelcheck .lc-h2 { font-family: var(--f-display); font-size: clamp(2.1rem, 5.4cqi, 3.5rem); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 .4em; text-wrap: balance; outline: none; }
.tl-levelcheck .lc-h3 { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-size: clamp(1.3rem, 2.6cqi, 1.6rem); line-height: 1.15; margin: 0 0 12px; }
.tl-levelcheck .lc-lede { font-size: clamp(1.05rem, 1.9cqi, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }
.tl-levelcheck .lc-tick { width: 26px; height: 21px; flex: none; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }

.tl-levelcheck .lc-linkbtn {
	display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 2px; margin: 0;
	border: 0; background: none; color: var(--purple); font-weight: 700; cursor: pointer;
	text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.tl-levelcheck .lc-linkbtn .ic { width: 17px; height: 17px; }
.tl-levelcheck .lc-linkbtn:hover { color: var(--ink); }

/* ------------------------------------------------------------- intro */
.tl-levelcheck .lc-intro__sheet { display: grid; gap: 34px; }
.tl-levelcheck .lc-facts { display: grid; margin: 26px 0 0; border-top: 1.5px solid var(--rule); max-width: 40em; }
.tl-levelcheck .lc-facts li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: start; padding: 13px 0; border-bottom: 1.5px solid var(--rule); }
.tl-levelcheck .lc-facts .lc-tick { margin-top: 3px; }
.tl-levelcheck .lc-facts p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.tl-levelcheck .lc-facts b { color: var(--ink); font-weight: 700; }
.tl-levelcheck .lc-intro__margin { margin: 14px 0 0; font-size: 1.4rem; transform: rotate(-3deg); transform-origin: left center; }

.tl-levelcheck .lc-goal { position: relative; align-self: start; background: var(--lilac); border-radius: 6px; padding: 30px clamp(18px, 3cqi, 30px) 24px; box-shadow: 0 2px 2px rgba(30, 20, 48, .05), 0 22px 34px -22px rgba(30, 20, 48, .45); }
.tl-levelcheck .lc-goal::before { content: ""; position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; transform: translateX(-50%) rotate(-2.5deg); background: rgba(240, 226, 190, .82); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.tl-levelcheck .lc-goal__set { border: 0; margin: 0; padding: 0; min-width: 0; }
.tl-levelcheck .lc-goal__q { padding: 0; font-family: var(--f-display); font-size: clamp(1.45rem, 3cqi, 1.8rem); line-height: 1.15; margin: 0 0 6px; }
.tl-levelcheck .lc-goal__help { font-size: .95rem; color: var(--ink-2); margin: 0 0 16px; }
.tl-levelcheck .lc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-levelcheck .lc-chip { position: relative; cursor: pointer; }
.tl-levelcheck .lc-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tl-levelcheck .lc-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid rgba(30, 20, 48, .28); background: var(--sheet); font-size: .95rem; font-weight: 600; line-height: 1.2; transition: background-color .2s, color .2s, border-color .2s; }
.tl-levelcheck .lc-chip:hover span { border-color: var(--purple); }
.tl-levelcheck .lc-chip input:checked + span { background: var(--purple); border-color: var(--purple); color: var(--sheet); }
.tl-levelcheck .lc-chip input:checked + span::before { content: ""; width: 12px; height: 7px; margin-right: 8px; border-left: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.tl-levelcheck .lc-chip input:focus-visible + span { outline: 3px solid var(--purple); outline-offset: 2px; }
.tl-levelcheck .lc-goal.is-bad .lc-chip span { border-color: var(--red); }
.tl-levelcheck .lc-goal__err { min-height: 1.5em; margin: 10px 0 6px; color: var(--red); font-weight: 600; font-size: .95rem; }
.tl-levelcheck .lc-start { width: 100%; white-space: normal; text-align: center; }
.tl-levelcheck .lc-start.is-busy { cursor: progress; }
.tl-levelcheck .lc-goal .lc-small { margin: 14px 0 0; }
.tl-levelcheck .lc-last { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 14px 0 0; padding-top: 12px; border-top: 1.5px dashed rgba(30, 20, 48, .2); font-size: .95rem; color: var(--ink-2); }
.tl-levelcheck .lc-errbox { margin-top: 16px; padding: 16px 18px; border-radius: 8px; background: var(--sheet); border-left: 5px solid var(--red); }
.tl-levelcheck .lc-errbox p { margin: 0 0 12px; }
.tl-levelcheck .lc-errsheet .lc-errbox { margin: 0; }

/* -------------------------------------------------------------- quiz */
.tl-levelcheck .lc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding: 0 2px 12px; }
.tl-levelcheck .lc-bar p { margin: 0; }
.tl-levelcheck .lc-bar__sec { font-family: var(--f-display); font-size: clamp(1.45rem, 3.4cqi, 2rem); line-height: 1.1; }
.tl-levelcheck .lc-bar__sec small { font-family: var(--f-body); font-size: .9rem; color: var(--muted); margin-left: 6px; white-space: nowrap; }
.tl-levelcheck .lc-bar__count { font-weight: 700; font-variant-numeric: tabular-nums; }
.tl-levelcheck .lc-bar__time { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .95rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tl-levelcheck .lc-bar__time .ic { width: 18px; height: 18px; color: var(--red); }
.tl-levelcheck .lc-bar__again { margin-left: auto; color: var(--muted); font-weight: 600; text-decoration: none; }
.tl-levelcheck .lc-bar__again:hover { color: var(--ink); text-decoration: underline; }

.tl-levelcheck .lc-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0 0 16px; padding: 14px 18px; border-radius: 8px; background: var(--paper-2); border-left: 5px solid var(--red); }
.tl-levelcheck .lc-confirm p { margin: 0; font-weight: 600; }
.tl-levelcheck .lc-confirm__btns { display: flex; flex-wrap: wrap; gap: 10px; }

.tl-levelcheck .lc-prog { display: flex; gap: 6px; margin: 0 2px 20px; }
.tl-levelcheck .lc-prog__seg { display: grid; gap: 6px; min-width: 0; }
.tl-levelcheck .lc-prog__track { position: relative; display: block; height: 8px; border-radius: 99px; background: rgba(30, 20, 48, .1); overflow: hidden; }
.tl-levelcheck .lc-prog__track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--purple); transition: width .45s var(--ease); }
.tl-levelcheck .lc-prog__lab { font-size: .8rem; line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-levelcheck .lc-prog__seg.is-on .lc-prog__lab { color: var(--ink); font-weight: 700; }
.tl-levelcheck .lc-prog__seg.is-done .lc-prog__lab::before { content: "\2713\00a0"; color: var(--red); font-weight: 700; }
.tl-levelcheck .lc-welcome { margin: -8px 2px 14px; font-size: 1.25rem; transform: rotate(-1deg); transform-origin: left; }

.tl-levelcheck .lc-stage__in { display: grid; gap: 22px; align-items: start; }
.tl-levelcheck .lc-passage {
	position: relative; background: var(--sheet); border-radius: 4px 10px 10px 4px; border-left: 6px solid var(--purple);
	box-shadow: 0 2px 2px rgba(30, 20, 48, .05), 0 22px 34px -20px rgba(30, 20, 48, .45);
	padding: clamp(22px, 3cqi, 32px) clamp(18px, 3cqi, 32px);
}
.tl-levelcheck .lc-passage:focus-visible { outline-offset: 4px; }
.tl-levelcheck .lc-passage__t { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4cqi, 1.55rem); line-height: 1.2; margin: 0 0 14px; }
.tl-levelcheck .lc-passage p { font-size: 1rem; line-height: 1.72; color: var(--ink-2); margin: 0 0 .9em; max-width: 64ch; }
.tl-levelcheck .lc-passage p:last-child { margin-bottom: 0; }

.tl-levelcheck .lc-qs { min-width: 0; }
.tl-levelcheck .lc-qs__n { position: absolute; left: 0; top: clamp(24px, 3.4cqi, 40px); width: 60px; text-align: center; font-family: var(--f-display); font-size: 1.45rem; line-height: 1.3; color: var(--muted); }
.tl-levelcheck .lc-qs__new { position: absolute; right: 18px; top: -16px; margin: 0; font-size: 1.15rem; padding: 2px 10px; background: var(--sun); color: var(--ink); transform: rotate(2deg); box-shadow: 0 6px 12px -8px rgba(120, 80, 0, .6); }
.tl-levelcheck .lc-qs__q { font-family: var(--f-display); font-size: clamp(1.32rem, 2.9cqi, 1.8rem); line-height: 1.3; letter-spacing: -.005em; margin: 0 0 20px; max-width: 32em; outline: none; overflow-wrap: anywhere; }
.tl-levelcheck .lc-blank { display: inline-block; width: 3.6em; height: .9em; margin: 0 .12em; border-bottom: 3px solid var(--purple); vertical-align: baseline; }
.tl-levelcheck .lc-totext { margin: -10px 0 8px; font-size: .95rem; }

.tl-levelcheck .lc-opts { display: grid; margin: 0 0 20px; border-top: 1.5px solid var(--rule); }
.tl-levelcheck .lc-opt {
	position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px;
	width: 100%; min-height: 58px; margin: 0; padding: 9px 12px 9px 2px;
	border: 0; border-bottom: 1.5px solid var(--rule); border-radius: 0; background: transparent;
	color: var(--ink); font-size: 1.06rem; line-height: 1.4; text-align: left; cursor: pointer;
	transition: background-color .2s; -webkit-tap-highlight-color: transparent;
}
.tl-levelcheck .lc-opt:hover { background: var(--paper); }
.tl-levelcheck .lc-opt:focus-visible { outline-offset: -3px; }
.tl-levelcheck .lc-opt__k { position: relative; display: grid; place-items: center; width: 34px; height: 34px; margin-left: 6px; border-radius: 50%; border: 1.5px solid rgba(30, 20, 48, .26); font-family: var(--f-mono); font-weight: 700; font-size: .86rem; color: var(--ink-2); transition: border-color .2s, color .2s; }
.tl-levelcheck .lc-opt__t { min-width: 0; overflow-wrap: anywhere; }
.tl-levelcheck .lc-opt__ring { position: absolute; left: -10px; top: -9px; width: 56px; height: 50px; overflow: visible; fill: none; stroke: var(--pen); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; pointer-events: none; transition: stroke-dashoffset .3s var(--ease); }
.tl-levelcheck .lc-opt:hover .lc-opt__k { border-color: var(--pen); color: var(--pen); }
.tl-levelcheck .lc-opt.is-picked { background: var(--lilac); }
.tl-levelcheck .lc-opt.is-picked .lc-opt__k { border-color: transparent; color: var(--pen); }
.tl-levelcheck .lc-opt.is-picked .lc-opt__ring { stroke-dashoffset: 0; }
.tl-levelcheck .lc-opt.is-picked .lc-opt__t { font-weight: 600; }

.tl-levelcheck .lc-qs__nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.tl-levelcheck .lc-qs__nav .btn { min-height: 46px; }
.tl-levelcheck .lc-qs__nav .btn .ic { width: 17px; height: 17px; }
.tl-levelcheck .lc-skip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tl-levelcheck .lc-kbd { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; margin-left: 2px; border-radius: 6px; border: 1.5px solid currentColor; font-family: var(--f-mono); font-size: .76rem; font-weight: 700; opacity: .6; }
.tl-levelcheck .lc-qs__hint { margin: 18px 0 0; font-size: .92rem; line-height: 1.45; color: var(--muted); }
.tl-levelcheck .lc-keys { margin: 14px 2px 0; text-align: right; font-size: .85rem; color: var(--muted); }

.tl-levelcheck .lc-stage__in.is-enter .lc-qs,
.tl-levelcheck .lc-stage__in.is-enter .lc-passage { animation: lc-rise .45s var(--ease) both; }
.tl-levelcheck .lc-stage__in.is-enter .lc-qs { animation-delay: .05s; }
.tl-levelcheck .lc-stage__in.is-next .lc-qs__body,
.tl-levelcheck .lc-qs.is-next .lc-qs__body { animation: lc-fade .3s var(--ease) both; }
@keyframes lc-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes lc-fade { from { opacity: 0; transform: translateX(8px); } }

@media (hover: none), (pointer: coarse) {
	.tl-levelcheck .lc-keys, .tl-levelcheck .lc-kbd { display: none; }
}

/* ------------------------------------------------------------ result */
.tl-levelcheck .lc-card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 26px; padding-bottom: 14px; margin-bottom: clamp(20px, 3cqi, 30px); border-bottom: 2px solid var(--ink); }
.tl-levelcheck .lc-card__title { margin: 0; font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; }
.tl-levelcheck .lc-card__fields { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.tl-levelcheck .lc-card__fields div { display: flex; align-items: baseline; gap: 8px; }
.tl-levelcheck .lc-card__fields dt { font-size: .82rem; color: var(--muted); }
.tl-levelcheck .lc-card__fields dd { margin: 0; padding: 0 6px; font-family: var(--f-hand); font-size: 1.18rem; line-height: 1.3; color: var(--pen); border-bottom: 1.5px solid var(--rule); }

.tl-levelcheck .lc-card__top { display: grid; gap: 10px 44px; align-items: center; margin-bottom: clamp(26px, 4cqi, 40px); }
.tl-levelcheck .lc-card__stamp { position: relative; width: clamp(168px, 28cqi, 226px); margin: -6px 0 0 -6px; }
.tl-levelcheck .lc-stamp { display: block; width: 100%; height: auto; overflow: visible; transform: rotate(-9deg); mix-blend-mode: multiply; opacity: .92; }
.tl-levelcheck .lc-stamp__o, .tl-levelcheck .lc-stamp__o2, .tl-levelcheck .lc-stamp__i { fill: none; stroke: var(--red); }
.tl-levelcheck .lc-stamp__o { stroke-width: 5; }
.tl-levelcheck .lc-stamp__o2 { stroke-width: 1.6; }
.tl-levelcheck .lc-stamp__i { stroke-width: 2.2; }
.tl-levelcheck .lc-stamp__ring { font-family: var(--f-mono); font-weight: 800; font-size: 13px; fill: var(--red); }
.tl-levelcheck .lc-stamp__lv { font-family: var(--f-display); font-size: 68px; fill: var(--red); }
.tl-levelcheck .lc-card__yours { position: absolute; right: -44px; bottom: -22px; margin: 0; font-size: 1.25rem; transform: rotate(-7deg); white-space: nowrap; }
.tl-levelcheck .lc-card__h { font-family: var(--f-display); font-size: clamp(2.3rem, 7cqi, 4rem); line-height: 1; letter-spacing: -.025em; margin: 0 0 14px; outline: none; text-wrap: balance; }
.tl-levelcheck .lc-card__desc { font-size: clamp(1.05rem, 2cqi, 1.2rem); line-height: 1.5; color: var(--ink-2); max-width: 32em; margin: 0 0 18px; }

.tl-levelcheck .lc-scale { display: flex; gap: 6px; max-width: 460px; }
.tl-levelcheck .lc-scale li { position: relative; flex: 1 1 0; padding: 9px 0 4px; text-align: center; border-top: 4px solid rgba(30, 20, 48, .12); font-family: var(--f-mono); font-weight: 700; font-size: .88rem; color: var(--muted); }
.tl-levelcheck .lc-scale li.is-below { border-top-color: var(--ink-2); color: var(--ink-2); }
.tl-levelcheck .lc-scale li.is-on { border-top-color: var(--red); color: var(--ink); }
.tl-levelcheck .lc-scale li svg { position: absolute; left: 50%; top: 50%; width: 52px; height: 42px; transform: translate(-50%, -40%); overflow: visible; fill: none; stroke: var(--red); stroke-width: 2.4; stroke-linecap: round; pointer-events: none; }

.tl-levelcheck .lc-card__body { display: grid; gap: clamp(28px, 4cqi, 40px); }
.tl-levelcheck .lc-skills { display: grid; border-top: 1.5px solid var(--rule); }
.tl-levelcheck .lc-skill { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n p" "t t" "r m"; align-items: center; gap: 4px 16px; padding: 12px 0 10px; border-bottom: 1.5px solid var(--rule); }
.tl-levelcheck .lc-skill__n { grid-area: n; font-family: var(--f-display); font-size: 1.15rem; line-height: 1.2; }
.tl-levelcheck .lc-skill__track { grid-area: t; position: relative; display: block; height: 18px; border-bottom: 1.5px solid rgba(30, 20, 48, .35); }
.tl-levelcheck .lc-skill__track::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: repeating-linear-gradient(90deg, rgba(30, 20, 48, .3) 0 1.5px, transparent 1.5px 10%); }
.tl-levelcheck .lc-skill__fill { position: absolute; left: 0; top: 0; bottom: 3px; width: 0; background: var(--sun); border-radius: 2px 9px 3px 12px / 5px 3px 8px 4px; transform: skewX(-8deg); transform-origin: left; mix-blend-mode: multiply; transition: width 1s .25s var(--ease); }
.tl-levelcheck .lc-result.is-shown .lc-skill__fill { width: var(--w); }
.tl-levelcheck .lc-skill__pct { grid-area: p; font-family: var(--f-hand); font-weight: 700; font-size: 1.55rem; line-height: 1; color: var(--red); text-align: right; font-variant-numeric: tabular-nums; }
.tl-levelcheck .lc-skill__raw { grid-area: r; font-size: .85rem; color: var(--muted); }
.tl-levelcheck .lc-skill__note { grid-area: m; justify-self: end; font-size: 1.1rem; transform: rotate(-4deg); white-space: nowrap; }

.tl-levelcheck .lc-card__cols { display: grid; gap: 26px; }
.tl-levelcheck .lc-col p { margin: 0; color: var(--ink-2); max-width: 36em; }
.tl-levelcheck .lc-tick--up { width: 26px; height: 22px; }

.tl-levelcheck .lc-card__next { display: grid; gap: 30px; align-items: start; }
.tl-levelcheck .lc-slip { position: relative; background: var(--paper); border-radius: 6px; border-top: 8px solid var(--purple); padding: 22px clamp(18px, 3cqi, 28px) 20px; box-shadow: 0 2px 2px rgba(30, 20, 48, .04), 0 16px 28px -20px rgba(30, 20, 48, .5); }
.tl-levelcheck .lc-slip__h { margin: 0 0 10px; }
.tl-levelcheck .lc-slip__h .lc-hand { display: block; font-size: 1.25rem; margin: 0 0 4px; transform: rotate(-1.5deg); transform-origin: left; }
.tl-levelcheck .lc-slip__prog { display: block; font-family: var(--f-display); font-size: clamp(1.45rem, 3.4cqi, 2rem); line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
.tl-levelcheck .lc-card__next > :only-child { grid-column: 1 / -1; max-width: 46em; }
.tl-levelcheck .lc-slip p:last-child { margin: 0; color: var(--ink-2); }
.tl-levelcheck .lc-note { position: relative; margin: 8px 6px 0; padding: 24px 22px 20px; background: #ffe27a; color: var(--ink); font-family: var(--f-hand); font-size: 1.12rem; line-height: 1.42; transform: rotate(1.6deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .04), 0 18px 26px -14px rgba(120, 80, 0, .5); }
.tl-levelcheck .lc-note::before { content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 255, 255, .55); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.tl-levelcheck .lc-note p { margin: 0; }

.tl-levelcheck .lc-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.tl-levelcheck .lc-actions .btn { white-space: normal; text-align: center; }
.tl-levelcheck .lc-actions .btn .ic { width: 20px; height: 20px; }
.tl-levelcheck .lc-more { display: flex; flex-wrap: wrap; gap: 0 28px; margin: -14px 0 0; }
.tl-levelcheck .lc-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.tl-levelcheck .lc-link .ic { width: 17px; height: 17px; transition: transform .25s var(--ease); }
.tl-levelcheck .lc-link:hover { color: var(--purple); }
.tl-levelcheck .lc-link:hover .ic { transform: translateX(3px); }
.tl-levelcheck .lc-disclaimer { margin: 0; padding-top: 18px; border-top: 1.5px dashed rgba(30, 20, 48, .2); font-size: .9rem; line-height: 1.55; color: var(--muted); max-width: 62em; }

.tl-levelcheck .lc-review summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 700; color: var(--purple); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; list-style: none; }
.tl-levelcheck .lc-review summary::-webkit-details-marker { display: none; }
.tl-levelcheck .lc-review summary::before { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .25s var(--ease); }
.tl-levelcheck .lc-review[open] summary::before { transform: rotate(45deg); }
.tl-levelcheck .lc-review summary span { color: var(--muted); font-weight: 600; text-decoration: none; }
.tl-levelcheck .lc-missed { display: grid; margin-top: 10px; border-top: 1.5px solid var(--rule); }
.tl-levelcheck .lc-missed li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1.5px solid var(--rule); }
.tl-levelcheck .lc-missed__lv { align-self: start; display: grid; place-items: center; width: 40px; height: 28px; border-radius: 999px; border: 1.5px solid var(--red); font-family: var(--f-mono); font-weight: 700; font-size: .78rem; color: var(--red); }
.tl-levelcheck .lc-missed__q { margin: 0 0 4px; font-weight: 600; overflow-wrap: anywhere; }
.tl-levelcheck .lc-missed__a { margin: 0; font-size: .95rem; color: var(--ink-2); }
.tl-levelcheck .lc-missed__you { color: var(--muted); }

.tl-levelcheck .lc-result.is-fresh .lc-stamp { animation: lc-stamp .6s .2s var(--ease) both; }
@keyframes lc-stamp {
	0% { opacity: 0; transform: rotate(-18deg) scale(1.45); }
	55% { opacity: 1; transform: rotate(-8deg) scale(.95); }
	100% { opacity: .92; transform: rotate(-9deg) scale(1); }
}

/* --------------------------------------------------------- container sizes */
@container lc (max-width: 620px) {
	.tl-levelcheck .lc-sheet { padding-left: 50px; padding-right: 16px; }
	.tl-levelcheck .lc-sheet::before {
		background-image:
			linear-gradient(90deg, transparent 34px, var(--margin) 34px, var(--margin) 36px, transparent 36px),
			radial-gradient(circle at 16px 18%, var(--paper-2) 6px, transparent 7px),
			radial-gradient(circle at 16px 50%, var(--paper-2) 6px, transparent 7px),
			radial-gradient(circle at 16px 82%, var(--paper-2) 6px, transparent 7px);
	}
	.tl-levelcheck .lc-qs__n { width: 34px; font-size: 1.05rem; }
	.tl-levelcheck .lc-opt { grid-template-columns: 42px minmax(0, 1fr); font-size: 1rem; }
	.tl-levelcheck .lc-opt__k { margin-left: 2px; width: 32px; height: 32px; }
	.tl-levelcheck .lc-prog__seg:not(.is-on) .lc-prog__lab { visibility: hidden; }
	.tl-levelcheck .lc-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sec again" "count time"; gap: 0 14px; align-items: center; }
	.tl-levelcheck .lc-bar__sec { grid-area: sec; }
	.tl-levelcheck .lc-bar__again { grid-area: again; margin: 0; }
	.tl-levelcheck .lc-bar__count { grid-area: count; }
	.tl-levelcheck .lc-bar__time { grid-area: time; justify-self: end; }
	.tl-levelcheck .lc-card__fields { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
	.tl-levelcheck .lc-card__fields div { flex-direction: column; gap: 0; }
	.tl-levelcheck .lc-card__fields dd { padding: 0 2px; }
	.tl-levelcheck .lc-qs__nav .btn { flex: 1 1 auto; }
	.tl-levelcheck .lc-actions .btn { flex: 1 1 100%; }
	.tl-levelcheck .lc-card__yours { right: auto; left: calc(100% + 2px); bottom: 34%; font-size: 1.15rem; }
	.tl-levelcheck .lc-card__fields { gap: 8px 16px; }
	.tl-levelcheck .lc-goal { margin-left: -8px; }
}
@container lc (min-width: 621px) {
	.tl-levelcheck .lc-skill { grid-template-columns: 9.5em minmax(0, 1fr) 4.2em 7.6em; grid-template-areas: "n t p m" "n r . m"; gap: 2px 18px; padding: 14px 0 12px; }
	.tl-levelcheck .lc-skill__raw { margin-top: 2px; }
	.tl-levelcheck .lc-skill__note { justify-self: start; }
	.tl-levelcheck .lc-card__cols { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@container lc (min-width: 700px) {
	.tl-levelcheck .lc-card__top { grid-template-columns: auto minmax(0, 1fr); }
}
@container lc (min-width: 780px) {
	.tl-levelcheck .lc-card__next { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 40px; }
}
@container lc (min-width: 880px) {
	.tl-levelcheck .lc-intro__sheet { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: start; }
	.tl-levelcheck .lc-goal { margin-top: 10px; transform: rotate(.7deg); }
	.tl-levelcheck .lc-stage__in.is-reading { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; }
	.tl-levelcheck .lc-stage__in.is-reading .lc-passage { position: sticky; top: calc(var(--lc-hd) + 14px); max-height: calc(100vh - var(--lc-hd) - 30px); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--lilac-2) transparent; }
}

@media (prefers-reduced-motion: reduce) {
	.tl-levelcheck *, .tl-levelcheck *::before, .tl-levelcheck *::after { animation: none !important; transition: none !important; }
	.tl-levelcheck .lc-stamp { opacity: .92; }
}
@media print {
	.tl-levelcheck .lc-actions, .tl-levelcheck .lc-more, .tl-levelcheck .lc-review { display: none; }
	.tl-levelcheck .lc-sheet { box-shadow: none; }
	.tl-levelcheck .lc-skill__fill { width: var(--w); }
}
