/* HOW TO page — Doctorwow */

.howto-page {
	--howto-gold: #d4a84b;
	--howto-gold-soft: rgba(212, 168, 75, 0.18);
	--howto-text: #c9c0b4;
	--howto-muted: #8f8578;
	--howto-panel: rgba(18, 16, 14, 0.72);
	--howto-line: rgba(212, 168, 75, 0.22);
	max-width: 920px;
	margin: 0 auto;
	padding: 8px 12px 40px;
	text-align: start;
}

.howto-page__hero {
	text-align: center;
	padding: 12px 8px 28px;
	margin-bottom: 8px;
	background:
		radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 168, 75, 0.12), transparent 70%),
		linear-gradient(180deg, rgba(0, 0, 0, 0.25), transparent);
	border-radius: 12px;
}

.howto-page__title {
	margin: 0 0 10px;
	font-family: Vazirmatn, "Segoe UI", Tahoma, sans-serif;
	font-size: clamp(1.75rem, 4vw, 2.35rem);
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--howto-gold);
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.howto-page__lead {
	margin: 0 auto;
	max-width: 36em;
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 0.98rem;
	line-height: 1.7;
	color: var(--howto-muted);
}

.howto-page__hint {
	margin: 18px 0 0;
	font-size: 0.88rem;
	color: #a89c8c;
}

.howto-accordion {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.howto-item {
	border: 1px solid var(--howto-line);
	border-radius: 10px;
	background: var(--howto-panel);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.howto-item.is-open {
	border-color: rgba(212, 168, 75, 0.45);
	box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(212, 168, 75, 0.08);
}

.howto-item__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 20px;
	margin: 0;
	border: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.12));
	color: #e8dfd2;
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 1.02rem;
	font-weight: 600;
	text-align: start;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.howto-item__head:hover,
.howto-item__head:focus-visible {
	background: linear-gradient(180deg, rgba(212, 168, 75, 0.12), rgba(0, 0, 0, 0.15));
	color: #f3e7d0;
	outline: none;
}

.howto-item__head-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.howto-item__title {
	line-height: 1.35;
}

.howto-item__subtitle {
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--howto-muted);
	direction: ltr;
	unicode-bidi: isolate;
}

.howto-item__icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(212, 168, 75, 0.35);
	background: var(--howto-gold-soft);
	position: relative;
	transition: transform 0.25s ease, background 0.2s ease;
}

.howto-item__icon::before,
.howto-item__icon::after {
	content: "";
	position: absolute;
	inset: 50% auto auto 50%;
	width: 12px;
	height: 2px;
	background: var(--howto-gold);
	transform: translate(-50%, -50%);
	border-radius: 1px;
}

.howto-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.howto-item.is-open .howto-item__icon {
	background: rgba(212, 168, 75, 0.28);
}

.howto-item.is-open .howto-item__icon::after {
	opacity: 0;
	transform: translate(-50%, -50%) rotate(0deg);
}

