/* ═══ Famovo Connections ═════════════════════════════════════════════════ */
.conn-page {
  max-width: 540px; margin: 0 auto;
  padding: 16px 12px;
  display: flex; flex-direction: column; gap: 14px;
}
.conn-header {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.conn-title { text-align: center; display: flex; flex-direction: column; }
.conn-kicker { font-size: 18px; font-weight: 700; color: var(--ink); }
.conn-date { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.conn-instructions { text-align: center; font-size: 14px; }

.conn-solved-stack {
  display: flex; flex-direction: column; gap: 6px;
}
.conn-solved-row {
  border-radius: 8px; padding: 10px 12px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px;
  color: #111827;
  font-weight: 600;
}
.conn-diff-0 { background: #fef08a; }   /* yellow */
.conn-diff-1 { background: #bef264; }   /* green  */
.conn-diff-2 { background: #93c5fd; }   /* blue   */
.conn-diff-3 { background: #d8b4fe; }   /* purple */
.conn-solved-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.conn-solved-words { font-size: 12px; opacity: 0.85; }
.conn-solved-revealed { opacity: 0.7; }

.conn-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.conn-tile {
  aspect-ratio: 1 / 1;
  min-height: 68px;
  background: #f3f4f6;
  border: 0; border-radius: 8px;
  color: var(--ink);
  font-size: clamp(11px, 3vw, 15px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.02em;
  text-align: center; padding: 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1.1;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  font-family: inherit;
  touch-action: manipulation;
  word-break: break-word;
}
.conn-tile:hover { background: #e5e7eb; }
.conn-tile.selected {
  background: #374151; color: #fff;
  transform: scale(0.96);
}
.conn-tile.shake { animation: conn-shake 0.4s; }
@keyframes conn-shake {
  0%,100% { transform: translateX(0) scale(0.96); }
  25% { transform: translateX(-5px) scale(0.96); }
  75% { transform: translateX(5px) scale(0.96); }
}

.conn-mistakes {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13px;
}
.conn-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: #374151;
  transition: background 0.3s;
}
.conn-dot-spent { background: #e5e7eb; }

.conn-actions {
  display: flex; gap: 10px; justify-content: center;
}
.conn-actions button { flex: 0 1 120px; }
.conn-actions .btn-primary:disabled {
  opacity: 0.35; cursor: default;
}

.conn-error {
  text-align: center;
  background: #fef3c7; border: 1px solid #fcd34d; color: #713f12;
  padding: 8px 12px; border-radius: 8px; font-size: 13px;
}
.conn-result {
  text-align: center; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; font-size: 14px;
}
.conn-family { margin-top: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }

