.peekn-wrap {
	--peekn-accent: #1f6feb;
	position: fixed;
	z-index: 99990;
	display: flex;
	flex-direction: column;
	gap: 10px;
	pointer-events: none;
	max-width: calc(100vw - 16px);
	font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.peekn-right { right: 0; align-items: flex-end; }
.peekn-left  { left: 0;  align-items: flex-start; }
.peekn-bottom { bottom: 16px; }
.peekn-top    { top: 16px; }
.peekn-middle { top: 50%; transform: translateY(-50%); }

.peekn-card {
	pointer-events: auto;
	display: flex;
	align-items: stretch;
	gap: 12px;
	width: 320px;
	max-width: calc(100vw - 16px);
	box-sizing: border-box;
	padding: 8px;
	background: #fff;
	color: #1d2327;
	border: 1px solid rgba(0, 0, 0, .12);
	box-shadow: 0 6px 24px rgba(0, 0, 0, .16);
	transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
	opacity: 0;
}
.peekn-right .peekn-card { flex-direction: row;         border-radius: 12px 0 0 12px; border-right: 0; transform: translateX(110%); }
.peekn-left  .peekn-card { flex-direction: row-reverse; border-radius: 0 12px 12px 0; border-left: 0;  transform: translateX(-110%); }

.peekn-card.peekn-in { opacity: 1; }
.peekn-right .peekn-card.peekn-in { transform: translateX(0); }
.peekn-left  .peekn-card.peekn-in { transform: translateX(0); }

.peekn-pic {
	flex: 0 0 auto;
	width: 46px;
	height: 46px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: var(--peekn-accent) center / cover no-repeat;
	color: #fff;
	font-size: 20px;
	line-height: 46px;
	text-align: center;
	align-self: flex-start;
}
.peekn-hide:focus-visible, .peekn-link:focus-visible {
	outline: 2px solid var(--peekn-accent);
	outline-offset: 2px;
}

.peekn-body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 2px 4px 2px 0;
	transition: opacity .2s;
}
.peekn-left .peekn-body { padding: 2px 0 2px 4px; }

