/* www.msn4lin.com — azul Messenger, verde "conectado" y ventanas de la época */
:root {
	--bg: #f5f8fd;
	--bg-alt: #eaf1fb;
	--card: #ffffff;
	--text: #0f1b2d;
	--muted: #51617a;
	--line: #d7e2f1;
	--brand: #0b5ed7;
	--brand-2: #2f8cff;
	--brand-ink: #ffffff;
	--green: #16a34a;
	--amber: #b45309;
	--hero-a: #0a3d8f;
	--hero-b: #1677e6;
	--shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .08);
	--radius: 16px;
	--wrap: 1120px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #0b1220;
		--bg-alt: #0f1a2e;
		--card: #13203a;
		--text: #e7eefb;
		--muted: #9fb0cc;
		--line: #22334f;
		--brand: #3b8cff;
		--brand-2: #64a6ff;
		--green: #34d399;
		--amber: #fbbf24;
		--hero-a: #071a3d;
		--hero-b: #0d3f8f;
		--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #0b1220;
	--bg-alt: #0f1a2e;
	--card: #13203a;
	--text: #e7eefb;
	--muted: #9fb0cc;
	--line: #22334f;
	--brand: #3b8cff;
	--brand-2: #64a6ff;
	--green: #34d399;
	--amber: #fbbf24;
	--hero-a: #071a3d;
	--hero-b: #0d3f8f;
	--shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 6px; padding: .1em .4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 800px; }
