/* =========================================================================
   Virtual Gardener — front-end styles (Phase 1: shell)
   Heritage botanical / seed-packet identity.
   Palette tokens are defined once here and reused across all phases.
   ========================================================================= */

.vg-app {
	/* --- Colour tokens --------------------------------------------------- */
	--vg-leaf-deep:   #1f3d2b; /* deep botanical green — frame, headings    */
	--vg-leaf:        #356a3f; /* living green — primary structural colour   */
	--vg-sage:        #7ba05b; /* sage — secondary foliage / accents         */
	--vg-loam:        #5a4632; /* warm soil brown — earthy surfaces          */
	--vg-loam-dark:   #3c2f22; /* deep loam — borders, shadow                */
	--vg-parchment:   #f4efe1; /* seed-packet panel surface                  */
	--vg-parchment-2: #ece4cf; /* parchment shade                            */
	--vg-sky-day:     #bcdcec; /* daytime sky                                */
	--vg-sky-soft:    #dcebd5; /* soft horizon green-blue                    */
	--vg-marigold:    #e08a2b; /* accent — calls to action, highlights       */
	--vg-poppy:       #c44a2e; /* warning / pest / failure                   */
	--vg-ink:         #25342a; /* primary text on light surfaces             */
	--vg-ink-soft:    #51604f; /* secondary text                             */

	/* --- Type ------------------------------------------------------------ */
	--vg-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
	--vg-sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	/* --- Form ------------------------------------------------------------ */
	--vg-radius: 14px;
	--vg-shadow: 0 10px 30px rgba(31, 61, 43, 0.18);

	display: block;
	width: 100%;
	margin: 1.25rem auto;
	font-family: var(--vg-sans);
	color: var(--vg-ink);
	box-sizing: border-box;
}

.vg-app *,
.vg-app *::before,
.vg-app *::after {
	box-sizing: border-box;
}

/* --- Stage: the framed game surface ------------------------------------- */
.vg-stage {
	position: relative;
	border-radius: var(--vg-radius);
	overflow: hidden;
	background: var(--vg-leaf-deep);
	border: 3px solid var(--vg-leaf-deep);
	box-shadow: var(--vg-shadow);
}

