/* ============================================
   GAME UI COMPONENTS
   (from GameUI.module.css, Tavern, Guild, GameRoom styles)
   ============================================ */

/* Base Game Button */
.game-btn-base {
	height: 48px;
	padding: 0 2rem;
	border-radius: 4px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	font-family: var(--font-medieval), serif;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	position: relative;
	overflow: hidden;
	user-select: none;
	font-size: 1.1rem;
}

.game-btn-primary {
	background: linear-gradient(135deg, #8d6e63 0%, #5d4037 100%);
	color: #130d0c;
	border: 1px solid #3e2723;
	text-shadow:
		0px 1px 1px rgba(255, 255, 255, 0.1),
		0px -1px 1px rgba(0, 0, 0, 0.8);
	box-shadow:
		0 4px 0 #2b1d1a,
		0 8px 15px rgba(0, 0, 0, 0.4);
}

.game-btn-primary:hover {
	transform: translateY(1px);
	box-shadow:
		0 3px 0 #2b1d1a,
		0 5px 10px rgba(0, 0, 0, 0.5);
}
.game-btn-primary:active {
	transform: translateY(4px);
	box-shadow: 0 0px 0 #2b1d1a;
}

.game-btn-outline {
	background: rgba(0, 0, 0, 0.3);
	color: #ffb74d;
	border: 2px solid #5d4037;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.game-btn-outline:hover {
	background: rgba(93, 64, 55, 0.2);
	border-color: #ffb74d;
	color: #ffcc80;
}

/* Game Sign */
.sign-container {
	margin-bottom: 3rem;
	perspective: 1200px;
	text-align: center;
}

.wooden-sign {
	background:
		repeating-linear-gradient(
			rgba(0, 0, 0, 0) 0,
			rgba(0, 0, 0, 0) 2px,
			rgba(0, 0, 0, 0.03) 2px,
			rgba(0, 0, 0, 0.03) 4px
		),
		repeating-linear-gradient(
			90deg,
			rgba(255, 255, 255, 0.02) 0,
			rgba(255, 255, 255, 0.02) 1px,
			rgba(0, 0, 0, 0) 1px,
			rgba(0, 0, 0, 0) 50px
		),
		linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
	border: 3px solid #2b1d1a;
	padding: clamp(1rem, 5vw, 1.5rem) clamp(2rem, 10vw, 5rem);
	display: inline-block;
	position: relative;
	box-shadow:
		0 15px 35px rgba(0, 0, 0, 0.6),
		inset 0 0 40px rgba(0, 0, 0, 0.4),
		inset 0 2px 0 rgba(255, 255, 255, 0.1);
	border-radius: 8px 4px 12px 5px / 5px 12px 4px 8px;
	transform: rotateX(12deg) rotateZ(-1deg);
	border-bottom: 10px solid #1b1210;
}

.sign-text {
	font-size: clamp(2rem, 6vw, 4rem);
	font-family: var(--font-medieval), serif;
	font-weight: 400;
	color: #130d0c;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	text-shadow:
		0px 1px 1px rgba(255, 255, 255, 0.12),
		0px -1px 2px rgba(0, 0, 0, 0.9),
		1px 1px 0px rgba(0, 0, 0, 0.4);
	display: block;
	line-height: 1.1;
	opacity: 0.9;
	filter: blur(0.2px);
}

.sign-highlight-text {
	color: #795548;
	text-shadow:
		0px 1px 1px rgba(255, 183, 77, 0.2),
		0px -1px 2px rgba(0, 0, 0, 0.9);
	filter: saturate(1.5) brightness(0.8);
}

@media (max-width: 768px) {
	.wooden-sign {
		transform: rotateX(8deg) rotateZ(0deg);
		border-bottom-width: 6px;
	}
}

/* Game Card */
.game-card-base {
	background: rgba(35, 25, 20, 0.9);
	border: 2px solid #5d4037;
	border-radius: 8px;
	padding: 1.8rem;
	position: relative;
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.game-card-interactive:hover {
	transform: translateY(-8px);
	border-color: #ffb74d;
	box-shadow:
		0 20px 40px rgba(0, 0, 0, 0.6),
		0 0 20px rgba(255, 183, 77, 0.1);
}

/* Filter Bar / Search */
.filter-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	background: linear-gradient(180deg, #3e2723 0%, #2b1d1a 100%);
	padding: 1rem 1.5rem;
	border-radius: 8px;
	border: 2px solid #5d4037;
	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.4),
		inset 0 0 20px rgba(0, 0, 0, 0.5);
	gap: 1.5rem;
	position: relative;
	width: 100%;
}

@media (max-width: 900px) {
	.filter-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		padding: 1.5rem;
	}
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1;
}

