html, body {
	background: #FAEBD7 !important;
	font-family: 'Pacifico', system-ui, sans-serif;
	height: 100vh;
	width: 100vw;
	margin: 0;
	padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
	overflow: hidden;
	position: relative;
	color: #000000;
}

@font-face {
	font-family: 'Pacifico';
	src: url('/static/fonts/Pacifico-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

/* Progressive background: white */
body { background-color: #FAEBD7; background-image: none; }
body.bg-loaded { background-color: #FAEBD7; background-image: none; }

body::before {
	display: none !important;
}

/* White safe-area overlay for iOS notch */
body::after {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: env(safe-area-inset-top);
	background: #FAEBD7;
	z-index: 3500;
	pointer-events: none;
}

/* Lazy-image placeholder and fade-in */
.slide-image img { opacity: 0; transition: opacity 300ms ease; }
.slide-image img.is-loaded { opacity: 1; }
.slide-image { background: rgba(0, 0, 0, 0.12); }

#gradient-canvas {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	z-index: -1;
	pointer-events: none;
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 60px;
	z-index: 4000;
	display: flex;
	align-items: center;
	background: transparent;
	justify-content: space-between;
	padding: 0 10px;
	box-sizing: border-box;
}

/* Vertical scroll container */
.slide-menu-container {
	width: 100vw;
	height: 100vh;
	overflow-y: auto;
	overflow-x: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
	z-index: 1;
	padding: 0;
	margin: 0;
	padding-top: 60px;
	scroll-snap-type: y mandatory;
	overscroll-behavior-y: contain;
}

.slide-menu-container::-webkit-scrollbar {
	display: none;
}

/* Hero section above slide menu */
.hero-section {
	position: relative;
	height: calc(100vh - 60px);
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding-bottom: 24px;
	box-sizing: border-box;
	scroll-snap-align: start;
	scroll-snap-stop: always;
}

.hero-content {
	width: 100%;
	height: 100%;
}

.scroll-indicator {
	position: absolute;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.6);
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #000000;
	font-size: 20px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	z-index: 10;
}

.scroll-indicator:hover {
	transform: translateX(-50%) scale(1.05);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.scroll-indicator:active {
	transform: translateX(-50%) scale(0.98);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-indicator.hidden {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* Grid layout for items */
.slide-menu {
	display: block;
	width: 100%;
	padding: 0;
	box-sizing: border-box;
}

/* Slide item styling */
.slide-item {
	--square-size: min(70vh, 90vw);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.5px;
	color: #000000;
	font-family: 'Pacifico', system-ui, sans-serif;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 12px;
	
	width: var(--square-size);
	height: var(--square-size);
	margin: calc((100vh - 60px - var(--square-size)) / 2) auto;
	padding: 0;
	gap: 12px;
	position: relative;
	overflow: hidden;
	cursor: pointer;
	scroll-snap-align: center;
	scroll-snap-stop: always;
}


.slide-item > * {
	position: relative;
	z-index: 1;
}

.caption-container {
	position: relative;
	width: 90%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	margin: 0;
	order: 1;
	flex: 1 1 0;
	min-height: 0;
}

.slide-menu .caption {
	font-size: 28px;
	margin: 0 8px;
	color: #000000;
}

.media {
	position: relative;
	width: 90%;
	height: auto;
	display: flex;
	align-items: center;
	justify-content: center;
	order: 2;
	flex: 1 1 0;
	min-height: 0;
}

.big-word {
	font-size: clamp(72px, 12vw, 160px);
	display: inline-block;
}

.slide-menu .slide-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}


.slide-menu .audio-player {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 8px 0;
}

.slide-menu .ellipsis-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.slide-item.active {
	display: flex;
}

/* removed modal styles */

.hearts-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	pointer-events: none;
	overflow: hidden;
}

.heart {
	position: fixed;
	bottom: -50px;
	font-size: 100px;
	animation: float linear forwards;
	z-index: 10;
	pointer-events: none;
	will-change: transform, opacity;
	opacity: 1;
}

@keyframes float {
	0% {
		transform: translateY(100vh);
		opacity: 0.8;
	}
	2% {
		opacity: 1;
	}
	100% {
		transform: translateY(-120vh);
		opacity: 0.9;
	}
}

.content {
	display: block;
}

.ellipsis-container {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.ellipsis-dot {
	display: inline-block;
	font-size: 100px;
	opacity: 0;
	animation: typing-dot 2s infinite;
}

.ellipsis-dot:nth-child(1) {
	animation-delay: 0s;
}

.ellipsis-dot:nth-child(2) {
	animation-delay: 0.3s;
}

.ellipsis-dot:nth-child(3) {
	animation-delay: 0.6s;
}

@keyframes typing-dot {
	0% { opacity: 0; }
	20% { opacity: 1; }
	100% { opacity: 1; }
}

.slide-image {
	border-radius: 8px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.slide-image img {
	aspect-ratio: 1 / 1;
	max-width: 100%;
}

/* Audio player adjustments */
.audio-player {
	margin: 10px 0;
}

.play-button {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(145deg, #333333, #000000);
	border: none;
	border-image: none;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
	position: relative;
	outline: none;
}

.play-button::before {
	content: '';
	position: absolute;
	top: -6px;
	left: -6px;
	right: -6px;
	bottom: -6px;
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 50%;
	z-index: -1;
}

.play-button [data-feather="play"],
.play-button [data-feather="pause"] {
	width: 22px;
	height: 22px;
	stroke: white;
	stroke-width: 2.25;
}

.play-icon {
	opacity: 1;
}

.pause-icon {
	opacity: 0;
}

.play-button.playing .play-icon {
	opacity: 0;
}

.play-button.playing .pause-icon {
	opacity: 1;
}

.music-button {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: linear-gradient(145deg, #333333, #000000);
	border: none;
	border-image: none;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: all 0.3s ease;
	position: relative;
	outline: none;
}

.music-button::before {
	content: '';
	position: absolute;
	top: -6px;
	left: -6px;
	right: -6px;
	bottom: -6px;
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 50%;
	z-index: -1;
}

.music-button [data-feather="music"] {
	width: 22px;
	height: 22px;
	stroke: white;
	stroke-width: 2.25;
}

.music-button:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.music-button:active {
	transform: scale(0.98);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar {
	width: 100px;
	height: 6px;
	background: rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 3px;
	margin-top: 8px;
	overflow: hidden;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top;
	transition: opacity 0.3s ease, transform 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.play-button.playing ~ .progress-bar {
	opacity: 1;
	transform: scaleY(1);
}

.music-button.playing ~ .progress-bar {
	opacity: 1;
	transform: scaleY(1);
}

.progress-fill {
	width: 0%;
	height: 100%;
	background: linear-gradient(145deg, #333333, #000000);
	border-radius: 3px;
	transition: width 0.2s linear;
}

.song-info {
	margin-top: 6px;
	font-family: 'Pacifico', system-ui, sans-serif;
	font-size: 16px;
	color: #000000;
	background: rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 4px 8px;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	opacity: 0;
	transform: scaleY(0);
	transform-origin: top;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.play-button.playing ~ .song-info {
	opacity: 1;
	transform: scaleY(1);
}

.music-button.playing ~ .song-info {
	opacity: 1;
	transform: scaleY(1);
}

.song-name {
	margin-right: 0;
	margin-bottom: 2px;
}

.liong-time {
	white-space: nowrap;
}

/* Menu Button Styles */
#menuButton {
	width: 56px;
	height: 56px;
	background: rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: none;
	border-image: none;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	cursor: pointer;
	z-index: 5000;
	position: relative;
	margin-left: auto;
}

/* Right vertical scroll progress */
.scroll-progress {
	position: fixed;
	top: 60px;
	right: 0px;
	width: 4px;
	height: calc(100vh - 72px);
	background: rgba(0, 0, 0, 0.15);
	border-radius: 999px;
	z-index: 999;
}

.scroll-progress-bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 0;
	background: linear-gradient(180deg, #333333, #000000);
	border-radius: 999px;
	transition: height 0.15s ease;
}

/* Menu button icon color overrides */
#menuButton [data-feather="menu"] {
	stroke: #000000 !important;
	fill: #000000 !important;
	width: 28px;
	height: 28px;
}

/* More specific rule to override any feather defaults */
button#menuButton i[data-feather="menu"] {
	stroke: #000000 !important;
	fill: #000000 !important;
	width: 28px;
	height: 28px;
}

/* Ultra-specific rule to ensure menu icon is always black */
#menuButton i[data-feather="menu"],
#menuButton [data-feather="menu"],
button#menuButton i[data-feather="menu"] svg,
#menuButton [data-feather="menu"] svg {
	stroke: #000000 !important;
	fill: #000000 !important;
	color: #000000 !important;
	width: 28px;
	height: 28px;
}

/* Force all SVG elements and paths within menu button to be black */
#menuButton * {
	stroke: #000000 !important;
	fill: #000000 !important;
	color: #000000 !important;
}

#menuButton svg,
#menuButton svg *,
#menuButton path,
#menuButton line,
#menuButton polyline,
#menuButton rect,
#menuButton circle {
	stroke: #000000 !important;
	fill: #000000 !important;
	color: #000000 !important;
}

#menuButton:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#menuButton:hover [data-feather="menu"] {
	stroke: #000000 !important;
	fill: #000000 !important;
}

#menuButton:active {
	transform: scale(0.98);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#menuButton.active {
	background: rgba(0, 0, 0, 0.1);
}

#menuButton.active [data-feather="menu"] {
	stroke: #000000 !important;
	fill: #000000 !important;
}

.side-menu {
	position: fixed;
	top: 0;
	right: 0;
	width: 250px;
	height: 100%;
	transform: translateX(100%);
	background: rgba(250, 235, 215, 0.95);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
	z-index: 6000;
	overflow-y: auto;
	border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.side-menu.open {
	transform: translateX(0);
}

.menu-item-container {
	margin-top: 80px;
}

.menu-item {
		display: block;
		padding: 12px 16px;
		margin: 12px 15px;
		color: #000000;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
		font-family: 'Pacifico', system-ui, sans-serif;
		font-style: normal;
		text-align: center;
		text-decoration: none;
		transition: transform 0.2s ease, background 0.2s ease;
		cursor: pointer;
	}

.menu-item:hover {
	transform: translateY(-1px);
	background: rgba(0, 0, 0, 0.05);
}

.menu-item:active {
	transform: translateY(0);
}

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

.heart-fadeout {
	animation: heartFadeOut 0.5s forwards !important;
}

.play-button:hover {
	transform: scale(1.05);
	box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.play-button:active {
	transform: scale(0.98);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.navbar {
		height: 50px;
		padding: 0 8px;
	}

	.slide-menu-container {
		padding-top: 50px;
	}

	.slide-menu {
		padding: 15px;
	}

	.slide-item {
		font-size: 16px;
		padding: 10px;
		min-height: 500px;
	}

	.slide-menu .caption {
		font-size: 20px;
		font-size: 16px;
		margin: 0 6px;
	}

	.slide-menu .audio-player {
		margin: 6px 0;
	}

	.play-button, .music-button {
		width: 35px;
		height: 35px;
	}

	.play-button::before, .music-button::before {
		top: -3px;
		left: -3px;
		right: -3px;
		bottom: -3px;
	}

	.play-button [data-feather="play"],
	.play-button [data-feather="pause"],
	.music-button [data-feather="music"] {
		width: 16px;
		height: 16px;
	}

	.progress-bar {
		width: 80px;
		height: 5px;
		margin-top: 6px;
	}

	.song-info {
		font-size: 14px;
		padding: 3px 6px;
		margin-top: 5px;
	}

	.close {
		width: 36px;
		height: 36px;
	}

	.close [data-feather="x"] {
		width: 22px;
		height: 22px;
	}

	#menuButton {
		width: 56px;
		height: 56px;
	}

	.side-menu {
		width: 80%;
	}

@media (max-width: 480px) {
	.navbar {
		height: 60px;
		padding: 0 6px;
	}

	.slide-menu-container {
		padding-top: 60px;
	}

	.slide-menu {
		padding: 10px;
	}

	.slide-item {
		font-size: 14px;
		padding: 8px;
		min-height: 500px;
	}


	.slide-menu .caption {
		font-size: 20px;
		margin: 0 4px;
	}

	.slide-menu .audio-player {
		margin: 4px 0;
	}

	.play-button, .music-button {
		width: 30px;
		height: 30px;
	}

	.play-button::before, .music-button::before {
		top: -2px;
		left: -2px;
		right: -2px;
		bottom: -2px;
	}

	.play-button [data-feather="play"],
	.play-button [data-feather="pause"],
	.music-button [data-feather="music"] {
		width: 14px;
		height: 14px;
	}

	.progress-bar {
		width: 60px;
		height: 4px;
		margin-top: 5px;
	}

	.song-info {
		font-size: 12px;
		padding: 2px 4px;
		margin-top: 4px;
	}

	.close {
		width: 32px;
		height: 32px;
	}

	.close [data-feather="x"] {
		width: 20px;
		height: 20px;
	}

	#menuButton {
		width: 56px;
		height: 56px;
	}

	#menuButton [data-feather="menu"] {
		width: 26px;
		height: 26px;
	}
}
}

@media screen and (max-width: 768px) {
	.side-menu {
		transform: translateX(100%);
	}

	html, body {
		overflow-x: hidden;
		width: 100%;
		position: relative;
	}
}
.navbar-timer {
	font-family: 'Pacifico', system-ui, sans-serif;
	font-size: 16px;
	color: #000000;
	font-weight: 600;
	background: rgba(0, 0, 0, 0.05);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 50px;
	padding: 0 12px;
	transition: all 0.3s ease;
	display: flex;
	gap: 8px;
	align-items: center;
	height: 56px;
	min-width: 200px;
	
}

/* Hero state: center and enlarge timer initially */
.navbar-timer.is-hero {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1.6);
	z-index: 4500;
	padding: 8px 18px;
	height: 72px;
	min-width: 260px;
	gap: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	margin-left: 0;
	margin-right: 0;
}

