/* ─── Base ────────────────────────────────────────────────────────── */

html {
	scroll-behavior: smooth;
}

body {
	overflow-x: hidden;
}

/* ─── Background Layer ───────────────────────────────────────────── */

#bg-layer {
	position: fixed;
	inset: 0;
	z-index: 0;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	transition: opacity 0.5s ease;
}

#bg-layer::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
}

/* ─── Frosted Card ───────────────────────────────────────────────── */

.frosted-card {
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-radius: 1rem;
	position: relative;
}

.frosted-card hr {
	margin-left: -2rem;
	margin-right: -2rem;
}

@media (min-width: 768px) {
	.frosted-card hr {
		margin-left: -2.5rem;
		margin-right: -2.5rem;
	}
}

/* ─── Landing Decorative Vectors ─────────────────────────────────── */

.landing-wrapper {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (min-width: 1024px) {
	.landing-wrapper {
		margin-left: -120px;
		margin-right: -120px;
		padding-left: 120px;
		padding-right: 120px;
	}
}

/* ─── Overlay Layer (decorative SVGs managed by Renderer) ───────── */

#overlay-layer {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	overflow: hidden;
}

.overlay-vector {
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	/* viewBox 1622.5 × 1056.61 → aspect ratio 1.5355 */
	height: calc(100vw / 1.5355);
	opacity: 1;
}

@media (min-width: 768px) {
	.overlay-vector {
		top: 0;
		bottom: auto;
		left: 50%;
		transform: translateX(-50%);
		height: 100%;
		width: calc(100vh * 1.5355);
		min-width: calc(100vh * 1.5355);
	}
}

.overlay-circles {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 1790px;
	height: 1790px;
}

.overlay-lines {
	display: none;
}

@media (min-width: 768px) {
	.overlay-lines {
		display: block;
		position: absolute;
		left: 0;
		top: 0;
		height: 100%;
		width: auto;
		opacity: 0.5;
	}
}

/* ─── Typography ─────────────────────────────────────────────────── */

.font-display {
	font-family: 'Cormorant', serif;
}

.font-body {
	font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
}

/* ─── Content Container ─────────────────────────────────────────── */

#content {
	position: relative;
	z-index: 10;
	transition: opacity 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

@media (min-width: 1024px) {
	#content {
		padding-left: 120px;
		padding-right: 120px;
	}
}

#content.fade-out {
	opacity: 0;
}

/* ─── Buttons ────────────────────────────────────────────────────── */

.btn-primary {
	display: inline-block;
	background-color: #1F628D;
	color: #fff;
	font-weight: 600;
	letter-spacing: 0.05em;
	padding: 0.75rem 1rem;
	font-size: 0.875rem;
	border-radius: 4px;
	transition: background-color 0.2s ease, transform 0.15s ease;
	cursor: pointer;
	border: none;
}

.btn-primary:hover {
	background-color: #174b6d;
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
}

.btn-outline {
	display: inline-block;
	border: 2px solid #1F628D;
	color: #1F628D;
	font-weight: 600;
	letter-spacing: 0.05em;
	padding: 0.625rem 1.75rem;
	font-size: 0.875rem;
	border-radius: 4px;
	background: transparent;
	transition: all 0.2s ease;
	cursor: pointer;
}

.btn-outline:hover {
	background-color: #1F628D;
	color: #fff;
}

/* ─── Challenge Select Cards ─────────────────────────────────────── */

.challenge-card {
	background-color: rgba(255, 255, 255, 0.9);
	background-size: 125%;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: 0 4px 14.4px -4px rgba(0, 0, 0, 0.10);
	backdrop-filter: blur(8px);
	border-radius: 1.5rem;
	padding: 2.4rem;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	position: relative;
	overflow: hidden;
	text-align: left;
}

.challenge-card::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 0%, #FFF 60%);
	pointer-events: none;
}

@media (max-width: 767px) {
	.challenge-card::after {
		background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 30%, #FFF 60%);
	}
}

