.font-fantasy {
	font-family: 'Cinzel', 'EB Garamond', serif;
}

.rpg-card-border {
	border: 1px solid rgba(229, 179, 66, 0.28);
	background: linear-gradient(180deg, rgba(19, 22, 32, 0.85) 0%, rgba(10, 12, 17, 0.95) 100%);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), inset 0 0 20px rgba(229, 179, 66, 0.04);
	backdrop-filter: blur(12px);
}

.rpg-card-border:hover {
	border-color: rgba(246, 192, 66, 0.55);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85), inset 0 0 25px rgba(246, 192, 66, 0.08);
}

.btn-gold-metallic {
	background: linear-gradient(180deg, #f0c35e 0%, #c9932d 48%, #9e6d18 100%);
	border: 1px solid #ffe394;
	color: #1a1205;
	font-weight: 700;
	text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
	box-shadow: 0 4px 18px rgba(207, 152, 41, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.5);
	transition: all 0.25s ease;
}

.btn-gold-metallic:hover {
	background: linear-gradient(180deg, #ffdf85 0%, #dc9f30 48%, #ba7f1d 100%);
	box-shadow: 0 0 25px rgba(246, 192, 66, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7);
	transform: translateY(-2px);
}

.btn-dark-metallic {
	background: linear-gradient(180deg, rgba(26, 30, 43, 0.85) 0%, rgba(13, 15, 22, 0.95) 100%);
	border: 1px solid rgba(229, 179, 66, 0.45);
	color: #dfaf47;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: all 0.25s ease;
}

.btn-dark-metallic:hover {
	border-color: #f6c042;
	background: linear-gradient(180deg, rgba(38, 44, 64, 0.95) 0%, rgba(20, 24, 36, 0.98) 100%);
	color: #ffe394;
	transform: translateY(-2px);
	box-shadow: 0 0 20px rgba(246, 192, 66, 0.25);
}

.ember-halo {
	background: radial-gradient(circle at 50% 40%, rgba(217, 119, 6, 0.22) 0%, rgba(14, 16, 23, 0) 75%);
}

.pixelated {
	image-rendering: pixelated;
}

.filigree-line {
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.6) 50%, transparent 100%);
}

.hero-bg video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	pointer-events: none;
}

.hero-fade {
	background: linear-gradient(
		to bottom,
		rgba(7, 8, 12, 0.55) 0%,
		rgba(7, 8, 12, 0.15) 22%,
		rgba(7, 8, 12, 0.08) 42%,
		rgba(7, 8, 12, 0.45) 62%,
		rgba(7, 8, 12, 0.85) 80%,
		#07080c 92%,
		#07080c 100%
	);
}

.gameplay-stage {
	background:
		radial-gradient(circle at 50% 42%, rgba(207, 152, 41, 0.12) 0%, transparent 52%),
		linear-gradient(180deg, #0a0c12 0%, #050609 100%);
}

.account-menu:hover .account-panel,
.account-menu:focus-within .account-panel,
.account-menu.is-open .account-panel {
	visibility: visible;
	opacity: 1;
}

.account-menu:hover .account-chevron,
.account-menu:focus-within .account-chevron,
.account-menu.is-open .account-chevron {
	transform: rotate(180deg);
}

.portal-input {
	background-color: #0e1017 !important;
	border: 1px solid rgba(229, 179, 66, 0.28) !important;
	color: #d1d5db !important;
	box-shadow: none !important;
}

.portal-input::placeholder {
	color: #9ca3af;
}

.portal-input:focus {
	border-color: #e5b342 !important;
	outline: none;
	box-shadow: 0 0 0 1px rgba(229, 179, 66, 0.25) !important;
}

.ash-shell {
	width: min(440px, 92vw);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ash-brand {
	display: block;
	width: min(380px, 86vw);
	height: auto;
	margin: 0 0 22px;
	filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.65));
}

.ash-panel {
	width: 100%;
	padding: 22px 22px 20px;
	border: 1px solid #8a7030;
	background: linear-gradient(180deg, rgba(28, 36, 52, 0.92), rgba(12, 16, 26, 0.96));
	box-shadow:
		inset 0 1px 0 rgba(240, 208, 96, 0.12),
		inset 0 0 0 1px rgba(58, 80, 120, 0.25),
		0 18px 48px rgba(0, 0, 0, 0.55);
}

.ash-tabs {
	display: flex;
	margin: -4px 0 18px;
	border-bottom: 1px solid #5a4820;
}

