/* WizardBot.ru — общие стили (стилистика страниц ошибок + адаптив) */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}

html {
	scrollbar-gutter: stable;
	/* Тот же тёмный тон, что у краёв градиента body — при «резиновом» скролле не белый фон */
	background-color: #140d09;
}

body {
	min-height: 100vh;
	min-height: 100dvh;
	background: radial-gradient(circle at center, #2b1d16, #140d09 72%);
	overflow-x: hidden;
	font-family: 'Manrope', 'Exo 2', sans-serif;
	color: #ffb35c;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.container {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	padding: 20px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

body.page-prompts .container {
	max-width: 1000px;
}

h1 {
	font-family: 'Orbitron', sans-serif;
	font-size: clamp(40px, 7vw, 68px);
	letter-spacing: clamp(1px, 0.3vw, 4px);
	text-shadow:
		0 0 10px #ffb35c,
		0 0 20px #ffb35c,
		0 0 40px #ff8a3d,
		0 0 80px #c45a1a;
	animation: pulse 1.4s infinite alternate;
	max-width: 100%;
	word-break: break-word;
}

h2 {
	font-family: 'Orbitron', sans-serif;
	font-size: 28px;
	letter-spacing: 4px;
	color: #ffb35c;
	text-shadow: 0 0 10px #ffb35c, 0 0 20px #ff8a3d;
	margin-bottom: 24px;
}

p {
	font-size: 20px;
	line-height: 1.6;
	margin-top: 20px;
	color: #f6d5b2;
	text-shadow: 0 0 10px rgba(255, 179, 92, 0.35);
}

a.btn,
button.btn {
	display: inline-block;
	width: auto;
	align-self: center;
	margin-top: 24px;
	padding: 14px 30px;
	border: 1px solid #ffb35c;
	color: #ffb35c;
	text-decoration: none;
	font-size: 16px;
	font-family: 'Manrope', 'Exo 2', sans-serif;
	letter-spacing: 0.5px;
	transition: 0.3s;
	cursor: pointer;
	background: transparent;
}

a.btn:hover,
button.btn:hover {
	background: #ffb35c;
	color: #1b120d;
	box-shadow: 0 0 20px #ffb35c, 0 0 40px #ff8a3d;
}

a:not(.btn) {
	color: #7a4c33;
	text-decoration: none;
	text-shadow: 0 0 8px rgba(255, 179, 92, 0.35);
}

a:not(.btn):hover {
	text-decoration: underline;
}

@keyframes pulse {
	from {
		text-shadow:
			0 0 10px #ffb35c,
			0 0 20px #ffb35c,
			0 0 40px #ff8a3d;
	}
	to {
		text-shadow:
			0 0 20px #ffb35c,
			0 0 40px #ffb35c,
			0 0 80px #c45a1a;
	}
}

.particles {
	position: fixed;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 1;
	overflow: hidden;
	pointer-events: none;
}

.particles span {
	position: absolute;
	width: 2px;
	height: 2px;
	background: #ffb35c;
	box-shadow: 0 0 6px #ffb35c;
	animation: move linear infinite;
	opacity: 0.6;
}

@keyframes move {
	0% {
		transform: translateY(100vh);
		opacity: 0;
	}
	10% {
		opacity: 0.8;
	}
	100% {
		transform: translateY(-10vh);
		opacity: 0;
	}
}

/* Секции главной и страницы промптов */
.section {
	margin: 40px 0;
}

.section p {
	margin-top: 12px;
}

.qr-block {
	margin-top: 40px;
	text-align: center;
}

.qr-block .qr-image {
	display: block;
	margin: 0 auto;
	width: 200px;
	height: auto;
	max-width: 100%;
	aspect-ratio: 1;
	object-fit: contain;
	border-radius: 14px;
	padding: 4px;
	background: #f8ede2;
	box-shadow: 0 0 20px rgba(255, 179, 92, 0.2), 0 4px 20px rgba(0, 0, 0, 0.3);
/*	border: 1px solid rgba(176, 126, 92, 0.4); */
}

.qr-block .qr-caption {
	margin-top: 12px;
	font-size: 15px;
	color: #f6d5b2;
	text-shadow: 0 0 10px rgba(255, 179, 92, 0.35);
}

.prompt-card {
	border: 1px solid #d8b89a;
	padding: 20px 24px;
	margin: 20px 0;
	text-align: left;
	background: #f8efe6;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.prompt-card h3 {
	font-family: 'Manrope', 'Exo 2', sans-serif;
	font-size: 18px;
	font-weight: 600;
	color: #4a2f24;
	letter-spacing: 0.3px;
	margin-bottom: 12px;
	text-shadow: none;
}

.prompt-card .prompt-text {
	font-size: 15px;
	line-height: 1.6;
	color: #5b3a2a;
	user-select: text;
	-webkit-user-select: text;
	-moz-user-select: text;
	-ms-user-select: text;
	white-space: pre-wrap;
	word-break: break-word;
	text-shadow: none;
}

.prompts-section {
	margin-bottom: 2rem;
	scroll-margin-top: 16px;
}

.prompts-section:first-of-type {
	margin-top: 0;
}

.prompt-categories-nav {
	margin-bottom: 2rem;
	padding: 20px 24px;
	background: #f8efe6;
	border: 1px solid #d8b89a;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.prompt-featured-nav {
	margin-bottom: 1rem;
	padding: 20px 24px;
	background: #f8efe6;
	border: 1px solid #d8b89a;
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.prompt-categories-featured {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	row-gap: 40px;
	column-gap: 20px;
	margin-bottom: 12px;
}

.prompt-featured-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	min-width: 0;
	width: 100%;
}

.prompt-featured-thumbs {
	display: flex;
	flex-wrap: nowrap;
	gap: 10px;
	justify-content: center;
	width: 100%;
	min-width: 0;
}

.prompt-featured-thumb-link {
	display: block;
	box-sizing: border-box;
	flex: 0 1 calc((100% - 20px) / 3);
	min-width: 0;
	max-width: calc((100% - 20px) / 3);
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #d8b89a;
	background: #ead8c6;
}

.prompt-featured-thumb {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.prompt-featured-thumb-link:hover .prompt-featured-thumb {
	transform: scale(1.05);
}

.prompt-category-featured-link {
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: 16px 20px;
	font-family: 'Orbitron', sans-serif;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 1px;
	text-align: center;
	color: #5b3a2a;
	background: #f1dfcd;
	border: 1px solid #d8b89a;
	text-decoration: none;
	border-radius: 6px;
	transition: 0.25s;
	text-shadow: none;
}

.prompt-category-featured-link:hover {
	background: #ebd2bb;
	border-color: #bd9776;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
	text-decoration: none;
	color: #4a2f24;
}

.prompt-categories-nav-title {
	font-family: 'Manrope', 'Exo 2', sans-serif;
	font-size: 16px;
	font-weight: 600;
	color: #4a2f24;
	margin-bottom: 14px;
	text-shadow: none;
}

.prompt-featured-description {
	margin: 8px 0 16px;
	padding: 10px 12px;
	font-size: 15px;
	line-height: 1.5;
	color: #4a2f24;
	background: #f3dfcc;
	border: 1px solid #d8b89a;
	border-radius: 6px;
	text-shadow: none;
}

.prompt-categories-list {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin: 0;
	padding: 0;
}

.prompt-categories-list li {
	margin: 0;
}

.prompt-categories-list a {
	color: #5b3a2a;
	text-decoration: none;
	font-size: 14px;
	border-bottom: 1px solid transparent;
	transition: 0.2s;
}

.prompt-categories-list a:hover {
	color: #4a2f24;
	border-bottom-color: #b78966;
	text-decoration: none;
}

/* Страницы портретов (мужские / женские) */
.portraits-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	margin-top: 24px;
	align-items: start;
}

.portrait-card {
	display: flex;
	flex-direction: column;
	background: #f8efe6;
	border: 1px solid #d8b89a;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.portrait-card-image {
	background: #ead8c6;
	position: relative;
}

.portrait-card-image img {
	width: 100%;
	height: auto;
	display: block;
}

.portrait-card-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #8a644c;
	font-size: 14px;
}

.portrait-card-btn {
	flex-shrink: 0;
	display: block;
	width: 100%;
	padding: 14px 20px;
	margin: 0;
	font-family: 'Manrope', 'Exo 2', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #4a2f24;
	background: #f1dfcd;
	border: none;
	border-top: 1px solid #d8b89a;
	cursor: pointer;
	transition: 0.2s;
}

.portrait-card-btn:hover {
	background: #ebd2bb;
	color: #3b241a;
}

.portrait-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%) translateY(100px);
	max-width: 90%;
	padding: 14px 24px;
	background: #4a2f24;
	color: #f6d5b2;
	border: 1px solid rgba(255, 179, 92, 0.45);
	border-radius: 8px;
	font-size: 14px;
	opacity: 0;
	visibility: hidden;
	transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
	z-index: 100;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.portrait-toast.portrait-toast-visible {
	transform: translateX(-50%) translateY(0);
	opacity: 1;
	visibility: visible;
}

