/**
 * Ritual Row site chrome — non-Elementor header, ticker, footer.
 * Shared by WordPress pages and static playground HTML.
 */
:root {
	--rr-g: #00ff41;
	--rr-g2: #008f11;
	--rr-line: rgba(0, 255, 65, 0.28);
	--rr-bg: rgba(13, 2, 8, 0.96);
	--rr-ticker-bg: rgba(3, 6, 4, 0.98);
	--rr-footer-ink: #060806;
	--rr-footer-muted: #8ab790;
	--rr-footer-line: rgba(0, 255, 65, 0.26);
}

.rr-chrome {
	position: sticky;
	top: 0;
	z-index: 100000;
	width: 100%;
	font-family: "DotGothic16", "Fragment Mono", ui-monospace, monospace;
	color: var(--rr-g);
}

body.admin-bar .rr-chrome {
	top: 32px;
}

.rr-ticker {
	display: flex;
	align-items: center;
	height: 28px;
	overflow: hidden;
	border-bottom: 1px solid currentColor;
	background: var(--rr-ticker-bg);
	font: 700 10px/1 ui-monospace, "Fragment Mono", monospace;
	letter-spacing: 0.08em;
	color: #9dffb0;
}

.rr-ticker--members { color: #79d7ff; }
.rr-ticker--board { color: #ffb15c; }
.rr-ticker--profile { color: #d99cff; }
.rr-ticker--shop { color: #00ff88; }
.rr-ticker--homepage,
.rr-ticker--playground { color: #9dffb0; }

.rr-ticker__label {
	flex: 0 0 auto;
	padding: 0 12px;
	white-space: nowrap;
}

.rr-ticker__viewport {
	flex: 1;
	overflow: hidden;
	white-space: nowrap;
	min-width: 0;
}

.rr-ticker__track {
	display: inline-flex;
	min-width: max-content;
	animation: rrTickerScroll 36s linear infinite;
}

.rr-ticker__item {
	display: inline-block;
	padding-right: 42px;
	font-weight: 400;
}

.rr-ticker__item b {
	opacity: 0.65;
	padding-right: 6px;
}

.rr-ticker__item i {
	font-style: normal;
	padding-left: 18px;
	opacity: 0.8;
}

@keyframes rrTickerScroll {
	from { transform: translateX(100%); }
	to { transform: translateX(-100%); }
}

@media (prefers-reduced-motion: reduce) {
	.rr-ticker__track {
		animation: none;
		transform: none;
	}
}

.rr-head {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 2px;
	min-height: 84px;
	padding: 8px 16px 10px;
	border-bottom: 1px solid var(--rr-line);
	background: var(--rr-bg);
	box-sizing: border-box;
}

.rr-logo {
	grid-column: 1 / -1;
	grid-row: 1;
	justify-self: center;
	margin: 0;
	padding: 4px 0 2px;
	font: 20px/1 "DotGothic16", sans-serif;
	color: var(--rr-g);
	text-decoration: none;
	text-shadow: 0 0 8px rgba(0, 251, 51, 0.55);
	white-space: nowrap;
}

.rr-logo:hover {
	color: #b8ffc0;
}

.rr-nav {
	grid-column: 2;
	grid-row: 2;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rr-nav a {
	display: inline-block;
	padding: 6px 9px;
	font: 13px/1.1 "DotGothic16", sans-serif;
	color: var(--rr-g2);
	text-decoration: none;
	white-space: nowrap;
}

.rr-nav a:hover,
.rr-nav a.is-active,
.rr-nav a[aria-current="page"] {
	color: var(--rr-g);
}

.rr-cart {
	grid-column: 3;
	grid-row: 2;
	justify-self: end;
	align-self: center;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	padding: 4px 8px;
	border: 1px solid rgba(0, 255, 65, 0.35);
	background: rgba(0, 20, 0, 0.45);
	color: var(--rr-g);
	font: 11px/1 "Fragment Mono", ui-monospace, monospace;
	text-decoration: none;
	white-space: nowrap;
}

.rr-cart:hover {
	border-color: var(--rr-g);
	background: rgba(0, 40, 0, 0.55);
}

.rr-cart__count {
	display: inline-grid;
	place-items: center;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--rr-g);
	color: #041004;
	font-size: 10px;
	font-weight: 700;
}

/* Kill Elementor Theme Builder header/footer so only rr-chrome remains. */
body:not(.rr-chrome-skip) .elementor-location-header,
body:not(.rr-chrome-skip) .elementor-327.elementor-location-header,
body:not(.rr-chrome-skip) .elementor-location-footer,
body:not(.rr-chrome-skip) .elementor-364.elementor-location-footer {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	pointer-events: none !important;
}

/* Footer */
.rr-footer {
	--ritual-footer-ink: var(--rr-footer-ink);
	--ritual-footer-green: var(--rr-g);
	--ritual-footer-muted: var(--rr-footer-muted);
	--ritual-footer-line: var(--rr-footer-line);
	margin-top: clamp(36px, 6vw, 96px);
	padding: clamp(24px, 3vw, 40px) 24px 24px;
	border-top: 1px solid var(--rr-footer-line);
	background: linear-gradient(180deg, rgba(0, 255, 65, 0.08), transparent 13px), var(--rr-footer-ink);
	color: var(--rr-g);
	font-family: "DotGothic16", "Roboto Mono", monospace;
	text-align: center;
}

.rr-footer__inner {
	max-width: 640px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

.rr-footer__contact {
	margin: 0;
	padding: 12px 20px;
	color: var(--rr-footer-muted);
	font: 400 12px/1.6 "DotGothic16", "Roboto Mono", monospace;
	letter-spacing: 0.06em;
}

.rr-footer__contact a {
	color: inherit;
	text-decoration: none;
}

.rr-footer__contact a:hover,
.rr-footer__contact a:focus-visible {
	color: #fff;
	text-shadow: 0 0 12px rgba(0, 255, 65, 0.8);
}

.rr-footer__link {
	display: inline-block;
	padding: 12px 20px;
	color: var(--rr-g);
	font: 500 11px/1.5 "DotGothic16", "Roboto Mono", monospace;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	text-decoration: none;
	transition: color 0.2s ease, text-shadow 0.2s ease;
}

.rr-footer__link:hover,
.rr-footer__link:focus-visible {
	color: #fff;
	text-shadow: 0 0 12px rgba(0, 255, 65, 0.8);
}

.rr-footer__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 4px;
}

.rr-footer__copy {
	margin: 0;
	padding: 8px 20px 4px;
	color: var(--rr-footer-muted);
	font: 400 9px/1.6 "DotGothic16", "Roboto Mono", monospace;
	letter-spacing: 0.12em;
}

.rr-donate-wrap {
	display: flex;
	justify-content: center;
	padding: 30px 0;
}

.rr-donate {
	position: relative;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	min-width: 220px;
	padding: 15px 50px;
	border: 2px solid #00ff41;
	background: #000;
	color: #00ff41;
	font: 700 24px/1 "DotGothic16", monospace;
	letter-spacing: 2px;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: 0 0 5px rgba(0, 255, 65, 0.2);
	transition: all 0.2s ease;
	cursor: pointer;
}

.rr-donate span {
	transition: opacity 0.1s ease;
}

.rr-donate:hover,
.rr-donate:focus-visible {
	background: #00ff41;
	color: #000;
	border-color: #00ff41;
	box-shadow: 0 0 25px #00ff41;
	animation: rrDonatePulse 0.8s infinite;
}

.rr-donate:hover span,
.rr-donate:focus-visible span {
	opacity: 0;
}

.rr-donate::before {
	content: "PLEASE";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #000;
	font-weight: 900;
	font-size: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.1s;
}

.rr-donate:hover::before,
.rr-donate:focus-visible::before {
	opacity: 1;
}

.rr-donate::after {
	content: "$ $ $";
	position: absolute;
	top: -10px;
	width: 100%;
	text-align: center;
	font-size: 18px;
	font-weight: 700;
	color: #00ff41;
	opacity: 0;
	pointer-events: none;
	line-height: 1;
}

.rr-donate:hover::after,
.rr-donate:focus-visible::after {
	animation: rrMoneyFloat 1s ease-out infinite;
}

@keyframes rrDonatePulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

@keyframes rrMoneyFloat {
	0% {
		transform: translateY(0) scale(0.8);
		opacity: 1;
		text-shadow: 0 0 5px #fff;
	}
	100% {
		transform: translateY(-50px) scale(1.5);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rr-footer__link,
	.rr-donate,
	.rr-donate span {
		transition: none !important;
	}
	.rr-donate:hover,
	.rr-donate:focus-visible,
	.rr-donate:hover::after,
	.rr-donate:focus-visible::after {
		animation: none !important;
	}
}

@media (max-width: 782px) {
	body.admin-bar .rr-chrome {
		top: 46px;
	}

	.rr-head {
		min-height: 76px;
		padding: 6px 10px 8px;
	}

	.rr-logo {
		font-size: 16px;
	}

	.rr-nav {
		grid-column: 1 / 3;
		justify-content: flex-start;
		max-width: 100%;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.rr-nav a {
		padding: 6px 7px;
		font-size: 11px;
	}

	.rr-cart {
		padding: 4px 6px;
		font-size: 10px;
	}

	.rr-footer {
		padding-left: 14px;
		padding-right: 14px;
	}

	.rr-donate {
		min-width: 180px;
		font-size: 18px;
		padding: 12px 30px;
	}

	.rr-donate::before {
		font-size: 18px;
	}
}

/* --------------------------------------------------------------------------
 * Modern CRT override — softens Elementor template 347 HUD (post-347.css).
 * Loaded only when site chrome is on (MicroShop already excluded).
 * -------------------------------------------------------------------------- */
body.elementor-page-347 {
	background-color: #060806 !important;
	background-image:
		linear-gradient(rgba(0, 255, 65, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(0, 255, 65, 0.045) 1px, transparent 1px) !important;
	background-size: 56px 56px !important;
	animation: none !important;
}

body.elementor-page-347::before {
	content: "" !important;
	display: block !important;
	position: fixed !important;
	inset: 0 !important;
	pointer-events: none !important;
	z-index: 9998 !important;
	box-shadow: none !important;
	background:
		repeating-linear-gradient(
			0deg,
			transparent 0,
			transparent 3px,
			rgba(0, 0, 0, 0.045) 3px,
			rgba(0, 0, 0, 0.045) 4px
		),
		radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.42) 100%) !important;
	background-size: auto !important;
	animation: none !important;
	opacity: 1 !important;
}

/* Kill the bright green corner-bracket HUD frame. */
body.elementor-page-347::after {
	content: none !important;
	display: none !important;
	background: none !important;
	animation: none !important;
	box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
	body.elementor-page-347,
	body.elementor-page-347::before,
	body.elementor-page-347::after {
		animation: none !important;
	}
}