.ico { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* Botones */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	background: linear-gradient(180deg, var(--brand-2), var(--brand));
	color: var(--brand-ink); text-decoration: none; font-weight: 650;
	padding: .8em 1.3em; border-radius: 12px; border: 1px solid transparent;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 6px 16px rgba(11, 94, 215, .25);
	transition: transform .15s, box-shadow .15s, filter .15s;
}
.btn:hover { color: var(--brand-ink); transform: translateY(-1px); filter: brightness(1.05); }
.btn-ghost { background: var(--card); color: var(--brand); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand-2); }
.btn-light { background: #fff; color: #0b4fb3; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.btn-light:hover { color: #0b4fb3; }
.btn-sm { padding: .5em .95em; font-size: .92rem; border-radius: 10px; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.02em; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: .95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; }
.theme:hover { color: var(--text); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme .i-sun { display: none; }
:root[data-theme="dark"] .theme .i-sun { display: block; }
:root[data-theme="dark"] .theme .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .theme .i-sun { display: block; }
	:root:not([data-theme="light"]) .theme .i-moon { display: none; }
}
.langs { position: relative; }
.langs summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font-weight: 650; font-size: .85rem; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.langs[open] summary, .langs summary:hover { color: var(--text); }
.langs-pop { position: absolute; right: 0; top: calc(100% + 8px); width: 360px; max-width: calc(100vw - 24px); max-height: 75vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.langs-pop a { padding: 8px 12px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .95rem; }
.langs-pop a:hover { background: var(--bg-alt); }
.langs-pop a[aria-current] { color: var(--brand); font-weight: 700; }

/* Portada */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(160deg, var(--hero-a), var(--hero-b)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(transparent, rgba(0, 0, 0, .08)); pointer-events: none; }
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.eyebrow { display: inline-block; margin-bottom: 18px; padding: .35em .85em; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); font-size: .85rem; font-weight: 650; letter-spacing: .02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a7f3d0, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.hero .lead { color: #dbe8ff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.hero .btn { background: #fff; color: #0b4fb3; box-shadow: 0 10px 24px rgba(0, 0, 0, .2); }
.hero .btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li { font-size: .82rem; font-weight: 600; padding: .3em .75em; border-radius: 8px; background: rgba(0, 0, 0, .18); color: #e3edff; }
/* Captura de la portada: la clara o la de la skin Noche según el tema */
.hero-shot { margin: 8px 0 0; }
.hero-text { max-width: 780px; }
.hero-shot a { display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .18); transition: transform .2s; }
.hero-shot a:hover { transform: translateY(-3px); }
.hero-shot picture, .hero-shot img { display: block; width: 100%; height: auto; }
.shot-dark { display: none !important; }
:root[data-theme="dark"] .shot-dark { display: block !important; }
:root[data-theme="dark"] .shot-light { display: none !important; }
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .shot-dark { display: block !important; }
	:root:not([data-theme="light"]) .shot-light { display: none !important; }
}

.status { background: var(--card); border-bottom: 1px solid var(--line); }
.status-in { display: flex; gap: 16px; align-items: flex-start; padding-top: 22px; padding-bottom: 22px; }
.status-in > .ico { color: var(--amber); width: 28px; height: 28px; margin-top: 2px; }
.status h2 { font-size: 1.05rem; margin: 0 0 .2em; letter-spacing: 0; }
.status p { margin: 0; color: var(--muted); }

.stats { background: var(--card); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.6rem, 3.4vw, 2.2rem); letter-spacing: -.03em; color: var(--brand); }
.stat span { color: var(--muted); font-size: .92rem; }

.block { padding: 84px 0; }
.block-tight { padding: 36px 0 84px; }
.block-alt { background: var(--bg-alt); }
.block-head { max-width: 680px; margin-bottom: 40px; }
.block-head p { color: var(--muted); font-size: 1.1rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }
.feature-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 16px; color: #fff; background: linear-gradient(135deg, var(--brand-2), var(--brand)); }
.feature:nth-child(3n+2) .feature-ico { background: linear-gradient(135deg, #34d399, #059669); }
.feature:nth-child(3n+3) .feature-ico { background: linear-gradient(135deg, #fbbf24, #d97706); }
.feature-ico .ico { width: 24px; height: 24px; }

.versions { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.version { display: grid; grid-template-columns: 170px 1fr; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-items: start; }
.version-shot img { border-radius: 6px; box-shadow: 0 10px 24px rgba(15, 27, 45, .18); }
.version p { color: var(--muted); }
.version-meta { font-size: .9rem; font-weight: 600; color: var(--text) !important; }
.tag { display: inline-block; font-size: .75rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; padding: .25em .6em; border-radius: 6px; margin-bottom: 10px; }
.tag-tcl { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green); }
.tag-qt { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }

.story { max-width: 760px; }
.story p { font-size: 1.1rem; color: var(--muted); }
.story b { color: var(--text); }

.faq { display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 650; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details div { padding: 0 20px 6px; color: var(--muted); }

.cta { background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: #fff; text-align: center; }
.cta-in { padding-top: 72px; padding-bottom: 72px; }
.cta p { color: #dbe8ff; font-size: 1.15rem; margin-bottom: 26px; }

/* Páginas interiores */
.page-head { padding: 64px 0 20px; }
.page-head .lead { margin: 0; }
.nf { padding: 120px 0; text-align: center; }
.nf .lead { margin: 0 auto 28px; }
.note { display: flex; gap: 12px; align-items: flex-start; background: color-mix(in srgb, var(--amber) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--amber) 35%, var(--line)); border-radius: 14px; padding: 16px 18px; margin-bottom: 28px; color: var(--text); }
.note .ico { color: var(--amber); margin-top: 3px; }

.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dl { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl-main { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.dl header { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.dl header h2 { font-size: 1.3rem; margin: 0; letter-spacing: -.01em; }
.dl header .tag { margin: 6px 0 0; }
.dl > p { color: var(--muted); }
.dl-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-alt); color: var(--brand); flex: none; }
.dl-ico .ico { width: 24px; height: 24px; }
.dl-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 18px; }
.dl-meta div { background: var(--bg-alt); border-radius: 10px; padding: 8px 10px; }
.dl-meta dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.dl-meta dd { margin: 0; font-weight: 650; font-size: .92rem; }
.dl-files { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.dl-files .btn { justify-content: flex-start; }
.dl-files small { margin-left: auto; opacity: .75; font-weight: 500; }
.dl-sha { margin: 10px 0 0; font-size: .75rem; color: var(--muted); overflow-wrap: anywhere; }
.dl-sha a { color: inherit; font-weight: 650; }
.dl-sha code { font-size: .72rem; }
.dl-sha summary { cursor: pointer; font-weight: 650; width: max-content; }
.dl-sha dl { margin: 6px 0 0; }
.dl-sha dt { margin-top: 6px; }
.dl-sha dd { margin: 2px 0 0; }
.dl-all .btn { margin-top: auto; }
.howto { margin-top: 40px; max-width: 760px; }
.howto p { color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; align-items: start; }
.gallery figure { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.gallery a { display: block; }
.gallery img { margin: 0 auto; border-radius: 6px; max-height: 420px; width: auto; }
.gallery figcaption { margin-top: 14px; font-size: .92rem; color: var(--muted); text-align: center; }
.gallery-title { font-size: 1.35rem; margin: 0 0 18px; }
.gallery + .gallery-title { margin-top: 56px; }
.gallery-tg { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gallery-tg { grid-auto-flow: dense; }
.gallery-tg .wide { grid-column: span 2; }
.gallery-tg .full { grid-column: 1 / -1; }
.gallery-tg img { max-height: 460px; }
.gallery-tg .wide img, .gallery-tg .full img { width: 100%; height: auto; max-height: none; }
.gallery-tg .full img { max-width: 1100px; }
@media (max-width: 620px) { .gallery-tg .wide, .gallery-tg .full { grid-column: auto; } }

.people { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.people li { display: grid; grid-template-columns: 130px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; }
.people-lang { grid-row: span 2; font-weight: 750; color: var(--brand); }
.people-name { font-size: .85rem; color: var(--muted); }

/* Pie */
.foot { border-top: 1px solid var(--line); background: var(--card); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 18px 40px; padding-top: 44px; padding-bottom: 36px; }
.foot-brand p { color: var(--muted); margin: 10px 0 0; max-width: 34em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: start; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }
.foot-small { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }

@media (max-width: 960px) {
	.hero-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
	.features { grid-template-columns: 1fr 1fr; }
	.versions { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	body { font-size: 16px; }
	.wrap { padding: 0 16px; }
	.nav { display: none; }
	/* El menú de idiomas, a lo ancho bajo la cabecera (anclado al botón se saldría por la izquierda) */
	.langs-pop { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; max-width: none; }
	.top-in { gap: 12px; }
	.stats-in { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(3) { border-left: 0; }
	.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
	.features, .dl-grid { grid-template-columns: 1fr; }
	.version { grid-template-columns: 100px 1fr; gap: 16px; padding: 18px; }
	.block { padding: 60px 0; }
	.dl-meta { grid-template-columns: 1fr 1fr; }
	.people li { grid-template-columns: 1fr; }
	.people-lang { grid-row: auto; }
	.foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
	.brand span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn { transition: none; }
}
.btn-off { cursor: default; color: var(--muted); }
.btn-off:hover { transform: none; color: var(--muted); filter: none; border-color: var(--line); }

/* Versiones anteriores */
.old { margin-top: 48px; }
.old > p { color: var(--muted); max-width: 46em; }
.old-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.old-list a { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.old-list a:hover { border-color: var(--brand-2); color: var(--text); }
.old-list .ico { color: var(--brand); }
.old-list small { margin-left: auto; color: var(--muted); }
.old-list .old-name { flex: 1; min-width: 0; }
.old-list small { white-space: nowrap; }

/* Historial */
.hist { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.hist h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hist h2 .tag { margin: 0; }
.timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--line); }
.timeline > li { position: relative; padding: 0 0 26px 18px; }
.timeline > li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); }
.timeline > li:first-child::before { background: var(--green); border-color: var(--green); }
.timeline > li.tl-origin::before { border-color: var(--amber); }
.tl-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.tl-head b { font-size: 1.15rem; }
.tl-head time { color: var(--muted); font-size: .9rem; }
.timeline ul { margin: 0; padding-left: 18px; color: var(--muted); }
.timeline ul li { margin: 2px 0; }
.hist-side { display: grid; gap: 18px; position: sticky; top: 88px; }
.hist-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hist-card h2 { font-size: 1.15rem; }
.hist-card p { color: var(--muted); font-size: .95rem; }
.qt-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.qt-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--bg-alt); border-radius: 10px; }
.qt-list time { color: var(--muted); font-size: .9rem; }

/* Créditos */
.credits > * { max-width: 900px; }
.credits h2 { font-size: 1.4rem; margin-top: 44px; }
.cr-roles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cr-role { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 2px; align-content: start; }
.cr-role span { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.cr-role b { font-size: 1.1rem; }
.cr-role small { color: var(--muted); }
.people li { grid-template-columns: 170px 1fr; grid-template-rows: auto; }
.people-lang { grid-row: auto; }
.names { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .95rem; }
.cr-missing { margin-top: 40px; color: var(--muted); }
@media (max-width: 960px) {
	.hist { grid-template-columns: 1fr; }
	.hist-side { position: static; }
}
@media (max-width: 720px) {
	.cr-roles { grid-template-columns: 1fr; }
	.people li { grid-template-columns: 1fr; }
}

/* Msn4Lin 1.0 para Telegram */
.tag-tg { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.status-new { background: color-mix(in srgb, var(--brand) 7%, var(--card)); }
.status-new .status-in > .ico { color: var(--brand); }
.version-tg { grid-column: 1 / -1; grid-template-columns: 170px 1fr; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.version-tg .version-body { max-width: 52em; }
.dl-tg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); margin-bottom: 56px; }
.dl-tg-main { display: flex; flex-direction: column; }
.dl-tg-main > p { color: var(--muted); }
.dl-tg-how h3 { font-size: 1.1rem; margin: 0 0 10px; }
.dl-tg-how ol { margin: 0; padding-left: 20px; color: var(--muted); }
.dl-tg-how li { margin-bottom: 12px; }
.dl-tg-how b { color: var(--text); }
.dl-tg-how code, .dl-tg-how pre { overflow-wrap: anywhere; }
.dl-tg-how pre { background: var(--bg-alt); border-radius: 10px; padding: 10px 14px; margin: 8px 0; white-space: pre-wrap; font-size: .88rem; color: var(--text); }
.dl-classic { margin: 0 0 16px; }
.hist-intro { color: var(--muted); margin: 0; }
.hist-main .timeline + h2 { margin-top: 36px; }
@media (max-width: 960px) {
	.dl-tg { grid-template-columns: 1fr; gap: 20px; }
}
.dl-tg-how p { color: var(--muted); }
.dl-tg-how p:first-of-type code { display: block; padding: 10px 14px; background: var(--bg-alt); border-radius: 10px; color: var(--text); }
.dl-tg-own { font-size: .88rem; border-top: 1px solid var(--line); padding-top: 12px; }

/* Visor de capturas (página de capturas) */
.lb { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 10, 20, .94); color: #e8eefc; overflow: hidden; }
.lb::backdrop { background: transparent; }
.lb-open, .lb-open body { overflow: hidden; }
.lb-stage { position: absolute; inset: 56px 72px 24px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lb-stage img { max-width: 100%; max-height: calc(100% - 3.2em); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lb-stage figcaption { text-align: center; font-size: .98rem; max-width: 60em; }
.lb-count { margin-left: .6em; color: #8fa3c7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; z-index: 1; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .2); }
.lb-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lb-close { top: 12px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-single .lb-prev, .lb-single .lb-next { display: none; }
@media (max-width: 720px) {
	.lb-stage { inset: 64px 8px 76px; }
	.lb-prev, .lb-next { top: auto; bottom: 14px; transform: none; }
	.lb-prev { left: calc(50% - 60px); }
	.lb-next { right: calc(50% - 60px); }
}
.foot-legal { margin-top: 4px; padding-top: 0; border-top: 0; font-size: .8rem; }
.os-also { margin: 22px 0 0; color: var(--muted); font-size: .92rem; text-align: center; }
.os-also a { font-weight: 600; }
.os-shot { margin: 28px auto 0; max-width: 960px; }

/* Coreano: no partir las palabras (se corta por espacios, como en los idiomas latinos) */
html[lang="ko"] { word-break: keep-all; }
/* En descargas, la línea va con la tarjeta de arriba (22 px) y separada de las versiones clásicas (56 px, como antes) */
.dl-tg + .os-also { margin: -34px 0 56px; }
