/*
 * Letras Bonitas — Stylesheet v6
 * Author: Vinayak Bibyan
 *
 * Layout changes in v6:
 *   · input + category rail + toggles are one sticky toolbar
 *   · character counter sits beside the input and hides under 600px, which
 *     is what let the input padding and the rail gap tighten up
 *   · results label became a dropdown jump menu
 *   · two toggle buttons pinned under the rail
 *
 * If the theme has its own sticky header, set the offset once:
 *   .fges-app { --fges-sticky-top: 64px; }
 */

/* ─── TOKENS ────────────────────────────────────────────── */
.fges-app {
	--fges-bg:          #f8fafc;
	--fges-surface:     #ffffff;
	--fges-surface-2:   #f1f5f9;
	--fges-border:      rgba(148, 163, 184, 0.18);
	--fges-border-2:    rgba(99, 102, 241, 0.18);

	--fges-accent:      #6366f1;
	--fges-accent-2:    #8b5cf6;
	--fges-accent-3:    #0ea5e9;

	--fges-emoji-1:     #f97316;
	--fges-emoji-2:     #ec4899;

	--fges-game-1:      #10b981;
	--fges-game-2:      #059669;

	--fges-text:        #0f172a;
	--fges-text-2:      #475569;
	--fges-text-3:      #94a3b8;
	--fges-text-light:  #cbd5e1;

	--fges-shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
	--fges-shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
	--fges-shadow-lg:   0 10px 40px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
	--fges-shadow-glow: 0 0 0 3px rgba(99, 102, 241, 0.15);

	--fges-radius:      14px;
	--fges-radius-lg:   20px;
	--fges-radius-xl:   28px;
	--fges-radius-sm:   8px;
	--fges-radius-pill: 100px;

	--fges-preview-max-h: 170px;
	--fges-scroll-thumb:  linear-gradient(180deg, var(--fges-accent), var(--fges-accent-2));

	--fges-font-display: 'Playfair Display', Georgia, serif;
	--fges-font-body:    'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

	/* Anything that renders GENERATED text uses this stack. DM Sans first
	   for normal letters, then the Noto families that carry the blocks
	   system fonts routinely lack. CSS falls back per character, so a
	   single missing glyph pulls from Noto without touching the rest. */
	/* 'Noto Sans' sits ahead of the symbol families on purpose: it carries
	   Latin AND the combining marks, so a letter+mark cluster resolves there
	   instead of falling through to a symbol font that has the mark but no
	   letters — which is what turned the Glitch and Zalgo cards into boxes. */
	--fges-font-glyph:   'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
	                   'Noto Sans', 'Noto Sans Math', 'Noto Sans Symbols', 'Noto Sans Symbols 2',
	                   'Noto Sans Canadian Aboriginal', 'Noto Sans Javanese',
	                   'Noto Sans Balinese', 'Noto Sans Cherokee',
	                   'Noto Serif Tibetan', 'Segoe UI Symbol', 'Apple Symbols', sans-serif;

	--fges-transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	--fges-spring:     all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);

	--fges-sticky-top: 0px;

	font-family: var(--fges-font-body);
	color: var(--fges-text);
	background: var(--fges-bg);
	min-height: 300px;
	padding-bottom: 44px;
	position: relative;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ─── WIDTH BREAKOUT ────────────────────────────────────────
   Lets the tool escape a narrow theme container without the page's own
   text losing its padding. `overflow-x: clip` on <html> is added by the
   script; unlike `hidden` it suppresses the sideways scrollbar WITHOUT
   creating a scroll container, so position:sticky keeps working. */
.fges-app.fges-breakout {
	width: var(--fges-breakout, 100vw);
	margin-left: calc(50% - var(--fges-breakout-half, 50vw));
	margin-right: calc(50% - var(--fges-breakout-half, 50vw));
	max-width: none;
}

.fges-app.fges-breakout .fges-toolbar-inner,
.fges-app.fges-breakout .fges-section {
	max-width: min(1680px, 100%);
}

@media (max-width: 959px) {
	/* Phones ignore the percentage and always go edge to edge. */
	.fges-app.fges-breakout {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
}

html.fges-has-breakout { overflow-x: clip; }

.fges-sentinel {
	height: 1px;
	margin-bottom: -1px;
	pointer-events: none;
}

/* ─── STICKY TOOLBAR ────────────────────────────────────── */
.fges-toolbar {
	position: sticky;
	top: var(--fges-sticky-top);
	z-index: 60;
	background: rgba(248, 250, 252, 0.94);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--fges-border);
	/* Rounded bottom corners so the pinned bar reads as a floating card
	   rather than a full-bleed strip. */
	border-radius: 0 0 var(--fges-radius-xl) var(--fges-radius-xl);
	transition: box-shadow 0.25s ease, background 0.25s ease;
}

.fges-app.fges-no-sticky .fges-toolbar {
	position: relative;
	top: auto;
}

/* Fallback when a theme ancestor's overflow has broken position:sticky.
   The script switches the bar to position:fixed and this spacer holds the
   height it left behind so the page does not jump. */
.fges-toolbar-spacer { height: 0; }

.fges-app.fges-fixed-fallback .fges-toolbar {
	box-shadow: var(--fges-shadow-md);
}

.fges-toolbar.fges-stuck {
	box-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.20), 0 2px 8px rgba(15, 23, 42, 0.05);
	background: rgba(255, 255, 255, 0.96);
	border-bottom-color: transparent;
}

.fges-toolbar-inner {
	max-width: 980px;
	margin: 0 auto;
	padding: 14px 16px 8px;
}

