/* ==========================================================================
   Intro: de arcadehal. Dekt de pagina af tot de geblokte vlag het cv onthult,
   plus de Insert coin-knop waarmee je hem opnieuw start.
   ========================================================================== */

/* Al voor het eerste beeld donker, zodat het cv niet even zichtbaar is. */
html.pm-intro-aan body { overflow: hidden; }
html.pm-intro-aan body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: #07061a;
}

.pm-intro {
	position: fixed;
	inset: 0;
	z-index: 9999;
	overflow: hidden;
	background: #07061a;
}
.pm-intro.is-open { background: transparent; }
.pm-intro__doek {
	display: block;
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
}

.pm-intro__knoppen {
	position: absolute;
	right: 16px;
	bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px;
	transition: opacity .3s;
}
.pm-intro.is-vlag .pm-intro__knoppen { opacity: 0; pointer-events: none; }
.pm-intro__knop {
	padding: 10px 12px;
	border: 2px solid #f6f7f9;
	background: rgba(7, 6, 26, .72);
	box-shadow: 3px 3px 0 #ff2a6d;
	color: #f6f7f9;
	font: 10px/1.2 "Press Start 2P", ui-monospace, monospace;
	text-transform: uppercase;
	cursor: pointer;
}
.pm-intro__knop:hover,
.pm-intro__knop:focus-visible { background: #ff2a6d; outline: none; }
.pm-intro__knop:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #ff2a6d; }
.pm-intro__geluid[aria-pressed="false"] { animation: pm-intro-knipper 1.2s steps(1) 6; }
@keyframes pm-intro-knipper { 50% { border-color: #01cdfe; box-shadow: 3px 3px 0 #01cdfe; } }

/* --- Insert coin ---------------------------------------------------------- */
.pm-muntknop {
	position: relative;
	display: inline-flex;
	align-items: center;
	height: 32px;
	padding: 0 0 0 14px;
	border: 0;
	background: none;
	cursor: pointer;
}
.pm-muntknop__deur {
	position: relative;
	display: grid;
	place-items: center;
	width: 60px;
	height: 28px;
	padding-left: 10px;
	border: 2px solid #5d616c;
	background: #b80d16;
	box-shadow: inset 0 0 0 1px #000, inset 0 0 8px rgba(255, 140, 140, .35);
	color: #ffd23f;
	font: 6px/1.5 "Press Start 2P", ui-monospace, monospace;
	text-align: center;
	text-shadow: 1px 1px 0 #5a0006;
}
.pm-muntknop__gleuf {
	position: absolute;
	left: 4px;
	top: 5px;
	bottom: 5px;
	width: 3px;
	background: #050507;
	box-shadow: 0 0 0 1px #c3c8d2;
}
/* De baan eindigt bij de gleuf: wat erin glijdt, verdwijnt. */
.pm-muntknop__baan {
	position: absolute;
	left: 0;
	top: 50%;
	width: 21px;
	height: 18px;
	margin-top: -9px;
	overflow: hidden;
}
.pm-muntknop__munt {
	position: absolute;
	left: 0;
	top: 1px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffe28a, #e0a526 55%, #9a6a12);
	box-shadow: inset 0 0 0 1px #8a5a0a;
	color: #7a4a0a;
	font: 5px/16px "Press Start 2P", ui-monospace, monospace;
	text-align: center;
	transform: translateX(-4px);
	transition: transform .2s;
}
.pm-muntknop:hover .pm-muntknop__munt,
.pm-muntknop:focus-visible .pm-muntknop__munt { transform: translateX(0); }
.pm-muntknop.is-in .pm-muntknop__munt { transform: translateX(24px); transition: transform .45s cubic-bezier(.55, 0, .8, .2); }
.pm-muntknop.is-in .pm-muntknop__deur { animation: pm-muntknop-flits .15s .45s steps(1) 3; }
@keyframes pm-muntknop-flits { 50% { background: #ff5a4a; color: #fff; } }

/* Smal scherm: alleen de gleuf met het muntje, zodat de naam in de kopbalk past. */
@media (max-width: 520px) {
	.pm-balk__binnen { gap: 8px; }
	.pm-balk__knoppen { gap: 0; }
	.pm-muntknop { padding-left: 12px; }
	.pm-muntknop__baan { width: 19px; }
	.pm-muntknop__deur { width: 22px; padding-left: 0; font-size: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.pm-muntknop__munt { transition: none; }
}
@media print {
	.pm-intro, .pm-muntknop { display: none !important; }
	html.pm-intro-aan body { overflow: visible; }
	html.pm-intro-aan body::before { display: none; }
}
