/* Chimp Test — test-specific overrides */
:root { --test-accent: #b45309; }
.t-intro-icon::before {
  content: 'grid_view';
}


/* ── GRID ── */
.chimp-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 6px;
  padding: 16px;
  background: #fffbeb;
  border: 2.5px solid #fde68a;
  border-radius: 22px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  width: min(672px, 90vw);
  height: min(420px, 56.25vw);
  margin: 0 auto;
  box-sizing: border-box;
}

.chimp-cell {
  aspect-ratio: 1;
  border-radius: 10px;
  background: #fef3c7;
  border: 1.5px solid #fde68a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 4.5vw, 36px);
  font-weight: 900;
  color: transparent;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.chimp-num {
  background: #f59e0b;
  border-color: #d97706;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}

.chimp-num:hover {
  background: #d97706;
}

.chimp-hidden {
  background: #f59e0b;
  border-color: #d97706;
  color: transparent;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(245,158,11,0.25);
}

.chimp-hidden:hover {
  background: #d97706;
}

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

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

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

/* ── SCORE RANGE TABLE (reuse) ── */
.rt-range-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.rt-range-row {
  display: grid;
  grid-template-columns: 10px 100px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
}
.rt-range-dot { width: 10px; height: 10px; border-radius: 50%; }
.rt-range-label { font-weight: 700; color: var(--text); }
.rt-range-val   { color: var(--text-muted); }
.rt-range-pct   { font-weight: 700; text-align: right; }

.rt-range-row.elite  { background: #f0fdf4; } .rt-range-row.elite  .rt-range-dot { background: #2ecc71; } .rt-range-row.elite  .rt-range-pct { color: #2ecc71; }
.rt-range-row.fast   { background: #f0f9ff; } .rt-range-row.fast   .rt-range-dot { background: #0ea5e9; } .rt-range-row.fast   .rt-range-pct { color: #0ea5e9; }
.rt-range-row.avg    { background: #fafafa; } .rt-range-row.avg    .rt-range-dot { background: #f5a623; } .rt-range-row.avg    .rt-range-pct { color: #f5a623; }
.rt-range-row.slow   { background: #fef2f1; } .rt-range-row.slow   .rt-range-dot { background: #e74c3c; } .rt-range-row.slow   .rt-range-pct { color: #e74c3c; }

@media (max-width: 600px) {
  .chimp-grid {
    padding: 10px;
    gap: 4px;
  }
  .chimp-cell { border-radius: 6px; }
}

@media (max-width: 400px) {
  .chimp-grid {
    padding: 8px;
    gap: 3px;
  }
  .chimp-cell { border-radius: 5px; }
}

/* ── INTRO VISUAL EXAMPLE ── */
.ct-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 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

html.light .ct-preview-arena {
  background: color-mix(in srgb, var(--test-accent) 4%, rgba(0,0,0,0.04));
}

.ct-preview-grid {
  display: flex;
  gap: 12px;
}

.ct-preview-tile {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-container-high);
  border: 1px solid var(--color-outline);
  border-radius: 6px;
  font-family: var(--font-h);
  font-size: 15px;
  font-weight: 800;
  color: var(--test-accent);
  transition: opacity 0.2s, background 0.2s;
  box-sizing: border-box;
}

.ct-preview-tile span {
  transition: opacity 0.2s, transform 0.2s;
}

.ct-preview-tile.t1 {
  animation: ctTile1Animate 5.0s infinite steps(1);
}
.ct-preview-tile.t2 {
  animation: ctTile2Animate 5.0s infinite steps(1);
}
.ct-preview-tile.t3 {
  animation: ctTile3Animate 5.0s infinite steps(1);
}

.ct-preview-tile.t2 span {
  animation: ctLabelHide 5.0s infinite steps(1);
}
.ct-preview-tile.t3 span {
  animation: ctLabelHide 5.0s infinite steps(1);
}

@keyframes ctTile1Animate {
  0%, 27% { opacity: 1; background: var(--color-surface-container-high); }
  28%, 86% { opacity: 0; }
  87%, 100% { opacity: 1; background: var(--color-surface-container-high); }
}

@keyframes ctTile2Animate {
  0%, 47% { opacity: 1; background: var(--color-surface-container-high); }
  48%, 86% { opacity: 0; }
  87%, 100% { opacity: 1; background: var(--color-surface-container-high); }
}

@keyframes ctTile3Animate {
  0%, 67% { opacity: 1; background: var(--color-surface-container-high); }
  68%, 86% { opacity: 0; }
  87%, 100% { opacity: 1; background: var(--color-surface-container-high); }
}

@keyframes ctLabelHide {
  0%, 27% { opacity: 1; transform: scale(1); }
  28%, 86% { opacity: 0; transform: scale(0); }
  87%, 100% { opacity: 1; transform: scale(1); }
}

.ct-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: ctClickAnimate 5.0s infinite linear;
}

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

@keyframes ctClickAnimate {
  0% { left: 140px; top: 90px; opacity: 0; transform: translate(-35%, -15%) scale(1.2); }
  6% { left: 140px; top: 90px; opacity: 0; transform: translate(-35%, -15%) scale(1.2); }
  
  /* Slide to 1 */
  12% { left: 98px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1.2); }
  25% { left: 98px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1); }
  26% { left: 98px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(0.8); }
  28% { left: 98px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1.1); }
  
  /* Slide to 2 */
  38% { left: 146px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1.2); }
  45% { left: 146px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1); }
  46% { left: 146px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(0.8); }
  48% { left: 146px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1.1); }
  
  /* Slide to 3 */
  58% { left: 194px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1.2); }
  65% { left: 194px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1); }
  66% { left: 194px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(0.8); }
  68% { left: 194px; top: 60px; opacity: 1; transform: translate(-35%, -15%) scale(1.1); }
  
  74% { left: 140px; top: 90px; opacity: 0; transform: translate(-35%, -15%) scale(1.2); }
  100% { left: 140px; top: 90px; opacity: 0; }
}

.ct-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;
  margin-bottom: 16px;
}

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