/* ─── INPUT ─────────────────────────────────────────────── */
.fges-input-wrapper {
	position: relative;
	background: var(--fges-surface);
	border-radius: var(--fges-radius-lg);
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.04),
		0 6px 16px -6px rgba(15, 23, 42, 0.10),
		0 18px 40px -22px rgba(79, 70, 229, 0.28),
		inset 0 0 0 1.5px var(--fges-border);
	transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.fges-input-wrapper:hover {
	box-shadow:
		0 1px 2px rgba(15, 23, 42, 0.05),
		0 10px 22px -8px rgba(15, 23, 42, 0.12),
		0 26px 52px -24px rgba(79, 70, 229, 0.34),
		inset 0 0 0 1.5px var(--fges-border-2);
}

.fges-input-wrapper:focus-within {
	box-shadow:
		0 2px 4px rgba(15, 23, 42, 0.05),
		0 12px 26px -8px rgba(79, 70, 229, 0.20),
		0 30px 60px -26px rgba(79, 70, 229, 0.42),
		inset 0 0 0 1.8px var(--fges-accent),
		var(--fges-shadow-glow);
}

.fges-input {
	width: 100%;
	/* Right padding leaves room for the counter + clear button that now
	   sit inside the box instead of on a row beneath it. */
	padding: 20px 132px 20px 22px;
	border: none;
	background: transparent;
	font-family: var(--fges-font-body);
	font-size: 18px;
	color: var(--fges-text);
	resize: none;
	outline: none;
	line-height: 1.5;
	min-height: 66px;
	max-height: 260px;
	box-sizing: border-box;
	border-radius: var(--fges-radius-lg);
	caret-color: var(--fges-accent);
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(99, 102, 241, 0.55) transparent;
	transition: padding 0.2s ease, min-height 0.2s ease, font-size 0.2s ease;
}

.fges-input::placeholder {
	color: var(--fges-text-3);
	font-weight: 300;
}

.fges-input::-webkit-scrollbar { width: 9px; }
.fges-input::-webkit-scrollbar-track { background: transparent; }
.fges-input::-webkit-scrollbar-thumb {
	background: var(--fges-scroll-thumb);
	border-radius: 100px;
	border: 3px solid transparent;
	background-clip: content-box;
}

/* Counter + clear, pinned to the right edge of the input */
.fges-input-side {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.fges-char-count {
	font-size: 11.5px;
	color: var(--fges-text-3);
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.02em;
	white-space: nowrap;
	transition: color 0.2s ease;
}

.fges-char-count.fges-char-near {
	color: var(--fges-emoji-1);
	font-weight: 600;
}

.fges-clear-btn {
	pointer-events: auto;
	width: 26px;
	height: 26px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fges-surface-2);
	border: 1px solid var(--fges-border);
	border-radius: 50%;
	cursor: pointer;
	color: var(--fges-text-3);
	transition: var(--fges-transition);
	padding: 0;
}

.fges-clear-btn:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #ef4444;
	transform: scale(1.08);
}

/* Compact mode once the toolbar sticks — unless the input has focus. */
.fges-toolbar.fges-stuck:not(.fges-force-open) .fges-toolbar-inner { padding-top: 8px; }
.fges-toolbar.fges-stuck:not(.fges-force-open) .fges-input {
	min-height: 48px;
	max-height: 48px;
	padding-top: 12px;
	padding-bottom: 12px;
	font-size: 16px;
}

/* ─── CATEGORY RAIL ─────────────────────────────────────── */
.fges-rail {
	display: flex;
	gap: 5px;
	overflow-x: auto;
	scroll-behavior: smooth;
	padding: 10px 2px 8px;
	-ms-overflow-style: none;
	scrollbar-width: none;
	align-items: center;
}

.fges-rail::-webkit-scrollbar { display: none; }

.fges-pill {
	white-space: nowrap;
	padding: 6px 14px;
	border-radius: var(--fges-radius-pill);
	border: 1.5px solid var(--fges-border);
	background: var(--fges-surface);
	font-family: var(--fges-font-body);
	font-size: 12.5px;
	font-weight: 500;
	color: var(--fges-text-2);
	cursor: pointer;
	transition: var(--fges-spring);
	flex-shrink: 0;
	line-height: 1.35;
}

.fges-pill:hover {
	border-color: var(--fges-accent);
	color: var(--fges-accent);
	background: rgba(99, 102, 241, 0.06);
}

.fges-pill.active {
	background: linear-gradient(135deg, var(--fges-accent), var(--fges-accent-2));
	border-color: transparent;
	color: #fff;
	box-shadow: 0 3px 12px rgba(99, 102, 241, 0.32);
}

/* Once the rail is scrolled, fade its leading edge so the hidden pills
   read as "there is more to the left" instead of being cut off. */
.fges-toolbar.fges-rail-scrolled .fges-rail {
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 26px);
	        mask-image: linear-gradient(to right, transparent 0, #000 26px);
}

.fges-pill-emoji { border-color: rgba(249, 115, 22, 0.32); color: #c2410c; }
.fges-pill-emoji:hover { border-color: var(--fges-emoji-1); color: var(--fges-emoji-1); background: rgba(249,115,22,0.07); }
.fges-pill-emoji.active {
	background: linear-gradient(135deg, var(--fges-emoji-1), var(--fges-emoji-2));
	box-shadow: 0 3px 12px rgba(249, 115, 22, 0.32);
}

/* ─── TOGGLE ROW ────────────────────────────────────────── */
.fges-toggle-row {
	display: flex;
	gap: 8px;
	padding: 0 2px 10px;
	/* Scrolls sideways like the category rail instead of wrapping, so the
	   three buttons stay on one line at any width. */
	flex-wrap: nowrap;
	overflow-x: auto;
	-ms-overflow-style: none;
	scrollbar-width: none;
}

.fges-toggle-row::-webkit-scrollbar { display: none; }
.fges-toggle { flex: 0 0 auto; }

.fges-toggle {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 5px 13px 5px 9px;
	border-radius: var(--fges-radius-pill);
	border: 1.5px solid var(--fges-border);
	background: var(--fges-surface);
	font-family: var(--fges-font-body);
	font-size: 12px;
	font-weight: 600;
	color: var(--fges-text-2);
	cursor: pointer;
	transition: var(--fges-transition);
	line-height: 1.3;
}

.fges-toggle:hover { border-color: var(--fges-accent); color: var(--fges-accent); }

.fges-toggle-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fges-text-light);
	flex: none;
	transition: var(--fges-transition);
}

