/* ==========================================================================
   Tarlac State University Library: "Level up" home, body.ts-level (loaded last on the home page, 2026-11-27).
   Seal maroon (--ts-blue*, remapped) + torch gold (--ts-gold*, fills and rules only) on warm paper. Teen energy comes
   from structure and motion: a fanned photo stack with stickers, college "stories", a quest with an XP bar,
   count-up numbers. No neon, no confetti: one brand accent, real library photos.
   ========================================================================== */

.ts-level {
	--lv-maroon: #7f1416;
	--lv-maroon-dark: #5e0e10;
	--lv-night: #2a0b0c;
	--lv-gold: #f2b632;
	--lv-gold-soft: #fdf3d8;
	--lv-gold-ink: #6b4a00;
	--lv-paper: #fbf8f4;
	--lv-card: #fff;
	--lv-ink: #1f1715;
	--lv-muted: #64584f;
	--lv-line: #ebe3da;
	--lv-radius: 22px;
	--lv-shadow: 0 1px 2px rgba(31, 23, 21, 0.06), 0 18px 40px -22px rgba(42, 11, 12, 0.35);
	--lv-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ---------- Hero ---------- */

.ts-level .lv-hero {
	position: relative;
	overflow: hidden;
	background: var(--lv-paper);
	padding: 56px 0 28px;
	color: var(--lv-ink);
}
.ts-level .lv-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ts-level .lv-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.9; }
.ts-level .lv-blob-1 { width: 620px; height: 620px; right: -160px; top: -220px; background: radial-gradient(circle at 40% 40%, rgba(127, 20, 22, 0.16), rgba(127, 20, 22, 0) 65%); }
.ts-level .lv-blob-2 { width: 520px; height: 520px; left: -180px; bottom: -260px; background: radial-gradient(circle at 50% 50%, rgba(242, 182, 50, 0.22), rgba(242, 182, 50, 0) 65%); }
.ts-level .lv-grid {
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(127, 20, 22, 0.13) 1.2px, transparent 1.4px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
	mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
}
.ts-level .lv-hero-grid {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	gap: 56px;
	align-items: center;
}
.ts-level .lv-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 18px; font-size: 14px; }
.ts-level .lv-pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 7px 14px 7px 12px; border-radius: 999px;
	background: #fff; border: 1px solid var(--lv-line); box-shadow: 0 6px 16px -12px rgba(42, 11, 12, 0.5);
	font-weight: 700; color: var(--lv-ink);
}
.ts-level .lv-where { color: var(--lv-muted); font-weight: 600; letter-spacing: 0.02em; }
.ts-level .lv-title {
	font-family: var(--ts-display, var(--ts-sans));
	font-weight: 800;
	font-size: clamp(42px, 6.2vw, 82px);
	line-height: 0.98;
	letter-spacing: -0.035em;
	margin: 0 0 20px;
	color: var(--lv-night);
}
.ts-level .lv-mark {
	display: inline;
	color: var(--lv-maroon);
	background: linear-gradient(180deg, transparent 62%, rgba(242, 182, 50, 0.75) 62%, rgba(242, 182, 50, 0.75) 90%, transparent 90%);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	padding: 0 4px;
}
.ts-level .lv-lede { font-size: 18px; line-height: 1.6; color: var(--lv-muted); max-width: 560px; margin: 0 0 26px; }

