/* Sitewide Karen teaser + return toast */

.ah-return-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 24px);
	z-index: 99999;
	width: min(92vw, 380px);
	opacity: 0;
	transition: opacity 0.35s ease, transform 0.35s ease;
	pointer-events: none;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
}

.ah-return-toast.is-in {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.ah-return-inner {
	background: #fffdf8;
	border: 1px solid #d4c9b0;
	border-radius: 14px;
	padding: 1rem 1.1rem 0.9rem;
	box-shadow: 0 14px 36px rgba(15, 39, 64, 0.22);
	position: relative;
}

.ah-return-kicker {
	font-size: 0.68rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #1a6b8a;
	font-weight: 700;
	margin-bottom: 0.3rem;
}

.ah-return-line {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.1rem;
	font-weight: 700;
	color: #0f2740;
	line-height: 1.3;
	margin-bottom: 0.25rem;
}

.ah-return-meta {
	font-size: 0.8rem;
	color: #5a6f82;
	margin-bottom: 0.55rem;
}

.ah-return-actions {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
}

.ah-return-play {
	display: inline-block;
	background: #1a6b8a;
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.85rem;
	padding: 0.45rem 0.85rem;
	border-radius: 999px;
}

.ah-return-x {
	appearance: none;
	border: none;
	background: transparent;
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	color: #5a6f82;
	padding: 0.2rem 0.4rem;
}

/* ─── Karen peek (styled figure) ─── */
.ah-karen-peek {
	position: fixed;
	right: max(10px, env(safe-area-inset-right));
	bottom: 0;
	z-index: 99990;
	transform: translateY(108%);
	transition: transform 0.55s cubic-bezier(0.22, 1.15, 0.36, 1);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	pointer-events: none;
	-webkit-font-smoothing: antialiased;
}

.ah-karen-peek.is-up {
	transform: translateY(0);
	pointer-events: auto;
}

.ah-karen-hit {
	appearance: none;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 8px;
	-webkit-tap-highlight-color: transparent;
}

.ah-karen-bubble {
	background: #fffdf8;
	border: 1.5px solid #9a3412;
	color: #7c2d12;
	font-size: 0.8rem;
	font-weight: 650;
	padding: 0.55rem 0.75rem;
	border-radius: 14px 14px 4px 14px;
	max-width: 190px;
	text-align: left;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16);
	line-height: 1.35;
	position: relative;
}

.ah-karen-bubble::after {
	content: "";
	position: absolute;
	right: 18px;
	bottom: -7px;
	width: 12px;
	height: 12px;
	background: #fffdf8;
	border-right: 1.5px solid #9a3412;
	border-bottom: 1.5px solid #9a3412;
	transform: rotate(45deg);
}

/* Full CSS character */
.ah-karen-sprite {
	display: block;
	width: 86px;
	height: 108px;
	position: relative;
	filter: drop-shadow(0 6px 10px rgba(15, 39, 64, 0.28));
}

/* Legs / yoga pants */
.ah-karen-sprite .k-legs {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 36px;
	height: 34px;
	background: #2c3340;
	border-radius: 6px 6px 3px 3px;
	box-shadow: inset 12px 0 0 #252a35, inset -12px 0 0 #252a35;
}

/* Body / puffy vest */
.ah-karen-sprite .k-body {
	position: absolute;
	left: 50%;
	bottom: 28px;
	transform: translateX(-50%);
	width: 44px;
	height: 40px;
	background: linear-gradient(180deg, #fb923c 0%, #ea580c 55%, #c2410c 100%);
	border-radius: 12px 12px 8px 8px;
	box-shadow: inset 0 -14px 0 #3f2a1e;
}

/* Head */
.ah-karen-sprite .k-head {
	position: absolute;
	left: 50%;
	bottom: 62px;
	transform: translateX(-50%);
	width: 32px;
	height: 32px;
	background: linear-gradient(160deg, #f5d0b0 0%, #e8b890 100%);
	border-radius: 50%;
	z-index: 2;
}

/* Blonde bob */
.ah-karen-sprite .k-hair {
	position: absolute;
	left: 50%;
	bottom: 72px;
	transform: translateX(-50%);
	width: 40px;
	height: 28px;
	background: linear-gradient(180deg, #f5d76e 0%, #d4a017 100%);
	border-radius: 20px 20px 8px 8px;
	z-index: 1;
	box-shadow: -14px 10px 0 -6px #d4a017, 14px 10px 0 -6px #d4a017;
}

/* Sunglasses */
.ah-karen-sprite .k-glasses {
	position: absolute;
	left: 50%;
	bottom: 74px;
	transform: translateX(-50%);
	width: 26px;
	height: 8px;
	z-index: 3;
	background:
		linear-gradient(#111, #111) left / 11px 8px no-repeat,
		linear-gradient(#111, #111) right / 11px 8px no-repeat,
		linear-gradient(#333, #333) center / 4px 2px no-repeat;
	border-radius: 2px;
}

/* Phone hand */
.ah-karen-sprite .k-phone {
	position: absolute;
	right: 6px;
	bottom: 48px;
	width: 12px;
	height: 18px;
	background: #1e293b;
	border-radius: 2px;
	z-index: 4;
	box-shadow: inset 0 0 0 1px #334155, inset 0 -8px 0 #38bdf8;
}

.ah-karen-mute {
	position: absolute;
	top: 0;
	right: 0;
	appearance: none;
	border: none;
	background: rgba(15, 39, 64, 0.8);
	color: #fff;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	font-size: 12px;
	cursor: pointer;
	line-height: 1;
	opacity: 0.75;
	z-index: 5;
}

.ah-karen-mute:hover {
	opacity: 1;
}

@media (max-width: 480px) {
	.ah-karen-peek {
		right: 6px;
	}
	.ah-karen-bubble {
		max-width: 160px;
		font-size: 0.75rem;
	}
	.ah-karen-sprite {
		width: 76px;
		height: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ah-return-toast,
	.ah-karen-peek {
		transition: none;
	}
}
