/*
Theme Name: Animaccord (Replica)
Theme URI: https://animaccord.com/
Author: Internal
Description: Theme scaffold to match animaccord.com structure (About Us / Media Catalog / Licensing & Advertising / Newsroom / Contacts).
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 8.3
Version: 0.1.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: animaccord
*/

.ac-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 251, 244, 0.92);
	backdrop-filter: blur(10px);
	border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.mb-shop-header {
	position: sticky;
	top: 0;
	z-index: 1100;
	background: rgba(255, 251, 244, 0.94);
	backdrop-filter: blur(10px);
	border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}

.ac-footer {
	/* Match the header divider line, but separating content from footer. */
	border-top: 2px solid rgba(0, 0, 0, 0.08);
	background: transparent;
}

.ac-header__inner,
.mb-shop-header__inner {
	align-items: center;
	gap: 14px;
}

.ac-header .wp-block-navigation__container,
.mb-shop-header .wp-block-navigation__container {
	flex-wrap: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

.ac-header .wp-block-navigation__container::-webkit-scrollbar,
.mb-shop-header .wp-block-navigation__container::-webkit-scrollbar {
	display: none;
}

.ac-header :where(a) {
	color: rgba(17, 17, 17, 0.9);
	text-decoration: none;
}

.mb-shop-header :where(a) {
	color: rgba(17, 17, 17, 0.9);
	text-decoration: none;
}

.ac-header :where(a:hover) {
	color: rgb(0, 0, 0);
	text-decoration: underline;
	text-underline-offset: 0.3rem;
}

.mb-shop-header :where(a:hover) {
	color: rgb(0, 0, 0);
	text-decoration: underline;
	text-underline-offset: 0.3rem;
}

.ac-header .wp-block-site-logo img,
.ac-header .wp-block-site-logo svg {
	height: auto;
	max-height: 36px;
	width: auto;
}

.mb-shop-header .wp-block-site-logo img,
.mb-shop-header .wp-block-site-logo svg {
	height: auto;
	max-height: 36px;
	width: auto;
}

/* Mobile header navigation: use the core Navigation block overlay (hamburger).
 * IMPORTANT: the hamburger must never appear on desktop. */
@media (min-width: 761px) {
	.ac-header .wp-block-navigation__responsive-container-open,
	.mb-shop-header .wp-block-navigation__responsive-container-open {
		display: none !important;
	}
}

@media (max-width: 760px) {
	/* Force hamburger behavior on mobile widths (WP core switches to inline menu at >=600px). */
	.ac-header .wp-block-navigation__responsive-container-open,
	.mb-shop-header .wp-block-navigation__responsive-container-open {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		border-radius: 999px;
		border: 2px solid rgba(17, 17, 17, 0.10);
		background: rgba(255, 255, 255, 0.86);
		box-shadow: 0 10px 0 rgba(255, 128, 0, 0.10);
		color: rgba(17, 17, 17, 0.92);
		transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	}

	.ac-header .wp-block-navigation__responsive-container-open:hover,
	.mb-shop-header .wp-block-navigation__responsive-container-open:hover {
		transform: translateY(-1px);
		background: rgba(255, 255, 255, 0.96);
		box-shadow: 0 12px 0 rgba(6, 137, 133, 0.10);
	}

	/* Hide the inline menu until the overlay is opened. */
	.ac-header .wp-block-navigation__responsive-container:not(.is-menu-open),
	.mb-shop-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	.ac-header .wp-block-navigation__responsive-container,
	.mb-shop-header .wp-block-navigation__responsive-container {
		background: rgba(255, 251, 244, 0.96);
		backdrop-filter: blur(10px);
	}

	.ac-header .wp-block-navigation__responsive-container-close,
	.mb-shop-header .wp-block-navigation__responsive-container-close {
		width: 44px;
		height: 44px;
		border-radius: 999px;
		border: 2px solid rgba(17, 17, 17, 0.10);
		background: rgba(255, 255, 255, 0.9);
		box-shadow: 0 10px 0 rgba(0, 0, 0, 0.06);
	}

	.ac-header .wp-block-navigation__responsive-container-close:hover,
	.mb-shop-header .wp-block-navigation__responsive-container-close:hover {
		background: rgba(255, 255, 255, 1);
	}
}

/* Explicitly hide the legacy mobile bottom navigation (user requested removal). */
.mb-bottom-nav-wrap {
	display: none !important;
}

/* Desktop nav: make links feel like playful "tabs" (leave /shop/ styling to the Mashabear Design plugin). */
:where(.mb-main-nav) {
	/* Keep a small buffer so button shadows don't hit the header divider. */
	padding-bottom: 6px;
}

:where(.mb-main-nav) a.wp-block-navigation-item__content:not([href="/shop/"]) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.76);
	border: 2px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 6px 0 rgba(255, 128, 0, 0.10);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