/* search console: white card, pill modes */
.ts-level .lv-console {
	background: #fff !important;
	border: 1px solid var(--lv-line) !important;
	border-radius: var(--lv-radius) !important;
	box-shadow: var(--lv-shadow) !important;
	padding: 14px !important;
	max-width: 640px;
	margin: 0;
}
.ts-level .lv-console .sp-modes { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; border: 0; background: none; }
.ts-level .lv-console .px-mode {
	display: inline-flex; align-items: center; gap: 7px;
	border: 1px solid var(--lv-line) !important; background: var(--lv-paper) !important; color: var(--lv-ink) !important;
	border-radius: 999px !important; padding: 7px 14px !important; font-size: 14px; font-weight: 700;
	box-shadow: none !important; transition: background 0.2s, color 0.2s, transform 0.2s var(--lv-ease);
}
.ts-level .lv-console .px-mode i { color: var(--lv-maroon); }
.ts-level .lv-console .px-mode:hover { transform: translateY(-1px); }
.ts-level .lv-console .px-mode.active { background: var(--lv-maroon) !important; color: #fff !important; border-color: var(--lv-maroon) !important; }
.ts-level .lv-console .px-mode.active i { color: var(--lv-gold); }
.ts-level .lv-console .sp-field {
	display: flex; align-items: center; gap: 10px;
	background: var(--lv-paper); border: 2px solid var(--lv-line); border-radius: 16px;
	padding: 6px 6px 6px 16px; transition: border-color 0.2s, box-shadow 0.2s;
}
.ts-level .lv-console .sp-field:focus-within { border-color: var(--lv-maroon); box-shadow: 0 0 0 4px rgba(127, 20, 22, 0.12); }
.ts-level .lv-console .sp-field > i { color: var(--lv-muted); }
.ts-level .lv-console .sp-field input {
	flex: 1 1 auto; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important;
	font-size: 17px; padding: 10px 0; color: var(--lv-ink); outline: none;
}
.ts-level .lv-console kbd { background: #fff; color: var(--lv-muted); border: 1px solid var(--lv-line); box-shadow: none; font-size: 12px; }
.ts-level .lv-console .sp-go {
	border: 0 !important; border-radius: 12px !important; padding: 12px 20px !important;
	background: var(--lv-maroon) !important; color: #fff !important; font-weight: 800; white-space: nowrap;
	transition: background 0.2s, transform 0.2s var(--lv-ease);
}
.ts-level .lv-console .sp-go:hover { background: var(--lv-night) !important; transform: translateY(-1px); }
.ts-level .lv-console .sp-go i { color: var(--lv-gold); }
.ts-level .lv-console .sp-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 2px 0; font-size: 13px; }
.ts-level .lv-console .sp-chips > span { color: var(--lv-muted); font-weight: 700; margin-right: 4px; }
.ts-level .lv-console .sp-chip {
	border: 1px dashed rgba(127, 20, 22, 0.35) !important; background: #fff !important; color: var(--lv-maroon) !important;
	border-radius: 999px !important; padding: 4px 12px !important; font-weight: 700; font-size: 13px;
}
.ts-level .lv-console .sp-chip:hover { background: var(--lv-gold-soft) !important; border-style: solid !important; }
.ts-level .lv-quick { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; }
.ts-level .lv-quick a { color: var(--lv-ink); font-weight: 700; font-size: 15px; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.ts-level .lv-quick a i { color: var(--lv-maroon); }
.ts-level .lv-quick a:hover { color: var(--lv-maroon); text-decoration: underline; text-decoration-color: var(--lv-gold); text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* the photo stack */
.ts-level .lv-stage { position: relative; min-height: 470px; margin-bottom: 30px; }
.ts-level .lv-stack { position: relative; height: 470px; }
.ts-level .lv-card {
	position: absolute; margin: 0;
	background: #fff; padding: 10px 10px 40px; border-radius: 18px;
	box-shadow: 0 2px 4px rgba(31, 23, 21, 0.08), 0 30px 60px -28px rgba(42, 11, 12, 0.55);
	transition: transform 0.6s var(--lv-ease);
}
.ts-level .lv-card img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 11px; }
.ts-level .lv-card figcaption {
	position: absolute; left: 16px; right: 16px; bottom: 10px;
	font-size: 13px; font-weight: 800; color: var(--lv-ink); letter-spacing: 0.01em;
}
.ts-level .lv-card figcaption::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lv-gold); margin-right: 8px; vertical-align: 1px; }
.ts-level .lv-card-1 { width: 62%; height: 250px; left: 0; top: 18px; transform: rotate(-7deg); }
.ts-level .lv-card-2 { width: 54%; height: 240px; right: 0; top: 0; transform: rotate(6deg); }
.ts-level .lv-card-3 { width: 70%; height: 300px; left: 15%; top: 150px; transform: rotate(-1.5deg); z-index: 2; }
.ts-level .lv-stack.is-armed .lv-card { transform: translateY(30px) rotate(0deg) scale(0.96); opacity: 0; }
.ts-level .lv-stack.is-in .lv-card { opacity: 1; transition: transform 0.8s var(--lv-ease), opacity 0.5s; }
.ts-level .lv-stack.is-in .lv-card-1 { transform: rotate(-7deg); }
.ts-level .lv-stack.is-in .lv-card-2 { transform: rotate(6deg); transition-delay: 0.08s; }
.ts-level .lv-stack.is-in .lv-card-3 { transform: rotate(-1.5deg); transition-delay: 0.16s; }
.ts-level .lv-stage:hover .lv-card-1 { transform: rotate(-11deg) translate(-14px, -6px); }
.ts-level .lv-stage:hover .lv-card-2 { transform: rotate(10deg) translate(14px, -8px); }
.ts-level .lv-stage:hover .lv-card-3 { transform: rotate(0deg) translateY(-6px); }

