/* Sequence Memory — only test-specific overrides */
:root { --test-accent: #3b82f6; --test-accent-soft: #bfdbfe; }

/* ── STIMULUS BOX ── */
.sm-box {
  border-radius: 18px;
  min-height: 380px;
  background: #f0f5f8;
  border: 2.5px solid #dde8ed;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.15s, border-color 0.15s;
}

.sm-box[data-state="play"] { background: #ffffff; border-color: var(--test-accent); box-shadow: 0 0 0 4px var(--test-accent-soft); }
.sm-box[data-state="input"] { background: #f8fafb; border-color: var(--test-accent); }
.sm-box[data-state="miss"] { background: #fef2f1; border-color: #e74c3c; }

/* Grid */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 3vw, 14px);
  padding: clamp(12px, 4vw, 24px);
  width: 100%;
  max-width: 380px;
}

/* Blocks */
.sm-block {
  aspect-ratio: 1;
  background: #cdd8df;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.1s, transform 0.08s, box-shadow 0.1s;
}

/* Play state (engine flashes) */
.sm-box[data-state="play"] .sm-block.flash {
  background: var(--test-accent);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(59,130,246, 0.3);
}

/* Input state (user clicks) */
.sm-box[data-state="input"] .sm-block {
  background: #dde8ed;
  border: 2px solid #cdd8df;
  cursor: pointer;
}
.sm-box[data-state="input"] .sm-block:hover {
  background: #cdd8df;
}
.sm-box[data-state="input"] .sm-block:active,
.sm-box[data-state="input"] .sm-block.active {
  background: var(--test-accent);
  border-color: var(--test-accent);
  transform: scale(0.95);
}

/* Miss state */
.sm-box[data-state="miss"] .sm-block { background: #fde8e8; border-color: #fca5a5; opacity: 0.5; }
.sm-box[data-state="miss"] .sm-block.wrong { background: #e74c3c; border-color: #c0392b; opacity: 1; transform: scale(1.05); }
.sm-box[data-state="miss"] .sm-block.correct-missed { background: #2ecc71; border-color: #27ae60; opacity: 1; }

/* ── INTRO VISUAL MAPPING ── */
.sm-intro-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: #eff6ff;
  border: 2px dashed #bfdbfe;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

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

.sm-intro-shape {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sm-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.sm-mini-block {
  width: 16px;
  height: 16px;
  background: #cdd8df;
  border-radius: 3px;
}

.sm-mini-block.flash {
  background: var(--test-accent);
  transform: scale(1.1);
}
.sm-mini-block.active {
  background: var(--test-accent);
  box-shadow: 0 0 0 2px rgba(59,130,246, 0.3);
}

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

.sm-intro-divider {
  color: #cdd8df;
}


