/* FOG - Funny office games: the landing page of the party games, builds on party.css */

.party-root.fog-root {
	background-color: #dee2e6;
	background-image:
		radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .7) 0 14%, transparent 15%),
		radial-gradient(circle at 85% 70%, rgba(255, 255, 255, .55) 0 18%, transparent 19%),
		radial-gradient(rgba(73, 80, 87, .25) 2px, transparent 2.5px);
	background-size: 100% 100%, 100% 100%, 18px 18px;
}

/* ------------------------------------------------------------ header */

.fog-logo {
	display: flex;
	align-items: center;
	gap: 12px;
	transform: rotate(-2deg);
}

.fog-mug {
	width: 90px;
	height: 99px;
	flex: none;
	filter: drop-shadow(4px 4px 0 var(--ink));
	animation: party-wobble 3s ease-in-out infinite;
}

.fog-steam { animation: fog-steam 2.4s ease-in-out infinite; }
.fog-steam:nth-child(2) { animation-delay: .4s; }
.fog-steam:nth-child(3) { animation-delay: .8s; }

.fog-logo-text {
	display: flex;
	flex-direction: column;
	line-height: .9;
}

.fog-logo-word {
	font-family: 'Bangers', 'Impact', sans-serif;
	font-size: 92px;
	letter-spacing: 6px;
	color: #fff;
	-webkit-text-stroke: 3px var(--ink);
	paint-order: stroke fill;
	text-shadow: 6px 6px 0 var(--ink);
	background: linear-gradient(90deg, var(--pink), var(--orange), var(--yellow), var(--green), var(--cyan), var(--purple));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.fog-logo-sub {
	font-family: 'Bangers', sans-serif;
	font-size: 30px;
	letter-spacing: 2px;
	color: #fff;
	-webkit-text-stroke: 1.5px var(--ink);
	paint-order: stroke fill;
	text-shadow: 3px 3px 0 var(--ink);
	margin-left: 4px;
}

/* ------------------------------------------------------------ games */

.fog-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	padding: 10px 24px 40px;
}

.fog-intro {
	max-width: 760px;
	text-align: center;
	font-size: 20px !important;
	font-weight: 600;
	background: var(--paper);
	border: 4px solid var(--ink);
	border-radius: 18px;
	box-shadow: var(--shadow);
	padding: 12px 22px !important;
	transform: rotate(.6deg);
}

.fog-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	gap: 28px;
	width: min(100%, 1180px);
}

.fog-card {
	--bg: #ffd43b;
	--dots: rgba(255, 146, 43, .35);

	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 20px 20px;
	color: var(--ink);
	text-decoration: none;
	background-color: var(--bg);
	background-image:
		radial-gradient(circle at 80% 15%, rgba(255, 255, 255, .45) 0 22%, transparent 23%),
		radial-gradient(var(--dots) 2px, transparent 2.5px);
	background-size: 100% 100%, 16px 16px;
	border: 5px solid var(--ink);
	border-radius: 26px;
	box-shadow: 8px 8px 0 var(--ink);
	transition: transform .15s, box-shadow .15s;
	animation: party-pop-in .45s cubic-bezier(.3, 1.6, .5, 1) backwards;
}

.fog-card:nth-child(odd) { transform: rotate(-1deg); }
.fog-card:nth-child(even) { transform: rotate(1deg); }
.fog-card:hover { transform: translate(-4px, -4px) rotate(0) scale(1.02); box-shadow: 14px 14px 0 var(--ink); color: var(--ink); }
.fog-card:active { transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--ink); }

.fog-kyp { --bg: #ffd43b; --dots: rgba(255, 146, 43, .35); }
.fog-sus { --bg: #b197fc; --dots: rgba(95, 61, 196, .35); }
.fog-wdt { --bg: #63e6be; --dots: rgba(12, 166, 120, .35); }
.fog-trs { --bg: #ffa94d; --dots: rgba(232, 89, 12, .35); }
.fog-pap { --bg: #74c0fc; --dots: rgba(25, 113, 194, .35); }

.fog-card-logo {
	min-height: 96px;
	display: flex;
	align-items: center;
	zoom: .72;
}

.fog-card-text {
	flex: 1;
	font-size: 17px !important;
	font-weight: 600;
	line-height: 1.35 !important;
	background: rgba(255, 255, 255, .85);
	border: 3px solid var(--ink);
	border-radius: 14px;
	padding: 10px 14px !important;
}

.fog-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fog-tag {
	font-size: 14px;
	font-weight: 700;
	background: #fff;
	border: 2px solid var(--ink);
	border-radius: 999px;
	padding: 1px 10px;
}

.fog-open { background: #d3f9d8; animation: party-pulse 2s ease-in-out infinite; }

.fog-play {
	align-self: flex-end;
	font-family: 'Bangers', sans-serif;
	font-weight: normal;
	font-size: 24px;
	letter-spacing: 1px;
	padding: 6px 24px;
}

.fog-card:hover .fog-play { transform: rotate(-4deg) scale(1.08); }

.fog-footer {
	font-weight: 600;
	opacity: .75;
	text-align: center;
}

/* ------------------------------------------------------------ animations */

@keyframes fog-steam {
	0%, 100% { opacity: .9; translate: 0 0; }
	50% { opacity: .35; translate: 2px -4px; }
}

/* ------------------------------------------------------------ small screens */

@media (max-width: 900px) {
	.fog-logo-word { font-size: 60px; letter-spacing: 3px; }
	.fog-logo-sub { font-size: 20px; }
	.fog-mug { width: 62px; height: 68px; }
	.fog-grid { grid-template-columns: 1fr; }
	.fog-main { padding: 8px 16px 30px; }
}