.peekn-title { margin: 0 0 2px; font-size: 14px; font-weight: 650; }
.peekn-msg { margin: 0 0 8px; font-size: 13px; color: #50575e; overflow-wrap: anywhere; }
.peekn-actions { display: flex; align-items: center; gap: 12px; }
.peekn-link {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 6px;
	background: var(--peekn-accent);
	color: #fff !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}
.peekn-link:hover { filter: brightness(1.1); }
.peekn-hide {
	margin: 0 0 0 auto;
	padding: 4px 2px;
	border: 0;
	background: none;
	color: #646970;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
}
.peekn-hide:hover { color: #1d2327; }

@media (prefers-reduced-motion: reduce) {
	.peekn-card, .peekn-body { transition: none; }
}

/* ------------------------------------------------------------
 * Creepy style: translucent, liquid, very slow
 * ---------------------------------------------------------- */
.peekn-creepy .peekn-card {
	background: linear-gradient(135deg, rgba(20, 12, 14, .58), rgba(70, 12, 20, .42));
	-webkit-backdrop-filter: blur(12px) saturate(1.2);
	backdrop-filter: blur(12px) saturate(1.2);
	color: #e8ddd7;
	border-color: rgba(255, 255, 255, .1);
	box-shadow: 0 0 26px rgba(130, 12, 24, .35);
}
.peekn-creepy.peekn-right .peekn-card { border-radius: 32px 0 0 36px; }
.peekn-creepy.peekn-left  .peekn-card { border-radius: 0 36px 32px 0; }

/* Drifts in over ~14s, bobbing and swaying like it is under water */
.peekn-creepy .peekn-card.peekn-in {
	animation:
		peekn-creep-r 14s cubic-bezier(.3, .05, .2, 1) forwards,
		peekn-float 7s ease-in-out infinite,
		peekn-blob-r 11s ease-in-out infinite alternate,
		peekn-fade 6s 14s ease-in-out infinite alternate,
		peekn-breathe 6s ease-in-out infinite;
}
.peekn-creepy.peekn-left .peekn-card.peekn-in {
	animation-name: peekn-creep-l, peekn-float, peekn-blob-l, peekn-fade, peekn-breathe;
}
/* Hide me: starts dissolving at once and is fully invisible within ~1s */
.peekn-creepy .peekn-card.peekn-out {
	pointer-events: none;
	animation: peekn-leave-r 2s ease-in-out forwards, peekn-float 7s ease-in-out infinite;
}
.peekn-creepy.peekn-left .peekn-card.peekn-out { animation-name: peekn-leave-l, peekn-float; }

.peekn-creepy .peekn-pic {
	background-color: rgba(60, 15, 20, .6);
	filter: grayscale(.85) contrast(1.15) brightness(.9) sepia(.3) hue-rotate(-30deg);
	border-radius: 50%;
	box-shadow: 0 0 14px rgba(140, 14, 26, .5);
}
.peekn-creepy .peekn-title {
	font-family: Georgia, "Times New Roman", serif;
	font-style: italic;
	font-weight: 400;
	font-size: 15px;
	letter-spacing: .02em;
	color: #f0e6e0;
}
.peekn-creepy .peekn-msg { color: #bdb0a9; }
.peekn-creepy .peekn-link {
	background: rgba(139, 26, 31, .25);
	border: 1px solid rgba(190, 50, 58, .6);
	border-radius: 999px;
	color: #f0e2dc !important;
	transition: background 1.2s, box-shadow 1.2s;
}
.peekn-creepy .peekn-link:hover { background: rgba(139, 26, 31, .6); box-shadow: 0 0 14px rgba(170, 24, 36, .6); filter: none; }
.peekn-creepy .peekn-hide { color: #a89b95; }
.peekn-creepy .peekn-hide:hover { color: #e6d9d3; }

@keyframes peekn-creep-r {
	from { transform: translateX(110%); opacity: 0; }
	to   { transform: translateX(0);    opacity: 1; }
}
@keyframes peekn-creep-l {
	from { transform: translateX(-110%); opacity: 0; }
	to   { transform: translateX(0);     opacity: 1; }
}
@keyframes peekn-leave-r {
	0%   { transform: translateX(0);    opacity: 1; visibility: visible; }
	50%  { transform: translateX(16%);  opacity: 0; visibility: visible; }
	100% { transform: translateX(110%); opacity: 0; visibility: hidden; }
}
@keyframes peekn-leave-l {
	0%   { transform: translateX(0);     opacity: 1; visibility: visible; }
	50%  { transform: translateX(-16%);  opacity: 0; visibility: visible; }
	100% { transform: translateX(-110%); opacity: 0; visibility: hidden; }
}
/* Slow liquid sway (separate translate/rotate properties so they combine with the slide) */
@keyframes peekn-float {
	0%, 100% { translate: 0 0;     rotate: -.4deg; }
	50%      { translate: 0 -7px;  rotate: .4deg; }
}
@keyframes peekn-blob-r {
	from { border-radius: 30px 0 0 38px; }
	to   { border-radius: 40px 0 0 26px; }
}
@keyframes peekn-blob-l {
	from { border-radius: 0 38px 30px 0; }
	to   { border-radius: 0 26px 40px 0; }
}
@keyframes peekn-fade {
	from { opacity: 1; }
	to   { opacity: .78; }
}
@keyframes peekn-breathe {
	0%, 100% { box-shadow: 0 0 16px rgba(130, 12, 24, .25); }
	50%      { box-shadow: 0 0 34px rgba(150, 14, 28, .6); }
}
@media (prefers-reduced-motion: reduce) {
	.peekn-creepy .peekn-card.peekn-in,
	.peekn-creepy .peekn-card.peekn-out { animation: none; }
	.peekn-creepy .peekn-card.peekn-out { visibility: hidden; }
}