.howto-item__body {
	display: none;
	padding: 4px 20px 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.howto-item.is-open .howto-item__body {
	display: block;
	animation: howto-reveal 0.28s ease;
}

@keyframes howto-reveal {
	from { opacity: 0; transform: translateY(-6px); }
	to { opacity: 1; transform: translateY(0); }
}

.howto-item__intro {
	margin: 14px 0 16px;
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 0.95rem;
	line-height: 1.75;
	color: var(--howto-text);
}

.howto-item__intro-en {
	margin: -8px 0 18px;
	font-size: 0.82rem;
	line-height: 1.55;
	color: var(--howto-muted);
	direction: ltr;
	text-align: left;
	unicode-bidi: isolate;
}

.howto-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: howto-step;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.howto-steps > li {
	counter-increment: howto-step;
	position: relative;
	padding: 14px 14px 14px 48px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid rgba(255, 255, 255, 0.04);
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 0.94rem;
	line-height: 1.85;
	line-height: 1.65;
	color: var(--howto-text);
}

html[dir="rtl"] .howto-steps > li {
	padding: 12px 48px 12px 14px;
}

.howto-steps > li::before {
	content: counter(howto-step);
	position: absolute;
	top: 12px;
	inset-inline-start: 12px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.78rem;
	font-weight: 700;
	color: #1a150e;
	background: var(--howto-gold);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.howto-steps a,
.howto-prose a {
	color: var(--howto-gold);
	text-decoration: none;
	border-bottom: 1px solid rgba(212, 168, 75, 0.35);
	transition: color 0.15s ease, border-color 0.15s ease;
}

.howto-steps a:hover,
.howto-prose a:hover {
	color: #f0c56a;
	border-bottom-color: #f0c56a;
}

.howto-code {
	display: inline-block;
	margin: 2px 0;
	padding: 3px 8px;
	border-radius: 4px;
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: 0.85em;
	color: #f3e7d0;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(212, 168, 75, 0.25);
	direction: ltr;
	unicode-bidi: isolate;
}

.howto-note {
	margin: 16px 0 0;
	padding: 12px 14px;
	border-radius: 8px;
	border-inline-start: 3px solid var(--howto-gold);
	background: var(--howto-gold-soft);
	font-size: 0.88rem;
	line-height: 1.6;
	color: #d9cfc0;
}

.howto-video {
	margin: 0 0 18px;
}

.howto-video__frame {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	height: 0;
	overflow: hidden;
	border-radius: 10px;
	background: #0a0908;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(212, 168, 75, 0.2);
}

.howto-video__frame iframe,
.howto-video__frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.howto-video__frame--native {
	padding-bottom: 0;
	height: auto;
	aspect-ratio: 16 / 9;
}

.howto-video__frame--native video {
	position: static;
	width: 100%;
	height: 100%;
	object-fit: contain;
	background: #000;
}

.howto-coins {
	display: grid;
	gap: 18px;
	margin-top: 8px;
}

@media (min-width: 720px) {
	.howto-coins {
		grid-template-columns: 1fr 1fr;
		gap: 16px;
	}
}

.howto-coin-card {
	padding: 16px 16px 14px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 255, 255, 0.05);
}

.howto-coin-card--gold {
	border-color: rgba(212, 168, 75, 0.28);
}

.howto-coin-card--silver {
	border-color: rgba(180, 190, 200, 0.22);
}

.howto-coin-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 1.05rem;
	font-weight: 700;
}

.howto-coin-card--gold .howto-coin-card__title { color: #d4a84b; }
.howto-coin-card--silver .howto-coin-card__title { color: #c5c0b0; }

.howto-coin-card__icon {
	width: 22px;
	height: 22px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	flex: 0 0 auto;
}

.howto-coin-card--gold .howto-coin-card__icon {
	background-image: url(images/misc/g-coin.png);
}

.howto-coin-card--silver .howto-coin-card__icon {
	background-image: url(images/misc/s-coin.png);
}

.howto-coin-card__en {
	margin: -6px 0 12px;
	font-size: 0.78rem;
	color: var(--howto-muted);
	direction: ltr;
	text-align: left;
	unicode-bidi: isolate;
}

.howto-methods {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.howto-methods li {
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-size: 0.88rem;
	line-height: 1.65;
	color: var(--howto-text);
}

.howto-methods a {
	display: inline-block;
	margin-bottom: 2px;
	font-weight: 700;
	color: #e8dfd2;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.howto-methods a:hover {
	color: var(--howto-gold);
	border-bottom-color: var(--howto-gold);
}

.howto-methods .howto-methods__en {
	display: block;
	margin-top: 4px;
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--howto-muted);
	direction: ltr;
	text-align: left;
	unicode-bidi: isolate;
}

.howto-discord {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin: 8px 0 16px;
}

.howto-discord__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	border-radius: 8px;
	font-family: Vazirmatn, Tahoma, sans-serif;
	font-weight: 700;
	font-size: 0.95rem;
	color: #fff !important;
	background: #5865f2;
	border: 0 !important;
	text-decoration: none !important;
	box-shadow: 0 4px 14px rgba(88, 101, 242, 0.35);
	transition: transform 0.15s ease, background 0.15s ease;
}

.howto-discord__btn:hover {
	background: #4752c4;
	transform: translateY(-1px);
	color: #fff !important;
}

.howto-discord__widget {
	width: 100%;
	max-width: 350px;
	height: 400px;
	border: 0;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

/* Hide legacy HOW TO chrome when this page CSS is loaded */
.howto-page ~ .how-to-top-info,
.content_holder:has(.howto-page) .sub-page-title {
	/* title replaced by hero */
}

.content_holder:has(.howto-page) > .sub-page-title {
	display: none;
}

@media (max-width: 640px) {
	.howto-page {
		padding: 4px 4px 28px;
	}

	.howto-item__head {
		padding: 14px 14px;
		font-size: 0.95rem;
	}

	.howto-item__body {
		padding: 4px 14px 18px;
	}

	.howto-item__subtitle {
		display: none;
	}
}
