/**
 * Geek Native Swifty Bar — Stylesheet
 * Compact 46px reading bar (44px mobile) with hover thumbnail preview,
 * cookie-consent safe stacking, and GPU-composited low-poly reward animations.
 * Zero external fonts or remote assets.
 */

body.has-gn-swifty-bar {
	padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px));
}

#gn-swifty-bar.gn-sbar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 99990;
	background: #ffffff;
	border-top: 1px solid #dddddd;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	color: #1a1a1a;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
	will-change: transform, opacity;
	box-sizing: border-box;
}

#gn-swifty-bar.gn-sbar *,
#gn-swifty-bar.gn-sbar *::before,
#gn-swifty-bar.gn-sbar *::after {
	box-sizing: border-box;
}

/* Elevate above floating cookie icons only while hovering/focusing a preview card */
#gn-swifty-bar.gn-sbar:has(.gn-sbar__slot:hover),
#gn-swifty-bar.gn-sbar:has(.gn-sbar__slot:focus-within),
#gn-swifty-bar.gn-sbar.is-preview-open {
	z-index: 2147483640;
}

#gn-swifty-bar.gn-sbar--hidden {
	transform: translate3d(0, calc(100% + 16px), 0);
	opacity: 0;
	pointer-events: none;
}

#gn-swifty-bar.gn-sbar--visible {
	transform: translate3d(0, 0, 0);
	opacity: 1;
	pointer-events: auto;
}

/* Top Reading Progress Thread */
#gn-swifty-bar .gn-sbar__progress-track {
	position: absolute;
	top: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: rgba(199, 79, 8, 0.14);
	overflow: hidden;
	pointer-events: none;
	z-index: 4;
}

#gn-swifty-bar .gn-sbar__progress-fill {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, #c74f08 0%, #e65100 60%, #f59e0b 100%);
	transform-origin: left center;
	transform: scaleX(0);
	will-change: transform;
}

/* Main 46px Row */
#gn-swifty-bar .gn-sbar__inner {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 46px;
	width: 100%;
	background: #ffffff;
}

#gn-swifty-bar .gn-sbar__left {
	display: flex;
	align-items: center;
	min-width: 0;
	flex: 1 1 auto;
	height: 100%;
}

/* Geek Native Orange Category Badge */
#gn-swifty-bar .gn-sbar__cat {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	height: 100%;
	padding: 0 15px;
	background: linear-gradient(135deg, #c74f08 0%, #b83704 100%);
	color: #ffffff !important;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.9px;
	text-transform: uppercase;
	text-decoration: none !important;
	white-space: nowrap;
	position: relative;
	overflow: hidden;
	transition: background 0.2s ease;
}

/* Subtle low-poly facet sheen on category badge */
#gn-swifty-bar .gn-sbar__cat::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.14) 48%, transparent 48.5%);
	pointer-events: none;
}

#gn-swifty-bar a.gn-sbar__cat:hover,
#gn-swifty-bar a.gn-sbar__cat:focus-visible {
	background: linear-gradient(135deg, #de5b0e 0%, #c74f08 100%);
	outline: none;
}

/* Post Title & Time to Read */
#gn-swifty-bar .gn-sbar__post-info {
	display: flex;
	align-items: baseline;
	gap: 8px;
	min-width: 0;
	padding: 0 16px;
}

#gn-swifty-bar .gn-sbar__post-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#gn-swifty-bar .gn-sbar__ttr {
	flex: 0 0 auto;
	font-size: 13px;
	color: #666666;
	white-space: nowrap;
}

#gn-swifty-bar .gn-sbar__ttr::before {
	content: "\00B7";
	margin-right: 8px;
	font-weight: 700;
	color: #999999;
}

/* Right Cluster: Streak HUD + < > Arrows */
#gn-swifty-bar .gn-sbar__right {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	height: 100%;
}

/* Reading Streak HUD & Accessible Opt-Out */
#gn-swifty-bar .gn-sbar__streak {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 0 10px;
	height: 100%;
	border-left: 1px solid #e6e6e6;
	background: #fafafa;
}