.portraits-empty {
	text-align: center;
	color: #f6d5b2;
	margin-top: 2rem;
}

.prompt-category {
	margin-top: 2rem;
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid rgba(255, 179, 92, 0.25);
	color: #b78966;
	text-shadow: 0 0 8px rgba(255, 179, 92, 0.12);
}

.prompts-section:first-of-type .prompt-category {
	margin-top: 0;
}

.prompts-tip {
	font-size: 15px;
	color: #f6d5b2;
	text-shadow: 0 0 10px rgba(255, 179, 92, 0.3);
	font-style: italic;
	max-width: 100%;
}

.btn-copy {
	display: inline-block;
	margin-top: 12px;
	padding: 8px 16px;
	font-size: 13px;
	font-family: 'Manrope', 'Exo 2', sans-serif;
	color: #4a2f24;
	background: #f1dfcd;
	border: 1px solid #c9a789;
	border-radius: 4px;
	cursor: pointer;
	transition: 0.2s;
}

.btn-copy:hover {
	background: #ebd2bb;
	color: #3b241a;
	border-color: #b78966;
}

.btn-copy.copied {
	color: #6e4a34;
	border-color: #a57553;
	background: #f3dfcc;
}

.page-header {
	margin-bottom: 16px;
}

.page-portraits .page-header {
	text-align: center;
}

