/* ═══════════════════════════════════════════════════════════════
   ANALYTICS PANEL
   ═══════════════════════════════════════════════════════════════ */
#analytics-panel {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 800;
  display: none;
  flex-direction: column;
  padding: 52px 28px 28px;
  color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
#analytics-panel.open { display: flex; }
#analytics-panel h2 { font-size: 24px; font-weight: 800; color: #00c6ff; margin-bottom: 22px; }
.a-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: rgba(255,255,255,0.45); font-size: 30px; cursor: pointer; line-height: 1; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.45); }
.stat-value { font-size: 22px; font-weight: 700; color: #00c6ff; }
.a-section { margin: 24px 0 12px; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.3); }
.a-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.a-table th { text-align: left; padding: 9px 10px; background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); font-size: 11px; text-transform: uppercase; letter-spacing: 0.7px; font-weight: 600; }
.a-table td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
#analytics-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.a-export { padding: 11px 16px; background: rgba(0,198,255,0.10); border: 1px solid rgba(0,198,255,0.32); color: #00c6ff; border-radius: 8px; font-size: 13px; cursor: pointer; flex: 1 1 140px; text-align: center; }
.a-export:active { background: rgba(0,198,255,0.22); }
.a-clear { padding: 11px 16px; background: rgba(255,60,60,0.12); border: 1px solid rgba(255,60,60,0.32); color: #ff7070; border-radius: 8px; font-size: 13px; cursor: pointer; flex: 1 1 140px; text-align: center; }
.a-clear:active { background: rgba(255,60,60,0.24); }

/* Tap zone for analytics — top center, away from chrome buttons */
#corner-tap {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 70px;
  z-index: 200;
  opacity: 0;
  cursor: default;
}
