/* Viewport frame: <i4k-shell> with text looping around the edges */

body:has(> i4k-shell) {
	padding: var(--s-shell);
	box-sizing: border-box;
}

/* padding is the frame band and border-radius the border's corners;
   i4k-shell.js reads both (in px) to place the border and the text.
   White + difference blending: dark on light, light on dark, and
   inverted over whatever passes below (the 3D particles). */
i4k-shell {
	position: fixed;
	inset: 0;
	z-index: var(--z-shell);
	padding: var(--s-shell);
	border-radius: var(--s-shell-radius);
	box-sizing: border-box;
	pointer-events: none;
	font-family: var(--f-shell);
	font-size: var(--s-shell-font);
	text-transform: uppercase;
	color: var(--c-shell);
	mix-blend-mode: var(--b-shell);
}

i4k-shell svg,
i4k-shell canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

/* entrance: the border draws itself outward from the four side centers
   (eight paths); the text grows along with it (i4k-shell.js) */
i4k-shell path {
	fill: none;
	stroke: currentColor;
	stroke-width: var(--s-shell-border);
	stroke-dasharray: 1;
	animation: i4k-shell-draw var(--t-shell-draw) var(--e-shell-draw) both;
}

@keyframes i4k-shell-draw {
	from {
		stroke-dashoffset: 1;
	}
	to {
		stroke-dashoffset: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	i4k-shell path {
		animation: none;
	}
}
