/**
 * Scene a pagina piena (inc/scenes.php, assets/js/scenes.js).
 *
 * Stato di partenza = immagine d'insieme: vale senza JavaScript e con "riduci
 * movimento". Il JavaScript aggiunge `html.cc2-scenes` solo quando fa avanzare
 * le battute; da lì gli elementi con data-from / data-at compaiono con `is-on`.
 */

/* 1. Contenitore -------------------------------------------------------------- */

.cc2-scene {
	position: relative;
	background: var(--cc2-dark);
	color: #fff;
}

.cc2-scene__in {
	position: relative;
	display: grid;
	min-height: 100vh;
	min-height: 100svh;
	grid-template-columns: minmax(300px, 4fr) 8fr;
	align-items: center;
	gap: clamp(16px, 3vw, 56px);
	padding: 96px var(--cc2-gut) 64px;
	overflow: hidden;
	isolation: isolate;
}

.cc2-scene__in::before,
.cc2-scene__in::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
}

.cc2-scene__in::before {
	background-image: radial-gradient(circle at 70% 50%, var(--cc2-glow) 0, #0b2a4d 34%, var(--cc2-dark) 74%);
}

.cc2-scene__in::after {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
	background-size: 53px 53px;
}

.cc2-scene.is-pinned .cc2-scene__in {
	position: sticky;
	top: 0;
	height: 100vh;
	height: 100svh;
	min-height: 0;
}

/* 2. Testo -------------------------------------------------------------------- */

.cc2-scene__hud {
	position: relative;
	min-width: 0;
}

/* Scena ferma: il pannello non arriva mai alla barra di avanzamento; se il capitolo aperto è lungo, scorre dentro. */
.cc2-scene.is-pinned .cc2-scene__hud {
	max-height: calc(100svh - 96px - 64px);
	padding-right: 8px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Se sotto c'è altro testo, il bordo inferiore sfuma. */
.cc2-scene.is-pinned .cc2-scene__hud.has-more {
	-webkit-mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
	mask-image: linear-gradient(#000 calc(100% - 36px), transparent);
}

/* Schermi larghi ma bassi: meno testo fisso, più spazio ai capitoli. */
@media (min-width: 900px) and (max-height: 800px) {
	.cc2-scene.is-pinned .cc2-scene__hud > p {
		margin-block: 0 0.6em;
		font-size: 0.9em;
	}

	.cc2-scene.is-pinned .cc2-scene__hud .cc2-hero__cta {
		flex-flow: row wrap;
		gap: 8px;
	}
}

@media (min-width: 900px) and (max-height: 800px) {
	.cc2-scene.is-pinned .is-active .cc2-scene__more {
		max-height: 0;
		margin: 0;
		opacity: 0;
	}
}

@media (min-width: 900px) and (max-height: 800px) {
	.cc2-scene.is-pinned .cc2-scene__hud > p,
	.cc2-scene.is-pinned .cc2-scene__hud .cc2-hero__cta {
		display: none;
	}
}

.cc2-scene h1,
.cc2-scene h2 {
	margin: 12px 0 14px;
	color: #fff;
	font-size: clamp(1.8rem, 2.7vw, 2.7rem);
}

.cc2-scene h1 {
	font-size: clamp(2rem, 3.2vw, 3.2rem);
	letter-spacing: -0.04em;
}

.cc2-scene .cc2-hero__cta {
	margin-top: 22px;
}

.cc2-scene .cc2-eyebrow,
.cc2-scene mark {
	color: var(--cc2-hl);
}

.cc2-scene .cc2-lead {
	max-width: 46ch;
	color: var(--cc2-dark-muted);
	font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.cc2-scene__list {
	display: grid;
	gap: 4px;
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
}

.cc2-scene__list li {
	border-left: 2px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.78);
	font-size: clamp(0.96rem, 1.15vw, 1.08rem);
	line-height: 1.45;
	transition: color 0.4s, border-color 0.4s, background-color 0.4s;
}

.cc2-scene__list li.is-active {
	border-left-color: var(--cc2-hl);
	background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.07), transparent);
	color: #fff;
}

.cc2-scene__go {
	display: grid;
	width: 100%;
	grid-template-columns: 30px 1fr;
	gap: 8px;
	padding: 7px 0 7px 14px;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.cc2-scene__go:hover {
	color: #fff;
}

.cc2-scene button.cc2-scene__go:focus-visible,
.cc2-scene button.cc2-scene__btn:focus-visible,
.cc2-scene a.cc2-scene__skip:focus-visible {
	outline: 3px solid var(--cc2-hl);
	outline-offset: 2px;
}

/* WordPress dà 2 px di contorno a ogni elemento che riceve il clic: qui solo con la tastiera. */
.cc2-scene .cc2-scene__go:focus:not(:focus-visible),
.cc2-scene .cc2-scene__btn:focus:not(:focus-visible) {
	outline: none;
}

/* Comandi: visibili solo con JavaScript; la pausa solo quando le fasi girano da sole. */
.cc2-scene__ctl {
	display: none;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}

.cc2-scene.has-js .cc2-scene__ctl {
	display: flex;
}

.cc2-scene__btn {
	display: inline-grid;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	cursor: pointer;
	place-items: center;
	transition: border-color 0.25s, background-color 0.25s;
}

.cc2-scene__btn:hover {
	border-color: var(--cc2-hl);
	background: rgba(255, 255, 255, 0.14);
}

.cc2-scene__count {
	min-width: 7ch;
	color: var(--cc2-dark-muted);
	font-family: var(--cc-mono);
	font-size: 13px;
	text-align: center;
}

.cc2-scene__btn--pause {
	display: inline-grid;
	margin-left: 6px;
}

.cc2-scene.is-paused *,
.cc2-scene.is-paused *::before,
.cc2-scene.is-paused *::after {
	animation-play-state: paused !important;
}

.cc2-ic-play,
.cc2-scene.is-paused .cc2-ic-pause {
	display: none;
}

.cc2-scene.is-paused .cc2-ic-play {
	display: block;
}

/* Salto della scena: per chi naviga da tastiera. */
.cc2-scene__skip {
	position: absolute;
	top: 12px;
	left: -9999px;
	z-index: 5;
	padding: 10px 16px;
	border-radius: 8px;
	background: #fff;
	color: var(--cc-ink);
	font-weight: 600;
}

.cc2-scene__skip:focus {
	left: 12px;
}

.cc2-scene__end {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 1px;
	height: 1px;
}

.cc2-scene__n {
	padding-top: 3px;
	color: var(--cc2-hl);
	font-family: var(--cc-mono);
	font-size: 13px;
}

.cc2-scene__list b {
	color: #fff;
	font-weight: 600;
}

.cc2-scene__more {
	display: block;
	margin-top: 4px;
	color: var(--cc2-dark-muted);
	font-size: 0.92em;
}

.cc2-scene.is-pinned .cc2-scene__c {
	display: none;
}

.cc2-scene.is-pinned .cc2-scene__rest,
.cc2-scene.is-pinned .cc2-scene__more {
	display: block;
	max-height: 0;
	margin: 0;
	overflow: hidden;
	opacity: 0;
	transition: max-height 0.5s, opacity 0.4s, margin 0.4s;
}

.cc2-scene.is-pinned .is-active .cc2-scene__rest {
	max-height: 6em;
	margin-top: 2px;
	opacity: 1;
}

.cc2-scene.is-pinned .is-active .cc2-scene__more {
	max-height: 16em;
	margin-top: 6px;
	opacity: 1;
}

.cc2-scene .cc2-link {
	display: inline-block;
	margin-top: 18px;
	color: var(--cc2-hl);
}

/* 3. Disegno ------------------------------------------------------------------ */

.cc2-scene__stage {
	min-width: 0;
}

.cc2-scene__stage svg {
	display: block;
	width: 100%;
	height: calc(100svh - 150px);
	max-height: 880px;
	overflow: hidden;
}

.cc2-scene__bar {
	position: absolute;
	right: var(--cc2-gut);
	bottom: 30px;
	left: var(--cc2-gut);
	display: none;
	height: 3px;
	background: rgba(255, 255, 255, 0.16);
}

.cc2-scene.is-pinned .cc2-scene__bar,
.cc2-scene.is-auto .cc2-scene__bar {
	display: block;
}

.cc2-scene__bar i {
	display: block;
	height: 100%;
	background: var(--cc2-hl);
	transform: scaleX(var(--p, 0));
	transform-origin: left;
	transition: transform 0.4s;
}

/* Schermi stretti: titolo, disegno, capitoli; il disegno gira da solo. */
@media (max-width: 899px) {
	.cc2-scene__in {
		grid-template-columns: 1fr;
		gap: 0;
		padding-block: 72px 56px;
	}

	.cc2-scene__hud {
		display: contents;
	}

	.cc2-scene__stage {
		order: 1;
		margin-block: 8px;
	}

	.cc2-scene__stage svg {
		height: auto;
		aspect-ratio: 10 / 9;
	}

	.cc2-scene__ctl {
		order: 2;
		justify-content: center;
		margin-block: 4px 12px;
	}

	.cc2-scene__list {
		order: 3;
	}

	.cc2-scene .cc2-link {
		order: 4;
		justify-self: start;
	}
}

/* 4. Presenza degli elementi -------------------------------------------------- */

[data-at] {
	opacity: 0;
}

.cc2-scene [data-from] {
	opacity: var(--o, 1);
}

.cc2-scenes [data-from]:not(.is-on) {
	opacity: 0;
}

.cc2-scenes [data-at].is-on {
	opacity: var(--o, 1);
}

.cc2-scene [data-from],
.cc2-scene [data-at] {
	transition: opacity 0.7s var(--cc2-ease);
}

.cc2-scene .is-dim {
	--o: 0.16;
}

.cc2-scene [data-hot] {
	transition: opacity 0.7s var(--cc2-ease), filter 0.5s;
}

.cc2-scene [data-hot].is-hot {
	filter: drop-shadow(0 0 16px var(--cc2-hl));
}

/* Comparsa a gradini dei figli di un gruppo (--i = posizione) */
.cs-pop {
	opacity: 0;
	transform: translateY(18px) scale(0.96);
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity 0.5s var(--cc2-ease), transform 0.7s var(--cc2-ease);
	transition-delay: calc(var(--i, 0) * 90ms + 120ms);
}

[data-at].is-on .cs-pop {
	opacity: 1;
	transform: none;
}

/* Linee che si disegnano */
.cs-draw {
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	transition: stroke-dashoffset 1.1s var(--cc2-ease);
	transition-delay: calc(var(--i, 0) * 90ms + 100ms);
}

.cc2-scenes .cs-draw[data-from]:not(.is-on),
.cc2-scenes [data-at]:not(.is-on) .cs-draw {
	stroke-dashoffset: 1;
}

/* 5. Forme -------------------------------------------------------------------- */

.cs-ring {
	fill: none;
	stroke: rgba(255, 255, 255, 0.16);
	stroke-dasharray: 3 9;
	stroke-width: 1.5;
}

.cs-ring--b {
	stroke: var(--cc2-hl);
	opacity: 0.4;
}

.cs-ring--hot {
	stroke: var(--cc2-hl);
	stroke-dasharray: none;
	stroke-width: 2;
	opacity: 1;
	animation: cc2-ping 2.4s ease-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}

.cs-link {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-width: 2;
	opacity: 0.6;
}

.cs-hex {
	fill: #0b2a4d;
	stroke: var(--cc2-hl);
	stroke-width: 3;
}

.cs-core-ring {
	fill: #0b2a4d;
	stroke: var(--cc2-hl);
	stroke-width: 3;
}

.cs-core-ring--b {
	fill: none;
	stroke-opacity: 0.5;
}

.cs-core-hot {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-width: 2;
	animation: cc2-ping 2.4s ease-out infinite;
	transform-box: fill-box;
	transform-origin: center;
}

.cs-bad {
	fill: #ff6b6b;
}

.cs-burst {
	fill: none;
	stroke: #ff6b6b;
	stroke-width: 2.5;
}

.cs-core-t,
.cs-lbl,
.cs-tag {
	fill: #fff;
	font-family: var(--cc-mono);
	font-size: 15px;
	letter-spacing: 0.14em;
}

.cs-tag {
	fill: var(--cc2-hl);
	font-size: 14px;
}

.cs-note {
	fill: var(--cc2-dark-muted);
	font-size: 17px;
}

.cs-box {
	fill: #07203a;
	stroke: rgba(255, 255, 255, 0.34);
	stroke-width: 2;
}

.cs-frame {
	fill: #07203a;
	stroke: var(--cc2-hl);
	stroke-width: 2;
}

.cs-line {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-linecap: round;
	stroke-width: 3;
}

.cs-line--w {
	stroke-width: 5;
}

.cs-dot {
	fill: var(--cc2-hl);
}

.cs-sweep {
	fill: var(--cc2-hl);
	opacity: 0.4;
}

.cs-spin {
	transform-origin: 0 0;
	animation: cc2-spin 4s linear infinite;
}

.cs-spin-slow {
	transform-box: fill-box;
	transform-origin: center;
	animation: cc2-spin 26s linear infinite;
}

.cs-big {
	fill: #fff;
	font-size: 60px;
	font-weight: 300;
	letter-spacing: -0.03em;
}

.cs-sub {
	fill: var(--cc2-hl);
	font-size: 21px;
}

.cs-shot {
	opacity: 0;
	transition: opacity 0.8s 0.25s;
}

[data-at].is-on .cs-shot {
	opacity: 1;
}

/* Camera: a ogni battuta il disegno si sposta e si ingrandisce sul soggetto (--c0 ... --c9). */
.cs-cam {
	transform-origin: 0 0;
	transition: transform 1.5s cubic-bezier(0.65, 0, 0.25, 1);
}

.cc2-scenes .cc2-scene[data-beat="0"] .cs-cam {
	transform: var(--c0, none);
}

.cc2-scenes .cc2-scene[data-beat="1"] .cs-cam {
	transform: var(--c1, none);
}

.cc2-scenes .cc2-scene[data-beat="2"] .cs-cam {
	transform: var(--c2, none);
}

.cc2-scenes .cc2-scene[data-beat="3"] .cs-cam {
	transform: var(--c3, none);
}

.cc2-scenes .cc2-scene[data-beat="4"] .cs-cam {
	transform: var(--c4, none);
}

.cc2-scenes .cc2-scene[data-beat="5"] .cs-cam {
	transform: var(--c5, none);
}

.cc2-scenes .cc2-scene[data-beat="6"] .cs-cam {
	transform: var(--c6, none);
}

.cc2-scenes .cc2-scene[data-beat="7"] .cs-cam {
	transform: var(--c7, none);
}

.cc2-scenes .cc2-scene[data-beat="8"] .cs-cam {
	transform: var(--c8, none);
}

.cc2-scenes .cc2-scene[data-beat="9"] .cs-cam {
	transform: var(--c9, none);
}

.cs-pkt {
	fill: var(--cc2-hl);
}

.cs-chip {
	fill: #0b2a4d;
	stroke: var(--cc2-hl);
	stroke-width: 1.5;
}

.cs-chip-t {
	fill: #fff;
	font-size: 16px;
}

.cs-chip--bad {
	animation: cc2-badok 3.6s ease-in-out infinite;
}

.cs-restore {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-linecap: round;
	stroke-width: 3;
	opacity: 0;
	animation: cc2-restore 3.6s ease-in-out infinite;
}

.cs-live {
	fill: #ff6b6b;
	animation: cc2-blink 1.2s steps(2, jump-none) infinite;
}

.cs-ping {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-width: 2;
	transform-box: fill-box;
	transform-origin: center;
	animation: cc2-ping 2.4s ease-out infinite;
	animation-delay: calc(var(--i, 0) * 1.2s);
}

.cs-wall {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-linecap: round;
	stroke-width: 6;
}

.cs-wall-glow {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-width: 20;
	opacity: 0.25;
	filter: blur(8px);
}

.cs-attack {
	fill: #ff6b6b;
	animation: cc2-bounce 2s ease-in infinite;
	animation-delay: calc(var(--i, 0) * 0.35s);
}

.cs-tick {
	stroke: rgba(255, 255, 255, 0.28);
	stroke-linecap: round;
	stroke-width: 5;
	transition: stroke 0.3s;
	transition-delay: 0s;
}

[data-at].is-on .cs-tick {
	stroke: var(--cc2-hl);
	transition-delay: calc(var(--i, 0) * 90ms + 400ms);
}

.cs-al {
	fill: #ff6b6b;
	opacity: 0;
	transform-box: fill-box;
	transform-origin: center;
}

.cs-al--real {
	fill: #ffb347;
}

[data-at].is-on .cs-al {
	animation: cc2-absorb 2.8s ease-in forwards;
	animation-delay: calc(var(--i, 0) * 0.14s + 0.3s);
}

[data-at].is-on .cs-al--real {
	animation-name: cc2-keep;
}

/* Forme delle scene (seconda serie: blocchi, barre, pannelli) */

.cs-block {
	fill: #0b2a4d;
	stroke: rgba(255, 255, 255, 0.3);
	stroke-width: 2;
}

.cs-block--top {
	fill: color-mix(in srgb, var(--cc2-hl) 22%, #0b2a4d);
	stroke: var(--cc2-hl);
}

.cs-grow,
.cs-growx {
	transform-box: fill-box;
	transition: transform 1s var(--cc2-ease);
	transition-delay: calc(var(--i, 0) * 110ms + 150ms);
}

.cs-grow {
	transform-origin: center bottom;
}

.cs-growx {
	transform-origin: left center;
}

.cc2-scenes [data-at]:not(.is-on) .cs-grow {
	transform: scaleY(0);
}

.cc2-scenes [data-at]:not(.is-on) .cs-growx {
	transform: scaleX(0);
}

.cs-lit {
	fill: rgba(255, 255, 255, 0.1);
	stroke: rgba(255, 255, 255, 0.18);
	transition: fill 0.35s;
	transition-delay: 0s;
}

[data-at].is-on .cs-lit {
	fill: var(--cc2-hl);
	transition-delay: calc(var(--i, 0) * 70ms + 350ms);
}

[data-at].is-on .cs-lit--b {
	fill: color-mix(in srgb, var(--cc2-hl) 75%, #fff);
}

.cs-val {
	fill: #fff;
	font-family: var(--cc-mono);
	font-size: 26px;
	letter-spacing: 0.04em;
}

.cs-ui,
.cs-ui-h {
	fill: #fff;
	font-size: 19px;
}

.cs-ui-h {
	font-size: 22px;
	font-weight: 500;
}

.cs-ui--m {
	fill: var(--cc2-dark-muted);
}

.cs-ui--ok {
	fill: #6fdc8c;
}

.cs-ok {
	fill: #6fdc8c;
}

.cs-sep {
	fill: none;
	stroke: rgba(255, 255, 255, 0.18);
	stroke-width: 1.5;
}

.cs-track {
	fill: rgba(255, 255, 255, 0.12);
}

.cs-fill {
	fill: var(--cc2-hl);
}

.cs-box--dash {
	stroke: var(--cc2-hl);
	stroke-dasharray: 8 8;
	stroke-width: 2;
	opacity: 0.8;
}

.cs-line--s {
	stroke-width: 2;
	opacity: 0.8;
}

.cs-tick--on {
	stroke: var(--cc2-hl);
}

.cs-attack--r {
	animation-name: cc2-bounce-r;
}

/* Forme delle scene (terza serie: Pentest, NIS2, Datacenter, timeline) */

.cs-perimeter {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-dasharray: 10 8;
	stroke-width: 2;
	transform-box: fill-box;
	transform-origin: center;
}

.cs-probe {
	transform-box: fill-box;
	transform-origin: center;
}

[data-at].is-on .cs-probe {
	animation: cc2-probe 2.6s ease-in-out infinite;
	animation-delay: calc(var(--i, 0) * 0.4s);
}

.cs-life {
	transform-box: fill-box;
	transform-origin: center;
}

[data-at].is-on .cs-life {
	animation: cc2-life 4.4s ease-in-out infinite;
}

.cs-lifebar {
	transform-box: fill-box;
	transform-origin: left;
}

[data-at].is-on .cs-lifebar {
	animation: cc2-lifebar 4.4s linear infinite;
}

.cs-scan {
}

[data-at].is-on .cs-scan {
	animation: cc2-scan 1.6s ease-in-out infinite alternate;
	animation-delay: calc(var(--i, 0) * 0.3s);
}

.cs-needle {
	transform-origin: 0 0;
}

[data-at].is-on .cs-needle {
	animation: cc2-needle 3s ease-in-out infinite alternate;
}

.cs-track--arc,
.cs-fill--arc {
	fill: none;
	stroke-linecap: round;
	stroke-width: 10;
}

.cs-track--arc {
	stroke: rgba(255, 255, 255, 0.16);
}

.cs-fill--arc {
	stroke: var(--cc2-hl);
}

.cs-code {
	fill: #fff;
	font-family: var(--cc-mono);
	font-size: 22px;
}

.cs-code--ok {
	fill: #6fdc8c;
}

.cs-cursor {
	fill: var(--cc2-hl);
	animation: cc2-blink 1s steps(2, jump-none) infinite;
}

.cs-raw {
	fill: rgba(255, 255, 255, 0.3);
	transition: opacity 0.6s, transform 0.8s var(--cc2-ease);
}

[data-at].is-on .cs-raw {
	opacity: 0.2;
	transform: translateX(120px);
	transition-delay: calc(var(--i, 0) * 60ms + 900ms);
}

.cs-hex--idle {
	fill: #0b2a4d;
	stroke: rgba(255, 255, 255, 0.28);
}

.cs-hex--lit {
	fill: color-mix(in srgb, var(--cc2-hl) 48%, #0b2a4d);
	stroke: var(--cc2-hl);
	filter: drop-shadow(0 0 14px var(--cc2-hl));
}

.cs-link--base {
	stroke: rgba(255, 255, 255, 0.2);
	stroke-width: 3;
	opacity: 1;
}

.cs-link--hot {
	stroke-width: 4;
	opacity: 1;
}

.cs-knob {
	fill: #fff;
	transition: transform 0.5s var(--cc2-ease);
	transition-delay: 0s;
}

[data-at].is-on .cs-knob {
	transform: translateX(var(--k, 28px));
	transition-delay: calc(var(--i, 0) * 400ms + 900ms);
}

.cs-line--ok {
	stroke: #6fdc8c;
}

.cs-line--bad {
	stroke: #ff6b6b;
}

.cs-seal {
	opacity: 0;
	transform: scale(2) rotate(-20deg);
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity 0.5s 1.2s, transform 0.7s var(--cc2-ease) 1.2s;
}

[data-at].is-on .cs-seal {
	opacity: 1;
	transform: none;
}

.cs-box--solid {
	fill: #0b2a4d;
	stroke: var(--cc2-hl);
}

.cs-doc {
	fill: #fff;
	opacity: 0.9;
}

.cs-fly {
	opacity: 0;
	transform: translate(-170px, -70px);
	transition: opacity 0.6s, transform 0.9s var(--cc2-ease);
}

[data-at].is-on .cs-fly {
	opacity: 0.9;
	transform: none;
	transition-delay: calc(var(--i, 0) * 180ms + 400ms);
}

.cs-lane {
	fill: #07203a;
	stroke: rgba(255, 255, 255, 0.18);
	stroke-width: 1.5;
}

.cs-flow {
	fill: var(--cc2-hl);
}

[data-at].is-on .cs-flow {
	animation: cc2-flow 3.4s linear infinite;
}

.cs-wall-dash {
	fill: none;
	stroke: var(--cc2-hl);
	stroke-dasharray: 6 10;
	stroke-width: 3;
	opacity: 0.7;
}

.cs-val--l {
	font-size: 64px;
}

.cs-star {
	fill: #fff;
	opacity: 0.3;
	animation: cc2-twinkle 4.2s ease-in-out infinite;
}

.cs-node {
	fill: #0b2a4d;
	stroke: rgba(255, 255, 255, 0.45);
	stroke-width: 3;
}

.cs-node--lit {
	fill: var(--cc2-hl);
	stroke: #fff;
}

.cs-stem {
	fill: none;
	stroke: rgba(255, 255, 255, 0.3);
	stroke-width: 2;
}

.cs-year {
	fill: #fff;
	font-family: var(--cc-mono);
	font-size: 44px;
	letter-spacing: 0.02em;
	opacity: 0.85;
}

/* 6. Movimento ---------------------------------------------------------------- */

@keyframes cc2-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes cc2-ping {
	0% {
		opacity: 0.9;
		transform: scale(0.5);
	}

	100% {
		opacity: 0;
		transform: scale(2.4);
	}
}

@keyframes cc2-blink {
	50% {
		opacity: 0.2;
	}
}

@keyframes cc2-bounce {
	0% {
		opacity: 0;
		transform: translateX(0);
	}

	15% {
		opacity: 1;
	}

	55% {
		opacity: 1;
		transform: translateX(54px);
	}

	78% {
		opacity: 0.6;
		transform: translateX(26px);
	}

	100% {
		opacity: 0;
		transform: translateX(-12px);
	}
}

@keyframes cc2-probe {
	0% {
		opacity: 0;
		transform: translate(0, 0);
	}

	20% {
		opacity: 1;
	}

	58% {
		opacity: 1;
		transform: translate(var(--dx), var(--dy));
	}

	80% {
		opacity: 0.5;
		transform: translate(calc(var(--dx) * 0.6), calc(var(--dy) * 0.6));
	}

	100% {
		opacity: 0;
		transform: translate(0, 0);
	}
}

@keyframes cc2-life {
	0% {
		opacity: 0;
		transform: scale(0.8);
	}

	14%,
	78% {
		opacity: 1;
		transform: none;
	}

	92%,
	100% {
		opacity: 0;
		transform: scale(0.9);
	}
}

@keyframes cc2-lifebar {
	0% {
		transform: scaleX(0);
	}

	90%,
	100% {
		transform: scaleX(1);
	}
}

@keyframes cc2-scan {
	from {
		transform: translateX(-14px);
	}

	to {
		transform: translateX(14px);
	}
}

@keyframes cc2-needle {
	from {
		transform: rotate(-62deg);
	}

	to {
		transform: rotate(34deg);
	}
}

@keyframes cc2-flow {
	from {
		opacity: 0;
		transform: translateX(0);
	}

	10%,
	90% {
		opacity: 1;
	}

	to {
		opacity: 0;
		transform: translateX(740px);
	}
}

@keyframes cc2-twinkle {
	50% {
		opacity: 0.7;
	}
}

@keyframes cc2-bounce-r {
	0% {
		opacity: 0;
		transform: translateX(0);
	}

	15% {
		opacity: 1;
	}

	55% {
		opacity: 1;
		transform: translateX(-54px);
	}

	78% {
		opacity: 0.6;
		transform: translateX(-26px);
	}

	100% {
		opacity: 0;
		transform: translateX(12px);
	}
}

@keyframes cc2-badok {
	0%,
	38% {
		fill: #3a1020;
		stroke: #ff6b6b;
	}

	58%,
	100% {
		fill: #0b3a22;
		stroke: #6fdc8c;
	}
}

@keyframes cc2-restore {
	0%,
	40% {
		opacity: 0;
		transform: rotate(0);
	}

	60%,
	90% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

@keyframes cc2-absorb {
	0% {
		opacity: 0;
		transform: translate(0, 0) scale(0.3);
	}

	18% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}

	50% {
		fill: #8aa0b5;
	}

	100% {
		opacity: 0;
		fill: #8aa0b5;
		transform: translate(var(--dx), var(--dy)) scale(0.1);
	}
}

@keyframes cc2-keep {
	0% {
		opacity: 0;
		transform: translate(0, 0) scale(0.3);
	}

	18% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}

	100% {
		opacity: 1;
		transform: translate(var(--dx), var(--dy)) scale(0.8);
	}
}

.cc2-scene:not(.is-live) * {
	animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
	.cc2-scene *,
	.cc2-scene *::before {
		animation: none !important;
		transition: none !important;
	}
}