:where(.mb-main-nav) a.wp-block-navigation-item__content:not([href="/shop/"]):hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 0 rgba(6, 137, 133, 0.10);
	text-decoration: none;
}

/* Active nav item (header + footer). Gutenberg sets current classes and/or aria-current. */
:where(.mb-main-nav) .current-menu-item > a.wp-block-navigation-item__content:not([href="/shop/"]),
:where(.mb-main-nav) .current_page_item > a.wp-block-navigation-item__content:not([href="/shop/"]),
:where(.mb-main-nav) a.wp-block-navigation-item__content[aria-current="page"]:not([href="/shop/"]) {
	background: rgba(255, 128, 0, 0.16);
	border-color: rgba(255, 128, 0, 0.34);
	box-shadow: 0 8px 0 rgba(6, 137, 133, 0.12);
	transform: translateY(-1px);
}

/* Footer: still make the Shop link look like other menu items (header Shop is styled by the plugin). */
.mb-footer-nav a.wp-block-navigation-item__content[href="/shop/"] {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	padding: 8px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.76);
	border: 2px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 6px 0 rgba(255, 128, 0, 0.10);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.mb-footer-nav a.wp-block-navigation-item__content[href="/shop/"]:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 8px 0 rgba(6, 137, 133, 0.10);
	text-decoration: none;
}

.mb-footer-nav a.wp-block-navigation-item__content[aria-current="page"][href="/shop/"] {
	background: rgba(255, 128, 0, 0.16);
	border-color: rgba(255, 128, 0, 0.34);
	box-shadow: 0 8px 0 rgba(6, 137, 133, 0.12);
	transform: translateY(-1px);
}

/* Anchor offsets for sticky header */
[id] {
	/* Header is intentionally removed; keep a small offset for in-page anchors. */
	scroll-margin-top: 22px;
}

body {
	background:
		radial-gradient(circle at 18px 18px, rgba(255, 128, 0, 0.12) 0 6px, transparent 7px 26px),
		radial-gradient(circle at 78px 62px, rgba(6, 137, 133, 0.10) 0 5px, transparent 6px 24px),
		linear-gradient(180deg, #fffbf4, #fffaf0 55%, #ffffff 100%);
	background-size: 120px 120px, 140px 140px, auto;
}

/* Desktop primary navigation: button grid (mobile uses bottom nav). */
.mb-quick-nav__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin: 18px 0 0;
}

@media (max-width: 1000px) {
	.mb-quick-nav__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.mb-quick-nav {
		display: none;
	}
}

.mb-quick-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.86);
	border: 2px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 10px 0 rgba(6, 137, 133, 0.10);
	color: rgba(17, 17, 17, 0.92);
	font-weight: 900;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.mb-quick-nav__btn:hover {
	transform: translateY(-1px);
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 12px 0 rgba(255, 128, 0, 0.12);
}

.mb-quick-nav__btn:active {
	transform: translateY(1px);
}

.mb-quick-nav__btn[aria-current="page"],
.mb-quick-nav__btn.is-current {
	background: rgba(255, 128, 0, 0.14);
	border-color: rgba(255, 128, 0, 0.34);
	box-shadow: 0 12px 0 rgba(6, 137, 133, 0.12);
}

/* Default "window" wrapper for page/post content. */
.ac-window {
	position: relative;
	background: rgba(255, 255, 255, 0.86);
	border: 2px solid rgba(17, 17, 17, 0.08);
	border-radius: 34px;
	box-shadow: 0 18px 0 rgba(255, 128, 0, 0.10), 0 34px 70px rgba(0, 0, 0, 0.06);
	padding: 46px 24px 24px;
}

.ac-window::before {
	content: "";
	position: absolute;
	left: 20px;
	right: 20px;
	top: 16px;
	height: 12px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 10px 6px, rgba(255, 128, 0, 0.85) 0 3px, transparent 4px),
		radial-gradient(circle at 28px 6px, rgba(6, 137, 133, 0.85) 0 3px, transparent 4px),
		radial-gradient(circle at 46px 6px, rgba(17, 17, 17, 0.30) 0 3px, transparent 4px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
	opacity: 0.85;
	pointer-events: none;
}

.ac-section {
	padding: 64px 0;
	position: relative;
	border-radius: 34px;
	background: rgba(255, 255, 255, 0.86);
	border: 2px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 18px 0 rgba(255, 128, 0, 0.10), 0 34px 70px rgba(0, 0, 0, 0.06);
	margin: 18px 0;
}

