/* Rosenburg Bloom Garden — game styles.
 * Scoped entirely under .rbg-* so it never fights the host theme.
 */

.rbg-game {
	--rbg-ink: #2e3d2e;
	--rbg-ink-soft: #5c6f5c;
	--rbg-card: rgba(255, 255, 255, 0.86);
	--rbg-card-solid: #ffffff;
	--rbg-green: #4d8c4f;
	--rbg-green-dark: #3a6e3c;
	--rbg-gold: #f2b33d;
	--rbg-danger: #c94f4f;
	--rbg-blue: #3e7fc9;
	--rbg-radius: 18px;

	box-sizing: border-box;
	color: var(--rbg-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.45;
	margin: 1.5em auto;
	max-width: 720px;
	width: 100%;
	max-width: 100%;
}
.rbg-game *,
.rbg-game *::before,
.rbg-game *::after { box-sizing: border-box; }

.rbg-app {
	background:
		linear-gradient(180deg, #bfe5ff 0%, #d9f2f7 34%, #e9f7d8 62%, #cfe8b4 100%);
	border: 1px solid rgba(100, 160, 110, 0.35);
	border-radius: 26px;
	box-shadow: 0 18px 45px rgba(50, 90, 60, 0.25);
	overflow: hidden;
	padding: 18px 18px 22px;
}

/* ---------- Header ---------- */
.rbg-header {
	align-items: flex-start;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: space-between;
	margin-bottom: 12px;
}
.rbg-title {
	color: #2d5a33;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0;
}
.rbg-sub { color: var(--rbg-ink-soft); font-size: 0.82rem; margin: 2px 0 0; }

.rbg-day-badge {
	align-items: center;
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid rgba(90, 150, 100, 0.4);
	border-radius: 999px;
	display: flex;
	font-size: 0.85rem;
	font-weight: 700;
	gap: 8px;
	padding: 6px 14px;
}
.rbg-day-num { color: var(--rbg-green-dark); }
.rbg-clock { color: var(--rbg-blue); font-variant-numeric: tabular-nums; }
.rbg-clock.ready { color: var(--rbg-green-dark); font-weight: 800; }

/* Health bar */
.rbg-health { margin: 4px 0 14px; }
.rbg-health-label {
	display: flex;
	font-size: 0.78rem;
	font-weight: 600;
	justify-content: space-between;
	margin-bottom: 4px;
}
.rbg-health-track {
	background: rgba(255, 255, 255, 0.6);
	border: 1px solid rgba(90, 150, 100, 0.4);
	border-radius: 999px;
	height: 12px;
	overflow: hidden;
	position: relative;
}
.rbg-health-fill {
	background: linear-gradient(90deg, #8fd18f, #4d9c50 55%, #2f7a32);
	border-radius: 999px;
	height: 100%;
	transition: width 0.5s ease;
}
.rbg-health-fill.mid { background: linear-gradient(90deg, #f2cf6b, #e5a93f); }
.rbg-health-fill.low { background: linear-gradient(90deg, #e58f6b, #c94f4f); }

/* ---------- Resource chips ---------- */
.rbg-res {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}
.rbg-chip {
	background: var(--rbg-card);
	border: 1px solid rgba(90, 150, 100, 0.35);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	padding: 4px 11px;
}
.rbg-chip .n { color: var(--rbg-green-dark); font-weight: 800; }
.rbg-chip.zero { opacity: 0.45; }

/* ---------- Jasmine — the little gardener ---------- */
.rbg-title-row { align-items: center; display: flex; gap: 10px; }
.rbg-avatar {
	animation: rbg-bob 3.6s ease-in-out infinite;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 3px 10px rgba(120, 60, 90, 0.25);
	flex: none;
	height: 46px;
	object-fit: cover;
	object-position: top center;
	width: 46px;
}
.rbg-moment {
	align-items: center;
	animation: rbg-rise 0.45s ease both;
	background: linear-gradient(120deg, #fff8ef 0%, #fdf0f7 60%, #eef6ff 100%);
	border: 1px solid rgba(230, 150, 190, 0.35);
	border-radius: 18px;
	box-shadow: 0 6px 16px rgba(180, 90, 130, 0.14);
	display: flex;
	gap: 14px;
	margin-bottom: 12px;
	padding: 10px 14px;
}
.rbg-moment-img {
	animation: rbg-bob 3.2s ease-in-out infinite;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 16px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
	flex: none;
	height: 92px;
	object-fit: cover;
	object-position: top center;
	width: 92px;
}
.rbg-moment .m-emo {
	align-items: center;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 16px;
	display: flex;
	flex: none;
	font-size: 2.2rem;
	height: 92px;
	justify-content: center;
	width: 92px;
}
.rbg-moment .m-t { color: #7a2f52; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.01em; }
.rbg-moment .m-d { color: #8a6b7a; font-size: 0.8rem; margin-top: 2px; }

/* Jasmine advice rows */
.rbg-advice {
	align-items: flex-start;
	animation: rbg-rise 0.4s ease both;
	display: flex;
	gap: 9px;
	padding: 6px 0;
}
.rbg-advice .rbg-hint { margin: 2px 0 0; }
.rbg-jay {
	animation: rbg-bob 4s ease-in-out infinite;
	background: #fff;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 2px 7px rgba(120, 60, 90, 0.22);
	flex: none;
	height: 34px;
	object-fit: cover;
	object-position: top center;
	width: 34px;
}

@keyframes rbg-rise {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Confetti on bloom day */
.rbg-confetti {
	border-radius: var(--rbg-radius);
	inset: 0;
	overflow: hidden;
	pointer-events: none;
	position: absolute;
	z-index: 5;
}
.rbg-confetti .cf {
	animation: rbg-cf 3.4s linear infinite;
	border-radius: 2px;
	height: 13px;
	position: absolute;
	top: -16px;
	width: 8px;
}
@keyframes rbg-cf {
	0% { opacity: 0; transform: translateY(0) rotate(0deg); }
	10% { opacity: 1; }
	100% { opacity: 0; transform: translateY(480px) rotate(660deg); }
}
.rbg-final-jay {
	animation: rbg-bob 3.2s ease-in-out infinite;
	background: #fff;
	border: 3px solid #fff;
	border-radius: 22px;
	box-shadow: 0 8px 22px rgba(120, 60, 90, 0.28);
	display: block;
	height: 150px;
	margin: 4px auto 0;
	object-fit: cover;
	object-position: top center;
	width: 150px;
}

/* ---------- Jasmine actor — she walks out and does the chore ---------- */
.jactor-wrap {
	bottom: 44px;
	height: 132px;
	left: calc(50% + 32px);
	opacity: 0;
	pointer-events: none;
	position: absolute;
	width: 120px;
	z-index: 9;
}
.jactor-wrap .jactor-img {
	bottom: 0;
	height: 132px;
	left: 0;
	max-width: none;
	position: absolute;
	transform-origin: 50% 100%;
	width: auto;
}
.jactor-wrap::after {
	background: radial-gradient(ellipse at center, rgba(70, 45, 20, 0.4) 0%, rgba(70, 45, 20, 0) 72%);
	bottom: -5px;
	content: "";
	height: 15px;
	left: 8%;
	position: absolute;
	width: 84%;
	z-index: -1;
}
.jactor-wrap.walk-in { animation: jwalk-in 1.1s cubic-bezier(0.3, 0.5, 0.4, 1) forwards; }
.jactor-wrap.walk-in .jactor-img { animation: jhop 0.26s ease-in-out infinite alternate; }
@keyframes jwalk-in {
	0% { opacity: 0; transform: translateX(-220px); }
	14% { opacity: 1; }
	100% { opacity: 1; transform: translateX(0); }
}
@keyframes jhop {
	from { transform: translateY(0) rotate(-3deg); }
	to { transform: translateY(-6px) rotate(3deg); }
}
.jactor-wrap.stand .jactor-img { animation: none; transform: scaleX(-1) rotate(0deg) translateY(-2px); }
.jactor-wrap.doing .jactor-img { animation: jsway 1.1s ease-in-out infinite alternate; }
@keyframes jsway {
	from { transform: scaleX(-1) rotate(-4deg); }
	to { transform: scaleX(-1) rotate(4deg); }
}
.jactor-wrap.doing.water .jactor-img { animation: jpour 0.85s ease-in-out infinite alternate; }
@keyframes jpour {
	from { transform: scaleX(-1) rotate(-11deg) translateY(0); }
	to { transform: scaleX(-1) rotate(-7deg) translateY(-2px); }
}
.jactor-wrap.doing.weed .jactor-img { animation: jpull 0.7s ease-in-out infinite alternate; }
@keyframes jpull {
	from { transform: scaleX(-1) rotate(6deg) translateY(0); }
	to { transform: scaleX(-1) rotate(10deg) translateY(4px); }
}
.jactor-wrap.walk-out { animation: jwalk-out 0.9s ease-in forwards; }
@keyframes jwalk-out {
	0% { opacity: 1; transform: translateX(0); }
	85% { opacity: 1; }
	100% { opacity: 0; transform: translateX(215px); }
}

/* Task effects pinned to the garden scene */
.jfx { pointer-events: none; position: absolute; z-index: 7; }
.jfx-drop {
	animation: jfx-fall 0.7s ease-in forwards;
	color: #7cc0f2;
	font-size: 12px;
	top: 20px;
}
@keyframes jfx-fall {
	0% { opacity: 1; transform: translateY(0); }
	100% { opacity: 0; transform: translateY(92px); }
}
.jfx-grain {
	animation: jfx-grain 1s ease-out forwards;
	border-radius: 50%;
	position: absolute;
	top: 18px;
}
@keyframes jfx-grain {
	0% { opacity: 1; transform: translateY(0) scale(1); }
	100% { opacity: 0; transform: translateY(84px) scale(0.5); }
}
.jfx-burst {
	animation: jfx-burst 0.9s ease-out forwards;
	position: absolute;
}
@keyframes jfx-burst {
	0% { opacity: 0; transform: scale(0.3); }
	20% { opacity: 1; }
	100% { opacity: 0; transform: scale(1.7) translateY(-16px); }
}
.rbg-weed-ico.shake { animation: weed-shake 0.5s ease-in-out 3; }
@keyframes weed-shake {
	0%, 100% { transform: rotate(0deg); }
	30% { transform: rotate(-10deg); }
	70% { transform: rotate(10deg); }
}
.rbg-pest-ico.blink { animation: bug-blink 0.5s steps(2) 3; }
@keyframes bug-blink { 50% { opacity: 0.2; } }

/* ---------- Garden scene ---------- */
.rbg-scene {
	border: 1px solid rgba(100, 160, 110, 0.35);
	border-radius: var(--rbg-radius);
	height: 240px;
	overflow: hidden;
	position: relative;
	background: linear-gradient(180deg, #bfe5ff 0%, #d9f2f7 55%, #c6e2b0 100%);
}
.rbg-sun {
	border-radius: 50%;
	box-shadow: 0 0 26px 10px rgba(255, 220, 120, 0.55);
	height: 46px;
	position: absolute;
	top: 16px;
	transition: left 0.6s ease, opacity 0.6s ease;
	width: 46px;
}
.rbg-sun.pos-full { left: calc(100% - 70px); }
.rbg-sun.pos-partial { left: calc(50% - 23px); }
.rbg-sun.pos-shade { left: 18px; }
.rbg-sun.off { opacity: 0.2; }

.rbg-cloud {
	background: rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	height: 14px;
	opacity: 0.8;
	position: absolute;
	width: 54px;
}
.rbg-cloud::after {
	background: rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	content: "";
	height: 20px;
	left: 10px;
	position: absolute;
	top: -9px;
	width: 26px;
}
.rbg-cloud.c1 { left: 12%; top: 22px; }
.rbg-cloud.c2 { left: 72%; top: 52px; transform: scale(0.75); }

.rbg-soil {
	bottom: 0;
	height: 88px;
	left: -8%;
	position: absolute;
	width: 116%;
}
.rbg-soil .top {
	background: linear-gradient(180deg, #8a6b4a 0%, #6f5236 100%);
	border-radius: 46% 46% 0 0 / 55% 55% 0 0;
	height: 74px;
	position: absolute;
	top: 6px;
	width: 100%;
}
.rbg-soil .deep {
	background: linear-gradient(180deg, #6f5236 0%, #4a341f 100%);
	bottom: 0;
	height: 26px;
	position: absolute;
	width: 100%;
}
.rbg-soil .mulch {
	background: repeating-linear-gradient(90deg, #7a5a34 0 14px, #68492a 14px 28px, #5e4024 28px 42px);
	border-radius: 999px;
	height: 12px;
	left: 6%;
	opacity: 0.95;
	position: absolute;
	top: 34px;
	width: 88%;
}
.rbg-pest-ico {
	bottom: 52px;
	font-size: 22px;
	left: 22%;
	position: absolute;
}
.rbg-weed-ico {
	bottom: 58px;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2));
	font-size: 24px;
	right: 20%;
	position: absolute;
}
.rbg-drops {
	animation: rbg-fall 0.9s ease-in infinite;
	bottom: 96px;
	color: #7cc0f2;
	font-size: 15px;
	left: 42%;
	position: absolute;
}
.rbg-drops.d2 { animation-delay: 0.25s; left: 55%; }
.rbg-drops.d3 { animation-delay: 0.45s; left: 63%; }
@keyframes rbg-fall {
	0% { opacity: 0; transform: translateY(-14px); }
	45% { opacity: 1; }
	100% { opacity: 0; transform: translateY(10px); }
}

/* The plant grows from center */
.rbg-plant {
	align-items: center;
	bottom: 62px;
	display: flex;
	flex-direction: column;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
}
.rbg-plant .stem {
	background: linear-gradient(90deg, #3f8f4a 0%, #63b16a 45%, #3f8f4a 100%);
	border-radius: 6px;
	height: var(--sh, 10px);
	width: 9px;
}
.rbg-plant .leaf {
	background: radial-gradient(circle at 35% 35%, #7cc07f, #3f8f4a);
	border-radius: 70% 10% 70% 10%;
	height: 26px;
	position: absolute;
	width: 14px;
}
.rbg-plant .leaf.l1 { left: -16px; top: calc(var(--sh, 10px) * 0.45); transform: rotate(38deg); }
.rbg-plant .leaf.l2 { right: -16px; top: calc(var(--sh, 10px) * 0.2); transform: rotate(-38deg) scaleX(-1); }
.rbg-plant.stage-sprout .stem { --sh: 30px; }
.rbg-plant.stage-seedling .stem { --sh: 62px; }
.rbg-plant.stage-buds .stem { --sh: 86px; }
.rbg-plant.stage-bloom .stem, .rbg-plant.stage-wilt .stem { --sh: 104px; }
.rbg-plant.stage-sprout .leaf, .rbg-plant.stage-seedling .leaf,
.rbg-plant.stage-buds .leaf, .rbg-plant.stage-bloom .leaf, .rbg-plant.stage-wilt .leaf { display: block; }
.rbg-plant .leaf, .rbg-seed { display: none; }

.rbg-seed {
	background: radial-gradient(circle at 35% 30%, #caa06a, #8a5f33);
	border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
	height: 14px;
	width: 11px;
}
.rbg-plant.stage-seed .rbg-seed { display: block; }
.rbg-plant.stage-seed .stem { --sh: 6px; }

.rbg-bud {
	background: radial-gradient(circle at 40% 35%, var(--petal), var(--petal-dark));
	border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
	height: 16px;
	width: 13px;
}
.rbg-plant.stage-buds .rbg-bud { display: block; }
.rbg-bud { display: none; }

/* CSS-petalled bloom */
.rbg-bloom {
	background:
		conic-gradient(from 0deg,
			var(--petal) 0deg 58deg, #ffffff 58deg 122deg,
			var(--petal) 122deg 178deg, #ffffff 178deg 242deg,
			var(--petal) 242deg 298deg, #ffffff 298deg 360deg);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
	height: 74px;
	position: relative;
	width: 74px;
	animation: rbg-bob 3.4s ease-in-out infinite;
}
.rbg-bloom::after {
	background: radial-gradient(circle at 40% 35%, #ffe9a8, #f2b33d);
	border-radius: 50%;
	content: "";
	height: 20px;
	left: 50%;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 20px;
}
@keyframes rbg-bob {
	0%, 100% { transform: translateY(0) rotate(-3deg); }
	50% { transform: translateY(-7px) rotate(3deg); }
}
.rbg-bloom.wilted {
	animation: none;
	filter: grayscale(0.85) brightness(0.82);
	transform: rotate(14deg);
}

.rbg-stage-badge {
	background: rgba(255, 255, 255, 0.8);
	border-radius: 999px;
	bottom: 132px;
	font-size: 0.75rem;
	font-weight: 700;
	left: 50%;
	padding: 3px 12px;
	position: absolute;
	transform: translateX(-50%);
}

/* ---------- Panels ---------- */
.rbg-panel {
	background: var(--rbg-card);
	border: 1px solid rgba(90, 150, 100, 0.3);
	border-radius: var(--rbg-radius);
	margin-top: 14px;
	padding: 14px 16px;
}
.rbg-panel h3 {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	margin: 0 0 10px;
	text-transform: uppercase;
}
.rbg-hint { color: var(--rbg-ink-soft); font-size: 0.82rem; margin: 0 0 10px; }

.rbg-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.rbg-grid.three { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }

.rbg-opt {
	background: var(--rbg-card-solid);
	border: 2px solid rgba(90, 150, 100, 0.28);
	border-radius: 14px;
	cursor: pointer;
	font: inherit;
	padding: 10px 12px;
	text-align: left;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
	width: 100%;
}
.rbg-opt:hover { border-color: var(--rbg-green); transform: translateY(-2px); }
.rbg-opt.sel {
	border-color: var(--rbg-green-dark);
	box-shadow: 0 0 0 3px rgba(77, 140, 79, 0.22);
}
.rbg-opt.disabled { cursor: not-allowed; opacity: 0.5; }
.rbg-opt.disabled:hover { border-color: rgba(90, 150, 100, 0.28); transform: none; }

.rbg-opt .ico { display: block; font-size: 1.7rem; line-height: 1.15; }
.rbg-opt .t { display: block; font-weight: 700; margin-top: 4px; }
.rbg-opt .d { color: var(--rbg-ink-soft); display: block; font-size: 0.74rem; margin-top: 2px; }

/* Buttons */
.rbg-btn {
	background: var(--rbg-card-solid);
	border: 2px solid rgba(90, 150, 100, 0.4);
	border-radius: 12px;
	cursor: pointer;
	font: inherit;
	font-weight: 700;
	padding: 9px 14px;
	transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
.rbg-btn:hover { transform: translateY(-1px); }
.rbg-btn:active { transform: translateY(1px); }
.rbg-btn:disabled { cursor: not-allowed; opacity: 0.45; transform: none; }
.rbg-btn.primary {
	background: linear-gradient(180deg, #5aa55c, var(--rbg-green-dark));
	border-color: var(--rbg-green-dark);
	color: #fff;
}
.rbg-btn.ghost { border-color: rgba(90, 150, 100, 0.25); color: var(--rbg-ink-soft); }
.rbg-btn.warn { border-color: rgba(201, 79, 79, 0.55); color: var(--rbg-danger); }
.rbg-btn.big { font-size: 1rem; padding: 12px 22px; }

.rbg-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}
.rbg-row.center { justify-content: center; }
.rbg-btn { margin: 0; }

/* Gather list */
.rbg-gather-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.rbg-gather-item {
	background: var(--rbg-card-solid);
	border: 2px solid rgba(90, 150, 100, 0.22);
	border-radius: 12px;
	cursor: pointer;
	font: inherit;
	padding: 9px 11px;
	text-align: left;
}
.rbg-gather-item:hover:not(:disabled) { border-color: var(--rbg-green); }
.rbg-gather-item:disabled { cursor: not-allowed; opacity: 0.45; }
.rbg-gather-item .g-t { display: block; font-size: 0.86rem; font-weight: 700; }
.rbg-gather-item .g-d { color: var(--rbg-ink-soft); display: block; font-size: 0.74rem; }
.rbg-count { color: var(--rbg-blue); font-weight: 800; }

/* pH meter */
.rbg-meter { margin: 12px 0 4px; }
.rbg-meter-track {
	background: linear-gradient(90deg, #d95757 0%, #e8a24a 30%, #6fbf6f 50%, #4a8fd9 78%, #5a5ac9 100%);
	border-radius: 999px;
	height: 12px;
	position: relative;
}
.rbg-meter-range {
	background: rgba(255, 255, 255, 0.55);
	border: 1.5px dashed var(--rbg-green-dark);
	border-radius: 999px;
	height: 18px;
	position: absolute;
	top: -4px;
}
.rbg-meter-marker {
	background: #222;
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
	height: 18px;
	position: absolute;
	top: -4px;
	transform: translateX(-50%);
	transition: left 0.4s ease;
	width: 18px;
}
.rbg-meter-scale {
	display: flex;
	font-size: 0.72rem;
	justify-content: space-between;
	margin-top: 4px;
}
.rbg-meter-read {
	font-size: 0.82rem;
	font-weight: 700;
	margin-top: 8px;
}
.rbg-meter-read.good { color: var(--rbg-green-dark); }
.rbg-meter-read.bad { color: var(--rbg-danger); }

/* Stars / final */
.rbg-stars { color: var(--rbg-gold); font-size: 1.5rem; letter-spacing: 0.12em; }
.rbg-final-bloom { display: flex; justify-content: center; margin: 18px 0 8px; }
.rbg-final-bloom .rbg-bloom { height: 110px; width: 110px; }
.rbg-spark { display: grid; gap: 6px; grid-template-columns: repeat(14, 1fr); margin-top: 10px; }
.rbg-bar { background: rgba(90, 150, 100, 0.18); border-radius: 4px 4px 0 0; height: 64px; position: relative; }
.rbg-bar i {
	background: linear-gradient(180deg, #5aa55c, #3a7a3f);
	border-radius: 4px 4px 0 0;
	bottom: 0;
	left: 8%;
	position: absolute;
	right: 8%;
}
.rbg-bar i.low { background: linear-gradient(180deg, #e58f6b, #c94f4f); }

.rbg-journal { display: grid; gap: 8px; margin: 10px 0 4px; max-height: 280px; overflow-y: auto; }
.rbg-journal-day {
	background: rgba(255, 255, 255, 0.75);
	border-left: 4px solid #7cc07f;
	border-radius: 10px;
	font-size: 0.84rem;
	padding: 8px 12px;
}
.rbg-journal-day.neg { border-left-color: #e58f6b; }
.rbg-journal-day .jd { font-weight: 800; }
.rbg-journal-day ul { list-style: none; margin: 4px 0 0; padding-left: 10px; }
.rbg-journal-day li { margin: 2px 0; padding-left: 14px; position: relative; }
.rbg-journal-day li::before { color: var(--rbg-green-dark); content: "•"; left: 0; position: absolute; }

/* Checklist on final screen */
.rbg-checklist { display: grid; gap: 6px; margin: 12px 0; }
.rbg-cl-item {
	background: rgba(255, 255, 255, 0.75);
	border-radius: 10px;
	display: flex;
	font-size: 0.85rem;
	justify-content: space-between;
	padding: 7px 12px;
}
.rbg-cl-item .ok { color: var(--rbg-green-dark); font-weight: 800; }
.rbg-cl-item .no { color: var(--rbg-danger); font-weight: 800; }

/* Lock screen */
.rbg-lock {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 6px;
	text-align: center;
}
.rbg-lock .big { font-size: 1.6rem; font-weight: 800; color: var(--rbg-green-dark); }
.rbg-lock .sub { color: var(--rbg-ink-soft); font-size: 0.86rem; }

/* Toast */
.rbg-toasts {
	display: flex;
	flex-direction: column;
	gap: 6px;
	left: 0;
	pointer-events: none;
	position: absolute;
	right: 0;
	top: 10px;
	z-index: 40;
}
.rbg-toast {
	animation: rbg-toast-in 0.25s ease;
	background: rgba(46, 61, 46, 0.92);
	border-radius: 10px;
	color: #fff;
	font-size: 0.8rem;
	margin: 0 auto;
	max-width: 86%;
	padding: 8px 14px;
	text-align: center;
}
.rbg-toast.good { background: rgba(58, 110, 60, 0.95); }
.rbg-toast.bad { background: rgba(168, 66, 66, 0.95); }
@keyframes rbg-toast-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.rbg-modal-overlay {
	align-items: center;
	background: rgba(30, 45, 32, 0.55);
	display: flex;
	inset: 0;
	justify-content: center;
	padding: 18px;
	position: absolute;
	z-index: 50;
}
.rbg-modal {
	background: #fdfcf7;
	border-radius: 20px;
	max-height: 82%;
	max-width: 560px;
	overflow: auto;
	padding: 20px 22px;
	width: 100%;
}
.rbg-modal h2 { margin: 0 0 10px; }
.rbg-modal .close { float: right; }
.rbg-modal p, .rbg-modal li { font-size: 0.88rem; }
.rbg-modal table { border-collapse: collapse; font-size: 0.82rem; margin-top: 6px; width: 100%; }
.rbg-modal th, .rbg-modal td { border-bottom: 1px solid rgba(90, 150, 100, 0.2); padding: 6px 8px; text-align: left; }
.rbg-modal .almanac-card { margin-bottom: 12px; }
.rbg-almanac-entry {
	background: rgba(240, 248, 238, 0.8);
	border-radius: 12px;
	margin-bottom: 10px;
	padding: 10px 12px;
}
.rbg-almanac-entry h4 { margin: 0 0 4px; }
.rbg-helper { font-size: 0.76rem; color: var(--rbg-ink-soft); margin-top: 4px; }

/* Small screens */
@media (max-width: 480px) {
	.rbg-app { border-radius: 20px; padding: 12px; }
	.rbg-scene { height: 190px; }
	.rbg-bloom { height: 60px; width: 60px; }
	.rbg-grid, .rbg-gather-list { grid-template-columns: 1fr 1fr; }
}