/* ========================================
   PAR-DYNAMIC: Clean & Modern Visualizer
   Style: Minimalist, High-End Clubhouse
   ======================================== */

:root {
	--pd-v-accent: #101828;
	--pd-v-muted: #667085;
	--pd-v-border: #eaecf0;
	--pd-v-bg: #ffffff;
	--pd-v-radius: 16px;
	--pd-overlay-color: transparent;
	--pd-overlay-opacity: 0;
}

.pd-visualizer-container {
	width: 100%;
	max-width: 1000px;
	margin: 40px auto;
	background: var(--pd-v-bg);
	border: 1px solid var(--pd-v-border);
	border-radius: var(--pd-v-radius);
	padding: 24px;
	box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08);
}

.pd-visualizer-stack {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 12px;
	overflow: hidden;
	background: #f2f4f7;
	margin-bottom: 32px;
}

.pd-vis-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 1s ease;
}

.pd-vis-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--pd-overlay-color);
	opacity: var(--pd-overlay-opacity);
	mix-blend-mode: multiply; /* Crucial for realistic lighting */
	z-index: 2;
	pointer-events: none;
	transition: all 0.3s ease;
}

.pd-visualizer-controls {
	width: 100%;
}

.pd-visualizer-controls label {
	display: block;
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	font-weight: 600;
	color: var(--pd-v-accent);
	margin-bottom: 24px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* CUSTOM SLIDER */
.pd-time-slider {
	-webkit-appearance: none;
	width: 100%;
	height: 6px;
	background: #f2f4f7;
	border-radius: 3px;
	outline: none;
	margin-bottom: 20px;
}

.pd-time-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 24px;
	height: 24px;
	background: #ffffff;
	border: 2px solid var(--pd-v-accent);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.1);
	transition: all 0.2s ease;
}

/* LABELS */
.pd-time-labels {
	display: flex;
	justify-content: space-between;
	padding: 0 5px; /* Alignment with slider track */
}

.pd-time-labels span {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: var(--pd-v-muted);
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: color 0.3s ease;
	flex: 1;
	text-align: center;
}

.pd-time-labels span:first-child { text-align: left; }
.pd-time-labels span:last-child { text-align: right; }

