/* Puke Nukem winter theme. Everything here only applies while <html> has the pn-winter class. */

#pn-snow {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;	/* never blocks clicks */
	z-index: 30;		/* above the menu bar (20), below the nav toggle (999) */
}

/* Snow lying on top of the orange menu bar */
html.pn-winter #menu { position: relative; }
html.pn-winter #menu::before {
	content: "";
	position: absolute;
	left: -4px;
	right: -4px;
	top: -9px;
	height: 15px;
	pointer-events: none;
	z-index: 21;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='15' viewBox='0 0 160 15'%3E%3Cpath d='M0 9 C8 3 16 2 24 6 C30 1 42 0 50 5 C58 2 66 4 72 7 C80 1 94 0 102 5 C110 2 118 3 126 6 C134 1 146 1 160 9 L160 15 L0 15 Z' fill='%23ffffff'/%3E%3Cpath d='M0 12 C20 10 40 13 60 11 C80 9 100 13 120 11 C140 10 150 12 160 12 L160 15 L0 15 Z' fill='%23bcd8f5'/%3E%3C/svg%3E") repeat-x;
	filter: drop-shadow(0 1px 1px rgba(20, 40, 70, 0.6));
}
/* Icicles hanging under the menu bar (behind the dropdowns) */
html.pn-winter #menu::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 32px;
	height: 14px;
	pointer-events: none;
	z-index: -1;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='14' viewBox='0 0 120 14'%3E%3Cg fill='%23d6ecff' fill-opacity='0.9' stroke='%2388b4dc' stroke-width='0.6'%3E%3Cpath d='M6 0 L12 0 L9 11 Z'/%3E%3Cpath d='M22 0 L26 0 L24 6 Z'/%3E%3Cpath d='M38 0 L45 0 L41.5 13 Z'/%3E%3Cpath d='M58 0 L62 0 L60 7 Z'/%3E%3Cpath d='M74 0 L80 0 L77 10 Z'/%3E%3Cpath d='M93 0 L97 0 L95 5 Z'/%3E%3Cpath d='M106 0 L112 0 L109 12 Z'/%3E%3C/g%3E%3C/svg%3E") repeat-x;
}

/* The on/off switch, bottom right of every page */
#pn-winter-toggle {
	position: fixed;
	right: 12px;
	bottom: 12px;
	z-index: 998;
	padding: 6px 12px;
	font: bold 12px Tahoma, Geneva, sans-serif;
	color: #fff;
	text-shadow: 1px 1px 2px #000;
	background: hsla(234, 64%, 6%, 0.8);
	border: 1px solid #F60;
	border-radius: 16px;
	cursor: pointer;
	transition: background 0.2s, border-color 0.2s;
}
#pn-winter-toggle:hover { background: #F60; }
html.pn-winter #pn-winter-toggle { border-color: #9fd3ff; }
html.pn-winter #pn-winter-toggle:hover { background: #2a5d8f; }
