html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
	width: 100%;
	background: #fff;
	overflow: hidden;
	font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
	font-weight: 300;
	/* Hide status bar and ensure full screen */
	-webkit-user-select: none;
	-webkit-touch-callout: none;
	-webkit-tap-highlight-color: transparent;
}

body {
	width: 100vw;
	height: 100vh;
	transition: background 0.1s linear;
	touch-action: none;
	user-select: none;
	font-family: inherit;
	font-weight: 300;
	/* Ensure full viewport coverage */
	position: fixed;
	top: 0;
	left: 0;
}

.about-btn {
	/* Remove the about button entirely */
	display: none;
}

svg {
	opacity: 0.7;
}

.about-btn:hover {
	cursor: pointer;
}

.about-btn:active {
}

.modal-backdrop {
	position: fixed;
	z-index: 100;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.25);
	display: none;
	align-items: center;
	justify-content: center;
}

.modal-backdrop.active {
	display: flex;
}

.modal-dialog {
	background: #fff;
	opacity: 0.6;
	border-radius: 12px;
	padding: 2em 1.5em 1.5em 1.5em;
	max-width: 90vw;
	text-align: center;
	position: relative;
	min-width: 260px;
	max-width: 90%;
	margin: 0 16px;
}

.modal-dialog h2 {
	margin-top: 0;
	margin-bottom: 0.5em;
	font-size: 1.4em;
	letter-spacing: 0.02em;
}

.modal-dialog .close-btn {
	position: absolute;
	top: 0.7em;
	right: 1em;
	background: none;
	border: none;
	font-size: 1.3em;
	cursor: pointer;
	color: #888;
}

.modal-dialog .close-btn:active {
	color: #222;
}

.modal-dialog p {
	margin: 0.7em 0;
	font-size: 1em;
	color: #444;
}

.modal-dialog .credit {
	margin-top: 1.2em;
	font-size: 0.95em;
	color: #888;
}

.modal-backdrop .credit a {
	color: #888;
	text-decoration: none;
}

@media (max-width: 400px) {
	.modal-dialog {
		padding: 1.2em 0.5em 1em 0.5em;
	}
}

.install-btn {
	background: #007AFF;
	color: white;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
	margin: 20px 0 10px 0;
	transition: background 0.2s ease;
	width: 100%;
}

.install-btn:hover {
	background: #0051D0;
}

/* Toggle switch for music mode */
.toggle-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0;
	padding: 15px;
	background: #f5f5f5;
	border-radius: 8px;
}

.toggle-label {
	flex: 1;
	margin: 0;
}

.toggle-label span {
	display: block;
	font-weight: 500;
	color: #222;
	font-size: 16px;
}

.toggle-description {
	font-size: 13px;
	color: #666;
	margin-top: 4px;
}

.switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 28px;
	margin: 0;
}

.switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: 0.3s;
	border-radius: 28px;
}

.slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	bottom: 4px;
	background-color: white;
	transition: 0.3s;
	border-radius: 50%;
}

input:checked + .slider {
	background-color: #007AFF;
}

input:checked + .slider:before {
	transform: translateX(22px);
}

.logo-btn {
	position: fixed;
	top: 60px;
	right: 40px;
	width: 40px;
	height: 40px;	
	cursor: pointer;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	background-color: transparent;
}

.logo-btn:hover {
	transform: scale(1.05);
}

.logo-btn img {
	width: 24px;
	height: 24px;
	opacity: 0.8;
}

/* Update prompt styles */
.update-prompt {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(34, 34, 34, 0.95);
	color: #f0f0f0;
	padding: 12px 16px;
	display: none;
	align-items: center;
	justify-content: space-between;
	z-index: 200;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.update-prompt.active {
	display: flex;
}

.update-btn {
	background: #f0f0f0;
	color: #222;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.update-btn:hover {
	background: #e0e0e0;
}

.update-btn:active {
	background: #d0d0d0;
}