.ts-level .lv-sticker { position: absolute; z-index: 3; }
.ts-level .lv-sticker-seal {
	left: -6px; top: 210px; width: 82px; height: 82px; border-radius: 50%;
	background: #fff; display: grid; place-items: center;
	box-shadow: 0 14px 30px -14px rgba(42, 11, 12, 0.6); transform: rotate(-10deg);
	animation: lvBob 6s ease-in-out infinite;
}
.ts-level .lv-sticker-seal img { width: 66px; height: 66px; border-radius: 50%; }
.ts-level .lv-sticker-xp {
	right: -4px; top: 210px; background: var(--lv-gold); color: var(--lv-night);
	border-radius: 16px; padding: 10px 16px; transform: rotate(5deg);
	box-shadow: 0 14px 30px -16px rgba(107, 74, 0, 0.7); text-align: center;
	animation: lvBob 7s ease-in-out -2s infinite;
}
.ts-level .lv-sticker-xp b { display: block; font-size: 28px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.ts-level .lv-sticker-xp small { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.ts-level .lv-sticker-open {
	right: -10px; bottom: -34px; display: flex; align-items: center; gap: 12px;
	background: var(--lv-night); color: #fff; border-radius: 16px; padding: 12px 16px;
	box-shadow: 0 18px 36px -18px rgba(42, 11, 12, 0.8);
}
.ts-level .lv-sticker-open b { display: block; font-size: 14px; }
.ts-level .lv-sticker-open small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.72); }
.ts-level .lv-dot { width: 12px; height: 12px; border-radius: 50%; background: #c9a24a; box-shadow: 0 0 0 4px rgba(242, 182, 50, 0.22); flex: 0 0 auto; }
.ts-level [data-lv-hours].is-open .lv-dot { background: #3fb37f; box-shadow: 0 0 0 4px rgba(63, 179, 127, 0.25); animation: lvPulse 2s ease-out infinite; }
@keyframes lvBob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@keyframes lvPulse { 0% { box-shadow: 0 0 0 0 rgba(63, 179, 127, 0.5); } 100% { box-shadow: 0 0 0 12px rgba(63, 179, 127, 0); } }

/* numbers */
.ts-level .lv-stats {
	list-style: none; margin: 48px 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
	background: #fff; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); box-shadow: var(--lv-shadow);
	overflow: hidden;
}
.ts-level .lv-stats li { padding: 20px 22px; border-left: 1px solid var(--lv-line); }
.ts-level .lv-stats li:first-child { border-left: 0; }
.ts-level .lv-stats b { display: block; font-size: 32px; font-weight: 800; color: var(--lv-maroon); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ts-level .lv-stats li > span { display: block; font-size: 13px; color: var(--lv-muted); font-weight: 600; margin-top: 2px; }
.ts-level .lv-stats b span { font: inherit; color: inherit; }
.ts-level .lv-stats li:nth-child(5) b { color: var(--lv-night); }

/* ticker */
.ts-level .lv-ticker { background: var(--lv-maroon) !important; color: #fff !important; border: 0 !important; }
.ts-level .lv-ticker .sp-ticker-label { background: var(--lv-gold) !important; color: var(--lv-night) !important; font-weight: 800; }
.ts-level .lv-ticker li { color: #fff !important; }
.ts-level .lv-ticker li::before { background: var(--lv-gold) !important; color: var(--lv-gold) !important; }

/* section heads on this page */
.ts-level .ts-section-head .ts-h2 em { font-style: normal; color: var(--lv-maroon); }

/* ---------- College stories ---------- */

.ts-level .lv-stories-sec { background: #fff; }
.ts-level .lv-rings {
	display: flex; gap: 14px; overflow-x: auto; padding: 8px 4px 18px; margin: 0 -4px 10px;
	scrollbar-width: thin; scroll-snap-type: x proximity;
}
.ts-level .lv-ring {
	flex: 0 0 auto; width: 104px; scroll-snap-align: center;
	display: flex; flex-direction: column; align-items: center; gap: 6px;
	background: none; border: 0; padding: 0; cursor: pointer; color: var(--lv-ink); text-align: center;
}
.ts-level .lv-ring-face {
	width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
	background: conic-gradient(from 210deg, var(--tone), var(--lv-gold), var(--tone));
	padding: 3px; position: relative; transition: transform 0.3s var(--lv-ease);
}
.ts-level .lv-ring-face::before { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: #fff; }
.ts-level .lv-ring-face i { position: relative; font-size: 26px; color: var(--tone); }
.ts-level .lv-ring b { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.ts-level .lv-ring small { font-size: 11.5px; line-height: 1.25; color: var(--lv-muted); font-weight: 600; }
.ts-level .lv-ring:hover .lv-ring-face { transform: translateY(-3px) rotate(-4deg); }
.ts-level .lv-ring.active .lv-ring-face { transform: scale(1.06); background: conic-gradient(from 0deg, var(--lv-gold), var(--tone), var(--lv-gold)); padding: 4px; }
.ts-level .lv-ring.active .lv-ring-face::before { inset: 4px; background: var(--tone); }
.ts-level .lv-ring.active .lv-ring-face i { color: #fff; }
.ts-level .lv-ring.active b { color: var(--lv-maroon); }
.ts-level .lv-ring:focus-visible { outline: none; }
.ts-level .lv-ring:focus-visible .lv-ring-face { box-shadow: 0 0 0 4px rgba(242, 182, 50, 0.55); }
.ts-level .lv-rings.is-armed .lv-ring { opacity: 0; transform: translateY(12px); }
.ts-level .lv-rings.is-in .lv-ring { opacity: 1; transform: none; transition: opacity 0.4s, transform 0.5s var(--lv-ease); transition-delay: calc(var(--i) * 40ms); }

.ts-level .lv-story {
	background: var(--lv-paper); border: 1px solid var(--lv-line); border-radius: 26px;
	padding: 18px 26px 22px; box-shadow: var(--lv-shadow); position: relative; overflow: hidden;
	animation: lvStoryIn 0.45s var(--lv-ease);
}
.ts-level .lv-story::after { content: ""; position: absolute; right: -80px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: var(--tone); opacity: 0.07; pointer-events: none; }
@keyframes lvStoryIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ts-level .lv-story-bars { display: flex; gap: 4px; margin: 0 0 18px; }
.ts-level .lv-story-bars span { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--lv-line); }
.ts-level .lv-story-bars span.is-done { background: rgba(127, 20, 22, 0.35); }
.ts-level .lv-story-bars span.is-now { background: linear-gradient(90deg, var(--tone), var(--lv-gold)); }
.ts-level .lv-story-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; margin-bottom: 18px; }
.ts-level .lv-story-face { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; background: var(--tone); color: #fff; font-size: 24px; box-shadow: 0 12px 24px -14px var(--tone); transform: rotate(-4deg); }
.ts-level .lv-story-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tone); }
.ts-level .lv-story-head h3 { margin: 2px 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--lv-night); }
.ts-level .lv-story-head p { margin: 0; color: var(--lv-muted); max-width: 720px; font-size: 15px; line-height: 1.55; }
.ts-level .lv-story-nav { display: flex; gap: 8px; }
.ts-level .lv-story-nav button {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--lv-line); background: #fff; color: var(--lv-ink);
	display: grid; place-items: center; cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.ts-level .lv-story-nav button:hover { background: var(--lv-maroon); color: #fff; transform: scale(1.06); }
.ts-level .lv-story-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; position: relative; z-index: 1; }
.ts-level .lv-story-side { display: grid; gap: 18px; align-content: start; }
.ts-level .lv-story-h { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lv-ink); margin: 0 0 10px; }
.ts-level .lv-story-h span { background: var(--lv-night); color: var(--lv-gold); border-radius: 8px; padding: 2px 7px; font-size: 11px; letter-spacing: 0.04em; }
.ts-level .lv-story .px-tool { background: #fff; border-radius: 14px; }
.ts-level .lv-story .sp-topics a { border-radius: 999px; }
.ts-level .lv-story-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--lv-line); position: relative; z-index: 1; }
.ts-level .lv-story-foot a { font-weight: 700; font-size: 14px; color: var(--lv-maroon); text-decoration: none; }
.ts-level .lv-story-foot a:hover { text-decoration: underline; text-decoration-color: var(--lv-gold); text-decoration-thickness: 2px; }
.ts-level .lv-story-foot i { color: var(--tone); }

/* ---------- The research quest ---------- */

.ts-level .lv-quest-sec { background: var(--lv-paper); }
.ts-level .lv-xp {
	position: relative; height: 14px; border-radius: 999px; background: #fff; border: 1px solid var(--lv-line);
	margin: 6px 0 30px; overflow: visible;
}
.ts-level .lv-xp-fill {
	position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 999px;
	background: linear-gradient(90deg, var(--lv-maroon), #b4451e 55%, var(--lv-gold));
	transform-origin: left; transform: scaleX(1);
}
.ts-level .lv-quest-sec.is-armed .lv-xp-fill { transform: scaleX(0.04); }
.ts-level .lv-quest-sec.is-in .lv-xp-fill { transform: scaleX(1); transition: transform 1.8s var(--lv-ease) 0.2s; }
.ts-level .lv-xp b { position: absolute; top: 20px; font-size: 12px; font-weight: 800; color: var(--lv-muted); letter-spacing: 0.04em; }
.ts-level .lv-xp b:first-of-type { left: 0; }
.ts-level .lv-xp b:last-of-type { right: 0; color: var(--lv-gold-ink); }
.ts-level .lv-quest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.ts-level .lv-quest > li {
	background: #fff; border: 1px solid var(--lv-line); border-radius: var(--lv-radius); padding: 20px 20px 18px;
	box-shadow: var(--lv-shadow); position: relative; transition: transform 0.3s var(--lv-ease), box-shadow 0.3s;
}
.ts-level .lv-quest > li:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(31, 23, 21, 0.06), 0 26px 46px -24px rgba(42, 11, 12, 0.45); }
.ts-level .lv-quest > li:last-child { background: var(--lv-night); color: #fff; border-color: var(--lv-night); }
.ts-level .lv-quest > li:last-child h3 { color: #fff; }
.ts-level .lv-quest > li:last-child p { color: rgba(255, 255, 255, 0.75); }
.ts-level .lv-quest > li:last-child ul a { color: var(--lv-gold); }
.ts-level .lv-quest-sec.is-armed .lv-quest > li { opacity: 0; transform: translateY(16px); }
.ts-level .lv-quest-sec.is-in .lv-quest > li { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.6s var(--lv-ease); transition-delay: calc(0.25s + var(--i) * 0.12s); }
.ts-level .lv-lvl { display: flex; align-items: center; justify-content: space-between; margin: 0 0 12px; }
.ts-level .lv-lvl span { background: var(--lv-maroon); color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 8px; }
.ts-level .lv-quest > li:last-child .lv-lvl span { background: var(--lv-gold); color: var(--lv-night); }
.ts-level .lv-lvl b { color: var(--lv-gold-ink); font-size: 13px; font-weight: 800; background: var(--lv-gold-soft); padding: 3px 9px; border-radius: 999px; }
.ts-level .lv-quest h3 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--lv-night); }
.ts-level .lv-quest p { font-size: 14.5px; line-height: 1.55; color: var(--lv-muted); margin: 0 0 12px; }
.ts-level .lv-quest ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ts-level .lv-quest ul a { font-weight: 700; font-size: 14px; color: var(--lv-maroon); text-decoration: none; }
.ts-level .lv-quest ul a i { font-size: 11px; margin-left: 4px; transition: transform 0.2s; }
.ts-level .lv-quest ul a:hover i { transform: translateX(3px); }

/* ---------- Libraries band ---------- */

.ts-level .lv-libs-sec {
	background: radial-gradient(800px 400px at 90% 0%, rgba(242, 182, 50, 0.12), transparent 60%), linear-gradient(160deg, var(--lv-maroon-dark), var(--lv-night) 70%);
	color: #fff;
}
.ts-level .lv-libs-sec .ts-kicker { color: var(--lv-gold) !important; }
.ts-level .lv-libs-sec .ts-h2 { color: #fff !important; }
.ts-level .lv-libs-sec .ts-h2 em { color: #fff !important; background: linear-gradient(180deg, transparent 62%, rgba(242, 182, 50, 0.5) 62%, rgba(242, 182, 50, 0.5) 90%, transparent 90%) !important; }
.ts-level .lv-libs-sec .ts-section-note { color: rgba(255, 255, 255, 0.75) !important; }
.ts-level .lv-libs { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 22px; align-items: start; }
.ts-level .lv-libs-side { display: grid; gap: 16px; }
.ts-level .lv-lib-card { background: #fff; color: var(--lv-ink); border-radius: var(--lv-radius); padding: 20px; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, 0.6); }
.ts-level .lv-lib-card h3 { font-size: 18px; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 10px; color: var(--lv-night); }
.ts-level .lv-lib-card h3 i { color: var(--lv-maroon); }
.ts-level .lv-lib-card h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 800; margin: 16px 0 8px; color: var(--lv-muted); }
.ts-level .lv-lib-form { display: flex; gap: 8px; }
.ts-level .lv-lib-form input { flex: 1 1 auto; min-width: 0; border: 2px solid var(--lv-line); border-radius: 12px; padding: 10px 14px; font-size: 15px; background: var(--lv-paper); }
.ts-level .lv-lib-form input:focus { outline: none; border-color: var(--lv-maroon); }
.ts-level .lv-lib-form button { border: 0; border-radius: 12px; padding: 10px 16px; background: var(--lv-maroon); color: #fff; font-weight: 800; white-space: nowrap; }
.ts-level .lv-lib-form button:hover { background: var(--lv-night); }
.ts-level .lv-lib-note { font-size: 13px; color: var(--lv-muted); margin: 8px 0 0; }
.ts-level .lv-lib-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0 0; font-size: 14px; }
.ts-level .lv-lib-links a { color: var(--lv-maroon); font-weight: 700; }
.ts-level .lv-covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ts-level .lv-cover { text-decoration: none; color: var(--lv-ink); font-size: 12px; }
.ts-level .lv-cover-img { position: relative; display: grid; place-items: center; aspect-ratio: 2 / 3; border-radius: 8px; background: var(--lv-gold-soft); overflow: hidden; }
.ts-level .lv-cover-img b { color: var(--lv-maroon); font-size: 22px; }
.ts-level .lv-cover-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ts-level .lv-cover-t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; }
.ts-level .lv-repo-list { margin: 0; padding-left: 18px; font-size: 14px; }
.ts-level .lv-hours-now { font-weight: 800; color: var(--lv-maroon); margin: -4px 0 10px; }
.ts-level .lv-hours.is-open .lv-hours-now { color: #1d6f6a; }
.ts-level .lv-hours dl { margin: 0; display: grid; gap: 6px; }
.ts-level .lv-hours dl div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--lv-paper); border-radius: 10px; font-size: 14px; }
.ts-level .lv-hours dt { font-weight: 700; }
.ts-level .lv-hours dd { margin: 0; color: var(--lv-muted); font-weight: 600; text-align: right; }
.ts-level .lv-hours-note { font-size: 13px; color: var(--lv-muted); margin: 10px 0 6px; }
.ts-level .lv-hours-link { font-weight: 700; font-size: 14px; color: var(--lv-maroon); }
.ts-level .lv-lib-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ts-level .lv-lib-tiles li {
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; overflow: hidden;
	transition: transform 0.3s var(--lv-ease), background 0.3s;
}
.ts-level .lv-lib-tiles li:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.1); }
.ts-level .lv-lib-tiles.is-armed li { opacity: 0; transform: translateY(14px); }
.ts-level .lv-lib-tiles.is-in li { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.6s var(--lv-ease); transition-delay: calc(var(--i) * 0.07s); }
.ts-level .lv-lib-tiles figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; }
.ts-level .lv-lib-tiles img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--lv-ease); }
.ts-level .lv-lib-tiles li:hover img { transform: scale(1.05); }
.ts-level .lv-lib-days { position: absolute; left: 10px; top: 10px; background: var(--lv-gold); color: var(--lv-night); font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.ts-level .lv-lib-tiles li > div { padding: 12px 14px 14px; }
.ts-level .lv-lib-tiles b { display: block; font-size: 15px; font-weight: 800; color: #fff; }
.ts-level .lv-lib-tiles small { display: block; font-size: 12px; color: var(--lv-gold); margin: 2px 0 6px; font-weight: 600; }
.ts-level .lv-lib-tiles p { margin: 0; font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, 0.72); }
.ts-level .lv-services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.ts-level .lv-services a {
	display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
	padding: 14px 16px; border-radius: 16px; text-decoration: none; color: #fff;
	background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); transition: background 0.2s, border-color 0.2s;
}
.ts-level .lv-services a:hover { background: rgba(242, 182, 50, 0.14); border-color: rgba(242, 182, 50, 0.5); }
.ts-level .lv-services i { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lv-gold); color: var(--lv-night); font-size: 17px; }
.ts-level .lv-services b { font-size: 15px; }
.ts-level .lv-services span { font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Research, about ---------- */

.ts-level .lv-feed-links { margin-top: 10px; }
.ts-level .lv-about-photos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; margin: 18px 0; }
.ts-level .lv-about-photos span { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.ts-level .lv-about-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ts-level .lv-visit-card { display: flex; gap: 14px; align-items: center; background: var(--lv-night); color: #fff; border-radius: var(--lv-radius); padding: 18px; margin-bottom: 14px; }
.ts-level .lv-visit-card img { width: 64px; height: 64px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.ts-level .lv-visit-card b { display: block; font-size: 18px; }
.ts-level .lv-visit-card small { display: block; color: var(--lv-gold); font-weight: 700; }
.ts-level .lv-visit-card em { display: block; font-style: normal; font-size: 12.5px; color: rgba(255, 255, 255, 0.7); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
	.ts-level .lv-quest { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ts-level .lv-libs { grid-template-columns: 1fr; }
	.ts-level .lv-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
	.ts-level .lv-hero { padding-top: 36px; }
	.ts-level .lv-hero-grid { grid-template-columns: 1fr; gap: 30px; }
	.ts-level .lv-stage { min-height: 0; max-width: 560px; margin: 0 auto; width: 100%; }
	.ts-level .lv-stack { height: 400px; }
	.ts-level .lv-card-3 { top: 130px; height: 260px; }
	.ts-level .lv-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.ts-level .lv-stats li:nth-child(4) { border-left: 0; }
	.ts-level .lv-stats li:nth-child(n + 4) { border-top: 1px solid var(--lv-line); }
	.ts-level .lv-story-grid { grid-template-columns: 1fr; }
	.ts-level .lv-lib-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
	.ts-level .lv-lede { font-size: 16px; }
	.ts-level .lv-console { padding: 10px !important; }
	.ts-level .lv-console .sp-modes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.ts-level .lv-console .px-mode { flex: 0 0 auto; }
	.ts-level .lv-console kbd { display: none; }
	.ts-level .lv-console .sp-go { padding: 11px 14px !important; }
	.ts-level .lv-stack { height: 330px; }
	.ts-level .lv-card { padding: 7px 7px 32px; }
	.ts-level .lv-card-1 { height: 170px; }
	.ts-level .lv-card-2 { height: 160px; }
	.ts-level .lv-card-3 { top: 110px; height: 200px; width: 76%; left: 12%; }
	.ts-level .lv-sticker-seal { width: 64px; height: 64px; top: 150px; }
	.ts-level .lv-sticker-seal img { width: 52px; height: 52px; }
	.ts-level .lv-sticker-xp { top: 150px; padding: 8px 12px; }
	.ts-level .lv-sticker-xp b { font-size: 22px; }
	.ts-level .lv-sticker-open { right: 0; left: 0; margin: 0 auto; width: max-content; max-width: 100%; }
	.ts-level .lv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ts-level .lv-stats li { border-left: 0 !important; border-top: 1px solid var(--lv-line); }
	.ts-level .lv-stats li:nth-child(-n + 2) { border-top: 0; }
	.ts-level .lv-stats li:nth-child(even) { border-left: 1px solid var(--lv-line) !important; }
	.ts-level .lv-stats li:last-child { grid-column: 1 / -1; }
	.ts-level .lv-story { padding: 14px 16px 18px; }
	.ts-level .lv-story-head { grid-template-columns: auto 1fr; }
	.ts-level .lv-story-nav { grid-column: 1 / -1; justify-content: flex-end; margin-top: -6px; }
	.ts-level .lv-story-head h3 { font-size: 21px; }
	.ts-level .lv-quest { grid-template-columns: 1fr; }
	.ts-level .lv-lib-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ts-level .lv-lib-tiles p { display: none; }
	.ts-level .lv-services { grid-template-columns: 1fr; }
	.ts-level .lv-lib-form { flex-direction: column; }
	.ts-level .lv-about-photos { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.ts-level .lv-sticker-seal, .ts-level .lv-sticker-xp, .ts-level [data-lv-hours].is-open .lv-dot { animation: none; }
	.ts-level .lv-story { animation: none; }
}

/* ---------- Fixes on shared parts (home only) ---------- */
.ts-level .lv-visit { background: linear-gradient(180deg, var(--lv-paper), #f6efe6); }
.ts-level .px-btn-cta { background: var(--lv-maroon) !important; }
.ts-level .px-btn-cta:hover { background: var(--lv-night) !important; filter: none; }
.ts-foot-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.ts-foot-badges span { display: inline-block; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(242, 182, 50, 0.4); color: rgba(255, 255, 255, 0.85); font-size: 12.5px; font-weight: 700; }