.pd-time-labels span.active {
	color: var(--heritage-gold, #9e7a44);
	font-weight: 800;
	transform: scale(1.1);
}

.pd-hero {
	background-color: var(--pd-h-primary, #101828);
	background-image: var(--pd-h-bg-img);
	background-size: cover;
	background-position: center;
	padding: 160px 20px;
	border-radius: 24px;
	margin: 40px auto;
	max-width: 1200px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
	filter: var(--pd-h-filter, none);
	transition: all 1s ease;
}

.pd-hero-atmosphere {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: var(--pd-h-overlay, rgba(0,0,0,0.4));
	z-index: 1;
	transition: background 1s ease;
}
/* Responsive Hero */
@media (max-width: 768px) {
	.pd-hero {
		padding: 80px 20px;
		margin: 20px;
		border-radius: 16px;
	}
	.pd-hero-headline {
		font-size: 36px;
		letter-spacing: -1px;
	}
	.pd-hero-cta {
		padding: 16px 32px;
		font-size: 16px;
	}
}

/* Subtle Rain Animation */
.pd-hero-rain {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	pointer-events: none;
	z-index: 2;
	display: none;
	background-image: linear-gradient(to bottom, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 10%);
	background-size: 2px 20px;
	animation: pdRain 0.3s linear infinite;
}

.pd-is-raining .pd-hero-rain {
	display: block;
}

@keyframes pdRain {
	0% { background-position: 0 0; }
	100% { background-position: 0 100%; }
}

.pd-hero-headline {
	font-family: 'Outfit', sans-serif;
	font-size: var(--pd-h-size, 64px);
	font-weight: 800;
	margin-bottom: 32px;
	letter-spacing: -2px;
	line-height: 1.1;
	color: var(--pd-h-color, #ffffff);
}

.pd-hero-badge {
	display: inline-block;
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255,255,255,0.1);
	padding: 8px 20px;
	border-radius: 100px;
	font-size: 13px;
	font-weight: 700;
	margin-bottom: 12px; /* Reduced to accommodate intel bar */
	text-transform: uppercase;
	letter-spacing: 2px;
}

.pd-hero-intel {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 40px;
	width: 100%;
	font-family: 'Outfit', sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
	letter-spacing: 1px;
	text-transform: uppercase;
	animation: pdFadeUp 1s ease-out forwards;
}

.pd-intel-label {
	font-weight: 400;
	opacity: 0.6;
	margin-right: 4px;
	font-size: 11px;
	letter-spacing: 2px;
}

.pd-intel-val {
	color: #ffffff;
	font-weight: 700;
}

@keyframes pdFadeUp {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.pd-hero-cta {
	background-color: var(--pd-h-accent, #764ba2);
	color: #fff;
	padding: 20px 48px;
	border-radius: 12px;
	font-weight: 800;
	font-size: 18px;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.pd-hero-cta:hover {
	transform: translateY(-3px);
	box-shadow: 0 15px 30px rgba(0,0,0,0.3);
	filter: brightness(1.1);
}

/* ========================================
   PAR-DYNAMIC: Live Course Status Board
   ======================================== */

.pd-status-board-prestige {
	display: flex;
	background: #ffffff;
	border: 1px solid #f2f2f2;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.06);
	margin: 40px auto;
	max-width: 1000px;
	overflow: hidden;
}

.pd-status-col {
	flex: 1;
	padding: 40px 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.pd-status-col.divider {
	border-left: 1px solid #eeeeee;
}

.pd-label {
	font-family: 'Inter', sans-serif;
	font-size: 11px;
	font-weight: 600;
	color: #94a3b8;
	letter-spacing: 0.1em;
	margin-bottom: 25px;
}

.pd-status-icon {
	width: 120px;
	height: auto;
	margin-bottom: 20px;
}

.pd-sub {
	font-family: 'Inter', sans-serif;
	font-size: 10px;
	font-weight: 700;
	color: #1e293b;
	margin-bottom: 5px;
}

.pd-val {
	font-family: 'Inter', sans-serif;
	font-size: 22px;
	font-weight: 800;
	color: #004d40;
}

.pd-val.active {
	color: #004d40;
}

.pd-val-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}

.pd-badge {
	background: #e2e8f0;
	color: #475569;
	font-size: 9px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 4px;
	text-transform: uppercase;
}

/* Responsive */
@media (max-width: 768px) {
	.pd-visualizer-container {
		padding: 16px;
		margin: 20px;
	}
	.pd-status-board-prestige {
		flex-direction: column;
	}
	.pd-status-col.divider {
		border-left: none;
		border-top: 1px solid #eeeeee;
	}
}

@media (max-width: 576px) {
	.pd-time-labels span {
		font-size: 8px;
		letter-spacing: 0;
	}
	.pd-visualizer-stack {
		margin-bottom: 20px;
	}
}

/* Responsive Grid */
@media (max-width: 992px) {
	.pd-status-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.pd-status-grid {
		grid-template-columns: 1fr;
	}
	.pd-status-item h4 {
		font-size: 11px;
	}
	.pd-status-value {
		font-size: 20px;
	}
}

/* ========================================
   PAR-DYNAMIC: Dynamic Clubhouse Menu
   ======================================== */

.pd-menu-container {
	max-width: 1200px;
	margin: 60px auto;
	padding: 0 20px;
}

.pd-menu-header {
	text-align: center;
	margin-bottom: 50px;
}

.pd-menu-phase {
	display: inline-block;
	font-family: 'Inter', sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: var(--pd-h-accent, #764ba2);
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 12px;
}

.pd-menu-title {
	font-family: 'Outfit', sans-serif;
	font-size: 48px;
	font-weight: 800;
	color: #101828;
	letter-spacing: -1px;
}

.pd-menu-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 30px;
}

.pd-menu-item {
	display: flex;
	background: #ffffff;
	border: 1px solid #f2f4f7;
	border-radius: 16px;
	overflow: hidden;
	transition: all 0.3s ease;
	box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.03);
}

.pd-menu-item:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08);
	border-color: #eaecf0;
}

.pd-menu-item-featured {
	border: 2px solid #fee4e2;
	background: #fffbfa;
}

.pd-menu-thumb {
	width: 160px;
	height: 160px;
	flex-shrink: 0;
}

.pd-menu-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.pd-menu-info {
	padding: 24px;
	flex-grow: 1;
}

.pd-menu-item-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 8px;
	flex-wrap: wrap;
	gap: 10px;
}

.pd-menu-item-title {
	font-family: 'Outfit', sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #101828;
	margin: 0;
}

.pd-menu-item-price {
	font-family: 'Inter', sans-serif;
	font-weight: 700;
	color: #101828;
	font-size: 18px;
}

.pd-menu-item-desc {
	font-family: 'Inter', sans-serif;
	font-size: 14px;
	color: #667085;
	line-height: 1.5;
	margin: 0;
}

.pd-menu-badge {
	background: #fef3f2;
	color: #b42318;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 100px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	width: 100%;
	margin-bottom: 8px;
	display: block;
	text-align: center;
}

.pd-menu-empty {
	text-align: center;
	padding: 60px;
	background: #f9fafb;
	border-radius: 16px;
	color: #667085;
	font-style: italic;
}

/* SaaS Admin Table Styles */
.pd-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 20px;
}

