*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background-color: var(--forest-green-deep);
	color: var(--snow-white);
	font-family: var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

button {
	font-family: inherit;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
	outline: 2px solid var(--xmas-gold-light);
	outline-offset: 3px;
}

[hidden] {
	display: none !important;
}

/* Ambient Canvas & Backdrop */
#ambient-canvas {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 2;
}

.ambient-backdrop {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
	background:
		radial-gradient(ellipse 90% 70% at 50% 25%, rgba(28, 92, 65, 0.58) 0%, rgba(17, 56, 40, 0.7) 45%, rgba(8, 28, 20, 0.98) 100%),
		linear-gradient(180deg, #092017 0%, #174B35 55%, #0b2419 100%);
}

/* Subtle vintage linen paper grain */
.ambient-backdrop::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.055;
	background-image: radial-gradient(#fffdf7 0.75px, transparent 0.75px);
	background-size: 18px 18px;
}

.glow-orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(70px);
	opacity: 0.35;
}

.glow-orb--top {
	width: min(56vw, 560px);
	height: min(56vw, 560px);
	left: 50%;
	top: -160px;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(214, 173, 85, 0.48), transparent 70%);
}

.glow-orb--left {
	width: 340px;
	height: 340px;
	left: -120px;
	bottom: 10%;
	background: radial-gradient(circle, rgba(184, 32, 37, 0.35), transparent 72%);
}

.glow-orb--right {
	width: 380px;
	height: 380px;
	right: -130px;
	bottom: 5%;
	background: radial-gradient(circle, rgba(214, 173, 85, 0.28), transparent 72%);
}

/* Top Fairy String Lights */
.garland-lights {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 46px;
	display: flex;
	justify-content: space-around;
	align-items: flex-start;
	padding: 0 18px;
	opacity: 0.85;
}

.garland-lights::before {
	content: "";
	position: absolute;
	top: 8px;
	left: -2%;
	right: -2%;
	height: 18px;
	border-bottom: 1.5px solid rgba(214, 173, 85, 0.35);
	border-radius: 50%;
}

.fairy-bulb {
	position: relative;
	width: 8px;
	height: 12px;
	margin-top: 12px;
	border-radius: 50% 50% 60% 60%;
	background: var(--xmas-gold-light);
	box-shadow: 0 0 12px 3px rgba(243, 220, 155, 0.72);
	animation: bulb-twinkle 3.2s ease-in-out infinite;
}

.fairy-bulb:nth-child(3n) {
	background: #ffd1a3;
	box-shadow: 0 0 12px 3px rgba(255, 200, 140, 0.68);
	animation-delay: -1.1s;
}

.fairy-bulb:nth-child(4n) {
	background: #ff7e79;
	box-shadow: 0 0 11px 3px rgba(217, 65, 70, 0.58);
	animation-delay: -2.1s;
}

@keyframes bulb-twinkle {
	0%, 100% { opacity: 0.95; transform: scale(1); }
	50% { opacity: 0.45; transform: scale(0.86); }
}

/* Hidden Admin Trigger (Invisible to regular users) */
.admin-secret-zone {
	position: fixed;
	top: 0;
	right: 0;
	width: 72px;
	height: 72px;
	z-index: 95;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	opacity: 0;
	cursor: default;
}

.admin-banner {
	position: fixed;
	top: 10px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 96;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(20, 12, 6, 0.88);
	border: 1.5px solid var(--xmas-gold);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	font-size: 0.78rem;
}

.admin-banner__badge {
	color: var(--xmas-gold-light);
	font-family: var(--font-cute);
	letter-spacing: 0.04em;
}

.admin-banner__date {
	color: #d6e4dc;
	font-variant-numeric: tabular-nums;
}

.admin-banner__btn {
	border: 1px solid rgba(214, 173, 85, 0.55);
	background: rgba(214, 173, 85, 0.16);
	color: var(--snow-white);
	border-radius: 999px;
	padding: 3px 10px;
	font-size: 0.75rem;
}

.admin-banner__btn--exit {
	border-color: rgba(217, 65, 70, 0.65);
	background: rgba(184, 32, 37, 0.32);
}

/* Toast Notifications */
.toast-container {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 120;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
	width: min(92vw, 420px);
	align-items: center;
}

.toast {
	padding: 11px 18px;
	border-radius: 999px;
	background: rgba(12, 34, 24, 0.94);
	border: 1px solid rgba(214, 173, 85, 0.6);
	color: var(--snow-white);
	font-size: 0.9rem;
	text-align: center;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
	backdrop-filter: blur(8px);
	animation: toast-in 0.35s var(--ease-cinematic) forwards;
}

.toast--fade {
	animation: toast-out 0.35s ease forwards;
}

@keyframes toast-in {
	from { opacity: 0; transform: translateY(12px) scale(0.95); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
	from { opacity: 1; transform: translateY(0) scale(1); }
	to { opacity: 0; transform: translateY(8px) scale(0.96); }
}

@media (prefers-reduced-motion: reduce) {
	.fairy-bulb {
		animation: none;
	}
}
