/* Gratitude Generator — scoped under .ggen so it doesn't fight the theme */
.ggen {
	--ggen-ink: #2b2140;
	--ggen-soft: #6b6280;
	--ggen-sky: #eef3ff;
	--ggen-sun: #fff4d6;
	--ggen-mint: #e6f7ef;
	--ggen-accent: #5b3fd1;
	--ggen-accent-2: #ff8a3d;
	box-sizing: border-box;
	max-width: 860px;
	margin: 0 auto;
	padding: 28px 18px 32px;
	color: var(--ggen-ink);
	font-family: "Nunito", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.5;
	background: linear-gradient(180deg, #f3efff 0%, #fdf8ee 100%);
	border-radius: 24px;
}
.ggen *, .ggen *::before, .ggen *::after { box-sizing: border-box; }

.ggen-hero { text-align: center; margin-bottom: 18px; }
.ggen .ggen-title {
	margin: 0 0 8px;
	font-size: clamp(1.7rem, 4.5vw, 2.6rem);
	line-height: 1.15;
	font-weight: 800;
	color: var(--ggen-ink);
}
.ggen-subtitle { margin: 0 auto; max-width: 560px; font-size: 1.05rem; color: var(--ggen-soft); }

.ggen-chips-label { text-align: center; font-weight: 700; font-size: .95rem; color: var(--ggen-soft); margin: 6px 0 8px; }
.ggen-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.ggen .ggen-chip {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 8px 14px;
	border: 2px solid rgba(43, 33, 64, .12);
	border-radius: 999px;
	background: #fff;
	color: var(--ggen-ink);
	font: inherit; font-size: .95rem; font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
	transition: transform .12s, background .12s, border-color .12s;
}
.ggen .ggen-chip:hover { transform: translateY(-1px); background: #faf8ff; }
.ggen .ggen-chip[aria-pressed="true"] { background: var(--ggen-accent); border-color: var(--ggen-accent); color: #fff; }

.ggen-go-wrap { text-align: center; margin-bottom: 22px; }
.ggen .ggen-go {
	padding: 16px 28px;
	border: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, var(--ggen-accent) 0%, #8a3fd1 55%, var(--ggen-accent-2) 100%);
	color: #fff;
	font: inherit; font-size: 1.2rem; font-weight: 800;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(91, 63, 209, .35);
	transition: transform .15s, box-shadow .15s;
}
.ggen .ggen-go:hover { transform: scale(1.04); box-shadow: 0 8px 20px rgba(91, 63, 209, .45); }
.ggen .ggen-go:disabled { opacity: .7; transform: none; cursor: default; }
.ggen .ggen-go:focus-visible, .ggen .ggen-chip:focus-visible, .ggen .ggen-btn:focus-visible { outline: 3px solid var(--ggen-accent-2); outline-offset: 2px; }

.ggen-stage { min-height: 220px; }
.ggen-placeholder, .ggen-shuffle {
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	min-height: 220px;
	background: rgba(255, 255, 255, .6);
	border: 3px dashed rgba(91, 63, 209, .25);
	border-radius: 20px;
	color: var(--ggen-soft);
	font-weight: 600;
}
.ggen-placeholder p { margin: 6px 0 0; }
.ggen-placeholder-emoji { font-size: 3.5rem; animation: ggen-bob 2.4s ease-in-out infinite; }
.ggen-shuffle-emoji { font-size: 5rem; line-height: 1; }

.ggen-card {
	background: #fff;
	border-radius: 22px;
	padding: 22px 22px 18px;
	box-shadow: 0 10px 30px rgba(43, 33, 64, .12);
	animation: ggen-pop .45s cubic-bezier(.2, 1.3, .4, 1);
}
.ggen-card-top { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.ggen-emoji {
	flex: 0 0 auto;
	width: 96px; height: 96px;
	display: flex; align-items: center; justify-content: center;
	font-size: 3.6rem; line-height: 1;
	background: var(--ggen-sky);
	border-radius: 24px;
}
.ggen-head { min-width: 0; }
.ggen-cat {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--ggen-sky);
	color: var(--ggen-accent);
	font-size: .8rem; font-weight: 700;
	margin-bottom: 4px;
}
.ggen-thanks { font-size: .95rem; color: var(--ggen-soft); font-weight: 600; }
.ggen .ggen-item { margin: 0; font-size: clamp(1.5rem, 4vw, 2.1rem); line-height: 1.15; font-weight: 800; color: var(--ggen-ink); }

.ggen .ggen-verse {
	margin: 0 0 14px;
	padding: 14px 16px 12px 18px;
	border: 0;
	border-left: 5px solid var(--ggen-accent);
	background: #faf8ff;
	border-radius: 0 14px 14px 0;
	font-style: normal;
	quotes: none;
}
.ggen .ggen-verse::before, .ggen .ggen-verse::after { content: none; }
.ggen .ggen-verse-text { margin: 0 0 6px; font-family: Georgia, "Times New Roman", serif; font-size: 1.2rem; line-height: 1.55; color: var(--ggen-ink); }
.ggen .ggen-ref { display: block; font-style: normal; font-weight: 700; font-size: .95rem; color: var(--ggen-accent); }
.ggen .ggen-ref a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.ggen-box { border-radius: 14px; padding: 10px 14px; margin-bottom: 10px; }
.ggen-box p { margin: 2px 0 0; font-size: 1.05rem; }
.ggen-box-label { font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.ggen-wow { background: var(--ggen-sun); }
.ggen-wow .ggen-box-label { color: #a05a00; }
.ggen-prayer { background: var(--ggen-mint); }
.ggen-prayer .ggen-box-label { color: #1d7a4f; }
.ggen-prayer p { font-style: italic; }
.ggen-also { margin: 4px 0 0; font-size: .9rem; color: var(--ggen-soft); }

.ggen-actions { display: flex; justify-content: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.ggen .ggen-btn {
	padding: 9px 18px;
	border: 2px solid rgba(43, 33, 64, .12);
	border-radius: 12px;
	background: #fff;
	color: var(--ggen-ink);
	font: inherit; font-weight: 700; font-size: 1rem;
	cursor: pointer;
}
.ggen .ggen-btn:hover { background: var(--ggen-sky); }
.ggen .ggen-btn-next { background: var(--ggen-accent); border-color: var(--ggen-accent); color: #fff; }
.ggen .ggen-btn-next:hover { background: #4a30b8; }

.ggen-progress { text-align: center; margin-top: 16px; font-size: .95rem; font-weight: 600; color: var(--ggen-soft); }

@keyframes ggen-pop { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ggen-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
	.ggen-card, .ggen-placeholder-emoji { animation: none; }
}
@media (max-width: 520px) {
	.ggen { padding: 20px 12px 24px; border-radius: 16px; }
	.ggen-card { padding: 16px 14px 14px; }
	.ggen-emoji { width: 72px; height: 72px; font-size: 2.7rem; border-radius: 18px; }
	.ggen .ggen-verse-text { font-size: 1.08rem; }
}