#gn-swifty-bar .gn-sbar__streak-pill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	color: #2b2b2b;
	font-variant-numeric: tabular-nums;
	user-select: none;
}

#gn-swifty-bar .gn-sbar__d20 {
	flex: 0 0 15px;
	width: 15px !important;
	height: 15px !important;
	min-width: 15px !important;
	max-width: 15px !important;
	display: block;
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.2));
	transition: transform 0.35s ease;
}

#gn-swifty-bar .gn-sbar__streak-text {
	display: inline-block;
	min-width: 28px;
	text-align: center;
}

#gn-swifty-bar .gn-sbar__streak.is-celebrating .gn-sbar__d20 {
	transform: rotate(360deg);
}

#gn-swifty-bar .gn-sbar__streak-toggle {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 24px;
	padding: 0 8px;
	border: 1px solid #d4d4d4;
	border-radius: 999px;
	background: #ffffff;
	color: #333333;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

#gn-swifty-bar .gn-sbar__streak-toggle:hover,
#gn-swifty-bar .gn-sbar__streak-toggle:focus-visible {
	border-color: #c74f08;
	color: #c74f08;
	outline: 2px solid rgba(199, 79, 8, 0.25);
	outline-offset: 1px;
}

#gn-swifty-bar .gn-sbar__toggle-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #16a34a;
	transition: background-color 0.18s ease;
}

#gn-swifty-bar .gn-sbar__streak-toggle[aria-pressed="false"] {
	background: #f3f4f6;
	color: #6b7280;
	border-color: #d1d5db;
}

#gn-swifty-bar .gn-sbar__streak-toggle[aria-pressed="false"] .gn-sbar__toggle-dot {
	background: #9ca3af;
}

/* Prev / Next Buttons */
#gn-swifty-bar .gn-sbar__nav-group {
	position: relative;
	display: flex;
	align-items: center;
	height: 100%;
}

#gn-swifty-bar .gn-sbar__slot {
	position: static;
	height: 100%;
	display: flex;
	align-items: center;
}

#gn-swifty-bar .gn-sbar__arrow-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 100%;
	border-left: 1px solid #e2e2e2;
	color: #c74f08 !important;
	background: #ffffff;
	text-decoration: none !important;
	transition: background-color 0.18s ease, color 0.18s ease;
}

#gn-swifty-bar .gn-sbar__arrow-btn svg,
#gn-swifty-bar .gn-sbar__arrow-icon {
	width: 14px !important;
	height: 14px !important;
	min-width: 14px !important;
	max-width: 14px !important;
	flex: 0 0 14px;
	display: block;
	fill: none !important;
}

#gn-swifty-bar .gn-sbar__arrow-btn svg path,
#gn-swifty-bar .gn-sbar__arrow-btn svg polyline {
	fill: none !important;
	stroke: currentColor;
}

#gn-swifty-bar a.gn-sbar__arrow-btn:hover,
#gn-swifty-bar a.gn-sbar__arrow-btn:focus-visible {
	background: #f6f6f6;
	color: #9e3b03 !important;
	outline: none;
}

#gn-swifty-bar .gn-sbar__arrow-btn--empty {
	color: #cccccc !important;
	cursor: default;
}

/* Desktop Hover Preview Card (205x155 image + category pill + title) */
#gn-swifty-bar .gn-sbar__preview {
	display: none;
}