.pd-table th {
	text-align: left;
	padding: 12px 16px;
	background: #f9fafb;
	border-bottom: 1px solid #eaecf0;
	font-size: 12px;
	font-weight: 600;
	color: #667085;
	text-transform: uppercase;
	letter-spacing: 1px;
}

.pd-table td {
	padding: 16px;
	border-bottom: 1px solid #eaecf0;
	vertical-align: middle;
}

.pd-table tr:last-child td {
	border-bottom: none;
}

.pd-table-link {
	color: var(--pd-h-accent, #764ba2);
	text-decoration: none;
	font-weight: 600;
}

.pd-table-link:hover {
	text-decoration: underline;
}

/* Responsive Menu */
@media (max-width: 992px) {
	.pd-menu-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 576px) {
	.pd-menu-item {
		flex-direction: column;
	}
	.pd-menu-thumb {
		width: 100%;
		height: 200px;
	}
	.pd-menu-title {
		font-size: 32px;
	}
}

/* Subtle Cloudy/Foggy Animation */
.pd-hero-clouds {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	pointer-events: none;
	z-index: 2;
	display: none;
	background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1), transparent 70%);
	mix-blend-mode: overlay;
	animation: pdClouds 20s ease-in-out infinite alternate;
}

.pd-is-cloudy .pd-hero-clouds {
	display: block;
}

@keyframes pdClouds {
	0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
	100% { transform: scale(1.5) translate(10%, 5%); opacity: 0.6; }
}

/* --- WEATHER APP FIDELITY ANIMATIONS --- */

/* Lightning Flash */
.pd-hero-lightning {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: #fff;
	opacity: 0;
	z-index: 5;
	pointer-events: none;
	display: none;
}
.pd-is-stormy .pd-hero-lightning {
	display: block;
	animation: pdLightning 8s linear infinite;
}
@keyframes pdLightning {
	0%, 94%, 100% { opacity: 0; }
	95% { opacity: 0.8; }
	96% { opacity: 0; }
	97% { opacity: 0.8; }
}

/* Starry Night */
.pd-hero-stars {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background-image: radial-gradient(1px 1px at 20px 30px, #eee, rgba(0,0,0,0)),
	                  radial-gradient(1px 1px at 40px 70px, #fff, rgba(0,0,0,0)),
	                  radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
	                  radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0));
	background-size: 200px 200px;
	opacity: 0;
	z-index: 2;
	pointer-events: none;
	transition: opacity 2s ease;
}
.pd-is-night .pd-hero-stars {
	opacity: 0.4;
	animation: pdTwinkle 4s ease-in-out infinite alternate;
}
@keyframes pdTwinkle {
	0% { opacity: 0.2; }
	100% { opacity: 0.5; }
}

/* Sun Glare */
.pd-hero-sun {
	position: absolute;
	top: -100px; right: -100px;
	width: 400px; height: 400px;
	background: radial-gradient(circle, rgba(255,255,220,0.4) 0%, transparent 70%);
	z-index: 2;
	pointer-events: none;
	display: none;
	mix-blend-mode: screen;
}
.pd-is-sunny .pd-hero-sun {
	display: block;
	animation: pdSunPulse 6s ease-in-out infinite alternate;
}
@keyframes pdSunPulse {
	0% { transform: scale(1); opacity: 0.5; }
	100% { transform: scale(1.2); opacity: 0.8; }
}

/* Volumetric Fog */
.pd-is-foggy .pd-hero-clouds {
	display: block;
	background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2) 50%, transparent);
	filter: blur(20px);
	animation: pdFog 15s linear infinite;
}
@keyframes pdFog {
	0% { transform: translateX(-20%); }
	100% { transform: translateX(20%); }
}

/* Storm Rain (Heavier) */
.pd-is-stormy .pd-hero-rain {
	display: block;
	opacity: 0.6;
	background-size: 4px 40px;
	animation: pdRain 0.1s linear infinite;
}


/* --- PROFESSIONAL WEATHER PARTICLE SYSTEM --- */

