.anime-theme {
	--bg: #f3f9fb;
	--surface: #eaf7f8;
	--surface-strong: #ffffff;
	--text: #1d2936;
	--muted: #526879;
	--line: #cbe5e8;
	--brand: #129aaa;
	--brand-dark: #087481;
	--coral: #ff6b67;
	--yellow: #ffc857;
	--green: #48bd83;
	--dark: #202b38;
	--shadow: 0 16px 38px rgba(29, 41, 54, 0.14);
	background: var(--bg);
	font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
}

.anime-theme::before {
	display: none;
}

.anime-theme h1,
.anime-theme h2,
.anime-theme h3 {
	font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
	letter-spacing: 0;
}

.anime-theme h1 {
	font-size: 4.2rem;
	line-height: 1.02;
}

.anime-theme h2 {
	font-size: 3rem;
}

.anime-theme .site-header {
	border-bottom: 3px solid var(--brand);
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 8px 24px rgba(29, 41, 54, 0.1);
}

.anime-theme .brand-mark {
	border: 2px solid var(--yellow);
	background: var(--dark);
}

.anime-theme .brand-toggle:hover,
.anime-theme .brand-toggle:focus-visible,
.anime-theme .brand-toggle[aria-expanded="true"] {
	background: #eaf7f8;
}

.anime-theme .brand-toggle:focus-visible {
	outline-color: rgba(18, 154, 170, 0.35);
}

.anime-theme .brand-dropdown {
	border: 2px solid var(--brand);
	box-shadow: 8px 8px 0 rgba(32, 43, 56, 0.12);
}

.anime-theme .brand-dropdown a:hover,
.anime-theme .brand-dropdown a:focus-visible {
	background: #eaf7f8;
}

.anime-theme .top-nav a {
	position: relative;
	border-radius: 4px;
}

.anime-theme .top-nav a::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.3rem;
	height: 3px;
	background: var(--coral);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.18s ease;
}

.anime-theme .top-nav a:hover::after,
.anime-theme .top-nav a:focus-visible::after {
	transform: scaleX(1);
}

.anime-theme .button {
	border-color: var(--dark);
	border-radius: 6px;
	background: var(--dark);
	box-shadow: 5px 5px 0 var(--yellow);
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.anime-theme .button:hover {
	transform: none;
	background: var(--brand-dark);
	box-shadow: 5px 5px 0 var(--coral);
}

.anime-theme .hero {
	position: relative;
	display: flex;
	align-items: center;
	max-width: none;
	min-height: 730px;
	margin: 0;
	padding: 4.5rem max(3rem, calc((100% - 1180px) / 2)) 10.5rem;
	overflow: hidden;
	clip-path: none;
	background-color: #edf8fa;
	background-image: url("../../images/anime-hero-club.png");
	background-position: center;
	background-size: cover;
	box-shadow: none;
	color: var(--text);
}

.anime-theme .hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(248, 253, 254, 0.98) 0%, rgba(248, 253, 254, 0.92) 34%, rgba(248, 253, 254, 0.48) 53%, rgba(248, 253, 254, 0.04) 75%);
	pointer-events: none;
}

.anime-theme .hero-copy {
	position: relative;
	z-index: 2;
	width: min(610px, 52%);
}

.anime-theme .hero .eyebrow,
.anime-theme .hero .lead {
	color: var(--text);
}

.anime-theme .hero .lead {
	max-width: 590px;
	font-size: 1.18rem;
}

.anime-theme .hero .button {
	border-color: var(--dark);
	background: var(--dark);
	color: #fff;
}

.anime-theme .hero .button:hover {
	border-color: var(--brand-dark);
	background: var(--brand-dark);
}

.anime-theme .hero .button-ghost {
	border-color: var(--dark);
	background: rgba(255, 255, 255, 0.88);
	color: var(--dark);
	box-shadow: 5px 5px 0 var(--coral);
}

.anime-theme .hero .button-ghost:hover {
	background: #fff;
	color: var(--brand-dark);
}

.anime-theme .hero-facts {
	gap: 0.55rem;
	margin-top: 1.6rem;
}

.anime-theme .hero-facts li {
	padding: 0.8rem;
	border: 1px solid rgba(29, 41, 54, 0.16);
	border-radius: 5px;
	background: rgba(255, 255, 255, 0.78);
	backdrop-filter: blur(10px);
}

.anime-theme .hero-facts strong {
	font-size: 1.05rem;
}

.anime-theme .hero-facts span {
	color: var(--muted);
	font-size: 0.78rem;
}

.anime-theme .hero-media {
	position: absolute;
	left: 50%;
	bottom: 1.35rem;
	z-index: 3;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0.45rem;
	width: min(760px, calc(100% - 2rem));
	padding: 0.5rem;
	border: 2px solid var(--yellow);
	border-radius: 7px;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 8px 8px 0 rgba(32, 43, 56, 0.18);
	transform: translateX(-50%);
	backdrop-filter: blur(12px);
}