@media (min-width: 769px) {
	#gn-swifty-bar .gn-sbar__preview {
		display: flex !important;
		align-items: stretch;
		position: absolute;
		bottom: 46px;
		right: 0;
		width: 410px;
		height: 155px;
		background: #ffffff;
		border: 1px solid #dddddd;
		box-shadow: 0 -8px 26px rgba(0, 0, 0, 0.16);
		text-decoration: none !important;
		color: #1a1a1a !important;
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		transform: translate3d(0, 10px, 0);
		transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
		z-index: 20;
	}

	/* Invisible hover bridge so moving pointer from arrow onto card does not close it */
	#gn-swifty-bar .gn-sbar__preview::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: -10px;
		height: 10px;
	}

	#gn-swifty-bar .gn-sbar__slot:hover .gn-sbar__preview,
	#gn-swifty-bar .gn-sbar__slot:focus-within .gn-sbar__preview,
	#gn-swifty-bar .gn-sbar__slot.is-slot-active .gn-sbar__preview {
		opacity: 1 !important;
		visibility: visible !important;
		pointer-events: auto !important;
		transform: translate3d(0, 0, 0) !important;
	}

	/* Exclusive single-card guarantee: when JS marks a slot active, hide the non-active sibling even if hovered during transition */
	#gn-swifty-bar .gn-sbar__nav-group:has(.gn-sbar__slot.is-slot-active) .gn-sbar__slot:not(.is-slot-active) .gn-sbar__preview {
		opacity: 0 !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	#gn-swifty-bar .gn-sbar__preview-media {
		flex: 0 0 205px;
		width: 205px;
		height: 153px;
		overflow: hidden;
		background: #1a1a1a;
	}

	#gn-swifty-bar .gn-sbar__preview-media img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		display: block;
		margin: 0;
	}

	#gn-swifty-bar .gn-sbar__preview-body {
		flex: 1 1 auto;
		min-width: 0;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 16px 18px;
		text-align: center;
		gap: 8px;
	}

	#gn-swifty-bar .gn-sbar__preview-cat {
		display: inline-block;
		padding: 3px 9px;
		background: #c74f08;
		color: #ffffff;
		font-size: 10px;
		font-weight: 800;
		letter-spacing: 0.9px;
		text-transform: uppercase;
		line-height: 1.4;
		max-width: 100%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#gn-swifty-bar .gn-sbar__preview-title {
		font-size: 16px;
		line-height: 1.3;
		font-weight: 600;
		color: #111111;
		display: -webkit-box;
		-webkit-line-clamp: 4;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
}

/* Accessible Streak Reward Banner (docked cleanly at left shoulder above the bar) */
#gn-swifty-bar .gn-sbar__reward-banner {
	position: absolute;
	left: 14px;
	bottom: calc(100% + 6px);
	transform: translate3d(0, 6px, 0);
	padding: 6px 13px;
	border-radius: 999px;
	background: #1a1a1a;
	color: #ffffff;
	border: 1px solid #c74f08;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
	z-index: 18;
}

#gn-swifty-bar .gn-sbar__reward-banner.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   LOW-POLY ANIMATION REWARD STAGE (Compact 64px frieze, pointer-events: none)
   ========================================================================== */
#gn-swifty-bar .gn-sbar__poly-stage {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 64px;
	overflow: visible;
	pointer-events: none;
	z-index: 15;
}

#gn-swifty-bar .gn-poly-svg {
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 64px;
	overflow: visible;
	pointer-events: none;
	display: block;
}

#gn-swifty-bar .gn-poly-fx {
	will-change: transform, opacity;
	animation-fill-mode: both;
}

#gn-swifty-bar .gn-sbar__poly-stage.is-looping .gn-poly-fx {
	animation-iteration-count: infinite !important;
}

/* 1. Tentacles */
#gn-swifty-bar .gn-fx-tentacle {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: gnTentacleSway 4.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#gn-swifty-bar .gn-fx-tentacle--2 { animation-delay: 0.16s; }
#gn-swifty-bar .gn-fx-tentacle--3 { animation-delay: 0.3s; }
@keyframes gnTentacleSway {
	0%   { opacity: 0; transform: translate3d(0, 38px, 0) scaleY(0.22) rotate(-7deg); }
	20%  { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1.04) rotate(4deg); }
	50%  { opacity: 1; transform: translate3d(5px, -2px, 0) scaleY(0.98) rotate(-5deg); }
	80%  { opacity: 1; transform: translate3d(-3px, 0, 0) scaleY(1.02) rotate(3deg); }
	100% { opacity: 0; transform: translate3d(0, 36px, 0) scaleY(0.24) rotate(-4deg); }
}