.fges-toggle-glyph { font-size: 13px; line-height: 1; }

.fges-toggle.fges-toggle-on {
	background: linear-gradient(135deg, rgba(99,102,241,0.10), rgba(139,92,246,0.10));
	border-color: var(--fges-accent);
	color: var(--fges-accent);
}

.fges-toggle.fges-toggle-on .fges-toggle-dot {
	background: var(--fges-accent);
	box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.fges-toggle-gaming:hover { border-color: var(--fges-game-1); color: var(--fges-game-2); }

.fges-toggle-gaming.fges-toggle-on {
	background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(5,150,105,0.12));
	border-color: var(--fges-game-1);
	color: var(--fges-game-2);
}

.fges-toggle-gaming.fges-toggle-on .fges-toggle-dot {
	background: var(--fges-game-1);
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

/* ─── RESULTS BAR + JUMP MENU ───────────────────────────── */
.fges-section {
	max-width: 980px;
	margin: 0 auto;
	padding: 18px 16px 0;
}

.fges-results-bar {
	position: relative;
	margin-bottom: 14px;
}

.fges-results-menu-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 12px 7px 12px;
	border-radius: var(--fges-radius-pill);
	border: 1.5px solid var(--fges-border);
	background: var(--fges-surface);
	font-family: var(--fges-font-body);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--fges-text);
	cursor: pointer;
	transition: var(--fges-transition);
	max-width: 100%;
}

.fges-results-menu-btn:hover { border-color: var(--fges-accent); box-shadow: var(--fges-shadow-sm); }
.fges-results-menu-btn[aria-expanded="true"] .fges-chevron { transform: rotate(180deg); }
.fges-chevron { transition: transform 0.2s ease; color: var(--fges-text-3); flex: none; }

.fges-label-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--fges-accent), var(--fges-accent-2));
	flex: none;
}

.fges-results-menu-btn.fges-menu-emoji .fges-label-dot {
	background: linear-gradient(135deg, var(--fges-emoji-1), var(--fges-emoji-2));
}

.fges-count-badge {
	background: var(--fges-surface-2);
	color: var(--fges-text-2);
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: var(--fges-radius-pill);
	font-variant-numeric: tabular-nums;
}