/* Ensure hero is centered on small screens too */
@media (max-width: 768px) {
	.navbar-timer.is-hero {
		left: 50%;
		transform: translate(-50%, -50%) scale(1.3);
	}
}

@media (max-width: 480px) {
	.navbar-timer.is-hero {
		left: 50%;
		transform: translate(-50%, -50%) scale(1.15);
	}
}

/* Align normal state timer to the left inside navbar */
.navbar-timer:not(.is-hero) {
	position: static;
	transform: none;
	margin-left: 0;
}

/* Raise menu button above side menu */
#menuButton { 
	z-index: 7000 !important; 
	position: relative;
}

.navbar-timer.is-hero .time-number { font-size: 22px; }
.navbar-timer.is-hero .time-label { font-size: 11px; }

@media (max-width: 768px) {
	.navbar-timer.is-hero {
		transform: translate(-50%, -50%) scale(1.3);
		height: 64px;
		min-width: 220px;
	}
	.navbar-timer.is-hero .time-number { font-size: 18px; }
	.navbar-timer.is-hero .time-label { font-size: 10px; }
}

@media (max-width: 480px) {
	.navbar-timer.is-hero {
		transform: translate(-50%, -50%) scale(1.15);
		height: 60px;
		min-width: 200px;
	}
	.navbar-timer.is-hero .time-number { font-size: 16px; }
	.navbar-timer.is-hero .time-label { font-size: 9px; }
}

