/* SafeSky Fireworks: front-end overlay.
   The canvas and dim layer ignore the pointer, so links and forms keep working. */

.ssfw-root {
	position: fixed;
	inset: 0;
	z-index: 99990;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
}

.ssfw-root.is-visible {
	opacity: 1;
}

.ssfw-root.is-ending {
	opacity: 0;
}

.ssfw-dim {
	position: absolute;
	inset: 0;
	background: rgba(6, 9, 26, var(--ssfw-dim, 0.25));
	pointer-events: none;
}

.ssfw-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	pointer-events: none;
}

.ssfw-controls {
	position: absolute;
	left: max(16px, env(safe-area-inset-left));
	bottom: max(16px, env(safe-area-inset-bottom));
	display: flex;
	gap: 8px;
	pointer-events: auto;
}

/* Explicit styles so theme button rules don't leak in. */
.ssfw-root .ssfw-btn {
	all: unset;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border-radius: 999px;
	background: rgba(12, 16, 38, 0.88);
	color: #ffffff;
	font: 500 14px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
	cursor: pointer;
}

.ssfw-root .ssfw-btn:hover {
	background: rgba(28, 34, 72, 0.95);
}

.ssfw-root .ssfw-btn:focus-visible {
	outline: 3px solid #ffcf70;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.ssfw-root {
		transition: none;
	}
}

@media print {
	.ssfw-root {
		display: none !important;
	}
}
