/* =================== FASES E RESULTADO =================== */

.fase,
.resultado {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.resultado {
  flex-direction: column;
}

@media (max-width: 768px) {
  .resultado {
    padding-bottom: 120px; /* Use token: --safe-area-bottom se preferir */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* =================== EMBRYO SHOW =================== */

.embryo-show {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--gap-md);
  margin-bottom: var(--padding-md);
}

.embryo-show img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-img);
}

.embryo-show span {
  font-size: var(--font-title);
}

/* =================== EMBRIÃO FINAL - PREVIEW DUO =================== */

.preview-wrapper.duo {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 20px;
  gap: 0;
}

.cross-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  color: white;
  backdrop-filter: blur(10px);
  z-index: 5;
}

/* =================== AÇÕES FINAIS =================== */

.acoes-finais {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* =================== RESPONSIVO =================== */

@media (max-width: 768px) {
  .fase {
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    padding-top: 16px;
    padding-bottom: 140px; /* esse é o espaço pro botão fixo respirar */
  }
  .preview-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .preview-wrapper.duo {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 16px 80px;
  }

  .cross-overlay {
    font-size: 26px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 10;
  }

  .acoes-finais {
    flex-direction: column;
    gap: 16px;
    padding-bottom: 100px;
  }

  .cross-icon {
    margin: 20px 0;
  }
}