.ash-tab,
.ash-btn,
.ash-btn-ghost {
	text-decoration: none;
	cursor: pointer;
	box-sizing: border-box;
}

.ash-tab {
	flex: 1;
	padding: 10px 8px;
	font-family: Cinzel, Georgia, serif;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-align: center;
	color: #8a7a58;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}

.ash-tab:hover {
	color: #d0c090;
}

.ash-tab.is-on {
	color: #f0d060;
	border-bottom-color: #f0d060;
}

.ash-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 12px;
}

.ash-field label {
	font-family: Cinzel, Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #9a8860;
}

.ash-input {
	width: 100%;
	padding: 11px 12px !important;
	font-family: 'Cormorant Garamond', Georgia, serif !important;
	font-size: 17px !important;
	color: #f2ead8 !important;
	background: rgba(8, 12, 20, 0.85) !important;
	border: 1px solid #6a5520 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none;
}

.ash-input::placeholder {
	color: #6a6050;
}

.ash-input:focus {
	border-color: #e0c050 !important;
	box-shadow: 0 0 0 1px rgba(224, 192, 80, 0.25) !important;
}

.ash-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px 16px;
	font-family: Cinzel, Georgia, serif;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #1a1208;
	border: 1px solid #e0c050;
	border-radius: 0;
	background: linear-gradient(180deg, #e8c860, #b88828);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.35);
}

.ash-btn:hover {
	filter: brightness(1.08);
}

.ash-btn-ghost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 10px;
	padding: 12px 16px;
	font-family: Cinzel, Georgia, serif;
	font-size: 13px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #c9b878;
	background: transparent;
	border: 1px solid #6a5520;
	border-radius: 0;
}

.ash-btn-ghost:hover {
	border-color: #c9a227;
	color: #f0d060;
}

.ash-msg {
	min-height: 20px;
	margin-top: 10px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 15px;
	color: #e08070;
	text-align: center;
}

.ash-ok {
	min-height: 20px;
	margin-top: 10px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 15px;
	color: #a8c090;
	text-align: center;
}

.ash-banner {
	margin-bottom: 14px;
	padding: 10px 12px;
	border: 1px solid #a04040;
	background: rgba(60, 18, 18, 0.9);
	color: #ffb0b0;
	font-size: 14px;
	line-height: 1.35;
}

.ash-head {
	font-family: Cinzel, Georgia, serif;
	font-size: 14px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #f0d060;
	margin: 0 0 14px;
	text-align: center;
}

.ash-foot {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 28px;
	width: 100%;
}

.ash-foot::before,
.ash-foot::after {
	content: '';
	flex: 1 1 auto;
	height: 1px;
	max-width: 120px;
	background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.55), transparent);
}

.ash-foot a {
	font-family: Cinzel, Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #c9b878;
	text-decoration: none;
}

.ash-foot a:hover {
	color: #f0d060;
}

.ash-foot-sep {
	color: #6a6048;
	font-size: 11px;
	margin: 0 10px;
}

.ash-reset {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 0;
	border: 0;
	background: none;
	font-family: Cinzel, Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #c9b878;
	text-align: center;
	cursor: pointer;
}

.ash-reset:hover {
	color: #f0d060;
}

.reset-modal-panel.ash-panel {
	position: relative;
}

.reset-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 80;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
}

.reset-modal.is-open {
	display: flex;
}

.reset-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(7, 8, 12, 0.78);
	backdrop-filter: blur(6px);
}

.reset-modal-panel {
	position: relative;
}

.portal-veil {
	position: absolute;
	inset: 0;
	background: rgba(7, 8, 12, 0.42);
	pointer-events: none;
}

.portal-stage {
	width: 100%;
	max-width: 1100px;
}

.portal-frame {
	display: flex;
	align-items: stretch;
	min-height: 540px;
	border: 1px solid #8a7030;
	background: linear-gradient(180deg, rgba(22, 28, 40, 0.94), rgba(10, 13, 20, 0.97));
	box-shadow:
		inset 0 1px 0 rgba(240, 208, 96, 0.12),
		inset 0 0 0 1px rgba(58, 80, 120, 0.22),
		0 22px 56px rgba(0, 0, 0, 0.58);
}

.portal-nav {
	display: flex;
	flex-direction: column;
	flex: 0 0 236px;
	width: 236px;
	background:
		linear-gradient(180deg, rgba(16, 20, 30, 0.96), rgba(8, 10, 16, 0.98));
	border-right: 1px solid #6a5520;
}

