/* Hero, section shells, buttons, and intro layouts */

.hero-section,
.feature-banner,
.cta-section {
	position: relative;
	isolation: isolate;
	background-color: var(--color-bg-dark);
	background-image:
		linear-gradient(115deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.24) 55%, rgba(12, 16, 22, 0.76) 100%),
		var(--section-bg-image);
	background-position: center;
	background-size: cover;
}

.hero-section::before,
.feature-banner::before,
.cta-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(5, 7, 10, 0.22), rgba(5, 7, 10, 0.76)),
		radial-gradient(circle at top right, rgba(203, 165, 103, 0.22), transparent 28%);
	z-index: -1;
}

.hero-section::after,
.feature-banner::after,
.cta-section::after,
.content-shell-framed::after {
	content: "";
	position: absolute;
	inset: 1.1rem;
	border: 1px solid rgba(203, 165, 103, 0.28);
	border-radius: var(--radius-panel);
	pointer-events: none;
	opacity: 0.65;
}

.hero-section.has-hero-media {
	overflow: hidden;
	background-image: linear-gradient(115deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.24) 55%, rgba(12, 16, 22, 0.76) 100%);
}

.hero-section-media {
	position: absolute;
	inset: 0;
	z-index: -2;
	display: block;
	width: 100%;
	height: 100%;
}

.hero-section-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.hero-section-inner {
	max-width: min(100% - 2rem, var(--hero-content-max));
	margin: 0 auto;
	padding-top: 6rem;
	padding-bottom: 4rem;
}

.hero-section-row {
	min-height: 100vh;
}

@media (max-width: 767px) {
	.hero-section[style*="--section-bg-image-mobile"] {
		background-image:
			linear-gradient(115deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.24) 55%, rgba(12, 16, 22, 0.76) 100%),
			var(--section-bg-image-mobile);
	}
}

@media (min-width: 992px) {
	.home .hero-section,
	.universe-landing-page .hero-section {
		min-height: calc(100vh - var(--site-header-height));
	}

	.home .hero-section-inner,
	.universe-landing-page .hero-section-inner {
		display: flex;
		align-items: center;
		min-height: calc(100vh - var(--site-header-height));
		padding-top: 0;
		padding-bottom: 0;
	}

	.home .hero-section-row,
	.universe-landing-page .hero-section-row {
		flex: 1 1 auto;
		min-height: auto;
	}
}

.hero-content {
	max-width: 42rem;
	padding: clamp(1.6rem, 2vw, 2.3rem);
	border: 1px solid rgba(203, 165, 103, 0.16);
	border-radius: var(--radius-panel);
	background:
		linear-gradient(135deg, rgba(17, 22, 29, 0.88), rgba(17, 22, 29, 0.2)),
		radial-gradient(circle at top left, rgba(203, 165, 103, 0.08), transparent 32%);
	box-shadow: var(--shadow-panel);
}

.hero-divider {
	width: min(100%, 27rem);
	height: 1px;
	margin: 1.3rem 0 0;
	background: linear-gradient(90deg, rgba(203, 165, 103, 0.85), rgba(203, 165, 103, 0.15));
	position: relative;
}

.hero-divider::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: var(--color-gold);
	box-shadow: 0 0 0 0.25rem rgba(203, 165, 103, 0.1);
	transform: translateY(-50%);
}

.section-kicker {
	display: block;
	margin-bottom: 0.85rem;
	font-family: var(--font-title);
	font-size: 0.88rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-gold);
}

.hero-title,
.section-title {
	font-family: var(--font-title);
	font-weight: 700;
	line-height: 1.08;
	text-wrap: balance;
}

.hero-title {
	margin-bottom: 1rem;
	font-size: clamp(2.8rem, 5vw, 5rem);
	color: #f8ebd1;
	text-shadow: 0 5px 24px rgba(0, 0, 0, 0.45);
}

.hero-text,
.feature-banner-content p,
.cta-content p,
.section-intro {
	font-size: clamp(1.02rem, 1.5vw, 1.22rem);
	color: var(--color-text);
	max-width: 40rem;
}

.section-intro {
	margin: 1rem auto 0;
	color: var(--color-text-muted);
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 1.8rem;
}

