/* Registration wizard — same parchment/fonts as the portal article. */
.ds-reg {
	color: var(--ink, #381208);
	font-family: var(--font, Arial, Times, FreeSerif, serif);
	font-size: 13px;
	width: 100%;
	max-width: 520px;
	margin: 4px auto 8px;
	padding: 16px 16px 18px;
	box-sizing: border-box;
	background: linear-gradient(180deg, rgba(251, 245, 217, 0.92) 0%, rgba(232, 214, 168, 0.55) 100%);
	border: 1px solid #c4b089;
	box-shadow: 0 2px 0 rgba(255, 248, 220, 0.7) inset, 0 8px 20px rgba(40, 20, 8, 0.12);
}

.ds-reg *,
.ds-reg *::before,
.ds-reg *::after {
	box-sizing: border-box;
}

.article-body p.ds-reg-lead {
	margin: 0 0 12px;
	text-indent: 20px;
	text-align: justify;
	font-size: 13px;
	font-weight: normal;
	line-height: 1.4;
	color: var(--ink, #381208);
}

.ds-reg-steps {
	display: flex;
	gap: 0;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid rgba(122, 74, 18, 0.28);
}

.ds-reg-step {
	flex: 1;
	text-align: center;
	font-size: 12px;
	line-height: 1.2;
	padding: 6px 4px 8px;
	margin-bottom: -1px;
	border-bottom: 2px solid transparent;
	color: #5a3a22;
	cursor: default;
	user-select: none;
}

.ds-reg-step.is-active {
	color: var(--link, #71171f);
	border-bottom-color: var(--link, #71171f);
	font-weight: bold;
}

.ds-reg-step.is-done {
	color: #00472d;
	cursor: pointer;
}

.ds-reg-step.is-done:hover {
	color: var(--link, #71171f);
}

.ds-reg-hint {
	min-height: 1.35em;
	margin: 0 0 12px;
	padding: 0;
	font-size: 13px;
	font-weight: normal;
	line-height: 1.4;
	color: #5a3a18;
}

.ds-reg-error {
	display: none;
	margin: 0 0 12px;
	padding: 6px 8px;
	font-size: 13px;
	line-height: 1.35;
	background: rgba(113, 23, 31, 0.08);
	border: 1px solid rgba(113, 23, 31, 0.4);
	color: #71171f;
}

.ds-reg-error.is-visible {
	display: block;
}

.ds-reg-panel {
	display: none;
}

.ds-reg-panel.is-active {
	display: block;
}

.ds-reg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px 8px;
	justify-items: center;
	margin: 0 auto 8px;
	max-width: 320px;
}

.ds-reg button.ds-reg-card {
	width: 87px;
	padding: 0;
	margin: 0;
	border: 0 !important;
	background: transparent !important;
	cursor: pointer;
	text-align: center;
	color: inherit;
	font: inherit;
	box-shadow: none !important;
}

.ds-reg button.ds-reg-card:focus {
	outline: none;
}

.ds-reg .ds-reg-card-frame {
	display: block !important;
	box-sizing: content-box !important;
	width: 75px !important;
	height: 100px !important;
	margin: 0 auto 6px !important;
	padding: 0 !important;
	background: transparent !important;
	border: 4px solid #c4b089 !important;
	border-radius: 0;
	line-height: 0 !important;
	font-size: 0 !important;
	overflow: hidden;
}

.ds-reg button.ds-reg-card.is-selected .ds-reg-card-frame {
	border-color: #8b1e14 !important;
}

.ds-reg button.ds-reg-card.is-selected .ds-reg-card-name {
	color: #8b1e14;
}

.ds-reg .ds-reg-card-frame img {
	display: block !important;
	width: 75px !important;
	height: 100px !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	vertical-align: top;
	background: #2a3d38;
}

.ds-reg .ds-reg-card-name {
	display: block;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.2;
	color: var(--ink, #381208);
}

.ds-reg-desc {
	margin: 10px 0 0;
	min-height: 0;
	padding: 0;
	font-size: 13px;
	font-weight: normal;
	line-height: 1.4;
	color: var(--ink, #381208);
}

.ds-reg-desc:empty {
	display: none;
}

.ds-reg-links {
	margin: 10px 0 0;
	text-align: center;
	font-size: 13px;
}

.ds-reg-links a {
	margin: 0 8px;
	color: var(--link, #71171f);
}

.ds-reg-stats {
	display: grid;
	gap: 6px;
	max-width: 320px;
	margin: 0 auto 14px;
	padding: 8px 10px;
	border: 1px solid rgba(122, 74, 18, 0.28);
	border-left: 3px solid #9a6a2e;
	background: rgba(56, 18, 8, 0.03);
}

.ds-reg-stat {
	display: grid;
	grid-template-columns: 1fr auto auto auto;
	align-items: center;
	gap: 8px;
	font-size: 13px;
}

.ds-reg-stat.is-free {
	grid-template-columns: 1fr auto;
	padding-top: 6px;
	border-top: 1px solid rgba(122, 74, 18, 0.22);
	font-weight: bold;
}

.ds-reg-stat-val {
	min-width: 28px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.ds-reg-pm {
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid #9a7d50;
	background: #f3d7a4;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ds-reg-pm:hover:not(:disabled):not(.is-disabled) {
	background: #ffe09a;
	border-color: #7a4a12;
}

.ds-reg-pm:disabled,
.ds-reg-pm.is-disabled {
	opacity: 0.4;
	cursor: default;
}

.ds-reg-pm img {
	width: 12px;
	height: 12px;
	display: block;
	pointer-events: none;
}

.ds-reg-weapons {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 8px 0 0;
}

.ds-reg-weapon {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 58px;
	height: 58px;
	margin: 0;
	padding: 0;
	border: 4px solid #c4b089;
	background: #f3d7a4;
	cursor: pointer;
	line-height: 0;
	font-size: 0;
	overflow: hidden;
}

.ds-reg-weapon img {
	display: block;
	width: 50px;
	height: 50px;
}

.ds-reg-weapon:hover {
	border-color: #7a4a12;
}

.ds-reg-weapon.is-selected {
	border-color: #8b1e14;
	background: #f7e7c0;
}

.ds-reg-weapon.is-hidden {
	display: none;
}

.ds-reg-subtitle {
	margin: 14px 0 8px;
	padding: 0 0 4px;
	text-align: left;
	color: #7a4a12;
	font-size: 14px;
	font-weight: bold;
	line-height: 1.25;
	border-bottom: 1px solid rgba(122, 74, 18, 0.2);
}

.ds-reg-form {
	display: grid;
	gap: 8px;
	max-width: 420px;
	margin: 0 auto;
}

.ds-reg-field {
	display: grid;
	gap: 3px;
}

.ds-reg-field label {
	font-size: 13px;
	font-weight: bold;
	color: var(--ink, #381208);
}

.ds-reg-field input[type="text"],
.ds-reg-field input[type="password"],
.ds-reg-field input[type="email"] {
	width: 100%;
	padding: 4px 8px;
	border: 1px solid #9a7d50;
	background: #f3d7a4 !important;
	color: #381208 !important;
	-webkit-text-fill-color: #381208 !important;
	caret-color: #381208;
	font-family: var(--font, Arial, Times, FreeSerif, serif) !important;
	font-size: 13px !important;
	font-weight: normal !important;
	opacity: 1 !important;
}

.ds-reg-field input::placeholder {
	color: #86644b !important;
	-webkit-text-fill-color: #86644b !important;
	opacity: 1;
}

.ds-reg-field input:focus {
	outline: none;
	border-color: #7a4a12;
	background: #ffe9b8 !important;
}

.ds-reg-field input#dsRegRefcode {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-family: Consolas, "Courier New", monospace !important;
}

.ds-reg-eula {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-top: 4px;
	font-size: 13px;
	font-weight: normal;
	line-height: 1.35;
}

.ds-reg-eula input {
	margin-top: 2px;
	width: 14px;
	height: 14px;
}

.ds-reg-actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	flex-wrap: wrap;
}

.ds-reg-btn {
	appearance: none;
	padding: 5px 18px;
	border: 1px solid #7a4a12;
	border-bottom-color: #5a3a18;
	background: linear-gradient(180deg, #f8d48a 0%, #e4b97a 55%, #d4a86a 100%);
	color: #381208;
	font: inherit;
	font-size: 13px;
	font-weight: bold;
	letter-spacing: 0.02em;
	min-width: 110px;
	cursor: pointer;
	box-shadow:
		inset 0 1px 0 rgba(255, 248, 220, 0.55),
		0 1px 2px rgba(56, 18, 8, 0.28);
}

.ds-reg-btn:hover {
	background: linear-gradient(180deg, #ffe09a 0%, #f0c878 50%, #e4b97a 100%);
	border-color: #9a6a2e;
}

.ds-reg-btn:active {
	background: linear-gradient(180deg, #d4a86a 0%, #e4b97a 100%);
	box-shadow: inset 0 1px 3px rgba(56, 18, 8, 0.35);
}

.ds-reg-btn.is-primary {
	min-width: 140px;
}

.ds-reg-btn.is-ghost {
	background: #f3d7a4;
	box-shadow: none;
}

.ds-reg-btn:disabled {
	opacity: 0.55;
	cursor: default;
}

.ds-reg-rec {
	display: block;
	margin: 0 auto 12px;
	font-size: 13px;
}

.ds-reg-complete {
	text-align: center;
}

.article-body p.ds-reg-complete-thanks,
.article-body p.ds-reg-complete-lead,
.article-body p.ds-reg-complete-hint,
.article-body p.ds-reg-complete-alt,
.article-body p.ds-reg-complete-home {
	margin: 0 0 10px;
	padding: 0;
	text-indent: 0;
	text-align: center;
}

.article-body p.ds-reg-complete-thanks {
	margin-bottom: 12px;
	font-size: 15px;
	font-weight: bold;
	color: var(--link, #71171f);
}

.article-body p.ds-reg-complete-lead {
	font-size: 14px;
}

.ds-reg-complete-lead b {
	color: var(--link, #71171f);
}

.article-body p.ds-reg-complete-hint {
	margin-bottom: 4px;
	color: #5a3a18;
}

.ds-reg-complete-cta {
	margin: 16px 0 14px;
}

.article-body p.ds-reg-complete-alt {
	margin-bottom: 8px;
	font-size: 12px;
	color: #5a3a18;
}

.article-body p.ds-reg-complete-home {
	margin-bottom: 0;
}

@media (max-width: 540px) {
	.ds-reg {
		padding: 12px 10px 16px;
	}

	.ds-reg-grid {
		max-width: 100%;
		gap: 8px;
	}

	.ds-reg-step {
		font-size: 11px;
		padding: 6px 2px 8px;
	}
}
