/* Spot It Junior — find-the-odd-one-out game */

.sij-setup { display: flex; flex-direction: column; gap: 18px; }
.sij-setup h3 { margin: 0 0 8px; font-size: 1.05rem; }

.sij-pick-row { display: flex; flex-wrap: wrap; gap: 10px; }

.sij-pick {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  cursor: pointer;
  font: inherit;
  min-width: 200px;
  text-align: left;
}
.sij-pick strong { font-size: 1rem; }
.sij-pick small { color: var(--color-text-soft); }
.sij-pick[aria-pressed="true"] { border-color: var(--color-primary); background: rgba(79, 216, 224, 0.12); }

.sij-start-btn { align-self: flex-start; margin-top: 4px; }

.sij-rewards { font-size: 0.85rem; color: var(--color-text-soft); }
.sij-rewards strong { color: var(--color-text); }

.sij-play { display: flex; flex-direction: column; gap: 14px; }

.sij-banner {
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.sij-grid { display: grid; gap: 16px; justify-content: center; padding: 20px; border-radius: 18px; background: var(--color-bg-alt); border: 1px solid var(--color-border); }
.sij-grid--6 { grid-template-columns: repeat(3, 80px); }
.sij-grid--9 { grid-template-columns: repeat(3, 76px); }

.sij-tile {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  border: 3px solid transparent;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sij-tile:hover { background: var(--color-surface-hover); }
.sij-tile--correct { border-color: var(--color-success); background: rgba(74, 222, 128, 0.18); }
.sij-tile--wrong { animation: sij-wobble 0.4s ease; }

@keyframes sij-wobble {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  20% { transform: translateX(-6px) rotate(-4deg); }
  40% { transform: translateX(5px) rotate(3deg); }
  60% { transform: translateX(-4px) rotate(-2deg); }
  80% { transform: translateX(3px) rotate(1deg); }
}

.sij-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* Plain CSS shapes -- same technique as Sort My Shapes */
.sij-shape { display: inline-block; }
.sij-shape--circle { border-radius: 50%; }
.sij-shape--square { border-radius: 6px; }
.sij-shape--triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.sij-shape--star { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.sij-shape--diamond { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