.page-header + .section {
	margin-top: 12px;
}

.page-header h1 {
	margin-bottom: 0;
}

.page-header p {
	margin-top: 28px;
}

nav.links {
	margin-top: 32px;
}

nav.links a {
	display: inline-block;
	margin: 8px 12px;
	padding: 12px 24px;
	border: 1px solid #ffb35c;
	color: #ffb35c;
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 2px;
	transition: 0.3s;
}

nav.links a:hover {
	background: #ffb35c;
	color: #1b120d;
	box-shadow: 0 0 20px #ffb35c;
	text-decoration: none;
}

footer.site-footer {
	margin-top: auto;
	padding: 24px 20px;
	font-size: 14px;
	color: #a27f67;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

footer.site-footer a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
}

footer.site-footer a:hover {
	color: #ffb35c;
}

/* Адаптив под мобильные */
@media (max-width: 768px) {
	.container {
		padding: 16px;
	}

	h2 {
		font-size: 22px;
		letter-spacing: 2px;
		margin-bottom: 20px;
	}

	p {
		font-size: 16px;
		margin-top: 14px;
	}

	a.btn,
	button.btn {
		padding: 12px 24px;
		font-size: 14px;
		margin-top: 20px;
	}

	.section {
		margin: 28px 0;
	}

	.prompt-card {
		padding: 16px;
		margin: 16px 0;
	}

	.prompt-card h3 {
		font-size: 16px;
	}

	.prompt-card .prompt-text {
		font-size: 14px;
	}

	.prompts-section {
		margin-bottom: 1.5rem;
	}

	.prompt-category {
		margin-top: 1.5rem;
		font-size: 20px;
	}

	.prompts-tip {
		font-size: 14px;
	}

	.prompt-categories-nav {
		padding: 16px;
		margin-bottom: 1.5rem;
	}

	.prompt-featured-nav {
		padding: 16px;
		margin-bottom: 1rem;
	}

	.prompt-categories-list {
		flex-direction: column;
		gap: 6px;
	}

	.prompt-categories-list a {
		font-size: 14px;
	}

	.prompt-categories-featured {
		grid-template-columns: 1fr;
		gap: 30px;
		margin-bottom: 16px;
	}

	.prompt-featured-card {
		min-width: 0;
		width: 100%;
	}

	.prompt-featured-thumbs {
		flex-wrap: nowrap;
		gap: 6px;
	}

	.prompt-featured-thumb-link {
		flex: 0 0 auto;
		max-width: none;
		width: auto;
	}

	.prompt-featured-thumb {
		width: 109px;
		height: 109px;
		max-width: none;
	}

	.prompt-category-featured-link {
		padding: 18px 20px;
		font-size: 14px;
	}

	.portraits-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	nav.links a {
		display: block;
		margin: 8px 0;
	}
}

