/* Valaroo theme styles. All custom CSS for the theme lives in this one file.
   Colours, fonts, sizes and spacing are tokens in theme.json.
   Contrast: brown on orange 5.1:1, brown on cream 10.2:1, brown on white 11.7:1. */

/* ---------- 1. Base ---------- */
:root {
	--v-rule: 1px solid var(--wp--preset--color--sage);
	--v-radius: 16px;
	--v-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h13M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; }
:lang(ta), .v-ta { font-family: var(--wp--preset--font-family--tamil); }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { text-wrap: balance; text-transform: none; }

/* Links and focus */
a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus { outline: none; }
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--wp--preset--color--brown);
	outline-offset: 3px;
	border-radius: 6px;
}
.wp-block-button__link:focus-visible,
.v-nav-cta > a:focus-visible,
.v-btn:focus-visible,
.wp-block-navigation__responsive-container-open:focus-visible,
.wp-block-navigation__responsive-container-close:focus-visible { outline-offset: 4px; border-radius: 999px; }
.skip-link.screen-reader-text:focus { background: var(--wp--preset--color--white); color: var(--wp--preset--color--brown); }

/* ---------- 2. Buttons ---------- */
.wp-block-button__link,
.v-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link::after,
.v-btn::after,
.v-nav-cta > a::after {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--v-arrow) center / contain no-repeat;
	mask: var(--v-arrow) center / contain no-repeat;
	transition: transform 0.15s ease;
}
.wp-block-button__link:hover::after,
.v-btn:hover::after,
.v-nav-cta > a:hover::after { transform: translateX(3px); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--white); }
.v-btn {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.0625rem;
	line-height: 1.2;
	color: var(--wp--preset--color--brown);
	background: var(--wp--preset--color--orange);
	border: 0;
	border-radius: 999px;
	padding: 0.85rem 1.35rem 0.85rem 1.5rem;
	cursor: pointer;
}
.v-btn:hover { background: #FFA640; }
.v-btn[disabled], .v-btn[aria-disabled="true"] { cursor: not-allowed; }
.v-btn[disabled]:hover { background: var(--wp--preset--color--orange); }
.v-btn[disabled]:hover::after { transform: none; }

/* ---------- 3. Header ---------- */
.v-header { padding-top: 1rem; padding-bottom: 1rem; }
.v-header .wp-block-site-logo img { height: 84px; width: auto; }
.v-nav .wp-block-navigation-item__content { padding: 0.35rem 0; }
.v-nav .current-menu-item > a,
.v-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--wp--preset--color--sage); text-decoration-thickness: 3px; }
.v-nav .v-nav-cta { margin-left: 0.75rem; }
.v-nav .v-nav-cta > a {
	display: inline-flex; align-items: center; gap: 0.5em;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--brown);
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	border-radius: 999px;
	padding: 0.7rem 1.1rem 0.7rem 1.3rem;
	text-decoration: none;
	transition: background-color 0.15s ease;
}
.v-nav .v-nav-cta > a:hover { background: #FFA640; }
.v-nav .wp-block-navigation__responsive-container-open,
.v-nav .wp-block-navigation__responsive-container-close {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1rem;
	line-height: 1.2;
	border: 2px solid var(--wp--preset--color--brown);
	border-radius: 999px;
	padding: 0.5rem 1.1rem;
	color: var(--wp--preset--color--brown);
	background: transparent;
}
.v-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.25rem clamp(1.25rem, 5vw, 3rem); }
.v-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.1rem; }
.v-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-family: var(--wp--preset--font-family--heading);
	font-weight: 800;
	font-size: 1.75rem;
}
.v-nav .wp-block-navigation__responsive-container.is-menu-open .v-nav-cta { margin: 1rem 0 0; }
.v-nav .wp-block-navigation__responsive-container.is-menu-open .v-nav-cta > a { font-size: 1.125rem; padding: 0.85rem 1.35rem 0.85rem 1.5rem; }
@media (max-width: 599px) {
	.v-header .wp-block-site-logo img { height: 64px; }
}
@media (min-width: 600px) and (max-width: 1080px) {
	.v-header .alignwide { flex-wrap: wrap !important; row-gap: 0.5rem; }
	.v-nav .wp-block-navigation__container { gap: 1rem; }
}

/* ---------- 4. Shared pieces ---------- */
/* Nested constrained groups should not add a second gutter */
.wp-block-post-content .has-global-padding.alignwide,
.wp-block-post-content .alignwide .has-global-padding { padding-left: 0; padding-right: 0; }
.v-measure { max-width: 65ch; }
.v-kicker { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.01em; }
.v-small { font-size: var(--wp--preset--font-size--small); }
.v-note { border-left: 3px solid var(--wp--preset--color--sage); padding-left: 1.25rem !important; }
.v-panel { background: var(--wp--preset--color--white); border-radius: var(--v-radius); padding: clamp(1.5rem, 4vw, 3.5rem) !important; }
.v-lead { font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2rem); line-height: 1.38; }
.v-big { font-size: clamp(1.375rem, 1.1rem + 1.25vw, 1.9rem); line-height: 1.42; }
.v-offset { margin-left: auto !important; margin-right: 0 !important; }
@media (max-width: 781px) { .v-offset { margin-left: 0 !important; } }

