/**
 * Bitghost GeoGrid — frontend styles.
 * Impreza (UpSolution) custom properties preferred everywhere; the fallbacks
 * below only apply on non-Impreza themes. --site-border-radius resolves to
 * the live theme radius (22px on Bitghost builds).
 */
:root {
	--bggg-primary: var(--color-content-primary, #0d6efd);
	--bggg-primary-faded: var(--color-content-primary-faded, rgba(13, 110, 253, 0.12));
	--bggg-border: var(--color-content-border, #dee2e6);
	--bggg-bg: var(--color-content-bg, #ffffff);
	--bggg-heading: var(--color-content-heading, #1e293b);
	--bggg-text: var(--color-content-text, #334155);
	--bggg-muted: var(--color-content-secondary, #6c757d);
	--bggg-header-bg: var(--color-header-middle-bg, #0a0a0a);
	--bggg-radius: var(--site-border-radius, 22px);
	--bggg-rank1: #15803d;
	--bggg-green: #22c55e;
	--bggg-yellow: #eab308;
	--bggg-orange: #f97316;
	--bggg-red: #ef4444;
	--bggg-shimmer-a: rgba(255, 255, 255, 0);
	--bggg-shimmer-b: rgba(255, 255, 255, 0.14);
}

/* ── Shimmer (Bitghost signature) ─────────────────────────────────────── */
@keyframes bggg-shimmer {
	0%   { background-position: -600px 0; }
	100% { background-position: 600px 0; }
}
.bggg-shimmer {
	background-image: linear-gradient(90deg, var(--bggg-shimmer-a), var(--bggg-shimmer-b), var(--bggg-shimmer-a));
	background-size: 600px 100%;
	background-repeat: no-repeat;
	animation: bggg-shimmer 2.2s infinite linear;
}
@media (prefers-reduced-motion: reduce) {
	.bggg-shimmer { animation: none; }
}

/* ── Shortcode panel ─────────────────────────────────────────────────── */
.bggg-panel {
	background: var(--bggg-bg);
	border: 1px solid var(--bggg-border);
	border-radius: var(--bggg-radius);
	overflow: hidden;
	color: var(--bggg-text);
	font-size: 15px;
	line-height: 1.5;
	margin: 1.5em 0;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.bggg-panel-head {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 20px;
	background: var(--bggg-header-bg);
	color: #ffffff;
}
.bggg-panel-head h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
}
.bggg-panel-head .bggg-kw {
	font-size: 0.8rem;
	opacity: 0.85;
}
.bggg-panel-body { display: grid; grid-template-columns: 280px 1fr; }
.bggg-panel-side {
	padding: 18px;
	border-right: 1px solid var(--bggg-border);
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.bggg-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bggg-stat-card {
	border: 1px solid var(--bggg-border);
	border-radius: calc(var(--bggg-radius) / 2);
	padding: 12px 8px;
	text-align: center;
	background: var(--bggg-primary-faded);
}
.bggg-stat-card .bggg-value { font-size: 1.5rem; font-weight: 700; color: var(--bggg-heading); font-variant-numeric: tabular-nums; }
.bggg-stat-card .bggg-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bggg-muted); }
.bggg-stat-card.good .bggg-value { color: var(--bggg-green); }
.bggg-stat-card.avg .bggg-value  { color: var(--bggg-yellow); }
.bggg-stat-card.poor .bggg-value { color: var(--bggg-orange); }
.bggg-stat-card.out .bggg-value  { color: var(--bggg-red); }

.bggg-legend { display: flex; flex-direction: column; gap: 6px; font-size: 0.8rem; }
.bggg-legend-item { display: flex; align-items: center; gap: 8px; }
.bggg-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px rgba(0,0,0,0.08); }

.bggg-map { min-height: 380px; }
.bggg-map.bggg-mini { min-height: 220px; }
.bggg-map .leaflet-container { width: 100%; height: 100%; min-height: inherit; }

.bggg-timer-box {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px dashed var(--bggg-border);
	border-radius: calc(var(--bggg-radius) / 2);
	font-size: 0.82rem;
	color: var(--bggg-muted);
}
.bggg-timer-box strong { font-variant-numeric: tabular-nums; color: var(--bggg-heading); }
.bggg-pulse {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--bggg-green);
	animation: bggg-pulse 1.6s infinite ease-in-out;
	flex: none;
}
@keyframes bggg-pulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: 0.35; transform: scale(0.7);} }

/* ── Rank pins (Leaflet divIcon) ─────────────────────────────────────── */
.bggg-pin {
	display: flex; align-items: center; justify-content: center;
	width: 30px; height: 30px; border-radius: 50%;
	color: #fff; font-weight: 700; font-size: 12px;
	font-family: system-ui, sans-serif;
	box-shadow: 0 2px 6px rgba(0,0,0,0.35);
	border: 2px solid rgba(255,255,255,0.9);
	font-variant-numeric: tabular-nums;
}
.bggg-pin.rank1  { background: var(--bggg-rank1); }
.bggg-pin.green  { background: var(--bggg-green); }
.bggg-pin.yellow { background: var(--bggg-yellow); color: #1f2937; }
.bggg-pin.orange { background: var(--bggg-orange); }
.bggg-pin.red    { background: var(--bggg-red); }

/* ══════════════════════════════════════════════════════════════════════
   THE BITGHOST HUD — floating launcher + dark-glass stage modal
   ══════════════════════════════════════════════════════════════════════ */

/* ── CRITICAL: [hidden] must beat ID-specificity display rules ────────
   Without this, `#bggg-modal { display:flex }` (0-1-0-0) overrides the UA
   `[hidden]{display:none}` (0-0-1-0) and the modal paints on page load.
   This is the fix for the "popup open by default" defect. ─────────── */
#bggg-modal[hidden],
#bggg-overlay[hidden],
#bggg-modal [hidden],
.bggg-panel [hidden] { display: none !important; }

/* ── Floating launcher ───────────────────────────────────────────────── */
#bggg-float-btn {
	position: fixed;
	bottom: 24px;
	z-index: 99998;
	width: 58px; height: 58px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 0;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	background: #000000;
	color: #ffffff;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
	transition: transform 0.2s cubic-bezier(.2,.8,.2,1), box-shadow 0.2s ease;
	display: grid;
	place-items: center;
}
#bggg-float-btn.bggg-pos-right { right: 24px; }
#bggg-float-btn.bggg-pos-left  { left: 24px; }
#bggg-float-btn:hover, #bggg-float-btn:focus-visible {
	transform: translateY(-3px) scale(1.06);
	box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}
#bggg-float-btn:active { transform: translateY(-1px) scale(1.01); }
.bggg-fb-icon { grid-area: 1/1; }
.bggg-fb-badge {
	position: absolute; top: -4px; right: -4px;
	min-width: 24px; height: 24px; padding: 0 6px;
	border-radius: 999px;
	background: var(--bggg-green);
	color: #04140a;
	font-size: 11px; font-weight: 800; line-height: 24px;
	text-align: center;
	font-family: system-ui, sans-serif;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
	border: 2px solid #000000;
}
.bggg-fb-badge.rank1  { background: var(--bggg-rank1); color: #ffffff; }
.bggg-fb-badge.yellow { background: var(--bggg-yellow); color: #1f2937; }
.bggg-fb-badge.orange { background: var(--bggg-orange); color: #ffffff; }
.bggg-fb-badge.red    { background: var(--bggg-red); color: #ffffff; }
.bggg-fb-ring {
	position: absolute; inset: -6px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.28);
	animation: bggg-ring 2.8s ease-out infinite;
	pointer-events: none;
}
@keyframes bggg-ring {
	0%   { transform: scale(0.86); opacity: 0.85; }
	70%  { transform: scale(1.22); opacity: 0; }
	100% { transform: scale(1.22); opacity: 0; }
}

/* ── Overlay ─────────────────────────────────────────────────────────── */
#bggg-overlay {
	position: fixed; inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 99998;
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	animation: bggg-fade 0.22s ease;
}
@keyframes bggg-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── The stage modal ─────────────────────────────────────────────────── */
#bggg-modal {
	position: fixed;
	z-index: 99999;
	width: min(520px, calc(100vw - 24px));
	max-height: min(760px, calc(100vh - 24px));
	left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	background: #000000;
	color: #ffffff;
	border: 1px solid #222222;
	border-radius: var(--bggg-radius);   /* 22px, Impreza-aware */
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
	font-size: 14px;
	line-height: 1.45;
	animation: bggg-rise 0.28s cubic-bezier(.2,.8,.2,1);
}
#bggg-modal.bggg-dragged { transform: none; animation: none; }
@keyframes bggg-rise {
	from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); }
	to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Header / drag handle */
.bggg-modal-header {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px;
	padding: 13px 16px;
	background: linear-gradient(180deg, #0d0d0d, #000000);
	border-bottom: 1px solid #1c1c1c;
	cursor: grab;
	user-select: none;
	touch-action: none;
	position: relative;
}
.bggg-modal-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
	background-image: linear-gradient(90deg, transparent, rgba(255,255,255,0.32), transparent);
	background-size: 600px 100%; background-repeat: no-repeat;
	animation: bggg-shimmer 3.2s infinite linear;
}
.bggg-modal-header:active { cursor: grabbing; }
.bggg-mh-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bggg-mh-cube { font-size: 18px; filter: drop-shadow(0 0 8px rgba(255,255,255,0.25)); }
.bggg-modal-header h3 {
	margin: 0; font-size: 0.92rem; font-weight: 700; color: #ffffff;
	letter-spacing: -0.01em; line-height: 1.2;
}
.bggg-mh-sub {
	display: block; font-size: 0.66rem; color: #8a8a8a;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
}
.bggg-mh-right { display: flex; align-items: center; gap: 10px; }
.bggg-grip { width: 26px; height: 12px; border-radius: 3px; opacity: 0.55;
	background-image: radial-gradient(circle, #666 1px, transparent 1px);
	background-size: 5px 5px; }
.bggg-modal-close {
	background: none; border: none; color: #8a8a8a;
	font-size: 26px; line-height: 1; cursor: pointer; padding: 0 2px;
	transition: color 0.15s ease, transform 0.15s ease;
}
.bggg-modal-close:hover, .bggg-modal-close:focus-visible { color: #ffffff; transform: scale(1.12); outline: none; }

/* Keyword bar */
.bggg-kwbar {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 16px;
	background: #070707;
	border-bottom: 1px solid #1c1c1c;
	font-size: 0.78rem;
	min-height: 40px;
}
.bggg-kw-icon { opacity: 0.75; font-size: 0.8rem; }
.bggg-kw-text {
	color: #ffffff; font-weight: 600; letter-spacing: -0.005em;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bggg-kw-src {
	margin-left: auto; flex: none;
	font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.08em;
	color: #8a8a8a; border: 1px solid #262626; border-radius: 999px; padding: 3px 9px;
}

/* ── STAGE: map underlay + lasers + HUD ──────────────────────────────── */
.bggg-stage {
	position: relative;
	height: 340px;
	flex: none;
	background: #060606;
	overflow: hidden;
	isolation: isolate;
}
.bggg-map-underlay { position: absolute; inset: 0; z-index: 1; }
.bggg-map-underlay .leaflet-container { width: 100%; height: 100%; background: #070707; outline: none; }
/* Dark-mode OSM without a second tile provider or an API key. */
.bggg-map-underlay .leaflet-tile-pane {
	filter: invert(1) hue-rotate(185deg) brightness(0.92) contrast(0.88) saturate(0.55);
}
.bggg-map-underlay .leaflet-control-attribution {
	background: rgba(0, 0, 0, 0.62); color: #6f6f6f; font-size: 9px;
	border-radius: 6px 0 0 0; padding: 1px 5px;
}
.bggg-map-underlay .leaflet-control-attribution a { color: #a8a8a8; }
.bggg-scrim {
	position: absolute; inset: 0; z-index: 2; pointer-events: none;
	background:
		linear-gradient(180deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.12) 34%, rgba(0,0,0,0.10) 62%, rgba(0,0,0,0.58) 100%),
		linear-gradient(90deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 42%, rgba(0,0,0,0.55) 100%);
}
.bggg-lasers { position: absolute; inset: 0; z-index: 4; pointer-events: none; width: 100%; height: 100%; }
@keyframes bggg-laser-flow { to { stroke-dashoffset: -240; } }
@keyframes bggg-node { 0%,100% { r: 3; opacity: 0.95; } 50% { r: 5.2; opacity: 0.45; } }

/* HUD — hero + metric rail, top-left */
.bggg-hud {
	position: absolute; z-index: 5; left: 14px; top: 12px; right: 132px;
	display: flex; flex-direction: column; gap: 10px;
	pointer-events: none;
}
.bggg-hero { display: flex; flex-direction: column; line-height: 1; }
.bggg-hero-value {
	font-size: 3rem; font-weight: 800; letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
	text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9);
	color: #ffffff;
	border-radius: 8px;
}
.bggg-hero-value.rank1  { color: #4ade80; }
.bggg-hero-value.green  { color: var(--bggg-green); }
.bggg-hero-value.yellow { color: var(--bggg-yellow); }
.bggg-hero-value.orange { color: var(--bggg-orange); }
.bggg-hero-value.red    { color: var(--bggg-red); }
.bggg-hero-label {
	font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.14em;
	color: #b0b0b0; margin-top: 6px;
	text-shadow: 0 2px 10px rgba(0,0,0,0.9);
}
.bggg-rail { display: flex; gap: 6px; flex-wrap: wrap; pointer-events: auto; }
.bggg-metric {
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	min-width: 54px; padding: 7px 9px;
	background: rgba(10, 10, 10, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 11px;
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
	transition: border-color 0.18s ease, transform 0.18s ease;
}
.bggg-metric:hover { border-color: rgba(255,255,255,0.34); transform: translateY(-1px); }
.bggg-metric b { font-size: 0.86rem; font-weight: 800; color: #ffffff; font-variant-numeric: tabular-nums; }
.bggg-metric i { font-style: normal; font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.1em; color: #909090; }

/* ZIP rail — the laser-connected column */
.bggg-ziprail {
	position: absolute; z-index: 6; right: 10px; top: 10px; bottom: 10px;
	width: 118px;
	display: flex; flex-direction: column;
	background: rgba(6, 6, 6, 0.74);
	border: 1px solid rgba(255, 255, 255, 0.10);
	border-radius: 14px;
	backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
	overflow: hidden;
}
.bggg-zr-head {
	font-size: 0.55rem; text-transform: uppercase; letter-spacing: 0.14em;
	color: #8a8a8a; padding: 8px 10px 6px; border-bottom: 1px solid rgba(255,255,255,0.08);
	flex: none;
}
.bggg-zr-body { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 5px; scrollbar-width: thin; }
.bggg-zr-body::-webkit-scrollbar { width: 4px; }
.bggg-zr-body::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
.bggg-zr-skel { height: 34px; border-radius: 9px; background-color: rgba(255,255,255,0.05); }
.bggg-zr-row {
	display: flex; align-items: center; gap: 7px;
	padding: 6px 7px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.03);
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
	text-align: left;
	width: 100%;
	font: inherit; color: inherit;
}
.bggg-zr-row:hover, .bggg-zr-row:focus-visible, .bggg-zr-row.on {
	border-color: rgba(255, 255, 255, 0.4);
	background: rgba(255, 255, 255, 0.08);
	transform: translateX(-2px);
	outline: none;
}
.bggg-zr-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: 0 0 9px currentColor; }
.bggg-zr-dot.rank1  { background: var(--bggg-rank1); color: var(--bggg-rank1); }
.bggg-zr-dot.green  { background: var(--bggg-green);  color: var(--bggg-green); }
.bggg-zr-dot.yellow { background: var(--bggg-yellow); color: var(--bggg-yellow); }
.bggg-zr-dot.orange { background: var(--bggg-orange); color: var(--bggg-orange); }
.bggg-zr-dot.red    { background: var(--bggg-red);    color: var(--bggg-red); }
.bggg-zr-meta { min-width: 0; flex: 1; }
.bggg-zr-zip { display: block; font-size: 0.68rem; font-weight: 700; color: #ffffff; font-variant-numeric: tabular-nums; }
.bggg-zr-city { display: block; font-size: 0.55rem; color: #8a8a8a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bggg-zr-rank { font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; flex: none; }
.bggg-zr-rank.rank1  { color: #4ade80; }
.bggg-zr-rank.green  { color: var(--bggg-green); }
.bggg-zr-rank.yellow { color: var(--bggg-yellow); }
.bggg-zr-rank.orange { color: var(--bggg-orange); }
.bggg-zr-rank.red    { color: var(--bggg-red); }

/* Mini legend, bottom-left of the stage */
.bggg-legend-mini {
	position: absolute; z-index: 5; left: 14px; bottom: 10px;
	display: flex; gap: 9px; font-size: 0.55rem; color: #b8b8b8;
	text-shadow: 0 1px 6px rgba(0,0,0,0.95);
	pointer-events: none;
}
.bggg-legend-mini span { display: flex; align-items: center; gap: 3px; }
.bggg-legend-mini i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }

/* Rank pins on the underlay */
.bggg-pin {
	display: flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; border-radius: 50%;
	color: #fff; font-weight: 800; font-size: 11px;
	font-family: system-ui, sans-serif;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
	border: 2px solid rgba(255, 255, 255, 0.92);
	font-variant-numeric: tabular-nums;
}
.bggg-pin.rank1  { background: var(--bggg-rank1); }
.bggg-pin.green  { background: var(--bggg-green); }
.bggg-pin.yellow { background: var(--bggg-yellow); color: #1f2937; }
.bggg-pin.orange { background: var(--bggg-orange); }
.bggg-pin.red    { background: var(--bggg-red); }
.bggg-pin-zip {
	width: 34px; height: 34px; font-size: 12px;
	border-width: 3px;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.10), 0 4px 16px rgba(0, 0, 0, 0.7);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.bggg-modal-foot {
	padding: 11px 16px 13px;
	border-top: 1px solid #1c1c1c;
	background: #050505;
	display: flex; flex-direction: column; gap: 8px;
}
.bggg-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bggg-foot-timer { display: flex; align-items: center; gap: 7px; font-size: 0.68rem; color: #8a8a8a; }
.bggg-foot-timer strong { color: #ffffff; font-variant-numeric: tabular-nums; font-size: 0.74rem; }
.bggg-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--bggg-green); animation: bggg-pulse 1.7s infinite ease-in-out; flex: none; }
@keyframes bggg-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.65); } }
.bggg-conf { display: flex; align-items: center; gap: 7px; font-size: 0.62rem; color: #8a8a8a; }
.bggg-conf-bar { width: 46px; height: 4px; border-radius: 999px; background: #1e1e1e; overflow: hidden; flex: none; }
.bggg-conf-bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--bggg-orange), var(--bggg-green)); transition: width 0.6s ease; }
.bggg-comp-toggle {
	background: none; border: none; color: #8a8a8a;
	font-size: 0.66rem; cursor: pointer; padding: 0; text-align: left;
	transition: color 0.15s ease;
}
.bggg-comp-toggle:hover, .bggg-comp-toggle:focus-visible { color: #ffffff; outline: none; }
.bggg-modal-competitors { display: flex; flex-direction: column; gap: 3px; font-size: 0.66rem; color: #8a8a8a; }
.bggg-modal-competitors div { display: flex; justify-content: space-between; gap: 10px; }
.bggg-modal-note { font-size: 0.6rem; color: #6f6f6f; font-style: italic; }

/* ── Responsive: desktop → laptop → tablet → mobile ──────────────────── */
@media (max-width: 900px) {
	.bggg-panel-body { grid-template-columns: 1fr; }
	.bggg-panel-side { border-right: none; border-bottom: 1px solid var(--bggg-border); }
}

/* Tablet / small: stack the ZIP rail under the map, lasers go vertical */
@media (max-width: 560px), (max-height: 620px) {
	#bggg-modal { width: calc(100vw - 12px); max-height: calc(100vh - 12px); border-radius: 18px; }
	.bggg-stage { height: 300px; }
	.bggg-hud { right: 108px; top: 10px; }
	.bggg-hero-value { font-size: 2.3rem; }
	.bggg-ziprail { width: 104px; }
	.bggg-metric { min-width: 48px; padding: 6px 7px; }
	.bggg-metric b { font-size: 0.78rem; }
	.bggg-legend-mini { gap: 6px; font-size: 0.5rem; }
}
@media (max-width: 400px) {
	#bggg-float-btn { width: 50px; height: 50px; font-size: 21px; bottom: 16px; }
	#bggg-float-btn.bggg-pos-right { right: 16px; }
	#bggg-float-btn.bggg-pos-left  { left: 16px; }
	.bggg-stage { height: 268px; }
	.bggg-ziprail { width: 96px; }
	.bggg-hud { right: 100px; }
	.bggg-hero-value { font-size: 2rem; }
	.bggg-mh-sub { max-width: 120px; }
	.bggg-legend-mini { display: none; }
}
@media (max-width: 520px) {
	.bggg-map { min-height: 260px; }
}

/* Motion & contrast preferences */
@media (prefers-reduced-motion: reduce) {
	#bggg-modal, #bggg-overlay { animation: none; }
	.bggg-fb-ring, .bggg-pulse, .bggg-modal-header::after { animation: none; }
	.bggg-laser-line { animation: none !important; }
}
@media (prefers-contrast: more) {
	.bggg-scrim { background: rgba(0,0,0,0.72); }
	.bggg-metric, .bggg-ziprail { background: #000000; }
}
