/*
 * The guest "Create a free account" popup (change list items 7 and 18): one
 * dismissible, non-blocking card one minute into every visit. The 20-minute
 * account wall that used to share this file is gone (item 18: no mandatory
 * wall). Loaded on feed pages only. Static: nothing here varies by viewer.
 * #2E9E3D is the site green (common.css; no orange, owner Oct 1).
 */

/* --------------------------------------------------------------- nudge */

/* A small card above the floating Submit button, never over the feed. */
.ys-browse-nudge {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--ys-fab-size, 56px) + 12px);
	z-index: 950;
	max-width: 420px;
	margin: 0 auto;
	padding: 16px;
	background: #fff;
	color: #1c1c1e;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.ys-browse-nudge__text {
	flex: 1 1 100%;
	margin: 0;
	font-size: 15px;
	line-height: 1.4;
}

.ys-browse-nudge__signup {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
	background: #2E9E3D;
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.ys-browse-nudge__dismiss {
	padding: 10px 12px;
	border: 0;
	background: transparent;
	color: #1c1c1e;
	font-weight: 600;
	cursor: pointer;
}

.ys-browse-nudge__signup:focus-visible,
.ys-browse-nudge__dismiss:focus-visible {
	outline: 2px solid #1c1c1e;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
	.ys-browse-nudge {
		animation: ys-browse-in .2s ease-out;
	}

	@keyframes ys-browse-in {
		from { opacity: 0; transform: translateY(8px); }
		to   { opacity: 1; transform: none; }
	}
}