/* Hero: image slot sized 4:3 for the generated header image */
/* Mascot sits on a sage ground line. The image has ~15% transparent space at the bottom,
   so a negative margin seats it on the line without editing the file. */
.v-hero__media {
	margin: 0;
	text-align: center;
	border-bottom: 3px solid var(--wp--preset--color--sage);
	overflow: hidden;
}
.v-hero__media img { display: block; width: 84%; height: auto; margin: 0 auto -12.6%; }
.v-hero__media.has-header-image { aspect-ratio: 4 / 3; border-bottom: 0; border-radius: var(--v-radius); }
.v-hero__media.has-header-image img { width: 100%; height: 100%; margin: 0; object-fit: cover; }
@media (max-width: 781px) {
	.v-hero__media { max-width: 20rem; margin: 0 auto; }
}

/* How it works: three steps on thin sage rules, not cards */
.v-steps { gap: 0 !important; }
.v-steps > .wp-block-column { padding: 0.25rem 2rem 0; border-left: var(--v-rule); }
.v-steps > .wp-block-column:first-child { border-left: 0; padding-left: 0; }
.v-steps > .wp-block-column:last-child { padding-right: 0; }
.v-step-num { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 3.25rem; line-height: 1; margin: 0 0 1rem; }
@media (max-width: 781px) {
	.v-steps > .wp-block-column,
	.v-steps > .wp-block-column:first-child { border-left: 0; border-top: var(--v-rule); padding: 1.25rem 0 1.5rem; }
	.v-steps > .wp-block-column:last-child { padding-bottom: 0; }
	.v-step-num { font-size: 2.5rem; margin-bottom: 0.5rem; }
}

/* What's inside: name left, one line right */
.v-rows > .wp-block-columns { border-top: var(--v-rule); padding: 1.25rem 0; margin: 0 !important; gap: 0.25rem 2rem; }
.v-rows > .wp-block-columns:last-of-type { border-bottom: var(--v-rule); }
.v-row-name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: var(--wp--preset--font-size--large); line-height: 1.1; margin: 0; }
.v-row-name a { text-decoration: none; }
.v-row-name a:hover { text-decoration: underline; text-decoration-color: var(--wp--preset--color--sage); text-decoration-thickness: 3px; }
.v-rows .wp-block-column > p:not(.v-row-name) { margin: 0.2rem 0 0; }
@media (max-width: 599px) {
	.v-rows > .wp-block-columns { flex-wrap: wrap !important; }
	.v-rows > .wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
}

/* Forms (not connected yet: they submit nothing) */
.v-form { margin: 0; }
.v-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.v-form label { display: block; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.9375rem; margin: 0 0 0.4rem; }
.v-form input,
.v-form textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--wp--preset--color--brown);
	background: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--sage);
	border-radius: 10px;
	padding: 0.8rem 0.9rem;
	margin: 0;
}
.v-form textarea { min-height: 9rem; resize: vertical; }
.v-form input:disabled,
.v-form textarea:disabled { background: var(--wp--preset--color--cream); color: var(--wp--preset--color--brown); -webkit-text-fill-color: var(--wp--preset--color--brown); opacity: 1; cursor: not-allowed; }
.v-form .v-field { margin: 0 0 1.1rem; }
.v-form .v-inline { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.v-form .v-inline .v-field { flex: 1 1 15rem; margin: 0; }
.v-soon { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.9375rem; margin: 0.9rem 0 0; }
.v-soon::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.5em; border-radius: 50%; background: var(--wp--preset--color--sage); vertical-align: 0.08em; }

/* Sample item lists (Play, Watch, Listen, Print) */
.v-items { margin: 0; }
.v-items table { width: 100%; border-collapse: collapse; table-layout: auto; }
.v-items thead { border: 0; }
.v-items th,
.v-items td { border: 0; text-align: left; vertical-align: top; }
.v-items th {
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.875rem;
	padding: 0 1rem 0.6rem 0;
	border-bottom: 2px solid var(--wp--preset--color--sage);
}
.v-items td { padding: 1rem 1rem 1rem 0; border-bottom: var(--v-rule); }
.v-items td:first-child { font-size: 1.125rem; width: 62%; }
.v-items td:not(:first-child), .v-items th:not(:first-child) { white-space: nowrap; }
.v-items th:last-child, .v-items td:last-child { padding-right: 0; }
.v-items em { font-style: normal; font-family: var(--wp--preset--font-family--heading); font-weight: 800; }
@media (max-width: 480px) {
	.v-items td:first-child { font-size: 1rem; }
	.v-items th, .v-items td { padding-right: 0.6rem; }
}

/* Photo slot (About) */
.v-photo-slot {
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--white);
	border: 2px dashed var(--wp--preset--color--sage);
	border-radius: var(--v-radius);
	display: flex; align-items: center; justify-content: center;
	padding: 1rem; text-align: center; margin: 0;
}
.v-signature { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 2rem; line-height: 1; }

/* Plain lists (For Parents) */
.v-plain-list { list-style: none; padding-left: 0; }
.v-plain-list li { padding: 0.8rem 0; border-top: var(--v-rule); }
.v-plain-list li:last-child { border-bottom: var(--v-rule); }