@media (max-width: 480px) {
	h2 {
		font-size: 18px;
	}

	.prompt-category {
		font-size: 18px;
		margin-top: 1.25rem;
	}

	.prompt-card {
		padding: 14px;
		margin: 14px 0;
	}

	.btn-copy {
		padding: 10px 18px;
		font-size: 14px;
	}

	.qr-block .qr-image {
		width: 180px;
		padding: 12px;
	}

	.qr-block .qr-caption {
		font-size: 14px;
	}
}

/* Страницы ошибок Apache (.shtml) — тёплая палитра сайта, крупный код */
body.error-page {
	min-height: 100vh;
}

.error-page .container {
	justify-content: center;
	align-items: center;
	flex: 1;
	max-width: 640px;
	margin: 0 auto;
}

.error-page .page-header {
	margin-bottom: 0;
	text-align: center;
}

.error-page .page-header h1 {
	font-size: clamp(64px, 16vw, 120px);
	letter-spacing: clamp(2px, 0.8vw, 8px);
	line-height: 1.05;
}

.error-page .page-header p {
	margin-top: 16px;
}

.error-page .btn {
	margin-top: 28px;
}

/* Страница помощи: Kling Motion Control */
body.page-help-kling {
	justify-content: flex-start;
	align-items: stretch;
}

body.page-help-kling .container {
	max-width: 720px;
	margin-left: auto;
	margin-right: auto;
}

body.page-help-kling .page-header {
	text-align: center;
}

body.page-help-kling .help-doc {
	text-align: left;
	background: #f8efe6;
	border: 1px solid #d8b89a;
	border-radius: 10px;
	padding: 20px 22px;
}

body.page-help-kling .help-doc h2 {
	margin-top: 32px;
	text-align: left;
	color: #5b3a2a;
	text-shadow: none;
	letter-spacing: 1px;
	font-size: 16px;
	line-height: 1.5;
}

body.page-help-kling .help-doc h2:first-child {
	margin-top: 0;
}

body.page-help-kling .help-doc p,
body.page-help-kling .help-doc li {
	text-align: left;
	color: #5b3a2a;
	text-shadow: none;
	font-size: 15px;
	line-height: 1.6;
}

body.page-help-kling .help-doc > p {
	margin: 0 0 1.2em 0;
}

body.page-help-kling .help-doc > p:last-child {
	margin-bottom: 0;
}

body.page-help-kling .help-doc .help-doc-stack {
	margin: 0 0 1.2em 0;
}

body.page-help-kling .help-doc .help-doc-stack p {
	margin: 0 0 0.35em 0;
}

body.page-help-kling .help-doc .help-doc-stack p:last-child {
	margin-bottom: 0;
}

body.page-help-kling .help-doc ul {
	margin: 12px 0 0 1.25em;
	padding: 0;
	color: #5b3a2a;
}

body.page-help-kling .help-doc ul.help-list-plain {
	list-style: none;
	margin-left: 0;
	padding-left: 0;
}

body.page-help-kling .help-doc ol {
	margin: 12px 0 0 1.25em;
	padding: 0;
	color: #5b3a2a;
}

body.page-help-kling .help-doc li {
	margin-top: 10px;
	line-height: 1.6;
}

body.page-help-kling .help-doc strong {
	color: #5b3a2a;
	text-shadow: none;
}

body.page-help-kling .help-note {
	margin-top: 16px;
	padding: 14px 16px;
	border: 1px solid #d8b89a;
	border-radius: 8px;
	background: #f4e2d5;
	color: #5b3a2a;
	text-shadow: none;
}

body.page-help-kling .help-note p,
body.page-help-kling .help-note li,
body.page-help-kling .help-note strong,
body.page-help-kling .help-note span {
	color: #5b3a2a;
	text-shadow: none;
}

body.page-help-kling .help-note p,
body.page-help-kling .help-note li {
	font-size: 15px;
	line-height: 1.6;
}

body.page-help-kling .help-actions {
	text-align: center;
	margin-top: 28px;
}
