/**
 * The Fridge — slightly wrong appliance in shared Ritual chrome.
 * Version: 20260911-fridge-glow2
 */
:root {
	--rr-fridge-ink: #0a0612;
	--rr-fridge-cold: #6dffd2;
	--rr-fridge-violet: #8b6cff;
	--rr-fridge-glow: rgba(109, 255, 210, 0.42);
	--rr-fridge-hover-glow: rgba(139, 108, 255, 0.45);
	--rr-fridge-hover-fringe: rgba(139, 108, 255, 0.22);
}

/*
 * Hello Elementor reset paints every button:
 *   [type=button], button { pink 1px border + 3px radius }
 *   button:hover, button:focus { solid hot-pink fill + white text }
 * [type=button]:hover is (0,2,0) and beats a bare .rr-fridge:hover.
 * Kill that chrome on every interactive state; hover cue is filter glow only.
 */
button.rr-fridge,
[type="button"].rr-fridge {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 8px 0 4px;
	padding: 0;
	width: 36px;
	height: 46px;
	border: 0;
	border-radius: 0;
	background: transparent;
	background-color: transparent;
	background-image: none;
	box-shadow: none;
	color: inherit;
	cursor: pointer;
	opacity: 0.78;
	filter: contrast(1.05);
	transition: opacity 0.28s ease, filter 0.28s ease;
	-webkit-tap-highlight-color: transparent;
}

button.rr-fridge:hover,
button.rr-fridge:focus,
button.rr-fridge:focus-visible,
button.rr-fridge:active,
[type="button"].rr-fridge:hover,
[type="button"].rr-fridge:focus,
[type="button"].rr-fridge:focus-visible,
[type="button"].rr-fridge:active {
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	opacity: 1;
	/* Soft violet emanate only — no fill, no outline box, no pulse. */
	filter:
		contrast(1.05)
		drop-shadow(0 0 5px var(--rr-fridge-hover-glow))
		drop-shadow(0 0 16px var(--rr-fridge-hover-fringe));
}

button.rr-fridge:focus-visible,
[type="button"].rr-fridge:focus-visible {
	outline: 1px solid #c8b6ff;
	outline-offset: 3px;
}

.rr-fridge__glyph {
	display: block;
	width: 22px;
	height: 34px;
	border: 1px solid rgba(157, 255, 176, 0.82);
	border-radius: 2px 3px 1px 2px;
	background:
		linear-gradient(180deg, rgba(139, 108, 255, 0.22), transparent 38%),
		repeating-linear-gradient(
			0deg,
			transparent 0 2px,
			rgba(0, 0, 0, 0.22) 2px 3px
		),
		#07140c;
	box-shadow:
		3px 2px 0 rgba(0, 0, 0, 0.55),
		0 0 10px rgba(109, 255, 210, 0.18),
		inset 0 0 0 1px rgba(0, 255, 65, 0.08);
	transform: perspective(32px) rotateY(-18deg) skewY(-5deg);
	position: relative;
}

.rr-fridge__glyph::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 12px;
	width: 3px;
	height: 8px;
	background: #9dffb0;
	box-shadow: 0 0 5px rgba(0, 255, 65, 0.8);
}

.rr-fridge__glyph::after {
	content: "";
	position: absolute;
	left: 3px;
	right: 3px;
	top: 9px;
	height: 1px;
	background: rgba(157, 255, 176, 0.55);
}

.rr-fridge-layer {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px 16px 40px;
	background:
		radial-gradient(ellipse at 42% 58%, rgba(88, 40, 140, 0.18), transparent 42%),
		rgba(2, 2, 4, 0.78);
}

.rr-fridge-layer.is-on {
	display: flex;
}

.rr-fridge-layer[hidden] {
	display: none !important;
}

.rr-fridge-stage {
	position: relative;
	width: min(320px, 92vw);
	transform: perspective(520px) rotateY(8deg) rotateX(3deg) skewX(-2deg);
}

.rr-fridge-title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.rr-fridge-stamp {
	position: absolute;
	top: -22px;
	right: 8px;
	font: 10px/1 "Fragment Mono", ui-monospace, monospace;
	letter-spacing: 0.18em;
	color: #ff4d4d;
	text-shadow: 0 0 8px rgba(255, 40, 40, 0.7);
	opacity: 0.72;
	pointer-events: none;
}

.rr-fridge-cabinet {
	position: relative;
	min-height: 380px;
	border: 1px solid rgba(180, 160, 255, 0.5);
	border-radius: 3px 6px 2px 4px;
	background:
		linear-gradient(180deg, #1b2218 0 46px, #121018 46px);
	box-shadow:
		8px 10px 0 rgba(0, 0, 0, 0.55),
		0 0 40px rgba(139, 108, 255, 0.18);
	overflow: visible;
}

.rr-fridge-cabinet::before {
	content: "";
	position: absolute;
	top: 8px;
	left: 8px;
	right: 8px;
	height: 34px;
	border: 1px solid rgba(157, 255, 176, 0.35);
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.05), transparent 30%),
		#152016;
	box-shadow: inset 0 -6px 8px rgba(0, 0, 0, 0.35);
	pointer-events: none;
	z-index: 3;
}

.rr-fridge-cabinet::after {
	content: "";
	position: absolute;
	left: 18px;
	right: 18px;
	bottom: 6px;
	height: 4px;
	background: rgba(0, 0, 0, 0.55);
	border-radius: 2px;
	pointer-events: none;
}

