/* Ritual Row — Terms canvas scramble field */

.rr-terms-physics-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.elementor-element-1bcf95ff.rr-terms-physics,
[data-rr-terms-host="1"].rr-terms-physics {
	position: relative;
	animation: none !important;
	transform: none !important;
	isolation: isolate;
	overflow: visible;
	min-height: 60vh;
}

.elementor-element-1bcf95ff.rr-terms-physics--canvas .rr-terms-physics-shell,
[data-rr-terms-host="1"].rr-terms-physics--canvas .rr-terms-physics-shell {
	visibility: hidden !important;
	pointer-events: none !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
	border: 0 !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 1px !important;
}

.rr-terms-measure {
	display: inline;
}

.rr-terms-canvas-wrap {
	position: relative;
	width: 100%;
	z-index: 2;
	padding-bottom: 72px;
	box-sizing: border-box;
}

.rr-terms-canvas {
	display: block;
	width: 100%;
	height: auto;
	pointer-events: none;
}

/* Unlabeled shiny red gravity toggle — bottom-right of the terms block */
.rr-terms-gravity-btn {
	position: absolute;
	right: 12px;
	bottom: 12px;
	left: auto;
	transform: none;
	z-index: 5;
	width: 54px;
	height: 54px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background:
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.18) 28%, transparent 52%),
		radial-gradient(circle at 70% 78%, rgba(80, 0, 0, 0.35) 0%, transparent 55%),
		linear-gradient(160deg, #ff6b6b 0%, #e10600 42%, #9a0000 100%);
	box-shadow:
		0 0 0 1px rgba(255, 220, 220, 0.35) inset,
		0 1px 0 rgba(255, 255, 255, 0.45) inset,
		0 10px 22px rgba(180, 0, 0, 0.38),
		0 2px 6px rgba(0, 0, 0, 0.35);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	filter: saturate(1.05);
}

.rr-terms-gravity-btn::after {
	content: '';
	position: absolute;
	inset: 10% 18% auto 18%;
	height: 34%;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
	pointer-events: none;
}

.rr-terms-gravity-btn:hover,
.rr-terms-gravity-btn:focus-visible {
	transform: scale(1.06);
	filter: saturate(1.15) brightness(1.05);
	outline: none;
	box-shadow:
		0 0 0 1px rgba(255, 230, 230, 0.5) inset,
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		0 12px 28px rgba(200, 0, 0, 0.48),
		0 0 0 3px rgba(255, 40, 40, 0.22);
}

.rr-terms-gravity-btn:active {
	transform: scale(0.96);
}

.rr-terms-gravity-btn.is-on {
	background:
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0.12) 28%, transparent 52%),
		linear-gradient(160deg, #ff3b3b 0%, #c40000 48%, #6a0000 100%);
	box-shadow:
		0 0 0 1px rgba(255, 200, 200, 0.4) inset,
		0 0 18px rgba(255, 40, 40, 0.55),
		0 10px 22px rgba(120, 0, 0, 0.5);
}

body.rr-terms-gravity-on .rr-footer {
	position: relative;
	z-index: 3;
}

@media (prefers-reduced-motion: reduce) {
	.rr-terms-gravity-btn {
		display: none;
	}
}


/* Slow drifting page grid (behind canvas) */
body.rr-terms-physics-page {
	background-color: #020805;
	background-image:
		linear-gradient(rgba(60, 255, 120, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(60, 255, 120, 0.07) 1px, transparent 1px),
		linear-gradient(rgba(80, 255, 140, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(80, 255, 140, 0.12) 1px, transparent 1px);
	background-size: 48px 48px, 48px 48px, 192px 192px, 192px 192px;
	background-position: 0 0, 0 0, 0 0, 0 0;
	animation: rr-terms-grid-drift 28s linear infinite;
}

@keyframes rr-terms-grid-drift {
	from { background-position: 0 0, 0 0, 0 0, 0 0; }
	to { background-position: 48px 36px, 48px 36px, 96px 64px, 96px 64px; }
}

@media (prefers-reduced-motion: reduce) {
	body.rr-terms-physics-page {
		animation: none;
	}
}
