/* WeebWalls v2: wallpaper-first discovery layer. Loaded after theme.css. */
:root {
	--v2-grad: linear-gradient(100deg, #ff5ebc 0%, #9d6cff 48%, #5ee7ef 100%);
	--v2-card: #120f1c;
	--v2-chip: rgba(255, 255, 255, 0.07);
	--v2-chip-hover: rgba(255, 255, 255, 0.14);
	--v2-hero-fade: linear-gradient(180deg, rgba(8, 7, 13, 0.55) 0%, rgba(8, 7, 13, 0.82) 55%, var(--ww-bg) 100%);
}
[data-theme="light"] {
	--v2-card: #ffffff;
	--v2-chip: rgba(23, 17, 31, 0.06);
	--v2-chip-hover: rgba(23, 17, 31, 0.12);
	--v2-hero-fade: linear-gradient(180deg, rgba(250, 248, 255, 0.6) 0%, rgba(250, 248, 255, 0.88) 55%, var(--ww-bg) 100%);
}

/* Header search */
.site-brand__logo--mark { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 6px 18px rgba(157, 108, 255, 0.35); filter: none !important; }
.site-brand__word { font-weight: 850; letter-spacing: -0.03em; font-size: 1.22rem; }
.site-brand__word b { font-weight: 850; background: var(--v2-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-brand__word em { margin-left: 0.4rem; padding: 0.12rem 0.45rem; border-radius: 0.4rem; background: var(--ww-accent-soft); color: var(--ww-accent-2); font-size: 0.68rem; font-style: normal; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; vertical-align: 0.2em; }

.ww-nav-search input {
	width: 12.5rem;
	height: 2.4rem;
	padding: 0 0.95rem;
	border: 1px solid var(--ww-line);
	border-radius: 999px;
	background: var(--v2-chip);
	color: var(--ww-text);
	font: inherit;
	font-size: 0.9rem;
}
.ww-nav-search input:focus { outline: 2px solid var(--ww-accent); outline-offset: 1px; }
@media (max-width: 960px) { .ww-nav-search { width: 100%; margin: 0.6rem 0; } .ww-nav-search input { width: 100%; } }

/* Hero */
.ww-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(3.2rem, 8vw, 6.5rem) 0 clamp(2.4rem, 5vw, 4rem);
	isolation: isolate;
}
.ww-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 0.5rem;
	transform: rotate(-4deg) scale(1.18);
	opacity: 0.55;
	filter: saturate(1.15);
}
.ww-hero__bg img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; border-radius: 1rem; }
.ww-hero__bg img:nth-child(even) { transform: translateY(2.5rem); }
.ww-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--v2-hero-fade); }
@media (max-width: 700px) { .ww-hero__bg { grid-template-columns: repeat(3, 1fr); } .ww-hero__bg img:nth-child(n + 4) { display: none; } }
.ww-hero__inner { max-width: 54rem; text-align: center; }
.ww-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	border: 1px solid var(--ww-accent-border);
	border-radius: 999px;
	background: var(--ww-accent-soft);
	color: var(--ww-text);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.ww-kicker span { color: var(--ww-pink); font-size: 0.95rem; letter-spacing: 0; }
