/**
 * MTGBrew Share — the "Pin it" control.
 *
 * Placement contract: the control is ALWAYS in normal document flow
 * (never position: fixed/absolute), so by construction it cannot
 * overlap the fixed bottom app-navigation bar or the floating
 * bottom-left GTranslate language box. It renders at the top of the
 * content column, directly under the page title.
 *
 * Palette (arcane): ink #111016, gold #D6AB62, violet #913DF4.
 */

.mtgbrew-share {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 18px;
}

.mtgbrew-share__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 18px 9px 14px;
	background: #111016;
	border: 1px solid #d6ab62;
	border-radius: 999px;
	color: #d6ab62;
	font: 600 15px/1.2 Inter, "Segoe UI", system-ui, sans-serif;
	letter-spacing: 0.02em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.mtgbrew-share__btn:hover,
.mtgbrew-share__btn:focus-visible {
	background: #913df4;
	border-color: #913df4;
	color: #fff;
	box-shadow: 0 4px 18px rgba(145, 61, 244, 0.35);
	text-decoration: none;
}

.mtgbrew-share__btn:focus-visible {
	outline: 2px solid #d6ab62;
	outline-offset: 2px;
}

.mtgbrew-share__icon {
	flex: none;
	display: block;
}

.mtgbrew-share__hint {
	color: #8f8a7c;
	font: 400 13px/1.3 Inter, "Segoe UI", system-ui, sans-serif;
}

/* Front-page fallback: centered in-flow bar at the end of the page. */
.mtgbrew-share--front {
	justify-content: center;
	margin: 24px auto 8px;
	padding: 0 16px;
}

/* Inside the game setup (lobby) screen, via the template tag: sits in
 * the setup header row, right-aligned, sized for the dark panel. */
.mtg-setup-head .mtgbrew-share {
	margin: 0;
	justify-content: flex-end;
}

.mtg-setup-head .mtgbrew-share__hint {
	display: none;
}

/* Small screens: keep the control on one line, drop the hint text. */
@media (max-width: 560px) {
	.mtgbrew-share {
		gap: 8px;
		margin-bottom: 14px;
	}

	.mtgbrew-share__hint {
		display: none;
	}

	.mtgbrew-share__btn {
		padding: 8px 16px 8px 12px;
		font-size: 14px;
	}
}

@media print {
	.mtgbrew-share {
		display: none;
	}
}
