/* Base styling */
body {
	margin: 0;
	font-family: Georgia, serif;
	background: #0e0e0e;
	color: #ffffff;
}

main {
	position: relative;
	z-index: 2;
}

.section {
	min-height: 100vh;
	padding: 80px 20px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

h1 {
	font-size: 3rem;
	margin-bottom: 20px;
}

h2 {
	font-size: 2.2rem;
	margin-bottom: 30px;
}

.intro {
	font-size: 1.2rem;
	max-width: 600px;
}

.hero-image {
	max-width: 320px;
	width: 100%;
	border-radius: 12px;
	margin-bottom: 25px;
}

audio {
	margin-top: 10px;
}

/* Falling hearts */
.hearts {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.hearts span {
	position: absolute;
	top: -10%;
	color: rgba(255, 105, 180, 0.8);
	font-size: 20px;
	animation: fall linear infinite;
}

/* Individual heart variations */
.hearts span:nth-child(1) {
	left: 10%;
	animation-duration: 10s;
	font-size: 18px;
}
.hearts span:nth-child(2) {
	left: 25%;
	animation-duration: 14s;
	font-size: 22px;
}
.hearts span:nth-child(3) {
	left: 40%;
	animation-duration: 12s;
	font-size: 16px;
}
.hearts span:nth-child(4) {
	left: 55%;
	animation-duration: 16s;
	font-size: 20px;
}
.hearts span:nth-child(5) {
	left: 70%;
	animation-duration: 11s;
	font-size: 24px;
}
.hearts span:nth-child(6) {
	left: 85%;
	animation-duration: 15s;
	font-size: 18px;
}
.hearts span:nth-child(7) {
	left: 5%;
	animation-duration: 13s;
	font-size: 21px;
}
.hearts span:nth-child(8) {
	left: 90%;
	animation-duration: 17s;
	font-size: 19px;
}

.since-label {
	margin: 8px 0 6px;
	opacity: 0.8;
	font-size: 1rem;
}

.gate-riddle {
	margin-top: 14px;
	padding: 14px 14px 12px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(6px);
}

.gate-riddle-title {
	margin: 0 0 6px;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	opacity: 0.85;
}
.gate-clue {
	margin-top: 14px;
}

.gate-clue-summary {
	cursor: pointer;
	user-select: none;
	font-size: 0.95rem;
	opacity: 0.9;
}

.gate-clue-summary:hover {
	opacity: 1;
}

.gate-riddle-text {
	margin: 0;
	font-size: 0.98rem;
	line-height: 1.4;
	opacity: 0.95;
}

.gate-riddle-text em {
	font-style: normal;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.since-timer {
	font-variant-numeric: tabular-nums;
	letter-spacing: 0.5px;
	opacity: 0.95;
	font-size: 1.05rem;
	margin-bottom: 26px;
}

/* Prevent scrolling while locked */
body.locked {
	overflow: hidden;
}

/* Login Gate */
.gate {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: radial-gradient(circle at 50% 30%, #1b0f17, #050506 70%);
	padding: 20px;
}

.gate-card {
	width: 100%;
	max-width: 420px;
	padding: 40px 32px;
	border-radius: 24px;
	background: rgba(20, 15, 20, 0.75);
	backdrop-filter: blur(20px);
	box-shadow:
		0 20px 60px rgba(0, 0, 0, 0.6),
		inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.gate-title {
	font-size: 2rem;
	font-weight: 500;
	margin-bottom: 6px;
	text-align: center;
	letter-spacing: 0.5px;
}

.gate-subtitle {
	text-align: center;
	opacity: 0.7;
	margin-bottom: 30px;
}

.gate-form {
	display: grid;
	gap: 14px;
	text-align: left;
}

.gate-label {
	font-size: 0.95rem;
	opacity: 0.9;
	display: grid;
	gap: 8px;
}

.gate-input {
	width: 100%;
	padding: 14px 16px;
	border-radius: 14px;
	border: none;
	background: rgba(255, 255, 255, 0.05);
	color: white;
	margin-top: 6px;
	margin-bottom: 18px;
	outline: none;
	transition: all 0.3s ease;
}

.gate-input:focus {
	background: rgba(255, 255, 255, 0.08);
	box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.4);
}

.gate-button {
	margin-top: 6px;
	padding: 12px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background: rgba(255, 105, 180, 0.12);
	color: #fff;
	cursor: pointer;
	font-size: 1rem;
	transition:
		transform 0.1s ease,
		background 0.2s ease;
}

.gate-button:hover {
	background: rgba(255, 105, 180, 0.18);
}

.gate-button:active {
	transform: scale(0.98);
}

.gate-error {
	margin: 4px 0 0;
	color: rgba(255, 170, 200, 0.95);
	min-height: 18px;
	font-size: 0.95rem;
}

/* Animation */
@keyframes fall {
	0% {
		transform: translateY(-10vh);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	100% {
		transform: translateY(110vh);
		opacity: 0;
	}
}