.ww-hero h1 {
	margin: 0 auto 1.4rem;
	font-size: clamp(2.3rem, 6.4vw, 4.6rem);
	line-height: 1.02;
	letter-spacing: -0.035em;
	text-wrap: balance;
}
.ww-hero h1 em { font-style: normal; background: var(--v2-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ww-search {
	display: flex;
	gap: 0.4rem;
	max-width: 36rem;
	margin: 0 auto 1.1rem;
	padding: 0.4rem;
	border: 1px solid var(--ww-line-strong);
	border-radius: 999px;
	background: var(--v2-card);
	box-shadow: var(--ww-shadow);
}
.ww-search input { flex: 1; min-width: 0; padding: 0 1rem; border: 0; background: transparent; color: var(--ww-text); font: inherit; font-size: 1rem; }
.ww-search input:focus { outline: none; }
.ww-search button {
	padding: 0.8rem 1.35rem;
	border: 0;
	border-radius: 999px;
	background: var(--v2-grad);
	color: #fff;
	font: inherit;
	font-weight: 800;
	cursor: pointer;
}
.ww-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.ww-chips a {
	display: block;
	padding: 0.42rem 0.85rem;
	border: 1px solid var(--ww-line);
	border-radius: 999px;
	background: var(--v2-chip);
	color: var(--ww-text);
	font-size: 0.86rem;
	font-weight: 600;
	text-decoration: none;
	backdrop-filter: blur(8px);
	transition: background var(--ww-transition), transform var(--ww-transition);
}
.ww-chips a:hover { background: var(--v2-chip-hover); transform: translateY(-1px); }
.ww-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin: 0; padding: 0; list-style: none; color: var(--ww-muted); font-size: 0.92rem; }
.ww-stats strong { color: var(--ww-text); }

/* Sections */
.ww-section { padding: clamp(1.6rem, 4vw, 2.8rem) 0; }
.ww-section--tight { padding-top: 0.4rem; }
.ww-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ww-head h2 { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-size: clamp(1.35rem, 3vw, 1.85rem); letter-spacing: -0.02em; }
.ww-head a { color: var(--ww-accent-2); font-weight: 700; text-decoration: none; white-space: nowrap; }
[data-theme="light"] .ww-head a { color: var(--ww-accent); }
.ww-badge { padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--v2-grad); color: #fff; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }

/* Character rail */
.ww-rail {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(9.5rem, 11.5rem);
	gap: 0.8rem;
	overflow-x: auto;
	padding-bottom: 0.6rem;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
}
.ww-char {
	position: relative;
	display: block;
	aspect-ratio: 3 / 4.4;
	overflow: hidden;
	border-radius: 1.1rem;
	background: var(--ww-media-bg);
	color: #fff;
	text-decoration: none;
	scroll-snap-align: start;
	box-shadow: inset 0 0 0 1px var(--ww-line);
}
.ww-char img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.ww-char:hover img { transform: scale(1.06); }
.ww-char__meta {
	position: absolute;
	inset: auto 0 0;
	display: grid;
	gap: 0.1rem;
	padding: 2.4rem 0.75rem 0.7rem;
	background: linear-gradient(180deg, transparent, rgba(5, 4, 9, 0.92));
}
.ww-char__meta strong { font-size: 0.95rem; line-height: 1.15; }
.ww-char__meta small { color: rgba(255, 255, 255, 0.72); font-size: 0.75rem; }

/* Series chips */
.ww-series { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.ww-series a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--ww-line);
	border-radius: 0.9rem;
	background: var(--v2-chip);
	color: var(--ww-text);
	font-weight: 700;
	text-decoration: none;
	transition: border-color var(--ww-transition), background var(--ww-transition);
}
.ww-series a:hover { border-color: var(--ww-accent-border); background: var(--ww-accent-soft); }
.ww-series small { color: var(--ww-muted); font-weight: 600; }
@media (max-width: 700px) {
	.ww-series { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; }
	.ww-series a { padding: 0.6rem 0.75rem; font-size: 0.88rem; }
	.ww-chips li:nth-child(n + 7) { display: none; }
	.ww-kicker { font-size: 0.7rem; }
}