/* Unified Precipitation Layer */
.pd-hero-rain {
	display: none;
	position: absolute;
	top: -500px; left: -100px; 
	width: 150%; height: 300%;
	z-index: 3;
	pointer-events: none;
	transform: rotate(15deg); /* Wind slanting */
}

/* Layered Drops for Depth */
.pd-hero-rain::before, .pd-hero-rain::after {
	content: '';
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
}

/* Foreground Heavy Rain */
.pd-is-raining .pd-hero-rain, .pd-is-stormy .pd-hero-rain {
	display: block;
	background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIxMjgiIHZpZXdCb3g9IjAgMCAzMiAxMjgiPjxsaW5lIHgxPSIxNiIgeTE9IjAiIHgyPSIxNiIgeTI9IjEyOCIgc3Ryb2tlPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMykiIHN0cm9rZS13aWR0aD0iMSIgc3Ryb2tlLWRhc2hhcnJheT0iOCwxMjAiLz48L3N2Zz4=');
	background-size: 32px 128px;
	animation: pdRainDrop 0.8s linear infinite;
}

/* Midground Drops */
.pd-hero-rain::before {
	background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDE2IDY0Ij48bGluZSB4MT0iOCIgeTE9IjAiIHgyPSI4IiB5Mj0iNjQiIHN0cm9rZT0icmdiYSgyNTUsMjU1LDI1NSwwLjE1KSIgc3Ryb2tlLXdpZHRoPSIwLjUiIHN0cm9rZS1kYXNoYXJyYXk9IjQsNjAiLz48L3N2Zz4=');
	background-size: 16px 64px;
	animation: pdRainDrop 1.2s linear infinite;
}

/* Background Mist Drops */
.pd-hero-rain::after {
	background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI4IiBoZWlnaHQ9IjMyIiB2aWV3Qm94PSIwIDAgOCAzMiI+PGxpbmUgeDE9IjQiIHkxPSIwIiB4Mj0iNCIgeTI9IjMyIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4wOCkiIHN0cm9rZS13aWR0aD0iMC4yNSIgc3Ryb2tlLWRhc2hhcnJheT0iMiwzMCIvPjwvc3ZnPg==');
	background-size: 8px 32px;
	animation: pdRainDrop 2s linear infinite;
}

@keyframes pdRainDrop {
	0% { transform: translateY(0); }
	100% { transform: translateY(128px); }
}

/* Storm Intensity */
.pd-is-stormy .pd-hero-rain {
	opacity: 1;
	animation-duration: 0.5s;
}
.pd-is-stormy .pd-hero-atmosphere {
	background: rgba(10, 10, 20, 0.7); /* Much darker for storms */
}

/* Improved Snow (Floating/Drifting) */
.pd-hero-snow {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 3;
	pointer-events: none;
	display: none;
	background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48Y2lyY2xlIGN4PSIzMiIgY3k9IjMyIiByPSIxIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuNikiLz48L3N2Zz4=');
	background-size: 120px 120px;
}
.pd-is-snowy .pd-hero-snow {
	display: block;
	animation: pdSnowDrift 10s linear infinite;
}
@keyframes pdSnowDrift {
	0% { background-position: 0 0; }
	100% { background-position: 120px 240px; }
}


/* --- UX PROTECTION & PREMIUM READABILITY --- */

.pd-hero-content {
	position: relative;
	z-index: 20; /* Keep text above all weather layers */
	max-width: 800px;
	margin: 0 auto;
}

.pd-hero-headline {
	text-shadow: 0 4px 20px rgba(0,0,0,0.6); /* Ensure readability in all weather */
	line-height: 1.1;
}

