/* letras-generator — companion tools (símbolos grids + text utilities). Editorial, theme-aware. */
.lbt {
	--lbt-ink: #1A1A1E;
	--lbt-muted: #6B6B73;
	--lbt-line: #E5E5E9;
	--lbt-accent: #A62D52;
	--lbt-accent-soft: #F3E3E8;
	--lbt-surface: #FFFFFF;
	--lbt-surface-2: #F1F1F4;
	max-width: 900px;
	margin: 22px auto;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: var(--lbt-ink);
}

/* ---- symbol / emoji / kaomoji grids ---- */
.lbt-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 8px;
}
.lbt-grid-wide {
	grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
}
.lbt-cell {
	appearance: none;
	border: 1px solid var(--lbt-line);
	background: var(--lbt-surface);
	border-radius: 12px;
	min-height: 52px;
	padding: 6px 8px;
	font-size: 22px;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .12s ease, border-color .12s ease, background .12s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	white-space: nowrap;
}
.lbt-grid-wide .lbt-cell {
	font-size: 15px;
}
.lbt-cell:hover {
	border-color: var(--lbt-accent);
	transform: translateY(-2px);
}
.lbt-cell.done {
	background: var(--lbt-accent-soft);
	border-color: var(--lbt-accent);
	color: var(--lbt-accent);
}

/* ---- text-utility widgets ---- */
.lbt-input {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--lbt-line);
	border-radius: 14px;
	background: var(--lbt-surface);
	color: var(--lbt-ink);
	padding: 14px 16px;
	font-size: 17px;
	line-height: 1.5;
	font-family: inherit;
	resize: vertical;
	caret-color: var(--lbt-accent);
}
.lbt-input:focus,
.lbt-input:focus-visible {
	outline: none;
	border-color: var(--lbt-accent);
	box-shadow: 0 0 0 3px var(--lbt-accent-soft);
}
.lbt-out {
	background: var(--lbt-surface-2);
	margin-top: 12px;
}
.lbt-num {
	margin-bottom: 6px;
}
.lbt-btnrow {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.lbt-btn {
	appearance: none;
	border: 1px solid var(--lbt-line);
	background: var(--lbt-surface);
	color: var(--lbt-ink);
	border-radius: 999px;
	padding: 9px 16px;
	font-size: 14px;
	font-family: inherit;
	cursor: pointer;
	transition: border-color .12s ease, background .12s ease, color .12s ease;
}
.lbt-btn:hover {
	border-color: var(--lbt-accent);
	color: var(--lbt-accent);
}
.lbt-copy {
	background: var(--lbt-accent);
	border-color: var(--lbt-accent);
	color: #fff;
}
.lbt-copy:hover {
	color: #fff;
	filter: brightness(1.06);
}
.lbt-note {
	color: var(--lbt-muted);
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

/* ---- counter stats ---- */
.lbt-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 10px;
	margin-top: 14px;
}
.lbt-stat {
	border: 1px solid var(--lbt-line);
	border-radius: 14px;
	background: var(--lbt-surface-2);
	padding: 14px 12px;
	text-align: center;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.lbt-stat-n {
	font-size: 24px;
	font-weight: 700;
	color: var(--lbt-accent);
	font-variant-numeric: tabular-nums;
}
.lbt-stat-l {
	font-size: 12px;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--lbt-muted);
}

/* ---- num2words output ---- */
.lbt-num-out {
	min-height: 28px;
	margin-top: 10px;
	font-size: 19px;
	line-height: 1.5;
	color: var(--lbt-ink);
	font-family: ui-serif, Georgia, "Times New Roman", serif;
}

/* ---- toast ---- */
.lbt-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	transform: translate(-50%, 16px);
	background: var(--lbt-ink);
	color: #fff;
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-family: system-ui, sans-serif;
	opacity: 0;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease;
	z-index: 9999;
}
.lbt-toast.show {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---- dark theme ---- */
@media (prefers-color-scheme: dark) {
	.lbt {
		--lbt-ink: #EFEAE3;
		--lbt-muted: #A79E93;
		--lbt-line: #3A342E;
		--lbt-accent: #E98AA8;
		--lbt-accent-soft: #3A2530;
		--lbt-surface: #211D1A;
		--lbt-surface-2: #1A1613;
	}
}
:root[data-theme="dark"] .lbt {
	--lbt-ink: #EFEAE3;
	--lbt-muted: #A79E93;
	--lbt-line: #3A342E;
	--lbt-accent: #E98AA8;
	--lbt-accent-soft: #3A2530;
	--lbt-surface: #211D1A;
	--lbt-surface-2: #1A1613;
}
:root[data-theme="light"] .lbt {
	--lbt-ink: #1A1A1E;
	--lbt-muted: #6B6B73;
	--lbt-line: #E5E5E9;
	--lbt-accent: #A62D52;
	--lbt-accent-soft: #F3E3E8;
	--lbt-surface: #FFFFFF;
	--lbt-surface-2: #F1F1F4;
}
/* copy button: white text on dark berry (light theme); dark text on light pink (dark theme) */
.lbt-copy { color: #fff; }
@media (prefers-color-scheme: dark) {
	.lbt-copy { color: #1A1613; }
}
:root[data-theme="light"] .lbt-copy { color: #fff; }
:root[data-theme="dark"] .lbt-copy { color: #1A1613; }