.ac-section.is-alt {
	background: rgba(230, 246, 255, 0.75);
	border-color: rgba(6, 137, 133, 0.18);
	box-shadow: 0 18px 0 rgba(6, 137, 133, 0.10), 0 34px 70px rgba(0, 0, 0, 0.06);
}

.ac-section::before {
	content: "";
	position: absolute;
	left: 20px;
	right: 20px;
	top: 16px;
	height: 12px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 10px 6px, rgba(255, 128, 0, 0.85) 0 3px, transparent 4px),
		radial-gradient(circle at 28px 6px, rgba(6, 137, 133, 0.85) 0 3px, transparent 4px),
		radial-gradient(circle at 46px 6px, rgba(17, 17, 17, 0.30) 0 3px, transparent 4px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.02));
	opacity: 0.85;
	pointer-events: none;
}

.ac-kicker {
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #ff8000;
	font-size: 12px;
}

.ac-hero {
	padding: 92px 0 48px;
	border-radius: 40px;
	background:
		radial-gradient(circle at 16% 26%, rgba(255, 128, 0, 0.18), transparent 44%),
		radial-gradient(circle at 86% 18%, rgba(6, 137, 133, 0.16), transparent 40%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.70));
	border: 2px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 22px 0 rgba(6, 137, 133, 0.10), 0 44px 90px rgba(0, 0, 0, 0.06);
}