/* Blog */
.v-post-list .wp-block-post { padding: 1.5rem 0; border-top: var(--v-rule); }
.v-post-list .wp-block-post-title a { text-decoration: none; }
.v-post-list .wp-block-post-title a:hover { text-decoration: underline; }

/* 404 */
.v-404-mascot img { width: 220px; height: auto; }

/* Resource pages: meta line, games, printable sheets */
[hidden] { display: none !important; }
.v-meta { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.9375rem; }
.v-game { margin-top: var(--wp--preset--spacing--40); }
.v-game-stage { background: var(--wp--preset--color--white); border-radius: var(--v-radius); padding: clamp(1.25rem, 4vw, 2.5rem); text-align: center; }
.v-game-stage:focus { outline: none; }
.v-game-progress { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.875rem; margin: 0; }
.v-game-prompt { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: var(--wp--preset--font-size--large); line-height: 1.15; margin: 0.4rem 0 0; }
.v-game-board { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; align-items: center; min-height: 8rem; margin: 1.25rem auto 0; padding-bottom: 1.25rem; border-bottom: var(--v-rule); max-width: 26rem; }
.v-game-board svg { width: 52px; height: 52px; }
.v-game-target svg { width: 132px; height: 132px; }
.v-game-options { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; margin-top: 1.5rem; }
.v-game-option {
	min-width: 5.5rem; min-height: 5.5rem; padding: 0.5rem;
	display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 2.25rem; line-height: 1;
	color: var(--wp--preset--color--brown); background: var(--wp--preset--color--cream);
	border: 2px solid var(--wp--preset--color--brown); border-radius: var(--v-radius);
	cursor: pointer; transition: background-color 0.15s ease;
}
.v-game-option svg { width: 56px; height: 56px; }
.v-game-option:hover:not(:disabled) { background: var(--wp--preset--color--white); }
.v-game-option:focus-visible { outline-offset: 4px; border-radius: var(--v-radius); }
.v-game-option.is-right { background: var(--wp--preset--color--orange); }
.v-game-option.is-wrong { opacity: 0.4; cursor: not-allowed; }
.v-game-option:disabled { cursor: default; }
.v-game-feedback { font-family: var(--wp--preset--font-family--heading); font-weight: 800; min-height: 1.6em; margin: 1.25rem 0 0; }
.v-game-next { margin-top: 1rem; }

/* Dino game: picture board, name buttons, points, clap, confetti */
.v-game-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.v-game-score { position: relative; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.875rem; margin: 0; background: var(--wp--preset--color--cream); border-radius: 999px; padding: 0.25rem 0.8rem; }
.v-game-pop { position: absolute; right: -0.4rem; top: -0.2rem; color: var(--wp--preset--color--orange); font-size: 1.1rem; animation: v-pop 1.2s ease-out forwards; pointer-events: none; }
@keyframes v-pop { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(-1.6rem); } }
.v-game-dino svg { width: min(320px, 78vw); height: auto; aspect-ratio: 200 / 140; }
.v-game-option--word { min-width: 9rem; min-height: 3.75rem; padding: 0.6rem 1.1rem; font-size: 1.125rem; }
.v-game-clap { display: block; font-size: 3rem; line-height: 1; height: 3rem; margin: 0.75rem auto 0; opacity: 0; }
.v-game-clap.is-on { animation: v-clap 1.4s ease-out; }
@keyframes v-clap { 0% { opacity: 0; transform: scale(0.4); } 15% { opacity: 1; transform: scale(1.25) rotate(-8deg); } 30% { transform: scale(1) rotate(8deg); } 45% { transform: scale(1.2) rotate(-8deg); } 60% { transform: scale(1) rotate(0); opacity: 1; } 100% { opacity: 0; } }
.v-emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; font-weight: 400; }
.v-game-shadow { font-size: clamp(6rem, 30vw, 9rem); line-height: 1; }
.v-game-shadow .v-emoji { display: inline-block; filter: brightness(0); opacity: 0.85; transition: filter 0.6s ease, opacity 0.6s ease, transform 0.6s ease; }
.v-game-board.is-solved .v-game-shadow .v-emoji { filter: none; opacity: 1; transform: scale(1.08); }
.v-game-option--emoji { font-size: 3rem; min-width: 6rem; min-height: 6rem; }
.v-game-emoji { font-size: clamp(5rem, 22vw, 7rem); line-height: 1; }
.v-game-clock svg { width: clamp(150px, 45vw, 200px); height: auto; }
.v-game-option--pic { flex-direction: column; gap: 0.3rem; min-width: 6.5rem; padding: 0.6rem 0.8rem; font-size: 1rem; }
.v-game-option--pic .v-emoji { font-size: 2.6rem; }
.v-game-tools { display: flex; justify-content: center; gap: 0.75rem; margin-top: 1rem; }
.v-game-say, .v-game-stop { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.9375rem; color: var(--wp--preset--color--brown); background: var(--wp--preset--color--cream); border: 2px solid var(--wp--preset--color--brown); border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; }
.v-game-say:hover, .v-game-stop:hover { background: var(--wp--preset--color--white); }
.v-game-option--word { line-height: 1.2; }
.v-game-wordboard { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.v-game-wordboard .v-emoji { display: block; font-size: clamp(4.5rem, 20vw, 6rem); line-height: 1.1; }
.v-game-wordboard .v-emoji + span { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.5rem; line-height: 1.2; }
.v-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999; }
@media (prefers-reduced-motion: reduce) { .v-game-clap.is-on { animation: none; opacity: 1; } .v-game-pop { animation: none; opacity: 0; } }

