/* Task Switching — only test-specific overrides */
:root { --test-accent: #e76f51; }

.ts-rule-badge {
  background: var(--test-accent-soft);
  color: var(--test-accent);
  padding: 8px 16px;
  border-radius: 20px;
  font-family: 'Lexend', sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
  border: 1.5px solid var(--test-accent-border);
  transition: opacity 0.2s;
}

/* ── INTRO VISUAL MAPPING ── */
.ts-intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  background: var(--test-accent-soft);
  border: 2px dashed var(--test-accent-border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

.ts-intro-rule {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ts-intro-shape {
  width: 56px;
  height: 56px;
  fill: var(--test-accent);
}

.ts-intro-text {
  font-family: 'Lexend', sans-serif;
  font-size: 15px;
  color: #1a2e3b;
  text-align: center;
}

.ts-intro-divider {
  width: 2px;
  height: 60px;
  background: var(--test-accent-border);
}

/* ── STIMULUS BOX ── */
.ts-box {
  border-radius: 18px;
  min-height: 200px;
  background: #f0f5f8;
  border: 2.5px dashed #dde8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}

.ts-box[data-state="hit"]  { background: #edfaf4; border: 2.5px solid #2ecc71; }
.ts-box[data-state="miss"] { background: #fef2f1; border: 2.5px solid #e74c3c; }

/* SVGs for shapes instead of CSS borders */
.ts-shape { width: 100px; height: 100px; fill: var(--test-accent); transition: transform 0.1s; }
.ts-box[data-state="hit"] .ts-shape { fill: #2ecc71; transform: scale(1.1); }
.ts-box[data-state="miss"] .ts-shape { fill: #e74c3c; }

/* Switch Overlay */
.ts-overlay {
  position: absolute;
  inset: 0;
  background: rgba(231,111,81, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  letter-spacing: -0.02em;
}
.ts-box[data-state="switch"] .ts-overlay { opacity: 1; }

/* ── CONTROLS ── */
.ts-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ts-btn {
  height: 80px;
  background: #fff;
  border: 2px solid #dde8ed;
  border-bottom-width: 4px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Lexend', sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: #1a2e3b;
  cursor: pointer;
  transition: all 0.1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.ts-btn:hover { border-color: var(--test-accent); background: var(--test-accent-soft); }
.ts-btn:active { transform: translateY(2px); border-bottom-width: 2px; }

.ts-btn-shape { width: 24px; height: 24px; }
.ts-btn-shape svg { width: 100%; height: 100%; fill: var(--test-accent); }