.ac-hero h1 {
	font-weight: 300;
	letter-spacing: -0.01em;
}

	/* News index (/news/) */
	.ac-news-hero {
		position: relative;
		isolation: isolate;
		overflow: hidden;
		background:
			linear-gradient(108deg, rgba(6, 13, 26, 0.76) 0%, rgba(6, 13, 26, 0.24) 56%, rgba(6, 13, 26, 0.08) 100%),
			radial-gradient(circle at 18% 24%, rgba(255, 128, 0, 0.26), transparent 44%),
			radial-gradient(circle at 86% 18%, rgba(6, 137, 133, 0.24), transparent 40%),
			url("assets/news-cover-2560x1440.jpg") center/cover no-repeat;
		border-color: rgba(17, 17, 17, 0.18);
		box-shadow: 0 22px 0 rgba(255, 128, 0, 0.16), 0 44px 90px rgba(0, 0, 0, 0.22);
	}

	.ac-news-hero .ac-kicker {
		color: #ffd980;
	}

	.ac-news-hero :where(h1, p) {
		color: #fff;
		text-shadow: 0 2px 18px rgba(0, 0, 0, 0.30);
	}

	@media (max-width: 760px) {
		.ac-news-hero {
			background-position: 58% center;
		}
	}

	.ac-news-query {
		margin-top: 28px;
	}

	.ac-news-grid {
		list-style: none;
		padding: 0;
		margin: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

@media (max-width: 1000px) {
	.ac-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.ac-news-grid {
		grid-template-columns: 1fr;
	}
}

.ac-news-grid > li {
	margin: 0;
}

.ac-news-card {
	height: 100%;
	display: flex;
	flex-direction: column;
	border-radius: 34px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.92);
	border: 2px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 18px 0 rgba(255, 128, 0, 0.10), 0 34px 70px rgba(0, 0, 0, 0.06);
	transform: rotate(-0.3deg);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.ac-news-grid > li:nth-child(2n) .ac-news-card {
	transform: rotate(0.3deg);
}

.ac-news-grid > li:hover .ac-news-card {
	transform: translateY(-2px) rotate(0deg);
	box-shadow: 0 20px 0 rgba(6, 137, 133, 0.10), 0 40px 84px rgba(0, 0, 0, 0.08);
}

.ac-news-card__img {
	/* placeholder in case a post has no thumbnail/meta image */
	background:
		radial-gradient(circle at 24% 34%, rgba(255, 128, 0, 0.20), transparent 46%),
		radial-gradient(circle at 78% 24%, rgba(6, 137, 133, 0.18), transparent 44%),
		linear-gradient(180deg, rgba(230, 246, 255, 0.72), rgba(255, 255, 255, 0.92));
	min-height: 190px;
	border-bottom: 2px solid rgba(17, 17, 17, 0.08);
}

.ac-news-card__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.ac-news-card__body {
	padding: 18px 18px 20px;
}

.ac-news-card__title {
	margin: 0 0 6px;
	font-weight: 900;
	font-size: 20px;
	line-height: 1.1;
}

.ac-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.ac-news-card__title a:hover {
	text-decoration: underline;
	text-underline-offset: 0.3rem;
}

.ac-news-card__date {
	margin: 0 0 10px;
	color: rgba(17, 17, 17, 0.70);
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.ac-news-card__excerpt {
	margin: 0;
	color: rgba(17, 17, 17, 0.78);
	font-weight: 700;
}

.ac-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	border: 2px solid #ff8000;
	padding: 12px 28px;
	background: #ff8000;
	color: #ffffff;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ac-btn:hover {
	background: #e67300;
	border-color: #e67300;
}

/* Mashabear homepage sections: extra round, extra colorful, extra "cartoon". */
.mb-home-hero {
	padding: 76px 0 44px;
	border-radius: 44px;
	background:
		radial-gradient(circle at 10% 22%, rgba(255, 128, 0, 0.20), transparent 46%),
		radial-gradient(circle at 86% 14%, rgba(6, 137, 133, 0.20), transparent 44%),
		radial-gradient(circle at 70% 74%, rgba(255, 128, 0, 0.14), transparent 48%),
		linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
	border: 3px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 22px 0 rgba(255, 128, 0, 0.14), 0 44px 92px rgba(0, 0, 0, 0.06);
}

.mb-home-hero h1 {
	font-weight: 900;
	letter-spacing: -0.02em;
}

.mb-section {
	padding: 56px 0;
	position: relative;
	border-radius: 40px;
	background: rgba(255, 255, 255, 0.88);
	border: 3px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 18px 0 rgba(6, 137, 133, 0.12), 0 34px 70px rgba(0, 0, 0, 0.06);
	margin: 18px 0;
}

	.mb-section.is-alt {
		background:
			radial-gradient(circle at 14% 34%, rgba(255, 128, 0, 0.16), transparent 42%),
			linear-gradient(180deg, rgba(230, 246, 255, 0.84), rgba(255, 255, 255, 0.80));
		border-color: rgba(6, 137, 133, 0.18);
		box-shadow: 0 18px 0 rgba(255, 128, 0, 0.12), 0 34px 70px rgba(0, 0, 0, 0.06);
	}

	/* Shared page header: "title + description on yellow background". */
	.mb-page-hero {
		margin: 0 0 18px;
		padding: 22px 20px;
		border-radius: 28px;
		border: 3px solid rgba(17, 17, 17, 0.10);
		box-shadow: 0 14px 0 rgba(255, 128, 0, 0.12), 0 28px 60px rgba(0, 0, 0, 0.06);
	}

	.mb-page-hero--yellow {
		background:
			radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.70), transparent 44%),
			radial-gradient(circle at 82% 26%, rgba(6, 137, 133, 0.12), transparent 46%),
			linear-gradient(180deg, rgba(255, 234, 120, 0.96), rgba(255, 204, 0, 0.62));
	}

	.mb-page-hero h1 {
		margin: 0 0 8px;
		font-weight: 900;
		letter-spacing: -0.02em;
	}

	.mb-page-hero p {
		margin: 0;
		max-width: 72ch;
		font-weight: 800;
		color: rgba(17, 17, 17, 0.78);
	}

	/* Games page banners. */
	.mb-game-banners {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
		margin: 18px 0 10px;
	}

	@media (max-width: 1000px) {
		.mb-game-banners {
			grid-template-columns: repeat(2, minmax(0, 1fr));
		}
	}

	@media (max-width: 760px) {
		.mb-game-banners {
			grid-template-columns: 1fr;
		}
	}

	.mb-game-banner {
		position: relative;
		display: grid;
		grid-template-columns: 124px 1fr;
		gap: 14px;
		align-items: center;
		padding: 14px 14px;
		border-radius: 28px;
		background: rgba(255, 255, 255, 0.92);
		border: 2px solid rgba(17, 17, 17, 0.10);
		box-shadow: 0 14px 0 rgba(255, 128, 0, 0.10), 0 26px 60px rgba(0, 0, 0, 0.06);
		text-decoration: none;
		color: inherit;
		transform: rotate(-0.25deg);
		transition: transform 0.15s ease, box-shadow 0.15s ease;
		overflow: hidden;
	}

	.mb-game-banner:nth-child(2n) {
		transform: rotate(0.25deg);
	}

	.mb-game-banner:hover {
		transform: translateY(-2px) rotate(0deg);
		box-shadow: 0 16px 0 rgba(6, 137, 133, 0.10), 0 32px 70px rgba(0, 0, 0, 0.08);
	}

	.mb-game-banner__img img {
		width: 124px;
		height: 88px;
		border-radius: 22px;
		border: 2px solid rgba(17, 17, 17, 0.10);
		background: rgba(6, 137, 133, 0.08);
		object-fit: cover;
		display: block;
	}

	.mb-game-banner__title {
		margin: 0 0 4px;
		font-weight: 900;
		font-size: 18px;
		letter-spacing: -0.01em;
	}

	.mb-game-banner__desc {
		margin: 0;
		color: rgba(17, 17, 17, 0.72);
		font-weight: 800;
	}

	.mb-feature-grid {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 18px;
		margin-top: 18px;
}