.anime-theme .hero-media::before {
	display: none;
}

.anime-theme .hero-course,
.anime-theme .hero-course:nth-child(1) {
	aspect-ratio: 16 / 9;
	border-radius: 4px;
	box-shadow: none;
}

.anime-theme .hero-course img {
	height: 100%;
	aspect-ratio: auto;
}

.anime-theme .hero-course-title {
	left: 0;
	right: 0;
	bottom: 0;
	min-height: 30px;
	padding: 0.35rem 0.5rem;
	border: 0;
	border-radius: 0;
	background: rgba(32, 43, 56, 0.82);
	font-size: 0.7rem;
	opacity: 1;
}

.anime-theme .section,
.anime-theme .contact,
.anime-theme .site-footer {
	max-width: 1180px;
}

.anime-theme .intro {
	margin-top: 0;
}

.anime-theme .section-heading {
	max-width: 820px;
}

.anime-theme .intro-grid article {
	border: 1px solid var(--line);
	border-left: 5px solid var(--brand);
	border-top-width: 1px;
	border-radius: 5px;
	background: #fff;
	box-shadow: none;
}

.anime-theme .intro-grid article:nth-child(2) {
	border-left-color: var(--coral);
}

.anime-theme .intro-grid article:nth-child(3) {
	border-left-color: var(--yellow);
}

.anime-theme #courses {
	max-width: 1180px;
	background-color: #f7fcfd;
	background-image: radial-gradient(rgba(29, 41, 54, 0.1) 0.8px, transparent 0.8px);
	background-size: 12px 12px;
	box-shadow: 0 0 0 100vmax #f7fcfd;
	clip-path: inset(0 -100vmax);
}

.anime-theme #courses .section-heading {
	position: relative;
	padding: 1.35rem 1.5rem;
	border: 3px solid var(--dark);
	background: #fff;
	box-shadow: 9px 9px 0 var(--coral);
}

.anime-theme #courses .section-heading::after {
	content: "";
	position: absolute;
	right: 1.2rem;
	top: 1rem;
	width: 54px;
	height: 12px;
	border-top: 4px solid var(--dark);
	border-bottom: 4px solid var(--dark);
	transform: skewX(-28deg);
}

.anime-theme .course-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.65rem;
	counter-reset: manga-course;
}

.anime-theme .course-card {
	counter-increment: manga-course;
	border: 3px solid var(--dark);
	border-radius: 0;
	background: #fff;
	box-shadow: 8px 8px 0 var(--brand);
	cursor: pointer;
	transition: box-shadow 0.2s ease, opacity 0.35s ease;
}

.anime-theme .course-card:nth-child(4n + 2) {
	box-shadow: 8px 8px 0 var(--coral);
}

.anime-theme .course-card:nth-child(4n + 3) {
	box-shadow: 8px 8px 0 var(--yellow);
}

.anime-theme .course-card:nth-child(4n) {
	box-shadow: 8px 8px 0 var(--green);
}

.anime-theme .course-card:hover {
	border-color: var(--dark);
	box-shadow: 12px 12px 0 var(--dark);
}

.anime-theme .course-card img {
	border-bottom: 3px solid var(--dark);
	background: #fff;
	filter: saturate(1.04) contrast(1.03);
}

.anime-theme .course-card:focus-visible {
	outline: 5px solid var(--yellow);
	outline-offset: 5px;
}

.anime-theme .course-card div {
	isolation: isolate;
	min-height: 245px;
	padding: 1.3rem 1.2rem 1.15rem;
}

.anime-theme .course-card div::before {
	content: counter(manga-course, decimal-leading-zero);
	position: absolute;
	right: 0.75rem;
	top: 0.35rem;
	z-index: -1;
	color: rgba(18, 154, 170, 0.13);
	font-size: 4rem;
	font-weight: 900;
	line-height: 1;
}

.anime-theme .course-card div::after {
	height: 5px;
	border-radius: 0;
	background: var(--dark);
}

.anime-theme .course-card h3,
.anime-theme .course-card p,
.anime-theme .course-card a,
.anime-theme .course-card .tag {
	position: relative;
	z-index: 1;
}

.anime-theme .course-card h3 {
	max-width: calc(100% - 2.6rem);
	font-size: 1.28rem;
}

.anime-theme .course-card p {
	min-height: 6.2rem;
}

.anime-theme .course-card a {
	padding-bottom: 0.1rem;
	border-bottom: 3px solid var(--coral);
	color: var(--dark);
}

