/* 🎯 Aim Consistency Test Stylesheet (style.css) */

:root {
  --test-accent: #00f0ff;
  --test-accent-soft: rgba(0, 240, 255, 0.12);
  --test-accent-border: rgba(0, 240, 255, 0.3);
  --arena-bg: #060912;
  --arena-border: rgba(0, 240, 255, 0.2);
}

/* ── CRISP WHITE AIM CURSOR ── */
.consistency-arena,
.consistency-arena canvas,
.consistency-arena *,
body:has(#panelTask.active),
body:has(#panelTask.active) * {
  cursor: var(--cursor-fps-crosshair) !important;
}

.top-header .wm-restart-btn,
.top-header button {
  cursor: pointer !important;
}

/* ── FULLSCREEN FIT-TO-SCREEN ARENA DURING GAMEPLAY ── */
body:has(#panelTask.active) {
  overflow: hidden !important;
}

body:has(#panelTask.active) header.panda-header,
body:has(#panelTask.active) .panda-nav,
body:has(#panelTask.active) footer.panda-footer,
body:has(#panelTask.active) .t-ambient-glow,
body:has(#panelTask.active) .t-seo-container,
body:has(#panelTask.active) .t-nav {
  display: none !important;
}

body:has(#panelTask.active) .t-shell {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body:has(#panelTask.active) .t-card {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: #060912 !important;
  box-shadow: none !important;
  z-index: 9999 !important;
  overflow: hidden !important;
}

body:has(#panelTask.active) #panelTask,
body:has(#panelTask.active) .t-task {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  overflow: hidden !important;
}

/* Arena Container - Fills Entire Viewport */
.consistency-arena {
  position: absolute !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: #060912;
  box-shadow: none !important;
  overflow: hidden !important;
  user-select: none !important;
  touch-action: none !important;
}

.consistency-arena::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(4, 7, 13, 0.7) 100%);
  pointer-events: none;
  z-index: 2;
}

#webgl-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

#webgl-container canvas {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

/* Minimalist Top Header (ReflexBench Golden Standard) */
.top-header {
  position: absolute !important;
  top: 14px !important;
  left: 16px !important;
  right: 16px !important;
  width: calc(100% - 32px) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  z-index: 30 !important;
  pointer-events: none !important;
}

.round-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 18, 28, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 14px;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #00f0ff;
  border-radius: 50%;
  box-shadow: 0 0 6px #00f0ff;
}

#trialCount {
  margin: 0;
  font-family: var(--font-m, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #ffffff;
}

.restart-pill,
.wm-restart-btn {
  background: rgba(239, 68, 68, 0.12) !important;
  border: 1px solid rgba(239, 68, 68, 0.35) !important;
  color: #f87171 !important;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  margin-left: auto !important;
}

.restart-pill:hover,
.wm-restart-btn:hover {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Floating Hit Text */
.floating-text {
  position: absolute;
  pointer-events: none;
  font-family: var(--font-m, monospace);
  font-size: 1.15rem;
  font-weight: 700;
  color: #00f0ff;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.9);
  transform: translate(-50%, -50%);
  animation: floatUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  z-index: 100;
}

@keyframes floatUp {
  0% { opacity: 1; transform: translate(-50%, -20%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -80px) scale(0.9); }
}

/* ═══════════════════════════════════════════════════════════════
   VISUAL PREVIEW BOX (How It Works Animation)
   ═══════════════════════════════════════════════════════════════ */
.consistency-preview-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 140px;
  margin: 18px auto 10px;
  background: rgba(6, 9, 18, 0.85);
  border: 1px solid var(--test-accent-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0, 240, 255, 0.05);
}

.preview-target {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #7bf5ff 0%, #00d8f6 45%, #008fa8 85%, #004d5a 100%);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.65), inset -2px -2px 4px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.preview-target.t1 { left: 22%; top: 48%; }
.preview-target.t2 { left: 42%; top: 32%; }
.preview-target.t3 { left: 58%; top: 68%; }
.preview-target.t4 { left: 74%; top: 40%; }
.preview-target.t5 { left: 86%; top: 62%; }

.consistency-preview-cursor {
  position: absolute;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  color: #ffffff;
  animation: consistencyCursorCycle 4.5s linear infinite;
}

.consistency-preview-cursor span {
  font-size: 20px;
  line-height: 1;
  display: block;
}

@keyframes consistencyCursorCycle {
  0%, 5% { left: 22%; top: 48%; transform: translate(-35%, -15%) scale(1); }
  8% { left: 22%; top: 48%; transform: translate(-35%, -15%) scale(0.85); }
  12%, 22% { left: 42%; top: 32%; transform: translate(-35%, -15%) scale(1); }
  25% { left: 42%; top: 32%; transform: translate(-35%, -15%) scale(0.85); }
  30%, 42% { left: 58%; top: 68%; transform: translate(-35%, -15%) scale(1); }
  45% { left: 58%; top: 68%; transform: translate(-35%, -15%) scale(0.85); }
  50%, 65% { left: 74%; top: 40%; transform: translate(-35%, -15%) scale(1); }
  68% { left: 74%; top: 40%; transform: translate(-35%, -15%) scale(0.85); }
  72%, 88% { left: 86%; top: 62%; transform: translate(-35%, -15%) scale(1); }
  92% { left: 86%; top: 62%; transform: translate(-35%, -15%) scale(0.85); }
  96%, 100% { left: 22%; top: 48%; transform: translate(-35%, -15%) scale(1); }
}

.consistency-preview-caption {
  font-size: 0.84rem;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  margin-bottom: 20px;
}
