/* SSB lobby SHARE GAME button (Nov 19 2026, Shane): large, bold, pulsing, last button,
   centered. Desktop: own row under PLAY / HOW TO PLAY / INSTALL. Phones: last in the
   bottom stack, under INSTALLED. Hidden on CrazyGames. */
@keyframes ssbSharePulse {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(57,255,140,.55), 0 4px 14px rgba(0,0,0,.55); }
	50% { transform: scale(1.045); box-shadow: 0 0 0 10px rgba(57,255,140,0), 0 0 26px rgba(57,255,140,.65); }
}
@keyframes ssbSharePulseSoft {
	0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(57,255,140,.5); }
	50% { transform: scale(1.025); box-shadow: 0 0 0 6px rgba(57,255,140,0), 0 0 16px rgba(57,255,140,.5); }
}
html body #game-ui .ssb-share-game-btn {
	display: flex !important;
	box-sizing: border-box;
	align-items: center; justify-content: center; gap: 10px;
	pointer-events: auto;
	cursor: pointer;
	margin: 6px auto 0 !important;
	padding: 0 18px !important;
	border: 3px solid #fff !important;
	border-radius: 14px !important;
	background: linear-gradient(180deg, #5dffb0 0%, #19d47a 45%, #0e9c58 100%) !important;
	color: #06210f !important;
	font-family: 'Bangers', 'Bebas Neue', 'Rajdhani', sans-serif !important;
	font-size: clamp(1.35rem, 1.6vw, 2.1rem) !important;
	font-weight: 900 !important;
	font-style: italic;
	letter-spacing: 2px !important;
	text-transform: uppercase;
	white-space: nowrap;
	overflow: visible !important;
	animation: ssbSharePulse 1.6s ease-in-out infinite;
}
html body #game-ui #ssbShareGameBtn {
	width: clamp(300px, 20vw, 460px) !important;
	max-width: 80vw !important;
	height: clamp(58px, 3.9vw, 84px) !important;
}
html body #game-ui .ssb-share-game-btn:hover { filter: brightness(1.08); }
html body #game-ui .ssb-share-game-btn svg { width: 1em; height: 1em; flex: none; }
/* Phones: same width/height as the stack's other buttons (86vw portrait, narrower in
   landscape via the .hud-btn-wide rules), bold green, gentler pulse. */
html body #game-ui.mobile #ssbMobileBottomStack .bottom-buttons .ssb-share-game-btn {
	margin: 0 auto !important;
	font-size: 22px !important;
	animation: ssbSharePulseSoft 1.8s ease-in-out infinite;
}
/* Sit directly under INSTALLED: SIGN OUT reserves an invisible row when signed out,
   so move it after SHARE; once signed in, SHARE goes back to being the very last. */
html body #game-ui.mobile #ssbMobileBottomStack .bottom-buttons #ssbShareGameBtnMobile { order: 1; }
html body #game-ui.mobile #ssbMobileBottomStack .bottom-buttons #ssbSignOutBtnMobile { order: 2; }
html body #game-ui.mobile.ssb-signed-in #ssbMobileBottomStack .bottom-buttons #ssbShareGameBtnMobile,
html body #game-ui.mobile .center-panel.ssb-chosen ~ #ssbMobileBottomStack .bottom-buttons #ssbShareGameBtnMobile { order: 3; }
/* Desktop: the hidden START button keeps its row while signed out, so SHARE goes before
   it; once a player is chosen (START visible), SHARE is last again. */
html body #game-ui #centerPanel:not(.ssb-chosen) > #ssbShareGameBtn { order: 1; }
html body #game-ui #centerPanel:not(.ssb-chosen) > #startBtn,
html body #game-ui #centerPanel:not(.ssb-chosen) > #signedInRow,
html body #game-ui #centerPanel:not(.ssb-chosen) > .google-signin-btn { order: 2; }
/* Desktop copy never shows on phones; phone copy never shows on desktop. */
html body #game-ui.mobile #ssbShareGameBtn,
html body #game-ui:not(.mobile) #ssbShareGameBtnMobile { display: none !important; }
html body #game-ui.crazygames .ssb-share-game-btn { display: none !important; }
@media (prefers-reduced-motion: reduce) {
	html body #game-ui .ssb-share-game-btn { animation: none !important; }
}