.anime-theme .tag {
	border: 2px solid var(--dark);
	border-radius: 0;
	background: var(--yellow);
	box-shadow: 3px 3px 0 var(--dark);
}

.manga-viewer {
	width: 80vw;
	max-width: none;
	max-height: calc(100% - 2rem);
	padding: 0;
	border: 0;
	overflow: visible;
	background: transparent;
}

.manga-viewer::backdrop {
	background: rgba(17, 24, 31, 0.86);
}

.manga-viewer-frame {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(500px, 0.95fr);
	max-height: calc(100vh - 3rem);
	padding: 0.65rem;
	border: 4px solid #202b38;
	background: #fff;
	box-shadow: 14px 14px 0 #ff6b67;
}

.manga-viewer img {
	width: 100%;
	height: 100%;
	min-height: 0;
	border-right: 4px solid #202b38;
	object-fit: contain;
	background: #f5fafb;
}

.manga-viewer-content {
	min-height: 0;
	padding: clamp(1.4rem, 3vw, 2.5rem);
	overflow-y: auto;
	background-color: #fff;
	background-image: radial-gradient(rgba(32, 43, 56, 0.12) 1px, transparent 1px);
	background-size: 9px 9px;
}

.manga-viewer-content h2 {
	margin: 1.1rem 0 1rem;
	color: #202b38;
	font-size: clamp(1.75rem, 3vw, 2.75rem);
	line-height: 1.05;
}

.manga-viewer-summary {
	margin: 0 0 1.25rem;
	color: #526779;
	font-size: 1rem;
	line-height: 1.65;
}

.manga-viewer-points {
	display: grid;
	gap: 0.65rem;
	margin: 0 0 1.5rem;
	padding: 0;
	list-style: none;
}

.manga-viewer-points li {
	position: relative;
	padding: 0.75rem 0.8rem 0.75rem 2.5rem;
	border: 2px solid #202b38;
	background: #fff;
	color: #202b38;
	font-weight: 700;
	line-height: 1.4;
}

.manga-viewer-points li::before {
	content: "✓";
	position: absolute;
	left: 0.7rem;
	top: 0.62rem;
	color: #129aaa;
	font-size: 1.25rem;
	font-weight: 900;
}

.anime-theme .manga-viewer-action {
	border: 3px solid #202b38;
	border-radius: 0;
	background: #ffc857;
	box-shadow: 5px 5px 0 #202b38;
	color: #202b38;
}

.anime-theme .manga-viewer-action:hover,
.anime-theme .manga-viewer-action:focus-visible {
	background: #ff6b67;
	color: #202b38;
}

.manga-viewer-close {
	position: absolute;
	right: -18px;
	top: -18px;
	z-index: 2;
	display: grid;
	width: 44px;
	height: 44px;
	place-items: center;
	padding: 0;
	border: 3px solid #202b38;
	border-radius: 50%;
	background: #ffc857;
	color: #202b38;
	font: 900 2rem/1 Arial, sans-serif;
	cursor: pointer;
}

.manga-viewer-close:hover,
.manga-viewer-close:focus-visible {
	background: #ff6b67;
	outline: 4px solid #fff;
	outline-offset: 2px;
}

.anime-theme .process {
	max-width: 1180px;
	border: 0;
	border-radius: 0;
	background: var(--dark);
	box-shadow: 0 0 0 100vmax var(--dark);
	clip-path: inset(0 -100vmax);
	color: #fff;
}

.anime-theme .process .eyebrow,
.anime-theme .process p,
.anime-theme .process span {
	color: #d7e5e9;
}

.anime-theme .steps li {
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 5px;
	background: #2b3947;
}

.anime-theme .steps li::before {
	border-radius: 4px;
	background: var(--coral);
}

.anime-theme .contact {
	border: 0;
	border-radius: 0;
	background: #153f46;
	box-shadow: 0 0 0 100vmax #153f46;
	clip-path: inset(0 -100vmax);
}

.anime-theme .contact .eyebrow {
	color: var(--yellow);
}

.anime-theme address {
	border-radius: 5px;
}

.anime-theme .site-footer a {
	color: var(--brand-dark);
}

