/* Embayu easter eggs — toast, mod senja, kad statistik, halaman 404. Versi: egg-3.css */

/* ---------------- toast ---------------- */
.embayu-egg-toast[hidden],
.embayu-egg-card[hidden] { display: none !important; }

.embayu-egg-toast {
	position: fixed;
	left: 50%;
	bottom: 24px;
	transform: translate(-50%, 16px);
	max-width: min(92vw, 420px);
	padding: .7rem 1.1rem;
	border-radius: 999px;
	background: #1d2b3a;
	color: #f7f9fb;
	font-size: .95rem;
	line-height: 1.35;
	text-align: center;
	box-shadow: 0 10px 30px rgba(15, 25, 38, .28);
	opacity: 0;
	z-index: 9999;
	transition: opacity .26s ease, transform .26s ease;
}
.embayu-egg-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- mod senja (12 saat) ---------------- */
html.embayu-senja body {
	background: linear-gradient(180deg, #2b1e3a 0%, #6d3550 42%, #d4763f 100%) !important;
	transition: background .8s ease;
}
html.embayu-senja .embayu-header,
html.embayu-senja .embayu-header-b {
	background: rgba(43, 30, 58, .94) !important;
	border-bottom-color: rgba(247, 215, 156, .28) !important;
}
html.embayu-senja .embayu-header a,
html.embayu-senja .embayu-header .embayu-nav a,
html.embayu-senja .embayu-burger span,
html.embayu-senja .embayu-sr-btn,
html.embayu-senja .embayu-lang a,
html.embayu-senja .embayu-lang span,
html.embayu-senja .embayu-wm b,
html.embayu-senja .embayu-wm i {
	color: #f7d79c !important;
}
html.embayu-senja .embayu-wm b { letter-spacing: .04em; }
html.embayu-senja .embayu-footer,
html.embayu-senja .embayu-footer-a {
	background: rgba(29, 21, 40, .94) !important;
	color: #f0e2c8 !important;
}
html.embayu-senja .embayu-footer a,
html.embayu-senja .embayu-footer h2,
html.embayu-senja .embayu-footer .efa-word { color: #f7d79c !important; }
html.embayu-senja .efa-bar { border-top-color: rgba(247, 215, 156, .22) !important; }
html.embayu-senja .efa-mark rect { fill: #f7d79c !important; }

/* cahaya senja pada kad putih: krim hangat, bukan putih mati */
html.embayu-senja .embayu-hero-d1,
html.embayu-senja .embayu-sec-d1,
html.embayu-senja .embayu-main,
html.embayu-senja .embayu-card {
	background: linear-gradient(180deg, #fff5e8 0%, #ffe9d2 70%, #ffdcc0 100%) !important;
	box-shadow: inset 0 0 60px rgba(212, 118, 63, .18) !important;
}
html.embayu-senja .embayu-hero-d1 h1,
html.embayu-senja .embayu-sec-d1 h2,
html.embayu-senja .embayu-sec-d1 h3 { color: #53304a !important; }
html.embayu-senja .embayu-hero-d1 a,
html.embayu-senja .embayu-sec-d1 a { color: #8a4b2a; }
html.embayu-senja .embayu-cta,
html.embayu-senja .embayu-hero-d1 .wp-block-button__link {
	background: #b45a2e !important;
	border-color: #b45a2e !important;
	color: #fff8ef !important;
}


/* kontras teks kecil dalam mod senja (latar krim) */
html.embayu-senja .embayu-hero-d1 em,
html.embayu-senja .embayu-sec-d1 em,
html.embayu-senja .embayu-hero-d1 small,
html.embayu-senja .embayu-sec-d1 small,
html.embayu-senja .embayu-wx-st { color: #4a3a46 !important; }
html.embayu-senja .embayu-hero-d1 a:not(.wp-block-button__link),
html.embayu-senja .embayu-sec-d1 a:not(.wp-block-button__link) { color: #2c5f18 !important; }

/* kunang-kunang: tiga titik lembut, bukan animasi berterabur */
html.embayu-senja::before,
html.embayu-senja::after {
	content: "";
	position: fixed;
	pointer-events: none;
	z-index: 2;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ffe9a8;
	box-shadow: 0 0 12px 4px rgba(255, 233, 168, .55);
	animation: embayu-ff 3.4s ease-in-out infinite;
}
html.embayu-senja::before { left: 18vw; top: 62vh; }
html.embayu-senja::after { left: 76vw; top: 48vh; animation-delay: 1.2s; }

@keyframes embayu-ff {
	0%, 100% { opacity: .25; transform: translateY(0); }
	50% { opacity: 1; transform: translateY(-10px); }
}

/* ---------------- kad "tentang portal" ---------------- */
.embayu-egg-card {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 25, 38, .55);
	z-index: 9998;
	opacity: 0;
	transition: opacity .2s ease;
}
.embayu-egg-card.is-in { opacity: 1; }
.embayu-egg-card-in {
	width: min(92vw, 420px);
	background: #fff;
	color: #1d2b3a;
	border-radius: 16px;
	padding: 1.4rem 1.5rem 1.2rem;
	box-shadow: 0 24px 60px rgba(15, 25, 38, .35);
	transform: translateY(10px) scale(.985);
	transition: transform .22s ease;
}
.embayu-egg-card.is-in .embayu-egg-card-in { transform: none; }
.embayu-egg-card-in h2 {
	margin: 0 0 .9rem;
	font-size: 1.12rem;
	line-height: 1.3;
	color: #3b5a74;
}
.embayu-egg-stats { margin: 0 0 .9rem; }
.embayu-egg-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: .42rem 0;
	border-bottom: 1px solid #e6ecf2;
}
.embayu-egg-row:last-child { border-bottom: 0; }
.embayu-egg-row dt { font-size: .92rem; color: #5a6b7c; }
.embayu-egg-row dd {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 700;
	color: #1d2b3a;
	font-variant-numeric: tabular-nums;
}
.embayu-egg-stats .is-loading {
	margin: 0;
	font-size: .95rem;
	color: #5a6b7c;
}
.embayu-egg-note {
	margin: 0 0 1rem;
	font-size: .84rem;
	line-height: 1.45;
	color: #5a6b7c;
}
.embayu-egg-close {
	border: 0;
	border-radius: 999px;
	padding: .55rem 1.2rem;
	background: #3b5a74;
	color: #fff;
	font-size: .9rem;
	cursor: pointer;
}
.embayu-egg-close:hover { background: #2f4a61; }

/* ---------------- halaman 404 ---------------- */
.embayu-404 {
	max-width: 640px;
	margin: 0 auto;
	padding: clamp(1.5rem, 4vw, 3rem) 1.25rem clamp(2rem, 5vw, 3.5rem);
	text-align: center;
}
.embayu-404-art svg {
	width: min(74vw, 300px);
	height: auto;
	display: block;
	margin: 0 auto .4rem;
}
.embayu-404-cat { animation: embayu-tail 4.5s ease-in-out infinite; transform-origin: 105px 118px; }
@keyframes embayu-tail {
	0%, 100% { transform: rotate(-1.2deg); }
	50% { transform: rotate(1.2deg); }
}
.embayu-404-title {
	margin: .2rem 0 .5rem;
	font-size: clamp(1.35rem, 4vw, 1.8rem);
	color: #3b5a74;
	line-height: 1.25;
}
.embayu-404-line {
	margin: 0 auto 1.4rem;
	max-width: 40ch;
	color: #5a6b7c;
	line-height: 1.55;
}
.embayu-404-search {
	display: flex;
	gap: 8px;
	max-width: 440px;
	margin: 0 auto 1.2rem;
}
.embayu-404-search input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: .68rem .9rem;
	border: 1.5px solid #cfd6de;
	border-radius: 999px;
	font-size: 1rem;
}
.embayu-404-search input[type="search"]:focus {
	outline: 3px solid rgba(63, 188, 208, .45);
	outline-offset: 1px;
	border-color: #3fbcd0;
}
.embayu-404-search button {
	border: 0;
	border-radius: 999px;
	padding: .68rem 1.25rem;
	background: #3b5a74;
	color: #fff;
	font-size: .95rem;
	cursor: pointer;
	white-space: nowrap;
}
.embayu-404-search button:hover { background: #2f4a61; }
.embayu-404-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem 1.1rem;
	justify-content: center;
}
.embayu-404-links a {
	color: #3b5a74;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ---------------- gerak isyarat footer ---------------- */
.efa-copy {
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	cursor: default;
}

/* ---------------- kurangkan gerakan ---------------- */
@media (prefers-reduced-motion: reduce) {
	.embayu-egg-toast,
	.embayu-egg-card,
	.embayu-egg-card-in,
	html.embayu-senja body { transition: none; }
	html.embayu-senja::before,
	html.embayu-senja::after,
	.embayu-404-cat { animation: none; }
}
