.gdm-toggle a {
	font-size: 18px;
	line-height: 30px;
	text-align: center;
	cursor: pointer;
	user-select: none;
}
.gdm-toggle.gdm-on a { background: #2e7d32; color: #fff; }

.gdm-panel {
	position: absolute;
	left: 10px;
	bottom: 28px;
	z-index: 1100;
	width: 290px;
	background: rgba(255, 255, 255, .95);
	border-radius: 6px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .4);
	font: 12px/1.35 system-ui, sans-serif;
	color: #222;
	overflow: hidden;
}
.gdm-panel[hidden] { display: none; }
.gdm-stage { position: relative; background: #000; }
.gdm-stage video,
.gdm-stage canvas {
	display: block;
	width: 100%;
	transform: scaleX(-1); /* mirror */
}
.gdm-stage canvas { position: absolute; inset: 0; height: 100%; }
.gdm-status { padding: 6px 8px; font-weight: 600; }
.gdm-status.gdm-pinch { color: #c62828; }
.gdm-help { padding: 0 8px 6px; color: #555; }
.gdm-help small { display: block; margin-top: 4px; }

/* the pointer: while pointing, a ring fills up (--p, 0 to 1) and clicks when it is full */
.gdm-cursor {
	position: absolute;
	z-index: 1200;
	width: 26px;
	height: 26px;
	margin: -13px 0 0 -13px;
	border: 2px solid #1565c0;
	border-radius: 50%;
	background: conic-gradient(rgba(21, 101, 192, .7) calc(var(--p, 0) * 1turn), rgba(21, 101, 192, .15) 0);
	pointer-events: none;
	transition: transform .1s;
}
.gdm-cursor.gdm-click { background: rgba(198, 40, 40, .6); border-color: #c62828; transform: scale(.7); }
.gdm-cursor[hidden] { display: none; }
.gdm-cursor[data-g="palm"] { border-color: #ef6c00; background: rgba(239, 108, 0, .45); }
.gdm-cursor[data-g="thumbUp"],
.gdm-cursor[data-g="thumbDown"] { border-color: #2e7d32; background: rgba(46, 125, 50, .5); }
.gdm-cursor[data-g="pinky"] { border-color: #455a64; background: rgba(69, 90, 100, .5); }
.gdm-cursor[data-g="fist"] { border-color: #6a1b9a; background: rgba(106, 27, 154, .5); }
.gdm-cursor[data-g="other"] { border-color: #90a4ae; background: rgba(144, 164, 174, .25); }

.gdm-guide { margin: 0; padding: 0 8px 4px; list-style: none; }
.gdm-guide li { padding: 3px 4px; border-radius: 3px; color: #444; }
.gdm-guide li b { color: #111; }
.gdm-guide li.gdm-active { background: #ffe0b2; color: #000; }
.gdm-guide li img.emoji { height: 1.1em; width: 1.1em; vertical-align: -0.15em; }