@media (max-width: 1100px) {
	.anime-theme h1 {
		font-size: 3.35rem;
	}

	.anime-theme h2 {
		font-size: 2.55rem;
	}

	.anime-theme .hero {
		display: flex;
		min-height: 700px;
		padding-right: 2rem;
		padding-left: 2rem;
		background-position: 54% center;
	}

	.anime-theme .hero-copy {
		width: min(580px, 60%);
	}

	.anime-theme .course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.anime-theme h1 {
		font-size: 2.45rem;
	}

	.anime-theme h2 {
		font-size: 2.15rem;
	}

	.anime-theme .site-header {
		position: sticky;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: center;
		padding: 0.55rem 0.75rem 0.45rem;
	}

	.anime-theme .site-header > .button {
		width: auto;
		min-height: 38px;
		padding: 0.55rem 0.7rem;
		box-shadow: 3px 3px 0 var(--yellow);
	}

	.anime-theme .top-nav {
		grid-column: 1 / -1;
		display: flex;
		order: 3;
		width: 100%;
		padding-top: 0.35rem;
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		scrollbar-width: none;
	}

	.anime-theme .top-nav::-webkit-scrollbar {
		display: none;
	}

	.anime-theme .top-nav a {
		flex: 0 0 auto;
		padding: 0.35rem 0.6rem;
		background: transparent;
		white-space: nowrap;
	}

	.anime-theme .hero {
		display: flex;
		align-items: flex-start;
		min-height: 650px;
		padding: 2.25rem 1rem 9.5rem;
		background-position: 59% center;
	}

	.anime-theme .hero::before {
		background: linear-gradient(90deg, rgba(248, 253, 254, 0.95) 0%, rgba(248, 253, 254, 0.82) 70%, rgba(248, 253, 254, 0.46) 100%);
	}

	.anime-theme .hero-copy {
		width: 100%;
		max-width: 520px;
	}

	.anime-theme .hero .lead {
		max-width: 94%;
		font-size: 1rem;
	}

	.anime-theme .hero-actions {
		margin-top: 1.2rem;
	}

	.anime-theme .hero-actions .button {
		width: auto;
		min-height: 42px;
		padding: 0.65rem 0.75rem;
	}

	.anime-theme .hero-facts {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		margin-top: 1.2rem;
	}

	.anime-theme .hero-facts li {
		padding: 0.55rem;
	}

	.anime-theme .hero-facts strong {
		font-size: 0.88rem;
	}

	.anime-theme .hero-facts span {
		display: none;
	}

	.anime-theme .hero-media {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 0.25rem;
		width: calc(100% - 1rem);
		padding: 0.35rem;
		box-shadow: 4px 4px 0 rgba(32, 43, 56, 0.18);
	}

	.anime-theme .hero-course-title {
		min-height: 24px;
		padding: 0.25rem 0.3rem;
		font-size: 0.58rem;
	}

	.anime-theme #courses .section-heading {
		padding: 1.15rem;
		box-shadow: 6px 6px 0 var(--coral);
	}

	.anime-theme #courses .section-heading::after {
		display: none;
	}

	.anime-theme .course-grid {
		grid-template-columns: 1fr;
		gap: 1.35rem;
	}

	.anime-theme .course-card {
		box-shadow: 6px 6px 0 var(--brand);
	}

	.anime-theme .course-card:nth-child(4n + 2) {
		box-shadow: 6px 6px 0 var(--coral);
	}

	.anime-theme .course-card:nth-child(4n + 3) {
		box-shadow: 6px 6px 0 var(--yellow);
	}

	.anime-theme .course-card:nth-child(4n) {
		box-shadow: 6px 6px 0 var(--green);
	}

	.anime-theme .course-card div {
		min-height: 0;
	}

	.anime-theme .course-card p {
		min-height: 0;
	}

	.manga-viewer {
		width: 80vw;
	}

	.manga-viewer-frame {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(0, 1fr);
		max-height: calc(100vh - 1.25rem);
		padding: 0.35rem;
		box-shadow: 7px 7px 0 #ff6b67;
	}

	.manga-viewer img {
		height: auto;
		max-height: 34vh;
		border-right: 0;
		border-bottom: 4px solid #202b38;
		object-fit: contain;
	}

	.manga-viewer-content {
		padding: 1.15rem;
	}

	.manga-viewer-content h2 {
		font-size: 1.65rem;
	}

	.manga-viewer-summary {
		font-size: 0.92rem;
		line-height: 1.5;
	}

	.manga-viewer-points li {
		font-size: 0.88rem;
	}

	.manga-viewer-close {
		right: -10px;
		top: -16px;
	}
}

@media (max-width: 430px) {
	.anime-theme h1 {
		font-size: 2.15rem;
	}

	.anime-theme .brand-menu {
		gap: 0.45rem;
	}

	.anime-theme .brand-mark {
		width: 38px;
		height: 38px;
	}

	.anime-theme .brand-toggle {
		gap: 0.35rem;
		padding-right: 0.2rem;
	}

	.anime-theme .brand-toggle strong {
		font-size: 0.95rem;
	}

	.anime-theme .site-header > .button {
		font-size: 0.8rem;
	}

	.anime-theme .hero {
		min-height: 620px;
		padding-top: 1.8rem;
		background-position: 61% center;
	}

	.anime-theme .hero .eyebrow {
		max-width: 300px;
	}

	.anime-theme .hero-course-title {
		display: none;
	}
}
