/* A to Z Animal Sounds v2.0 — Bright, Colorful, Kids-Friendly & Mobile-First */
:root {
	--canvas: #fffbf0;
	--sky-top: #9ce0ff;
	--sky-mid: #d7f3ff;
	--ink: #1e293b;
	--ink-soft: #475569;
	--white: #ffffff;
	--sun: #facc15;
	--sun-deep: #d97706;
	--berry: #ec4899;
	--berry-deep: #be185d;
	--sky-btn: #0ea5e9;
	--sky-btn-deep: #0369a1;
	--meadow: #16a34a;
	--meadow-deep: #15803d;
	--font-display: "Proxima Nova", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-body: "Proxima Nova", "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

	/* Default card palette */
	--cat-main: #3b82f6;
	--cat-dark: #1d4ed8;
	--cat-border: #93c5fd;
	--cat-tint: #eff6ff;
}

/* 10 Vibrant Habitat Color Palettes */
.cat-theme-farm,
.cat-pill-farm {
	--cat-main: #ef4444;
	--cat-dark: #b91c1c;
	--cat-border: #fca5a5;
	--cat-tint: #fef2f2;
}
.cat-theme-savannah-desert,
.cat-pill-savannah-desert {
	--cat-main: #f59e0b;
	--cat-dark: #b45309;
	--cat-border: #fcd34d;
	--cat-tint: #fffbeb;
}
.cat-theme-jungle,
.cat-pill-jungle {
	--cat-main: #10b981;
	--cat-dark: #047857;
	--cat-border: #6ee7b7;
	--cat-tint: #ecfdf5;
}
.cat-theme-insects,
.cat-pill-insects {
	--cat-main: #65a30d;
	--cat-dark: #3f6212;
	--cat-border: #bef264;
	--cat-tint: #f7fee7;
}
.cat-theme-ocean,
.cat-pill-ocean {
	--cat-main: #06b6d4;
	--cat-dark: #0e7490;
	--cat-border: #67e8f9;
	--cat-tint: #ecfeff;
}
.cat-theme-forest,
.cat-pill-forest {
	--cat-main: #22c55e;
	--cat-dark: #15803d;
	--cat-border: #86efac;
	--cat-tint: #f0fdf4;
}
.cat-theme-mountain,
.cat-pill-mountain {
	--cat-main: #8b5cf6;
	--cat-dark: #6d28d9;
	--cat-border: #c4b5fd;
	--cat-tint: #f5f3ff;
}
.cat-theme-city-countryside,
.cat-pill-city-countryside {
	--cat-main: #ec4899;
	--cat-dark: #be185d;
	--cat-border: #f9a8d4;
	--cat-tint: #fdf2f8;
}
.cat-theme-lake-lagoon,
.cat-pill-lake-lagoon {
	--cat-main: #14b8a6;
	--cat-dark: #0f766e;
	--cat-border: #5eead4;
	--cat-tint: #f0fdfa;
}
.cat-theme-dinosaurs,
.cat-pill-dinosaurs {
	--cat-main: #f97316;
	--cat-dark: #c2410c;
	--cat-border: #fdba74;
	--cat-tint: #fff7ed;
}
.cat-pill-all {
	--cat-main: #2563eb;
	--cat-dark: #1d4ed8;
	--cat-border: #93c5fd;
	--cat-tint: #eff6ff;
}

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

html {
	background-color: var(--canvas);
	scroll-behavior: smooth;
}

body.atoz-body {
	margin: 0 !important;
	padding: 0 !important;
	background: var(--canvas) !important;
	color: var(--ink) !important;
	font-family: var(--font-body) !important;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}

.atoz-app {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background:
		radial-gradient(circle at 12% 38%, rgba(253, 224, 71, 0.14) 0%, transparent 28%),
		radial-gradient(circle at 88% 55%, rgba(167, 243, 208, 0.22) 0%, transparent 32%),
		radial-gradient(circle at 18% 78%, rgba(251, 207, 232, 0.18) 0%, transparent 30%),
		var(--canvas);
}

.atoz-shell {
	width: min(1200px, 100% - 2rem);
	margin-inline: auto;
}

.atoz-app button:focus-visible,
.atoz-app a:focus-visible,
.atoz-app input:focus-visible {
	outline: 3.5px solid #2563eb;
	outline-offset: 3px;
}

/* ================= TOPBAR ================= */
.atoz-topbar {
	position: sticky;
	top: 0;
	z-index: 95;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(10px);
	box-shadow: 0 6px 22px rgba(14, 116, 144, 0.1);
}

body.admin-bar .atoz-topbar {
	top: 32px;
}

@media (max-width: 782px) {
	body.admin-bar .atoz-topbar {
		top: 46px;
	}
}

.atoz-rainbow-strip {
	height: 5px;
	width: 100%;
	background: linear-gradient(90deg, #ef4444 0%, #f97316 18%, #facc15 36%, #22c55e 54%, #06b6d4 72%, #8b5cf6 86%, #ec4899 100%);
}

.atoz-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.58rem 0;
}

.atoz-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	color: var(--ink);
}

.atoz-brand-icon {
	display: inline-flex;
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 4px 0 #d97706, 0 6px 14px rgba(245, 158, 11, 0.25);
	flex-shrink: 0;
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.atoz-brand:hover .atoz-brand-icon {
	transform: rotate(-6deg) scale(1.06);
}

.atoz-brand-icon svg {
	display: block;
}

.atoz-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.02;
}

.atoz-brand-kicker {
	font-size: 0.68rem;
	font-weight: 900;
	letter-spacing: 0.12em;
	color: #0284c7;
}

