/* Consolidated app styles (moved from style.css) */
* {
	box-sizing: border-box;
	user-select: none;
	-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html,
body {
	width: 100%;
	height: 100%;
	padding: 0;
	margin: 0;
	overflow: hidden;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	scroll-behavior: smooth;
}

/* Enhanced accessibility */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Focus styles for accessibility */
*:focus-visible {
	outline: 2px solid #D4AF37;
	outline-offset: 2px;
}

#pano {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #000;
}

.top-nav {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: clamp(50px, 8vh, 70px);
	z-index: 1050;
	display: flex;
	align-items: center;
	padding: 0 clamp(10px, 3vw, 30px);
	transition: transform 0.3s ease;
	backdrop-filter: blur(15px);
	background: rgba(0, 0, 0, 0.15);
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-nav.hidden { transform: translateY(-100%); }

.scene-title {
	flex: 1;
	font-size: clamp(0.9rem, 2.5vw, 1.3rem);
	font-weight: 600;
	color: #fff;
	margin: 0 clamp(10px, 2vw, 20px);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-align: center;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.center-controls { display: flex; justify-content: center; align-items: center; flex: 1; }
.top-right-controls { display: flex; gap: clamp(5px, 1.5vw, 15px); }

.bottom-controls {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1050;
	padding: clamp(8px, 2vh, 15px) clamp(10px, 3vw, 30px);
	transition: transform 0.3s ease;
	display: flex;
	align-items: center;
	gap: clamp(5px, 1.5vw, 15px);
	backdrop-filter: blur(15px);
	background: rgba(0, 0, 0, 0.15);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	flex-wrap: wrap;
}

.bottom-controls.hidden { transform: translateY(100%); }

.control-btn {
	width: clamp(36px, 8vw, 50px);
	height: clamp(36px, 8vw, 50px);
	min-width: 36px;
	min-height: 36px;
	border: none;
	border-radius: 50%;
	background: rgba(134, 38, 51, 0.8);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(134, 38, 51, 0.8);
	cursor: pointer;
	position: relative;
	overflow: hidden;
}
.control-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s ease; }
.control-btn:hover::before { left: 100%; }
.control-btn:hover, .control-btn:focus { background: rgba(134, 38, 51, 1); transform: scale(1.05); box-shadow: 0 4px 15px rgba(134, 38, 51, 0.4); }
.control-btn:active { transform: scale(0.95); }
.control-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.control-btn i { font-size: clamp(0.8rem, 2vw, 1rem); z-index: 1; }

.scene-nav { display: flex; align-items: center; gap: clamp(5px, 1.5vw, 15px); }
.scene-counter { font-size: clamp(0.8rem, 2vw, 0.9rem); font-weight: 500; color: #fff; background: rgba(134, 38, 51, 0.4); padding: clamp(4px, 1vw, 8px) clamp(8px, 2vw, 12px); border-radius: 20px; backdrop-filter: blur(8px); border: 1px solid rgba(134, 38, 51, 0.6); text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

/* Enhanced Area Selector */
.area-select { appearance: none; -webkit-appearance: none; -moz-appearance: none; background: rgba(134, 38, 51, 0.8); color: #fff; border: 1px solid rgba(134, 38, 51, 0.95); border-radius: 28px; padding: 10px 40px 10px 14px; font-weight: 700; letter-spacing: 0.2px; transition: transform .1s ease, box-shadow .2s ease, filter .2s ease; }
.area-select:hover { filter: brightness(1.06); }
.area-select:active { transform: translateY(1px); }
.area-select:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }
.area-select option { background: #171717; color: #fff; padding: 10px; }
@supports (-ms-ime-align:auto) or (-ms-accelerator:true) { .area-select { box-shadow: 0 0 0 2px #D4AF37 inset; } }
@media (max-width: 480px) { .area-select { padding: clamp(5px, 1vw, 6px) clamp(6px, 1.5vw, 8px); font-size: clamp(0.7rem, 1.8vw, 0.8rem); } }
.area-select { background: rgba(134, 38, 51, 1) !important; border: 1px solid rgba(134, 38, 51, 1) !important; box-shadow: none !important; color: #fff; }
.area-select:hover { filter: none; background: rgba(134, 38, 51, 1); }
.select-wrap::after { color: #fff; }
.area-select option { background: #1a1a1a; color: #fff; }

/* Controls hidden state */
.controls-hidden .top-nav { transform: translateY(-100%); }
.controls-hidden .bottom-controls { transform: translateY(100%); }

/* Accessibility outlines */
.control-btn:focus-visible,
.area-select:focus-visible,
.scene-item:focus-visible { outline: 2px solid #D4AF37; outline-offset: 2px; }

