/**
 * Varta FM 2.0 — design system
 * Calm, readable, child-friendly. Content first; ads clearly labelled and separated.
 */

/* ------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------ */
:root {
	--vf-bg: #FFFCF5;
	--vf-surface: #FFFFFF;
	--vf-ink: #1E2A2B;
	--vf-muted: #4E5A5C;
	--vf-muted-2: #5B6668;
	--vf-line: #ECE4D3;
	--vf-line-strong: #D9D0BE;
	--vf-primary: #0E5E66;
	--vf-primary-ink: #0A464C;
	--vf-accent: #F4A93B;
	--vf-accent-ink: #1E2A2B;
	--vf-dark: #13201F;
	--vf-dark-2: #1E2A2B;

	--vf-sand: #FFF3DC;   --vf-sand-ink: #6B4A12;   --vf-sand-media: #FBE3B8;
	--vf-teal: #E3F0EF;   --vf-teal-ink: #0A464C;   --vf-teal-media: #D7ECEA;
	--vf-rose: #FDE7E1;   --vf-rose-ink: #6E2A12;   --vf-rose-media: #F8D9D0;
	--vf-lilac: #EEE8F7;  --vf-lilac-ink: #43307A;  --vf-lilac-media: #E2DAF0;
	--vf-sky: #E6F0FB;    --vf-sky-ink: #24406B;    --vf-sky-media: #DCE9F7;
	--vf-leaf: #EAF4E2;   --vf-leaf-ink: #2F4A22;   --vf-leaf-media: #E4F0DA;

	--vf-font-display: 'Baloo Bhai 2', 'Baloo 2', 'Noto Sans Gujarati', 'Noto Sans Devanagari', system-ui, sans-serif;
	--vf-font-body: 'Noto Sans Gujarati', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--vf-r-sm: 10px;
	--vf-r: 14px;
	--vf-r-lg: 20px;
	--vf-r-xl: 28px;
	--vf-wrap: 1200px;
	--vf-gutter: 24px;
	--vf-shadow: 0 8px 28px rgba(19, 32, 31, 0.12);
}
.vf-lang-hindi {
	--vf-font-display: 'Baloo 2', 'Baloo Bhai 2', 'Noto Sans Devanagari', system-ui, sans-serif;
	--vf-font-body: 'Noto Sans Devanagari', 'Noto Sans Gujarati', system-ui, sans-serif;
}

/* ------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--vf-bg);
	color: var(--vf-ink);
	font-family: var(--vf-font-body);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--vf-primary); text-underline-offset: 3px; }
a:hover { color: var(--vf-primary-ink); }
h1, h2, h3, h4 { font-family: var(--vf-font-display); line-height: 1.2; margin: 0; color: var(--vf-ink); }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 2px; border-radius: 6px; }
.vf-icon { flex: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.vf-skip {
	position: absolute; left: 16px; top: -60px; z-index: 1000;
	background: var(--vf-dark-2); color: #fff; padding: 10px 16px; border-radius: var(--vf-r-sm);
}
.vf-skip:focus { top: 12px; color: #fff; }

.vf-wrap { width: 100%; max-width: var(--vf-wrap); margin: 0 auto; padding: 0 var(--vf-gutter); }
.vf-narrow { max-width: 860px; }
.vf-narrow-block { max-width: 760px; }
.vf-center { text-align: center; justify-content: center; align-items: center; }
.vf-muted { color: var(--vf-muted-2); font-size: 14px; }
.vf-main { display: block; min-height: 50vh; }

/* Tones */
.vf-tone-sand  { background: var(--vf-sand); }
.vf-tone-teal  { background: var(--vf-teal); }
.vf-tone-rose  { background: var(--vf-rose); }
.vf-tone-lilac { background: var(--vf-lilac); }
.vf-tone-sky   { background: var(--vf-sky); }
.vf-tone-leaf  { background: var(--vf-leaf); }
.vf-tone-dark  { background: var(--vf-dark-2); color: #fff; }

/* ------------------------------------------------------------------
 * Buttons, pills, tags, chips
 * ------------------------------------------------------------------ */
.vf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
	font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}