/* 2. Flames */
#gn-swifty-bar .gn-fx-flame {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: gnFlameFlicker 4.4s ease-in-out both;
}
#gn-swifty-bar .gn-fx-flame--b { animation-delay: 0.14s; }
#gn-swifty-bar .gn-fx-flame--c { animation-delay: 0.28s; }
@keyframes gnFlameFlicker {
	0%   { opacity: 0; transform: translate3d(0, 32px, 0) scale(0.7, 0.2); }
	18%  { opacity: 1; transform: translate3d(0, 0, 0) scale(1, 1.06); }
	38%  { opacity: 0.96; transform: translate3d(-2px, -3px, 0) scale(0.96, 1.1); }
	58%  { opacity: 1; transform: translate3d(3px, -1px, 0) scale(1.04, 0.95); }
	80%  { opacity: 0.94; transform: translate3d(-2px, -4px, 0) scale(0.98, 1.05); }
	100% { opacity: 0; transform: translate3d(0, 28px, 0) scale(0.72, 0.2); }
}

/* 3. Monstrous Claw */
#gn-swifty-bar .gn-fx-claw {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: gnClawStrike 4.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#gn-swifty-bar .gn-fx-slash {
	transform-box: fill-box;
	transform-origin: center center;
	animation: gnSlashFlash 4.6s ease-out both;
}
@keyframes gnClawStrike {
	0%   { opacity: 0; transform: translate3d(0, 42px, 0) scale(0.76) rotate(-8deg); }
	18%  { opacity: 1; transform: translate3d(0, -3px, 0) scale(1.04) rotate(2deg); }
	48%  { opacity: 1; transform: translate3d(6px, 1px, 0) scale(1) rotate(-2deg); }
	82%  { opacity: 1; transform: translate3d(0, 0, 0) scale(0.98) rotate(0deg); }
	100% { opacity: 0; transform: translate3d(0, 40px, 0) scale(0.8) rotate(5deg); }
}
@keyframes gnSlashFlash {
	0%, 16% { opacity: 0; transform: scaleX(0.35); }
	26%     { opacity: 1; transform: scaleX(1.06); }
	68%     { opacity: 0.88; transform: scaleX(1); }
	100%    { opacity: 0; transform: scaleX(1); }
}

/* 4. Dragon Scales (skirting horizontally like a fin through water) */
#gn-swifty-bar .gn-fx-dragon-fin {
	transform-box: fill-box;
	transform-origin: center bottom;
	animation: gnDragonGlide 5.2s linear both;
}
@keyframes gnDragonGlide {
	0%   { opacity: 0; transform: translate3d(-340px, 14px, 0) scaleY(0.7); }
	10%  { opacity: 1; transform: translate3d(-140px, 0, 0) scaleY(1); }
	50%  { opacity: 1; transform: translate3d(420px, -2px, 0) scaleY(1.04); }
	90%  { opacity: 1; transform: translate3d(1040px, 0, 0) scaleY(1); }
	100% { opacity: 0; transform: translate3d(1240px, 14px, 0) scaleY(0.7); }
}

/* 5. Dungeon Vines */
#gn-swifty-bar .gn-fx-vine {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: gnVineGrow 4.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#gn-swifty-bar .gn-fx-vine--2 { animation-delay: 0.18s; }
@keyframes gnVineGrow {
	0%   { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.88, 0.14); }
	22%  { opacity: 1; transform: translate3d(0, 0, 0) scale(1, 1.04); }
	80%  { opacity: 1; transform: translate3d(0, 0, 0) scale(1, 1); }
	100% { opacity: 0; transform: translate3d(0, 26px, 0) scale(0.95, 0.2); }
}