@media (max-width: 1000px) {
	.mb-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.mb-feature-grid {
		grid-template-columns: 1fr;
	}
}

.mb-feature-card {
	position: relative;
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	align-items: center;
	padding: 18px 18px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.92);
	border: 2px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 14px 0 rgba(255, 128, 0, 0.10), 0 26px 60px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	transform: rotate(-0.3deg);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mb-feature-card:nth-child(2n) {
	transform: rotate(0.3deg);
}

.mb-feature-card:hover {
	transform: translateY(-2px) rotate(0deg);
	box-shadow: 0 16px 0 rgba(6, 137, 133, 0.10), 0 32px 70px rgba(0, 0, 0, 0.08);
}

.mb-feature-card__img img {
	width: 72px;
	height: 72px;
	border-radius: 22px;
	border: 2px solid rgba(17, 17, 17, 0.10);
	background: rgba(6, 137, 133, 0.08);
}

.mb-feature-card__title {
	margin: 0 0 4px;
	font-weight: 900;
	font-size: 18px;
}

.mb-feature-card__desc {
	margin: 0;
	color: rgba(17, 17, 17, 0.72);
	font-weight: 700;
}

.mb-character-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
	margin-top: 18px;
}

@media (max-width: 1000px) {
	.mb-character-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.mb-character-grid {
		grid-template-columns: 1fr;
	}
}

.mb-character-card {
	text-decoration: none;
	color: inherit;
	display: block;
	padding: 18px 18px 16px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.92);
	border: 2px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 14px 0 rgba(6, 137, 133, 0.10), 0 28px 60px rgba(0, 0, 0, 0.06);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mb-character-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 0 rgba(6, 137, 133, 0.12), 0 34px 70px rgba(0, 0, 0, 0.08);
}

.mb-character-card img {
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 22px;
	border: 2px solid rgba(17, 17, 17, 0.10);
	background: rgba(255, 128, 0, 0.10);
}

.mb-character-card h3 {
	margin: 12px 0 6px;
	font-weight: 900;
	font-size: 18px;
}

.mb-character-card p {
	margin: 0;
	color: rgba(17, 17, 17, 0.74);
	font-weight: 700;
}

.mb-character-single .wp-block-image {
	margin: 18px 0;
}

.mb-character-single .wp-block-image img {
	width: min(560px, 100%);
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	display: block;
	margin: 0 auto;
	border-radius: 28px;
	border: 2px solid rgba(17, 17, 17, 0.10);
	background: rgba(255, 128, 0, 0.10);
	box-shadow: 0 14px 0 rgba(6, 137, 133, 0.10), 0 28px 60px rgba(0, 0, 0, 0.06);
}

/* Footer social icons: make them look like "stickers" instead of plain glyphs. */
.wp-block-social-links {
	gap: 10px;
}