.pd-hero-badge {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(12px); /* Glassmorphism for readability */
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pd-hero-cta {
	box-shadow: 0 10px 30px rgba(0,0,0,0.3);
	position: relative;
	z-index: 21;
}

/* --- CINEMATIC ORGANIC RAIN --- */

.pd-hero-rain {
	/* Override the generic line with a multi-shape organic splash */
	background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIxMjgiIHZpZXdCb3g9IjAgMCAzMiAxMjgiPjxjaXJjbGUgY3g9IjE2IiBjeT0iMjAiIHI9IjEuNSIgZmlsbD0icmdiYSgyNTUsMjU1LDI1NSwwLjIpIi8+PGxpbmUgeDE9IjE2IiB5MT0iMzAiIHgyPSIxNiIgeTI9IjcwIiBzdHJva2U9InJnYmEoMjU1LDI1NSwyNTUsMC4zKSIgc3Ryb2tlLXdpZHRoPSIxIi8+PGNpcmNsZSBjeD0iOCIgY3k9IjkwIiByPSIxIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMSkiLz48L3N2Zz4=');
	background-size: 64px 256px;
	filter: blur(0.5px); /* Softens the "digital" look */
}

/* "Droplets on Lens" Effect (Slow/Large) */
.pd-hero-rain::before {
	background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIgdmlld0JveD0iMCAwIDY0IDY0Ij48Y2lyY2xlIGN4PSIzMiIgY3k9IjMyIiByPSIzIiBmaWxsPSJyZ2JhKDI1NSwyNTUsMjU1LDAuMDUpIiBmaWx0ZXI9ImJsdXIoMXB4KSIvPjwvc3ZnPg==');
	background-size: 256px 256px;
	animation: pdRainDrop 4s linear infinite;
}


/* --- ULTIMATE VOLUMETRIC RAIN SYSTEM --- */

.pd-hero-rain {
	background: none; /* Clear previous generic styles */
}

.pd-hero-rain::before, .pd-hero-rain::after {
	content: '';
	position: absolute;
	top: -100%; left: -50%;
	width: 200%; height: 400%;
	pointer-events: none;
	background-repeat: repeat;
	transform: rotate(18deg); /* Organic slant */
}

/* Layer 1: The "Needles" (Fast, Sharp) */
.pd-is-raining .pd-hero-rain::before, .pd-is-stormy .pd-hero-rain::before {
	background-image: repeating-linear-gradient(0deg, 
		rgba(255, 255, 255, 0) 0%, 
		rgba(255, 255, 255, 0) 90%, 
		rgba(255, 255, 255, 0.4) 95%, 
		rgba(255, 255, 255, 0) 100%);
	background-size: 1px 160px;
	animation: pdNeedleRain 0.6s linear infinite;
	filter: drop-shadow(0 0 1px rgba(255,255,255,0.2));
}

/* Layer 2: The "Mist" (Slow, Volumetric) */
.pd-is-raining .pd-hero-rain::after, .pd-is-stormy .pd-hero-rain::after {
	background-image: repeating-linear-gradient(0deg, 
		rgba(255, 255, 255, 0) 0%, 
		rgba(255, 255, 255, 0.05) 50%, 
		rgba(255, 255, 255, 0) 100%);
	background-size: 2px 300px;
	animation: pdNeedleRain 2s linear infinite;
	opacity: 0.5;
}

@keyframes pdNeedleRain {
	from { transform: rotate(18deg) translateY(-160px); }
	to { transform: rotate(18deg) translateY(160px); }
}

/* The "Splatter" Effect (Visual feedback on glass) */
.pd-is-stormy .pd-hero-atmosphere::after {
	content: '';
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background-image: radial-gradient(circle at 10% 10%, rgba(255,255,255,0.1) 1px, transparent 1px),
	                  radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 1px, transparent 1px),
	                  radial-gradient(circle at 70% 20%, rgba(255,255,255,0.1) 1px, transparent 1px);
	background-size: 100px 100px;
	animation: pdSplatter 0.2s linear infinite;
	opacity: 0.3;
}

@keyframes pdSplatter {
	0% { opacity: 0.1; transform: scale(1); }
	50% { opacity: 0.3; transform: scale(1.1); }
	100% { opacity: 0.1; transform: scale(1); }
}


/* --- REFRACTION CANVAS --- */
.pd-hero-canvas {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 4;
	pointer-events: none;
	opacity: 0.8;
}

.pd-is-stormy .pd-hero-canvas {
	opacity: 1;
}

/* --- WITCH CITY RAIN GLASS OVERLAY --- */
.pd-hero-glass {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 7;
	pointer-events: none;
	opacity: 0;
	transition: opacity 2s ease;
	background:
		repeating-linear-gradient(170deg,
			transparent 0%,
			rgba(255, 255, 255, 0.008) 1px,
			transparent 2px,
			transparent 14px),
		repeating-linear-gradient(168deg,
			transparent 0%,
			rgba(255, 255, 255, 0.005) 1px,
			transparent 2px,
			transparent 20px);
	animation: pd-rain-drip 3s linear infinite;
}

.pd-is-raining .pd-hero-glass,
.pd-is-stormy .pd-hero-glass {
	opacity: 0.7;
}

@keyframes pd-rain-drip {
	from { background-position: 0 0, 0 0; }
	to { background-position: -20px 200px, 10px 300px; }
}

/* Cleanup old generic layers */
.pd-hero-rain, .pd-hero-snow {
	display: none !important;
}
