/* PWA install badge + app startup */
.hero-product__badge {
	gap: 8px;
	flex-wrap: wrap;
}

.hero-install-btn {
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 28px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	font-size: 11px;
	font-weight: 900;
	line-height: 1;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition:
		background 0.2s ease,
		transform 0.2s ease;
}

.hero-install-btn:hover {
	background: rgba(255, 255, 255, 0.24);
	transform: translateY(-1px);
}

.hero-install-btn[hidden] {
	display: none !important;
}

/* Only the standalone welcome screen; the website/header styles are untouched. */
#tfpAppStartup {
	--tfp-startup-css: ready-v4;
	position: fixed;
	inset: 0;
	z-index: 2147483647;
	isolation: isolate;
	display: grid;
	grid-template-rows: auto 1fr auto;
	justify-items: center;
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	height: 100dvh;
	margin: 0;
	padding: max(32px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
	overflow: hidden;
	color: #f7fbff;
	background: #061725;
	font: 400 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	-webkit-font-smoothing: antialiased;
	opacity: 1;
	transition: opacity 180ms ease-out;
}
#tfpAppStartup[hidden] { display: none !important; }
#tfpAppStartup.is-leaving { opacity: 0; }
html.tfp-app-starting { overflow: hidden; overscroll-behavior: none; }
#tfpAppStartup::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	background: radial-gradient(ellipse at 50% 42%, #0b405066, transparent 56%);
}
#tfpAppStartup::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 38%;
	z-index: -1;
	pointer-events: none;
	background: linear-gradient(180deg, #061725 0%, #06172580 48%, #061725b3 100%), url('/frontend/img/hero-premium/night-court.webp') center 65% / cover no-repeat;
	opacity: .65;
}
#tfpAppStartup .tfp-startup__brand { display: flex; align-items: center; justify-content: center; gap: 9px; }
#tfpAppStartup .tfp-startup__mark { display: block; width: 42px; height: 27px; flex: none; }
#tfpAppStartup .tfp-startup__name { color: #f7fbff; font-size: 17px; line-height: 1.3; font-weight: 650; letter-spacing: -.035em; }
#tfpAppStartup .tfp-startup__content { align-self: center; width: 100%; max-width: 780px; box-sizing: border-box; margin: 0; padding: 16px 0 38px; }
#tfpAppStartup .tfp-startup__court { position: relative; width: 180px; height: 155px; margin: 0 auto 25px; }
#tfpAppStartup .tfp-startup__bounce { position: absolute; bottom: 15px; left: calc(50% - 42px); width: 84px; height: 84px; animation: tfp-welcome-bounce 1s infinite; }
#tfpAppStartup .tfp-startup__ball { display: block; width: 100%; height: 100%; overflow: visible; transform-origin: 50% 100%; animation: tfp-welcome-squash 1s infinite; filter: drop-shadow(0 0 18px #c2ed391a); }
#tfpAppStartup .tfp-startup__shadow { position: absolute; bottom: 10px; left: calc(50% - 35px); width: 70px; height: 9px; border-radius: 50%; background: #020c12; box-shadow: 0 0 18px 4px #020c1255; animation: tfp-welcome-shadow 1s infinite; }
#tfpAppStartup .tfp-startup__title { margin: 0; color: #f7fbff; font-size: clamp(28px, 8vw, 50px); font-weight: 700; line-height: 1.2; letter-spacing: -.045em; text-wrap: balance; }
#tfpAppStartup .tfp-startup__title span { display: block; color: #99d8ed; margin-top: 5px; }
#tfpAppStartup .tfp-startup__features { margin: 20px 0 0; color: #b4cad8; font-size: clamp(12px, 3.6vw, 17px); font-weight: 400; line-height: 1.5; }
#tfpAppStartup .tfp-startup__status { margin: 36px 0 0; color: #9db4c5; font-size: 12px; font-weight: 400; line-height: 1.5; }
#tfpAppStartup .tfp-startup__status::before { content: ""; display: block; width: 24px; height: 2px; margin: 0 auto 17px; background: #71c6d6; border-radius: 2px; }
#tfpAppStartup .tfp-startup__site { color: #9eb4c4; font-size: 11px; line-height: 1.4; letter-spacing: .055em; }
@keyframes tfp-welcome-bounce {
	0%, 100% { transform: translateY(-48px); animation-timing-function: cubic-bezier(.55,.06,.85,.45); }
	50% { transform: translateY(0); animation-timing-function: cubic-bezier(.15,.55,.45,.94); }
}
@keyframes tfp-welcome-squash {
	0%, 38%, 66%, 100% { transform: scale(1); }
	49% { transform: scale(1.12,.88); }
	55% { transform: scale(.97,1.03); }
}
@keyframes tfp-welcome-shadow {
	0%, 100% { transform: scale(.65); opacity: .32; }
	50% { transform: scale(1.06); opacity: .75; }
}
@media (min-width: 768px) {
	#tfpAppStartup { padding-top: max(42px, env(safe-area-inset-top)); }
	#tfpAppStartup .tfp-startup__brand { gap: 11px; }
	#tfpAppStartup .tfp-startup__name { font-size: 19px; }
	#tfpAppStartup .tfp-startup__court { margin-bottom: 35px; }
}
@media (max-height: 620px) {
	#tfpAppStartup { padding-top: max(20px, env(safe-area-inset-top)); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
	#tfpAppStartup .tfp-startup__content { padding: 14px 0; }
	#tfpAppStartup .tfp-startup__court { height: 124px; margin-bottom: 12px; }
	#tfpAppStartup .tfp-startup__bounce { width: 64px; height: 64px; left: calc(50% - 32px); }
	#tfpAppStartup .tfp-startup__title { font-size: clamp(26px, 7vw, 34px); }
	#tfpAppStartup .tfp-startup__features { margin-top: 12px; font-size: 13px; }
	#tfpAppStartup .tfp-startup__status { margin-top: 20px; }
	#tfpAppStartup .tfp-startup__status::before { margin-bottom: 10px; }
}
@media (max-height: 420px) and (min-width: 580px) {
	#tfpAppStartup .tfp-startup__content { display: grid; grid-template-columns: 150px 1fr; column-gap: 20px; max-width: 680px; padding: 8px 0; text-align: left; }
	#tfpAppStartup .tfp-startup__court { grid-row: 1 / 4; width: 150px; align-self: center; margin: 0; }
	#tfpAppStartup .tfp-startup__title { font-size: 30px; }
	#tfpAppStartup .tfp-startup__status { margin-top: 16px; }
	#tfpAppStartup .tfp-startup__status::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	#tfpAppStartup { transition: none; }
	#tfpAppStartup .tfp-startup__bounce, #tfpAppStartup .tfp-startup__ball, #tfpAppStartup .tfp-startup__shadow { animation: none; }
	#tfpAppStartup .tfp-startup__bounce { transform: translateY(-20px); }
}