/* Masonry feed */
.ww-feed { columns: 4 15rem; column-gap: 0.8rem; }
.ww-feed > * { break-inside: avoid; margin-bottom: 0.8rem; }
.ww-tile { position: relative; display: block; overflow: hidden; border-radius: 1rem; background: var(--ww-media-bg); color: #fff; text-decoration: none; }
.ww-tile img { display: block; width: 100%; height: auto; transition: transform 400ms ease; }
.ww-tile:hover img { transform: scale(1.04); }
.ww-tile__cap {
	position: absolute;
	inset: auto 0 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 2rem 0.75rem 0.65rem;
	background: linear-gradient(180deg, transparent, rgba(5, 4, 9, 0.85));
	font-size: 0.85rem;
	font-weight: 700;
	opacity: 0;
	transition: opacity var(--ww-transition);
}
.ww-tile:hover .ww-tile__cap, .ww-tile:focus-visible .ww-tile__cap { opacity: 1; }
.ww-tile__cap b { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--v2-grad); }
@media (hover: none) { .ww-tile__cap { opacity: 1; } }
@media (max-width: 700px) { .ww-feed { columns: 2; column-gap: 0.55rem; } .ww-feed > * { margin-bottom: 0.55rem; } }

/* Studio banner */
.ww-studio {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.2rem 2rem;
	padding: clamp(1.4rem, 4vw, 2.4rem);
	border: 1px solid var(--ww-accent-border);
	border-radius: 1.5rem;
	background: radial-gradient(120% 140% at 0% 0%, rgba(255, 94, 188, 0.18), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(94, 231, 239, 0.16), transparent 55%), var(--v2-card);
}
.ww-studio > div { max-width: 38rem; }
.ww-studio h2 { margin: 0 0 0.4rem; font-size: clamp(1.3rem, 3vw, 1.8rem); }
.ww-studio p:not(.ww-kicker) { margin: 0; color: var(--ww-muted); }
.ww-studio .ww-kicker { margin-bottom: 0.7rem; }

/* Ads */
.ww-ad { display: flex; justify-content: center; margin: 1rem auto; min-height: 90px; }
.ww-feed .ww-ad { min-height: 250px; margin: 0 0 0.8rem; }

