/* twosolidae/lightcycle-hero — Tron lightcycle arena hero */

.ts-lightcycle-hero {
	position: relative;
	width: 100%;
}

.ts-lightcycle-hero__arena {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #020408;
}

.ts-lightcycle-hero__canvas[hidden] {
	display: none;
}

.ts-lightcycle-hero__svg {
	display: block;
	width: 100%;
	height: 100%;
}

.ts-lightcycle-hero__gate {
	animation: ts-lc-gate-pulse 3.2s ease-in-out infinite;
}

@keyframes ts-lc-gate-pulse {
	0%, 100% { opacity: 0.72; }
	50% { opacity: 0.92; }
}

.ts-lightcycle-hero__fallback {
	position: absolute;
	right: 1rem;
	bottom: 1rem;
	z-index: 1;
	margin: 0;
	font-family: var(--wp--preset--font-family--label-ui, ui-monospace, monospace);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.64);
}

.ts-lightcycle-hero__arena-frame {
	fill: rgba(0, 20, 32, 0.16);
	stroke: rgba(0, 243, 255, 0.52);
	stroke-width: 2;
	filter: url(#ts-lc-glow);
}

.ts-lightcycle-hero__grid-line {
	stroke: rgba(0, 243, 255, 0.095);
	stroke-width: 0.55;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__grid-line.is-major {
	stroke: rgba(0, 243, 255, 0.24);
	stroke-width: 1;
}

.ts-lightcycle-hero__gate-beam,
.ts-lightcycle-hero__gate-portal {
	fill: none;
	stroke: rgba(0, 243, 255, 0.66);
	stroke-width: 16;
	stroke-linecap: round;
	filter: url(#ts-lc-soft-glow);
}

.ts-lightcycle-hero__gate-core {
	stroke: rgba(255, 255, 255, 0.92);
	stroke-width: 2.5;
	stroke-linecap: round;
}

.ts-lightcycle-hero__gate-label {
	font-family: var(--wp--preset--font-family--label-ui, ui-monospace, monospace);
	font-size: 10px;
	letter-spacing: 0.18em;
	fill: rgba(255, 255, 255, 0.62);
}

.ts-lightcycle-hero__trail-glow,
.ts-lightcycle-hero__trail-beam {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__trail-beam {
	shape-rendering: geometricPrecision;
}

.ts-lightcycle-hero__trail-particle,
.ts-lightcycle-hero__spark,
.ts-lightcycle-hero__shockwave {
	filter: url(#ts-lc-glow);
}

.ts-lightcycle-hero__shockwave {
	fill: none;
	stroke-width: 4;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__spark {
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__cycle-body {
	fill-opacity: 0.72;
	stroke-width: 1.4;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__cycle-wheel {
	fill: rgba(2, 5, 13, 0.58);
	stroke-width: 3;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__cycle-canopy {
	fill: none;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__cycle-bloom {
	fill-opacity: 0.34;
	stroke-width: 0;
}

.ts-lightcycle-hero__scanlines line {
	stroke: rgba(255, 255, 255, 0.035);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.ts-lightcycle-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background:
		linear-gradient(90deg, rgba(2, 4, 8, 0.5) 0%, rgba(2, 4, 8, 0.36) 34%, rgba(2, 4, 8, 0.09) 58%, rgba(2, 4, 8, 0.02) 100%),
		linear-gradient(0deg, rgba(2, 4, 8, 0.28), rgba(2, 4, 8, 0) 55%);
}

.ts-lightcycle-hero__copy {
	pointer-events: none;
	position: relative;
	z-index: 2;
}

.ts-lightcycle-hero__copy .wp-block-buttons,
.ts-lightcycle-hero__controls {
	pointer-events: auto;
}

.ts-lightcycle-hero__controls {
	margin-top: 1.25rem;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(0, 243, 255, 0.22);
	border-radius: 0.35rem;
	background: rgba(2, 8, 18, 0.72);
	backdrop-filter: blur(6px);
	max-width: 20rem;
}

.ts-lightcycle-hero__controls label {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	font-family: var(--wp--preset--font-family--label-ui, ui-monospace, monospace);
	font-size: 0.72rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(0, 243, 255, 0.88);
}

.ts-lightcycle-hero__controls input[type="range"] {
	flex: 1;
	accent-color: #00f3ff;
	cursor: pointer;
}

.ts-lightcycle-hero__controls output {
	min-width: 1.5rem;
	text-align: right;
	color: #fff;
	font-weight: 700;
}

.ts-lightcycle-hero__status {
	margin-top: 0.45rem;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	color: rgba(255, 255, 255, 0.55);
	text-transform: uppercase;
}

@media (prefers-reduced-motion: reduce) {
	.ts-lightcycle-hero__controls input[type="range"] {
		pointer-events: none;
		opacity: 0.5;
	}
}