@media (max-width: 600px) {
	.filter-group {
		flex-direction: column;
		align-items: stretch;
	}
	.search-box {
		max-width: none;
	}
}

.search-box {
	position: relative;
	flex: 2;
	max-width: 500px;
}
.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	opacity: 0.7;
	font-size: 14px;
	filter: sepia(1) saturate(5) hue-rotate(-20deg);
}

.game-input {
	box-sizing: border-box;
	width: 100%;
	background: rgba(15, 10, 8, 0.9);
	border: 2px solid #5d4037;
	border-radius: 4px;
	padding: 0 1.2rem;
	color: #f1ede9;
	font-size: 1rem;
	font-family: inherit;
	outline: none;
	transition: all 0.3s ease;
	box-shadow:
		inset 0 4px 10px rgba(0, 0, 0, 0.7),
		0 1px 0 rgba(255, 255, 255, 0.02);
	height: 48px;
	line-height: normal;
}

.game-search-input {
	padding-left: 2.8rem;
}

.game-input:focus {
	border-color: #ffb74d;
	background: rgba(25, 18, 15, 1);
	box-shadow:
		inset 0 4px 10px rgba(0, 0, 0, 0.8),
		0 0 15px rgba(255, 183, 77, 0.15);
}

.game-select-wrapper {
	box-sizing: border-box;
	position: relative;
	display: inline-block;
	width: 100%;
	height: 48px;
}

.game-select-wrapper-search {
	flex: 1;
	max-width: 250px;
	min-width: 180px;
}

.game-select {
	box-sizing: border-box;
	appearance: none;
	background: rgba(15, 10, 8, 0.9);
	border: 2px solid #5d4037;
	border-radius: 4px;
	padding: 0 2.5rem 0 1.2rem;
	color: #f1ede9;
	font-size: 1rem;
	font-family: inherit;
	width: 100%;
	height: 100%;
	outline: none;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow:
		inset 0 4px 10px rgba(0, 0, 0, 0.7),
		0 1px 0 rgba(255, 255, 255, 0.02);
}

.game-select:focus {
	border-color: #ffb74d;
	background: rgba(25, 18, 15, 1);
}

.select-arrow {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
	color: #ffb74d;
	font-size: 0.7rem;
	opacity: 0.8;
	transition: transform 0.3s ease;
}

.game-select:focus + .select-arrow {
	transform: translateY(-50%) rotate(180deg);
}
.game-option {
	background: #1b1210;
	color: #d7ccc8;
}

/* Language Toggle (Game) */
.lang-toggle-game {
	height: 42px;
	background: rgba(15, 10, 8, 0.9);
	border: 2px solid #5d4037;
	border-radius: 4px;
	padding: 0 1rem;
	color: #ffb74d;
	font-weight: 850;
	font-size: 0.8rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 0.8rem;
	transition: all 0.3s ease;
	user-select: none;
	box-shadow:
		inset 0 4px 10px rgba(0, 0, 0, 0.7),
		0 1px 0 rgba(255, 255, 255, 0.02);
}

.lang-toggle-game:hover {
	background: rgba(25, 18, 15, 1);
	border-color: #ffb74d;
	box-shadow:
		inset 0 4px 10px rgba(0, 0, 0, 0.8),
		0 0 15px rgba(255, 183, 77, 0.2);
	color: #ffffff;
}

.lang-icon-game {
	font-size: 1rem;
	filter: sepia(1) saturate(2);
}
.lang-text-game {
	font-size: 0.85rem;
	letter-spacing: 0.05em;
}

/* ============================================
   PORTAL / GUILD PAGE
   ============================================ */
.portal-section {
	padding: 1rem 0;
	min-height: 100vh;
	position: relative;
	display: flex;
	flex-direction: column;
}