/* Play page: kid-first game cards */
.v-play-head { display: flex; align-items: center; gap: clamp(0.75rem, 3vw, 1.5rem); }
.v-play-mascot { width: clamp(84px, 22vw, 140px); height: auto; flex: none; animation: v-bob 3.2s ease-in-out infinite; transform-origin: 50% 90%; }
.v-play-title { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: var(--wp--preset--font-size--xx-large); line-height: 1; margin: 0; }
.v-play-sub { font-family: var(--wp--preset--font-family--heading); font-weight: 700; font-size: var(--wp--preset--font-size--medium); margin: 0.5rem 0 0; }
.v-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); gap: clamp(1rem, 2.5vw, 1.75rem); max-width: var(--wp--style--global--wide-size, 80rem); margin-left: auto !important; margin-right: auto !important; }
.v-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--wp--preset--color--white); color: var(--wp--preset--color--brown);
	border: 3px solid var(--wp--preset--color--brown); border-radius: 24px;
	box-shadow: 0 6px 0 var(--wp--preset--color--brown);
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.v-card:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 10px 0 var(--wp--preset--color--brown); }
a.v-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--wp--preset--color--brown); }
a.v-card:focus-visible { outline: 4px solid var(--wp--preset--color--orange); outline-offset: 4px; }
.v-card-art { display: flex; align-items: center; justify-content: center; gap: 0.5rem; aspect-ratio: 10 / 7; padding: 1rem; border-bottom: 3px solid var(--wp--preset--color--brown); }
.v-card-art svg { width: 100%; height: 100%; max-height: 11rem; animation: v-float 4s ease-in-out infinite; }
.v-card:nth-child(2) .v-card-art svg, .v-card:nth-child(2) .v-card-art .v-emoji { animation-delay: -1s; }
.v-card:nth-child(3) .v-card-art svg { animation-delay: -2s; }
.v-card:nth-child(4) .v-card-art svg { animation-delay: -3s; }
a.v-card:hover .v-card-art svg, a.v-card:hover .v-card-art .v-emoji { animation: v-wiggle 0.5s ease-in-out; }
.is-dino .v-card-art { background: #FCC77F; }
.is-shadow .v-card-art { background: #CFE0D8; }
.is-count .v-card-art { background: var(--wp--preset--color--sage); }
.is-shapes .v-card-art { background: var(--wp--preset--color--orange); }
.is-soon .v-card-art { background: #EFE4D6; }
.is-days .v-card-art { background: #F6D8B4; }
.is-cartoon .v-card-art { background: #E6DCF0; }
.is-odd .v-card-art { background: #FCE3C0; }
.is-homes .v-card-art { background: #CFE0D8; }
.is-babies .v-card-art { background: #F9D3C4; }
.is-feelings .v-card-art { background: #FFE9A8; }
.is-rhymes .v-card-art { background: #D9E6F2; }
.v-card-emojis .v-emoji { display: inline-block; font-size: clamp(2.4rem, 8vw, 3.2rem); animation: v-float 4s ease-in-out infinite; }
.v-card-emojis .v-emoji:nth-child(2) { animation-delay: -1.3s; }
.v-card-emojis .v-emoji:nth-child(3) { animation-delay: -2.6s; }
.v-card-emojis .v-card-mid { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.75rem; }
@media (max-width: 30rem) { .v-card-emojis .v-emoji { font-size: 1.9rem; } .v-card-emojis .v-card-mid { font-size: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .v-card-emojis .v-emoji { animation: none; } }
.is-cartoon .v-card-art .v-emoji { display: inline-block; font-size: clamp(2.6rem, 9vw, 3.6rem); animation: v-float 4s ease-in-out infinite; }
.is-cartoon .v-card-art .v-emoji:nth-child(2) { animation-delay: -1.3s; }
.is-cartoon .v-card-art .v-emoji:nth-child(3) { animation-delay: -2.6s; }
@media (max-width: 30rem) { .is-cartoon .v-card-art .v-emoji { font-size: 2rem; } }
.is-shadow .v-card-art .v-emoji { display: inline-block; font-size: clamp(3.5rem, 12vw, 4.75rem); animation: v-float 4s ease-in-out infinite; }
.is-shadow .v-card-art .v-card-shadow { filter: brightness(0); opacity: 0.85; }
.is-shadow .v-card-art .v-card-arrow { width: 2.5rem; height: auto; flex: none; animation: none; }
.v-card-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.v-card-title { font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.375rem; line-height: 1.15; }
.v-card-line { font-size: 1rem; line-height: 1.4; }
.v-card-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.v-chip { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.8125rem; background: var(--wp--preset--color--cream); border-radius: 999px; padding: 0.2rem 0.65rem; }
.v-card-go { align-self: flex-start; margin-top: auto; padding-top: 0.75rem; font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 1.0625rem; }
.v-card-go::before { content: ""; display: inline-block; vertical-align: middle; width: 2.25rem; height: 2.25rem; margin-right: 0.5rem; border-radius: 50%; background: var(--wp--preset--color--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='%23493329'/%3E%3C/svg%3E") center / 1.4rem no-repeat; border: 2px solid var(--wp--preset--color--brown); }
.v-card-badge { position: absolute; top: 0.75rem; left: 0.75rem; transform: rotate(-6deg); font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: 0.875rem; background: var(--wp--preset--color--white); color: var(--wp--preset--color--brown); border: 2px solid var(--wp--preset--color--brown); border-radius: 999px; padding: 0.15rem 0.7rem; }
.v-card-badge:not(.is-soon) { background: #FFD23F; }
.v-card.is-soon { border-style: dashed; box-shadow: none; opacity: 0.75; cursor: default; }
.v-card.is-soon .v-card-art { border-bottom-style: dashed; }
.v-card.is-soon .v-card-art svg { animation: none; }
.v-play-parents p { max-width: 40rem; }
@keyframes v-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes v-bob { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes v-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-5deg) scale(1.05); } 75% { transform: rotate(5deg) scale(1.05); } }
@media (max-width: 30rem) { .v-games { grid-template-columns: 1fr 1fr; gap: 0.85rem; } .v-card { border-radius: 18px; box-shadow: 0 4px 0 var(--wp--preset--color--brown); } .v-card-art { padding: 0.6rem; } .v-card-body { padding: 0.7rem 0.75rem 0.85rem; } .v-card-title { font-size: 1.0625rem; } .v-card-line { font-size: 0.875rem; } .v-chip { font-size: 0.75rem; padding: 0.15rem 0.5rem; } .v-card-go { font-size: 0.9375rem; } .v-card-go::before { width: 1.9rem; height: 1.9rem; } .v-card-badge { font-size: 0.75rem; top: 0.5rem; left: 0.5rem; } .is-shadow .v-card-art .v-emoji { font-size: 2.6rem; } .is-shadow .v-card-art .v-card-arrow { width: 1.6rem; } }
@media (prefers-reduced-motion: reduce) { .v-play-mascot, .v-card-art svg, .v-card-art .v-emoji, a.v-card:hover .v-card-art svg { animation: none !important; } a.v-card:hover, a.v-card:active { transform: none; } }

.v-sheet { background: var(--wp--preset--color--white); border-radius: var(--v-radius); padding: 0.75rem; margin: 0; max-width: 34rem; }
.v-sheet svg { display: block; width: 100%; height: auto; }

/* ---------- Play mode: game pages with no header, menu or footer ---------- */
:root { --v-pbh: clamp(64px, 10vmin, 104px); --v-gap: clamp(0.5rem, 2vmin, 1.5rem); }
.v-playbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; height: var(--v-pbh); padding: 0 clamp(0.75rem, 3vw, 1.75rem) !important; margin: 0 !important; background: var(--wp--preset--color--cream); }
.v-pb-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: clamp(48px, 7.5vmin, 76px); height: clamp(48px, 7.5vmin, 76px); padding: 0; border-radius: 50%; background: var(--wp--preset--color--white); color: var(--wp--preset--color--brown); border: 3px solid var(--wp--preset--color--brown); box-shadow: 0 3px 0 var(--wp--preset--color--brown); cursor: pointer; text-decoration: none !important; }
.v-pb-btn svg { width: 56%; height: 56%; }
.v-pb-btn:active { transform: translateY(3px); box-shadow: none; }
.v-pb-btn:focus-visible { outline: 5px solid var(--wp--preset--color--orange); outline-offset: 3px; }
.v-pb-home { background: var(--wp--preset--color--orange); }
.v-pb-right { display: flex; gap: clamp(0.5rem, 1.5vmin, 1rem); }
.v-pb-title { flex: 1; min-width: 0; margin: 0 !important; text-align: center; font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: clamp(1.05rem, 3.4vmin, 2rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-pb-sound .v-ico-off, .v-pb-sound.is-off .v-ico-on { display: none; }
.v-pb-sound.is-off .v-ico-off { display: block; }
.v-pb-sound.is-off { background: #EFE4D6; }
.v-pb-grown[aria-expanded="true"] { background: var(--wp--preset--color--sage); color: var(--wp--preset--color--white); }
.v-playmain { margin: 0 !important; padding: 0 clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem) !important; }
.v-playmode .wp-block-post-content { margin: 0 !important; }

/* Grown-ups note: hidden until the (i) button is tapped */
.v-playmode .wp-block-post-content > .wp-block-group.v-measure { display: none; }
.v-show-grown .v-playmode .wp-block-post-content > .wp-block-group.v-measure { display: block; position: fixed; z-index: 60; top: calc(var(--v-pbh) + 0.25rem); left: 50%; transform: translateX(-50%); width: min(40rem, calc(100% - 1.5rem)); max-height: calc(100dvh - var(--v-pbh) - 1.25rem); overflow: auto; margin: 0; padding: 1.25rem 1.5rem !important; background: var(--wp--preset--color--white); border: 3px solid var(--wp--preset--color--brown); border-radius: 20px; box-shadow: 0 8px 0 var(--wp--preset--color--brown); }
.v-show-grown .v-playmode .wp-block-post-content > .wp-block-group.v-measure h1 { font-size: 1.6rem; }
.v-show-grown .v-playmode .wp-block-post-content > .wp-block-group.v-measure > p.v-small:first-child { display: none; }

/* The game fills the screen */
.v-playmode .v-game, .v-playmode .wp-block-post-content > .v-game { max-width: none !important; margin: 0 !important; }
.v-playmode .v-game *, .v-playbar * { box-sizing: border-box; }
.v-playmode .v-game-start { display: flex; align-items: center; gap: 0.4em; width: max-content; margin: clamp(2rem, 16vh, 10rem) auto 0; padding: 0.55em 1.5em; font-size: clamp(1.75rem, 7vmin, 4rem); border: 3px solid var(--wp--preset--color--brown); box-shadow: 0 6px 0 var(--wp--preset--color--brown); }
.v-playmode .v-game-start::after, .v-playmode .v-game-next::after { display: none !important; }
.v-playmode .v-game-stage { box-sizing: border-box; position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--v-gap); min-height: calc(100dvh - var(--v-pbh) - clamp(0.5rem, 2vw, 1.5rem)); padding: clamp(0.75rem, 2.5vmin, 2rem); border: 3px solid var(--wp--preset--color--brown); border-radius: 24px; box-shadow: 0 6px 0 var(--wp--preset--color--brown); }
.v-playmode .v-game-top { width: 100%; }
.v-game-progress { display: flex; gap: 0.4rem; align-items: center; }
.v-dot { width: clamp(10px, 1.7vmin, 18px); height: clamp(10px, 1.7vmin, 18px); border-radius: 50%; border: 2px solid var(--wp--preset--color--brown); }
.v-dot.is-done { background: var(--wp--preset--color--sage); }
.v-dot.is-now { background: var(--wp--preset--color--orange); }
.v-playmode .v-game-score { font-size: clamp(1rem, 3vmin, 1.9rem); }
.v-game-promptrow { display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.v-playmode .v-game-prompt { margin: 0; text-align: center; font-size: clamp(1.35rem, 4.8vmin, 3.4rem); }
.v-game-hear { flex: none; display: inline-flex; align-items: center; justify-content: center; width: clamp(44px, 7vmin, 72px); height: clamp(44px, 7vmin, 72px); padding: 0; font-size: clamp(1.25rem, 3.6vmin, 2.2rem); border-radius: 50%; background: var(--wp--preset--color--cream); border: 2px solid var(--wp--preset--color--brown); cursor: pointer; }
.v-game-hear:focus-visible, .v-game-option:focus-visible, .v-game-next:focus-visible, .v-game-stop:focus-visible, .v-game-start:focus-visible { outline: 5px solid var(--wp--preset--color--orange) !important; outline-offset: 4px; }
.v-playmode .v-game-board { flex: 1; width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; border: 0;  align-content: center; gap: clamp(0.4rem, 1.5vmin, 1rem); }
.v-playmode .v-game-board > svg { width: clamp(40px, min(13vw, 8vh), 100px); height: clamp(40px, min(13vw, 8vh), 100px); }
.v-playmode .v-game-target svg { width: clamp(120px, min(45vw, 30vh), 320px); height: clamp(120px, min(45vw, 30vh), 320px); }
.v-playmode .v-game-dino svg { width: min(92%, 90vw, 52vh); height: auto; max-height: 36vh; }
.v-playmode .v-game-shadow { font-size: clamp(6rem, min(50vw, 30vh), 17rem); }
.v-playmode .v-game-emoji { font-size: clamp(5rem, min(42vw, 26vh), 15rem); }
.v-playmode .v-game-clock svg { width: clamp(150px, min(62vw, 34vh), 360px); }
.v-playmode .v-game-wordboard .v-emoji { font-size: clamp(4.5rem, min(38vw, 22vh), 12rem); }
.v-playmode .v-game-wordboard .v-emoji + span { font-size: clamp(1.5rem, 4.4vmin, 3rem); }
.v-playmode .v-game-options { margin: 0; gap: clamp(0.6rem, 2vmin, 1.5rem); }
.v-playmode .v-game-option { min-width: clamp(5.5rem, 15vmin, 11rem); min-height: clamp(5.5rem, 15vmin, 11rem); font-size: clamp(2rem, 6vmin, 4.2rem); border-width: 3px; box-shadow: 0 4px 0 var(--wp--preset--color--brown); }
.v-playmode .v-game-option:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.v-playmode .v-game-option--word { min-width: clamp(8rem, 22vmin, 17rem); min-height: clamp(3.75rem, 11vmin, 7.5rem); font-size: clamp(1.1rem, 3.5vmin, 2.3rem); }
.v-playmode .v-game-option--emoji { font-size: clamp(3rem, 9vmin, 6.5rem); }
.v-playmode .v-game-option--pic { min-width: clamp(6.5rem, 17vmin, 12rem); font-size: clamp(0.95rem, 2.7vmin, 1.7rem); }
.v-playmode .v-game-option--pic .v-emoji { font-size: clamp(2.4rem, 7.5vmin, 5.2rem); }
.v-game-option.is-wrong { animation: v-shake 0.45s ease-in-out; }
@keyframes v-shake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.v-playmode .v-game-feedback { margin: 0; min-height: 1.4em; max-width: 46ch; text-align: center; font-size: clamp(1rem, 2.9vmin, 1.8rem); line-height: 1.3; }
.v-playmode .v-game-clap { position: absolute; left: 0; right: 0; top: 30%; margin: 0; height: auto; text-align: center; font-size: clamp(3.5rem, 12vmin, 9rem); pointer-events: none; z-index: 5; }
.v-game-actions { display: flex; align-items: center; justify-content: center; gap: clamp(0.75rem, 2.5vmin, 2rem); flex-wrap: wrap; }
.v-playmode .v-game-next { display: inline-flex; align-items: center; justify-content: center; width: clamp(64px, 13vmin, 128px); height: clamp(64px, 13vmin, 128px); margin: 0; padding: 0; border-radius: 50%; font-size: clamp(1.75rem, 5.5vmin, 3.6rem); border: 3px solid var(--wp--preset--color--brown); box-shadow: 0 5px 0 var(--wp--preset--color--brown); }
.v-playmode .v-game-next[hidden] { display: none; }
.v-playmode .v-game-tools { margin: 0; }
.v-playmode .v-game-stop { font-size: clamp(0.95rem, 2.6vmin, 1.5rem); padding: 0.5em 1.1em; }
.v-game-say.is-retired { display: none !important; }

/* Wide screens and TVs: picture on the left, question and answers on the right */
@media (min-aspect-ratio: 5/4) and (min-width: 700px) {
	.v-playmode .v-game-stage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr auto auto; grid-template-areas: "top top" "board prompt" "board options" "board feedback" "board actions"; align-items: center; justify-items: center; column-gap: 4vmin; row-gap: var(--v-gap); }
	.v-playmode .v-game-top { grid-area: top; }
	.v-playmode .v-game-board { grid-area: board; align-self: stretch; }
	.v-playmode .v-game-promptrow { grid-area: prompt; }
	.v-playmode .v-game-options { grid-area: options; }
	.v-playmode .v-game-feedback { grid-area: feedback; }
	.v-playmode .v-game-actions { grid-area: actions; }
	.v-playmode .v-game-prompt { font-size: clamp(1.25rem, 4.2vmin, 3.2rem); }
	.v-playmode .v-game-dino svg { width: min(95%, 44vw); max-height: 60vh; }
	.v-playmode .v-game-shadow { font-size: clamp(6rem, 34vh, 17rem); }
	.v-playmode .v-game-emoji { font-size: clamp(5rem, 30vh, 15rem); }
	.v-playmode .v-game-clock svg { width: clamp(150px, 46vh, 400px); }
	.v-playmode .v-game-wordboard .v-emoji { font-size: clamp(4.5rem, 28vh, 13rem); }
	.v-playmode .v-game-target svg { width: clamp(120px, 40vh, 360px); height: clamp(120px, 40vh, 360px); }
}
.v-playmode .v-game-stage.is-done { display: flex; justify-content: center; }
.v-playmode .v-game-stage.is-done .v-game-board, .v-playmode .v-game-stage.is-done .v-game-options { display: none; }
.v-playmode .v-game-stage.is-done .v-game-top { position: absolute; top: clamp(0.75rem, 2.5vmin, 2rem); left: clamp(0.75rem, 2.5vmin, 2rem); right: clamp(0.75rem, 2.5vmin, 2rem); width: auto; }
.v-playmode .v-game-stage.is-done .v-game-prompt { font-size: clamp(1.75rem, 7vmin, 4.5rem); }
@media (prefers-reduced-motion: reduce) { .v-game-option.is-wrong { animation: none; } }

/* Play page: kid header with no menu */
.v-kidbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1.25rem, 5vw, 3rem) !important; margin: 0 !important; }
.v-kidbar .wp-block-site-logo { margin: 0; }
.v-kidbar .wp-block-site-logo img { width: clamp(120px, 20vw, 160px); height: auto; }
.v-kidbar-grown { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 0.875rem; text-decoration: none !important; border: 2px solid var(--wp--preset--color--brown); border-radius: 999px; padding: 0.4rem 0.9rem; }
.v-kidbar-grown:hover { background: var(--wp--preset--color--white); }
a.v-card:focus-visible { outline: 5px solid var(--wp--preset--color--orange); outline-offset: 5px; }

/* ---------- TV mode (valarookids.com/tv) ---------- */
html.v-tv { --v-safe-x: 5vw; --v-safe-y: 4vh; }
.v-tv .v-playbar { box-sizing: border-box; height: calc(var(--v-pbh) + var(--v-safe-y)); padding: var(--v-safe-y) var(--v-safe-x) 0 !important; }
.v-tv .v-playmain { padding: 0 var(--v-safe-x) var(--v-safe-y) !important; }
.v-tv .v-playmode .v-game-stage { min-height: calc(100dvh - var(--v-pbh) - 2 * var(--v-safe-y)); }
.v-tv .v-game-option:focus, .v-tv .v-game-next:focus, .v-tv .v-game-start:focus, .v-tv .v-game-pause:focus, .v-tv .v-game-stop:focus, .v-tv .v-game-hear:focus, .v-tv .v-pb-btn:focus { outline: 8px solid var(--wp--preset--color--orange) !important; outline-offset: 6px; transform: scale(1.06); }
.v-tv .v-game-option { position: relative; border-width: 4px; }
.v-tv .v-game-option::before { content: ""; position: absolute; top: 0.45rem; left: 0.45rem; width: clamp(14px, 2.2vmin, 28px); height: clamp(14px, 2.2vmin, 28px); border-radius: 50%; border: 2px solid var(--wp--preset--color--brown); }
.v-tv .v-game-option.v-c1 { border-color: #D94040; box-shadow: 0 5px 0 #D94040; }
.v-tv .v-game-option.v-c1::before { background: #E04848; }
.v-tv .v-game-option.v-c2 { border-color: #2F8A3C; box-shadow: 0 5px 0 #2F8A3C; }
.v-tv .v-game-option.v-c2::before { background: #3FA34D; }
.v-tv .v-game-option.v-c3 { border-color: #D9A400; box-shadow: 0 5px 0 #D9A400; }
.v-tv .v-game-option.v-c3::before { background: #F2C230; }
.v-tv .v-game-option.v-c4 { border-color: #2F68BA; box-shadow: 0 5px 0 #2F68BA; }
.v-tv .v-game-option.v-c4::before { background: #3B7DD8; }
.v-game-count { display: inline-flex; align-items: center; justify-content: center; width: clamp(64px, 13vmin, 128px); height: clamp(64px, 13vmin, 128px); border-radius: 50%; background: var(--wp--preset--color--white); border: 4px solid var(--wp--preset--color--brown); font-family: var(--wp--preset--font-family--heading); font-weight: 900; font-size: clamp(2rem, 7vmin, 4.5rem); animation: v-tick 1s ease-out infinite; }
.v-game-count[hidden] { display: none; }
@keyframes v-tick { 0% { transform: scale(1.25); } 100% { transform: scale(1); } }
.v-game-pause { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: clamp(0.95rem, 2.6vmin, 1.5rem); color: var(--wp--preset--color--brown); background: var(--wp--preset--color--cream); border: 2px solid var(--wp--preset--color--brown); border-radius: 999px; padding: 0.5em 1.1em; cursor: pointer; }
.v-game-pause[hidden] { display: none; }
.v-game-option.is-reveal { animation: v-glow 0.9s ease-in-out 3; }
@keyframes v-glow { 50% { transform: scale(1.08); } }

/* TV game list */
.v-tv body:not(.v-playmode) { padding: 0 2vw var(--v-safe-y); }
.v-tv .v-kidbar { padding-top: var(--v-safe-y) !important; }
.v-tv .v-play-parents { display: none; }
.v-tv a.v-card:focus { outline: 8px solid var(--wp--preset--color--orange); outline-offset: 6px; transform: translateY(-6px) scale(1.03); }
.v-tv .v-kidbar-grown:focus { outline: 6px solid var(--wp--preset--color--orange); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .v-game-count, .v-game-option.is-reveal { animation: none; } }
.v-tv .v-games { max-width: min(100%, 1760px) !important; grid-template-columns: repeat(4, 1fr); }
.v-tv .v-play-hero { max-width: min(100%, 1760px) !important; margin-left: auto !important; margin-right: auto !important; }
.v-playmode .v-game-stage.is-done .v-game-clap { top: 8%; }
.v-tv .v-card-emojis .v-emoji { font-size: clamp(3rem, 4.5vw, 5.5rem); }

@page { size: A4; margin: 10mm; }
@media print {
	body, .wp-site-blocks { background: #fff !important; }
	header.wp-block-template-part, footer.wp-block-template-part, .v-no-print, .skip-link, #wpadminbar, #wpvibe-preview-banner { display: none !important; }
	.wp-block-post-content > *:not(.v-sheet) { display: none !important; }
	main, .wp-block-post-content { padding: 0 !important; margin: 0 !important; }
	.v-sheet { max-width: none; padding: 0; border-radius: 0; break-inside: avoid; }
	.v-sheet svg { width: auto; height: 262mm; max-width: 100%; margin: 0 auto; }
	.wp-site-blocks > *:not(main), body > *:not(.wp-site-blocks) { display: none !important; }
	html, body, .wp-site-blocks, main { height: auto !important; min-height: 0 !important; }
}

/* ---------- 5. Footer ---------- */
.v-footer { border-top: var(--v-rule); }
.v-footer .wp-block-site-logo img { height: 64px; width: auto; }
.v-footer-links .wp-block-navigation__container {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 0.55rem 2.5rem !important;
}
@media (min-width: 782px) {
	.v-footer-links .wp-block-navigation__container { grid-template-columns: repeat(3, minmax(0, max-content)); }
}
.v-signoff { display: flex; align-items: center; gap: 1rem; }
.v-signoff .wp-block-image { margin: 0; flex: none; }
.v-signoff img { width: 88px; height: 88px; }
.v-signoff p { margin: 0; font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.125rem; line-height: 1.3; }

/* ---------- 6. Separators ---------- */
.wp-block-separator { border: 0; border-top: var(--v-rule); background: none; height: 0; opacity: 1; }

/* ---------- 7. Motion: hover and focus only ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
