/**
 * The Hobby Card Shop — PWA install popup.
 *
 * A centred, alert-style modal shown to visitors who have not installed
 * the site as an app. Mobile-first; uses the brand palette tokens with
 * hard-coded fallbacks so it renders correctly even before base.css
 * variables resolve.
 */

.scs-pwa {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.scs-pwa[hidden] {
	display: none;
}

.scs-pwa.is-visible {
	opacity: 1;
}

.scs-pwa__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.74);
}

.scs-pwa__card {
	position: relative;
	width: 100%;
	max-width: 380px;
	background: var(--scs-color-surface, #14100a);
	border: 1px solid var(--scs-color-gold-hairline, rgba(212, 175, 55, 0.28));
	border-radius: 16px;
	padding: 26px 22px 20px;
	text-align: center;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
	transform: translateY(14px) scale(0.98);
	transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.scs-pwa.is-visible .scs-pwa__card {
	transform: translateY(0) scale(1);
}

.scs-pwa__logo {
	width: 56px;
	height: 56px;
	border-radius: 12px;
	object-fit: contain;
	background: var(--scs-color-bg-deep, #0b0704);
	border: 1px solid var(--scs-color-gold-hairline, rgba(212, 175, 55, 0.28));
	padding: 6px;
}

.scs-pwa__title {
	margin: 12px 0 6px;
	font-family: var(--scs-font-display, "Cinzel", serif);
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--scs-color-gold-bright, #f0ce6a);
}

.scs-pwa__text {
	margin: 0 0 16px;
	font-family: var(--scs-font-sans, "Inter", sans-serif);
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--scs-color-text-muted, #b9a888);
}

.scs-pwa__steps {
	margin: 0 0 16px;
	padding-left: 1.3em;
	text-align: left;
	font-family: var(--scs-font-sans, "Inter", sans-serif);
	font-size: 0.85rem;
	line-height: 1.65;
	color: var(--scs-color-text, #faf4e6);
}

.scs-pwa__steps[hidden] {
	display: none;
}

.scs-pwa__actions {
	display: flex;
	gap: 10px;
}

.scs-pwa__btn {
	flex: 1 1 0;
	min-width: 0;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--scs-font-sans, "Inter", sans-serif);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
}

.scs-pwa__btn[hidden] {
	display: none;
}

.scs-pwa__btn--ghost {
	background: transparent;
	border-color: var(--scs-color-gold-hairline, rgba(212, 175, 55, 0.32));
	color: var(--scs-color-text-muted, #b9a888);
}

.scs-pwa__btn--ghost:hover,
.scs-pwa__btn--ghost:focus-visible {
	color: var(--scs-color-text, #faf4e6);
	border-color: var(--scs-color-gold, #d4af37);
	outline: none;
}

.scs-pwa__btn--install {
	background: linear-gradient(135deg, var(--scs-color-gold, #d4af37), var(--scs-color-gold-bright, #f0ce6a));
	color: #1a1206;
}

.scs-pwa__btn--install:hover,
.scs-pwa__btn--install:focus-visible {
	filter: brightness(1.08);
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.scs-pwa,
	.scs-pwa__card {
		transition: none;
	}
}