.rr-fridge-cavity {
	position: absolute;
	inset: 52px 12px 16px 10px;
	padding: 28px 18px 22px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background:
		repeating-linear-gradient(
			0deg,
			transparent 0 3px,
			rgba(0, 0, 0, 0.18) 3px 4px
		),
		radial-gradient(ellipse at 50% 30%, rgba(109, 255, 210, 0.16), transparent 55%),
		linear-gradient(180deg, #1a1030, #07040d 70%);
	box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.65);
	color: var(--rr-fridge-cold);
	font-family: "Fragment Mono", "DotGothic16", ui-monospace, monospace;
}

.rr-fridge-cavity::before,
.rr-fridge-cavity::after {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	height: 1px;
	background: rgba(139, 108, 255, 0.28);
	pointer-events: none;
}

.rr-fridge-cavity::before { top: 32%; }
.rr-fridge-cavity::after { top: 64%; }

.rr-fridge-cavity.is-empty::before,
.rr-fridge-cavity.is-empty::after {
	opacity: 0.12;
}

.rr-fridge-cavity.is-empty {
	background:
		repeating-linear-gradient(
			0deg,
			transparent 0 3px,
			rgba(0, 0, 0, 0.28) 3px 4px
		),
		radial-gradient(ellipse at 50% 40%, rgba(40, 10, 50, 0.5), #040208 70%);
	color: #6a5a78;
}

.rr-fridge-scrap {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 22ch;
	text-align: center;
	font-size: 13px;
	line-height: 1.55;
	letter-spacing: 0.04em;
	white-space: pre-wrap;
	text-shadow: 0 0 10px var(--rr-fridge-glow);
}

.rr-fridge-scrap--ascii,
.rr-fridge-scrap--sticker {
	font-size: 12px;
	line-height: 1.35;
	letter-spacing: 0.02em;
	text-align: left;
}

.rr-fridge-scrap--sticker {
	padding: 8px 10px;
	border: 1px dashed rgba(255, 214, 120, 0.45);
	background: rgba(20, 8, 4, 0.45);
	transform: rotate(-3.5deg);
	box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.4);
	color: #ffe7b0;
}

.rr-fridge-caption {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #b7a4ff;
	opacity: 0.7;
}

.rr-fridge-empty-copy {
	position: relative;
	z-index: 1;
	margin: 0;
	font-size: 14px;
	letter-spacing: 0.08em;
	color: #c9b8ff;
	text-shadow: 0 0 12px rgba(180, 120, 255, 0.45);
}

.rr-fridge-stare {
	width: 36px;
	height: 10px;
	position: relative;
	z-index: 1;
	opacity: 0.55;
}

.rr-fridge-stare::before,
.rr-fridge-stare::after {
	content: "";
	position: absolute;
	top: 0;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #e8d8ff;
	box-shadow: 0 0 8px #b48cff;
}

.rr-fridge-stare::before { left: 4px; }
.rr-fridge-stare::after { right: 4px; }

.rr-fridge-door {
	position: absolute;
	inset: 52px 12px 16px 10px;
	transform-origin: right center;
	transform: perspective(720px) rotateY(0deg);
	transition: transform 320ms cubic-bezier(0.18, 0.72, 0.22, 1);
	z-index: 4;
}

.rr-fridge-layer.is-open .rr-fridge-door {
	transform: perspective(720px) rotateY(-72deg);
}

.rr-fridge-door-face {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(157, 255, 176, 0.55);
	background:
		linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 18%),
		repeating-linear-gradient(
			0deg,
			transparent 0 3px,
			rgba(0, 0, 0, 0.16) 3px 4px
		),
		linear-gradient(180deg, #142016, #0a120c 55%, #07100a);
	box-shadow:
		inset 0 0 0 1px rgba(0, 255, 65, 0.08),
		10px 0 0 #0a120c;
}

.rr-fridge-door-face::before {
	content: "";
	position: absolute;
	left: 10px;
	top: 28%;
	width: 4px;
	height: 52px;
	background: #9dffb0;
	box-shadow: 0 0 8px rgba(0, 255, 65, 0.45);
}

.rr-fridge-door-face::after {
	content: "·  ·\nKEEP\nCOLD";
	position: absolute;
	right: 16px;
	bottom: 22px;
	white-space: pre;
	font: 9px/1.4 "Fragment Mono", ui-monospace, monospace;
	letter-spacing: 0.2em;
	color: rgba(157, 255, 176, 0.45);
	text-align: right;
}

.rr-fridge-shut {
	appearance: none;
	-webkit-appearance: none;
	position: absolute;
	left: 0;
	bottom: -34px;
	padding: 4px 2px;
	border: 0;
	background: transparent;
	color: #8ab790;
	font: 11px/1 "DotGothic16", "Fragment Mono", monospace;
	letter-spacing: 0.22em;
	text-transform: lowercase;
	cursor: pointer;
}

.rr-fridge-shut:hover,
.rr-fridge-shut:focus-visible {
	color: #fff;
	text-shadow: 0 0 10px rgba(109, 255, 210, 0.7);
}

.rr-fridge-shut:focus-visible {
	outline: 1px solid #fff;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.rr-fridge,
	.rr-fridge__glyph,
	.rr-fridge-door,
	.rr-fridge-shut,
	.rr-fridge-scrap--sticker {
		transition: none !important;
		animation: none !important;
	}

	.rr-fridge-layer.is-on .rr-fridge-door,
	.rr-fridge-layer.is-open .rr-fridge-door {
		transform: perspective(720px) rotateY(-72deg);
	}
}

@media (max-width: 640px) {
	.rr-fridge-stage {
		transform: perspective(420px) rotateY(4deg);
	}

	.rr-fridge-cabinet {
		min-height: 340px;
	}
}