.btn-fantasy {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 1.55rem;
	border-radius: 999px;
	font-family: var(--font-title);
	font-size: 0.95rem;
	letter-spacing: 0.05em;
	text-align: center;
	color: #fff6e2;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.btn-fantasy:hover,
.btn-fantasy:focus {
	transform: translateY(-1px);
	color: #ffffff;
	box-shadow: 0 15px 30px rgba(0, 0, 0, 0.34);
}

.btn-fantasy-red {
	background: linear-gradient(180deg, #9c3a25, var(--color-red-deep));
}

.btn-cdg-primary {
	background: linear-gradient(180deg, #9c3a25, var(--color-red-deep));
}

.btn-fantasy-ice {
	background: linear-gradient(180deg, #688fb5, var(--color-blue-ice-deep));
}

.btn-cdg-frost {
	background: linear-gradient(180deg, #688fb5, var(--color-blue-ice-deep));
}

.btn-fantasy-dark {
	background: linear-gradient(180deg, #3f4957, #1d232c);
}

.btn-cdg-gold {
	background: linear-gradient(180deg, #8b6b38, #4d3820);
}

.content-shell {
	position: relative;
	padding: clamp(3.75rem, 6vw, 5.5rem) 0;
}

.content-shell::before,
.content-shell::after {
	content: "";
	position: absolute;
	left: 50%;
	width: min(92vw, 1220px);
	transform: translateX(-50%);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(203, 165, 103, 0.78), transparent);
	opacity: 0.65;
}

.content-shell::before {
	top: 0;
}

.content-shell::after {
	bottom: 0;
}

.content-shell-framed::after {
	inset: 1.1rem;
	left: 1.1rem;
	width: auto;
	height: auto;
	transform: none;
	border: 1px solid rgba(203, 165, 103, 0.28);
	border-radius: var(--radius-panel);
	background: transparent;
	pointer-events: none;
	opacity: 0.65;
}

.content-shell-alt {
	background:
		linear-gradient(180deg, rgba(9, 12, 17, 0.62), rgba(14, 17, 24, 0.2)),
		radial-gradient(circle at top left, rgba(76, 117, 157, 0.07), transparent 22%);
}

.section-frame {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
	padding: clamp(1.9rem, 4vw, 3rem);
	border: 1px solid rgba(203, 165, 103, 0.16);
	border-radius: 28px;
	background:
		radial-gradient(circle at top, rgba(255, 255, 255, 0.02), transparent 28%),
		linear-gradient(180deg, rgba(25, 31, 39, 0.95), rgba(14, 18, 24, 0.98));
	box-shadow: 0 30px 60px rgba(0, 0, 0, 0.32);
}

.section-frame::after {
	content: "";
	position: absolute;
	left: 2rem;
	right: 2rem;
	top: 1.05rem;
	height: 2px;
	background:
		linear-gradient(90deg, transparent, rgba(203, 165, 103, 0.2) 10%, rgba(203, 165, 103, 0.8) 50%, rgba(203, 165, 103, 0.2) 90%, transparent);
	opacity: 0.7;
	pointer-events: none;
	z-index: 0;
}

.section-frame > * {
	position: relative;
	z-index: 1;
}

.section-heading {
	margin-bottom: 2.8rem;
}

.section-title {
	position: relative;
	display: inline-block;
	margin-bottom: 0;
	font-size: clamp(2.1rem, 4vw, 3.35rem);
	color: #f0debb;
}

.section-title::before,
.section-title::after {
	content: "";
	position: absolute;
	top: 50%;
	width: clamp(2.5rem, 5vw, 4.25rem);
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(203, 165, 103, 0.9), transparent);
}

.section-title::before {
	right: calc(100% + 1rem);
}

.section-title::after {
	left: calc(100% + 1rem);
}

.cdg-related-posts .section-heading .section-title::before,
.section-title.section-title-plain::before,
.section-title.section-title-plain::after {
	display: none;
}

.section-actions {
	margin-top: 2rem;
}

.gm-hub-page .section-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
	text-align: center;
}

.home-intro-visual {
	position: relative;
	overflow: hidden;
	min-height: clamp(28rem, 42vw, 44rem);
	border: 1px solid rgba(203, 165, 103, 0.2);
	border-radius: 8px;
	background:
		linear-gradient(90deg, rgba(5, 7, 10, 0.64), rgba(5, 7, 10, 0.28) 38%, rgba(5, 7, 10, 0.52)),
		linear-gradient(180deg, rgba(5, 7, 10, 0.12), rgba(5, 7, 10, 0.46)),
		var(--home-intro-image),
		linear-gradient(135deg, rgba(24, 31, 40, 0.96), rgba(12, 16, 22, 0.98));
	background-position: center;
	background-size: cover;
	box-shadow: 0 24px 44px rgba(0, 0, 0, 0.28);
}

.home-intro-visual::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid rgba(203, 165, 103, 0.18);
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
	pointer-events: none;
}

.home-intro-layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
	gap: clamp(1.4rem, 3vw, 3rem);
	align-items: center;
	min-height: inherit;
	padding: clamp(1.4rem, 4vw, 3rem);
}

.home-intro-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 100%;
	padding: clamp(1.25rem, 2vw, 1.7rem);
	border: 1px solid rgba(203, 165, 103, 0.22);
	border-radius: 8px;
	background:
		linear-gradient(180deg, rgba(255, 248, 226, 0.96), rgba(220, 199, 160, 0.92));
	box-shadow: 0 22px 42px rgba(0, 0, 0, 0.25);
	color: var(--color-ink);
}

.home-intro-copy p {
	margin: 0;
	font-size: clamp(0.94rem, 0.95vw, 1.02rem);
	line-height: 1.68;
}

.home-intro-copy p + p {
	margin-top: 0.85rem;
}

.home-intro-copy p:first-of-type {
	font-weight: 700;
}

.home-intro-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	justify-self: center;
	width: min(48rem, 100%);
	padding: clamp(1.65rem, 3vw, 2.5rem);
	border: 1px solid rgba(203, 165, 103, 0.22);
	border-radius: 18px;
	background:
		linear-gradient(180deg, rgba(12, 16, 22, 0.78), rgba(9, 12, 17, 0.68)),
		radial-gradient(circle at top, rgba(203, 165, 103, 0.08), transparent 32%);
	box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
	text-align: center;
}

