/* Object Tracking — test-specific overrides */
:root { --test-accent: #f59e0b; }
.t-intro-icon::before {
  content: 'visibility';
}


.t-shell { max-width: 900px; }

/* ── ARENA ── */
.ot-arena {
  position: relative;
  width: 100%;
  min-height: 560px;
  background: color-mix(in srgb, var(--test-accent) 5%, #ffffff);
  border: 1.5px solid var(--color-outline);
  border-radius: 0;
  overflow: hidden;
  cursor: default;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.02);
  transition: background-color 0.2s, border-color 0.2s;
}

html.dark .ot-arena {
  background: color-mix(in srgb, var(--test-accent) 4%, var(--color-surface-container-low)) !important;
  border-color: var(--color-outline) !important;
  border-radius: 0 !important;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.ot-canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 560px;
}

/* ── STATUS ── */
.ot-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.ot-level-display, .ot-lives-display {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ot-status-text {
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #9ca3af;
  text-align: center;
  min-height: 18px;
}

/* ── SCORE RANGE TABLE ── */
.ot-lives-display { display: flex; align-items: center; justify-content: center; }

@media (max-width: 768px) {
  .ot-arena { min-height: 440px; }
  .ot-canvas { min-height: 440px; }
}

@media (max-width: 480px) {
  .ot-arena { min-height: 360px; }
  .ot-canvas { min-height: 360px; }
}

/* ── INTRO VISUAL EXAMPLES ── */
.ot-preview-arena {
  position: relative;
  width: 280px;
  height: 120px;
  background: color-mix(in srgb, var(--test-accent) 2%, rgba(0,0,0,0.35));
  border: 1.5px solid var(--color-outline);
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
  --distractor-bg: var(--color-outline-variant);
  --distractor-border: 1px solid rgba(255, 255, 255, 0.1);
}

html.light .ot-preview-arena {
  background: color-mix(in srgb, var(--test-accent) 4%, rgba(0,0,0,0.04));
  --distractor-bg: #71717a;
  --distractor-border: 1px solid rgba(0, 0, 0, 0.1);
}

.ot-preview-ball {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--distractor-bg);
  border: var(--distractor-border);
  box-sizing: border-box;
}

/* Animations for Shuffling Balls */
.ot-preview-ball.target {
  animation: otTargetMove 5.8s infinite linear;
}
.ot-preview-ball.d1 {
  animation: otD1Move 5.8s infinite linear;
}
.ot-preview-ball.d2 {
  animation: otD2Move 5.8s infinite linear;
}
.ot-preview-ball.d3 {
  animation: otD3Move 5.8s infinite linear;
}
.ot-preview-ball.d4 {
  animation: otD4Move 5.8s infinite linear;
}
.ot-preview-ball.d5 {
  animation: otD5Move 5.8s infinite linear;
}

@keyframes otTargetMove {
  0%, 22% {
    left: 60px;
    top: 45px;
    background: var(--test-accent);
    box-shadow: 0 0 10px var(--test-accent), 0 0 0 2px rgba(255, 255, 255, 0.25);
    border-color: transparent;
  }
  68% {
    left: 150px;
    top: 75px;
    background: var(--distractor-bg);
    box-shadow: none;
  }
  82%, 94% {
    left: 150px;
    top: 75px;
    background: var(--test-accent);
    box-shadow: 0 0 10px var(--test-accent), 0 0 0 2px rgba(255, 255, 255, 0.25);
    border-color: transparent;
  }
  100% {
    left: 60px;
    top: 45px;
    background: var(--test-accent);
    box-shadow: 0 0 10px var(--test-accent), 0 0 0 2px rgba(255, 255, 255, 0.25);
    border-color: transparent;
  }
}

@keyframes otD1Move {
  0%, 22% { left: 210px; top: 35px; }
  68%, 94% { left: 130px; top: 30px; }
  100% { left: 210px; top: 35px; }
}

@keyframes otD2Move {
  0%, 22% { left: 100px; top: 25px; }
  68%, 94% { left: 60px; top: 45px; }
  100% { left: 100px; top: 25px; }
}

@keyframes otD3Move {
  0%, 22% { left: 45px; top: 80px; }
  68%, 94% { left: 100px; top: 75px; }
  100% { left: 45px; top: 80px; }
}

@keyframes otD4Move {
  0%, 22% { left: 130px; top: 75px; }
  68%, 94% { left: 220px; top: 35px; }
  100% { left: 130px; top: 75px; }
}

@keyframes otD5Move {
  0%, 22% { left: 220px; top: 80px; }
  68%, 94% { left: 45px; top: 80px; }
  100% { left: 220px; top: 80px; }
}

.ot-preview-label {
  position: absolute;
  font-family: var(--font-b);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  animation: otLabelFade 5.8s infinite linear;
}

.ot-preview-label.target-label {
  color: var(--test-accent);
  left: 18px;
  top: -2px;
}

.ot-preview-label.distractor-label {
  color: var(--text-muted);
  font-weight: 500;
  left: 18px;
  top: -2px;
}

@keyframes otLabelFade {
  0%, 22% { opacity: 1; }
  23%, 100% { opacity: 0; }
}

.ot-preview-click {
  position: absolute;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  pointer-events: none;
  z-index: 10;
  animation: otClickAnimate 5.8s infinite linear;
}

.ot-preview-click span {
  font-size: 20px;
  line-height: 1;
  display: block;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@keyframes otClickAnimate {
  0% { left: 140px; top: 110px; opacity: 0; transform: translate(-35%, -15%) scale(1.2); }
  67% { left: 140px; top: 110px; opacity: 0; transform: translate(-35%, -15%) scale(1.2); }
  78% { left: 150px; top: 75px; opacity: 1; transform: translate(-35%, -15%) scale(1.2); }
  81% { left: 150px; top: 75px; opacity: 1; transform: translate(-35%, -15%) scale(1); }
  82% { left: 150px; top: 75px; opacity: 1; transform: translate(-35%, -15%) scale(0.8); }
  84% { left: 150px; top: 75px; opacity: 1; transform: translate(-35%, -15%) scale(1.1); }
  92% { left: 140px; top: 110px; opacity: 0; transform: translate(-35%, -15%) scale(1.2); }
  100% { left: 140px; top: 110px; opacity: 0; }
}

.ot-preview-caption {
  font-family: var(--font-b);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
  line-height: 1.4;
}

.ot-preview-caption .ot-highlight {
  color: var(--test-accent);
  font-weight: 700;
}
