/* Gesture Control UI */
.gctrl-root { position: fixed; bottom: 140px; right: 24px; z-index: 999; font-family: var(--sans, system-ui, sans-serif); }

.gctrl-btn {
  width: 46px; height: 46px; border-radius: 50%;
  background: #1a1a1a; color: #c09020;
  border: 1px solid rgba(192,144,32,0.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.gctrl-btn:hover { transform: translateY(-2px); }
.gctrl-btn-on { background: #c09020; color: #1a1a1a; box-shadow: 0 4px 22px rgba(192,144,32,0.55); }

.gctrl-tip {
  position: absolute; right: 56px; bottom: 6px;
  background: #1a1a1a; color: #f4f1e8;
  border: 1px solid rgba(192,144,32,0.45);
  padding: 10px 36px 10px 14px; border-radius: 10px;
  font-size: 0.78rem; line-height: 1.35; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(0,0,0,0.35);
  opacity: 0; transform: translateX(8px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.gctrl-tip.gctrl-tip-show { opacity: 1; transform: translateX(0); }
.gctrl-tip::after {
  content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%) rotate(45deg);
  width: 10px; height: 10px; background: #1a1a1a;
  border-right: 1px solid rgba(192,144,32,0.45); border-top: 1px solid rgba(192,144,32,0.45);
}
.gctrl-tip-close {
  position: absolute; right: 6px; top: 4px;
  background: transparent; border: none; color: #f4f1e8;
  font-size: 1rem; cursor: pointer; line-height: 1; padding: 4px 6px;
}

.gctrl-panel {
  position: absolute; right: 0; bottom: 56px;
  width: 240px; background: #1a1a1a; color: #f4f1e8;
  border: 1px solid rgba(192,144,32,0.4); border-radius: 14px;
  padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.gctrl-panel-hd { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.gctrl-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.gctrl-status { flex: 1; font-size: 0.78rem; color: #f4f1e8; }
.gctrl-close { background: transparent; border: none; color: #f4f1e8; font-size: 1.1rem; cursor: pointer; line-height: 1; padding: 0 4px; }

.gctrl-video {
  width: 100%; height: 140px; object-fit: cover; border-radius: 8px;
  background: #000; transform: scaleX(-1); /* mirror */
  display: block;
}
.gctrl-current {
  margin-top: 8px; padding: 6px 10px;
  background: rgba(192,144,32,0.12); border-radius: 8px;
  text-align: center; font-size: 0.85rem; font-weight: 600; color: #c09020;
  min-height: 1.6em;
}
.gctrl-legend {
  margin-top: 8px; font-size: 0.7rem; color: rgba(244,241,232,0.7);
  display: grid; gap: 2px;
}
.gctrl-privacy {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(244,241,232,0.08);
  font-size: 0.66rem; color: rgba(244,241,232,0.55); line-height: 1.4;
}

.gctrl-cursor {
  position: fixed; left: 0; top: 0;
  width: 22px; height: 22px; margin-left: -11px; margin-top: -11px;
  border-radius: 50%;
  border: 2px solid #c09020;
  background: rgba(192,144,32,0.18);
  box-shadow: 0 0 12px rgba(192,144,32,0.55), inset 0 0 4px rgba(192,144,32,0.6);
  pointer-events: none;
  z-index: 2147483647;
  transition: width 0.1s ease, height 0.1s ease, background 0.1s ease;
  will-change: transform;
}
.gctrl-cursor-pinch {
  width: 14px; height: 14px; margin-left: -7px; margin-top: -7px;
  background: rgba(192,144,32,0.55);
  box-shadow: 0 0 18px rgba(192,144,32,0.9);
}

@media (max-width: 640px) {
  .gctrl-root { bottom: 130px; right: 20px; }
  .gctrl-btn { width: 40px; height: 40px; }
  .gctrl-panel { width: 220px; right: 0; }
  .gctrl-tip { display: none; }
}