/* --- Board: where the garden (and later, the SVG map) lives -------------- */
.vg-board {
	position: relative;
	width: 100%;
	/* Maintain a pleasant landscape ratio that still works on phones. */
	aspect-ratio: 16 / 10;
	min-height: 320px;
	background:
		linear-gradient(180deg,
			var(--vg-sky-day) 0%,
			var(--vg-sky-soft) 46%,
			#cdebb6 58%,
			#8fae6b 70%,
			var(--vg-loam) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

/* Subtle suggestion of soil texture / rows at the base, drawn with CSS only. */
.vg-board::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 30%;
	background:
		repeating-linear-gradient(
			90deg,
			rgba(60, 47, 34, 0.0) 0,
			rgba(60, 47, 34, 0.0) 26px,
			rgba(60, 47, 34, 0.10) 27px,
			rgba(60, 47, 34, 0.0) 28px
		);
	pointer-events: none;
}

/* --- Boot / loading state ----------------------------------------------- */
.vg-boot {
	position: relative;
	z-index: 2;
	text-align: center;
	padding: 1.5rem;
	background: rgba(244, 239, 225, 0.86);
	border: 1px solid var(--vg-parchment-2);
	border-radius: var(--vg-radius);
	box-shadow: 0 6px 18px rgba(31, 61, 43, 0.16);
	max-width: 22rem;
}

.vg-boot__text {
	margin: 0.75rem 0 0;
	font-family: var(--vg-serif);
	font-size: 1.1rem;
	color: var(--vg-leaf-deep);
	letter-spacing: 0.01em;
}

.vg-boot__leaf {
	display: inline-block;
	width: 34px;
	height: 34px;
	border-radius: 0 50% 0 50%;
	background: var(--vg-sage);
	box-shadow: inset -3px -3px 0 rgba(31, 61, 43, 0.18);
	animation: vg-sway 2.4s ease-in-out infinite;
	transform-origin: bottom center;
}

@keyframes vg-sway {
	0%, 100% { transform: rotate(-8deg); }
	50%      { transform: rotate(8deg); }
}

.vg-noscript {
	background: var(--vg-parchment);
	color: var(--vg-loam-dark);
	padding: 1rem 1.25rem;
	border-radius: 10px;
	margin: 1rem;
	font-size: 0.95rem;
}

/* --- Footer plate (required title) -------------------------------------- */
.vg-footer {
	background: var(--vg-leaf-deep);
	padding: 0.55rem 1rem;
	text-align: center;
	border-top: 2px solid rgba(123, 160, 91, 0.45);
}

.vg-footer__title {
	font-family: var(--vg-serif);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	color: var(--vg-parchment);
}

/* --- Responsive niceties ------------------------------------------------- */
@media (max-width: 480px) {
	.vg-board { aspect-ratio: 4 / 5; }
	.vg-footer__title { font-size: 0.85rem; }
}

@media (prefers-reduced-motion: reduce) {
	.vg-boot__leaf { animation: none; }
}

/* =========================================================================
   Phase 3 — SVG scene, HUD and camera controls
   ========================================================================= */
.vg-scene {
	display: block;
	width: 100%;
	height: 100%;
	-webkit-user-select: none;
	user-select: none;
}

.vg-hud {
	position: absolute;
	top: 0.6rem;
	left: 0.6rem;
	right: 0.6rem;
	display: flex;
	justify-content: space-between;
	gap: 0.5rem;
	pointer-events: none;
	z-index: 3;
}
.vg-hud__date,
.vg-hud__weather {
	font-family: var(--vg-serif);
	background: rgba(244, 239, 225, 0.86);
	color: var(--vg-ink);
	padding: 0.28rem 0.7rem;
	border-radius: 999px;
	font-size: 0.82rem;
	box-shadow: 0 2px 6px rgba(31, 61, 43, 0.18);
	white-space: nowrap;
}

.vg-controls {
	position: absolute;
	bottom: 0.6rem;
	left: 0.6rem;
	right: 0.6rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	flex-wrap: wrap;
	z-index: 3;
}
.vg-ctl {
	background: rgba(31, 61, 43, 0.88);
	color: var(--vg-parchment);
	border: 0;
	border-radius: 999px;
	padding: 0.42rem 0.85rem;
	min-height: 38px;
	font-size: 0.85rem;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(31, 61, 43, 0.25);
	transition: background 0.15s ease;
}
.vg-ctl:hover { background: rgba(31, 61, 43, 1); }
.vg-ctl:focus-visible { outline: 3px solid var(--vg-marigold); outline-offset: 2px; }
.vg-ctl.is-active { background: var(--vg-marigold); color: #fff; }
.vg-ctl--speed { min-width: 44px; font-size: 0.78rem; }

.vg-zoom {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(31, 61, 43, 0.88);
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(31, 61, 43, 0.25);
}
.vg-zoom__icon { font-size: 0.8rem; filter: grayscale(1) brightness(2); }
.vg-zoom__range { width: 120px; max-width: 32vw; accent-color: var(--vg-marigold); cursor: pointer; }
.vg-vol {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	background: rgba(31, 61, 43, 0.88);
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(31, 61, 43, 0.25);
}
.vg-vol__icon { font-size: 0.8rem; filter: grayscale(1) brightness(2); }
.vg-vol__range { width: 90px; max-width: 26vw; accent-color: var(--vg-sage); cursor: pointer; }

/* Score overlay shown when a season finishes */
.vg-overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	/* Cards centre themselves with margin auto: centred when they fit,
	   scrollable with the top edge reachable when they do not (4.2.1). */
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 1rem;
	background: rgba(31, 61, 43, 0.45);
}
.vg-overlay__card {
	background: var(--vg-parchment);
	border: 1px solid var(--vg-parchment-2);
	border-radius: var(--vg-radius);
	box-shadow: 0 10px 30px rgba(31, 61, 43, 0.3);
	padding: 1.2rem 1.4rem;
	max-width: 26rem;
	width: 100%;
	margin: auto;
	text-align: left;
}

@media (max-width: 480px) {
	.vg-hud__date, .vg-hud__weather { font-size: 0.72rem; padding: 0.22rem 0.55rem; }
	.vg-zoom__range { width: 84px; }
	.vg-vol__range { width: 60px; }
	.vg-ctl { padding: 0.4rem 0.7rem; }
}

/* =========================================================================
   Phase 4 — interactive gameplay UI (setup, shop, planting, care, results)
   ========================================================================= */

/* Setup screen */
.vg-setup {
	position: absolute;
	inset: 0;
	z-index: 4;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.7rem;
	padding: 1.4rem 1.2rem 2rem;
	background: linear-gradient(180deg, var(--vg-parchment), var(--vg-parchment-2));
}
.vg-setup__title {
	font-family: var(--vg-serif);
	color: var(--vg-leaf-deep);
	font-size: 1.5rem;
	margin: 0.2rem 0 0.4rem;
}
.vg-setup__group { width: 100%; max-width: 30rem; }
.vg-setup__label {
	display: block;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--vg-ink-soft);
	margin: 0.4rem 0 0.3rem;
}
.vg-setup__opts { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.vg-choice {
	border: 1.5px solid var(--vg-sage);
	background: #fff;
	color: var(--vg-ink);
	border-radius: 999px;
	padding: 0.4rem 0.85rem;
	font-size: 0.85rem;
	min-height: 38px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.vg-choice:hover { border-color: var(--vg-leaf); }
.vg-choice:focus-visible { outline: 3px solid var(--vg-marigold); outline-offset: 2px; }
.vg-choice.is-active { background: var(--vg-leaf); color: #fff; border-color: var(--vg-leaf-deep); }
.vg-setup__hint {
	max-width: 30rem;
	font-size: 0.82rem;
	color: var(--vg-ink-soft);
	font-style: italic;
	margin: 0.3rem 0 0.2rem;
	text-align: center;
}
.vg-setup__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; justify-content: center; margin-top: 0.4rem; }

.vg-btn-primary {
	font: 600 1rem/1 var(--vg-sans);
	color: #fff;
	background: var(--vg-marigold);
	border: 0;
	padding: 0.7rem 1.5rem;
	border-radius: 999px;
	cursor: pointer;
	min-height: 44px;
	box-shadow: 0 4px 12px rgba(31, 61, 43, 0.25);
}
.vg-btn-primary:hover { filter: brightness(1.05); }
.vg-btn-primary:focus-visible { outline: 3px solid var(--vg-leaf-deep); outline-offset: 2px; }
.vg-btn-ghost {
	font: 600 1rem/1 var(--vg-sans);
	color: var(--vg-leaf-deep);
	background: transparent;
	border: 1.5px solid var(--vg-leaf);
	padding: 0.7rem 1.3rem;
	border-radius: 999px;
	cursor: pointer;
	min-height: 44px;
}

/* Top chips */
.vg-topbar {
	position: absolute;
	top: 0.55rem;
	left: 0.55rem;
	right: 0.55rem;
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	z-index: 3;
	pointer-events: none;
}
.vg-chip {
	font-family: var(--vg-serif);
	background: rgba(244, 239, 225, 0.9);
	color: var(--vg-ink);
	border-radius: 999px;
	padding: 0.26rem 0.7rem;
	font-size: 0.8rem;
	box-shadow: 0 2px 6px rgba(31, 61, 43, 0.18);
	white-space: nowrap;
}
.vg-chip--budget { background: rgba(224, 138, 43, 0.92); color: #fff; }
.vg-chip--score { background: rgba(31, 61, 43, 0.9); color: var(--vg-parchment); }

/* Action bar */
.vg-actionbar {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.4rem;
	flex-wrap: wrap;
	padding: 0.5rem 0.6rem;
	background: linear-gradient(180deg, rgba(31, 61, 43, 0), rgba(31, 61, 43, 0.55));
}
.vg-actionbar__left, .vg-actionbar__right { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.vg-abtn {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 1px;
	min-width: 52px;
	min-height: 46px;
	padding: 0.3rem 0.5rem;
	border: 0;
	border-radius: 12px;
	background: rgba(244, 239, 225, 0.94);
	color: var(--vg-leaf-deep);
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(31, 61, 43, 0.22);
	transition: background 0.15s;
}
.vg-abtn:hover { background: #fff; }
.vg-abtn:focus-visible { outline: 3px solid var(--vg-marigold); outline-offset: 2px; }
.vg-abtn__icon { font-size: 1.1rem; line-height: 1; }
.vg-abtn__label { font-size: 0.66rem; font-weight: 600; }
.vg-time { display: flex; gap: 0.25rem; }

/* Drawer (slide-up sheet) */
.vg-drawerhost { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.vg-drawer {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	max-height: 72%;
	display: flex;
	flex-direction: column;
	background: var(--vg-parchment);
	border-top-left-radius: 16px;
	border-top-right-radius: 16px;
	box-shadow: 0 -8px 30px rgba(31, 61, 43, 0.32);
	pointer-events: auto;
	animation: vg-slideup 0.18s ease-out;
}
@keyframes vg-slideup { from { transform: translateY(18px); opacity: 0.6; } to { transform: translateY(0); opacity: 1; } }
.vg-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.7rem 1rem;
	border-bottom: 1px solid var(--vg-parchment-2);
}
.vg-drawer__title { font-family: var(--vg-serif); font-size: 1.1rem; color: var(--vg-leaf-deep); }
.vg-drawer__close {
	border: 0; background: var(--vg-parchment-2); color: var(--vg-ink);
	width: 34px; height: 34px; border-radius: 999px; cursor: pointer; font-size: 1rem;
}
.vg-drawer__close:focus-visible { outline: 3px solid var(--vg-marigold); }
.vg-drawer__body { padding: 0.7rem 1rem 1rem; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.vg-drawer__note { font-size: 0.86rem; color: var(--vg-ink-soft); margin: 0 0 0.6rem; }
.vg-drawer__sub { font-family: var(--vg-serif); color: var(--vg-leaf-deep); margin: 0.8rem 0 0.4rem; font-size: 0.95rem; }
.vg-drawer__tabs { display: flex; gap: 0.3rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.vg-tab {
	border: 0; background: var(--vg-parchment-2); color: var(--vg-ink);
	border-radius: 999px; padding: 0.35rem 0.8rem; font-size: 0.82rem; cursor: pointer; min-height: 36px;
}
.vg-tab.is-active { background: var(--vg-leaf); color: #fff; }
.vg-shop__cat { font-family: var(--vg-serif); color: var(--vg-loam-dark); margin: 0.7rem 0 0.3rem; font-size: 0.9rem; }

/* Item rows */
.vg-item {
	display: flex; align-items: center; gap: 0.6rem;
	padding: 0.5rem 0.2rem;
	border-bottom: 1px solid var(--vg-parchment-2);
}
.vg-item__info { flex: 1 1 auto; min-width: 0; }
.vg-item__name { font-weight: 600; font-size: 0.88rem; color: var(--vg-ink); margin: 0; }
.vg-item__meta { font-size: 0.75rem; color: var(--vg-ink-soft); margin: 1px 0 0; }
.vg-item__buys { display: flex; gap: 0.3rem; flex-shrink: 0; flex-wrap: wrap; }
.vg-item__buy {
	border: 0; background: var(--vg-marigold); color: #fff;
	border-radius: 999px; padding: 0.4rem 0.8rem; font-weight: 600; font-size: 0.82rem;
	cursor: pointer; min-height: 38px; white-space: nowrap;
}
.vg-item__buy--alt { background: var(--vg-leaf); }
.vg-item__buy:disabled { background: #c7c0ac; cursor: not-allowed; }
.vg-item__buy:focus-visible { outline: 3px solid var(--vg-leaf-deep); outline-offset: 2px; }
.vg-item__owned { font-size: 0.78rem; color: var(--vg-leaf); font-weight: 600; flex-shrink: 0; }

/* Done-planting floating button */
.vg-doneplant {
	position: absolute;
	left: 50%; bottom: 4.2rem;
	transform: translateX(-50%);
	z-index: 7;
	border: 0; background: var(--vg-leaf-deep); color: #fff;
	border-radius: 999px; padding: 0.6rem 1.4rem; font-weight: 600; cursor: pointer;
	box-shadow: 0 4px 14px rgba(31, 61, 43, 0.4);
}

/* Toasts */
.vg-toasts {
	position: absolute;
	top: 2.6rem; left: 50%;
	transform: translateX(-50%);
	z-index: 8;
	display: flex; flex-direction: column; gap: 0.35rem;
	width: min(26rem, 92%);
	pointer-events: none;
}
.vg-toast {
	background: rgba(37, 52, 42, 0.94);
	color: var(--vg-parchment);
	border-radius: 10px;
	padding: 0.5rem 0.8rem;
	font-size: 0.82rem;
	box-shadow: 0 3px 12px rgba(31, 61, 43, 0.3);
	animation: vg-fadein 0.18s ease-out;
}
.vg-toast--good { background: rgba(53, 106, 63, 0.96); }
.vg-toast--warn { background: rgba(196, 74, 46, 0.96); }
@keyframes vg-fadein { from { opacity: 0; } to { opacity: 1; } }

/* Meters (goals + results) */
.vg-meter { display: flex; align-items: center; gap: 8px; margin: 5px 0; }
.vg-meter__label { font-size: 0.78rem; color: var(--vg-ink); width: 8.5rem; flex: 0 0 auto; }
.vg-meter__track { flex: 1 1 auto; height: 10px; background: #e7e0cd; border-radius: 6px; overflow: hidden; }
.vg-meter__fill { height: 100%; border-radius: 6px; }
.vg-meter__num { font-size: 0.78rem; color: var(--vg-ink-soft); width: 1.9rem; text-align: right; flex: 0 0 auto; }

/* Journal */
.vg-journal { max-height: 9rem; overflow-y: auto; background: #fff; border: 1px solid var(--vg-parchment-2); border-radius: 10px; padding: 0.5rem 0.7rem; }
.vg-journal__row { font-size: 0.76rem; color: var(--vg-ink); margin: 0.15rem 0; }
.vg-journal__row--warn, .vg-journal__row--fail { color: var(--vg-poppy); }
.vg-journal__row--wildlife, .vg-journal__row--harvest, .vg-journal__row--win { color: var(--vg-leaf); }

/* Result overlay */
.vg-result__grade { font-family: var(--vg-serif); font-size: 1.4rem; color: var(--vg-leaf-deep); text-align: center; margin: 0; }
.vg-result__score { text-align: center; font-size: 1.1rem; color: var(--vg-ink); margin: 0.1rem 0 0.3rem; }
.vg-result__msg { text-align: center; font-size: 0.86rem; margin: 0 0 0.7rem; }

@media (max-width: 480px) {
	.vg-abtn { min-width: 46px; min-height: 42px; }
	.vg-abtn__label { font-size: 0.6rem; }
	.vg-chip { font-size: 0.72rem; padding: 0.22rem 0.55rem; }
	.vg-drawer { max-height: 78%; }
}

/* =========================================================================
   Phase 5 — intro/outro, achievements, recipes, audio toggle
   ========================================================================= */

/* Intro title card */
.vg-intro {
	position: absolute;
	inset: 0;
	z-index: 6;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.4rem;
	background: radial-gradient(120% 100% at 50% 0%, #bcdcec 0%, #dcebd5 45%, #8fae6b 100%);
}
.vg-intro__plate {
	background: rgba(244, 239, 225, 0.95);
	border: 1px solid var(--vg-parchment-2);
	border-radius: 18px;
	box-shadow: 0 12px 36px rgba(31, 61, 43, 0.3);
	padding: 1.6rem 1.8rem;
	text-align: center;
	max-width: 24rem;
}
.vg-intro__title { font-family: var(--vg-serif); font-size: 1.8rem; color: var(--vg-leaf-deep); margin: 0.4rem 0 0.2rem; }
.vg-intro__tag { font-size: 0.9rem; color: var(--vg-ink-soft); margin: 0 0 1rem; }
.vg-intro__sprout {
	width: 46px; height: 46px; margin: 0 auto;
	border-radius: 0 50% 0 50%;
	background: var(--vg-sage);
	box-shadow: inset -4px -4px 0 rgba(31, 61, 43, 0.18);
	transform-origin: bottom center;
	animation: vg-grow 1.1s ease-out both, vg-sway 2.6s ease-in-out 1.1s infinite;
}
@keyframes vg-grow { from { transform: scale(0.2) rotate(-12deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.vg-intro--still .vg-intro__sprout { animation: none; }

/* Audio toggle */
.vg-ctl--sound { min-width: 40px; font-size: 1rem; }

/* Awards grid */
.vg-awards { display: grid; grid-template-columns: 1fr; gap: 0.4rem; margin-top: 0.4rem; }
.vg-award {
	display: flex; align-items: center; gap: 0.7rem;
	padding: 0.5rem 0.6rem;
	border: 1px solid var(--vg-parchment-2);
	border-radius: 12px;
	background: #fff;
	opacity: 0.6;
}
.vg-award.is-earned { opacity: 1; border-color: var(--vg-sage); background: #fbfaf3; }
.vg-award__icon { font-size: 1.4rem; flex: 0 0 auto; width: 1.8rem; text-align: center; }
.vg-award__name { font-weight: 600; font-size: 0.86rem; color: var(--vg-ink); margin: 0; }
.vg-award__desc { font-size: 0.74rem; color: var(--vg-ink-soft); margin: 1px 0 0; }

/* Recipe cards */
.vg-recipe {
	border: 1px solid var(--vg-parchment-2);
	border-left: 4px solid var(--vg-marigold);
	border-radius: 0 10px 10px 0;
	background: #fff;
	padding: 0.55rem 0.75rem;
	margin: 0.4rem 0;
}
.vg-recipe.is-locked { opacity: 0.55; border-left-color: #c7c0ac; }
.vg-recipe__name { font-family: var(--vg-serif); font-size: 0.98rem; color: var(--vg-leaf-deep); margin: 0; }
.vg-recipe__ing { font-size: 0.74rem; color: var(--vg-ink-soft); margin: 1px 0 0; }
.vg-recipe__method { font-size: 0.8rem; color: var(--vg-ink); margin: 0.35rem 0 0; }

/* Result celebration + season summary */
.vg-overlay__card--result { position: relative; overflow: hidden; }
.vg-result__sub { font-family: var(--vg-serif); color: var(--vg-leaf-deep); font-size: 0.9rem; margin: 0.7rem 0 0.3rem; text-align: center; }
.vg-result__chips { display: flex; flex-wrap: wrap; gap: 0.3rem; justify-content: center; }
.vg-result__chip {
	background: var(--vg-parchment-2); color: var(--vg-loam-dark);
	border-radius: 999px; padding: 0.22rem 0.6rem; font-size: 0.74rem;
}
.vg-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.vg-confetti__leaf {
	position: absolute; top: -12px;
	width: 9px; height: 12px; border-radius: 0 60% 0 60%;
	opacity: 0.9;
	animation: vg-fall 2.4s linear infinite;
}
@keyframes vg-fall {
	0% { transform: translateY(-12px) rotate(0deg); }
	100% { transform: translateY(360px) rotate(220deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.vg-intro__sprout { animation: none; }
	.vg-confetti { display: none; }
}

/* --- Creativity profile (4.1.0) ------------------------------------------ */
.vg-profile {
	margin: 14px 0 6px;
	padding: 12px 14px;
	background: #f6f1e3;
	border: 1px solid #dcd4bd;
	border-radius: 10px;
	text-align: left;
}
.vg-profile__title {
	margin: 0 0 2px;
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #51604f;
}
.vg-profile__arch {
	margin: 0 0 4px;
	font-size: 1.35rem;
	font-weight: 700;
	color: #1f3d2b;
}
.vg-profile__desc {
	margin: 0 0 10px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #3c4a3a;
}
.vg-profile__replay {
	margin: 10px 0 0;
	font-size: 0.85rem;
	color: #51604f;
}
.vg-profile__disclaimer {
	margin: 4px 0 0;
	font-size: 0.72rem;
	font-style: italic;
	color: #8a8a7a;
}
.vg-btn-share { margin-right: 8px; }

/* The soft evolving hint: a quiet chip over the garden's lower corner. */
.vg-profilehint {
	position: absolute;
	left: 10px;
	bottom: 10px;
	max-width: 62%;
	padding: 5px 12px;
	background: rgba(246, 241, 227, 0.92);
	border: 1px solid #dcd4bd;
	border-radius: 999px;
	font-size: 0.78rem;
	font-style: italic;
	color: #51604f;
	opacity: 0;
	transition: opacity 0.8s ease;
	pointer-events: none;
	z-index: 4;
}
.vg-profilehint--show { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	.vg-profilehint { transition: none; }
}

/* --- Post-season pill: reopen results or start a new plan (4.1.1) -------- */
.vg-againbar {
	position: absolute;
	right: 10px;
	top: 10px;
	bottom: auto;
	display: flex;
	gap: 8px;
	padding: 6px;
	background: rgba(246, 241, 227, 0.94);
	border: 1px solid #dcd4bd;
	border-radius: 999px;
	z-index: 5;
}
.vg-againbar__btn {
	border: 1px solid #b9c4ae;
	background: #fff;
	color: #356a3f;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 0.85rem;
	cursor: pointer;
}
.vg-againbar__btn--primary {
	background: #e08a2b;
	border-color: #c9791f;
	color: #fff;
	font-weight: 600;
}
.vg-againbar__btn:focus-visible { outline: 2px solid #356a3f; outline-offset: 2px; }
.vg-btn-close { margin-left: 8px; }

/* --- Fullscreen (4.2.0) -------------------------------------------------- */
.vg-ctl--fs { font-size: 1rem; min-width: 40px; }

/* One class drives both true fullscreen and the viewport-fill fallback. */
.vg-app--fullscreen {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	max-width: none !important;
	margin: 0;
	z-index: 2147483000;
	background: var(--vg-leaf-deep);
	display: flex;
	flex-direction: column;
}
.vg-app--fullscreen .vg-stage {
	flex: 1;
	display: flex;
	flex-direction: column;
	border-radius: 0;
	border: 0;
	box-shadow: none;
	min-height: 0;
}
.vg-app--fullscreen .vg-board {
	flex: 1;
	aspect-ratio: auto;
	min-height: 0;
	height: auto;
}
/* Sizing when the app itself is the true fullscreen element. */
.vg-app:fullscreen { width: 100%; height: 100%; }
.vg-app:-webkit-full-screen { width: 100%; height: 100%; }

/* Page scroll is parked while the fallback fills the viewport. */
.vg-noscroll { overflow: hidden !important; }