.wp-block-social-links .wp-social-link {
	border-radius: 999px;
	border: 2px solid rgba(17, 17, 17, 0.10);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 10px 0 rgba(255, 128, 0, 0.10);
	transform: rotate(-2deg);
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

/* Footer layout: make each group look like the rest of the UI (framed "windows"). */
.mb-footer-grid {
	gap: 18px !important;
}

.mb-footer-card {
	position: relative;
	padding: 18px 18px 16px;
	border-radius: 28px;
	/* Keep the "window" framing, but let the site's background show through. */
	background: rgba(255, 251, 244, 0.55);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 2px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 14px 0 rgba(6, 137, 133, 0.10), 0 28px 60px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.mb-footer-card::before {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	top: 12px;
	height: 10px;
	border-radius: 999px;
	background:
		radial-gradient(circle at 10px 5px, rgba(255, 128, 0, 0.85) 0 3px, transparent 4px),
		radial-gradient(circle at 28px 5px, rgba(6, 137, 133, 0.85) 0 3px, transparent 4px),
		radial-gradient(circle at 46px 5px, rgba(17, 17, 17, 0.30) 0 3px, transparent 4px),
		linear-gradient(90deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.02));
	opacity: 0.95;
	pointer-events: none;
}

.mb-footer-card > *:first-child {
	margin-top: 10px;
}

.mb-footer-nav a.wp-block-navigation-item__content {
	width: 100%;
	justify-content: flex-start;
}


/* Contacts: responsive map embed */
.mb-map-embed iframe {
	width: 100%;
	height: 340px;
	border: 0;
	border-radius: 22px;
	box-shadow: 0 14px 0 rgba(6, 137, 133, 0.10), 0 28px 60px rgba(0, 0, 0, 0.06);
	background: rgba(255, 255, 255, 0.92);
}

@media (max-width: 760px) {
	.mb-map-embed iframe {
		height: 300px;
	}
}

.wp-block-social-links .wp-social-link:nth-child(2n) {
	transform: rotate(2deg);
}

.wp-block-social-links .wp-social-link:hover {
	transform: translateY(-2px) rotate(0deg);
	box-shadow: 0 12px 0 rgba(6, 137, 133, 0.10);
}

.wp-block-social-links .wp-social-link a {
	padding: 10px;
}

.wp-block-social-links .wp-social-link-instagram { background: rgba(255, 128, 0, 0.14); }
.wp-block-social-links .wp-social-link-youtube { background: rgba(255, 77, 77, 0.14); }
.wp-block-social-links .wp-social-link-tiktok { background: rgba(0, 0, 0, 0.06); }
.wp-block-social-links .wp-social-link-facebook { background: rgba(66, 103, 178, 0.12); }
.wp-block-social-links .wp-social-link-x { background: rgba(17, 17, 17, 0.06); }
.wp-block-social-links .wp-social-link-pinterest { background: rgba(230, 0, 35, 0.12); }
.wp-block-social-links .wp-social-link-linkedin { background: rgba(10, 102, 194, 0.12); }

/* Shop header icons (account/cart). */
.mb-shop-header__right {
	display: inline-flex;
	gap: 10px;
	align-items: center;
}

.mb-shop-header__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 999px;
	border: 2px solid rgba(17, 17, 17, 0.10);
	background: rgba(255, 255, 255, 0.76);
	color: rgba(17, 17, 17, 0.92);
	box-shadow: 0 8px 0 rgba(255, 128, 0, 0.10);
	text-decoration: none;
}

.mb-shop-header__icon:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 0 rgba(6, 137, 133, 0.10);
}

/* Match store-like hover for Gutenberg buttons too */
.wp-element-button:hover,
.wp-block-button__link:hover {
	background: #e67300;
	border-color: #e67300;
}