.guild-bg {
	background-image:
		linear-gradient(rgba(5, 5, 8, 0.75), rgba(5, 5, 8, 0.75)),
		url("/images/guild-bg.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.tavern-bg {
	background-image:
		linear-gradient(rgba(5, 5, 8, 0.72), rgba(5, 5, 8, 0.72)),
		url("/images/tavern-bg.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

/* ── Lobby Status Bar ─────────────────────────────────────────────────────── */
/* ── Error alert banner (room full, not found, etc.) ──────────────────────── */
.tavern-alert {
	background: rgba(255, 152, 0, 0.15);
	border: 1px solid rgba(255, 152, 0, 0.5);
	border-radius: 8px;
	color: #ffb74d;
	font-size: 0.875rem;
	font-weight: 700;
	padding: 0.75rem 1.25rem;
	margin-bottom: 1rem;
	text-align: center;
	animation: alertFadeOut 0.5s ease 4.5s forwards;
}

@keyframes alertFadeOut {
	to {
		opacity: 0;
		height: 0;
		padding: 0;
		margin-top: 0;
		margin-bottom: 0;
		margin-left: 0;
		margin-right: 0;
		overflow: hidden;
	}
}

.lobby-status-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0.55rem 1.2rem;
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid rgba(255, 183, 77, 0.15);
	border-radius: 6px;
	margin-bottom: 0;
	backdrop-filter: blur(8px);
	font-size: 0.8rem;
}
.lobby-status-indicator {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}
.lobby-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.lobby-dot--connecting {
	background: #ffb74d;
	animation: lobbyPulse 1s ease-in-out infinite;
}
.lobby-dot--online {
	background: #00e676;
	box-shadow: 0 0 6px rgba(0, 230, 118, 0.6);
	animation: lobbyPulse 2.5s ease-in-out infinite;
}
.lobby-dot--offline {
	background: #ef5350;
}
@keyframes lobbyPulse {
	0%,
	100% {
		opacity: 1;
		transform: scale(1);
	}
	50% {
		opacity: 0.5;
		transform: scale(0.82);
	}
}
.lobby-status-text {
	color: #d7ccc8;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.72rem;
}
.lobby-player-count {
	color: #ffb74d;
	font-weight: 700;
	font-size: 0.75rem;
	letter-spacing: 0.05em;
}

.top-controls {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.2rem;
	width: 100%;
}
.main-title-wrapper {
	margin: 1rem 0 3rem;
	display: flex;
	justify-content: center;
}

.guild-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 4rem;
	padding: 3rem;
	background:
		repeating-linear-gradient(
			rgba(0, 0, 0, 0) 0,
			rgba(0, 0, 0, 0) 2px,
			rgba(0, 0, 0, 0.02) 2px,
			rgba(0, 0, 0, 0.02) 4px
		),
		linear-gradient(
			135deg,
			rgba(62, 39, 35, 0.7) 0%,
			rgba(43, 29, 26, 0.8) 100%
		);
	border: 3px solid #5d4037;
	border-radius: 12px;
	backdrop-filter: blur(8px);
	box-shadow:
		0 20px 50px rgba(0, 0, 0, 0.6),
		inset 0 0 40px rgba(0, 0, 0, 0.3);
	width: 100%;
}

.profile-container {
	display: flex;
	align-items: center;
	gap: 2.5rem;
	margin-bottom: 3rem;
	padding: 2rem 3rem;
	background: rgba(0, 0, 0, 0.4);
	border-radius: 4px;
	border: 2px solid #5d4037;
	box-shadow:
		0 10px 30px rgba(0, 0, 0, 0.5),
		inset 0 0 20px rgba(0, 0, 0, 0.4);
	position: relative;
}

.avatar-circle {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #5d4037 0%, #3e2723 100%);
	border: 4px solid #ffb74d;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3.5rem;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.player-info {
	text-align: left;
}
.player-name {
	display: block;
	font-family: var(--font-title);
	font-size: 2rem;
	color: #fff;
	margin-bottom: 0.2rem;
	letter-spacing: 0.05em;
}
.player-title {
	color: #ffb74d;
	font-size: 0.9rem;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	display: block;
	margin-bottom: 1rem;
}
.player-stats {
	display: flex;
	gap: 3rem;
}
.stat-item {
	display: flex;
	flex-direction: column;
}
.stat-val {
	color: #fff;
	font-weight: 950;
	font-size: 1.4rem;
	font-family: var(--font-title);
}
.stat-label {
	color: #a1887f;
	font-size: 0.7rem;
	text-transform: uppercase;
	font-weight: 800;
	letter-spacing: 0.1em;
}
.guild-description {
	font-size: 1.15rem;
	color: #d1c4e9;
	line-height: 1.6;
	max-width: 700px;
	margin: 0 0 3rem;
	font-style: italic;
	opacity: 0.95;
}
.guild-actions {
	display: flex;
	gap: 2rem;
}
.quest-board-header {
	margin: 4rem 0 3rem;
	text-align: center;
}

.quick-access-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-bottom: 5rem;
}