/* 6. Ghostly Wisps */
#gn-swifty-bar .gn-fx-wisp {
	transform-box: fill-box;
	transform-origin: center center;
	animation: gnWispFloat 4.8s ease-in-out both;
}
#gn-swifty-bar .gn-fx-wisp--2 { animation-delay: 0.2s; }
#gn-swifty-bar .gn-fx-wisp--3 { animation-delay: 0.4s; }
@keyframes gnWispFloat {
	0%   { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.5); }
	18%  { opacity: 0.96; transform: translate3d(8px, -2px, 0) scale(1); }
	52%  { opacity: 0.92; transform: translate3d(-10px, -10px, 0) scale(1.04); }
	82%  { opacity: 0.85; transform: translate3d(8px, -16px, 0) scale(0.96); }
	100% { opacity: 0; transform: translate3d(0, -24px, 0) scale(0.5); }
}

/* 7. Arcane Sigils (compact edge-anchored runic polyhedra) */
#gn-swifty-bar .gn-fx-sigil {
	transform-box: fill-box;
	transform-origin: center center;
	animation: gnSigilSpin 4.8s ease-in-out both;
}
#gn-swifty-bar .gn-fx-sigil--rev {
	animation-name: gnSigilSpinRev;
}
@keyframes gnSigilSpin {
	0%   { opacity: 0; transform: scale(0.35) rotate(0deg); }
	18%  { opacity: 1; transform: scale(1.04) rotate(55deg); }
	82%  { opacity: 0.96; transform: scale(1) rotate(210deg); }
	100% { opacity: 0; transform: scale(0.42) rotate(270deg); }
}
@keyframes gnSigilSpinRev {
	0%   { opacity: 0; transform: scale(0.35) rotate(0deg); }
	18%  { opacity: 1; transform: scale(1) rotate(-65deg); }
	82%  { opacity: 0.96; transform: scale(1) rotate(-205deg); }
	100% { opacity: 0; transform: scale(0.42) rotate(-265deg); }
}

/* 8. Slime / Ooze */
#gn-swifty-bar .gn-fx-slime {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: gnSlimeBubble 4.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#gn-swifty-bar .gn-fx-slime-drop {
	transform-box: fill-box;
	transform-origin: center center;
	animation: gnSlimeDrop 4.6s ease-in-out both;
}
@keyframes gnSlimeBubble {
	0%   { opacity: 0; transform: translate3d(0, 26px, 0) scaleY(0.18); }
	20%  { opacity: 0.96; transform: translate3d(0, 0, 0) scaleY(1.06); }
	48%  { opacity: 0.96; transform: translate3d(0, 2px, 0) scaleY(0.95); }
	80%  { opacity: 0.94; transform: translate3d(0, -1px, 0) scaleY(1.02); }
	100% { opacity: 0; transform: translate3d(0, 24px, 0) scaleY(0.18); }
}
@keyframes gnSlimeDrop {
	0%, 14% { opacity: 0; transform: translate3d(0, 12px, 0) scale(0.55); }
	46%     { opacity: 1; transform: translate3d(0, -14px, 0) scale(1); }
	82%     { opacity: 0.88; transform: translate3d(0, -20px, 0) scale(0.92); }
	100%    { opacity: 0; transform: translate3d(0, -24px, 0) scale(0.45); }
}

/* 9. Crystals */
#gn-swifty-bar .gn-fx-crystal {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: gnCrystalErupt 4.6s cubic-bezier(0.18, 0.89, 0.32, 1.2) both;
}
#gn-swifty-bar .gn-fx-crystal--2 { animation-delay: 0.12s; }
#gn-swifty-bar .gn-fx-crystal--3 { animation-delay: 0.24s; }
@keyframes gnCrystalErupt {
	0%   { opacity: 0; transform: translate3d(0, 32px, 0) scaleY(0.12); }
	20%  { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1.05); }
	80%  { opacity: 1; transform: translate3d(0, 0, 0) scaleY(1); }
	100% { opacity: 0; transform: translate3d(0, 28px, 0) scaleY(0.16); }
}