/* Keep WooCommerce pages on the same background as the site. */
body.woocommerce,
body.woocommerce-shop,
body.woocommerce-page {
	background:
		radial-gradient(circle at 18px 18px, rgba(255, 128, 0, 0.12) 0 6px, transparent 7px 26px),
		radial-gradient(circle at 78px 62px, rgba(6, 137, 133, 0.10) 0 5px, transparent 6px 24px),
		linear-gradient(180deg, #fffbf4, #fffaf0 55%, #ffffff 100%);
	background-size: 120px 120px, 140px 140px, auto;
}

@media (max-width: 760px) {
	/* Shop switcher wrapper uses inline block padding; tighten it on mobile. */
	.mb-shop-switch-wrap {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}
}

/* WooCommerce collection grid (Mashabear-like).
 * Some shortcodes/themes omit the `.woocommerce` wrapper, so style both.
 */
.woocommerce ul.products,
ul.products {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin-top: 28px;
	padding-left: 0;
}

/* Use a slightly higher breakpoint so mobile "desktop mode" (often ~980px layout viewport)
 * still switches to a readable 2-column grid.
 */
@media (max-width: 1000px) {
	.woocommerce ul.products,
	ul.products {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.woocommerce ul.products,
	ul.products {
		grid-template-columns: minmax(0, 1fr);
	}
}

@media (max-width: 760px) {
	.woocommerce ul.products,
	ul.products {
		gap: 12px;
		margin-top: 16px;
	}
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.product-category,
ul.products li.product,
ul.products li.product-category {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
	background: #ffffff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 10px 26px rgba(0, 0, 0, 0.05);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.woocommerce ul.products li.product,
ul.products li.product {
	display: flex;
	flex-direction: column;
}

.woocommerce ul.products li.product > a,
ul.products li.product > a {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
}

.woocommerce ul.products li.product:hover,
.woocommerce ul.products li.product-category:hover,
ul.products li.product:hover,
ul.products li.product-category:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
	border-color: rgba(255, 128, 0, 0.35);
}

.woocommerce ul.products li.product a,
.woocommerce ul.products li.product-category a,
ul.products li.product a,
ul.products li.product-category a {
	text-decoration: none;
}

.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product-category a img,
ul.products li.product a img,
ul.products li.product-category a img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* Single product images: avoid any accidental stretching from theme/global styles. */
.woocommerce div.product div.images img,
.woocommerce div.product div.images .wp-post-image {
	max-width: 100%;
	height: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
	padding: 14px 16px 6px;
	font-size: var(--wp--preset--font-size--m, 16px);
	font-weight: 800;
	color: var(--wp--preset--color--text, #111111);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
	/* Keep cards tidy when product names are long. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.woocommerce ul.products li.product .price,
ul.products li.product .price {
	padding: 0 16px 14px;
	font-size: var(--wp--preset--font-size--m, 16px);
	font-weight: 800;
	color: rgba(6, 137, 133, 0.95);
}

.woocommerce ul.products li.product .button,
ul.products li.product .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 16px 16px;
	border-radius: 999px;
	border: 2px solid #ff8000;
	background: #ff8000;
	color: #ffffff;
	font-weight: 800;
	font-size: var(--wp--preset--font-size--s, 14px);
	line-height: 1;
	padding: 12px 18px;
}

@media (max-width: 760px) {
	.woocommerce ul.products li.product,
	ul.products li.product {
		border-radius: 16px;
	}

	.woocommerce ul.products li.product .woocommerce-loop-product__title,
	ul.products li.product .woocommerce-loop-product__title {
		padding: 12px 12px 4px;
		font-size: var(--wp--preset--font-size--s, 14px);
		line-height: 1.15;
	}

	.woocommerce ul.products li.product .price,
	ul.products li.product .price {
		padding: 0 12px 10px;
		font-size: var(--wp--preset--font-size--s, 14px);
	}

	.woocommerce ul.products li.product .button,
	ul.products li.product .button {
		display: flex; /* full-width */
		margin: 0 12px 12px;
		padding: 11px 12px;
		font-size: var(--wp--preset--font-size--s, 14px);
	}
}

.woocommerce ul.products li.product .button:hover,
ul.products li.product .button:hover {
	background: #e67300;
	border-color: #e67300;
}

/* Single product (mobile-friendly defaults for the WooCommerce block). */
.woocommerce div.product {
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 22px;
	padding: 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
}

@media (max-width: 760px) {
	.woocommerce div.product {
		padding: 14px;
		border-radius: 18px;
	}
}

/* Cartoons: season grouping + horizontal episode slider. */
.mb-season {
	margin-top: 26px;
}

.mb-season__top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
}

.mb-season__title {
	margin: 0;
	font-weight: 900;
	font-size: 22px;
	letter-spacing: -0.01em;
}

.mb-slider-controls {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.mb-slider-btn {
	appearance: none;
	border: 2px solid rgba(17, 17, 17, 0.14);
	background: rgba(255, 255, 255, 0.92);
	color: rgba(17, 17, 17, 0.92);
	border-radius: 999px;
	padding: 8px 12px;
	font-weight: 900;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 12px;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	box-shadow: 0 10px 0 rgba(6, 137, 133, 0.10), 0 20px 46px rgba(0, 0, 0, 0.06);
}

.mb-slider-btn:hover {
	transform: translateY(-1px);
	border-color: rgba(6, 137, 133, 0.32);
}

.mb-slider {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(220px, 70vw, 320px);
	gap: 14px;
	overflow-x: auto;
	padding: 8px 2px 14px;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: 10px;
	-webkit-overflow-scrolling: touch;
}

.mb-slider > * {
	scroll-snap-align: start;
}

.mb-slider::-webkit-scrollbar {
	height: 10px;
}

.mb-slider::-webkit-scrollbar-thumb {
	background: rgba(17, 17, 17, 0.18);
	border-radius: 999px;
}

.mb-episode-card {
	position: relative;
	display: grid;
	grid-template-rows: 160px auto;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.92);
	border: 2px solid rgba(17, 17, 17, 0.10);
	box-shadow: 0 14px 0 rgba(255, 128, 0, 0.10), 0 26px 60px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	transform: rotate(-0.2deg);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.mb-episode-card:nth-child(2n) {
	transform: rotate(0.2deg);
}

.mb-episode-card:hover {
	transform: translateY(-2px) rotate(0deg);
	box-shadow: 0 16px 0 rgba(6, 137, 133, 0.10), 0 32px 70px rgba(0, 0, 0, 0.08);
}

.mb-episode-card__img {
	display: block;
	width: 100%;
	height: 100%;
	background: rgba(6, 137, 133, 0.08);
}

.mb-episode-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	filter: saturate(1.06) contrast(1.04);
}

.mb-episode-card__body {
	padding: 12px 14px 14px;
	display: grid;
	gap: 6px;
}

.mb-episode-card__kicker {
	display: inline-flex;
	gap: 8px;
	align-items: center;
}

.mb-episode-card__title {
	margin: 0;
	font-weight: 900;
	font-size: 16px;
	line-height: 1.12;
}

.mb-episode-card__desc {
	margin: 0;
	color: rgba(17, 17, 17, 0.72);
	font-weight: 700;
	font-size: 13px;
	line-height: 1.3;
}

.mb-episode-actions {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin: 12px 0 4px;
}

.mb-crumb {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 12px;
	color: rgba(6, 137, 133, 0.95);
	text-decoration: none;
}

.mb-crumb:hover {
	text-decoration: underline;
}

/* Home Page News Slider */
.ac-home-news-slider-section {
	max-width: 1280px;
	margin: 40px auto 56px;
	padding: 0 10px;
}

.ac-slider-header {
	margin-bottom: 20px;
	align-items: center;
}

.ac-slider-header h2 {
	margin: 0;
	font-weight: 900;
	font-size: 30px;
	letter-spacing: -0.02em;
}

.ac-news-slider-relative-wrap {
	position: relative;
	/* Keep headroom for the scaled center card so it is not clipped. */
	padding: 34px 0 34px;
	background: transparent;
	border-radius: 28px;
	overflow: hidden;
}

.ac-news-slider-relative-wrap::before,
.ac-news-slider-relative-wrap::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 132px;
	pointer-events: none;
	z-index: 5;
}

.ac-news-slider-relative-wrap::before {
	left: 0;
	background: linear-gradient(to right, rgba(237, 245, 244, 0.98) 18%, rgba(237, 245, 244, 0));
}

.ac-news-slider-relative-wrap::after {
	right: 0;
	background: linear-gradient(to left, rgba(237, 245, 244, 0.98) 18%, rgba(237, 245, 244, 0));
}

.ac-home-news-slider-plugin {
	position: relative;
	z-index: 2;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-list {
	margin: 0 -8px;
	padding-top: 6px;
	overflow: visible;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-slide {
	padding: 0 8px;
	box-sizing: border-box;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-track {
	padding-bottom: 32px;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-carousel-slides {
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	border: 1px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 12px 26px rgba(12, 18, 24, 0.11);
	transform: scale(1);
	opacity: 1;
	filter: none;
	transition: transform 0.35s ease, opacity 0.35s ease, filter 0.35s ease, box-shadow 0.35s ease;
	transform-origin: center center;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-carousel-slides.slick-active {
	opacity: 1;
	filter: none;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-carousel-slides.slick-center {
	transform: scale(1.22);
	opacity: 1;
	filter: none;
	box-shadow: 0 22px 40px rgba(12, 18, 24, 0.18);
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-carousel-slides:not(.slick-active) {
	opacity: 0.14;
	filter: saturate(0.78);
	transform: scale(1);
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-carousel-slides {
	padding: 0;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-post-image-bg {
	height: auto;
	aspect-ratio: 16 / 9;
	margin: 0 0 10px;
	background: #f0f3f7;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-post-image-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-post-content-position {
	padding: 0 14px 12px;
	min-height: 104px;
	height: 104px;
	display: flex;
	align-items: flex-start;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-post-title {
	margin: 0;
	line-height: 1.25;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-post-title a {
	color: #141414;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.006em;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 :is(.wppsac-post-image-bg a, .wppsac-post-title a) > br {
	display: none;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-arrow {
	top: 50%;
	transform: translateY(-50%);
	width: 50px;
	height: 66px;
	background: transparent;
	border: 0;
	color: #00BCDF;
	z-index: 7;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-prev {
	left: clamp(12px, 4vw, 42px) !important;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-next {
	right: clamp(12px, 4vw, 42px) !important;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-arrow:hover {
	color: #00BCDF;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-arrow svg {
	fill: currentColor;
	width: 100%;
	height: 100%;
	padding: 12px;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-arrow svg path {
	fill: currentColor;
}

.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .ac-news-arrow--next svg {
	transform: rotate(180deg);
}

@media (max-width: 760px) {
	.ac-home-news-slider-section {
		margin: 18px auto 32px;
		padding: 0 4px;
	}

	.ac-news-slider-relative-wrap {
		padding-top: 24px;
	}

	.ac-slider-header h2 {
		font-size: 24px;
	}

	.ac-news-slider-relative-wrap::before,
	.ac-news-slider-relative-wrap::after {
		width: 52px;
	}

	.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-post-title a {
		font-size: 14px;
	}

	.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .wppsac-post-content-position {
		min-height: 96px;
		height: 96px;
		padding: 0 14px 14px;
	}

	.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-arrow {
		width: 44px;
		height: 58px;
	}

	.ac-home-news-slider-plugin .wppsac-post-carousel.design-1 .slick-arrow svg {
		padding: 9px;
	}
}