.guild-card {
	height: 100%;
}
.card-content {
	display: flex;
	gap: 1.5rem;
}
.guild-icon {
	font-size: 3.5rem;
	filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.guild-info {
	flex: 1;
}
.card-title-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.8rem;
}
.quest-tag {
	background: rgba(255, 183, 77, 0.15);
	color: #ffb74d;
	padding: 0.3rem 0.8rem;
	border-radius: 4px;
	font-size: 0.7rem;
	font-weight: 900;
	text-transform: uppercase;
}
.mission-status {
	font-size: 0.75rem;
	color: #d7ccc8;
	font-weight: 800;
	text-transform: uppercase;
	opacity: 0.7;
}
.guild-info h3 {
	color: #fff;
	font-size: 1.4rem;
	margin-bottom: 0.6rem;
	font-family: var(--font-title);
}
.guild-info p {
	color: #bcaaa4;
	font-size: 1rem;
	line-height: 1.5;
}
.disabled-link {
	opacity: 0.6;
	cursor: default;
	pointer-events: none;
}
.exit-btn-tiny {
	height: 42px;
	padding: 0 1.2rem;
	font-size: 0.8rem;
	letter-spacing: 0.05em;
}
.quick-link {
	display: block;
}

/* ============================================
   TAVERN PAGE
   ============================================ */
.tavern-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.2rem;
	width: 100%;
}
.action-group {
	display: flex;
	gap: 1rem;
	align-items: center;
}

.rooms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 2rem;
	margin-top: 3rem;
	margin-bottom: 4rem;
}

.empty-state {
	grid-column: 1 / -1;
	padding: 4rem;
	text-align: center;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 12px;
	border: 1px dashed #5d4037;
}

.empty-state p {
	color: #d7ccc8;
	font-size: 1.2rem;
	font-style: italic;
	opacity: 0.8;
}

.room-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.game-type-badge {
	background: rgba(124, 77, 255, 0.1);
	color: #ffb74d;
	padding: 0.3rem 0.8rem;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
}

.room-status {
	font-size: 0.75rem;
	font-weight: 800;
}
.status-waiting {
	color: #00ff88;
}
.status-playing {
	color: #ffb74d;
}
.room-title {
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 1.5rem;
	font-weight: 700;
}
.room-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 2rem;
	gap: 1rem;
}
.room-players {
	color: #d7ccc8;
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}
.join-link {
	flex: 1;
}
.join-btn {
	width: 100%;
}

/* Room hidden by filter */
.room-hidden {
	display: none;
}

/* ============================================
   CREATE ROOM — native <dialog> element
   ============================================ */

/* Visually hidden but accessible to screen readers */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Hides an interactive control visually without affecting its state tracking.
   Unlike sr-only, avoids clip/overflow that can interfere with :checked state
   inside a position:fixed top-layer element (dialog). */