.challenge-card:hover:not(.locked) {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.challenge-card.locked {
	cursor: default;
	background-image: none;
	background: linear-gradient(270deg, rgba(255, 255, 255, 0.00) 51.31%, #FFF 70%), linear-gradient(0deg, #C6C6C6 0%, #C6C6C6 100%), lightgray 50% / cover no-repeat;
}

.challenge-card.locked::after {
	display: none;
}

.challenge-card.locked .challenge-card__title {
	opacity: 0.4;
}

.challenge-card__label {
	position: relative;
	z-index: 1;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	margin-bottom: 0.25rem;
}

.challenge-card__title {
	position: relative;
	z-index: 1;
	font-family: 'Cormorant', serif;
	font-weight: 400;
	color: #000104;
	line-height: 1.1;
}

.challenge-card__lock {
	position: absolute;
	z-index: 1;
	bottom: 0;
	left: 0;
	right: 0;
	font-weight: 600;
	color: #fff;
	padding: 0.5rem 2rem;
}

/* ─── Activity Select Tiles ──────────────────────────────────────── */

.activity-tile-wrapper {
	position: relative;
}

.activity-tile {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 1rem;
	padding: 5rem 4rem 3rem;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1.5rem;
	min-height: 200px;
	text-align: center;
	border: none;
	width: 100%;
	height: 100%;
}

.activity-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.activity-tile__title {
	font-size: 1.375rem;
	font-weight: 700;
	color: #000104;
	line-height: 1.3;
}

.activity-tile__icon {
	margin-top: auto;
}

/* ─── Activity Tile: Horizontal (2×2 grid) ───────────────────────── */

.activity-tile--horizontal {
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	text-align: left;
	gap: 2rem;
	min-height: auto;
	padding: 1.5rem;
}

.activity-tile--horizontal .activity-tile__title {
	flex: 1;
	max-width: 11em;
}

.activity-tile--horizontal .activity-tile__icon {
	margin-top: 0;
	flex-shrink: 0;
}

@media screen and (max-width: 767px) {
	.activity-tile--horizontal {
		flex-direction: column;
	}

	.activity-tile--horizontal .activity-tile__title {
		max-width: none;
	}
}

/* ─── Activity Tile: Completed State ─────────────────────────────── */

.activity-tile--completed {
	background: #1F628D;
}

.activity-tile--completed .activity-tile__title {
	color: #fff;
}

.activity-tile--completed:hover {
	background: #174b6d;
}

/* ─── Activity Tile: Skipped State ───────────────────────────────── */

.activity-tile--skipped {
	background: #D1D5DB;
}

.activity-tile--skipped .activity-tile__title {
	color: #6B7280;
}

.activity-tile--skipped:hover {
	background: #C4C8CF;
}

/* ─── Guide Arrow ("Not sure? Go here") ──────────────────────────── */

.guide-arrow {
	position: absolute;
	top: -3rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.125rem;
	z-index: 10;
	pointer-events: none;
	animation: guideArrowBounce 1.5s ease-in-out infinite;
}

.guide-arrow__label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #1F628D;
	white-space: nowrap;
	background: rgba(255, 255, 255, 0.9);
	padding: 0.25rem 0.625rem;
	border-radius: 4px;
}

.guide-arrow__icon {
	font-size: 1.75rem;
	color: #1F628D;
	line-height: 1;
}

@keyframes guideArrowBounce {
	0%, 100% {
		transform: translateX(-50%) translateY(0);
	}
	50% {
		transform: translateX(-50%) translateY(6px);
	}
}

/* ─── Activity Detail Layout ─────────────────────────────────────── */

.activity-detail {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 3rem;
	align-items: start;
}

@media (max-width: 768px) {
	.activity-detail {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
}

.activity-detail > .frosted-card:last-child a:not(.btn-primary,.btn-outline) {
	text-decoration: underline;
	font-weight: 600;
}

/* ─── Activity Detail Navigation ─────────────────────────────────── */

.activity-detail-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
	opacity: 0;
	visibility: hidden;
	animation: navDelayedReveal 0.4s ease 2s forwards;
}

@keyframes navDelayedReveal {
	0% { opacity: 0; visibility: visible; }
	100% { opacity: 1; visibility: visible; }
}

/* ─── Choose Another Resource Link ───────────────────────────────── */

.back-to-activities {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	cursor: pointer;
	transition: color 0.2s ease;
	background: none;
	border: none;
	padding: 0;
}

.back-to-activities::after {
	content: '›';
	font-size: 1rem;
	margin-top: -2px;
}

/* ─── Sweepstakes 3-Column Layout ────────────────────────────────── */

.sweepstakes-grid {
	display: grid;
	grid-template-columns: 1fr 1.2fr 1fr;
	gap: 2rem;
	align-items: start;
}

@media (max-width: 1024px) {
	.sweepstakes-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}

/* ─── Entry Form Card ────────────────────────────────────────────── */

.entry-form-card {
	background: #fff;
	border: 1px solid #1F628D;
	border-radius: 1rem;
	padding: 2rem;
}

/* ─── Form Styles ────────────────────────────────────────────────── */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.form-input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #ccc;
	font-size: 0.9375rem;
	color: #000104;
	background: #fff;
	transition: border-color 0.2s ease;
}