/* Character page polish */
.collection-hero h1 { background: var(--v2-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.download-button { background: var(--v2-grad) !important; color: #fff !important; border: 0 !important; }

/* ===== Studio subdomain landing (.sx) ===== */
.sx-hero { position: relative; overflow: hidden; padding: clamp(2.6rem, 7vw, 5.5rem) 0 clamp(2.6rem, 5vw, 4rem); background: radial-gradient(60% 70% at 85% 20%, rgba(157, 108, 255, 0.22), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(255, 94, 188, 0.14), transparent 70%); }
.sx-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.sx-hero h1 { margin: 0 0 1rem; font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; text-wrap: balance; }
.sx-hero h1 em { font-style: normal; background: var(--v2-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sx-lead { max-width: 34rem; margin: 0 0 1.5rem; color: var(--ww-muted); font-size: 1.08rem; line-height: 1.6; }
.sx-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.4rem; }
.sx-btn { background: var(--v2-grad) !important; border: 0 !important; color: #fff !important; box-shadow: 0 10px 30px rgba(157, 108, 255, 0.35); }
.sx-points { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.sx-points li { padding: 0.4rem 0.75rem; border: 1px solid var(--ww-line); border-radius: 999px; background: var(--v2-chip); color: var(--ww-muted); font-size: 0.85rem; }
.sx-points b { color: var(--ww-text); }
.sx-hero__art { position: relative; min-height: 30rem; }
.sx-hero__art img { position: absolute; object-fit: cover; border-radius: 1.2rem; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); border: 1px solid var(--ww-line-strong); }
.sx-hero__a { left: 4%; top: 0; width: 42%; height: auto; aspect-ratio: 9 / 16; transform: rotate(-4deg); z-index: 2; }
.sx-hero__c { right: 2%; top: 6%; width: 38%; height: auto; aspect-ratio: 9 / 16; transform: rotate(5deg); z-index: 1; }
.sx-hero__b { left: 16%; bottom: 1.6rem; width: 70%; height: auto; aspect-ratio: 16 / 9; z-index: 3; }
.sx-prompt-demo { position: absolute; left: 8%; right: 8%; bottom: -0.6rem; z-index: 4; display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem 0.55rem 0.55rem 1rem; border: 1px solid var(--ww-line-strong); border-radius: 999px; background: var(--v2-card); box-shadow: var(--ww-shadow); font-size: 0.85rem; }
.sx-prompt-demo span { color: var(--ww-accent-2); font-weight: 800; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.sx-prompt-demo p { flex: 1; min-width: 0; margin: 0; overflow: hidden; color: var(--ww-muted); white-space: nowrap; text-overflow: ellipsis; }
.sx-prompt-demo b { padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--v2-grad); color: #fff; white-space: nowrap; }
@media (max-width: 900px) {
	.sx-hero__grid { grid-template-columns: 1fr; }
	.sx-hero__art { min-height: 24rem; margin-bottom: 1rem; }
}
.sx-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem; }
.sx-steps article { padding: 1.3rem; border: 1px solid var(--ww-line); border-radius: 1.2rem; background: var(--v2-card); }
.sx-steps span { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: 0.8rem; border-radius: 0.7rem; background: var(--v2-grad); color: #fff; font-weight: 900; }
.sx-steps h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.sx-steps p { margin: 0; color: var(--ww-muted); }
@media (max-width: 800px) { .sx-steps { grid-template-columns: 1fr; } }
.sx-show { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 11rem; grid-auto-flow: dense; gap: 0.8rem; }
.sx-show__item { position: relative; margin: 0; overflow: hidden; border-radius: 1.1rem; background: var(--ww-media-bg); }
.sx-show__item--tall { grid-row: span 3; }
.sx-show__item--wide { grid-column: span 2; grid-row: span 2; }
.sx-show__item--square { grid-row: span 2; }
.sx-show__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.sx-show__item:hover img { transform: scale(1.04); }
.sx-show__item figcaption { position: absolute; inset: auto 0 0; padding: 2.2rem 0.8rem 0.75rem; background: linear-gradient(180deg, transparent, rgba(5, 4, 9, 0.9)); color: rgba(255, 255, 255, 0.92); font-size: 0.8rem; line-height: 1.35; }
.sx-tag { display: inline-block; margin: 0 0.4rem 0.3rem 0; padding: 0.1rem 0.45rem; border-radius: 0.4rem; background: rgba(255, 255, 255, 0.16); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 800px) { .sx-show { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 8.5rem; } }
.sx-note { margin: 0.8rem 0 0; color: var(--ww-muted); font-size: 0.82rem; }
.sx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 0.9rem; max-width: 46rem; }
.sx-plan { position: relative; display: flex; flex-direction: column; gap: 0.45rem; padding: 1.4rem; border: 1px solid var(--ww-line); border-radius: 1.3rem; background: var(--v2-card); }
.sx-plan.is-featured { border-color: var(--ww-accent-border); box-shadow: 0 20px 50px rgba(157, 108, 255, 0.2); }
.sx-plan__flag { position: absolute; top: 1rem; right: 1rem; padding: 0.2rem 0.55rem; border-radius: 999px; background: var(--v2-grad); color: #fff; font-size: 0.7rem; font-weight: 800; }
.sx-plan h3 { margin: 0; color: var(--ww-muted); font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; }
.sx-plan__price { margin: 0; font-size: 2.6rem; font-weight: 900; letter-spacing: -0.03em; }
.sx-plan__price sup { font-size: 1.1rem; }
.sx-plan__price small { color: var(--ww-muted); font-size: 0.95rem; font-weight: 600; }
.sx-plan__credits b { color: var(--ww-accent-2); font-size: 1.1rem; }
.sx-plan p { margin: 0; color: var(--ww-muted); }
.sx-plan .button { margin-top: 0.6rem; }
.sx-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.9rem; }
.sx-trust > div { padding: 1.1rem; border-top: 2px solid var(--ww-accent-border); }
.sx-trust h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.sx-trust p { margin: 0; color: var(--ww-muted); font-size: 0.92rem; }
@media (max-width: 900px) { .sx-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