.fges-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	z-index: 70;
	width: min(560px, calc(100vw - 32px));
	background: var(--fges-surface);
	border: 1px solid var(--fges-border);
	border-radius: var(--fges-radius);
	box-shadow: var(--fges-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.fges-menu.fges-menu-open { opacity: 1; visibility: visible; transform: translateY(0); }

.fges-menu-inner {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 2px;
	padding: 10px;
	max-height: min(60vh, 420px);
	overflow-y: auto;
}

.fges-menu-item {
	text-align: left;
	padding: 7px 10px;
	border: none;
	background: transparent;
	border-radius: var(--fges-radius-sm);
	font-family: var(--fges-font-body);
	font-size: 12.5px;
	color: var(--fges-text-2);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fges-menu-item:hover { background: var(--fges-surface-2); color: var(--fges-text); }
.fges-menu-item.active {
	background: linear-gradient(135deg, var(--fges-accent), var(--fges-accent-2));
	color: #fff;
	font-weight: 600;
}
.fges-menu-item-emoji { color: #c2410c; }
.fges-menu-item-emoji.active { background: linear-gradient(135deg, var(--fges-emoji-1), var(--fges-emoji-2)); color: #fff; }

/* ─── GRID + CARDS ──────────────────────────────────────── */
.fges-grid {
	display: grid;
	/* Fixed column counts, not auto-fill: a card wide enough to hold a
	   decorated result on ONE line is the point, so the count is pinned
	   per breakpoint rather than derived from a minimum width. */
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.fges-card {
	background: var(--fges-surface);
	border: 1px solid var(--fges-border);
	border-radius: var(--fges-radius-lg);
	padding: 12px 14px 14px;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	transition: var(--fges-transition);
}

.fges-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--fges-accent), var(--fges-accent-2));
	opacity: 0;
	transition: opacity 0.2s ease;
}

.fges-card:hover {
	border-color: var(--fges-border-2);
	box-shadow: var(--fges-shadow-md);
	transform: translateY(-2px);
}

.fges-card:hover::before { opacity: 1; }
.fges-card:focus-visible { outline: 2px solid var(--fges-accent); outline-offset: 2px; }
.fges-card:active { transform: translateY(0); }

.fges-card-copied {
	border-color: #34d399;
	box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.fges-card-copied::before { opacity: 1; background: linear-gradient(180deg, #34d399, #10b981); }

/* Gaming Mode recolours the card accent so it is obvious at a glance that
   the whole grid is in gaming letterforms. */
.fges-app.fges-gaming-on .fges-card::before {
	background: linear-gradient(180deg, var(--fges-game-1), var(--fges-game-2));
}
.fges-app.fges-gaming-on .fges-card:hover { border-color: rgba(16, 185, 129, 0.35); }

.fges-card-emoji::before { background: linear-gradient(180deg, var(--fges-emoji-1), var(--fges-emoji-2)); }
.fges-card-emoji .fges-card-cat { color: #c2410c; }

.fges-card-top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.fges-card-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.fges-card-name {
	font-size: 12px;
	font-weight: 600;
	color: var(--fges-text-2);
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fges-card-cat {
	font-size: 10.5px;
	color: var(--fges-text-3);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.fges-copy-btn {
	width: 28px;
	height: 28px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--fges-surface-2);
	border: 1px solid var(--fges-border);
	border-radius: var(--fges-radius-sm);
	color: var(--fges-text-3);
	cursor: pointer;
	transition: var(--fges-transition);
	padding: 0;
}

.fges-copy-btn:hover { background: var(--fges-accent); border-color: var(--fges-accent); color: #fff; }
.fges-copy-btn.copied { background: #10b981; border-color: #10b981; color: #fff; }

.fges-card-preview {
	font-family: var(--fges-font-glyph);
	font-size: 18px;
	line-height: 1.6;
	color: var(--fges-text);
	/* `anywhere` (v6.0) broke words the moment a card got tight, so short
	   names wrapped onto a second line for no reason. `break-word` only
	   breaks when a word genuinely cannot fit on a line of its own. */
	overflow-wrap: break-word;
	word-break: normal;
	min-height: 1.6em;
	max-height: var(--fges-preview-max-h);
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
}

.fges-card-preview::-webkit-scrollbar { width: 6px; }
.fges-card-preview::-webkit-scrollbar-track { background: transparent; }
.fges-card-preview::-webkit-scrollbar-thumb { background: var(--fges-scroll-thumb); border-radius: 100px; }

.fges-card-emoji .fges-card-preview { font-size: 19px; line-height: 1.7; }
.fges-card-comic .fges-card-preview { font-family: 'Comic Sans MS', 'Chalkboard SE', 'Comic Neue', cursive; }

.fges-card[data-cat="morse"] .fges-card-preview,
.fges-card[data-cat="regional"] .fges-card-preview { font-size: 15px; letter-spacing: 0.02em; }

.fges-card[data-cat="zalgo"] .fges-card-preview { line-height: 2.1; }

.fges-placeholder-hint { color: var(--fges-text-light); font-size: 13px; font-style: italic; }

/* ─── LOAD MORE / EMPTY / TOAST ─────────────────────────── */
.fges-loadmore-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 26px 16px 0;
}

.fges-loadmore-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border-radius: var(--fges-radius-pill);
	border: none;
	background: linear-gradient(135deg, var(--fges-accent), var(--fges-accent-2));
	color: #fff;
	font-family: var(--fges-font-body);
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
	transition: var(--fges-transition);
}

.fges-loadmore-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(99, 102, 241, 0.38); }
.fges-loadmore-hint { font-size: 12px; color: var(--fges-text-3); margin: 0; }

.fges-empty {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	padding: 56px 20px;
	color: var(--fges-text-3);
	text-align: center;
}

.fges-empty-icon { font-size: 30px; color: var(--fges-text-light); }
.fges-empty p { margin: 0; font-size: 14px; }

.fges-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	transform: translate(-50%, 16px);
	background: var(--fges-text);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	padding: 9px 20px;
	border-radius: var(--fges-radius-pill);
	box-shadow: var(--fges-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
	z-index: 9999;
	pointer-events: none;
}

.fges-toast.fges-toast-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ─── ENTRANCE ──────────────────────────────────────────── */
.fges-app .fges-card { opacity: 0; transform: translateY(8px); }
.fges-app.fges-ready .fges-card { animation: fges-fadeup 0.34s ease forwards; }
.fges-app.fges-ready .fges-card:nth-child(1) { animation-delay: 0.02s; }
.fges-app.fges-ready .fges-card:nth-child(2) { animation-delay: 0.04s; }
.fges-app.fges-ready .fges-card:nth-child(3) { animation-delay: 0.06s; }
.fges-app.fges-ready .fges-card:nth-child(4) { animation-delay: 0.08s; }
.fges-app.fges-ready .fges-card:nth-child(5) { animation-delay: 0.10s; }
.fges-app.fges-ready .fges-card:nth-child(6) { animation-delay: 0.12s; }
.fges-app.fges-ready .fges-card:nth-child(n+7) { animation-delay: 0.14s; }

@keyframes fges-fadeup {
	to { opacity: 1; transform: translateY(0); }
}

/* ─── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
	.fges-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	/* Counter is the first thing to go on a narrow screen — that reclaimed
	   space is what lets the input padding and rail gap shrink. */
	.fges-char-count { display: none; }

	.fges-input { padding-right: 48px; padding-left: 18px; font-size: 16px; min-height: 58px; }
	.fges-input-side { right: 9px; }

	.fges-toolbar-inner { padding: 10px 12px 6px; }
	.fges-rail { gap: 4px; padding: 8px 0 6px; }
	.fges-pill { padding: 6px 12px; font-size: 12px; }
	.fges-toggle-row { gap: 6px; padding: 0 0 8px; }
	.fges-toggle { padding: 5px 11px 5px 8px; font-size: 11.5px; }

	.fges-section { padding: 14px 12px 0; }
	.fges-grid { grid-template-columns: 1fr; gap: 10px; }
	/* Edge to edge on phones — the tool is the page here. */
	.fges-app { --fges-side: 12px; }
	.fges-card-preview { font-size: 17px; }
	.fges-menu { width: calc(100vw - 24px); }
	.fges-menu-inner { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 380px) {
	.fges-toggle-text { font-size: 11px; }
	.fges-pill { padding: 5px 10px; }
}

/* ─── ACCESSIBILITY ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.fges-app *,
	.fges-app *::before,
	.fges-app *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
	.fges-app .fges-card { opacity: 1; transform: none; }
}

@media print {
	.fges-toolbar, .fges-loadmore-wrap, .fges-toast, .fges-copy-btn { display: none !important; }
	.fges-card { break-inside: avoid; border: 1px solid #ddd; }
}


/* ─── SOCIAL PREVIEW ────────────────────────────────────────
   A button beside Gaming Mode opens realistic phone mock-ups so the
   visitor can see the copied style in the place they will actually paste
   it. The chrome is drawn in CSS — no platform logo artwork is used. */
.fges-toggle-social.fges-toggle-on,
.fges-toggle-social:hover {
	border-color: var(--fges-emoji-2);
	color: var(--fges-emoji-2);
}

.fges-social-overlay {
	position: fixed;
	inset: 0;
	z-index: 9998;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s;
}

.fges-social-overlay.fges-open { opacity: 1; visibility: visible; }

.fges-social-modal {
	background: var(--fges-surface);
	border-radius: var(--fges-radius-xl);
	box-shadow: var(--fges-shadow-lg);
	width: min(1040px, calc(100vw - 24px));
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(12px) scale(0.985);
	transition: transform 0.26s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.fges-social-overlay.fges-open .fges-social-modal { transform: none; }

.fges-social-head {
	position: relative;
	padding: 18px 56px 14px 22px;
	border-bottom: 1px solid var(--fges-border);
	flex: none;
}

.fges-social-head h3 {
	margin: 0 0 3px;
	font-family: var(--fges-font-display);
	font-size: 20px;
	font-weight: 600;
	color: var(--fges-text);
}

.fges-social-head p { margin: 0; font-size: 12.5px; color: var(--fges-text-3); }

.fges-social-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	border: 1px solid var(--fges-border);
	background: var(--fges-surface-2);
	color: var(--fges-text-2);
	cursor: pointer;
	transition: var(--fges-transition);
	padding: 0;
}

.fges-social-close:hover { background: #fee2e2; border-color: #fca5a5; color: #ef4444; transform: rotate(90deg); }

.fges-social-strip {
	display: flex;
	gap: 18px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 20px 22px 24px;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
}

.fges-social-strip::-webkit-scrollbar { height: 8px; }
.fges-social-strip::-webkit-scrollbar-thumb { background: var(--fges-scroll-thumb); border-radius: 100px; }

/* ── phone frame ── */
.fges-phone {
	flex: 0 0 auto;
	width: 292px;
	scroll-snap-align: center;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.fges-phone-body {
	position: relative;
	background: #0f172a;
	border-radius: 34px;
	padding: 9px;
	box-shadow: 0 18px 40px -18px rgba(15, 23, 42, 0.55), inset 0 0 0 1px rgba(255,255,255,0.09);
}

.fges-phone-screen {
	position: relative;
	background: #fff;
	border-radius: 26px;
	height: 452px;
	overflow-y: auto;
	overflow-x: hidden;
	font-size: 12px;
	line-height: 1.4;
	color: #0f172a;
	scrollbar-width: thin;
}

.fges-phone-screen::-webkit-scrollbar { width: 4px; }
.fges-phone-screen::-webkit-scrollbar-thumb { background: rgba(148,163,184,.5); border-radius: 100px; }

.fges-phone-notch {
	position: absolute;
	top: 9px;
	left: 50%;
	transform: translateX(-50%);
	width: 78px;
	height: 17px;
	background: #0f172a;
	border-radius: 100px;
	z-index: 3;
}

.fges-phone-label {
	text-align: center;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--fges-text-3);
}

/* ── real-screenshot mode ──
   When the owner supplies their own profile screenshots, the drawn chrome
   is dropped and only the bio is overlaid, positioned in percentages so it
   tracks the image at any width. */
.fges-shot { padding: 0; background: #fff; }

.fges-shot-wrap { position: relative; width: 100%; }

.fges-shot-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 26px 26px 0 0;
}

.fges-shot-bio {
	position: absolute;
	line-height: 1.35;
	color: #0f172a;
	word-break: break-word;
	overflow-wrap: break-word;
	/* A touch of backdrop keeps the swapped line legible over whatever the
	   screenshot has underneath it. */
	background: rgba(255, 255, 255, 0.82);
	border-radius: 4px;
	padding: 1px 3px;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.82);
}

/* ── shared bits ── */
.fges-sp-status {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 9px 15px 4px;
	font-size: 11px;
	font-weight: 700;
	color: #0f172a;
}

.fges-sp-sig { display: flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; }
.fges-sp-sig i { width: 2.5px; background: #0f172a; border-radius: 1px; }
.fges-sp-sig i:nth-child(1) { height: 4px; }
.fges-sp-sig i:nth-child(2) { height: 6px; }
.fges-sp-sig i:nth-child(3) { height: 8px; }
.fges-sp-sig i:nth-child(4) { height: 10px; }
.fges-sp-sig b { width: 17px; height: 9px; border: 1.2px solid #0f172a; border-radius: 2.5px; margin-left: 2px; }
.fges-sp-sig b::after { content: ''; display: block; width: 60%; height: 100%; background: #0f172a; border-radius: 1px; }

.fges-sp-avatar {
	border-radius: 50%;
	background: linear-gradient(135deg, #6d28d9, #7c3aed);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fges-font-display);
	font-weight: 700;
	font-style: italic;
	flex: none;
	background-size: cover;
	background-position: center;
}

.fges-sp-styled { font-family: var(--fges-font-glyph); word-break: break-word; overflow-wrap: break-word; }
.fges-sp-empty  { color: #b9c2cf; font-style: italic; font-weight: 400; }

.fges-ic-link, .fges-ic-cal {
	display: inline-block;
	width: 9px; height: 9px;
	margin-right: 3px;
	border: 1.3px solid currentColor;
	vertical-align: -1px;
}
.fges-ic-link { border-radius: 50% 2px 50% 2px; }
.fges-ic-cal  { border-radius: 2px; border-top-width: 3px; }

/* ═══ INSTAGRAM ═══ */
.fges-ig { background: #fff; color: #262626; }

.fges-ig-bar {
	display: flex; align-items: center; gap: 9px;
	padding: 4px 14px 12px;
}
.fges-ig-plus { font-size: 20px; font-weight: 300; line-height: 1; }
.fges-ig-handle { flex: 1; text-align: center; font-weight: 700; font-size: 14px; }
.fges-ig-handle em { font-style: normal; font-weight: 400; font-size: 10px; }
.fges-ig-burger { display: flex; flex-direction: column; gap: 3px; }
.fges-ig-burger i { width: 15px; height: 1.6px; background: #262626; border-radius: 2px; }

.fges-ig-top { display: flex; align-items: center; gap: 20px; padding: 4px 16px 0; }
.fges-ig-av { width: 74px; height: 74px; font-size: 29px; }
.fges-ig-stats { display: flex; gap: 20px; text-align: center; flex: 1; justify-content: space-around; }
.fges-ig-stats b { display: block; font-size: 15px; font-weight: 700; }
.fges-ig-stats span { font-size: 11px; color: #262626; }

.fges-ig-name { padding: 11px 16px 1px; font-weight: 700; font-size: 12.5px; }
.fges-ig-bio  { padding: 0 16px; font-size: 12.5px; line-height: 1.42; }
.fges-ig-link { padding: 3px 16px 0; font-size: 12.5px; color: #00376b; font-weight: 600; }

.fges-ig-btns { display: flex; gap: 6px; padding: 12px 16px 0; }
.fges-ig-btns span {
	flex: 1; text-align: center; background: #efefef; border-radius: 8px;
	padding: 7px 0; font-size: 12px; font-weight: 600;
}

.fges-ig-tabs { display: flex; margin-top: 14px; border-top: 1px solid #dbdbdb; }
.fges-ig-tabs span { flex: 1; height: 38px; position: relative; }
.fges-ig-tabs span::before {
	content: ''; position: absolute; left: 50%; top: 50%;
	transform: translate(-50%, -50%);
	width: 15px; height: 15px; border: 1.6px solid #8e8e8e;
}
.fges-ig-tabs .on::before { border-color: #262626; }
.fges-ig-tabs .reel::before { border-radius: 3px; }
.fges-ig-tabs .tag::before { border-radius: 50% 50% 3px 3px; }
.fges-ig-tabs .on::after {
	content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1.6px; background: #262626;
}

.fges-ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 2px; }
.fges-ig-grid i { display: block; padding-top: 100%; background: #f1f3f5; }

/* ═══ X ═══ */
.fges-x { background: #fff; color: #0f1419; }

.fges-x-banner {
	position: relative; height: 78px;
	background: linear-gradient(120deg, #334155, #0f172a);
	display: flex; align-items: center; justify-content: space-between; padding: 0 12px;
}
.fges-x-back, .fges-x-search {
	width: 26px; height: 26px; border-radius: 50%;
	background: rgba(15,23,42,.55); color: #fff;
	display: flex; align-items: center; justify-content: center; font-size: 14px;
}

.fges-x-body { padding: 0 14px 10px; }
.fges-x-av {
	width: 62px; height: 62px; font-size: 24px;
	border: 3px solid #fff; margin-top: -31px;
}

.fges-x-nameline { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.fges-x-name { font-size: 17px; font-weight: 800; }
.fges-x-verify {
	flex: none; font-size: 10px; font-weight: 700; color: #0f1419;
	border: 1px solid #cfd9de; border-radius: 100px; padding: 2px 7px;
}
.fges-x-handle { font-size: 12.5px; color: #536471; margin-top: 1px; }
.fges-x-bio    { font-size: 12.5px; margin-top: 8px; line-height: 1.4; }
.fges-x-meta   { font-size: 11.5px; color: #536471; margin-top: 7px; }
.fges-x-counts { font-size: 12px; color: #536471; margin-top: 7px; }
.fges-x-counts b { color: #0f1419; font-weight: 700; }

.fges-x-btns { display: flex; gap: 7px; margin-top: 11px; }
.fges-x-btns span {
	flex: 1; text-align: center; border: 1px solid #cfd9de; border-radius: 100px;
	padding: 6px 0; font-size: 12px; font-weight: 700;
}

.fges-x-tabs { display: flex; border-bottom: 1px solid #eff3f4; margin-top: 4px; }
.fges-x-tabs span {
	flex: 1; text-align: center; padding: 11px 0; font-size: 12px;
	font-weight: 600; color: #536471; position: relative;
}
.fges-x-tabs .on { color: #0f1419; font-weight: 800; }
.fges-x-tabs .on::after {
	content: ''; position: absolute; left: 50%; transform: translateX(-50%);
	bottom: 0; width: 42px; height: 3.4px; background: #1d9bf0; border-radius: 100px;
}

/* ═══ FACEBOOK ═══ */
.fges-fb { background: #fff; color: #050505; }

.fges-fb-cover {
	position: relative; height: 96px;
	background: linear-gradient(120deg, #1e3a8a, #1877f2);
	display: flex; align-items: flex-start; justify-content: space-between; padding: 10px 12px;
}

.fges-fb-body { padding: 0 16px 12px; text-align: center; }
.fges-fb-av {
	width: 84px; height: 84px; font-size: 33px;
	border: 4px solid #fff; margin: -44px auto 0;
}

.fges-fb-name { font-size: 19px; font-weight: 800; margin-top: 8px; }
.fges-fb-meta { font-size: 12px; color: #65676b; margin-top: 3px; }
.fges-fb-bio  { font-size: 12.5px; margin-top: 8px; line-height: 1.4; }

.fges-fb-btns { display: flex; gap: 7px; margin-top: 12px; }
.fges-fb-btns span {
	flex: 1; text-align: center; background: #e4e6eb; border-radius: 7px;
	padding: 8px 0; font-size: 12.5px; font-weight: 700;
}
.fges-fb-btns .pri { background: #1877f2; color: #fff; }

.fges-fb-tabs { display: flex; gap: 8px; margin-top: 14px; }
.fges-fb-tabs span {
	padding: 6px 15px; border-radius: 100px; font-size: 12.5px;
	font-weight: 600; color: #65676b; background: #f0f2f5;
}
.fges-fb-tabs .on { background: #e7f3ff; color: #1877f2; }

.fges-fb-sec  { text-align: left; font-size: 15px; font-weight: 800; margin-top: 16px; }
.fges-fb-link { text-align: left; font-size: 12.5px; color: #1877f2; margin-top: 6px; }

.fges-social-foot {
	flex: none;
	padding: 0 22px 18px;
	font-size: 11.5px;
	color: var(--fges-text-3);
}

.fges-social-foot a { color: var(--fges-accent); }

@media (max-width: 600px) {
	.fges-toggle-social { margin-left: 0; }
	.fges-social-modal { width: 100vw; max-height: 100vh; border-radius: 0; }
	.fges-social-strip { padding: 16px 14px 20px; gap: 14px; }
	.fges-phone { width: min(280px, 82vw); }
}


/* ─── DECORATION PULSE ──────────────────────────────────────
   Flipping Text Decoration rebuilds every card at once, which without
   feedback just looks like a flicker. A staggered lift plus a sheen
   sweeping left to right makes the change feel deliberate — the eye
   follows the wave across the grid instead of being startled by it.
   Index comes from --fges-i, set per card by the script. */
@keyframes fges-decor-pop {
	0%   { transform: translateY(0) scale(1); }
	30%  { transform: translateY(-7px) scale(1.025); }
	58%  { transform: translateY(2px) scale(0.996); }
	100% { transform: translateY(0) scale(1); }
}

@keyframes fges-decor-glow {
	0%, 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
	35%      { box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.30),
	                       0 16px 34px -16px rgba(139, 92, 246, 0.55); }
}

@keyframes fges-sheen {
	from { background-position: -140% 0; }
	to   { background-position: 240% 0; }
}

.fges-app.fges-pulse .fges-card {
	animation: fges-decor-pop 0.62s cubic-bezier(0.34, 1.5, 0.64, 1) both,
	           fges-decor-glow 0.62s ease both;
	animation-delay: calc(var(--fges-i, 0) * 26ms);
}

.fges-app.fges-pulse .fges-card-preview {
	background-image: linear-gradient(100deg,
		transparent 35%, rgba(139, 92, 246, 0.20) 50%, transparent 65%);
	background-size: 240% 100%;
	background-repeat: no-repeat;
	animation: fges-sheen 0.9s ease both;
	animation-delay: calc(var(--fges-i, 0) * 26ms);
}

.fges-app.fges-pulse.fges-pulse-game .fges-card {
	animation: fges-decor-pop 0.62s cubic-bezier(0.34, 1.5, 0.64, 1) both,
	           fges-decor-glow-game 0.62s ease both;
	animation-delay: calc(var(--fges-i, 0) * 26ms);
}

@keyframes fges-decor-glow-game {
	0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
	35%      { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.30),
	                       0 16px 34px -16px rgba(16, 185, 129, 0.55); }
}

/* the button itself should feel clicked */
.fges-toggle:active { transform: scale(0.94); }

@keyframes fges-glyph-spin {
	0%   { transform: rotate(0deg) scale(1); }
	50%  { transform: rotate(180deg) scale(1.4); }
	100% { transform: rotate(360deg) scale(1); }
}

@keyframes fges-ring {
	from { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.55); }
	to   { box-shadow: 0 0 0 15px rgba(99, 102, 241, 0); }
}

.fges-toggle.fges-fired .fges-toggle-glyph {
	animation: fges-glyph-spin 0.6s cubic-bezier(0.34, 1.5, 0.64, 1);
	display: inline-block;
}

.fges-toggle.fges-fired .fges-toggle-dot { animation: fges-ring 0.7s ease-out; }

@media (prefers-reduced-motion: reduce) {
	.fges-app.fges-pulse .fges-card,
	.fges-app.fges-pulse .fges-card-preview,
	.fges-toggle.fges-fired .fges-toggle-glyph,
	.fges-toggle.fges-fired .fges-toggle-dot { animation: none !important; }
}

/* ─── AD SLOTS ──────────────────────────────────────────────
   Full-row slots dealt into the grid at fixed card positions. They span
   every column and carry a visible label, so they never read as another
   copyable card — which is both better for the visitor and the safer
   side of AdSense's accidental-click policy. */
.fges-ad-slot {
	grid-column: 1 / -1;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100px;
	padding: 26px 14px 14px;
	margin: 4px 0;
	background: var(--fges-surface-2);
	border: 1px solid var(--fges-border);
	border-radius: var(--fges-radius-lg);
	overflow: hidden;
}

.fges-ad-slot::before {
	content: attr(data-label);
	position: absolute;
	top: 8px;
	left: 14px;
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--fges-text-3);
}

.fges-ad-slot > * { max-width: 100%; }

.fges-ad-empty {
	font-size: 12px;
	color: var(--fges-text-3);
	font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════════
   NAVEGADOR DE NOMBRES  (/es/nombres-para-free-fire/ y subcategorías)
   Mismo lenguaje visual que la herramienta: chips arriba, rejilla de
   tarjetas que se copian al tocarlas.
   ═══════════════════════════════════════════════════════════════════ */

.fges-names {
	margin: 22px 0 8px;
	position: relative;
}

.fges-names.is-loading { opacity: .55; pointer-events: none; }

.fges-names-chips {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 2px 2px 12px;
	-webkit-overflow-scrolling: touch;
}

.fges-names-chips::-webkit-scrollbar { display: none; }

.fges-names-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border: 1px solid var(--fges-line, #e6e8f0);
	border-radius: 999px;
	background: #fff;
	color: #3d4159;
	font-size: 14.5px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.fges-names-chip:hover { border-color: #cfc4f6; color: #5b2fc4; }

.fges-names-chip.is-active {
	background: var(--fges-primary, #7440e6);
	border-color: var(--fges-primary, #7440e6);
	color: #fff;
}

.fges-names-n {
	font-size: 11.5px;
	font-weight: 600;
	opacity: .7;
}

.fges-names-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 2px 14px;
}

.fges-names-status { font-size: 12.5px; color: #8b90a6; }

.fges-names-shuffle {
	border: 1px solid var(--fges-line, #e6e8f0);
	background: #fff;
	border-radius: 999px;
	padding: 7px 15px;
	font: inherit;
	font-size: 13.5px;
	color: #3d4159;
	cursor: pointer;
}

.fges-names-shuffle:hover { border-color: #cfc4f6; color: #5b2fc4; }

.fges-names-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.fges-name-card {
	border: 1px solid #f0f1f7;
	background: #fff;
	border-radius: 12px;
	padding: 16px 14px;
	font: inherit;
	font-size: 19px;
	line-height: 1.45;
	color: #14172b;
	text-align: center;
	cursor: pointer;
	word-break: break-word;
	overflow-wrap: anywhere;
	transition: border-color .15s ease, box-shadow .18s ease, transform .15s ease;
}

.fges-name-card:hover {
	border-color: #ddd3fa;
	box-shadow: 0 14px 30px -20px rgba(20, 23, 43, .5);
	transform: translateY(-2px);
}

.fges-name-card.is-copied {
	border-color: #17914f;
	background: #f2fdf7;
}

.fges-names-more-wrap { text-align: center; margin: 20px 0 4px; }

.fges-names-more {
	border: 0;
	background: var(--fges-primary, #7440e6);
	color: #fff;
	border-radius: 999px;
	padding: 12px 28px;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.fges-names-more:disabled { opacity: .6; cursor: default; }

@media (max-width: 1023px) {
	.fges-names-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
	.fges-names-grid { grid-template-columns: 1fr; gap: 10px; }
	.fges-name-card { font-size: 18px; padding: 14px 12px; }
	.fges-names-status { display: none; }
	.fges-names-bar { justify-content: flex-end; }
}


/* ── Contador de caracteres del nick ──────────────────────────────────
   Free Fire admite 12 caracteres contando los símbolos del decorado.
   El número se pone en rojo cuando el apodo no cabría. */

.fges-name-card { position: relative; }

.fges-name-len {
	position: absolute;
	top: 6px;
	right: 8px;
	font-size: 10.5px;
	font-weight: 600;
	color: #a2a7bb;
	background: #f2f3f9;
	border-radius: 999px;
	padding: 1px 7px;
	line-height: 1.6;
}

.fges-name-len.is-over { color: #b32d2e; background: #fdeeee; }

/* ── Armadura frente al tema ──────────────────────────────────────────
   Algunos temas (Neve entre ellos) estilan `button` y `a` con selectores
   agresivos. Estas reglas van al final y llevan la clase raíz delante para
   ganar por especificidad sin recurrir a !important. */

.fges-app button.fges-pill,
.fges-app button.fges-toggle,
.fges-app button.fges-card,
.fges-app button.fges-copy-btn,
.fges-names button.fges-name-card,
.fges-names button.fges-names-more,
.fges-names button.fges-names-shuffle,
.fges-names a.fges-names-chip {
	font-family: inherit;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	text-shadow: none;
	min-height: 0;
	width: auto;
}

.fges-app button.fges-pill:hover,
.fges-app button.fges-toggle:hover,
.fges-names a.fges-names-chip:hover { text-decoration: none; }

/* ── Riel de subcategorías (base de nombres) ──────────────────────────
   Aparece bajo el riel de categorías cuando se entra en Free Fire.
   Mismo lenguaje que las píldoras, un punto más pequeño. */

.fges-subrail-wrap {
	margin: 2px 0 0;
	padding: 0 0 2px;
}

.fges-subrail {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	scrollbar-width: none;
	padding: 6px 2px 8px;
	-webkit-overflow-scrolling: touch;
}

.fges-subrail::-webkit-scrollbar { display: none; }

.fges-subpill {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--fges-line, #e6e8f0);
	background: #fff;
	color: #3d4159;
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	padding: 6px 13px;
	border-radius: 999px;
	white-space: nowrap;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.fges-subpill:hover { border-color: #cfc4f6; color: #5b2fc4; }

.fges-subpill.active {
	background: var(--fges-primary, #7440e6);
	border-color: var(--fges-primary, #7440e6);
	color: #fff;
}

.fges-subpill-n {
	font-size: 11px;
	font-weight: 600;
	opacity: .65;
}

.fges-app.fges-loading .fges-grid { opacity: .5; transition: opacity .15s ease; }

/* La tarjeta de nombre reutiliza .fges-card; solo cambia que el nick es
   fijo, así que el contador va arriba a la derecha en lugar del botón. */
.fges-card-name-item { position: relative; }
.fges-card-name-item .fges-name-len { position: static; margin-left: auto; }