.visually-hidden {
	opacity: 0;
	position: absolute;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* dialog element — replaces .modal-overlay + .modal */
.game-dialog {
	/* Cross-browser centering in the top-layer.
	   showModal() renders the dialog above everything else; margin:auto
	   combined with position:fixed + inset:0 centers it reliably in
	   Chrome, Firefox and Safari regardless of UA stylesheet differences. */
	position: fixed;
	inset: 0;
	margin: auto;
	height: fit-content;

	background: linear-gradient(135deg, #2b1d1a 0%, #1a1210 100%);
	border: 2px solid #5d4037;
	border-radius: 12px;
	padding: 2rem;
	width: 90%;
	max-width: 500px;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
	color: #f1ede9;
	animation: modalIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Native backdrop — no JS, no z-index battles */
.game-dialog::backdrop {
	background: rgba(0, 0, 0, 0.72);
	backdrop-filter: blur(4px);
}

@keyframes modalIn {
	from {
		opacity: 0;
		transform: scale(0.9) translateY(-20px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 2rem;
}
.modal-header h2 {
	font-family: var(--font-medieval), serif;
	color: #f1ede9;
	font-size: 1.4rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}
.modal-close-btn {
	background: none;
	border: none;
	color: #d7ccc8;
	font-size: 1.8rem;
	cursor: pointer;
	line-height: 1;
	padding: 0.2rem;
}
.modal-close-btn:hover {
	color: #fff;
}
.modal-form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}
.modal-field {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.modal-field label,
.modal-field legend {
	color: #d7ccc8;
	font-size: 0.9rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border: none;
	padding: 0;
	margin: 0;
}

/* fieldset reset */
fieldset.modal-field {
	border: none;
	padding: 0;
	margin: 0;
}

.radio-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.radio-container {
	position: relative; /* contain the visually-hidden input */
	background: rgba(0, 0, 0, 0.3);
	border: 2px solid #5d4037;
	border-radius: 8px;
	padding: 1rem;
	cursor: pointer;
	transition: all 0.3s ease;
}

/* CSS-only active state via :has() — no JS needed.
   Works because .radio-container has position:relative so the input
   stays a true DOM descendant regardless of its visual position.
   Supported: Chrome 105+, FF 121+, Safari 15.4+ */
.radio-container:has(input[type="radio"]:checked),
.radio-container:hover {
	border-color: #ffb74d;
	background: rgba(93, 64, 55, 0.3);
}

.radio-content {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.radio-title {
	color: #f1ede9;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.9rem;
}
.radio-desc {
	color: #a1887f;
	font-size: 0.8rem;
}
.modal-actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 1rem;
}

/* ============================================
   GAME ROOM PAGE
   ============================================ */
.room-container {
	width: 100%;
	height: 100vh;
	display: flex;
	flex-direction: column;
	background: #050508;
}

.game-container {
	flex: 1;
	position: relative;
	overflow: hidden;
}

.game-hud {
	height: 64px;
	background: rgba(5, 5, 8, 0.9);
	backdrop-filter: blur(10px);
	border-top: 1px solid rgba(255, 255, 255, 0.05);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 1.5rem;
}

.hud-left {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}
.hud-right {
	display: flex;
	align-items: center;
}

.room-info {
	display: flex;
	flex-direction: column;
}

.room-id-label {
	font-size: 0.75rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.room-status-label {
	font-size: 0.8rem;
	color: #00ff88;
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.status-circle {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00ff88;
	display: inline-block;
	animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0.4;
	}
}

.player-count {
	color: var(--text-secondary);
	font-size: 1rem;
	font-family: var(--font-title);
}
.exit-btn {
	height: 36px;
	padding: 0 1rem;
	font-size: 0.75rem;
}

/* Scene Controller Overlay */
.scene-controller-wrapper {
	position: absolute;
	bottom: 1rem;
	right: 1rem;
	z-index: 100;
}

.scene-panel {
	background: rgba(5, 5, 8, 0.9);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	padding: 0.75rem;
	display: flex;
	gap: 0.75rem;
	align-items: center;
	backdrop-filter: blur(10px);
}

.scene-section {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}
.scene-label {
	font-size: 0.65rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--text-secondary);
}
.scene-info {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.scene-name {
	font-size: 0.8rem;
	color: white;
	font-family: var(--font-title);
	max-width: 150px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.scene-indicator {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #00ff88;
}
.scene-divider {
	width: 1px;
	height: 30px;
	background: rgba(255, 255, 255, 0.1);
}
.scene-controls {
	display: flex;
	gap: 0.5rem;
}
.ctrl-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.9rem;
	padding: 0;
}
.ctrl-btn.active {
	background: rgba(124, 77, 255, 0.2);
	border-color: var(--accent-color);
	color: white;
}