/* 10. Sprouting Mushrooms */
#gn-swifty-bar .gn-fx-mushroom {
	transform-box: fill-box;
	transform-origin: bottom center;
	animation: gnMushroomSprout 4.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#gn-swifty-bar .gn-fx-mushroom--2 { animation-delay: 0.14s; }
#gn-swifty-bar .gn-fx-mushroom--3 { animation-delay: 0.28s; }
@keyframes gnMushroomSprout {
	0%   { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.35, 0.14); }
	22%  { opacity: 1; transform: translate3d(0, -2px, 0) scale(1.05, 1.06); }
	42%  { opacity: 1; transform: translate3d(0, 0, 0) scale(1, 1); }
	82%  { opacity: 1; transform: translate3d(0, 0, 0) scale(1, 1); }
	100% { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.65, 0.22); }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS (+ Preview Lab Mobile Simulator)
   ========================================================================== */
@media (max-width: 900px) {
	#gn-swifty-bar .gn-sbar__ttr {
		display: none;
	}
}

@media (max-width: 768px) {
	body.has-gn-swifty-bar {
		padding-bottom: calc(44px + env(safe-area-inset-bottom, 0px));
	}

	#gn-swifty-bar .gn-sbar__inner {
		height: 44px;
	}

	#gn-swifty-bar .gn-sbar__cat {
		padding: 0 11px;
		font-size: 11px;
		letter-spacing: 0.6px;
		max-width: 145px;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	#gn-swifty-bar .gn-sbar__post-info,
	#gn-swifty-bar .gn-sbar__preview {
		display: none !important;
		visibility: hidden !important;
		pointer-events: none !important;
	}

	#gn-swifty-bar .gn-sbar__streak {
		padding: 0 8px;
		gap: 4px;
	}

	#gn-swifty-bar .gn-sbar__arrow-btn {
		width: 42px;
	}

	#gn-swifty-bar .gn-sbar__poly-stage,
	#gn-swifty-bar .gn-poly-svg {
		height: 48px;
	}

	#gn-swifty-bar .gn-sbar__reward-banner {
		left: 8px;
		bottom: calc(100% + 5px);
		font-size: 11px;
		padding: 5px 10px;
		max-width: calc(100vw - 16px);
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* Desktop Mobile Simulation Mode (used by gn-swifty-preview.html simulator toggle) */
body.gn-mobile-sim #gn-swifty-bar {
	max-width: 390px;
	left: 50%;
	right: auto;
	width: 100%;
	transform: translate3d(-50%, 100%, 0);
}
body.gn-mobile-sim #gn-swifty-bar.is-visible {
	transform: translate3d(-50%, 0, 0);
}
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__inner {
	height: 44px;
}
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__cat {
	padding: 0 11px;
	font-size: 11px;
	letter-spacing: 0.6px;
	max-width: 145px;
	overflow: hidden;
	text-overflow: ellipsis;
}
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__post-info,
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__preview {
	display: none !important;
}
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__streak {
	padding: 0 8px;
	gap: 4px;
}
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__arrow-btn {
	width: 42px;
}
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__poly-stage,
body.gn-mobile-sim #gn-swifty-bar .gn-poly-svg {
	height: 48px;
}
body.gn-mobile-sim #gn-swifty-bar .gn-sbar__reward-banner {
	left: 8px;
	bottom: calc(100% + 5px);
	font-size: 11px;
	padding: 5px 10px;
	max-width: calc(390px - 16px);
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Reduced Motion & Print */
@media (prefers-reduced-motion: reduce) {
	#gn-swifty-bar.gn-sbar,
	#gn-swifty-bar .gn-sbar__d20,
	#gn-swifty-bar .gn-sbar__preview,
	#gn-swifty-bar .gn-sbar__reward-banner {
		transition: none !important;
	}
}

@media print {
	#gn-swifty-bar {
		display: none !important;
	}

	body.has-gn-swifty-bar {
		padding-bottom: 0 !important;
	}
}