.atoz-brand-title {
	font-family: var(--font-display);
	font-size: clamp(1.2rem, 2.4vw, 1.55rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.c-coral { color: #ef4444; }
.c-orange { color: #f97316; }
.c-amber { color: #eab308; }
.c-green { color: #16a34a; }
.c-sky { color: #0ea5e9; }
.c-purple { color: #8b5cf6; }
.c-navy { color: #1e293b; }

.atoz-topbar-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
}

/* Chunky 3D Pressable Toy Buttons */
.atoz-toy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.42rem;
	border: none;
	border-radius: 999px;
	padding: 0.58rem 1.15rem;
	font-family: var(--font-display);
	font-size: 0.96rem;
	font-weight: 600;
	color: #ffffff;
	cursor: pointer;
	text-decoration: none;
	line-height: 1.1;
	transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
	white-space: nowrap;
}

.atoz-toy-btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
}

.atoz-toy-btn:active {
	transform: translateY(2px);
}

.atoz-toy-sunny {
	background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
	color: #451a03;
	box-shadow: 0 4px 0 #b45309, 0 6px 14px rgba(245, 158, 11, 0.28);
}
.atoz-toy-sunny:active {
	box-shadow: 0 1px 0 #b45309;
}

.atoz-toy-berry {
	background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%);
	color: #ffffff;
	box-shadow: 0 4px 0 #be185d, 0 6px 14px rgba(236, 72, 153, 0.3);
}
.atoz-toy-berry:active {
	box-shadow: 0 1px 0 #be185d;
}

.atoz-toy-sky {
	background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
	color: #ffffff;
	box-shadow: 0 4px 0 #0369a1, 0 6px 14px rgba(2, 132, 199, 0.28);
}
.atoz-toy-sky:active {
	box-shadow: 0 1px 0 #0369a1;
}

/* ================= SUNNY STORYBOOK HERO ================= */
.atoz-main {
	flex: 1 0 auto;
}

.atoz-hero {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #9ce0ff 0%, #cff0ff 55%, #eefbff 100%);
	padding: clamp(1.6rem, 3.6vw, 2.75rem) 0 clamp(3.3rem, 5.5vw, 4.6rem);
	text-align: center;
}

.atoz-sky-decor {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.atoz-sun-svg {
	position: absolute;
	top: 14px;
	right: max(18px, 6vw);
	animation: atozSunBob 5s ease-in-out infinite;
	filter: drop-shadow(0 0 18px rgba(250, 204, 21, 0.55));
}

.atoz-cloud {
	position: absolute;
	filter: drop-shadow(0 8px 16px rgba(14, 165, 233, 0.12));
}

.atoz-cloud-left {
	top: 22px;
	left: max(12px, 5vw);
	animation: atozCloudDrift 9s ease-in-out infinite;
}

.atoz-cloud-right {
	top: 98px;
	right: max(64px, 14vw);
	animation: atozCloudDrift 11s ease-in-out infinite reverse;
}

.atoz-float-note {
	position: absolute;
	font-size: 1.8rem;
	font-weight: 900;
	opacity: 0.72;
	animation: atozNoteFloat 4.5s ease-in-out infinite;
}
.note-1 { left: 16%; bottom: 72px; color: #ec4899; }
.note-2 { right: 17%; bottom: 86px; color: #f97316; animation-delay: 1.2s; }
.note-3 { left: 26%; top: 28px; color: #8b5cf6; animation-delay: 2.1s; font-size: 1.4rem; }

@keyframes atozSunBob {
	0%, 100% { transform: translateY(0) rotate(0deg); }
	50% { transform: translateY(-6px) rotate(6deg); }
}

@keyframes atozCloudDrift {
	0%, 100% { transform: translateX(0); }
	50% { transform: translateX(14px); }
}

@keyframes atozNoteFloat {
	0%, 100% { transform: translateY(0) rotate(-6deg); }
	50% { transform: translateY(-10px) rotate(8deg); }
}

.atoz-hero-content {
	position: relative;
	z-index: 2;
}

.atoz-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.38rem 1rem;
	border-radius: 999px;
	background: #ffffff;
	border: 2.5px solid #fde047;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.14);
	font-size: 0.84rem;
	font-weight: 900;
	color: #0369a1;
	margin-bottom: 0.85rem;
}

.atoz-hero-title {
	margin: 0 auto 0.7rem;
	max-width: 24ch;
	font-family: var(--font-display);
	font-size: clamp(1.75rem, 3.8vw, 2.9rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.12;
	color: #1e293b;
}

.atoz-title-highlight {
	background: linear-gradient(90deg, #ef4444, #f97316, #ec4899, #8b5cf6);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.atoz-hero-desc {
	margin: 0 auto 1.15rem;
	max-width: 62ch;
	font-size: clamp(0.96rem, 1.8vw, 1.1rem);
	font-weight: 700;
	color: #334155;
}

.atoz-hero-chips {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.atoz-mini-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.34rem 0.85rem;
	border-radius: 999px;
	font-size: 0.82rem;
	font-weight: 800;
	border: 2px solid transparent;
}
.chip-blue { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.chip-green { background: #dcfce7; color: #15803d; border-color: #86efac; }
.chip-amber { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.chip-pink { background: #fce7f3; color: #be185d; border-color: #f9a8d4; }

.atoz-hero-wave {
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(36px, 5vw, 66px);
	line-height: 0;
	pointer-events: none;
}

.atoz-hero-wave svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* ================= COLORFUL FILTER HUB ================= */
.atoz-filters-section {
	position: relative;
	z-index: 5;
	margin-top: 0 !important;
	padding-top: 1.5rem;
	padding-bottom: 1.15rem;
}

.atoz-filter-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.atoz-count-group {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	flex-wrap: wrap;
}

.atoz-toy-filter {
	background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
	color: #ffffff;
	padding: 0.6rem 1.25rem;
	box-shadow: 0 4px 0 #1d4ed8, 0 6px 16px rgba(37, 99, 235, 0.28);
}
.atoz-toy-filter:active {
	box-shadow: 0 1px 0 #1d4ed8;
}

.atoz-toy-filter .atoz-chev {
	display: inline-block;
	margin-left: 0.1rem;
	transition: transform 0.2s ease;
}

.atoz-toy-filter[aria-expanded="true"] .atoz-chev {
	transform: rotate(180deg);
}

.atoz-filter-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 22px;
	padding: 0 0.38rem;
	border-radius: 999px;
	background: #facc15;
	color: #451a03;
	font-size: 0.78rem;
	font-weight: 900;
}

.atoz-filter-badge[hidden] {
	display: none;
}

.atoz-filter-panel {
	margin-top: 0.9rem;
	background: #ffffff;
	border: 3px solid #e0f2fe;
	border-radius: 1.85rem;
	padding: 1.15rem 1.3rem;
	box-shadow: 0 10px 30px rgba(14, 116, 144, 0.1), 0 5px 0 #bae6fd;
}

.atoz-filter-panel[hidden] {
	display: none;
}

.atoz-filter-panel.is-open {
	animation: atozFilterDrop 0.22s ease-out;
}

@keyframes atozFilterDrop {
	0% { opacity: 0; transform: translateY(-8px); }
	100% { opacity: 1; transform: translateY(0); }
}

.atoz-filter-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem;
	flex-wrap: wrap;
	margin-bottom: 0.85rem;
}

.atoz-filter-heading-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.6rem;
}

.atoz-filter-label {
	font-family: var(--font-display);
	font-size: 1.05rem;
	font-weight: 700;
	color: #0369a1;
	letter-spacing: 0.01em;
}

.atoz-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1 1 260px;
	max-width: 340px;
}

.atoz-search-icon {
	position: absolute;
	left: 0.9rem;
	color: #0284c7;
	pointer-events: none;
}

.atoz-search-input {
	width: 100%;
	padding: 0.56rem 2.3rem 0.56rem 2.45rem;
	border: 2.5px solid #bae6fd;
	border-radius: 999px;
	background: #f8fafc;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 0.94rem;
	font-weight: 700;
	transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.atoz-search-input:focus {
	background: #ffffff;
	border-color: #38bdf8;
	box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2);
}

.atoz-search-input::placeholder {
	color: #64748b;
	font-weight: 600;
}

.atoz-search-clear {
	position: absolute;
	right: 0.45rem;
	width: 28px;
	height: 28px;
	border: none;
	border-radius: 50%;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 1.2rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.atoz-search-clear[hidden] {
	display: none;
}

/* Color-Coded Category Pills */
.atoz-category-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.atoz-cat-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.42rem;
	padding: 0.48rem 0.88rem;
	border: 2.5px solid var(--cat-border);
	border-radius: 999px;
	background: var(--cat-tint);
	color: var(--cat-dark);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 3px 0 var(--cat-border);
	transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease;
	flex-shrink: 0;
}

.atoz-cat-pill:hover {
	transform: translateY(-2px);
}

.atoz-cat-pill.is-active {
	background: var(--cat-main);
	color: #ffffff;
	border-color: var(--cat-dark);
	box-shadow: 0 3px 0 var(--cat-dark);
}

.atoz-cat-icon {
	display: inline-flex;
	width: 17px;
	height: 17px;
	flex-shrink: 0;
}

.atoz-cat-icon svg {
	width: 17px;
	height: 17px;
	fill: currentColor;
}

.atoz-cat-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 0.35rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.72);
	color: var(--cat-dark);
	font-size: 0.74rem;
	font-weight: 900;
}

.atoz-cat-pill.is-active .atoz-cat-count {
	background: rgba(255, 255, 255, 0.26);
	color: #ffffff;
}

/* Cheerful A-Z Alphabet Row */
.atoz-az-row {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: 0.9rem;
	padding-top: 0.85rem;
	border-top: 2px dashed #e2e8f0;
}

.atoz-az-label {
	font-family: var(--font-display);
	font-size: 0.85rem;
	font-weight: 700;
	color: #ffffff;
	background: linear-gradient(135deg, #f97316, #ec4899);
	padding: 0.2rem 0.6rem;
	border-radius: 999px;
	flex-shrink: 0;
}

.atoz-az-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.28rem;
}

.atoz-az-pill {
	min-width: 31px;
	height: 31px;
	padding: 0 0.45rem;
	border: 2px solid #e2e8f0;
	border-radius: 999px;
	background: #f8fafc;
	color: #334155;
	font-family: var(--font-display);
	font-size: 0.84rem;
	font-weight: 600;
	cursor: pointer;
	transition: transform 0.12s ease, background-color 0.14s ease, color 0.14s ease;
	flex-shrink: 0;
}

.atoz-az-pill:hover:not(:disabled) {
	background: #fef08a;
	border-color: #facc15;
	color: #713f12;
	transform: translateY(-1px);
}

.atoz-az-pill.is-active {
	background: #2563eb;
	border-color: #1d4ed8;
	color: #ffffff;
	box-shadow: 0 2px 0 #1e40af;
}

.atoz-az-pill.is-disabled {
	opacity: 0.34;
	cursor: not-allowed;
}

/* ================= COUNT BAR & DIRECTORY GRID ================= */
.atoz-directory {
	padding-bottom: 3rem;
}

.atoz-count-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.1rem;
	flex-wrap: wrap;
}

.atoz-count-text {
	margin: 0;
	font-family: var(--font-display);
	font-size: 1.1rem;
	font-weight: 600;
	color: #0f172a;
}

.atoz-reset-link {
	border: 2px solid #f472b6;
	background: #fdf2f8;
	color: #be185d;
	border-radius: 999px;
	padding: 0.34rem 0.95rem;
	font-family: var(--font-body);
	font-size: 0.86rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 2px 0 #f9a8d4;
}

.atoz-reset-link:hover {
	background: #fce7f3;
}

/* Responsive Uniform Grid: 5 desktop / 4 tablet / 3 small-tablet / 2 mobile */
.atoz-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 1.25rem 1.1rem;
}

@media (max-width: 1080px) {
	.atoz-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 820px) {
	.atoz-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ================= SIMPLE & ATTRACTIVE MODERN KIDS CARDS ================= */
.atoz-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.06);
	border-bottom: 4px solid var(--cat-main);
	border-radius: 1.4rem;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07), 0 1px 3px rgba(15, 23, 42, 0.04);
	transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
	margin: 0;
}

.atoz-card[hidden] {
	display: none;
}

.atoz-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12), 0 4px 10px rgba(15, 23, 42, 0.05);
}

.atoz-card.is-playing {
	box-shadow: 0 0 0 3px var(--cat-main), 0 16px 32px rgba(15, 23, 42, 0.14);
	animation: atozCardBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes atozCardBounce {
	0% { transform: scale(1); }
	40% { transform: scale(1.03) translateY(-5px); }
	100% { transform: scale(1) translateY(-3px); }
}

/* Uniform 1:1 Photo Button Area */
.atoz-card-art {
	position: relative;
	display: block;
	width: 100%;
	padding: 0.5rem 0.5rem 0;
	border: none;
	background: #ffffff;
	cursor: pointer;
}

.atoz-card-media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	border-radius: 1.05rem;
	overflow: hidden;
	background: var(--cat-tint);
}

.atoz-card-media img {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	transition: transform 0.32s ease;
}

.atoz-card:hover .atoz-card-media img {
	transform: scale(1.045);
}

/* Active Soundwave Bubble in Top-Right of Photo (only visible while playing) */
.atoz-playing-badge {
	position: absolute;
	right: 0.5rem;
	top: 0.5rem;
	display: inline-flex;
	align-items: flex-end;
	justify-content: center;
	gap: 3px;
	width: 32px;
	height: 32px;
	padding: 7px 6px;
	border-radius: 50%;
	background: var(--cat-main);
	border: 2px solid #ffffff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
	opacity: 0;
	transform: scale(0.6);
	transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	pointer-events: none;
}

.atoz-card.is-playing .atoz-playing-badge {
	opacity: 1;
	transform: scale(1);
}

.atoz-playing-badge span {
	width: 3px;
	height: 11px;
	border-radius: 3px;
	background: #ffffff;
	animation: atozWave 0.68s ease-in-out infinite;
}
.atoz-playing-badge span:nth-child(2) { animation-delay: 0.15s; }
.atoz-playing-badge span:nth-child(3) { animation-delay: 0.3s; }

@keyframes atozWave {
	0%, 100% { height: 4px; }
	50% { height: 14px; }
}

/* Subtle Floating Musical Notes when Playing */
.atoz-card-notes {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: visible;
	opacity: 0;
}

.atoz-card.is-playing .atoz-card-notes {
	opacity: 1;
}

.atoz-card-notes i {
	position: absolute;
	font-style: normal;
	font-weight: 900;
	font-size: 1.15rem;
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.atoz-card.is-playing .atoz-card-notes .n1 {
	right: 14%;
	bottom: 20%;
	color: #facc15;
	animation: atozFloatUp 1.3s ease-out infinite;
}
.atoz-card.is-playing .atoz-card-notes .n2 {
	left: 16%;
	bottom: 26%;
	color: #f472b6;
	animation: atozFloatUp 1.5s ease-out infinite 0.3s;
}

@keyframes atozFloatUp {
	0% { transform: translateY(0) scale(0.7); opacity: 0; }
	25% { opacity: 1; }
	100% { transform: translateY(-42px) scale(1.2) rotate(12deg); opacity: 0; }
}

/* Clean, Minimal Bottom Label Row */
.atoz-card-info {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.52rem;
	padding: 0.68rem 0.7rem 0.78rem;
	background: #ffffff;
	flex: 1 0 auto;
}

.atoz-sound-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	flex-shrink: 0;
	border: none;
	border-radius: 50%;
	background: var(--cat-main);
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 3px 10px rgba(15, 23, 42, 0.14);
	transition: transform 0.15s ease, filter 0.15s ease, background-color 0.15s ease;
}

.atoz-sound-btn:hover {
	transform: scale(1.1);
	filter: brightness(1.06);
}

.atoz-sound-btn:active {
	transform: scale(0.95);
}

.atoz-play-glyph {
	font-size: 0.72rem;
	margin-left: 2px;
	line-height: 1;
}

.atoz-eq-glyph {
	display: none;
	align-items: flex-end;
	gap: 2px;
	height: 12px;
}

.atoz-eq-glyph i {
	display: block;
	width: 2.5px;
	height: 9px;
	border-radius: 2px;
	background: #ffffff;
	font-style: normal;
	animation: atozWave 0.65s ease-in-out infinite;
}
.atoz-eq-glyph i:nth-child(2) { animation-delay: 0.15s; }
.atoz-eq-glyph i:nth-child(3) { animation-delay: 0.3s; }

.atoz-card.is-playing .atoz-sound-btn {
	background: #ef4444;
}
.atoz-card.is-playing .atoz-play-glyph {
	display: none;
}
.atoz-card.is-playing .atoz-eq-glyph {
	display: inline-flex;
}

.atoz-card-name {
	margin: 0;
	font-family: var(--font-display);
	font-size: clamp(0.95rem, 1.4vw, 1.04rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	color: var(--ink);
	text-align: left;
	word-break: break-word;
}

/* Empty State */
.atoz-empty-state {
	text-align: center;
	padding: 2.8rem 1.5rem;
	background: #ffffff;
	border: 3px dashed #93c5fd;
	border-radius: 1.75rem;
	box-shadow: 0 8px 20px rgba(14, 165, 233, 0.08);
}

.atoz-empty-emoji {
	font-size: 2.6rem;
	margin: 0 0 0.35rem;
}

.atoz-empty-title {
	margin: 0 0 0.35rem;
	font-family: var(--font-display);
	font-size: 1.55rem;
	color: var(--ink);
}

.atoz-empty-sub {
	margin: 0 0 1.15rem;
	color: var(--ink-soft);
	font-weight: 700;
}

/* ================= BRIGHT KIDS LEARNING SECTION ================= */
.atoz-learn {
	padding: 2.4rem 0 3.6rem;
	text-align: center;
}

.atoz-learn-pill {
	display: inline-block;
	padding: 0.32rem 0.95rem;
	border-radius: 999px;
	background: #fef08a;
	color: #854d0e;
	border: 2px solid #facc15;
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.08em;
	margin-bottom: 0.7rem;
}

.atoz-learn-title {
	margin: 0 0 0.65rem;
	font-family: var(--font-display);
	font-size: clamp(1.85rem, 4vw, 2.6rem);
	color: var(--ink);
}

.atoz-learn-intro {
	margin: 0 auto 2rem;
	max-width: 66ch;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--ink-soft);
}

.atoz-learn-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: 1.15rem;
	text-align: left;
}

.atoz-learn-card {
	border-radius: 1.55rem;
	padding: 1.35rem 1.35rem 1.45rem;
	border: 3px solid transparent;
	transition: transform 0.2s ease;
}

.atoz-learn-card:hover {
	transform: translateY(-4px);
}

.learn-yellow { background: #fef9c3; border-color: #fde047; box-shadow: 0 6px 0 #facc15; }
.learn-sky    { background: #e0f2fe; border-color: #7dd3fc; box-shadow: 0 6px 0 #38bdf8; }
.learn-pink   { background: #fce7f3; border-color: #f9a8d4; box-shadow: 0 6px 0 #f472b6; }
.learn-mint   { background: #dcfce7; border-color: #86efac; box-shadow: 0 6px 0 #4ade80; }
.learn-purple { background: #f3e8ff; border-color: #d8b4fe; box-shadow: 0 6px 0 #c084fc; }

.atoz-learn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 1rem;
	background: #ffffff;
	font-size: 1.65rem;
	margin-bottom: 0.75rem;
	box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.atoz-learn-card h3 {
	margin: 0 0 0.4rem;
	font-family: var(--font-display);
	font-size: 1.2rem;
	color: var(--ink);
}

.atoz-learn-card p {
	margin: 0;
	font-size: 0.93rem;
	font-weight: 700;
	color: #334155;
	line-height: 1.55;
}

/* ================= RICH 4-COLUMN MEADOW FOOTER ================= */
.atoz-footer-wave {
	height: clamp(32px, 4.5vw, 56px);
	line-height: 0;
	margin-bottom: -1px;
}

.atoz-footer-wave svg {
	display: block;
	width: 100%;
	height: 100%;
}

.atoz-footer {
	background: linear-gradient(180deg, #15803d 0%, #14532d 100%);
	color: #ffffff;
	padding: 2.2rem 0 2.8rem;
}

.atoz-footer-grid {
	display: grid;
	grid-template-columns: 1.55fr 1.25fr 1fr 0.95fr;
	gap: 2rem 1.75rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (max-width: 960px) {
	.atoz-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.atoz-footer-grid {
		grid-template-columns: 1fr;
		gap: 1.6rem;
	}
}

.atoz-footer-brand-lockup {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	text-decoration: none;
	margin-bottom: 0.75rem;
}

.atoz-footer-icon {
	display: inline-flex;
	border-radius: 0.75rem;
	overflow: hidden;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
	flex-shrink: 0;
}

.atoz-footer-icon svg {
	display: block;
}

.atoz-footer-logo {
	font-family: var(--font-display);
	font-size: 1.32rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #fef08a;
	text-decoration: none;
}

.atoz-footer-desc {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	max-width: 36ch;
}

.atoz-footer-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin-bottom: 0.95rem;
}

.atoz-f-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.24rem 0.65rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.22);
	font-size: 0.76rem;
	font-weight: 700;
	color: #fef9c3;
}

.atoz-footer-email {
	margin: 0;
	font-size: 0.88rem;
	color: rgba(255, 255, 255, 0.86);
}

.atoz-footer-email a {
	color: #fef08a;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atoz-footer-heading {
	margin: 0 0 0.85rem;
	font-family: var(--font-display);
	font-size: 0.95rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #fde047;
}

.atoz-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0.48rem;
}

.atoz-footer-habitats {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.45rem 0.85rem;
}

.atoz-footer-list a,
.atoz-footer-link-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	color: rgba(255, 255, 255, 0.92);
	font-family: var(--font-body);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	text-align: left;
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
}

.atoz-footer-link-btn span {
	font-size: 0.78rem;
	opacity: 0.75;
}

.atoz-footer-list a:hover,
.atoz-footer-link-btn:hover,
.atoz-footer-list a.is-current {
	color: #fde047;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atoz-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 1.35rem;
	padding-left: 3.2rem;
}

@media (max-width: 640px) {
	.atoz-footer-bottom {
		padding-left: 0;
		padding-bottom: 2.2rem;
	}
}

.atoz-footer-copy {
	margin: 0;
	font-size: 0.86rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.86);
}

.atoz-top-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.42rem 1rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	border: 1.5px solid rgba(255, 255, 255, 0.36);
	color: #ffffff;
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.atoz-top-pill:hover {
	background: #ffffff;
	color: #14532d;
}

/* ================= LEGAL & INFO PAGES (ADSENSE TRUST PAGES) ================= */
.atoz-legal-hero {
	background: linear-gradient(180deg, #b8e8ff 0%, #e6f7ff 70%, #fffbf0 100%);
	padding: clamp(2rem, 4vw, 3rem) 0 1.6rem;
	text-align: center;
}

.atoz-legal-title {
	margin: 0 0 0.55rem;
	font-family: var(--font-display);
	font-size: clamp(2rem, 4.5vw, 3rem);
	color: var(--ink);
	line-height: 1.08;
}

.atoz-legal-lead {
	margin: 0 auto;
	max-width: 64ch;
	font-size: 1.04rem;
	font-weight: 700;
	color: var(--ink-soft);
}

.atoz-legal-section {
	padding: 0.6rem 0 3.5rem;
}

.atoz-legal-card {
	max-width: 860px;
	margin-inline: auto;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-top: 5px solid #38bdf8;
	border-radius: 1.5rem;
	padding: clamp(1.4rem, 3.5vw, 2.5rem);
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
	font-size: 1rem;
	line-height: 1.72;
	color: #334155;
}

.atoz-legal-card h2 {
	margin: 1.65rem 0 0.65rem;
	font-family: var(--font-display);
	font-size: 1.38rem;
	color: var(--ink);
}

.atoz-legal-card h2:first-child {
	margin-top: 0;
}

.atoz-legal-card h3 {
	margin: 0 0 0.4rem;
	font-family: var(--font-display);
	font-size: 1.1rem;
	color: #0369a1;
}

.atoz-legal-card p {
	margin: 0 0 1rem;
}

.atoz-legal-card ul {
	margin: 0 0 1.15rem;
	padding-left: 1.35rem;
}

.atoz-legal-card li {
	margin-bottom: 0.5rem;
}

.atoz-legal-card a {
	color: #0284c7;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atoz-contact-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 0.9rem;
	margin: 1.1rem 0 1.6rem;
}

.atoz-contact-box {
	background: #f0f9ff;
	border: 2px solid #bae6fd;
	border-radius: 1.15rem;
	padding: 1rem 1.1rem;
}

.atoz-contact-box p {
	margin: 0 0 0.45rem;
	font-size: 0.92rem;
}
.atoz-contact-box p:last-child {
	margin-bottom: 0;
}

.atoz-contact-form {
	display: grid;
	gap: 0.95rem;
	margin-top: 0.9rem;
}

.atoz-hp-field {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.atoz-form-row {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.atoz-form-row label {
	font-weight: 800;
	font-size: 0.92rem;
	color: var(--ink);
}

.atoz-form-row input,
.atoz-form-row select,
.atoz-form-row textarea {
	width: 100%;
	padding: 0.68rem 0.9rem;
	border: 2px solid #cbd5e1;
	border-radius: 0.85rem;
	background: #f8fafc;
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 0.96rem;
	font-weight: 600;
}

.atoz-form-row input:focus,
.atoz-form-row select:focus,
.atoz-form-row textarea:focus {
	background: #ffffff;
	border-color: #38bdf8;
	outline: none;
	box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.atoz-contact-form .atoz-toy-btn {
	justify-self: start;
	padding: 0.72rem 1.5rem;
}

.atoz-form-notice {
	padding: 0.85rem 1.05rem;
	border-radius: 0.95rem;
	font-weight: 800;
	margin-bottom: 0.9rem;
}

.atoz-form-notice.is-ok {
	background: #dcfce7;
	border: 2px solid #4ade80;
	color: #14532d;
}

.atoz-form-notice.is-err {
	background: #fee2e2;
	border: 2px solid #f87171;
	color: #7f1d1d;
}

/* ================= BRIGHT FLOATING NOW-PLAYING PILL ================= */
.atoz-now-playing {
	position: fixed;
	left: 50%;
	bottom: max(1rem, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	z-index: 130;
	display: inline-flex;
	align-items: center;
	gap: 0.72rem;
	padding: 0.48rem 0.6rem 0.48rem 0.48rem;
	border-radius: 999px;
	background: #ffffff;
	border: 3px solid #facc15;
	box-shadow: 0 6px 0 #eab308, 0 16px 36px rgba(15, 23, 42, 0.25);
	max-width: calc(100vw - 1.5rem);
}

.atoz-now-playing[hidden] {
	display: none;
}

.atoz-now-playing img {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
	border: 2.5px solid #38bdf8;
	flex-shrink: 0;
}

.atoz-now-playing-meta {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	padding-right: 0.35rem;
	min-width: 0;
}

.atoz-now-playing-label {
	font-size: 0.68rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #0284c7;
	font-weight: 900;
}

.atoz-now-playing-meta strong {
	font-family: var(--font-display);
	font-size: 1rem;
	color: var(--ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.atoz-stop-btn {
	border: none;
	border-radius: 999px;
	padding: 0.48rem 1rem;
	background: #ef4444;
	color: #ffffff;
	font-family: var(--font-display);
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 3px 0 #b91c1c;
	flex-shrink: 0;
}

.atoz-stop-btn:hover {
	background: #dc2626;
}

/* ================= BRIGHT MODALS (QUIZ & CREDITS) ================= */
.atoz-modal {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem;
}

.atoz-modal[hidden] {
	display: none;
}

.atoz-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.58);
	backdrop-filter: blur(5px);
}

.atoz-modal-card {
	position: relative;
	width: min(620px, 100%);
	max-height: 92vh;
	overflow-y: auto;
	background: #fffbf0;
	border: 4px solid #38bdf8;
	border-radius: 2rem;
	padding: 1.65rem 1.5rem;
	box-shadow: 0 8px 0 #0284c7, 0 24px 60px rgba(15, 23, 42, 0.35);
	text-align: center;
}

.atoz-modal-close {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: #fee2e2;
	color: #b91c1c;
	font-size: 1.5rem;
	font-weight: 900;
	line-height: 1;
	cursor: pointer;
}

.atoz-modal-close:hover {
	background: #ef4444;
	color: #ffffff;
}

.atoz-modal-title {
	margin: 0 0 0.9rem;
	font-family: var(--font-display);
	font-size: clamp(1.55rem, 3.8vw, 2.05rem);
	color: var(--ink);
}

.atoz-quiz-hud {
	display: flex;
	justify-content: center;
	gap: 0.55rem;
	flex-wrap: wrap;
	margin-bottom: 1.05rem;
}

.atoz-hud-pill {
	border-radius: 999px;
	padding: 0.34rem 0.85rem;
	font-size: 0.86rem;
	font-weight: 800;
	border: 2px solid transparent;
}
.hud-blue  { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.hud-amber { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.hud-pink  { background: #fce7f3; color: #be185d; border-color: #f9a8d4; }

.atoz-hud-pill strong {
	margin-left: 0.25rem;
}

.atoz-quiz-audio-row {
	margin-bottom: 0.7rem;
}

.atoz-quiz-replay {
	padding: 0.72rem 1.45rem;
	font-size: 1rem;
}

.atoz-quiz-feedback {
	margin: 0 0 1rem;
	min-height: 1.5rem;
	font-family: var(--font-display);
	font-size: 1.05rem;
	color: #0369a1;
}

.atoz-quiz-options {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.85rem;
}

.atoz-quiz-opt {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.42rem;
	padding: 0.5rem 0.5rem 0.65rem;
	border: 3px solid #bae6fd;
	border-radius: 1.35rem;
	background: #ffffff;
	color: var(--ink);
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 5px 0 #bae6fd;
	transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.atoz-quiz-opt:hover:not(:disabled) {
	transform: translateY(-3px);
	border-color: #38bdf8;
	box-shadow: 0 7px 0 #38bdf8;
}

.atoz-quiz-opt img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 0.95rem;
}

.atoz-quiz-opt.is-correct {
	background: #dcfce7;
	border-color: #22c55e;
	color: #14532d;
	box-shadow: 0 5px 0 #22c55e;
}

.atoz-quiz-opt.is-wrong {
	background: #fee2e2;
	border-color: #ef4444;
	color: #7f1d1d;
	box-shadow: 0 5px 0 #ef4444;
}

.atoz-quiz-result {
	padding: 1.2rem 0.5rem;
}

.atoz-quiz-trophy {
	font-size: 3.2rem;
	margin: 0 0 0.25rem;
}

.atoz-quiz-final-score {
	margin: 0 0 0.35rem;
	font-family: var(--font-display);
	font-size: 2.8rem;
	color: #ec4899;
}

.atoz-quiz-final-msg {
	margin: 0 0 1.25rem;
	font-size: 1.08rem;
	font-weight: 800;
	color: var(--ink);
}

/* Credits Modal */
.atoz-credits-card {
	text-align: left;
}

.atoz-credits-note {
	margin: 0 0 1rem;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--ink-soft);
}

.atoz-credits-list {
	display: grid;
	gap: 0.45rem;
	max-height: 54vh;
	overflow-y: auto;
	padding-right: 0.35rem;
}

.atoz-credit-item {
	background: #ffffff;
	border: 2px solid #e0f2fe;
	border-radius: 0.85rem;
	padding: 0.55rem 0.8rem;
	font-size: 0.84rem;
	line-height: 1.4;
	color: var(--ink);
}

.atoz-credit-item a {
	color: #0284c7;
	font-weight: 700;
	word-break: break-word;
}

/* ================= E-E-A-T EDUCATIONAL GUIDE & FAQ SECTION ================= */
.atoz-guide {
	padding: 0 0 3.6rem;
}

.atoz-guide-card {
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.07);
	border-top: 5px solid #22c55e;
	border-radius: 1.75rem;
	padding: clamp(1.5rem, 3.8vw, 2.75rem);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
	color: #334155;
	font-size: 1rem;
	line-height: 1.75;
}

.atoz-guide-header {
	margin-bottom: 1.4rem;
	padding-bottom: 1.2rem;
	border-bottom: 2px dashed #e2e8f0;
}

.atoz-guide-title {
	margin: 0.25rem 0 0.7rem;
	font-family: var(--font-display);
	font-size: clamp(1.65rem, 3.6vw, 2.3rem);
	line-height: 1.15;
	color: var(--ink);
}

.atoz-eeat-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.65rem;
	font-size: 0.86rem;
	font-weight: 700;
	color: #0369a1;
}

.atoz-guide-card h3 {
	margin: 1.75rem 0 0.65rem;
	font-family: var(--font-display);
	font-size: clamp(1.22rem, 2.4vw, 1.45rem);
	color: var(--ink);
}

.atoz-guide-card p {
	margin: 0 0 1rem;
}

.atoz-guide-card ul {
	margin: 0 0 1.2rem;
	padding-left: 1.35rem;
}

.atoz-guide-card li {
	margin-bottom: 0.55rem;
}

.atoz-guide-card a {
	color: #0284c7;
	font-weight: 800;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.atoz-table-wrap {
	overflow-x: auto;
	margin: 1rem 0 1.4rem;
	border-radius: 1.1rem;
	border: 2px solid #e0f2fe;
}

.atoz-ref-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
	min-width: 540px;
}

.atoz-ref-table thead th {
	background: #e0f2fe;
	color: #0c4a6e;
	font-family: var(--font-display);
	font-weight: 600;
	text-align: left;
	padding: 0.72rem 0.9rem;
}

.atoz-ref-table tbody td {
	padding: 0.65rem 0.9rem;
	border-top: 1px solid #f1f5f9;
	color: #334155;
}

.atoz-ref-table tbody tr:nth-child(even) {
	background: #f8fafc;
}

.atoz-eeat-box {
	background: linear-gradient(135deg, #f0fdf4 0%, #eff6ff 100%);
	border: 2px solid #bbf7d0;
	border-left: 6px solid #16a34a;
	border-radius: 1.2rem;
	padding: 1.25rem 1.4rem;
	margin: 1.65rem 0;
}

.atoz-eeat-box h3 {
	margin-top: 0;
	color: #15803d;
}

.atoz-eeat-box p:last-child {
	margin-bottom: 0;
}

.atoz-faq-list {
	display: grid;
	gap: 0.65rem;
	margin-top: 0.85rem;
}

.atoz-faq-item {
	background: #fffbf0;
	border: 2px solid #fde68a;
	border-radius: 1.05rem;
	padding: 0.85rem 1.1rem;
}

.atoz-faq-item summary {
	font-family: var(--font-display);
	font-size: 1.04rem;
	font-weight: 600;
	color: var(--ink);
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.atoz-faq-item summary::-webkit-details-marker {
	display: none;
}

.atoz-faq-item summary::after {
	content: "+";
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #fde047;
	color: #713f12;
	font-weight: 900;
	flex-shrink: 0;
}

.atoz-faq-item[open] summary::after {
	content: "\2212";
}

.atoz-faq-item p {
	margin: 0.65rem 0 0;
	font-size: 0.94rem;
	color: #334155;
}

/* ================= SUPER MOBILE-FRIENDLY EXPERIENCE (<= 640px) ================= */
@media (max-width: 640px) {
	.atoz-shell {
		width: calc(100% - 1.25rem);
	}

	.atoz-topbar-inner {
		padding: 0.45rem 0;
		gap: 0.45rem;
	}

	.atoz-brand-icon svg {
		width: 38px;
		height: 38px;
	}

	.atoz-brand-kicker {
		display: none;
	}

	.atoz-brand-title {
		font-size: 1.12rem;
	}

	.atoz-toy-btn {
		padding: 0.46rem 0.78rem;
		font-size: 0.82rem;
		gap: 0.3rem;
	}

	.atoz-toy-btn svg {
		width: 15px;
		height: 15px;
	}

	/* Compact sunny hero on mobile so kids see cards right away */
	.atoz-hero {
		padding: 1.15rem 0 2.5rem;
	}

	.atoz-sun-svg {
		width: 58px;
		height: 58px;
		top: 8px;
		right: 10px;
	}

	.atoz-cloud-left {
		width: 90px;
		height: 36px;
		top: 10px;
		left: 8px;
	}

	.atoz-cloud-right,
	.atoz-float-note,
	.atoz-hero-chips {
		display: none;
	}

	.atoz-hero-badge {
		font-size: 0.75rem;
		padding: 0.28rem 0.78rem;
		margin-bottom: 0.55rem;
	}

	.atoz-hero-title {
		font-size: 1.55rem;
		margin-bottom: 0.45rem;
	}

	.atoz-hero-desc {
		font-size: 0.9rem;
		margin-bottom: 0.35rem;
	}

	/* Clean, zero-clipping Filter bar & drawer on mobile */
	.atoz-filters-section {
		margin-top: 0 !important;
		padding-top: 1.15rem;
		padding-bottom: 0.9rem;
	}

	.atoz-count-text {
		font-size: 0.96rem;
	}

	.atoz-toy-filter {
		padding: 0.48rem 0.98rem;
		font-size: 0.86rem;
	}

	.atoz-filter-panel {
		margin-top: 0.75rem;
		padding: 0.85rem 0.82rem 0.92rem;
		border-radius: 1.35rem;
		box-shadow: 0 6px 20px rgba(14, 116, 144, 0.1), 0 4px 0 #bae6fd;
	}

	.atoz-filter-header {
		margin-bottom: 0.7rem;
		gap: 0.55rem;
	}

	.atoz-filter-heading-wrap {
		width: 100%;
	}

	.atoz-filter-label {
		font-size: 0.96rem;
	}

	.atoz-search-wrap {
		flex: 1 1 100%;
		max-width: 100%;
	}

	.atoz-search-icon {
		left: 0.8rem;
		width: 16px;
		height: 16px;
	}

	.atoz-search-input {
		padding: 0.5rem 2.15rem 0.5rem 2.2rem;
		font-size: 0.92rem;
		border-width: 2px;
	}

	.atoz-category-pills {
		display: flex;
		flex-wrap: wrap;
		overflow-x: visible;
		gap: 0.38rem;
		padding: 0;
		margin: 0;
	}

	.atoz-cat-pill {
		padding: 0.34rem 0.62rem;
		font-size: 0.78rem;
		gap: 0.3rem;
		border-width: 2px;
		box-shadow: 0 2px 0 var(--cat-border);
	}

	.atoz-cat-pill.is-active {
		box-shadow: 0 2px 0 var(--cat-dark);
	}

	.atoz-cat-icon,
	.atoz-cat-icon svg {
		width: 14px;
		height: 14px;
	}

	.atoz-cat-count {
		min-width: 19px;
		height: 18px;
		padding: 0 0.3rem;
		font-size: 0.68rem;
	}

	.atoz-az-row {
		display: block;
		margin-top: 0.7rem;
		padding-top: 0.7rem;
		gap: 0;
	}

	.atoz-az-label {
		display: inline-block;
		margin-bottom: 0.45rem;
		font-size: 0.75rem;
	}

	.atoz-az-pills {
		display: grid;
		grid-template-columns: repeat(9, minmax(0, 1fr));
		gap: 0.28rem;
		overflow: visible;
		padding: 0;
	}

	.atoz-az-pill {
		min-width: 0;
		width: 100%;
		height: 31px;
		padding: 0;
		font-size: 0.78rem;
		border-width: 1.5px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}

	/* Simple, clean 2-column kids cards on mobile */
	.atoz-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0.85rem 0.72rem;
	}

	.atoz-card {
		border-radius: 1.15rem;
		border-bottom-width: 3.5px;
		box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
	}

	.atoz-card-art {
		padding: 0.38rem 0.38rem 0;
	}

	.atoz-card-media {
		border-radius: 0.88rem;
	}

	.atoz-card-info {
		padding: 0.52rem 0.5rem 0.6rem;
		gap: 0.42rem;
	}

	.atoz-sound-btn {
		width: 30px;
		height: 30px;
	}

	.atoz-play-glyph {
		font-size: 0.66rem;
	}

	.atoz-card-name {
		font-size: 0.9rem;
	}

	.atoz-modal-card {
		padding: 1.35rem 1rem;
		border-radius: 1.5rem;
	}

	.atoz-quiz-options {
		gap: 0.65rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atoz-sun-svg,
	.atoz-cloud,
	.atoz-float-note,
	.atoz-card,
	.atoz-card-notes i,
	.atoz-playing-badge span,
	.atoz-eq-glyph i {
		animation: none !important;
		transition: none !important;
	}
}
