/*
 * Install hint for the web app (assets/js/pwa.js).
 * Frosted card that springs up above the music strip; tokens only.
 */

.tpb-install {
	position: fixed;
	left: 50%;
	bottom: calc(env(safe-area-inset-bottom, 0px) + var(--tpb-footer-h, 0px) + 76px);
	z-index: var(--tpb-z-toast);
	display: flex;
	align-items: center;
	gap: var(--tpb-space-3);
	width: min(calc(100vw - 2 * var(--tpb-gutter)), 420px);
	padding: 12px 12px 12px 12px;
	border-radius: 20px;
	background: var(--tpb-glass);
	box-shadow: inset 0 0 0 1px var(--tpb-hairline), var(--tpb-shadow-lift);
	color: var(--tpb-text);
	-webkit-backdrop-filter: var(--tpb-blur);
	backdrop-filter: var(--tpb-blur);
	opacity: 0;
	transform: translate3d(-50%, 24px, 0) scale(0.96);
	transition:
		opacity var(--tpb-dur) var(--tpb-ease-out),
		transform var(--tpb-dur-slow) var(--tpb-ease-spring);
}

.tpb-install.is-in {
	opacity: 1;
	transform: translate3d(-50%, 0, 0) scale(1);
}

.tpb-install__icon {
	flex: 0 0 44px;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	box-shadow: 0 0 0 1px var(--tpb-hairline);
	object-fit: cover;
}

.tpb-install__text {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	font-size: var(--tpb-fs-meta);
	line-height: 1.35;
}

.tpb-install__text strong {
	font-size: 0.9375rem;
	font-weight: 650;
	letter-spacing: -0.01em;
}

.tpb-install__text span {
	color: var(--tpb-muted);
}

.tpb-install__share {
	display: inline-block;
	margin: 0 1px -2px;
	color: var(--tpb-accent);
	vertical-align: baseline;
}

.tpb-install__cta {
	flex: 0 0 auto;
	height: 34px;
	padding: 0 16px;
	border: 0;
	border-radius: var(--tpb-radius-pill);
	background: var(--tpb-accent);
	color: var(--tpb-accent-contrast);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform var(--tpb-dur-fast) var(--tpb-ease-out);
}

.tpb-install__cta:active {
	transform: scale(0.96);
}

.tpb-install__close {
	display: grid;
	flex: 0 0 28px;
	place-items: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tpb-tag-bg);
	color: var(--tpb-muted);
	cursor: pointer;
}

.tpb-install__close:hover {
	color: var(--tpb-text);
}

@media (min-width: 768px) {
	.tpb-install {
		bottom: calc(var(--tpb-footer-h, 0px) + 92px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.tpb-install,
	.tpb-install.is-in {
		transform: translate3d(-50%, 0, 0);
	}
}

/* "Install app" row in the menu panel (Preferences). Shown by pwa.js. */
.tpb-install-row[hidden] {
	display: none;
}

.tpb-install-row__chevron {
	display: grid;
	place-items: center;
	color: var(--tpb-muted);
}