.portal-nav-top {
	padding: 18px 18px 16px;
	border-bottom: 1px solid #5a4820;
}

.portal-nav-kicker {
	margin: 0 0 6px;
	font-family: Cinzel, Georgia, serif;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #9a8860;
}

.portal-nav-who {
	margin: 0;
	font-family: Cinzel, Georgia, serif;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f0d060;
	word-break: break-word;
}

.portal-nav-list {
	flex: 1 1 auto;
	padding: 10px 10px 16px;
}

.portal-nav-label {
	margin: 14px 10px 6px;
	font-family: Cinzel, Georgia, serif;
	font-size: 10px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #7a6a48;
}

.portal-nav-label:first-child {
	margin-top: 4px;
}

.portal-nav a {
	display: block;
	padding: 9px 12px 9px 14px;
	margin-bottom: 2px;
	font-family: Cinzel, Georgia, serif;
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: #c9b878;
	border-left: 2px solid transparent;
}

.portal-nav a:hover {
	color: #f0d060;
	background: rgba(240, 208, 96, 0.06);
}

.portal-nav a.is-on {
	color: #f0d060;
	background: rgba(240, 208, 96, 0.1);
	border-left-color: #f0d060;
}

.portal-nav-foot {
	padding: 10px;
	border-top: 1px solid #5a4820;
}

.portal-nav-foot a {
	color: #b89870;
}

.portal-nav-foot a:hover {
	color: #e08070;
	background: rgba(160, 48, 40, 0.12);
}

.portal-main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.portal-head {
	padding: 18px 26px 16px;
	border-bottom: 1px solid #5a4820;
	background: linear-gradient(180deg, rgba(40, 48, 64, 0.35), transparent);
}

.portal-head h1 {
	margin: 0;
	font-family: Cinzel, Georgia, serif;
	font-size: 16px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #f0d060;
}

.portal-sub {
	margin: 6px 0 0;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 17px;
	color: #c9b878;
}

.portal-body {
	flex: 1 1 auto;
	padding: 22px 26px 26px;
}

.ash-head-left {
	text-align: left;
}

.ash-btn-fit {
	width: auto;
	padding-left: 22px;
	padding-right: 22px;
	margin-top: 8px;
}

.portal-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin: 0 0 22px;
}

.portal-stat {
	padding: 14px 16px;
	border: 1px solid #5a4820;
	background: rgba(8, 12, 20, 0.45);
}

.portal-stat span {
	display: block;
	font-family: Cinzel, Georgia, serif;
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #9a8860;
}

.portal-stat strong {
	display: block;
	margin-top: 6px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 20px;
	font-weight: 500;
	color: #f2ead8;
}

.portal-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.portal-actions .ash-btn,
.portal-actions .ash-btn-ghost {
	width: auto;
	margin-top: 0;
	padding-left: 22px;
	padding-right: 22px;
}

.portal-form {
	max-width: 420px;
}

.portal-note,
.portal-empty {
	margin: 0 0 14px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 17px;
	color: #c9b878;
}

.portal-chars {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0 0 18px;
}

.portal-char {
	display: grid;
	grid-template-columns: minmax(140px, 1.4fr) 70px 110px;
	gap: 12px;
	align-items: center;
	padding: 12px 14px;
	border: 1px solid #5a4820;
	background: rgba(8, 12, 20, 0.45);
}

.portal-char-name {
	font-family: Cinzel, Georgia, serif;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f0d060;
}

.portal-char-meta {
	margin-top: 3px;
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 15px;
	color: #c9b878;
	white-space: nowrap;
}

.portal-char-stat {
	font-family: 'Cormorant Garamond', Georgia, serif;
	font-size: 16px;
	color: #f2ead8;
	text-align: right;
	white-space: nowrap;
}

.portal-char.is-empty {
	display: block;
	opacity: 0.55;
	border-style: dashed;
}

.portal-char.is-empty .portal-char-name {
	color: #9a8860;
}

@media (max-width: 860px) {
	.portal-frame {
		flex-direction: column;
		min-height: 0;
	}

	.portal-nav {
		flex: 1 1 auto;
		width: 100%;
		border-right: 0;
		border-bottom: 1px solid #6a5520;
	}

	.portal-nav-foot {
		border-top: 1px solid #5a4820;
	}

	.portal-stats {
		grid-template-columns: 1fr;
	}

	.portal-char {
		grid-template-columns: 1fr 1fr;
	}

	.portal-char-stat {
		text-align: left;
	}
}