.form-input:focus {
	outline: none;
	border-color: #01949f;
	box-shadow: 0 0 0 2px rgba(1, 149, 159, 0.15);
}

.form-input::placeholder {
	color: #999;
}

.form-input-minimal {
	width: 100%;
	padding: 0.75rem 0;
	border: none;
	border-bottom: 1px solid #ccc;
	font-size: 0.9375rem;
	color: #000104;
	background: transparent;
	transition: border-color 0.2s ease;
}

.form-input-minimal:focus {
	outline: none;
	border-bottom-color: #01949f;
}

.form-input-minimal::placeholder {
	color: #999;
}

/* ─── Response Messages ──────────────────────────────────────────── */

.response-message {
	padding: 0.75rem 1rem;
	border-radius: 0.25rem;
	font-size: 0.875rem;
	display: none;
}

.response-message.success {
	display: block;
	background: #e8f5e9;
	color: #2e7d32;
}

.response-message.error {
	display: block;
	background: #fce4ec;
	color: #c62828;
}

/* ─── Focus States ───────────────────────────────────────────────── */

button:focus-visible,
a:focus-visible,
input:focus-visible {
	outline: 2px solid #01949f;
	outline-offset: 2px;
}

/* ─── Animated Text (intro slides) ───────────────────────────────── */

.animate-text-reveal {
	opacity: 0;
	transform: translateY(10px);
	animation: textReveal 0.6s ease forwards;
}

@keyframes textReveal {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ─── Disclaimer Box ─────────────────────────────────────────────── */

.disclaimer-box {
	display: flex;
	align-items: center;
	gap: 0.625rem;
	background: #f0eeec;
	border-radius: 0.5rem;
	padding: 0.625rem 0.875rem;
}

.disclaimer-box__icon {
	flex-shrink: 0;
	margin: 0 0.375rem;
}

.disclaimer-box__text {
	font-size: 0.875rem;
	line-height: 1.4;
	color: #4d4d4f;
	text-align: left;
}

/* ─── Staggered Phrase Reveal ─────────────────────────────────────── */

.stagger-phrase {
	display: inline-block;
	white-space: nowrap;
	opacity: 0;
	animation: phraseReveal 0.5s ease forwards;
}

@keyframes phraseReveal {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* ─── Sweepstakes Rules ──────────────────────────────────────────── */

.rules-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.rules-list li {
	position: relative;
	padding-left: 1rem;
	margin-bottom: 0.5rem;
	font-size: 0.75rem;
	line-height: 1.4;
	color: #4d4d4f;
}

.rules-list li::before {
	content: '\25A0';
	position: absolute;
	left: 0;
	color: #1F628D;
	font-size: 0.5rem;
	top: 0.2em;
}

/* ─── Content-Only Fade (challenge flow transitions) ─────────────── */

.challenge-flow-inner {
	transition: opacity 0.25s ease;
}

.challenge-flow-inner.content-fade-out {
	opacity: 0;
}