.time-unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 40px;
	justify-content: center;
	height: 100%;
}

.time-number {
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	margin-bottom: 1px;
}

.time-label {
	font-size: 9px;
	font-weight: 500;
	opacity: 0.8;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Desktop refinement */
@media (min-width: 1024px) {
	.navbar-timer {
		height: 56px;
		min-width: 200px;
		gap: 8px;
		padding: 0 12px;
		background: rgba(0, 0, 0, 0.05);
		backdrop-filter: blur(10px);
		-webkit-backdrop-filter: blur(10px);
		
		border-image: none;
	}
	.time-unit { min-width: 40px; }
	.time-number { font-size: 16px; }
	.time-label { font-size: 9px; opacity: 0.8; }
}

@media (max-width: 768px) {
	.navbar-timer {
		height: 56px;
		min-width: 160px;
		padding: 0 10px;
		gap: 6px;
		margin-left: 10px;
	}

	.time-unit {
		min-width: 32px;
	}

	.time-number {
		font-size: 14px;
	}

	.time-label {
		font-size: 8px;
	}
}

@media (max-width: 480px) {
	.navbar-timer {
		height: 56px;
		min-width: 140px;
		padding: 0 8px;
		gap: 4px;
		margin-left: 8px;
	}

	.time-unit {
		min-width: 28px;
	}

	.time-number {
		font-size: 12px;
	}

	.time-label {
		font-size: 7px;
	}
}

@media (min-width: 1024px) {
	.slide-item {
		--square-size: min(60vh, 60vw);
	}
	.media {
		width: var(--square-size);
	}
}

/* Inline styles moved from index.html */
body {
	visibility: hidden;
	color: #000;
}

.auth-loading {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #FAEBD7;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	font-family: 'Pacifico', system-ui, sans-serif;
	font-size: 2rem;
	color: #000;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #000000;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-right: 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.noscript-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: #FAEBD7;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10000;
	font-family: 'Pacifico', system-ui, sans-serif;
}

.noscript-content {
	text-align: center;
	color: #000000;
}

.big-heart {
	font-size: 500px;
}

body.is-authenticated {
	visibility: visible;
}

.auth-loading.hidden {
	display: none;
}


@media (max-width: 768px) {
	.navbar {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}
	/* Normal state: left align timer */
	.navbar-timer:not(.is-hero) {
		position: static;
		transform: none;
		margin-left: 0;
	}
	/* Keep the menu button pinned right */
	#menuButton {
		margin-left: auto;
	}
}

@media (max-width: 480px) {
	.navbar-timer:not(.is-hero) {
		position: static;
		transform: none;
		margin-left: 0;
	}
}