.vf-btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.vf-btn--lg { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: 14px; }
.vf-btn--block { width: 100%; }
.vf-btn--primary { background: var(--vf-primary); color: #fff; }
.vf-btn--primary:hover { background: var(--vf-primary-ink); color: #fff; }
.vf-btn--accent { background: var(--vf-accent); color: var(--vf-accent-ink); font-weight: 700; }
.vf-btn--accent:hover { background: #E89A26; color: var(--vf-accent-ink); }
.vf-btn--dark { background: var(--vf-dark-2); color: #fff; }
.vf-btn--dark:hover { background: #000; color: #fff; }
.vf-btn--pill { border-radius: 999px; border: 0; font-weight: 700; transition: transform .15s, box-shadow .15s, filter .15s; }
.vf-btn--pill:hover { transform: translateY(-2px); filter: brightness(1.05); }
.vf-btn--pill:active { transform: translateY(1px); }
.vf-btn--purple { background: linear-gradient(135deg, #9D5CF5, #8338EC); color: #fff; box-shadow: 0 6px 16px rgba(131, 56, 236, .3); }
.vf-btn--purple:hover { color: #fff; }
.vf-btn--orange { background: linear-gradient(135deg, #FFB347, #FF9F1C); color: #fff; box-shadow: 0 6px 16px rgba(255, 159, 28, .35); }
.vf-btn--orange:hover { color: #fff; }
.vf-btn--green { background: linear-gradient(135deg, #2EE6B6, #06B386); color: #fff; box-shadow: 0 6px 16px rgba(6, 179, 134, .32); }
.vf-btn--green:hover { color: #fff; }
.vf-btn--pink { background: linear-gradient(135deg, #FF8FBA, #FF70A6); color: #fff; box-shadow: 0 6px 16px rgba(255, 112, 166, .32); }
.vf-btn--pink:hover { color: #fff; }
.vf-btn--ghost { background: var(--vf-surface); border-color: var(--vf-line-strong); color: var(--vf-ink); }
.vf-btn--ghost:hover { border-color: var(--vf-ink); color: var(--vf-ink); }
.vf-btn--outline { background: transparent; border: 2px solid var(--vf-ink); color: var(--vf-ink); }
.vf-btn--outline:hover { background: var(--vf-ink); color: #fff; }
.vf-btn--light { background: #fff; color: var(--vf-ink); font-weight: 700; }
.vf-btn--outline-light { background: transparent; border-color: #4A5A59; color: #fff; }
.vf-btn--outline-light:hover { border-color: #fff; color: #fff; }
.vf-btn:disabled { opacity: .55; cursor: not-allowed; }
.vf-btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.vf-iconbtn {
	width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 12px; border: 1px solid var(--vf-line-strong); background: var(--vf-surface); color: var(--vf-ink); cursor: pointer; padding: 0;
}
.vf-iconbtn:hover { border-color: var(--vf-ink); }

.vf-pill {
	display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
	padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.vf-pill--teal { background: var(--vf-teal); color: var(--vf-teal-ink); }
.vf-pill--accent { background: var(--vf-accent); color: var(--vf-accent-ink); font-weight: 700; }
.vf-pill--safe { background: #fff; color: #2F6B2F; }

.vf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vf-tag {
	display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.3;
	padding: 4px 9px; border-radius: 6px; text-decoration: none;
}
a.vf-tag:hover { text-decoration: underline; }
.vf-tag--sand  { background: var(--vf-sand);  color: var(--vf-sand-ink); }
.vf-tag--teal  { background: var(--vf-teal);  color: var(--vf-teal-ink); }
.vf-tag--rose  { background: var(--vf-rose);  color: var(--vf-rose-ink); }
.vf-tag--lilac { background: var(--vf-lilac); color: var(--vf-lilac-ink); }
.vf-tag--sky   { background: var(--vf-sky);   color: var(--vf-sky-ink); }
.vf-tag--leaf  { background: var(--vf-leaf);  color: var(--vf-leaf-ink); }

.vf-chip {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
	border-radius: 999px; border: 1px solid var(--vf-line-strong); background: var(--vf-surface);
	color: var(--vf-ink); font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.vf-chip:hover { border-color: var(--vf-ink); color: var(--vf-ink); }
.vf-chip.is-on { background: var(--vf-dark-2); border-color: var(--vf-dark-2); color: #fff; }
.vf-chip--soft { background: var(--vf-teal); border-color: transparent; color: var(--vf-teal-ink); }
.vf-chip--lg { min-height: 48px; padding: 0 20px; font-size: 16px; border-radius: 14px; }
.vf-chip--dark { background: transparent; border-color: #4A5A59; color: #fff; }
.vf-chip--dark:hover { border-color: #fff; color: #fff; }
.vf-chip--dark.is-on { background: var(--vf-accent); border-color: var(--vf-accent); color: var(--vf-accent-ink); }

.vf-eyebrow { display: block; font-size: 13px; font-weight: 600; letter-spacing: .05em; color: var(--vf-primary-ink); }
.vf-eyebrow--light { color: #F4C77A; }
.vf-link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; text-decoration: none; }
.vf-link-arrow:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------ */
.vf-header { position: sticky; top: 0; z-index: 50; background: var(--vf-surface); border-bottom: 1px solid var(--vf-line); }
.admin-bar .vf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vf-header { top: 0; position: relative; } }
.vf-header__bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.vf-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.vf-logo__img { max-height: 48px; width: auto; }
.vf-logo__mark {
	width: 44px; height: 44px; border-radius: 14px; background: var(--vf-primary); color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 24px;
}
.vf-logo__text { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 28px; color: var(--vf-ink); line-height: 1; white-space: nowrap; }
.vf-logo__text span { color: var(--vf-primary); }

.vf-nav { flex: 1 1 auto; }
.vf-nav__list, .vf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.vf-nav li { position: relative; }
.vf-nav a {
	display: block; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: 15px;
	color: var(--vf-ink); text-decoration: none;
}
.vf-nav a:hover { background: var(--vf-bg); color: var(--vf-ink); }
.vf-nav .is-current > a,
.vf-nav .current-menu-item > a,
.vf-nav .current-menu-ancestor > a,
.vf-nav .current_page_item > a { background: var(--vf-sand); box-shadow: inset 0 -3px 0 var(--vf-accent); }
.vf-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: 0; min-width: 200px; flex-direction: column;
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r); padding: 6px; box-shadow: var(--vf-shadow);
}
.vf-nav li:hover > .sub-menu, .vf-nav li:focus-within > .sub-menu { display: flex; }

.vf-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }
.vf-header__menu-btn { display: none; margin-left: auto; }
.vf-header__menu-btn .vf-when-open { display: none; }
.vf-header__menu-btn[aria-expanded="true"] .vf-when-open { display: inline-flex; }
.vf-header__menu-btn[aria-expanded="true"] .vf-when-closed { display: none; }
.vf-header__menu-btn span { display: inline-flex; }

.vf-lang { display: flex; border: 1px solid var(--vf-line-strong); border-radius: 12px; overflow: hidden; }
.vf-lang__opt { min-width: 46px; height: 42px; display: flex; align-items: center; justify-content: center; font-weight: 600; color: var(--vf-ink); text-decoration: none; background: var(--vf-surface); }
.vf-lang__opt:hover { background: var(--vf-bg); color: var(--vf-ink); }
.vf-lang__opt.is-on { background: var(--vf-dark-2); color: #fff; }

.vf-profile { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--vf-line-strong); border-radius: 999px; text-decoration: none; color: var(--vf-ink); }
.vf-profile__avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--vf-sand); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.vf-profile__info { display: flex; flex-direction: column; line-height: 1.2; font-size: 13px; }
.vf-profile__info .pill-stats { color: var(--vf-muted-2); font-size: 12px; }

/* 8 menu items: tighten spacing on smaller desktops */
@media (min-width: 1081px) and (max-width: 1320px) {
	.vf-nav__list, .vf-nav ul { gap: 2px; }
	.vf-nav a { padding: 10px 10px; font-size: 14.5px; }
}
@media (max-width: 1080px) {
	.vf-header__bar { flex-wrap: wrap; gap: 12px; min-height: 64px; padding-top: 10px; padding-bottom: 10px; }
	.vf-header__menu-btn { display: inline-flex; order: 2; }
	.vf-header__actions { order: 3; }
	.vf-nav { order: 4; flex-basis: 100%; display: none; padding: 4px 0 8px; }
	.vf-nav.is-open { display: block; }
	.vf-nav__list, .vf-nav ul { flex-direction: column; }
	.vf-nav a { padding: 12px 14px; font-size: 16px; }
	.vf-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; }
}
@media (max-width: 560px) {
	.vf-logo__text { font-size: 22px; }
	.vf-logo__mark { width: 38px; height: 38px; font-size: 20px; }
	.vf-header__actions { width: 100%; justify-content: space-between; }
	.vf-profile__info { display: none; }
	.vf-profile { padding: 4px; }
}

/* Search overlay */
.vf-search {
	position: fixed; inset: 0; z-index: 200; background: rgba(19, 32, 31, .55);
	align-items: flex-start; justify-content: center; padding: 10vh 16px 16px;
}
.vf-search__card { position: relative; width: 100%; max-width: 640px; background: var(--vf-surface); border-radius: var(--vf-r-lg); padding: 28px; box-shadow: var(--vf-shadow); }
.vf-search__close { position: absolute; top: 14px; right: 14px; }
.vf-search__title { font-size: 24px; margin: 0 40px 16px 0; }
.vf-search__form { display: flex; gap: 10px; }
.vf-search__form .vf-input { flex: 1; min-width: 0; }
.vf-search__results { margin-top: 14px; max-height: 50vh; overflow: auto; }
.vf-search__results ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vf-search__results li { display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--vf-line); }
.vf-search__results li img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.vf-search__results h4 { font-size: 17px; }
.vf-search__results h4 a { color: var(--vf-ink); text-decoration: none; }
.vf-search__results span { font-size: 13px; color: var(--vf-muted-2); }

/* ------------------------------------------------------------------
 * Forms
 * ------------------------------------------------------------------ */
.vf-input {
	width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--vf-line-strong);
	border-radius: 12px; background: var(--vf-bg); font-size: 16px; color: var(--vf-ink);
}
textarea.vf-input { resize: vertical; }
.vf-input:focus { border-color: var(--vf-primary); outline: none; box-shadow: 0 0 0 3px rgba(14, 94, 102, .18); }
.vf-form { display: flex; flex-direction: column; gap: 16px; }
.vf-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.vf-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.vf-form label.vf-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 14px; color: var(--vf-muted); }
.vf-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.vf-captcha { display: flex; justify-content: center; }
.vf-status { font-weight: 600; min-height: 1.6em; }
.vf-status.is-ok { color: #2F6B2F; }
.vf-status.is-error { color: #B4471F; }
.vf-searchbar { display: flex; gap: 10px; max-width: 560px; margin-top: 8px; }
.vf-searchbar .vf-input { flex: 1; min-width: 0; background: var(--vf-surface); }
.vf-searchbar--big .vf-input { min-height: 56px; font-size: 19px; border: 2px solid var(--vf-ink); }
.vf-searchbar--big { max-width: none; }

/* ------------------------------------------------------------------
 * Page heroes & breadcrumbs
 * ------------------------------------------------------------------ */
.vf-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--vf-muted-2); }
.vf-crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--vf-muted-2); }
.vf-crumbs a { color: inherit; }
.vf-tone-dark .vf-crumbs ol { color: #B9C3C3; }
.vf-tone-dark .vf-crumbs a { color: #F4C77A; }

.vf-hero { padding: 36px 0 40px; }
.vf-hero--flush { padding-bottom: 0; }
.vf-hero__inner { display: flex; flex-direction: column; gap: 14px; }
.vf-hero__row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.vf-hero__text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 10px; }
.vf-hero__title { font-weight: 800; font-size: clamp(34px, 5vw, 52px); line-height: 1.1; }
.vf-tone-dark .vf-hero__title { color: #fff; }
.vf-hero__intro { font-size: 18px; line-height: 1.7; color: var(--vf-muted); max-width: 700px; }
.vf-hero__intro--center { margin: 0 auto; }
.vf-tone-dark .vf-hero__intro { color: #D5DCDC; }
.vf-page-head { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 24px; }

.vf-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.vf-tabs__tab { padding: 14px 20px; font-weight: 600; color: var(--vf-ink); text-decoration: none; border-radius: 14px 14px 0 0; }
.vf-tabs__tab:hover { background: rgba(255, 255, 255, .5); color: var(--vf-ink); }
.vf-tabs__tab.is-current { background: var(--vf-bg); font-weight: 700; }

/* ------------------------------------------------------------------
 * Sections, grids, cards
 * ------------------------------------------------------------------ */
.vf-section { padding-top: 48px; padding-bottom: 48px; }
.vf-section--tight { margin-top: 28px; margin-bottom: 28px; }
.vf-band { margin: 8px 0; }
.vf-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.vf-section__title { font-weight: 800; font-size: clamp(26px, 3.4vw, 34px); }
.vf-section__sub { margin-top: 4px; color: var(--vf-muted); font-size: 16px; }

.vf-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.vf-grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.vf-grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.vf-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.vf-card { display: flex; flex-direction: column; background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg); overflow: hidden; }
.vf-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.vf-card__media.vf-tone-sand  { background: var(--vf-sand-media); }
.vf-card__media.vf-tone-teal  { background: var(--vf-teal-media); }
.vf-card__media.vf-tone-rose  { background: var(--vf-rose-media); }
.vf-card__media.vf-tone-lilac { background: var(--vf-lilac-media); }
.vf-card__media.vf-tone-sky   { background: var(--vf-sky-media); }
.vf-card__media.vf-tone-leaf  { background: var(--vf-leaf-media); }
.vf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.vf-card:hover .vf-card__media img { transform: scale(1.03); }
.vf-card__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.vf-card__title { font-weight: 700; font-size: 20px; line-height: 1.3; }
.vf-card__title a { color: var(--vf-ink); text-decoration: none; }
.vf-card__title a:hover { color: var(--vf-primary); }
.vf-card__title a::after { content: ''; }
.vf-card__excerpt { font-size: 15px; color: var(--vf-muted); line-height: 1.6; }
.vf-card__meta { font-size: 13px; color: var(--vf-muted-2); }
.vf-card__cta { margin-top: auto; }
.vf-card--activity .vf-card__cta { width: 100%; }
.vf-card--poem { border-top: 6px solid var(--vf-accent); }
.vf-card--poem:nth-child(3n+2) { border-top-color: var(--vf-primary); }
.vf-card--poem:nth-child(3n+3) { border-top-color: #C2553A; }
.vf-card--poem .vf-card__media { aspect-ratio: 16 / 8; }

/* Homepage */
.vf-home-hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 40px; }
.vf-home-hero__text { flex: 1 1 460px; display: flex; flex-direction: column; gap: 20px; }
.vf-home-hero__title { font-weight: 800; font-size: clamp(38px, 5.4vw, 56px); line-height: 1.1; }
.vf-home-hero__intro { font-size: 18px; line-height: 1.7; color: var(--vf-muted); max-width: 560px; }
.vf-feature { flex: 1 1 400px; display: flex; flex-direction: column; background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; }
.vf-feature:hover { color: inherit; box-shadow: var(--vf-shadow); }
.vf-feature__media { display: block; aspect-ratio: 16 / 9; background: var(--vf-sand-media); }
.vf-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.vf-feature__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px 24px; }
.vf-feature__title { font-family: var(--vf-font-display); font-weight: 700; font-size: 26px; line-height: 1.25; }
.vf-special { padding-top: 24px; }

.vf-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; padding-top: 8px; padding-bottom: 40px; }
.vf-cat { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; color: var(--vf-ink); text-decoration: none; min-height: 96px; }
.vf-cat:hover { color: var(--vf-ink); box-shadow: inset 0 0 0 2px rgba(30, 42, 43, .15); }
.vf-cat__name { font-family: var(--vf-font-display); font-weight: 700; font-size: 20px; line-height: 1.2; }
.vf-cat__hint { font-size: 13px; color: var(--vf-muted); }

.vf-fest { background: var(--vf-surface); border-radius: var(--vf-r-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.vf-fest__title { font-weight: 700; font-size: 22px; line-height: 1.3; }
.vf-fest__title a { color: var(--vf-ink); text-decoration: none; }

.vf-split { display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.vf-split__main { flex: 1 1 520px; min-width: 0; }
.vf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.vf-tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 18px; color: var(--vf-ink); text-decoration: none; min-height: 96px; }
.vf-tile:hover { color: var(--vf-ink); box-shadow: inset 0 0 0 2px rgba(30, 42, 43, .15); }
.vf-tile__title { font-family: var(--vf-font-display); font-weight: 700; font-size: 19px; line-height: 1.3; }
.vf-tile__meta { font-size: 13px; color: var(--vf-muted); }
.vf-parents-card { flex: 1 1 360px; min-width: 0; background: var(--vf-dark-2); color: #fff; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 14px; align-self: flex-start; }
.vf-parents-card__title { color: #fff; font-weight: 700; font-size: 28px; line-height: 1.25; }
.vf-parents-card p { color: #D5DCDC; font-size: 15px; line-height: 1.7; }
.vf-parents-card__meta { font-size: 13px; color: #B9C3C3; }
.vf-parents-card .vf-btn { align-self: flex-start; }

/* Lead (festival hub / parents featured) */
.vf-lead { display: flex; flex-wrap: wrap; background: var(--vf-dark-2); color: #fff; border-radius: var(--vf-r-xl); overflow: hidden; margin: 18px 0 8px; text-decoration: none; }
.vf-lead__text { flex: 1 1 460px; padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.vf-lead__text p { color: #D5DCDC; font-size: 17px; line-height: 1.7; }
.vf-lead__title { font-family: var(--vf-font-display); font-weight: 800; font-size: clamp(30px, 4vw, 46px); line-height: 1.12; color: #fff; }
.vf-lead__media { flex: 1 1 340px; min-height: 280px; background: #3A2A12; }
.vf-lead__media img { width: 100%; height: 100%; object-fit: cover; }
.vf-lead--light { background: var(--vf-surface); color: var(--vf-ink); border: 1px solid var(--vf-line); }
.vf-lead--light:hover { color: var(--vf-ink); box-shadow: var(--vf-shadow); }
.vf-lead--light .vf-lead__title { color: var(--vf-ink); font-size: clamp(26px, 3vw, 32px); }
.vf-lead--light .vf-lead__text { gap: 10px; color: var(--vf-muted); }
.vf-lead--light .vf-lead__media { background: var(--vf-teal-media); }

/* ------------------------------------------------------------------
 * Listings
 * ------------------------------------------------------------------ */
.vf-listing { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 28px; }
.vf-filters { display: flex; flex-direction: column; gap: 12px; }
.vf-filter { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.vf-filter__label { font-size: 14px; font-weight: 600; min-width: 64px; }
.vf-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.vf-listing__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--vf-line); padding-top: 16px; font-size: 15px; color: var(--vf-muted); }
.vf-empty { text-align: center; padding: 48px 24px; background: var(--vf-surface); border: 1px dashed var(--vf-line-strong); border-radius: var(--vf-r-lg); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vf-empty h2 { font-size: 24px; }
.vf-empty p { color: var(--vf-muted); }

.vf-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.vf-pager .page-numbers {
	min-width: 44px; height: 44px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	border-radius: 12px; border: 1px solid var(--vf-line-strong); background: var(--vf-surface); color: var(--vf-ink); font-weight: 600; text-decoration: none;
}
.vf-pager .page-numbers:hover { border-color: var(--vf-ink); }
.vf-pager .page-numbers.current { background: var(--vf-dark-2); border-color: var(--vf-dark-2); color: #fff; }
.vf-pager .dots { border: 0; background: transparent; }

.vf-js-hidden { display: none !important; }

/* Panels */
.vf-panel { background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.vf-panel[class*="vf-tone-"] { border-color: transparent; }
.vf-panel__title { font-weight: 700; font-size: 22px; }
.vf-panel p { color: var(--vf-muted); line-height: 1.75; }
.vf-panel h3 { font-size: 18px; margin-bottom: 6px; }
.vf-about-section, .vf-note { max-width: 820px; }

.vf-linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vf-linklist li { border-bottom: 1px solid #F1EBDD; }
.vf-linklist li:last-child { border-bottom: 0; }
.vf-linklist a { display: block; padding: 10px 0; font-weight: 600; text-decoration: none; }
.vf-linklist a:hover { text-decoration: underline; }
.vf-ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vf-ticks li { position: relative; padding-left: 26px; line-height: 1.6; }
.vf-ticks li::before { content: ''; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--vf-primary); border-bottom: 2.5px solid var(--vf-primary); transform: rotate(-45deg); }
.vf-ol { margin: 0; padding-left: 22px; line-height: 1.9; }

/* ------------------------------------------------------------------
 * Ads — labelled, separated, fixed height (no layout shift)
 * ------------------------------------------------------------------ */
.vf-ad { margin: 8px 0; }
.vf-ad__label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--vf-muted-2); text-align: center; margin-bottom: 6px; }
.vf-ad__box { background: #F2F3F3; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.vf-ad__box ins { width: 100%; }
.vf-ad--inline { margin: 28px 0; }
.vf-ad--side { position: static; }

/* ------------------------------------------------------------------
 * Article / story
 * ------------------------------------------------------------------ */
.vf-article-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 28px; padding-bottom: 48px; }
.vf-article { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.vf-sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.vf-narrow > .vf-article { padding-top: 28px; padding-bottom: 32px; }
.vf-article__head { display: flex; flex-direction: column; gap: 14px; }
.vf-article__head.vf-center { align-items: center; }
.vf-article__head.vf-center .vf-chips { justify-content: center; }
.vf-article__title { font-weight: 800; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.15; }
.vf-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.vf-article__meta.vf-center { justify-content: center; }
.vf-article__chars { font-size: 15px; color: var(--vf-muted); }
.vf-article__cover { margin: 0; border-radius: 24px; overflow: hidden; background: var(--vf-sand-media); max-height: 460px; }
.vf-article__cover.vf-tone-teal { background: var(--vf-teal-media); }
.vf-article__cover img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; }
.vf-article__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vf-byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--vf-muted-2); }
.vf-byline strong { color: var(--vf-ink); }
.vf-byline__avatar { width: 40px; height: 40px; border-radius: 50%; }

.vf-audio { display: flex; align-items: center; gap: 14px; background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 18px; padding: 14px 18px; }
.vf-audio__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--vf-primary); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.vf-audio__body { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vf-audio__label { font-weight: 600; font-size: 14px; }
.vf-audio audio { width: 100%; height: 40px; }

.vf-textsize { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--vf-muted-2); }
.vf-textsize .vf-chip { min-height: 36px; padding: 0 12px; }

.vf-prose { font-size: 18px; line-height: 1.85; max-width: 720px; overflow-wrap: break-word; }
.vf-prose > * + * { margin-top: 1em; }
.vf-prose h2 { font-size: 28px; margin-top: 1.6em; scroll-margin-top: 100px; }
.vf-prose h3 { font-size: 22px; margin-top: 1.4em; }
.vf-prose ul, .vf-prose ol { padding-left: 1.4em; }
.vf-prose li + li { margin-top: .35em; }
.vf-prose img { border-radius: var(--vf-r); }
.vf-prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--vf-sand); border-radius: var(--vf-r); }
.vf-prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.vf-prose th, .vf-prose td { border: 1px solid var(--vf-line); padding: 8px 10px; text-align: left; }
.vf-prose--story { font-size: 20px; line-height: 1.95; }
.vf-prose--story p { margin-top: 1em; }
.vf-prose .alignleft { float: left; margin: 0 1em 1em 0; }
.vf-prose .alignright { float: right; margin: 0 0 1em 1em; }
.vf-prose .aligncenter { margin-left: auto; margin-right: auto; }
.vf-prose .wp-caption-text, .vf-prose figcaption { font-size: 14px; color: var(--vf-muted-2); }

.vf-moral { max-width: 720px; background: var(--vf-teal); border-radius: var(--vf-r-lg); padding: 24px 28px; }
.vf-moral h2 { color: var(--vf-teal-ink); font-size: 22px; margin-bottom: 8px; }
.vf-moral p { font-size: 18px; line-height: 1.8; }
.vf-questions { max-width: 720px; }
.vf-questions ol { margin: 0; padding-left: 22px; font-size: 16px; line-height: 1.9; }
.vf-video .vf-panel__title { margin-bottom: 12px; }
.vf-video__frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--vf-r-lg); overflow: hidden; background: #000; }
.vf-video__frame iframe, .vf-video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vf-share { display: flex; flex-wrap: wrap; gap: 10px; }
.vf-summary { max-width: 720px; background: var(--vf-sand); border-radius: 18px; padding: 18px 22px; display: flex; flex-direction: column; gap: 6px; }
.vf-author { max-width: 720px; display: flex; gap: 16px; align-items: flex-start; background: var(--vf-dark-2); color: #fff; border-radius: var(--vf-r-lg); padding: 22px; }
.vf-author p { color: #D5DCDC; margin-top: 6px; line-height: 1.7; }
.vf-author__avatar { border-radius: 50%; flex: none; }

.vf-postnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; border-top: 1px solid var(--vf-line); padding-top: 20px; }
.vf-postnav__link { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--vf-line); border-radius: var(--vf-r); background: var(--vf-surface); text-decoration: none; color: var(--vf-ink); }
.vf-postnav__link:hover { border-color: var(--vf-ink); color: var(--vf-ink); }
.vf-postnav__link span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--vf-muted-2); }
.vf-postnav__link--next { text-align: right; align-items: flex-end; }

.vf-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.vf-toc a { display: block; padding: 6px 0; font-size: 15px; text-decoration: none; }
.vf-toc a:hover { text-decoration: underline; }

/* Poem */
.vf-verse { max-width: none; background: var(--vf-sand); border-radius: 24px; padding: 40px clamp(20px, 5vw, 48px); text-align: center; font-family: var(--vf-font-display); font-weight: 600; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.75; }
.vf-verse p + p { margin-top: 1.2em; }

/* ------------------------------------------------------------------
 * Activities (engines keep their own CSS; this frames them)
 * ------------------------------------------------------------------ */
.vf-activity { padding-top: 28px; padding-bottom: 56px; }
.vf-activity__article { display: flex; flex-direction: column; gap: 24px; }
.vf-activity__head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; }
.vf-activity__head > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.vf-activity__title { font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.vf-activity__head-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.vf-activity__head-actions .vf-pill--safe { background: var(--vf-leaf); }
.vf-activity__again { justify-content: center; }

.vf-engine { background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r-xl); padding: clamp(12px, 2.4vw, 24px); overflow-x: auto; }
.vf-engine > [class*="viewport-card"] { border: 0 !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; background: transparent !important; }
.vf-engine .btn-kids { font-family: var(--vf-font-body); box-shadow: none; border-width: 2px; border-radius: 12px; min-height: 44px; }
.vf-engine canvas { max-width: 100%; height: auto; touch-action: none; }
.vf-engine .external-game-iframe-wrapper iframe { width: 100%; aspect-ratio: 16 / 10; height: auto; min-height: 420px; border: 0; border-radius: var(--vf-r-lg); }
.vf-engine .external-game-iframe-wrapper iframe.is-auto-height { aspect-ratio: auto; min-height: 0; }
@media (max-width: 640px) { .vf-engine .external-game-iframe-wrapper iframe:not(.is-auto-height) { aspect-ratio: auto; height: 680px; } }
/* Learning flashcards */
.vf-engine--learning .learning-hint {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 clamp(14px, 2.4vw, 20px);
	font-family: var(--vf-font-display); font-size: 15px; font-weight: 700; color: #B45309; text-align: center;
}
.vf-engine--learning .learning-hint__pill {
	display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
	background: linear-gradient(135deg, #FF8A5B, #F4643C); color: #fff; font-size: 12px; box-shadow: 0 3px 8px rgba(244, 100, 60, .3);
}
.vf-engine--learning .learning-flashcards-grid {
	grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: clamp(10px, 2vw, 16px); margin: 0;
}
.vf-engine--learning .flashcard-scene { height: auto; aspect-ratio: 5 / 4; perspective: 700px; }
.vf-engine--learning .flashcard-card { background: none; border: 0; padding: 0; font: inherit; color: inherit; display: block; width: 100%; height: 100%; transition: transform .5s cubic-bezier(.3, .7, .4, 1); }
.vf-engine--learning .flashcard-face { top: 0; left: 0; border-radius: 18px; padding: 8px; box-shadow: none; }
.vf-engine--learning .flashcard-front {
	background: linear-gradient(180deg, #FFFBEA, #FFF1B8); border: 1.5px solid #FFE08A; color: var(--vf-ink);
	box-shadow: 0 6px 14px rgba(244, 169, 59, .14);
	transition: box-shadow .15s, border-color .15s;
}
.vf-engine--learning .flashcard-card:hover .flashcard-front { border-color: #F4A93B; box-shadow: 0 10px 20px rgba(244, 169, 59, .24); }
.vf-engine--learning .flashcard-back {
	background: linear-gradient(135deg, #9D5CF5, #8338EC); border: 0; color: #fff;
	box-shadow: 0 8px 18px rgba(131, 56, 236, .3);
}
.vf-engine--learning .flashcard-eye {
	position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; display: grid; place-items: center;
	border-radius: 50%; background: #FFE3CC; color: #F4643C;
}
.vf-engine--learning .card-inner-val { font-family: var(--vf-font-display); font-size: clamp(20px, 5vw, 30px); font-weight: 800; color: var(--vf-ink); }
.vf-engine--learning .card-inner-val-back { display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--vf-font-display); }
.vf-engine--learning .card-inner-val-back__main { font-size: clamp(14px, 3.6vw, 19px); font-weight: 800; line-height: 1.15; }
.vf-engine--learning .card-inner-val-back__sub { font-size: clamp(12px, 3vw, 15px); font-weight: 600; opacity: .9; line-height: 1.2; }
.vf-engine--learning .flashcard-card:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 3px; border-radius: 18px; }
@media (max-width: 480px) {
	.vf-engine--learning .learning-flashcards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.vf-engine--learning .flashcard-face { border-radius: 14px; padding: 6px; }
	.vf-engine--learning .flashcard-eye { top: 6px; right: 6px; width: 18px; height: 18px; }
	.vf-engine--learning .flashcard-eye .vf-icon { width: 10px; height: 10px; }
}

/* Quiz engine */
.vf-engine--quizzes { background: var(--vf-teal); border: 0; padding: clamp(16px, 4vw, 40px) clamp(12px, 3vw, 24px); overflow: visible; }
.vq { max-width: 600px; margin: 0 auto; font-family: var(--vf-font-display); }
.vq-screen[hidden], .vq [hidden] { display: none !important; }
.vq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid transparent;
	font-family: var(--vf-font-display); font-weight: 700; font-size: 17px; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
}
.vq-btn--primary { background: linear-gradient(135deg, #17808A, var(--vf-primary)); color: #fff; box-shadow: 0 10px 22px rgba(14, 94, 102, .28); }
.vq-btn--primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(14, 94, 102, .34); color: #fff; }
.vq-btn--primary:disabled { background: var(--vf-line-strong); color: #fff; box-shadow: none; opacity: .7; cursor: not-allowed; }
.vq-btn--outline { background: var(--vf-surface); border-color: var(--vf-primary); color: var(--vf-primary); }
.vq-btn--outline:hover { background: var(--vf-teal); }
.vq-btn--pill { min-height: 58px; padding: 0 34px; font-size: 18px; }
.vq-btn--block { width: 100%; }
.vq-btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.vq-btn--soft-leaf { background: var(--vf-leaf); color: var(--vf-leaf-ink); }
.vq-btn--soft-sky { background: var(--vf-sky); color: var(--vf-sky-ink); }
.vq-btn--soft-leaf:hover, .vq-btn--soft-sky:hover { transform: translateY(-1px); }

/* Start */
.vq-start { background: var(--vf-surface); border-radius: var(--vf-r-xl); box-shadow: var(--vf-shadow); padding: clamp(28px, 5vw, 44px) clamp(18px, 4vw, 36px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.vq-start__icon { font-size: 76px; line-height: 1; filter: drop-shadow(0 6px 10px rgba(244, 169, 59, .35)); }
.vq-start__title { font-size: clamp(22px, 3.4vw, 28px); font-weight: 800; }
.vq-start__lead { font-family: var(--vf-font-body); color: var(--vf-muted); font-size: 16px; }
.vq-start__lead strong { color: var(--vf-primary); }
.vq-start__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 10px; }
.vq-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: var(--vf-sand); color: var(--vf-sand-ink); font-size: 14px; font-weight: 700; }
.vq-chip i { color: var(--vf-accent); }

/* Play */
.vq-play { display: flex; flex-direction: column; gap: 16px; }
.vq-play__bar { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; }
.vq-icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--vf-surface); color: var(--vf-ink); cursor: pointer; box-shadow: 0 2px 8px rgba(19, 32, 31, .08); }
.vq-icon-btn:hover { color: var(--vf-primary); }
.vq-play__label { text-align: center; color: var(--vf-primary); font-weight: 800; font-size: 20px; }
.vq-coins { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--vf-accent); color: var(--vf-accent-ink); font-weight: 800; font-size: 17px; box-shadow: 0 6px 14px rgba(244, 169, 59, .4); }
.vq-progress__meta { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--vf-muted-2); margin-bottom: 6px; }
.vq-progress__track { height: 8px; border-radius: 999px; background: rgba(14, 94, 102, .12); overflow: hidden; }
.vq-progress__fill { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--vf-accent), #F7C46B); transition: width .35s ease; }
.vq-timer { position: relative; width: 56px; height: 56px; margin: 2px auto 0; display: grid; place-items: center; }
.vq-timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.vq-timer circle { fill: none; stroke-width: 4; }
.vq-timer__track { stroke: var(--vf-surface); }
.vq-timer__ring { stroke: var(--vf-primary); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear, stroke .2s; }
.vq-timer span { position: relative; font-weight: 800; font-size: 18px; color: var(--vf-ink); }
.vq-timer.is-low .vq-timer__ring { stroke: #D9534F; }
.vq-timer.is-low span { color: #C0392B; }
.vq-question { background: var(--vf-surface); border-radius: var(--vf-r-lg); padding: 18px 20px; text-align: center; box-shadow: 0 2px 10px rgba(19, 32, 31, .06); }
.vq-question__text { font-size: clamp(17px, 2.6vw, 20px); font-weight: 700; line-height: 1.45; }
.vq-question__media { margin-top: 14px; }
.vq-question__media img { max-height: 200px; width: auto; margin: 0 auto; border-radius: var(--vf-r); }
.vq-options { display: flex; flex-direction: column; gap: 12px; }
.vq-option {
	display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 16px;
	background: var(--vf-surface); border: 2px solid var(--vf-line); border-radius: 16px;
	font-family: var(--vf-font-display); font-size: 17px; font-weight: 600; color: var(--vf-ink); text-align: left;
	cursor: pointer; transition: border-color .15s, transform .15s, background .15s;
}
.vq-option:hover:not(:disabled) { border-color: var(--vf-primary); transform: translateY(-1px); }
.vq-option:disabled { cursor: default; }
.vq-option__badge { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: #fff; }
.vq-option__badge--1 { background: #7FB3E0; }
.vq-option__badge--2 { background: #A99AD6; }
.vq-option__badge--3 { background: var(--vf-accent); }
.vq-option__badge--4 { background: #8CC48A; }
.vq-option__badge--true { background: #5FA85C; }
.vq-option__badge--false { background: #E07A6A; }
.vq-option__text { flex: 1; }
.vq-option__mark { flex: none; font-size: 22px; font-weight: 800; line-height: 1; }
.vq-option.is-correct { background: var(--vf-leaf); border-color: #5FA85C; }
.vq-option.is-correct .vq-option__mark { color: #3E8E3B; }
.vq-option.is-correct .vq-option__mark::before { content: "✓"; }
.vq-option.is-wrong { background: var(--vf-rose); border-color: #D9534F; }
.vq-option.is-wrong .vq-option__mark { color: #D9534F; }
.vq-option.is-wrong .vq-option__mark::before { content: "✗"; }
.vq-option.is-correct, .vq-option.is-wrong { animation: vq-pop .3s ease; }
@keyframes vq-pop { 50% { transform: scale(1.02); } }
.vq-play__next { margin-top: 12px; }

/* Result */
.vq-end { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.vq-stars { display: flex; gap: 10px; font-size: 40px; color: rgba(14, 94, 102, .15); }
.vq-stars .is-on { color: var(--vf-accent); animation: vq-star .5s ease both; }
.vq-stars .is-on:nth-child(2) { animation-delay: .15s; }
.vq-stars .is-on:nth-child(3) { animation-delay: .3s; }
@keyframes vq-star { from { transform: scale(0) rotate(-45deg); } 70% { transform: scale(1.25); } to { transform: scale(1); } }
.vq-end__media { width: 180px; height: 140px; border-radius: var(--vf-r-lg); overflow: hidden; background: var(--vf-sand); display: grid; place-items: center; box-shadow: var(--vf-shadow); font-size: 72px; }
.vq-end__media img { width: 100%; height: 100%; object-fit: cover; }
.vq-end__title { font-size: clamp(24px, 4vw, 30px); font-weight: 800; }
.vq-end__lead { font-family: var(--vf-font-body); color: var(--vf-muted); }
.vq-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0; }
.vq-stat { background: var(--vf-surface); border-radius: var(--vf-r-lg); padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; box-shadow: 0 2px 10px rgba(19, 32, 31, .06); }
.vq-stat strong { font-size: 30px; font-weight: 800; line-height: 1.1; color: var(--vf-ink); }
.vq-stat__label { font-size: 13px; font-weight: 700; }
.vq-stat__sub { font-size: 12px; color: var(--vf-muted-2); }
.vq-stat--score .vq-stat__label { color: var(--vf-primary); }
.vq-stat--right .vq-stat__label { color: #3E8E3B; }
.vq-stat--wrong .vq-stat__label { color: #C0392B; }
.vq-cert { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.vq-cert__chev { transition: transform .2s; font-size: 13px; }
#btn-toggle-cert[aria-expanded="true"] .vq-cert__chev { transform: rotate(180deg); }
.vq-cert__panel { display: flex; flex-direction: column; gap: 14px; }
.vq-cert__form { display: flex; gap: 10px; }
.vq-input { flex: 1; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 2px solid var(--vf-line-strong); background: var(--vf-surface); font-family: var(--vf-font-body); font-size: 16px; }
.vq-input:focus { outline: 0; border-color: var(--vf-primary); }
.vq-cert__preview { background: var(--vf-sand); border-radius: var(--vf-r-lg); padding: 12px; }
.vq-cert__preview canvas { display: block; width: 100%; height: auto; border-radius: var(--vf-r-sm); }
.vq-cert__actions { display: flex; justify-content: center; gap: 10px; }
.vq-end__link { color: var(--vf-muted); font-weight: 700; text-decoration: underline; }
.vq-end__link:hover { color: var(--vf-primary); }
@media (max-width: 520px) {
	.vq-cert__form { flex-direction: column; }
	.vq-stat strong { font-size: 24px; }
	.vq-end__media { width: 150px; height: 120px; }
}

/* Favourite toggle */
.btn-favorite.vf-btn {
	border-radius: 999px; padding: 0 16px; gap: 8px;
	background: var(--vf-surface); border: 1px solid var(--vf-line-strong); color: var(--vf-ink);
	font-family: var(--vf-font-body); font-size: 14px; font-weight: 700;
	transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn-favorite.vf-btn .vf-icon { color: #FF70A6; transition: transform .2s; }
.btn-favorite.vf-btn:hover { background: #FFF0F5; border-color: #FFB3CF; color: var(--vf-ink); }
.btn-favorite.vf-btn:hover .vf-icon { transform: scale(1.12); }
.btn-favorite.vf-btn.active { background: #FFE6EF; border-color: #FF9EC2; color: #B0245A; }
.btn-favorite.vf-btn.active .vf-icon path { fill: currentColor; }
.btn-favorite.vf-btn.active .vf-icon { color: #FF4F8B; }
.btn-favorite.vf-btn:focus-visible { outline: 3px solid #FF9EC2; outline-offset: 2px; }
.btn-favorite.is-popping .vf-icon { animation: vf-heart-pop .35s ease; }
@keyframes vf-heart-pop { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .btn-favorite.is-popping .vf-icon { animation: none; } }

/* Learn Gujarati widget */
.vf-alpha { display: flex; flex-direction: column; gap: 18px; }
.vf-alpha__layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.vf-alpha__grid { flex: 999 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px; }
.vf-alpha__grid[hidden] { display: none; }
.vf-alpha__key { aspect-ratio: 1; min-height: 64px; border-radius: 18px; border: 2px solid var(--vf-line); background: var(--vf-surface); font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; font-size: 36px; color: var(--vf-ink); cursor: pointer; }
.vf-alpha__key:hover { border-color: var(--vf-primary); }
.vf-alpha__key.is-on { background: var(--vf-primary); border-color: var(--vf-primary); color: #fff; }
.vf-alpha__card { flex: 1 1 280px; position: sticky; top: 100px; background: var(--vf-sand); border-radius: var(--vf-r-xl); padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.vf-alpha__big { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 130px; line-height: 1; color: var(--vf-primary); }
.vf-alpha__word { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 700; font-size: 30px; }

/* Kids portal */
.vf-portal { padding-top: 28px; padding-bottom: 56px; }
.vf-portal__grid { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 20px; align-items: flex-start; }
.vf-portal__intro { flex: 1 1 360px; border-radius: var(--vf-r-xl); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.vf-portal__intro p { font-size: 17px; color: var(--vf-muted); }
.vf-portal__auth { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.vf-segmented { display: flex; background: var(--vf-surface); border: 1px solid var(--vf-line-strong); border-radius: 14px; padding: 4px; gap: 4px; }
.vf-portal .auth-tab-btn { flex: 1; min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; cursor: pointer; box-shadow: none; color: var(--vf-ink); font-size: 15px; transform: none; }
.vf-portal .auth-tab-btn.active { background: var(--vf-dark-2); color: #fff; }
.vf-avatars { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, 60px); gap: 8px; }
.vf-avatars legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.vf-portal .avatar-option { width: 60px; height: 60px; padding: 0; font-size: 28px; border-radius: 14px; border: 2px solid var(--vf-line); background: var(--vf-surface); cursor: pointer; box-shadow: none; }
.vf-portal .avatar-option.selected { border-color: var(--vf-primary); background: var(--vf-teal); transform: none; }
.vf-portal .auth-status-msg { font-weight: 600; border-radius: 10px; }
.vf-dash { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
.vf-dash__head { display: flex; align-items: center; gap: 18px; }
.vf-dash__avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--vf-sand); display: flex; align-items: center; justify-content: center; font-size: 46px; flex: none; }
.vf-dash__title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; }
.vf-progress__labels { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; }
.vf-progress { height: 14px; border-radius: 7px; background: var(--vf-line); overflow: hidden; }
.vf-progress span { display: block; height: 100%; background: var(--vf-primary); border-radius: 7px; }
.vf-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 14px; }
.vf-badge { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 18px 14px; border-radius: 18px; border: 1px dashed var(--vf-line-strong); color: var(--vf-muted-2); font-size: 13px; opacity: .7; }
.vf-badge strong { color: var(--vf-ink); font-size: 14px; }
.vf-badge__icon { font-size: 34px; filter: grayscale(1); }
.vf-badge.is-unlocked { opacity: 1; border: 1px solid var(--vf-line); background: var(--vf-surface); }
.vf-badge.is-unlocked .vf-badge__icon { filter: none; }

/* Contact / legal / about */
.vf-contact, .vf-legal { padding-top: 28px; padding-bottom: 56px; }
.vf-contact__grid { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.vf-contact__grid > form { flex: 999 1 520px; min-width: 0; padding: 32px; }
.vf-contact__side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.vf-contact__side details { border-top: 1px solid #F1EBDD; padding: 10px 0; }
.vf-contact__side summary { font-weight: 600; cursor: pointer; min-height: 32px; }
.vf-contact__side details p { margin-top: 6px; }
.vf-legal__tabs { margin-top: 18px; }
.vf-legal__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.vf-legal__toc { flex: 1 1 240px; min-width: 0; position: sticky; top: 100px; }
.vf-legal__body { flex: 999 1 560px; min-width: 0; font-size: 17px; }
.vf-callout { background: var(--vf-teal); color: var(--vf-teal-ink); border-radius: 18px; padding: 18px 22px; }
.vf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 28px 0; }
.vf-stat { background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 18px; padding: 18px; text-align: center; display: flex; flex-direction: column; }
.vf-stat strong { font-family: var(--vf-font-display); font-size: 32px; line-height: 1.1; }
.vf-stat span { font-size: 14px; color: var(--vf-muted-2); }

/* Search page */
.vf-search-page { padding-top: 28px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.vf-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.vf-result { display: flex; gap: 16px; align-items: center; background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 18px; padding: 12px; text-decoration: none; color: inherit; }
.vf-result:hover { border-color: var(--vf-ink); color: inherit; }
.vf-result__thumb { width: 96px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; }
.vf-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vf-result__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vf-result__title { font-family: var(--vf-font-display); font-weight: 700; font-size: 20px; line-height: 1.3; }
.vf-404 { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 18px; }
.vf-404__code { font-family: var(--vf-font-display); font-size: 120px; font-weight: 800; line-height: 1; color: var(--vf-accent); }
.vf-404 .vf-searchbar { margin: 0 auto; width: 100%; }

/* ------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------ */
.vf-footer { background: var(--vf-dark); color: #D5DCDC; margin-top: 40px; }
.vf-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 48px; padding-bottom: 32px; }
.vf-footer__brand { flex: 2 1 280px; display: flex; flex-direction: column; gap: 12px; }
.vf-footer__brand p { font-size: 14px; line-height: 1.7; max-width: 360px; }
.vf-footer__name { font-family: 'Baloo Bhai 2', sans-serif; font-weight: 800; font-size: 26px; color: #fff; }
.vf-footer__mail, .vf-footer__social a { color: #D5DCDC; font-size: 14px; }
.vf-footer__social { display: flex; gap: 14px; }
.vf-footer__col { flex: 1 1 150px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.vf-footer__col h2 { color: #fff; font-family: var(--vf-font-body); font-size: 15px; font-weight: 600; }
.vf-footer__col a { color: #D5DCDC; padding: 2px 0; }
.vf-footer__col a:hover, .vf-footer__mail:hover { color: #fff; }
.vf-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #2A3938; padding-top: 16px; padding-bottom: 24px; font-size: 13px; color: #A9B4B4; }

/* ------------------------------------------------------------------
 * Small screens
 * ------------------------------------------------------------------ */
@media (max-width: 640px) {
	:root { --vf-gutter: 16px; }
	.vf-home-hero { padding-top: 28px; gap: 28px; }
	.vf-section { padding-top: 36px; padding-bottom: 36px; }
	.vf-lead__text { padding: 26px; }
	.vf-panel { padding: 20px; }
	.vf-contact__grid > form { padding: 20px; }
	.vf-prose--story { font-size: 19px; }
	.vf-alpha__card { position: static; }
	.vf-alpha__big { font-size: 96px; }
	.vf-legal__toc { position: static; }
	.vf-tabs__tab { padding: 12px 14px; }
	.vf-search__form { flex-direction: column; }
	.vf-searchbar { flex-direction: column; }
	.vf-postnav__link--next { text-align: left; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------
 * Print
 * ------------------------------------------------------------------ */
@media print {
	.vf-header, .vf-footer, .vf-sidebar, .vf-ad, .vf-share, .vf-postnav, .vf-textsize, .vf-band, .vf-crumbs, .btn-favorite, .vf-search, .vf-skip, .vf-activity__again { display: none !important; }
	body { background: #fff; }
	.vf-article-layout, .vf-activity { padding: 0; }
	.vf-prose { max-width: none; }
}

/* Comments */
.vf-comments { max-width: 720px; }
.vf-comment-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 14px; }
.vf-comments .comment-body { border-bottom: 1px solid var(--vf-line); padding-bottom: 12px; }
.vf-comments textarea, .vf-comments input[type="text"], .vf-comments input[type="email"], .vf-comments input[type="url"] { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--vf-line-strong); border-radius: 12px; background: var(--vf-bg); }
.vf-comments label { display: block; font-weight: 600; margin-bottom: 4px; }

/* ------------------------------------------------------------------
 * Toast notifications (points, login hints)
 * ------------------------------------------------------------------ */
.vf-toast {
	position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 999999;
	display: flex; align-items: center; gap: 12px;
	width: max-content; max-width: calc(100vw - 32px);
	padding: 10px 18px 10px 10px; border-radius: var(--vf-r);
	background: var(--vf-dark-2); color: #fff;
	font-family: var(--vf-font-body); font-size: 15px; font-weight: 600; line-height: 1.35;
	box-shadow: 0 12px 32px rgba(19, 32, 31, 0.28);
	pointer-events: none; opacity: 0; transform: translate(-50%, 16px);
	transition: opacity .25s ease, transform .25s ease;
}
.vf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.vf-toast__icon {
	flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center; font-size: 18px;
	background: var(--vf-accent);
}
.vf-toast__text { min-width: 0; }
.vf-toast:not(:has(.vf-toast__icon)) { padding-left: 18px; }
@media (max-width: 480px) {
	.vf-toast { bottom: calc(16px + env(safe-area-inset-bottom, 0px)); font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.vf-toast { transition: opacity .2s ease; transform: translate(-50%, 0); }
}

/* ------------------------------------------------------------------
 * Native game runners (memory match, balloon math)
 * ------------------------------------------------------------------ */
.vf-engine--games .game-runner-wrap { position: relative; }
:is(.vf-engine--games, .vf-engine--puzzles) .game-stats-panel {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px;
	margin-bottom: clamp(18px, 3vw, 28px); padding: 10px 10px 10px 20px;
	background: var(--vf-sand); border: 1px solid var(--vf-sand-media); border-radius: var(--vf-r-lg);
	font-family: var(--vf-font-display); font-weight: 700;
}
:is(.vf-engine--games, .vf-engine--puzzles) .stat-box { font-size: 16px; color: var(--vf-ink); }
:is(.vf-engine--games, .vf-engine--puzzles) .stat-box--time { color: #B45309; }
:is(.vf-engine--games, .vf-engine--puzzles) .stat-box--moves { color: var(--vf-lilac-ink); }
:is(.vf-engine--games, .vf-engine--puzzles) .game-stats-panel .vf-btn { margin-left: auto; }

.vf-engine--games .memory-game-grid { gap: clamp(10px, 2.4vw, 16px); max-width: 460px; }
.vf-engine--games .memory-card { height: auto; aspect-ratio: 1 / .9; }
.vf-engine--games .memory-card-inner { border: 0; border-radius: 16px; transition: transform .5s cubic-bezier(.3, .7, .4, 1); }
.vf-engine--games .memory-card-face { border-radius: 16px; font-size: clamp(26px, 7vw, 40px); }
.vf-engine--games .memory-card-back {
	background: linear-gradient(145deg, #9D5CF5, #8338EC 55%, #6C22D0);
	border: 2px solid rgba(255, 255, 255, .22);
	box-shadow: 0 8px 18px rgba(131, 56, 236, .28);
	transition: transform .15s, box-shadow .15s;
}
.vf-engine--games .memory-card:not(.flipped):hover .memory-card-back { transform: translateY(-3px); box-shadow: 0 12px 22px rgba(131, 56, 236, .34); }
.vf-engine--games .memory-card-front { background: var(--vf-surface); border: 2px solid var(--vf-line); box-shadow: 0 6px 14px rgba(19, 32, 31, .08); }
.vf-engine--games .memory-card.is-matched .memory-card-front { background: var(--vf-leaf); border-color: #BFDFA6; }
.vf-engine--games .memory-card:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 3px; border-radius: 16px; }
.vf-engine--games .memory-card.is-matched { cursor: default; }

:is(.vf-engine--games, .vf-engine--puzzles) .game-win-overlay {
	background: rgba(19, 32, 31, .5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	border-radius: var(--vf-r-lg); padding: 16px;
}
:is(.vf-engine--games, .vf-engine--puzzles) .win-banner {
	width: 100%; max-width: 380px; padding: 28px 22px; text-align: center;
	background: var(--vf-surface); border-radius: var(--vf-r-xl); box-shadow: 0 16px 40px rgba(19, 32, 31, .22);
}
:is(.vf-engine--games, .vf-engine--puzzles) .win-banner h2 { margin: 0 0 8px; font-family: var(--vf-font-display); font-size: clamp(24px, 6vw, 30px); color: #8338EC; }
:is(.vf-engine--games, .vf-engine--puzzles) .win-banner p { margin: 0; color: var(--vf-muted); font-weight: 600; }
:is(.vf-engine--games, .vf-engine--puzzles) .win-banner__actions { margin-top: 18px; gap: 12px; flex-wrap: wrap; }

/* Balloon math */
.vf-engine--games .math-board {
	max-width: 400px; margin: 0 auto clamp(18px, 3vw, 26px); padding: clamp(16px, 3vw, 22px) 24px;
	background: linear-gradient(135deg, #FFB347, #FF9F1C 50%, #F08C00);
	border-radius: 999px; box-shadow: 0 10px 24px rgba(255, 159, 28, .32), inset 0 -4px 0 rgba(0, 0, 0, .08);
}
.vf-engine--games .equation-box {
	font-family: var(--vf-font-display); font-size: clamp(30px, 8vw, 42px) !important; font-weight: 800;
	color: #fff; text-shadow: 0 2px 0 rgba(150, 80, 0, .35); line-height: 1.2; letter-spacing: .02em;
}
.vf-engine--games .balloon-spawn-area {
	height: clamp(320px, 70vw, 380px);
	background: linear-gradient(180deg, #F5FAFF 0%, var(--vf-sky) 55%, #D4E7FA 100%);
	border: 2px solid #BCD8F4; border-radius: var(--vf-r-lg);
	box-shadow: inset 0 2px 10px rgba(36, 64, 107, .06);
}
.vf-engine--games .start-game-overlay {
	background: rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
	border-radius: inherit; z-index: 5;
}
.vf-engine--games .balloon-pop {
	--balloon: #FF9F1C;
	width: 64px; height: 78px;
	border-radius: 50% 50% 48% 48% / 42% 42% 58% 58%;
	background:
		radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .55) 0 10%, transparent 26%),
		linear-gradient(160deg, var(--balloon), color-mix(in srgb, var(--balloon) 78%, #000));
	box-shadow: inset -6px -8px 0 rgba(0, 0, 0, .1), 0 8px 16px rgba(19, 32, 31, .15);
	font-family: var(--vf-font-display); font-size: 20px; font-weight: 800;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
	user-select: none; -webkit-tap-highlight-color: transparent;
	transition: transform .15s ease, opacity .15s ease;
}
.vf-engine--games .balloon-pop::before {
	content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
	border: 5px solid transparent; border-bottom: 0; border-top: 6px solid color-mix(in srgb, var(--balloon) 78%, #000);
}
.vf-engine--games .balloon-pop::after {
	left: 50%; bottom: -26px; width: 1.5px; height: 20px; background: rgba(36, 64, 107, .35);
}
.vf-engine--games .balloon-pop:hover { transform: scale(1.06); }
.vf-engine--games .balloon-pop:focus-visible { outline: 3px solid var(--vf-primary); outline-offset: 4px; }
.vf-engine--games .balloon-pop.is-popped { transform: scale(1.35); opacity: 0; pointer-events: none; }

@media (max-width: 480px) {
	:is(.vf-engine--games, .vf-engine--puzzles) .game-stats-panel { padding: 10px 12px; gap: 8px 14px; }
	:is(.vf-engine--games, .vf-engine--puzzles) .stat-box { font-size: 14px; }
	.vf-engine--games .memory-card-inner, .vf-engine--games .memory-card-face { border-radius: 12px; }
	:is(.vf-engine--games, .vf-engine--puzzles) .win-banner__actions .vf-btn { flex: 1 1 100%; }
	.vf-activity__again .vf-btn--pill { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------
 * Puzzles — word search
 * ------------------------------------------------------------------ */
.vf-engine--puzzles .puzzle-runner-wrap { position: relative; }
.vf-engine--puzzles .wordsearch-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(16px, 3vw, 32px); align-items: start;
}
.vf-engine--puzzles .wordsearch-grid-container { min-width: 0; }
.vf-engine--puzzles .word-grid-board {
	--ws-cols: 8;
	grid-template-columns: repeat(var(--ws-cols), minmax(0, 52px)); gap: clamp(5px, 1.2vw, 8px);
	justify-content: center; align-content: start; max-width: 100%;
	padding: clamp(10px, 2vw, 16px); background: var(--vf-surface);
	border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg);
	box-shadow: 0 8px 24px rgba(19, 32, 31, .08);
	touch-action: none;
}
.vf-engine--puzzles .grid-letter-cell {
	width: auto; height: auto; aspect-ratio: 1;
	background: var(--vf-bg); border: 1px solid var(--vf-line); border-radius: 12px;
	font-family: var(--vf-font-display); font-size: clamp(15px, 3.6vw, 20px); font-weight: 700; color: var(--vf-ink);
	transition: background .12s, color .12s, transform .12s, border-color .12s;
}
.vf-engine--puzzles .grid-letter-cell:hover { background: var(--vf-sand); border-color: var(--vf-sand-media); }
.vf-engine--puzzles .grid-letter-cell.selected {
	background: linear-gradient(135deg, #9D5CF5, #8338EC); color: #fff; border-color: transparent;
	transform: scale(1.06); box-shadow: 0 4px 10px rgba(131, 56, 236, .3);
}
.vf-engine--puzzles .grid-letter-cell.found {
	background: linear-gradient(135deg, #2EE6B6, #06B386); color: #fff; border-color: transparent;
}

.vf-engine--puzzles .wordsearch-words-list {
	width: auto; padding: 22px; background: var(--vf-sand); border: 1px solid var(--vf-sand-media);
	border-radius: var(--vf-r-xl);
}
.vf-engine--puzzles .wordsearch-words-list h3 { margin: 0; font-family: var(--vf-font-display); font-size: 18px; color: var(--vf-sand-ink); }
.vf-engine--puzzles .wordsearch-words-list ul { display: grid; gap: 8px; margin: 14px 0 18px; padding: 0; list-style: none; }
.vf-engine--puzzles .wordsearch-words-list ul li {
	display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px;
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 12px;
	font-family: var(--vf-font-display); font-size: 16px; font-weight: 700; color: var(--vf-ink);
}
.vf-engine--puzzles .wordsearch-words-list ul li::before {
	content: ""; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%;
	border: 2px solid var(--vf-line-strong); background: var(--vf-surface);
}
.vf-engine--puzzles .wordsearch-words-list ul li.found {
	opacity: 1; background: var(--vf-leaf); border-color: #BFDFA6; color: var(--vf-leaf-ink); text-decoration: line-through;
}
.vf-engine--puzzles .wordsearch-words-list ul li.found::before {
	content: "✓"; display: grid; place-items: center; font-size: 12px; color: #fff;
	background: #06B386; border-color: #06B386;
}

@media (max-width: 760px) {
	.vf-engine--puzzles .wordsearch-layout { grid-template-columns: 1fr; }
	.vf-engine--puzzles .wordsearch-words-list { padding: 18px; }
	.vf-engine--puzzles .wordsearch-words-list ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
	.vf-engine--puzzles .grid-letter-cell { border-radius: 9px; }
}

/* Puzzles — connect the dots */
.vf-engine--puzzles .dots-hint { margin: 0 0 14px; text-align: center; color: var(--vf-muted); font-weight: 600; font-size: 15px; }
.vf-engine--puzzles .canvas-canvas-wrap {
	position: relative; max-width: 600px; margin: 0 auto; overflow: hidden;
	background: #FFFCF5; border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg);
	box-shadow: 0 8px 24px rgba(19, 32, 31, .08);
}
.vf-engine--puzzles #dots-canvas { display: block; width: 100%; height: auto; cursor: pointer; touch-action: manipulation; }
@media (max-width: 480px) {
	.vf-engine--puzzles .dots-hint { font-size: 14px; }
}

/* Puzzles — number crossword */
.vf-engine--puzzles .crossword-board {
	max-width: 420px; margin: 0 auto; padding: clamp(12px, 3vw, 20px);
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg);
	box-shadow: 0 8px 24px rgba(19, 32, 31, .08);
}
.vf-engine--puzzles .crossword-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 10px); }
.vf-engine--puzzles .cw-cell {
	aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
	border-radius: 14px; font-family: var(--vf-font-display); font-weight: 800; font-size: clamp(18px, 5vw, 26px); color: var(--vf-ink);
}
.vf-engine--puzzles .cw-cell--num { background: var(--vf-sand); border: 1px solid var(--vf-sand-media); }
.vf-engine--puzzles .cw-cell--op { color: #8338EC; font-size: clamp(18px, 5vw, 24px); }
.vf-engine--puzzles .cw-cell--input { background: var(--vf-surface); border: 2px dashed #B79CF2; transition: border-color .15s, background .15s; }
.vf-engine--puzzles .cw-cell--input:focus-within { border-style: solid; border-color: #8338EC; box-shadow: 0 0 0 4px rgba(131, 56, 236, .15); }
.vf-engine--puzzles .cw-cell--input input {
	width: 100%; height: 100%; padding: 0; border: 0; outline: none; background: transparent; text-align: center;
	font: inherit; color: #6C22D0; caret-color: #8338EC;
}
.vf-engine--puzzles .cw-cell--input.is-correct { border-style: solid; border-color: #06B386; background: var(--vf-leaf); }
.vf-engine--puzzles .cw-cell--input.is-correct input { color: #047857; }
.vf-engine--puzzles .cw-cell--input.is-wrong { border-style: solid; border-color: #FF70A6; background: #FFF0F5; animation: vf-shake .3s ease; }
.vf-engine--puzzles .cw-cell--input.is-wrong input { color: #B0245A; }
@keyframes vf-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
@media (max-width: 480px) { .vf-engine--puzzles .cw-cell { border-radius: 10px; } }
@media (prefers-reduced-motion: reduce) { .vf-engine--puzzles .cw-cell--input.is-wrong { animation: none; } }

/* Puzzles — maze */
.vf-engine--puzzles .maze-board { max-width: 440px; }
.vf-engine--puzzles #maze-canvas { display: block; width: 100%; height: auto; cursor: crosshair; touch-action: none; }

/* Puzzles — fruit sudoku */
.vf-engine--puzzles .sudoku-board {
	max-width: 380px; margin: 0 auto; padding: clamp(12px, 3vw, 18px);
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg);
	box-shadow: 0 8px 24px rgba(19, 32, 31, .08);
}
.vf-engine--puzzles .sudoku-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(6px, 1.6vw, 8px); }
.vf-engine--puzzles .sd-cell {
	aspect-ratio: 1; display: flex; align-items: center; justify-content: center; padding: 0;
	font-size: clamp(26px, 8vw, 36px); line-height: 1;
	background: var(--vf-surface); border: 2px dashed #B79CF2; border-radius: 14px; cursor: pointer;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.vf-engine--puzzles .sd-cell:hover { background: #F7F3FF; }
.vf-engine--puzzles .sd-cell--alt { background: #FBF8FF; }
.vf-engine--puzzles .sd-cell--fixed.sd-cell--alt { background: #FCEBCB; }
.vf-engine--puzzles .sd-cell--fixed { background: var(--vf-sand); border: 1px solid var(--vf-sand-media); cursor: default; opacity: 1; }
.vf-engine--puzzles .sd-cell--fixed:hover { background: var(--vf-sand); }
.vf-engine--puzzles .sd-cell.is-filled { border-style: solid; border-color: #CDBAF7; background: #F7F3FF; }
.vf-engine--puzzles .sd-cell.is-selected { border-style: solid; border-color: #8338EC; box-shadow: 0 0 0 4px rgba(131, 56, 236, .18); background: #F7F3FF; }
.vf-engine--puzzles .sd-cell.is-clash { border-style: solid; border-color: #FF70A6; background: #FFF0F5; }
.vf-engine--puzzles .sd-cell.is-pop { animation: vf-heart-pop .3s ease; }
.vf-engine--puzzles .sd-cell:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 2px; }

.vf-engine--puzzles .sudoku-palette { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 18px auto 0; transition: opacity .2s; }
.vf-engine--puzzles .sudoku-palette.is-disabled { opacity: .5; }
.vf-engine--puzzles .sd-pick {
	width: 56px; height: 56px; display: grid; place-items: center; padding: 0;
	font-size: 28px; line-height: 1; cursor: pointer;
	background: var(--vf-surface); border: 1px solid var(--vf-line-strong); border-radius: 50%;
	box-shadow: 0 4px 12px rgba(19, 32, 31, .08); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.vf-engine--puzzles .sd-pick:hover { transform: translateY(-2px); border-color: #B79CF2; box-shadow: 0 8px 16px rgba(131, 56, 236, .18); }
.vf-engine--puzzles .sd-pick--erase { font-size: 20px; color: var(--vf-muted); }
@media (max-width: 480px) {
	.vf-engine--puzzles .sd-cell { border-radius: 10px; }
	.vf-engine--puzzles .sd-pick { width: 50px; height: 50px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .vf-engine--puzzles .sd-cell.is-pop { animation: none; } }

/* Puzzles — word jumble */
.vf-engine--puzzles .jumble-container {
	max-width: 460px; margin: 0 auto; padding: clamp(18px, 4vw, 28px);
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg);
	box-shadow: 0 8px 24px rgba(19, 32, 31, .08); text-align: center;
}
.vf-engine--puzzles .jumble-slots,
.vf-engine--puzzles .scrambled-letters { display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(8px, 2vw, 12px); }
.vf-engine--puzzles .jumble-slot,
.vf-engine--puzzles .jumble-tile {
	width: clamp(56px, 16vw, 72px); height: clamp(56px, 16vw, 72px); padding: 0;
	display: grid; place-items: center; border-radius: 16px;
	font-family: var(--vf-font-display); font-size: clamp(22px, 6vw, 30px); font-weight: 800; line-height: 1;
	transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, opacity .15s;
}
.vf-engine--puzzles .jumble-slot { background: var(--vf-bg); border: 2px dashed #B79CF2; color: #6C22D0; }
.vf-engine--puzzles .jumble-slot.is-filled { background: #F7F3FF; border-style: solid; border-color: #CDBAF7; cursor: pointer; }
.vf-engine--puzzles .jumble-slot.is-filled:hover { border-color: #FF70A6; }
.vf-engine--puzzles .jumble-slots.is-correct .jumble-slot { background: var(--vf-leaf); border: 2px solid #06B386; color: #047857; }
.vf-engine--puzzles .jumble-slots.is-wrong .jumble-slot { background: #FFF0F5; border: 2px solid #FF70A6; color: #B0245A; }
.vf-engine--puzzles .jumble-slots.is-wrong { animation: vf-shake .3s ease; }

.vf-engine--puzzles .jumble-feedback { min-height: 28px; margin: 14px 0; font-family: var(--vf-font-display); font-weight: 700; font-size: 17px; color: var(--vf-muted); }
.vf-engine--puzzles .jumble-feedback.is-correct { color: #047857; }
.vf-engine--puzzles .jumble-feedback.is-wrong { color: #B0245A; }

.vf-engine--puzzles .scrambled-letters { padding-top: 16px; border-top: 1px dashed var(--vf-line-strong); }
.vf-engine--puzzles .jumble-tile {
	background: linear-gradient(135deg, #9D5CF5, #8338EC); color: #fff; border: 0; cursor: pointer;
	box-shadow: 0 6px 14px rgba(131, 56, 236, .28);
}
.vf-engine--puzzles .jumble-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 18px rgba(131, 56, 236, .32); }
.vf-engine--puzzles .jumble-tile:active { transform: translateY(1px); }
.vf-engine--puzzles .jumble-tile.is-used { opacity: .2; box-shadow: none; transform: scale(.92); cursor: default; }
.vf-engine--puzzles .jumble-slot:focus-visible,
.vf-engine--puzzles .jumble-tile:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 2px; }
@media (max-width: 480px) {
	.vf-engine--puzzles .jumble-slot, .vf-engine--puzzles .jumble-tile { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) { .vf-engine--puzzles .jumble-slots.is-wrong { animation: none; } }

/* Puzzles — spot the difference */
.vf-engine--puzzles .diff-images-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2.5vw, 20px); max-width: 820px; margin: 0 auto; }
.vf-engine--puzzles .diff-panel {
	position: relative; margin: 0; overflow: hidden;
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: var(--vf-r-lg);
	box-shadow: 0 8px 24px rgba(19, 32, 31, .08);
}
.vf-engine--puzzles .diff-panel canvas { display: block; width: 100%; height: auto; max-width: none; cursor: pointer; touch-action: manipulation; }
.vf-engine--puzzles .diff-panel__label {
	position: absolute; top: 10px; left: 10px; z-index: 1; padding: 4px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--vf-leaf-ink); font-family: var(--vf-font-display); font-size: 13px; font-weight: 700;
	box-shadow: 0 2px 8px rgba(19, 32, 31, .1); pointer-events: none;
}
.vf-engine--puzzles .diff-panel__label--alt { color: #B45309; }
.vf-engine--puzzles .diff-progress { display: flex; gap: 6px; }
.vf-engine--puzzles .diff-progress span { width: 14px; height: 14px; border-radius: 50%; background: var(--vf-surface); border: 2px solid var(--vf-sand-media); transition: background .2s, border-color .2s, transform .2s; }
.vf-engine--puzzles .diff-progress span.is-on { background: #06B386; border-color: #06B386; transform: scale(1.1); }
@media (max-width: 640px) {
	.vf-engine--puzzles .diff-images-grid { grid-template-columns: 1fr; max-width: 420px; }
}

/* ------------------------------------------------------------------
 * Coloring pages — coloring app
 * ------------------------------------------------------------------ */
.vf-engine--coloring_pages .coloring-app { display: flex; flex-direction: column; gap: clamp(12px, 2vw, 18px); }

/* App bar: back · title · undo */
.vf-engine--coloring_pages .coloring-app__bar {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 8px;
	padding-bottom: 12px; border-bottom: 1px solid var(--vf-line);
}
.vf-engine--coloring_pages .coloring-app__title {
	margin: 0; text-align: center; font-family: var(--vf-font-display); font-size: clamp(17px, 2.4vw, 20px); font-weight: 800; color: var(--vf-ink);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vf-engine--coloring_pages .coloring-app__icon-btn {
	width: 44px; height: 44px; display: grid; place-items: center; padding: 0;
	background: transparent; border: 0; border-radius: 50%; color: var(--vf-ink); cursor: pointer; text-decoration: none;
	transition: background .15s, color .15s;
}
.vf-engine--coloring_pages .coloring-app__icon-btn:hover { background: var(--vf-sand); color: var(--vf-ink); }
.vf-engine--coloring_pages .coloring-app__icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.vf-engine--coloring_pages .coloring-app__icon-btn:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 2px; }

/* Layout: canvas + side panel on desktop, stacked on phones */
.vf-engine--coloring_pages .coloring-game-layout {
	display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto 1fr;
	gap: clamp(14px, 2.5vw, 22px); align-items: start;
}
.vf-engine--coloring_pages .coloring-canvas-wrapper { grid-column: 1; grid-row: 1 / span 2; }
.vf-engine--coloring_pages .coloring-toolbox { grid-column: 2; grid-row: 1; }
.vf-engine--coloring_pages .coloring-action-buttons { grid-column: 2; grid-row: 2; }

/* Canvas card */
.vf-engine--coloring_pages .canvas-shadow-wrap {
	position: relative; overflow: hidden; background: #fff;
	border: 3px solid #FFD8B5; border-radius: 22px;
	box-shadow: 0 10px 28px rgba(240, 140, 0, .12);
}
.vf-engine--coloring_pages #coloring-canvas { display: block; width: 100%; height: auto; max-width: 100%; cursor: crosshair; touch-action: none; }
.vf-engine--coloring_pages .coloring-objects { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; touch-action: none; }
.vf-engine--coloring_pages .coloring-tool-badge {
	position: absolute; right: 10px; bottom: 10px; width: 30px; height: 30px; display: grid; place-items: center;
	border-radius: 50%; background: rgba(255, 255, 255, .92); color: #F08C00; font-size: 14px; pointer-events: none;
	box-shadow: 0 2px 8px rgba(19, 32, 31, .12);
}
.vf-engine--coloring_pages .coloring-hint { min-height: 22px; margin: 10px 0 0; text-align: center; font-size: 14px; font-weight: 600; color: var(--vf-muted); }

/* Panel */
.vf-engine--coloring_pages .coloring-toolbox {
	display: flex; flex-direction: column; gap: 14px; padding: 0;
	background: transparent; border: 0; border-radius: 0; box-shadow: none;
}

/* Tool row */
.vf-engine--coloring_pages .tool-selectors {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 10px 8px;
	background: var(--vf-bg); border: 1px solid var(--vf-line); border-radius: 20px;
}
.vf-engine--coloring_pages .tool-btn {
	display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; padding: 4px 2px;
	background: transparent; border: 0; border-radius: 12px; box-shadow: none; opacity: 1; transform: none; animation: none;
	font-family: var(--vf-font-display); font-size: 12px; font-weight: 700; color: var(--vf-muted); cursor: pointer;
}
.vf-engine--coloring_pages .tool-btn__icon {
	width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
	background: #E8EEF6; color: #3D5A80; font-size: 17px;
	transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.vf-engine--coloring_pages .tool-btn__icon i { font-size: inherit; transform: none; color: inherit; }
.vf-engine--coloring_pages .tool-btn:hover { transform: none; box-shadow: none; }
.vf-engine--coloring_pages .tool-btn:hover .tool-btn__icon { transform: translateY(-2px); }
.vf-engine--coloring_pages .tool-btn.active-tool { background: transparent; color: var(--vf-ink); box-shadow: none; transform: none; }
.vf-engine--coloring_pages .tool-btn.active-tool .tool-btn__icon {
	background: linear-gradient(135deg, #9D5CF5, #8338EC); color: #fff; box-shadow: 0 6px 14px rgba(131, 56, 236, .32);
}
.vf-engine--coloring_pages .tool-btn-clear .tool-btn__icon { background: #FFE4EC; color: #E0245E; }
.vf-engine--coloring_pages .tool-btn-clear:hover { background: transparent; color: #B0245A; }
.vf-engine--coloring_pages .tool-btn:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 2px; }

/* Sticker tray & text panel */
.vf-engine--coloring_pages .coloring-sticker-tray {
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; padding: 10px;
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 16px;
}
.vf-engine--coloring_pages .coloring-sticker-tray[hidden], .vf-engine--coloring_pages .coloring-text-panel[hidden] { display: none; }
.vf-engine--coloring_pages .coloring-sticker {
	aspect-ratio: 1; display: grid; place-items: center; padding: 0; font-size: 22px; line-height: 1;
	background: var(--vf-bg); border: 1px solid transparent; border-radius: 12px; cursor: pointer; transition: transform .15s, border-color .15s, background .15s;
}
.vf-engine--coloring_pages .coloring-sticker:hover { transform: scale(1.08); }
.vf-engine--coloring_pages .coloring-sticker.is-selected { background: #F3EDFF; border-color: #8338EC; }
.vf-engine--coloring_pages .coloring-text-panel input {
	width: 100%; min-height: 46px; padding: 0 16px; border: 2px solid #CDBAF7; border-radius: 14px; background: var(--vf-surface);
	font-family: var(--vf-font-display); font-size: 16px; font-weight: 700; color: var(--vf-ink); outline: none;
}
.vf-engine--coloring_pages .coloring-text-panel input:focus { border-color: #8338EC; box-shadow: 0 0 0 4px rgba(131, 56, 236, .15); }

/* Colour picker + brush size row */
.vf-engine--coloring_pages .coloring-color-row { display: flex; flex-direction: column; gap: 14px; }
.vf-engine--coloring_pages .coloring-color-pick { position: relative; display: flex; align-items: center; gap: 10px; }
.vf-engine--coloring_pages .coloring-picker-btn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: 0 0 auto;
	width: 84px; height: 72px; padding: 4px; background: var(--vf-surface); border: 2px solid #FFD8B5; border-radius: 16px;
	font-family: var(--vf-font-display); font-size: 11.5px; font-weight: 700; color: var(--vf-ink); cursor: pointer; line-height: 1.2;
	transition: border-color .15s, box-shadow .15s;
}
.vf-engine--coloring_pages .coloring-picker-btn__icon { font-size: 22px; }
.vf-engine--coloring_pages .coloring-picker-btn:hover,
.vf-engine--coloring_pages .coloring-picker-btn[aria-expanded="true"] { border-color: #FF9F1C; box-shadow: 0 6px 14px rgba(255, 159, 28, .2); }
.vf-engine--coloring_pages .recent-colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vf-engine--coloring_pages .recent-color {
	width: 30px; height: 30px; padding: 0; border-radius: 50%; background: var(--swatch);
	border: 2px solid rgba(19, 32, 31, .15); cursor: pointer; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); transition: transform .15s;
}
.vf-engine--coloring_pages .recent-color.is-current { width: 36px; height: 36px; box-shadow: 0 0 0 3px #fff, 0 0 0 5px #8338EC; }
.vf-engine--coloring_pages .recent-color:hover { transform: scale(1.08); }

.vf-engine--coloring_pages .coloring-palette {
	position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(300px, calc(100vw - 48px)); padding: 14px;
	background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 18px; box-shadow: 0 16px 40px rgba(19, 32, 31, .18);
}
.vf-engine--coloring_pages .coloring-palette[hidden] { display: none; }
.vf-engine--coloring_pages .color-palette-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 0; justify-items: center; }
.vf-engine--coloring_pages .palette-color {
	width: 100%; max-width: 36px; aspect-ratio: 1; height: auto; padding: 0; position: relative;
	background: var(--swatch); border: 2px solid rgba(19, 32, 31, .12); border-radius: 50%; cursor: pointer;
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12); transition: transform .15s, box-shadow .15s;
}
.vf-engine--coloring_pages .palette-color:hover { transform: scale(1.1); }
.vf-engine--coloring_pages .palette-color.selected { transform: scale(1.1); box-shadow: 0 0 0 3px #fff, 0 0 0 5px #8338EC; }
.vf-engine--coloring_pages .palette-color:focus-visible,
.vf-engine--coloring_pages .recent-color:focus-visible,
.vf-engine--coloring_pages .coloring-picker-btn:focus-visible { outline: 3px solid var(--vf-accent); outline-offset: 2px; }
.vf-engine--coloring_pages .coloring-custom-color {
	display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--vf-line-strong);
	font-family: var(--vf-font-display); font-weight: 700; font-size: 14px; color: var(--vf-ink); cursor: pointer;
}
.vf-engine--coloring_pages .coloring-custom-color input { width: 40px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }

.vf-engine--coloring_pages .brush-size-control { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; background: none; border: 0; }
.vf-engine--coloring_pages .brush-size-control__head { display: flex; justify-content: space-between; align-items: baseline; }
.vf-engine--coloring_pages .brush-size-control label { margin: 0; font-family: var(--vf-font-display); font-size: 14px; font-weight: 700; color: var(--vf-ink); }
.vf-engine--coloring_pages .brush-size-control__value { font-family: var(--vf-font-display); font-size: 13px; font-weight: 700; color: #F08C00; }
.vf-engine--coloring_pages .brush-size-control input[type="range"] { width: 100%; accent-color: #F08C00; }

/* Actions */
.vf-engine--coloring_pages .coloring-action-buttons { display: flex; flex-direction: column; gap: 10px; }
.vf-engine--coloring_pages .coloring-action-buttons .vf-btn { width: 100%; }
.vf-engine--coloring_pages .coloring-action-buttons .vf-btn--dark { border-radius: 999px; box-shadow: 0 6px 16px rgba(19, 32, 31, .2); }

@media (max-width: 860px) {
	.vf-engine--coloring_pages .coloring-game-layout { grid-template-columns: 1fr; grid-template-rows: none; }
	.vf-engine--coloring_pages .coloring-canvas-wrapper,
	.vf-engine--coloring_pages .coloring-toolbox,
	.vf-engine--coloring_pages .coloring-action-buttons { grid-column: 1; grid-row: auto; }
	.vf-engine--coloring_pages .tool-selectors { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 10px 4px; }
	.vf-engine--coloring_pages .coloring-color-row { flex-direction: row; align-items: center; }
	.vf-engine--coloring_pages .coloring-color-pick { flex: 0 0 auto; padding-right: 14px; border-right: 1px solid var(--vf-line); }
	.vf-engine--coloring_pages .brush-size-control { flex: 1; min-width: 0; }
}
@media (max-width: 480px) {
	.vf-engine--coloring_pages .tool-btn { font-size: 10.5px; gap: 4px; }
	.vf-engine--coloring_pages .tool-btn__icon { width: 38px; height: 38px; font-size: 15px; }
	.vf-engine--coloring_pages .coloring-picker-btn { width: 70px; height: 66px; font-size: 10.5px; }
	.vf-engine--coloring_pages .recent-colors { gap: 6px; }
	.vf-engine--coloring_pages .recent-color { width: 26px; height: 26px; }
	.vf-engine--coloring_pages .recent-color.is-current { width: 30px; height: 30px; }
	.vf-engine--coloring_pages .recent-color:nth-child(n+3) { display: none; }
	.vf-engine--coloring_pages .canvas-shadow-wrap { border-radius: 18px; }
}

/* ------------------------------------------------------------------
 * Parents corner — child progress dashboard
 * ------------------------------------------------------------------ */
.vf-progress-dash { display: flex; flex-direction: column; gap: 18px; }
.vf-progress-dash__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vf-progress-dash__head .vf-panel__title { margin: 0 0 4px; }
.vf-progress-dash__head .vf-muted { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; }
.vf-progress-dash__head .vf-muted .vf-icon { color: #2F6B2F; flex: 0 0 auto; }
.vf-progress-dash__clear { background: var(--vf-surface); border: 1px solid #F5C2C7; color: #B4232A; border-radius: 999px; }
.vf-progress-dash__clear:hover { background: #FFF0F1; border-color: #E8828B; color: #9B1C22; }
.vf-progress-dash__clear:disabled { opacity: .45; cursor: default; background: var(--vf-surface); }

.vf-progress-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vf-progress-stat {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 18px;
	font-size: 13px; font-weight: 600; color: var(--vf-muted);
}
.vf-progress-stat__icon { font-size: 20px; line-height: 1; margin-bottom: 6px; }
.vf-progress-stat strong { font-family: var(--vf-font-display); font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--vf-ink); }
.vf-progress-stat--rose { background: var(--vf-rose); }
.vf-progress-stat--lilac { background: var(--vf-lilac); }
.vf-progress-stat--sand { background: var(--vf-sand); }
.vf-progress-stat--leaf { background: var(--vf-leaf); }

.vf-progress-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.vf-progress-card { background: var(--vf-surface); border: 1px solid var(--vf-line); border-radius: 18px; padding: 16px; min-width: 0; }
.vf-progress-card__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--vf-font-display); font-size: 17px; font-weight: 800; color: var(--vf-ink); }

.vf-progress-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vf-progress-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #F1EBDD; }
.vf-progress-item:last-child { border-bottom: 0; padding-bottom: 0; }
.vf-progress-item__icon { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--vf-bg); font-size: 18px; }
.vf-progress-item__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vf-progress-item__title {
	font-weight: 700; font-size: 14px; line-height: 1.35; color: var(--vf-ink); text-decoration: none;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
a.vf-progress-item__title:hover { color: var(--vf-primary); text-decoration: underline; }
.vf-progress-item__meta { font-size: 12px; color: var(--vf-muted-2); }
.vf-progress-item__remove {
	flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%;
	background: transparent; color: var(--vf-muted-2); font-size: 18px; line-height: 1; cursor: pointer;
}
.vf-progress-item__remove:hover { background: #FFF0F1; color: #B4232A; }

.vf-progress-score { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 56px; padding: 4px 8px; border-radius: 12px; line-height: 1.15; }
.vf-progress-score strong { font-family: var(--vf-font-display); font-size: 16px; font-weight: 800; }
.vf-progress-score small { font-size: 11px; font-weight: 600; opacity: .85; }
.vf-progress-score--good { background: var(--vf-leaf); color: #2F6B2F; }
.vf-progress-score--ok { background: var(--vf-sand); color: #8A5A00; }
.vf-progress-score--low { background: #FFF0F1; color: #B4232A; }

.vf-progress-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; text-align: center; border: 1.5px dashed var(--vf-line-strong); border-radius: 14px; }
.vf-progress-empty__icon { font-size: 26px; }
.vf-progress-empty p { margin: 0; font-size: 14px; color: var(--vf-muted); }
.vf-progress-empty a { font-weight: 700; font-size: 14px; color: var(--vf-primary); text-decoration: none; }
.vf-progress-empty a:hover { text-decoration: underline; }
.vf-progress-loading { color: var(--vf-muted); padding: 10px 0; }

@media (max-width: 900px) {
	.vf-progress-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.vf-progress-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.vf-progress-dash__clear { width: 100%; }
}
