* {
	box-sizing: border-box;
}

#troveConnection,
#troveConnection * {
	box-sizing: border-box;
}

#troveConnection {
	position: fixed;
	z-index: 10000;
	inset: 0;
	display: grid;
	place-items: center;
	pointer-events: none;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#troveConnection.hidden {
	display: none;
}

#troveConnection .panel {
	width: min(360px, calc(100% - 32px));
	padding: 22px;
	border: 1px solid rgba(56, 255, 152, 0.38);
	border-radius: 8px;
	background: rgba(8, 12, 10, 0.93);
	box-shadow: 0 0 38px rgba(56, 255, 152, 0.22), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
	color: #f2fff7;
	pointer-events: auto;
	text-align: center;
}

#troveConnection h2 {
	margin: 0 0 8px;
	color: #38ff98;
	font-size: 22px;
	letter-spacing: 0;
}

#troveConnection p {
	margin: 6px 0;
	color: #a8c7b4;
	font-size: 12px;
	font-weight: 800;
}

#troveConnection .qr {
	display: grid;
	place-items: center;
	width: 190px;
	height: 190px;
	margin: 16px auto;
	padding: 10px;
	border-radius: 8px;
	background: #fff;
}

#troveConnection .qr img {
	display: block;
	width: 100%;
	height: 100%;
}

#troveConnection .room {
	display: inline-block;
	margin: 4px 0 8px;
	padding: 8px 12px;
	border: 1px solid rgba(56, 255, 152, 0.34);
	border-radius: 8px;
	background: rgba(56, 255, 152, 0.08);
	color: #38ff98;
	font-size: 20px;
	font-weight: 900;
}

#troveConnection .controllerLink {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	margin: 4px 0 8px;
	padding: 0 12px;
	border: 1px solid rgba(255, 176, 66, 0.4);
	border-radius: 8px;
	background: rgba(255, 176, 66, 0.12);
	color: #ffb042;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none;
}

#troveConnection .actions {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

#troveConnection button,
#troveShowQrButton {
	min-height: 34px;
	padding: 0 14px;
	border: 1px solid rgba(56, 255, 152, 0.42);
	border-radius: 8px;
	background: rgba(56, 255, 152, 0.12);
	color: #f2fff7;
	cursor: pointer;
	font: 800 12px Inter, system-ui, sans-serif;
}

#troveConnection .status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #ffd966;
}

#troveConnection .dot,
#trovePhoneStatus .dot {
	width: 9px;
	height: 9px;
	border-radius: 999px;
	background: #ffd966;
	box-shadow: 0 0 14px currentColor;
}

#troveConnection.connected .status,
#trovePhoneStatus.connected {
	color: #38ff98;
}

#troveConnection.connected .dot,
#trovePhoneStatus.connected .dot {
	background: #38ff98;
}

#trovePhoneStatus {
	position: fixed;
	z-index: 9999;
	right: 10px;
	bottom: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 7px 10px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.58);
	color: #ffd966;
	font: 800 11px Inter, system-ui, sans-serif;
}

#troveShowQrButton {
	position: fixed;
	z-index: 9999;
	left: 10px;
	bottom: 10px;
}