.home-intro-cta-kicker {
	margin-bottom: 0.85rem;
	font-family: var(--font-title);
	font-size: 0.86rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--color-gold);
}

.home-intro-cta-title {
	max-width: 36rem;
	margin: 0 0 0.9rem;
	font-family: var(--font-title);
	font-size: clamp(2.15rem, 3.5vw, 3.4rem);
	font-weight: 700;
	line-height: 1.08;
	text-wrap: balance;
	color: #f8ebd1;
	text-shadow: 0 5px 24px rgba(0, 0, 0, 0.45);
}

.home-intro-cta-text {
	max-width: 34rem;
	margin: 0 0 1.25rem;
	color: rgba(240, 229, 207, 0.84);
	font-size: clamp(1rem, 1.2vw, 1.16rem);
	line-height: 1.7;
}

.rpgcb-promo .section-intro {
	max-width: 40rem;
	margin-bottom: 0;
}

.rpgcb-promo-features {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.rpgcb-promo-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.5rem 0.9rem;
	border: 1px solid rgba(203, 165, 103, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	font-family: var(--font-title);
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #f0debb;
}

.rpgcb-promo-panel {
	position: relative;
	min-height: 100%;
	overflow: hidden;
	border: 1px solid rgba(203, 165, 103, 0.18);
	border-radius: 22px;
	background:
		linear-gradient(145deg, rgba(9, 12, 17, 0.18), rgba(9, 12, 17, 0.68)),
		var(--rpgcb-image);
	background-position: center;
	background-size: cover;
	box-shadow: 0 24px 44px rgba(0, 0, 0, 0.22);
}

.rpgcb-promo-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(5, 7, 10, 0.14), rgba(5, 7, 10, 0.72)),
		radial-gradient(circle at top right, rgba(203, 165, 103, 0.18), transparent 30%);
	pointer-events: none;
}

.rpgcb-promo-panel-overlay {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 100%;
	padding: 1.6rem;
}

.rpgcb-promo-label {
	margin-bottom: 0.65rem;
	font-family: var(--font-title);
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(203, 165, 103, 0.86);
}

.rpgcb-promo-text {
	margin-bottom: 1.25rem;
	color: rgba(240, 233, 214, 0.88);
}

@media (min-width: 992px) {
	.rpgcb-promo .row {
		align-items: stretch !important;
	}

	.rpgcb-promo-copy,
	.rpgcb-promo-panel {
		height: 100%;
	}

	.rpgcb-promo-panel {
		min-height: 27rem;
	}
}

.universe-landing-page .content-shell:first-of-type .section-frame {
	padding-top: 1.6rem;
}

.universe-intro-body {
	max-width: 62rem;
	margin: 1rem auto 0;
	text-align: center;
}

.universe-hero-section .hero-content {
	max-width: 46rem;
}

.universe-feature-card,
.universe-promo-card {
	height: 100%;
}

.universe-feature-card-body,
.universe-promo-card-body {
	padding: 1.45rem;
}

.universe-feature-card-body p,
.universe-promo-card-body p {
	margin-bottom: 0;
	color: rgba(32, 23, 15, 0.84);
}

.universe-feature-card-tall .universe-feature-card-body,
.universe-promo-card .universe-promo-card-body {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	height: 100%;
}

.universe-promo-card-frost {
	background:
		radial-gradient(circle at top right, rgba(103, 152, 199, 0.24), transparent 26%),
		linear-gradient(180deg, rgba(234, 241, 248, 0.95), rgba(181, 198, 214, 0.92));
}

.universe-promo-card-frost .resource-title,
.universe-promo-card-frost p {
	color: #152334;
}

.parchment-card {
	position: relative;
	display: block;
	height: 100%;
	overflow: hidden;
	border: 1px solid rgba(115, 84, 46, 0.62);
	border-radius: var(--radius-card);
	background:
		radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.14), transparent 22%),
		linear-gradient(180deg, rgba(255, 244, 221, 0.98), rgba(205, 175, 125, 0.94));
	box-shadow: var(--shadow-soft);
	color: var(--color-ink);
	/* clip-path: polygon(2% 1%, 98% 0, 100% 7%, 99% 98%, 3% 100%, 0 94%, 0 5%); */
}

a.parchment-card {
	text-decoration: none;
}

a.parchment-card:hover,
a.parchment-card:focus {
	color: var(--color-ink);
}
