/* Lynges Lektiehjælp – live abonnenttæller. Farver fra logoet. */
.lyt {
	--lime: #B3E063; --blaa: #3399C2; --himmel: #80C8D8; --groen: #5E8A0E; --nat: #0B2230; --blaek: #14313D;
	position: relative; overflow: hidden; color: #fff;
	background:
		radial-gradient(60% 80% at 20% 0%, rgba(51, 153, 194, .35), transparent 70%),
		radial-gradient(50% 70% at 90% 100%, rgba(179, 224, 99, .18), transparent 70%),
		linear-gradient(160deg, #14313D, #0B2230 60%, #081a25);
	font-family: "Inter", system-ui, sans-serif;
	container-type: inline-size;
}
.lyt canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.lyt-fest { z-index: 3; }
.lyt-inde {
	position: relative; z-index: 2; display: grid; justify-items: center; text-align: center;
	grid-template-areas: "top" "tal" "under" "faktor" "geo" "fakta" "status";
	gap: 1.2cqw; padding: 5cqw 4cqw;
}
.lyt-top { grid-area: top; }
.lyt-logo { display: block; width: min(52cqw, 420px); height: auto; }
.lyt-tal-linje { grid-area: tal; display: flex; align-items: center; gap: 2.5cqw; }
.lyt-yt { display: block; line-height: 0; }
.yt-ikon { width: 11cqw; height: auto; filter: drop-shadow(0 .6cqw 1.6cqw rgba(255, 0, 51, .35)); }
.lyt-tal { font-family: "Clash Grotesk", "Inter", sans-serif; font-weight: 600; font-size: 19cqw; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lyt-cifre { display: inline-flex; align-items: flex-end; text-shadow: 0 0 .25em rgba(179, 224, 99, .25); }
.lyt-c { display: inline-block; height: 1em; overflow: hidden; }
.lyt-rulle { display: flex; flex-direction: column; transition: transform 1.1s cubic-bezier(.2, .9, .25, 1.12); }
.lyt-rulle > span { display: block; height: 1em; }
.lyt-sep { display: inline-block; width: .28em; text-align: center; color: var(--himmel); }
.lyt-hop { animation: lyt-hop .9s cubic-bezier(.2, .9, .3, 1.3); }
@keyframes lyt-hop { 0% { transform: scale(1); } 30% { transform: scale(1.07); color: var(--lime); } 100% { transform: scale(1); } }
.lyt-under { grid-area: under; font-size: 2.6cqw; letter-spacing: .18em; text-transform: uppercase; color: var(--himmel); font-weight: 600; }
.lyt-faktor { grid-area: faktor; font-family: "Clash Grotesk", "Inter", sans-serif; font-weight: 500; font-size: 7cqw; line-height: 1.15; color: var(--lime); margin-top: 1.2cqw; }
.lyt-faktor sup { font-size: .55em; vertical-align: .75em; margin-left: .04em; color: #fff; }
.lyt-lig { color: rgba(255, 255, 255, .55); }
.lyt-gange { color: var(--blaa); padding: 0 .08em; font-family: "Inter", sans-serif; font-weight: 400; }
.lyt-op { font-family: "Inter", sans-serif; font-weight: 300; }
.lyt-prim { color: var(--lime); text-shadow: 0 0 .4em rgba(179, 224, 99, .55); }
.lyt-f { display: inline-block; }
.lyt-pop { animation: lyt-pop .6s cubic-bezier(.2, .9, .3, 1.4) both; }
@keyframes lyt-pop { from { opacity: 0; transform: translateY(.4em) scale(.6); } to { opacity: 1; transform: none; } }
.lyt-fakta { grid-area: fakta; display: flex; flex-wrap: wrap; gap: 1cqw; justify-content: center; min-height: 1em; }
.lyt-chip { white-space: nowrap; font-size: 2.2cqw; padding: .35em .9em; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(128, 200, 216, .35); color: #dff2f6; }
.lyt-status { grid-area: status; font-size: 1.6cqw; color: rgba(223, 242, 246, .6); display: inline-flex; align-items: center; gap: .5em; min-height: 1em; }
.lyt-status--live { color: #dff2f6; }
.lyt-prik { width: .6em; height: .6em; border-radius: 50%; background: #FF0033; box-shadow: 0 0 0 0 rgba(255, 0, 51, .6); animation: lyt-puls 2s infinite; }
@keyframes lyt-puls { 70% { box-shadow: 0 0 0 .6em rgba(255, 0, 51, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 0, 51, 0); } }
/* Geometri */
.lyt-geo { grid-area: geo; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25em .4em; font-family: "Clash Grotesk", "Inter", sans-serif; font-weight: 500; font-size: 5cqw; line-height: 1; min-height: 1em; }
.lyt-geo:empty { display: none; }
.lyt-geo-led { display: inline-flex; align-items: center; }
.lyt-fig { height: 2.6em; width: auto; overflow: visible; }
.lyt-fig--linje { height: 1.5em; }
.lyt-geo-alg { color: var(--lime); }
.lyt-geo-gruppe { flex-direction: column; gap: .12em; padding: .12em .3em .1em; border: 1px dashed rgba(128, 200, 216, .45); border-radius: .3em; }
.lyt-geo-figurer { display: inline-flex; align-items: center; gap: .15em; }
.lyt-geo-gruppe .lyt-fig { height: 2em; }
.lyt-gange--lille { font-size: .6em; }
.lyt-geo-navn { font-size: .45em; color: var(--himmel); }
.lyt-primbang { font-weight: 700; color: var(--lime); letter-spacing: .04em; text-shadow: 0 0 .35em rgba(179, 224, 99, .7); }
.lyt-primbang--fest { animation: lyt-bang 1.6s cubic-bezier(.2, .9, .3, 1.4) .8s both; }
@keyframes lyt-bang {
	0% { opacity: 0; transform: scale(.2) rotate(-12deg); }
	45% { opacity: 1; transform: scale(1.35) rotate(4deg); text-shadow: 0 0 .8em rgba(179, 224, 99, 1); }
	70% { transform: scale(.95) rotate(-1deg); }
	100% { opacity: 1; transform: none; }
}
.lyt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kort på siden */
.lyt-ramme { margin-block: 2rem; }
.lyt--kort { border-radius: 24px; box-shadow: 0 20px 50px rgba(11, 34, 48, .25); }
.lyt-link { text-align: center; margin: .8rem 0 0; }
@container (min-width: 900px) {
	.lyt--kort .lyt-tal { font-size: 150px; }
	.lyt--kort .yt-ikon { width: 84px; }
	.lyt--kort .lyt-faktor { font-size: 54px; }
	.lyt--kort .lyt-under { font-size: 18px; }
	.lyt--kort .lyt-chip { font-size: 16px; }
	.lyt--kort .lyt-status { font-size: 14px; }
	.lyt--kort .lyt-geo { font-size: 34px; }
	.lyt--kort .lyt-logo { width: 380px; }
	.lyt--kort .lyt-inde { gap: 10px; padding: 44px 32px; }
}
@media (max-width: 560px) {
	.lyt--kort .lyt-tal { font-size: 22cqw; }
	.lyt--kort .lyt-faktor { font-size: 8.5cqw; }
	.lyt--kort .lyt-under { font-size: 3.4cqw; }
	.lyt--kort .lyt-chip { font-size: 3.4cqw; }
	.lyt--kort .lyt-status { font-size: 3.2cqw; }
	.lyt--kort .lyt-geo { font-size: 6.5cqw; }
	.lyt--kort .lyt-logo { width: 72cqw; }
}

/* Fuld skærm (/live) – skalerer efter skærmens højde og bredde */
.lyt--fuld { position: fixed; inset: 0; container-type: size; display: grid; place-items: center; }
.lyt--fuld .lyt-inde { gap: 2.2cqh; padding: 4cqh 4cqw; }
.lyt--fuld .lyt-logo { width: min(46cqw, 60cqh); }
.lyt--fuld .lyt-tal { font-size: min(24cqh, 17cqw); }
.lyt--fuld .lyt-geo { font-size: min(6cqh, 4cqw); }
.lyt--fuld .yt-ikon { width: min(15cqh, 10cqw); }
.lyt--fuld .lyt-under { font-size: min(3.2cqh, 2.2cqw); }
.lyt--fuld .lyt-faktor { font-size: min(8cqh, 6cqw); }
.lyt--fuld .lyt-chip { font-size: min(2.8cqh, 2cqw); }
.lyt--fuld .lyt-fakta { gap: 1.4cqh; }
.lyt--fuld .lyt-status { font-size: min(2.4cqh, 1.6cqw); }

/* Aflang skærm (fx 32:9 eller en bar-skærm): alt på én række */
@media (min-aspect-ratio: 21/9) {
	.lyt--fuld .lyt-inde {
		grid-template-areas: "top tal faktor" "under tal geo" "status tal fakta";
		grid-template-columns: 15cqw auto minmax(0, 1fr); align-items: center; column-gap: 3cqw; row-gap: 3cqh;
		width: 100%; box-sizing: border-box; padding: 4cqh 3.5cqw;
	}
	.lyt--fuld .lyt-top { align-self: end; }
	.lyt--fuld .lyt-under { align-self: start; }
	.lyt--fuld .lyt-logo { width: 100%; }
	.lyt--fuld .lyt-tal { font-size: min(52cqh, 12cqw); }
	.lyt--fuld .yt-ikon { width: min(22cqh, 5.5cqw); }
	.lyt--fuld .lyt-faktor { font-size: min(13cqh, 3cqw); align-self: end; justify-self: start; text-align: left; margin: 0; white-space: nowrap; }
	.lyt--fuld .lyt-fakta { justify-content: flex-start; justify-self: start; align-self: start; }
	.lyt--fuld .lyt-under { font-size: min(6cqh, 1.4cqw); }
	.lyt--fuld .lyt-chip { font-size: min(5cqh, 1.3cqw); }
	.lyt--fuld .lyt-status { font-size: min(4.5cqh, 1.1cqw); align-self: start; }
	.lyt--fuld .lyt-geo { font-size: min(9cqh, 2.2cqw); justify-content: flex-start; justify-self: start; flex-wrap: nowrap; }
	.lyt--fuld .lyt-tal { font-size: min(44cqh, 10cqw); }
}

.lyt-fuldskaerm {
	position: fixed; right: 16px; bottom: 16px; z-index: 5; font: 600 14px/1 "Inter", sans-serif; color: #fff;
	background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 10px 16px; cursor: pointer;
	opacity: 0; transition: opacity .3s;
}
.lyt-side.lyt-mus .lyt-fuldskaerm { opacity: 1; }
.lyt-side:not(.lyt-mus) { cursor: none; }
:fullscreen .lyt-fuldskaerm { display: none; }

@media (prefers-reduced-motion: reduce) {
	.lyt-rulle, .lyt-hop, .lyt-pop, .lyt-primbang--fest { transition: none !important; animation: none !important; }
}
